Version 1.9.4.
[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.9.4\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-01-15 14:52+0000\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-resize.pl:40 ../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-resize.pl:44 ../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-resize.pl:50 ../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:1031 ../src/guestfs.pod:1035 ../src/guestfs.pod:1039 ../src/guestfs.pod:1044 ../src/guestfs.pod:1052 ../src/guestfs.pod:1071 ../src/guestfs.pod:1079 ../src/guestfs.pod:1101 ../src/guestfs.pod:1105 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1121 ../src/guestfs.pod:1603 ../src/guestfs.pod:1608 ../src/guestfs.pod:1612 ../src/guestfs.pod:1722 ../src/guestfs.pod:1727 ../src/guestfs.pod:1731 ../src/guestfs.pod:2083 ../src/guestfs.pod:2089 ../src/guestfs.pod:2094 ../src/guestfs.pod:2100 ../src/guestfs.pod:2564 ../src/guestfs.pod:2568 ../src/guestfs.pod:2572 ../src/guestfs.pod:2576 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577 ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591 ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599 ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775 ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785 ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:427 ../fish/guestfish.pod:431 ../fish/guestfish.pod:435 ../fish/guestfish.pod:439 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:373 ../fish/guestfish-actions.pod:381 ../fish/guestfish-actions.pod:388 ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:1065 ../fish/guestfish-actions.pod:1069 ../fish/guestfish-actions.pod:1073 ../fish/guestfish-actions.pod:1077 ../fish/guestfish-actions.pod:1085 ../fish/guestfish-actions.pod:1089 ../fish/guestfish-actions.pod:1093 ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1107 ../fish/guestfish-actions.pod:1111 ../fish/guestfish-actions.pod:1201 ../fish/guestfish-actions.pod:1205 ../fish/guestfish-actions.pod:1210 ../fish/guestfish-actions.pod:1215 ../fish/guestfish-actions.pod:1257 ../fish/guestfish-actions.pod:1261 ../fish/guestfish-actions.pod:1266 ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542 ../tools/virt-win-reg.pl:548 ../tools/virt-resize.pl:345 ../tools/virt-resize.pl:350 ../tools/virt-resize.pl:360
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:1224 ../src/guestfs.pod:1355 ../src/guestfs.pod:2128
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:1228 ../src/guestfs.pod:1359 ../src/guestfs.pod:2153
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:1365
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:720
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 are outside the scope of libguestfs.  You have to use "
1279 "libguestfs to read the appropriate Windows Registry and configuration files, "
1280 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1281 "L<virt-inspector(1)>)."
1282 msgstr ""
1283
1284 #. type: textblock
1285 #: ../src/guestfs.pod:649
1286 msgid ""
1287 "Replacing backslash characters with forward slash characters is also outside "
1288 "the scope of libguestfs, but something that you can easily do."
1289 msgstr ""
1290
1291 #. type: textblock
1292 #: ../src/guestfs.pod:652
1293 msgid ""
1294 "Where we can help is in resolving the case insensitivity of paths.  For "
1295 "this, call L</guestfs_case_sensitive_path>."
1296 msgstr ""
1297
1298 #. type: =head3
1299 #: ../src/guestfs.pod:655
1300 msgid "ACCESSING THE WINDOWS REGISTRY"
1301 msgstr ""
1302
1303 #. type: textblock
1304 #: ../src/guestfs.pod:657
1305 msgid ""
1306 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1307 "files, through the library C<hivex> which is part of the libguestfs project "
1308 "although ships as a separate tarball.  You have to locate and download the "
1309 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1310 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1311 "L<virt-win-reg(1)> for more help on this issue."
1312 msgstr ""
1313
1314 #. type: =head3
1315 #: ../src/guestfs.pod:665
1316 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../src/guestfs.pod:667
1321 msgid ""
1322 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1323 "provide something which looks like a Linux symlink.  The way it tries to do "
1324 "the rewriting is described here:"
1325 msgstr ""
1326
1327 #. type: textblock
1328 #: ../src/guestfs.pod:671
1329 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
1330 msgstr ""
1331
1332 #. type: textblock
1333 #: ../src/guestfs.pod:673
1334 msgid ""
1335 "The essential problem is that ntfs-3g simply does not have enough "
1336 "information to do a correct job.  NTFS links can contain drive letters and "
1337 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1338 "It is almost certainly the case that libguestfs callers should ignore what "
1339 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1340 msgstr ""
1341
1342 #. type: textblock
1343 #: ../src/guestfs.pod:680
1344 msgid ""
1345 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
1346 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1347 "attribute, and read the raw reparse data from that (you can find the format "
1348 "documented in various places around the web)."
1349 msgstr ""
1350
1351 #. type: =head3
1352 #: ../src/guestfs.pod:685
1353 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1354 msgstr ""
1355
1356 #. type: textblock
1357 #: ../src/guestfs.pod:687
1358 msgid ""
1359 "There are other useful extended attributes that can be read from ntfs-3g "
1360 "filesystems (using L</guestfs_getxattr>).  See:"
1361 msgstr ""
1362
1363 #. type: textblock
1364 #: ../src/guestfs.pod:690
1365 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1366 msgstr ""
1367
1368 #. type: =head2
1369 #: ../src/guestfs.pod:692
1370 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1371 msgstr ""
1372
1373 #. type: textblock
1374 #: ../src/guestfs.pod:694
1375 msgid ""
1376 "Although we don't want to discourage you from using the C API, we will "
1377 "mention here that the same API is also available in other languages."
1378 msgstr ""
1379
1380 #. type: textblock
1381 #: ../src/guestfs.pod:697
1382 msgid ""
1383 "The API is broadly identical in all supported languages.  This means that "
1384 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1385 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1386 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1387 "each language."
1388 msgstr ""
1389
1390 #. type: textblock
1391 #: ../src/guestfs.pod:703
1392 msgid ""
1393 "Error messages are automatically transformed into exceptions if the language "
1394 "supports it."
1395 msgstr ""
1396
1397 #. type: textblock
1398 #: ../src/guestfs.pod:706
1399 msgid ""
1400 "We don't try to \"object orientify\" parts of the API in OO languages, "
1401 "although contributors are welcome to write higher level APIs above what we "
1402 "provide in their favourite languages if they wish."
1403 msgstr ""
1404
1405 #. type: =item
1406 #: ../src/guestfs.pod:712
1407 msgid "B<C++>"
1408 msgstr ""
1409
1410 #. type: textblock
1411 #: ../src/guestfs.pod:714
1412 msgid ""
1413 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1414 "identical to the C API.  C++ classes and exceptions are not used."
1415 msgstr ""
1416
1417 #. type: =item
1418 #: ../src/guestfs.pod:718
1419 msgid "B<C#>"
1420 msgstr ""
1421
1422 #. type: textblock
1423 #: ../src/guestfs.pod:720
1424 msgid ""
1425 "The C# bindings are highly experimental.  Please read the warnings at the "
1426 "top of C<csharp/Libguestfs.cs>."
1427 msgstr ""
1428
1429 #. type: =item
1430 #: ../src/guestfs.pod:723
1431 msgid "B<Haskell>"
1432 msgstr ""
1433
1434 #. type: textblock
1435 #: ../src/guestfs.pod:725
1436 msgid ""
1437 "This is the only language binding that is working but incomplete.  Only "
1438 "calls which return simple integers have been bound in Haskell, and we are "
1439 "looking for help to complete this binding."
1440 msgstr ""
1441
1442 #. type: =item
1443 #: ../src/guestfs.pod:729
1444 msgid "B<Java>"
1445 msgstr ""
1446
1447 #. type: textblock
1448 #: ../src/guestfs.pod:731
1449 msgid ""
1450 "Full documentation is contained in the Javadoc which is distributed with "
1451 "libguestfs."
1452 msgstr ""
1453
1454 #. type: =item
1455 #: ../src/guestfs.pod:734
1456 msgid "B<OCaml>"
1457 msgstr ""
1458
1459 #. type: textblock
1460 #: ../src/guestfs.pod:736
1461 msgid "See L<guestfs-ocaml(3)>."
1462 msgstr ""
1463
1464 #. type: =item
1465 #: ../src/guestfs.pod:738
1466 msgid "B<Perl>"
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../src/guestfs.pod:740
1471 msgid "See L<Sys::Guestfs(3)>."
1472 msgstr ""
1473
1474 #. type: =item
1475 #: ../src/guestfs.pod:742
1476 msgid "B<PHP>"
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../src/guestfs.pod:744
1481 msgid ""
1482 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1483 "the php-libguestfs package for your distribution."
1484 msgstr ""
1485
1486 #. type: textblock
1487 #: ../src/guestfs.pod:747
1488 msgid "The PHP binding only works correctly on 64 bit machines."
1489 msgstr ""
1490
1491 #. type: =item
1492 #: ../src/guestfs.pod:749
1493 msgid "B<Python>"
1494 msgstr ""
1495
1496 #. type: textblock
1497 #: ../src/guestfs.pod:751
1498 msgid "See L<guestfs-python(3)>."
1499 msgstr ""
1500
1501 #. type: =item
1502 #: ../src/guestfs.pod:753
1503 msgid "B<Ruby>"
1504 msgstr ""
1505
1506 #. type: textblock
1507 #: ../src/guestfs.pod:755
1508 msgid "See L<guestfs-ruby(3)>."
1509 msgstr ""
1510
1511 #. type: =item
1512 #: ../src/guestfs.pod:757
1513 msgid "B<shell scripts>"
1514 msgstr ""
1515
1516 #. type: textblock
1517 #: ../src/guestfs.pod:759
1518 msgid "See L<guestfish(1)>."
1519 msgstr ""
1520
1521 #. type: =head2
1522 #: ../src/guestfs.pod:763
1523 msgid "LIBGUESTFS GOTCHAS"
1524 msgstr ""
1525
1526 #. type: textblock
1527 #: ../src/guestfs.pod:765
1528 msgid ""
1529 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1530 "system [...] that works in the way it is documented but is counterintuitive "
1531 "and almost invites mistakes.\""
1532 msgstr ""
1533
1534 #. type: textblock
1535 #: ../src/guestfs.pod:769
1536 msgid ""
1537 "Since we developed libguestfs and the associated tools, there are several "
1538 "things we would have designed differently, but are now stuck with for "
1539 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1540 "release, you can expect these to change.  Beware of them."
1541 msgstr ""
1542
1543 #. type: =item
1544 #: ../src/guestfs.pod:777
1545 msgid "Autosync / forgetting to sync."
1546 msgstr ""
1547
1548 #. type: textblock
1549 #: ../src/guestfs.pod:779
1550 msgid ""
1551 "When modifying a filesystem from C or another language, you B<must> unmount "
1552 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1553 "libguestfs handle.  You can also call:"
1554 msgstr ""
1555
1556 #. type: verbatim
1557 #: ../src/guestfs.pod:783
1558 #, no-wrap
1559 msgid ""
1560 " guestfs_set_autosync (g, 1);\n"
1561 "\n"
1562 msgstr ""
1563
1564 #. type: textblock
1565 #: ../src/guestfs.pod:785
1566 msgid ""
1567 "to have the unmount/sync done automatically for you when the handle 'g' is "
1568 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1569 "q.v.)"
1570 msgstr ""
1571
1572 #. type: textblock
1573 #: ../src/guestfs.pod:789
1574 msgid ""
1575 "If you forget to do this, then it is entirely possible that your changes "
1576 "won't be written out, or will be partially written, or (very rarely) that "
1577 "you'll get disk corruption."
1578 msgstr ""
1579
1580 #. type: textblock
1581 #: ../src/guestfs.pod:793
1582 msgid ""
1583 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1584 "guestfish scripts that forget to sync will work just fine, which can make "
1585 "this very puzzling if you are trying to debug a problem."
1586 msgstr ""
1587
1588 #. type: textblock
1589 #: ../src/guestfs.pod:797
1590 msgid ""
1591 "Update: Autosync is enabled by default for all API users starting from "
1592 "libguestfs 1.5.24."
1593 msgstr ""
1594
1595 #. type: =item
1596 #: ../src/guestfs.pod:800
1597 msgid "Mount option C<-o sync> should not be the default."
1598 msgstr ""
1599
1600 #. type: textblock
1601 #: ../src/guestfs.pod:802
1602 msgid ""
1603 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1604 "However C<-o sync> does not add any reliability benefit, but does have a "
1605 "very large performance impact."
1606 msgstr ""
1607
1608 #. type: textblock
1609 #: ../src/guestfs.pod:806
1610 msgid ""
1611 "The work around is to use L</guestfs_mount_options> and set the mount "
1612 "options that you actually want to use."
1613 msgstr ""
1614
1615 #. type: =item
1616 #: ../src/guestfs.pod:809
1617 msgid "Read-only should be the default."
1618 msgstr ""
1619
1620 #. type: textblock
1621 #: ../src/guestfs.pod:811
1622 msgid ""
1623 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1624 "specify I<--rw> if you want to make changes to the image."
1625 msgstr ""
1626
1627 #. type: textblock
1628 #: ../src/guestfs.pod:814
1629 msgid "This would reduce the potential to corrupt live VM images."
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../src/guestfs.pod:816
1634 msgid ""
1635 "Note that many filesystems change the disk when you just mount and unmount, "
1636 "even if you didn't perform any writes.  You need to use "
1637 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1638 msgstr ""
1639
1640 #. type: =item
1641 #: ../src/guestfs.pod:820
1642 msgid "guestfish command line is hard to use."
1643 msgstr ""
1644
1645 #. type: textblock
1646 #: ../src/guestfs.pod:822
1647 msgid ""
1648 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1649 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1650 "exist, so it fails.  In earlier versions of guestfish the error message was "
1651 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1652 "we should have used C<guestfish -c command> to run commands."
1653 msgstr ""
1654
1655 #. type: =item
1656 #: ../src/guestfs.pod:829
1657 msgid "guestfish megabyte modifiers don't work right on all commands"
1658 msgstr ""
1659
1660 #. type: textblock
1661 #: ../src/guestfs.pod:831
1662 msgid ""
1663 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1664 "other modifiers).  What guestfish actually does is to multiply the number "
1665 "part by the modifier part and pass the result to the C API.  However this "
1666 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1667 "expecting some other unit (eg. megabytes)."
1668 msgstr ""
1669
1670 #. type: textblock
1671 #: ../src/guestfs.pod:838
1672 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1673 msgstr ""
1674
1675 #. type: verbatim
1676 #: ../src/guestfs.pod:840
1677 #, no-wrap
1678 msgid ""
1679 " lvcreate LV VG 100M\n"
1680 "\n"
1681 msgstr ""
1682
1683 #. type: textblock
1684 #: ../src/guestfs.pod:842
1685 msgid ""
1686 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1687 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1688 "megabytes * megabytes) logical volume.  The error message you get from this "
1689 "is also a little obscure."
1690 msgstr ""
1691
1692 #. type: textblock
1693 #: ../src/guestfs.pod:847
1694 msgid ""
1695 "This could be fixed in the generator by specially marking parameters and "
1696 "return values which take bytes or other units."
1697 msgstr ""
1698
1699 #. type: =item
1700 #: ../src/guestfs.pod:850
1701 msgid "Ambiguity between devices and paths"
1702 msgstr ""
1703
1704 #. type: textblock
1705 #: ../src/guestfs.pod:852
1706 msgid ""
1707 "There is a subtle ambiguity in the API between a device name "
1708 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1709 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1710 msgstr ""
1711
1712 #. type: textblock
1713 #: ../src/guestfs.pod:857
1714 msgid ""
1715 "In the current API we usually resolve this ambiguity by having two separate "
1716 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1717 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1718 "detecting if the path supplied begins with C</dev/>."
1719 msgstr ""
1720
1721 #. type: textblock
1722 #: ../src/guestfs.pod:863
1723 msgid ""
1724 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1725 "make paths/devices into structured names.  One way to do this would be to "
1726 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1727 "aspect of grub.  Another way would be to use a structured type, equivalent "
1728 "to this OCaml type:"
1729 msgstr ""
1730
1731 #. type: verbatim
1732 #: ../src/guestfs.pod:869
1733 #, no-wrap
1734 msgid ""
1735 " type path = Path of string | Device of int | Partition of int * int\n"
1736 "\n"
1737 msgstr ""
1738
1739 #. type: textblock
1740 #: ../src/guestfs.pod:871
1741 msgid "which would allow you to pass arguments like:"
1742 msgstr ""
1743
1744 #. type: verbatim
1745 #: ../src/guestfs.pod:873
1746 #, no-wrap
1747 msgid ""
1748 " Path \"/foo/bar\"\n"
1749 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1750 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1751 " Path \"/dev/sdb2\"    (* not a device *)\n"
1752 "\n"
1753 msgstr ""
1754
1755 #. type: textblock
1756 #: ../src/guestfs.pod:878
1757 msgid ""
1758 "As you can see there are still problems to resolve even with this "
1759 "representation.  Also consider how it might work in guestfish."
1760 msgstr ""
1761
1762 #. type: =head2
1763 #: ../src/guestfs.pod:883
1764 msgid "PROTOCOL LIMITS"
1765 msgstr ""
1766
1767 #. type: textblock
1768 #: ../src/guestfs.pod:885
1769 msgid ""
1770 "Internally libguestfs uses a message-based protocol to pass API calls and "
1771 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1772 "plenty more detail about this).  The maximum message size used by the "
1773 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1774 "aware of this limit.  The API calls which may be affected are individually "
1775 "documented, with a link back to this section of the documentation."
1776 msgstr ""
1777
1778 #. type: textblock
1779 #: ../src/guestfs.pod:893
1780 msgid ""
1781 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1782 "a simple string.  Because this string is at some point internally encoded as "
1783 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1784 "the requested file is larger than this then you will get an error."
1785 msgstr ""
1786
1787 #. type: textblock
1788 #: ../src/guestfs.pod:899
1789 msgid ""
1790 "In order to transfer large files into and out of the guest filesystem, you "
1791 "need to use particular calls that support this.  The sections L</UPLOADING> "
1792 "and L</DOWNLOADING> document how to do this."
1793 msgstr ""
1794
1795 #. type: textblock
1796 #: ../src/guestfs.pod:903
1797 msgid ""
1798 "You might also consider mounting the disk image using our FUSE filesystem "
1799 "support (L<guestmount(1)>)."
1800 msgstr ""
1801
1802 #. type: =head2
1803 #: ../src/guestfs.pod:906
1804 msgid "KEYS AND PASSPHRASES"
1805 msgstr ""
1806
1807 #. type: textblock
1808 #: ../src/guestfs.pod:908
1809 msgid ""
1810 "Certain libguestfs calls take a parameter that contains sensitive key "
1811 "material, passed in as a C string."
1812 msgstr ""
1813
1814 #. type: textblock
1815 #: ../src/guestfs.pod:911
1816 msgid ""
1817 "In the future we would hope to change the libguestfs implementation so that "
1818 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1819 "swap.  However this is I<not> done at the moment, because of the complexity "
1820 "of such an implementation."
1821 msgstr ""
1822
1823 #. type: textblock
1824 #: ../src/guestfs.pod:916
1825 msgid ""
1826 "Therefore you should be aware that any key parameter you pass to libguestfs "
1827 "might end up being written out to the swap partition.  If this is a concern, "
1828 "scrub the swap partition or don't use libguestfs on encrypted devices."
1829 msgstr ""
1830
1831 #. type: =head2
1832 #: ../src/guestfs.pod:921
1833 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1834 msgstr ""
1835
1836 #. type: textblock
1837 #: ../src/guestfs.pod:923
1838 msgid ""
1839 "All high-level libguestfs actions are synchronous.  If you want to use "
1840 "libguestfs asynchronously then you must create a thread."
1841 msgstr ""
1842
1843 #. type: textblock
1844 #: ../src/guestfs.pod:926
1845 msgid ""
1846 "Only use the handle from a single thread.  Either use the handle exclusively "
1847 "from one thread, or provide your own mutex so that two threads cannot issue "
1848 "calls on the same handle at the same time."
1849 msgstr ""
1850
1851 #. type: textblock
1852 #: ../src/guestfs.pod:930
1853 msgid ""
1854 "See the graphical program guestfs-browser for one possible architecture for "
1855 "multithreaded programs using libvirt and libguestfs."
1856 msgstr ""
1857
1858 #. type: =head2
1859 #: ../src/guestfs.pod:933
1860 msgid "PATH"
1861 msgstr ""
1862
1863 #. type: textblock
1864 #: ../src/guestfs.pod:935
1865 msgid ""
1866 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1867 "internal path."
1868 msgstr ""
1869
1870 #. type: textblock
1871 #: ../src/guestfs.pod:938
1872 msgid ""
1873 "By default it looks for these in the directory C<$libdir/guestfs> "
1874 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1875 msgstr ""
1876
1877 #. type: textblock
1878 #: ../src/guestfs.pod:941
1879 msgid ""
1880 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1881 "to change the directories that libguestfs will search in.  The value is a "
1882 "colon-separated list of paths.  The current directory is I<not> searched "
1883 "unless the path contains an empty element or C<.>.  For example "
1884 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1885 "then C</usr/lib/guestfs>."
1886 msgstr ""
1887
1888 #. type: =head2
1889 #: ../src/guestfs.pod:948
1890 msgid "QEMU WRAPPERS"
1891 msgstr ""
1892
1893 #. type: textblock
1894 #: ../src/guestfs.pod:950
1895 msgid ""
1896 "If you want to compile your own qemu, run qemu from a non-standard location, "
1897 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1898 "around qemu."
1899 msgstr ""
1900
1901 #. type: textblock
1902 #: ../src/guestfs.pod:954
1903 msgid ""
1904 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1905 "last command in the shell script (so that qemu replaces the shell and "
1906 "becomes the direct child of the libguestfs-using program).  If you don't do "
1907 "this, then the qemu process won't be cleaned up correctly."
1908 msgstr ""
1909
1910 #. type: textblock
1911 #: ../src/guestfs.pod:959
1912 msgid ""
1913 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1914 "source:"
1915 msgstr ""
1916
1917 #. type: verbatim
1918 #: ../src/guestfs.pod:962
1919 #, no-wrap
1920 msgid ""
1921 " #!/bin/sh -\n"
1922 " qemudir=/home/rjones/d/qemu\n"
1923 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
1924 "\"$@\"\n"
1925 "\n"
1926 msgstr ""
1927
1928 #. type: textblock
1929 #: ../src/guestfs.pod:966
1930 msgid ""
1931 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1932 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1933 "example:"
1934 msgstr ""
1935
1936 #. type: verbatim
1937 #: ../src/guestfs.pod:970
1938 #, no-wrap
1939 msgid ""
1940 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1941 "\n"
1942 msgstr ""
1943
1944 #. type: textblock
1945 #: ../src/guestfs.pod:972
1946 msgid ""
1947 "Note that libguestfs also calls qemu with the -help and -version options in "
1948 "order to determine features."
1949 msgstr ""
1950
1951 #. type: =head2
1952 #: ../src/guestfs.pod:975
1953 msgid "ABI GUARANTEE"
1954 msgstr ""
1955
1956 #. type: textblock
1957 #: ../src/guestfs.pod:977
1958 msgid ""
1959 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1960 "actions as outlined in this section.  Although we will deprecate some "
1961 "actions, for example if they get replaced by newer calls, we will keep the "
1962 "old actions forever.  This allows you the developer to program in confidence "
1963 "against the libguestfs API."
1964 msgstr ""
1965
1966 #. type: =head2
1967 #: ../src/guestfs.pod:983
1968 msgid "BLOCK DEVICE NAMING"
1969 msgstr ""
1970
1971 #. type: textblock
1972 #: ../src/guestfs.pod:985
1973 msgid ""
1974 "In the kernel there is now quite a profusion of schemata for naming block "
1975 "devices (in this context, by I<block device> I mean a physical or virtual "
1976 "hard drive).  The original Linux IDE driver used names starting with "
1977 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
1978 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
1979 "replacement for the old IDE driver (particularly for SATA devices) those "
1980 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
1981 "machines with paravirtualized drivers.  This has created several different "
1982 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
1983 "Xen PV disks."
1984 msgstr ""
1985
1986 #. type: textblock
1987 #: ../src/guestfs.pod:997
1988 msgid ""
1989 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1990 "Linux kernel to access block devices.  We can run a variety of appliances "
1991 "based on a variety of Linux kernels."
1992 msgstr ""
1993
1994 #. type: textblock
1995 #: ../src/guestfs.pod:1001
1996 msgid ""
1997 "This causes a problem for libguestfs because many API calls use device or "
1998 "partition names.  Working scripts and the recipe (example) scripts that we "
1999 "make available over the internet could fail if the naming scheme changes."
2000 msgstr ""
2001
2002 #. type: textblock
2003 #: ../src/guestfs.pod:1006
2004 msgid ""
2005 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2006 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2007 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2008 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2009 msgstr ""
2010
2011 #. type: textblock
2012 #: ../src/guestfs.pod:1012
2013 msgid ""
2014 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2015 "L</guestfs_list_partitions> and similar calls return the true names of the "
2016 "devices and partitions as known to the appliance."
2017 msgstr ""
2018
2019 #. type: =head3
2020 #: ../src/guestfs.pod:1017
2021 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2022 msgstr ""
2023
2024 #. type: textblock
2025 #: ../src/guestfs.pod:1019
2026 msgid ""
2027 "Usually this translation is transparent.  However in some (very rare)  cases "
2028 "you may need to know the exact algorithm.  Such cases include where you use "
2029 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
2030 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
2031 "devices."
2032 msgstr ""
2033
2034 #. type: textblock
2035 #: ../src/guestfs.pod:1025
2036 msgid ""
2037 "The algorithm is applied only to I<parameters> which are known to be either "
2038 "device or partition names.  Return values from functions such as "
2039 "L</guestfs_list_devices> are never changed."
2040 msgstr ""
2041
2042 #. type: textblock
2043 #: ../src/guestfs.pod:1033
2044 msgid "Is the string a parameter which is a device or partition name?"
2045 msgstr ""
2046
2047 #. type: textblock
2048 #: ../src/guestfs.pod:1037
2049 msgid "Does the string begin with C</dev/sd>?"
2050 msgstr ""
2051
2052 #. type: textblock
2053 #: ../src/guestfs.pod:1041
2054 msgid ""
2055 "Does the named device exist? If so, we use that device.  However if I<not> "
2056 "then we continue with this algorithm."
2057 msgstr ""
2058
2059 #. type: textblock
2060 #: ../src/guestfs.pod:1046
2061 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2062 msgstr ""
2063
2064 #. type: textblock
2065 #: ../src/guestfs.pod:1048
2066 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2067 msgstr ""
2068
2069 #. type: textblock
2070 #: ../src/guestfs.pod:1050
2071 msgid "If that named device exists, use it.  If not, continue."
2072 msgstr ""
2073
2074 #. type: textblock
2075 #: ../src/guestfs.pod:1054
2076 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2077 msgstr ""
2078
2079 #. type: textblock
2080 #: ../src/guestfs.pod:1056
2081 msgid "If that named device exists, use it.  If not, return an error."
2082 msgstr ""
2083
2084 #. type: =head3
2085 #: ../src/guestfs.pod:1060
2086 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2087 msgstr ""
2088
2089 #. type: textblock
2090 #: ../src/guestfs.pod:1062
2091 msgid ""
2092 "Although the standard naming scheme and automatic translation is useful for "
2093 "simple programs and guestfish scripts, for larger programs it is best not to "
2094 "rely on this mechanism."
2095 msgstr ""
2096
2097 #. type: textblock
2098 #: ../src/guestfs.pod:1066
2099 msgid ""
2100 "Where possible for maximum future portability programs using libguestfs "
2101 "should use these future-proof techniques:"
2102 msgstr ""
2103
2104 #. type: textblock
2105 #: ../src/guestfs.pod:1073
2106 msgid ""
2107 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2108 "device names, and then use those names directly."
2109 msgstr ""
2110
2111 #. type: textblock
2112 #: ../src/guestfs.pod:1076
2113 msgid "Since those device names exist by definition, they will never be translated."
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../src/guestfs.pod:1081
2118 msgid ""
2119 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2120 "filesystem labels."
2121 msgstr ""
2122
2123 #. type: =head1
2124 #: ../src/guestfs.pod:1086
2125 msgid "SECURITY"
2126 msgstr ""
2127
2128 #. type: textblock
2129 #: ../src/guestfs.pod:1088
2130 msgid ""
2131 "This section discusses security implications of using libguestfs, "
2132 "particularly with untrusted or malicious guests or disk images."
2133 msgstr ""
2134
2135 #. type: =head2
2136 #: ../src/guestfs.pod:1091
2137 msgid "GENERAL SECURITY CONSIDERATIONS"
2138 msgstr ""
2139
2140 #. type: textblock
2141 #: ../src/guestfs.pod:1093
2142 msgid ""
2143 "Be careful with any files or data that you download from a guest (by "
2144 "\"download\" we mean not just the L</guestfs_download> command but any "
2145 "command that reads files, filenames, directories or anything else from a "
2146 "disk image).  An attacker could manipulate the data to fool your program "
2147 "into doing the wrong thing.  Consider cases such as:"
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../src/guestfs.pod:1103
2152 msgid "the data (file etc) not being present"
2153 msgstr ""
2154
2155 #. type: textblock
2156 #: ../src/guestfs.pod:1107
2157 msgid "being present but empty"
2158 msgstr ""
2159
2160 #. type: textblock
2161 #: ../src/guestfs.pod:1111
2162 msgid "being much larger than normal"
2163 msgstr ""
2164
2165 #. type: textblock
2166 #: ../src/guestfs.pod:1115
2167 msgid "containing arbitrary 8 bit data"
2168 msgstr ""
2169
2170 #. type: textblock
2171 #: ../src/guestfs.pod:1119
2172 msgid "being in an unexpected character encoding"
2173 msgstr ""
2174
2175 #. type: textblock
2176 #: ../src/guestfs.pod:1123
2177 msgid "containing homoglyphs."
2178 msgstr ""
2179
2180 #. type: =head2
2181 #: ../src/guestfs.pod:1127
2182 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2183 msgstr ""
2184
2185 #. type: textblock
2186 #: ../src/guestfs.pod:1129
2187 msgid ""
2188 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2189 "(VFS) module can sometimes be escalated into exploits by deliberately "
2190 "creating a malicious, malformed filesystem.  These exploits are very severe "
2191 "for two reasons.  Firstly there are very many filesystem drivers in the "
2192 "kernel, and many of them are infrequently used and not much developer "
2193 "attention has been paid to the code.  Linux userspace helps potential "
2194 "crackers by detecting the filesystem type and automatically choosing the "
2195 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2196 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2197 "exploit (worse in some ways), giving immediate and total access to the "
2198 "system right down to the hardware level."
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../src/guestfs.pod:1142
2203 msgid ""
2204 "That explains why you should never mount a filesystem from an untrusted "
2205 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2206 "inside a qemu virtual machine, usually running as a non-root user.  The "
2207 "attacker would need to write a filesystem which first exploited the kernel, "
2208 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2209 "the libguestfs protocol, and finally to be as serious as the host kernel "
2210 "exploit it would need to escalate its privileges to root.  This multi-step "
2211 "escalation, performed by a static piece of data, is thought to be extremely "
2212 "hard to do, although we never say 'never' about security issues."
2213 msgstr ""
2214
2215 #. type: textblock
2216 #: ../src/guestfs.pod:1153
2217 msgid ""
2218 "In any case callers can reduce the attack surface by forcing the filesystem "
2219 "type when mounting (use L</guestfs_mount_vfs>)."
2220 msgstr ""
2221
2222 #. type: =head2
2223 #: ../src/guestfs.pod:1156
2224 msgid "PROTOCOL SECURITY"
2225 msgstr ""
2226
2227 #. type: textblock
2228 #: ../src/guestfs.pod:1158
2229 msgid ""
2230 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2231 "defined upper message size.  However a program that uses libguestfs must "
2232 "also take care - for example you can write a program that downloads a binary "
2233 "from a disk image and executes it locally, and no amount of protocol "
2234 "security will save you from the consequences."
2235 msgstr ""
2236
2237 #. type: =head2
2238 #: ../src/guestfs.pod:1164
2239 msgid "INSPECTION SECURITY"
2240 msgstr ""
2241
2242 #. type: textblock
2243 #: ../src/guestfs.pod:1166
2244 msgid ""
2245 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2246 "directly from the guest, and these could contain any 8 bit data.  Callers "
2247 "should be careful to escape these before printing them to a structured file "
2248 "(for example, use HTML escaping if creating a web page)."
2249 msgstr ""
2250
2251 #. type: textblock
2252 #: ../src/guestfs.pod:1172
2253 msgid ""
2254 "Guest configuration may be altered in unusual ways by the administrator of "
2255 "the virtual machine, and may not reflect reality (particularly for untrusted "
2256 "or actively malicious guests).  For example we parse the hostname from "
2257 "configuration files like C</etc/sysconfig/network> that we find in the "
2258 "guest, but the guest administrator can easily manipulate these files to "
2259 "provide the wrong hostname."
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../src/guestfs.pod:1180
2264 msgid ""
2265 "The inspection API parses guest configuration using two external libraries: "
2266 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2267 "designed to be robust in the face of malicious data, although denial of "
2268 "service attacks are still possible, for example with oversized configuration "
2269 "files."
2270 msgstr ""
2271
2272 #. type: =head2
2273 #: ../src/guestfs.pod:1186
2274 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2275 msgstr ""
2276
2277 #. type: textblock
2278 #: ../src/guestfs.pod:1188
2279 msgid ""
2280 "Be very cautious about running commands from the guest.  By running a "
2281 "command in the guest, you are giving CPU time to a binary that you do not "
2282 "control, under the same user account as the library, albeit wrapped in qemu "
2283 "virtualization.  More information and alternatives can be found in the "
2284 "section L</RUNNING COMMANDS>."
2285 msgstr ""
2286
2287 #. type: =head2
2288 #: ../src/guestfs.pod:1194
2289 msgid "CVE-2010-3851"
2290 msgstr ""
2291
2292 #. type: textblock
2293 #: ../src/guestfs.pod:1196
2294 msgid "https://bugzilla.redhat.com/642934"
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../src/guestfs.pod:1198
2299 msgid ""
2300 "This security bug concerns the automatic disk format detection that qemu "
2301 "does on disk images."
2302 msgstr ""
2303
2304 #. type: textblock
2305 #: ../src/guestfs.pod:1201
2306 msgid ""
2307 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2308 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2309 "for one of the known headers, and if none is found then assuming the disk "
2310 "image must be raw."
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../src/guestfs.pod:1206
2315 msgid ""
2316 "This allows a guest which has been given a raw disk image to write some "
2317 "other header.  At next boot (or when the disk image is accessed by "
2318 "libguestfs) qemu would do autodetection and think the disk image format was, "
2319 "say, qcow2 based on the header written by the guest."
2320 msgstr ""
2321
2322 #. type: textblock
2323 #: ../src/guestfs.pod:1211
2324 msgid ""
2325 "This in itself would not be a problem, but qcow2 offers many features, one "
2326 "of which is to allow a disk image to refer to another image (called the "
2327 "\"backing disk\").  It does this by placing the path to the backing disk "
2328 "into the qcow2 header.  This path is not validated and could point to any "
2329 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2330 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2331 "control of the attacker."
2332 msgstr ""
2333
2334 #. type: textblock
2335 #: ../src/guestfs.pod:1219
2336 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2337 msgstr ""
2338
2339 #. type: textblock
2340 #: ../src/guestfs.pod:1226
2341 msgid "You have enabled the network or have opened the disk in write mode."
2342 msgstr ""
2343
2344 #. type: textblock
2345 #: ../src/guestfs.pod:1230
2346 msgid ""
2347 "You are also running untrusted code from the guest (see L</RUNNING "
2348 "COMMANDS>)."
2349 msgstr ""
2350
2351 #. type: textblock
2352 #: ../src/guestfs.pod:1235
2353 msgid ""
2354 "The way to avoid this is to specify the expected disk format when adding "
2355 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2356 "should always do this if the disk is raw format, and it's a good idea for "
2357 "other cases too."
2358 msgstr ""
2359
2360 #. type: textblock
2361 #: ../src/guestfs.pod:1240
2362 msgid ""
2363 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2364 "format is fetched from libvirt and passed through."
2365 msgstr ""
2366
2367 #. type: textblock
2368 #: ../src/guestfs.pod:1243
2369 msgid ""
2370 "For libguestfs tools, use the I<--format> command line parameter as "
2371 "appropriate."
2372 msgstr ""
2373
2374 #. type: =head1
2375 #: ../src/guestfs.pod:1246
2376 msgid "CONNECTION MANAGEMENT"
2377 msgstr ""
2378
2379 #. type: =head2
2380 #: ../src/guestfs.pod:1248
2381 msgid "guestfs_h *"
2382 msgstr ""
2383
2384 #. type: textblock
2385 #: ../src/guestfs.pod:1250
2386 msgid ""
2387 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2388 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2389 "handle and release all resources used."
2390 msgstr ""
2391
2392 #. type: textblock
2393 #: ../src/guestfs.pod:1254
2394 msgid ""
2395 "For information on using multiple handles and threads, see the section "
2396 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2397 msgstr ""
2398
2399 #. type: =head2
2400 #: ../src/guestfs.pod:1257
2401 msgid "guestfs_create"
2402 msgstr ""
2403
2404 #. type: verbatim
2405 #: ../src/guestfs.pod:1259
2406 #, no-wrap
2407 msgid ""
2408 " guestfs_h *guestfs_create (void);\n"
2409 "\n"
2410 msgstr ""
2411
2412 #. type: textblock
2413 #: ../src/guestfs.pod:1261
2414 msgid "Create a connection handle."
2415 msgstr ""
2416
2417 #. type: textblock
2418 #: ../src/guestfs.pod:1263
2419 msgid ""
2420 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2421 "on the handle at least once."
2422 msgstr ""
2423
2424 #. type: textblock
2425 #: ../src/guestfs.pod:1266
2426 msgid ""
2427 "This function returns a non-NULL pointer to a handle on success or NULL on "
2428 "error."
2429 msgstr ""
2430
2431 #. type: textblock
2432 #: ../src/guestfs.pod:1269
2433 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2434 msgstr ""
2435
2436 #. type: textblock
2437 #: ../src/guestfs.pod:1271
2438 msgid ""
2439 "You may also want to configure error handling for the handle.  See L</ERROR "
2440 "HANDLING> section below."
2441 msgstr ""
2442
2443 #. type: =head2
2444 #: ../src/guestfs.pod:1274
2445 msgid "guestfs_close"
2446 msgstr ""
2447
2448 #. type: verbatim
2449 #: ../src/guestfs.pod:1276
2450 #, no-wrap
2451 msgid ""
2452 " void guestfs_close (guestfs_h *g);\n"
2453 "\n"
2454 msgstr ""
2455
2456 #. type: textblock
2457 #: ../src/guestfs.pod:1278
2458 msgid "This closes the connection handle and frees up all resources used."
2459 msgstr ""
2460
2461 #. type: =head1
2462 #: ../src/guestfs.pod:1280
2463 msgid "ERROR HANDLING"
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../src/guestfs.pod:1282
2468 msgid ""
2469 "API functions can return errors.  For example, almost all functions that "
2470 "return C<int> will return C<-1> to indicate an error."
2471 msgstr ""
2472
2473 #. type: textblock
2474 #: ../src/guestfs.pod:1285
2475 msgid ""
2476 "Additional information is available for errors: an error message string and "
2477 "optionally an error number (errno) if the thing that failed was a system "
2478 "call."
2479 msgstr ""
2480
2481 #. type: textblock
2482 #: ../src/guestfs.pod:1289
2483 msgid ""
2484 "You can get at the additional information about the last error on the handle "
2485 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2486 "up an error handler with L</guestfs_set_error_handler>."
2487 msgstr ""
2488
2489 #. type: textblock
2490 #: ../src/guestfs.pod:1294
2491 msgid ""
2492 "When the handle is created, a default error handler is installed which "
2493 "prints the error message string to C<stderr>.  For small short-running "
2494 "command line programs it is sufficient to do:"
2495 msgstr ""
2496
2497 #. type: verbatim
2498 #: ../src/guestfs.pod:1298
2499 #, no-wrap
2500 msgid ""
2501 " if (guestfs_launch (g) == -1)\n"
2502 "   exit (EXIT_FAILURE);\n"
2503 "\n"
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../src/guestfs.pod:1301
2508 msgid ""
2509 "since the default error handler will ensure that an error message has been "
2510 "printed to C<stderr> before the program exits."
2511 msgstr ""
2512
2513 #. type: textblock
2514 #: ../src/guestfs.pod:1304
2515 msgid ""
2516 "For other programs the caller will almost certainly want to install an "
2517 "alternate error handler or do error handling in-line like this:"
2518 msgstr ""
2519
2520 #. type: verbatim
2521 #: ../src/guestfs.pod:1307
2522 #, no-wrap
2523 msgid ""
2524 " g = guestfs_create ();\n"
2525 " \n"
2526 msgstr ""
2527
2528 #. type: verbatim
2529 #: ../src/guestfs.pod:1309
2530 #, no-wrap
2531 msgid ""
2532 " /* This disables the default behaviour of printing errors\n"
2533 "    on stderr. */\n"
2534 " guestfs_set_error_handler (g, NULL, NULL);\n"
2535 " \n"
2536 msgstr ""
2537
2538 #. type: verbatim
2539 #: ../src/guestfs.pod:1313
2540 #, no-wrap
2541 msgid ""
2542 " if (guestfs_launch (g) == -1) {\n"
2543 "   /* Examine the error message and print it etc. */\n"
2544 "   char *msg = guestfs_last_error (g);\n"
2545 "   int errnum = guestfs_last_errno (g);\n"
2546 "   fprintf (stderr, \"%s\\n\", msg);\n"
2547 "   /* ... */\n"
2548 "  }\n"
2549 "\n"
2550 msgstr ""
2551
2552 #. type: textblock
2553 #: ../src/guestfs.pod:1321
2554 msgid ""
2555 "Out of memory errors are handled differently.  The default action is to call "
2556 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2557 "L</guestfs_set_out_of_memory_handler>."
2558 msgstr ""
2559
2560 #. type: textblock
2561 #: ../src/guestfs.pod:1325
2562 msgid ""
2563 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2564 "because there is no handle if this happens there is no way to get additional "
2565 "error information.  However L</guestfs_create> is supposed to be a "
2566 "lightweight operation which can only fail because of insufficient memory (it "
2567 "returns NULL in this case)."
2568 msgstr ""
2569
2570 #. type: =head2
2571 #: ../src/guestfs.pod:1331
2572 msgid "guestfs_last_error"
2573 msgstr ""
2574
2575 #. type: verbatim
2576 #: ../src/guestfs.pod:1333
2577 #, no-wrap
2578 msgid ""
2579 " const char *guestfs_last_error (guestfs_h *g);\n"
2580 "\n"
2581 msgstr ""
2582
2583 #. type: textblock
2584 #: ../src/guestfs.pod:1335
2585 msgid ""
2586 "This returns the last error message that happened on C<g>.  If there has not "
2587 "been an error since the handle was created, then this returns C<NULL>."
2588 msgstr ""
2589
2590 #. type: textblock
2591 #: ../src/guestfs.pod:1339
2592 msgid ""
2593 "The lifetime of the returned string is until the next error occurs, or "
2594 "L</guestfs_close> is called."
2595 msgstr ""
2596
2597 #. type: =head2
2598 #: ../src/guestfs.pod:1342
2599 msgid "guestfs_last_errno"
2600 msgstr ""
2601
2602 #. type: verbatim
2603 #: ../src/guestfs.pod:1344
2604 #, no-wrap
2605 msgid ""
2606 " int guestfs_last_errno (guestfs_h *g);\n"
2607 "\n"
2608 msgstr ""
2609
2610 #. type: textblock
2611 #: ../src/guestfs.pod:1346
2612 msgid "This returns the last error number (errno) that happened on C<g>."
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../src/guestfs.pod:1348
2617 msgid "If successful, an errno integer not equal to zero is returned."
2618 msgstr ""
2619
2620 #. type: textblock
2621 #: ../src/guestfs.pod:1350
2622 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2623 msgstr ""
2624
2625 #. type: textblock
2626 #: ../src/guestfs.pod:1357
2627 msgid "There has not been any error on the handle."
2628 msgstr ""
2629
2630 #. type: textblock
2631 #: ../src/guestfs.pod:1361
2632 msgid ""
2633 "There has been an error but the errno was meaningless.  This corresponds to "
2634 "the case where the error did not come from a failed system call, but for "
2635 "some other reason."
2636 msgstr ""
2637
2638 #. type: textblock
2639 #: ../src/guestfs.pod:1367
2640 msgid ""
2641 "There was an error from a failed system call, but for some reason the errno "
2642 "was not captured and returned.  This usually indicates a bug in libguestfs."
2643 msgstr ""
2644
2645 #. type: textblock
2646 #: ../src/guestfs.pod:1373
2647 msgid ""
2648 "Libguestfs tries to convert the errno from inside the applicance into a "
2649 "corresponding errno for the caller (not entirely trivial: the appliance "
2650 "might be running a completely different operating system from the library "
2651 "and error numbers are not standardized across Un*xen).  If this could not be "
2652 "done, then the error is translated to C<EINVAL>.  In practice this should "
2653 "only happen in very rare circumstances."
2654 msgstr ""
2655
2656 #. type: =head2
2657 #: ../src/guestfs.pod:1381
2658 msgid "guestfs_set_error_handler"
2659 msgstr ""
2660
2661 #. type: verbatim
2662 #: ../src/guestfs.pod:1383
2663 #, no-wrap
2664 msgid ""
2665 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2666 "                                           void *opaque,\n"
2667 "                                           const char *msg);\n"
2668 " void guestfs_set_error_handler (guestfs_h *g,\n"
2669 "                                 guestfs_error_handler_cb cb,\n"
2670 "                                 void *opaque);\n"
2671 "\n"
2672 msgstr ""
2673
2674 #. type: textblock
2675 #: ../src/guestfs.pod:1390
2676 msgid ""
2677 "The callback C<cb> will be called if there is an error.  The parameters "
2678 "passed to the callback are an opaque data pointer and the error message "
2679 "string."
2680 msgstr ""
2681
2682 #. type: textblock
2683 #: ../src/guestfs.pod:1394
2684 msgid ""
2685 "C<errno> is not passed to the callback.  To get that the callback must call "
2686 "L</guestfs_last_errno>."
2687 msgstr ""
2688
2689 #. type: textblock
2690 #: ../src/guestfs.pod:1397
2691 msgid ""
2692 "Note that the message string C<msg> is freed as soon as the callback "
2693 "function returns, so if you want to stash it somewhere you must make your "
2694 "own copy."
2695 msgstr ""
2696
2697 #. type: textblock
2698 #: ../src/guestfs.pod:1401
2699 msgid "The default handler prints messages on C<stderr>."
2700 msgstr ""
2701
2702 #. type: textblock
2703 #: ../src/guestfs.pod:1403
2704 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2705 msgstr ""
2706
2707 #. type: =head2
2708 #: ../src/guestfs.pod:1405
2709 msgid "guestfs_get_error_handler"
2710 msgstr ""
2711
2712 #. type: verbatim
2713 #: ../src/guestfs.pod:1407
2714 #, no-wrap
2715 msgid ""
2716 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2717 "                                                     void **opaque_rtn);\n"
2718 "\n"
2719 msgstr ""
2720
2721 #. type: textblock
2722 #: ../src/guestfs.pod:1410
2723 msgid "Returns the current error handler callback."
2724 msgstr ""
2725
2726 #. type: =head2
2727 #: ../src/guestfs.pod:1412
2728 msgid "guestfs_set_out_of_memory_handler"
2729 msgstr ""
2730
2731 #. type: verbatim
2732 #: ../src/guestfs.pod:1414
2733 #, no-wrap
2734 msgid ""
2735 " typedef void (*guestfs_abort_cb) (void);\n"
2736 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2737 "                                        guestfs_abort_cb);\n"
2738 "\n"
2739 msgstr ""
2740
2741 #. type: textblock
2742 #: ../src/guestfs.pod:1418
2743 msgid ""
2744 "The callback C<cb> will be called if there is an out of memory situation.  "
2745 "I<Note this callback must not return>."
2746 msgstr ""
2747
2748 #. type: textblock
2749 #: ../src/guestfs.pod:1421
2750 msgid "The default is to call L<abort(3)>."
2751 msgstr ""
2752
2753 #. type: textblock
2754 #: ../src/guestfs.pod:1423
2755 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2756 msgstr ""
2757
2758 #. type: =head2
2759 #: ../src/guestfs.pod:1426
2760 msgid "guestfs_get_out_of_memory_handler"
2761 msgstr ""
2762
2763 #. type: verbatim
2764 #: ../src/guestfs.pod:1428
2765 #, no-wrap
2766 msgid ""
2767 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2768 "\n"
2769 msgstr ""
2770
2771 #. type: textblock
2772 #: ../src/guestfs.pod:1430
2773 msgid "This returns the current out of memory handler."
2774 msgstr ""
2775
2776 #. type: =head1
2777 #: ../src/guestfs.pod:1432
2778 msgid "API CALLS"
2779 msgstr ""
2780
2781 #. type: textblock
2782 #: ../src/guestfs.pod:1434 ../fish/guestfish.pod:958
2783 msgid "@ACTIONS@"
2784 msgstr ""
2785
2786 #. type: =head1
2787 #: ../src/guestfs.pod:1436
2788 msgid "STRUCTURES"
2789 msgstr ""
2790
2791 #. type: textblock
2792 #: ../src/guestfs.pod:1438
2793 msgid "@STRUCTS@"
2794 msgstr ""
2795
2796 #. type: =head1
2797 #: ../src/guestfs.pod:1440
2798 msgid "AVAILABILITY"
2799 msgstr ""
2800
2801 #. type: =head2
2802 #: ../src/guestfs.pod:1442
2803 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2804 msgstr ""
2805
2806 #. type: textblock
2807 #: ../src/guestfs.pod:1444
2808 msgid ""
2809 "Using L</guestfs_available> you can test availability of the following "
2810 "groups of functions.  This test queries the appliance to see if the "
2811 "appliance you are currently using supports the functionality."
2812 msgstr ""
2813
2814 #. type: textblock
2815 #: ../src/guestfs.pod:1449
2816 msgid "@AVAILABILITY@"
2817 msgstr ""
2818
2819 #. type: =head2
2820 #: ../src/guestfs.pod:1451
2821 msgid "GUESTFISH supported COMMAND"
2822 msgstr ""
2823
2824 #. type: textblock
2825 #: ../src/guestfs.pod:1453
2826 msgid ""
2827 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2828 "prints out the available groups and whether they are supported by this build "
2829 "of libguestfs.  Note however that you have to do C<run> first."
2830 msgstr ""
2831
2832 #. type: =head2
2833 #: ../src/guestfs.pod:1458
2834 msgid "SINGLE CALLS AT COMPILE TIME"
2835 msgstr ""
2836
2837 #. type: textblock
2838 #: ../src/guestfs.pod:1460
2839 msgid ""
2840 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2841 "function, such as:"
2842 msgstr ""
2843
2844 #. type: verbatim
2845 #: ../src/guestfs.pod:1463
2846 #, no-wrap
2847 msgid ""
2848 " #define LIBGUESTFS_HAVE_DD 1\n"
2849 "\n"
2850 msgstr ""
2851
2852 #. type: textblock
2853 #: ../src/guestfs.pod:1465
2854 msgid "if L</guestfs_dd> is available."
2855 msgstr ""
2856
2857 #. type: textblock
2858 #: ../src/guestfs.pod:1467
2859 msgid ""
2860 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2861 "function is available at compile time, we recommended using build tools such "
2862 "as autoconf or cmake.  For example in autotools you could use:"
2863 msgstr ""
2864
2865 #. type: verbatim
2866 #: ../src/guestfs.pod:1472
2867 #, no-wrap
2868 msgid ""
2869 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2870 " AC_CHECK_FUNCS([guestfs_dd])\n"
2871 "\n"
2872 msgstr ""
2873
2874 #. type: textblock
2875 #: ../src/guestfs.pod:1475
2876 msgid ""
2877 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2878 "in your program."
2879 msgstr ""
2880
2881 #. type: =head2
2882 #: ../src/guestfs.pod:1478
2883 msgid "SINGLE CALLS AT RUN TIME"
2884 msgstr ""
2885
2886 #. type: textblock
2887 #: ../src/guestfs.pod:1480
2888 msgid ""
2889 "Testing at compile time doesn't guarantee that a function really exists in "
2890 "the library.  The reason is that you might be dynamically linked against a "
2891 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2892 "This situation unfortunately results in a segmentation fault, which is a "
2893 "shortcoming of the C dynamic linking system itself."
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../src/guestfs.pod:1487
2898 msgid ""
2899 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2900 "in this example program (note that you still need the compile time check as "
2901 "well):"
2902 msgstr ""
2903
2904 #. type: verbatim
2905 #: ../src/guestfs.pod:1491
2906 #, no-wrap
2907 msgid ""
2908 " #include <stdio.h>\n"
2909 " #include <stdlib.h>\n"
2910 " #include <unistd.h>\n"
2911 " #include <dlfcn.h>\n"
2912 " #include <guestfs.h>\n"
2913 " \n"
2914 msgstr ""
2915
2916 #. type: verbatim
2917 #: ../src/guestfs.pod:1497
2918 #, no-wrap
2919 msgid ""
2920 " main ()\n"
2921 " {\n"
2922 " #ifdef LIBGUESTFS_HAVE_DD\n"
2923 "   void *dl;\n"
2924 "   int has_function;\n"
2925 " \n"
2926 msgstr ""
2927
2928 #. type: verbatim
2929 #: ../src/guestfs.pod:1503
2930 #, no-wrap
2931 msgid ""
2932 "   /* Test if the function guestfs_dd is really available. */\n"
2933 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2934 "   if (!dl) {\n"
2935 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2936 "     exit (EXIT_FAILURE);\n"
2937 "   }\n"
2938 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2939 "   dlclose (dl);\n"
2940 " \n"
2941 msgstr ""
2942
2943 #. type: verbatim
2944 #: ../src/guestfs.pod:1512
2945 #, no-wrap
2946 msgid ""
2947 "   if (!has_function)\n"
2948 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2949 "   else {\n"
2950 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2951 "     /* Now it's safe to call\n"
2952 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2953 "     */\n"
2954 "   }\n"
2955 " #else\n"
2956 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2957 " #endif\n"
2958 "  }\n"
2959 "\n"
2960 msgstr ""
2961
2962 #. type: textblock
2963 #: ../src/guestfs.pod:1525
2964 msgid ""
2965 "You may think the above is an awful lot of hassle, and it is.  There are "
2966 "other ways outside of the C linking system to ensure that this kind of "
2967 "incompatibility never arises, such as using package versioning:"
2968 msgstr ""
2969
2970 #. type: verbatim
2971 #: ../src/guestfs.pod:1530
2972 #, no-wrap
2973 msgid ""
2974 " Requires: libguestfs >= 1.0.80\n"
2975 "\n"
2976 msgstr ""
2977
2978 #. type: =head1
2979 #: ../src/guestfs.pod:1532
2980 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2981 msgstr ""
2982
2983 #. type: textblock
2984 #: ../src/guestfs.pod:1534
2985 msgid ""
2986 "A recent feature of the API is the introduction of calls which take optional "
2987 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2988 "takes variable arguments (ie. C<...>), as in this example:"
2989 msgstr ""
2990
2991 #. type: verbatim
2992 #: ../src/guestfs.pod:1539
2993 #, no-wrap
2994 msgid ""
2995 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2996 "\n"
2997 msgstr ""
2998
2999 #. type: textblock
3000 #: ../src/guestfs.pod:1541
3001 msgid ""
3002 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3003 "call with no optional arguments specified:"
3004 msgstr ""
3005
3006 #. type: verbatim
3007 #: ../src/guestfs.pod:1544
3008 #, no-wrap
3009 msgid ""
3010 " guestfs_add_drive_opts (g, filename, -1);\n"
3011 "\n"
3012 msgstr ""
3013
3014 #. type: textblock
3015 #: ../src/guestfs.pod:1546
3016 msgid "With a single optional argument:"
3017 msgstr ""
3018
3019 #. type: verbatim
3020 #: ../src/guestfs.pod:1548
3021 #, no-wrap
3022 msgid ""
3023 " guestfs_add_drive_opts (g, filename,\n"
3024 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3025 "                         -1);\n"
3026 "\n"
3027 msgstr ""
3028
3029 #. type: textblock
3030 #: ../src/guestfs.pod:1552
3031 msgid "With two:"
3032 msgstr ""
3033
3034 #. type: verbatim
3035 #: ../src/guestfs.pod:1554
3036 #, no-wrap
3037 msgid ""
3038 " guestfs_add_drive_opts (g, filename,\n"
3039 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3040 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3041 "                         -1);\n"
3042 "\n"
3043 msgstr ""
3044
3045 #. type: textblock
3046 #: ../src/guestfs.pod:1559
3047 msgid ""
3048 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3049 "happen!"
3050 msgstr ""
3051
3052 #. type: =head2
3053 #: ../src/guestfs.pod:1562
3054 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3055 msgstr ""
3056
3057 #. type: textblock
3058 #: ../src/guestfs.pod:1564
3059 msgid ""
3060 "The second variant has the same name with the suffix C<_va>, which works the "
3061 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3062 "example function, this is declared:"
3063 msgstr ""
3064
3065 #. type: verbatim
3066 #: ../src/guestfs.pod:1568
3067 #, no-wrap
3068 msgid ""
3069 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3070 "                                va_list args);\n"
3071 "\n"
3072 msgstr ""
3073
3074 #. type: =head2
3075 #: ../src/guestfs.pod:1571
3076 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3077 msgstr ""
3078
3079 #. type: textblock
3080 #: ../src/guestfs.pod:1573
3081 msgid ""
3082 "The third variant is useful where you need to construct these calls.  You "
3083 "pass in a structure where you fill in the optional fields.  The structure "
3084 "has a bitmask as the first element which you must set to indicate which "
3085 "fields you have filled in.  For our example function the structure and call "
3086 "are declared:"
3087 msgstr ""
3088
3089 #. type: verbatim
3090 #: ../src/guestfs.pod:1579
3091 #, no-wrap
3092 msgid ""
3093 " struct guestfs_add_drive_opts_argv {\n"
3094 "   uint64_t bitmask;\n"
3095 "   int readonly;\n"
3096 "   const char *format;\n"
3097 "   /* ... */\n"
3098 " };\n"
3099 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3100 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3101 "\n"
3102 msgstr ""
3103
3104 #. type: textblock
3105 #: ../src/guestfs.pod:1588
3106 msgid "You could call it like this:"
3107 msgstr ""
3108
3109 #. type: verbatim
3110 #: ../src/guestfs.pod:1590
3111 #, no-wrap
3112 msgid ""
3113 " struct guestfs_add_drive_opts_argv optargs = {\n"
3114 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3115 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3116 "   .readonly = 1,\n"
3117 "   .format = \"qcow2\"\n"
3118 " };\n"
3119 " \n"
3120 msgstr ""
3121
3122 #. type: verbatim
3123 #: ../src/guestfs.pod:1597
3124 #, no-wrap
3125 msgid ""
3126 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3127 "\n"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../src/guestfs.pod:1599 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1253 ../tools/virt-win-reg.pl:532
3132 msgid "Notes:"
3133 msgstr ""
3134
3135 #. type: textblock
3136 #: ../src/guestfs.pod:1605
3137 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3138 msgstr ""
3139
3140 #. type: textblock
3141 #: ../src/guestfs.pod:1610
3142 msgid "You do not need to fill in all fields of the structure."
3143 msgstr ""
3144
3145 #. type: textblock
3146 #: ../src/guestfs.pod:1614
3147 msgid ""
3148 "There must be a one-to-one correspondence between fields of the structure "
3149 "that are filled in, and bits set in the bitmask."
3150 msgstr ""
3151
3152 #. type: =head2
3153 #: ../src/guestfs.pod:1619
3154 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3155 msgstr ""
3156
3157 #. type: textblock
3158 #: ../src/guestfs.pod:1621
3159 msgid ""
3160 "In other languages, optional arguments are expressed in the way that is "
3161 "natural for that language.  We refer you to the language-specific "
3162 "documentation for more details on that."
3163 msgstr ""
3164
3165 #. type: textblock
3166 #: ../src/guestfs.pod:1625
3167 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3168 msgstr ""
3169
3170 #. type: =head2
3171 #: ../src/guestfs.pod:1627
3172 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3173 msgstr ""
3174
3175 #. type: textblock
3176 #: ../src/guestfs.pod:1629
3177 msgid ""
3178 "The child process generates events in some situations.  Current events "
3179 "include: receiving a log message, the child process exits."
3180 msgstr ""
3181
3182 #. type: textblock
3183 #: ../src/guestfs.pod:1632
3184 msgid ""
3185 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3186 "types of events."
3187 msgstr ""
3188
3189 #. type: textblock
3190 #: ../src/guestfs.pod:1635
3191 msgid ""
3192 "Only I<one callback of each type> can be registered for each handle.  "
3193 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3194 "that type.  Cancel all callbacks of this type by calling this function with "
3195 "C<cb> set to C<NULL>."
3196 msgstr ""
3197
3198 #. type: =head2
3199 #: ../src/guestfs.pod:1640
3200 msgid "guestfs_set_log_message_callback"
3201 msgstr ""
3202
3203 #. type: verbatim
3204 #: ../src/guestfs.pod:1642
3205 #, no-wrap
3206 msgid ""
3207 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3208 "                                         char *buf, int len);\n"
3209 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3210 "                                        guestfs_log_message_cb cb,\n"
3211 "                                        void *opaque);\n"
3212 "\n"
3213 msgstr ""
3214
3215 #. type: textblock
3216 #: ../src/guestfs.pod:1648
3217 msgid ""
3218 "The callback function C<cb> will be called whenever qemu or the guest writes "
3219 "anything to the console."
3220 msgstr ""
3221
3222 #. type: textblock
3223 #: ../src/guestfs.pod:1651
3224 msgid "Use this function to capture kernel messages and similar."
3225 msgstr ""
3226
3227 #. type: textblock
3228 #: ../src/guestfs.pod:1653
3229 msgid ""
3230 "Normally there is no log message handler, and log messages are just "
3231 "discarded."
3232 msgstr ""
3233
3234 #. type: =head2
3235 #: ../src/guestfs.pod:1656
3236 msgid "guestfs_set_subprocess_quit_callback"
3237 msgstr ""
3238
3239 #. type: verbatim
3240 #: ../src/guestfs.pod:1658
3241 #, no-wrap
3242 msgid ""
3243 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3244 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3245 "                                            guestfs_subprocess_quit_cb cb,\n"
3246 "                                            void *opaque);\n"
3247 "\n"
3248 msgstr ""
3249
3250 #. type: textblock
3251 #: ../src/guestfs.pod:1663
3252 msgid ""
3253 "The callback function C<cb> will be called when the child process quits, "
3254 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3255 "corresponds to a transition from any state to the CONFIG state)."
3256 msgstr ""
3257
3258 #. type: =head2
3259 #: ../src/guestfs.pod:1668
3260 msgid "guestfs_set_launch_done_callback"
3261 msgstr ""
3262
3263 #. type: verbatim
3264 #: ../src/guestfs.pod:1670
3265 #, no-wrap
3266 msgid ""
3267 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3268 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3269 "                                        guestfs_launch_done_cb cb,\n"
3270 "                                        void *opaque);\n"
3271 "\n"
3272 msgstr ""
3273
3274 #. type: textblock
3275 #: ../src/guestfs.pod:1675
3276 msgid ""
3277 "The callback function C<cb> will be called when the child process becomes "
3278 "ready first time after it has been launched.  (This corresponds to a "
3279 "transition from LAUNCHING to the READY state)."
3280 msgstr ""
3281
3282 #. type: =head2
3283 #: ../src/guestfs.pod:1679
3284 msgid "guestfs_set_close_callback"
3285 msgstr ""
3286
3287 #. type: verbatim
3288 #: ../src/guestfs.pod:1681
3289 #, no-wrap
3290 msgid ""
3291 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3292 " void guestfs_set_close_callback (guestfs_h *g,\n"
3293 "                                  guestfs_close_cb cb,\n"
3294 "                                  void *opaque);\n"
3295 "\n"
3296 msgstr ""
3297
3298 #. type: textblock
3299 #: ../src/guestfs.pod:1686
3300 msgid ""
3301 "The callback function C<cb> will be called while the handle is being closed "
3302 "(synchronously from L</guestfs_close>)."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../src/guestfs.pod:1689
3307 msgid ""
3308 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3309 "handles that are open when the program exits.  This means that this callback "
3310 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3311 "problems in higher-level languages (eg. if your HLL interpreter has already "
3312 "been cleaned up by the time this is called, and if your callback then jumps "
3313 "into some HLL function)."
3314 msgstr ""
3315
3316 #. type: =head2
3317 #: ../src/guestfs.pod:1697
3318 msgid "guestfs_set_progress_callback"
3319 msgstr ""
3320
3321 #. type: verbatim
3322 #: ../src/guestfs.pod:1699
3323 #, no-wrap
3324 msgid ""
3325 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3326 "                                      int proc_nr, int serial,\n"
3327 "                                      uint64_t position, uint64_t total);\n"
3328 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3329 "                                     guestfs_progress_cb cb,\n"
3330 "                                     void *opaque);\n"
3331 "\n"
3332 msgstr ""
3333
3334 #. type: textblock
3335 #: ../src/guestfs.pod:1706
3336 msgid ""
3337 "Some long-running operations can generate progress messages.  If this "
3338 "callback is registered, then it will be called each time a progress message "
3339 "is generated (usually two seconds after the operation started, and three "
3340 "times per second thereafter until it completes, although the frequency may "
3341 "change in future versions)."
3342 msgstr ""
3343
3344 #. type: textblock
3345 #: ../src/guestfs.pod:1712
3346 msgid ""
3347 "The callback receives two numbers: C<position> and C<total>.  The units of "
3348 "C<total> are not defined, although for some operations C<total> may relate "
3349 "in some way to the amount of data to be transferred (eg. in bytes or "
3350 "megabytes), and C<position> may be the portion which has been transferred."
3351 msgstr ""
3352
3353 #. type: textblock
3354 #: ../src/guestfs.pod:1718
3355 msgid "The only defined and stable parts of the API are:"
3356 msgstr ""
3357
3358 #. type: textblock
3359 #: ../src/guestfs.pod:1724
3360 msgid ""
3361 "The callback can display to the user some type of progress bar or indicator "
3362 "which shows the ratio of C<position>:C<total>."
3363 msgstr ""
3364
3365 #. type: textblock
3366 #: ../src/guestfs.pod:1729
3367 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3368 msgstr ""
3369
3370 #. type: textblock
3371 #: ../src/guestfs.pod:1733
3372 msgid ""
3373 "If any progress notification is sent during a call, then a final progress "
3374 "notification is always sent when C<position> = C<total>."
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../src/guestfs.pod:1736
3379 msgid ""
3380 "This is to simplify caller code, so callers can easily set the progress "
3381 "indicator to \"100%\" at the end of the operation, without requiring special "
3382 "code to detect this case."
3383 msgstr ""
3384
3385 #. type: textblock
3386 #: ../src/guestfs.pod:1742
3387 msgid ""
3388 "The callback also receives the procedure number and serial number of the "
3389 "call.  These are only useful for debugging protocol issues, and the callback "
3390 "can normally ignore them.  The callback may want to print these numbers in "
3391 "error messages or debugging messages."
3392 msgstr ""
3393
3394 #. type: =head1
3395 #: ../src/guestfs.pod:1747
3396 msgid "PRIVATE DATA AREA"
3397 msgstr ""
3398
3399 #. type: textblock
3400 #: ../src/guestfs.pod:1749
3401 msgid ""
3402 "You can attach named pieces of private data to the libguestfs handle, and "
3403 "fetch them by name for the lifetime of the handle.  This is called the "
3404 "private data area and is only available from the C API."
3405 msgstr ""
3406
3407 #. type: textblock
3408 #: ../src/guestfs.pod:1753
3409 msgid "To attach a named piece of data, use the following call:"
3410 msgstr ""
3411
3412 #. type: verbatim
3413 #: ../src/guestfs.pod:1755
3414 #, no-wrap
3415 msgid ""
3416 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3417 "\n"
3418 msgstr ""
3419
3420 #. type: textblock
3421 #: ../src/guestfs.pod:1757
3422 msgid ""
3423 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3424 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3425 "overwritten."
3426 msgstr ""
3427
3428 #. type: textblock
3429 #: ../src/guestfs.pod:1761
3430 msgid ""
3431 "You can use any C<key> you want, but names beginning with an underscore "
3432 "character are reserved for internal libguestfs purposes (for implementing "
3433 "language bindings).  It is recommended to prefix the name with some unique "
3434 "string to avoid collisions with other users."
3435 msgstr ""
3436
3437 #. type: textblock
3438 #: ../src/guestfs.pod:1766
3439 msgid "To retrieve the pointer, use:"
3440 msgstr ""
3441
3442 #. type: verbatim
3443 #: ../src/guestfs.pod:1768
3444 #, no-wrap
3445 msgid ""
3446 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3447 "\n"
3448 msgstr ""
3449
3450 #. type: textblock
3451 #: ../src/guestfs.pod:1770
3452 msgid ""
3453 "This function returns C<NULL> if either no data is found associated with "
3454 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3455 "C<NULL>."
3456 msgstr ""
3457
3458 #. type: textblock
3459 #: ../src/guestfs.pod:1774
3460 msgid ""
3461 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3462 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3463 "all.  In particular, libguestfs does I<not> try to free the data when the "
3464 "handle is closed.  If the data must be freed, then the caller must either "
3465 "free it before calling L</guestfs_close> or must set up a close callback to "
3466 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3467 "can be registered for a handle)."
3468 msgstr ""
3469
3470 #. type: textblock
3471 #: ../src/guestfs.pod:1782
3472 msgid ""
3473 "The private data area is implemented using a hash table, and should be "
3474 "reasonably efficient for moderate numbers of keys."
3475 msgstr ""
3476
3477 #. type: =end
3478 #: ../src/guestfs.pod:1785 ../src/guestfs.pod:1790
3479 msgid "html"
3480 msgstr ""
3481
3482 #. type: textblock
3483 #: ../src/guestfs.pod:1787
3484 msgid ""
3485 "<!-- old anchor for the next section --> <a "
3486 "name=\"state_machine_and_low_level_event_api\"/>"
3487 msgstr ""
3488
3489 #. type: =head1
3490 #: ../src/guestfs.pod:1792
3491 msgid "ARCHITECTURE"
3492 msgstr ""
3493
3494 #. type: textblock
3495 #: ../src/guestfs.pod:1794
3496 msgid ""
3497 "Internally, libguestfs is implemented by running an appliance (a special "
3498 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3499 "process of the main program."
3500 msgstr ""
3501
3502 #. type: verbatim
3503 #: ../src/guestfs.pod:1798
3504 #, no-wrap
3505 msgid ""
3506 "  ___________________\n"
3507 " /                   \\\n"
3508 " | main program      |\n"
3509 " |                   |\n"
3510 " |                   |           child process / appliance\n"
3511 " |                   |           __________________________\n"
3512 " |                   |          / qemu                     \\\n"
3513 " +-------------------+   RPC    |      +-----------------+ |\n"
3514 " | libguestfs     <--------------------> guestfsd        | |\n"
3515 " |                   |          |      +-----------------+ |\n"
3516 " \\___________________/          |      | Linux kernel    | |\n"
3517 "                                |      +--^--------------+ |\n"
3518 "                                \\_________|________________/\n"
3519 "                                          |\n"
3520 "                                   _______v______\n"
3521 "                                  /              \\\n"
3522 "                                  | Device or    |\n"
3523 "                                  | disk image   |\n"
3524 "                                  \\______________/\n"
3525 "\n"
3526 msgstr ""
3527
3528 #. type: textblock
3529 #: ../src/guestfs.pod:1818
3530 msgid ""
3531 "The library, linked to the main program, creates the child process and hence "
3532 "the appliance in the L</guestfs_launch> function."
3533 msgstr ""
3534
3535 #. type: textblock
3536 #: ../src/guestfs.pod:1821
3537 msgid ""
3538 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3539 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3540 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3541 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3542 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3543 "attached to the qemu process which translates device access by the "
3544 "appliance's Linux kernel into accesses to the image."
3545 msgstr ""
3546
3547 #. type: textblock
3548 #: ../src/guestfs.pod:1830
3549 msgid ""
3550 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3551 "Although the disk image you are attached to might also be used by some "
3552 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3553 "care if both libguestfs's qemu process and your virtual machine are trying "
3554 "to update the disk image at the same time, since these usually results in "
3555 "massive disk corruption)."
3556 msgstr ""
3557
3558 #. type: =head1
3559 #: ../src/guestfs.pod:1837
3560 msgid "STATE MACHINE"
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../src/guestfs.pod:1839
3565 msgid "libguestfs uses a state machine to model the child process:"
3566 msgstr ""
3567
3568 #. type: verbatim
3569 #: ../src/guestfs.pod:1841
3570 #, no-wrap
3571 msgid ""
3572 "                         |\n"
3573 "                    guestfs_create\n"
3574 "                         |\n"
3575 "                         |\n"
3576 "                     ____V_____\n"
3577 "                    /          \\\n"
3578 "                    |  CONFIG  |\n"
3579 "                    \\__________/\n"
3580 "                     ^ ^   ^  \\\n"
3581 "                    /  |    \\  \\ guestfs_launch\n"
3582 "                   /   |    _\\__V______\n"
3583 "                  /    |   /           \\\n"
3584 "                 /     |   | LAUNCHING |\n"
3585 "                /      |   \\___________/\n"
3586 "               /       |       /\n"
3587 "              /        |  guestfs_launch\n"
3588 "             /         |     /\n"
3589 "    ______  /        __|____V\n"
3590 "   /      \\ ------> /        \\\n"
3591 "   | BUSY |         | READY  |\n"
3592 "   \\______/ <------ \\________/\n"
3593 "\n"
3594 msgstr ""
3595
3596 #. type: textblock
3597 #: ../src/guestfs.pod:1863
3598 msgid ""
3599 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3600 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3601 "(3) alternating between READY and BUSY as commands are issued to, and "
3602 "carried out by, the child process."
3603 msgstr ""
3604
3605 #. type: textblock
3606 #: ../src/guestfs.pod:1868
3607 msgid ""
3608 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3609 "asynchronously at any time (eg. due to some internal error), and that causes "
3610 "the state to transition back to CONFIG."
3611 msgstr ""
3612
3613 #. type: textblock
3614 #: ../src/guestfs.pod:1872
3615 msgid ""
3616 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3617 "issued when in the CONFIG state."
3618 msgstr ""
3619
3620 #. type: textblock
3621 #: ../src/guestfs.pod:1875
3622 msgid ""
3623 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3624 "L</guestfs_launch> blocks until the child process is READY to accept "
3625 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3626 "moves the state from CONFIG to LAUNCHING while it is running."
3627 msgstr ""
3628
3629 #. type: textblock
3630 #: ../src/guestfs.pod:1881
3631 msgid ""
3632 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3633 "state.  These API calls block waiting for the command to be carried out "
3634 "(ie. the state to transition to BUSY and then back to READY).  There are no "
3635 "non-blocking versions, and no way to issue more than one command per handle "
3636 "at the same time."
3637 msgstr ""
3638
3639 #. type: textblock
3640 #: ../src/guestfs.pod:1887
3641 msgid ""
3642 "Finally, the child process sends asynchronous messages back to the main "
3643 "program, such as kernel log messages.  You can register a callback to "
3644 "receive these messages."
3645 msgstr ""
3646
3647 #. type: =head1
3648 #: ../src/guestfs.pod:1891
3649 msgid "INTERNALS"
3650 msgstr ""
3651
3652 #. type: =head2
3653 #: ../src/guestfs.pod:1893
3654 msgid "COMMUNICATION PROTOCOL"
3655 msgstr ""
3656
3657 #. type: textblock
3658 #: ../src/guestfs.pod:1895
3659 msgid ""
3660 "Don't rely on using this protocol directly.  This section documents how it "
3661 "currently works, but it may change at any time."
3662 msgstr ""
3663
3664 #. type: textblock
3665 #: ../src/guestfs.pod:1898
3666 msgid ""
3667 "The protocol used to talk between the library and the daemon running inside "
3668 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3669 "1014, RFC 1832, RFC 4506)."
3670 msgstr ""
3671
3672 #. type: textblock
3673 #: ../src/guestfs.pod:1902
3674 msgid ""
3675 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3676 "this file is automatically generated)."
3677 msgstr ""
3678
3679 #. type: textblock
3680 #: ../src/guestfs.pod:1905
3681 msgid ""
3682 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3683 "and C<FileOut> parameters, which are handled with very simple request/reply "
3684 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3685 "parameters, which use the same request and reply messages, but they may also "
3686 "be followed by files sent using a chunked encoding."
3687 msgstr ""
3688
3689 #. type: =head3
3690 #: ../src/guestfs.pod:1912
3691 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3692 msgstr ""
3693
3694 #. type: textblock
3695 #: ../src/guestfs.pod:1914
3696 msgid "For ordinary functions, the request message is:"
3697 msgstr ""
3698
3699 #. type: verbatim
3700 #: ../src/guestfs.pod:1916
3701 #, no-wrap
3702 msgid ""
3703 " total length (header + arguments,\n"
3704 "      but not including the length word itself)\n"
3705 " struct guestfs_message_header (encoded as XDR)\n"
3706 " struct guestfs_<foo>_args (encoded as XDR)\n"
3707 "\n"
3708 msgstr ""
3709
3710 #. type: textblock
3711 #: ../src/guestfs.pod:1921
3712 msgid ""
3713 "The total length field allows the daemon to allocate a fixed size buffer "
3714 "into which it slurps the rest of the message.  As a result, the total length "
3715 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3716 "effective size of any request is limited to somewhere under this size."
3717 msgstr ""
3718
3719 #. type: textblock
3720 #: ../src/guestfs.pod:1927
3721 msgid ""
3722 "Note also that many functions don't take any arguments, in which case the "
3723 "C<guestfs_I<foo>_args> is completely omitted."
3724 msgstr ""
3725
3726 #. type: textblock
3727 #: ../src/guestfs.pod:1930
3728 msgid ""
3729 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3730 "receiver knows what type of args structure to expect, or none at all."
3731 msgstr ""
3732
3733 #. type: textblock
3734 #: ../src/guestfs.pod:1934
3735 msgid ""
3736 "For functions that take optional arguments, the optional arguments are "
3737 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3738 "arguments.  A bitmask in the header indicates which optional arguments are "
3739 "meaningful.  The bitmask is also checked to see if it contains bits set "
3740 "which the daemon does not know about (eg. if more optional arguments were "
3741 "added in a later version of the library), and this causes the call to be "
3742 "rejected."
3743 msgstr ""
3744
3745 #. type: textblock
3746 #: ../src/guestfs.pod:1942
3747 msgid "The reply message for ordinary functions is:"
3748 msgstr ""
3749
3750 #. type: verbatim
3751 #: ../src/guestfs.pod:1944
3752 #, no-wrap
3753 msgid ""
3754 " total length (header + ret,\n"
3755 "      but not including the length word itself)\n"
3756 " struct guestfs_message_header (encoded as XDR)\n"
3757 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3758 "\n"
3759 msgstr ""
3760
3761 #. type: textblock
3762 #: ../src/guestfs.pod:1949
3763 msgid ""
3764 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3765 "functions that return no formal return values."
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../src/guestfs.pod:1952
3770 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3771 msgstr ""
3772
3773 #. type: textblock
3774 #: ../src/guestfs.pod:1955
3775 msgid ""
3776 "In the case of an error, a flag is set in the header, and the reply message "
3777 "is slightly changed:"
3778 msgstr ""
3779
3780 #. type: verbatim
3781 #: ../src/guestfs.pod:1958
3782 #, no-wrap
3783 msgid ""
3784 " total length (header + error,\n"
3785 "      but not including the length word itself)\n"
3786 " struct guestfs_message_header (encoded as XDR)\n"
3787 " struct guestfs_message_error (encoded as XDR)\n"
3788 "\n"
3789 msgstr ""
3790
3791 #. type: textblock
3792 #: ../src/guestfs.pod:1963
3793 msgid ""
3794 "The C<guestfs_message_error> structure contains the error message as a "
3795 "string."
3796 msgstr ""
3797
3798 #. type: =head3
3799 #: ../src/guestfs.pod:1966
3800 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3801 msgstr ""
3802
3803 #. type: textblock
3804 #: ../src/guestfs.pod:1968
3805 msgid ""
3806 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3807 "The normal request message is sent (see above).  However this is followed by "
3808 "a sequence of file chunks."
3809 msgstr ""
3810
3811 #. type: verbatim
3812 #: ../src/guestfs.pod:1972
3813 #, no-wrap
3814 msgid ""
3815 " total length (header + arguments,\n"
3816 "      but not including the length word itself,\n"
3817 "      and not including the chunks)\n"
3818 " struct guestfs_message_header (encoded as XDR)\n"
3819 " struct guestfs_<foo>_args (encoded as XDR)\n"
3820 " sequence of chunks for FileIn param #0\n"
3821 " sequence of chunks for FileIn param #1 etc.\n"
3822 "\n"
3823 msgstr ""
3824
3825 #. type: textblock
3826 #: ../src/guestfs.pod:1980
3827 msgid "The \"sequence of chunks\" is:"
3828 msgstr ""
3829
3830 #. type: verbatim
3831 #: ../src/guestfs.pod:1982
3832 #, no-wrap
3833 msgid ""
3834 " length of chunk (not including length word itself)\n"
3835 " struct guestfs_chunk (encoded as XDR)\n"
3836 " length of chunk\n"
3837 " struct guestfs_chunk (encoded as XDR)\n"
3838 "   ...\n"
3839 " length of chunk\n"
3840 " struct guestfs_chunk (with data.data_len == 0)\n"
3841 "\n"
3842 msgstr ""
3843
3844 #. type: textblock
3845 #: ../src/guestfs.pod:1990
3846 msgid ""
3847 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3848 "is set in the final chunk to indicate either successful completion or early "
3849 "cancellation."
3850 msgstr ""
3851
3852 #. type: textblock
3853 #: ../src/guestfs.pod:1994
3854 msgid ""
3855 "At time of writing there are no functions that have more than one FileIn "
3856 "parameter.  However this is (theoretically) supported, by sending the "
3857 "sequence of chunks for each FileIn parameter one after another (from left to "
3858 "right)."
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../src/guestfs.pod:1999
3863 msgid ""
3864 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3865 "transfer.  The library does this by sending a chunk with a special flag set "
3866 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3867 "RPC, does I<not> send any reply, and goes back to reading the next request."
3868 msgstr ""
3869
3870 #. type: textblock
3871 #: ../src/guestfs.pod:2005
3872 msgid ""
3873 "The daemon may also cancel.  It does this by writing a special word "
3874 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3875 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3876 "cancel chunk).  The special word is chosen so that even if cancellation "
3877 "happens right at the end of the transfer (after the library has finished "
3878 "writing and has started listening for the reply), the \"spurious\" cancel "
3879 "flag will not be confused with the reply message."
3880 msgstr ""
3881
3882 #. type: textblock
3883 #: ../src/guestfs.pod:2014
3884 msgid ""
3885 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3886 "limit), and also files where the size is not known in advance (eg. from "
3887 "pipes or sockets).  However the chunks are rather small "
3888 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3889 "to keep much in memory."
3890 msgstr ""
3891
3892 #. type: =head3
3893 #: ../src/guestfs.pod:2020
3894 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3895 msgstr ""
3896
3897 #. type: textblock
3898 #: ../src/guestfs.pod:2022
3899 msgid ""
3900 "The protocol for FileOut parameters is exactly the same as for FileIn "
3901 "parameters, but with the roles of daemon and library reversed."
3902 msgstr ""
3903
3904 #. type: verbatim
3905 #: ../src/guestfs.pod:2025
3906 #, no-wrap
3907 msgid ""
3908 " total length (header + ret,\n"
3909 "      but not including the length word itself,\n"
3910 "      and not including the chunks)\n"
3911 " struct guestfs_message_header (encoded as XDR)\n"
3912 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3913 " sequence of chunks for FileOut param #0\n"
3914 " sequence of chunks for FileOut param #1 etc.\n"
3915 "\n"
3916 msgstr ""
3917
3918 #. type: =head3
3919 #: ../src/guestfs.pod:2033
3920 msgid "INITIAL MESSAGE"
3921 msgstr ""
3922
3923 #. type: textblock
3924 #: ../src/guestfs.pod:2035
3925 msgid ""
3926 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3927 "which indicates that the guest and daemon is alive.  This is what "
3928 "L</guestfs_launch> waits for."
3929 msgstr ""
3930
3931 #. type: =head3
3932 #: ../src/guestfs.pod:2039
3933 msgid "PROGRESS NOTIFICATION MESSAGES"
3934 msgstr ""
3935
3936 #. type: textblock
3937 #: ../src/guestfs.pod:2041
3938 msgid ""
3939 "The daemon may send progress notification messages at any time.  These are "
3940 "distinguished by the normal length word being replaced by "
3941 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3942 msgstr ""
3943
3944 #. type: textblock
3945 #: ../src/guestfs.pod:2045
3946 msgid ""
3947 "The library turns them into progress callbacks (see "
3948 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3949 "discards them if not."
3950 msgstr ""
3951
3952 #. type: textblock
3953 #: ../src/guestfs.pod:2049
3954 msgid ""
3955 "The daemon self-limits the frequency of progress messages it sends (see "
3956 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3957 "messages."
3958 msgstr ""
3959
3960 #. type: =head1
3961 #: ../src/guestfs.pod:2053
3962 msgid "LIBGUESTFS VERSION NUMBERS"
3963 msgstr ""
3964
3965 #. type: textblock
3966 #: ../src/guestfs.pod:2055
3967 msgid ""
3968 "Since April 2010, libguestfs has started to make separate development and "
3969 "stable releases, along with corresponding branches in our git repository.  "
3970 "These separate releases can be identified by version number:"
3971 msgstr ""
3972
3973 #. type: verbatim
3974 #: ../src/guestfs.pod:2060
3975 #, no-wrap
3976 msgid ""
3977 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3978 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3979 "       |\n"
3980 "       v\n"
3981 " 1  .  3  .  5\n"
3982 " ^           ^\n"
3983 " |           |\n"
3984 " |           `-------- sub-version\n"
3985 " |\n"
3986 " `------ always '1' because we don't change the ABI\n"
3987 "\n"
3988 msgstr ""
3989
3990 #. type: textblock
3991 #: ../src/guestfs.pod:2071
3992 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3993 msgstr ""
3994
3995 #. type: textblock
3996 #: ../src/guestfs.pod:2073
3997 msgid ""
3998 "As time passes we cherry pick fixes from the development branch and backport "
3999 "those into the stable branch, the effect being that the stable branch should "
4000 "get more stable and less buggy over time.  So the stable releases are ideal "
4001 "for people who don't need new features but would just like the software to "
4002 "work."
4003 msgstr ""
4004
4005 #. type: textblock
4006 #: ../src/guestfs.pod:2079
4007 msgid "Our criteria for backporting changes are:"
4008 msgstr ""
4009
4010 #. type: textblock
4011 #: ../src/guestfs.pod:2085
4012 msgid ""
4013 "Documentation changes which don't affect any code are backported unless the "
4014 "documentation refers to a future feature which is not in stable."
4015 msgstr ""
4016
4017 #. type: textblock
4018 #: ../src/guestfs.pod:2091
4019 msgid ""
4020 "Bug fixes which are not controversial, fix obvious problems, and have been "
4021 "well tested are backported."
4022 msgstr ""
4023
4024 #. type: textblock
4025 #: ../src/guestfs.pod:2096
4026 msgid ""
4027 "Simple rearrangements of code which shouldn't affect how it works get "
4028 "backported.  This is so that the code in the two branches doesn't get too "
4029 "far out of step, allowing us to backport future fixes more easily."
4030 msgstr ""
4031
4032 #. type: textblock
4033 #: ../src/guestfs.pod:2102
4034 msgid ""
4035 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4036 "exceptional case: the new feature is required in order to implement an "
4037 "important bug fix."
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../src/guestfs.pod:2108
4042 msgid ""
4043 "A new stable branch starts when we think the new features in development are "
4044 "substantial and compelling enough over the current stable branch to warrant "
4045 "it.  When that happens we create new stable and development versions 1.N.0 "
4046 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4047 "stable at this point, but by backporting fixes from development, that branch "
4048 "will stabilize over time."
4049 msgstr ""
4050
4051 #. type: =head1
4052 #: ../src/guestfs.pod:2116
4053 msgid "EXTENDING LIBGUESTFS"
4054 msgstr ""
4055
4056 #. type: =head2
4057 #: ../src/guestfs.pod:2118
4058 msgid "ADDING A NEW API ACTION"
4059 msgstr ""
4060
4061 #. type: textblock
4062 #: ../src/guestfs.pod:2120
4063 msgid ""
4064 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4065 "documentation) are generated, and this makes it easy to extend the "
4066 "libguestfs API."
4067 msgstr ""
4068
4069 #. type: textblock
4070 #: ../src/guestfs.pod:2124
4071 msgid "To add a new API action there are two changes:"
4072 msgstr ""
4073
4074 #. type: textblock
4075 #: ../src/guestfs.pod:2130
4076 msgid ""
4077 "You need to add a description of the call (name, parameters, return type, "
4078 "tests, documentation) to C<generator/generator_actions.ml>."
4079 msgstr ""
4080
4081 #. type: textblock
4082 #: ../src/guestfs.pod:2133
4083 msgid ""
4084 "There are two sorts of API action, depending on whether the call goes "
4085 "through to the daemon in the appliance, or is serviced entirely by the "
4086 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4087 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4088 "an example of the latter, since a trace flag is maintained in the handle and "
4089 "all tracing is done on the library side."
4090 msgstr ""
4091
4092 #. type: textblock
4093 #: ../src/guestfs.pod:2141
4094 msgid ""
4095 "Most new actions are of the first type, and get added to the "
4096 "C<daemon_functions> list.  Each function has a unique procedure number used "
4097 "in the RPC protocol which is assigned to that action when we publish "
4098 "libguestfs and cannot be reused.  Take the latest procedure number and "
4099 "increment it."
4100 msgstr ""
4101
4102 #. type: textblock
4103 #: ../src/guestfs.pod:2147
4104 msgid ""
4105 "For library-only actions of the second type, add to the "
4106 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4107 "library and do not travel over the RPC mechanism to the daemon, these "
4108 "functions do not need a procedure number, and so the procedure number is set "
4109 "to C<-1>."
4110 msgstr ""
4111
4112 #. type: textblock
4113 #: ../src/guestfs.pod:2155
4114 msgid "Implement the action (in C):"
4115 msgstr ""
4116
4117 #. type: textblock
4118 #: ../src/guestfs.pod:2157
4119 msgid ""
4120 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4121 "C<daemon/> directory."
4122 msgstr ""
4123
4124 #. type: textblock
4125 #: ../src/guestfs.pod:2160
4126 msgid ""
4127 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4128 "(note: double underscore) in the C<src/> directory."
4129 msgstr ""
4130
4131 #. type: textblock
4132 #: ../src/guestfs.pod:2163
4133 msgid "In either case, use another function as an example of what to do."
4134 msgstr ""
4135
4136 #. type: textblock
4137 #: ../src/guestfs.pod:2167
4138 msgid "After making these changes, use C<make> to compile."
4139 msgstr ""
4140
4141 #. type: textblock
4142 #: ../src/guestfs.pod:2169
4143 msgid ""
4144 "Note that you don't need to implement the RPC, language bindings, manual "
4145 "pages or anything else.  It's all automatically generated from the OCaml "
4146 "description."
4147 msgstr ""
4148
4149 #. type: =head2
4150 #: ../src/guestfs.pod:2173
4151 msgid "ADDING TESTS FOR AN API ACTION"
4152 msgstr ""
4153
4154 #. type: textblock
4155 #: ../src/guestfs.pod:2175
4156 msgid ""
4157 "You can supply zero or as many tests as you want per API call.  The tests "
4158 "can either be added as part of the API description "
4159 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
4160 "drop a script into C<regressions/>.  Note that adding a script to "
4161 "C<regressions/> is slower, so if possible use the first method."
4162 msgstr ""
4163
4164 #. type: textblock
4165 #: ../src/guestfs.pod:2181
4166 msgid ""
4167 "The following describes the test environment used when you add an API test "
4168 "in C<generator_actions.ml>."
4169 msgstr ""
4170
4171 #. type: textblock
4172 #: ../src/guestfs.pod:2184
4173 msgid "The test environment has 4 block devices:"
4174 msgstr ""
4175
4176 #. type: =item
4177 #: ../src/guestfs.pod:2188
4178 msgid "C</dev/sda> 500MB"
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../src/guestfs.pod:2190
4183 msgid "General block device for testing."
4184 msgstr ""
4185
4186 #. type: =item
4187 #: ../src/guestfs.pod:2192
4188 msgid "C</dev/sdb> 50MB"
4189 msgstr ""
4190
4191 #. type: textblock
4192 #: ../src/guestfs.pod:2194
4193 msgid ""
4194 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4195 "operations."
4196 msgstr ""
4197
4198 #. type: =item
4199 #: ../src/guestfs.pod:2197
4200 msgid "C</dev/sdc> 10MB"
4201 msgstr ""
4202
4203 #. type: textblock
4204 #: ../src/guestfs.pod:2199
4205 msgid "Used in a few tests where two block devices are needed."
4206 msgstr ""
4207
4208 #. type: =item
4209 #: ../src/guestfs.pod:2201
4210 msgid "C</dev/sdd>"
4211 msgstr ""
4212
4213 #. type: textblock
4214 #: ../src/guestfs.pod:2203
4215 msgid "ISO with fixed content (see C<images/test.iso>)."
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../src/guestfs.pod:2207
4220 msgid ""
4221 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4222 "appliance and block devices are reused between tests.  So don't try testing "
4223 "L</guestfs_kill_subprocess> :-x"
4224 msgstr ""
4225
4226 #. type: textblock
4227 #: ../src/guestfs.pod:2211
4228 msgid ""
4229 "Each test starts with an initial scenario, selected using one of the "
4230 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4231 "initialize the disks mentioned above in a particular way as documented in "
4232 "C<generator_types.ml>.  You should not assume anything about the previous "
4233 "contents of other disks that are not initialized."
4234 msgstr ""
4235
4236 #. type: textblock
4237 #: ../src/guestfs.pod:2217
4238 msgid ""
4239 "You can add a prerequisite clause to any individual test.  This is a "
4240 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
4241 "if testing a command which might not work on all variations of libguestfs "
4242 "builds.  A test that has prerequisite of C<Always> means to run "
4243 "unconditionally."
4244 msgstr ""
4245
4246 #. type: textblock
4247 #: ../src/guestfs.pod:2223
4248 msgid ""
4249 "In addition, packagers can skip individual tests by setting environment "
4250 "variables before running C<make check>."
4251 msgstr ""
4252
4253 #. type: verbatim
4254 #: ../src/guestfs.pod:2226
4255 #, no-wrap
4256 msgid ""
4257 " SKIP_TEST_<CMD>_<NUM>=1\n"
4258 "\n"
4259 msgstr ""
4260
4261 #. type: textblock
4262 #: ../src/guestfs.pod:2228
4263 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4264 msgstr ""
4265
4266 #. type: textblock
4267 #: ../src/guestfs.pod:2230
4268 msgid "or:"
4269 msgstr ""
4270
4271 #. type: verbatim
4272 #: ../src/guestfs.pod:2232
4273 #, no-wrap
4274 msgid ""
4275 " SKIP_TEST_<CMD>=1\n"
4276 "\n"
4277 msgstr ""
4278
4279 #. type: textblock
4280 #: ../src/guestfs.pod:2234
4281 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4282 msgstr ""
4283
4284 #. type: textblock
4285 #: ../src/guestfs.pod:2236
4286 msgid "Packagers can run only certain tests by setting for example:"
4287 msgstr ""
4288
4289 #. type: verbatim
4290 #: ../src/guestfs.pod:2238
4291 #, no-wrap
4292 msgid ""
4293 " TEST_ONLY=\"vfs_type zerofree\"\n"
4294 "\n"
4295 msgstr ""
4296
4297 #. type: textblock
4298 #: ../src/guestfs.pod:2240
4299 msgid ""
4300 "See C<capitests/tests.c> for more details of how these environment variables "
4301 "work."
4302 msgstr ""
4303
4304 #. type: =head2
4305 #: ../src/guestfs.pod:2243
4306 msgid "DEBUGGING NEW API ACTIONS"
4307 msgstr ""
4308
4309 #. type: textblock
4310 #: ../src/guestfs.pod:2245
4311 msgid "Test new actions work before submitting them."
4312 msgstr ""
4313
4314 #. type: textblock
4315 #: ../src/guestfs.pod:2247
4316 msgid "You can use guestfish to try out new commands."
4317 msgstr ""
4318
4319 #. type: textblock
4320 #: ../src/guestfs.pod:2249
4321 msgid ""
4322 "Debugging the daemon is a problem because it runs inside a minimal "
4323 "environment.  However you can fprintf messages in the daemon to stderr, and "
4324 "they will show up if you use C<guestfish -v>."
4325 msgstr ""
4326
4327 #. type: =head2
4328 #: ../src/guestfs.pod:2253
4329 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4330 msgstr ""
4331
4332 #. type: textblock
4333 #: ../src/guestfs.pod:2255
4334 msgid ""
4335 "Our C source code generally adheres to some basic code-formatting "
4336 "conventions.  The existing code base is not totally consistent on this "
4337 "front, but we do prefer that contributed code be formatted similarly.  In "
4338 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4339 "indentation level, and other than that, follow the K&R style."
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../src/guestfs.pod:2261
4344 msgid ""
4345 "If you use Emacs, add the following to one of one of your start-up files "
4346 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
4347 msgstr ""
4348
4349 #. type: verbatim
4350 #: ../src/guestfs.pod:2264
4351 #, no-wrap
4352 msgid ""
4353 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4354 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4355 " (add-hook 'find-file-hook\n"
4356 "     '(lambda () (if (and buffer-file-name\n"
4357 "                          (string-match \"/libguestfs\\\\>\"\n"
4358 "                              (buffer-file-name))\n"
4359 "                          (not (string-equal mode-name \"Change Log\"))\n"
4360 "                          (not (string-equal mode-name \"Makefile\")))\n"
4361 "                     (setq indent-tabs-mode nil))))\n"
4362 " \n"
4363 msgstr ""
4364
4365 #. type: verbatim
4366 #: ../src/guestfs.pod:2274
4367 #, no-wrap
4368 msgid ""
4369 " ;;; When editing C sources in libguestfs, use this style.\n"
4370 " (defun libguestfs-c-mode ()\n"
4371 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4372 "   (interactive)\n"
4373 "   (c-set-style \"K&R\")\n"
4374 "   (setq c-indent-level 2)\n"
4375 "   (setq c-basic-offset 2))\n"
4376 " (add-hook 'c-mode-hook\n"
4377 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
4378 "                               (buffer-file-name))\n"
4379 "                           (libguestfs-c-mode))))\n"
4380 "\n"
4381 msgstr ""
4382
4383 #. type: textblock
4384 #: ../src/guestfs.pod:2286
4385 msgid "Enable warnings when compiling (and fix any problems this finds):"
4386 msgstr ""
4387
4388 #. type: verbatim
4389 #: ../src/guestfs.pod:2289
4390 #, no-wrap
4391 msgid ""
4392 " ./configure --enable-gcc-warnings\n"
4393 "\n"
4394 msgstr ""
4395
4396 #. type: textblock
4397 #: ../src/guestfs.pod:2291
4398 msgid "Useful targets are:"
4399 msgstr ""
4400
4401 #. type: verbatim
4402 #: ../src/guestfs.pod:2293
4403 #, no-wrap
4404 msgid ""
4405 " make syntax-check  # checks the syntax of the C code\n"
4406 " make check         # runs the test suite\n"
4407 "\n"
4408 msgstr ""
4409
4410 #. type: =head2
4411 #: ../src/guestfs.pod:2296
4412 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
4413 msgstr ""
4414
4415 #. type: textblock
4416 #: ../src/guestfs.pod:2298
4417 msgid ""
4418 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
4419 "which are used to do shell quoting."
4420 msgstr ""
4421
4422 #. type: =item
4423 #: ../src/guestfs.pod:2303
4424 msgid "%Q"
4425 msgstr ""
4426
4427 #. type: textblock
4428 #: ../src/guestfs.pod:2305
4429 msgid ""
4430 "Simple shell quoted string.  Any spaces or other shell characters are "
4431 "escaped for you."
4432 msgstr ""
4433
4434 #. type: =item
4435 #: ../src/guestfs.pod:2308
4436 msgid "%R"
4437 msgstr ""
4438
4439 #. type: textblock
4440 #: ../src/guestfs.pod:2310
4441 msgid ""
4442 "Same as C<%Q> except the string is treated as a path which is prefixed by "
4443 "the sysroot."
4444 msgstr ""
4445
4446 #. type: textblock
4447 #: ../src/guestfs.pod:2315 ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
4448 msgid "For example:"
4449 msgstr ""
4450
4451 #. type: verbatim
4452 #: ../src/guestfs.pod:2317
4453 #, no-wrap
4454 msgid ""
4455 " asprintf (&cmd, \"cat %R\", path);\n"
4456 "\n"
4457 msgstr ""
4458
4459 #. type: textblock
4460 #: ../src/guestfs.pod:2319
4461 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
4462 msgstr ""
4463
4464 #. type: textblock
4465 #: ../src/guestfs.pod:2321
4466 msgid ""
4467 "I<Note:> Do I<not> use these when you are passing parameters to the "
4468 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
4469 "because they are not passed via the shell (instead, straight to exec).  You "
4470 "probably want to use the C<sysroot_path()> function however."
4471 msgstr ""
4472
4473 #. type: =head2
4474 #: ../src/guestfs.pod:2327
4475 msgid "SUBMITTING YOUR NEW API ACTIONS"
4476 msgstr ""
4477
4478 #. type: textblock
4479 #: ../src/guestfs.pod:2329
4480 msgid ""
4481 "Submit patches to the mailing list: "
4482 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
4483 "L<rjones@redhat.com>."
4484 msgstr ""
4485
4486 #. type: =head2
4487 #: ../src/guestfs.pod:2333
4488 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
4489 msgstr ""
4490
4491 #. type: textblock
4492 #: ../src/guestfs.pod:2335
4493 msgid "We support i18n (gettext anyhow) in the library."
4494 msgstr ""
4495
4496 #. type: textblock
4497 #: ../src/guestfs.pod:2337
4498 msgid ""
4499 "However many messages come from the daemon, and we don't translate those at "
4500 "the moment.  One reason is that the appliance generally has all locale files "
4501 "removed from it, because they take up a lot of space.  So we'd have to readd "
4502 "some of those, as well as copying our PO files into the appliance."
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../src/guestfs.pod:2343
4507 msgid ""
4508 "Debugging messages are never translated, since they are intended for the "
4509 "programmers."
4510 msgstr ""
4511
4512 #. type: =head2
4513 #: ../src/guestfs.pod:2346
4514 msgid "SOURCE CODE SUBDIRECTORIES"
4515 msgstr ""
4516
4517 #. type: =item
4518 #: ../src/guestfs.pod:2350
4519 msgid "C<appliance>"
4520 msgstr ""
4521
4522 #. type: textblock
4523 #: ../src/guestfs.pod:2352
4524 msgid "The libguestfs appliance, build scripts and so on."
4525 msgstr ""
4526
4527 #. type: =item
4528 #: ../src/guestfs.pod:2354
4529 msgid "C<capitests>"
4530 msgstr ""
4531
4532 #. type: textblock
4533 #: ../src/guestfs.pod:2356
4534 msgid "Automated tests of the C API."
4535 msgstr ""
4536
4537 #. type: =item
4538 #: ../src/guestfs.pod:2358
4539 msgid "C<cat>"
4540 msgstr ""
4541
4542 #. type: textblock
4543 #: ../src/guestfs.pod:2360
4544 msgid ""
4545 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
4546 "documentation."
4547 msgstr ""
4548
4549 #. type: =item
4550 #: ../src/guestfs.pod:2363
4551 msgid "C<contrib>"
4552 msgstr ""
4553
4554 #. type: textblock
4555 #: ../src/guestfs.pod:2365
4556 msgid "Outside contributions, experimental parts."
4557 msgstr ""
4558
4559 #. type: =item
4560 #: ../src/guestfs.pod:2367
4561 msgid "C<daemon>"
4562 msgstr ""
4563
4564 #. type: textblock
4565 #: ../src/guestfs.pod:2369
4566 msgid ""
4567 "The daemon that runs inside the libguestfs appliance and carries out "
4568 "actions."
4569 msgstr ""
4570
4571 #. type: =item
4572 #: ../src/guestfs.pod:2372
4573 msgid "C<df>"
4574 msgstr ""
4575
4576 #. type: textblock
4577 #: ../src/guestfs.pod:2374
4578 msgid "L<virt-df(1)> command and documentation."
4579 msgstr ""
4580
4581 #. type: =item
4582 #: ../src/guestfs.pod:2376
4583 msgid "C<examples>"
4584 msgstr ""
4585
4586 #. type: textblock
4587 #: ../src/guestfs.pod:2378
4588 msgid "C API example code."
4589 msgstr ""
4590
4591 #. type: =item
4592 #: ../src/guestfs.pod:2380
4593 msgid "C<fish>"
4594 msgstr ""
4595
4596 #. type: textblock
4597 #: ../src/guestfs.pod:2382
4598 msgid ""
4599 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
4600 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
4601 "L<virt-tar-out(1)>."
4602 msgstr ""
4603
4604 #. type: =item
4605 #: ../src/guestfs.pod:2386
4606 msgid "C<fuse>"
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../src/guestfs.pod:2388
4611 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
4612 msgstr ""
4613
4614 #. type: =item
4615 #: ../src/guestfs.pod:2390
4616 msgid "C<generator>"
4617 msgstr ""
4618
4619 #. type: textblock
4620 #: ../src/guestfs.pod:2392
4621 msgid ""
4622 "The crucially important generator, used to automatically generate large "
4623 "amounts of boilerplate C code for things like RPC and bindings."
4624 msgstr ""
4625
4626 #. type: =item
4627 #: ../src/guestfs.pod:2395
4628 msgid "C<images>"
4629 msgstr ""
4630
4631 #. type: textblock
4632 #: ../src/guestfs.pod:2397
4633 msgid "Files used by the test suite."
4634 msgstr ""
4635
4636 #. type: textblock
4637 #: ../src/guestfs.pod:2399
4638 msgid "Some \"phony\" guest images which we test against."
4639 msgstr ""
4640
4641 #. type: =item
4642 #: ../src/guestfs.pod:2401
4643 msgid "C<inspector>"
4644 msgstr ""
4645
4646 #. type: textblock
4647 #: ../src/guestfs.pod:2403
4648 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
4649 msgstr ""
4650
4651 #. type: =item
4652 #: ../src/guestfs.pod:2405
4653 msgid "C<logo>"
4654 msgstr ""
4655
4656 #. type: textblock
4657 #: ../src/guestfs.pod:2407
4658 msgid "Logo used on the website.  The fish is called Arthur by the way."
4659 msgstr ""
4660
4661 #. type: =item
4662 #: ../src/guestfs.pod:2409
4663 msgid "C<m4>"
4664 msgstr ""
4665
4666 #. type: textblock
4667 #: ../src/guestfs.pod:2411
4668 msgid "M4 macros used by autoconf."
4669 msgstr ""
4670
4671 #. type: =item
4672 #: ../src/guestfs.pod:2413
4673 msgid "C<po>"
4674 msgstr ""
4675
4676 #. type: textblock
4677 #: ../src/guestfs.pod:2415
4678 msgid "Translations of simple gettext strings."
4679 msgstr ""
4680
4681 #. type: =item
4682 #: ../src/guestfs.pod:2417
4683 msgid "C<po-docs>"
4684 msgstr ""
4685
4686 #. type: textblock
4687 #: ../src/guestfs.pod:2419
4688 msgid ""
4689 "The build infrastructure and PO files for translations of manpages and POD "
4690 "files.  Eventually this will be combined with the C<po> directory, but that "
4691 "is rather complicated."
4692 msgstr ""
4693
4694 #. type: =item
4695 #: ../src/guestfs.pod:2423
4696 msgid "C<regressions>"
4697 msgstr ""
4698
4699 #. type: textblock
4700 #: ../src/guestfs.pod:2425
4701 msgid "Regression tests."
4702 msgstr ""
4703
4704 #. type: =item
4705 #: ../src/guestfs.pod:2427
4706 msgid "C<rescue>"
4707 msgstr ""
4708
4709 #. type: textblock
4710 #: ../src/guestfs.pod:2429
4711 msgid "L<virt-rescue(1)> command and documentation."
4712 msgstr ""
4713
4714 #. type: =item
4715 #: ../src/guestfs.pod:2431
4716 msgid "C<src>"
4717 msgstr ""
4718
4719 #. type: textblock
4720 #: ../src/guestfs.pod:2433
4721 msgid "Source code to the C library."
4722 msgstr ""
4723
4724 #. type: =item
4725 #: ../src/guestfs.pod:2435
4726 msgid "C<tools>"
4727 msgstr ""
4728
4729 #. type: textblock
4730 #: ../src/guestfs.pod:2437
4731 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
4732 msgstr ""
4733
4734 #. type: =item
4735 #: ../src/guestfs.pod:2439
4736 msgid "C<test-tool>"
4737 msgstr ""
4738
4739 #. type: textblock
4740 #: ../src/guestfs.pod:2441
4741 msgid ""
4742 "Test tool for end users to test if their qemu/kernel combination will work "
4743 "with libguestfs."
4744 msgstr ""
4745
4746 #. type: =item
4747 #: ../src/guestfs.pod:2444
4748 msgid "C<csharp>"
4749 msgstr ""
4750
4751 #. type: =item
4752 #: ../src/guestfs.pod:2446
4753 msgid "C<haskell>"
4754 msgstr ""
4755
4756 #. type: =item
4757 #: ../src/guestfs.pod:2448
4758 msgid "C<java>"
4759 msgstr ""
4760
4761 #. type: =item
4762 #: ../src/guestfs.pod:2450
4763 msgid "C<ocaml>"
4764 msgstr ""
4765
4766 #. type: =item
4767 #: ../src/guestfs.pod:2452
4768 msgid "C<php>"
4769 msgstr ""
4770
4771 #. type: =item
4772 #: ../src/guestfs.pod:2454
4773 msgid "C<perl>"
4774 msgstr ""
4775
4776 #. type: =item
4777 #: ../src/guestfs.pod:2456
4778 msgid "C<python>"
4779 msgstr ""
4780
4781 #. type: =item
4782 #: ../src/guestfs.pod:2458
4783 msgid "C<ruby>"
4784 msgstr ""
4785
4786 #. type: textblock
4787 #: ../src/guestfs.pod:2460
4788 msgid "Language bindings."
4789 msgstr ""
4790
4791 #. type: =head1
4792 #: ../src/guestfs.pod:2464 ../fish/guestfish.pod:965 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
4793 msgid "ENVIRONMENT VARIABLES"
4794 msgstr ""
4795
4796 #. type: =item
4797 #: ../src/guestfs.pod:2468 ../fish/guestfish.pod:991
4798 msgid "LIBGUESTFS_APPEND"
4799 msgstr ""
4800
4801 #. type: textblock
4802 #: ../src/guestfs.pod:2470 ../fish/guestfish.pod:993
4803 msgid "Pass additional options to the guest kernel."
4804 msgstr ""
4805
4806 #. type: =item
4807 #: ../src/guestfs.pod:2472 ../fish/guestfish.pod:995
4808 msgid "LIBGUESTFS_DEBUG"
4809 msgstr ""
4810
4811 #. type: textblock
4812 #: ../src/guestfs.pod:2474
4813 msgid ""
4814 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
4815 "effect as calling C<guestfs_set_verbose (g, 1)>."
4816 msgstr ""
4817
4818 #. type: =item
4819 #: ../src/guestfs.pod:2477 ../fish/guestfish.pod:1000
4820 msgid "LIBGUESTFS_MEMSIZE"
4821 msgstr ""
4822
4823 #. type: textblock
4824 #: ../src/guestfs.pod:2479 ../fish/guestfish.pod:1002
4825 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
4826 msgstr ""
4827
4828 #. type: verbatim
4829 #: ../src/guestfs.pod:2482 ../fish/guestfish.pod:1005
4830 #, no-wrap
4831 msgid ""
4832 " LIBGUESTFS_MEMSIZE=700\n"
4833 "\n"
4834 msgstr ""
4835
4836 #. type: =item
4837 #: ../src/guestfs.pod:2484 ../fish/guestfish.pod:1007
4838 msgid "LIBGUESTFS_PATH"
4839 msgstr ""
4840
4841 #. type: textblock
4842 #: ../src/guestfs.pod:2486
4843 msgid ""
4844 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4845 "the discussion of paths in section PATH above."
4846 msgstr ""
4847
4848 #. type: =item
4849 #: ../src/guestfs.pod:2489 ../fish/guestfish.pod:1012
4850 msgid "LIBGUESTFS_QEMU"
4851 msgstr ""
4852
4853 #. type: textblock
4854 #: ../src/guestfs.pod:2491 ../fish/guestfish.pod:1014
4855 msgid ""
4856 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4857 "which was found at compile time by the configure script is used."
4858 msgstr ""
4859
4860 #. type: textblock
4861 #: ../src/guestfs.pod:2495
4862 msgid "See also L</QEMU WRAPPERS> above."
4863 msgstr ""
4864
4865 #. type: =item
4866 #: ../src/guestfs.pod:2497 ../fish/guestfish.pod:1018
4867 msgid "LIBGUESTFS_TRACE"
4868 msgstr ""
4869
4870 #. type: textblock
4871 #: ../src/guestfs.pod:2499
4872 msgid ""
4873 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4874 "effect as calling C<guestfs_set_trace (g, 1)>."
4875 msgstr ""
4876
4877 #. type: =item
4878 #: ../src/guestfs.pod:2502 ../fish/guestfish.pod:1027
4879 msgid "TMPDIR"
4880 msgstr ""
4881
4882 #. type: textblock
4883 #: ../src/guestfs.pod:2504 ../fish/guestfish.pod:1029
4884 msgid "Location of temporary directory, defaults to C</tmp>."
4885 msgstr ""
4886
4887 #. type: textblock
4888 #: ../src/guestfs.pod:2506 ../fish/guestfish.pod:1031
4889 msgid ""
4890 "If libguestfs was compiled to use the supermin appliance then the real "
4891 "appliance is cached in this directory, shared between all handles belonging "
4892 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4893 "use in case C</tmp> is not large enough."
4894 msgstr ""
4895
4896 #. type: =head1
4897 #: ../src/guestfs.pod:2514 ../fish/guestfish.pod:1089 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572 ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189 ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:257
4898 msgid "SEE ALSO"
4899 msgstr ""
4900
4901 #. type: textblock
4902 #: ../src/guestfs.pod:2516
4903 msgid ""
4904 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
4905 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
4906 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
4907 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
4908 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
4909 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
4910 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
4911 "L<http://libguestfs.org/>."
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../src/guestfs.pod:2543
4916 msgid ""
4917 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
4918 "L<lvm(8)>, L<disktype(1)>."
4919 msgstr ""
4920
4921 #. type: =head1
4922 #: ../src/guestfs.pod:2550 ../tools/virt-win-reg.pl:587 ../tools/virt-make-fs.pl:548
4923 msgid "BUGS"
4924 msgstr ""
4925
4926 #. type: textblock
4927 #: ../src/guestfs.pod:2552
4928 msgid "To get a list of bugs against libguestfs use this link:"
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../src/guestfs.pod:2554
4933 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../src/guestfs.pod:2556
4938 msgid "To report a new bug against libguestfs use this link:"
4939 msgstr ""
4940
4941 #. type: textblock
4942 #: ../src/guestfs.pod:2558
4943 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
4944 msgstr ""
4945
4946 #. type: textblock
4947 #: ../src/guestfs.pod:2560
4948 msgid "When reporting a bug, please check:"
4949 msgstr ""
4950
4951 #. type: textblock
4952 #: ../src/guestfs.pod:2566
4953 msgid "That the bug hasn't been reported already."
4954 msgstr ""
4955
4956 #. type: textblock
4957 #: ../src/guestfs.pod:2570
4958 msgid "That you are testing a recent version."
4959 msgstr ""
4960
4961 #. type: textblock
4962 #: ../src/guestfs.pod:2574
4963 msgid "Describe the bug accurately, and give a way to reproduce it."
4964 msgstr ""
4965
4966 #. type: textblock
4967 #: ../src/guestfs.pod:2578
4968 msgid ""
4969 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4970 "bug report."
4971 msgstr ""
4972
4973 #. type: =head1
4974 #: ../src/guestfs.pod:2583 ../fish/guestfish.pod:1112 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4975 msgid "AUTHORS"
4976 msgstr ""
4977
4978 #. type: textblock
4979 #: ../src/guestfs.pod:2585 ../fish/guestfish.pod:1114 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4980 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4981 msgstr ""
4982
4983 #. type: =head1
4984 #: ../src/guestfs.pod:2587 ../fish/guestfish.pod:1116 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248 ../tools/virt-edit.pl:368 ../tools/virt-win-reg.pl:602 ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:273
4985 msgid "COPYRIGHT"
4986 msgstr ""
4987
4988 #. type: textblock
4989 #: ../src/guestfs.pod:2589 ../fish/guestfish.pod:1118 ../fuse/guestmount.pod:250
4990 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../src/guestfs.pod:2592
4995 msgid ""
4996 "This library is free software; you can redistribute it and/or modify it "
4997 "under the terms of the GNU Lesser General Public License as published by the "
4998 "Free Software Foundation; either version 2 of the License, or (at your "
4999 "option) any later version."
5000 msgstr ""
5001
5002 #. type: textblock
5003 #: ../src/guestfs.pod:2597
5004 msgid ""
5005 "This library is distributed in the hope that it will be useful, but WITHOUT "
5006 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5007 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5008 "for more details."
5009 msgstr ""
5010
5011 #. type: textblock
5012 #: ../src/guestfs.pod:2602
5013 msgid ""
5014 "You should have received a copy of the GNU Lesser General Public License "
5015 "along with this library; if not, write to the Free Software Foundation, "
5016 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5017 msgstr ""
5018
5019 #. type: =head2
5020 #: ../src/guestfs-actions.pod:1
5021 msgid "guestfs_add_cdrom"
5022 msgstr ""
5023
5024 #. type: verbatim
5025 #: ../src/guestfs-actions.pod:3
5026 #, no-wrap
5027 msgid ""
5028 " int\n"
5029 " guestfs_add_cdrom (guestfs_h *g,\n"
5030 "                    const char *filename);\n"
5031 "\n"
5032 msgstr ""
5033
5034 #. type: textblock
5035 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5036 msgid "This function adds a virtual CD-ROM disk image to the guest."
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5041 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
5042 msgstr ""
5043
5044 #. type: textblock
5045 #: ../src/guestfs-actions.pod:17
5046 msgid ""
5047 "This call checks for the existence of C<filename>.  This stops you from "
5048 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5049 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5050 "instead."
5051 msgstr ""
5052
5053 #. type: textblock
5054 #: ../src/guestfs-actions.pod:24
5055 msgid ""
5056 "If you just want to add an ISO file (often you use this as an efficient way "
5057 "to transfer large files into the guest), then you should probably use "
5058 "C<guestfs_add_drive_ro> instead."
5059 msgstr ""
5060
5061 #. type: textblock
5062 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126 ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428 ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487 ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533 ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633 ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779 ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090 ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161 ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262 ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2448 ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:3318 ../src/guestfs-actions.pod:3333 ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3522 ../src/guestfs-actions.pod:3535 ../src/guestfs-actions.pod:3549 ../src/guestfs-actions.pod:3564 ../src/guestfs-actions.pod:3600 ../src/guestfs-actions.pod:3672 ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3732 ../src/guestfs-actions.pod:3755 ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:3806 ../src/guestfs-actions.pod:3825 ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:3937 ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4062 ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4146 ../src/guestfs-actions.pod:4164 ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4198 ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4226 ../src/guestfs-actions.pod:4243 ../src/guestfs-actions.pod:4258 ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4322 ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4426 ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4464 ../src/guestfs-actions.pod:4476 ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:4536 ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4686 ../src/guestfs-actions.pod:4723 ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4765 ../src/guestfs-actions.pod:4782 ../src/guestfs-actions.pod:4800 ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4991 ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5129 ../src/guestfs-actions.pod:5146 ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5524 ../src/guestfs-actions.pod:5538 ../src/guestfs-actions.pod:5550 ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:5580 ../src/guestfs-actions.pod:5601 ../src/guestfs-actions.pod:5620 ../src/guestfs-actions.pod:5639 ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:5680 ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:5717 ../src/guestfs-actions.pod:5738 ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:5845 ../src/guestfs-actions.pod:5869 ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5955 ../src/guestfs-actions.pod:5978 ../src/guestfs-actions.pod:6004 ../src/guestfs-actions.pod:6112 ../src/guestfs-actions.pod:6233 ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6319 ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6347 ../src/guestfs-actions.pod:6406 ../src/guestfs-actions.pod:6423 ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6596 ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6627 ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:6816 ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7159 ../src/guestfs-actions.pod:7188
5063 msgid "This function returns 0 on success or -1 on error."
5064 msgstr ""
5065
5066 #. type: textblock
5067 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:151 ../fish/guestfish-actions.pod:165
5068 msgid ""
5069 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
5070 "instead."
5071 msgstr ""
5072
5073 #. type: textblock
5074 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243 ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942 ../src/guestfs-actions.pod:4283 ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7251 ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:154 ../fish/guestfish-actions.pod:168 ../fish/guestfish-actions.pod:949 ../fish/guestfish-actions.pod:1306 ../fish/guestfish-actions.pod:1320 ../fish/guestfish-actions.pod:2895 ../fish/guestfish-actions.pod:4710 ../fish/guestfish-actions.pod:4807
5075 msgid ""
5076 "Deprecated functions will not be removed from the API, but the fact that "
5077 "they are deprecated indicates that there are problems with correct use of "
5078 "these functions."
5079 msgstr ""
5080
5081 #. type: textblock
5082 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128 ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:4573 ../src/guestfs-actions.pod:5659 ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5886 ../src/guestfs-actions.pod:6349 ../src/guestfs-actions.pod:6474 ../src/guestfs-actions.pod:6996
5083 msgid "(Added in 0.3)"
5084 msgstr ""
5085
5086 #. type: =head2
5087 #: ../src/guestfs-actions.pod:41
5088 msgid "guestfs_add_domain"
5089 msgstr ""
5090
5091 #. type: verbatim
5092 #: ../src/guestfs-actions.pod:43
5093 #, no-wrap
5094 msgid ""
5095 " int\n"
5096 " guestfs_add_domain (guestfs_h *g,\n"
5097 "                     const char *dom,\n"
5098 "                     ...);\n"
5099 "\n"
5100 msgstr ""
5101
5102 #. type: textblock
5103 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137 ../src/guestfs-actions.pod:4297
5104 msgid ""
5105 "You may supply a list of optional arguments to this call.  Use zero or more "
5106 "of the following pairs of parameters, and terminate the list with C<-1> on "
5107 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
5108 msgstr ""
5109
5110 #. type: verbatim
5111 #: ../src/guestfs-actions.pod:53
5112 #, no-wrap
5113 msgid ""
5114 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
5115 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
5116 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
5117 "\n"
5118 msgstr ""
5119
5120 #. type: textblock
5121 #: ../src/guestfs-actions.pod:57
5122 msgid ""
5123 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5124 "It works by connecting to libvirt, requesting the domain and domain XML from "
5125 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
5126 "one."
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
5131 msgid ""
5132 "The number of disks added is returned.  This operation is atomic: if an "
5133 "error is returned, then no disks are added."
5134 msgstr ""
5135
5136 #. type: textblock
5137 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
5138 msgid ""
5139 "This function does some minimal checks to make sure the libvirt domain is "
5140 "not running (unless C<readonly> is true).  In a future version we will try "
5141 "to acquire the libvirt lock on each disk."
5142 msgstr ""
5143
5144 #. type: textblock
5145 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
5146 msgid ""
5147 "Disks must be accessible locally.  This often means that adding disks from a "
5148 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5149 "unless those disks are accessible via the same device path locally too."
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../src/guestfs-actions.pod:74 ../fish/guestfish-actions.pod:58
5154 msgid ""
5155 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5156 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
5157 "default libvirt URI (or one set through an environment variable, see the "
5158 "libvirt documentation for full details)."
5159 msgstr ""
5160
5161 #. type: textblock
5162 #: ../src/guestfs-actions.pod:80
5163 msgid ""
5164 "The other optional parameters are passed directly through to "
5165 "C<guestfs_add_drive_opts>."
5166 msgstr ""
5167
5168 #. type: textblock
5169 #: ../src/guestfs-actions.pod:83 ../src/guestfs-actions.pod:336 ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307 ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864 ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003 ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:4709 ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:5243 ../src/guestfs-actions.pod:5269 ../src/guestfs-actions.pod:6582 ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7033
5170 msgid "On error this function returns -1."
5171 msgstr ""
5172
5173 #. type: textblock
5174 #: ../src/guestfs-actions.pod:85
5175 msgid "(Added in 1.7.4)"
5176 msgstr ""
5177
5178 #. type: =head2
5179 #: ../src/guestfs-actions.pod:87
5180 msgid "guestfs_add_domain_va"
5181 msgstr ""
5182
5183 #. type: verbatim
5184 #: ../src/guestfs-actions.pod:89
5185 #, no-wrap
5186 msgid ""
5187 " int\n"
5188 " guestfs_add_domain_va (guestfs_h *g,\n"
5189 "                        const char *dom,\n"
5190 "                        va_list args);\n"
5191 "\n"
5192 msgstr ""
5193
5194 #. type: textblock
5195 #: ../src/guestfs-actions.pod:94
5196 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107 ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211 ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4348
5201 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
5202 msgstr ""
5203
5204 #. type: =head2
5205 #: ../src/guestfs-actions.pod:98
5206 msgid "guestfs_add_domain_argv"
5207 msgstr ""
5208
5209 #. type: verbatim
5210 #: ../src/guestfs-actions.pod:100
5211 #, no-wrap
5212 msgid ""
5213 " int\n"
5214 " guestfs_add_domain_argv (guestfs_h *g,\n"
5215 "                          const char *dom,\n"
5216 "                          const struct guestfs_add_domain_argv *optargs);\n"
5217 "\n"
5218 msgstr ""
5219
5220 #. type: textblock
5221 #: ../src/guestfs-actions.pod:105
5222 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
5223 msgstr ""
5224
5225 #. type: =head2
5226 #: ../src/guestfs-actions.pod:109
5227 msgid "guestfs_add_drive"
5228 msgstr ""
5229
5230 #. type: verbatim
5231 #: ../src/guestfs-actions.pod:111
5232 #, no-wrap
5233 msgid ""
5234 " int\n"
5235 " guestfs_add_drive (guestfs_h *g,\n"
5236 "                    const char *filename);\n"
5237 "\n"
5238 msgstr ""
5239
5240 #. type: textblock
5241 #: ../src/guestfs-actions.pod:115
5242 msgid ""
5243 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
5244 "optional parameters, so the disk is added writable, with the format being "
5245 "detected automatically."
5246 msgstr ""
5247
5248 #. type: textblock
5249 #: ../src/guestfs-actions.pod:119
5250 msgid ""
5251 "Automatic detection of the format opens you up to a potential security hole "
5252 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5253 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5254 "you should think about replacing calls to this function with calls to "
5255 "C<guestfs_add_drive_opts>, and specifying the format."
5256 msgstr ""
5257
5258 #. type: =head2
5259 #: ../src/guestfs-actions.pod:130
5260 msgid "guestfs_add_drive_opts"
5261 msgstr ""
5262
5263 #. type: verbatim
5264 #: ../src/guestfs-actions.pod:132
5265 #, no-wrap
5266 msgid ""
5267 " int\n"
5268 " guestfs_add_drive_opts (guestfs_h *g,\n"
5269 "                         const char *filename,\n"
5270 "                         ...);\n"
5271 "\n"
5272 msgstr ""
5273
5274 #. type: verbatim
5275 #: ../src/guestfs-actions.pod:142
5276 #, no-wrap
5277 msgid ""
5278 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
5279 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
5280 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
5281 "\n"
5282 msgstr ""
5283
5284 #. type: textblock
5285 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:90
5286 msgid ""
5287 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5288 "The first time you call this function, the disk appears as C</dev/sda>, the "
5289 "second time as C</dev/sdb>, and so on."
5290 msgstr ""
5291
5292 #. type: textblock
5293 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:95
5294 msgid ""
5295 "You don't necessarily need to be root when using libguestfs.  However you "
5296 "obviously do need sufficient permissions to access the filename for whatever "
5297 "operations you want to perform (ie. read access if you just want to read the "
5298 "image or write access if you want to modify the image)."
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:101
5303 msgid "This call checks that C<filename> exists."
5304 msgstr ""
5305
5306 #. type: textblock
5307 #: ../src/guestfs-actions.pod:159 ../src/guestfs-actions.pod:4307 ../fish/guestfish-actions.pod:103 ../fish/guestfish-actions.pod:2906
5308 msgid "The optional arguments are:"
5309 msgstr ""
5310
5311 #. type: =item
5312 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:107
5313 msgid "C<readonly>"
5314 msgstr ""
5315
5316 #. type: textblock
5317 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
5318 msgid ""
5319 "If true then the image is treated as read-only.  Writes are still allowed, "
5320 "but they are stored in a temporary snapshot overlay which is discarded at "
5321 "the end.  The disk that you add is not modified."
5322 msgstr ""
5323
5324 #. type: =item
5325 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:113
5326 msgid "C<format>"
5327 msgstr ""
5328
5329 #. type: textblock
5330 #: ../src/guestfs-actions.pod:171
5331 msgid ""
5332 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
5333 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
5334 "Possible formats include C<raw> and C<qcow2>."
5335 msgstr ""
5336
5337 #. type: textblock
5338 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:119
5339 msgid ""
5340 "Automatic detection of the format opens you up to a potential security hole "
5341 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5342 "RHBZ#642934.  Specifying the format closes this security hole."
5343 msgstr ""
5344
5345 #. type: =item
5346 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:124
5347 msgid "C<iface>"
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../src/guestfs-actions.pod:182
5352 msgid ""
5353 "This rarely-used option lets you emulate the behaviour of the deprecated "
5354 "C<guestfs_add_drive_with_if> call (q.v.)"
5355 msgstr ""
5356
5357 #. type: textblock
5358 #: ../src/guestfs-actions.pod:189
5359 msgid "(Added in 1.5.23)"
5360 msgstr ""
5361
5362 #. type: =head2
5363 #: ../src/guestfs-actions.pod:191
5364 msgid "guestfs_add_drive_opts_va"
5365 msgstr ""
5366
5367 #. type: verbatim
5368 #: ../src/guestfs-actions.pod:193
5369 #, no-wrap
5370 msgid ""
5371 " int\n"
5372 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
5373 "                            const char *filename,\n"
5374 "                            va_list args);\n"
5375 "\n"
5376 msgstr ""
5377
5378 #. type: textblock
5379 #: ../src/guestfs-actions.pod:198
5380 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
5381 msgstr ""
5382
5383 #. type: =head2
5384 #: ../src/guestfs-actions.pod:202
5385 msgid "guestfs_add_drive_opts_argv"
5386 msgstr ""
5387
5388 #. type: verbatim
5389 #: ../src/guestfs-actions.pod:204
5390 #, no-wrap
5391 msgid ""
5392 " int\n"
5393 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
5394 "                              const char *filename,\n"
5395 "                              const struct guestfs_add_drive_opts_argv "
5396 "*optargs);\n"
5397 "\n"
5398 msgstr ""
5399
5400 #. type: textblock
5401 #: ../src/guestfs-actions.pod:209
5402 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
5403 msgstr ""
5404
5405 #. type: =head2
5406 #: ../src/guestfs-actions.pod:213
5407 msgid "guestfs_add_drive_ro"
5408 msgstr ""
5409
5410 #. type: verbatim
5411 #: ../src/guestfs-actions.pod:215
5412 #, no-wrap
5413 msgid ""
5414 " int\n"
5415 " guestfs_add_drive_ro (guestfs_h *g,\n"
5416 "                       const char *filename);\n"
5417 "\n"
5418 msgstr ""
5419
5420 #. type: textblock
5421 #: ../src/guestfs-actions.pod:219
5422 msgid ""
5423 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
5424 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
5425 "disk is added read-only, with the format being detected automatically."
5426 msgstr ""
5427
5428 #. type: textblock
5429 #: ../src/guestfs-actions.pod:226
5430 msgid "(Added in 1.0.38)"
5431 msgstr ""
5432
5433 #. type: =head2
5434 #: ../src/guestfs-actions.pod:228
5435 msgid "guestfs_add_drive_ro_with_if"
5436 msgstr ""
5437
5438 #. type: verbatim
5439 #: ../src/guestfs-actions.pod:230
5440 #, no-wrap
5441 msgid ""
5442 " int\n"
5443 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
5444 "                               const char *filename,\n"
5445 "                               const char *iface);\n"
5446 "\n"
5447 msgstr ""
5448
5449 #. type: textblock
5450 #: ../src/guestfs-actions.pod:235
5451 msgid ""
5452 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
5453 "QEMU interface emulation to use at run time."
5454 msgstr ""
5455
5456 #. type: textblock
5457 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268 ../src/guestfs-actions.pod:2333
5458 msgid "(Added in 1.0.84)"
5459 msgstr ""
5460
5461 #. type: =head2
5462 #: ../src/guestfs-actions.pod:249
5463 msgid "guestfs_add_drive_with_if"
5464 msgstr ""
5465
5466 #. type: verbatim
5467 #: ../src/guestfs-actions.pod:251
5468 #, no-wrap
5469 msgid ""
5470 " int\n"
5471 " guestfs_add_drive_with_if (guestfs_h *g,\n"
5472 "                            const char *filename,\n"
5473 "                            const char *iface);\n"
5474 "\n"
5475 msgstr ""
5476
5477 #. type: textblock
5478 #: ../src/guestfs-actions.pod:256
5479 msgid ""
5480 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
5481 "QEMU interface emulation to use at run time."
5482 msgstr ""
5483
5484 #. type: =head2
5485 #: ../src/guestfs-actions.pod:270
5486 msgid "guestfs_aug_clear"
5487 msgstr ""
5488
5489 #. type: verbatim
5490 #: ../src/guestfs-actions.pod:272
5491 #, no-wrap
5492 msgid ""
5493 " int\n"
5494 " guestfs_aug_clear (guestfs_h *g,\n"
5495 "                    const char *augpath);\n"
5496 "\n"
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:176
5501 msgid ""
5502 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5503 "L<augtool(1)> C<clear> command."
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
5508 msgid "(Added in 1.3.4)"
5509 msgstr ""
5510
5511 #. type: =head2
5512 #: ../src/guestfs-actions.pod:283
5513 msgid "guestfs_aug_close"
5514 msgstr ""
5515
5516 #. type: verbatim
5517 #: ../src/guestfs-actions.pod:285
5518 #, no-wrap
5519 msgid ""
5520 " int\n"
5521 " guestfs_aug_close (guestfs_h *g);\n"
5522 "\n"
5523 msgstr ""
5524
5525 #. type: textblock
5526 #: ../src/guestfs-actions.pod:288
5527 msgid ""
5528 "Close the current Augeas handle and free up any resources used by it.  After "
5529 "calling this, you have to call C<guestfs_aug_init> again before you can use "
5530 "any other Augeas functions."
5531 msgstr ""
5532
5533 #. type: textblock
5534 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320 ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430 ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475 ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535 ../src/guestfs-actions.pod:5320
5535 msgid "(Added in 0.7)"
5536 msgstr ""
5537
5538 #. type: =head2
5539 #: ../src/guestfs-actions.pod:297
5540 msgid "guestfs_aug_defnode"
5541 msgstr ""
5542
5543 #. type: verbatim
5544 #: ../src/guestfs-actions.pod:299
5545 #, no-wrap
5546 msgid ""
5547 " struct guestfs_int_bool *\n"
5548 " guestfs_aug_defnode (guestfs_h *g,\n"
5549 "                      const char *name,\n"
5550 "                      const char *expr,\n"
5551 "                      const char *val);\n"
5552 "\n"
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:192
5557 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5558 msgstr ""
5559
5560 #. type: textblock
5561 #: ../src/guestfs-actions.pod:308
5562 msgid ""
5563 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5564 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
5565 "containing that single node."
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:199
5570 msgid ""
5571 "On success this returns a pair containing the number of nodes in the "
5572 "nodeset, and a boolean flag if a node was created."
5573 msgstr ""
5574
5575 #. type: textblock
5576 #: ../src/guestfs-actions.pod:316
5577 msgid ""
5578 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
5579 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
5580 msgstr ""
5581
5582 #. type: =head2
5583 #: ../src/guestfs-actions.pod:322
5584 msgid "guestfs_aug_defvar"
5585 msgstr ""
5586
5587 #. type: verbatim
5588 #: ../src/guestfs-actions.pod:324
5589 #, no-wrap
5590 msgid ""
5591 " int\n"
5592 " guestfs_aug_defvar (guestfs_h *g,\n"
5593 "                     const char *name,\n"
5594 "                     const char *expr);\n"
5595 "\n"
5596 msgstr ""
5597
5598 #. type: textblock
5599 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:207
5600 msgid ""
5601 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5602 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:211
5607 msgid ""
5608 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5609 "evaluates to something which is not a nodeset."
5610 msgstr ""
5611
5612 #. type: =head2
5613 #: ../src/guestfs-actions.pod:340
5614 msgid "guestfs_aug_get"
5615 msgstr ""
5616
5617 #. type: verbatim
5618 #: ../src/guestfs-actions.pod:342
5619 #, no-wrap
5620 msgid ""
5621 " char *\n"
5622 " guestfs_aug_get (guestfs_h *g,\n"
5623 "                  const char *augpath);\n"
5624 "\n"
5625 msgstr ""
5626
5627 #. type: textblock
5628 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:218
5629 msgid ""
5630 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5631 "node, the C<value> is returned."
5632 msgstr ""
5633
5634 #. type: textblock
5635 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927 ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046 ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341 ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644 ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824 ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936 ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2298 ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2673 ../src/guestfs-actions.pod:2787 ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:2842 ../src/guestfs-actions.pod:2904 ../src/guestfs-actions.pod:2927 ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3844 ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4855 ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5218 ../src/guestfs-actions.pod:5396 ../src/guestfs-actions.pod:5445 ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6041 ../src/guestfs-actions.pod:6058 ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:6775 ../src/guestfs-actions.pod:6793 ../src/guestfs-actions.pod:6973 ../src/guestfs-actions.pod:7245
5636 msgid ""
5637 "This function returns a string, or NULL on error.  I<The caller must free "
5638 "the returned string after use>."
5639 msgstr ""
5640
5641 #. type: =head2
5642 #: ../src/guestfs-actions.pod:354
5643 msgid "guestfs_aug_init"
5644 msgstr ""
5645
5646 #. type: verbatim
5647 #: ../src/guestfs-actions.pod:356
5648 #, no-wrap
5649 msgid ""
5650 " int\n"
5651 " guestfs_aug_init (guestfs_h *g,\n"
5652 "                   const char *root,\n"
5653 "                   int flags);\n"
5654 "\n"
5655 msgstr ""
5656
5657 #. type: textblock
5658 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:225
5659 msgid ""
5660 "Create a new Augeas handle for editing configuration files.  If there was "
5661 "any previous Augeas handle associated with this guestfs session, then it is "
5662 "closed."
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../src/guestfs-actions.pod:365
5667 msgid "You must call this before using any other C<guestfs_aug_*> commands."
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:232
5672 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5673 msgstr ""
5674
5675 #. type: textblock
5676 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:235
5677 msgid ""
5678 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5679 "logical I<or> of the following integers:"
5680 msgstr ""
5681
5682 #. type: =item
5683 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:241
5684 msgid "C<AUG_SAVE_BACKUP> = 1"
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
5689 msgid "Keep the original file with a C<.augsave> extension."
5690 msgstr ""
5691
5692 #. type: =item
5693 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
5694 msgid "C<AUG_SAVE_NEWFILE> = 2"
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
5699 msgid ""
5700 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5701 "original.  Overrides C<AUG_SAVE_BACKUP>."
5702 msgstr ""
5703
5704 #. type: =item
5705 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:250
5706 msgid "C<AUG_TYPE_CHECK> = 4"
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
5711 msgid "Typecheck lenses (can be expensive)."
5712 msgstr ""
5713
5714 #. type: =item
5715 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
5716 msgid "C<AUG_NO_STDINC> = 8"
5717 msgstr ""
5718
5719 #. type: textblock
5720 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
5721 msgid "Do not use standard load path for modules."
5722 msgstr ""
5723
5724 #. type: =item
5725 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
5726 msgid "C<AUG_SAVE_NOOP> = 16"
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
5731 msgid "Make save a no-op, just record what would have been changed."
5732 msgstr ""
5733
5734 #. type: =item
5735 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
5736 msgid "C<AUG_NO_LOAD> = 32"
5737 msgstr ""
5738
5739 #. type: textblock
5740 #: ../src/guestfs-actions.pod:400
5741 msgid "Do not load the tree in C<guestfs_aug_init>."
5742 msgstr ""
5743
5744 #. type: textblock
5745 #: ../src/guestfs-actions.pod:404
5746 msgid "To close the handle, you can call C<guestfs_aug_close>."
5747 msgstr ""
5748
5749 #. type: textblock
5750 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:270
5751 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5752 msgstr ""
5753
5754 #. type: =head2
5755 #: ../src/guestfs-actions.pod:412
5756 msgid "guestfs_aug_insert"
5757 msgstr ""
5758
5759 #. type: verbatim
5760 #: ../src/guestfs-actions.pod:414
5761 #, no-wrap
5762 msgid ""
5763 " int\n"
5764 " guestfs_aug_insert (guestfs_h *g,\n"
5765 "                     const char *augpath,\n"
5766 "                     const char *label,\n"
5767 "                     int before);\n"
5768 "\n"
5769 msgstr ""
5770
5771 #. type: textblock
5772 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:276
5773 msgid ""
5774 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5775 "or after C<path> (depending on the boolean flag C<before>)."
5776 msgstr ""
5777
5778 #. type: textblock
5779 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:280
5780 msgid ""
5781 "C<path> must match exactly one existing node in the tree, and C<label> must "
5782 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5783 msgstr ""
5784
5785 #. type: =head2
5786 #: ../src/guestfs-actions.pod:432
5787 msgid "guestfs_aug_load"
5788 msgstr ""
5789
5790 #. type: verbatim
5791 #: ../src/guestfs-actions.pod:434
5792 #, no-wrap
5793 msgid ""
5794 " int\n"
5795 " guestfs_aug_load (guestfs_h *g);\n"
5796 "\n"
5797 msgstr ""
5798
5799 #. type: textblock
5800 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:288
5801 msgid "Load files into the tree."
5802 msgstr ""
5803
5804 #. type: textblock
5805 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
5806 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5807 msgstr ""
5808
5809 #. type: =head2
5810 #: ../src/guestfs-actions.pod:446
5811 msgid "guestfs_aug_ls"
5812 msgstr ""
5813
5814 #. type: verbatim
5815 #: ../src/guestfs-actions.pod:448
5816 #, no-wrap
5817 msgid ""
5818 " char **\n"
5819 " guestfs_aug_ls (guestfs_h *g,\n"
5820 "                 const char *augpath);\n"
5821 "\n"
5822 msgstr ""
5823
5824 #. type: textblock
5825 #: ../src/guestfs-actions.pod:452
5826 msgid ""
5827 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5828 "sorting the resulting nodes into alphabetical order."
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471 ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065 ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2280 ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2861 ../src/guestfs-actions.pod:3129 ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3476 ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3986 ../src/guestfs-actions.pod:4670 ../src/guestfs-actions.pod:5190 ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:6098 ../src/guestfs-actions.pod:6159 ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6384 ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:7098 ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7202 ../src/guestfs-actions.pod:7221 ../src/guestfs-actions.pod:7267 ../src/guestfs-actions.pod:7286
5833 msgid ""
5834 "This function returns a NULL-terminated array of strings (like "
5835 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
5836 "strings and the array after use>."
5837 msgstr ""
5838
5839 #. type: textblock
5840 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3238 ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3877 ../src/guestfs-actions.pod:4064 ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:4260 ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:5131 ../src/guestfs-actions.pod:5526 ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5552 ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6598 ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7086
5841 msgid "(Added in 0.8)"
5842 msgstr ""
5843
5844 #. type: =head2
5845 #: ../src/guestfs-actions.pod:461
5846 msgid "guestfs_aug_match"
5847 msgstr ""
5848
5849 #. type: verbatim
5850 #: ../src/guestfs-actions.pod:463
5851 #, no-wrap
5852 msgid ""
5853 " char **\n"
5854 " guestfs_aug_match (guestfs_h *g,\n"
5855 "                    const char *augpath);\n"
5856 "\n"
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:304
5861 msgid ""
5862 "Returns a list of paths which match the path expression C<path>.  The "
5863 "returned paths are sufficiently qualified so that they match exactly one "
5864 "node in the current tree."
5865 msgstr ""
5866
5867 #. type: =head2
5868 #: ../src/guestfs-actions.pod:477
5869 msgid "guestfs_aug_mv"
5870 msgstr ""
5871
5872 #. type: verbatim
5873 #: ../src/guestfs-actions.pod:479
5874 #, no-wrap
5875 msgid ""
5876 " int\n"
5877 " guestfs_aug_mv (guestfs_h *g,\n"
5878 "                 const char *src,\n"
5879 "                 const char *dest);\n"
5880 "\n"
5881 msgstr ""
5882
5883 #. type: textblock
5884 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:312
5885 msgid ""
5886 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5887 "C<dest> is overwritten if it exists."
5888 msgstr ""
5889
5890 #. type: =head2
5891 #: ../src/guestfs-actions.pod:491
5892 msgid "guestfs_aug_rm"
5893 msgstr ""
5894
5895 #. type: verbatim
5896 #: ../src/guestfs-actions.pod:493
5897 #, no-wrap
5898 msgid ""
5899 " int\n"
5900 " guestfs_aug_rm (guestfs_h *g,\n"
5901 "                 const char *augpath);\n"
5902 "\n"
5903 msgstr ""
5904
5905 #. type: textblock
5906 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:319
5907 msgid "Remove C<path> and all of its children."
5908 msgstr ""
5909
5910 #. type: textblock
5911 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5912 msgid "On success this returns the number of entries which were removed."
5913 msgstr ""
5914
5915 #. type: =head2
5916 #: ../src/guestfs-actions.pod:505
5917 msgid "guestfs_aug_save"
5918 msgstr ""
5919
5920 #. type: verbatim
5921 #: ../src/guestfs-actions.pod:507
5922 #, no-wrap
5923 msgid ""
5924 " int\n"
5925 " guestfs_aug_save (guestfs_h *g);\n"
5926 "\n"
5927 msgstr ""
5928
5929 #. type: textblock
5930 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:327
5931 msgid "This writes all pending changes to disk."
5932 msgstr ""
5933
5934 #. type: textblock
5935 #: ../src/guestfs-actions.pod:512
5936 msgid ""
5937 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5938 "are saved."
5939 msgstr ""
5940
5941 #. type: =head2
5942 #: ../src/guestfs-actions.pod:519
5943 msgid "guestfs_aug_set"
5944 msgstr ""
5945
5946 #. type: verbatim
5947 #: ../src/guestfs-actions.pod:521
5948 #, no-wrap
5949 msgid ""
5950 " int\n"
5951 " guestfs_aug_set (guestfs_h *g,\n"
5952 "                  const char *augpath,\n"
5953 "                  const char *val);\n"
5954 "\n"
5955 msgstr ""
5956
5957 #. type: textblock
5958 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:336
5959 msgid "Set the value associated with C<path> to C<val>."
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../src/guestfs-actions.pod:528
5964 msgid ""
5965 "In the Augeas API, it is possible to clear a node by setting the value to "
5966 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5967 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5968 msgstr ""
5969
5970 #. type: =head2
5971 #: ../src/guestfs-actions.pod:537
5972 msgid "guestfs_available"
5973 msgstr ""
5974
5975 #. type: verbatim
5976 #: ../src/guestfs-actions.pod:539
5977 #, no-wrap
5978 msgid ""
5979 " int\n"
5980 " guestfs_available (guestfs_h *g,\n"
5981 "                    char *const *groups);\n"
5982 "\n"
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:347
5987 msgid ""
5988 "This command is used to check the availability of some groups of "
5989 "functionality in the appliance, which not all builds of the libguestfs "
5990 "appliance will be able to provide."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../src/guestfs-actions.pod:547
5995 msgid ""
5996 "The libguestfs groups, and the functions that those groups correspond to, "
5997 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5998 "runtime by calling C<guestfs_available_all_groups>."
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:356
6003 msgid ""
6004 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6005 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6006 "and Augeas (configuration file editing) functions."
6007 msgstr ""
6008
6009 #. type: textblock
6010 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:361
6011 msgid "The command returns no error if I<all> requested groups are available."
6012 msgstr ""
6013
6014 #. type: textblock
6015 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
6016 msgid ""
6017 "It fails with an error if one or more of the requested groups is unavailable "
6018 "in the appliance."
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:366
6023 msgid ""
6024 "If an unknown group name is included in the list of groups then an error is "
6025 "always returned."
6026 msgstr ""
6027
6028 #. type: textblock
6029 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:369
6030 msgid "I<Notes:>"
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../src/guestfs-actions.pod:571
6035 msgid "You must call C<guestfs_launch> before calling this function."
6036 msgstr ""
6037
6038 #. type: textblock
6039 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:377
6040 msgid ""
6041 "The reason is because we don't know what groups are supported by the "
6042 "appliance/daemon until it is running and can be queried."
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:383
6047 msgid ""
6048 "If a group of functions is available, this does not necessarily mean that "
6049 "they will work.  You still have to check for errors when calling individual "
6050 "API functions even if they are available."
6051 msgstr ""
6052
6053 #. type: textblock
6054 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:390
6055 msgid ""
6056 "It is usually the job of distro packagers to build complete functionality "
6057 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6058 "with all requirements satisfied, will support everything."
6059 msgstr ""
6060
6061 #. type: textblock
6062 #: ../src/guestfs-actions.pod:593
6063 msgid ""
6064 "This call was added in version C<1.0.80>.  In previous versions of "
6065 "libguestfs all you could do would be to speculatively execute a command to "
6066 "find out if the daemon implemented it.  See also C<guestfs_version>."
6067 msgstr ""
6068
6069 #. type: textblock
6070 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
6071 msgid "(Added in 1.0.80)"
6072 msgstr ""
6073
6074 #. type: =head2
6075 #: ../src/guestfs-actions.pod:604
6076 msgid "guestfs_available_all_groups"
6077 msgstr ""
6078
6079 #. type: verbatim
6080 #: ../src/guestfs-actions.pod:606
6081 #, no-wrap
6082 msgid ""
6083 " char **\n"
6084 " guestfs_available_all_groups (guestfs_h *g);\n"
6085 "\n"
6086 msgstr ""
6087
6088 #. type: textblock
6089 #: ../src/guestfs-actions.pod:609
6090 msgid ""
6091 "This command returns a list of all optional groups that this daemon knows "
6092 "about.  Note this returns both supported and unsupported groups.  To find "
6093 "out which ones the daemon can actually support you have to call "
6094 "C<guestfs_available> on each member of the returned list."
6095 msgstr ""
6096
6097 #. type: textblock
6098 #: ../src/guestfs-actions.pod:615
6099 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
6100 msgstr ""
6101
6102 #. type: textblock
6103 #: ../src/guestfs-actions.pod:621
6104 msgid "(Added in 1.3.15)"
6105 msgstr ""
6106
6107 #. type: =head2
6108 #: ../src/guestfs-actions.pod:623
6109 msgid "guestfs_base64_in"
6110 msgstr ""
6111
6112 #. type: verbatim
6113 #: ../src/guestfs-actions.pod:625
6114 #, no-wrap
6115 msgid ""
6116 " int\n"
6117 " guestfs_base64_in (guestfs_h *g,\n"
6118 "                    const char *base64file,\n"
6119 "                    const char *filename);\n"
6120 "\n"
6121 msgstr ""
6122
6123 #. type: textblock
6124 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:420
6125 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
6130 msgid "(Added in 1.3.5)"
6131 msgstr ""
6132
6133 #. type: =head2
6134 #: ../src/guestfs-actions.pod:637
6135 msgid "guestfs_base64_out"
6136 msgstr ""
6137
6138 #. type: verbatim
6139 #: ../src/guestfs-actions.pod:639
6140 #, no-wrap
6141 msgid ""
6142 " int\n"
6143 " guestfs_base64_out (guestfs_h *g,\n"
6144 "                     const char *filename,\n"
6145 "                     const char *base64file);\n"
6146 "\n"
6147 msgstr ""
6148
6149 #. type: textblock
6150 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:429
6151 msgid ""
6152 "This command downloads the contents of C<filename>, writing it out to local "
6153 "file C<base64file> encoded as base64."
6154 msgstr ""
6155
6156 #. type: =head2
6157 #: ../src/guestfs-actions.pod:651
6158 msgid "guestfs_blockdev_flushbufs"
6159 msgstr ""
6160
6161 #. type: verbatim
6162 #: ../src/guestfs-actions.pod:653
6163 #, no-wrap
6164 msgid ""
6165 " int\n"
6166 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
6167 "                             const char *device);\n"
6168 "\n"
6169 msgstr ""
6170
6171 #. type: textblock
6172 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:438
6173 msgid "This tells the kernel to flush internal buffers associated with C<device>."
6174 msgstr ""
6175
6176 #. type: textblock
6177 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677 ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:452 ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:496 ../fish/guestfish-actions.pod:504 ../fish/guestfish-actions.pod:515 ../fish/guestfish-actions.pod:523 ../fish/guestfish-actions.pod:531
6178 msgid "This uses the L<blockdev(8)> command."
6179 msgstr ""
6180
6181 #. type: textblock
6182 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781 ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
6183 msgid "(Added in 0.9.3)"
6184 msgstr ""
6185
6186 #. type: =head2
6187 #: ../src/guestfs-actions.pod:666
6188 msgid "guestfs_blockdev_getbsz"
6189 msgstr ""
6190
6191 #. type: verbatim
6192 #: ../src/guestfs-actions.pod:668
6193 #, no-wrap
6194 msgid ""
6195 " int\n"
6196 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
6197 "                          const char *device);\n"
6198 "\n"
6199 msgstr ""
6200
6201 #. type: textblock
6202 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:447
6203 msgid "This returns the block size of a device."
6204 msgstr ""
6205
6206 #. type: textblock
6207 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:512
6208 msgid ""
6209 "(Note this is different from both I<size in blocks> and I<filesystem block "
6210 "size>)."
6211 msgstr ""
6212
6213 #. type: =head2
6214 #: ../src/guestfs-actions.pod:683
6215 msgid "guestfs_blockdev_getro"
6216 msgstr ""
6217
6218 #. type: verbatim
6219 #: ../src/guestfs-actions.pod:685
6220 #, no-wrap
6221 msgid ""
6222 " int\n"
6223 " guestfs_blockdev_getro (guestfs_h *g,\n"
6224 "                         const char *device);\n"
6225 "\n"
6226 msgstr ""
6227
6228 #. type: textblock
6229 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:458
6230 msgid ""
6231 "Returns a boolean indicating if the block device is read-only (true if "
6232 "read-only, false if not)."
6233 msgstr ""
6234
6235 #. type: textblock
6236 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396 ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044 ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2947 ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:2983 ../src/guestfs-actions.pod:3146 ../src/guestfs-actions.pod:3160 ../src/guestfs-actions.pod:3175 ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3205 ../src/guestfs-actions.pod:3220 ../src/guestfs-actions.pod:3236 ../src/guestfs-actions.pod:3250 ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3277 ../src/guestfs-actions.pod:3292 ../src/guestfs-actions.pod:3307 ../src/guestfs-actions.pod:4819
6237 msgid "This function returns a C truth value on success or -1 on error."
6238 msgstr ""
6239
6240 #. type: =head2
6241 #: ../src/guestfs-actions.pod:698
6242 msgid "guestfs_blockdev_getsize64"
6243 msgstr ""
6244
6245 #. type: verbatim
6246 #: ../src/guestfs-actions.pod:700
6247 #, no-wrap
6248 msgid ""
6249 " int64_t\n"
6250 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
6251 "                             const char *device);\n"
6252 "\n"
6253 msgstr ""
6254
6255 #. type: textblock
6256 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:467
6257 msgid "This returns the size of the device in bytes."
6258 msgstr ""
6259
6260 #. type: textblock
6261 #: ../src/guestfs-actions.pod:706
6262 msgid "See also C<guestfs_blockdev_getsz>."
6263 msgstr ""
6264
6265 #. type: =head2
6266 #: ../src/guestfs-actions.pod:714
6267 msgid "guestfs_blockdev_getss"
6268 msgstr ""
6269
6270 #. type: verbatim
6271 #: ../src/guestfs-actions.pod:716
6272 #, no-wrap
6273 msgid ""
6274 " int\n"
6275 " guestfs_blockdev_getss (guestfs_h *g,\n"
6276 "                         const char *device);\n"
6277 "\n"
6278 msgstr ""
6279
6280 #. type: textblock
6281 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:477
6282 msgid ""
6283 "This returns the size of sectors on a block device.  Usually 512, but can be "
6284 "larger for modern devices."
6285 msgstr ""
6286
6287 #. type: textblock
6288 #: ../src/guestfs-actions.pod:723
6289 msgid ""
6290 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
6291 "that)."
6292 msgstr ""
6293
6294 #. type: =head2
6295 #: ../src/guestfs-actions.pod:732
6296 msgid "guestfs_blockdev_getsz"
6297 msgstr ""
6298
6299 #. type: verbatim
6300 #: ../src/guestfs-actions.pod:734
6301 #, no-wrap
6302 msgid ""
6303 " int64_t\n"
6304 " guestfs_blockdev_getsz (guestfs_h *g,\n"
6305 "                         const char *device);\n"
6306 "\n"
6307 msgstr ""
6308
6309 #. type: textblock
6310 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:489
6311 msgid ""
6312 "This returns the size of the device in units of 512-byte sectors (even if "
6313 "the sectorsize isn't 512 bytes ... weird)."
6314 msgstr ""
6315
6316 #. type: textblock
6317 #: ../src/guestfs-actions.pod:741
6318 msgid ""
6319 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
6320 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
6321 msgstr ""
6322
6323 #. type: =head2
6324 #: ../src/guestfs-actions.pod:751
6325 msgid "guestfs_blockdev_rereadpt"
6326 msgstr ""
6327
6328 #. type: verbatim
6329 #: ../src/guestfs-actions.pod:753
6330 #, no-wrap
6331 msgid ""
6332 " int\n"
6333 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
6334 "                            const char *device);\n"
6335 "\n"
6336 msgstr ""
6337
6338 #. type: textblock
6339 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:502
6340 msgid "Reread the partition table on C<device>."
6341 msgstr ""
6342
6343 #. type: =head2
6344 #: ../src/guestfs-actions.pod:765
6345 msgid "guestfs_blockdev_setbsz"
6346 msgstr ""
6347
6348 #. type: verbatim
6349 #: ../src/guestfs-actions.pod:767
6350 #, no-wrap
6351 msgid ""
6352 " int\n"
6353 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
6354 "                          const char *device,\n"
6355 "                          int blocksize);\n"
6356 "\n"
6357 msgstr ""
6358
6359 #. type: textblock
6360 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:510
6361 msgid "This sets the block size of a device."
6362 msgstr ""
6363
6364 #. type: =head2
6365 #: ../src/guestfs-actions.pod:783
6366 msgid "guestfs_blockdev_setro"
6367 msgstr ""
6368
6369 #. type: verbatim
6370 #: ../src/guestfs-actions.pod:785
6371 #, no-wrap
6372 msgid ""
6373 " int\n"
6374 " guestfs_blockdev_setro (guestfs_h *g,\n"
6375 "                         const char *device);\n"
6376 "\n"
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:521
6381 msgid "Sets the block device named C<device> to read-only."
6382 msgstr ""
6383
6384 #. type: =head2
6385 #: ../src/guestfs-actions.pod:797
6386 msgid "guestfs_blockdev_setrw"
6387 msgstr ""
6388
6389 #. type: verbatim
6390 #: ../src/guestfs-actions.pod:799
6391 #, no-wrap
6392 msgid ""
6393 " int\n"
6394 " guestfs_blockdev_setrw (guestfs_h *g,\n"
6395 "                         const char *device);\n"
6396 "\n"
6397 msgstr ""
6398
6399 #. type: textblock
6400 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:529
6401 msgid "Sets the block device named C<device> to read-write."
6402 msgstr ""
6403
6404 #. type: =head2
6405 #: ../src/guestfs-actions.pod:811
6406 msgid "guestfs_case_sensitive_path"
6407 msgstr ""
6408
6409 #. type: verbatim
6410 #: ../src/guestfs-actions.pod:813
6411 #, no-wrap
6412 msgid ""
6413 " char *\n"
6414 " guestfs_case_sensitive_path (guestfs_h *g,\n"
6415 "                              const char *path);\n"
6416 "\n"
6417 msgstr ""
6418
6419 #. type: textblock
6420 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:537
6421 msgid ""
6422 "This can be used to resolve case insensitive paths on a filesystem which is "
6423 "case sensitive.  The use case is to resolve paths which you have read from "
6424 "Windows configuration files or the Windows Registry, to the true path."
6425 msgstr ""
6426
6427 #. type: textblock
6428 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:542
6429 msgid ""
6430 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6431 "(and probably others), which is that although the underlying filesystem is "
6432 "case-insensitive, the driver exports the filesystem to Linux as "
6433 "case-sensitive."
6434 msgstr ""
6435
6436 #. type: textblock
6437 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:547
6438 msgid ""
6439 "One consequence of this is that special directories such as C<c:\\windows> "
6440 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6441 "precise details of how they were created.  In Windows itself this would not "
6442 "be a problem."
6443 msgstr ""
6444
6445 #. type: textblock
6446 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:553
6447 msgid ""
6448 "Bug or feature? You decide: "
6449 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
6450 msgstr ""
6451
6452 #. type: textblock
6453 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:556
6454 msgid ""
6455 "This function resolves the true case of each element in the path and returns "
6456 "the case-sensitive path."
6457 msgstr ""
6458
6459 #. type: textblock
6460 #: ../src/guestfs-actions.pod:839
6461 msgid ""
6462 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
6463 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
6464 "how the directories were originally created under Windows)."
6465 msgstr ""
6466
6467 #. type: textblock
6468 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:564
6469 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6470 msgstr ""
6471
6472 #. type: textblock
6473 #: ../src/guestfs-actions.pod:847
6474 msgid "See also C<guestfs_realpath>."
6475 msgstr ""
6476
6477 #. type: textblock
6478 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6778
6479 msgid "(Added in 1.0.75)"
6480 msgstr ""
6481
6482 #. type: =head2
6483 #: ../src/guestfs-actions.pod:854
6484 msgid "guestfs_cat"
6485 msgstr ""
6486
6487 #. type: verbatim
6488 #: ../src/guestfs-actions.pod:856
6489 #, no-wrap
6490 msgid ""
6491 " char *\n"
6492 " guestfs_cat (guestfs_h *g,\n"
6493 "              const char *path);\n"
6494 "\n"
6495 msgstr ""
6496
6497 #. type: textblock
6498 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:3541
6499 msgid "Return the contents of the file named C<path>."
6500 msgstr ""
6501
6502 #. type: textblock
6503 #: ../src/guestfs-actions.pod:862
6504 msgid ""
6505 "Note that this function cannot correctly handle binary files (specifically, "
6506 "files containing C<\\0> character which is treated as end of string).  For "
6507 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
6508 "functions which have a more complex interface."
6509 msgstr ""
6510
6511 #. type: textblock
6512 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049 ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360 ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482 ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750 ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5271 ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:6163 ../src/guestfs-actions.pod:6218 ../src/guestfs-actions.pod:6364 ../src/guestfs-actions.pod:6388 ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7102 ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7206 ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7290 ../fish/guestfish-actions.pod:580 ../fish/guestfish-actions.pod:715 ../fish/guestfish-actions.pod:727 ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:913 ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1185 ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:1490 ../fish/guestfish-actions.pod:1518 ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:1543 ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3426 ../fish/guestfish-actions.pod:3502 ../fish/guestfish-actions.pod:3519 ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4130 ../fish/guestfish-actions.pod:4176 ../fish/guestfish-actions.pod:4261 ../fish/guestfish-actions.pod:4276 ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4704 ../fish/guestfish-actions.pod:4721 ../fish/guestfish-actions.pod:4731 ../fish/guestfish-actions.pod:4779 ../fish/guestfish-actions.pod:4789 ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4828
6513 msgid ""
6514 "Because of the message protocol, there is a transfer limit of somewhere "
6515 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6516 msgstr ""
6517
6518 #. type: textblock
6519 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3497 ../src/guestfs-actions.pod:3585 ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4004 ../src/guestfs-actions.pod:5194 ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:6937 ../src/guestfs-actions.pod:6951
6520 msgid "(Added in 0.4)"
6521 msgstr ""
6522
6523 #. type: =head2
6524 #: ../src/guestfs-actions.pod:875
6525 msgid "guestfs_checksum"
6526 msgstr ""
6527
6528 #. type: verbatim
6529 #: ../src/guestfs-actions.pod:877
6530 #, no-wrap
6531 msgid ""
6532 " char *\n"
6533 " guestfs_checksum (guestfs_h *g,\n"
6534 "                   const char *csumtype,\n"
6535 "                   const char *path);\n"
6536 "\n"
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:587
6541 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6542 msgstr ""
6543
6544 #. type: textblock
6545 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:590
6546 msgid ""
6547 "The type of checksum to compute is given by the C<csumtype> parameter which "
6548 "must have one of the following values:"
6549 msgstr ""
6550
6551 #. type: =item
6552 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:595
6553 msgid "C<crc>"
6554 msgstr ""
6555
6556 #. type: textblock
6557 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
6558 msgid ""
6559 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6560 "C<cksum> command."
6561 msgstr ""
6562
6563 #. type: =item
6564 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:600
6565 msgid "C<md5>"
6566 msgstr ""
6567
6568 #. type: textblock
6569 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
6570 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6571 msgstr ""
6572
6573 #. type: =item
6574 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
6575 msgid "C<sha1>"
6576 msgstr ""
6577
6578 #. type: textblock
6579 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
6580 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6581 msgstr ""
6582
6583 #. type: =item
6584 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
6585 msgid "C<sha224>"
6586 msgstr ""
6587
6588 #. type: textblock
6589 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
6590 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6591 msgstr ""
6592
6593 #. type: =item
6594 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
6595 msgid "C<sha256>"
6596 msgstr ""
6597
6598 #. type: textblock
6599 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
6600 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6601 msgstr ""
6602
6603 #. type: =item
6604 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
6605 msgid "C<sha384>"
6606 msgstr ""
6607
6608 #. type: textblock
6609 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
6610 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6611 msgstr ""
6612
6613 #. type: =item
6614 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
6615 msgid "C<sha512>"
6616 msgstr ""
6617
6618 #. type: textblock
6619 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
6620 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6621 msgstr ""
6622
6623 #. type: textblock
6624 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:626
6625 msgid "The checksum is returned as a printable string."
6626 msgstr ""
6627
6628 #. type: textblock
6629 #: ../src/guestfs-actions.pod:923
6630 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6631 msgstr ""
6632
6633 #. type: textblock
6634 #: ../src/guestfs-actions.pod:925
6635 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6636 msgstr ""
6637
6638 #. type: textblock
6639 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3162 ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3252 ../src/guestfs-actions.pod:3279 ../src/guestfs-actions.pod:6634
6640 msgid "(Added in 1.0.2)"
6641 msgstr ""
6642
6643 #. type: =head2
6644 #: ../src/guestfs-actions.pod:932
6645 msgid "guestfs_checksum_device"
6646 msgstr ""
6647
6648 #. type: verbatim
6649 #: ../src/guestfs-actions.pod:934
6650 #, no-wrap
6651 msgid ""
6652 " char *\n"
6653 " guestfs_checksum_device (guestfs_h *g,\n"
6654 "                          const char *csumtype,\n"
6655 "                          const char *device);\n"
6656 "\n"
6657 msgstr ""
6658
6659 #. type: textblock
6660 #: ../src/guestfs-actions.pod:939
6661 msgid ""
6662 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6663 "device named C<device>.  For the types of checksums supported see the "
6664 "C<guestfs_checksum> command."
6665 msgstr ""
6666
6667 #. type: textblock
6668 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4725 ../src/guestfs-actions.pod:4784 ../src/guestfs-actions.pod:4821 ../src/guestfs-actions.pod:4839 ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557 ../src/guestfs-actions.pod:6963
6669 msgid "(Added in 1.3.2)"
6670 msgstr ""
6671
6672 #. type: =head2
6673 #: ../src/guestfs-actions.pod:948
6674 msgid "guestfs_checksums_out"
6675 msgstr ""
6676
6677 #. type: verbatim
6678 #: ../src/guestfs-actions.pod:950
6679 #, no-wrap
6680 msgid ""
6681 " int\n"
6682 " guestfs_checksums_out (guestfs_h *g,\n"
6683 "                        const char *csumtype,\n"
6684 "                        const char *directory,\n"
6685 "                        const char *sumsfile);\n"
6686 "\n"
6687 msgstr ""
6688
6689 #. type: textblock
6690 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:644
6691 msgid ""
6692 "This command computes the checksums of all regular files in C<directory> and "
6693 "then emits a list of those checksums to the local output file C<sumsfile>."
6694 msgstr ""
6695
6696 #. type: textblock
6697 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:648
6698 msgid ""
6699 "This can be used for verifying the integrity of a virtual machine.  However "
6700 "to be properly secure you should pay attention to the output of the checksum "
6701 "command (it uses the ones from GNU coreutils).  In particular when the "
6702 "filename is not printable, coreutils uses a special backslash syntax.  For "
6703 "more information, see the GNU coreutils info file."
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../src/guestfs-actions.pod:970
6708 msgid "(Added in 1.3.7)"
6709 msgstr ""
6710
6711 #. type: =head2
6712 #: ../src/guestfs-actions.pod:972
6713 msgid "guestfs_chmod"
6714 msgstr ""
6715
6716 #. type: verbatim
6717 #: ../src/guestfs-actions.pod:974
6718 #, no-wrap
6719 msgid ""
6720 " int\n"
6721 " guestfs_chmod (guestfs_h *g,\n"
6722 "                int mode,\n"
6723 "                const char *path);\n"
6724 "\n"
6725 msgstr ""
6726
6727 #. type: textblock
6728 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:662
6729 msgid ""
6730 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6731 "supported."
6732 msgstr ""
6733
6734 #. type: textblock
6735 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:665
6736 msgid ""
6737 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6738 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6739 "C<700>."
6740 msgstr ""
6741
6742 #. type: textblock
6743 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:669 ../fish/guestfish-actions.pod:2870 ../fish/guestfish-actions.pod:2986 ../fish/guestfish-actions.pod:2996 ../fish/guestfish-actions.pod:3006
6744 msgid "The mode actually set is affected by the umask."
6745 msgstr ""
6746
6747 #. type: =head2
6748 #: ../src/guestfs-actions.pod:992
6749 msgid "guestfs_chown"
6750 msgstr ""
6751
6752 #. type: verbatim
6753 #: ../src/guestfs-actions.pod:994
6754 #, no-wrap
6755 msgid ""
6756 " int\n"
6757 " guestfs_chown (guestfs_h *g,\n"
6758 "                int owner,\n"
6759 "                int group,\n"
6760 "                const char *path);\n"
6761 "\n"
6762 msgstr ""
6763
6764 #. type: textblock
6765 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:675
6766 msgid "Change the file owner to C<owner> and group to C<group>."
6767 msgstr ""
6768
6769 #. type: textblock
6770 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3349 ../fish/guestfish-actions.pod:677 ../fish/guestfish-actions.pod:2328
6771 msgid ""
6772 "Only numeric uid and gid are supported.  If you want to use names, you will "
6773 "need to locate and parse the password file yourself (Augeas support makes "
6774 "this relatively easy)."
6775 msgstr ""
6776
6777 #. type: =head2
6778 #: ../src/guestfs-actions.pod:1010
6779 msgid "guestfs_command"
6780 msgstr ""
6781
6782 #. type: verbatim
6783 #: ../src/guestfs-actions.pod:1012
6784 #, no-wrap
6785 msgid ""
6786 " char *\n"
6787 " guestfs_command (guestfs_h *g,\n"
6788 "                  char *const *arguments);\n"
6789 "\n"
6790 msgstr ""
6791
6792 #. type: textblock
6793 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:685
6794 msgid ""
6795 "This call runs a command from the guest filesystem.  The filesystem must be "
6796 "mounted, and must contain a compatible operating system (ie. something "
6797 "Linux, with the same or compatible processor architecture)."
6798 msgstr ""
6799
6800 #. type: textblock
6801 #: ../src/guestfs-actions.pod:1021
6802 msgid ""
6803 "The single parameter is an argv-style list of arguments.  The first element "
6804 "is the name of the program to run.  Subsequent elements are parameters.  The "
6805 "list must be non-empty (ie. must contain a program name).  Note that the "
6806 "command runs directly, and is I<not> invoked via the shell (see "
6807 "C<guestfs_sh>)."
6808 msgstr ""
6809
6810 #. type: textblock
6811 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:697
6812 msgid "The return value is anything printed to I<stdout> by the command."
6813 msgstr ""
6814
6815 #. type: textblock
6816 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:700
6817 msgid ""
6818 "If the command returns a non-zero exit status, then this function returns an "
6819 "error message.  The error message string is the content of I<stderr> from "
6820 "the command."
6821 msgstr ""
6822
6823 #. type: textblock
6824 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:704
6825 msgid ""
6826 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
6827 "C</bin>.  If you require a program from another location, you should provide "
6828 "the full path in the first parameter."
6829 msgstr ""
6830
6831 #. type: textblock
6832 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:709
6833 msgid ""
6834 "Shared libraries and data files required by the program must be available on "
6835 "filesystems which are mounted in the correct places.  It is the caller's "
6836 "responsibility to ensure all filesystems that are needed are mounted at the "
6837 "right locations."
6838 msgstr ""
6839
6840 #. type: textblock
6841 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1535
6842 msgid "(Added in 0.9.1)"
6843 msgstr ""
6844
6845 #. type: =head2
6846 #: ../src/guestfs-actions.pod:1054
6847 msgid "guestfs_command_lines"
6848 msgstr ""
6849
6850 #. type: verbatim
6851 #: ../src/guestfs-actions.pod:1056
6852 #, no-wrap
6853 msgid ""
6854 " char **\n"
6855 " guestfs_command_lines (guestfs_h *g,\n"
6856 "                        char *const *arguments);\n"
6857 "\n"
6858 msgstr ""
6859
6860 #. type: textblock
6861 #: ../src/guestfs-actions.pod:1060
6862 msgid ""
6863 "This is the same as C<guestfs_command>, but splits the result into a list of "
6864 "lines."
6865 msgstr ""
6866
6867 #. type: textblock
6868 #: ../src/guestfs-actions.pod:1063
6869 msgid "See also: C<guestfs_sh_lines>"
6870 msgstr ""
6871
6872 #. type: =head2
6873 #: ../src/guestfs-actions.pod:1074
6874 msgid "guestfs_config"
6875 msgstr ""
6876
6877 #. type: verbatim
6878 #: ../src/guestfs-actions.pod:1076
6879 #, no-wrap
6880 msgid ""
6881 " int\n"
6882 " guestfs_config (guestfs_h *g,\n"
6883 "                 const char *qemuparam,\n"
6884 "                 const char *qemuvalue);\n"
6885 "\n"
6886 msgstr ""
6887
6888 #. type: textblock
6889 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:734
6890 msgid ""
6891 "This can be used to add arbitrary qemu command line parameters of the form "
6892 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6893 "setting some parameters which would interfere with parameters that we use."
6894 msgstr ""
6895
6896 #. type: textblock
6897 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:739
6898 msgid "The first character of C<param> string must be a C<-> (dash)."
6899 msgstr ""
6900
6901 #. type: textblock
6902 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6903 msgid "C<value> can be NULL."
6904 msgstr ""
6905
6906 #. type: =head2
6907 #: ../src/guestfs-actions.pod:1094
6908 msgid "guestfs_copy_size"
6909 msgstr ""
6910
6911 #. type: verbatim
6912 #: ../src/guestfs-actions.pod:1096
6913 #, no-wrap
6914 msgid ""
6915 " int\n"
6916 " guestfs_copy_size (guestfs_h *g,\n"
6917 "                    const char *src,\n"
6918 "                    const char *dest,\n"
6919 "                    int64_t size);\n"
6920 "\n"
6921 msgstr ""
6922
6923 #. type: textblock
6924 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:747
6925 msgid ""
6926 "This command copies exactly C<size> bytes from one source device or file "
6927 "C<src> to another destination device or file C<dest>."
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:750
6932 msgid ""
6933 "Note this will fail if the source is too short or if the destination is not "
6934 "large enough."
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:7142 ../src/guestfs-actions.pod:7161
6939 msgid ""
6940 "This long-running command can generate progress notification messages so "
6941 "that the caller can display a progress bar or indicator.  To receive these "
6942 "messages, the caller must register a progress callback.  See "
6943 "L<guestfs(3)/guestfs_set_progress_callback>."
6944 msgstr ""
6945
6946 #. type: textblock
6947 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:5221 ../src/guestfs-actions.pod:6870 ../src/guestfs-actions.pod:6890 ../src/guestfs-actions.pod:6976
6948 msgid "(Added in 1.0.87)"
6949 msgstr ""
6950
6951 #. type: =head2
6952 #: ../src/guestfs-actions.pod:1117
6953 msgid "guestfs_cp"
6954 msgstr ""
6955
6956 #. type: verbatim
6957 #: ../src/guestfs-actions.pod:1119
6958 #, no-wrap
6959 msgid ""
6960 " int\n"
6961 " guestfs_cp (guestfs_h *g,\n"
6962 "             const char *src,\n"
6963 "             const char *dest);\n"
6964 "\n"
6965 msgstr ""
6966
6967 #. type: textblock
6968 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:757
6969 msgid ""
6970 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6971 "destination filename or destination directory."
6972 msgstr ""
6973
6974 #. type: textblock
6975 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4688 ../src/guestfs-actions.pod:5065
6976 msgid "(Added in 1.0.18)"
6977 msgstr ""
6978
6979 #. type: =head2
6980 #: ../src/guestfs-actions.pod:1131
6981 msgid "guestfs_cp_a"
6982 msgstr ""
6983
6984 #. type: verbatim
6985 #: ../src/guestfs-actions.pod:1133
6986 #, no-wrap
6987 msgid ""
6988 " int\n"
6989 " guestfs_cp_a (guestfs_h *g,\n"
6990 "               const char *src,\n"
6991 "               const char *dest);\n"
6992 "\n"
6993 msgstr ""
6994
6995 #. type: textblock
6996 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:764
6997 msgid ""
6998 "This copies a file or directory from C<src> to C<dest> recursively using the "
6999 "C<cp -a> command."
7000 msgstr ""
7001
7002 #. type: =head2
7003 #: ../src/guestfs-actions.pod:1145
7004 msgid "guestfs_dd"
7005 msgstr ""
7006
7007 #. type: verbatim
7008 #: ../src/guestfs-actions.pod:1147
7009 #, no-wrap
7010 msgid ""
7011 " int\n"
7012 " guestfs_dd (guestfs_h *g,\n"
7013 "             const char *src,\n"
7014 "             const char *dest);\n"
7015 "\n"
7016 msgstr ""
7017
7018 #. type: textblock
7019 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:771
7020 msgid ""
7021 "This command copies from one source device or file C<src> to another "
7022 "destination device or file C<dest>.  Normally you would use this to copy to "
7023 "or from a device or partition, for example to duplicate a filesystem."
7024 msgstr ""
7025
7026 #. type: textblock
7027 #: ../src/guestfs-actions.pod:1157
7028 msgid ""
7029 "If the destination is a device, it must be as large or larger than the "
7030 "source file or device, otherwise the copy will fail.  This command cannot do "
7031 "partial copies (see C<guestfs_copy_size>)."
7032 msgstr ""
7033
7034 #. type: =head2
7035 #: ../src/guestfs-actions.pod:1165
7036 msgid "guestfs_df"
7037 msgstr ""
7038
7039 #. type: verbatim
7040 #: ../src/guestfs-actions.pod:1167
7041 #, no-wrap
7042 msgid ""
7043 " char *\n"
7044 " guestfs_df (guestfs_h *g);\n"
7045 "\n"
7046 msgstr ""
7047
7048 #. type: textblock
7049 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:784
7050 msgid "This command runs the C<df> command to report disk space used."
7051 msgstr ""
7052
7053 #. type: textblock
7054 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
7055 msgid ""
7056 "This command is mostly useful for interactive sessions.  It is I<not> "
7057 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
7058 "from programs."
7059 msgstr ""
7060
7061 #. type: textblock
7062 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:4127 ../src/guestfs-actions.pod:4588 ../src/guestfs-actions.pod:6367 ../src/guestfs-actions.pod:6391 ../src/guestfs-actions.pod:7009 ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7035
7063 msgid "(Added in 1.0.54)"
7064 msgstr ""
7065
7066 #. type: =head2
7067 #: ../src/guestfs-actions.pod:1181
7068 msgid "guestfs_df_h"
7069 msgstr ""
7070
7071 #. type: verbatim
7072 #: ../src/guestfs-actions.pod:1183
7073 #, no-wrap
7074 msgid ""
7075 " char *\n"
7076 " guestfs_df_h (guestfs_h *g);\n"
7077 "\n"
7078 msgstr ""
7079
7080 #. type: textblock
7081 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:794
7082 msgid ""
7083 "This command runs the C<df -h> command to report disk space used in "
7084 "human-readable format."
7085 msgstr ""
7086
7087 #. type: =head2
7088 #: ../src/guestfs-actions.pod:1198
7089 msgid "guestfs_dmesg"
7090 msgstr ""
7091
7092 #. type: verbatim
7093 #: ../src/guestfs-actions.pod:1200
7094 #, no-wrap
7095 msgid ""
7096 " char *\n"
7097 " guestfs_dmesg (guestfs_h *g);\n"
7098 "\n"
7099 msgstr ""
7100
7101 #. type: textblock
7102 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:805
7103 msgid ""
7104 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7105 "This is sometimes useful for extended debugging of problems."
7106 msgstr ""
7107
7108 #. type: textblock
7109 #: ../src/guestfs-actions.pod:1207
7110 msgid ""
7111 "Another way to get the same information is to enable verbose messages with "
7112 "C<guestfs_set_verbose> or by setting the environment variable "
7113 "C<LIBGUESTFS_DEBUG=1> before running the program."
7114 msgstr ""
7115
7116 #. type: =head2
7117 #: ../src/guestfs-actions.pod:1217
7118 msgid "guestfs_download"
7119 msgstr ""
7120
7121 #. type: verbatim
7122 #: ../src/guestfs-actions.pod:1219
7123 #, no-wrap
7124 msgid ""
7125 " int\n"
7126 " guestfs_download (guestfs_h *g,\n"
7127 "                   const char *remotefilename,\n"
7128 "                   const char *filename);\n"
7129 "\n"
7130 msgstr ""
7131
7132 #. type: textblock
7133 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249 ../fish/guestfish-actions.pod:818 ../fish/guestfish-actions.pod:831
7134 msgid ""
7135 "Download file C<remotefilename> and save it as C<filename> on the local "
7136 "machine."
7137 msgstr ""
7138
7139 #. type: textblock
7140 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6623 ../fish/guestfish-actions.pod:821 ../fish/guestfish-actions.pod:4434
7141 msgid "C<filename> can also be a named pipe."
7142 msgstr ""
7143
7144 #. type: textblock
7145 #: ../src/guestfs-actions.pod:1229
7146 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
7147 msgstr ""
7148
7149 #. type: =head2
7150 #: ../src/guestfs-actions.pod:1240
7151 msgid "guestfs_download_offset"
7152 msgstr ""
7153
7154 #. type: verbatim
7155 #: ../src/guestfs-actions.pod:1242
7156 #, no-wrap
7157 msgid ""
7158 " int\n"
7159 " guestfs_download_offset (guestfs_h *g,\n"
7160 "                          const char *remotefilename,\n"
7161 "                          const char *filename,\n"
7162 "                          int64_t offset,\n"
7163 "                          int64_t size);\n"
7164 "\n"
7165 msgstr ""
7166
7167 #. type: textblock
7168 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:834
7169 msgid ""
7170 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7171 "region must be within the file or device)."
7172 msgstr ""
7173
7174 #. type: textblock
7175 #: ../src/guestfs-actions.pod:1255
7176 msgid ""
7177 "Note that there is no limit on the amount of data that can be downloaded "
7178 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
7179 "full amount unless an error occurs."
7180 msgstr ""
7181
7182 #. type: textblock
7183 #: ../src/guestfs-actions.pod:1260
7184 msgid "See also C<guestfs_download>, C<guestfs_pread>."
7185 msgstr ""
7186
7187 #. type: textblock
7188 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6668
7189 msgid "(Added in 1.5.17)"
7190 msgstr ""
7191
7192 #. type: =head2
7193 #: ../src/guestfs-actions.pod:1271
7194 msgid "guestfs_drop_caches"
7195 msgstr ""
7196
7197 #. type: verbatim
7198 #: ../src/guestfs-actions.pod:1273
7199 #, no-wrap
7200 msgid ""
7201 " int\n"
7202 " guestfs_drop_caches (guestfs_h *g,\n"
7203 "                      int whattodrop);\n"
7204 "\n"
7205 msgstr ""
7206
7207 #. type: textblock
7208 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:850
7209 msgid ""
7210 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7211 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7212 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7213 msgstr ""
7214
7215 #. type: textblock
7216 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:855
7217 msgid "Setting C<whattodrop> to 3 should drop everything."
7218 msgstr ""
7219
7220 #. type: textblock
7221 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
7222 msgid ""
7223 "This automatically calls L<sync(2)> before the operation, so that the "
7224 "maximum guest memory is freed."
7225 msgstr ""
7226
7227 #. type: =head2
7228 #: ../src/guestfs-actions.pod:1291
7229 msgid "guestfs_du"
7230 msgstr ""
7231
7232 #. type: verbatim
7233 #: ../src/guestfs-actions.pod:1293
7234 #, no-wrap
7235 msgid ""
7236 " int64_t\n"
7237 " guestfs_du (guestfs_h *g,\n"
7238 "             const char *path);\n"
7239 "\n"
7240 msgstr ""
7241
7242 #. type: textblock
7243 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:864
7244 msgid ""
7245 "This command runs the C<du -s> command to estimate file space usage for "
7246 "C<path>."
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:867
7251 msgid ""
7252 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7253 "estimate includes the contents of the directory and all subdirectories "
7254 "(recursively)."
7255 msgstr ""
7256
7257 #. type: textblock
7258 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:871
7259 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7260 msgstr ""
7261
7262 #. type: =head2
7263 #: ../src/guestfs-actions.pod:1311
7264 msgid "guestfs_e2fsck_f"
7265 msgstr ""
7266
7267 #. type: verbatim
7268 #: ../src/guestfs-actions.pod:1313
7269 #, no-wrap
7270 msgid ""
7271 " int\n"
7272 " guestfs_e2fsck_f (guestfs_h *g,\n"
7273 "                   const char *device);\n"
7274 "\n"
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:878
7279 msgid ""
7280 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7281 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
7282 "clean (C<-f>)."
7283 msgstr ""
7284
7285 #. type: textblock
7286 #: ../src/guestfs-actions.pod:1321
7287 msgid ""
7288 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
7289 "Normally you should use C<guestfs_fsck>."
7290 msgstr ""
7291
7292 #. type: textblock
7293 #: ../src/guestfs-actions.pod:1326
7294 msgid "(Added in 1.0.29)"
7295 msgstr ""
7296
7297 #. type: =head2
7298 #: ../src/guestfs-actions.pod:1328
7299 msgid "guestfs_echo_daemon"
7300 msgstr ""
7301
7302 #. type: verbatim
7303 #: ../src/guestfs-actions.pod:1330
7304 #, no-wrap
7305 msgid ""
7306 " char *\n"
7307 " guestfs_echo_daemon (guestfs_h *g,\n"
7308 "                      char *const *words);\n"
7309 "\n"
7310 msgstr ""
7311
7312 #. type: textblock
7313 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:889
7314 msgid ""
7315 "This command concatenates the list of C<words> passed with single spaces "
7316 "between them and returns the resulting string."
7317 msgstr ""
7318
7319 #. type: textblock
7320 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:892
7321 msgid "You can use this command to test the connection through to the daemon."
7322 msgstr ""
7323
7324 #. type: textblock
7325 #: ../src/guestfs-actions.pod:1339
7326 msgid "See also C<guestfs_ping_daemon>."
7327 msgstr ""
7328
7329 #. type: textblock
7330 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:5871
7331 msgid "(Added in 1.0.69)"
7332 msgstr ""
7333
7334 #. type: =head2
7335 #: ../src/guestfs-actions.pod:1346
7336 msgid "guestfs_egrep"
7337 msgstr ""
7338
7339 #. type: verbatim
7340 #: ../src/guestfs-actions.pod:1348
7341 #, no-wrap
7342 msgid ""
7343 " char **\n"
7344 " guestfs_egrep (guestfs_h *g,\n"
7345 "                const char *regex,\n"
7346 "                const char *path);\n"
7347 "\n"
7348 msgstr ""
7349
7350 #. type: textblock
7351 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:900
7352 msgid "This calls the external C<egrep> program and returns the matching lines."
7353 msgstr ""
7354
7355 #. type: textblock
7356 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2201 ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:4523 ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:5448 ../src/guestfs-actions.pod:6235 ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:6273 ../src/guestfs-actions.pod:6295 ../src/guestfs-actions.pod:6308 ../src/guestfs-actions.pod:6321 ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7124 ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7293
7357 msgid "(Added in 1.0.66)"
7358 msgstr ""
7359
7360 #. type: =head2
7361 #: ../src/guestfs-actions.pod:1365
7362 msgid "guestfs_egrepi"
7363 msgstr ""
7364
7365 #. type: verbatim
7366 #: ../src/guestfs-actions.pod:1367
7367 #, no-wrap
7368 msgid ""
7369 " char **\n"
7370 " guestfs_egrepi (guestfs_h *g,\n"
7371 "                 const char *regex,\n"
7372 "                 const char *path);\n"
7373 "\n"
7374 msgstr ""
7375
7376 #. type: textblock
7377 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:910
7378 msgid "This calls the external C<egrep -i> program and returns the matching lines."
7379 msgstr ""
7380
7381 #. type: =head2
7382 #: ../src/guestfs-actions.pod:1384
7383 msgid "guestfs_equal"
7384 msgstr ""
7385
7386 #. type: verbatim
7387 #: ../src/guestfs-actions.pod:1386
7388 #, no-wrap
7389 msgid ""
7390 " int\n"
7391 " guestfs_equal (guestfs_h *g,\n"
7392 "                const char *file1,\n"
7393 "                const char *file2);\n"
7394 "\n"
7395 msgstr ""
7396
7397 #. type: textblock
7398 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:920
7399 msgid ""
7400 "This compares the two files C<file1> and C<file2> and returns true if their "
7401 "content is exactly equal, or false otherwise."
7402 msgstr ""
7403
7404 #. type: textblock
7405 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:923
7406 msgid "The external L<cmp(1)> program is used for the comparison."
7407 msgstr ""
7408
7409 #. type: =head2
7410 #: ../src/guestfs-actions.pod:1400
7411 msgid "guestfs_exists"
7412 msgstr ""
7413
7414 #. type: verbatim
7415 #: ../src/guestfs-actions.pod:1402
7416 #, no-wrap
7417 msgid ""
7418 " int\n"
7419 " guestfs_exists (guestfs_h *g,\n"
7420 "                 const char *path);\n"
7421 "\n"
7422 msgstr ""
7423
7424 #. type: textblock
7425 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:929
7426 msgid ""
7427 "This returns C<true> if and only if there is a file, directory (or anything) "
7428 "with the given C<path> name."
7429 msgstr ""
7430
7431 #. type: textblock
7432 #: ../src/guestfs-actions.pod:1409
7433 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
7434 msgstr ""
7435
7436 #. type: =head2
7437 #: ../src/guestfs-actions.pod:1415
7438 msgid "guestfs_fallocate"
7439 msgstr ""
7440
7441 #. type: verbatim
7442 #: ../src/guestfs-actions.pod:1417
7443 #, no-wrap
7444 msgid ""
7445 " int\n"
7446 " guestfs_fallocate (guestfs_h *g,\n"
7447 "                    const char *path,\n"
7448 "                    int len);\n"
7449 "\n"
7450 msgstr ""
7451
7452 #. type: textblock
7453 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448 ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:957
7454 msgid ""
7455 "This command preallocates a file (containing zero bytes) named C<path> of "
7456 "size C<len> bytes.  If the file exists already, it is overwritten."
7457 msgstr ""
7458
7459 #. type: textblock
7460 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:942
7461 msgid ""
7462 "Do not confuse this with the guestfish-specific C<alloc> command which "
7463 "allocates a file in the host and attaches it as a device."
7464 msgstr ""
7465
7466 #. type: textblock
7467 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:946
7468 msgid ""
7469 "This function is deprecated.  In new code, use the C<fallocate64> call "
7470 "instead."
7471 msgstr ""
7472
7473 #. type: =head2
7474 #: ../src/guestfs-actions.pod:1441
7475 msgid "guestfs_fallocate64"
7476 msgstr ""
7477
7478 #. type: verbatim
7479 #: ../src/guestfs-actions.pod:1443
7480 #, no-wrap
7481 msgid ""
7482 " int\n"
7483 " guestfs_fallocate64 (guestfs_h *g,\n"
7484 "                      const char *path,\n"
7485 "                      int64_t len);\n"
7486 "\n"
7487 msgstr ""
7488
7489 #. type: textblock
7490 #: ../src/guestfs-actions.pod:1452
7491 msgid ""
7492 "Note that this call allocates disk blocks for the file.  To create a sparse "
7493 "file use C<guestfs_truncate_size> instead."
7494 msgstr ""
7495
7496 #. type: textblock
7497 #: ../src/guestfs-actions.pod:1455
7498 msgid ""
7499 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
7500 "oversight it only allowed 30 bit lengths to be specified, effectively "
7501 "limiting the maximum size of files created through that call to 1GB."
7502 msgstr ""
7503
7504 #. type: textblock
7505 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:969
7506 msgid ""
7507 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7508 "commands which create a file in the host and attach it as a device."
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../src/guestfs-actions.pod:1466
7513 msgid "(Added in 1.3.17)"
7514 msgstr ""
7515
7516 #. type: =head2
7517 #: ../src/guestfs-actions.pod:1468
7518 msgid "guestfs_fgrep"
7519 msgstr ""
7520
7521 #. type: verbatim
7522 #: ../src/guestfs-actions.pod:1470
7523 #, no-wrap
7524 msgid ""
7525 " char **\n"
7526 " guestfs_fgrep (guestfs_h *g,\n"
7527 "                const char *pattern,\n"
7528 "                const char *path);\n"
7529 "\n"
7530 msgstr ""
7531
7532 #. type: textblock
7533 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:977
7534 msgid "This calls the external C<fgrep> program and returns the matching lines."
7535 msgstr ""
7536
7537 #. type: =head2
7538 #: ../src/guestfs-actions.pod:1487
7539 msgid "guestfs_fgrepi"
7540 msgstr ""
7541
7542 #. type: verbatim
7543 #: ../src/guestfs-actions.pod:1489
7544 #, no-wrap
7545 msgid ""
7546 " char **\n"
7547 " guestfs_fgrepi (guestfs_h *g,\n"
7548 "                 const char *pattern,\n"
7549 "                 const char *path);\n"
7550 "\n"
7551 msgstr ""
7552
7553 #. type: textblock
7554 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:987
7555 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
7556 msgstr ""
7557
7558 #. type: =head2
7559 #: ../src/guestfs-actions.pod:1506
7560 msgid "guestfs_file"
7561 msgstr ""
7562
7563 #. type: verbatim
7564 #: ../src/guestfs-actions.pod:1508
7565 #, no-wrap
7566 msgid ""
7567 " char *\n"
7568 " guestfs_file (guestfs_h *g,\n"
7569 "               const char *path);\n"
7570 "\n"
7571 msgstr ""
7572
7573 #. type: textblock
7574 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:997
7575 msgid ""
7576 "This call uses the standard L<file(1)> command to determine the type or "
7577 "contents of the file."
7578 msgstr ""
7579
7580 #. type: textblock
7581 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1000
7582 msgid ""
7583 "This call will also transparently look inside various types of compressed "
7584 "file."
7585 msgstr ""
7586
7587 #. type: textblock
7588 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1003
7589 msgid ""
7590 "The exact command which runs is C<file -zb path>.  Note in particular that "
7591 "the filename is not prepended to the output (the C<-b> option)."
7592 msgstr ""
7593
7594 #. type: textblock
7595 #: ../src/guestfs-actions.pod:1522
7596 msgid ""
7597 "This command can also be used on C</dev/> devices (and partitions, LV "
7598 "names).  You can for example use this to determine if a device contains a "
7599 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7600 msgstr ""
7601
7602 #. type: textblock
7603 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1012
7604 msgid ""
7605 "If the C<path> does not begin with C</dev/> then this command only works for "
7606 "the content of regular files.  For other file types (directory, symbolic "
7607 "link etc) it will just return the string C<directory> etc."
7608 msgstr ""
7609
7610 #. type: =head2
7611 #: ../src/guestfs-actions.pod:1537
7612 msgid "guestfs_file_architecture"
7613 msgstr ""
7614
7615 #. type: verbatim
7616 #: ../src/guestfs-actions.pod:1539
7617 #, no-wrap
7618 msgid ""
7619 " char *\n"
7620 " guestfs_file_architecture (guestfs_h *g,\n"
7621 "                            const char *filename);\n"
7622 "\n"
7623 msgstr ""
7624
7625 #. type: textblock
7626 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1021
7627 msgid ""
7628 "This detects the architecture of the binary C<filename>, and returns it if "
7629 "known."
7630 msgstr ""
7631
7632 #. type: textblock
7633 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1024
7634 msgid "Currently defined architectures are:"
7635 msgstr ""
7636
7637 #. type: =item
7638 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1028
7639 msgid "\"i386\""
7640 msgstr ""
7641
7642 #. type: textblock
7643 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
7644 msgid ""
7645 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7646 "irrespective of the precise processor requirements of the binary."
7647 msgstr ""
7648
7649 #. type: =item
7650 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1033
7651 msgid "\"x86_64\""
7652 msgstr ""
7653
7654 #. type: textblock
7655 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
7656 msgid "64 bit x86-64."
7657 msgstr ""
7658
7659 #. type: =item
7660 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
7661 msgid "\"sparc\""
7662 msgstr ""
7663
7664 #. type: textblock
7665 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
7666 msgid "32 bit SPARC."
7667 msgstr ""
7668
7669 #. type: =item
7670 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
7671 msgid "\"sparc64\""
7672 msgstr ""
7673
7674 #. type: textblock
7675 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
7676 msgid "64 bit SPARC V9 and above."
7677 msgstr ""
7678
7679 #. type: =item
7680 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
7681 msgid "\"ia64\""
7682 msgstr ""
7683
7684 #. type: textblock
7685 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
7686 msgid "Intel Itanium."
7687 msgstr ""
7688
7689 #. type: =item
7690 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
7691 msgid "\"ppc\""
7692 msgstr ""
7693
7694 #. type: textblock
7695 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
7696 msgid "32 bit Power PC."
7697 msgstr ""
7698
7699 #. type: =item
7700 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
7701 msgid "\"ppc64\""
7702 msgstr ""
7703
7704 #. type: textblock
7705 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
7706 msgid "64 bit Power PC."
7707 msgstr ""
7708
7709 #. type: textblock
7710 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1059
7711 msgid "Libguestfs may return other architecture strings in future."
7712 msgstr ""
7713
7714 #. type: textblock
7715 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
7716 msgid "The function works on at least the following types of files:"
7717 msgstr ""
7718
7719 #. type: textblock
7720 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1067
7721 msgid "many types of Un*x and Linux binary"
7722 msgstr ""
7723
7724 #. type: textblock
7725 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1071
7726 msgid "many types of Un*x and Linux shared library"
7727 msgstr ""
7728
7729 #. type: textblock
7730 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1075
7731 msgid "Windows Win32 and Win64 binaries"
7732 msgstr ""
7733
7734 #. type: textblock
7735 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1079
7736 msgid "Windows Win32 and Win64 DLLs"
7737 msgstr ""
7738
7739 #. type: textblock
7740 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
7741 msgid "Win32 binaries and DLLs return C<i386>."
7742 msgstr ""
7743
7744 #. type: textblock
7745 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
7746 msgid "Win64 binaries and DLLs return C<x86_64>."
7747 msgstr ""
7748
7749 #. type: textblock
7750 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1087
7751 msgid "Linux kernel modules"
7752 msgstr ""
7753
7754 #. type: textblock
7755 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1091
7756 msgid "Linux new-style initrd images"
7757 msgstr ""
7758
7759 #. type: textblock
7760 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1095
7761 msgid "some non-x86 Linux vmlinuz kernels"
7762 msgstr ""
7763
7764 #. type: textblock
7765 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1099
7766 msgid "What it can't do currently:"
7767 msgstr ""
7768
7769 #. type: textblock
7770 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1105
7771 msgid "static libraries (libfoo.a)"
7772 msgstr ""
7773
7774 #. type: textblock
7775 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1109
7776 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7777 msgstr ""
7778
7779 #. type: textblock
7780 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1113
7781 msgid "x86 Linux vmlinuz kernels"
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
7786 msgid ""
7787 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7788 "compressed code, and are horribly hard to unpack.  If you want to find the "
7789 "architecture of a kernel, use the architecture of the associated initrd or "
7790 "kernel module(s) instead."
7791 msgstr ""
7792
7793 #. type: textblock
7794 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810 ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:2589 ../src/guestfs-actions.pod:2615 ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:3133 ../src/guestfs-actions.pod:3265
7795 msgid "(Added in 1.5.3)"
7796 msgstr ""
7797
7798 #. type: =head2
7799 #: ../src/guestfs-actions.pod:1649
7800 msgid "guestfs_filesize"
7801 msgstr ""
7802
7803 #. type: verbatim
7804 #: ../src/guestfs-actions.pod:1651
7805 #, no-wrap
7806 msgid ""
7807 " int64_t\n"
7808 " guestfs_filesize (guestfs_h *g,\n"
7809 "                   const char *file);\n"
7810 "\n"
7811 msgstr ""
7812
7813 #. type: textblock
7814 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1126
7815 msgid "This command returns the size of C<file> in bytes."
7816 msgstr ""
7817
7818 #. type: textblock
7819 #: ../src/guestfs-actions.pod:1657
7820 msgid ""
7821 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7822 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7823 "devices, use C<guestfs_blockdev_getsize64>."
7824 msgstr ""
7825
7826 #. type: textblock
7827 #: ../src/guestfs-actions.pod:1663
7828 msgid "(Added in 1.0.82)"
7829 msgstr ""
7830
7831 #. type: =head2
7832 #: ../src/guestfs-actions.pod:1665
7833 msgid "guestfs_fill"
7834 msgstr ""
7835
7836 #. type: verbatim
7837 #: ../src/guestfs-actions.pod:1667
7838 #, no-wrap
7839 msgid ""
7840 " int\n"
7841 " guestfs_fill (guestfs_h *g,\n"
7842 "               int c,\n"
7843 "               int len,\n"
7844 "               const char *path);\n"
7845 "\n"
7846 msgstr ""
7847
7848 #. type: textblock
7849 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1136
7850 msgid ""
7851 "This command creates a new file called C<path>.  The initial content of the "
7852 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
7853 "C<[0..255]>."
7854 msgstr ""
7855
7856 #. type: textblock
7857 #: ../src/guestfs-actions.pod:1677
7858 msgid ""
7859 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7860 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7861 "bytes use C<guestfs_fill_pattern>."
7862 msgstr ""
7863
7864 #. type: textblock
7865 #: ../src/guestfs-actions.pod:1689
7866 msgid "(Added in 1.0.79)"
7867 msgstr ""
7868
7869 #. type: =head2
7870 #: ../src/guestfs-actions.pod:1691
7871 msgid "guestfs_fill_pattern"
7872 msgstr ""
7873
7874 #. type: verbatim
7875 #: ../src/guestfs-actions.pod:1693
7876 #, no-wrap
7877 msgid ""
7878 " int\n"
7879 " guestfs_fill_pattern (guestfs_h *g,\n"
7880 "                       const char *pattern,\n"
7881 "                       int len,\n"
7882 "                       const char *path);\n"
7883 "\n"
7884 msgstr ""
7885
7886 #. type: textblock
7887 #: ../src/guestfs-actions.pod:1699
7888 msgid ""
7889 "This function is like C<guestfs_fill> except that it creates a new file of "
7890 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7891 "pattern is truncated if necessary to ensure the length of the file is "
7892 "exactly C<len> bytes."
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../src/guestfs-actions.pod:1711
7897 msgid "(Added in 1.3.12)"
7898 msgstr ""
7899
7900 #. type: =head2
7901 #: ../src/guestfs-actions.pod:1713
7902 msgid "guestfs_find"
7903 msgstr ""
7904
7905 #. type: verbatim
7906 #: ../src/guestfs-actions.pod:1715
7907 #, no-wrap
7908 msgid ""
7909 " char **\n"
7910 " guestfs_find (guestfs_h *g,\n"
7911 "               const char *directory);\n"
7912 "\n"
7913 msgstr ""
7914
7915 #. type: textblock
7916 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1158
7917 msgid ""
7918 "This command lists out all files and directories, recursively, starting at "
7919 "C<directory>.  It is essentially equivalent to running the shell command "
7920 "C<find directory -print> but some post-processing happens on the output, "
7921 "described below."
7922 msgstr ""
7923
7924 #. type: textblock
7925 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1163
7926 msgid ""
7927 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7928 "structure was:"
7929 msgstr ""
7930
7931 #. type: verbatim
7932 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1166
7933 #, no-wrap
7934 msgid ""
7935 " /tmp/a\n"
7936 " /tmp/b\n"
7937 " /tmp/c/d\n"
7938 "\n"
7939 msgstr ""
7940
7941 #. type: textblock
7942 #: ../src/guestfs-actions.pod:1731
7943 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7944 msgstr ""
7945
7946 #. type: verbatim
7947 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1173
7948 #, no-wrap
7949 msgid ""
7950 " a\n"
7951 " b\n"
7952 " c\n"
7953 " c/d\n"
7954 "\n"
7955 msgstr ""
7956
7957 #. type: textblock
7958 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1178
7959 msgid "If C<directory> is not a directory, then this command returns an error."
7960 msgstr ""
7961
7962 #. type: textblock
7963 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1181
7964 msgid "The returned list is sorted."
7965 msgstr ""
7966
7967 #. type: textblock
7968 #: ../src/guestfs-actions.pod:1744
7969 msgid "See also C<guestfs_find0>."
7970 msgstr ""
7971
7972 #. type: textblock
7973 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:5483
7974 msgid "(Added in 1.0.27)"
7975 msgstr ""
7976
7977 #. type: =head2
7978 #: ../src/guestfs-actions.pod:1755
7979 msgid "guestfs_find0"
7980 msgstr ""
7981
7982 #. type: verbatim
7983 #: ../src/guestfs-actions.pod:1757
7984 #, no-wrap
7985 msgid ""
7986 " int\n"
7987 " guestfs_find0 (guestfs_h *g,\n"
7988 "                const char *directory,\n"
7989 "                const char *files);\n"
7990 "\n"
7991 msgstr ""
7992
7993 #. type: textblock
7994 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1192
7995 msgid ""
7996 "This command lists out all files and directories, recursively, starting at "
7997 "C<directory>, placing the resulting list in the external file called "
7998 "C<files>."
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../src/guestfs-actions.pod:1766
8003 msgid ""
8004 "This command works the same way as C<guestfs_find> with the following "
8005 "exceptions:"
8006 msgstr ""
8007
8008 #. type: textblock
8009 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1203
8010 msgid "The resulting list is written to an external file."
8011 msgstr ""
8012
8013 #. type: textblock
8014 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1207
8015 msgid ""
8016 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8017 "L<find(1)> option I<-print0>."
8018 msgstr ""
8019
8020 #. type: textblock
8021 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1212
8022 msgid "This command is not limited in the number of names that it can return."
8023 msgstr ""
8024
8025 #. type: textblock
8026 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1217
8027 msgid "The result list is not sorted."
8028 msgstr ""
8029
8030 #. type: textblock
8031 #: ../src/guestfs-actions.pod:1793
8032 msgid "(Added in 1.0.74)"
8033 msgstr ""
8034
8035 #. type: =head2
8036 #: ../src/guestfs-actions.pod:1795
8037 msgid "guestfs_findfs_label"
8038 msgstr ""
8039
8040 #. type: verbatim
8041 #: ../src/guestfs-actions.pod:1797
8042 #, no-wrap
8043 msgid ""
8044 " char *\n"
8045 " guestfs_findfs_label (guestfs_h *g,\n"
8046 "                       const char *label);\n"
8047 "\n"
8048 msgstr ""
8049
8050 #. type: textblock
8051 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1227
8052 msgid ""
8053 "This command searches the filesystems and returns the one which has the "
8054 "given label.  An error is returned if no such filesystem can be found."
8055 msgstr ""
8056
8057 #. type: textblock
8058 #: ../src/guestfs-actions.pod:1805
8059 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
8060 msgstr ""
8061
8062 #. type: =head2
8063 #: ../src/guestfs-actions.pod:1812
8064 msgid "guestfs_findfs_uuid"
8065 msgstr ""
8066
8067 #. type: verbatim
8068 #: ../src/guestfs-actions.pod:1814
8069 #, no-wrap
8070 msgid ""
8071 " char *\n"
8072 " guestfs_findfs_uuid (guestfs_h *g,\n"
8073 "                      const char *uuid);\n"
8074 "\n"
8075 msgstr ""
8076
8077 #. type: textblock
8078 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1237
8079 msgid ""
8080 "This command searches the filesystems and returns the one which has the "
8081 "given UUID.  An error is returned if no such filesystem can be found."
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../src/guestfs-actions.pod:1822
8086 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
8087 msgstr ""
8088
8089 #. type: =head2
8090 #: ../src/guestfs-actions.pod:1829
8091 msgid "guestfs_fsck"
8092 msgstr ""
8093
8094 #. type: verbatim
8095 #: ../src/guestfs-actions.pod:1831
8096 #, no-wrap
8097 msgid ""
8098 " int\n"
8099 " guestfs_fsck (guestfs_h *g,\n"
8100 "               const char *fstype,\n"
8101 "               const char *device);\n"
8102 "\n"
8103 msgstr ""
8104
8105 #. type: textblock
8106 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1247
8107 msgid ""
8108 "This runs the filesystem checker (fsck) on C<device> which should have "
8109 "filesystem type C<fstype>."
8110 msgstr ""
8111
8112 #. type: textblock
8113 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1250
8114 msgid ""
8115 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8116 "codes from C<fsck>."
8117 msgstr ""
8118
8119 #. type: textblock
8120 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1259
8121 msgid "Multiple status codes can be summed together."
8122 msgstr ""
8123
8124 #. type: textblock
8125 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1263
8126 msgid ""
8127 "A non-zero return code can mean \"success\", for example if errors have been "
8128 "corrected on the filesystem."
8129 msgstr ""
8130
8131 #. type: textblock
8132 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1268
8133 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8134 msgstr ""
8135
8136 #. type: textblock
8137 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1273
8138 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8139 msgstr ""
8140
8141 #. type: textblock
8142 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:7147
8143 msgid "(Added in 1.0.16)"
8144 msgstr ""
8145
8146 #. type: =head2
8147 #: ../src/guestfs-actions.pod:1868
8148 msgid "guestfs_get_append"
8149 msgstr ""
8150
8151 #. type: verbatim
8152 #: ../src/guestfs-actions.pod:1870
8153 #, no-wrap
8154 msgid ""
8155 " const char *\n"
8156 " guestfs_get_append (guestfs_h *g);\n"
8157 "\n"
8158 msgstr ""
8159
8160 #. type: textblock
8161 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1279
8162 msgid ""
8163 "Return the additional kernel options which are added to the guest kernel "
8164 "command line."
8165 msgstr ""
8166
8167 #. type: textblock
8168 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1282
8169 msgid "If C<NULL> then no options are added."
8170 msgstr ""
8171
8172 #. type: textblock
8173 #: ../src/guestfs-actions.pod:1878
8174 msgid ""
8175 "This function returns a string which may be NULL.  There is no way to return "
8176 "an error from this function.  The string is owned by the guest handle and "
8177 "must I<not> be freed."
8178 msgstr ""
8179
8180 #. type: textblock
8181 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:5161 ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6061 ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:7190
8182 msgid "(Added in 1.0.26)"
8183 msgstr ""
8184
8185 #. type: =head2
8186 #: ../src/guestfs-actions.pod:1884
8187 msgid "guestfs_get_autosync"
8188 msgstr ""
8189
8190 #. type: verbatim
8191 #: ../src/guestfs-actions.pod:1886
8192 #, no-wrap
8193 msgid ""
8194 " int\n"
8195 " guestfs_get_autosync (guestfs_h *g);\n"
8196 "\n"
8197 msgstr ""
8198
8199 #. type: textblock
8200 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1288
8201 msgid "Get the autosync flag."
8202 msgstr ""
8203
8204 #. type: =head2
8205 #: ../src/guestfs-actions.pod:1895
8206 msgid "guestfs_get_direct"
8207 msgstr ""
8208
8209 #. type: verbatim
8210 #: ../src/guestfs-actions.pod:1897
8211 #, no-wrap
8212 msgid ""
8213 " int\n"
8214 " guestfs_get_direct (guestfs_h *g);\n"
8215 "\n"
8216 msgstr ""
8217
8218 #. type: textblock
8219 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1294
8220 msgid "Return the direct appliance mode flag."
8221 msgstr ""
8222
8223 #. type: textblock
8224 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5682
8225 msgid "(Added in 1.0.72)"
8226 msgstr ""
8227
8228 #. type: =head2
8229 #: ../src/guestfs-actions.pod:1906
8230 msgid "guestfs_get_e2label"
8231 msgstr ""
8232
8233 #. type: verbatim
8234 #: ../src/guestfs-actions.pod:1908
8235 #, no-wrap
8236 msgid ""
8237 " char *\n"
8238 " guestfs_get_e2label (guestfs_h *g,\n"
8239 "                      const char *device);\n"
8240 "\n"
8241 msgstr ""
8242
8243 #. type: textblock
8244 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1300
8245 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1303
8250 msgid ""
8251 "This function is deprecated.  In new code, use the C<vfs_label> call "
8252 "instead."
8253 msgstr ""
8254
8255 #. type: textblock
8256 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5719
8257 msgid "(Added in 1.0.15)"
8258 msgstr ""
8259
8260 #. type: =head2
8261 #: ../src/guestfs-actions.pod:1927
8262 msgid "guestfs_get_e2uuid"
8263 msgstr ""
8264
8265 #. type: verbatim
8266 #: ../src/guestfs-actions.pod:1929
8267 #, no-wrap
8268 msgid ""
8269 " char *\n"
8270 " guestfs_get_e2uuid (guestfs_h *g,\n"
8271 "                     const char *device);\n"
8272 "\n"
8273 msgstr ""
8274
8275 #. type: textblock
8276 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1314
8277 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1317
8282 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
8283 msgstr ""
8284
8285 #. type: =head2
8286 #: ../src/guestfs-actions.pod:1948
8287 msgid "guestfs_get_memsize"
8288 msgstr ""
8289
8290 #. type: verbatim
8291 #: ../src/guestfs-actions.pod:1950
8292 #, no-wrap
8293 msgid ""
8294 " int\n"
8295 " guestfs_get_memsize (guestfs_h *g);\n"
8296 "\n"
8297 msgstr ""
8298
8299 #. type: textblock
8300 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1328
8301 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../src/guestfs-actions.pod:1956
8306 msgid ""
8307 "If C<guestfs_set_memsize> was not called on this handle, and if "
8308 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8309 "value for memsize."
8310 msgstr ""
8311
8312 #. type: textblock
8313 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5842 ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:3841 ../fish/guestfish-actions.pod:3928
8314 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8315 msgstr ""
8316
8317 #. type: textblock
8318 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4245 ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:4447 ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4508 ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5740 ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6584
8319 msgid "(Added in 1.0.55)"
8320 msgstr ""
8321
8322 #. type: =head2
8323 #: ../src/guestfs-actions.pod:1967
8324 msgid "guestfs_get_network"
8325 msgstr ""
8326
8327 #. type: verbatim
8328 #: ../src/guestfs-actions.pod:1969
8329 #, no-wrap
8330 msgid ""
8331 " int\n"
8332 " guestfs_get_network (guestfs_h *g);\n"
8333 "\n"
8334 msgstr ""
8335
8336 #. type: textblock
8337 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1342
8338 msgid "This returns the enable network flag."
8339 msgstr ""
8340
8341 #. type: textblock
8342 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5759
8343 msgid "(Added in 1.5.4)"
8344 msgstr ""
8345
8346 #. type: =head2
8347 #: ../src/guestfs-actions.pod:1978
8348 msgid "guestfs_get_path"
8349 msgstr ""
8350
8351 #. type: verbatim
8352 #: ../src/guestfs-actions.pod:1980
8353 #, no-wrap
8354 msgid ""
8355 " const char *\n"
8356 " guestfs_get_path (guestfs_h *g);\n"
8357 "\n"
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1348
8362 msgid "Return the current search path."
8363 msgstr ""
8364
8365 #. type: textblock
8366 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
8367 msgid ""
8368 "This is always non-NULL.  If it wasn't set already, then this will return "
8369 "the default path."
8370 msgstr ""
8371
8372 #. type: textblock
8373 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
8374 msgid ""
8375 "This function returns a string, or NULL on error.  The string is owned by "
8376 "the guest handle and must I<not> be freed."
8377 msgstr ""
8378
8379 #. type: =head2
8380 #: ../src/guestfs-actions.pod:1993
8381 msgid "guestfs_get_pid"
8382 msgstr ""
8383
8384 #. type: verbatim
8385 #: ../src/guestfs-actions.pod:1995
8386 #, no-wrap
8387 msgid ""
8388 " int\n"
8389 " guestfs_get_pid (guestfs_h *g);\n"
8390 "\n"
8391 msgstr ""
8392
8393 #. type: textblock
8394 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1359
8395 msgid ""
8396 "Return the process ID of the qemu subprocess.  If there is no qemu "
8397 "subprocess, then this will return an error."
8398 msgstr ""
8399
8400 #. type: textblock
8401 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1362
8402 msgid "This is an internal call used for debugging and testing."
8403 msgstr ""
8404
8405 #. type: textblock
8406 #: ../src/guestfs-actions.pod:2005
8407 msgid "(Added in 1.0.56)"
8408 msgstr ""
8409
8410 #. type: =head2
8411 #: ../src/guestfs-actions.pod:2007
8412 msgid "guestfs_get_qemu"
8413 msgstr ""
8414
8415 #. type: verbatim
8416 #: ../src/guestfs-actions.pod:2009
8417 #, no-wrap
8418 msgid ""
8419 " const char *\n"
8420 " guestfs_get_qemu (guestfs_h *g);\n"
8421 "\n"
8422 msgstr ""
8423
8424 #. type: textblock
8425 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1368
8426 msgid "Return the current qemu binary."
8427 msgstr ""
8428
8429 #. type: textblock
8430 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
8431 msgid ""
8432 "This is always non-NULL.  If it wasn't set already, then this will return "
8433 "the default qemu binary name."
8434 msgstr ""
8435
8436 #. type: textblock
8437 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5804
8438 msgid "(Added in 1.0.6)"
8439 msgstr ""
8440
8441 #. type: =head2
8442 #: ../src/guestfs-actions.pod:2022
8443 msgid "guestfs_get_recovery_proc"
8444 msgstr ""
8445
8446 #. type: verbatim
8447 #: ../src/guestfs-actions.pod:2024
8448 #, no-wrap
8449 msgid ""
8450 " int\n"
8451 " guestfs_get_recovery_proc (guestfs_h *g);\n"
8452 "\n"
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
8457 msgid "Return the recovery process enabled flag."
8458 msgstr ""
8459
8460 #. type: textblock
8461 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3355 ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:4052 ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:5091 ../src/guestfs-actions.pod:5434 ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:6487 ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6699
8462 msgid "(Added in 1.0.77)"
8463 msgstr ""
8464
8465 #. type: =head2
8466 #: ../src/guestfs-actions.pod:2033
8467 msgid "guestfs_get_selinux"
8468 msgstr ""
8469
8470 #. type: verbatim
8471 #: ../src/guestfs-actions.pod:2035
8472 #, no-wrap
8473 msgid ""
8474 " int\n"
8475 " guestfs_get_selinux (guestfs_h *g);\n"
8476 "\n"
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../src/guestfs-actions.pod:2038
8481 msgid ""
8482 "This returns the current setting of the selinux flag which is passed to the "
8483 "appliance at boot time.  See C<guestfs_set_selinux>."
8484 msgstr ""
8485
8486 #. type: textblock
8487 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5901
8488 msgid "(Added in 1.0.67)"
8489 msgstr ""
8490
8491 #. type: =head2
8492 #: ../src/guestfs-actions.pod:2048
8493 msgid "guestfs_get_state"
8494 msgstr ""
8495
8496 #. type: verbatim
8497 #: ../src/guestfs-actions.pod:2050
8498 #, no-wrap
8499 msgid ""
8500 " int\n"
8501 " guestfs_get_state (guestfs_h *g);\n"
8502 "\n"
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1393
8507 msgid ""
8508 "This returns the current state as an opaque integer.  This is only useful "
8509 "for printing debug and internal error messages."
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3158 ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3248 ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:1396 ../fish/guestfish-actions.pod:2210 ../fish/guestfish-actions.pod:2228 ../fish/guestfish-actions.pod:2266 ../fish/guestfish-actions.pod:2282
8514 msgid "For more information on states, see L<guestfs(3)>."
8515 msgstr ""
8516
8517 #. type: =head2
8518 #: ../src/guestfs-actions.pod:2062
8519 msgid "guestfs_get_trace"
8520 msgstr ""
8521
8522 #. type: verbatim
8523 #: ../src/guestfs-actions.pod:2064
8524 #, no-wrap
8525 msgid ""
8526 " int\n"
8527 " guestfs_get_trace (guestfs_h *g);\n"
8528 "\n"
8529 msgstr ""
8530
8531 #. type: textblock
8532 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1402
8533 msgid "Return the command trace flag."
8534 msgstr ""
8535
8536 #. type: =head2
8537 #: ../src/guestfs-actions.pod:2073
8538 msgid "guestfs_get_umask"
8539 msgstr ""
8540
8541 #. type: verbatim
8542 #: ../src/guestfs-actions.pod:2075
8543 #, no-wrap
8544 msgid ""
8545 " int\n"
8546 " guestfs_get_umask (guestfs_h *g);\n"
8547 "\n"
8548 msgstr ""
8549
8550 #. type: textblock
8551 #: ../src/guestfs-actions.pod:2078
8552 msgid ""
8553 "Return the current umask.  By default the umask is C<022> unless it has been "
8554 "set by calling C<guestfs_umask>."
8555 msgstr ""
8556
8557 #. type: =head2
8558 #: ../src/guestfs-actions.pod:2085
8559 msgid "guestfs_get_verbose"
8560 msgstr ""
8561
8562 #. type: verbatim
8563 #: ../src/guestfs-actions.pod:2087
8564 #, no-wrap
8565 msgid ""
8566 " int\n"
8567 " guestfs_get_verbose (guestfs_h *g);\n"
8568 "\n"
8569 msgstr ""
8570
8571 #. type: textblock
8572 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1415
8573 msgid "This returns the verbose messages flag."
8574 msgstr ""
8575
8576 #. type: =head2
8577 #: ../src/guestfs-actions.pod:2096
8578 msgid "guestfs_getcon"
8579 msgstr ""
8580
8581 #. type: verbatim
8582 #: ../src/guestfs-actions.pod:2098
8583 #, no-wrap
8584 msgid ""
8585 " char *\n"
8586 " guestfs_getcon (guestfs_h *g);\n"
8587 "\n"
8588 msgstr ""
8589
8590 #. type: textblock
8591 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1421
8592 msgid "This gets the SELinux security context of the daemon."
8593 msgstr ""
8594
8595 #. type: textblock
8596 #: ../src/guestfs-actions.pod:2103
8597 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8598 msgstr ""
8599
8600 #. type: =head2
8601 #: ../src/guestfs-actions.pod:2111
8602 msgid "guestfs_getxattr"
8603 msgstr ""
8604
8605 #. type: verbatim
8606 #: ../src/guestfs-actions.pod:2113
8607 #, no-wrap
8608 msgid ""
8609 " char *\n"
8610 " guestfs_getxattr (guestfs_h *g,\n"
8611 "                   const char *path,\n"
8612 "                   const char *name,\n"
8613 "                   size_t *size_r);\n"
8614 "\n"
8615 msgstr ""
8616
8617 #. type: textblock
8618 #: ../src/guestfs-actions.pod:2119
8619 msgid ""
8620 "Get a single extended attribute from file C<path> named C<name>.  This call "
8621 "follows symlinks.  If you want to lookup an extended attribute for the "
8622 "symlink itself, use C<guestfs_lgetxattr>."
8623 msgstr ""
8624
8625 #. type: textblock
8626 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:3369
8627 msgid ""
8628 "Normally it is better to get all extended attributes from a file in one go "
8629 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
8630 "implementations are buggy and do not provide a way to list out attributes.  "
8631 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
8632 "extended attributes you want in advance and call this function."
8633 msgstr ""
8634
8635 #. type: textblock
8636 #: ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:3376 ../fish/guestfish-actions.pod:1441 ../fish/guestfish-actions.pod:2347
8637 msgid ""
8638 "Extended attribute values are blobs of binary data.  If there is no extended "
8639 "attribute named C<name>, this returns an error."
8640 msgstr ""
8641
8642 #. type: textblock
8643 #: ../src/guestfs-actions.pod:2133
8644 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
8645 msgstr ""
8646
8647 #. type: textblock
8648 #: ../src/guestfs-actions.pod:2135 ../src/guestfs-actions.pod:2326 ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:5084 ../src/guestfs-actions.pod:5110 ../src/guestfs-actions.pod:5291
8649 msgid ""
8650 "This function returns a buffer, or NULL on error.  The size of the returned "
8651 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8652 "after use>."
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:3385
8657 msgid "(Added in 1.7.24)"
8658 msgstr ""
8659
8660 #. type: =head2
8661 #: ../src/guestfs-actions.pod:2141
8662 msgid "guestfs_getxattrs"
8663 msgstr ""
8664
8665 #. type: verbatim
8666 #: ../src/guestfs-actions.pod:2143
8667 #, no-wrap
8668 msgid ""
8669 " struct guestfs_xattr_list *\n"
8670 " guestfs_getxattrs (guestfs_h *g,\n"
8671 "                    const char *path);\n"
8672 "\n"
8673 msgstr ""
8674
8675 #. type: textblock
8676 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1450
8677 msgid "This call lists the extended attributes of the file or directory C<path>."
8678 msgstr ""
8679
8680 #. type: textblock
8681 #: ../src/guestfs-actions.pod:2150 ../fish/guestfish-actions.pod:1453
8682 msgid ""
8683 "At the system call level, this is a combination of the L<listxattr(2)> and "
8684 "L<getxattr(2)> calls."
8685 msgstr ""
8686
8687 #. type: textblock
8688 #: ../src/guestfs-actions.pod:2153
8689 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8690 msgstr ""
8691
8692 #. type: textblock
8693 #: ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:4048
8694 msgid ""
8695 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8696 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8697 msgstr ""
8698
8699 #. type: textblock
8700 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3401 ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3602 ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:5920 ../src/guestfs-actions.pod:7255
8701 msgid "(Added in 1.0.59)"
8702 msgstr ""
8703
8704 #. type: =head2
8705 #: ../src/guestfs-actions.pod:2161
8706 msgid "guestfs_glob_expand"
8707 msgstr ""
8708
8709 #. type: verbatim
8710 #: ../src/guestfs-actions.pod:2163
8711 #, no-wrap
8712 msgid ""
8713 " char **\n"
8714 " guestfs_glob_expand (guestfs_h *g,\n"
8715 "                      const char *pattern);\n"
8716 "\n"
8717 msgstr ""
8718
8719 #. type: textblock
8720 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1462
8721 msgid ""
8722 "This command searches for all the pathnames matching C<pattern> according to "
8723 "the wildcard expansion rules used by the shell."
8724 msgstr ""
8725
8726 #. type: textblock
8727 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1466
8728 msgid "If no paths match, then this returns an empty list (note: not an error)."
8729 msgstr ""
8730
8731 #. type: textblock
8732 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1469
8733 msgid ""
8734 "It is just a wrapper around the C L<glob(3)> function with flags "
8735 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
8736 msgstr ""
8737
8738 #. type: textblock
8739 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:6085 ../src/guestfs-actions.pod:6102
8740 msgid "(Added in 1.0.50)"
8741 msgstr ""
8742
8743 #. type: =head2
8744 #: ../src/guestfs-actions.pod:2184
8745 msgid "guestfs_grep"
8746 msgstr ""
8747
8748 #. type: verbatim
8749 #: ../src/guestfs-actions.pod:2186
8750 #, no-wrap
8751 msgid ""
8752 " char **\n"
8753 " guestfs_grep (guestfs_h *g,\n"
8754 "               const char *regex,\n"
8755 "               const char *path);\n"
8756 "\n"
8757 msgstr ""
8758
8759 #. type: textblock
8760 #: ../src/guestfs-actions.pod:2191 ../fish/guestfish-actions.pod:1477
8761 msgid "This calls the external C<grep> program and returns the matching lines."
8762 msgstr ""
8763
8764 #. type: =head2
8765 #: ../src/guestfs-actions.pod:2203
8766 msgid "guestfs_grepi"
8767 msgstr ""
8768
8769 #. type: verbatim
8770 #: ../src/guestfs-actions.pod:2205
8771 #, no-wrap
8772 msgid ""
8773 " char **\n"
8774 " guestfs_grepi (guestfs_h *g,\n"
8775 "                const char *regex,\n"
8776 "                const char *path);\n"
8777 "\n"
8778 msgstr ""
8779
8780 #. type: textblock
8781 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1487
8782 msgid "This calls the external C<grep -i> program and returns the matching lines."
8783 msgstr ""
8784
8785 #. type: =head2
8786 #: ../src/guestfs-actions.pod:2222
8787 msgid "guestfs_grub_install"
8788 msgstr ""
8789
8790 #. type: verbatim
8791 #: ../src/guestfs-actions.pod:2224
8792 #, no-wrap
8793 msgid ""
8794 " int\n"
8795 " guestfs_grub_install (guestfs_h *g,\n"
8796 "                       const char *root,\n"
8797 "                       const char *device);\n"
8798 "\n"
8799 msgstr ""
8800
8801 #. type: textblock
8802 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1497
8803 msgid ""
8804 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8805 "the root directory being C<root>."
8806 msgstr ""
8807
8808 #. type: textblock
8809 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1500
8810 msgid ""
8811 "Note: If grub-install reports the error \"No suitable drive was found in the "
8812 "generated device map.\" it may be that you need to create a "
8813 "C</boot/grub/device.map> file first that contains the mapping between grub "
8814 "device names and Linux device names.  It is usually sufficient to create a "
8815 "file containing:"
8816 msgstr ""
8817
8818 #. type: verbatim
8819 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1507
8820 #, no-wrap
8821 msgid ""
8822 " (hd0) /dev/vda\n"
8823 "\n"
8824 msgstr ""
8825
8826 #. type: textblock
8827 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1509
8828 msgid "replacing C</dev/vda> with the name of the installation device."
8829 msgstr ""
8830
8831 #. type: textblock
8832 #: ../src/guestfs-actions.pod:2245
8833 msgid "(Added in 1.0.17)"
8834 msgstr ""
8835
8836 #. type: =head2
8837 #: ../src/guestfs-actions.pod:2247
8838 msgid "guestfs_head"
8839 msgstr ""
8840
8841 #. type: verbatim
8842 #: ../src/guestfs-actions.pod:2249
8843 #, no-wrap
8844 msgid ""
8845 " char **\n"
8846 " guestfs_head (guestfs_h *g,\n"
8847 "               const char *path);\n"
8848 "\n"
8849 msgstr ""
8850
8851 #. type: textblock
8852 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1515
8853 msgid ""
8854 "This command returns up to the first 10 lines of a file as a list of "
8855 "strings."
8856 msgstr ""
8857
8858 #. type: =head2
8859 #: ../src/guestfs-actions.pod:2265
8860 msgid "guestfs_head_n"
8861 msgstr ""
8862
8863 #. type: verbatim
8864 #: ../src/guestfs-actions.pod:2267
8865 #, no-wrap
8866 msgid ""
8867 " char **\n"
8868 " guestfs_head_n (guestfs_h *g,\n"
8869 "                 int nrlines,\n"
8870 "                 const char *path);\n"
8871 "\n"
8872 msgstr ""
8873
8874 #. type: textblock
8875 #: ../src/guestfs-actions.pod:2272 ../fish/guestfish-actions.pod:1525
8876 msgid ""
8877 "If the parameter C<nrlines> is a positive number, this returns the first "
8878 "C<nrlines> lines of the file C<path>."
8879 msgstr ""
8880
8881 #. type: textblock
8882 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1528
8883 msgid ""
8884 "If the parameter C<nrlines> is a negative number, this returns lines from "
8885 "the file C<path>, excluding the last C<nrlines> lines."
8886 msgstr ""
8887
8888 #. type: textblock
8889 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6382 ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:4274
8890 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8891 msgstr ""
8892
8893 #. type: =head2
8894 #: ../src/guestfs-actions.pod:2289
8895 msgid "guestfs_hexdump"
8896 msgstr ""
8897
8898 #. type: verbatim
8899 #: ../src/guestfs-actions.pod:2291
8900 #, no-wrap
8901 msgid ""
8902 " char *\n"
8903 " guestfs_hexdump (guestfs_h *g,\n"
8904 "                  const char *path);\n"
8905 "\n"
8906 msgstr ""
8907
8908 #. type: textblock
8909 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1540
8910 msgid ""
8911 "This runs C<hexdump -C> on the given C<path>.  The result is the "
8912 "human-readable, canonical hex dump of the file."
8913 msgstr ""
8914
8915 #. type: textblock
8916 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6166 ../src/guestfs-actions.pod:6221
8917 msgid "(Added in 1.0.22)"
8918 msgstr ""
8919
8920 #. type: =head2
8921 #: ../src/guestfs-actions.pod:2306
8922 msgid "guestfs_initrd_cat"
8923 msgstr ""
8924
8925 #. type: verbatim
8926 #: ../src/guestfs-actions.pod:2308
8927 #, no-wrap
8928 msgid ""
8929 " char *\n"
8930 " guestfs_initrd_cat (guestfs_h *g,\n"
8931 "                     const char *initrdpath,\n"
8932 "                     const char *filename,\n"
8933 "                     size_t *size_r);\n"
8934 "\n"
8935 msgstr ""
8936
8937 #. type: textblock
8938 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1550
8939 msgid ""
8940 "This command unpacks the file C<filename> from the initrd file called "
8941 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8942 "character."
8943 msgstr ""
8944
8945 #. type: textblock
8946 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1554
8947 msgid ""
8948 "For example, in guestfish you could use the following command to examine the "
8949 "boot script (usually called C</init>)  contained in a Linux initrd or "
8950 "initramfs image:"
8951 msgstr ""
8952
8953 #. type: verbatim
8954 #: ../src/guestfs-actions.pod:2322 ../fish/guestfish-actions.pod:1558
8955 #, no-wrap
8956 msgid ""
8957 " initrd-cat /boot/initrd-<version>.img init\n"
8958 "\n"
8959 msgstr ""
8960
8961 #. type: textblock
8962 #: ../src/guestfs-actions.pod:2324
8963 msgid "See also C<guestfs_initrd_list>."
8964 msgstr ""
8965
8966 #. type: =head2
8967 #: ../src/guestfs-actions.pod:2335
8968 msgid "guestfs_initrd_list"
8969 msgstr ""
8970
8971 #. type: verbatim
8972 #: ../src/guestfs-actions.pod:2337
8973 #, no-wrap
8974 msgid ""
8975 " char **\n"
8976 " guestfs_initrd_list (guestfs_h *g,\n"
8977 "                      const char *path);\n"
8978 "\n"
8979 msgstr ""
8980
8981 #. type: textblock
8982 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1569
8983 msgid "This command lists out files contained in an initrd."
8984 msgstr ""
8985
8986 #. type: textblock
8987 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1571
8988 msgid ""
8989 "The files are listed without any initial C</> character.  The files are "
8990 "listed in the order they appear (not necessarily alphabetical).  Directory "
8991 "names are listed as separate items."
8992 msgstr ""
8993
8994 #. type: textblock
8995 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1575
8996 msgid ""
8997 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8998 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8999 "files)."
9000 msgstr ""
9001
9002 #. type: =head2
9003 #: ../src/guestfs-actions.pod:2357
9004 msgid "guestfs_inotify_add_watch"
9005 msgstr ""
9006
9007 #. type: verbatim
9008 #: ../src/guestfs-actions.pod:2359
9009 #, no-wrap
9010 msgid ""
9011 " int64_t\n"
9012 " guestfs_inotify_add_watch (guestfs_h *g,\n"
9013 "                            const char *path,\n"
9014 "                            int mask);\n"
9015 "\n"
9016 msgstr ""
9017
9018 #. type: textblock
9019 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1583
9020 msgid "Watch C<path> for the events listed in C<mask>."
9021 msgstr ""
9022
9023 #. type: textblock
9024 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1585
9025 msgid ""
9026 "Note that if C<path> is a directory then events within that directory are "
9027 "watched, but this does I<not> happen recursively (in subdirectories)."
9028 msgstr ""
9029
9030 #. type: textblock
9031 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1589
9032 msgid ""
9033 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9034 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9035 msgstr ""
9036
9037 #. type: =head2
9038 #: ../src/guestfs-actions.pod:2378
9039 msgid "guestfs_inotify_close"
9040 msgstr ""
9041
9042 #. type: verbatim
9043 #: ../src/guestfs-actions.pod:2380
9044 #, no-wrap
9045 msgid ""
9046 " int\n"
9047 " guestfs_inotify_close (guestfs_h *g);\n"
9048 "\n"
9049 msgstr ""
9050
9051 #. type: textblock
9052 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1597
9053 msgid ""
9054 "This closes the inotify handle which was previously opened by inotify_init.  "
9055 "It removes all watches, throws away any pending events, and deallocates all "
9056 "resources."
9057 msgstr ""
9058
9059 #. type: =head2
9060 #: ../src/guestfs-actions.pod:2391
9061 msgid "guestfs_inotify_files"
9062 msgstr ""
9063
9064 #. type: verbatim
9065 #: ../src/guestfs-actions.pod:2393
9066 #, no-wrap
9067 msgid ""
9068 " char **\n"
9069 " guestfs_inotify_files (guestfs_h *g);\n"
9070 "\n"
9071 msgstr ""
9072
9073 #. type: textblock
9074 #: ../src/guestfs-actions.pod:2396
9075 msgid ""
9076 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
9077 "returns a list of pathnames of objects that were touched.  The returned "
9078 "pathnames are sorted and deduplicated."
9079 msgstr ""
9080
9081 #. type: =head2
9082 #: ../src/guestfs-actions.pod:2406
9083 msgid "guestfs_inotify_init"
9084 msgstr ""
9085
9086 #. type: verbatim
9087 #: ../src/guestfs-actions.pod:2408
9088 #, no-wrap
9089 msgid ""
9090 " int\n"
9091 " guestfs_inotify_init (guestfs_h *g,\n"
9092 "                       int maxevents);\n"
9093 "\n"
9094 msgstr ""
9095
9096 #. type: textblock
9097 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1613
9098 msgid ""
9099 "This command creates a new inotify handle.  The inotify subsystem can be "
9100 "used to notify events which happen to objects in the guest filesystem."
9101 msgstr ""
9102
9103 #. type: textblock
9104 #: ../src/guestfs-actions.pod:2416
9105 msgid ""
9106 "C<maxevents> is the maximum number of events which will be queued up between "
9107 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
9108 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
9109 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
9110 "throws away events, but records the fact that it threw them away by setting "
9111 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
9112 "C<guestfs_inotify_read>)."
9113 msgstr ""
9114
9115 #. type: textblock
9116 #: ../src/guestfs-actions.pod:2426
9117 msgid ""
9118 "Before any events are generated, you have to add some watches to the "
9119 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
9120 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
9121 msgstr ""
9122
9123 #. type: textblock
9124 #: ../src/guestfs-actions.pod:2432
9125 msgid ""
9126 "Queued up events should be read periodically by calling "
9127 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
9128 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
9129 "often enough then you risk the internal queue overflowing."
9130 msgstr ""
9131
9132 #. type: textblock
9133 #: ../src/guestfs-actions.pod:2439
9134 msgid ""
9135 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
9136 "This also removes any watches automatically."
9137 msgstr ""
9138
9139 #. type: textblock
9140 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1644
9141 msgid ""
9142 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9143 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9144 "that there is one global inotify handle per libguestfs instance."
9145 msgstr ""
9146
9147 #. type: =head2
9148 #: ../src/guestfs-actions.pod:2452
9149 msgid "guestfs_inotify_read"
9150 msgstr ""
9151
9152 #. type: verbatim
9153 #: ../src/guestfs-actions.pod:2454
9154 #, no-wrap
9155 msgid ""
9156 " struct guestfs_inotify_event_list *\n"
9157 " guestfs_inotify_read (guestfs_h *g);\n"
9158 "\n"
9159 msgstr ""
9160
9161 #. type: textblock
9162 #: ../src/guestfs-actions.pod:2457 ../fish/guestfish-actions.pod:1653
9163 msgid ""
9164 "Return the complete queue of events that have happened since the previous "
9165 "read call."
9166 msgstr ""
9167
9168 #. type: textblock
9169 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1656
9170 msgid "If no events have happened, this returns an empty list."
9171 msgstr ""
9172
9173 #. type: textblock
9174 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1658
9175 msgid ""
9176 "I<Note>: In order to make sure that all events have been read, you must call "
9177 "this function repeatedly until it returns an empty list.  The reason is that "
9178 "the call will read events up to the maximum appliance-to-host message size "
9179 "and leave remaining events in the queue."
9180 msgstr ""
9181
9182 #. type: textblock
9183 #: ../src/guestfs-actions.pod:2468
9184 msgid ""
9185 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
9186 "there was an error.  I<The caller must call "
9187 "C<guestfs_free_inotify_event_list> after use>."
9188 msgstr ""
9189
9190 #. type: =head2
9191 #: ../src/guestfs-actions.pod:2474
9192 msgid "guestfs_inotify_rm_watch"
9193 msgstr ""
9194
9195 #. type: verbatim
9196 #: ../src/guestfs-actions.pod:2476
9197 #, no-wrap
9198 msgid ""
9199 " int\n"
9200 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
9201 "                           int wd);\n"
9202 "\n"
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../src/guestfs-actions.pod:2480
9207 msgid ""
9208 "Remove a previously defined inotify watch.  See "
9209 "C<guestfs_inotify_add_watch>."
9210 msgstr ""
9211
9212 #. type: =head2
9213 #: ../src/guestfs-actions.pod:2487
9214 msgid "guestfs_inspect_get_arch"
9215 msgstr ""
9216
9217 #. type: verbatim
9218 #: ../src/guestfs-actions.pod:2489
9219 #, no-wrap
9220 msgid ""
9221 " char *\n"
9222 " guestfs_inspect_get_arch (guestfs_h *g,\n"
9223 "                           const char *root);\n"
9224 "\n"
9225 msgstr ""
9226
9227 #. type: textblock
9228 #: ../src/guestfs-actions.pod:2493 ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:2662 ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2798 ../src/guestfs-actions.pod:2829 ../src/guestfs-actions.pod:2873 ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2955 ../src/guestfs-actions.pod:2972 ../src/guestfs-actions.pod:2991
9229 msgid ""
9230 "This function should only be called with a root device string as returned by "
9231 "C<guestfs_inspect_os>."
9232 msgstr ""
9233
9234 #. type: textblock
9235 #: ../src/guestfs-actions.pod:2496
9236 msgid ""
9237 "This returns the architecture of the inspected operating system.  The "
9238 "possible return values are listed under C<guestfs_file_architecture>."
9239 msgstr ""
9240
9241 #. type: textblock
9242 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1682
9243 msgid ""
9244 "If the architecture could not be determined, then the string C<unknown> is "
9245 "returned."
9246 msgstr ""
9247
9248 #. type: textblock
9249 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2584 ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:2671 ../src/guestfs-actions.pod:2699 ../src/guestfs-actions.pod:2785 ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2859 ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:2981 ../src/guestfs-actions.pod:3084 ../src/guestfs-actions.pod:3125 ../fish/guestfish-actions.pod:1685 ../fish/guestfish-actions.pod:1759 ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1826 ../fish/guestfish-actions.pod:1847 ../fish/guestfish-actions.pod:1911 ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1952 ../fish/guestfish-actions.pod:1965 ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2016 ../fish/guestfish-actions.pod:2029 ../fish/guestfish-actions.pod:2042 ../fish/guestfish-actions.pod:2057 ../fish/guestfish-actions.pod:2156 ../fish/guestfish-actions.pod:2190
9250 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9251 msgstr ""
9252
9253 #. type: =head2
9254 #: ../src/guestfs-actions.pod:2510
9255 msgid "guestfs_inspect_get_distro"
9256 msgstr ""
9257
9258 #. type: verbatim
9259 #: ../src/guestfs-actions.pod:2512
9260 #, no-wrap
9261 msgid ""
9262 " char *\n"
9263 " guestfs_inspect_get_distro (guestfs_h *g,\n"
9264 "                             const char *root);\n"
9265 "\n"
9266 msgstr ""
9267
9268 #. type: textblock
9269 #: ../src/guestfs-actions.pod:2519 ../fish/guestfish-actions.pod:1694
9270 msgid "This returns the distro (distribution) of the inspected operating system."
9271 msgstr ""
9272
9273 #. type: textblock
9274 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1697
9275 msgid "Currently defined distros are:"
9276 msgstr ""
9277
9278 #. type: =item
9279 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1701
9280 msgid "\"archlinux\""
9281 msgstr ""
9282
9283 #. type: textblock
9284 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1703
9285 msgid "Arch Linux."
9286 msgstr ""
9287
9288 #. type: =item
9289 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1705
9290 msgid "\"debian\""
9291 msgstr ""
9292
9293 #. type: textblock
9294 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1707
9295 msgid "Debian."
9296 msgstr ""
9297
9298 #. type: =item
9299 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1709
9300 msgid "\"fedora\""
9301 msgstr ""
9302
9303 #. type: textblock
9304 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1711
9305 msgid "Fedora."
9306 msgstr ""
9307
9308 #. type: =item
9309 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1713
9310 msgid "\"gentoo\""
9311 msgstr ""
9312
9313 #. type: textblock
9314 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1715
9315 msgid "Gentoo."
9316 msgstr ""
9317
9318 #. type: =item
9319 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1717
9320 msgid "\"linuxmint\""
9321 msgstr ""
9322
9323 #. type: textblock
9324 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1719
9325 msgid "Linux Mint."
9326 msgstr ""
9327
9328 #. type: =item
9329 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1721
9330 msgid "\"mandriva\""
9331 msgstr ""
9332
9333 #. type: textblock
9334 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1723
9335 msgid "Mandriva."
9336 msgstr ""
9337
9338 #. type: =item
9339 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1725
9340 msgid "\"meego\""
9341 msgstr ""
9342
9343 #. type: textblock
9344 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1727
9345 msgid "MeeGo."
9346 msgstr ""
9347
9348 #. type: =item
9349 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1729
9350 msgid "\"pardus\""
9351 msgstr ""
9352
9353 #. type: textblock
9354 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1731
9355 msgid "Pardus."
9356 msgstr ""
9357
9358 #. type: =item
9359 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1733
9360 msgid "\"redhat-based\""
9361 msgstr ""
9362
9363 #. type: textblock
9364 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1735
9365 msgid "Some Red Hat-derived distro."
9366 msgstr ""
9367
9368 #. type: =item
9369 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1737
9370 msgid "\"rhel\""
9371 msgstr ""
9372
9373 #. type: textblock
9374 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1739
9375 msgid "Red Hat Enterprise Linux and some derivatives."
9376 msgstr ""
9377
9378 #. type: =item
9379 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1741
9380 msgid "\"ubuntu\""
9381 msgstr ""
9382
9383 #. type: textblock
9384 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1743
9385 msgid "Ubuntu."
9386 msgstr ""
9387
9388 #. type: =item
9389 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2893 ../fish/guestfish-actions.pod:1745 ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1991
9390 msgid "\"unknown\""
9391 msgstr ""
9392
9393 #. type: textblock
9394 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1747
9395 msgid "The distro could not be determined."
9396 msgstr ""
9397
9398 #. type: =item
9399 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2885 ../fish/guestfish-actions.pod:1749 ../fish/guestfish-actions.pod:1983
9400 msgid "\"windows\""
9401 msgstr ""
9402
9403 #. type: textblock
9404 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1751
9405 msgid ""
9406 "Windows does not have distributions.  This string is returned if the OS type "
9407 "is Windows."
9408 msgstr ""
9409
9410 #. type: textblock
9411 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2648 ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1756 ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1997
9412 msgid ""
9413 "Future versions of libguestfs may return other strings here.  The caller "
9414 "should be prepared to handle any string."
9415 msgstr ""
9416
9417 #. type: =head2
9418 #: ../src/guestfs-actions.pod:2591
9419 msgid "guestfs_inspect_get_filesystems"
9420 msgstr ""
9421
9422 #. type: verbatim
9423 #: ../src/guestfs-actions.pod:2593
9424 #, no-wrap
9425 msgid ""
9426 " char **\n"
9427 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
9428 "                                  const char *root);\n"
9429 "\n"
9430 msgstr ""
9431
9432 #. type: textblock
9433 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1768
9434 msgid ""
9435 "This returns a list of all the filesystems that we think are associated with "
9436 "this operating system.  This includes the root filesystem, other ordinary "
9437 "filesystems, and non-mounted devices like swap partitions."
9438 msgstr ""
9439
9440 #. type: textblock
9441 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1773
9442 msgid ""
9443 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9444 "to be shared between operating systems."
9445 msgstr ""
9446
9447 #. type: textblock
9448 #: ../src/guestfs-actions.pod:2608
9449 msgid ""
9450 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9451 "C<guestfs_inspect_get_mountpoints>."
9452 msgstr ""
9453
9454 #. type: =head2
9455 #: ../src/guestfs-actions.pod:2617
9456 msgid "guestfs_inspect_get_format"
9457 msgstr ""
9458
9459 #. type: verbatim
9460 #: ../src/guestfs-actions.pod:2619
9461 #, no-wrap
9462 msgid ""
9463 " char *\n"
9464 " guestfs_inspect_get_format (guestfs_h *g,\n"
9465 "                             const char *root);\n"
9466 "\n"
9467 msgstr ""
9468
9469 #. type: textblock
9470 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1786
9471 msgid ""
9472 "This returns the format of the inspected operating system.  You can use it "
9473 "to detect install images, live CDs and similar."
9474 msgstr ""
9475
9476 #. type: textblock
9477 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1789
9478 msgid "Currently defined formats are:"
9479 msgstr ""
9480
9481 #. type: =item
9482 #: ../src/guestfs-actions.pod:2633 ../fish/guestfish-actions.pod:1793
9483 msgid "\"installed\""
9484 msgstr ""
9485
9486 #. type: textblock
9487 #: ../src/guestfs-actions.pod:2635 ../fish/guestfish-actions.pod:1795
9488 msgid "This is an installed operating system."
9489 msgstr ""
9490
9491 #. type: =item
9492 #: ../src/guestfs-actions.pod:2637 ../fish/guestfish-actions.pod:1797
9493 msgid "\"installer\""
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../src/guestfs-actions.pod:2639 ../fish/guestfish-actions.pod:1799
9498 msgid ""
9499 "The disk image being inspected is not an installed operating system, but a "
9500 "I<bootable> install disk, live CD, or similar."
9501 msgstr ""
9502
9503 #. type: textblock
9504 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1804
9505 msgid "The format of this disk image is not known."
9506 msgstr ""
9507
9508 #. type: =head2
9509 #: ../src/guestfs-actions.pod:2656
9510 msgid "guestfs_inspect_get_hostname"
9511 msgstr ""
9512
9513 #. type: verbatim
9514 #: ../src/guestfs-actions.pod:2658
9515 #, no-wrap
9516 msgid ""
9517 " char *\n"
9518 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
9519 "                               const char *root);\n"
9520 "\n"
9521 msgstr ""
9522
9523 #. type: textblock
9524 #: ../src/guestfs-actions.pod:2665 ../fish/guestfish-actions.pod:1820
9525 msgid ""
9526 "This function returns the hostname of the operating system as found by "
9527 "inspection of the guest's configuration files."
9528 msgstr ""
9529
9530 #. type: textblock
9531 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1823
9532 msgid ""
9533 "If the hostname could not be determined, then the string C<unknown> is "
9534 "returned."
9535 msgstr ""
9536
9537 #. type: textblock
9538 #: ../src/guestfs-actions.pod:2676
9539 msgid "(Added in 1.7.9)"
9540 msgstr ""
9541
9542 #. type: =head2
9543 #: ../src/guestfs-actions.pod:2678
9544 msgid "guestfs_inspect_get_major_version"
9545 msgstr ""
9546
9547 #. type: verbatim
9548 #: ../src/guestfs-actions.pod:2680
9549 #, no-wrap
9550 msgid ""
9551 " int\n"
9552 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
9553 "                                    const char *root);\n"
9554 "\n"
9555 msgstr ""
9556
9557 #. type: textblock
9558 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:1835
9559 msgid "This returns the major version number of the inspected operating system."
9560 msgstr ""
9561
9562 #. type: textblock
9563 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:1838
9564 msgid ""
9565 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9566 "popular public names used by the operating system.  Notably the operating "
9567 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9568 "1).  You can find out the real versions corresponding to releases of Windows "
9569 "by consulting Wikipedia or MSDN."
9570 msgstr ""
9571
9572 #. type: textblock
9573 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2717 ../fish/guestfish-actions.pod:1845 ../fish/guestfish-actions.pod:1859
9574 msgid "If the version could not be determined, then C<0> is returned."
9575 msgstr ""
9576
9577 #. type: =head2
9578 #: ../src/guestfs-actions.pod:2705
9579 msgid "guestfs_inspect_get_minor_version"
9580 msgstr ""
9581
9582 #. type: verbatim
9583 #: ../src/guestfs-actions.pod:2707
9584 #, no-wrap
9585 msgid ""
9586 " int\n"
9587 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9588 "                                    const char *root);\n"
9589 "\n"
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1856
9594 msgid "This returns the minor version number of the inspected operating system."
9595 msgstr ""
9596
9597 #. type: textblock
9598 #: ../src/guestfs-actions.pod:2719
9599 msgid ""
9600 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9601 "C<guestfs_inspect_get_major_version>."
9602 msgstr ""
9603
9604 #. type: =head2
9605 #: ../src/guestfs-actions.pod:2726
9606 msgid "guestfs_inspect_get_mountpoints"
9607 msgstr ""
9608
9609 #. type: verbatim
9610 #: ../src/guestfs-actions.pod:2728
9611 #, no-wrap
9612 msgid ""
9613 " char **\n"
9614 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9615 "                                  const char *root);\n"
9616 "\n"
9617 msgstr ""
9618
9619 #. type: textblock
9620 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1871
9621 msgid ""
9622 "This returns a hash of where we think the filesystems associated with this "
9623 "operating system should be mounted.  Callers should note that this is at "
9624 "best an educated guess made by reading configuration files such as "
9625 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
9626 "are non-existent or not mountable and callers should be prepared to handle "
9627 "or ignore failures if they try to mount them."
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../src/guestfs-actions.pod:2744 ../fish/guestfish-actions.pod:1880
9632 msgid ""
9633 "Each element in the returned hashtable has a key which is the path of the "
9634 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9635 "mounted there (eg. C</dev/sda1>)."
9636 msgstr ""
9637
9638 #. type: textblock
9639 #: ../src/guestfs-actions.pod:2749 ../fish/guestfish-actions.pod:1885
9640 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
9641 msgstr ""
9642
9643 #. type: textblock
9644 #: ../src/guestfs-actions.pod:2752
9645 msgid ""
9646 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9647 "C<guestfs_inspect_get_filesystems>."
9648 msgstr ""
9649
9650 #. type: textblock
9651 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3454 ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:6523
9652 msgid ""
9653 "This function returns a NULL-terminated array of strings, or NULL if there "
9654 "was an error.  The array of strings will always have length C<2n+1>, where "
9655 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9656 "caller must free the strings and the array after use>."
9657 msgstr ""
9658
9659 #. type: =head2
9660 #: ../src/guestfs-actions.pod:2763
9661 msgid "guestfs_inspect_get_package_format"
9662 msgstr ""
9663
9664 #. type: verbatim
9665 #: ../src/guestfs-actions.pod:2765
9666 #, no-wrap
9667 msgid ""
9668 " char *\n"
9669 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9670 "                                     const char *root);\n"
9671 "\n"
9672 msgstr ""
9673
9674 #. type: textblock
9675 #: ../src/guestfs-actions.pod:2772
9676 msgid ""
9677 "This function and C<guestfs_inspect_get_package_management> return the "
9678 "package format and package management tool used by the inspected operating "
9679 "system.  For example for Fedora these functions would return C<rpm> (package "
9680 "format) and C<yum> (package management)."
9681 msgstr ""
9682
9683 #. type: textblock
9684 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1904
9685 msgid ""
9686 "This returns the string C<unknown> if we could not determine the package "
9687 "format I<or> if the operating system does not have a real packaging system "
9688 "(eg. Windows)."
9689 msgstr ""
9690
9691 #. type: textblock
9692 #: ../src/guestfs-actions.pod:2782 ../fish/guestfish-actions.pod:1908
9693 msgid ""
9694 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9695 "Future versions of libguestfs may return other strings."
9696 msgstr ""
9697
9698 #. type: textblock
9699 #: ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:2821
9700 msgid "(Added in 1.7.5)"
9701 msgstr ""
9702
9703 #. type: =head2
9704 #: ../src/guestfs-actions.pod:2792
9705 msgid "guestfs_inspect_get_package_management"
9706 msgstr ""
9707
9708 #. type: verbatim
9709 #: ../src/guestfs-actions.pod:2794
9710 #, no-wrap
9711 msgid ""
9712 " char *\n"
9713 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9714 "                                         const char *root);\n"
9715 "\n"
9716 msgstr ""
9717
9718 #. type: textblock
9719 #: ../src/guestfs-actions.pod:2801
9720 msgid ""
9721 "C<guestfs_inspect_get_package_format> and this function return the package "
9722 "format and package management tool used by the inspected operating system.  "
9723 "For example for Fedora these functions would return C<rpm> (package format) "
9724 "and C<yum> (package management)."
9725 msgstr ""
9726
9727 #. type: textblock
9728 #: ../src/guestfs-actions.pod:2807 ../fish/guestfish-actions.pod:1926
9729 msgid ""
9730 "This returns the string C<unknown> if we could not determine the package "
9731 "management tool I<or> if the operating system does not have a real packaging "
9732 "system (eg. Windows)."
9733 msgstr ""
9734
9735 #. type: textblock
9736 #: ../src/guestfs-actions.pod:2811 ../fish/guestfish-actions.pod:1930
9737 msgid ""
9738 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9739 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9740 "libguestfs may return other strings."
9741 msgstr ""
9742
9743 #. type: =head2
9744 #: ../src/guestfs-actions.pod:2823
9745 msgid "guestfs_inspect_get_product_name"
9746 msgstr ""
9747
9748 #. type: verbatim
9749 #: ../src/guestfs-actions.pod:2825
9750 #, no-wrap
9751 msgid ""
9752 " char *\n"
9753 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9754 "                                   const char *root);\n"
9755 "\n"
9756 msgstr ""
9757
9758 #. type: textblock
9759 #: ../src/guestfs-actions.pod:2832 ../fish/guestfish-actions.pod:1944
9760 msgid ""
9761 "This returns the product name of the inspected operating system.  The "
9762 "product name is generally some freeform string which can be displayed to the "
9763 "user, but should not be parsed by programs."
9764 msgstr ""
9765
9766 #. type: textblock
9767 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1949
9768 msgid ""
9769 "If the product name could not be determined, then the string C<unknown> is "
9770 "returned."
9771 msgstr ""
9772
9773 #. type: =head2
9774 #: ../src/guestfs-actions.pod:2847
9775 msgid "guestfs_inspect_get_roots"
9776 msgstr ""
9777
9778 #. type: verbatim
9779 #: ../src/guestfs-actions.pod:2849
9780 #, no-wrap
9781 msgid ""
9782 " char **\n"
9783 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9784 "\n"
9785 msgstr ""
9786
9787 #. type: textblock
9788 #: ../src/guestfs-actions.pod:2852
9789 msgid ""
9790 "This function is a convenient way to get the list of root devices, as "
9791 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9792 "the whole inspection process."
9793 msgstr ""
9794
9795 #. type: textblock
9796 #: ../src/guestfs-actions.pod:2856
9797 msgid ""
9798 "This returns an empty list if either no root devices were found or the "
9799 "caller has not called C<guestfs_inspect_os>."
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../src/guestfs-actions.pod:2865
9804 msgid "(Added in 1.7.3)"
9805 msgstr ""
9806
9807 #. type: =head2
9808 #: ../src/guestfs-actions.pod:2867
9809 msgid "guestfs_inspect_get_type"
9810 msgstr ""
9811
9812 #. type: verbatim
9813 #: ../src/guestfs-actions.pod:2869
9814 #, no-wrap
9815 msgid ""
9816 " char *\n"
9817 " guestfs_inspect_get_type (guestfs_h *g,\n"
9818 "                           const char *root);\n"
9819 "\n"
9820 msgstr ""
9821
9822 #. type: textblock
9823 #: ../src/guestfs-actions.pod:2876 ../fish/guestfish-actions.pod:1974
9824 msgid ""
9825 "This returns the type of the inspected operating system.  Currently defined "
9826 "types are:"
9827 msgstr ""
9828
9829 #. type: =item
9830 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1979
9831 msgid "\"linux\""
9832 msgstr ""
9833
9834 #. type: textblock
9835 #: ../src/guestfs-actions.pod:2883 ../fish/guestfish-actions.pod:1981
9836 msgid "Any Linux-based operating system."
9837 msgstr ""
9838
9839 #. type: textblock
9840 #: ../src/guestfs-actions.pod:2887 ../fish/guestfish-actions.pod:1985
9841 msgid "Any Microsoft Windows operating system."
9842 msgstr ""
9843
9844 #. type: =item
9845 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1987
9846 msgid "\"freebsd\""
9847 msgstr ""
9848
9849 #. type: textblock
9850 #: ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:1989
9851 msgid "FreeBSD."
9852 msgstr ""
9853
9854 #. type: textblock
9855 #: ../src/guestfs-actions.pod:2895 ../fish/guestfish-actions.pod:1993
9856 msgid "The operating system type could not be determined."
9857 msgstr ""
9858
9859 #. type: =head2
9860 #: ../src/guestfs-actions.pod:2909
9861 msgid "guestfs_inspect_get_windows_systemroot"
9862 msgstr ""
9863
9864 #. type: verbatim
9865 #: ../src/guestfs-actions.pod:2911
9866 #, no-wrap
9867 msgid ""
9868 " char *\n"
9869 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9870 "                                         const char *root);\n"
9871 "\n"
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2009
9876 msgid ""
9877 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9878 "is a directory path such as C</WINDOWS>."
9879 msgstr ""
9880
9881 #. type: textblock
9882 #: ../src/guestfs-actions.pod:2921 ../fish/guestfish-actions.pod:2012
9883 msgid ""
9884 "This call assumes that the guest is Windows and that the systemroot could be "
9885 "determined by inspection.  If this is not the case then an error is "
9886 "returned."
9887 msgstr ""
9888
9889 #. type: textblock
9890 #: ../src/guestfs-actions.pod:2930
9891 msgid "(Added in 1.5.25)"
9892 msgstr ""
9893
9894 #. type: =head2
9895 #: ../src/guestfs-actions.pod:2932
9896 msgid "guestfs_inspect_is_live"
9897 msgstr ""
9898
9899 #. type: verbatim
9900 #: ../src/guestfs-actions.pod:2934
9901 #, no-wrap
9902 msgid ""
9903 " int\n"
9904 " guestfs_inspect_is_live (guestfs_h *g,\n"
9905 "                          const char *root);\n"
9906 "\n"
9907 msgstr ""
9908
9909 #. type: textblock
9910 #: ../src/guestfs-actions.pod:2941
9911 msgid ""
9912 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
9913 "disk), then this returns true if a live image was detected on the disk."
9914 msgstr ""
9915
9916 #. type: =head2
9917 #: ../src/guestfs-actions.pod:2949
9918 msgid "guestfs_inspect_is_multipart"
9919 msgstr ""
9920
9921 #. type: verbatim
9922 #: ../src/guestfs-actions.pod:2951
9923 #, no-wrap
9924 msgid ""
9925 " int\n"
9926 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
9927 "                               const char *root);\n"
9928 "\n"
9929 msgstr ""
9930
9931 #. type: textblock
9932 #: ../src/guestfs-actions.pod:2958
9933 msgid ""
9934 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
9935 "disk), then this returns true if the disk is part of a set."
9936 msgstr ""
9937
9938 #. type: =head2
9939 #: ../src/guestfs-actions.pod:2966
9940 msgid "guestfs_inspect_is_netinst"
9941 msgstr ""
9942
9943 #. type: verbatim
9944 #: ../src/guestfs-actions.pod:2968
9945 #, no-wrap
9946 msgid ""
9947 " int\n"
9948 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
9949 "                             const char *root);\n"
9950 "\n"
9951 msgstr ""
9952
9953 #. type: textblock
9954 #: ../src/guestfs-actions.pod:2975
9955 msgid ""
9956 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
9957 "disk), then this returns true if the disk is a network installer, ie. not a "
9958 "self-contained install CD but one which is likely to require network access "
9959 "to complete the install."
9960 msgstr ""
9961
9962 #. type: =head2
9963 #: ../src/guestfs-actions.pod:2985
9964 msgid "guestfs_inspect_list_applications"
9965 msgstr ""
9966
9967 #. type: verbatim
9968 #: ../src/guestfs-actions.pod:2987
9969 #, no-wrap
9970 msgid ""
9971 " struct guestfs_application_list *\n"
9972 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9973 "                                    const char *root);\n"
9974 "\n"
9975 msgstr ""
9976
9977 #. type: textblock
9978 #: ../src/guestfs-actions.pod:2994 ../fish/guestfish-actions.pod:2066
9979 msgid "Return the list of applications installed in the operating system."
9980 msgstr ""
9981
9982 #. type: textblock
9983 #: ../src/guestfs-actions.pod:2996
9984 msgid ""
9985 "I<Note:> This call works differently from other parts of the inspection "
9986 "API.  You have to call C<guestfs_inspect_os>, then "
9987 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9988 "this.  Listing applications is a significantly more difficult operation "
9989 "which requires access to the full filesystem.  Also note that unlike the "
9990 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9991 "the libguestfs handle, this call actually reads parts of the mounted "
9992 "filesystems during the call."
9993 msgstr ""
9994
9995 #. type: textblock
9996 #: ../src/guestfs-actions.pod:3006 ../fish/guestfish-actions.pod:2078
9997 msgid ""
9998 "This returns an empty list if the inspection code was not able to determine "
9999 "the list of applications."
10000 msgstr ""
10001
10002 #. type: textblock
10003 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2081
10004 msgid "The application structure contains the following fields:"
10005 msgstr ""
10006
10007 #. type: =item
10008 #: ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:2085
10009 msgid "C<app_name>"
10010 msgstr ""
10011
10012 #. type: textblock
10013 #: ../src/guestfs-actions.pod:3015 ../fish/guestfish-actions.pod:2087
10014 msgid ""
10015 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10016 "guests, this is the package name."
10017 msgstr ""
10018
10019 #. type: =item
10020 #: ../src/guestfs-actions.pod:3018 ../fish/guestfish-actions.pod:2090
10021 msgid "C<app_display_name>"
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../src/guestfs-actions.pod:3020 ../fish/guestfish-actions.pod:2092
10026 msgid ""
10027 "The display name of the application, sometimes localized to the install "
10028 "language of the guest operating system."
10029 msgstr ""
10030
10031 #. type: textblock
10032 #: ../src/guestfs-actions.pod:3023 ../fish/guestfish-actions.pod:2095
10033 msgid ""
10034 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10035 "to display something can use C<app_name> instead."
10036 msgstr ""
10037
10038 #. type: =item
10039 #: ../src/guestfs-actions.pod:3026 ../fish/guestfish-actions.pod:2098
10040 msgid "C<app_epoch>"
10041 msgstr ""
10042
10043 #. type: textblock
10044 #: ../src/guestfs-actions.pod:3028 ../fish/guestfish-actions.pod:2100
10045 msgid ""
10046 "For package managers which use epochs, this contains the epoch of the "
10047 "package (an integer).  If unavailable, this is returned as C<0>."
10048 msgstr ""
10049
10050 #. type: =item
10051 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2103
10052 msgid "C<app_version>"
10053 msgstr ""
10054
10055 #. type: textblock
10056 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2105
10057 msgid ""
10058 "The version string of the application or package.  If unavailable this is "
10059 "returned as an empty string C<\"\">."
10060 msgstr ""
10061
10062 #. type: =item
10063 #: ../src/guestfs-actions.pod:3036 ../fish/guestfish-actions.pod:2108
10064 msgid "C<app_release>"
10065 msgstr ""
10066
10067 #. type: textblock
10068 #: ../src/guestfs-actions.pod:3038 ../fish/guestfish-actions.pod:2110
10069 msgid ""
10070 "The release string of the application or package, for package managers that "
10071 "use this.  If unavailable this is returned as an empty string C<\"\">."
10072 msgstr ""
10073
10074 #. type: =item
10075 #: ../src/guestfs-actions.pod:3042 ../fish/guestfish-actions.pod:2114
10076 msgid "C<app_install_path>"
10077 msgstr ""
10078
10079 #. type: textblock
10080 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2116
10081 msgid ""
10082 "The installation path of the application (on operating systems such as "
10083 "Windows which use installation paths).  This path is in the format used by "
10084 "the guest operating system, it is not a libguestfs path."
10085 msgstr ""
10086
10087 #. type: textblock
10088 #: ../src/guestfs-actions.pod:3049 ../fish/guestfish-actions.pod:2121
10089 msgid "If unavailable this is returned as an empty string C<\"\">."
10090 msgstr ""
10091
10092 #. type: =item
10093 #: ../src/guestfs-actions.pod:3051 ../fish/guestfish-actions.pod:2123
10094 msgid "C<app_trans_path>"
10095 msgstr ""
10096
10097 #. type: textblock
10098 #: ../src/guestfs-actions.pod:3053 ../fish/guestfish-actions.pod:2125
10099 msgid ""
10100 "The install path translated into a libguestfs path.  If unavailable this is "
10101 "returned as an empty string C<\"\">."
10102 msgstr ""
10103
10104 #. type: =item
10105 #: ../src/guestfs-actions.pod:3056 ../fish/guestfish-actions.pod:2128
10106 msgid "C<app_publisher>"
10107 msgstr ""
10108
10109 #. type: textblock
10110 #: ../src/guestfs-actions.pod:3058 ../fish/guestfish-actions.pod:2130
10111 msgid ""
10112 "The name of the publisher of the application, for package managers that use "
10113 "this.  If unavailable this is returned as an empty string C<\"\">."
10114 msgstr ""
10115
10116 #. type: =item
10117 #: ../src/guestfs-actions.pod:3062 ../fish/guestfish-actions.pod:2134
10118 msgid "C<app_url>"
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2136
10123 msgid ""
10124 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10125 "returned as an empty string C<\"\">."
10126 msgstr ""
10127
10128 #. type: =item
10129 #: ../src/guestfs-actions.pod:3067 ../fish/guestfish-actions.pod:2139
10130 msgid "C<app_source_package>"
10131 msgstr ""
10132
10133 #. type: textblock
10134 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2141
10135 msgid ""
10136 "For packaging systems which support this, the name of the source package.  "
10137 "If unavailable this is returned as an empty string C<\"\">."
10138 msgstr ""
10139
10140 #. type: =item
10141 #: ../src/guestfs-actions.pod:3072 ../fish/guestfish-actions.pod:2144
10142 msgid "C<app_summary>"
10143 msgstr ""
10144
10145 #. type: textblock
10146 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2146
10147 msgid ""
10148 "A short (usually one line) description of the application or package.  If "
10149 "unavailable this is returned as an empty string C<\"\">."
10150 msgstr ""
10151
10152 #. type: =item
10153 #: ../src/guestfs-actions.pod:3077 ../fish/guestfish-actions.pod:2149
10154 msgid "C<app_description>"
10155 msgstr ""
10156
10157 #. type: textblock
10158 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2151
10159 msgid ""
10160 "A longer description of the application or package.  If unavailable this is "
10161 "returned as an empty string C<\"\">."
10162 msgstr ""
10163
10164 #. type: textblock
10165 #: ../src/guestfs-actions.pod:3086
10166 msgid ""
10167 "This function returns a C<struct guestfs_application_list *>, or NULL if "
10168 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
10169 "after use>."
10170 msgstr ""
10171
10172 #. type: textblock
10173 #: ../src/guestfs-actions.pod:3090
10174 msgid "(Added in 1.7.8)"
10175 msgstr ""
10176
10177 #. type: =head2
10178 #: ../src/guestfs-actions.pod:3092
10179 msgid "guestfs_inspect_os"
10180 msgstr ""
10181
10182 #. type: verbatim
10183 #: ../src/guestfs-actions.pod:3094
10184 #, no-wrap
10185 msgid ""
10186 " char **\n"
10187 " guestfs_inspect_os (guestfs_h *g);\n"
10188 "\n"
10189 msgstr ""
10190
10191 #. type: textblock
10192 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2162
10193 msgid ""
10194 "This function uses other libguestfs functions and certain heuristics to "
10195 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10196 "for operating systems."
10197 msgstr ""
10198
10199 #. type: textblock
10200 #: ../src/guestfs-actions.pod:3101 ../fish/guestfish-actions.pod:2166
10201 msgid "The list returned is empty if no operating systems were found."
10202 msgstr ""
10203
10204 #. type: textblock
10205 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2168
10206 msgid ""
10207 "If one operating system was found, then this returns a list with a single "
10208 "element, which is the name of the root filesystem of this operating system.  "
10209 "It is also possible for this function to return a list containing more than "
10210 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10211 "element being the root filesystem of one of the operating systems."
10212 msgstr ""
10213
10214 #. type: textblock
10215 #: ../src/guestfs-actions.pod:3110
10216 msgid ""
10217 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
10218 "functions in order to query further information about each operating system, "
10219 "such as the name and version."
10220 msgstr ""
10221
10222 #. type: textblock
10223 #: ../src/guestfs-actions.pod:3115
10224 msgid ""
10225 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
10226 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
10227 "the contents.  This should be called with no disks currently mounted.  The "
10228 "function may also use Augeas, so any existing Augeas handle will be closed."
10229 msgstr ""
10230
10231 #. type: textblock
10232 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2186
10233 msgid ""
10234 "This function cannot decrypt encrypted disks.  The caller must do that first "
10235 "(supplying the necessary keys) if the disk is encrypted."
10236 msgstr ""
10237
10238 #. type: textblock
10239 #: ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3474
10240 msgid "See also C<guestfs_list_filesystems>."
10241 msgstr ""
10242
10243 #. type: =head2
10244 #: ../src/guestfs-actions.pod:3135
10245 msgid "guestfs_is_blockdev"
10246 msgstr ""
10247
10248 #. type: verbatim
10249 #: ../src/guestfs-actions.pod:3137
10250 #, no-wrap
10251 msgid ""
10252 " int\n"
10253 " guestfs_is_blockdev (guestfs_h *g,\n"
10254 "                      const char *path);\n"
10255 "\n"
10256 msgstr ""
10257
10258 #. type: textblock
10259 #: ../src/guestfs-actions.pod:3141 ../fish/guestfish-actions.pod:2198
10260 msgid ""
10261 "This returns C<true> if and only if there is a block device with the given "
10262 "C<path> name."
10263 msgstr ""
10264
10265 #. type: textblock
10266 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3173 ../src/guestfs-actions.pod:3203 ../src/guestfs-actions.pod:3218 ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3305
10267 msgid "See also C<guestfs_stat>."
10268 msgstr ""
10269
10270 #. type: textblock
10271 #: ../src/guestfs-actions.pod:3148 ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3222 ../src/guestfs-actions.pod:3294 ../src/guestfs-actions.pod:3309
10272 msgid "(Added in 1.5.10)"
10273 msgstr ""
10274
10275 #. type: =head2
10276 #: ../src/guestfs-actions.pod:3150
10277 msgid "guestfs_is_busy"
10278 msgstr ""
10279
10280 #. type: verbatim
10281 #: ../src/guestfs-actions.pod:3152
10282 #, no-wrap
10283 msgid ""
10284 " int\n"
10285 " guestfs_is_busy (guestfs_h *g);\n"
10286 "\n"
10287 msgstr ""
10288
10289 #. type: textblock
10290 #: ../src/guestfs-actions.pod:3155 ../fish/guestfish-actions.pod:2207
10291 msgid ""
10292 "This returns true iff this handle is busy processing a command (in the "
10293 "C<BUSY> state)."
10294 msgstr ""
10295
10296 #. type: =head2
10297 #: ../src/guestfs-actions.pod:3164
10298 msgid "guestfs_is_chardev"
10299 msgstr ""
10300
10301 #. type: verbatim
10302 #: ../src/guestfs-actions.pod:3166
10303 #, no-wrap
10304 msgid ""
10305 " int\n"
10306 " guestfs_is_chardev (guestfs_h *g,\n"
10307 "                     const char *path);\n"
10308 "\n"
10309 msgstr ""
10310
10311 #. type: textblock
10312 #: ../src/guestfs-actions.pod:3170 ../fish/guestfish-actions.pod:2216
10313 msgid ""
10314 "This returns C<true> if and only if there is a character device with the "
10315 "given C<path> name."
10316 msgstr ""
10317
10318 #. type: =head2
10319 #: ../src/guestfs-actions.pod:3179
10320 msgid "guestfs_is_config"
10321 msgstr ""
10322
10323 #. type: verbatim
10324 #: ../src/guestfs-actions.pod:3181
10325 #, no-wrap
10326 msgid ""
10327 " int\n"
10328 " guestfs_is_config (guestfs_h *g);\n"
10329 "\n"
10330 msgstr ""
10331
10332 #. type: textblock
10333 #: ../src/guestfs-actions.pod:3184 ../fish/guestfish-actions.pod:2225
10334 msgid ""
10335 "This returns true iff this handle is being configured (in the C<CONFIG> "
10336 "state)."
10337 msgstr ""
10338
10339 #. type: =head2
10340 #: ../src/guestfs-actions.pod:3193
10341 msgid "guestfs_is_dir"
10342 msgstr ""
10343
10344 #. type: verbatim
10345 #: ../src/guestfs-actions.pod:3195
10346 #, no-wrap
10347 msgid ""
10348 " int\n"
10349 " guestfs_is_dir (guestfs_h *g,\n"
10350 "                 const char *path);\n"
10351 "\n"
10352 msgstr ""
10353
10354 #. type: textblock
10355 #: ../src/guestfs-actions.pod:3199 ../fish/guestfish-actions.pod:2234
10356 msgid ""
10357 "This returns C<true> if and only if there is a directory with the given "
10358 "C<path> name.  Note that it returns false for other objects like files."
10359 msgstr ""
10360
10361 #. type: =head2
10362 #: ../src/guestfs-actions.pod:3209
10363 msgid "guestfs_is_fifo"
10364 msgstr ""
10365
10366 #. type: verbatim
10367 #: ../src/guestfs-actions.pod:3211
10368 #, no-wrap
10369 msgid ""
10370 " int\n"
10371 " guestfs_is_fifo (guestfs_h *g,\n"
10372 "                  const char *path);\n"
10373 "\n"
10374 msgstr ""
10375
10376 #. type: textblock
10377 #: ../src/guestfs-actions.pod:3215 ../fish/guestfish-actions.pod:2244
10378 msgid ""
10379 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10380 "given C<path> name."
10381 msgstr ""
10382
10383 #. type: =head2
10384 #: ../src/guestfs-actions.pod:3224
10385 msgid "guestfs_is_file"
10386 msgstr ""
10387
10388 #. type: verbatim
10389 #: ../src/guestfs-actions.pod:3226
10390 #, no-wrap
10391 msgid ""
10392 " int\n"
10393 " guestfs_is_file (guestfs_h *g,\n"
10394 "                  const char *path);\n"
10395 "\n"
10396 msgstr ""
10397
10398 #. type: textblock
10399 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2253
10400 msgid ""
10401 "This returns C<true> if and only if there is a regular file with the given "
10402 "C<path> name.  Note that it returns false for other objects like "
10403 "directories."
10404 msgstr ""
10405
10406 #. type: =head2
10407 #: ../src/guestfs-actions.pod:3240
10408 msgid "guestfs_is_launching"
10409 msgstr ""
10410
10411 #. type: verbatim
10412 #: ../src/guestfs-actions.pod:3242
10413 #, no-wrap
10414 msgid ""
10415 " int\n"
10416 " guestfs_is_launching (guestfs_h *g);\n"
10417 "\n"
10418 msgstr ""
10419
10420 #. type: textblock
10421 #: ../src/guestfs-actions.pod:3245 ../fish/guestfish-actions.pod:2263
10422 msgid ""
10423 "This returns true iff this handle is launching the subprocess (in the "
10424 "C<LAUNCHING> state)."
10425 msgstr ""
10426
10427 #. type: =head2
10428 #: ../src/guestfs-actions.pod:3254
10429 msgid "guestfs_is_lv"
10430 msgstr ""
10431
10432 #. type: verbatim
10433 #: ../src/guestfs-actions.pod:3256
10434 #, no-wrap
10435 msgid ""
10436 " int\n"
10437 " guestfs_is_lv (guestfs_h *g,\n"
10438 "                const char *device);\n"
10439 "\n"
10440 msgstr ""
10441
10442 #. type: textblock
10443 #: ../src/guestfs-actions.pod:3260 ../fish/guestfish-actions.pod:2272
10444 msgid ""
10445 "This command tests whether C<device> is a logical volume, and returns true "
10446 "iff this is the case."
10447 msgstr ""
10448
10449 #. type: =head2
10450 #: ../src/guestfs-actions.pod:3267
10451 msgid "guestfs_is_ready"
10452 msgstr ""
10453
10454 #. type: verbatim
10455 #: ../src/guestfs-actions.pod:3269
10456 #, no-wrap
10457 msgid ""
10458 " int\n"
10459 " guestfs_is_ready (guestfs_h *g);\n"
10460 "\n"
10461 msgstr ""
10462
10463 #. type: textblock
10464 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2279
10465 msgid ""
10466 "This returns true iff this handle is ready to accept commands (in the "
10467 "C<READY> state)."
10468 msgstr ""
10469
10470 #. type: =head2
10471 #: ../src/guestfs-actions.pod:3281
10472 msgid "guestfs_is_socket"
10473 msgstr ""
10474
10475 #. type: verbatim
10476 #: ../src/guestfs-actions.pod:3283
10477 #, no-wrap
10478 msgid ""
10479 " int\n"
10480 " guestfs_is_socket (guestfs_h *g,\n"
10481 "                    const char *path);\n"
10482 "\n"
10483 msgstr ""
10484
10485 #. type: textblock
10486 #: ../src/guestfs-actions.pod:3287 ../fish/guestfish-actions.pod:2288
10487 msgid ""
10488 "This returns C<true> if and only if there is a Unix domain socket with the "
10489 "given C<path> name."
10490 msgstr ""
10491
10492 #. type: =head2
10493 #: ../src/guestfs-actions.pod:3296
10494 msgid "guestfs_is_symlink"
10495 msgstr ""
10496
10497 #. type: verbatim
10498 #: ../src/guestfs-actions.pod:3298
10499 #, no-wrap
10500 msgid ""
10501 " int\n"
10502 " guestfs_is_symlink (guestfs_h *g,\n"
10503 "                     const char *path);\n"
10504 "\n"
10505 msgstr ""
10506
10507 #. type: textblock
10508 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2297
10509 msgid ""
10510 "This returns C<true> if and only if there is a symbolic link with the given "
10511 "C<path> name."
10512 msgstr ""
10513
10514 #. type: =head2
10515 #: ../src/guestfs-actions.pod:3311
10516 msgid "guestfs_kill_subprocess"
10517 msgstr ""
10518
10519 #. type: verbatim
10520 #: ../src/guestfs-actions.pod:3313
10521 #, no-wrap
10522 msgid ""
10523 " int\n"
10524 " guestfs_kill_subprocess (guestfs_h *g);\n"
10525 "\n"
10526 msgstr ""
10527
10528 #. type: textblock
10529 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2306
10530 msgid "This kills the qemu subprocess.  You should never need to call this."
10531 msgstr ""
10532
10533 #. type: =head2
10534 #: ../src/guestfs-actions.pod:3322
10535 msgid "guestfs_launch"
10536 msgstr ""
10537
10538 #. type: verbatim
10539 #: ../src/guestfs-actions.pod:3324
10540 #, no-wrap
10541 msgid ""
10542 " int\n"
10543 " guestfs_launch (guestfs_h *g);\n"
10544 "\n"
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2314
10549 msgid ""
10550 "Internally libguestfs is implemented by running a virtual machine using "
10551 "L<qemu(1)>."
10552 msgstr ""
10553
10554 #. type: textblock
10555 #: ../src/guestfs-actions.pod:3330 ../fish/guestfish-actions.pod:2317
10556 msgid ""
10557 "You should call this after configuring the handle (eg. adding drives) but "
10558 "before performing any actions."
10559 msgstr ""
10560
10561 #. type: =head2
10562 #: ../src/guestfs-actions.pod:3337
10563 msgid "guestfs_lchown"
10564 msgstr ""
10565
10566 #. type: verbatim
10567 #: ../src/guestfs-actions.pod:3339
10568 #, no-wrap
10569 msgid ""
10570 " int\n"
10571 " guestfs_lchown (guestfs_h *g,\n"
10572 "                 int owner,\n"
10573 "                 int group,\n"
10574 "                 const char *path);\n"
10575 "\n"
10576 msgstr ""
10577
10578 #. type: textblock
10579 #: ../src/guestfs-actions.pod:3345
10580 msgid ""
10581 "Change the file owner to C<owner> and group to C<group>.  This is like "
10582 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
10583 "changed, not the target."
10584 msgstr ""
10585
10586 #. type: =head2
10587 #: ../src/guestfs-actions.pod:3357
10588 msgid "guestfs_lgetxattr"
10589 msgstr ""
10590
10591 #. type: verbatim
10592 #: ../src/guestfs-actions.pod:3359
10593 #, no-wrap
10594 msgid ""
10595 " char *\n"
10596 " guestfs_lgetxattr (guestfs_h *g,\n"
10597 "                    const char *path,\n"
10598 "                    const char *name,\n"
10599 "                    size_t *size_r);\n"
10600 "\n"
10601 msgstr ""
10602
10603 #. type: textblock
10604 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2336
10605 msgid ""
10606 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10607 "is a symlink, then this call returns an extended attribute from the symlink."
10608 msgstr ""
10609
10610 #. type: textblock
10611 #: ../src/guestfs-actions.pod:3379
10612 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
10613 msgstr ""
10614
10615 #. type: =head2
10616 #: ../src/guestfs-actions.pod:3387
10617 msgid "guestfs_lgetxattrs"
10618 msgstr ""
10619
10620 #. type: verbatim
10621 #: ../src/guestfs-actions.pod:3389
10622 #, no-wrap
10623 msgid ""
10624 " struct guestfs_xattr_list *\n"
10625 " guestfs_lgetxattrs (guestfs_h *g,\n"
10626 "                     const char *path);\n"
10627 "\n"
10628 msgstr ""
10629
10630 #. type: textblock
10631 #: ../src/guestfs-actions.pod:3393
10632 msgid ""
10633 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
10634 "then it returns the extended attributes of the link itself."
10635 msgstr ""
10636
10637 #. type: =head2
10638 #: ../src/guestfs-actions.pod:3403
10639 msgid "guestfs_list_devices"
10640 msgstr ""
10641
10642 #. type: verbatim
10643 #: ../src/guestfs-actions.pod:3405
10644 #, no-wrap
10645 msgid ""
10646 " char **\n"
10647 " guestfs_list_devices (guestfs_h *g);\n"
10648 "\n"
10649 msgstr ""
10650
10651 #. type: textblock
10652 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2364
10653 msgid "List all the block devices."
10654 msgstr ""
10655
10656 #. type: textblock
10657 #: ../src/guestfs-actions.pod:3410 ../fish/guestfish-actions.pod:2366
10658 msgid "The full block device names are returned, eg. C</dev/sda>."
10659 msgstr ""
10660
10661 #. type: =head2
10662 #: ../src/guestfs-actions.pod:3420
10663 msgid "guestfs_list_filesystems"
10664 msgstr ""
10665
10666 #. type: verbatim
10667 #: ../src/guestfs-actions.pod:3422
10668 #, no-wrap
10669 msgid ""
10670 " char **\n"
10671 " guestfs_list_filesystems (guestfs_h *g);\n"
10672 "\n"
10673 msgstr ""
10674
10675 #. type: textblock
10676 #: ../src/guestfs-actions.pod:3425 ../fish/guestfish-actions.pod:2374
10677 msgid ""
10678 "This inspection command looks for filesystems on partitions, block devices "
10679 "and logical volumes, returning a list of devices containing filesystems and "
10680 "their type."
10681 msgstr ""
10682
10683 #. type: textblock
10684 #: ../src/guestfs-actions.pod:3429 ../fish/guestfish-actions.pod:2378
10685 msgid ""
10686 "The return value is a hash, where the keys are the devices containing "
10687 "filesystems, and the values are the filesystem types.  For example:"
10688 msgstr ""
10689
10690 #. type: verbatim
10691 #: ../src/guestfs-actions.pod:3433 ../fish/guestfish-actions.pod:2382
10692 #, no-wrap
10693 msgid ""
10694 " \"/dev/sda1\" => \"ntfs\"\n"
10695 " \"/dev/sda2\" => \"ext2\"\n"
10696 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10697 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10698 "\n"
10699 msgstr ""
10700
10701 #. type: textblock
10702 #: ../src/guestfs-actions.pod:3438 ../fish/guestfish-actions.pod:2387
10703 msgid ""
10704 "The value can have the special value \"unknown\", meaning the content of the "
10705 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10706 msgstr ""
10707
10708 #. type: textblock
10709 #: ../src/guestfs-actions.pod:3442
10710 msgid ""
10711 "This command runs other libguestfs commands, which might include "
10712 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10713 "soon after launch and only when nothing is mounted."
10714 msgstr ""
10715
10716 #. type: textblock
10717 #: ../src/guestfs-actions.pod:3446
10718 msgid ""
10719 "Not all of the filesystems returned will be mountable.  In particular, swap "
10720 "partitions are returned in the list.  Also this command does not check that "
10721 "each filesystem found is valid and mountable, and some filesystems might be "
10722 "mountable but require special options.  Filesystems may not all belong to a "
10723 "single logical operating system (use C<guestfs_inspect_os> to look for "
10724 "OSes)."
10725 msgstr ""
10726
10727 #. type: textblock
10728 #: ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:5051
10729 msgid "(Added in 1.5.15)"
10730 msgstr ""
10731
10732 #. type: =head2
10733 #: ../src/guestfs-actions.pod:3462
10734 msgid "guestfs_list_partitions"
10735 msgstr ""
10736
10737 #. type: verbatim
10738 #: ../src/guestfs-actions.pod:3464
10739 #, no-wrap
10740 msgid ""
10741 " char **\n"
10742 " guestfs_list_partitions (guestfs_h *g);\n"
10743 "\n"
10744 msgstr ""
10745
10746 #. type: textblock
10747 #: ../src/guestfs-actions.pod:3467 ../fish/guestfish-actions.pod:2407
10748 msgid "List all the partitions detected on all block devices."
10749 msgstr ""
10750
10751 #. type: textblock
10752 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2409
10753 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10754 msgstr ""
10755
10756 #. type: textblock
10757 #: ../src/guestfs-actions.pod:3471
10758 msgid ""
10759 "This does not return logical volumes.  For that you will need to call "
10760 "C<guestfs_lvs>."
10761 msgstr ""
10762
10763 #. type: =head2
10764 #: ../src/guestfs-actions.pod:3482
10765 msgid "guestfs_ll"
10766 msgstr ""
10767
10768 #. type: verbatim
10769 #: ../src/guestfs-actions.pod:3484
10770 #, no-wrap
10771 msgid ""
10772 " char *\n"
10773 " guestfs_ll (guestfs_h *g,\n"
10774 "             const char *directory);\n"
10775 "\n"
10776 msgstr ""
10777
10778 #. type: textblock
10779 #: ../src/guestfs-actions.pod:3488 ../fish/guestfish-actions.pod:2420
10780 msgid ""
10781 "List the files in C<directory> (relative to the root directory, there is no "
10782 "cwd) in the format of 'ls -la'."
10783 msgstr ""
10784
10785 #. type: textblock
10786 #: ../src/guestfs-actions.pod:3491 ../fish/guestfish-actions.pod:2423
10787 msgid ""
10788 "This command is mostly useful for interactive sessions.  It is I<not> "
10789 "intended that you try to parse the output string."
10790 msgstr ""
10791
10792 #. type: =head2
10793 #: ../src/guestfs-actions.pod:3499
10794 msgid "guestfs_ln"
10795 msgstr ""
10796
10797 #. type: verbatim
10798 #: ../src/guestfs-actions.pod:3501
10799 #, no-wrap
10800 msgid ""
10801 " int\n"
10802 " guestfs_ln (guestfs_h *g,\n"
10803 "             const char *target,\n"
10804 "             const char *linkname);\n"
10805 "\n"
10806 msgstr ""
10807
10808 #. type: textblock
10809 #: ../src/guestfs-actions.pod:3506 ../fish/guestfish-actions.pod:2430
10810 msgid "This command creates a hard link using the C<ln> command."
10811 msgstr ""
10812
10813 #. type: =head2
10814 #: ../src/guestfs-actions.pod:3512
10815 msgid "guestfs_ln_f"
10816 msgstr ""
10817
10818 #. type: verbatim
10819 #: ../src/guestfs-actions.pod:3514
10820 #, no-wrap
10821 msgid ""
10822 " int\n"
10823 " guestfs_ln_f (guestfs_h *g,\n"
10824 "               const char *target,\n"
10825 "               const char *linkname);\n"
10826 "\n"
10827 msgstr ""
10828
10829 #. type: textblock
10830 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2436
10831 msgid ""
10832 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10833 "option removes the link (C<linkname>) if it exists already."
10834 msgstr ""
10835
10836 #. type: =head2
10837 #: ../src/guestfs-actions.pod:3526
10838 msgid "guestfs_ln_s"
10839 msgstr ""
10840
10841 #. type: verbatim
10842 #: ../src/guestfs-actions.pod:3528
10843 #, no-wrap
10844 msgid ""
10845 " int\n"
10846 " guestfs_ln_s (guestfs_h *g,\n"
10847 "               const char *target,\n"
10848 "               const char *linkname);\n"
10849 "\n"
10850 msgstr ""
10851
10852 #. type: textblock
10853 #: ../src/guestfs-actions.pod:3533 ../fish/guestfish-actions.pod:2443
10854 msgid "This command creates a symbolic link using the C<ln -s> command."
10855 msgstr ""
10856
10857 #. type: =head2
10858 #: ../src/guestfs-actions.pod:3539
10859 msgid "guestfs_ln_sf"
10860 msgstr ""
10861
10862 #. type: verbatim
10863 #: ../src/guestfs-actions.pod:3541
10864 #, no-wrap
10865 msgid ""
10866 " int\n"
10867 " guestfs_ln_sf (guestfs_h *g,\n"
10868 "                const char *target,\n"
10869 "                const char *linkname);\n"
10870 "\n"
10871 msgstr ""
10872
10873 #. type: textblock
10874 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2449
10875 msgid ""
10876 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10877 "option removes the link (C<linkname>) if it exists already."
10878 msgstr ""
10879
10880 #. type: =head2
10881 #: ../src/guestfs-actions.pod:3553
10882 msgid "guestfs_lremovexattr"
10883 msgstr ""
10884
10885 #. type: verbatim
10886 #: ../src/guestfs-actions.pod:3555
10887 #, no-wrap
10888 msgid ""
10889 " int\n"
10890 " guestfs_lremovexattr (guestfs_h *g,\n"
10891 "                       const char *xattr,\n"
10892 "                       const char *path);\n"
10893 "\n"
10894 msgstr ""
10895
10896 #. type: textblock
10897 #: ../src/guestfs-actions.pod:3560
10898 msgid ""
10899 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10900 "link, then it removes an extended attribute of the link itself."
10901 msgstr ""
10902
10903 #. type: =head2
10904 #: ../src/guestfs-actions.pod:3568
10905 msgid "guestfs_ls"
10906 msgstr ""
10907
10908 #. type: verbatim
10909 #: ../src/guestfs-actions.pod:3570
10910 #, no-wrap
10911 msgid ""
10912 " char **\n"
10913 " guestfs_ls (guestfs_h *g,\n"
10914 "             const char *directory);\n"
10915 "\n"
10916 msgstr ""
10917
10918 #. type: textblock
10919 #: ../src/guestfs-actions.pod:3574 ../fish/guestfish-actions.pod:2464
10920 msgid ""
10921 "List the files in C<directory> (relative to the root directory, there is no "
10922 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
10923 "shown."
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../src/guestfs-actions.pod:3578
10928 msgid ""
10929 "This command is mostly useful for interactive sessions.  Programs should "
10930 "probably use C<guestfs_readdir> instead."
10931 msgstr ""
10932
10933 #. type: =head2
10934 #: ../src/guestfs-actions.pod:3587
10935 msgid "guestfs_lsetxattr"
10936 msgstr ""
10937
10938 #. type: verbatim
10939 #: ../src/guestfs-actions.pod:3589
10940 #, no-wrap
10941 msgid ""
10942 " int\n"
10943 " guestfs_lsetxattr (guestfs_h *g,\n"
10944 "                    const char *xattr,\n"
10945 "                    const char *val,\n"
10946 "                    int vallen,\n"
10947 "                    const char *path);\n"
10948 "\n"
10949 msgstr ""
10950
10951 #. type: textblock
10952 #: ../src/guestfs-actions.pod:3596
10953 msgid ""
10954 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10955 "then it sets an extended attribute of the link itself."
10956 msgstr ""
10957
10958 #. type: =head2
10959 #: ../src/guestfs-actions.pod:3604
10960 msgid "guestfs_lstat"
10961 msgstr ""
10962
10963 #. type: verbatim
10964 #: ../src/guestfs-actions.pod:3606
10965 #, no-wrap
10966 msgid ""
10967 " struct guestfs_stat *\n"
10968 " guestfs_lstat (guestfs_h *g,\n"
10969 "                const char *path);\n"
10970 "\n"
10971 msgstr ""
10972
10973 #. type: textblock
10974 #: ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:6122 ../fish/guestfish-actions.pod:2483 ../fish/guestfish-actions.pod:4109
10975 msgid "Returns file information for the given C<path>."
10976 msgstr ""
10977
10978 #. type: textblock
10979 #: ../src/guestfs-actions.pod:3612
10980 msgid ""
10981 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10982 "link, then the link is stat-ed, not the file it refers to."
10983 msgstr ""
10984
10985 #. type: textblock
10986 #: ../src/guestfs-actions.pod:3616 ../fish/guestfish-actions.pod:2489
10987 msgid "This is the same as the C<lstat(2)> system call."
10988 msgstr ""
10989
10990 #. type: textblock
10991 #: ../src/guestfs-actions.pod:3618 ../src/guestfs-actions.pod:6126
10992 msgid ""
10993 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10994 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10995 msgstr ""
10996
10997 #. type: textblock
10998 #: ../src/guestfs-actions.pod:3622 ../src/guestfs-actions.pod:6130 ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6529
10999 msgid "(Added in 0.9.2)"
11000 msgstr ""
11001
11002 #. type: =head2
11003 #: ../src/guestfs-actions.pod:3624
11004 msgid "guestfs_lstatlist"
11005 msgstr ""
11006
11007 #. type: verbatim
11008 #: ../src/guestfs-actions.pod:3626
11009 #, no-wrap
11010 msgid ""
11011 " struct guestfs_stat_list *\n"
11012 " guestfs_lstatlist (guestfs_h *g,\n"
11013 "                    const char *path,\n"
11014 "                    char *const *names);\n"
11015 "\n"
11016 msgstr ""
11017
11018 #. type: textblock
11019 #: ../src/guestfs-actions.pod:3631
11020 msgid ""
11021 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
11022 "files, where all files are in the directory C<path>.  C<names> is the list "
11023 "of files from this directory."
11024 msgstr ""
11025
11026 #. type: textblock
11027 #: ../src/guestfs-actions.pod:3635 ../fish/guestfish-actions.pod:2499
11028 msgid ""
11029 "On return you get a list of stat structs, with a one-to-one correspondence "
11030 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11031 "then the C<ino> field of that structure is set to C<-1>."
11032 msgstr ""
11033
11034 #. type: textblock
11035 #: ../src/guestfs-actions.pod:3640
11036 msgid ""
11037 "This call is intended for programs that want to efficiently list a directory "
11038 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
11039 "for a similarly efficient call for getting extended attributes.  Very long "
11040 "directory listings might cause the protocol message size to be exceeded, "
11041 "causing this call to fail.  The caller must split up such requests into "
11042 "smaller groups of names."
11043 msgstr ""
11044
11045 #. type: textblock
11046 #: ../src/guestfs-actions.pod:3648
11047 msgid ""
11048 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
11049 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
11050 msgstr ""
11051
11052 #. type: =head2
11053 #: ../src/guestfs-actions.pod:3654
11054 msgid "guestfs_luks_add_key"
11055 msgstr ""
11056
11057 #. type: verbatim
11058 #: ../src/guestfs-actions.pod:3656
11059 #, no-wrap
11060 msgid ""
11061 " int\n"
11062 " guestfs_luks_add_key (guestfs_h *g,\n"
11063 "                       const char *device,\n"
11064 "                       const char *key,\n"
11065 "                       const char *newkey,\n"
11066 "                       int keyslot);\n"
11067 "\n"
11068 msgstr ""
11069
11070 #. type: textblock
11071 #: ../src/guestfs-actions.pod:3663 ../fish/guestfish-actions.pod:2516
11072 msgid ""
11073 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11074 "existing key, and is used to access the device.  C<newkey> is the new key to "
11075 "add.  C<keyslot> is the key slot that will be replaced."
11076 msgstr ""
11077
11078 #. type: textblock
11079 #: ../src/guestfs-actions.pod:3668
11080 msgid ""
11081 "Note that if C<keyslot> already contains a key, then this command will "
11082 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
11083 msgstr ""
11084
11085 #. type: textblock
11086 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3714 ../src/guestfs-actions.pod:3737 ../src/guestfs-actions.pod:3757 ../src/guestfs-actions.pod:3789 ../src/guestfs-actions.pod:3808
11087 msgid ""
11088 "This function takes a key or passphrase parameter which could contain "
11089 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
11090 "information."
11091 msgstr ""
11092
11093 #. type: textblock
11094 #: ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3718 ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
11095 msgid "(Added in 1.5.2)"
11096 msgstr ""
11097
11098 #. type: =head2
11099 #: ../src/guestfs-actions.pod:3680
11100 msgid "guestfs_luks_close"
11101 msgstr ""
11102
11103 #. type: verbatim
11104 #: ../src/guestfs-actions.pod:3682
11105 #, no-wrap
11106 msgid ""
11107 " int\n"
11108 " guestfs_luks_close (guestfs_h *g,\n"
11109 "                     const char *device);\n"
11110 "\n"
11111 msgstr ""
11112
11113 #. type: textblock
11114 #: ../src/guestfs-actions.pod:3686
11115 msgid ""
11116 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
11117 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
11118 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
11119 "underlying block device."
11120 msgstr ""
11121
11122 #. type: textblock
11123 #: ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3812 ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:3910
11124 msgid "(Added in 1.5.1)"
11125 msgstr ""
11126
11127 #. type: =head2
11128 #: ../src/guestfs-actions.pod:3696
11129 msgid "guestfs_luks_format"
11130 msgstr ""
11131
11132 #. type: verbatim
11133 #: ../src/guestfs-actions.pod:3698
11134 #, no-wrap
11135 msgid ""
11136 " int\n"
11137 " guestfs_luks_format (guestfs_h *g,\n"
11138 "                      const char *device,\n"
11139 "                      const char *key,\n"
11140 "                      int keyslot);\n"
11141 "\n"
11142 msgstr ""
11143
11144 #. type: textblock
11145 #: ../src/guestfs-actions.pod:3704 ../fish/guestfish-actions.pod:2542
11146 msgid ""
11147 "This command erases existing data on C<device> and formats the device as a "
11148 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11149 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11150 msgstr ""
11151
11152 #. type: textblock
11153 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3874 ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:5582 ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5980 ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:2550 ../fish/guestfish-actions.pod:2563 ../fish/guestfish-actions.pod:2647 ../fish/guestfish-actions.pod:3208 ../fish/guestfish-actions.pod:3728 ../fish/guestfish-actions.pod:4008 ../fish/guestfish-actions.pod:4024 ../fish/guestfish-actions.pod:4039 ../fish/guestfish-actions.pod:4754
11154 msgid ""
11155 "B<This command is dangerous.  Without careful use you can easily destroy all "
11156 "your data>."
11157 msgstr ""
11158
11159 #. type: =head2
11160 #: ../src/guestfs-actions.pod:3720
11161 msgid "guestfs_luks_format_cipher"
11162 msgstr ""
11163
11164 #. type: verbatim
11165 #: ../src/guestfs-actions.pod:3722
11166 #, no-wrap
11167 msgid ""
11168 " int\n"
11169 " guestfs_luks_format_cipher (guestfs_h *g,\n"
11170 "                             const char *device,\n"
11171 "                             const char *key,\n"
11172 "                             int keyslot,\n"
11173 "                             const char *cipher);\n"
11174 "\n"
11175 msgstr ""
11176
11177 #. type: textblock
11178 #: ../src/guestfs-actions.pod:3729
11179 msgid ""
11180 "This command is the same as C<guestfs_luks_format> but it also allows you to "
11181 "set the C<cipher> used."
11182 msgstr ""
11183
11184 #. type: =head2
11185 #: ../src/guestfs-actions.pod:3743
11186 msgid "guestfs_luks_kill_slot"
11187 msgstr ""
11188
11189 #. type: verbatim
11190 #: ../src/guestfs-actions.pod:3745
11191 #, no-wrap
11192 msgid ""
11193 " int\n"
11194 " guestfs_luks_kill_slot (guestfs_h *g,\n"
11195 "                         const char *device,\n"
11196 "                         const char *key,\n"
11197 "                         int keyslot);\n"
11198 "\n"
11199 msgstr ""
11200
11201 #. type: textblock
11202 #: ../src/guestfs-actions.pod:3751 ../fish/guestfish-actions.pod:2570
11203 msgid ""
11204 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11205 "device C<device>.  C<key> must be one of the I<other> keys."
11206 msgstr ""
11207
11208 #. type: =head2
11209 #: ../src/guestfs-actions.pod:3763
11210 msgid "guestfs_luks_open"
11211 msgstr ""
11212
11213 #. type: verbatim
11214 #: ../src/guestfs-actions.pod:3765
11215 #, no-wrap
11216 msgid ""
11217 " int\n"
11218 " guestfs_luks_open (guestfs_h *g,\n"
11219 "                    const char *device,\n"
11220 "                    const char *key,\n"
11221 "                    const char *mapname);\n"
11222 "\n"
11223 msgstr ""
11224
11225 #. type: textblock
11226 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2581
11227 msgid ""
11228 "This command opens a block device which has been encrypted according to the "
11229 "Linux Unified Key Setup (LUKS) standard."
11230 msgstr ""
11231
11232 #. type: textblock
11233 #: ../src/guestfs-actions.pod:3774 ../fish/guestfish-actions.pod:2584
11234 msgid "C<device> is the encrypted block device or partition."
11235 msgstr ""
11236
11237 #. type: textblock
11238 #: ../src/guestfs-actions.pod:3776 ../fish/guestfish-actions.pod:2586
11239 msgid ""
11240 "The caller must supply one of the keys associated with the LUKS block "
11241 "device, in the C<key> parameter."
11242 msgstr ""
11243
11244 #. type: textblock
11245 #: ../src/guestfs-actions.pod:3779 ../fish/guestfish-actions.pod:2589
11246 msgid ""
11247 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11248 "writes to this block device are decrypted from and encrypted to the "
11249 "underlying C<device> respectively."
11250 msgstr ""
11251
11252 #. type: textblock
11253 #: ../src/guestfs-actions.pod:3783
11254 msgid ""
11255 "If this block device contains LVM volume groups, then calling "
11256 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
11257 "visible."
11258 msgstr ""
11259
11260 #. type: =head2
11261 #: ../src/guestfs-actions.pod:3795
11262 msgid "guestfs_luks_open_ro"
11263 msgstr ""
11264
11265 #. type: verbatim
11266 #: ../src/guestfs-actions.pod:3797
11267 #, no-wrap
11268 msgid ""
11269 " int\n"
11270 " guestfs_luks_open_ro (guestfs_h *g,\n"
11271 "                       const char *device,\n"
11272 "                       const char *key,\n"
11273 "                       const char *mapname);\n"
11274 "\n"
11275 msgstr ""
11276
11277 #. type: textblock
11278 #: ../src/guestfs-actions.pod:3803
11279 msgid ""
11280 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
11281 "created."
11282 msgstr ""
11283
11284 #. type: =head2
11285 #: ../src/guestfs-actions.pod:3814
11286 msgid "guestfs_lvcreate"
11287 msgstr ""
11288
11289 #. type: verbatim
11290 #: ../src/guestfs-actions.pod:3816
11291 #, no-wrap
11292 msgid ""
11293 " int\n"
11294 " guestfs_lvcreate (guestfs_h *g,\n"
11295 "                   const char *logvol,\n"
11296 "                   const char *volgroup,\n"
11297 "                   int mbytes);\n"
11298 "\n"
11299 msgstr ""
11300
11301 #. type: textblock
11302 #: ../src/guestfs-actions.pod:3822 ../fish/guestfish-actions.pod:2614
11303 msgid ""
11304 "This creates an LVM logical volume called C<logvol> on the volume group "
11305 "C<volgroup>, with C<size> megabytes."
11306 msgstr ""
11307
11308 #. type: =head2
11309 #: ../src/guestfs-actions.pod:3829
11310 msgid "guestfs_lvm_canonical_lv_name"
11311 msgstr ""
11312
11313 #. type: verbatim
11314 #: ../src/guestfs-actions.pod:3831
11315 #, no-wrap
11316 msgid ""
11317 " char *\n"
11318 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
11319 "                                const char *lvname);\n"
11320 "\n"
11321 msgstr ""
11322
11323 #. type: textblock
11324 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2621
11325 msgid ""
11326 "This converts alternative naming schemes for LVs that you might find to the "
11327 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
11328 "C</dev/VG/LV>."
11329 msgstr ""
11330
11331 #. type: textblock
11332 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2625
11333 msgid ""
11334 "This command returns an error if the C<lvname> parameter does not refer to a "
11335 "logical volume."
11336 msgstr ""
11337
11338 #. type: textblock
11339 #: ../src/guestfs-actions.pod:3842
11340 msgid "See also C<guestfs_is_lv>."
11341 msgstr ""
11342
11343 #. type: textblock
11344 #: ../src/guestfs-actions.pod:3847
11345 msgid "(Added in 1.5.24)"
11346 msgstr ""
11347
11348 #. type: =head2
11349 #: ../src/guestfs-actions.pod:3849
11350 msgid "guestfs_lvm_clear_filter"
11351 msgstr ""
11352
11353 #. type: verbatim
11354 #: ../src/guestfs-actions.pod:3851
11355 #, no-wrap
11356 msgid ""
11357 " int\n"
11358 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
11359 "\n"
11360 msgstr ""
11361
11362 #. type: textblock
11363 #: ../src/guestfs-actions.pod:3854
11364 msgid ""
11365 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
11366 "see every block device."
11367 msgstr ""
11368
11369 #. type: textblock
11370 #: ../src/guestfs-actions.pod:3857 ../src/guestfs-actions.pod:3899 ../fish/guestfish-actions.pod:2637 ../fish/guestfish-actions.pod:2668
11371 msgid "This command also clears the LVM cache and performs a volume group scan."
11372 msgstr ""
11373
11374 #. type: =head2
11375 #: ../src/guestfs-actions.pod:3864
11376 msgid "guestfs_lvm_remove_all"
11377 msgstr ""
11378
11379 #. type: verbatim
11380 #: ../src/guestfs-actions.pod:3866
11381 #, no-wrap
11382 msgid ""
11383 " int\n"
11384 " guestfs_lvm_remove_all (guestfs_h *g);\n"
11385 "\n"
11386 msgstr ""
11387
11388 #. type: textblock
11389 #: ../src/guestfs-actions.pod:3869 ../fish/guestfish-actions.pod:2644
11390 msgid ""
11391 "This command removes all LVM logical volumes, volume groups and physical "
11392 "volumes."
11393 msgstr ""
11394
11395 #. type: =head2
11396 #: ../src/guestfs-actions.pod:3879
11397 msgid "guestfs_lvm_set_filter"
11398 msgstr ""
11399
11400 #. type: verbatim
11401 #: ../src/guestfs-actions.pod:3881
11402 #, no-wrap
11403 msgid ""
11404 " int\n"
11405 " guestfs_lvm_set_filter (guestfs_h *g,\n"
11406 "                         char *const *devices);\n"
11407 "\n"
11408 msgstr ""
11409
11410 #. type: textblock
11411 #: ../src/guestfs-actions.pod:3885 ../fish/guestfish-actions.pod:2654
11412 msgid ""
11413 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11414 "block devices in the list C<devices>, and will ignore all other attached "
11415 "block devices."
11416 msgstr ""
11417
11418 #. type: textblock
11419 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:2658
11420 msgid ""
11421 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11422 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11423 "there are two types of duplication possible: either cloned PVs/VGs which "
11424 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11425 "same name.  In normal operation you cannot create this situation, but you "
11426 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11427 "inside the LVM metadata."
11428 msgstr ""
11429
11430 #. type: textblock
11431 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:2671
11432 msgid "You can filter whole block devices or individual partitions."
11433 msgstr ""
11434
11435 #. type: textblock
11436 #: ../src/guestfs-actions.pod:3904 ../fish/guestfish-actions.pod:2673
11437 msgid ""
11438 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11439 "filesystem), even if you are not filtering out that VG."
11440 msgstr ""
11441
11442 #. type: =head2
11443 #: ../src/guestfs-actions.pod:3912
11444 msgid "guestfs_lvremove"
11445 msgstr ""
11446
11447 #. type: verbatim
11448 #: ../src/guestfs-actions.pod:3914
11449 #, no-wrap
11450 msgid ""
11451 " int\n"
11452 " guestfs_lvremove (guestfs_h *g,\n"
11453 "                   const char *device);\n"
11454 "\n"
11455 msgstr ""
11456
11457 #. type: textblock
11458 #: ../src/guestfs-actions.pod:3918 ../fish/guestfish-actions.pod:2681
11459 msgid ""
11460 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11461 "LV, such as C</dev/VG/LV>."
11462 msgstr ""
11463
11464 #. type: textblock
11465 #: ../src/guestfs-actions.pod:3921 ../fish/guestfish-actions.pod:2684
11466 msgid ""
11467 "You can also remove all LVs in a volume group by specifying the VG name, "
11468 "C</dev/VG>."
11469 msgstr ""
11470
11471 #. type: textblock
11472 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:5148 ../src/guestfs-actions.pod:6905
11473 msgid "(Added in 1.0.13)"
11474 msgstr ""
11475
11476 #. type: =head2
11477 #: ../src/guestfs-actions.pod:3928
11478 msgid "guestfs_lvrename"
11479 msgstr ""
11480
11481 #. type: verbatim
11482 #: ../src/guestfs-actions.pod:3930
11483 #, no-wrap
11484 msgid ""
11485 " int\n"
11486 " guestfs_lvrename (guestfs_h *g,\n"
11487 "                   const char *logvol,\n"
11488 "                   const char *newlogvol);\n"
11489 "\n"
11490 msgstr ""
11491
11492 #. type: textblock
11493 #: ../src/guestfs-actions.pod:3935 ../fish/guestfish-actions.pod:2691
11494 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11495 msgstr ""
11496
11497 #. type: textblock
11498 #: ../src/guestfs-actions.pod:3939 ../src/guestfs-actions.pod:6918
11499 msgid "(Added in 1.0.83)"
11500 msgstr ""
11501
11502 #. type: =head2
11503 #: ../src/guestfs-actions.pod:3941
11504 msgid "guestfs_lvresize"
11505 msgstr ""
11506
11507 #. type: verbatim
11508 #: ../src/guestfs-actions.pod:3943
11509 #, no-wrap
11510 msgid ""
11511 " int\n"
11512 " guestfs_lvresize (guestfs_h *g,\n"
11513 "                   const char *device,\n"
11514 "                   int mbytes);\n"
11515 "\n"
11516 msgstr ""
11517
11518 #. type: textblock
11519 #: ../src/guestfs-actions.pod:3948 ../fish/guestfish-actions.pod:2697
11520 msgid ""
11521 "This resizes (expands or shrinks) an existing LVM logical volume to "
11522 "C<mbytes>.  When reducing, data in the reduced part is lost."
11523 msgstr ""
11524
11525 #. type: =head2
11526 #: ../src/guestfs-actions.pod:3956
11527 msgid "guestfs_lvresize_free"
11528 msgstr ""
11529
11530 #. type: verbatim
11531 #: ../src/guestfs-actions.pod:3958
11532 #, no-wrap
11533 msgid ""
11534 " int\n"
11535 " guestfs_lvresize_free (guestfs_h *g,\n"
11536 "                        const char *lv,\n"
11537 "                        int percent);\n"
11538 "\n"
11539 msgstr ""
11540
11541 #. type: textblock
11542 #: ../src/guestfs-actions.pod:3963 ../fish/guestfish-actions.pod:2705
11543 msgid ""
11544 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11545 "remaining free space in the volume group.  Commonly you would call this with "
11546 "pc = 100 which expands the logical volume as much as possible, using all "
11547 "remaining free space in the volume group."
11548 msgstr ""
11549
11550 #. type: textblock
11551 #: ../src/guestfs-actions.pod:3971
11552 msgid "(Added in 1.3.3)"
11553 msgstr ""
11554
11555 #. type: =head2
11556 #: ../src/guestfs-actions.pod:3973
11557 msgid "guestfs_lvs"
11558 msgstr ""
11559
11560 #. type: verbatim
11561 #: ../src/guestfs-actions.pod:3975
11562 #, no-wrap
11563 msgid ""
11564 " char **\n"
11565 " guestfs_lvs (guestfs_h *g);\n"
11566 "\n"
11567 msgstr ""
11568
11569 #. type: textblock
11570 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:2715
11571 msgid ""
11572 "List all the logical volumes detected.  This is the equivalent of the "
11573 "L<lvs(8)> command."
11574 msgstr ""
11575
11576 #. type: textblock
11577 #: ../src/guestfs-actions.pod:3981 ../fish/guestfish-actions.pod:2718
11578 msgid ""
11579 "This returns a list of the logical volume device names "
11580 "(eg. C</dev/VolGroup00/LogVol00>)."
11581 msgstr ""
11582
11583 #. type: textblock
11584 #: ../src/guestfs-actions.pod:3984
11585 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
11586 msgstr ""
11587
11588 #. type: =head2
11589 #: ../src/guestfs-actions.pod:3992
11590 msgid "guestfs_lvs_full"
11591 msgstr ""
11592
11593 #. type: verbatim
11594 #: ../src/guestfs-actions.pod:3994
11595 #, no-wrap
11596 msgid ""
11597 " struct guestfs_lvm_lv_list *\n"
11598 " guestfs_lvs_full (guestfs_h *g);\n"
11599 "\n"
11600 msgstr ""
11601
11602 #. type: textblock
11603 #: ../src/guestfs-actions.pod:3997 ../fish/guestfish-actions.pod:2727
11604 msgid ""
11605 "List all the logical volumes detected.  This is the equivalent of the "
11606 "L<lvs(8)> command.  The \"full\" version includes all fields."
11607 msgstr ""
11608
11609 #. type: textblock
11610 #: ../src/guestfs-actions.pod:4000
11611 msgid ""
11612 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
11613 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
11614 "use>."
11615 msgstr ""
11616
11617 #. type: =head2
11618 #: ../src/guestfs-actions.pod:4006
11619 msgid "guestfs_lvuuid"
11620 msgstr ""
11621
11622 #. type: verbatim
11623 #: ../src/guestfs-actions.pod:4008
11624 #, no-wrap
11625 msgid ""
11626 " char *\n"
11627 " guestfs_lvuuid (guestfs_h *g,\n"
11628 "                 const char *device);\n"
11629 "\n"
11630 msgstr ""
11631
11632 #. type: textblock
11633 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:2734
11634 msgid "This command returns the UUID of the LVM LV C<device>."
11635 msgstr ""
11636
11637 #. type: =head2
11638 #: ../src/guestfs-actions.pod:4019
11639 msgid "guestfs_lxattrlist"
11640 msgstr ""
11641
11642 #. type: verbatim
11643 #: ../src/guestfs-actions.pod:4021
11644 #, no-wrap
11645 msgid ""
11646 " struct guestfs_xattr_list *\n"
11647 " guestfs_lxattrlist (guestfs_h *g,\n"
11648 "                     const char *path,\n"
11649 "                     char *const *names);\n"
11650 "\n"
11651 msgstr ""
11652
11653 #. type: textblock
11654 #: ../src/guestfs-actions.pod:4026 ../fish/guestfish-actions.pod:2740
11655 msgid ""
11656 "This call allows you to get the extended attributes of multiple files, where "
11657 "all files are in the directory C<path>.  C<names> is the list of files from "
11658 "this directory."
11659 msgstr ""
11660
11661 #. type: textblock
11662 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2744
11663 msgid ""
11664 "On return you get a flat list of xattr structs which must be interpreted "
11665 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11666 "C<attrval> in this struct is zero-length to indicate there was an error "
11667 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11668 "number (the number of following attributes for this file, which could be "
11669 "C<\"0\">).  Then after the first xattr struct are the zero or more "
11670 "attributes for the first named file.  This repeats for the second and "
11671 "subsequent files."
11672 msgstr ""
11673
11674 #. type: textblock
11675 #: ../src/guestfs-actions.pod:4040
11676 msgid ""
11677 "This call is intended for programs that want to efficiently list a directory "
11678 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11679 "a similarly efficient call for getting standard stats.  Very long directory "
11680 "listings might cause the protocol message size to be exceeded, causing this "
11681 "call to fail.  The caller must split up such requests into smaller groups of "
11682 "names."
11683 msgstr ""
11684
11685 #. type: =head2
11686 #: ../src/guestfs-actions.pod:4054
11687 msgid "guestfs_mkdir"
11688 msgstr ""
11689
11690 #. type: verbatim
11691 #: ../src/guestfs-actions.pod:4056
11692 #, no-wrap
11693 msgid ""
11694 " int\n"
11695 " guestfs_mkdir (guestfs_h *g,\n"
11696 "                const char *path);\n"
11697 "\n"
11698 msgstr ""
11699
11700 #. type: textblock
11701 #: ../src/guestfs-actions.pod:4060 ../fish/guestfish-actions.pod:2766
11702 msgid "Create a directory named C<path>."
11703 msgstr ""
11704
11705 #. type: =head2
11706 #: ../src/guestfs-actions.pod:4066
11707 msgid "guestfs_mkdir_mode"
11708 msgstr ""
11709
11710 #. type: verbatim
11711 #: ../src/guestfs-actions.pod:4068
11712 #, no-wrap
11713 msgid ""
11714 " int\n"
11715 " guestfs_mkdir_mode (guestfs_h *g,\n"
11716 "                     const char *path,\n"
11717 "                     int mode);\n"
11718 "\n"
11719 msgstr ""
11720
11721 #. type: textblock
11722 #: ../src/guestfs-actions.pod:4073 ../fish/guestfish-actions.pod:2772
11723 msgid ""
11724 "This command creates a directory, setting the initial permissions of the "
11725 "directory to C<mode>."
11726 msgstr ""
11727
11728 #. type: textblock
11729 #: ../src/guestfs-actions.pod:4076 ../fish/guestfish-actions.pod:2775
11730 msgid ""
11731 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11732 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11733 "other ways."
11734 msgstr ""
11735
11736 #. type: textblock
11737 #: ../src/guestfs-actions.pod:4080
11738 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11739 msgstr ""
11740
11741 #. type: =head2
11742 #: ../src/guestfs-actions.pod:4086
11743 msgid "guestfs_mkdir_p"
11744 msgstr ""
11745
11746 #. type: verbatim
11747 #: ../src/guestfs-actions.pod:4088
11748 #, no-wrap
11749 msgid ""
11750 " int\n"
11751 " guestfs_mkdir_p (guestfs_h *g,\n"
11752 "                  const char *path);\n"
11753 "\n"
11754 msgstr ""
11755
11756 #. type: textblock
11757 #: ../src/guestfs-actions.pod:4092 ../fish/guestfish-actions.pod:2785
11758 msgid ""
11759 "Create a directory named C<path>, creating any parent directories as "
11760 "necessary.  This is like the C<mkdir -p> shell command."
11761 msgstr ""
11762
11763 #. type: =head2
11764 #: ../src/guestfs-actions.pod:4099
11765 msgid "guestfs_mkdtemp"
11766 msgstr ""
11767
11768 #. type: verbatim
11769 #: ../src/guestfs-actions.pod:4101
11770 #, no-wrap
11771 msgid ""
11772 " char *\n"
11773 " guestfs_mkdtemp (guestfs_h *g,\n"
11774 "                  const char *template);\n"
11775 "\n"
11776 msgstr ""
11777
11778 #. type: textblock
11779 #: ../src/guestfs-actions.pod:4105 ../fish/guestfish-actions.pod:2792
11780 msgid ""
11781 "This command creates a temporary directory.  The C<template> parameter "
11782 "should be a full pathname for the temporary directory name with the final "
11783 "six characters being \"XXXXXX\"."
11784 msgstr ""
11785
11786 #. type: textblock
11787 #: ../src/guestfs-actions.pod:4110 ../fish/guestfish-actions.pod:2797
11788 msgid ""
11789 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11790 "being suitable for Windows filesystems."
11791 msgstr ""
11792
11793 #. type: textblock
11794 #: ../src/guestfs-actions.pod:4113 ../fish/guestfish-actions.pod:2800
11795 msgid "The name of the temporary directory that was created is returned."
11796 msgstr ""
11797
11798 #. type: textblock
11799 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2803
11800 msgid "The temporary directory is created with mode 0700 and is owned by root."
11801 msgstr ""
11802
11803 #. type: textblock
11804 #: ../src/guestfs-actions.pod:4119 ../fish/guestfish-actions.pod:2806
11805 msgid ""
11806 "The caller is responsible for deleting the temporary directory and its "
11807 "contents after use."
11808 msgstr ""
11809
11810 #. type: textblock
11811 #: ../src/guestfs-actions.pod:4122 ../fish/guestfish-actions.pod:2809
11812 msgid "See also: L<mkdtemp(3)>"
11813 msgstr ""
11814
11815 #. type: =head2
11816 #: ../src/guestfs-actions.pod:4129
11817 msgid "guestfs_mke2fs_J"
11818 msgstr ""
11819
11820 #. type: verbatim
11821 #: ../src/guestfs-actions.pod:4131
11822 #, no-wrap
11823 msgid ""
11824 " int\n"
11825 " guestfs_mke2fs_J (guestfs_h *g,\n"
11826 "                   const char *fstype,\n"
11827 "                   int blocksize,\n"
11828 "                   const char *device,\n"
11829 "                   const char *journal);\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:2815
11835 msgid ""
11836 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11837 "C<journal>.  It is equivalent to the command:"
11838 msgstr ""
11839
11840 #. type: verbatim
11841 #: ../src/guestfs-actions.pod:4142 ../fish/guestfish-actions.pod:2819
11842 #, no-wrap
11843 msgid ""
11844 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11845 "\n"
11846 msgstr ""
11847
11848 #. type: textblock
11849 #: ../src/guestfs-actions.pod:4144
11850 msgid "See also C<guestfs_mke2journal>."
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4214 ../src/guestfs-actions.pod:4228 ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4538
11855 msgid "(Added in 1.0.68)"
11856 msgstr ""
11857
11858 #. type: =head2
11859 #: ../src/guestfs-actions.pod:4150
11860 msgid "guestfs_mke2fs_JL"
11861 msgstr ""
11862
11863 #. type: verbatim
11864 #: ../src/guestfs-actions.pod:4152
11865 #, no-wrap
11866 msgid ""
11867 " int\n"
11868 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11869 "                    const char *fstype,\n"
11870 "                    int blocksize,\n"
11871 "                    const char *device,\n"
11872 "                    const char *label);\n"
11873 "\n"
11874 msgstr ""
11875
11876 #. type: textblock
11877 #: ../src/guestfs-actions.pod:4159 ../fish/guestfish-actions.pod:2827
11878 msgid ""
11879 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11880 "the journal labeled C<label>."
11881 msgstr ""
11882
11883 #. type: textblock
11884 #: ../src/guestfs-actions.pod:4162
11885 msgid "See also C<guestfs_mke2journal_L>."
11886 msgstr ""
11887
11888 #. type: =head2
11889 #: ../src/guestfs-actions.pod:4168
11890 msgid "guestfs_mke2fs_JU"
11891 msgstr ""
11892
11893 #. type: verbatim
11894 #: ../src/guestfs-actions.pod:4170
11895 #, no-wrap
11896 msgid ""
11897 " int\n"
11898 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11899 "                    const char *fstype,\n"
11900 "                    int blocksize,\n"
11901 "                    const char *device,\n"
11902 "                    const char *uuid);\n"
11903 "\n"
11904 msgstr ""
11905
11906 #. type: textblock
11907 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2836
11908 msgid ""
11909 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11910 "the journal with UUID C<uuid>."
11911 msgstr ""
11912
11913 #. type: textblock
11914 #: ../src/guestfs-actions.pod:4180
11915 msgid "See also C<guestfs_mke2journal_U>."
11916 msgstr ""
11917
11918 #. type: =head2
11919 #: ../src/guestfs-actions.pod:4186
11920 msgid "guestfs_mke2journal"
11921 msgstr ""
11922
11923 #. type: verbatim
11924 #: ../src/guestfs-actions.pod:4188
11925 #, no-wrap
11926 msgid ""
11927 " int\n"
11928 " guestfs_mke2journal (guestfs_h *g,\n"
11929 "                      int blocksize,\n"
11930 "                      const char *device);\n"
11931 "\n"
11932 msgstr ""
11933
11934 #. type: textblock
11935 #: ../src/guestfs-actions.pod:4193 ../fish/guestfish-actions.pod:2845
11936 msgid ""
11937 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11938 "command:"
11939 msgstr ""
11940
11941 #. type: verbatim
11942 #: ../src/guestfs-actions.pod:4196 ../fish/guestfish-actions.pod:2848
11943 #, no-wrap
11944 msgid ""
11945 " mke2fs -O journal_dev -b blocksize device\n"
11946 "\n"
11947 msgstr ""
11948
11949 #. type: =head2
11950 #: ../src/guestfs-actions.pod:4202
11951 msgid "guestfs_mke2journal_L"
11952 msgstr ""
11953
11954 #. type: verbatim
11955 #: ../src/guestfs-actions.pod:4204
11956 #, no-wrap
11957 msgid ""
11958 " int\n"
11959 " guestfs_mke2journal_L (guestfs_h *g,\n"
11960 "                        int blocksize,\n"
11961 "                        const char *label,\n"
11962 "                        const char *device);\n"
11963 "\n"
11964 msgstr ""
11965
11966 #. type: textblock
11967 #: ../src/guestfs-actions.pod:4210 ../fish/guestfish-actions.pod:2854
11968 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11969 msgstr ""
11970
11971 #. type: =head2
11972 #: ../src/guestfs-actions.pod:4216
11973 msgid "guestfs_mke2journal_U"
11974 msgstr ""
11975
11976 #. type: verbatim
11977 #: ../src/guestfs-actions.pod:4218
11978 #, no-wrap
11979 msgid ""
11980 " int\n"
11981 " guestfs_mke2journal_U (guestfs_h *g,\n"
11982 "                        int blocksize,\n"
11983 "                        const char *uuid,\n"
11984 "                        const char *device);\n"
11985 "\n"
11986 msgstr ""
11987
11988 #. type: textblock
11989 #: ../src/guestfs-actions.pod:4224 ../fish/guestfish-actions.pod:2860
11990 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11991 msgstr ""
11992
11993 #. type: =head2
11994 #: ../src/guestfs-actions.pod:4230
11995 msgid "guestfs_mkfifo"
11996 msgstr ""
11997
11998 #. type: verbatim
11999 #: ../src/guestfs-actions.pod:4232
12000 #, no-wrap
12001 msgid ""
12002 " int\n"
12003 " guestfs_mkfifo (guestfs_h *g,\n"
12004 "                 int mode,\n"
12005 "                 const char *path);\n"
12006 "\n"
12007 msgstr ""
12008
12009 #. type: textblock
12010 #: ../src/guestfs-actions.pod:4237
12011 msgid ""
12012 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12013 "is just a convenient wrapper around C<guestfs_mknod>."
12014 msgstr ""
12015
12016 #. type: =head2
12017 #: ../src/guestfs-actions.pod:4247
12018 msgid "guestfs_mkfs"
12019 msgstr ""
12020
12021 #. type: verbatim
12022 #: ../src/guestfs-actions.pod:4249
12023 #, no-wrap
12024 msgid ""
12025 " int\n"
12026 " guestfs_mkfs (guestfs_h *g,\n"
12027 "               const char *fstype,\n"
12028 "               const char *device);\n"
12029 "\n"
12030 msgstr ""
12031
12032 #. type: textblock
12033 #: ../src/guestfs-actions.pod:4254 ../fish/guestfish-actions.pod:2876
12034 msgid ""
12035 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12036 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12037 msgstr ""
12038
12039 #. type: =head2
12040 #: ../src/guestfs-actions.pod:4262
12041 msgid "guestfs_mkfs_b"
12042 msgstr ""
12043
12044 #. type: verbatim
12045 #: ../src/guestfs-actions.pod:4264
12046 #, no-wrap
12047 msgid ""
12048 " int\n"
12049 " guestfs_mkfs_b (guestfs_h *g,\n"
12050 "                 const char *fstype,\n"
12051 "                 int blocksize,\n"
12052 "                 const char *device);\n"
12053 "\n"
12054 msgstr ""
12055
12056 #. type: textblock
12057 #: ../src/guestfs-actions.pod:4270
12058 msgid ""
12059 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
12060 "block size of the resulting filesystem.  Supported block sizes depend on the "
12061 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../src/guestfs-actions.pod:4275 ../src/guestfs-actions.pod:4317 ../fish/guestfish-actions.pod:2889 ../fish/guestfish-actions.pod:2916
12066 msgid ""
12067 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12068 "cluster size."
12069 msgstr ""
12070
12071 #. type: textblock
12072 #: ../src/guestfs-actions.pod:4280 ../fish/guestfish-actions.pod:2892
12073 msgid ""
12074 "This function is deprecated.  In new code, use the C<mkfs_opts> call "
12075 "instead."
12076 msgstr ""
12077
12078 #. type: =head2
12079 #: ../src/guestfs-actions.pod:4289
12080 msgid "guestfs_mkfs_opts"
12081 msgstr ""
12082
12083 #. type: verbatim
12084 #: ../src/guestfs-actions.pod:4291
12085 #, no-wrap
12086 msgid ""
12087 " int\n"
12088 " guestfs_mkfs_opts (guestfs_h *g,\n"
12089 "                    const char *fstype,\n"
12090 "                    const char *device,\n"
12091 "                    ...);\n"
12092 "\n"
12093 msgstr ""
12094
12095 #. type: verbatim
12096 #: ../src/guestfs-actions.pod:4302
12097 #, no-wrap
12098 msgid ""
12099 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
12100 "\n"
12101 msgstr ""
12102
12103 #. type: textblock
12104 #: ../src/guestfs-actions.pod:4304 ../fish/guestfish-actions.pod:2903
12105 msgid ""
12106 "This function creates a filesystem on C<device>.  The filesystem type is "
12107 "C<fstype>, for example C<ext3>."
12108 msgstr ""
12109
12110 #. type: =item
12111 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2910
12112 msgid "C<blocksize>"
12113 msgstr ""
12114
12115 #. type: textblock
12116 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2912
12117 msgid ""
12118 "The filesystem block size.  Supported block sizes depend on the filesystem "
12119 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12120 "filesystems."
12121 msgstr ""
12122
12123 #. type: textblock
12124 #: ../src/guestfs-actions.pod:4324
12125 msgid "(Added in 1.7.19)"
12126 msgstr ""
12127
12128 #. type: =head2
12129 #: ../src/guestfs-actions.pod:4326
12130 msgid "guestfs_mkfs_opts_va"
12131 msgstr ""
12132
12133 #. type: verbatim
12134 #: ../src/guestfs-actions.pod:4328
12135 #, no-wrap
12136 msgid ""
12137 " int\n"
12138 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
12139 "                       const char *fstype,\n"
12140 "                       const char *device,\n"
12141 "                       va_list args);\n"
12142 "\n"
12143 msgstr ""
12144
12145 #. type: textblock
12146 #: ../src/guestfs-actions.pod:4334
12147 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
12148 msgstr ""
12149
12150 #. type: =head2
12151 #: ../src/guestfs-actions.pod:4338
12152 msgid "guestfs_mkfs_opts_argv"
12153 msgstr ""
12154
12155 #. type: verbatim
12156 #: ../src/guestfs-actions.pod:4340
12157 #, no-wrap
12158 msgid ""
12159 " int\n"
12160 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
12161 "                         const char *fstype,\n"
12162 "                         const char *device,\n"
12163 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
12164 "\n"
12165 msgstr ""
12166
12167 #. type: textblock
12168 #: ../src/guestfs-actions.pod:4346
12169 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
12170 msgstr ""
12171
12172 #. type: =head2
12173 #: ../src/guestfs-actions.pod:4350
12174 msgid "guestfs_mkmountpoint"
12175 msgstr ""
12176
12177 #. type: verbatim
12178 #: ../src/guestfs-actions.pod:4352
12179 #, no-wrap
12180 msgid ""
12181 " int\n"
12182 " guestfs_mkmountpoint (guestfs_h *g,\n"
12183 "                       const char *exemptpath);\n"
12184 "\n"
12185 msgstr ""
12186
12187 #. type: textblock
12188 #: ../src/guestfs-actions.pod:4356
12189 msgid ""
12190 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
12191 "that can be used to create extra mountpoints before mounting the first "
12192 "filesystem."
12193 msgstr ""
12194
12195 #. type: textblock
12196 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2931
12197 msgid ""
12198 "These calls are I<only> necessary in some very limited circumstances, mainly "
12199 "the case where you want to mount a mix of unrelated and/or read-only "
12200 "filesystems together."
12201 msgstr ""
12202
12203 #. type: textblock
12204 #: ../src/guestfs-actions.pod:4364 ../fish/guestfish-actions.pod:2935
12205 msgid ""
12206 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12207 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12208 "inside that.  You can unpack this as follows in guestfish:"
12209 msgstr ""
12210
12211 #. type: verbatim
12212 #: ../src/guestfs-actions.pod:4369 ../fish/guestfish-actions.pod:2940
12213 #, no-wrap
12214 msgid ""
12215 " add-ro Fedora-11-i686-Live.iso\n"
12216 " run\n"
12217 " mkmountpoint /cd\n"
12218 " mkmountpoint /sqsh\n"
12219 " mkmountpoint /ext3fs\n"
12220 " mount /dev/sda /cd\n"
12221 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12222 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12223 "\n"
12224 msgstr ""
12225
12226 #. type: textblock
12227 #: ../src/guestfs-actions.pod:4378 ../fish/guestfish-actions.pod:2949
12228 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12229 msgstr ""
12230
12231 #. type: textblock
12232 #: ../src/guestfs-actions.pod:4380
12233 msgid ""
12234 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
12235 "may get unexpected errors if you try to mix these calls.  It is safest to "
12236 "manually unmount filesystems and remove mountpoints after use."
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../src/guestfs-actions.pod:4384
12241 msgid ""
12242 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
12243 "first, so for this to work for manual mountpoints, you must ensure that the "
12244 "innermost mountpoints have the longest pathnames, as in the example code "
12245 "above."
12246 msgstr ""
12247
12248 #. type: textblock
12249 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:2960
12250 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12251 msgstr ""
12252
12253 #. type: textblock
12254 #: ../src/guestfs-actions.pod:4391
12255 msgid ""
12256 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
12257 "means that C<guestfs_umount_all> is called when the handle is closed which "
12258 "can also trigger these issues."
12259 msgstr ""
12260
12261 #. type: textblock
12262 #: ../src/guestfs-actions.pod:4397 ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:5566
12263 msgid "(Added in 1.0.62)"
12264 msgstr ""
12265
12266 #. type: =head2
12267 #: ../src/guestfs-actions.pod:4399
12268 msgid "guestfs_mknod"
12269 msgstr ""
12270
12271 #. type: verbatim
12272 #: ../src/guestfs-actions.pod:4401
12273 #, no-wrap
12274 msgid ""
12275 " int\n"
12276 " guestfs_mknod (guestfs_h *g,\n"
12277 "                int mode,\n"
12278 "                int devmajor,\n"
12279 "                int devminor,\n"
12280 "                const char *path);\n"
12281 "\n"
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../src/guestfs-actions.pod:4408 ../fish/guestfish-actions.pod:2970
12286 msgid ""
12287 "This call creates block or character special devices, or named pipes "
12288 "(FIFOs)."
12289 msgstr ""
12290
12291 #. type: textblock
12292 #: ../src/guestfs-actions.pod:4411 ../fish/guestfish-actions.pod:2973
12293 msgid ""
12294 "The C<mode> parameter should be the mode, using the standard constants.  "
12295 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12296 "used when creating block and character special devices."
12297 msgstr ""
12298
12299 #. type: textblock
12300 #: ../src/guestfs-actions.pod:4416
12301 msgid ""
12302 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12303 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12304 "regular file).  These constants are available in the standard Linux header "
12305 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
12306 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
12307 "the appropriate constant for you."
12308 msgstr ""
12309
12310 #. type: =head2
12311 #: ../src/guestfs-actions.pod:4430
12312 msgid "guestfs_mknod_b"
12313 msgstr ""
12314
12315 #. type: verbatim
12316 #: ../src/guestfs-actions.pod:4432
12317 #, no-wrap
12318 msgid ""
12319 " int\n"
12320 " guestfs_mknod_b (guestfs_h *g,\n"
12321 "                  int mode,\n"
12322 "                  int devmajor,\n"
12323 "                  int devminor,\n"
12324 "                  const char *path);\n"
12325 "\n"
12326 msgstr ""
12327
12328 #. type: textblock
12329 #: ../src/guestfs-actions.pod:4439
12330 msgid ""
12331 "This call creates a block device node called C<path> with mode C<mode> and "
12332 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12333 "wrapper around C<guestfs_mknod>."
12334 msgstr ""
12335
12336 #. type: =head2
12337 #: ../src/guestfs-actions.pod:4449
12338 msgid "guestfs_mknod_c"
12339 msgstr ""
12340
12341 #. type: verbatim
12342 #: ../src/guestfs-actions.pod:4451
12343 #, no-wrap
12344 msgid ""
12345 " int\n"
12346 " guestfs_mknod_c (guestfs_h *g,\n"
12347 "                  int mode,\n"
12348 "                  int devmajor,\n"
12349 "                  int devminor,\n"
12350 "                  const char *path);\n"
12351 "\n"
12352 msgstr ""
12353
12354 #. type: textblock
12355 #: ../src/guestfs-actions.pod:4458
12356 msgid ""
12357 "This call creates a char device node called C<path> with mode C<mode> and "
12358 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12359 "wrapper around C<guestfs_mknod>."
12360 msgstr ""
12361
12362 #. type: =head2
12363 #: ../src/guestfs-actions.pod:4468
12364 msgid "guestfs_mkswap"
12365 msgstr ""
12366
12367 #. type: verbatim
12368 #: ../src/guestfs-actions.pod:4470
12369 #, no-wrap
12370 msgid ""
12371 " int\n"
12372 " guestfs_mkswap (guestfs_h *g,\n"
12373 "                 const char *device);\n"
12374 "\n"
12375 msgstr ""
12376
12377 #. type: textblock
12378 #: ../src/guestfs-actions.pod:4474 ../fish/guestfish-actions.pod:3012
12379 msgid "Create a swap partition on C<device>."
12380 msgstr ""
12381
12382 #. type: =head2
12383 #: ../src/guestfs-actions.pod:4480
12384 msgid "guestfs_mkswap_L"
12385 msgstr ""
12386
12387 #. type: verbatim
12388 #: ../src/guestfs-actions.pod:4482
12389 #, no-wrap
12390 msgid ""
12391 " int\n"
12392 " guestfs_mkswap_L (guestfs_h *g,\n"
12393 "                   const char *label,\n"
12394 "                   const char *device);\n"
12395 "\n"
12396 msgstr ""
12397
12398 #. type: textblock
12399 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:3018
12400 msgid "Create a swap partition on C<device> with label C<label>."
12401 msgstr ""
12402
12403 #. type: textblock
12404 #: ../src/guestfs-actions.pod:4489 ../fish/guestfish-actions.pod:3020
12405 msgid ""
12406 "Note that you cannot attach a swap label to a block device "
12407 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
12408 "the kernel or swap tools."
12409 msgstr ""
12410
12411 #. type: =head2
12412 #: ../src/guestfs-actions.pod:4497
12413 msgid "guestfs_mkswap_U"
12414 msgstr ""
12415
12416 #. type: verbatim
12417 #: ../src/guestfs-actions.pod:4499
12418 #, no-wrap
12419 msgid ""
12420 " int\n"
12421 " guestfs_mkswap_U (guestfs_h *g,\n"
12422 "                   const char *uuid,\n"
12423 "                   const char *device);\n"
12424 "\n"
12425 msgstr ""
12426
12427 #. type: textblock
12428 #: ../src/guestfs-actions.pod:4504 ../fish/guestfish-actions.pod:3028
12429 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12430 msgstr ""
12431
12432 #. type: =head2
12433 #: ../src/guestfs-actions.pod:4510
12434 msgid "guestfs_mkswap_file"
12435 msgstr ""
12436
12437 #. type: verbatim
12438 #: ../src/guestfs-actions.pod:4512
12439 #, no-wrap
12440 msgid ""
12441 " int\n"
12442 " guestfs_mkswap_file (guestfs_h *g,\n"
12443 "                      const char *path);\n"
12444 "\n"
12445 msgstr ""
12446
12447 #. type: textblock
12448 #: ../src/guestfs-actions.pod:4516 ../fish/guestfish-actions.pod:3034
12449 msgid "Create a swap file."
12450 msgstr ""
12451
12452 #. type: textblock
12453 #: ../src/guestfs-actions.pod:4518
12454 msgid ""
12455 "This command just writes a swap file signature to an existing file.  To "
12456 "create the file itself, use something like C<guestfs_fallocate>."
12457 msgstr ""
12458
12459 #. type: =head2
12460 #: ../src/guestfs-actions.pod:4525
12461 msgid "guestfs_modprobe"
12462 msgstr ""
12463
12464 #. type: verbatim
12465 #: ../src/guestfs-actions.pod:4527
12466 #, no-wrap
12467 msgid ""
12468 " int\n"
12469 " guestfs_modprobe (guestfs_h *g,\n"
12470 "                   const char *modulename);\n"
12471 "\n"
12472 msgstr ""
12473
12474 #. type: textblock
12475 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3043
12476 msgid "This loads a kernel module in the appliance."
12477 msgstr ""
12478
12479 #. type: textblock
12480 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3045
12481 msgid ""
12482 "The kernel module must have been whitelisted when libguestfs was built (see "
12483 "C<appliance/kmod.whitelist.in> in the source)."
12484 msgstr ""
12485
12486 #. type: =head2
12487 #: ../src/guestfs-actions.pod:4540
12488 msgid "guestfs_mount"
12489 msgstr ""
12490
12491 #. type: verbatim
12492 #: ../src/guestfs-actions.pod:4542
12493 #, no-wrap
12494 msgid ""
12495 " int\n"
12496 " guestfs_mount (guestfs_h *g,\n"
12497 "                const char *device,\n"
12498 "                const char *mountpoint);\n"
12499 "\n"
12500 msgstr ""
12501
12502 #. type: textblock
12503 #: ../src/guestfs-actions.pod:4547 ../fish/guestfish-actions.pod:3052
12504 msgid ""
12505 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12506 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12507 "those block devices contain partitions, they will have the usual names "
12508 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12509 msgstr ""
12510
12511 #. type: textblock
12512 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3058
12513 msgid ""
12514 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12515 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12516 "mounted on directories which already exist."
12517 msgstr ""
12518
12519 #. type: textblock
12520 #: ../src/guestfs-actions.pod:4558 ../fish/guestfish-actions.pod:3063
12521 msgid ""
12522 "The mounted filesystem is writable, if we have sufficient permissions on the "
12523 "underlying device."
12524 msgstr ""
12525
12526 #. type: textblock
12527 #: ../src/guestfs-actions.pod:4561
12528 msgid ""
12529 "B<Important note:> When you use this call, the filesystem options C<sync> "
12530 "and C<noatime> are set implicitly.  This was originally done because we "
12531 "thought it would improve reliability, but it turns out that I<-o sync> has a "
12532 "very large negative performance impact and negligible effect on "
12533 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
12534 "in any code that needs performance, and instead use C<guestfs_mount_options> "
12535 "(use an empty string for the first parameter if you don't want any options)."
12536 msgstr ""
12537
12538 #. type: =head2
12539 #: ../src/guestfs-actions.pod:4575
12540 msgid "guestfs_mount_loop"
12541 msgstr ""
12542
12543 #. type: verbatim
12544 #: ../src/guestfs-actions.pod:4577
12545 #, no-wrap
12546 msgid ""
12547 " int\n"
12548 " guestfs_mount_loop (guestfs_h *g,\n"
12549 "                     const char *file,\n"
12550 "                     const char *mountpoint);\n"
12551 "\n"
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../src/guestfs-actions.pod:4582 ../fish/guestfish-actions.pod:3080
12556 msgid ""
12557 "This command lets you mount C<file> (a filesystem image in a file) on a "
12558 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12559 "mountpoint>."
12560 msgstr ""
12561
12562 #. type: =head2
12563 #: ../src/guestfs-actions.pod:4590
12564 msgid "guestfs_mount_options"
12565 msgstr ""
12566
12567 #. type: verbatim
12568 #: ../src/guestfs-actions.pod:4592
12569 #, no-wrap
12570 msgid ""
12571 " int\n"
12572 " guestfs_mount_options (guestfs_h *g,\n"
12573 "                        const char *options,\n"
12574 "                        const char *device,\n"
12575 "                        const char *mountpoint);\n"
12576 "\n"
12577 msgstr ""
12578
12579 #. type: textblock
12580 #: ../src/guestfs-actions.pod:4598
12581 msgid ""
12582 "This is the same as the C<guestfs_mount> command, but it allows you to set "
12583 "the mount options as for the L<mount(8)> I<-o> flag."
12584 msgstr ""
12585
12586 #. type: textblock
12587 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3092
12588 msgid ""
12589 "If the C<options> parameter is an empty string, then no options are passed "
12590 "(all options default to whatever the filesystem uses)."
12591 msgstr ""
12592
12593 #. type: textblock
12594 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:4639
12595 msgid "(Added in 1.0.10)"
12596 msgstr ""
12597
12598 #. type: =head2
12599 #: ../src/guestfs-actions.pod:4610
12600 msgid "guestfs_mount_ro"
12601 msgstr ""
12602
12603 #. type: verbatim
12604 #: ../src/guestfs-actions.pod:4612
12605 #, no-wrap
12606 msgid ""
12607 " int\n"
12608 " guestfs_mount_ro (guestfs_h *g,\n"
12609 "                   const char *device,\n"
12610 "                   const char *mountpoint);\n"
12611 "\n"
12612 msgstr ""
12613
12614 #. type: textblock
12615 #: ../src/guestfs-actions.pod:4617
12616 msgid ""
12617 "This is the same as the C<guestfs_mount> command, but it mounts the "
12618 "filesystem with the read-only (I<-o ro>) flag."
12619 msgstr ""
12620
12621 #. type: =head2
12622 #: ../src/guestfs-actions.pod:4624
12623 msgid "guestfs_mount_vfs"
12624 msgstr ""
12625
12626 #. type: verbatim
12627 #: ../src/guestfs-actions.pod:4626
12628 #, no-wrap
12629 msgid ""
12630 " int\n"
12631 " guestfs_mount_vfs (guestfs_h *g,\n"
12632 "                    const char *options,\n"
12633 "                    const char *vfstype,\n"
12634 "                    const char *device,\n"
12635 "                    const char *mountpoint);\n"
12636 "\n"
12637 msgstr ""
12638
12639 #. type: textblock
12640 #: ../src/guestfs-actions.pod:4633
12641 msgid ""
12642 "This is the same as the C<guestfs_mount> command, but it allows you to set "
12643 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
12644 "I<-t> flags."
12645 msgstr ""
12646
12647 #. type: =head2
12648 #: ../src/guestfs-actions.pod:4641
12649 msgid "guestfs_mountpoints"
12650 msgstr ""
12651
12652 #. type: verbatim
12653 #: ../src/guestfs-actions.pod:4643
12654 #, no-wrap
12655 msgid ""
12656 " char **\n"
12657 " guestfs_mountpoints (guestfs_h *g);\n"
12658 "\n"
12659 msgstr ""
12660
12661 #. type: textblock
12662 #: ../src/guestfs-actions.pod:4646
12663 msgid ""
12664 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
12665 "devices.  This one returns a hash table (map) of device name to directory "
12666 "where the device is mounted."
12667 msgstr ""
12668
12669 #. type: =head2
12670 #: ../src/guestfs-actions.pod:4658
12671 msgid "guestfs_mounts"
12672 msgstr ""
12673
12674 #. type: verbatim
12675 #: ../src/guestfs-actions.pod:4660
12676 #, no-wrap
12677 msgid ""
12678 " char **\n"
12679 " guestfs_mounts (guestfs_h *g);\n"
12680 "\n"
12681 msgstr ""
12682
12683 #. type: textblock
12684 #: ../src/guestfs-actions.pod:4663 ../fish/guestfish-actions.pod:3123
12685 msgid ""
12686 "This returns the list of currently mounted filesystems.  It returns the list "
12687 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12688 msgstr ""
12689
12690 #. type: textblock
12691 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3126
12692 msgid "Some internal mounts are not shown."
12693 msgstr ""
12694
12695 #. type: textblock
12696 #: ../src/guestfs-actions.pod:4668
12697 msgid "See also: C<guestfs_mountpoints>"
12698 msgstr ""
12699
12700 #. type: =head2
12701 #: ../src/guestfs-actions.pod:4676
12702 msgid "guestfs_mv"
12703 msgstr ""
12704
12705 #. type: verbatim
12706 #: ../src/guestfs-actions.pod:4678
12707 #, no-wrap
12708 msgid ""
12709 " int\n"
12710 " guestfs_mv (guestfs_h *g,\n"
12711 "             const char *src,\n"
12712 "             const char *dest);\n"
12713 "\n"
12714 msgstr ""
12715
12716 #. type: textblock
12717 #: ../src/guestfs-actions.pod:4683 ../fish/guestfish-actions.pod:3134
12718 msgid ""
12719 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12720 "destination filename or destination directory."
12721 msgstr ""
12722
12723 #. type: =head2
12724 #: ../src/guestfs-actions.pod:4690
12725 msgid "guestfs_ntfs_3g_probe"
12726 msgstr ""
12727
12728 #. type: verbatim
12729 #: ../src/guestfs-actions.pod:4692
12730 #, no-wrap
12731 msgid ""
12732 " int\n"
12733 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
12734 "                        int rw,\n"
12735 "                        const char *device);\n"
12736 "\n"
12737 msgstr ""
12738
12739 #. type: textblock
12740 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3141
12741 msgid ""
12742 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12743 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
12744 "read-write, and some cannot be mounted at all)."
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../src/guestfs-actions.pod:4701 ../fish/guestfish-actions.pod:3145
12749 msgid ""
12750 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12751 "can be mounted read-write.  Set it to false if you want to test if the "
12752 "volume can be mounted read-only."
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3149
12757 msgid ""
12758 "The return value is an integer which C<0> if the operation would succeed, or "
12759 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12760 msgstr ""
12761
12762 #. type: textblock
12763 #: ../src/guestfs-actions.pod:4711
12764 msgid "(Added in 1.0.43)"
12765 msgstr ""
12766
12767 #. type: =head2
12768 #: ../src/guestfs-actions.pod:4713
12769 msgid "guestfs_ntfsresize"
12770 msgstr ""
12771
12772 #. type: verbatim
12773 #: ../src/guestfs-actions.pod:4715
12774 #, no-wrap
12775 msgid ""
12776 " int\n"
12777 " guestfs_ntfsresize (guestfs_h *g,\n"
12778 "                     const char *device);\n"
12779 "\n"
12780 msgstr ""
12781
12782 #. type: textblock
12783 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3157
12784 msgid ""
12785 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12786 "size of the underlying device.  See also L<ntfsresize(8)>."
12787 msgstr ""
12788
12789 #. type: =head2
12790 #: ../src/guestfs-actions.pod:4727
12791 msgid "guestfs_ntfsresize_size"
12792 msgstr ""
12793
12794 #. type: verbatim
12795 #: ../src/guestfs-actions.pod:4729
12796 #, no-wrap
12797 msgid ""
12798 " int\n"
12799 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12800 "                          const char *device,\n"
12801 "                          int64_t size);\n"
12802 "\n"
12803 msgstr ""
12804
12805 #. type: textblock
12806 #: ../src/guestfs-actions.pod:4734
12807 msgid ""
12808 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12809 "to specify the new size (in bytes) explicitly."
12810 msgstr ""
12811
12812 #. type: textblock
12813 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:5175 ../src/guestfs-actions.pod:5248 ../src/guestfs-actions.pod:5514 ../src/guestfs-actions.pod:7053
12814 msgid "(Added in 1.3.14)"
12815 msgstr ""
12816
12817 #. type: =head2
12818 #: ../src/guestfs-actions.pod:4741
12819 msgid "guestfs_part_add"
12820 msgstr ""
12821
12822 #. type: verbatim
12823 #: ../src/guestfs-actions.pod:4743
12824 #, no-wrap
12825 msgid ""
12826 " int\n"
12827 " guestfs_part_add (guestfs_h *g,\n"
12828 "                   const char *device,\n"
12829 "                   const char *prlogex,\n"
12830 "                   int64_t startsect,\n"
12831 "                   int64_t endsect);\n"
12832 "\n"
12833 msgstr ""
12834
12835 #. type: textblock
12836 #: ../src/guestfs-actions.pod:4750
12837 msgid ""
12838 "This command adds a partition to C<device>.  If there is no partition table "
12839 "on the device, call C<guestfs_part_init> first."
12840 msgstr ""
12841
12842 #. type: textblock
12843 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3175
12844 msgid ""
12845 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12846 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12847 "C<logical>) and C<e> (or C<extended>) partition types."
12848 msgstr ""
12849
12850 #. type: textblock
12851 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3180
12852 msgid ""
12853 "C<startsect> and C<endsect> are the start and end of the partition in "
12854 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12855 "from the end of the disk (C<-1> is the last sector)."
12856 msgstr ""
12857
12858 #. type: textblock
12859 #: ../src/guestfs-actions.pod:4762
12860 msgid ""
12861 "Creating a partition which covers the whole disk is not so easy.  Use "
12862 "C<guestfs_part_disk> to do that."
12863 msgstr ""
12864
12865 #. type: textblock
12866 #: ../src/guestfs-actions.pod:4767 ../src/guestfs-actions.pod:4805 ../src/guestfs-actions.pod:4858 ../src/guestfs-actions.pod:4936 ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:4993 ../src/guestfs-actions.pod:5033
12867 msgid "(Added in 1.0.78)"
12868 msgstr ""
12869
12870 #. type: =head2
12871 #: ../src/guestfs-actions.pod:4769
12872 msgid "guestfs_part_del"
12873 msgstr ""
12874
12875 #. type: verbatim
12876 #: ../src/guestfs-actions.pod:4771
12877 #, no-wrap
12878 msgid ""
12879 " int\n"
12880 " guestfs_part_del (guestfs_h *g,\n"
12881 "                   const char *device,\n"
12882 "                   int partnum);\n"
12883 "\n"
12884 msgstr ""
12885
12886 #. type: textblock
12887 #: ../src/guestfs-actions.pod:4776 ../fish/guestfish-actions.pod:3191
12888 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12889 msgstr ""
12890
12891 #. type: textblock
12892 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3193
12893 msgid ""
12894 "Note that in the case of MBR partitioning, deleting an extended partition "
12895 "also deletes any logical partitions it contains."
12896 msgstr ""
12897
12898 #. type: =head2
12899 #: ../src/guestfs-actions.pod:4786
12900 msgid "guestfs_part_disk"
12901 msgstr ""
12902
12903 #. type: verbatim
12904 #: ../src/guestfs-actions.pod:4788
12905 #, no-wrap
12906 msgid ""
12907 " int\n"
12908 " guestfs_part_disk (guestfs_h *g,\n"
12909 "                    const char *device,\n"
12910 "                    const char *parttype);\n"
12911 "\n"
12912 msgstr ""
12913
12914 #. type: textblock
12915 #: ../src/guestfs-actions.pod:4793
12916 msgid ""
12917 "This command is simply a combination of C<guestfs_part_init> followed by "
12918 "C<guestfs_part_add> to create a single primary partition covering the whole "
12919 "disk."
12920 msgstr ""
12921
12922 #. type: textblock
12923 #: ../src/guestfs-actions.pod:4797
12924 msgid ""
12925 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12926 "possible values are described in C<guestfs_part_init>."
12927 msgstr ""
12928
12929 #. type: =head2
12930 #: ../src/guestfs-actions.pod:4807
12931 msgid "guestfs_part_get_bootable"
12932 msgstr ""
12933
12934 #. type: verbatim
12935 #: ../src/guestfs-actions.pod:4809
12936 #, no-wrap
12937 msgid ""
12938 " int\n"
12939 " guestfs_part_get_bootable (guestfs_h *g,\n"
12940 "                            const char *device,\n"
12941 "                            int partnum);\n"
12942 "\n"
12943 msgstr ""
12944
12945 #. type: textblock
12946 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3215
12947 msgid ""
12948 "This command returns true if the partition C<partnum> on C<device> has the "
12949 "bootable flag set."
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../src/guestfs-actions.pod:4817
12954 msgid "See also C<guestfs_part_set_bootable>."
12955 msgstr ""
12956
12957 #. type: =head2
12958 #: ../src/guestfs-actions.pod:4823
12959 msgid "guestfs_part_get_mbr_id"
12960 msgstr ""
12961
12962 #. type: verbatim
12963 #: ../src/guestfs-actions.pod:4825
12964 #, no-wrap
12965 msgid ""
12966 " int\n"
12967 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12968 "                          const char *device,\n"
12969 "                          int partnum);\n"
12970 "\n"
12971 msgstr ""
12972
12973 #. type: textblock
12974 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3224
12975 msgid ""
12976 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12977 "partition C<partnum>."
12978 msgstr ""
12979
12980 #. type: textblock
12981 #: ../src/guestfs-actions.pod:4833 ../src/guestfs-actions.pod:5009
12982 msgid ""
12983 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12984 "undefined results for other partition table types (see "
12985 "C<guestfs_part_get_parttype>)."
12986 msgstr ""
12987
12988 #. type: =head2
12989 #: ../src/guestfs-actions.pod:4841
12990 msgid "guestfs_part_get_parttype"
12991 msgstr ""
12992
12993 #. type: verbatim
12994 #: ../src/guestfs-actions.pod:4843
12995 #, no-wrap
12996 msgid ""
12997 " char *\n"
12998 " guestfs_part_get_parttype (guestfs_h *g,\n"
12999 "                            const char *device);\n"
13000 "\n"
13001 msgstr ""
13002
13003 #. type: textblock
13004 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3235
13005 msgid ""
13006 "This command examines the partition table on C<device> and returns the "
13007 "partition table type (format) being used."
13008 msgstr ""
13009
13010 #. type: textblock
13011 #: ../src/guestfs-actions.pod:4850
13012 msgid ""
13013 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13014 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13015 "possible, although unusual.  See C<guestfs_part_init> for a full list."
13016 msgstr ""
13017
13018 #. type: =head2
13019 #: ../src/guestfs-actions.pod:4860
13020 msgid "guestfs_part_init"
13021 msgstr ""
13022
13023 #. type: verbatim
13024 #: ../src/guestfs-actions.pod:4862
13025 #, no-wrap
13026 msgid ""
13027 " int\n"
13028 " guestfs_part_init (guestfs_h *g,\n"
13029 "                    const char *device,\n"
13030 "                    const char *parttype);\n"
13031 "\n"
13032 msgstr ""
13033
13034 #. type: textblock
13035 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3247
13036 msgid ""
13037 "This creates an empty partition table on C<device> of one of the partition "
13038 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13039 "(for large disks)."
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../src/guestfs-actions.pod:4871
13044 msgid ""
13045 "Initially there are no partitions.  Following this, you should call "
13046 "C<guestfs_part_add> for each partition required."
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3254
13051 msgid "Possible values for C<parttype> are:"
13052 msgstr ""
13053
13054 #. type: =item
13055 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3258
13056 msgid "B<efi> | B<gpt>"
13057 msgstr ""
13058
13059 #. type: textblock
13060 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3260
13061 msgid "Intel EFI / GPT partition table."
13062 msgstr ""
13063
13064 #. type: textblock
13065 #: ../src/guestfs-actions.pod:4882 ../fish/guestfish-actions.pod:3262
13066 msgid ""
13067 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13068 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13069 "the C<mbr> format."
13070 msgstr ""
13071
13072 #. type: =item
13073 #: ../src/guestfs-actions.pod:4886 ../fish/guestfish-actions.pod:3266
13074 msgid "B<mbr> | B<msdos>"
13075 msgstr ""
13076
13077 #. type: textblock
13078 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3268
13079 msgid ""
13080 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13081 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13082 "TB.  For large disks we recommend using C<gpt>."
13083 msgstr ""
13084
13085 #. type: textblock
13086 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3275
13087 msgid "Other partition table types that may work but are not supported include:"
13088 msgstr ""
13089
13090 #. type: =item
13091 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3280
13092 msgid "B<aix>"
13093 msgstr ""
13094
13095 #. type: textblock
13096 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3282
13097 msgid "AIX disk labels."
13098 msgstr ""
13099
13100 #. type: =item
13101 #: ../src/guestfs-actions.pod:4904 ../fish/guestfish-actions.pod:3284
13102 msgid "B<amiga> | B<rdb>"
13103 msgstr ""
13104
13105 #. type: textblock
13106 #: ../src/guestfs-actions.pod:4906 ../fish/guestfish-actions.pod:3286
13107 msgid "Amiga \"Rigid Disk Block\" format."
13108 msgstr ""
13109
13110 #. type: =item
13111 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3288
13112 msgid "B<bsd>"
13113 msgstr ""
13114
13115 #. type: textblock
13116 #: ../src/guestfs-actions.pod:4910 ../fish/guestfish-actions.pod:3290
13117 msgid "BSD disk labels."
13118 msgstr ""
13119
13120 #. type: =item
13121 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3292
13122 msgid "B<dasd>"
13123 msgstr ""
13124
13125 #. type: textblock
13126 #: ../src/guestfs-actions.pod:4914 ../fish/guestfish-actions.pod:3294
13127 msgid "DASD, used on IBM mainframes."
13128 msgstr ""
13129
13130 #. type: =item
13131 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3296
13132 msgid "B<dvh>"
13133 msgstr ""
13134
13135 #. type: textblock
13136 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3298
13137 msgid "MIPS/SGI volumes."
13138 msgstr ""
13139
13140 #. type: =item
13141 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3300
13142 msgid "B<mac>"
13143 msgstr ""
13144
13145 #. type: textblock
13146 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3302
13147 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13148 msgstr ""
13149
13150 #. type: =item
13151 #: ../src/guestfs-actions.pod:4924 ../fish/guestfish-actions.pod:3304
13152 msgid "B<pc98>"
13153 msgstr ""
13154
13155 #. type: textblock
13156 #: ../src/guestfs-actions.pod:4926 ../fish/guestfish-actions.pod:3306
13157 msgid "NEC PC-98 format, common in Japan apparently."
13158 msgstr ""
13159
13160 #. type: =item
13161 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3308
13162 msgid "B<sun>"
13163 msgstr ""
13164
13165 #. type: textblock
13166 #: ../src/guestfs-actions.pod:4930 ../fish/guestfish-actions.pod:3310
13167 msgid "Sun disk labels."
13168 msgstr ""
13169
13170 #. type: =head2
13171 #: ../src/guestfs-actions.pod:4938
13172 msgid "guestfs_part_list"
13173 msgstr ""
13174
13175 #. type: verbatim
13176 #: ../src/guestfs-actions.pod:4940
13177 #, no-wrap
13178 msgid ""
13179 " struct guestfs_partition_list *\n"
13180 " guestfs_part_list (guestfs_h *g,\n"
13181 "                    const char *device);\n"
13182 "\n"
13183 msgstr ""
13184
13185 #. type: textblock
13186 #: ../src/guestfs-actions.pod:4944 ../fish/guestfish-actions.pod:3318
13187 msgid ""
13188 "This command parses the partition table on C<device> and returns the list of "
13189 "partitions found."
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../src/guestfs-actions.pod:4947 ../fish/guestfish-actions.pod:3321
13194 msgid "The fields in the returned structure are:"
13195 msgstr ""
13196
13197 #. type: =item
13198 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3325
13199 msgid "B<part_num>"
13200 msgstr ""
13201
13202 #. type: textblock
13203 #: ../src/guestfs-actions.pod:4953 ../fish/guestfish-actions.pod:3327
13204 msgid "Partition number, counting from 1."
13205 msgstr ""
13206
13207 #. type: =item
13208 #: ../src/guestfs-actions.pod:4955 ../fish/guestfish-actions.pod:3329
13209 msgid "B<part_start>"
13210 msgstr ""
13211
13212 #. type: textblock
13213 #: ../src/guestfs-actions.pod:4957
13214 msgid ""
13215 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13216 "the device's sector size, see C<guestfs_blockdev_getss>."
13217 msgstr ""
13218
13219 #. type: =item
13220 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3334
13221 msgid "B<part_end>"
13222 msgstr ""
13223
13224 #. type: textblock
13225 #: ../src/guestfs-actions.pod:4962 ../fish/guestfish-actions.pod:3336
13226 msgid "End of the partition in bytes."
13227 msgstr ""
13228
13229 #. type: =item
13230 #: ../src/guestfs-actions.pod:4964 ../fish/guestfish-actions.pod:3338
13231 msgid "B<part_size>"
13232 msgstr ""
13233
13234 #. type: textblock
13235 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3340
13236 msgid "Size of the partition in bytes."
13237 msgstr ""
13238
13239 #. type: textblock
13240 #: ../src/guestfs-actions.pod:4970
13241 msgid ""
13242 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
13243 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
13244 "use>."
13245 msgstr ""
13246
13247 #. type: =head2
13248 #: ../src/guestfs-actions.pod:4976
13249 msgid "guestfs_part_set_bootable"
13250 msgstr ""
13251
13252 #. type: verbatim
13253 #: ../src/guestfs-actions.pod:4978
13254 #, no-wrap
13255 msgid ""
13256 " int\n"
13257 " guestfs_part_set_bootable (guestfs_h *g,\n"
13258 "                            const char *device,\n"
13259 "                            int partnum,\n"
13260 "                            int bootable);\n"
13261 "\n"
13262 msgstr ""
13263
13264 #. type: textblock
13265 #: ../src/guestfs-actions.pod:4984 ../fish/guestfish-actions.pod:3348
13266 msgid ""
13267 "This sets the bootable flag on partition numbered C<partnum> on device "
13268 "C<device>.  Note that partitions are numbered from 1."
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../src/guestfs-actions.pod:4987 ../fish/guestfish-actions.pod:3351
13273 msgid ""
13274 "The bootable flag is used by some operating systems (notably Windows) to "
13275 "determine which partition to boot from.  It is by no means universally "
13276 "recognized."
13277 msgstr ""
13278
13279 #. type: =head2
13280 #: ../src/guestfs-actions.pod:4995
13281 msgid "guestfs_part_set_mbr_id"
13282 msgstr ""
13283
13284 #. type: verbatim
13285 #: ../src/guestfs-actions.pod:4997
13286 #, no-wrap
13287 msgid ""
13288 " int\n"
13289 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
13290 "                          const char *device,\n"
13291 "                          int partnum,\n"
13292 "                          int idbyte);\n"
13293 "\n"
13294 msgstr ""
13295
13296 #. type: textblock
13297 #: ../src/guestfs-actions.pod:5003 ../fish/guestfish-actions.pod:3359
13298 msgid ""
13299 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13300 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13301 "documentation are in fact hexadecimal numbers, but usually documented "
13302 "without any leading \"0x\" which might be confusing."
13303 msgstr ""
13304
13305 #. type: =head2
13306 #: ../src/guestfs-actions.pod:5017
13307 msgid "guestfs_part_set_name"
13308 msgstr ""
13309
13310 #. type: verbatim
13311 #: ../src/guestfs-actions.pod:5019
13312 #, no-wrap
13313 msgid ""
13314 " int\n"
13315 " guestfs_part_set_name (guestfs_h *g,\n"
13316 "                        const char *device,\n"
13317 "                        int partnum,\n"
13318 "                        const char *name);\n"
13319 "\n"
13320 msgstr ""
13321
13322 #. type: textblock
13323 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3373
13324 msgid ""
13325 "This sets the partition name on partition numbered C<partnum> on device "
13326 "C<device>.  Note that partitions are numbered from 1."
13327 msgstr ""
13328
13329 #. type: textblock
13330 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3376
13331 msgid ""
13332 "The partition name can only be set on certain types of partition table.  "
13333 "This works on C<gpt> but not on C<mbr> partitions."
13334 msgstr ""
13335
13336 #. type: =head2
13337 #: ../src/guestfs-actions.pod:5035
13338 msgid "guestfs_part_to_dev"
13339 msgstr ""
13340
13341 #. type: verbatim
13342 #: ../src/guestfs-actions.pod:5037
13343 #, no-wrap
13344 msgid ""
13345 " char *\n"
13346 " guestfs_part_to_dev (guestfs_h *g,\n"
13347 "                      const char *partition);\n"
13348 "\n"
13349 msgstr ""
13350
13351 #. type: textblock
13352 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3383
13353 msgid ""
13354 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13355 "partition number, returning the device name (eg. \"/dev/sdb\")."
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../src/guestfs-actions.pod:5045
13360 msgid ""
13361 "The named partition must exist, for example as a string returned from "
13362 "C<guestfs_list_partitions>."
13363 msgstr ""
13364
13365 #. type: =head2
13366 #: ../src/guestfs-actions.pod:5053
13367 msgid "guestfs_ping_daemon"
13368 msgstr ""
13369
13370 #. type: verbatim
13371 #: ../src/guestfs-actions.pod:5055
13372 #, no-wrap
13373 msgid ""
13374 " int\n"
13375 " guestfs_ping_daemon (guestfs_h *g);\n"
13376 "\n"
13377 msgstr ""
13378
13379 #. type: textblock
13380 #: ../src/guestfs-actions.pod:5058 ../fish/guestfish-actions.pod:3394
13381 msgid ""
13382 "This is a test probe into the guestfs daemon running inside the qemu "
13383 "subprocess.  Calling this function checks that the daemon responds to the "
13384 "ping message, without affecting the daemon or attached block device(s) in "
13385 "any other way."
13386 msgstr ""
13387
13388 #. type: =head2
13389 #: ../src/guestfs-actions.pod:5067
13390 msgid "guestfs_pread"
13391 msgstr ""
13392
13393 #. type: verbatim
13394 #: ../src/guestfs-actions.pod:5069
13395 #, no-wrap
13396 msgid ""
13397 " char *\n"
13398 " guestfs_pread (guestfs_h *g,\n"
13399 "                const char *path,\n"
13400 "                int count,\n"
13401 "                int64_t offset,\n"
13402 "                size_t *size_r);\n"
13403 "\n"
13404 msgstr ""
13405
13406 #. type: textblock
13407 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3403
13408 msgid ""
13409 "This command lets you read part of a file.  It reads C<count> bytes of the "
13410 "file, starting at C<offset>, from file C<path>."
13411 msgstr ""
13412
13413 #. type: textblock
13414 #: ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3421
13415 msgid ""
13416 "This may read fewer bytes than requested.  For further details see the "
13417 "L<pread(2)> system call."
13418 msgstr ""
13419
13420 #. type: textblock
13421 #: ../src/guestfs-actions.pod:5082
13422 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
13423 msgstr ""
13424
13425 #. type: =head2
13426 #: ../src/guestfs-actions.pod:5093
13427 msgid "guestfs_pread_device"
13428 msgstr ""
13429
13430 #. type: verbatim
13431 #: ../src/guestfs-actions.pod:5095
13432 #, no-wrap
13433 msgid ""
13434 " char *\n"
13435 " guestfs_pread_device (guestfs_h *g,\n"
13436 "                       const char *device,\n"
13437 "                       int count,\n"
13438 "                       int64_t offset,\n"
13439 "                       size_t *size_r);\n"
13440 "\n"
13441 msgstr ""
13442
13443 #. type: textblock
13444 #: ../src/guestfs-actions.pod:5102 ../fish/guestfish-actions.pod:3418
13445 msgid ""
13446 "This command lets you read part of a file.  It reads C<count> bytes of "
13447 "C<device>, starting at C<offset>."
13448 msgstr ""
13449
13450 #. type: textblock
13451 #: ../src/guestfs-actions.pod:5108
13452 msgid "See also C<guestfs_pread>."
13453 msgstr ""
13454
13455 #. type: textblock
13456 #: ../src/guestfs-actions.pod:5117
13457 msgid "(Added in 1.5.21)"
13458 msgstr ""
13459
13460 #. type: =head2
13461 #: ../src/guestfs-actions.pod:5119
13462 msgid "guestfs_pvcreate"
13463 msgstr ""
13464
13465 #. type: verbatim
13466 #: ../src/guestfs-actions.pod:5121
13467 #, no-wrap
13468 msgid ""
13469 " int\n"
13470 " guestfs_pvcreate (guestfs_h *g,\n"
13471 "                   const char *device);\n"
13472 "\n"
13473 msgstr ""
13474
13475 #. type: textblock
13476 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3433
13477 msgid ""
13478 "This creates an LVM physical volume on the named C<device>, where C<device> "
13479 "should usually be a partition name such as C</dev/sda1>."
13480 msgstr ""
13481
13482 #. type: =head2
13483 #: ../src/guestfs-actions.pod:5133
13484 msgid "guestfs_pvremove"
13485 msgstr ""
13486
13487 #. type: verbatim
13488 #: ../src/guestfs-actions.pod:5135
13489 #, no-wrap
13490 msgid ""
13491 " int\n"
13492 " guestfs_pvremove (guestfs_h *g,\n"
13493 "                   const char *device);\n"
13494 "\n"
13495 msgstr ""
13496
13497 #. type: textblock
13498 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3441
13499 msgid ""
13500 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13501 "it."
13502 msgstr ""
13503
13504 #. type: textblock
13505 #: ../src/guestfs-actions.pod:5142 ../fish/guestfish-actions.pod:3444
13506 msgid ""
13507 "The implementation uses the C<pvremove> command which refuses to wipe "
13508 "physical volumes that contain any volume groups, so you have to remove those "
13509 "first."
13510 msgstr ""
13511
13512 #. type: =head2
13513 #: ../src/guestfs-actions.pod:5150
13514 msgid "guestfs_pvresize"
13515 msgstr ""
13516
13517 #. type: verbatim
13518 #: ../src/guestfs-actions.pod:5152
13519 #, no-wrap
13520 msgid ""
13521 " int\n"
13522 " guestfs_pvresize (guestfs_h *g,\n"
13523 "                   const char *device);\n"
13524 "\n"
13525 msgstr ""
13526
13527 #. type: textblock
13528 #: ../src/guestfs-actions.pod:5156 ../fish/guestfish-actions.pod:3452
13529 msgid ""
13530 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13531 "the new size of the underlying device."
13532 msgstr ""
13533
13534 #. type: =head2
13535 #: ../src/guestfs-actions.pod:5163
13536 msgid "guestfs_pvresize_size"
13537 msgstr ""
13538
13539 #. type: verbatim
13540 #: ../src/guestfs-actions.pod:5165
13541 #, no-wrap
13542 msgid ""
13543 " int\n"
13544 " guestfs_pvresize_size (guestfs_h *g,\n"
13545 "                        const char *device,\n"
13546 "                        int64_t size);\n"
13547 "\n"
13548 msgstr ""
13549
13550 #. type: textblock
13551 #: ../src/guestfs-actions.pod:5170
13552 msgid ""
13553 "This command is the same as C<guestfs_pvresize> except that it allows you to "
13554 "specify the new size (in bytes) explicitly."
13555 msgstr ""
13556
13557 #. type: =head2
13558 #: ../src/guestfs-actions.pod:5177
13559 msgid "guestfs_pvs"
13560 msgstr ""
13561
13562 #. type: verbatim
13563 #: ../src/guestfs-actions.pod:5179
13564 #, no-wrap
13565 msgid ""
13566 " char **\n"
13567 " guestfs_pvs (guestfs_h *g);\n"
13568 "\n"
13569 msgstr ""
13570
13571 #. type: textblock
13572 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3466
13573 msgid ""
13574 "List all the physical volumes detected.  This is the equivalent of the "
13575 "L<pvs(8)> command."
13576 msgstr ""
13577
13578 #. type: textblock
13579 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3469
13580 msgid ""
13581 "This returns a list of just the device names that contain PVs "
13582 "(eg. C</dev/sda2>)."
13583 msgstr ""
13584
13585 #. type: textblock
13586 #: ../src/guestfs-actions.pod:5188
13587 msgid "See also C<guestfs_pvs_full>."
13588 msgstr ""
13589
13590 #. type: =head2
13591 #: ../src/guestfs-actions.pod:5196
13592 msgid "guestfs_pvs_full"
13593 msgstr ""
13594
13595 #. type: verbatim
13596 #: ../src/guestfs-actions.pod:5198
13597 #, no-wrap
13598 msgid ""
13599 " struct guestfs_lvm_pv_list *\n"
13600 " guestfs_pvs_full (guestfs_h *g);\n"
13601 "\n"
13602 msgstr ""
13603
13604 #. type: textblock
13605 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3478
13606 msgid ""
13607 "List all the physical volumes detected.  This is the equivalent of the "
13608 "L<pvs(8)> command.  The \"full\" version includes all fields."
13609 msgstr ""
13610
13611 #. type: textblock
13612 #: ../src/guestfs-actions.pod:5204
13613 msgid ""
13614 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
13615 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
13616 "use>."
13617 msgstr ""
13618
13619 #. type: =head2
13620 #: ../src/guestfs-actions.pod:5210
13621 msgid "guestfs_pvuuid"
13622 msgstr ""
13623
13624 #. type: verbatim
13625 #: ../src/guestfs-actions.pod:5212
13626 #, no-wrap
13627 msgid ""
13628 " char *\n"
13629 " guestfs_pvuuid (guestfs_h *g,\n"
13630 "                 const char *device);\n"
13631 "\n"
13632 msgstr ""
13633
13634 #. type: textblock
13635 #: ../src/guestfs-actions.pod:5216 ../fish/guestfish-actions.pod:3485
13636 msgid "This command returns the UUID of the LVM PV C<device>."
13637 msgstr ""
13638
13639 #. type: =head2
13640 #: ../src/guestfs-actions.pod:5223
13641 msgid "guestfs_pwrite"
13642 msgstr ""
13643
13644 #. type: verbatim
13645 #: ../src/guestfs-actions.pod:5225
13646 #, no-wrap
13647 msgid ""
13648 " int\n"
13649 " guestfs_pwrite (guestfs_h *g,\n"
13650 "                 const char *path,\n"
13651 "                 const char *content,\n"
13652 "                 size_t content_size,\n"
13653 "                 int64_t offset);\n"
13654 "\n"
13655 msgstr ""
13656
13657 #. type: textblock
13658 #: ../src/guestfs-actions.pod:5232 ../fish/guestfish-actions.pod:3491
13659 msgid ""
13660 "This command writes to part of a file.  It writes the data buffer C<content> "
13661 "to the file C<path> starting at offset C<offset>."
13662 msgstr ""
13663
13664 #. type: textblock
13665 #: ../src/guestfs-actions.pod:5235 ../fish/guestfish-actions.pod:3494
13666 msgid ""
13667 "This command implements the L<pwrite(2)> system call, and like that system "
13668 "call it may not write the full data requested.  The return value is the "
13669 "number of bytes that were actually written to the file.  This could even be "
13670 "0, although short writes are unlikely for regular files in ordinary "
13671 "circumstances."
13672 msgstr ""
13673
13674 #. type: textblock
13675 #: ../src/guestfs-actions.pod:5241
13676 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
13677 msgstr ""
13678
13679 #. type: =head2
13680 #: ../src/guestfs-actions.pod:5250
13681 msgid "guestfs_pwrite_device"
13682 msgstr ""
13683
13684 #. type: verbatim
13685 #: ../src/guestfs-actions.pod:5252
13686 #, no-wrap
13687 msgid ""
13688 " int\n"
13689 " guestfs_pwrite_device (guestfs_h *g,\n"
13690 "                        const char *device,\n"
13691 "                        const char *content,\n"
13692 "                        size_t content_size,\n"
13693 "                        int64_t offset);\n"
13694 "\n"
13695 msgstr ""
13696
13697 #. type: textblock
13698 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3509
13699 msgid ""
13700 "This command writes to part of a device.  It writes the data buffer "
13701 "C<content> to C<device> starting at offset C<offset>."
13702 msgstr ""
13703
13704 #. type: textblock
13705 #: ../src/guestfs-actions.pod:5262 ../fish/guestfish-actions.pod:3512
13706 msgid ""
13707 "This command implements the L<pwrite(2)> system call, and like that system "
13708 "call it may not write the full data requested (although short writes to disk "
13709 "devices and partitions are probably impossible with standard Linux kernels)."
13710 msgstr ""
13711
13712 #. type: textblock
13713 #: ../src/guestfs-actions.pod:5267
13714 msgid "See also C<guestfs_pwrite>."
13715 msgstr ""
13716
13717 #. type: textblock
13718 #: ../src/guestfs-actions.pod:5274
13719 msgid "(Added in 1.5.20)"
13720 msgstr ""
13721
13722 #. type: =head2
13723 #: ../src/guestfs-actions.pod:5276
13724 msgid "guestfs_read_file"
13725 msgstr ""
13726
13727 #. type: verbatim
13728 #: ../src/guestfs-actions.pod:5278
13729 #, no-wrap
13730 msgid ""
13731 " char *\n"
13732 " guestfs_read_file (guestfs_h *g,\n"
13733 "                    const char *path,\n"
13734 "                    size_t *size_r);\n"
13735 "\n"
13736 msgstr ""
13737
13738 #. type: textblock
13739 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3526
13740 msgid "This calls returns the contents of the file C<path> as a buffer."
13741 msgstr ""
13742
13743 #. type: textblock
13744 #: ../src/guestfs-actions.pod:5286
13745 msgid ""
13746 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
13747 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
13748 "function is limited in the total size of file that can be handled."
13749 msgstr ""
13750
13751 #. type: textblock
13752 #: ../src/guestfs-actions.pod:5298
13753 msgid "(Added in 1.0.63)"
13754 msgstr ""
13755
13756 #. type: =head2
13757 #: ../src/guestfs-actions.pod:5300
13758 msgid "guestfs_read_lines"
13759 msgstr ""
13760
13761 #. type: verbatim
13762 #: ../src/guestfs-actions.pod:5302
13763 #, no-wrap
13764 msgid ""
13765 " char **\n"
13766 " guestfs_read_lines (guestfs_h *g,\n"
13767 "                     const char *path);\n"
13768 "\n"
13769 msgstr ""
13770
13771 #. type: textblock
13772 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3543
13773 msgid ""
13774 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13775 "C<CRLF> character sequences are I<not> returned."
13776 msgstr ""
13777
13778 #. type: textblock
13779 #: ../src/guestfs-actions.pod:5311
13780 msgid ""
13781 "Note that this function cannot correctly handle binary files (specifically, "
13782 "files containing C<\\0> character which is treated as end of line).  For "
13783 "those you need to use the C<guestfs_read_file> function which has a more "
13784 "complex interface."
13785 msgstr ""
13786
13787 #. type: =head2
13788 #: ../src/guestfs-actions.pod:5322
13789 msgid "guestfs_readdir"
13790 msgstr ""
13791
13792 #. type: verbatim
13793 #: ../src/guestfs-actions.pod:5324
13794 #, no-wrap
13795 msgid ""
13796 " struct guestfs_dirent_list *\n"
13797 " guestfs_readdir (guestfs_h *g,\n"
13798 "                  const char *dir);\n"
13799 "\n"
13800 msgstr ""
13801
13802 #. type: textblock
13803 #: ../src/guestfs-actions.pod:5328 ../fish/guestfish-actions.pod:3555
13804 msgid "This returns the list of directory entries in directory C<dir>."
13805 msgstr ""
13806
13807 #. type: textblock
13808 #: ../src/guestfs-actions.pod:5330 ../fish/guestfish-actions.pod:3557
13809 msgid ""
13810 "All entries in the directory are returned, including C<.> and C<..>.  The "
13811 "entries are I<not> sorted, but returned in the same order as the underlying "
13812 "filesystem."
13813 msgstr ""
13814
13815 #. type: textblock
13816 #: ../src/guestfs-actions.pod:5334 ../fish/guestfish-actions.pod:3561
13817 msgid ""
13818 "Also this call returns basic file type information about each file.  The "
13819 "C<ftyp> field will contain one of the following characters:"
13820 msgstr ""
13821
13822 #. type: =item
13823 #: ../src/guestfs-actions.pod:5339 ../fish/guestfish-actions.pod:3566
13824 msgid "'b'"
13825 msgstr ""
13826
13827 #. type: textblock
13828 #: ../src/guestfs-actions.pod:5341 ../fish/guestfish-actions.pod:3568
13829 msgid "Block special"
13830 msgstr ""
13831
13832 #. type: =item
13833 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:3570
13834 msgid "'c'"
13835 msgstr ""
13836
13837 #. type: textblock
13838 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3572
13839 msgid "Char special"
13840 msgstr ""
13841
13842 #. type: =item
13843 #: ../src/guestfs-actions.pod:5347 ../fish/guestfish-actions.pod:3574
13844 msgid "'d'"
13845 msgstr ""
13846
13847 #. type: textblock
13848 #: ../src/guestfs-actions.pod:5349 ../fish/guestfish-actions.pod:3576
13849 msgid "Directory"
13850 msgstr ""
13851
13852 #. type: =item
13853 #: ../src/guestfs-actions.pod:5351 ../fish/guestfish-actions.pod:3578
13854 msgid "'f'"
13855 msgstr ""
13856
13857 #. type: textblock
13858 #: ../src/guestfs-actions.pod:5353 ../fish/guestfish-actions.pod:3580
13859 msgid "FIFO (named pipe)"
13860 msgstr ""
13861
13862 #. type: =item
13863 #: ../src/guestfs-actions.pod:5355 ../fish/guestfish-actions.pod:3582
13864 msgid "'l'"
13865 msgstr ""
13866
13867 #. type: textblock
13868 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3584
13869 msgid "Symbolic link"
13870 msgstr ""
13871
13872 #. type: =item
13873 #: ../src/guestfs-actions.pod:5359 ../fish/guestfish-actions.pod:3586
13874 msgid "'r'"
13875 msgstr ""
13876
13877 #. type: textblock
13878 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3588
13879 msgid "Regular file"
13880 msgstr ""
13881
13882 #. type: =item
13883 #: ../src/guestfs-actions.pod:5363 ../fish/guestfish-actions.pod:3590
13884 msgid "'s'"
13885 msgstr ""
13886
13887 #. type: textblock
13888 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3592
13889 msgid "Socket"
13890 msgstr ""
13891
13892 #. type: =item
13893 #: ../src/guestfs-actions.pod:5367 ../fish/guestfish-actions.pod:3594
13894 msgid "'u'"
13895 msgstr ""
13896
13897 #. type: textblock
13898 #: ../src/guestfs-actions.pod:5369 ../fish/guestfish-actions.pod:3596
13899 msgid "Unknown file type"
13900 msgstr ""
13901
13902 #. type: =item
13903 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:3598
13904 msgid "'?'"
13905 msgstr ""
13906
13907 #. type: textblock
13908 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:3600
13909 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13910 msgstr ""
13911
13912 #. type: textblock
13913 #: ../src/guestfs-actions.pod:5378
13914 msgid ""
13915 "This function is primarily intended for use by programs.  To get a simple "
13916 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13917 "consumption, use C<guestfs_ll>."
13918 msgstr ""
13919
13920 #. type: textblock
13921 #: ../src/guestfs-actions.pod:5382
13922 msgid ""
13923 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13924 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
13925 "use>."
13926 msgstr ""
13927
13928 #. type: =head2
13929 #: ../src/guestfs-actions.pod:5388
13930 msgid "guestfs_readlink"
13931 msgstr ""
13932
13933 #. type: verbatim
13934 #: ../src/guestfs-actions.pod:5390
13935 #, no-wrap
13936 msgid ""
13937 " char *\n"
13938 " guestfs_readlink (guestfs_h *g,\n"
13939 "                   const char *path);\n"
13940 "\n"
13941 msgstr ""
13942
13943 #. type: textblock
13944 #: ../src/guestfs-actions.pod:5394 ../fish/guestfish-actions.pod:3613
13945 msgid "This command reads the target of a symbolic link."
13946 msgstr ""
13947
13948 #. type: =head2
13949 #: ../src/guestfs-actions.pod:5401
13950 msgid "guestfs_readlinklist"
13951 msgstr ""
13952
13953 #. type: verbatim
13954 #: ../src/guestfs-actions.pod:5403
13955 #, no-wrap
13956 msgid ""
13957 " char **\n"
13958 " guestfs_readlinklist (guestfs_h *g,\n"
13959 "                       const char *path,\n"
13960 "                       char *const *names);\n"
13961 "\n"
13962 msgstr ""
13963
13964 #. type: textblock
13965 #: ../src/guestfs-actions.pod:5408 ../fish/guestfish-actions.pod:3619
13966 msgid ""
13967 "This call allows you to do a C<readlink> operation on multiple files, where "
13968 "all files are in the directory C<path>.  C<names> is the list of files from "
13969 "this directory."
13970 msgstr ""
13971
13972 #. type: textblock
13973 #: ../src/guestfs-actions.pod:5412 ../fish/guestfish-actions.pod:3623
13974 msgid ""
13975 "On return you get a list of strings, with a one-to-one correspondence to the "
13976 "C<names> list.  Each string is the value of the symbolic link."
13977 msgstr ""
13978
13979 #. type: textblock
13980 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3627
13981 msgid ""
13982 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13983 "result string is the empty string C<\"\">.  However the whole operation is "
13984 "completed even if there were C<readlink(2)> errors, and so you can call this "
13985 "function with names where you don't know if they are symbolic links already "
13986 "(albeit slightly less efficient)."
13987 msgstr ""
13988
13989 #. type: textblock
13990 #: ../src/guestfs-actions.pod:5423 ../fish/guestfish-actions.pod:3634
13991 msgid ""
13992 "This call is intended for programs that want to efficiently list a directory "
13993 "contents without making many round-trips.  Very long directory listings "
13994 "might cause the protocol message size to be exceeded, causing this call to "
13995 "fail.  The caller must split up such requests into smaller groups of names."
13996 msgstr ""
13997
13998 #. type: =head2
13999 #: ../src/guestfs-actions.pod:5436
14000 msgid "guestfs_realpath"
14001 msgstr ""
14002
14003 #. type: verbatim
14004 #: ../src/guestfs-actions.pod:5438
14005 #, no-wrap
14006 msgid ""
14007 " char *\n"
14008 " guestfs_realpath (guestfs_h *g,\n"
14009 "                   const char *path);\n"
14010 "\n"
14011 msgstr ""
14012
14013 #. type: textblock
14014 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:3645
14015 msgid ""
14016 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14017 "has no C<.>, C<..> or symbolic link path elements."
14018 msgstr ""
14019
14020 #. type: =head2
14021 #: ../src/guestfs-actions.pod:5450
14022 msgid "guestfs_removexattr"
14023 msgstr ""
14024
14025 #. type: verbatim
14026 #: ../src/guestfs-actions.pod:5452
14027 #, no-wrap
14028 msgid ""
14029 " int\n"
14030 " guestfs_removexattr (guestfs_h *g,\n"
14031 "                      const char *xattr,\n"
14032 "                      const char *path);\n"
14033 "\n"
14034 msgstr ""
14035
14036 #. type: textblock
14037 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3652
14038 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
14039 msgstr ""
14040
14041 #. type: textblock
14042 #: ../src/guestfs-actions.pod:5460
14043 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
14044 msgstr ""
14045
14046 #. type: =head2
14047 #: ../src/guestfs-actions.pod:5466
14048 msgid "guestfs_resize2fs"
14049 msgstr ""
14050
14051 #. type: verbatim
14052 #: ../src/guestfs-actions.pod:5468
14053 #, no-wrap
14054 msgid ""
14055 " int\n"
14056 " guestfs_resize2fs (guestfs_h *g,\n"
14057 "                    const char *device);\n"
14058 "\n"
14059 msgstr ""
14060
14061 #. type: textblock
14062 #: ../src/guestfs-actions.pod:5472 ../fish/guestfish-actions.pod:3661
14063 msgid ""
14064 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14065 "underlying device."
14066 msgstr ""
14067
14068 #. type: textblock
14069 #: ../src/guestfs-actions.pod:5475
14070 msgid ""
14071 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
14072 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
14073 "sometimes gives an error about this and sometimes not.  In any case, it is "
14074 "always safe to call C<guestfs_e2fsck_f> before calling this function."
14075 msgstr ""
14076
14077 #. type: =head2
14078 #: ../src/guestfs-actions.pod:5485
14079 msgid "guestfs_resize2fs_M"
14080 msgstr ""
14081
14082 #. type: verbatim
14083 #: ../src/guestfs-actions.pod:5487
14084 #, no-wrap
14085 msgid ""
14086 " int\n"
14087 " guestfs_resize2fs_M (guestfs_h *g,\n"
14088 "                      const char *device);\n"
14089 "\n"
14090 msgstr ""
14091
14092 #. type: textblock
14093 #: ../src/guestfs-actions.pod:5491
14094 msgid ""
14095 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
14096 "resized to its minimum size.  This works like the C<-M> option to the "
14097 "C<resize2fs> command."
14098 msgstr ""
14099
14100 #. type: textblock
14101 #: ../src/guestfs-actions.pod:5495
14102 msgid ""
14103 "To get the resulting size of the filesystem you should call "
14104 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
14105 "These two numbers, multiplied together, give the resulting size of the "
14106 "minimal filesystem in bytes."
14107 msgstr ""
14108
14109 #. type: =head2
14110 #: ../src/guestfs-actions.pod:5502
14111 msgid "guestfs_resize2fs_size"
14112 msgstr ""
14113
14114 #. type: verbatim
14115 #: ../src/guestfs-actions.pod:5504
14116 #, no-wrap
14117 msgid ""
14118 " int\n"
14119 " guestfs_resize2fs_size (guestfs_h *g,\n"
14120 "                         const char *device,\n"
14121 "                         int64_t size);\n"
14122 "\n"
14123 msgstr ""
14124
14125 #. type: textblock
14126 #: ../src/guestfs-actions.pod:5509
14127 msgid ""
14128 "This command is the same as C<guestfs_resize2fs> except that it allows you "
14129 "to specify the new size (in bytes) explicitly."
14130 msgstr ""
14131
14132 #. type: =head2
14133 #: ../src/guestfs-actions.pod:5516
14134 msgid "guestfs_rm"
14135 msgstr ""
14136
14137 #. type: verbatim
14138 #: ../src/guestfs-actions.pod:5518
14139 #, no-wrap
14140 msgid ""
14141 " int\n"
14142 " guestfs_rm (guestfs_h *g,\n"
14143 "             const char *path);\n"
14144 "\n"
14145 msgstr ""
14146
14147 #. type: textblock
14148 #: ../src/guestfs-actions.pod:5522 ../fish/guestfish-actions.pod:3694
14149 msgid "Remove the single file C<path>."
14150 msgstr ""
14151
14152 #. type: =head2
14153 #: ../src/guestfs-actions.pod:5528
14154 msgid "guestfs_rm_rf"
14155 msgstr ""
14156
14157 #. type: verbatim
14158 #: ../src/guestfs-actions.pod:5530
14159 #, no-wrap
14160 msgid ""
14161 " int\n"
14162 " guestfs_rm_rf (guestfs_h *g,\n"
14163 "                const char *path);\n"
14164 "\n"
14165 msgstr ""
14166
14167 #. type: textblock
14168 #: ../src/guestfs-actions.pod:5534 ../fish/guestfish-actions.pod:3700
14169 msgid ""
14170 "Remove the file or directory C<path>, recursively removing the contents if "
14171 "its a directory.  This is like the C<rm -rf> shell command."
14172 msgstr ""
14173
14174 #. type: =head2
14175 #: ../src/guestfs-actions.pod:5542
14176 msgid "guestfs_rmdir"
14177 msgstr ""
14178
14179 #. type: verbatim
14180 #: ../src/guestfs-actions.pod:5544
14181 #, no-wrap
14182 msgid ""
14183 " int\n"
14184 " guestfs_rmdir (guestfs_h *g,\n"
14185 "                const char *path);\n"
14186 "\n"
14187 msgstr ""
14188
14189 #. type: textblock
14190 #: ../src/guestfs-actions.pod:5548 ../fish/guestfish-actions.pod:3708
14191 msgid "Remove the single directory C<path>."
14192 msgstr ""
14193
14194 #. type: =head2
14195 #: ../src/guestfs-actions.pod:5554
14196 msgid "guestfs_rmmountpoint"
14197 msgstr ""
14198
14199 #. type: verbatim
14200 #: ../src/guestfs-actions.pod:5556
14201 #, no-wrap
14202 msgid ""
14203 " int\n"
14204 " guestfs_rmmountpoint (guestfs_h *g,\n"
14205 "                       const char *exemptpath);\n"
14206 "\n"
14207 msgstr ""
14208
14209 #. type: textblock
14210 #: ../src/guestfs-actions.pod:5560
14211 msgid ""
14212 "This calls removes a mountpoint that was previously created with "
14213 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
14214 msgstr ""
14215
14216 #. type: =head2
14217 #: ../src/guestfs-actions.pod:5568
14218 msgid "guestfs_scrub_device"
14219 msgstr ""
14220
14221 #. type: verbatim
14222 #: ../src/guestfs-actions.pod:5570
14223 #, no-wrap
14224 msgid ""
14225 " int\n"
14226 " guestfs_scrub_device (guestfs_h *g,\n"
14227 "                       const char *device);\n"
14228 "\n"
14229 msgstr ""
14230
14231 #. type: textblock
14232 #: ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3722
14233 msgid ""
14234 "This command writes patterns over C<device> to make data retrieval more "
14235 "difficult."
14236 msgstr ""
14237
14238 #. type: textblock
14239 #: ../src/guestfs-actions.pod:5577 ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5617 ../fish/guestfish-actions.pod:3725 ../fish/guestfish-actions.pod:3740 ../fish/guestfish-actions.pod:3753
14240 msgid ""
14241 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14242 "more details."
14243 msgstr ""
14244
14245 #. type: textblock
14246 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5622
14247 msgid "(Added in 1.0.52)"
14248 msgstr ""
14249
14250 #. type: =head2
14251 #: ../src/guestfs-actions.pod:5587
14252 msgid "guestfs_scrub_file"
14253 msgstr ""
14254
14255 #. type: verbatim
14256 #: ../src/guestfs-actions.pod:5589
14257 #, no-wrap
14258 msgid ""
14259 " int\n"
14260 " guestfs_scrub_file (guestfs_h *g,\n"
14261 "                     const char *file);\n"
14262 "\n"
14263 msgstr ""
14264
14265 #. type: textblock
14266 #: ../src/guestfs-actions.pod:5593 ../fish/guestfish-actions.pod:3735
14267 msgid ""
14268 "This command writes patterns over a file to make data retrieval more "
14269 "difficult."
14270 msgstr ""
14271
14272 #. type: textblock
14273 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:3738
14274 msgid "The file is I<removed> after scrubbing."
14275 msgstr ""
14276
14277 #. type: =head2
14278 #: ../src/guestfs-actions.pod:5605
14279 msgid "guestfs_scrub_freespace"
14280 msgstr ""
14281
14282 #. type: verbatim
14283 #: ../src/guestfs-actions.pod:5607
14284 #, no-wrap
14285 msgid ""
14286 " int\n"
14287 " guestfs_scrub_freespace (guestfs_h *g,\n"
14288 "                          const char *dir);\n"
14289 "\n"
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../src/guestfs-actions.pod:5611
14294 msgid ""
14295 "This command creates the directory C<dir> and then fills it with files until "
14296 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
14297 "and deletes them.  The intention is to scrub any free space on the partition "
14298 "containing C<dir>."
14299 msgstr ""
14300
14301 #. type: =head2
14302 #: ../src/guestfs-actions.pod:5624
14303 msgid "guestfs_set_append"
14304 msgstr ""
14305
14306 #. type: verbatim
14307 #: ../src/guestfs-actions.pod:5626
14308 #, no-wrap
14309 msgid ""
14310 " int\n"
14311 " guestfs_set_append (guestfs_h *g,\n"
14312 "                     const char *append);\n"
14313 "\n"
14314 msgstr ""
14315
14316 #. type: textblock
14317 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3762
14318 msgid ""
14319 "This function is used to add additional options to the guest kernel command "
14320 "line."
14321 msgstr ""
14322
14323 #. type: textblock
14324 #: ../src/guestfs-actions.pod:5633 ../fish/guestfish-actions.pod:3765
14325 msgid ""
14326 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14327 "environment variable."
14328 msgstr ""
14329
14330 #. type: textblock
14331 #: ../src/guestfs-actions.pod:5636 ../fish/guestfish-actions.pod:3768
14332 msgid ""
14333 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14334 "(libguestfs always adds a few of its own)."
14335 msgstr ""
14336
14337 #. type: =head2
14338 #: ../src/guestfs-actions.pod:5643
14339 msgid "guestfs_set_autosync"
14340 msgstr ""
14341
14342 #. type: verbatim
14343 #: ../src/guestfs-actions.pod:5645
14344 #, no-wrap
14345 msgid ""
14346 " int\n"
14347 " guestfs_set_autosync (guestfs_h *g,\n"
14348 "                       int autosync);\n"
14349 "\n"
14350 msgstr ""
14351
14352 #. type: textblock
14353 #: ../src/guestfs-actions.pod:5649
14354 msgid ""
14355 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14356 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
14357 "the handle is closed (also if the program exits without closing handles)."
14358 msgstr ""
14359
14360 #. type: textblock
14361 #: ../src/guestfs-actions.pod:5654 ../fish/guestfish-actions.pod:3782
14362 msgid ""
14363 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14364 "disabled by default)."
14365 msgstr ""
14366
14367 #. type: =head2
14368 #: ../src/guestfs-actions.pod:5661
14369 msgid "guestfs_set_direct"
14370 msgstr ""
14371
14372 #. type: verbatim
14373 #: ../src/guestfs-actions.pod:5663
14374 #, no-wrap
14375 msgid ""
14376 " int\n"
14377 " guestfs_set_direct (guestfs_h *g,\n"
14378 "                     int direct);\n"
14379 "\n"
14380 msgstr ""
14381
14382 #. type: textblock
14383 #: ../src/guestfs-actions.pod:5667 ../fish/guestfish-actions.pod:3791
14384 msgid ""
14385 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14386 "passed directly through to the appliance once it is launched."
14387 msgstr ""
14388
14389 #. type: textblock
14390 #: ../src/guestfs-actions.pod:5671
14391 msgid ""
14392 "One consequence of this is that log messages aren't caught by the library "
14393 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
14394 "stdout."
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../src/guestfs-actions.pod:5675 ../fish/guestfish-actions.pod:3799
14399 msgid "You probably don't want to use this unless you know what you are doing."
14400 msgstr ""
14401
14402 #. type: textblock
14403 #: ../src/guestfs-actions.pod:5678 ../fish/guestfish-actions.pod:3802
14404 msgid "The default is disabled."
14405 msgstr ""
14406
14407 #. type: =head2
14408 #: ../src/guestfs-actions.pod:5684
14409 msgid "guestfs_set_e2label"
14410 msgstr ""
14411
14412 #. type: verbatim
14413 #: ../src/guestfs-actions.pod:5686
14414 #, no-wrap
14415 msgid ""
14416 " int\n"
14417 " guestfs_set_e2label (guestfs_h *g,\n"
14418 "                      const char *device,\n"
14419 "                      const char *label);\n"
14420 "\n"
14421 msgstr ""
14422
14423 #. type: textblock
14424 #: ../src/guestfs-actions.pod:5691 ../fish/guestfish-actions.pod:3808
14425 msgid ""
14426 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14427 "C<label>.  Filesystem labels are limited to 16 characters."
14428 msgstr ""
14429
14430 #. type: textblock
14431 #: ../src/guestfs-actions.pod:5695
14432 msgid ""
14433 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
14434 "the existing label on a filesystem."
14435 msgstr ""
14436
14437 #. type: =head2
14438 #: ../src/guestfs-actions.pod:5702
14439 msgid "guestfs_set_e2uuid"
14440 msgstr ""
14441
14442 #. type: verbatim
14443 #: ../src/guestfs-actions.pod:5704
14444 #, no-wrap
14445 msgid ""
14446 " int\n"
14447 " guestfs_set_e2uuid (guestfs_h *g,\n"
14448 "                     const char *device,\n"
14449 "                     const char *uuid);\n"
14450 "\n"
14451 msgstr ""
14452
14453 #. type: textblock
14454 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3819
14455 msgid ""
14456 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14457 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14458 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14459 msgstr ""
14460
14461 #. type: textblock
14462 #: ../src/guestfs-actions.pod:5714
14463 msgid ""
14464 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
14465 "the existing UUID of a filesystem."
14466 msgstr ""
14467
14468 #. type: =head2
14469 #: ../src/guestfs-actions.pod:5721
14470 msgid "guestfs_set_memsize"
14471 msgstr ""
14472
14473 #. type: verbatim
14474 #: ../src/guestfs-actions.pod:5723
14475 #, no-wrap
14476 msgid ""
14477 " int\n"
14478 " guestfs_set_memsize (guestfs_h *g,\n"
14479 "                      int memsize);\n"
14480 "\n"
14481 msgstr ""
14482
14483 #. type: textblock
14484 #: ../src/guestfs-actions.pod:5727
14485 msgid ""
14486 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14487 "This only has any effect if called before C<guestfs_launch>."
14488 msgstr ""
14489
14490 #. type: textblock
14491 #: ../src/guestfs-actions.pod:5731 ../fish/guestfish-actions.pod:3837
14492 msgid ""
14493 "You can also change this by setting the environment variable "
14494 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14495 msgstr ""
14496
14497 #. type: =head2
14498 #: ../src/guestfs-actions.pod:5742
14499 msgid "guestfs_set_network"
14500 msgstr ""
14501
14502 #. type: verbatim
14503 #: ../src/guestfs-actions.pod:5744
14504 #, no-wrap
14505 msgid ""
14506 " int\n"
14507 " guestfs_set_network (guestfs_h *g,\n"
14508 "                      int network);\n"
14509 "\n"
14510 msgstr ""
14511
14512 #. type: textblock
14513 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:3850
14514 msgid ""
14515 "If C<network> is true, then the network is enabled in the libguestfs "
14516 "appliance.  The default is false."
14517 msgstr ""
14518
14519 #. type: textblock
14520 #: ../src/guestfs-actions.pod:5751 ../fish/guestfish-actions.pod:3853
14521 msgid ""
14522 "This affects whether commands are able to access the network (see "
14523 "L<guestfs(3)/RUNNING COMMANDS>)."
14524 msgstr ""
14525
14526 #. type: textblock
14527 #: ../src/guestfs-actions.pod:5754
14528 msgid ""
14529 "You must call this before calling C<guestfs_launch>, otherwise it has no "
14530 "effect."
14531 msgstr ""
14532
14533 #. type: =head2
14534 #: ../src/guestfs-actions.pod:5761
14535 msgid "guestfs_set_path"
14536 msgstr ""
14537
14538 #. type: verbatim
14539 #: ../src/guestfs-actions.pod:5763
14540 #, no-wrap
14541 msgid ""
14542 " int\n"
14543 " guestfs_set_path (guestfs_h *g,\n"
14544 "                   const char *searchpath);\n"
14545 "\n"
14546 msgstr ""
14547
14548 #. type: textblock
14549 #: ../src/guestfs-actions.pod:5767 ../fish/guestfish-actions.pod:3865
14550 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14551 msgstr ""
14552
14553 #. type: textblock
14554 #: ../src/guestfs-actions.pod:5769 ../fish/guestfish-actions.pod:3867
14555 msgid ""
14556 "The default is C<$libdir/guestfs> unless overridden by setting "
14557 "C<LIBGUESTFS_PATH> environment variable."
14558 msgstr ""
14559
14560 #. type: textblock
14561 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:3870
14562 msgid "Setting C<path> to C<NULL> restores the default path."
14563 msgstr ""
14564
14565 #. type: =head2
14566 #: ../src/guestfs-actions.pod:5778
14567 msgid "guestfs_set_qemu"
14568 msgstr ""
14569
14570 #. type: verbatim
14571 #: ../src/guestfs-actions.pod:5780
14572 #, no-wrap
14573 msgid ""
14574 " int\n"
14575 " guestfs_set_qemu (guestfs_h *g,\n"
14576 "                   const char *qemu);\n"
14577 "\n"
14578 msgstr ""
14579
14580 #. type: textblock
14581 #: ../src/guestfs-actions.pod:5784 ../fish/guestfish-actions.pod:3878
14582 msgid "Set the qemu binary that we will use."
14583 msgstr ""
14584
14585 #. type: textblock
14586 #: ../src/guestfs-actions.pod:5786 ../fish/guestfish-actions.pod:3880
14587 msgid "The default is chosen when the library was compiled by the configure script."
14588 msgstr ""
14589
14590 #. type: textblock
14591 #: ../src/guestfs-actions.pod:5789 ../fish/guestfish-actions.pod:3883
14592 msgid ""
14593 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14594 "variable."
14595 msgstr ""
14596
14597 #. type: textblock
14598 #: ../src/guestfs-actions.pod:5792 ../fish/guestfish-actions.pod:3886
14599 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14600 msgstr ""
14601
14602 #. type: textblock
14603 #: ../src/guestfs-actions.pod:5794 ../fish/guestfish-actions.pod:3888
14604 msgid ""
14605 "Note that you should call this function as early as possible after creating "
14606 "the handle.  This is because some pre-launch operations depend on testing "
14607 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14608 "don't retest features, and so you might see inconsistent results.  Using the "
14609 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14610 "the qemu binary at the same time as the handle is created."
14611 msgstr ""
14612
14613 #. type: =head2
14614 #: ../src/guestfs-actions.pod:5806
14615 msgid "guestfs_set_recovery_proc"
14616 msgstr ""
14617
14618 #. type: verbatim
14619 #: ../src/guestfs-actions.pod:5808
14620 #, no-wrap
14621 msgid ""
14622 " int\n"
14623 " guestfs_set_recovery_proc (guestfs_h *g,\n"
14624 "                            int recoveryproc);\n"
14625 "\n"
14626 msgstr ""
14627
14628 #. type: textblock
14629 #: ../src/guestfs-actions.pod:5812
14630 msgid ""
14631 "If this is called with the parameter C<false> then C<guestfs_launch> does "
14632 "not create a recovery process.  The purpose of the recovery process is to "
14633 "stop runaway qemu processes in the case where the main program aborts "
14634 "abruptly."
14635 msgstr ""
14636
14637 #. type: textblock
14638 #: ../src/guestfs-actions.pod:5817
14639 msgid ""
14640 "This only has any effect if called before C<guestfs_launch>, and the default "
14641 "is true."
14642 msgstr ""
14643
14644 #. type: textblock
14645 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3910
14646 msgid ""
14647 "About the only time when you would want to disable this is if the main "
14648 "process will fork itself into the background (\"daemonize\" itself).  In "
14649 "this case the recovery process thinks that the main program has disappeared "
14650 "and so kills qemu, which is not very helpful."
14651 msgstr ""
14652
14653 #. type: =head2
14654 #: ../src/guestfs-actions.pod:5830
14655 msgid "guestfs_set_selinux"
14656 msgstr ""
14657
14658 #. type: verbatim
14659 #: ../src/guestfs-actions.pod:5832
14660 #, no-wrap
14661 msgid ""
14662 " int\n"
14663 " guestfs_set_selinux (guestfs_h *g,\n"
14664 "                      int selinux);\n"
14665 "\n"
14666 msgstr ""
14667
14668 #. type: textblock
14669 #: ../src/guestfs-actions.pod:5836 ../fish/guestfish-actions.pod:3922
14670 msgid ""
14671 "This sets the selinux flag that is passed to the appliance at boot time.  "
14672 "The default is C<selinux=0> (disabled)."
14673 msgstr ""
14674
14675 #. type: textblock
14676 #: ../src/guestfs-actions.pod:5839 ../fish/guestfish-actions.pod:3925
14677 msgid ""
14678 "Note that if SELinux is enabled, it is always in Permissive mode "
14679 "(C<enforcing=0>)."
14680 msgstr ""
14681
14682 #. type: =head2
14683 #: ../src/guestfs-actions.pod:5849
14684 msgid "guestfs_set_trace"
14685 msgstr ""
14686
14687 #. type: verbatim
14688 #: ../src/guestfs-actions.pod:5851
14689 #, no-wrap
14690 msgid ""
14691 " int\n"
14692 " guestfs_set_trace (guestfs_h *g,\n"
14693 "                    int trace);\n"
14694 "\n"
14695 msgstr ""
14696
14697 #. type: textblock
14698 #: ../src/guestfs-actions.pod:5855 ../fish/guestfish-actions.pod:3937
14699 msgid ""
14700 "If the command trace flag is set to 1, then commands are printed on stderr "
14701 "before they are executed in a format which is very similar to the one used "
14702 "by guestfish.  In other words, you can run a program with this enabled, and "
14703 "you will get out a script which you can feed to guestfish to perform the "
14704 "same set of actions."
14705 msgstr ""
14706
14707 #. type: textblock
14708 #: ../src/guestfs-actions.pod:5862 ../fish/guestfish-actions.pod:3944
14709 msgid ""
14710 "If you want to trace C API calls into libguestfs (and other libraries) then "
14711 "possibly a better way is to use the external ltrace(1) command."
14712 msgstr ""
14713
14714 #. type: textblock
14715 #: ../src/guestfs-actions.pod:5866 ../fish/guestfish-actions.pod:3948
14716 msgid ""
14717 "Command traces are disabled unless the environment variable "
14718 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14719 msgstr ""
14720
14721 #. type: =head2
14722 #: ../src/guestfs-actions.pod:5873
14723 msgid "guestfs_set_verbose"
14724 msgstr ""
14725
14726 #. type: verbatim
14727 #: ../src/guestfs-actions.pod:5875
14728 #, no-wrap
14729 msgid ""
14730 " int\n"
14731 " guestfs_set_verbose (guestfs_h *g,\n"
14732 "                      int verbose);\n"
14733 "\n"
14734 msgstr ""
14735
14736 #. type: textblock
14737 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3957
14738 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
14739 msgstr ""
14740
14741 #. type: textblock
14742 #: ../src/guestfs-actions.pod:5881 ../fish/guestfish-actions.pod:3959
14743 msgid ""
14744 "Verbose messages are disabled unless the environment variable "
14745 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14746 msgstr ""
14747
14748 #. type: =head2
14749 #: ../src/guestfs-actions.pod:5888
14750 msgid "guestfs_setcon"
14751 msgstr ""
14752
14753 #. type: verbatim
14754 #: ../src/guestfs-actions.pod:5890
14755 #, no-wrap
14756 msgid ""
14757 " int\n"
14758 " guestfs_setcon (guestfs_h *g,\n"
14759 "                 const char *context);\n"
14760 "\n"
14761 msgstr ""
14762
14763 #. type: textblock
14764 #: ../src/guestfs-actions.pod:5894 ../fish/guestfish-actions.pod:3966
14765 msgid ""
14766 "This sets the SELinux security context of the daemon to the string "
14767 "C<context>."
14768 msgstr ""
14769
14770 #. type: textblock
14771 #: ../src/guestfs-actions.pod:5897 ../fish/guestfish-actions.pod:3969
14772 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14773 msgstr ""
14774
14775 #. type: =head2
14776 #: ../src/guestfs-actions.pod:5903
14777 msgid "guestfs_setxattr"
14778 msgstr ""
14779
14780 #. type: verbatim
14781 #: ../src/guestfs-actions.pod:5905
14782 #, no-wrap
14783 msgid ""
14784 " int\n"
14785 " guestfs_setxattr (guestfs_h *g,\n"
14786 "                   const char *xattr,\n"
14787 "                   const char *val,\n"
14788 "                   int vallen,\n"
14789 "                   const char *path);\n"
14790 "\n"
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3975
14795 msgid ""
14796 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14797 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14798 msgstr ""
14799
14800 #. type: textblock
14801 #: ../src/guestfs-actions.pod:5916
14802 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14803 msgstr ""
14804
14805 #. type: =head2
14806 #: ../src/guestfs-actions.pod:5922
14807 msgid "guestfs_sfdisk"
14808 msgstr ""
14809
14810 #. type: verbatim
14811 #: ../src/guestfs-actions.pod:5924
14812 #, no-wrap
14813 msgid ""
14814 " int\n"
14815 " guestfs_sfdisk (guestfs_h *g,\n"
14816 "                 const char *device,\n"
14817 "                 int cyls,\n"
14818 "                 int heads,\n"
14819 "                 int sectors,\n"
14820 "                 char *const *lines);\n"
14821 "\n"
14822 msgstr ""
14823
14824 #. type: textblock
14825 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3985
14826 msgid ""
14827 "This is a direct interface to the L<sfdisk(8)> program for creating "
14828 "partitions on block devices."
14829 msgstr ""
14830
14831 #. type: textblock
14832 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3988
14833 msgid "C<device> should be a block device, for example C</dev/sda>."
14834 msgstr ""
14835
14836 #. type: textblock
14837 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3990
14838 msgid ""
14839 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14840 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
14841 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14842 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14843 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14844 "the kernel) cannot work out the right geometry and you will need to tell it."
14845 msgstr ""
14846
14847 #. type: textblock
14848 #: ../src/guestfs-actions.pod:5945 ../fish/guestfish-actions.pod:3998
14849 msgid ""
14850 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14851 "refer to the L<sfdisk(8)> manpage."
14852 msgstr ""
14853
14854 #. type: textblock
14855 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4001
14856 msgid ""
14857 "To create a single partition occupying the whole disk, you would pass "
14858 "C<lines> as a single element list, when the single element being the string "
14859 "C<,> (comma)."
14860 msgstr ""
14861
14862 #. type: textblock
14863 #: ../src/guestfs-actions.pod:5952
14864 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14865 msgstr ""
14866
14867 #. type: =head2
14868 #: ../src/guestfs-actions.pod:5962
14869 msgid "guestfs_sfdiskM"
14870 msgstr ""
14871
14872 #. type: verbatim
14873 #: ../src/guestfs-actions.pod:5964
14874 #, no-wrap
14875 msgid ""
14876 " int\n"
14877 " guestfs_sfdiskM (guestfs_h *g,\n"
14878 "                  const char *device,\n"
14879 "                  char *const *lines);\n"
14880 "\n"
14881 msgstr ""
14882
14883 #. type: textblock
14884 #: ../src/guestfs-actions.pod:5969
14885 msgid ""
14886 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14887 "partition sizes are specified in megabytes only (rounded to the nearest "
14888 "cylinder) and you don't need to specify the cyls, heads and sectors "
14889 "parameters which were rarely if ever used anyway."
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../src/guestfs-actions.pod:5975
14894 msgid ""
14895 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14896 "C<guestfs_part_disk>"
14897 msgstr ""
14898
14899 #. type: =head2
14900 #: ../src/guestfs-actions.pod:5985
14901 msgid "guestfs_sfdisk_N"
14902 msgstr ""
14903
14904 #. type: verbatim
14905 #: ../src/guestfs-actions.pod:5987
14906 #, no-wrap
14907 msgid ""
14908 " int\n"
14909 " guestfs_sfdisk_N (guestfs_h *g,\n"
14910 "                   const char *device,\n"
14911 "                   int partnum,\n"
14912 "                   int cyls,\n"
14913 "                   int heads,\n"
14914 "                   int sectors,\n"
14915 "                   const char *line);\n"
14916 "\n"
14917 msgstr ""
14918
14919 #. type: textblock
14920 #: ../src/guestfs-actions.pod:5996 ../fish/guestfish-actions.pod:4031
14921 msgid ""
14922 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14923 "(note: C<n> counts from 1)."
14924 msgstr ""
14925
14926 #. type: textblock
14927 #: ../src/guestfs-actions.pod:5999
14928 msgid ""
14929 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14930 "for the cyls/heads/sectors parameters."
14931 msgstr ""
14932
14933 #. type: textblock
14934 #: ../src/guestfs-actions.pod:6002
14935 msgid "See also: C<guestfs_part_add>"
14936 msgstr ""
14937
14938 #. type: =head2
14939 #: ../src/guestfs-actions.pod:6011
14940 msgid "guestfs_sfdisk_disk_geometry"
14941 msgstr ""
14942
14943 #. type: verbatim
14944 #: ../src/guestfs-actions.pod:6013
14945 #, no-wrap
14946 msgid ""
14947 " char *\n"
14948 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14949 "                               const char *device);\n"
14950 "\n"
14951 msgstr ""
14952
14953 #. type: textblock
14954 #: ../src/guestfs-actions.pod:6017
14955 msgid ""
14956 "This displays the disk geometry of C<device> read from the partition table.  "
14957 "Especially in the case where the underlying block device has been resized, "
14958 "this can be different from the kernel's idea of the geometry (see "
14959 "C<guestfs_sfdisk_kernel_geometry>)."
14960 msgstr ""
14961
14962 #. type: textblock
14963 #: ../src/guestfs-actions.pod:6022 ../src/guestfs-actions.pod:6038 ../fish/guestfish-actions.pod:4051 ../fish/guestfish-actions.pod:4060
14964 msgid "The result is in human-readable format, and not designed to be parsed."
14965 msgstr ""
14966
14967 #. type: =head2
14968 #: ../src/guestfs-actions.pod:6030
14969 msgid "guestfs_sfdisk_kernel_geometry"
14970 msgstr ""
14971
14972 #. type: verbatim
14973 #: ../src/guestfs-actions.pod:6032
14974 #, no-wrap
14975 msgid ""
14976 " char *\n"
14977 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14978 "                                 const char *device);\n"
14979 "\n"
14980 msgstr ""
14981
14982 #. type: textblock
14983 #: ../src/guestfs-actions.pod:6036 ../fish/guestfish-actions.pod:4058
14984 msgid "This displays the kernel's idea of the geometry of C<device>."
14985 msgstr ""
14986
14987 #. type: =head2
14988 #: ../src/guestfs-actions.pod:6046
14989 msgid "guestfs_sfdisk_l"
14990 msgstr ""
14991
14992 #. type: verbatim
14993 #: ../src/guestfs-actions.pod:6048
14994 #, no-wrap
14995 msgid ""
14996 " char *\n"
14997 " guestfs_sfdisk_l (guestfs_h *g,\n"
14998 "                   const char *device);\n"
14999 "\n"
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../src/guestfs-actions.pod:6052 ../fish/guestfish-actions.pod:4067
15004 msgid ""
15005 "This displays the partition table on C<device>, in the human-readable output "
15006 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15007 msgstr ""
15008
15009 #. type: textblock
15010 #: ../src/guestfs-actions.pod:6056
15011 msgid "See also: C<guestfs_part_list>"
15012 msgstr ""
15013
15014 #. type: =head2
15015 #: ../src/guestfs-actions.pod:6063
15016 msgid "guestfs_sh"
15017 msgstr ""
15018
15019 #. type: verbatim
15020 #: ../src/guestfs-actions.pod:6065
15021 #, no-wrap
15022 msgid ""
15023 " char *\n"
15024 " guestfs_sh (guestfs_h *g,\n"
15025 "             const char *command);\n"
15026 "\n"
15027 msgstr ""
15028
15029 #. type: textblock
15030 #: ../src/guestfs-actions.pod:6069 ../fish/guestfish-actions.pod:4077
15031 msgid ""
15032 "This call runs a command from the guest filesystem via the guest's "
15033 "C</bin/sh>."
15034 msgstr ""
15035
15036 #. type: textblock
15037 #: ../src/guestfs-actions.pod:6072
15038 msgid "This is like C<guestfs_command>, but passes the command to:"
15039 msgstr ""
15040
15041 #. type: verbatim
15042 #: ../src/guestfs-actions.pod:6074 ../fish/guestfish-actions.pod:4082
15043 #, no-wrap
15044 msgid ""
15045 " /bin/sh -c \"command\"\n"
15046 "\n"
15047 msgstr ""
15048
15049 #. type: textblock
15050 #: ../src/guestfs-actions.pod:6076 ../fish/guestfish-actions.pod:4084
15051 msgid ""
15052 "Depending on the guest's shell, this usually results in wildcards being "
15053 "expanded, shell expressions being interpolated and so on."
15054 msgstr ""
15055
15056 #. type: textblock
15057 #: ../src/guestfs-actions.pod:6080
15058 msgid "All the provisos about C<guestfs_command> apply to this call."
15059 msgstr ""
15060
15061 #. type: =head2
15062 #: ../src/guestfs-actions.pod:6087
15063 msgid "guestfs_sh_lines"
15064 msgstr ""
15065
15066 #. type: verbatim
15067 #: ../src/guestfs-actions.pod:6089
15068 #, no-wrap
15069 msgid ""
15070 " char **\n"
15071 " guestfs_sh_lines (guestfs_h *g,\n"
15072 "                   const char *command);\n"
15073 "\n"
15074 msgstr ""
15075
15076 #. type: textblock
15077 #: ../src/guestfs-actions.pod:6093
15078 msgid ""
15079 "This is the same as C<guestfs_sh>, but splits the result into a list of "
15080 "lines."
15081 msgstr ""
15082
15083 #. type: textblock
15084 #: ../src/guestfs-actions.pod:6096
15085 msgid "See also: C<guestfs_command_lines>"
15086 msgstr ""
15087
15088 #. type: =head2
15089 #: ../src/guestfs-actions.pod:6104
15090 msgid "guestfs_sleep"
15091 msgstr ""
15092
15093 #. type: verbatim
15094 #: ../src/guestfs-actions.pod:6106
15095 #, no-wrap
15096 msgid ""
15097 " int\n"
15098 " guestfs_sleep (guestfs_h *g,\n"
15099 "                int secs);\n"
15100 "\n"
15101 msgstr ""
15102
15103 #. type: textblock
15104 #: ../src/guestfs-actions.pod:6110 ../fish/guestfish-actions.pod:4103
15105 msgid "Sleep for C<secs> seconds."
15106 msgstr ""
15107
15108 #. type: textblock
15109 #: ../src/guestfs-actions.pod:6114
15110 msgid "(Added in 1.0.41)"
15111 msgstr ""
15112
15113 #. type: =head2
15114 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-structs.pod:109
15115 msgid "guestfs_stat"
15116 msgstr ""
15117
15118 #. type: verbatim
15119 #: ../src/guestfs-actions.pod:6118
15120 #, no-wrap
15121 msgid ""
15122 " struct guestfs_stat *\n"
15123 " guestfs_stat (guestfs_h *g,\n"
15124 "               const char *path);\n"
15125 "\n"
15126 msgstr ""
15127
15128 #. type: textblock
15129 #: ../src/guestfs-actions.pod:6124 ../fish/guestfish-actions.pod:4111
15130 msgid "This is the same as the C<stat(2)> system call."
15131 msgstr ""
15132
15133 #. type: =head2
15134 #: ../src/guestfs-actions.pod:6132 ../src/guestfs-structs.pod:135
15135 msgid "guestfs_statvfs"
15136 msgstr ""
15137
15138 #. type: verbatim
15139 #: ../src/guestfs-actions.pod:6134
15140 #, no-wrap
15141 msgid ""
15142 " struct guestfs_statvfs *\n"
15143 " guestfs_statvfs (guestfs_h *g,\n"
15144 "                  const char *path);\n"
15145 "\n"
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4117
15150 msgid ""
15151 "Returns file system statistics for any mounted file system.  C<path> should "
15152 "be a file or directory in the mounted file system (typically it is the mount "
15153 "point itself, but it doesn't need to be)."
15154 msgstr ""
15155
15156 #. type: textblock
15157 #: ../src/guestfs-actions.pod:6142 ../fish/guestfish-actions.pod:4121
15158 msgid "This is the same as the C<statvfs(2)> system call."
15159 msgstr ""
15160
15161 #. type: textblock
15162 #: ../src/guestfs-actions.pod:6144
15163 msgid ""
15164 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
15165 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
15166 msgstr ""
15167
15168 #. type: =head2
15169 #: ../src/guestfs-actions.pod:6150
15170 msgid "guestfs_strings"
15171 msgstr ""
15172
15173 #. type: verbatim
15174 #: ../src/guestfs-actions.pod:6152
15175 #, no-wrap
15176 msgid ""
15177 " char **\n"
15178 " guestfs_strings (guestfs_h *g,\n"
15179 "                  const char *path);\n"
15180 "\n"
15181 msgstr ""
15182
15183 #. type: textblock
15184 #: ../src/guestfs-actions.pod:6156 ../fish/guestfish-actions.pod:4127
15185 msgid ""
15186 "This runs the L<strings(1)> command on a file and returns the list of "
15187 "printable strings found."
15188 msgstr ""
15189
15190 #. type: =head2
15191 #: ../src/guestfs-actions.pod:6168
15192 msgid "guestfs_strings_e"
15193 msgstr ""
15194
15195 #. type: verbatim
15196 #: ../src/guestfs-actions.pod:6170
15197 #, no-wrap
15198 msgid ""
15199 " char **\n"
15200 " guestfs_strings_e (guestfs_h *g,\n"
15201 "                    const char *encoding,\n"
15202 "                    const char *path);\n"
15203 "\n"
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../src/guestfs-actions.pod:6175
15208 msgid ""
15209 "This is like the C<guestfs_strings> command, but allows you to specify the "
15210 "encoding of strings that are looked for in the source file C<path>."
15211 msgstr ""
15212
15213 #. type: textblock
15214 #: ../src/guestfs-actions.pod:6179 ../fish/guestfish-actions.pod:4141
15215 msgid "Allowed encodings are:"
15216 msgstr ""
15217
15218 #. type: =item
15219 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4145
15220 msgid "s"
15221 msgstr ""
15222
15223 #. type: textblock
15224 #: ../src/guestfs-actions.pod:6185
15225 msgid ""
15226 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15227 "ISO-8859-X (this is what C<guestfs_strings> uses)."
15228 msgstr ""
15229
15230 #. type: =item
15231 #: ../src/guestfs-actions.pod:6188 ../fish/guestfish-actions.pod:4150
15232 msgid "S"
15233 msgstr ""
15234
15235 #. type: textblock
15236 #: ../src/guestfs-actions.pod:6190 ../fish/guestfish-actions.pod:4152
15237 msgid "Single 8-bit-byte characters."
15238 msgstr ""
15239
15240 #. type: =item
15241 #: ../src/guestfs-actions.pod:6192 ../fish/guestfish-actions.pod:4154
15242 msgid "b"
15243 msgstr ""
15244
15245 #. type: textblock
15246 #: ../src/guestfs-actions.pod:6194 ../fish/guestfish-actions.pod:4156
15247 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15248 msgstr ""
15249
15250 #. type: =item
15251 #: ../src/guestfs-actions.pod:6197 ../fish/guestfish-actions.pod:4159
15252 msgid "l (lower case letter L)"
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4161
15257 msgid ""
15258 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15259 "examining binaries in Windows guests."
15260 msgstr ""
15261
15262 #. type: =item
15263 #: ../src/guestfs-actions.pod:6202 ../fish/guestfish-actions.pod:4164
15264 msgid "B"
15265 msgstr ""
15266
15267 #. type: textblock
15268 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4166
15269 msgid "32-bit big endian such as UCS-4BE."
15270 msgstr ""
15271
15272 #. type: =item
15273 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4168
15274 msgid "L"
15275 msgstr ""
15276
15277 #. type: textblock
15278 #: ../src/guestfs-actions.pod:6208 ../fish/guestfish-actions.pod:4170
15279 msgid "32-bit little endian such as UCS-4LE."
15280 msgstr ""
15281
15282 #. type: textblock
15283 #: ../src/guestfs-actions.pod:6212 ../fish/guestfish-actions.pod:4174
15284 msgid "The returned strings are transcoded to UTF-8."
15285 msgstr ""
15286
15287 #. type: =head2
15288 #: ../src/guestfs-actions.pod:6223
15289 msgid "guestfs_swapoff_device"
15290 msgstr ""
15291
15292 #. type: verbatim
15293 #: ../src/guestfs-actions.pod:6225
15294 #, no-wrap
15295 msgid ""
15296 " int\n"
15297 " guestfs_swapoff_device (guestfs_h *g,\n"
15298 "                         const char *device);\n"
15299 "\n"
15300 msgstr ""
15301
15302 #. type: textblock
15303 #: ../src/guestfs-actions.pod:6229
15304 msgid ""
15305 "This command disables the libguestfs appliance swap device or partition "
15306 "named C<device>.  See C<guestfs_swapon_device>."
15307 msgstr ""
15308
15309 #. type: =head2
15310 #: ../src/guestfs-actions.pod:6237
15311 msgid "guestfs_swapoff_file"
15312 msgstr ""
15313
15314 #. type: verbatim
15315 #: ../src/guestfs-actions.pod:6239
15316 #, no-wrap
15317 msgid ""
15318 " int\n"
15319 " guestfs_swapoff_file (guestfs_h *g,\n"
15320 "                       const char *file);\n"
15321 "\n"
15322 msgstr ""
15323
15324 #. type: textblock
15325 #: ../src/guestfs-actions.pod:6243 ../fish/guestfish-actions.pod:4191
15326 msgid "This command disables the libguestfs appliance swap on file."
15327 msgstr ""
15328
15329 #. type: =head2
15330 #: ../src/guestfs-actions.pod:6249
15331 msgid "guestfs_swapoff_label"
15332 msgstr ""
15333
15334 #. type: verbatim
15335 #: ../src/guestfs-actions.pod:6251
15336 #, no-wrap
15337 msgid ""
15338 " int\n"
15339 " guestfs_swapoff_label (guestfs_h *g,\n"
15340 "                        const char *label);\n"
15341 "\n"
15342 msgstr ""
15343
15344 #. type: textblock
15345 #: ../src/guestfs-actions.pod:6255 ../fish/guestfish-actions.pod:4197
15346 msgid ""
15347 "This command disables the libguestfs appliance swap on labeled swap "
15348 "partition."
15349 msgstr ""
15350
15351 #. type: =head2
15352 #: ../src/guestfs-actions.pod:6262
15353 msgid "guestfs_swapoff_uuid"
15354 msgstr ""
15355
15356 #. type: verbatim
15357 #: ../src/guestfs-actions.pod:6264
15358 #, no-wrap
15359 msgid ""
15360 " int\n"
15361 " guestfs_swapoff_uuid (guestfs_h *g,\n"
15362 "                       const char *uuid);\n"
15363 "\n"
15364 msgstr ""
15365
15366 #. type: textblock
15367 #: ../src/guestfs-actions.pod:6268 ../fish/guestfish-actions.pod:4204
15368 msgid ""
15369 "This command disables the libguestfs appliance swap partition with the given "
15370 "UUID."
15371 msgstr ""
15372
15373 #. type: =head2
15374 #: ../src/guestfs-actions.pod:6275
15375 msgid "guestfs_swapon_device"
15376 msgstr ""
15377
15378 #. type: verbatim
15379 #: ../src/guestfs-actions.pod:6277
15380 #, no-wrap
15381 msgid ""
15382 " int\n"
15383 " guestfs_swapon_device (guestfs_h *g,\n"
15384 "                        const char *device);\n"
15385 "\n"
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../src/guestfs-actions.pod:6281
15390 msgid ""
15391 "This command enables the libguestfs appliance to use the swap device or "
15392 "partition named C<device>.  The increased memory is made available for all "
15393 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
15394 msgstr ""
15395
15396 #. type: textblock
15397 #: ../src/guestfs-actions.pod:6286 ../fish/guestfish-actions.pod:4216
15398 msgid ""
15399 "Note that you should not swap to existing guest swap partitions unless you "
15400 "know what you are doing.  They may contain hibernation information, or other "
15401 "information that the guest doesn't want you to trash.  You also risk leaking "
15402 "information about the host to the guest this way.  Instead, attach a new "
15403 "host device to the guest and swap on that."
15404 msgstr ""
15405
15406 #. type: =head2
15407 #: ../src/guestfs-actions.pod:6297
15408 msgid "guestfs_swapon_file"
15409 msgstr ""
15410
15411 #. type: verbatim
15412 #: ../src/guestfs-actions.pod:6299
15413 #, no-wrap
15414 msgid ""
15415 " int\n"
15416 " guestfs_swapon_file (guestfs_h *g,\n"
15417 "                      const char *file);\n"
15418 "\n"
15419 msgstr ""
15420
15421 #. type: textblock
15422 #: ../src/guestfs-actions.pod:6303
15423 msgid ""
15424 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
15425 "notes."
15426 msgstr ""
15427
15428 #. type: =head2
15429 #: ../src/guestfs-actions.pod:6310
15430 msgid "guestfs_swapon_label"
15431 msgstr ""
15432
15433 #. type: verbatim
15434 #: ../src/guestfs-actions.pod:6312
15435 #, no-wrap
15436 msgid ""
15437 " int\n"
15438 " guestfs_swapon_label (guestfs_h *g,\n"
15439 "                       const char *label);\n"
15440 "\n"
15441 msgstr ""
15442
15443 #. type: textblock
15444 #: ../src/guestfs-actions.pod:6316
15445 msgid ""
15446 "This command enables swap to a labeled swap partition.  See "
15447 "C<guestfs_swapon_device> for other notes."
15448 msgstr ""
15449
15450 #. type: =head2
15451 #: ../src/guestfs-actions.pod:6323
15452 msgid "guestfs_swapon_uuid"
15453 msgstr ""
15454
15455 #. type: verbatim
15456 #: ../src/guestfs-actions.pod:6325
15457 #, no-wrap
15458 msgid ""
15459 " int\n"
15460 " guestfs_swapon_uuid (guestfs_h *g,\n"
15461 "                      const char *uuid);\n"
15462 "\n"
15463 msgstr ""
15464
15465 #. type: textblock
15466 #: ../src/guestfs-actions.pod:6329
15467 msgid ""
15468 "This command enables swap to a swap partition with the given UUID.  See "
15469 "C<guestfs_swapon_device> for other notes."
15470 msgstr ""
15471
15472 #. type: =head2
15473 #: ../src/guestfs-actions.pod:6336
15474 msgid "guestfs_sync"
15475 msgstr ""
15476
15477 #. type: verbatim
15478 #: ../src/guestfs-actions.pod:6338
15479 #, no-wrap
15480 msgid ""
15481 " int\n"
15482 " guestfs_sync (guestfs_h *g);\n"
15483 "\n"
15484 msgstr ""
15485
15486 #. type: textblock
15487 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4248
15488 msgid ""
15489 "This syncs the disk, so that any writes are flushed through to the "
15490 "underlying disk image."
15491 msgstr ""
15492
15493 #. type: textblock
15494 #: ../src/guestfs-actions.pod:6344 ../fish/guestfish-actions.pod:4251
15495 msgid ""
15496 "You should always call this if you have modified a disk image, before "
15497 "closing the handle."
15498 msgstr ""
15499
15500 #. type: =head2
15501 #: ../src/guestfs-actions.pod:6351
15502 msgid "guestfs_tail"
15503 msgstr ""
15504
15505 #. type: verbatim
15506 #: ../src/guestfs-actions.pod:6353
15507 #, no-wrap
15508 msgid ""
15509 " char **\n"
15510 " guestfs_tail (guestfs_h *g,\n"
15511 "               const char *path);\n"
15512 "\n"
15513 msgstr ""
15514
15515 #. type: textblock
15516 #: ../src/guestfs-actions.pod:6357 ../fish/guestfish-actions.pod:4258
15517 msgid "This command returns up to the last 10 lines of a file as a list of strings."
15518 msgstr ""
15519
15520 #. type: =head2
15521 #: ../src/guestfs-actions.pod:6369
15522 msgid "guestfs_tail_n"
15523 msgstr ""
15524
15525 #. type: verbatim
15526 #: ../src/guestfs-actions.pod:6371
15527 #, no-wrap
15528 msgid ""
15529 " char **\n"
15530 " guestfs_tail_n (guestfs_h *g,\n"
15531 "                 int nrlines,\n"
15532 "                 const char *path);\n"
15533 "\n"
15534 msgstr ""
15535
15536 #. type: textblock
15537 #: ../src/guestfs-actions.pod:6376 ../fish/guestfish-actions.pod:4268
15538 msgid ""
15539 "If the parameter C<nrlines> is a positive number, this returns the last "
15540 "C<nrlines> lines of the file C<path>."
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4271
15545 msgid ""
15546 "If the parameter C<nrlines> is a negative number, this returns lines from "
15547 "the file C<path>, starting with the C<-nrlines>th line."
15548 msgstr ""
15549
15550 #. type: =head2
15551 #: ../src/guestfs-actions.pod:6393
15552 msgid "guestfs_tar_in"
15553 msgstr ""
15554
15555 #. type: verbatim
15556 #: ../src/guestfs-actions.pod:6395
15557 #, no-wrap
15558 msgid ""
15559 " int\n"
15560 " guestfs_tar_in (guestfs_h *g,\n"
15561 "                 const char *tarfile,\n"
15562 "                 const char *directory);\n"
15563 "\n"
15564 msgstr ""
15565
15566 #. type: textblock
15567 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4283
15568 msgid ""
15569 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15570 "tar file) into C<directory>."
15571 msgstr ""
15572
15573 #. type: textblock
15574 #: ../src/guestfs-actions.pod:6403
15575 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
15576 msgstr ""
15577
15578 #. type: textblock
15579 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6457
15580 msgid "(Added in 1.0.3)"
15581 msgstr ""
15582
15583 #. type: =head2
15584 #: ../src/guestfs-actions.pod:6410
15585 msgid "guestfs_tar_out"
15586 msgstr ""
15587
15588 #. type: verbatim
15589 #: ../src/guestfs-actions.pod:6412
15590 #, no-wrap
15591 msgid ""
15592 " int\n"
15593 " guestfs_tar_out (guestfs_h *g,\n"
15594 "                  const char *directory,\n"
15595 "                  const char *tarfile);\n"
15596 "\n"
15597 msgstr ""
15598
15599 #. type: textblock
15600 #: ../src/guestfs-actions.pod:6417 ../fish/guestfish-actions.pod:4295
15601 msgid ""
15602 "This command packs the contents of C<directory> and downloads it to local "
15603 "file C<tarfile>."
15604 msgstr ""
15605
15606 #. type: textblock
15607 #: ../src/guestfs-actions.pod:6420
15608 msgid ""
15609 "To download a compressed tarball, use C<guestfs_tgz_out> or "
15610 "C<guestfs_txz_out>."
15611 msgstr ""
15612
15613 #. type: =head2
15614 #: ../src/guestfs-actions.pod:6427
15615 msgid "guestfs_tgz_in"
15616 msgstr ""
15617
15618 #. type: verbatim
15619 #: ../src/guestfs-actions.pod:6429
15620 #, no-wrap
15621 msgid ""
15622 " int\n"
15623 " guestfs_tgz_in (guestfs_h *g,\n"
15624 "                 const char *tarball,\n"
15625 "                 const char *directory);\n"
15626 "\n"
15627 msgstr ""
15628
15629 #. type: textblock
15630 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4307
15631 msgid ""
15632 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15633 "tar file) into C<directory>."
15634 msgstr ""
15635
15636 #. type: textblock
15637 #: ../src/guestfs-actions.pod:6437
15638 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
15639 msgstr ""
15640
15641 #. type: =head2
15642 #: ../src/guestfs-actions.pod:6443
15643 msgid "guestfs_tgz_out"
15644 msgstr ""
15645
15646 #. type: verbatim
15647 #: ../src/guestfs-actions.pod:6445
15648 #, no-wrap
15649 msgid ""
15650 " int\n"
15651 " guestfs_tgz_out (guestfs_h *g,\n"
15652 "                  const char *directory,\n"
15653 "                  const char *tarball);\n"
15654 "\n"
15655 msgstr ""
15656
15657 #. type: textblock
15658 #: ../src/guestfs-actions.pod:6450 ../fish/guestfish-actions.pod:4318
15659 msgid ""
15660 "This command packs the contents of C<directory> and downloads it to local "
15661 "file C<tarball>."
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../src/guestfs-actions.pod:6453
15666 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
15667 msgstr ""
15668
15669 #. type: =head2
15670 #: ../src/guestfs-actions.pod:6459
15671 msgid "guestfs_touch"
15672 msgstr ""
15673
15674 #. type: verbatim
15675 #: ../src/guestfs-actions.pod:6461
15676 #, no-wrap
15677 msgid ""
15678 " int\n"
15679 " guestfs_touch (guestfs_h *g,\n"
15680 "                const char *path);\n"
15681 "\n"
15682 msgstr ""
15683
15684 #. type: textblock
15685 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4329
15686 msgid ""
15687 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15688 "timestamps on a file, or, if the file does not exist, to create a new "
15689 "zero-length file."
15690 msgstr ""
15691
15692 #. type: textblock
15693 #: ../src/guestfs-actions.pod:6469 ../fish/guestfish-actions.pod:4333
15694 msgid ""
15695 "This command only works on regular files, and will fail on other file types "
15696 "such as directories, symbolic links, block special etc."
15697 msgstr ""
15698
15699 #. type: =head2
15700 #: ../src/guestfs-actions.pod:6476
15701 msgid "guestfs_truncate"
15702 msgstr ""
15703
15704 #. type: verbatim
15705 #: ../src/guestfs-actions.pod:6478
15706 #, no-wrap
15707 msgid ""
15708 " int\n"
15709 " guestfs_truncate (guestfs_h *g,\n"
15710 "                   const char *path);\n"
15711 "\n"
15712 msgstr ""
15713
15714 #. type: textblock
15715 #: ../src/guestfs-actions.pod:6482 ../fish/guestfish-actions.pod:4340
15716 msgid ""
15717 "This command truncates C<path> to a zero-length file.  The file must exist "
15718 "already."
15719 msgstr ""
15720
15721 #. type: =head2
15722 #: ../src/guestfs-actions.pod:6489
15723 msgid "guestfs_truncate_size"
15724 msgstr ""
15725
15726 #. type: verbatim
15727 #: ../src/guestfs-actions.pod:6491
15728 #, no-wrap
15729 msgid ""
15730 " int\n"
15731 " guestfs_truncate_size (guestfs_h *g,\n"
15732 "                        const char *path,\n"
15733 "                        int64_t size);\n"
15734 "\n"
15735 msgstr ""
15736
15737 #. type: textblock
15738 #: ../src/guestfs-actions.pod:6496 ../fish/guestfish-actions.pod:4347
15739 msgid ""
15740 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15741 "already."
15742 msgstr ""
15743
15744 #. type: textblock
15745 #: ../src/guestfs-actions.pod:6499
15746 msgid ""
15747 "If the current file size is less than C<size> then the file is extended to "
15748 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15749 "blocks are not allocated for the file until you write to it).  To create a "
15750 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
15751 msgstr ""
15752
15753 #. type: =head2
15754 #: ../src/guestfs-actions.pod:6509
15755 msgid "guestfs_tune2fs_l"
15756 msgstr ""
15757
15758 #. type: verbatim
15759 #: ../src/guestfs-actions.pod:6511
15760 #, no-wrap
15761 msgid ""
15762 " char **\n"
15763 " guestfs_tune2fs_l (guestfs_h *g,\n"
15764 "                    const char *device);\n"
15765 "\n"
15766 msgstr ""
15767
15768 #. type: textblock
15769 #: ../src/guestfs-actions.pod:6515 ../fish/guestfish-actions.pod:4360
15770 msgid ""
15771 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15772 "C<device>."
15773 msgstr ""
15774
15775 #. type: textblock
15776 #: ../src/guestfs-actions.pod:6518 ../fish/guestfish-actions.pod:4363
15777 msgid ""
15778 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15779 "for more details.  The list of fields returned isn't clearly defined, and "
15780 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15781 "and the filesystem itself."
15782 msgstr ""
15783
15784 #. type: =head2
15785 #: ../src/guestfs-actions.pod:6531
15786 msgid "guestfs_txz_in"
15787 msgstr ""
15788
15789 #. type: verbatim
15790 #: ../src/guestfs-actions.pod:6533
15791 #, no-wrap
15792 msgid ""
15793 " int\n"
15794 " guestfs_txz_in (guestfs_h *g,\n"
15795 "                 const char *tarball,\n"
15796 "                 const char *directory);\n"
15797 "\n"
15798 msgstr ""
15799
15800 #. type: textblock
15801 #: ../src/guestfs-actions.pod:6538 ../fish/guestfish-actions.pod:4372
15802 msgid ""
15803 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15804 "tar file) into C<directory>."
15805 msgstr ""
15806
15807 #. type: =head2
15808 #: ../src/guestfs-actions.pod:6545
15809 msgid "guestfs_txz_out"
15810 msgstr ""
15811
15812 #. type: verbatim
15813 #: ../src/guestfs-actions.pod:6547
15814 #, no-wrap
15815 msgid ""
15816 " int\n"
15817 " guestfs_txz_out (guestfs_h *g,\n"
15818 "                  const char *directory,\n"
15819 "                  const char *tarball);\n"
15820 "\n"
15821 msgstr ""
15822
15823 #. type: textblock
15824 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4381
15825 msgid ""
15826 "This command packs the contents of C<directory> and downloads it to local "
15827 "file C<tarball> (as an xz compressed tar archive)."
15828 msgstr ""
15829
15830 #. type: =head2
15831 #: ../src/guestfs-actions.pod:6559
15832 msgid "guestfs_umask"
15833 msgstr ""
15834
15835 #. type: verbatim
15836 #: ../src/guestfs-actions.pod:6561
15837 #, no-wrap
15838 msgid ""
15839 " int\n"
15840 " guestfs_umask (guestfs_h *g,\n"
15841 "                int mask);\n"
15842 "\n"
15843 msgstr ""
15844
15845 #. type: textblock
15846 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4390
15847 msgid ""
15848 "This function sets the mask used for creating new files and device nodes to "
15849 "C<mask & 0777>."
15850 msgstr ""
15851
15852 #. type: textblock
15853 #: ../src/guestfs-actions.pod:6568 ../fish/guestfish-actions.pod:4393
15854 msgid ""
15855 "Typical umask values would be C<022> which creates new files with "
15856 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15857 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15858 msgstr ""
15859
15860 #. type: textblock
15861 #: ../src/guestfs-actions.pod:6573 ../fish/guestfish-actions.pod:4398
15862 msgid ""
15863 "The default umask is C<022>.  This is important because it means that "
15864 "directories and device nodes will be created with C<0644> or C<0755> mode "
15865 "even if you specify C<0777>."
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../src/guestfs-actions.pod:6577
15870 msgid ""
15871 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15872 "C<guestfs_mkdir>."
15873 msgstr ""
15874
15875 #. type: textblock
15876 #: ../src/guestfs-actions.pod:6580 ../fish/guestfish-actions.pod:4405
15877 msgid "This call returns the previous umask."
15878 msgstr ""
15879
15880 #. type: =head2
15881 #: ../src/guestfs-actions.pod:6586
15882 msgid "guestfs_umount"
15883 msgstr ""
15884
15885 #. type: verbatim
15886 #: ../src/guestfs-actions.pod:6588
15887 #, no-wrap
15888 msgid ""
15889 " int\n"
15890 " guestfs_umount (guestfs_h *g,\n"
15891 "                 const char *pathordevice);\n"
15892 "\n"
15893 msgstr ""
15894
15895 #. type: textblock
15896 #: ../src/guestfs-actions.pod:6592 ../fish/guestfish-actions.pod:4413
15897 msgid ""
15898 "This unmounts the given filesystem.  The filesystem may be specified either "
15899 "by its mountpoint (path) or the device which contains the filesystem."
15900 msgstr ""
15901
15902 #. type: =head2
15903 #: ../src/guestfs-actions.pod:6600
15904 msgid "guestfs_umount_all"
15905 msgstr ""
15906
15907 #. type: verbatim
15908 #: ../src/guestfs-actions.pod:6602
15909 #, no-wrap
15910 msgid ""
15911 " int\n"
15912 " guestfs_umount_all (guestfs_h *g);\n"
15913 "\n"
15914 msgstr ""
15915
15916 #. type: textblock
15917 #: ../src/guestfs-actions.pod:6605 ../fish/guestfish-actions.pod:4423
15918 msgid "This unmounts all mounted filesystems."
15919 msgstr ""
15920
15921 #. type: textblock
15922 #: ../src/guestfs-actions.pod:6607 ../fish/guestfish-actions.pod:4425
15923 msgid "Some internal mounts are not unmounted by this call."
15924 msgstr ""
15925
15926 #. type: =head2
15927 #: ../src/guestfs-actions.pod:6613
15928 msgid "guestfs_upload"
15929 msgstr ""
15930
15931 #. type: verbatim
15932 #: ../src/guestfs-actions.pod:6615
15933 #, no-wrap
15934 msgid ""
15935 " int\n"
15936 " guestfs_upload (guestfs_h *g,\n"
15937 "                 const char *filename,\n"
15938 "                 const char *remotefilename);\n"
15939 "\n"
15940 msgstr ""
15941
15942 #. type: textblock
15943 #: ../src/guestfs-actions.pod:6620 ../src/guestfs-actions.pod:6644 ../fish/guestfish-actions.pod:4431 ../fish/guestfish-actions.pod:4444
15944 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15945 msgstr ""
15946
15947 #. type: textblock
15948 #: ../src/guestfs-actions.pod:6625
15949 msgid "See also C<guestfs_download>."
15950 msgstr ""
15951
15952 #. type: =head2
15953 #: ../src/guestfs-actions.pod:6636
15954 msgid "guestfs_upload_offset"
15955 msgstr ""
15956
15957 #. type: verbatim
15958 #: ../src/guestfs-actions.pod:6638
15959 #, no-wrap
15960 msgid ""
15961 " int\n"
15962 " guestfs_upload_offset (guestfs_h *g,\n"
15963 "                        const char *filename,\n"
15964 "                        const char *remotefilename,\n"
15965 "                        int64_t offset);\n"
15966 "\n"
15967 msgstr ""
15968
15969 #. type: textblock
15970 #: ../src/guestfs-actions.pod:6647 ../fish/guestfish-actions.pod:4447
15971 msgid ""
15972 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15973 "The intention is to overwrite parts of existing files or devices, although "
15974 "if a non-existant file is specified then it is created with a \"hole\" "
15975 "before C<offset>.  The size of the data written is implicit in the size of "
15976 "the source C<filename>."
15977 msgstr ""
15978
15979 #. type: textblock
15980 #: ../src/guestfs-actions.pod:6654
15981 msgid ""
15982 "Note that there is no limit on the amount of data that can be uploaded with "
15983 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15984 "full amount unless an error occurs."
15985 msgstr ""
15986
15987 #. type: textblock
15988 #: ../src/guestfs-actions.pod:6659
15989 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15990 msgstr ""
15991
15992 #. type: =head2
15993 #: ../src/guestfs-actions.pod:6670
15994 msgid "guestfs_utimens"
15995 msgstr ""
15996
15997 #. type: verbatim
15998 #: ../src/guestfs-actions.pod:6672
15999 #, no-wrap
16000 msgid ""
16001 " int\n"
16002 " guestfs_utimens (guestfs_h *g,\n"
16003 "                  const char *path,\n"
16004 "                  int64_t atsecs,\n"
16005 "                  int64_t atnsecs,\n"
16006 "                  int64_t mtsecs,\n"
16007 "                  int64_t mtnsecs);\n"
16008 "\n"
16009 msgstr ""
16010
16011 #. type: textblock
16012 #: ../src/guestfs-actions.pod:6680 ../fish/guestfish-actions.pod:4467
16013 msgid "This command sets the timestamps of a file with nanosecond precision."
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4470
16018 msgid ""
16019 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16020 "from the epoch."
16021 msgstr ""
16022
16023 #. type: textblock
16024 #: ../src/guestfs-actions.pod:6686 ../fish/guestfish-actions.pod:4473
16025 msgid ""
16026 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16027 "nanoseconds from the epoch."
16028 msgstr ""
16029
16030 #. type: textblock
16031 #: ../src/guestfs-actions.pod:6689 ../fish/guestfish-actions.pod:4476
16032 msgid ""
16033 "If the C<*nsecs> field contains the special value C<-1> then the "
16034 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16035 "ignored in this case)."
16036 msgstr ""
16037
16038 #. type: textblock
16039 #: ../src/guestfs-actions.pod:6693 ../fish/guestfish-actions.pod:4480
16040 msgid ""
16041 "If the C<*nsecs> field contains the special value C<-2> then the "
16042 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16043 "in this case)."
16044 msgstr ""
16045
16046 #. type: =head2
16047 #: ../src/guestfs-actions.pod:6701 ../src/guestfs-structs.pod:175
16048 msgid "guestfs_version"
16049 msgstr ""
16050
16051 #. type: verbatim
16052 #: ../src/guestfs-actions.pod:6703
16053 #, no-wrap
16054 msgid ""
16055 " struct guestfs_version *\n"
16056 " guestfs_version (guestfs_h *g);\n"
16057 "\n"
16058 msgstr ""
16059
16060 #. type: textblock
16061 #: ../src/guestfs-actions.pod:6706 ../fish/guestfish-actions.pod:4488
16062 msgid "Return the libguestfs version number that the program is linked against."
16063 msgstr ""
16064
16065 #. type: textblock
16066 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4491
16067 msgid ""
16068 "Note that because of dynamic linking this is not necessarily the version of "
16069 "libguestfs that you compiled against.  You can compile the program, and then "
16070 "at runtime dynamically link against a completely different C<libguestfs.so> "
16071 "library."
16072 msgstr ""
16073
16074 #. type: textblock
16075 #: ../src/guestfs-actions.pod:6714 ../fish/guestfish-actions.pod:4496
16076 msgid ""
16077 "This call was added in version C<1.0.58>.  In previous versions of "
16078 "libguestfs there was no way to get the version number.  From C code you can "
16079 "use dynamic linker functions to find out if this symbol exists (if it "
16080 "doesn't, then it's an earlier version)."
16081 msgstr ""
16082
16083 #. type: textblock
16084 #: ../src/guestfs-actions.pod:6720 ../fish/guestfish-actions.pod:4502
16085 msgid ""
16086 "The call returns a structure with four elements.  The first three (C<major>, "
16087 "C<minor> and C<release>) are numbers and correspond to the usual version "
16088 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16089 "but may be used for distro-specific information."
16090 msgstr ""
16091
16092 #. type: textblock
16093 #: ../src/guestfs-actions.pod:6726 ../fish/guestfish-actions.pod:4508
16094 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
16095 msgstr ""
16096
16097 #. type: textblock
16098 #: ../src/guestfs-actions.pod:6729 ../fish/guestfish-actions.pod:4511
16099 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16100 msgstr ""
16101
16102 #. type: textblock
16103 #: ../src/guestfs-actions.pod:6731
16104 msgid ""
16105 "I<Note:> Don't use this call to test for availability of features.  In "
16106 "enterprise distributions we backport features from later versions into "
16107 "earlier versions, making this an unreliable way to test for features.  Use "
16108 "C<guestfs_available> instead."
16109 msgstr ""
16110
16111 #. type: textblock
16112 #: ../src/guestfs-actions.pod:6737
16113 msgid ""
16114 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
16115 "error.  I<The caller must call C<guestfs_free_version> after use>."
16116 msgstr ""
16117
16118 #. type: textblock
16119 #: ../src/guestfs-actions.pod:6741
16120 msgid "(Added in 1.0.58)"
16121 msgstr ""
16122
16123 #. type: =head2
16124 #: ../src/guestfs-actions.pod:6743
16125 msgid "guestfs_vfs_label"
16126 msgstr ""
16127
16128 #. type: verbatim
16129 #: ../src/guestfs-actions.pod:6745
16130 #, no-wrap
16131 msgid ""
16132 " char *\n"
16133 " guestfs_vfs_label (guestfs_h *g,\n"
16134 "                    const char *device);\n"
16135 "\n"
16136 msgstr ""
16137
16138 #. type: textblock
16139 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4523
16140 msgid "This returns the filesystem label of the filesystem on C<device>."
16141 msgstr ""
16142
16143 #. type: textblock
16144 #: ../src/guestfs-actions.pod:6752 ../fish/guestfish-actions.pod:4526
16145 msgid "If the filesystem is unlabeled, this returns the empty string."
16146 msgstr ""
16147
16148 #. type: textblock
16149 #: ../src/guestfs-actions.pod:6754
16150 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
16151 msgstr ""
16152
16153 #. type: textblock
16154 #: ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:6796
16155 msgid "(Added in 1.3.18)"
16156 msgstr ""
16157
16158 #. type: =head2
16159 #: ../src/guestfs-actions.pod:6761
16160 msgid "guestfs_vfs_type"
16161 msgstr ""
16162
16163 #. type: verbatim
16164 #: ../src/guestfs-actions.pod:6763
16165 #, no-wrap
16166 msgid ""
16167 " char *\n"
16168 " guestfs_vfs_type (guestfs_h *g,\n"
16169 "                   const char *device);\n"
16170 "\n"
16171 msgstr ""
16172
16173 #. type: textblock
16174 #: ../src/guestfs-actions.pod:6767 ../fish/guestfish-actions.pod:4534
16175 msgid ""
16176 "This command gets the filesystem type corresponding to the filesystem on "
16177 "C<device>."
16178 msgstr ""
16179
16180 #. type: textblock
16181 #: ../src/guestfs-actions.pod:6770 ../fish/guestfish-actions.pod:4537
16182 msgid ""
16183 "For most filesystems, the result is the name of the Linux VFS module which "
16184 "would be used to mount this filesystem if you mounted it without specifying "
16185 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16186 msgstr ""
16187
16188 #. type: =head2
16189 #: ../src/guestfs-actions.pod:6780
16190 msgid "guestfs_vfs_uuid"
16191 msgstr ""
16192
16193 #. type: verbatim
16194 #: ../src/guestfs-actions.pod:6782
16195 #, no-wrap
16196 msgid ""
16197 " char *\n"
16198 " guestfs_vfs_uuid (guestfs_h *g,\n"
16199 "                   const char *device);\n"
16200 "\n"
16201 msgstr ""
16202
16203 #. type: textblock
16204 #: ../src/guestfs-actions.pod:6786 ../fish/guestfish-actions.pod:4546
16205 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16206 msgstr ""
16207
16208 #. type: textblock
16209 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4549
16210 msgid "If the filesystem does not have a UUID, this returns the empty string."
16211 msgstr ""
16212
16213 #. type: textblock
16214 #: ../src/guestfs-actions.pod:6791
16215 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
16216 msgstr ""
16217
16218 #. type: =head2
16219 #: ../src/guestfs-actions.pod:6798
16220 msgid "guestfs_vg_activate"
16221 msgstr ""
16222
16223 #. type: verbatim
16224 #: ../src/guestfs-actions.pod:6800
16225 #, no-wrap
16226 msgid ""
16227 " int\n"
16228 " guestfs_vg_activate (guestfs_h *g,\n"
16229 "                      int activate,\n"
16230 "                      char *const *volgroups);\n"
16231 "\n"
16232 msgstr ""
16233
16234 #. type: textblock
16235 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4557
16236 msgid ""
16237 "This command activates or (if C<activate> is false) deactivates all logical "
16238 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
16239 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
16240 "deactivated, then those devices disappear."
16241 msgstr ""
16242
16243 #. type: textblock
16244 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4563
16245 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16246 msgstr ""
16247
16248 #. type: textblock
16249 #: ../src/guestfs-actions.pod:6813 ../fish/guestfish-actions.pod:4565
16250 msgid ""
16251 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16252 "activated or deactivated."
16253 msgstr ""
16254
16255 #. type: =head2
16256 #: ../src/guestfs-actions.pod:6820
16257 msgid "guestfs_vg_activate_all"
16258 msgstr ""
16259
16260 #. type: verbatim
16261 #: ../src/guestfs-actions.pod:6822
16262 #, no-wrap
16263 msgid ""
16264 " int\n"
16265 " guestfs_vg_activate_all (guestfs_h *g,\n"
16266 "                          int activate);\n"
16267 "\n"
16268 msgstr ""
16269
16270 #. type: textblock
16271 #: ../src/guestfs-actions.pod:6826 ../fish/guestfish-actions.pod:4572
16272 msgid ""
16273 "This command activates or (if C<activate> is false) deactivates all logical "
16274 "volumes in all volume groups.  If activated, then they are made known to the "
16275 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
16276 "those devices disappear."
16277 msgstr ""
16278
16279 #. type: textblock
16280 #: ../src/guestfs-actions.pod:6832 ../fish/guestfish-actions.pod:4578
16281 msgid "This command is the same as running C<vgchange -a y|n>"
16282 msgstr ""
16283
16284 #. type: =head2
16285 #: ../src/guestfs-actions.pod:6838
16286 msgid "guestfs_vgcreate"
16287 msgstr ""
16288
16289 #. type: verbatim
16290 #: ../src/guestfs-actions.pod:6840
16291 #, no-wrap
16292 msgid ""
16293 " int\n"
16294 " guestfs_vgcreate (guestfs_h *g,\n"
16295 "                   const char *volgroup,\n"
16296 "                   char *const *physvols);\n"
16297 "\n"
16298 msgstr ""
16299
16300 #. type: textblock
16301 #: ../src/guestfs-actions.pod:6845 ../fish/guestfish-actions.pod:4584
16302 msgid ""
16303 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16304 "of physical volumes C<physvols>."
16305 msgstr ""
16306
16307 #. type: =head2
16308 #: ../src/guestfs-actions.pod:6852
16309 msgid "guestfs_vglvuuids"
16310 msgstr ""
16311
16312 #. type: verbatim
16313 #: ../src/guestfs-actions.pod:6854
16314 #, no-wrap
16315 msgid ""
16316 " char **\n"
16317 " guestfs_vglvuuids (guestfs_h *g,\n"
16318 "                    const char *vgname);\n"
16319 "\n"
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../src/guestfs-actions.pod:6858 ../fish/guestfish-actions.pod:4591
16324 msgid ""
16325 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16326 "volumes created in this volume group."
16327 msgstr ""
16328
16329 #. type: textblock
16330 #: ../src/guestfs-actions.pod:6861
16331 msgid ""
16332 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
16333 "associate logical volumes and volume groups."
16334 msgstr ""
16335
16336 #. type: textblock
16337 #: ../src/guestfs-actions.pod:6864
16338 msgid "See also C<guestfs_vgpvuuids>."
16339 msgstr ""
16340
16341 #. type: =head2
16342 #: ../src/guestfs-actions.pod:6872
16343 msgid "guestfs_vgpvuuids"
16344 msgstr ""
16345
16346 #. type: verbatim
16347 #: ../src/guestfs-actions.pod:6874
16348 #, no-wrap
16349 msgid ""
16350 " char **\n"
16351 " guestfs_vgpvuuids (guestfs_h *g,\n"
16352 "                    const char *vgname);\n"
16353 "\n"
16354 msgstr ""
16355
16356 #. type: textblock
16357 #: ../src/guestfs-actions.pod:6878 ../fish/guestfish-actions.pod:4603
16358 msgid ""
16359 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16360 "volumes that this volume group resides on."
16361 msgstr ""
16362
16363 #. type: textblock
16364 #: ../src/guestfs-actions.pod:6881
16365 msgid ""
16366 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
16367 "associate physical volumes and volume groups."
16368 msgstr ""
16369
16370 #. type: textblock
16371 #: ../src/guestfs-actions.pod:6884
16372 msgid "See also C<guestfs_vglvuuids>."
16373 msgstr ""
16374
16375 #. type: =head2
16376 #: ../src/guestfs-actions.pod:6892
16377 msgid "guestfs_vgremove"
16378 msgstr ""
16379
16380 #. type: verbatim
16381 #: ../src/guestfs-actions.pod:6894
16382 #, no-wrap
16383 msgid ""
16384 " int\n"
16385 " guestfs_vgremove (guestfs_h *g,\n"
16386 "                   const char *vgname);\n"
16387 "\n"
16388 msgstr ""
16389
16390 #. type: textblock
16391 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4615
16392 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16393 msgstr ""
16394
16395 #. type: textblock
16396 #: ../src/guestfs-actions.pod:6900 ../fish/guestfish-actions.pod:4617
16397 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
16398 msgstr ""
16399
16400 #. type: =head2
16401 #: ../src/guestfs-actions.pod:6907
16402 msgid "guestfs_vgrename"
16403 msgstr ""
16404
16405 #. type: verbatim
16406 #: ../src/guestfs-actions.pod:6909
16407 #, no-wrap
16408 msgid ""
16409 " int\n"
16410 " guestfs_vgrename (guestfs_h *g,\n"
16411 "                   const char *volgroup,\n"
16412 "                   const char *newvolgroup);\n"
16413 "\n"
16414 msgstr ""
16415
16416 #. type: textblock
16417 #: ../src/guestfs-actions.pod:6914 ../fish/guestfish-actions.pod:4624
16418 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16419 msgstr ""
16420
16421 #. type: =head2
16422 #: ../src/guestfs-actions.pod:6920
16423 msgid "guestfs_vgs"
16424 msgstr ""
16425
16426 #. type: verbatim
16427 #: ../src/guestfs-actions.pod:6922
16428 #, no-wrap
16429 msgid ""
16430 " char **\n"
16431 " guestfs_vgs (guestfs_h *g);\n"
16432 "\n"
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../src/guestfs-actions.pod:6925 ../fish/guestfish-actions.pod:4630
16437 msgid ""
16438 "List all the volumes groups detected.  This is the equivalent of the "
16439 "L<vgs(8)> command."
16440 msgstr ""
16441
16442 #. type: textblock
16443 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4633
16444 msgid ""
16445 "This returns a list of just the volume group names that were detected "
16446 "(eg. C<VolGroup00>)."
16447 msgstr ""
16448
16449 #. type: textblock
16450 #: ../src/guestfs-actions.pod:6931
16451 msgid "See also C<guestfs_vgs_full>."
16452 msgstr ""
16453
16454 #. type: =head2
16455 #: ../src/guestfs-actions.pod:6939
16456 msgid "guestfs_vgs_full"
16457 msgstr ""
16458
16459 #. type: verbatim
16460 #: ../src/guestfs-actions.pod:6941
16461 #, no-wrap
16462 msgid ""
16463 " struct guestfs_lvm_vg_list *\n"
16464 " guestfs_vgs_full (guestfs_h *g);\n"
16465 "\n"
16466 msgstr ""
16467
16468 #. type: textblock
16469 #: ../src/guestfs-actions.pod:6944 ../fish/guestfish-actions.pod:4642
16470 msgid ""
16471 "List all the volumes groups detected.  This is the equivalent of the "
16472 "L<vgs(8)> command.  The \"full\" version includes all fields."
16473 msgstr ""
16474
16475 #. type: textblock
16476 #: ../src/guestfs-actions.pod:6947
16477 msgid ""
16478 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
16479 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
16480 "use>."
16481 msgstr ""
16482
16483 #. type: =head2
16484 #: ../src/guestfs-actions.pod:6953
16485 msgid "guestfs_vgscan"
16486 msgstr ""
16487
16488 #. type: verbatim
16489 #: ../src/guestfs-actions.pod:6955
16490 #, no-wrap
16491 msgid ""
16492 " int\n"
16493 " guestfs_vgscan (guestfs_h *g);\n"
16494 "\n"
16495 msgstr ""
16496
16497 #. type: textblock
16498 #: ../src/guestfs-actions.pod:6958 ../fish/guestfish-actions.pod:4649
16499 msgid ""
16500 "This rescans all block devices and rebuilds the list of LVM physical "
16501 "volumes, volume groups and logical volumes."
16502 msgstr ""
16503
16504 #. type: =head2
16505 #: ../src/guestfs-actions.pod:6965
16506 msgid "guestfs_vguuid"
16507 msgstr ""
16508
16509 #. type: verbatim
16510 #: ../src/guestfs-actions.pod:6967
16511 #, no-wrap
16512 msgid ""
16513 " char *\n"
16514 " guestfs_vguuid (guestfs_h *g,\n"
16515 "                 const char *vgname);\n"
16516 "\n"
16517 msgstr ""
16518
16519 #. type: textblock
16520 #: ../src/guestfs-actions.pod:6971 ../fish/guestfish-actions.pod:4656
16521 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16522 msgstr ""
16523
16524 #. type: =head2
16525 #: ../src/guestfs-actions.pod:6978
16526 msgid "guestfs_wait_ready"
16527 msgstr ""
16528
16529 #. type: verbatim
16530 #: ../src/guestfs-actions.pod:6980
16531 #, no-wrap
16532 msgid ""
16533 " int\n"
16534 " guestfs_wait_ready (guestfs_h *g);\n"
16535 "\n"
16536 msgstr ""
16537
16538 #. type: textblock
16539 #: ../src/guestfs-actions.pod:6983
16540 msgid "This function is a no op."
16541 msgstr ""
16542
16543 #. type: textblock
16544 #: ../src/guestfs-actions.pod:6985
16545 msgid ""
16546 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
16547 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
16548 "is no longer necessary because C<guestfs_launch> now does the waiting."
16549 msgstr ""
16550
16551 #. type: textblock
16552 #: ../src/guestfs-actions.pod:6990
16553 msgid ""
16554 "If you see any calls to this function in code then you can just remove them, "
16555 "unless you want to retain compatibility with older versions of the API."
16556 msgstr ""
16557
16558 #. type: =head2
16559 #: ../src/guestfs-actions.pod:6998
16560 msgid "guestfs_wc_c"
16561 msgstr ""
16562
16563 #. type: verbatim
16564 #: ../src/guestfs-actions.pod:7000
16565 #, no-wrap
16566 msgid ""
16567 " int\n"
16568 " guestfs_wc_c (guestfs_h *g,\n"
16569 "               const char *path);\n"
16570 "\n"
16571 msgstr ""
16572
16573 #. type: textblock
16574 #: ../src/guestfs-actions.pod:7004 ../fish/guestfish-actions.pod:4662
16575 msgid ""
16576 "This command counts the characters in a file, using the C<wc -c> external "
16577 "command."
16578 msgstr ""
16579
16580 #. type: =head2
16581 #: ../src/guestfs-actions.pod:7011
16582 msgid "guestfs_wc_l"
16583 msgstr ""
16584
16585 #. type: verbatim
16586 #: ../src/guestfs-actions.pod:7013
16587 #, no-wrap
16588 msgid ""
16589 " int\n"
16590 " guestfs_wc_l (guestfs_h *g,\n"
16591 "               const char *path);\n"
16592 "\n"
16593 msgstr ""
16594
16595 #. type: textblock
16596 #: ../src/guestfs-actions.pod:7017 ../fish/guestfish-actions.pod:4669
16597 msgid ""
16598 "This command counts the lines in a file, using the C<wc -l> external "
16599 "command."
16600 msgstr ""
16601
16602 #. type: =head2
16603 #: ../src/guestfs-actions.pod:7024
16604 msgid "guestfs_wc_w"
16605 msgstr ""
16606
16607 #. type: verbatim
16608 #: ../src/guestfs-actions.pod:7026
16609 #, no-wrap
16610 msgid ""
16611 " int\n"
16612 " guestfs_wc_w (guestfs_h *g,\n"
16613 "               const char *path);\n"
16614 "\n"
16615 msgstr ""
16616
16617 #. type: textblock
16618 #: ../src/guestfs-actions.pod:7030 ../fish/guestfish-actions.pod:4676
16619 msgid ""
16620 "This command counts the words in a file, using the C<wc -w> external "
16621 "command."
16622 msgstr ""
16623
16624 #. type: =head2
16625 #: ../src/guestfs-actions.pod:7037
16626 msgid "guestfs_write"
16627 msgstr ""
16628
16629 #. type: verbatim
16630 #: ../src/guestfs-actions.pod:7039
16631 #, no-wrap
16632 msgid ""
16633 " int\n"
16634 " guestfs_write (guestfs_h *g,\n"
16635 "                const char *path,\n"
16636 "                const char *content,\n"
16637 "                size_t content_size);\n"
16638 "\n"
16639 msgstr ""
16640
16641 #. type: textblock
16642 #: ../src/guestfs-actions.pod:7045 ../fish/guestfish-actions.pod:4683
16643 msgid ""
16644 "This call creates a file called C<path>.  The content of the file is the "
16645 "string C<content> (which can contain any 8 bit data)."
16646 msgstr ""
16647
16648 #. type: =head2
16649 #: ../src/guestfs-actions.pod:7055
16650 msgid "guestfs_write_file"
16651 msgstr ""
16652
16653 #. type: verbatim
16654 #: ../src/guestfs-actions.pod:7057
16655 #, no-wrap
16656 msgid ""
16657 " int\n"
16658 " guestfs_write_file (guestfs_h *g,\n"
16659 "                     const char *path,\n"
16660 "                     const char *content,\n"
16661 "                     int size);\n"
16662 "\n"
16663 msgstr ""
16664
16665 #. type: textblock
16666 #: ../src/guestfs-actions.pod:7063 ../fish/guestfish-actions.pod:4693
16667 msgid ""
16668 "This call creates a file called C<path>.  The contents of the file is the "
16669 "string C<content> (which can contain any 8 bit data), with length C<size>."
16670 msgstr ""
16671
16672 #. type: textblock
16673 #: ../src/guestfs-actions.pod:7067 ../fish/guestfish-actions.pod:4697
16674 msgid ""
16675 "As a special case, if C<size> is C<0> then the length is calculated using "
16676 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16677 msgstr ""
16678
16679 #. type: textblock
16680 #: ../src/guestfs-actions.pod:7071 ../fish/guestfish-actions.pod:4701
16681 msgid ""
16682 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16683 "I<not> work, even if the length is specified."
16684 msgstr ""
16685
16686 #. type: textblock
16687 #: ../src/guestfs-actions.pod:7079 ../fish/guestfish-actions.pod:4707
16688 msgid "This function is deprecated.  In new code, use the C<write> call instead."
16689 msgstr ""
16690
16691 #. type: =head2
16692 #: ../src/guestfs-actions.pod:7088
16693 msgid "guestfs_zegrep"
16694 msgstr ""
16695
16696 #. type: verbatim
16697 #: ../src/guestfs-actions.pod:7090
16698 #, no-wrap
16699 msgid ""
16700 " char **\n"
16701 " guestfs_zegrep (guestfs_h *g,\n"
16702 "                 const char *regex,\n"
16703 "                 const char *path);\n"
16704 "\n"
16705 msgstr ""
16706
16707 #. type: textblock
16708 #: ../src/guestfs-actions.pod:7095 ../fish/guestfish-actions.pod:4718
16709 msgid "This calls the external C<zegrep> program and returns the matching lines."
16710 msgstr ""
16711
16712 #. type: =head2
16713 #: ../src/guestfs-actions.pod:7107
16714 msgid "guestfs_zegrepi"
16715 msgstr ""
16716
16717 #. type: verbatim
16718 #: ../src/guestfs-actions.pod:7109
16719 #, no-wrap
16720 msgid ""
16721 " char **\n"
16722 " guestfs_zegrepi (guestfs_h *g,\n"
16723 "                  const char *regex,\n"
16724 "                  const char *path);\n"
16725 "\n"
16726 msgstr ""
16727
16728 #. type: textblock
16729 #: ../src/guestfs-actions.pod:7114 ../fish/guestfish-actions.pod:4728
16730 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
16731 msgstr ""
16732
16733 #. type: =head2
16734 #: ../src/guestfs-actions.pod:7126
16735 msgid "guestfs_zero"
16736 msgstr ""
16737
16738 #. type: verbatim
16739 #: ../src/guestfs-actions.pod:7128
16740 #, no-wrap
16741 msgid ""
16742 " int\n"
16743 " guestfs_zero (guestfs_h *g,\n"
16744 "               const char *device);\n"
16745 "\n"
16746 msgstr ""
16747
16748 #. type: textblock
16749 #: ../src/guestfs-actions.pod:7132 ../fish/guestfish-actions.pod:4738
16750 msgid "This command writes zeroes over the first few blocks of C<device>."
16751 msgstr ""
16752
16753 #. type: textblock
16754 #: ../src/guestfs-actions.pod:7134 ../fish/guestfish-actions.pod:4740
16755 msgid ""
16756 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16757 "securely wipe the device).  It should be sufficient to remove any partition "
16758 "tables, filesystem superblocks and so on."
16759 msgstr ""
16760
16761 #. type: textblock
16762 #: ../src/guestfs-actions.pod:7138
16763 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
16764 msgstr ""
16765
16766 #. type: =head2
16767 #: ../src/guestfs-actions.pod:7149
16768 msgid "guestfs_zero_device"
16769 msgstr ""
16770
16771 #. type: verbatim
16772 #: ../src/guestfs-actions.pod:7151
16773 #, no-wrap
16774 msgid ""
16775 " int\n"
16776 " guestfs_zero_device (guestfs_h *g,\n"
16777 "                      const char *device);\n"
16778 "\n"
16779 msgstr ""
16780
16781 #. type: textblock
16782 #: ../src/guestfs-actions.pod:7155
16783 msgid ""
16784 "This command writes zeroes over the entire C<device>.  Compare with "
16785 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16786 msgstr ""
16787
16788 #. type: textblock
16789 #: ../src/guestfs-actions.pod:7169
16790 msgid "(Added in 1.3.1)"
16791 msgstr ""
16792
16793 #. type: =head2
16794 #: ../src/guestfs-actions.pod:7171
16795 msgid "guestfs_zerofree"
16796 msgstr ""
16797
16798 #. type: verbatim
16799 #: ../src/guestfs-actions.pod:7173
16800 #, no-wrap
16801 msgid ""
16802 " int\n"
16803 " guestfs_zerofree (guestfs_h *g,\n"
16804 "                   const char *device);\n"
16805 "\n"
16806 msgstr ""
16807
16808 #. type: textblock
16809 #: ../src/guestfs-actions.pod:7177 ../fish/guestfish-actions.pod:4761
16810 msgid ""
16811 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16812 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16813 "possible to compress the filesystem more effectively."
16814 msgstr ""
16815
16816 #. type: textblock
16817 #: ../src/guestfs-actions.pod:7182 ../fish/guestfish-actions.pod:4766
16818 msgid "You should B<not> run this program if the filesystem is mounted."
16819 msgstr ""
16820
16821 #. type: textblock
16822 #: ../src/guestfs-actions.pod:7185 ../fish/guestfish-actions.pod:4769
16823 msgid ""
16824 "It is possible that using this program can damage the filesystem or data on "
16825 "the filesystem."
16826 msgstr ""
16827
16828 #. type: =head2
16829 #: ../src/guestfs-actions.pod:7192
16830 msgid "guestfs_zfgrep"
16831 msgstr ""
16832
16833 #. type: verbatim
16834 #: ../src/guestfs-actions.pod:7194
16835 #, no-wrap
16836 msgid ""
16837 " char **\n"
16838 " guestfs_zfgrep (guestfs_h *g,\n"
16839 "                 const char *pattern,\n"
16840 "                 const char *path);\n"
16841 "\n"
16842 msgstr ""
16843
16844 #. type: textblock
16845 #: ../src/guestfs-actions.pod:7199 ../fish/guestfish-actions.pod:4776
16846 msgid "This calls the external C<zfgrep> program and returns the matching lines."
16847 msgstr ""
16848
16849 #. type: =head2
16850 #: ../src/guestfs-actions.pod:7211
16851 msgid "guestfs_zfgrepi"
16852 msgstr ""
16853
16854 #. type: verbatim
16855 #: ../src/guestfs-actions.pod:7213
16856 #, no-wrap
16857 msgid ""
16858 " char **\n"
16859 " guestfs_zfgrepi (guestfs_h *g,\n"
16860 "                  const char *pattern,\n"
16861 "                  const char *path);\n"
16862 "\n"
16863 msgstr ""
16864
16865 #. type: textblock
16866 #: ../src/guestfs-actions.pod:7218 ../fish/guestfish-actions.pod:4786
16867 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
16868 msgstr ""
16869
16870 #. type: =head2
16871 #: ../src/guestfs-actions.pod:7230
16872 msgid "guestfs_zfile"
16873 msgstr ""
16874
16875 #. type: verbatim
16876 #: ../src/guestfs-actions.pod:7232
16877 #, no-wrap
16878 msgid ""
16879 " char *\n"
16880 " guestfs_zfile (guestfs_h *g,\n"
16881 "                const char *meth,\n"
16882 "                const char *path);\n"
16883 "\n"
16884 msgstr ""
16885
16886 #. type: textblock
16887 #: ../src/guestfs-actions.pod:7237 ../fish/guestfish-actions.pod:4796
16888 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
16889 msgstr ""
16890
16891 #. type: textblock
16892 #: ../src/guestfs-actions.pod:7240 ../fish/guestfish-actions.pod:4799
16893 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16894 msgstr ""
16895
16896 #. type: textblock
16897 #: ../src/guestfs-actions.pod:7242
16898 msgid ""
16899 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16900 "files."
16901 msgstr ""
16902
16903 #. type: textblock
16904 #: ../src/guestfs-actions.pod:7248 ../fish/guestfish-actions.pod:4804
16905 msgid "This function is deprecated.  In new code, use the C<file> call instead."
16906 msgstr ""
16907
16908 #. type: =head2
16909 #: ../src/guestfs-actions.pod:7257
16910 msgid "guestfs_zgrep"
16911 msgstr ""
16912
16913 #. type: verbatim
16914 #: ../src/guestfs-actions.pod:7259
16915 #, no-wrap
16916 msgid ""
16917 " char **\n"
16918 " guestfs_zgrep (guestfs_h *g,\n"
16919 "                const char *regex,\n"
16920 "                const char *path);\n"
16921 "\n"
16922 msgstr ""
16923
16924 #. type: textblock
16925 #: ../src/guestfs-actions.pod:7264 ../fish/guestfish-actions.pod:4815
16926 msgid "This calls the external C<zgrep> program and returns the matching lines."
16927 msgstr ""
16928
16929 #. type: =head2
16930 #: ../src/guestfs-actions.pod:7276
16931 msgid "guestfs_zgrepi"
16932 msgstr ""
16933
16934 #. type: verbatim
16935 #: ../src/guestfs-actions.pod:7278
16936 #, no-wrap
16937 msgid ""
16938 " char **\n"
16939 " guestfs_zgrepi (guestfs_h *g,\n"
16940 "                 const char *regex,\n"
16941 "                 const char *path);\n"
16942 "\n"
16943 msgstr ""
16944
16945 #. type: textblock
16946 #: ../src/guestfs-actions.pod:7283 ../fish/guestfish-actions.pod:4825
16947 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
16948 msgstr ""
16949
16950 #. type: =item
16951 #: ../src/guestfs-availability.pod:3
16952 msgid "B<augeas>"
16953 msgstr ""
16954
16955 #. type: textblock
16956 #: ../src/guestfs-availability.pod:5
16957 msgid ""
16958 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
16959 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
16960 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
16961 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
16962 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
16963 msgstr ""
16964
16965 #. type: =item
16966 #: ../src/guestfs-availability.pod:21
16967 msgid "B<inotify>"
16968 msgstr ""
16969
16970 #. type: textblock
16971 #: ../src/guestfs-availability.pod:23
16972 msgid ""
16973 "The following functions: L</guestfs_inotify_add_watch> "
16974 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
16975 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16976 msgstr ""
16977
16978 #. type: =item
16979 #: ../src/guestfs-availability.pod:31
16980 msgid "B<linuxfsuuid>"
16981 msgstr ""
16982
16983 #. type: textblock
16984 #: ../src/guestfs-availability.pod:33
16985 msgid ""
16986 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
16987 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16988 msgstr ""
16989
16990 #. type: =item
16991 #: ../src/guestfs-availability.pod:40
16992 msgid "B<linuxmodules>"
16993 msgstr ""
16994
16995 #. type: textblock
16996 #: ../src/guestfs-availability.pod:42
16997 msgid "The following functions: L</guestfs_modprobe>"
16998 msgstr ""
16999
17000 #. type: =item
17001 #: ../src/guestfs-availability.pod:45
17002 msgid "B<linuxxattrs>"
17003 msgstr ""
17004
17005 #. type: textblock
17006 #: ../src/guestfs-availability.pod:47
17007 msgid ""
17008 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
17009 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
17010 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
17011 "L</guestfs_setxattr>"
17012 msgstr ""
17013
17014 #. type: =item
17015 #: ../src/guestfs-availability.pod:58
17016 msgid "B<luks>"
17017 msgstr ""
17018
17019 #. type: textblock
17020 #: ../src/guestfs-availability.pod:60
17021 msgid ""
17022 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
17023 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
17024 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
17025 msgstr ""
17026
17027 #. type: =item
17028 #: ../src/guestfs-availability.pod:69
17029 msgid "B<lvm2>"
17030 msgstr ""
17031
17032 #. type: textblock
17033 #: ../src/guestfs-availability.pod:71
17034 msgid ""
17035 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
17036 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
17037 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
17038 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
17039 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
17040 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
17041 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
17042 "L</guestfs_vgs_full>"
17043 msgstr ""
17044
17045 #. type: =item
17046 #: ../src/guestfs-availability.pod:94
17047 msgid "B<mknod>"
17048 msgstr ""
17049
17050 #. type: textblock
17051 #: ../src/guestfs-availability.pod:96
17052 msgid ""
17053 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
17054 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
17055 msgstr ""
17056
17057 #. type: =item
17058 #: ../src/guestfs-availability.pod:102
17059 msgid "B<ntfs3g>"
17060 msgstr ""
17061
17062 #. type: textblock
17063 #: ../src/guestfs-availability.pod:104
17064 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
17065 msgstr ""
17066
17067 #. type: =item
17068 #: ../src/guestfs-availability.pod:107
17069 msgid "B<ntfsprogs>"
17070 msgstr ""
17071
17072 #. type: textblock
17073 #: ../src/guestfs-availability.pod:109
17074 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
17075 msgstr ""
17076
17077 #. type: =item
17078 #: ../src/guestfs-availability.pod:113
17079 msgid "B<realpath>"
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../src/guestfs-availability.pod:115
17084 msgid "The following functions: L</guestfs_realpath>"
17085 msgstr ""
17086
17087 #. type: =item
17088 #: ../src/guestfs-availability.pod:118
17089 msgid "B<scrub>"
17090 msgstr ""
17091
17092 #. type: textblock
17093 #: ../src/guestfs-availability.pod:120
17094 msgid ""
17095 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
17096 "L</guestfs_scrub_freespace>"
17097 msgstr ""
17098
17099 #. type: =item
17100 #: ../src/guestfs-availability.pod:125
17101 msgid "B<selinux>"
17102 msgstr ""
17103
17104 #. type: textblock
17105 #: ../src/guestfs-availability.pod:127
17106 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
17107 msgstr ""
17108
17109 #. type: =item
17110 #: ../src/guestfs-availability.pod:131
17111 msgid "B<xz>"
17112 msgstr ""
17113
17114 #. type: textblock
17115 #: ../src/guestfs-availability.pod:133
17116 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
17117 msgstr ""
17118
17119 #. type: =item
17120 #: ../src/guestfs-availability.pod:137
17121 msgid "B<zerofree>"
17122 msgstr ""
17123
17124 #. type: textblock
17125 #: ../src/guestfs-availability.pod:139
17126 msgid "The following functions: L</guestfs_zerofree>"
17127 msgstr ""
17128
17129 #. type: =head2
17130 #: ../src/guestfs-structs.pod:1
17131 msgid "guestfs_int_bool"
17132 msgstr ""
17133
17134 #. type: verbatim
17135 #: ../src/guestfs-structs.pod:3
17136 #, no-wrap
17137 msgid ""
17138 " struct guestfs_int_bool {\n"
17139 "   int32_t i;\n"
17140 "   int32_t b;\n"
17141 " };\n"
17142 " \n"
17143 msgstr ""
17144
17145 #. type: verbatim
17146 #: ../src/guestfs-structs.pod:8
17147 #, no-wrap
17148 msgid ""
17149 " struct guestfs_int_bool_list {\n"
17150 "   uint32_t len; /* Number of elements in list. */\n"
17151 "   struct guestfs_int_bool *val; /* Elements. */\n"
17152 " };\n"
17153 " \n"
17154 msgstr ""
17155
17156 #. type: verbatim
17157 #: ../src/guestfs-structs.pod:13
17158 #, no-wrap
17159 msgid ""
17160 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
17161 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
17162 "\n"
17163 msgstr ""
17164
17165 #. type: =head2
17166 #: ../src/guestfs-structs.pod:16
17167 msgid "guestfs_lvm_pv"
17168 msgstr ""
17169
17170 #. type: verbatim
17171 #: ../src/guestfs-structs.pod:18
17172 #, no-wrap
17173 msgid ""
17174 " struct guestfs_lvm_pv {\n"
17175 "   char *pv_name;\n"
17176 "   /* The next field is NOT nul-terminated, be careful when printing it: "
17177 "*/\n"
17178 "   char pv_uuid[32];\n"
17179 "   char *pv_fmt;\n"
17180 "   uint64_t pv_size;\n"
17181 "   uint64_t dev_size;\n"
17182 "   uint64_t pv_free;\n"
17183 "   uint64_t pv_used;\n"
17184 "   char *pv_attr;\n"
17185 "   int64_t pv_pe_count;\n"
17186 "   int64_t pv_pe_alloc_count;\n"
17187 "   char *pv_tags;\n"
17188 "   uint64_t pe_start;\n"
17189 "   int64_t pv_mda_count;\n"
17190 "   uint64_t pv_mda_free;\n"
17191 " };\n"
17192 " \n"
17193 msgstr ""
17194
17195 #. type: verbatim
17196 #: ../src/guestfs-structs.pod:36
17197 #, no-wrap
17198 msgid ""
17199 " struct guestfs_lvm_pv_list {\n"
17200 "   uint32_t len; /* Number of elements in list. */\n"
17201 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
17202 " };\n"
17203 " \n"
17204 msgstr ""
17205
17206 #. type: verbatim
17207 #: ../src/guestfs-structs.pod:41
17208 #, no-wrap
17209 msgid ""
17210 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
17211 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
17212 "\n"
17213 msgstr ""
17214
17215 #. type: =head2
17216 #: ../src/guestfs-structs.pod:44
17217 msgid "guestfs_lvm_vg"
17218 msgstr ""
17219
17220 #. type: verbatim
17221 #: ../src/guestfs-structs.pod:46
17222 #, no-wrap
17223 msgid ""
17224 " struct guestfs_lvm_vg {\n"
17225 "   char *vg_name;\n"
17226 "   /* The next field is NOT nul-terminated, be careful when printing it: "
17227 "*/\n"
17228 "   char vg_uuid[32];\n"
17229 "   char *vg_fmt;\n"
17230 "   char *vg_attr;\n"
17231 "   uint64_t vg_size;\n"
17232 "   uint64_t vg_free;\n"
17233 "   char *vg_sysid;\n"
17234 "   uint64_t vg_extent_size;\n"
17235 "   int64_t vg_extent_count;\n"
17236 "   int64_t vg_free_count;\n"
17237 "   int64_t max_lv;\n"
17238 "   int64_t max_pv;\n"
17239 "   int64_t pv_count;\n"
17240 "   int64_t lv_count;\n"
17241 "   int64_t snap_count;\n"
17242 "   int64_t vg_seqno;\n"
17243 "   char *vg_tags;\n"
17244 "   int64_t vg_mda_count;\n"
17245 "   uint64_t vg_mda_free;\n"
17246 " };\n"
17247 " \n"
17248 msgstr ""
17249
17250 #. type: verbatim
17251 #: ../src/guestfs-structs.pod:69
17252 #, no-wrap
17253 msgid ""
17254 " struct guestfs_lvm_vg_list {\n"
17255 "   uint32_t len; /* Number of elements in list. */\n"
17256 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
17257 " };\n"
17258 " \n"
17259 msgstr ""
17260
17261 #. type: verbatim
17262 #: ../src/guestfs-structs.pod:74
17263 #, no-wrap
17264 msgid ""
17265 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
17266 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
17267 "\n"
17268 msgstr ""
17269
17270 #. type: =head2
17271 #: ../src/guestfs-structs.pod:77
17272 msgid "guestfs_lvm_lv"
17273 msgstr ""
17274
17275 #. type: verbatim
17276 #: ../src/guestfs-structs.pod:79
17277 #, no-wrap
17278 msgid ""
17279 " struct guestfs_lvm_lv {\n"
17280 "   char *lv_name;\n"
17281 "   /* The next field is NOT nul-terminated, be careful when printing it: "
17282 "*/\n"
17283 "   char lv_uuid[32];\n"
17284 "   char *lv_attr;\n"
17285 "   int64_t lv_major;\n"
17286 "   int64_t lv_minor;\n"
17287 "   int64_t lv_kernel_major;\n"
17288 "   int64_t lv_kernel_minor;\n"
17289 "   uint64_t lv_size;\n"
17290 "   int64_t seg_count;\n"
17291 "   char *origin;\n"
17292 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
17293 "   float snap_percent;\n"
17294 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
17295 "   float copy_percent;\n"
17296 "   char *move_pv;\n"
17297 "   char *lv_tags;\n"
17298 "   char *mirror_log;\n"
17299 "   char *modules;\n"
17300 " };\n"
17301 " \n"
17302 msgstr ""
17303
17304 #. type: verbatim
17305 #: ../src/guestfs-structs.pod:101
17306 #, no-wrap
17307 msgid ""
17308 " struct guestfs_lvm_lv_list {\n"
17309 "   uint32_t len; /* Number of elements in list. */\n"
17310 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
17311 " };\n"
17312 " \n"
17313 msgstr ""
17314
17315 #. type: verbatim
17316 #: ../src/guestfs-structs.pod:106
17317 #, no-wrap
17318 msgid ""
17319 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
17320 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
17321 "\n"
17322 msgstr ""
17323
17324 #. type: verbatim
17325 #: ../src/guestfs-structs.pod:111
17326 #, no-wrap
17327 msgid ""
17328 " struct guestfs_stat {\n"
17329 "   int64_t dev;\n"
17330 "   int64_t ino;\n"
17331 "   int64_t mode;\n"
17332 "   int64_t nlink;\n"
17333 "   int64_t uid;\n"
17334 "   int64_t gid;\n"
17335 "   int64_t rdev;\n"
17336 "   int64_t size;\n"
17337 "   int64_t blksize;\n"
17338 "   int64_t blocks;\n"
17339 "   int64_t atime;\n"
17340 "   int64_t mtime;\n"
17341 "   int64_t ctime;\n"
17342 " };\n"
17343 " \n"
17344 msgstr ""
17345
17346 #. type: verbatim
17347 #: ../src/guestfs-structs.pod:127
17348 #, no-wrap
17349 msgid ""
17350 " struct guestfs_stat_list {\n"
17351 "   uint32_t len; /* Number of elements in list. */\n"
17352 "   struct guestfs_stat *val; /* Elements. */\n"
17353 " };\n"
17354 " \n"
17355 msgstr ""
17356
17357 #. type: verbatim
17358 #: ../src/guestfs-structs.pod:132
17359 #, no-wrap
17360 msgid ""
17361 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
17362 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
17363 "\n"
17364 msgstr ""
17365
17366 #. type: verbatim
17367 #: ../src/guestfs-structs.pod:137
17368 #, no-wrap
17369 msgid ""
17370 " struct guestfs_statvfs {\n"
17371 "   int64_t bsize;\n"
17372 "   int64_t frsize;\n"
17373 "   int64_t blocks;\n"
17374 "   int64_t bfree;\n"
17375 "   int64_t bavail;\n"
17376 "   int64_t files;\n"
17377 "   int64_t ffree;\n"
17378 "   int64_t favail;\n"
17379 "   int64_t fsid;\n"
17380 "   int64_t flag;\n"
17381 "   int64_t namemax;\n"
17382 " };\n"
17383 " \n"
17384 msgstr ""
17385
17386 #. type: verbatim
17387 #: ../src/guestfs-structs.pod:151
17388 #, no-wrap
17389 msgid ""
17390 " struct guestfs_statvfs_list {\n"
17391 "   uint32_t len; /* Number of elements in list. */\n"
17392 "   struct guestfs_statvfs *val; /* Elements. */\n"
17393 " };\n"
17394 " \n"
17395 msgstr ""
17396
17397 #. type: verbatim
17398 #: ../src/guestfs-structs.pod:156
17399 #, no-wrap
17400 msgid ""
17401 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
17402 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
17403 "\n"
17404 msgstr ""
17405
17406 #. type: =head2
17407 #: ../src/guestfs-structs.pod:159
17408 msgid "guestfs_dirent"
17409 msgstr ""
17410
17411 #. type: verbatim
17412 #: ../src/guestfs-structs.pod:161
17413 #, no-wrap
17414 msgid ""
17415 " struct guestfs_dirent {\n"
17416 "   int64_t ino;\n"
17417 "   char ftyp;\n"
17418 "   char *name;\n"
17419 " };\n"
17420 " \n"
17421 msgstr ""
17422
17423 #. type: verbatim
17424 #: ../src/guestfs-structs.pod:167
17425 #, no-wrap
17426 msgid ""
17427 " struct guestfs_dirent_list {\n"
17428 "   uint32_t len; /* Number of elements in list. */\n"
17429 "   struct guestfs_dirent *val; /* Elements. */\n"
17430 " };\n"
17431 " \n"
17432 msgstr ""
17433
17434 #. type: verbatim
17435 #: ../src/guestfs-structs.pod:172
17436 #, no-wrap
17437 msgid ""
17438 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
17439 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
17440 "\n"
17441 msgstr ""
17442
17443 #. type: verbatim
17444 #: ../src/guestfs-structs.pod:177
17445 #, no-wrap
17446 msgid ""
17447 " struct guestfs_version {\n"
17448 "   int64_t major;\n"
17449 "   int64_t minor;\n"
17450 "   int64_t release;\n"
17451 "   char *extra;\n"
17452 " };\n"
17453 " \n"
17454 msgstr ""
17455
17456 #. type: verbatim
17457 #: ../src/guestfs-structs.pod:184
17458 #, no-wrap
17459 msgid ""
17460 " struct guestfs_version_list {\n"
17461 "   uint32_t len; /* Number of elements in list. */\n"
17462 "   struct guestfs_version *val; /* Elements. */\n"
17463 " };\n"
17464 " \n"
17465 msgstr ""
17466
17467 #. type: verbatim
17468 #: ../src/guestfs-structs.pod:189
17469 #, no-wrap
17470 msgid ""
17471 " void guestfs_free_version (struct guestfs_free_version *);\n"
17472 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
17473 "\n"
17474 msgstr ""
17475
17476 #. type: =head2
17477 #: ../src/guestfs-structs.pod:192
17478 msgid "guestfs_xattr"
17479 msgstr ""
17480
17481 #. type: verbatim
17482 #: ../src/guestfs-structs.pod:194
17483 #, no-wrap
17484 msgid ""
17485 " struct guestfs_xattr {\n"
17486 "   char *attrname;\n"
17487 "   /* The next two fields describe a byte array. */\n"
17488 "   uint32_t attrval_len;\n"
17489 "   char *attrval;\n"
17490 " };\n"
17491 " \n"
17492 msgstr ""
17493
17494 #. type: verbatim
17495 #: ../src/guestfs-structs.pod:201
17496 #, no-wrap
17497 msgid ""
17498 " struct guestfs_xattr_list {\n"
17499 "   uint32_t len; /* Number of elements in list. */\n"
17500 "   struct guestfs_xattr *val; /* Elements. */\n"
17501 " };\n"
17502 " \n"
17503 msgstr ""
17504
17505 #. type: verbatim
17506 #: ../src/guestfs-structs.pod:206
17507 #, no-wrap
17508 msgid ""
17509 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
17510 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
17511 "\n"
17512 msgstr ""
17513
17514 #. type: =head2
17515 #: ../src/guestfs-structs.pod:209
17516 msgid "guestfs_inotify_event"
17517 msgstr ""
17518
17519 #. type: verbatim
17520 #: ../src/guestfs-structs.pod:211
17521 #, no-wrap
17522 msgid ""
17523 " struct guestfs_inotify_event {\n"
17524 "   int64_t in_wd;\n"
17525 "   uint32_t in_mask;\n"
17526 "   uint32_t in_cookie;\n"
17527 "   char *in_name;\n"
17528 " };\n"
17529 " \n"
17530 msgstr ""
17531
17532 #. type: verbatim
17533 #: ../src/guestfs-structs.pod:218
17534 #, no-wrap
17535 msgid ""
17536 " struct guestfs_inotify_event_list {\n"
17537 "   uint32_t len; /* Number of elements in list. */\n"
17538 "   struct guestfs_inotify_event *val; /* Elements. */\n"
17539 " };\n"
17540 " \n"
17541 msgstr ""
17542
17543 #. type: verbatim
17544 #: ../src/guestfs-structs.pod:223
17545 #, no-wrap
17546 msgid ""
17547 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
17548 " void guestfs_free_inotify_event_list (struct "
17549 "guestfs_free_inotify_event_list *);\n"
17550 "\n"
17551 msgstr ""
17552
17553 #. type: =head2
17554 #: ../src/guestfs-structs.pod:226
17555 msgid "guestfs_partition"
17556 msgstr ""
17557
17558 #. type: verbatim
17559 #: ../src/guestfs-structs.pod:228
17560 #, no-wrap
17561 msgid ""
17562 " struct guestfs_partition {\n"
17563 "   int32_t part_num;\n"
17564 "   uint64_t part_start;\n"
17565 "   uint64_t part_end;\n"
17566 "   uint64_t part_size;\n"
17567 " };\n"
17568 " \n"
17569 msgstr ""
17570
17571 #. type: verbatim
17572 #: ../src/guestfs-structs.pod:235
17573 #, no-wrap
17574 msgid ""
17575 " struct guestfs_partition_list {\n"
17576 "   uint32_t len; /* Number of elements in list. */\n"
17577 "   struct guestfs_partition *val; /* Elements. */\n"
17578 " };\n"
17579 " \n"
17580 msgstr ""
17581
17582 #. type: verbatim
17583 #: ../src/guestfs-structs.pod:240
17584 #, no-wrap
17585 msgid ""
17586 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
17587 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
17588 "\n"
17589 msgstr ""
17590
17591 #. type: =head2
17592 #: ../src/guestfs-structs.pod:243
17593 msgid "guestfs_application"
17594 msgstr ""
17595
17596 #. type: verbatim
17597 #: ../src/guestfs-structs.pod:245
17598 #, no-wrap
17599 msgid ""
17600 " struct guestfs_application {\n"
17601 "   char *app_name;\n"
17602 "   char *app_display_name;\n"
17603 "   int32_t app_epoch;\n"
17604 "   char *app_version;\n"
17605 "   char *app_release;\n"
17606 "   char *app_install_path;\n"
17607 "   char *app_trans_path;\n"
17608 "   char *app_publisher;\n"
17609 "   char *app_url;\n"
17610 "   char *app_source_package;\n"
17611 "   char *app_summary;\n"
17612 "   char *app_description;\n"
17613 " };\n"
17614 " \n"
17615 msgstr ""
17616
17617 #. type: verbatim
17618 #: ../src/guestfs-structs.pod:260
17619 #, no-wrap
17620 msgid ""
17621 " struct guestfs_application_list {\n"
17622 "   uint32_t len; /* Number of elements in list. */\n"
17623 "   struct guestfs_application *val; /* Elements. */\n"
17624 " };\n"
17625 " \n"
17626 msgstr ""
17627
17628 #. type: verbatim
17629 #: ../src/guestfs-structs.pod:265
17630 #, no-wrap
17631 msgid ""
17632 " void guestfs_free_application (struct guestfs_free_application *);\n"
17633 " void guestfs_free_application_list (struct guestfs_free_application_list "
17634 "*);\n"
17635 "\n"
17636 msgstr ""
17637
17638 #. type: textblock
17639 #: ../fish/guestfish.pod:5
17640 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17641 msgstr ""
17642
17643 #. type: verbatim
17644 #: ../fish/guestfish.pod:9
17645 #, no-wrap
17646 msgid ""
17647 " guestfish [--options] [commands]\n"
17648 "\n"
17649 msgstr ""
17650
17651 #. type: verbatim
17652 #: ../fish/guestfish.pod:11
17653 #, no-wrap
17654 msgid ""
17655 " guestfish\n"
17656 "\n"
17657 msgstr ""
17658
17659 #. type: verbatim
17660 #: ../fish/guestfish.pod:13
17661 #, no-wrap
17662 msgid ""
17663 " guestfish [--ro|--rw] -a disk.img\n"
17664 "\n"
17665 msgstr ""
17666
17667 #. type: verbatim
17668 #: ../fish/guestfish.pod:15
17669 #, no-wrap
17670 msgid ""
17671 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17672 "\n"
17673 msgstr ""
17674
17675 #. type: verbatim
17676 #: ../fish/guestfish.pod:17
17677 #, no-wrap
17678 msgid ""
17679 " guestfish -d libvirt-domain\n"
17680 "\n"
17681 msgstr ""
17682
17683 #. type: verbatim
17684 #: ../fish/guestfish.pod:19
17685 #, no-wrap
17686 msgid ""
17687 " guestfish [--ro|--rw] -a disk.img -i\n"
17688 "\n"
17689 msgstr ""
17690
17691 #. type: verbatim
17692 #: ../fish/guestfish.pod:21
17693 #, no-wrap
17694 msgid ""
17695 " guestfish -d libvirt-domain -i\n"
17696 "\n"
17697 msgstr ""
17698
17699 #. type: =head1
17700 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
17701 msgid "WARNING"
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../fish/guestfish.pod:25
17706 msgid ""
17707 "Using guestfish in read/write mode on live virtual machines can be "
17708 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17709 "option to use guestfish safely if the disk image or virtual machine might be "
17710 "live."
17711 msgstr ""
17712
17713 #. type: textblock
17714 #: ../fish/guestfish.pod:32
17715 msgid ""
17716 "Guestfish is a shell and command-line tool for examining and modifying "
17717 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17718 "functionality of the guestfs API, see L<guestfs(3)>."
17719 msgstr ""
17720
17721 #. type: textblock
17722 #: ../fish/guestfish.pod:36
17723 msgid ""
17724 "Guestfish gives you structured access to the libguestfs API, from shell "
17725 "scripts or the command line or interactively.  If you want to rescue a "
17726 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17727 "command."
17728 msgstr ""
17729
17730 #. type: =head1
17731 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:50
17732 msgid "EXAMPLES"
17733 msgstr ""
17734
17735 #. type: =head2
17736 #: ../fish/guestfish.pod:43
17737 msgid "As an interactive shell"
17738 msgstr ""
17739
17740 #. type: verbatim
17741 #: ../fish/guestfish.pod:45
17742 #, no-wrap
17743 msgid ""
17744 " $ guestfish\n"
17745 " \n"
17746 msgstr ""
17747
17748 #. type: verbatim
17749 #: ../fish/guestfish.pod:47
17750 #, no-wrap
17751 msgid ""
17752 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17753 " editing virtual machine filesystems.\n"
17754 " \n"
17755 msgstr ""
17756
17757 #. type: verbatim
17758 #: ../fish/guestfish.pod:50
17759 #, no-wrap
17760 msgid ""
17761 " Type: 'help' for a list of commands\n"
17762 "       'man' to read the manual\n"
17763 "       'quit' to quit the shell\n"
17764 " \n"
17765 msgstr ""
17766
17767 #. type: verbatim
17768 #: ../fish/guestfish.pod:54
17769 #, no-wrap
17770 msgid ""
17771 " ><fs> add-ro disk.img\n"
17772 " ><fs> run\n"
17773 " ><fs> list-filesystems\n"
17774 " /dev/sda1: ext4\n"
17775 " /dev/vg_guest/lv_root: ext4\n"
17776 " /dev/vg_guest/lv_swap: swap\n"
17777 " ><fs> mount /dev/vg_guest/lv_root /\n"
17778 " ><fs> cat /etc/fstab\n"
17779 " # /etc/fstab\n"
17780 " # Created by anaconda\n"
17781 " [...]\n"
17782 " ><fs> exit\n"
17783 "\n"
17784 msgstr ""
17785
17786 #. type: =head2
17787 #: ../fish/guestfish.pod:67
17788 msgid "From shell scripts"
17789 msgstr ""
17790
17791 #. type: textblock
17792 #: ../fish/guestfish.pod:69
17793 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17794 msgstr ""
17795
17796 #. type: verbatim
17797 #: ../fish/guestfish.pod:71
17798 #, no-wrap
17799 msgid ""
17800 " guestfish <<_EOF_\n"
17801 " add disk.img\n"
17802 " run\n"
17803 " mount /dev/vg_guest/lv_root /\n"
17804 " write /etc/motd \"Welcome, new users\"\n"
17805 " _EOF_\n"
17806 "\n"
17807 msgstr ""
17808
17809 #. type: textblock
17810 #: ../fish/guestfish.pod:78
17811 msgid "List the LVM logical volumes in a disk image:"
17812 msgstr ""
17813
17814 #. type: verbatim
17815 #: ../fish/guestfish.pod:80
17816 #, no-wrap
17817 msgid ""
17818 " guestfish -a disk.img --ro <<_EOF_\n"
17819 " run\n"
17820 " lvs\n"
17821 " _EOF_\n"
17822 "\n"
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../fish/guestfish.pod:85
17827 msgid "List all the filesystems in a disk image:"
17828 msgstr ""
17829
17830 #. type: verbatim
17831 #: ../fish/guestfish.pod:87
17832 #, no-wrap
17833 msgid ""
17834 " guestfish -a disk.img --ro <<_EOF_\n"
17835 " run\n"
17836 " list-filesystems\n"
17837 " _EOF_\n"
17838 "\n"
17839 msgstr ""
17840
17841 #. type: =head2
17842 #: ../fish/guestfish.pod:92
17843 msgid "On one command line"
17844 msgstr ""
17845
17846 #. type: textblock
17847 #: ../fish/guestfish.pod:94
17848 msgid "Update C</etc/resolv.conf> in a guest:"
17849 msgstr ""
17850
17851 #. type: verbatim
17852 #: ../fish/guestfish.pod:96
17853 #, no-wrap
17854 msgid ""
17855 " guestfish \\\n"
17856 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17857 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17858 "\n"
17859 msgstr ""
17860
17861 #. type: textblock
17862 #: ../fish/guestfish.pod:100
17863 msgid "Edit C</boot/grub/grub.conf> interactively:"
17864 msgstr ""
17865
17866 #. type: verbatim
17867 #: ../fish/guestfish.pod:102
17868 #, no-wrap
17869 msgid ""
17870 " guestfish --rw --add disk.img \\\n"
17871 "   --mount /dev/vg_guest/lv_root \\\n"
17872 "   --mount /dev/sda1:/boot \\\n"
17873 "   edit /boot/grub/grub.conf\n"
17874 "\n"
17875 msgstr ""
17876
17877 #. type: =head2
17878 #: ../fish/guestfish.pod:107
17879 msgid "Mount disks automatically"
17880 msgstr ""
17881
17882 #. type: textblock
17883 #: ../fish/guestfish.pod:109
17884 msgid ""
17885 "Use the I<-i> option to automatically mount the disks from a virtual "
17886 "machine:"
17887 msgstr ""
17888
17889 #. type: verbatim
17890 #: ../fish/guestfish.pod:112
17891 #, no-wrap
17892 msgid ""
17893 " guestfish --ro -a disk.img -i cat /etc/group\n"
17894 "\n"
17895 msgstr ""
17896
17897 #. type: verbatim
17898 #: ../fish/guestfish.pod:114
17899 #, no-wrap
17900 msgid ""
17901 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17902 "\n"
17903 msgstr ""
17904
17905 #. type: textblock
17906 #: ../fish/guestfish.pod:116
17907 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17908 msgstr ""
17909
17910 #. type: verbatim
17911 #: ../fish/guestfish.pod:118
17912 #, no-wrap
17913 msgid ""
17914 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17915 "\n"
17916 msgstr ""
17917
17918 #. type: =head2
17919 #: ../fish/guestfish.pod:120
17920 msgid "As a script interpreter"
17921 msgstr ""
17922
17923 #. type: textblock
17924 #: ../fish/guestfish.pod:122
17925 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17926 msgstr ""
17927
17928 #. type: verbatim
17929 #: ../fish/guestfish.pod:124
17930 #, no-wrap
17931 msgid ""
17932 " #!/usr/bin/guestfish -f\n"
17933 " sparse test1.img 100M\n"
17934 " run\n"
17935 " part-disk /dev/sda mbr\n"
17936 " mkfs ext2 /dev/sda1\n"
17937 "\n"
17938 msgstr ""
17939
17940 #. type: =head2
17941 #: ../fish/guestfish.pod:130
17942 msgid "Start with a prepared disk"
17943 msgstr ""
17944
17945 #. type: textblock
17946 #: ../fish/guestfish.pod:132
17947 msgid ""
17948 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17949 "single ext2-formatted partition:"
17950 msgstr ""
17951
17952 #. type: verbatim
17953 #: ../fish/guestfish.pod:135
17954 #, no-wrap
17955 msgid ""
17956 " guestfish -N fs\n"
17957 "\n"
17958 msgstr ""
17959
17960 #. type: textblock
17961 #: ../fish/guestfish.pod:137
17962 msgid "To list what is available do:"
17963 msgstr ""
17964
17965 #. type: verbatim
17966 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
17967 #, no-wrap
17968 msgid ""
17969 " guestfish -N help | less\n"
17970 "\n"
17971 msgstr ""
17972
17973 #. type: =head2
17974 #: ../fish/guestfish.pod:141
17975 msgid "Remote control"
17976 msgstr ""
17977
17978 #. type: verbatim
17979 #: ../fish/guestfish.pod:143
17980 #, no-wrap
17981 msgid ""
17982 " eval \"`guestfish --listen`\"\n"
17983 " guestfish --remote add-ro disk.img\n"
17984 " guestfish --remote run\n"
17985 " guestfish --remote lvs\n"
17986 "\n"
17987 msgstr ""
17988
17989 #. type: =head1
17990 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254 ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
17991 msgid "OPTIONS"
17992 msgstr ""
17993
17994 #. type: =item
17995 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104 ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61 ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:62
17996 msgid "B<--help>"
17997 msgstr ""
17998
17999 #. type: textblock
18000 #: ../fish/guestfish.pod:154
18001 msgid "Displays general help on options."
18002 msgstr ""
18003
18004 #. type: =item
18005 #: ../fish/guestfish.pod:156
18006 msgid "B<-h>"
18007 msgstr ""
18008
18009 #. type: =item
18010 #: ../fish/guestfish.pod:158
18011 msgid "B<--cmd-help>"
18012 msgstr ""
18013
18014 #. type: textblock
18015 #: ../fish/guestfish.pod:160
18016 msgid "Lists all available guestfish commands."
18017 msgstr ""
18018
18019 #. type: =item
18020 #: ../fish/guestfish.pod:162
18021 msgid "B<-h cmd>"
18022 msgstr ""
18023
18024 #. type: =item
18025 #: ../fish/guestfish.pod:164
18026 msgid "B<--cmd-help cmd>"
18027 msgstr ""
18028
18029 #. type: textblock
18030 #: ../fish/guestfish.pod:166
18031 msgid "Displays detailed help on a single command C<cmd>."
18032 msgstr ""
18033
18034 #. type: =item
18035 #: ../fish/guestfish.pod:168
18036 msgid "B<-a image>"
18037 msgstr ""
18038
18039 #. type: =item
18040 #: ../fish/guestfish.pod:170
18041 msgid "B<--add image>"
18042 msgstr ""
18043
18044 #. type: textblock
18045 #: ../fish/guestfish.pod:172
18046 msgid "Add a block device or virtual machine image to the shell."
18047 msgstr ""
18048
18049 #. type: textblock
18050 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
18051 msgid ""
18052 "The format of the disk image is auto-detected.  To override this and force a "
18053 "particular format use the I<--format=..> option."
18054 msgstr ""
18055
18056 #. type: textblock
18057 #: ../fish/guestfish.pod:177
18058 msgid ""
18059 "Using this flag is mostly equivalent to using the C<add> command, with "
18060 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18061 "the I<--format:...> flag was given."
18062 msgstr ""
18063
18064 #. type: =item
18065 #: ../fish/guestfish.pod:181
18066 msgid "B<-c URI>"
18067 msgstr ""
18068
18069 #. type: =item
18070 #: ../fish/guestfish.pod:183
18071 msgid "B<--connect URI>"
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
18076 msgid ""
18077 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18078 "URI to use.  The default is to use the default libvirt connection."
18079 msgstr ""
18080
18081 #. type: =item
18082 #: ../fish/guestfish.pod:189
18083 msgid "B<--csh>"
18084 msgstr ""
18085
18086 #. type: textblock
18087 #: ../fish/guestfish.pod:191
18088 msgid ""
18089 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18090 "section L</REMOTE CONTROL AND CSH> below."
18091 msgstr ""
18092
18093 #. type: =item
18094 #: ../fish/guestfish.pod:194
18095 msgid "B<-d libvirt-domain>"
18096 msgstr ""
18097
18098 #. type: =item
18099 #: ../fish/guestfish.pod:196
18100 msgid "B<--domain libvirt-domain>"
18101 msgstr ""
18102
18103 #. type: textblock
18104 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
18105 msgid ""
18106 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18107 "used, then any libvirt domain can be used.  However in write mode, only "
18108 "libvirt domains which are shut down can be named here."
18109 msgstr ""
18110
18111 #. type: textblock
18112 #: ../fish/guestfish.pod:202
18113 msgid ""
18114 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18115 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18116 "if the I<--format:...> flag was given."
18117 msgstr ""
18118
18119 #. type: =item
18120 #: ../fish/guestfish.pod:206
18121 msgid "B<-D>"
18122 msgstr ""
18123
18124 #. type: =item
18125 #: ../fish/guestfish.pod:208
18126 msgid "B<--no-dest-paths>"
18127 msgstr ""
18128
18129 #. type: textblock
18130 #: ../fish/guestfish.pod:210
18131 msgid ""
18132 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18133 "to hit the tab key to complete paths on the guest filesystem, but this "
18134 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18135 "allow this feature to be disabled."
18136 msgstr ""
18137
18138 #. type: =item
18139 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
18140 msgid "B<--echo-keys>"
18141 msgstr ""
18142
18143 #. type: textblock
18144 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
18145 msgid ""
18146 "When prompting for keys and passphrases, guestfish normally turns echoing "
18147 "off so you cannot see what you are typing.  If you are not worried about "
18148 "Tempest attacks and there is no one else in the room you can specify this "
18149 "flag to see what you are typing."
18150 msgstr ""
18151
18152 #. type: =item
18153 #: ../fish/guestfish.pod:222
18154 msgid "B<-f file>"
18155 msgstr ""
18156
18157 #. type: =item
18158 #: ../fish/guestfish.pod:224
18159 msgid "B<--file file>"
18160 msgstr ""
18161
18162 #. type: textblock
18163 #: ../fish/guestfish.pod:226
18164 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18165 msgstr ""
18166
18167 #. type: verbatim
18168 #: ../fish/guestfish.pod:229
18169 #, no-wrap
18170 msgid ""
18171 " #!/usr/bin/guestfish -f\n"
18172 "\n"
18173 msgstr ""
18174
18175 #. type: =item
18176 #: ../fish/guestfish.pod:231
18177 msgid "B<--format=raw|qcow2|..>"
18178 msgstr ""
18179
18180 #. type: =item
18181 #: ../fish/guestfish.pod:233
18182 msgid "B<--format>"
18183 msgstr ""
18184
18185 #. type: textblock
18186 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
18187 msgid ""
18188 "The default for the I<-a> option is to auto-detect the format of the disk "
18189 "image.  Using this forces the disk format for I<-a> options which follow on "
18190 "the command line.  Using I<--format> with no argument switches back to "
18191 "auto-detection for subsequent I<-a> options."
18192 msgstr ""
18193
18194 #. type: verbatim
18195 #: ../fish/guestfish.pod:242
18196 #, no-wrap
18197 msgid ""
18198 " guestfish --format=raw -a disk.img\n"
18199 "\n"
18200 msgstr ""
18201
18202 #. type: textblock
18203 #: ../fish/guestfish.pod:244
18204 msgid "forces raw format (no auto-detection) for C<disk.img>."
18205 msgstr ""
18206
18207 #. type: verbatim
18208 #: ../fish/guestfish.pod:246
18209 #, no-wrap
18210 msgid ""
18211 " guestfish --format=raw -a disk.img --format -a another.img\n"
18212 "\n"
18213 msgstr ""
18214
18215 #. type: textblock
18216 #: ../fish/guestfish.pod:248
18217 msgid ""
18218 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
18219 "auto-detection for C<another.img>."
18220 msgstr ""
18221
18222 #. type: textblock
18223 #: ../fish/guestfish.pod:251
18224 msgid ""
18225 "If you have untrusted raw-format guest disk images, you should use this "
18226 "option to specify the disk format.  This avoids a possible security problem "
18227 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18228 msgstr ""
18229
18230 #. type: =item
18231 #: ../fish/guestfish.pod:256
18232 msgid "B<-i>"
18233 msgstr ""
18234
18235 #. type: =item
18236 #: ../fish/guestfish.pod:258
18237 msgid "B<--inspector>"
18238 msgstr ""
18239
18240 #. type: textblock
18241 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
18242 msgid ""
18243 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18244 "system and mount filesystems as they would be mounted on the real virtual "
18245 "machine."
18246 msgstr ""
18247
18248 #. type: textblock
18249 #: ../fish/guestfish.pod:264
18250 msgid "Typical usage is either:"
18251 msgstr ""
18252
18253 #. type: verbatim
18254 #: ../fish/guestfish.pod:266
18255 #, no-wrap
18256 msgid ""
18257 " guestfish -d myguest -i\n"
18258 "\n"
18259 msgstr ""
18260
18261 #. type: textblock
18262 #: ../fish/guestfish.pod:268
18263 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18264 msgstr ""
18265
18266 #. type: verbatim
18267 #: ../fish/guestfish.pod:270
18268 #, no-wrap
18269 msgid ""
18270 " guestfish --ro -d myguest -i\n"
18271 "\n"
18272 msgstr ""
18273
18274 #. type: textblock
18275 #: ../fish/guestfish.pod:272
18276 msgid "(for active domains, readonly), or specify the block device directly:"
18277 msgstr ""
18278
18279 #. type: verbatim
18280 #: ../fish/guestfish.pod:274
18281 #, no-wrap
18282 msgid ""
18283 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18284 "\n"
18285 msgstr ""
18286
18287 #. type: textblock
18288 #: ../fish/guestfish.pod:276
18289 msgid ""
18290 "Note that the command line syntax changed slightly over older versions of "
18291 "guestfish.  You can still use the old syntax:"
18292 msgstr ""
18293
18294 #. type: verbatim
18295 #: ../fish/guestfish.pod:279
18296 #, no-wrap
18297 msgid ""
18298 " guestfish [--ro] -i disk.img\n"
18299 "\n"
18300 msgstr ""
18301
18302 #. type: verbatim
18303 #: ../fish/guestfish.pod:281
18304 #, no-wrap
18305 msgid ""
18306 " guestfish [--ro] -i libvirt-domain\n"
18307 "\n"
18308 msgstr ""
18309
18310 #. type: textblock
18311 #: ../fish/guestfish.pod:283
18312 msgid ""
18313 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18314 "then using other commands to mount the filesystems that were found."
18315 msgstr ""
18316
18317 #. type: =item
18318 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
18319 msgid "B<--keys-from-stdin>"
18320 msgstr ""
18321
18322 #. type: textblock
18323 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
18324 msgid ""
18325 "Read key or passphrase parameters from stdin.  The default is to try to read "
18326 "passphrases from the user by opening C</dev/tty>."
18327 msgstr ""
18328
18329 #. type: =item
18330 #: ../fish/guestfish.pod:292
18331 msgid "B<--listen>"
18332 msgstr ""
18333
18334 #. type: textblock
18335 #: ../fish/guestfish.pod:294
18336 msgid ""
18337 "Fork into the background and listen for remote commands.  See section "
18338 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18339 msgstr ""
18340
18341 #. type: =item
18342 #: ../fish/guestfish.pod:297
18343 msgid "B<-m dev[:mountpoint]>"
18344 msgstr ""
18345
18346 #. type: =item
18347 #: ../fish/guestfish.pod:299
18348 msgid "B<--mount dev[:mountpoint]>"
18349 msgstr ""
18350
18351 #. type: textblock
18352 #: ../fish/guestfish.pod:301
18353 msgid "Mount the named partition or logical volume on the given mountpoint."
18354 msgstr ""
18355
18356 #. type: textblock
18357 #: ../fish/guestfish.pod:303
18358 msgid "If the mountpoint is omitted, it defaults to C</>."
18359 msgstr ""
18360
18361 #. type: textblock
18362 #: ../fish/guestfish.pod:305
18363 msgid "You have to mount something on C</> before most commands will work."
18364 msgstr ""
18365
18366 #. type: textblock
18367 #: ../fish/guestfish.pod:307
18368 msgid ""
18369 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18370 "launched."
18371 msgstr ""
18372
18373 #. type: textblock
18374 #: ../fish/guestfish.pod:310
18375 msgid ""
18376 "If you don't know what filesystems a disk image contains, you can either run "
18377 "guestfish without this option, then list the partitions, filesystems and LVs "
18378 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18379 "commands), or you can use the L<virt-filesystems(1)> program."
18380 msgstr ""
18381
18382 #. type: textblock
18383 #: ../fish/guestfish.pod:316
18384 msgid ""
18385 "Using this flag is mostly equivalent to using the C<mount-options> command "
18386 "or the C<mount-ro> command if the I<--ro> flag was given."
18387 msgstr ""
18388
18389 #. type: =item
18390 #: ../fish/guestfish.pod:319
18391 msgid "B<-n>"
18392 msgstr ""
18393
18394 #. type: =item
18395 #: ../fish/guestfish.pod:321
18396 msgid "B<--no-sync>"
18397 msgstr ""
18398
18399 #. type: textblock
18400 #: ../fish/guestfish.pod:323
18401 msgid ""
18402 "Disable autosync.  This is enabled by default.  See the discussion of "
18403 "autosync in the L<guestfs(3)> manpage."
18404 msgstr ""
18405
18406 #. type: =item
18407 #: ../fish/guestfish.pod:326
18408 msgid "B<-N type>"
18409 msgstr ""
18410
18411 #. type: =item
18412 #: ../fish/guestfish.pod:328
18413 msgid "B<--new type>"
18414 msgstr ""
18415
18416 #. type: =item
18417 #: ../fish/guestfish.pod:330
18418 msgid "B<-N help>"
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish.pod:332
18423 msgid ""
18424 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18425 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18426 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18427 "IMAGES> below."
18428 msgstr ""
18429
18430 #. type: =item
18431 #: ../fish/guestfish.pod:337
18432 msgid "B<--progress-bars>"
18433 msgstr ""
18434
18435 #. type: textblock
18436 #: ../fish/guestfish.pod:339
18437 msgid "Enable progress bars, even when guestfish is used non-interactively."
18438 msgstr ""
18439
18440 #. type: textblock
18441 #: ../fish/guestfish.pod:341
18442 msgid ""
18443 "Progress bars are enabled by default when guestfish is used as an "
18444 "interactive shell."
18445 msgstr ""
18446
18447 #. type: =item
18448 #: ../fish/guestfish.pod:344
18449 msgid "B<--no-progress-bars>"
18450 msgstr ""
18451
18452 #. type: textblock
18453 #: ../fish/guestfish.pod:346
18454 msgid "Disable progress bars."
18455 msgstr ""
18456
18457 #. type: =item
18458 #: ../fish/guestfish.pod:348
18459 msgid "B<--remote[=pid]>"
18460 msgstr ""
18461
18462 #. type: textblock
18463 #: ../fish/guestfish.pod:350
18464 msgid ""
18465 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18466 "CONTROL GUESTFISH OVER A SOCKET> below."
18467 msgstr ""
18468
18469 #. type: =item
18470 #: ../fish/guestfish.pod:353
18471 msgid "B<-r>"
18472 msgstr ""
18473
18474 #. type: =item
18475 #: ../fish/guestfish.pod:355
18476 msgid "B<--ro>"
18477 msgstr ""
18478
18479 #. type: textblock
18480 #: ../fish/guestfish.pod:357
18481 msgid ""
18482 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18483 "mounts are done read-only."
18484 msgstr ""
18485
18486 #. type: textblock
18487 #: ../fish/guestfish.pod:360
18488 msgid ""
18489 "The option must always be used if the disk image or virtual machine might be "
18490 "running, and is generally recommended in cases where you don't need write "
18491 "access to the disk."
18492 msgstr ""
18493
18494 #. type: textblock
18495 #: ../fish/guestfish.pod:364
18496 msgid ""
18497 "Note that prepared disk images created with I<-N> are not affected by this "
18498 "option.  Also commands like C<add> are not affected - you have to specify "
18499 "the C<readonly:true> option explicitly if you need it."
18500 msgstr ""
18501
18502 #. type: textblock
18503 #: ../fish/guestfish.pod:368
18504 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18505 msgstr ""
18506
18507 #. type: =item
18508 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
18509 msgid "B<--selinux>"
18510 msgstr ""
18511
18512 #. type: textblock
18513 #: ../fish/guestfish.pod:372
18514 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18515 msgstr ""
18516
18517 #. type: =item
18518 #: ../fish/guestfish.pod:374
18519 msgid "B<-v>"
18520 msgstr ""
18521
18522 #. type: =item
18523 #: ../fish/guestfish.pod:376
18524 msgid "B<--verbose>"
18525 msgstr ""
18526
18527 #. type: textblock
18528 #: ../fish/guestfish.pod:378
18529 msgid ""
18530 "Enable very verbose messages.  This is particularly useful if you find a "
18531 "bug."
18532 msgstr ""
18533
18534 #. type: =item
18535 #: ../fish/guestfish.pod:381
18536 msgid "B<-V>"
18537 msgstr ""
18538
18539 #. type: =item
18540 #: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270 ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
18541 msgid "B<--version>"
18542 msgstr ""
18543
18544 #. type: textblock
18545 #: ../fish/guestfish.pod:385
18546 msgid "Display the guestfish / libguestfs version number and exit."
18547 msgstr ""
18548
18549 #. type: =item
18550 #: ../fish/guestfish.pod:387
18551 msgid "B<-w>"
18552 msgstr ""
18553
18554 #. type: =item
18555 #: ../fish/guestfish.pod:389
18556 msgid "B<--rw>"
18557 msgstr ""
18558
18559 #. type: textblock
18560 #: ../fish/guestfish.pod:391
18561 msgid ""
18562 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
18563 "WRITE> below."
18564 msgstr ""
18565
18566 #. type: =item
18567 #: ../fish/guestfish.pod:394
18568 msgid "B<-x>"
18569 msgstr ""
18570
18571 #. type: textblock
18572 #: ../fish/guestfish.pod:396
18573 msgid "Echo each command before executing it."
18574 msgstr ""
18575
18576 #. type: =head1
18577 #: ../fish/guestfish.pod:400
18578 msgid "COMMANDS ON COMMAND LINE"
18579 msgstr ""
18580
18581 #. type: textblock
18582 #: ../fish/guestfish.pod:402
18583 msgid "Any additional (non-option) arguments are treated as commands to execute."
18584 msgstr ""
18585
18586 #. type: textblock
18587 #: ../fish/guestfish.pod:405
18588 msgid ""
18589 "Commands to execute should be separated by a colon (C<:>), where the colon "
18590 "is a separate parameter.  Thus:"
18591 msgstr ""
18592
18593 #. type: verbatim
18594 #: ../fish/guestfish.pod:408
18595 #, no-wrap
18596 msgid ""
18597 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18598 "\n"
18599 msgstr ""
18600
18601 #. type: textblock
18602 #: ../fish/guestfish.pod:410
18603 msgid ""
18604 "If there are no additional arguments, then we enter a shell, either an "
18605 "interactive shell with a prompt (if the input is a terminal) or a "
18606 "non-interactive shell."
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish.pod:414
18611 msgid ""
18612 "In either command line mode or non-interactive shell, the first command that "
18613 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18614 "prompt) if a command fails, you can continue to enter commands."
18615 msgstr ""
18616
18617 #. type: =head1
18618 #: ../fish/guestfish.pod:419
18619 msgid "USING launch (OR run)"
18620 msgstr ""
18621
18622 #. type: textblock
18623 #: ../fish/guestfish.pod:421
18624 msgid ""
18625 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18626 "then launch it, then mount any disks you need, and finally issue "
18627 "actions/commands.  So the general order of the day is:"
18628 msgstr ""
18629
18630 #. type: textblock
18631 #: ../fish/guestfish.pod:429
18632 msgid "add or -a/--add"
18633 msgstr ""
18634
18635 #. type: textblock
18636 #: ../fish/guestfish.pod:433
18637 msgid "launch (aka run)"
18638 msgstr ""
18639
18640 #. type: textblock
18641 #: ../fish/guestfish.pod:437
18642 msgid "mount or -m/--mount"
18643 msgstr ""
18644
18645 #. type: textblock
18646 #: ../fish/guestfish.pod:441
18647 msgid "any other commands"
18648 msgstr ""
18649
18650 #. type: textblock
18651 #: ../fish/guestfish.pod:445
18652 msgid ""
18653 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18654 "guest before mounting or performing any other commands."
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fish/guestfish.pod:448
18659 msgid ""
18660 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18661 "I<--new> options were given then C<run> is done automatically, simply "
18662 "because guestfish can't perform the action you asked for without doing this."
18663 msgstr ""
18664
18665 #. type: =head1
18666 #: ../fish/guestfish.pod:453
18667 msgid "OPENING DISKS FOR READ AND WRITE"
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:455
18672 msgid ""
18673 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
18674 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
18675 "open disk images read-only or for writing."
18676 msgstr ""
18677
18678 #. type: textblock
18679 #: ../fish/guestfish.pod:459
18680 msgid ""
18681 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
18682 "disk images supplied on the command line for write.  To open a disk image "
18683 "read-only you have to do I<-a image --ro>."
18684 msgstr ""
18685
18686 #. type: textblock
18687 #: ../fish/guestfish.pod:463
18688 msgid ""
18689 "This matters: If you accidentally open a live VM disk image writable then "
18690 "you will cause irreversible disk corruption."
18691 msgstr ""
18692
18693 #. type: textblock
18694 #: ../fish/guestfish.pod:466
18695 msgid ""
18696 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
18697 "images will be opened read-only.  You will have to either specify "
18698 "I<guestfish --rw> or change a configuration file in order to get write "
18699 "access for disk images specified by those other command line options."
18700 msgstr ""
18701
18702 #. type: textblock
18703 #: ../fish/guestfish.pod:471
18704 msgid ""
18705 "This version of guestfish has a I<--rw> option which does nothing (it is "
18706 "already the default).  However it is highly recommended that you use this "
18707 "option to indicate that guestfish needs write access, and to prepare your "
18708 "scripts for the day when this option will be required for write access."
18709 msgstr ""
18710
18711 #. type: textblock
18712 #: ../fish/guestfish.pod:477
18713 msgid ""
18714 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18715 "other libguestfs program apart from guestfish and guestmount."
18716 msgstr ""
18717
18718 #. type: =head1
18719 #: ../fish/guestfish.pod:480
18720 msgid "QUOTING"
18721 msgstr ""
18722
18723 #. type: textblock
18724 #: ../fish/guestfish.pod:482
18725 msgid ""
18726 "You can quote ordinary parameters using either single or double quotes.  For "
18727 "example:"
18728 msgstr ""
18729
18730 #. type: verbatim
18731 #: ../fish/guestfish.pod:485
18732 #, no-wrap
18733 msgid ""
18734 " add \"file with a space.img\"\n"
18735 "\n"
18736 msgstr ""
18737
18738 #. type: verbatim
18739 #: ../fish/guestfish.pod:487
18740 #, no-wrap
18741 msgid ""
18742 " rm '/file name'\n"
18743 "\n"
18744 msgstr ""
18745
18746 #. type: verbatim
18747 #: ../fish/guestfish.pod:489
18748 #, no-wrap
18749 msgid ""
18750 " rm '/\"'\n"
18751 "\n"
18752 msgstr ""
18753
18754 #. type: textblock
18755 #: ../fish/guestfish.pod:491
18756 msgid ""
18757 "A few commands require a list of strings to be passed.  For these, use a "
18758 "whitespace-separated list, enclosed in quotes.  Strings containing "
18759 "whitespace to be passed through must be enclosed in single quotes.  A "
18760 "literal single quote must be escaped with a backslash."
18761 msgstr ""
18762
18763 #. type: verbatim
18764 #: ../fish/guestfish.pod:496
18765 #, no-wrap
18766 msgid ""
18767 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18768 " command \"/bin/echo 'foo      bar'\"\n"
18769 " command \"/bin/echo \\'foo\\'\"\n"
18770 "\n"
18771 msgstr ""
18772
18773 #. type: =head1
18774 #: ../fish/guestfish.pod:500
18775 msgid "OPTIONAL ARGUMENTS"
18776 msgstr ""
18777
18778 #. type: textblock
18779 #: ../fish/guestfish.pod:502
18780 msgid ""
18781 "Some commands take optional arguments.  These arguments appear in this "
18782 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18783 msgstr ""
18784
18785 #. type: verbatim
18786 #: ../fish/guestfish.pod:506
18787 #, no-wrap
18788 msgid ""
18789 " add-drive-opts filename\n"
18790 "\n"
18791 msgstr ""
18792
18793 #. type: verbatim
18794 #: ../fish/guestfish.pod:508
18795 #, no-wrap
18796 msgid ""
18797 " add-drive-opts filename readonly:true\n"
18798 "\n"
18799 msgstr ""
18800
18801 #. type: verbatim
18802 #: ../fish/guestfish.pod:510
18803 #, no-wrap
18804 msgid ""
18805 " add-drive-opts filename format:qcow2 readonly:false\n"
18806 "\n"
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../fish/guestfish.pod:512
18811 msgid ""
18812 "Each optional argument can appear at most once.  All optional arguments must "
18813 "appear after the required ones."
18814 msgstr ""
18815
18816 #. type: =head1
18817 #: ../fish/guestfish.pod:515
18818 msgid "NUMBERS"
18819 msgstr ""
18820
18821 #. type: textblock
18822 #: ../fish/guestfish.pod:517
18823 msgid "This section applies to all commands which can take integers as parameters."
18824 msgstr ""
18825
18826 #. type: =head2
18827 #: ../fish/guestfish.pod:520
18828 msgid "SIZE SUFFIX"
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:522
18833 msgid ""
18834 "When the command takes a parameter measured in bytes, you can use one of the "
18835 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18836 msgstr ""
18837
18838 #. type: =item
18839 #: ../fish/guestfish.pod:528
18840 msgid "B<k> or B<K> or B<KiB>"
18841 msgstr ""
18842
18843 #. type: textblock
18844 #: ../fish/guestfish.pod:530
18845 msgid "The size in kilobytes (multiplied by 1024)."
18846 msgstr ""
18847
18848 #. type: =item
18849 #: ../fish/guestfish.pod:532
18850 msgid "B<KB>"
18851 msgstr ""
18852
18853 #. type: textblock
18854 #: ../fish/guestfish.pod:534
18855 msgid "The size in SI 1000 byte units."
18856 msgstr ""
18857
18858 #. type: =item
18859 #: ../fish/guestfish.pod:536
18860 msgid "B<M> or B<MiB>"
18861 msgstr ""
18862
18863 #. type: textblock
18864 #: ../fish/guestfish.pod:538
18865 msgid "The size in megabytes (multiplied by 1048576)."
18866 msgstr ""
18867
18868 #. type: =item
18869 #: ../fish/guestfish.pod:540
18870 msgid "B<MB>"
18871 msgstr ""
18872
18873 #. type: textblock
18874 #: ../fish/guestfish.pod:542
18875 msgid "The size in SI 1000000 byte units."
18876 msgstr ""
18877
18878 #. type: =item
18879 #: ../fish/guestfish.pod:544
18880 msgid "B<G> or B<GiB>"
18881 msgstr ""
18882
18883 #. type: textblock
18884 #: ../fish/guestfish.pod:546
18885 msgid "The size in gigabytes (multiplied by 2**30)."
18886 msgstr ""
18887
18888 #. type: =item
18889 #: ../fish/guestfish.pod:548
18890 msgid "B<GB>"
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../fish/guestfish.pod:550
18895 msgid "The size in SI 10**9 byte units."
18896 msgstr ""
18897
18898 #. type: =item
18899 #: ../fish/guestfish.pod:552
18900 msgid "B<T> or B<TiB>"
18901 msgstr ""
18902
18903 #. type: textblock
18904 #: ../fish/guestfish.pod:554
18905 msgid "The size in terabytes (multiplied by 2**40)."
18906 msgstr ""
18907
18908 #. type: =item
18909 #: ../fish/guestfish.pod:556
18910 msgid "B<TB>"
18911 msgstr ""
18912
18913 #. type: textblock
18914 #: ../fish/guestfish.pod:558
18915 msgid "The size in SI 10**12 byte units."
18916 msgstr ""
18917
18918 #. type: =item
18919 #: ../fish/guestfish.pod:560
18920 msgid "B<P> or B<PiB>"
18921 msgstr ""
18922
18923 #. type: textblock
18924 #: ../fish/guestfish.pod:562
18925 msgid "The size in petabytes (multiplied by 2**50)."
18926 msgstr ""
18927
18928 #. type: =item
18929 #: ../fish/guestfish.pod:564
18930 msgid "B<PB>"
18931 msgstr ""
18932
18933 #. type: textblock
18934 #: ../fish/guestfish.pod:566
18935 msgid "The size in SI 10**15 byte units."
18936 msgstr ""
18937
18938 #. type: =item
18939 #: ../fish/guestfish.pod:568
18940 msgid "B<E> or B<EiB>"
18941 msgstr ""
18942
18943 #. type: textblock
18944 #: ../fish/guestfish.pod:570
18945 msgid "The size in exabytes (multiplied by 2**60)."
18946 msgstr ""
18947
18948 #. type: =item
18949 #: ../fish/guestfish.pod:572
18950 msgid "B<EB>"
18951 msgstr ""
18952
18953 #. type: textblock
18954 #: ../fish/guestfish.pod:574
18955 msgid "The size in SI 10**18 byte units."
18956 msgstr ""
18957
18958 #. type: =item
18959 #: ../fish/guestfish.pod:576
18960 msgid "B<Z> or B<ZiB>"
18961 msgstr ""
18962
18963 #. type: textblock
18964 #: ../fish/guestfish.pod:578
18965 msgid "The size in zettabytes (multiplied by 2**70)."
18966 msgstr ""
18967
18968 #. type: =item
18969 #: ../fish/guestfish.pod:580
18970 msgid "B<ZB>"
18971 msgstr ""
18972
18973 #. type: textblock
18974 #: ../fish/guestfish.pod:582
18975 msgid "The size in SI 10**21 byte units."
18976 msgstr ""
18977
18978 #. type: =item
18979 #: ../fish/guestfish.pod:584
18980 msgid "B<Y> or B<YiB>"
18981 msgstr ""
18982
18983 #. type: textblock
18984 #: ../fish/guestfish.pod:586
18985 msgid "The size in yottabytes (multiplied by 2**80)."
18986 msgstr ""
18987
18988 #. type: =item
18989 #: ../fish/guestfish.pod:588
18990 msgid "B<YB>"
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/guestfish.pod:590
18995 msgid "The size in SI 10**24 byte units."
18996 msgstr ""
18997
18998 #. type: verbatim
18999 #: ../fish/guestfish.pod:596
19000 #, no-wrap
19001 msgid ""
19002 " truncate-size /file 1G\n"
19003 "\n"
19004 msgstr ""
19005
19006 #. type: textblock
19007 #: ../fish/guestfish.pod:598
19008 msgid "would truncate the file to 1 gigabyte."
19009 msgstr ""
19010
19011 #. type: textblock
19012 #: ../fish/guestfish.pod:600
19013 msgid ""
19014 "Be careful because a few commands take sizes in kilobytes or megabytes "
19015 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
19016 "Adding a suffix will probably not do what you expect."
19017 msgstr ""
19018
19019 #. type: =head2
19020 #: ../fish/guestfish.pod:604
19021 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19022 msgstr ""
19023
19024 #. type: textblock
19025 #: ../fish/guestfish.pod:606
19026 msgid ""
19027 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19028 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19029 msgstr ""
19030
19031 #. type: verbatim
19032 #: ../fish/guestfish.pod:609
19033 #, no-wrap
19034 msgid ""
19035 " 1234      decimal number 1234\n"
19036 " 02322     octal number, equivalent to decimal 1234\n"
19037 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19038 "\n"
19039 msgstr ""
19040
19041 #. type: textblock
19042 #: ../fish/guestfish.pod:613
19043 msgid ""
19044 "When using the C<chmod> command, you almost always want to specify an octal "
19045 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19046 "L<chmod(1)> program):"
19047 msgstr ""
19048
19049 #. type: verbatim
19050 #: ../fish/guestfish.pod:617
19051 #, no-wrap
19052 msgid ""
19053 " chmod 0777 /public  # OK\n"
19054 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19055 "\n"
19056 msgstr ""
19057
19058 #. type: textblock
19059 #: ../fish/guestfish.pod:620
19060 msgid ""
19061 "Commands that return numbers usually print them in decimal, but some "
19062 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19063 "octal, preceeded by C<0>)."
19064 msgstr ""
19065
19066 #. type: =head1
19067 #: ../fish/guestfish.pod:624
19068 msgid "WILDCARDS AND GLOBBING"
19069 msgstr ""
19070
19071 #. type: textblock
19072 #: ../fish/guestfish.pod:626
19073 msgid ""
19074 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19075 "(globbing) by default.  So for example the following will not do what you "
19076 "expect:"
19077 msgstr ""
19078
19079 #. type: verbatim
19080 #: ../fish/guestfish.pod:630
19081 #, no-wrap
19082 msgid ""
19083 " rm-rf /home/*\n"
19084 "\n"
19085 msgstr ""
19086
19087 #. type: textblock
19088 #: ../fish/guestfish.pod:632
19089 msgid ""
19090 "Assuming you don't have a directory called literally C</home/*> then the "
19091 "above command will return an error."
19092 msgstr ""
19093
19094 #. type: textblock
19095 #: ../fish/guestfish.pod:635
19096 msgid "To perform wildcard expansion, use the C<glob> command."
19097 msgstr ""
19098
19099 #. type: verbatim
19100 #: ../fish/guestfish.pod:637
19101 #, no-wrap
19102 msgid ""
19103 " glob rm-rf /home/*\n"
19104 "\n"
19105 msgstr ""
19106
19107 #. type: textblock
19108 #: ../fish/guestfish.pod:639
19109 msgid ""
19110 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19111 "many times), equivalent to:"
19112 msgstr ""
19113
19114 #. type: verbatim
19115 #: ../fish/guestfish.pod:642
19116 #, no-wrap
19117 msgid ""
19118 " rm-rf /home/jim\n"
19119 " rm-rf /home/joe\n"
19120 " rm-rf /home/mary\n"
19121 "\n"
19122 msgstr ""
19123
19124 #. type: textblock
19125 #: ../fish/guestfish.pod:646
19126 msgid "C<glob> only works on simple guest paths and not on device names."
19127 msgstr ""
19128
19129 #. type: textblock
19130 #: ../fish/guestfish.pod:648
19131 msgid ""
19132 "If you have several parameters, each containing a wildcard, then glob will "
19133 "perform a Cartesian product."
19134 msgstr ""
19135
19136 #. type: =head1
19137 #: ../fish/guestfish.pod:651
19138 msgid "COMMENTS"
19139 msgstr ""
19140
19141 #. type: textblock
19142 #: ../fish/guestfish.pod:653
19143 msgid ""
19144 "Any line which starts with a I<#> character is treated as a comment and "
19145 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19146 "a command.  For example:"
19147 msgstr ""
19148
19149 #. type: verbatim
19150 #: ../fish/guestfish.pod:657
19151 #, no-wrap
19152 msgid ""
19153 " # this is a comment\n"
19154 "         # this is a comment\n"
19155 " foo # NOT a comment\n"
19156 "\n"
19157 msgstr ""
19158
19159 #. type: textblock
19160 #: ../fish/guestfish.pod:661
19161 msgid "Blank lines are also ignored."
19162 msgstr ""
19163
19164 #. type: =head1
19165 #: ../fish/guestfish.pod:663
19166 msgid "RUNNING COMMANDS LOCALLY"
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../fish/guestfish.pod:665
19171 msgid ""
19172 "Any line which starts with a I<!> character is treated as a command sent to "
19173 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19174 msgstr ""
19175
19176 #. type: verbatim
19177 #: ../fish/guestfish.pod:669
19178 #, no-wrap
19179 msgid ""
19180 " !mkdir local\n"
19181 " tgz-out /remote local/remote-data.tar.gz\n"
19182 "\n"
19183 msgstr ""
19184
19185 #. type: textblock
19186 #: ../fish/guestfish.pod:672
19187 msgid ""
19188 "will create a directory C<local> on the host, and then export the contents "
19189 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19190 "(See C<tgz-out>)."
19191 msgstr ""
19192
19193 #. type: textblock
19194 #: ../fish/guestfish.pod:676
19195 msgid ""
19196 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19197 "effect, due to the way that subprocesses work in Unix."
19198 msgstr ""
19199
19200 #. type: =head1
19201 #: ../fish/guestfish.pod:679
19202 msgid "PIPES"
19203 msgstr ""
19204
19205 #. type: textblock
19206 #: ../fish/guestfish.pod:681
19207 msgid ""
19208 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19209 "command (a guestfish command) to the second command (any host command).  For "
19210 "example:"
19211 msgstr ""
19212
19213 #. type: verbatim
19214 #: ../fish/guestfish.pod:685
19215 #, no-wrap
19216 msgid ""
19217 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19218 "\n"
19219 msgstr ""
19220
19221 #. type: textblock
19222 #: ../fish/guestfish.pod:687
19223 msgid ""
19224 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19225 "program).  The above command would list all accounts in the guest filesystem "
19226 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19227 msgstr ""
19228
19229 #. type: verbatim
19230 #: ../fish/guestfish.pod:692
19231 #, no-wrap
19232 msgid ""
19233 " hexdump /bin/ls | head\n"
19234 " list-devices | tail -1\n"
19235 " tgz-out / - | tar ztf -\n"
19236 "\n"
19237 msgstr ""
19238
19239 #. type: textblock
19240 #: ../fish/guestfish.pod:696
19241 msgid ""
19242 "The space before the pipe symbol is required, any space after the pipe "
19243 "symbol is optional.  Everything after the pipe symbol is just passed "
19244 "straight to the host shell, so it can contain redirections, globs and "
19245 "anything else that makes sense on the host side."
19246 msgstr ""
19247
19248 #. type: textblock
19249 #: ../fish/guestfish.pod:701
19250 msgid ""
19251 "To use a literal argument which begins with a pipe symbol, you have to quote "
19252 "it, eg:"
19253 msgstr ""
19254
19255 #. type: verbatim
19256 #: ../fish/guestfish.pod:704
19257 #, no-wrap
19258 msgid ""
19259 " echo \"|\"\n"
19260 "\n"
19261 msgstr ""
19262
19263 #. type: =head1
19264 #: ../fish/guestfish.pod:706
19265 msgid "HOME DIRECTORIES"
19266 msgstr ""
19267
19268 #. type: textblock
19269 #: ../fish/guestfish.pod:708
19270 msgid ""
19271 "If a parameter starts with the character C<~> then the tilde may be expanded "
19272 "as a home directory path (either C<~> for the current user's home directory, "
19273 "or C<~user> for another user)."
19274 msgstr ""
19275
19276 #. type: textblock
19277 #: ../fish/guestfish.pod:712
19278 msgid ""
19279 "Note that home directory expansion happens for users known I<on the host>, "
19280 "not in the guest filesystem."
19281 msgstr ""
19282
19283 #. type: textblock
19284 #: ../fish/guestfish.pod:715
19285 msgid ""
19286 "To use a literal argument which begins with a tilde, you have to quote it, "
19287 "eg:"
19288 msgstr ""
19289
19290 #. type: verbatim
19291 #: ../fish/guestfish.pod:718
19292 #, no-wrap
19293 msgid ""
19294 " echo \"~\"\n"
19295 "\n"
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../fish/guestfish.pod:722
19300 msgid ""
19301 "Libguestfs has some support for Linux guests encrypted according to the "
19302 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19303 "disk encryption systems used by modern Linux guests.  Currently only "
19304 "LVM-on-LUKS is supported."
19305 msgstr ""
19306
19307 #. type: textblock
19308 #: ../fish/guestfish.pod:727
19309 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19310 msgstr ""
19311
19312 #. type: verbatim
19313 #: ../fish/guestfish.pod:729
19314 #, no-wrap
19315 msgid ""
19316 " ><fs> vfs-type /dev/sda2\n"
19317 " crypto_LUKS\n"
19318 "\n"
19319 msgstr ""
19320
19321 #. type: textblock
19322 #: ../fish/guestfish.pod:732
19323 msgid ""
19324 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19325 "device called C</dev/mapper/luksdev>."
19326 msgstr ""
19327
19328 #. type: verbatim
19329 #: ../fish/guestfish.pod:735
19330 #, no-wrap
19331 msgid ""
19332 " ><fs> luks-open /dev/sda2 luksdev\n"
19333 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19334 "\n"
19335 msgstr ""
19336
19337 #. type: textblock
19338 #: ../fish/guestfish.pod:738
19339 msgid ""
19340 "Finally you have to tell LVM to scan for volume groups on the newly created "
19341 "mapper device:"
19342 msgstr ""
19343
19344 #. type: verbatim
19345 #: ../fish/guestfish.pod:741
19346 #, no-wrap
19347 msgid ""
19348 " vgscan\n"
19349 " vg-activate-all true\n"
19350 "\n"
19351 msgstr ""
19352
19353 #. type: textblock
19354 #: ../fish/guestfish.pod:744
19355 msgid "The logical volume(s) can now be mounted in the usual way."
19356 msgstr ""
19357
19358 #. type: textblock
19359 #: ../fish/guestfish.pod:746
19360 msgid ""
19361 "Before closing a LUKS device you must unmount any logical volumes on it and "
19362 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19363 "one.  Then you can close the mapper device:"
19364 msgstr ""
19365
19366 #. type: verbatim
19367 #: ../fish/guestfish.pod:750
19368 #, no-wrap
19369 msgid ""
19370 " vg-activate false /dev/VG\n"
19371 " luks-close /dev/mapper/luksdev\n"
19372 "\n"
19373 msgstr ""
19374
19375 #. type: =head1
19376 #: ../fish/guestfish.pod:753
19377 msgid "WINDOWS PATHS"
19378 msgstr ""
19379
19380 #. type: textblock
19381 #: ../fish/guestfish.pod:755
19382 msgid ""
19383 "If a path is prefixed with C<win:> then you can use Windows-style paths "
19384 "(with some limitations).  The following commands are equivalent:"
19385 msgstr ""
19386
19387 #. type: verbatim
19388 #: ../fish/guestfish.pod:758
19389 #, no-wrap
19390 msgid ""
19391 " file /WINDOWS/system32/config/system.LOG\n"
19392 "\n"
19393 msgstr ""
19394
19395 #. type: verbatim
19396 #: ../fish/guestfish.pod:760
19397 #, no-wrap
19398 msgid ""
19399 " file win:/windows/system32/config/system.log\n"
19400 "\n"
19401 msgstr ""
19402
19403 #. type: verbatim
19404 #: ../fish/guestfish.pod:762
19405 #, no-wrap
19406 msgid ""
19407 " file win:\\windows\\system32\\config\\system.log\n"
19408 "\n"
19409 msgstr ""
19410
19411 #. type: verbatim
19412 #: ../fish/guestfish.pod:764
19413 #, no-wrap
19414 msgid ""
19415 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
19416 "\n"
19417 msgstr ""
19418
19419 #. type: textblock
19420 #: ../fish/guestfish.pod:766
19421 msgid ""
19422 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
19423 "handles case insensitivity like Windows would.  This only works in argument "
19424 "positions that expect a path."
19425 msgstr ""
19426
19427 #. type: =head1
19428 #: ../fish/guestfish.pod:770
19429 msgid "UPLOADING AND DOWNLOADING FILES"
19430 msgstr ""
19431
19432 #. type: textblock
19433 #: ../fish/guestfish.pod:772
19434 msgid ""
19435 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19436 "others which upload from or download to a local file, you can use the "
19437 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19438 msgstr ""
19439
19440 #. type: verbatim
19441 #: ../fish/guestfish.pod:776
19442 #, no-wrap
19443 msgid ""
19444 " upload - /foo\n"
19445 "\n"
19446 msgstr ""
19447
19448 #. type: textblock
19449 #: ../fish/guestfish.pod:778
19450 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
19451 msgstr ""
19452
19453 #. type: verbatim
19454 #: ../fish/guestfish.pod:781
19455 #, no-wrap
19456 msgid ""
19457 " tar-out /etc - | tar tf -\n"
19458 "\n"
19459 msgstr ""
19460
19461 #. type: textblock
19462 #: ../fish/guestfish.pod:783
19463 msgid ""
19464 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19465 "command (see L</PIPES>)."
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../fish/guestfish.pod:786
19470 msgid ""
19471 "When using C<-> to read from stdin, the input is read up to the end of "
19472 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19473 "some arbitrary end marker:"
19474 msgstr ""
19475
19476 #. type: verbatim
19477 #: ../fish/guestfish.pod:790
19478 #, no-wrap
19479 msgid ""
19480 " upload -<<END /foo\n"
19481 " input line 1\n"
19482 " input line 2\n"
19483 " input line 3\n"
19484 " END\n"
19485 "\n"
19486 msgstr ""
19487
19488 #. type: textblock
19489 #: ../fish/guestfish.pod:796
19490 msgid ""
19491 "Any string of characters can be used instead of C<END>.  The end marker must "
19492 "appear on a line of its own, without any preceeding or following characters "
19493 "(not even spaces)."
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../fish/guestfish.pod:800
19498 msgid ""
19499 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19500 "upload local files (so-called \"FileIn\" parameters in the generator)."
19501 msgstr ""
19502
19503 #. type: =head1
19504 #: ../fish/guestfish.pod:803
19505 msgid "EXIT ON ERROR BEHAVIOUR"
19506 msgstr ""
19507
19508 #. type: textblock
19509 #: ../fish/guestfish.pod:805
19510 msgid ""
19511 "By default, guestfish will ignore any errors when in interactive mode "
19512 "(ie. taking commands from a human over a tty), and will exit on the first "
19513 "error in non-interactive mode (scripts, commands given on the command line)."
19514 msgstr ""
19515
19516 #. type: textblock
19517 #: ../fish/guestfish.pod:810
19518 msgid ""
19519 "If you prefix a command with a I<-> character, then that command will not "
19520 "cause guestfish to exit, even if that (one) command returns an error."
19521 msgstr ""
19522
19523 #. type: =head1
19524 #: ../fish/guestfish.pod:814
19525 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19526 msgstr ""
19527
19528 #. type: textblock
19529 #: ../fish/guestfish.pod:816
19530 msgid ""
19531 "Guestfish can be remote-controlled over a socket.  This is useful "
19532 "particularly in shell scripts where you want to make several different "
19533 "changes to a filesystem, but you don't want the overhead of starting up a "
19534 "guestfish process each time."
19535 msgstr ""
19536
19537 #. type: textblock
19538 #: ../fish/guestfish.pod:821
19539 msgid "Start a guestfish server process using:"
19540 msgstr ""
19541
19542 #. type: verbatim
19543 #: ../fish/guestfish.pod:823
19544 #, no-wrap
19545 msgid ""
19546 " eval \"`guestfish --listen`\"\n"
19547 "\n"
19548 msgstr ""
19549
19550 #. type: textblock
19551 #: ../fish/guestfish.pod:825
19552 msgid "and then send it commands by doing:"
19553 msgstr ""
19554
19555 #. type: verbatim
19556 #: ../fish/guestfish.pod:827
19557 #, no-wrap
19558 msgid ""
19559 " guestfish --remote cmd [...]\n"
19560 "\n"
19561 msgstr ""
19562
19563 #. type: textblock
19564 #: ../fish/guestfish.pod:829
19565 msgid "To cause the server to exit, send it the exit command:"
19566 msgstr ""
19567
19568 #. type: verbatim
19569 #: ../fish/guestfish.pod:831
19570 #, no-wrap
19571 msgid ""
19572 " guestfish --remote exit\n"
19573 "\n"
19574 msgstr ""
19575
19576 #. type: textblock
19577 #: ../fish/guestfish.pod:833
19578 msgid ""
19579 "Note that the server will normally exit if there is an error in a command.  "
19580 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19581 "BEHAVIOUR>."
19582 msgstr ""
19583
19584 #. type: =head2
19585 #: ../fish/guestfish.pod:837
19586 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19587 msgstr ""
19588
19589 #. type: textblock
19590 #: ../fish/guestfish.pod:839
19591 msgid ""
19592 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19593 "is how the I<--remote> option knows where to send the commands.  You can "
19594 "have several guestfish listener processes running using:"
19595 msgstr ""
19596
19597 #. type: verbatim
19598 #: ../fish/guestfish.pod:843
19599 #, no-wrap
19600 msgid ""
19601 " eval \"`guestfish --listen`\"\n"
19602 " pid1=$GUESTFISH_PID\n"
19603 " eval \"`guestfish --listen`\"\n"
19604 " pid2=$GUESTFISH_PID\n"
19605 " ...\n"
19606 " guestfish --remote=$pid1 cmd\n"
19607 " guestfish --remote=$pid2 cmd\n"
19608 "\n"
19609 msgstr ""
19610
19611 #. type: =head2
19612 #: ../fish/guestfish.pod:851
19613 msgid "REMOTE CONTROL AND CSH"
19614 msgstr ""
19615
19616 #. type: textblock
19617 #: ../fish/guestfish.pod:853
19618 msgid ""
19619 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19620 "option:"
19621 msgstr ""
19622
19623 #. type: verbatim
19624 #: ../fish/guestfish.pod:856
19625 #, no-wrap
19626 msgid ""
19627 " eval \"`guestfish --listen --csh`\"\n"
19628 "\n"
19629 msgstr ""
19630
19631 #. type: =head2
19632 #: ../fish/guestfish.pod:858
19633 msgid "REMOTE CONTROL DETAILS"
19634 msgstr ""
19635
19636 #. type: textblock
19637 #: ../fish/guestfish.pod:860
19638 msgid ""
19639 "Remote control happens over a Unix domain socket called "
19640 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
19641 "of the process, and C<$PID> is the process ID of the server."
19642 msgstr ""
19643
19644 #. type: textblock
19645 #: ../fish/guestfish.pod:864
19646 msgid "Guestfish client and server versions must match exactly."
19647 msgstr ""
19648
19649 #. type: =head1
19650 #: ../fish/guestfish.pod:866
19651 msgid "PREPARED DISK IMAGES"
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../fish/guestfish.pod:868
19656 msgid ""
19657 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19658 "preformatted disk images that guestfish can make for you to save typing.  "
19659 "This is particularly useful for testing purposes.  This option is used "
19660 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19661 "can be mixed with I<-a>)."
19662 msgstr ""
19663
19664 #. type: textblock
19665 #: ../fish/guestfish.pod:874
19666 msgid ""
19667 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19668 "the second and so on.  Existing files in the current directory are "
19669 "I<overwritten>."
19670 msgstr ""
19671
19672 #. type: textblock
19673 #: ../fish/guestfish.pod:878
19674 msgid ""
19675 "The type briefly describes how the disk should be sized, partitioned, how "
19676 "filesystem(s) should be created, and how content should be added.  "
19677 "Optionally the type can be followed by extra parameters, separated by C<:> "
19678 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
19679 "sparsely-allocated disk, containing a single partition, with the partition "
19680 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
19681 "on a 1GB disk instead."
19682 msgstr ""
19683
19684 #. type: textblock
19685 #: ../fish/guestfish.pod:886
19686 msgid "To list the available types and any extra parameters they take, run:"
19687 msgstr ""
19688
19689 #. type: textblock
19690 #: ../fish/guestfish.pod:890
19691 msgid ""
19692 "Note that the prepared filesystem is not mounted.  You would usually have to "
19693 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19694 msgstr ""
19695
19696 #. type: textblock
19697 #: ../fish/guestfish.pod:894
19698 msgid ""
19699 "If any I<-N> or I<--new> options are given, the guest is automatically "
19700 "launched."
19701 msgstr ""
19702
19703 #. type: textblock
19704 #: ../fish/guestfish.pod:899
19705 msgid "Create a 100MB disk with an ext4-formatted partition:"
19706 msgstr ""
19707
19708 #. type: verbatim
19709 #: ../fish/guestfish.pod:901
19710 #, no-wrap
19711 msgid ""
19712 " guestfish -N fs:ext4\n"
19713 "\n"
19714 msgstr ""
19715
19716 #. type: textblock
19717 #: ../fish/guestfish.pod:903
19718 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19719 msgstr ""
19720
19721 #. type: verbatim
19722 #: ../fish/guestfish.pod:905
19723 #, no-wrap
19724 msgid ""
19725 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19726 "\n"
19727 msgstr ""
19728
19729 #. type: textblock
19730 #: ../fish/guestfish.pod:907
19731 msgid "Create a blank 200MB disk:"
19732 msgstr ""
19733
19734 #. type: verbatim
19735 #: ../fish/guestfish.pod:909
19736 #, no-wrap
19737 msgid ""
19738 " guestfish -N disk:200M\n"
19739 "\n"
19740 msgstr ""
19741
19742 #. type: =head1
19743 #: ../fish/guestfish.pod:911
19744 msgid "PROGRESS BARS"
19745 msgstr ""
19746
19747 #. type: textblock
19748 #: ../fish/guestfish.pod:913
19749 msgid ""
19750 "Some (not all) long-running commands send progress notification messages as "
19751 "they are running.  Guestfish turns these messages into progress bars."
19752 msgstr ""
19753
19754 #. type: textblock
19755 #: ../fish/guestfish.pod:917
19756 msgid ""
19757 "When a command that supports progress bars takes longer than two seconds to "
19758 "run, and if progress bars are enabled, then you will see one appearing below "
19759 "the command:"
19760 msgstr ""
19761
19762 #. type: verbatim
19763 #: ../fish/guestfish.pod:921
19764 #, no-wrap
19765 msgid ""
19766 " ><fs> copy-size /large-file /another-file 2048M\n"
19767 " / 10% [#####-----------------------------------------] 00:30\n"
19768 "\n"
19769 msgstr ""
19770
19771 #. type: textblock
19772 #: ../fish/guestfish.pod:924
19773 msgid ""
19774 "The spinner on the left hand side moves round once for every progress "
19775 "notification received from the backend.  This is a (reasonably) golden "
19776 "assurance that the command is \"doing something\" even if the progress bar "
19777 "is not moving, because the command is able to send the progress "
19778 "notifications.  When the bar reaches 100% and the command finishes, the "
19779 "spinner disappears."
19780 msgstr ""
19781
19782 #. type: textblock
19783 #: ../fish/guestfish.pod:931
19784 msgid ""
19785 "Progress bars are enabled by default when guestfish is used interactively.  "
19786 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19787 "and you can disable them completely using I<--no-progress-bars>."
19788 msgstr ""
19789
19790 #. type: =head1
19791 #: ../fish/guestfish.pod:936
19792 msgid "GUESTFISH COMMANDS"
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../fish/guestfish.pod:938
19797 msgid ""
19798 "The commands in this section are guestfish convenience commands, in other "
19799 "words, they are not part of the L<guestfs(3)> API."
19800 msgstr ""
19801
19802 #. type: =head2
19803 #: ../fish/guestfish.pod:941
19804 msgid "help"
19805 msgstr ""
19806
19807 #. type: verbatim
19808 #: ../fish/guestfish.pod:943
19809 #, no-wrap
19810 msgid ""
19811 " help\n"
19812 " help cmd\n"
19813 "\n"
19814 msgstr ""
19815
19816 #. type: textblock
19817 #: ../fish/guestfish.pod:946
19818 msgid "Without any parameter, this provides general help."
19819 msgstr ""
19820
19821 #. type: textblock
19822 #: ../fish/guestfish.pod:948
19823 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19824 msgstr ""
19825
19826 #. type: =head2
19827 #: ../fish/guestfish.pod:950
19828 msgid "quit | exit"
19829 msgstr ""
19830
19831 #. type: textblock
19832 #: ../fish/guestfish.pod:952
19833 msgid "This exits guestfish.  You can also use C<^D> key."
19834 msgstr ""
19835
19836 #. type: textblock
19837 #: ../fish/guestfish.pod:954
19838 msgid "@FISH_COMMANDS@"
19839 msgstr ""
19840
19841 #. type: =head1
19842 #: ../fish/guestfish.pod:956
19843 msgid "COMMANDS"
19844 msgstr ""
19845
19846 #. type: =head1
19847 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
19848 msgid "EXIT CODE"
19849 msgstr ""
19850
19851 #. type: textblock
19852 #: ../fish/guestfish.pod:962
19853 msgid ""
19854 "guestfish returns 0 if the commands completed without error, or 1 if there "
19855 "was an error."
19856 msgstr ""
19857
19858 #. type: =item
19859 #: ../fish/guestfish.pod:969
19860 msgid "EDITOR"
19861 msgstr ""
19862
19863 #. type: textblock
19864 #: ../fish/guestfish.pod:971
19865 msgid ""
19866 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19867 "C<vi>."
19868 msgstr ""
19869
19870 #. type: =item
19871 #: ../fish/guestfish.pod:974
19872 msgid "GUESTFISH_PID"
19873 msgstr ""
19874
19875 #. type: textblock
19876 #: ../fish/guestfish.pod:976
19877 msgid ""
19878 "Used with the I<--remote> option to specify the remote guestfish process to "
19879 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19880 msgstr ""
19881
19882 #. type: =item
19883 #: ../fish/guestfish.pod:980
19884 msgid "HEXEDITOR"
19885 msgstr ""
19886
19887 #. type: textblock
19888 #: ../fish/guestfish.pod:982
19889 msgid ""
19890 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19891 "not specified, the external L<hexedit(1)> program is used."
19892 msgstr ""
19893
19894 #. type: =item
19895 #: ../fish/guestfish.pod:986
19896 msgid "HOME"
19897 msgstr ""
19898
19899 #. type: textblock
19900 #: ../fish/guestfish.pod:988
19901 msgid ""
19902 "If compiled with GNU readline support, various files in the home directory "
19903 "can be used.  See L</FILES>."
19904 msgstr ""
19905
19906 #. type: textblock
19907 #: ../fish/guestfish.pod:997
19908 msgid ""
19909 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19910 "effect as using the B<-v> option."
19911 msgstr ""
19912
19913 #. type: textblock
19914 #: ../fish/guestfish.pod:1009
19915 msgid ""
19916 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19917 "the discussion of paths in L<guestfs(3)>."
19918 msgstr ""
19919
19920 #. type: textblock
19921 #: ../fish/guestfish.pod:1020
19922 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19923 msgstr ""
19924
19925 #. type: =item
19926 #: ../fish/guestfish.pod:1022
19927 msgid "PAGER"
19928 msgstr ""
19929
19930 #. type: textblock
19931 #: ../fish/guestfish.pod:1024
19932 msgid ""
19933 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19934 "C<more>."
19935 msgstr ""
19936
19937 #. type: =head1
19938 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
19939 msgid "FILES"
19940 msgstr ""
19941
19942 #. type: =item
19943 #: ../fish/guestfish.pod:1043
19944 msgid "$HOME/.guestfish"
19945 msgstr ""
19946
19947 #. type: textblock
19948 #: ../fish/guestfish.pod:1045
19949 msgid ""
19950 "If compiled with GNU readline support, then the command history is saved in "
19951 "this file."
19952 msgstr ""
19953
19954 #. type: =item
19955 #: ../fish/guestfish.pod:1048
19956 msgid "$HOME/.inputrc"
19957 msgstr ""
19958
19959 #. type: =item
19960 #: ../fish/guestfish.pod:1050
19961 msgid "/etc/inputrc"
19962 msgstr ""
19963
19964 #. type: textblock
19965 #: ../fish/guestfish.pod:1052
19966 msgid ""
19967 "If compiled with GNU readline support, then these files can be used to "
19968 "configure readline.  For further information, please see "
19969 "L<readline(3)/INITIALIZATION FILE>."
19970 msgstr ""
19971
19972 #. type: textblock
19973 #: ../fish/guestfish.pod:1056
19974 msgid "To write rules which only apply to guestfish, use:"
19975 msgstr ""
19976
19977 #. type: verbatim
19978 #: ../fish/guestfish.pod:1058
19979 #, no-wrap
19980 msgid ""
19981 " $if guestfish\n"
19982 " ...\n"
19983 " $endif\n"
19984 "\n"
19985 msgstr ""
19986
19987 #. type: textblock
19988 #: ../fish/guestfish.pod:1062
19989 msgid ""
19990 "Variables that you can set in inputrc that change the behaviour of guestfish "
19991 "in useful ways include:"
19992 msgstr ""
19993
19994 #. type: =item
19995 #: ../fish/guestfish.pod:1067
19996 msgid "completion-ignore-case (default: on)"
19997 msgstr ""
19998
19999 #. type: textblock
20000 #: ../fish/guestfish.pod:1069
20001 msgid ""
20002 "By default, guestfish will ignore case when tab-completing paths on the "
20003 "disk.  Use:"
20004 msgstr ""
20005
20006 #. type: verbatim
20007 #: ../fish/guestfish.pod:1072
20008 #, no-wrap
20009 msgid ""
20010 " set completion-ignore-case off\n"
20011 "\n"
20012 msgstr ""
20013
20014 #. type: textblock
20015 #: ../fish/guestfish.pod:1074
20016 msgid "to make guestfish case sensitive."
20017 msgstr ""
20018
20019 #. type: =item
20020 #: ../fish/guestfish.pod:1078
20021 msgid "test1.img"
20022 msgstr ""
20023
20024 #. type: =item
20025 #: ../fish/guestfish.pod:1080
20026 msgid "test2.img (etc)"
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../fish/guestfish.pod:1082
20031 msgid ""
20032 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
20033 "will be created in the file C<test1.img> in the current directory.  The "
20034 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
20035 "the same name will be overwritten."
20036 msgstr ""
20037
20038 #. type: textblock
20039 #: ../fish/guestfish.pod:1091
20040 msgid ""
20041 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, "
20042 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
20043 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
20044 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
20045 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
20046 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fish/guestfish.pod:1121 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:372 ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
20051 msgid ""
20052 "This program is free software; you can redistribute it and/or modify it "
20053 "under the terms of the GNU General Public License as published by the Free "
20054 "Software Foundation; either version 2 of the License, or (at your option) "
20055 "any later version."
20056 msgstr ""
20057
20058 #. type: textblock
20059 #: ../fish/guestfish.pod:1126 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:377 ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1517 ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
20060 msgid ""
20061 "This program is distributed in the hope that it will be useful, but WITHOUT "
20062 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
20063 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
20064 "more details."
20065 msgstr ""
20066
20067 #. type: textblock
20068 #: ../fish/guestfish.pod:1131 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:382 ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1522 ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
20069 msgid ""
20070 "You should have received a copy of the GNU General Public License along with "
20071 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
20072 "Ave, Cambridge, MA 02139, USA."
20073 msgstr ""
20074
20075 #. type: =head2
20076 #: ../fish/guestfish-actions.pod:1
20077 msgid "add-cdrom"
20078 msgstr ""
20079
20080 #. type: verbatim
20081 #: ../fish/guestfish-actions.pod:3
20082 #, no-wrap
20083 msgid ""
20084 " add-cdrom filename\n"
20085 "\n"
20086 msgstr ""
20087
20088 #. type: textblock
20089 #: ../fish/guestfish-actions.pod:15
20090 msgid ""
20091 "This call checks for the existence of C<filename>.  This stops you from "
20092 "specifying other types of drive which are supported by qemu such as C<nbd:> "
20093 "and C<http:> URLs.  To specify those, use the general L</config> call "
20094 "instead."
20095 msgstr ""
20096
20097 #. type: textblock
20098 #: ../fish/guestfish-actions.pod:22
20099 msgid ""
20100 "If you just want to add an ISO file (often you use this as an efficient way "
20101 "to transfer large files into the guest), then you should probably use "
20102 "L</add-drive-ro> instead."
20103 msgstr ""
20104
20105 #. type: =head2
20106 #: ../fish/guestfish-actions.pod:35
20107 msgid "add-domain"
20108 msgstr ""
20109
20110 #. type: =head2
20111 #: ../fish/guestfish-actions.pod:37
20112 msgid "domain"
20113 msgstr ""
20114
20115 #. type: verbatim
20116 #: ../fish/guestfish-actions.pod:39
20117 #, no-wrap
20118 msgid ""
20119 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
20120 "\n"
20121 msgstr ""
20122
20123 #. type: textblock
20124 #: ../fish/guestfish-actions.pod:41
20125 msgid ""
20126 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
20127 "It works by connecting to libvirt, requesting the domain and domain XML from "
20128 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
20129 msgstr ""
20130
20131 #. type: textblock
20132 #: ../fish/guestfish-actions.pod:64
20133 msgid ""
20134 "The other optional parameters are passed directly through to "
20135 "L</add-drive-opts>."
20136 msgstr ""
20137
20138 #. type: textblock
20139 #: ../fish/guestfish-actions.pod:67 ../fish/guestfish-actions.pod:131 ../fish/guestfish-actions.pod:2921
20140 msgid ""
20141 "This command has one or more optional arguments.  See L</OPTIONAL "
20142 "ARGUMENTS>."
20143 msgstr ""
20144
20145 #. type: =head2
20146 #: ../fish/guestfish-actions.pod:69
20147 msgid "add-drive"
20148 msgstr ""
20149
20150 #. type: verbatim
20151 #: ../fish/guestfish-actions.pod:71
20152 #, no-wrap
20153 msgid ""
20154 " add-drive filename\n"
20155 "\n"
20156 msgstr ""
20157
20158 #. type: textblock
20159 #: ../fish/guestfish-actions.pod:73
20160 msgid ""
20161 "This function is the equivalent of calling L</add-drive-opts> with no "
20162 "optional parameters, so the disk is added writable, with the format being "
20163 "detected automatically."
20164 msgstr ""
20165
20166 #. type: textblock
20167 #: ../fish/guestfish-actions.pod:77
20168 msgid ""
20169 "Automatic detection of the format opens you up to a potential security hole "
20170 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
20171 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
20172 "you should think about replacing calls to this function with calls to "
20173 "L</add-drive-opts>, and specifying the format."
20174 msgstr ""
20175
20176 #. type: =head2
20177 #: ../fish/guestfish-actions.pod:84
20178 msgid "add-drive-opts"
20179 msgstr ""
20180
20181 #. type: =head2
20182 #: ../fish/guestfish-actions.pod:86
20183 msgid "add"
20184 msgstr ""
20185
20186 #. type: verbatim
20187 #: ../fish/guestfish-actions.pod:88
20188 #, no-wrap
20189 msgid ""
20190 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
20191 "\n"
20192 msgstr ""
20193
20194 #. type: textblock
20195 #: ../fish/guestfish-actions.pod:115
20196 msgid ""
20197 "This forces the image format.  If you omit this (or use L</add-drive> or "
20198 "L</add-drive-ro>) then the format is automatically detected.  Possible "
20199 "formats include C<raw> and C<qcow2>."
20200 msgstr ""
20201
20202 #. type: textblock
20203 #: ../fish/guestfish-actions.pod:126
20204 msgid ""
20205 "This rarely-used option lets you emulate the behaviour of the deprecated "
20206 "L</add-drive-with-if> call (q.v.)"
20207 msgstr ""
20208
20209 #. type: =head2
20210 #: ../fish/guestfish-actions.pod:133
20211 msgid "add-drive-ro"
20212 msgstr ""
20213
20214 #. type: =head2
20215 #: ../fish/guestfish-actions.pod:135
20216 msgid "add-ro"
20217 msgstr ""
20218
20219 #. type: verbatim
20220 #: ../fish/guestfish-actions.pod:137
20221 #, no-wrap
20222 msgid ""
20223 " add-drive-ro filename\n"
20224 "\n"
20225 msgstr ""
20226
20227 #. type: textblock
20228 #: ../fish/guestfish-actions.pod:139
20229 msgid ""
20230 "This function is the equivalent of calling L</add-drive-opts> with the "
20231 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
20232 "is added read-only, with the format being detected automatically."
20233 msgstr ""
20234
20235 #. type: =head2
20236 #: ../fish/guestfish-actions.pod:144
20237 msgid "add-drive-ro-with-if"
20238 msgstr ""
20239
20240 #. type: verbatim
20241 #: ../fish/guestfish-actions.pod:146
20242 #, no-wrap
20243 msgid ""
20244 " add-drive-ro-with-if filename iface\n"
20245 "\n"
20246 msgstr ""
20247
20248 #. type: textblock
20249 #: ../fish/guestfish-actions.pod:148
20250 msgid ""
20251 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
20252 "interface emulation to use at run time."
20253 msgstr ""
20254
20255 #. type: =head2
20256 #: ../fish/guestfish-actions.pod:158
20257 msgid "add-drive-with-if"
20258 msgstr ""
20259
20260 #. type: verbatim
20261 #: ../fish/guestfish-actions.pod:160
20262 #, no-wrap
20263 msgid ""
20264 " add-drive-with-if filename iface\n"
20265 "\n"
20266 msgstr ""
20267
20268 #. type: textblock
20269 #: ../fish/guestfish-actions.pod:162
20270 msgid ""
20271 "This is the same as L</add-drive> but it allows you to specify the QEMU "
20272 "interface emulation to use at run time."
20273 msgstr ""
20274
20275 #. type: =head2
20276 #: ../fish/guestfish-actions.pod:172
20277 msgid "aug-clear"
20278 msgstr ""
20279
20280 #. type: verbatim
20281 #: ../fish/guestfish-actions.pod:174
20282 #, no-wrap
20283 msgid ""
20284 " aug-clear augpath\n"
20285 "\n"
20286 msgstr ""
20287
20288 #. type: =head2
20289 #: ../fish/guestfish-actions.pod:179
20290 msgid "aug-close"
20291 msgstr ""
20292
20293 #. type: verbatim
20294 #: ../fish/guestfish-actions.pod:181
20295 #, no-wrap
20296 msgid ""
20297 " aug-close\n"
20298 "\n"
20299 msgstr ""
20300
20301 #. type: textblock
20302 #: ../fish/guestfish-actions.pod:183
20303 msgid ""
20304 "Close the current Augeas handle and free up any resources used by it.  After "
20305 "calling this, you have to call L</aug-init> again before you can use any "
20306 "other Augeas functions."
20307 msgstr ""
20308
20309 #. type: =head2
20310 #: ../fish/guestfish-actions.pod:188
20311 msgid "aug-defnode"
20312 msgstr ""
20313
20314 #. type: verbatim
20315 #: ../fish/guestfish-actions.pod:190
20316 #, no-wrap
20317 msgid ""
20318 " aug-defnode name expr val\n"
20319 "\n"
20320 msgstr ""
20321
20322 #. type: textblock
20323 #: ../fish/guestfish-actions.pod:195
20324 msgid ""
20325 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
20326 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
20327 "containing that single node."
20328 msgstr ""
20329
20330 #. type: =head2
20331 #: ../fish/guestfish-actions.pod:203
20332 msgid "aug-defvar"
20333 msgstr ""
20334
20335 #. type: verbatim
20336 #: ../fish/guestfish-actions.pod:205
20337 #, no-wrap
20338 msgid ""
20339 " aug-defvar name expr\n"
20340 "\n"
20341 msgstr ""
20342
20343 #. type: =head2
20344 #: ../fish/guestfish-actions.pod:214
20345 msgid "aug-get"
20346 msgstr ""
20347
20348 #. type: verbatim
20349 #: ../fish/guestfish-actions.pod:216
20350 #, no-wrap
20351 msgid ""
20352 " aug-get augpath\n"
20353 "\n"
20354 msgstr ""
20355
20356 #. type: =head2
20357 #: ../fish/guestfish-actions.pod:221
20358 msgid "aug-init"
20359 msgstr ""
20360
20361 #. type: verbatim
20362 #: ../fish/guestfish-actions.pod:223
20363 #, no-wrap
20364 msgid ""
20365 " aug-init root flags\n"
20366 "\n"
20367 msgstr ""
20368
20369 #. type: textblock
20370 #: ../fish/guestfish-actions.pod:229
20371 msgid "You must call this before using any other L</aug-*> commands."
20372 msgstr ""
20373
20374 #. type: textblock
20375 #: ../fish/guestfish-actions.pod:264
20376 msgid "Do not load the tree in L</aug-init>."
20377 msgstr ""
20378
20379 #. type: textblock
20380 #: ../fish/guestfish-actions.pod:268
20381 msgid "To close the handle, you can call L</aug-close>."
20382 msgstr ""
20383
20384 #. type: =head2
20385 #: ../fish/guestfish-actions.pod:272
20386 msgid "aug-insert"
20387 msgstr ""
20388
20389 #. type: verbatim
20390 #: ../fish/guestfish-actions.pod:274
20391 #, no-wrap
20392 msgid ""
20393 " aug-insert augpath label true|false\n"
20394 "\n"
20395 msgstr ""
20396
20397 #. type: =head2
20398 #: ../fish/guestfish-actions.pod:284
20399 msgid "aug-load"
20400 msgstr ""
20401
20402 #. type: verbatim
20403 #: ../fish/guestfish-actions.pod:286
20404 #, no-wrap
20405 msgid ""
20406 " aug-load\n"
20407 "\n"
20408 msgstr ""
20409
20410 #. type: =head2
20411 #: ../fish/guestfish-actions.pod:293
20412 msgid "aug-ls"
20413 msgstr ""
20414
20415 #. type: verbatim
20416 #: ../fish/guestfish-actions.pod:295
20417 #, no-wrap
20418 msgid ""
20419 " aug-ls augpath\n"
20420 "\n"
20421 msgstr ""
20422
20423 #. type: textblock
20424 #: ../fish/guestfish-actions.pod:297
20425 msgid ""
20426 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
20427 "resulting nodes into alphabetical order."
20428 msgstr ""
20429
20430 #. type: =head2
20431 #: ../fish/guestfish-actions.pod:300
20432 msgid "aug-match"
20433 msgstr ""
20434
20435 #. type: verbatim
20436 #: ../fish/guestfish-actions.pod:302
20437 #, no-wrap
20438 msgid ""
20439 " aug-match augpath\n"
20440 "\n"
20441 msgstr ""
20442
20443 #. type: =head2
20444 #: ../fish/guestfish-actions.pod:308
20445 msgid "aug-mv"
20446 msgstr ""
20447
20448 #. type: verbatim
20449 #: ../fish/guestfish-actions.pod:310
20450 #, no-wrap
20451 msgid ""
20452 " aug-mv src dest\n"
20453 "\n"
20454 msgstr ""
20455
20456 #. type: =head2
20457 #: ../fish/guestfish-actions.pod:315
20458 msgid "aug-rm"
20459 msgstr ""
20460
20461 #. type: verbatim
20462 #: ../fish/guestfish-actions.pod:317
20463 #, no-wrap
20464 msgid ""
20465 " aug-rm augpath\n"
20466 "\n"
20467 msgstr ""
20468
20469 #. type: =head2
20470 #: ../fish/guestfish-actions.pod:323
20471 msgid "aug-save"
20472 msgstr ""
20473
20474 #. type: verbatim
20475 #: ../fish/guestfish-actions.pod:325
20476 #, no-wrap
20477 msgid ""
20478 " aug-save\n"
20479 "\n"
20480 msgstr ""
20481
20482 #. type: textblock
20483 #: ../fish/guestfish-actions.pod:329
20484 msgid ""
20485 "The flags which were passed to L</aug-init> affect exactly how files are "
20486 "saved."
20487 msgstr ""
20488
20489 #. type: =head2
20490 #: ../fish/guestfish-actions.pod:332
20491 msgid "aug-set"
20492 msgstr ""
20493
20494 #. type: verbatim
20495 #: ../fish/guestfish-actions.pod:334
20496 #, no-wrap
20497 msgid ""
20498 " aug-set augpath val\n"
20499 "\n"
20500 msgstr ""
20501
20502 #. type: textblock
20503 #: ../fish/guestfish-actions.pod:338
20504 msgid ""
20505 "In the Augeas API, it is possible to clear a node by setting the value to "
20506 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
20507 "this call.  Instead you must use the L</aug-clear> call."
20508 msgstr ""
20509
20510 #. type: =head2
20511 #: ../fish/guestfish-actions.pod:343
20512 msgid "available"
20513 msgstr ""
20514
20515 #. type: verbatim
20516 #: ../fish/guestfish-actions.pod:345
20517 #, no-wrap
20518 msgid ""
20519 " available 'groups ...'\n"
20520 "\n"
20521 msgstr ""
20522
20523 #. type: textblock
20524 #: ../fish/guestfish-actions.pod:351
20525 msgid ""
20526 "The libguestfs groups, and the functions that those groups correspond to, "
20527 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
20528 "runtime by calling L</available-all-groups>."
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../fish/guestfish-actions.pod:375
20533 msgid "You must call L</launch> before calling this function."
20534 msgstr ""
20535
20536 #. type: textblock
20537 #: ../fish/guestfish-actions.pod:397
20538 msgid ""
20539 "This call was added in version C<1.0.80>.  In previous versions of "
20540 "libguestfs all you could do would be to speculatively execute a command to "
20541 "find out if the daemon implemented it.  See also L</version>."
20542 msgstr ""
20543
20544 #. type: =head2
20545 #: ../fish/guestfish-actions.pod:404
20546 msgid "available-all-groups"
20547 msgstr ""
20548
20549 #. type: verbatim
20550 #: ../fish/guestfish-actions.pod:406
20551 #, no-wrap
20552 msgid ""
20553 " available-all-groups\n"
20554 "\n"
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../fish/guestfish-actions.pod:408
20559 msgid ""
20560 "This command returns a list of all optional groups that this daemon knows "
20561 "about.  Note this returns both supported and unsupported groups.  To find "
20562 "out which ones the daemon can actually support you have to call "
20563 "L</available> on each member of the returned list."
20564 msgstr ""
20565
20566 #. type: textblock
20567 #: ../fish/guestfish-actions.pod:414
20568 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
20569 msgstr ""
20570
20571 #. type: =head2
20572 #: ../fish/guestfish-actions.pod:416
20573 msgid "base64-in"
20574 msgstr ""
20575
20576 #. type: verbatim
20577 #: ../fish/guestfish-actions.pod:418
20578 #, no-wrap
20579 msgid ""
20580 " base64-in (base64file|-) filename\n"
20581 "\n"
20582 msgstr ""
20583
20584 #. type: textblock
20585 #: ../fish/guestfish-actions.pod:423 ../fish/guestfish-actions.pod:432 ../fish/guestfish-actions.pod:656 ../fish/guestfish-actions.pod:825 ../fish/guestfish-actions.pod:844 ../fish/guestfish-actions.pod:1221 ../fish/guestfish-actions.pod:4289 ../fish/guestfish-actions.pod:4301 ../fish/guestfish-actions.pod:4312 ../fish/guestfish-actions.pod:4323 ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4384 ../fish/guestfish-actions.pod:4438 ../fish/guestfish-actions.pod:4461
20586 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
20587 msgstr ""
20588
20589 #. type: =head2
20590 #: ../fish/guestfish-actions.pod:425
20591 msgid "base64-out"
20592 msgstr ""
20593
20594 #. type: verbatim
20595 #: ../fish/guestfish-actions.pod:427
20596 #, no-wrap
20597 msgid ""
20598 " base64-out filename (base64file|-)\n"
20599 "\n"
20600 msgstr ""
20601
20602 #. type: =head2
20603 #: ../fish/guestfish-actions.pod:434
20604 msgid "blockdev-flushbufs"
20605 msgstr ""
20606
20607 #. type: verbatim
20608 #: ../fish/guestfish-actions.pod:436
20609 #, no-wrap
20610 msgid ""
20611 " blockdev-flushbufs device\n"
20612 "\n"
20613 msgstr ""
20614
20615 #. type: =head2
20616 #: ../fish/guestfish-actions.pod:443
20617 msgid "blockdev-getbsz"
20618 msgstr ""
20619
20620 #. type: verbatim
20621 #: ../fish/guestfish-actions.pod:445
20622 #, no-wrap
20623 msgid ""
20624 " blockdev-getbsz device\n"
20625 "\n"
20626 msgstr ""
20627
20628 #. type: =head2
20629 #: ../fish/guestfish-actions.pod:454
20630 msgid "blockdev-getro"
20631 msgstr ""
20632
20633 #. type: verbatim
20634 #: ../fish/guestfish-actions.pod:456
20635 #, no-wrap
20636 msgid ""
20637 " blockdev-getro device\n"
20638 "\n"
20639 msgstr ""
20640
20641 #. type: =head2
20642 #: ../fish/guestfish-actions.pod:463
20643 msgid "blockdev-getsize64"
20644 msgstr ""
20645
20646 #. type: verbatim
20647 #: ../fish/guestfish-actions.pod:465
20648 #, no-wrap
20649 msgid ""
20650 " blockdev-getsize64 device\n"
20651 "\n"
20652 msgstr ""
20653
20654 #. type: textblock
20655 #: ../fish/guestfish-actions.pod:469
20656 msgid "See also L</blockdev-getsz>."
20657 msgstr ""
20658
20659 #. type: =head2
20660 #: ../fish/guestfish-actions.pod:473
20661 msgid "blockdev-getss"
20662 msgstr ""
20663
20664 #. type: verbatim
20665 #: ../fish/guestfish-actions.pod:475
20666 #, no-wrap
20667 msgid ""
20668 " blockdev-getss device\n"
20669 "\n"
20670 msgstr ""
20671
20672 #. type: textblock
20673 #: ../fish/guestfish-actions.pod:480
20674 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
20675 msgstr ""
20676
20677 #. type: =head2
20678 #: ../fish/guestfish-actions.pod:485
20679 msgid "blockdev-getsz"
20680 msgstr ""
20681
20682 #. type: verbatim
20683 #: ../fish/guestfish-actions.pod:487
20684 #, no-wrap
20685 msgid ""
20686 " blockdev-getsz device\n"
20687 "\n"
20688 msgstr ""
20689
20690 #. type: textblock
20691 #: ../fish/guestfish-actions.pod:492
20692 msgid ""
20693 "See also L</blockdev-getss> for the real sector size of the device, and "
20694 "L</blockdev-getsize64> for the more useful I<size in bytes>."
20695 msgstr ""
20696
20697 #. type: =head2
20698 #: ../fish/guestfish-actions.pod:498
20699 msgid "blockdev-rereadpt"
20700 msgstr ""
20701
20702 #. type: verbatim
20703 #: ../fish/guestfish-actions.pod:500
20704 #, no-wrap
20705 msgid ""
20706 " blockdev-rereadpt device\n"
20707 "\n"
20708 msgstr ""
20709
20710 #. type: =head2
20711 #: ../fish/guestfish-actions.pod:506
20712 msgid "blockdev-setbsz"
20713 msgstr ""
20714
20715 #. type: verbatim
20716 #: ../fish/guestfish-actions.pod:508
20717 #, no-wrap
20718 msgid ""
20719 " blockdev-setbsz device blocksize\n"
20720 "\n"
20721 msgstr ""
20722
20723 #. type: =head2
20724 #: ../fish/guestfish-actions.pod:517
20725 msgid "blockdev-setro"
20726 msgstr ""
20727
20728 #. type: verbatim
20729 #: ../fish/guestfish-actions.pod:519
20730 #, no-wrap
20731 msgid ""
20732 " blockdev-setro device\n"
20733 "\n"
20734 msgstr ""
20735
20736 #. type: =head2
20737 #: ../fish/guestfish-actions.pod:525
20738 msgid "blockdev-setrw"
20739 msgstr ""
20740
20741 #. type: verbatim
20742 #: ../fish/guestfish-actions.pod:527
20743 #, no-wrap
20744 msgid ""
20745 " blockdev-setrw device\n"
20746 "\n"
20747 msgstr ""
20748
20749 #. type: =head2
20750 #: ../fish/guestfish-actions.pod:533
20751 msgid "case-sensitive-path"
20752 msgstr ""
20753
20754 #. type: verbatim
20755 #: ../fish/guestfish-actions.pod:535
20756 #, no-wrap
20757 msgid ""
20758 " case-sensitive-path path\n"
20759 "\n"
20760 msgstr ""
20761
20762 #. type: textblock
20763 #: ../fish/guestfish-actions.pod:559
20764 msgid ""
20765 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
20766 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
20767 "how the directories were originally created under Windows)."
20768 msgstr ""
20769
20770 #. type: textblock
20771 #: ../fish/guestfish-actions.pod:567
20772 msgid "See also L</realpath>."
20773 msgstr ""
20774
20775 #. type: =head2
20776 #: ../fish/guestfish-actions.pod:569
20777 msgid "cat"
20778 msgstr ""
20779
20780 #. type: verbatim
20781 #: ../fish/guestfish-actions.pod:571
20782 #, no-wrap
20783 msgid ""
20784 " cat path\n"
20785 "\n"
20786 msgstr ""
20787
20788 #. type: textblock
20789 #: ../fish/guestfish-actions.pod:575
20790 msgid ""
20791 "Note that this function cannot correctly handle binary files (specifically, "
20792 "files containing C<\\0> character which is treated as end of string).  For "
20793 "those you need to use the L</read-file> or L</download> functions which have "
20794 "a more complex interface."
20795 msgstr ""
20796
20797 #. type: =head2
20798 #: ../fish/guestfish-actions.pod:583
20799 msgid "checksum"
20800 msgstr ""
20801
20802 #. type: verbatim
20803 #: ../fish/guestfish-actions.pod:585
20804 #, no-wrap
20805 msgid ""
20806 " checksum csumtype path\n"
20807 "\n"
20808 msgstr ""
20809
20810 #. type: textblock
20811 #: ../fish/guestfish-actions.pod:628
20812 msgid "To get the checksum for a device, use L</checksum-device>."
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../fish/guestfish-actions.pod:630
20817 msgid "To get the checksums for many files, use L</checksums-out>."
20818 msgstr ""
20819
20820 #. type: =head2
20821 #: ../fish/guestfish-actions.pod:632
20822 msgid "checksum-device"
20823 msgstr ""
20824
20825 #. type: verbatim
20826 #: ../fish/guestfish-actions.pod:634
20827 #, no-wrap
20828 msgid ""
20829 " checksum-device csumtype device\n"
20830 "\n"
20831 msgstr ""
20832
20833 #. type: textblock
20834 #: ../fish/guestfish-actions.pod:636
20835 msgid ""
20836 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20837 "device named C<device>.  For the types of checksums supported see the "
20838 "L</checksum> command."
20839 msgstr ""
20840
20841 #. type: =head2
20842 #: ../fish/guestfish-actions.pod:640
20843 msgid "checksums-out"
20844 msgstr ""
20845
20846 #. type: verbatim
20847 #: ../fish/guestfish-actions.pod:642
20848 #, no-wrap
20849 msgid ""
20850 " checksums-out csumtype directory (sumsfile|-)\n"
20851 "\n"
20852 msgstr ""
20853
20854 #. type: =head2
20855 #: ../fish/guestfish-actions.pod:658
20856 msgid "chmod"
20857 msgstr ""
20858
20859 #. type: verbatim
20860 #: ../fish/guestfish-actions.pod:660
20861 #, no-wrap
20862 msgid ""
20863 " chmod mode path\n"
20864 "\n"
20865 msgstr ""
20866
20867 #. type: =head2
20868 #: ../fish/guestfish-actions.pod:671
20869 msgid "chown"
20870 msgstr ""
20871
20872 #. type: verbatim
20873 #: ../fish/guestfish-actions.pod:673
20874 #, no-wrap
20875 msgid ""
20876 " chown owner group path\n"
20877 "\n"
20878 msgstr ""
20879
20880 #. type: =head2
20881 #: ../fish/guestfish-actions.pod:681
20882 msgid "command"
20883 msgstr ""
20884
20885 #. type: verbatim
20886 #: ../fish/guestfish-actions.pod:683
20887 #, no-wrap
20888 msgid ""
20889 " command 'arguments ...'\n"
20890 "\n"
20891 msgstr ""
20892
20893 #. type: textblock
20894 #: ../fish/guestfish-actions.pod:690
20895 msgid ""
20896 "The single parameter is an argv-style list of arguments.  The first element "
20897 "is the name of the program to run.  Subsequent elements are parameters.  The "
20898 "list must be non-empty (ie. must contain a program name).  Note that the "
20899 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20900 msgstr ""
20901
20902 #. type: =head2
20903 #: ../fish/guestfish-actions.pod:718
20904 msgid "command-lines"
20905 msgstr ""
20906
20907 #. type: verbatim
20908 #: ../fish/guestfish-actions.pod:720
20909 #, no-wrap
20910 msgid ""
20911 " command-lines 'arguments ...'\n"
20912 "\n"
20913 msgstr ""
20914
20915 #. type: textblock
20916 #: ../fish/guestfish-actions.pod:722
20917 msgid "This is the same as L</command>, but splits the result into a list of lines."
20918 msgstr ""
20919
20920 #. type: textblock
20921 #: ../fish/guestfish-actions.pod:725
20922 msgid "See also: L</sh-lines>"
20923 msgstr ""
20924
20925 #. type: =head2
20926 #: ../fish/guestfish-actions.pod:730
20927 msgid "config"
20928 msgstr ""
20929
20930 #. type: verbatim
20931 #: ../fish/guestfish-actions.pod:732
20932 #, no-wrap
20933 msgid ""
20934 " config qemuparam qemuvalue\n"
20935 "\n"
20936 msgstr ""
20937
20938 #. type: =head2
20939 #: ../fish/guestfish-actions.pod:743
20940 msgid "copy-size"
20941 msgstr ""
20942
20943 #. type: verbatim
20944 #: ../fish/guestfish-actions.pod:745
20945 #, no-wrap
20946 msgid ""
20947 " copy-size src dest size\n"
20948 "\n"
20949 msgstr ""
20950
20951 #. type: =head2
20952 #: ../fish/guestfish-actions.pod:753
20953 msgid "cp"
20954 msgstr ""
20955
20956 #. type: verbatim
20957 #: ../fish/guestfish-actions.pod:755
20958 #, no-wrap
20959 msgid ""
20960 " cp src dest\n"
20961 "\n"
20962 msgstr ""
20963
20964 #. type: =head2
20965 #: ../fish/guestfish-actions.pod:760
20966 msgid "cp-a"
20967 msgstr ""
20968
20969 #. type: verbatim
20970 #: ../fish/guestfish-actions.pod:762
20971 #, no-wrap
20972 msgid ""
20973 " cp-a src dest\n"
20974 "\n"
20975 msgstr ""
20976
20977 #. type: =head2
20978 #: ../fish/guestfish-actions.pod:767
20979 msgid "dd"
20980 msgstr ""
20981
20982 #. type: verbatim
20983 #: ../fish/guestfish-actions.pod:769
20984 #, no-wrap
20985 msgid ""
20986 " dd src dest\n"
20987 "\n"
20988 msgstr ""
20989
20990 #. type: textblock
20991 #: ../fish/guestfish-actions.pod:776
20992 msgid ""
20993 "If the destination is a device, it must be as large or larger than the "
20994 "source file or device, otherwise the copy will fail.  This command cannot do "
20995 "partial copies (see L</copy-size>)."
20996 msgstr ""
20997
20998 #. type: =head2
20999 #: ../fish/guestfish-actions.pod:780
21000 msgid "df"
21001 msgstr ""
21002
21003 #. type: verbatim
21004 #: ../fish/guestfish-actions.pod:782
21005 #, no-wrap
21006 msgid ""
21007 " df\n"
21008 "\n"
21009 msgstr ""
21010
21011 #. type: textblock
21012 #: ../fish/guestfish-actions.pod:786 ../fish/guestfish-actions.pod:797
21013 msgid ""
21014 "This command is mostly useful for interactive sessions.  It is I<not> "
21015 "intended that you try to parse the output string.  Use L</statvfs> from "
21016 "programs."
21017 msgstr ""
21018
21019 #. type: =head2
21020 #: ../fish/guestfish-actions.pod:790
21021 msgid "df-h"
21022 msgstr ""
21023
21024 #. type: verbatim
21025 #: ../fish/guestfish-actions.pod:792
21026 #, no-wrap
21027 msgid ""
21028 " df-h\n"
21029 "\n"
21030 msgstr ""
21031
21032 #. type: =head2
21033 #: ../fish/guestfish-actions.pod:801
21034 msgid "dmesg"
21035 msgstr ""
21036
21037 #. type: verbatim
21038 #: ../fish/guestfish-actions.pod:803
21039 #, no-wrap
21040 msgid ""
21041 " dmesg\n"
21042 "\n"
21043 msgstr ""
21044
21045 #. type: textblock
21046 #: ../fish/guestfish-actions.pod:809
21047 msgid ""
21048 "Another way to get the same information is to enable verbose messages with "
21049 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
21050 "before running the program."
21051 msgstr ""
21052
21053 #. type: =head2
21054 #: ../fish/guestfish-actions.pod:814
21055 msgid "download"
21056 msgstr ""
21057
21058 #. type: verbatim
21059 #: ../fish/guestfish-actions.pod:816
21060 #, no-wrap
21061 msgid ""
21062 " download remotefilename (filename|-)\n"
21063 "\n"
21064 msgstr ""
21065
21066 #. type: textblock
21067 #: ../fish/guestfish-actions.pod:823
21068 msgid "See also L</upload>, L</cat>."
21069 msgstr ""
21070
21071 #. type: =head2
21072 #: ../fish/guestfish-actions.pod:827
21073 msgid "download-offset"
21074 msgstr ""
21075
21076 #. type: verbatim
21077 #: ../fish/guestfish-actions.pod:829
21078 #, no-wrap
21079 msgid ""
21080 " download-offset remotefilename (filename|-) offset size\n"
21081 "\n"
21082 msgstr ""
21083
21084 #. type: textblock
21085 #: ../fish/guestfish-actions.pod:837
21086 msgid ""
21087 "Note that there is no limit on the amount of data that can be downloaded "
21088 "with this call, unlike with L</pread>, and this call always reads the full "
21089 "amount unless an error occurs."
21090 msgstr ""
21091
21092 #. type: textblock
21093 #: ../fish/guestfish-actions.pod:842
21094 msgid "See also L</download>, L</pread>."
21095 msgstr ""
21096
21097 #. type: =head2
21098 #: ../fish/guestfish-actions.pod:846
21099 msgid "drop-caches"
21100 msgstr ""
21101
21102 #. type: verbatim
21103 #: ../fish/guestfish-actions.pod:848
21104 #, no-wrap
21105 msgid ""
21106 " drop-caches whattodrop\n"
21107 "\n"
21108 msgstr ""
21109
21110 #. type: =head2
21111 #: ../fish/guestfish-actions.pod:860
21112 msgid "du"
21113 msgstr ""
21114
21115 #. type: verbatim
21116 #: ../fish/guestfish-actions.pod:862
21117 #, no-wrap
21118 msgid ""
21119 " du path\n"
21120 "\n"
21121 msgstr ""
21122
21123 #. type: =head2
21124 #: ../fish/guestfish-actions.pod:874
21125 msgid "e2fsck-f"
21126 msgstr ""
21127
21128 #. type: verbatim
21129 #: ../fish/guestfish-actions.pod:876
21130 #, no-wrap
21131 msgid ""
21132 " e2fsck-f device\n"
21133 "\n"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../fish/guestfish-actions.pod:882
21138 msgid ""
21139 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
21140 "should use L</fsck>."
21141 msgstr ""
21142
21143 #. type: =head2
21144 #: ../fish/guestfish-actions.pod:885
21145 msgid "echo-daemon"
21146 msgstr ""
21147
21148 #. type: verbatim
21149 #: ../fish/guestfish-actions.pod:887
21150 #, no-wrap
21151 msgid ""
21152 " echo-daemon 'words ...'\n"
21153 "\n"
21154 msgstr ""
21155
21156 #. type: textblock
21157 #: ../fish/guestfish-actions.pod:894
21158 msgid "See also L</ping-daemon>."
21159 msgstr ""
21160
21161 #. type: =head2
21162 #: ../fish/guestfish-actions.pod:896
21163 msgid "egrep"
21164 msgstr ""
21165
21166 #. type: verbatim
21167 #: ../fish/guestfish-actions.pod:898
21168 #, no-wrap
21169 msgid ""
21170 " egrep regex path\n"
21171 "\n"
21172 msgstr ""
21173
21174 #. type: =head2
21175 #: ../fish/guestfish-actions.pod:906
21176 msgid "egrepi"
21177 msgstr ""
21178
21179 #. type: verbatim
21180 #: ../fish/guestfish-actions.pod:908
21181 #, no-wrap
21182 msgid ""
21183 " egrepi regex path\n"
21184 "\n"
21185 msgstr ""
21186
21187 #. type: =head2
21188 #: ../fish/guestfish-actions.pod:916
21189 msgid "equal"
21190 msgstr ""
21191
21192 #. type: verbatim
21193 #: ../fish/guestfish-actions.pod:918
21194 #, no-wrap
21195 msgid ""
21196 " equal file1 file2\n"
21197 "\n"
21198 msgstr ""
21199
21200 #. type: =head2
21201 #: ../fish/guestfish-actions.pod:925
21202 msgid "exists"
21203 msgstr ""
21204
21205 #. type: verbatim
21206 #: ../fish/guestfish-actions.pod:927
21207 #, no-wrap
21208 msgid ""
21209 " exists path\n"
21210 "\n"
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../fish/guestfish-actions.pod:932
21215 msgid "See also L</is-file>, L</is-dir>, L</stat>."
21216 msgstr ""
21217
21218 #. type: =head2
21219 #: ../fish/guestfish-actions.pod:934
21220 msgid "fallocate"
21221 msgstr ""
21222
21223 #. type: verbatim
21224 #: ../fish/guestfish-actions.pod:936
21225 #, no-wrap
21226 msgid ""
21227 " fallocate path len\n"
21228 "\n"
21229 msgstr ""
21230
21231 #. type: =head2
21232 #: ../fish/guestfish-actions.pod:953
21233 msgid "fallocate64"
21234 msgstr ""
21235
21236 #. type: verbatim
21237 #: ../fish/guestfish-actions.pod:955
21238 #, no-wrap
21239 msgid ""
21240 " fallocate64 path len\n"
21241 "\n"
21242 msgstr ""
21243
21244 #. type: textblock
21245 #: ../fish/guestfish-actions.pod:961
21246 msgid ""
21247 "Note that this call allocates disk blocks for the file.  To create a sparse "
21248 "file use L</truncate-size> instead."
21249 msgstr ""
21250
21251 #. type: textblock
21252 #: ../fish/guestfish-actions.pod:964
21253 msgid ""
21254 "The deprecated call L</fallocate> does the same, but owing to an oversight "
21255 "it only allowed 30 bit lengths to be specified, effectively limiting the "
21256 "maximum size of files created through that call to 1GB."
21257 msgstr ""
21258
21259 #. type: =head2
21260 #: ../fish/guestfish-actions.pod:973
21261 msgid "fgrep"
21262 msgstr ""
21263
21264 #. type: verbatim
21265 #: ../fish/guestfish-actions.pod:975
21266 #, no-wrap
21267 msgid ""
21268 " fgrep pattern path\n"
21269 "\n"
21270 msgstr ""
21271
21272 #. type: =head2
21273 #: ../fish/guestfish-actions.pod:983
21274 msgid "fgrepi"
21275 msgstr ""
21276
21277 #. type: verbatim
21278 #: ../fish/guestfish-actions.pod:985
21279 #, no-wrap
21280 msgid ""
21281 " fgrepi pattern path\n"
21282 "\n"
21283 msgstr ""
21284
21285 #. type: =head2
21286 #: ../fish/guestfish-actions.pod:993
21287 msgid "file"
21288 msgstr ""
21289
21290 #. type: verbatim
21291 #: ../fish/guestfish-actions.pod:995
21292 #, no-wrap
21293 msgid ""
21294 " file path\n"
21295 "\n"
21296 msgstr ""
21297
21298 #. type: textblock
21299 #: ../fish/guestfish-actions.pod:1007
21300 msgid ""
21301 "This command can also be used on C</dev/> devices (and partitions, LV "
21302 "names).  You can for example use this to determine if a device contains a "
21303 "filesystem, although it's usually better to use L</vfs-type>."
21304 msgstr ""
21305
21306 #. type: =head2
21307 #: ../fish/guestfish-actions.pod:1017
21308 msgid "file-architecture"
21309 msgstr ""
21310
21311 #. type: verbatim
21312 #: ../fish/guestfish-actions.pod:1019
21313 #, no-wrap
21314 msgid ""
21315 " file-architecture filename\n"
21316 "\n"
21317 msgstr ""
21318
21319 #. type: =head2
21320 #: ../fish/guestfish-actions.pod:1122
21321 msgid "filesize"
21322 msgstr ""
21323
21324 #. type: verbatim
21325 #: ../fish/guestfish-actions.pod:1124
21326 #, no-wrap
21327 msgid ""
21328 " filesize file\n"
21329 "\n"
21330 msgstr ""
21331
21332 #. type: textblock
21333 #: ../fish/guestfish-actions.pod:1128
21334 msgid ""
21335 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
21336 "L</is-file> etc.  To get the size of block devices, use "
21337 "L</blockdev-getsize64>."
21338 msgstr ""
21339
21340 #. type: =head2
21341 #: ../fish/guestfish-actions.pod:1132
21342 msgid "fill"
21343 msgstr ""
21344
21345 #. type: verbatim
21346 #: ../fish/guestfish-actions.pod:1134
21347 #, no-wrap
21348 msgid ""
21349 " fill c len path\n"
21350 "\n"
21351 msgstr ""
21352
21353 #. type: textblock
21354 #: ../fish/guestfish-actions.pod:1140
21355 msgid ""
21356 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
21357 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
21358 "L</fill-pattern>."
21359 msgstr ""
21360
21361 #. type: =head2
21362 #: ../fish/guestfish-actions.pod:1145
21363 msgid "fill-pattern"
21364 msgstr ""
21365
21366 #. type: verbatim
21367 #: ../fish/guestfish-actions.pod:1147
21368 #, no-wrap
21369 msgid ""
21370 " fill-pattern pattern len path\n"
21371 "\n"
21372 msgstr ""
21373
21374 #. type: textblock
21375 #: ../fish/guestfish-actions.pod:1149
21376 msgid ""
21377 "This function is like L</fill> except that it creates a new file of length "
21378 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
21379 "is truncated if necessary to ensure the length of the file is exactly C<len> "
21380 "bytes."
21381 msgstr ""
21382
21383 #. type: =head2
21384 #: ../fish/guestfish-actions.pod:1154
21385 msgid "find"
21386 msgstr ""
21387
21388 #. type: verbatim
21389 #: ../fish/guestfish-actions.pod:1156
21390 #, no-wrap
21391 msgid ""
21392 " find directory\n"
21393 "\n"
21394 msgstr ""
21395
21396 #. type: textblock
21397 #: ../fish/guestfish-actions.pod:1170
21398 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
21399 msgstr ""
21400
21401 #. type: textblock
21402 #: ../fish/guestfish-actions.pod:1183
21403 msgid "See also L</find0>."
21404 msgstr ""
21405
21406 #. type: =head2
21407 #: ../fish/guestfish-actions.pod:1188
21408 msgid "find0"
21409 msgstr ""
21410
21411 #. type: verbatim
21412 #: ../fish/guestfish-actions.pod:1190
21413 #, no-wrap
21414 msgid ""
21415 " find0 directory (files|-)\n"
21416 "\n"
21417 msgstr ""
21418
21419 #. type: textblock
21420 #: ../fish/guestfish-actions.pod:1196
21421 msgid "This command works the same way as L</find> with the following exceptions:"
21422 msgstr ""
21423
21424 #. type: =head2
21425 #: ../fish/guestfish-actions.pod:1223
21426 msgid "findfs-label"
21427 msgstr ""
21428
21429 #. type: verbatim
21430 #: ../fish/guestfish-actions.pod:1225
21431 #, no-wrap
21432 msgid ""
21433 " findfs-label label\n"
21434 "\n"
21435 msgstr ""
21436
21437 #. type: textblock
21438 #: ../fish/guestfish-actions.pod:1231
21439 msgid "To find the label of a filesystem, use L</vfs-label>."
21440 msgstr ""
21441
21442 #. type: =head2
21443 #: ../fish/guestfish-actions.pod:1233
21444 msgid "findfs-uuid"
21445 msgstr ""
21446
21447 #. type: verbatim
21448 #: ../fish/guestfish-actions.pod:1235
21449 #, no-wrap
21450 msgid ""
21451 " findfs-uuid uuid\n"
21452 "\n"
21453 msgstr ""
21454
21455 #. type: textblock
21456 #: ../fish/guestfish-actions.pod:1241
21457 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
21458 msgstr ""
21459
21460 #. type: =head2
21461 #: ../fish/guestfish-actions.pod:1243
21462 msgid "fsck"
21463 msgstr ""
21464
21465 #. type: verbatim
21466 #: ../fish/guestfish-actions.pod:1245
21467 #, no-wrap
21468 msgid ""
21469 " fsck fstype device\n"
21470 "\n"
21471 msgstr ""
21472
21473 #. type: =head2
21474 #: ../fish/guestfish-actions.pod:1275
21475 msgid "get-append"
21476 msgstr ""
21477
21478 #. type: verbatim
21479 #: ../fish/guestfish-actions.pod:1277
21480 #, no-wrap
21481 msgid ""
21482 " get-append\n"
21483 "\n"
21484 msgstr ""
21485
21486 #. type: =head2
21487 #: ../fish/guestfish-actions.pod:1284
21488 msgid "get-autosync"
21489 msgstr ""
21490
21491 #. type: verbatim
21492 #: ../fish/guestfish-actions.pod:1286
21493 #, no-wrap
21494 msgid ""
21495 " get-autosync\n"
21496 "\n"
21497 msgstr ""
21498
21499 #. type: =head2
21500 #: ../fish/guestfish-actions.pod:1290
21501 msgid "get-direct"
21502 msgstr ""
21503
21504 #. type: verbatim
21505 #: ../fish/guestfish-actions.pod:1292
21506 #, no-wrap
21507 msgid ""
21508 " get-direct\n"
21509 "\n"
21510 msgstr ""
21511
21512 #. type: =head2
21513 #: ../fish/guestfish-actions.pod:1296
21514 msgid "get-e2label"
21515 msgstr ""
21516
21517 #. type: verbatim
21518 #: ../fish/guestfish-actions.pod:1298
21519 #, no-wrap
21520 msgid ""
21521 " get-e2label device\n"
21522 "\n"
21523 msgstr ""
21524
21525 #. type: =head2
21526 #: ../fish/guestfish-actions.pod:1310
21527 msgid "get-e2uuid"
21528 msgstr ""
21529
21530 #. type: verbatim
21531 #: ../fish/guestfish-actions.pod:1312
21532 #, no-wrap
21533 msgid ""
21534 " get-e2uuid device\n"
21535 "\n"
21536 msgstr ""
21537
21538 #. type: =head2
21539 #: ../fish/guestfish-actions.pod:1324
21540 msgid "get-memsize"
21541 msgstr ""
21542
21543 #. type: verbatim
21544 #: ../fish/guestfish-actions.pod:1326
21545 #, no-wrap
21546 msgid ""
21547 " get-memsize\n"
21548 "\n"
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../fish/guestfish-actions.pod:1331
21553 msgid ""
21554 "If L</set-memsize> was not called on this handle, and if "
21555 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
21556 "value for memsize."
21557 msgstr ""
21558
21559 #. type: =head2
21560 #: ../fish/guestfish-actions.pod:1338
21561 msgid "get-network"
21562 msgstr ""
21563
21564 #. type: verbatim
21565 #: ../fish/guestfish-actions.pod:1340
21566 #, no-wrap
21567 msgid ""
21568 " get-network\n"
21569 "\n"
21570 msgstr ""
21571
21572 #. type: =head2
21573 #: ../fish/guestfish-actions.pod:1344
21574 msgid "get-path"
21575 msgstr ""
21576
21577 #. type: verbatim
21578 #: ../fish/guestfish-actions.pod:1346
21579 #, no-wrap
21580 msgid ""
21581 " get-path\n"
21582 "\n"
21583 msgstr ""
21584
21585 #. type: =head2
21586 #: ../fish/guestfish-actions.pod:1353
21587 msgid "get-pid"
21588 msgstr ""
21589
21590 #. type: =head2
21591 #: ../fish/guestfish-actions.pod:1355
21592 msgid "pid"
21593 msgstr ""
21594
21595 #. type: verbatim
21596 #: ../fish/guestfish-actions.pod:1357
21597 #, no-wrap
21598 msgid ""
21599 " get-pid\n"
21600 "\n"
21601 msgstr ""
21602
21603 #. type: =head2
21604 #: ../fish/guestfish-actions.pod:1364
21605 msgid "get-qemu"
21606 msgstr ""
21607
21608 #. type: verbatim
21609 #: ../fish/guestfish-actions.pod:1366
21610 #, no-wrap
21611 msgid ""
21612 " get-qemu\n"
21613 "\n"
21614 msgstr ""
21615
21616 #. type: =head2
21617 #: ../fish/guestfish-actions.pod:1373
21618 msgid "get-recovery-proc"
21619 msgstr ""
21620
21621 #. type: verbatim
21622 #: ../fish/guestfish-actions.pod:1375
21623 #, no-wrap
21624 msgid ""
21625 " get-recovery-proc\n"
21626 "\n"
21627 msgstr ""
21628
21629 #. type: =head2
21630 #: ../fish/guestfish-actions.pod:1379
21631 msgid "get-selinux"
21632 msgstr ""
21633
21634 #. type: verbatim
21635 #: ../fish/guestfish-actions.pod:1381
21636 #, no-wrap
21637 msgid ""
21638 " get-selinux\n"
21639 "\n"
21640 msgstr ""
21641
21642 #. type: textblock
21643 #: ../fish/guestfish-actions.pod:1383
21644 msgid ""
21645 "This returns the current setting of the selinux flag which is passed to the "
21646 "appliance at boot time.  See L</set-selinux>."
21647 msgstr ""
21648
21649 #. type: =head2
21650 #: ../fish/guestfish-actions.pod:1389
21651 msgid "get-state"
21652 msgstr ""
21653
21654 #. type: verbatim
21655 #: ../fish/guestfish-actions.pod:1391
21656 #, no-wrap
21657 msgid ""
21658 " get-state\n"
21659 "\n"
21660 msgstr ""
21661
21662 #. type: =head2
21663 #: ../fish/guestfish-actions.pod:1398
21664 msgid "get-trace"
21665 msgstr ""
21666
21667 #. type: verbatim
21668 #: ../fish/guestfish-actions.pod:1400
21669 #, no-wrap
21670 msgid ""
21671 " get-trace\n"
21672 "\n"
21673 msgstr ""
21674
21675 #. type: =head2
21676 #: ../fish/guestfish-actions.pod:1404
21677 msgid "get-umask"
21678 msgstr ""
21679
21680 #. type: verbatim
21681 #: ../fish/guestfish-actions.pod:1406
21682 #, no-wrap
21683 msgid ""
21684 " get-umask\n"
21685 "\n"
21686 msgstr ""
21687
21688 #. type: textblock
21689 #: ../fish/guestfish-actions.pod:1408
21690 msgid ""
21691 "Return the current umask.  By default the umask is C<022> unless it has been "
21692 "set by calling L</umask>."
21693 msgstr ""
21694
21695 #. type: =head2
21696 #: ../fish/guestfish-actions.pod:1411
21697 msgid "get-verbose"
21698 msgstr ""
21699
21700 #. type: verbatim
21701 #: ../fish/guestfish-actions.pod:1413
21702 #, no-wrap
21703 msgid ""
21704 " get-verbose\n"
21705 "\n"
21706 msgstr ""
21707
21708 #. type: =head2
21709 #: ../fish/guestfish-actions.pod:1417
21710 msgid "getcon"
21711 msgstr ""
21712
21713 #. type: verbatim
21714 #: ../fish/guestfish-actions.pod:1419
21715 #, no-wrap
21716 msgid ""
21717 " getcon\n"
21718 "\n"
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../fish/guestfish-actions.pod:1423
21723 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
21724 msgstr ""
21725
21726 #. type: =head2
21727 #: ../fish/guestfish-actions.pod:1426
21728 msgid "getxattr"
21729 msgstr ""
21730
21731 #. type: verbatim
21732 #: ../fish/guestfish-actions.pod:1428
21733 #, no-wrap
21734 msgid ""
21735 " getxattr path name\n"
21736 "\n"
21737 msgstr ""
21738
21739 #. type: textblock
21740 #: ../fish/guestfish-actions.pod:1430
21741 msgid ""
21742 "Get a single extended attribute from file C<path> named C<name>.  This call "
21743 "follows symlinks.  If you want to lookup an extended attribute for the "
21744 "symlink itself, use L</lgetxattr>."
21745 msgstr ""
21746
21747 #. type: textblock
21748 #: ../fish/guestfish-actions.pod:1434 ../fish/guestfish-actions.pod:2340
21749 msgid ""
21750 "Normally it is better to get all extended attributes from a file in one go "
21751 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
21752 "buggy and do not provide a way to list out attributes.  For these "
21753 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
21754 "attributes you want in advance and call this function."
21755 msgstr ""
21756
21757 #. type: textblock
21758 #: ../fish/guestfish-actions.pod:1444
21759 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
21760 msgstr ""
21761
21762 #. type: =head2
21763 #: ../fish/guestfish-actions.pod:1446
21764 msgid "getxattrs"
21765 msgstr ""
21766
21767 #. type: verbatim
21768 #: ../fish/guestfish-actions.pod:1448
21769 #, no-wrap
21770 msgid ""
21771 " getxattrs path\n"
21772 "\n"
21773 msgstr ""
21774
21775 #. type: textblock
21776 #: ../fish/guestfish-actions.pod:1456
21777 msgid "See also: L</lgetxattrs>, L<attr(5)>."
21778 msgstr ""
21779
21780 #. type: =head2
21781 #: ../fish/guestfish-actions.pod:1458
21782 msgid "glob-expand"
21783 msgstr ""
21784
21785 #. type: verbatim
21786 #: ../fish/guestfish-actions.pod:1460
21787 #, no-wrap
21788 msgid ""
21789 " glob-expand pattern\n"
21790 "\n"
21791 msgstr ""
21792
21793 #. type: =head2
21794 #: ../fish/guestfish-actions.pod:1473
21795 msgid "grep"
21796 msgstr ""
21797
21798 #. type: verbatim
21799 #: ../fish/guestfish-actions.pod:1475
21800 #, no-wrap
21801 msgid ""
21802 " grep regex path\n"
21803 "\n"
21804 msgstr ""
21805
21806 #. type: =head2
21807 #: ../fish/guestfish-actions.pod:1483
21808 msgid "grepi"
21809 msgstr ""
21810
21811 #. type: verbatim
21812 #: ../fish/guestfish-actions.pod:1485
21813 #, no-wrap
21814 msgid ""
21815 " grepi regex path\n"
21816 "\n"
21817 msgstr ""
21818
21819 #. type: =head2
21820 #: ../fish/guestfish-actions.pod:1493
21821 msgid "grub-install"
21822 msgstr ""
21823
21824 #. type: verbatim
21825 #: ../fish/guestfish-actions.pod:1495
21826 #, no-wrap
21827 msgid ""
21828 " grub-install root device\n"
21829 "\n"
21830 msgstr ""
21831
21832 #. type: =head2
21833 #: ../fish/guestfish-actions.pod:1511
21834 msgid "head"
21835 msgstr ""
21836
21837 #. type: verbatim
21838 #: ../fish/guestfish-actions.pod:1513
21839 #, no-wrap
21840 msgid ""
21841 " head path\n"
21842 "\n"
21843 msgstr ""
21844
21845 #. type: =head2
21846 #: ../fish/guestfish-actions.pod:1521
21847 msgid "head-n"
21848 msgstr ""
21849
21850 #. type: verbatim
21851 #: ../fish/guestfish-actions.pod:1523
21852 #, no-wrap
21853 msgid ""
21854 " head-n nrlines path\n"
21855 "\n"
21856 msgstr ""
21857
21858 #. type: =head2
21859 #: ../fish/guestfish-actions.pod:1536
21860 msgid "hexdump"
21861 msgstr ""
21862
21863 #. type: verbatim
21864 #: ../fish/guestfish-actions.pod:1538
21865 #, no-wrap
21866 msgid ""
21867 " hexdump path\n"
21868 "\n"
21869 msgstr ""
21870
21871 #. type: =head2
21872 #: ../fish/guestfish-actions.pod:1546
21873 msgid "initrd-cat"
21874 msgstr ""
21875
21876 #. type: verbatim
21877 #: ../fish/guestfish-actions.pod:1548
21878 #, no-wrap
21879 msgid ""
21880 " initrd-cat initrdpath filename\n"
21881 "\n"
21882 msgstr ""
21883
21884 #. type: textblock
21885 #: ../fish/guestfish-actions.pod:1560
21886 msgid "See also L</initrd-list>."
21887 msgstr ""
21888
21889 #. type: =head2
21890 #: ../fish/guestfish-actions.pod:1565
21891 msgid "initrd-list"
21892 msgstr ""
21893
21894 #. type: verbatim
21895 #: ../fish/guestfish-actions.pod:1567
21896 #, no-wrap
21897 msgid ""
21898 " initrd-list path\n"
21899 "\n"
21900 msgstr ""
21901
21902 #. type: =head2
21903 #: ../fish/guestfish-actions.pod:1579
21904 msgid "inotify-add-watch"
21905 msgstr ""
21906
21907 #. type: verbatim
21908 #: ../fish/guestfish-actions.pod:1581
21909 #, no-wrap
21910 msgid ""
21911 " inotify-add-watch path mask\n"
21912 "\n"
21913 msgstr ""
21914
21915 #. type: =head2
21916 #: ../fish/guestfish-actions.pod:1593
21917 msgid "inotify-close"
21918 msgstr ""
21919
21920 #. type: verbatim
21921 #: ../fish/guestfish-actions.pod:1595
21922 #, no-wrap
21923 msgid ""
21924 " inotify-close\n"
21925 "\n"
21926 msgstr ""
21927
21928 #. type: =head2
21929 #: ../fish/guestfish-actions.pod:1601
21930 msgid "inotify-files"
21931 msgstr ""
21932
21933 #. type: verbatim
21934 #: ../fish/guestfish-actions.pod:1603
21935 #, no-wrap
21936 msgid ""
21937 " inotify-files\n"
21938 "\n"
21939 msgstr ""
21940
21941 #. type: textblock
21942 #: ../fish/guestfish-actions.pod:1605
21943 msgid ""
21944 "This function is a helpful wrapper around L</inotify-read> which just "
21945 "returns a list of pathnames of objects that were touched.  The returned "
21946 "pathnames are sorted and deduplicated."
21947 msgstr ""
21948
21949 #. type: =head2
21950 #: ../fish/guestfish-actions.pod:1609
21951 msgid "inotify-init"
21952 msgstr ""
21953
21954 #. type: verbatim
21955 #: ../fish/guestfish-actions.pod:1611
21956 #, no-wrap
21957 msgid ""
21958 " inotify-init maxevents\n"
21959 "\n"
21960 msgstr ""
21961
21962 #. type: textblock
21963 #: ../fish/guestfish-actions.pod:1617
21964 msgid ""
21965 "C<maxevents> is the maximum number of events which will be queued up between "
21966 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21967 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21968 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21969 "but records the fact that it threw them away by setting a flag "
21970 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21971 msgstr ""
21972
21973 #. type: textblock
21974 #: ../fish/guestfish-actions.pod:1627
21975 msgid ""
21976 "Before any events are generated, you have to add some watches to the "
21977 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21978 "L</inotify-watch-all>."
21979 msgstr ""
21980
21981 #. type: textblock
21982 #: ../fish/guestfish-actions.pod:1633
21983 msgid ""
21984 "Queued up events should be read periodically by calling L</inotify-read> (or "
21985 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21986 "If you don't read the events out often enough then you risk the internal "
21987 "queue overflowing."
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../fish/guestfish-actions.pod:1640
21992 msgid ""
21993 "The handle should be closed after use by calling L</inotify-close>.  This "
21994 "also removes any watches automatically."
21995 msgstr ""
21996
21997 #. type: =head2
21998 #: ../fish/guestfish-actions.pod:1649
21999 msgid "inotify-read"
22000 msgstr ""
22001
22002 #. type: verbatim
22003 #: ../fish/guestfish-actions.pod:1651
22004 #, no-wrap
22005 msgid ""
22006 " inotify-read\n"
22007 "\n"
22008 msgstr ""
22009
22010 #. type: =head2
22011 #: ../fish/guestfish-actions.pod:1664
22012 msgid "inotify-rm-watch"
22013 msgstr ""
22014
22015 #. type: verbatim
22016 #: ../fish/guestfish-actions.pod:1666
22017 #, no-wrap
22018 msgid ""
22019 " inotify-rm-watch wd\n"
22020 "\n"
22021 msgstr ""
22022
22023 #. type: textblock
22024 #: ../fish/guestfish-actions.pod:1668
22025 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
22026 msgstr ""
22027
22028 #. type: =head2
22029 #: ../fish/guestfish-actions.pod:1671
22030 msgid "inspect-get-arch"
22031 msgstr ""
22032
22033 #. type: verbatim
22034 #: ../fish/guestfish-actions.pod:1673
22035 #, no-wrap
22036 msgid ""
22037 " inspect-get-arch root\n"
22038 "\n"
22039 msgstr ""
22040
22041 #. type: textblock
22042 #: ../fish/guestfish-actions.pod:1675 ../fish/guestfish-actions.pod:1691 ../fish/guestfish-actions.pod:1765 ../fish/guestfish-actions.pod:1783 ../fish/guestfish-actions.pod:1817 ../fish/guestfish-actions.pod:1832 ../fish/guestfish-actions.pod:1853 ../fish/guestfish-actions.pod:1868 ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1941 ../fish/guestfish-actions.pod:1971 ../fish/guestfish-actions.pod:2006 ../fish/guestfish-actions.pod:2022 ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2048 ../fish/guestfish-actions.pod:2063
22043 msgid ""
22044 "This function should only be called with a root device string as returned by "
22045 "L</inspect-os>."
22046 msgstr ""
22047
22048 #. type: textblock
22049 #: ../fish/guestfish-actions.pod:1678
22050 msgid ""
22051 "This returns the architecture of the inspected operating system.  The "
22052 "possible return values are listed under L</file-architecture>."
22053 msgstr ""
22054
22055 #. type: =head2
22056 #: ../fish/guestfish-actions.pod:1687
22057 msgid "inspect-get-distro"
22058 msgstr ""
22059
22060 #. type: verbatim
22061 #: ../fish/guestfish-actions.pod:1689
22062 #, no-wrap
22063 msgid ""
22064 " inspect-get-distro root\n"
22065 "\n"
22066 msgstr ""
22067
22068 #. type: =head2
22069 #: ../fish/guestfish-actions.pod:1761
22070 msgid "inspect-get-filesystems"
22071 msgstr ""
22072
22073 #. type: verbatim
22074 #: ../fish/guestfish-actions.pod:1763
22075 #, no-wrap
22076 msgid ""
22077 " inspect-get-filesystems root\n"
22078 "\n"
22079 msgstr ""
22080
22081 #. type: textblock
22082 #: ../fish/guestfish-actions.pod:1776
22083 msgid ""
22084 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
22085 "L</inspect-get-mountpoints>."
22086 msgstr ""
22087
22088 #. type: =head2
22089 #: ../fish/guestfish-actions.pod:1779
22090 msgid "inspect-get-format"
22091 msgstr ""
22092
22093 #. type: verbatim
22094 #: ../fish/guestfish-actions.pod:1781
22095 #, no-wrap
22096 msgid ""
22097 " inspect-get-format root\n"
22098 "\n"
22099 msgstr ""
22100
22101 #. type: =head2
22102 #: ../fish/guestfish-actions.pod:1813
22103 msgid "inspect-get-hostname"
22104 msgstr ""
22105
22106 #. type: verbatim
22107 #: ../fish/guestfish-actions.pod:1815
22108 #, no-wrap
22109 msgid ""
22110 " inspect-get-hostname root\n"
22111 "\n"
22112 msgstr ""
22113
22114 #. type: =head2
22115 #: ../fish/guestfish-actions.pod:1828
22116 msgid "inspect-get-major-version"
22117 msgstr ""
22118
22119 #. type: verbatim
22120 #: ../fish/guestfish-actions.pod:1830
22121 #, no-wrap
22122 msgid ""
22123 " inspect-get-major-version root\n"
22124 "\n"
22125 msgstr ""
22126
22127 #. type: =head2
22128 #: ../fish/guestfish-actions.pod:1849
22129 msgid "inspect-get-minor-version"
22130 msgstr ""
22131
22132 #. type: verbatim
22133 #: ../fish/guestfish-actions.pod:1851
22134 #, no-wrap
22135 msgid ""
22136 " inspect-get-minor-version root\n"
22137 "\n"
22138 msgstr ""
22139
22140 #. type: textblock
22141 #: ../fish/guestfish-actions.pod:1861
22142 msgid ""
22143 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
22144 "L</inspect-get-major-version>."
22145 msgstr ""
22146
22147 #. type: =head2
22148 #: ../fish/guestfish-actions.pod:1864
22149 msgid "inspect-get-mountpoints"
22150 msgstr ""
22151
22152 #. type: verbatim
22153 #: ../fish/guestfish-actions.pod:1866
22154 #, no-wrap
22155 msgid ""
22156 " inspect-get-mountpoints root\n"
22157 "\n"
22158 msgstr ""
22159
22160 #. type: textblock
22161 #: ../fish/guestfish-actions.pod:1888
22162 msgid ""
22163 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
22164 "L</inspect-get-filesystems>."
22165 msgstr ""
22166
22167 #. type: =head2
22168 #: ../fish/guestfish-actions.pod:1891
22169 msgid "inspect-get-package-format"
22170 msgstr ""
22171
22172 #. type: verbatim
22173 #: ../fish/guestfish-actions.pod:1893
22174 #, no-wrap
22175 msgid ""
22176 " inspect-get-package-format root\n"
22177 "\n"
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../fish/guestfish-actions.pod:1898
22182 msgid ""
22183 "This function and L</inspect-get-package-management> return the package "
22184 "format and package management tool used by the inspected operating system.  "
22185 "For example for Fedora these functions would return C<rpm> (package format) "
22186 "and C<yum> (package management)."
22187 msgstr ""
22188
22189 #. type: =head2
22190 #: ../fish/guestfish-actions.pod:1913
22191 msgid "inspect-get-package-management"
22192 msgstr ""
22193
22194 #. type: verbatim
22195 #: ../fish/guestfish-actions.pod:1915
22196 #, no-wrap
22197 msgid ""
22198 " inspect-get-package-management root\n"
22199 "\n"
22200 msgstr ""
22201
22202 #. type: textblock
22203 #: ../fish/guestfish-actions.pod:1920
22204 msgid ""
22205 "L</inspect-get-package-format> and this function return the package format "
22206 "and package management tool used by the inspected operating system.  For "
22207 "example for Fedora these functions would return C<rpm> (package format) and "
22208 "C<yum> (package management)."
22209 msgstr ""
22210
22211 #. type: =head2
22212 #: ../fish/guestfish-actions.pod:1937
22213 msgid "inspect-get-product-name"
22214 msgstr ""
22215
22216 #. type: verbatim
22217 #: ../fish/guestfish-actions.pod:1939
22218 #, no-wrap
22219 msgid ""
22220 " inspect-get-product-name root\n"
22221 "\n"
22222 msgstr ""
22223
22224 #. type: =head2
22225 #: ../fish/guestfish-actions.pod:1954
22226 msgid "inspect-get-roots"
22227 msgstr ""
22228
22229 #. type: verbatim
22230 #: ../fish/guestfish-actions.pod:1956
22231 #, no-wrap
22232 msgid ""
22233 " inspect-get-roots\n"
22234 "\n"
22235 msgstr ""
22236
22237 #. type: textblock
22238 #: ../fish/guestfish-actions.pod:1958
22239 msgid ""
22240 "This function is a convenient way to get the list of root devices, as "
22241 "returned from a previous call to L</inspect-os>, but without redoing the "
22242 "whole inspection process."
22243 msgstr ""
22244
22245 #. type: textblock
22246 #: ../fish/guestfish-actions.pod:1962
22247 msgid ""
22248 "This returns an empty list if either no root devices were found or the "
22249 "caller has not called L</inspect-os>."
22250 msgstr ""
22251
22252 #. type: =head2
22253 #: ../fish/guestfish-actions.pod:1967
22254 msgid "inspect-get-type"
22255 msgstr ""
22256
22257 #. type: verbatim
22258 #: ../fish/guestfish-actions.pod:1969
22259 #, no-wrap
22260 msgid ""
22261 " inspect-get-type root\n"
22262 "\n"
22263 msgstr ""
22264
22265 #. type: =head2
22266 #: ../fish/guestfish-actions.pod:2002
22267 msgid "inspect-get-windows-systemroot"
22268 msgstr ""
22269
22270 #. type: verbatim
22271 #: ../fish/guestfish-actions.pod:2004
22272 #, no-wrap
22273 msgid ""
22274 " inspect-get-windows-systemroot root\n"
22275 "\n"
22276 msgstr ""
22277
22278 #. type: =head2
22279 #: ../fish/guestfish-actions.pod:2018
22280 msgid "inspect-is-live"
22281 msgstr ""
22282
22283 #. type: verbatim
22284 #: ../fish/guestfish-actions.pod:2020
22285 #, no-wrap
22286 msgid ""
22287 " inspect-is-live root\n"
22288 "\n"
22289 msgstr ""
22290
22291 #. type: textblock
22292 #: ../fish/guestfish-actions.pod:2025
22293 msgid ""
22294 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
22295 "then this returns true if a live image was detected on the disk."
22296 msgstr ""
22297
22298 #. type: =head2
22299 #: ../fish/guestfish-actions.pod:2031
22300 msgid "inspect-is-multipart"
22301 msgstr ""
22302
22303 #. type: verbatim
22304 #: ../fish/guestfish-actions.pod:2033
22305 #, no-wrap
22306 msgid ""
22307 " inspect-is-multipart root\n"
22308 "\n"
22309 msgstr ""
22310
22311 #. type: textblock
22312 #: ../fish/guestfish-actions.pod:2038
22313 msgid ""
22314 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
22315 "then this returns true if the disk is part of a set."
22316 msgstr ""
22317
22318 #. type: =head2
22319 #: ../fish/guestfish-actions.pod:2044
22320 msgid "inspect-is-netinst"
22321 msgstr ""
22322
22323 #. type: verbatim
22324 #: ../fish/guestfish-actions.pod:2046
22325 #, no-wrap
22326 msgid ""
22327 " inspect-is-netinst root\n"
22328 "\n"
22329 msgstr ""
22330
22331 #. type: textblock
22332 #: ../fish/guestfish-actions.pod:2051
22333 msgid ""
22334 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
22335 "then this returns true if the disk is a network installer, ie. not a "
22336 "self-contained install CD but one which is likely to require network access "
22337 "to complete the install."
22338 msgstr ""
22339
22340 #. type: =head2
22341 #: ../fish/guestfish-actions.pod:2059
22342 msgid "inspect-list-applications"
22343 msgstr ""
22344
22345 #. type: verbatim
22346 #: ../fish/guestfish-actions.pod:2061
22347 #, no-wrap
22348 msgid ""
22349 " inspect-list-applications root\n"
22350 "\n"
22351 msgstr ""
22352
22353 #. type: textblock
22354 #: ../fish/guestfish-actions.pod:2068
22355 msgid ""
22356 "I<Note:> This call works differently from other parts of the inspection "
22357 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
22358 "then mount up the disks, before calling this.  Listing applications is a "
22359 "significantly more difficult operation which requires access to the full "
22360 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
22361 "are just returning data cached in the libguestfs handle, this call actually "
22362 "reads parts of the mounted filesystems during the call."
22363 msgstr ""
22364
22365 #. type: =head2
22366 #: ../fish/guestfish-actions.pod:2158
22367 msgid "inspect-os"
22368 msgstr ""
22369
22370 #. type: verbatim
22371 #: ../fish/guestfish-actions.pod:2160
22372 #, no-wrap
22373 msgid ""
22374 " inspect-os\n"
22375 "\n"
22376 msgstr ""
22377
22378 #. type: textblock
22379 #: ../fish/guestfish-actions.pod:2175
22380 msgid ""
22381 "You can pass the root string(s) returned to other L</inspect-get-*> "
22382 "functions in order to query further information about each operating system, "
22383 "such as the name and version."
22384 msgstr ""
22385
22386 #. type: textblock
22387 #: ../fish/guestfish-actions.pod:2180
22388 msgid ""
22389 "This function uses other libguestfs features such as L</mount-ro> and "
22390 "L</umount-all> in order to mount and unmount filesystems and look at the "
22391 "contents.  This should be called with no disks currently mounted.  The "
22392 "function may also use Augeas, so any existing Augeas handle will be closed."
22393 msgstr ""
22394
22395 #. type: textblock
22396 #: ../fish/guestfish-actions.pod:2192 ../fish/guestfish-actions.pod:2368 ../fish/guestfish-actions.pod:2414
22397 msgid "See also L</list-filesystems>."
22398 msgstr ""
22399
22400 #. type: =head2
22401 #: ../fish/guestfish-actions.pod:2194
22402 msgid "is-blockdev"
22403 msgstr ""
22404
22405 #. type: verbatim
22406 #: ../fish/guestfish-actions.pod:2196
22407 #, no-wrap
22408 msgid ""
22409 " is-blockdev path\n"
22410 "\n"
22411 msgstr ""
22412
22413 #. type: textblock
22414 #: ../fish/guestfish-actions.pod:2201 ../fish/guestfish-actions.pod:2219 ../fish/guestfish-actions.pod:2238 ../fish/guestfish-actions.pod:2247 ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2291 ../fish/guestfish-actions.pod:2300
22415 msgid "See also L</stat>."
22416 msgstr ""
22417
22418 #. type: =head2
22419 #: ../fish/guestfish-actions.pod:2203
22420 msgid "is-busy"
22421 msgstr ""
22422
22423 #. type: verbatim
22424 #: ../fish/guestfish-actions.pod:2205
22425 #, no-wrap
22426 msgid ""
22427 " is-busy\n"
22428 "\n"
22429 msgstr ""
22430
22431 #. type: =head2
22432 #: ../fish/guestfish-actions.pod:2212
22433 msgid "is-chardev"
22434 msgstr ""
22435
22436 #. type: verbatim
22437 #: ../fish/guestfish-actions.pod:2214
22438 #, no-wrap
22439 msgid ""
22440 " is-chardev path\n"
22441 "\n"
22442 msgstr ""
22443
22444 #. type: =head2
22445 #: ../fish/guestfish-actions.pod:2221
22446 msgid "is-config"
22447 msgstr ""
22448
22449 #. type: verbatim
22450 #: ../fish/guestfish-actions.pod:2223
22451 #, no-wrap
22452 msgid ""
22453 " is-config\n"
22454 "\n"
22455 msgstr ""
22456
22457 #. type: =head2
22458 #: ../fish/guestfish-actions.pod:2230
22459 msgid "is-dir"
22460 msgstr ""
22461
22462 #. type: verbatim
22463 #: ../fish/guestfish-actions.pod:2232
22464 #, no-wrap
22465 msgid ""
22466 " is-dir path\n"
22467 "\n"
22468 msgstr ""
22469
22470 #. type: =head2
22471 #: ../fish/guestfish-actions.pod:2240
22472 msgid "is-fifo"
22473 msgstr ""
22474
22475 #. type: verbatim
22476 #: ../fish/guestfish-actions.pod:2242
22477 #, no-wrap
22478 msgid ""
22479 " is-fifo path\n"
22480 "\n"
22481 msgstr ""
22482
22483 #. type: =head2
22484 #: ../fish/guestfish-actions.pod:2249
22485 msgid "is-file"
22486 msgstr ""
22487
22488 #. type: verbatim
22489 #: ../fish/guestfish-actions.pod:2251
22490 #, no-wrap
22491 msgid ""
22492 " is-file path\n"
22493 "\n"
22494 msgstr ""
22495
22496 #. type: =head2
22497 #: ../fish/guestfish-actions.pod:2259
22498 msgid "is-launching"
22499 msgstr ""
22500
22501 #. type: verbatim
22502 #: ../fish/guestfish-actions.pod:2261
22503 #, no-wrap
22504 msgid ""
22505 " is-launching\n"
22506 "\n"
22507 msgstr ""
22508
22509 #. type: =head2
22510 #: ../fish/guestfish-actions.pod:2268
22511 msgid "is-lv"
22512 msgstr ""
22513
22514 #. type: verbatim
22515 #: ../fish/guestfish-actions.pod:2270
22516 #, no-wrap
22517 msgid ""
22518 " is-lv device\n"
22519 "\n"
22520 msgstr ""
22521
22522 #. type: =head2
22523 #: ../fish/guestfish-actions.pod:2275
22524 msgid "is-ready"
22525 msgstr ""
22526
22527 #. type: verbatim
22528 #: ../fish/guestfish-actions.pod:2277
22529 #, no-wrap
22530 msgid ""
22531 " is-ready\n"
22532 "\n"
22533 msgstr ""
22534
22535 #. type: =head2
22536 #: ../fish/guestfish-actions.pod:2284
22537 msgid "is-socket"
22538 msgstr ""
22539
22540 #. type: verbatim
22541 #: ../fish/guestfish-actions.pod:2286
22542 #, no-wrap
22543 msgid ""
22544 " is-socket path\n"
22545 "\n"
22546 msgstr ""
22547
22548 #. type: =head2
22549 #: ../fish/guestfish-actions.pod:2293
22550 msgid "is-symlink"
22551 msgstr ""
22552
22553 #. type: verbatim
22554 #: ../fish/guestfish-actions.pod:2295
22555 #, no-wrap
22556 msgid ""
22557 " is-symlink path\n"
22558 "\n"
22559 msgstr ""
22560
22561 #. type: =head2
22562 #: ../fish/guestfish-actions.pod:2302
22563 msgid "kill-subprocess"
22564 msgstr ""
22565
22566 #. type: verbatim
22567 #: ../fish/guestfish-actions.pod:2304
22568 #, no-wrap
22569 msgid ""
22570 " kill-subprocess\n"
22571 "\n"
22572 msgstr ""
22573
22574 #. type: =head2
22575 #: ../fish/guestfish-actions.pod:2308
22576 msgid "launch"
22577 msgstr ""
22578
22579 #. type: =head2
22580 #: ../fish/guestfish-actions.pod:2310
22581 msgid "run"
22582 msgstr ""
22583
22584 #. type: verbatim
22585 #: ../fish/guestfish-actions.pod:2312
22586 #, no-wrap
22587 msgid ""
22588 " launch\n"
22589 "\n"
22590 msgstr ""
22591
22592 #. type: =head2
22593 #: ../fish/guestfish-actions.pod:2320
22594 msgid "lchown"
22595 msgstr ""
22596
22597 #. type: verbatim
22598 #: ../fish/guestfish-actions.pod:2322
22599 #, no-wrap
22600 msgid ""
22601 " lchown owner group path\n"
22602 "\n"
22603 msgstr ""
22604
22605 #. type: textblock
22606 #: ../fish/guestfish-actions.pod:2324
22607 msgid ""
22608 "Change the file owner to C<owner> and group to C<group>.  This is like "
22609 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
22610 "the target."
22611 msgstr ""
22612
22613 #. type: =head2
22614 #: ../fish/guestfish-actions.pod:2332
22615 msgid "lgetxattr"
22616 msgstr ""
22617
22618 #. type: verbatim
22619 #: ../fish/guestfish-actions.pod:2334
22620 #, no-wrap
22621 msgid ""
22622 " lgetxattr path name\n"
22623 "\n"
22624 msgstr ""
22625
22626 #. type: textblock
22627 #: ../fish/guestfish-actions.pod:2350
22628 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
22629 msgstr ""
22630
22631 #. type: =head2
22632 #: ../fish/guestfish-actions.pod:2352
22633 msgid "lgetxattrs"
22634 msgstr ""
22635
22636 #. type: verbatim
22637 #: ../fish/guestfish-actions.pod:2354
22638 #, no-wrap
22639 msgid ""
22640 " lgetxattrs path\n"
22641 "\n"
22642 msgstr ""
22643
22644 #. type: textblock
22645 #: ../fish/guestfish-actions.pod:2356
22646 msgid ""
22647 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
22648 "it returns the extended attributes of the link itself."
22649 msgstr ""
22650
22651 #. type: =head2
22652 #: ../fish/guestfish-actions.pod:2360
22653 msgid "list-devices"
22654 msgstr ""
22655
22656 #. type: verbatim
22657 #: ../fish/guestfish-actions.pod:2362
22658 #, no-wrap
22659 msgid ""
22660 " list-devices\n"
22661 "\n"
22662 msgstr ""
22663
22664 #. type: =head2
22665 #: ../fish/guestfish-actions.pod:2370
22666 msgid "list-filesystems"
22667 msgstr ""
22668
22669 #. type: verbatim
22670 #: ../fish/guestfish-actions.pod:2372
22671 #, no-wrap
22672 msgid ""
22673 " list-filesystems\n"
22674 "\n"
22675 msgstr ""
22676
22677 #. type: textblock
22678 #: ../fish/guestfish-actions.pod:2391
22679 msgid ""
22680 "This command runs other libguestfs commands, which might include L</mount> "
22681 "and L</umount>, and therefore you should use this soon after launch and only "
22682 "when nothing is mounted."
22683 msgstr ""
22684
22685 #. type: textblock
22686 #: ../fish/guestfish-actions.pod:2395
22687 msgid ""
22688 "Not all of the filesystems returned will be mountable.  In particular, swap "
22689 "partitions are returned in the list.  Also this command does not check that "
22690 "each filesystem found is valid and mountable, and some filesystems might be "
22691 "mountable but require special options.  Filesystems may not all belong to a "
22692 "single logical operating system (use L</inspect-os> to look for OSes)."
22693 msgstr ""
22694
22695 #. type: =head2
22696 #: ../fish/guestfish-actions.pod:2403
22697 msgid "list-partitions"
22698 msgstr ""
22699
22700 #. type: verbatim
22701 #: ../fish/guestfish-actions.pod:2405
22702 #, no-wrap
22703 msgid ""
22704 " list-partitions\n"
22705 "\n"
22706 msgstr ""
22707
22708 #. type: textblock
22709 #: ../fish/guestfish-actions.pod:2411
22710 msgid ""
22711 "This does not return logical volumes.  For that you will need to call "
22712 "L</lvs>."
22713 msgstr ""
22714
22715 #. type: =head2
22716 #: ../fish/guestfish-actions.pod:2416
22717 msgid "ll"
22718 msgstr ""
22719
22720 #. type: verbatim
22721 #: ../fish/guestfish-actions.pod:2418
22722 #, no-wrap
22723 msgid ""
22724 " ll directory\n"
22725 "\n"
22726 msgstr ""
22727
22728 #. type: =head2
22729 #: ../fish/guestfish-actions.pod:2426
22730 msgid "ln"
22731 msgstr ""
22732
22733 #. type: verbatim
22734 #: ../fish/guestfish-actions.pod:2428
22735 #, no-wrap
22736 msgid ""
22737 " ln target linkname\n"
22738 "\n"
22739 msgstr ""
22740
22741 #. type: =head2
22742 #: ../fish/guestfish-actions.pod:2432
22743 msgid "ln-f"
22744 msgstr ""
22745
22746 #. type: verbatim
22747 #: ../fish/guestfish-actions.pod:2434
22748 #, no-wrap
22749 msgid ""
22750 " ln-f target linkname\n"
22751 "\n"
22752 msgstr ""
22753
22754 #. type: =head2
22755 #: ../fish/guestfish-actions.pod:2439
22756 msgid "ln-s"
22757 msgstr ""
22758
22759 #. type: verbatim
22760 #: ../fish/guestfish-actions.pod:2441
22761 #, no-wrap
22762 msgid ""
22763 " ln-s target linkname\n"
22764 "\n"
22765 msgstr ""
22766
22767 #. type: =head2
22768 #: ../fish/guestfish-actions.pod:2445
22769 msgid "ln-sf"
22770 msgstr ""
22771
22772 #. type: verbatim
22773 #: ../fish/guestfish-actions.pod:2447
22774 #, no-wrap
22775 msgid ""
22776 " ln-sf target linkname\n"
22777 "\n"
22778 msgstr ""
22779
22780 #. type: =head2
22781 #: ../fish/guestfish-actions.pod:2452
22782 msgid "lremovexattr"
22783 msgstr ""
22784
22785 #. type: verbatim
22786 #: ../fish/guestfish-actions.pod:2454
22787 #, no-wrap
22788 msgid ""
22789 " lremovexattr xattr path\n"
22790 "\n"
22791 msgstr ""
22792
22793 #. type: textblock
22794 #: ../fish/guestfish-actions.pod:2456
22795 msgid ""
22796 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
22797 "it removes an extended attribute of the link itself."
22798 msgstr ""
22799
22800 #. type: =head2
22801 #: ../fish/guestfish-actions.pod:2460
22802 msgid "ls"
22803 msgstr ""
22804
22805 #. type: verbatim
22806 #: ../fish/guestfish-actions.pod:2462
22807 #, no-wrap
22808 msgid ""
22809 " ls directory\n"
22810 "\n"
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../fish/guestfish-actions.pod:2468
22815 msgid ""
22816 "This command is mostly useful for interactive sessions.  Programs should "
22817 "probably use L</readdir> instead."
22818 msgstr ""
22819
22820 #. type: =head2
22821 #: ../fish/guestfish-actions.pod:2471
22822 msgid "lsetxattr"
22823 msgstr ""
22824
22825 #. type: verbatim
22826 #: ../fish/guestfish-actions.pod:2473
22827 #, no-wrap
22828 msgid ""
22829 " lsetxattr xattr val vallen path\n"
22830 "\n"
22831 msgstr ""
22832
22833 #. type: textblock
22834 #: ../fish/guestfish-actions.pod:2475
22835 msgid ""
22836 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
22837 "sets an extended attribute of the link itself."
22838 msgstr ""
22839
22840 #. type: =head2
22841 #: ../fish/guestfish-actions.pod:2479
22842 msgid "lstat"
22843 msgstr ""
22844
22845 #. type: verbatim
22846 #: ../fish/guestfish-actions.pod:2481
22847 #, no-wrap
22848 msgid ""
22849 " lstat path\n"
22850 "\n"
22851 msgstr ""
22852
22853 #. type: textblock
22854 #: ../fish/guestfish-actions.pod:2485
22855 msgid ""
22856 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
22857 "the link is stat-ed, not the file it refers to."
22858 msgstr ""
22859
22860 #. type: =head2
22861 #: ../fish/guestfish-actions.pod:2491
22862 msgid "lstatlist"
22863 msgstr ""
22864
22865 #. type: verbatim
22866 #: ../fish/guestfish-actions.pod:2493
22867 #, no-wrap
22868 msgid ""
22869 " lstatlist path 'names ...'\n"
22870 "\n"
22871 msgstr ""
22872
22873 #. type: textblock
22874 #: ../fish/guestfish-actions.pod:2495
22875 msgid ""
22876 "This call allows you to perform the L</lstat> operation on multiple files, "
22877 "where all files are in the directory C<path>.  C<names> is the list of files "
22878 "from this directory."
22879 msgstr ""
22880
22881 #. type: textblock
22882 #: ../fish/guestfish-actions.pod:2504
22883 msgid ""
22884 "This call is intended for programs that want to efficiently list a directory "
22885 "contents without making many round-trips.  See also L</lxattrlist> for a "
22886 "similarly efficient call for getting extended attributes.  Very long "
22887 "directory listings might cause the protocol message size to be exceeded, "
22888 "causing this call to fail.  The caller must split up such requests into "
22889 "smaller groups of names."
22890 msgstr ""
22891
22892 #. type: =head2
22893 #: ../fish/guestfish-actions.pod:2512
22894 msgid "luks-add-key"
22895 msgstr ""
22896
22897 #. type: verbatim
22898 #: ../fish/guestfish-actions.pod:2514
22899 #, no-wrap
22900 msgid ""
22901 " luks-add-key device keyslot\n"
22902 "\n"
22903 msgstr ""
22904
22905 #. type: textblock
22906 #: ../fish/guestfish-actions.pod:2521
22907 msgid ""
22908 "Note that if C<keyslot> already contains a key, then this command will "
22909 "fail.  You have to use L</luks-kill-slot> first to remove that key."
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../fish/guestfish-actions.pod:2525 ../fish/guestfish-actions.pod:2547 ../fish/guestfish-actions.pod:2560 ../fish/guestfish-actions.pod:2574 ../fish/guestfish-actions.pod:2597 ../fish/guestfish-actions.pod:2607
22914 msgid ""
22915 "This command has one or more key or passphrase parameters.  Guestfish will "
22916 "prompt for these separately."
22917 msgstr ""
22918
22919 #. type: =head2
22920 #: ../fish/guestfish-actions.pod:2528
22921 msgid "luks-close"
22922 msgstr ""
22923
22924 #. type: verbatim
22925 #: ../fish/guestfish-actions.pod:2530
22926 #, no-wrap
22927 msgid ""
22928 " luks-close device\n"
22929 "\n"
22930 msgstr ""
22931
22932 #. type: textblock
22933 #: ../fish/guestfish-actions.pod:2532
22934 msgid ""
22935 "This closes a LUKS device that was created earlier by L</luks-open> or "
22936 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
22937 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
22938 "underlying block device."
22939 msgstr ""
22940
22941 #. type: =head2
22942 #: ../fish/guestfish-actions.pod:2538
22943 msgid "luks-format"
22944 msgstr ""
22945
22946 #. type: verbatim
22947 #: ../fish/guestfish-actions.pod:2540
22948 #, no-wrap
22949 msgid ""
22950 " luks-format device keyslot\n"
22951 "\n"
22952 msgstr ""
22953
22954 #. type: =head2
22955 #: ../fish/guestfish-actions.pod:2553
22956 msgid "luks-format-cipher"
22957 msgstr ""
22958
22959 #. type: verbatim
22960 #: ../fish/guestfish-actions.pod:2555
22961 #, no-wrap
22962 msgid ""
22963 " luks-format-cipher device keyslot cipher\n"
22964 "\n"
22965 msgstr ""
22966
22967 #. type: textblock
22968 #: ../fish/guestfish-actions.pod:2557
22969 msgid ""
22970 "This command is the same as L</luks-format> but it also allows you to set "
22971 "the C<cipher> used."
22972 msgstr ""
22973
22974 #. type: =head2
22975 #: ../fish/guestfish-actions.pod:2566
22976 msgid "luks-kill-slot"
22977 msgstr ""
22978
22979 #. type: verbatim
22980 #: ../fish/guestfish-actions.pod:2568
22981 #, no-wrap
22982 msgid ""
22983 " luks-kill-slot device keyslot\n"
22984 "\n"
22985 msgstr ""
22986
22987 #. type: =head2
22988 #: ../fish/guestfish-actions.pod:2577
22989 msgid "luks-open"
22990 msgstr ""
22991
22992 #. type: verbatim
22993 #: ../fish/guestfish-actions.pod:2579
22994 #, no-wrap
22995 msgid ""
22996 " luks-open device mapname\n"
22997 "\n"
22998 msgstr ""
22999
23000 #. type: textblock
23001 #: ../fish/guestfish-actions.pod:2593
23002 msgid ""
23003 "If this block device contains LVM volume groups, then calling L</vgscan> "
23004 "followed by L</vg-activate-all> will make them visible."
23005 msgstr ""
23006
23007 #. type: =head2
23008 #: ../fish/guestfish-actions.pod:2600
23009 msgid "luks-open-ro"
23010 msgstr ""
23011
23012 #. type: verbatim
23013 #: ../fish/guestfish-actions.pod:2602
23014 #, no-wrap
23015 msgid ""
23016 " luks-open-ro device mapname\n"
23017 "\n"
23018 msgstr ""
23019
23020 #. type: textblock
23021 #: ../fish/guestfish-actions.pod:2604
23022 msgid ""
23023 "This is the same as L</luks-open> except that a read-only mapping is "
23024 "created."
23025 msgstr ""
23026
23027 #. type: =head2
23028 #: ../fish/guestfish-actions.pod:2610
23029 msgid "lvcreate"
23030 msgstr ""
23031
23032 #. type: verbatim
23033 #: ../fish/guestfish-actions.pod:2612
23034 #, no-wrap
23035 msgid ""
23036 " lvcreate logvol volgroup mbytes\n"
23037 "\n"
23038 msgstr ""
23039
23040 #. type: =head2
23041 #: ../fish/guestfish-actions.pod:2617
23042 msgid "lvm-canonical-lv-name"
23043 msgstr ""
23044
23045 #. type: verbatim
23046 #: ../fish/guestfish-actions.pod:2619
23047 #, no-wrap
23048 msgid ""
23049 " lvm-canonical-lv-name lvname\n"
23050 "\n"
23051 msgstr ""
23052
23053 #. type: textblock
23054 #: ../fish/guestfish-actions.pod:2628
23055 msgid "See also L</is-lv>."
23056 msgstr ""
23057
23058 #. type: =head2
23059 #: ../fish/guestfish-actions.pod:2630
23060 msgid "lvm-clear-filter"
23061 msgstr ""
23062
23063 #. type: verbatim
23064 #: ../fish/guestfish-actions.pod:2632
23065 #, no-wrap
23066 msgid ""
23067 " lvm-clear-filter\n"
23068 "\n"
23069 msgstr ""
23070
23071 #. type: textblock
23072 #: ../fish/guestfish-actions.pod:2634
23073 msgid ""
23074 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
23075 "block device."
23076 msgstr ""
23077
23078 #. type: =head2
23079 #: ../fish/guestfish-actions.pod:2640
23080 msgid "lvm-remove-all"
23081 msgstr ""
23082
23083 #. type: verbatim
23084 #: ../fish/guestfish-actions.pod:2642
23085 #, no-wrap
23086 msgid ""
23087 " lvm-remove-all\n"
23088 "\n"
23089 msgstr ""
23090
23091 #. type: =head2
23092 #: ../fish/guestfish-actions.pod:2650
23093 msgid "lvm-set-filter"
23094 msgstr ""
23095
23096 #. type: verbatim
23097 #: ../fish/guestfish-actions.pod:2652
23098 #, no-wrap
23099 msgid ""
23100 " lvm-set-filter 'devices ...'\n"
23101 "\n"
23102 msgstr ""
23103
23104 #. type: =head2
23105 #: ../fish/guestfish-actions.pod:2677
23106 msgid "lvremove"
23107 msgstr ""
23108
23109 #. type: verbatim
23110 #: ../fish/guestfish-actions.pod:2679
23111 #, no-wrap
23112 msgid ""
23113 " lvremove device\n"
23114 "\n"
23115 msgstr ""
23116
23117 #. type: =head2
23118 #: ../fish/guestfish-actions.pod:2687
23119 msgid "lvrename"
23120 msgstr ""
23121
23122 #. type: verbatim
23123 #: ../fish/guestfish-actions.pod:2689
23124 #, no-wrap
23125 msgid ""
23126 " lvrename logvol newlogvol\n"
23127 "\n"
23128 msgstr ""
23129
23130 #. type: =head2
23131 #: ../fish/guestfish-actions.pod:2693
23132 msgid "lvresize"
23133 msgstr ""
23134
23135 #. type: verbatim
23136 #: ../fish/guestfish-actions.pod:2695
23137 #, no-wrap
23138 msgid ""
23139 " lvresize device mbytes\n"
23140 "\n"
23141 msgstr ""
23142
23143 #. type: =head2
23144 #: ../fish/guestfish-actions.pod:2701
23145 msgid "lvresize-free"
23146 msgstr ""
23147
23148 #. type: verbatim
23149 #: ../fish/guestfish-actions.pod:2703
23150 #, no-wrap
23151 msgid ""
23152 " lvresize-free lv percent\n"
23153 "\n"
23154 msgstr ""
23155
23156 #. type: =head2
23157 #: ../fish/guestfish-actions.pod:2711
23158 msgid "lvs"
23159 msgstr ""
23160
23161 #. type: verbatim
23162 #: ../fish/guestfish-actions.pod:2713
23163 #, no-wrap
23164 msgid ""
23165 " lvs\n"
23166 "\n"
23167 msgstr ""
23168
23169 #. type: textblock
23170 #: ../fish/guestfish-actions.pod:2721
23171 msgid "See also L</lvs-full>, L</list-filesystems>."
23172 msgstr ""
23173
23174 #. type: =head2
23175 #: ../fish/guestfish-actions.pod:2723
23176 msgid "lvs-full"
23177 msgstr ""
23178
23179 #. type: verbatim
23180 #: ../fish/guestfish-actions.pod:2725
23181 #, no-wrap
23182 msgid ""
23183 " lvs-full\n"
23184 "\n"
23185 msgstr ""
23186
23187 #. type: =head2
23188 #: ../fish/guestfish-actions.pod:2730
23189 msgid "lvuuid"
23190 msgstr ""
23191
23192 #. type: verbatim
23193 #: ../fish/guestfish-actions.pod:2732
23194 #, no-wrap
23195 msgid ""
23196 " lvuuid device\n"
23197 "\n"
23198 msgstr ""
23199
23200 #. type: =head2
23201 #: ../fish/guestfish-actions.pod:2736
23202 msgid "lxattrlist"
23203 msgstr ""
23204
23205 #. type: verbatim
23206 #: ../fish/guestfish-actions.pod:2738
23207 #, no-wrap
23208 msgid ""
23209 " lxattrlist path 'names ...'\n"
23210 "\n"
23211 msgstr ""
23212
23213 #. type: textblock
23214 #: ../fish/guestfish-actions.pod:2754
23215 msgid ""
23216 "This call is intended for programs that want to efficiently list a directory "
23217 "contents without making many round-trips.  See also L</lstatlist> for a "
23218 "similarly efficient call for getting standard stats.  Very long directory "
23219 "listings might cause the protocol message size to be exceeded, causing this "
23220 "call to fail.  The caller must split up such requests into smaller groups of "
23221 "names."
23222 msgstr ""
23223
23224 #. type: =head2
23225 #: ../fish/guestfish-actions.pod:2762
23226 msgid "mkdir"
23227 msgstr ""
23228
23229 #. type: verbatim
23230 #: ../fish/guestfish-actions.pod:2764
23231 #, no-wrap
23232 msgid ""
23233 " mkdir path\n"
23234 "\n"
23235 msgstr ""
23236
23237 #. type: =head2
23238 #: ../fish/guestfish-actions.pod:2768
23239 msgid "mkdir-mode"
23240 msgstr ""
23241
23242 #. type: verbatim
23243 #: ../fish/guestfish-actions.pod:2770
23244 #, no-wrap
23245 msgid ""
23246 " mkdir-mode path mode\n"
23247 "\n"
23248 msgstr ""
23249
23250 #. type: textblock
23251 #: ../fish/guestfish-actions.pod:2779
23252 msgid "See also L</mkdir>, L</umask>"
23253 msgstr ""
23254
23255 #. type: =head2
23256 #: ../fish/guestfish-actions.pod:2781
23257 msgid "mkdir-p"
23258 msgstr ""
23259
23260 #. type: verbatim
23261 #: ../fish/guestfish-actions.pod:2783
23262 #, no-wrap
23263 msgid ""
23264 " mkdir-p path\n"
23265 "\n"
23266 msgstr ""
23267
23268 #. type: =head2
23269 #: ../fish/guestfish-actions.pod:2788
23270 msgid "mkdtemp"
23271 msgstr ""
23272
23273 #. type: verbatim
23274 #: ../fish/guestfish-actions.pod:2790
23275 #, no-wrap
23276 msgid ""
23277 " mkdtemp template\n"
23278 "\n"
23279 msgstr ""
23280
23281 #. type: =head2
23282 #: ../fish/guestfish-actions.pod:2811
23283 msgid "mke2fs-J"
23284 msgstr ""
23285
23286 #. type: verbatim
23287 #: ../fish/guestfish-actions.pod:2813
23288 #, no-wrap
23289 msgid ""
23290 " mke2fs-J fstype blocksize device journal\n"
23291 "\n"
23292 msgstr ""
23293
23294 #. type: textblock
23295 #: ../fish/guestfish-actions.pod:2821
23296 msgid "See also L</mke2journal>."
23297 msgstr ""
23298
23299 #. type: =head2
23300 #: ../fish/guestfish-actions.pod:2823
23301 msgid "mke2fs-JL"
23302 msgstr ""
23303
23304 #. type: verbatim
23305 #: ../fish/guestfish-actions.pod:2825
23306 #, no-wrap
23307 msgid ""
23308 " mke2fs-JL fstype blocksize device label\n"
23309 "\n"
23310 msgstr ""
23311
23312 #. type: textblock
23313 #: ../fish/guestfish-actions.pod:2830
23314 msgid "See also L</mke2journal-L>."
23315 msgstr ""
23316
23317 #. type: =head2
23318 #: ../fish/guestfish-actions.pod:2832
23319 msgid "mke2fs-JU"
23320 msgstr ""
23321
23322 #. type: verbatim
23323 #: ../fish/guestfish-actions.pod:2834
23324 #, no-wrap
23325 msgid ""
23326 " mke2fs-JU fstype blocksize device uuid\n"
23327 "\n"
23328 msgstr ""
23329
23330 #. type: textblock
23331 #: ../fish/guestfish-actions.pod:2839
23332 msgid "See also L</mke2journal-U>."
23333 msgstr ""
23334
23335 #. type: =head2
23336 #: ../fish/guestfish-actions.pod:2841
23337 msgid "mke2journal"
23338 msgstr ""
23339
23340 #. type: verbatim
23341 #: ../fish/guestfish-actions.pod:2843
23342 #, no-wrap
23343 msgid ""
23344 " mke2journal blocksize device\n"
23345 "\n"
23346 msgstr ""
23347
23348 #. type: =head2
23349 #: ../fish/guestfish-actions.pod:2850
23350 msgid "mke2journal-L"
23351 msgstr ""
23352
23353 #. type: verbatim
23354 #: ../fish/guestfish-actions.pod:2852
23355 #, no-wrap
23356 msgid ""
23357 " mke2journal-L blocksize label device\n"
23358 "\n"
23359 msgstr ""
23360
23361 #. type: =head2
23362 #: ../fish/guestfish-actions.pod:2856
23363 msgid "mke2journal-U"
23364 msgstr ""
23365
23366 #. type: verbatim
23367 #: ../fish/guestfish-actions.pod:2858
23368 #, no-wrap
23369 msgid ""
23370 " mke2journal-U blocksize uuid device\n"
23371 "\n"
23372 msgstr ""
23373
23374 #. type: =head2
23375 #: ../fish/guestfish-actions.pod:2862
23376 msgid "mkfifo"
23377 msgstr ""
23378
23379 #. type: verbatim
23380 #: ../fish/guestfish-actions.pod:2864
23381 #, no-wrap
23382 msgid ""
23383 " mkfifo mode path\n"
23384 "\n"
23385 msgstr ""
23386
23387 #. type: textblock
23388 #: ../fish/guestfish-actions.pod:2866
23389 msgid ""
23390 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
23391 "is just a convenient wrapper around L</mknod>."
23392 msgstr ""
23393
23394 #. type: =head2
23395 #: ../fish/guestfish-actions.pod:2872
23396 msgid "mkfs"
23397 msgstr ""
23398
23399 #. type: verbatim
23400 #: ../fish/guestfish-actions.pod:2874
23401 #, no-wrap
23402 msgid ""
23403 " mkfs fstype device\n"
23404 "\n"
23405 msgstr ""
23406
23407 #. type: =head2
23408 #: ../fish/guestfish-actions.pod:2880
23409 msgid "mkfs-b"
23410 msgstr ""
23411
23412 #. type: verbatim
23413 #: ../fish/guestfish-actions.pod:2882
23414 #, no-wrap
23415 msgid ""
23416 " mkfs-b fstype blocksize device\n"
23417 "\n"
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../fish/guestfish-actions.pod:2884
23422 msgid ""
23423 "This call is similar to L</mkfs>, but it allows you to control the block "
23424 "size of the resulting filesystem.  Supported block sizes depend on the "
23425 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
23426 msgstr ""
23427
23428 #. type: =head2
23429 #: ../fish/guestfish-actions.pod:2899
23430 msgid "mkfs-opts"
23431 msgstr ""
23432
23433 #. type: verbatim
23434 #: ../fish/guestfish-actions.pod:2901
23435 #, no-wrap
23436 msgid ""
23437 " mkfs-opts fstype device [blocksize:..]\n"
23438 "\n"
23439 msgstr ""
23440
23441 #. type: =head2
23442 #: ../fish/guestfish-actions.pod:2923
23443 msgid "mkmountpoint"
23444 msgstr ""
23445
23446 #. type: verbatim
23447 #: ../fish/guestfish-actions.pod:2925
23448 #, no-wrap
23449 msgid ""
23450 " mkmountpoint exemptpath\n"
23451 "\n"
23452 msgstr ""
23453
23454 #. type: textblock
23455 #: ../fish/guestfish-actions.pod:2927
23456 msgid ""
23457 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
23458 "to create extra mountpoints before mounting the first filesystem."
23459 msgstr ""
23460
23461 #. type: textblock
23462 #: ../fish/guestfish-actions.pod:2951
23463 msgid ""
23464 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
23465 "unexpected errors if you try to mix these calls.  It is safest to manually "
23466 "unmount filesystems and remove mountpoints after use."
23467 msgstr ""
23468
23469 #. type: textblock
23470 #: ../fish/guestfish-actions.pod:2955
23471 msgid ""
23472 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
23473 "for this to work for manual mountpoints, you must ensure that the innermost "
23474 "mountpoints have the longest pathnames, as in the example code above."
23475 msgstr ""
23476
23477 #. type: textblock
23478 #: ../fish/guestfish-actions.pod:2962
23479 msgid ""
23480 "Autosync [see L</set-autosync>, this is set by default on handles] means "
23481 "that L</umount-all> is called when the handle is closed which can also "
23482 "trigger these issues."
23483 msgstr ""
23484
23485 #. type: =head2
23486 #: ../fish/guestfish-actions.pod:2966
23487 msgid "mknod"
23488 msgstr ""
23489
23490 #. type: verbatim
23491 #: ../fish/guestfish-actions.pod:2968
23492 #, no-wrap
23493 msgid ""
23494 " mknod mode devmajor devminor path\n"
23495 "\n"
23496 msgstr ""
23497
23498 #. type: textblock
23499 #: ../fish/guestfish-actions.pod:2978
23500 msgid ""
23501 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
23502 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
23503 "regular file).  These constants are available in the standard Linux header "
23504 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
23505 "wrappers around this command which bitwise OR in the appropriate constant "
23506 "for you."
23507 msgstr ""
23508
23509 #. type: =head2
23510 #: ../fish/guestfish-actions.pod:2988
23511 msgid "mknod-b"
23512 msgstr ""
23513
23514 #. type: verbatim
23515 #: ../fish/guestfish-actions.pod:2990
23516 #, no-wrap
23517 msgid ""
23518 " mknod-b mode devmajor devminor path\n"
23519 "\n"
23520 msgstr ""
23521
23522 #. type: textblock
23523 #: ../fish/guestfish-actions.pod:2992
23524 msgid ""
23525 "This call creates a block device node called C<path> with mode C<mode> and "
23526 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
23527 "wrapper around L</mknod>."
23528 msgstr ""
23529
23530 #. type: =head2
23531 #: ../fish/guestfish-actions.pod:2998
23532 msgid "mknod-c"
23533 msgstr ""
23534
23535 #. type: verbatim
23536 #: ../fish/guestfish-actions.pod:3000
23537 #, no-wrap
23538 msgid ""
23539 " mknod-c mode devmajor devminor path\n"
23540 "\n"
23541 msgstr ""
23542
23543 #. type: textblock
23544 #: ../fish/guestfish-actions.pod:3002
23545 msgid ""
23546 "This call creates a char device node called C<path> with mode C<mode> and "
23547 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
23548 "wrapper around L</mknod>."
23549 msgstr ""
23550
23551 #. type: =head2
23552 #: ../fish/guestfish-actions.pod:3008
23553 msgid "mkswap"
23554 msgstr ""
23555
23556 #. type: verbatim
23557 #: ../fish/guestfish-actions.pod:3010
23558 #, no-wrap
23559 msgid ""
23560 " mkswap device\n"
23561 "\n"
23562 msgstr ""
23563
23564 #. type: =head2
23565 #: ../fish/guestfish-actions.pod:3014
23566 msgid "mkswap-L"
23567 msgstr ""
23568
23569 #. type: verbatim
23570 #: ../fish/guestfish-actions.pod:3016
23571 #, no-wrap
23572 msgid ""
23573 " mkswap-L label device\n"
23574 "\n"
23575 msgstr ""
23576
23577 #. type: =head2
23578 #: ../fish/guestfish-actions.pod:3024
23579 msgid "mkswap-U"
23580 msgstr ""
23581
23582 #. type: verbatim
23583 #: ../fish/guestfish-actions.pod:3026
23584 #, no-wrap
23585 msgid ""
23586 " mkswap-U uuid device\n"
23587 "\n"
23588 msgstr ""
23589
23590 #. type: =head2
23591 #: ../fish/guestfish-actions.pod:3030
23592 msgid "mkswap-file"
23593 msgstr ""
23594
23595 #. type: verbatim
23596 #: ../fish/guestfish-actions.pod:3032
23597 #, no-wrap
23598 msgid ""
23599 " mkswap-file path\n"
23600 "\n"
23601 msgstr ""
23602
23603 #. type: textblock
23604 #: ../fish/guestfish-actions.pod:3036
23605 msgid ""
23606 "This command just writes a swap file signature to an existing file.  To "
23607 "create the file itself, use something like L</fallocate>."
23608 msgstr ""
23609
23610 #. type: =head2
23611 #: ../fish/guestfish-actions.pod:3039
23612 msgid "modprobe"
23613 msgstr ""
23614
23615 #. type: verbatim
23616 #: ../fish/guestfish-actions.pod:3041
23617 #, no-wrap
23618 msgid ""
23619 " modprobe modulename\n"
23620 "\n"
23621 msgstr ""
23622
23623 #. type: =head2
23624 #: ../fish/guestfish-actions.pod:3048
23625 msgid "mount"
23626 msgstr ""
23627
23628 #. type: verbatim
23629 #: ../fish/guestfish-actions.pod:3050
23630 #, no-wrap
23631 msgid ""
23632 " mount device mountpoint\n"
23633 "\n"
23634 msgstr ""
23635
23636 #. type: textblock
23637 #: ../fish/guestfish-actions.pod:3066
23638 msgid ""
23639 "B<Important note:> When you use this call, the filesystem options C<sync> "
23640 "and C<noatime> are set implicitly.  This was originally done because we "
23641 "thought it would improve reliability, but it turns out that I<-o sync> has a "
23642 "very large negative performance impact and negligible effect on "
23643 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
23644 "code that needs performance, and instead use L</mount-options> (use an empty "
23645 "string for the first parameter if you don't want any options)."
23646 msgstr ""
23647
23648 #. type: =head2
23649 #: ../fish/guestfish-actions.pod:3076
23650 msgid "mount-loop"
23651 msgstr ""
23652
23653 #. type: verbatim
23654 #: ../fish/guestfish-actions.pod:3078
23655 #, no-wrap
23656 msgid ""
23657 " mount-loop file mountpoint\n"
23658 "\n"
23659 msgstr ""
23660
23661 #. type: =head2
23662 #: ../fish/guestfish-actions.pod:3084
23663 msgid "mount-options"
23664 msgstr ""
23665
23666 #. type: verbatim
23667 #: ../fish/guestfish-actions.pod:3086
23668 #, no-wrap
23669 msgid ""
23670 " mount-options options device mountpoint\n"
23671 "\n"
23672 msgstr ""
23673
23674 #. type: textblock
23675 #: ../fish/guestfish-actions.pod:3088
23676 msgid ""
23677 "This is the same as the L</mount> command, but it allows you to set the "
23678 "mount options as for the L<mount(8)> I<-o> flag."
23679 msgstr ""
23680
23681 #. type: =head2
23682 #: ../fish/guestfish-actions.pod:3096
23683 msgid "mount-ro"
23684 msgstr ""
23685
23686 #. type: verbatim
23687 #: ../fish/guestfish-actions.pod:3098
23688 #, no-wrap
23689 msgid ""
23690 " mount-ro device mountpoint\n"
23691 "\n"
23692 msgstr ""
23693
23694 #. type: textblock
23695 #: ../fish/guestfish-actions.pod:3100
23696 msgid ""
23697 "This is the same as the L</mount> command, but it mounts the filesystem with "
23698 "the read-only (I<-o ro>) flag."
23699 msgstr ""
23700
23701 #. type: =head2
23702 #: ../fish/guestfish-actions.pod:3103
23703 msgid "mount-vfs"
23704 msgstr ""
23705
23706 #. type: verbatim
23707 #: ../fish/guestfish-actions.pod:3105
23708 #, no-wrap
23709 msgid ""
23710 " mount-vfs options vfstype device mountpoint\n"
23711 "\n"
23712 msgstr ""
23713
23714 #. type: textblock
23715 #: ../fish/guestfish-actions.pod:3107
23716 msgid ""
23717 "This is the same as the L</mount> command, but it allows you to set both the "
23718 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
23719 msgstr ""
23720
23721 #. type: =head2
23722 #: ../fish/guestfish-actions.pod:3111
23723 msgid "mountpoints"
23724 msgstr ""
23725
23726 #. type: verbatim
23727 #: ../fish/guestfish-actions.pod:3113
23728 #, no-wrap
23729 msgid ""
23730 " mountpoints\n"
23731 "\n"
23732 msgstr ""
23733
23734 #. type: textblock
23735 #: ../fish/guestfish-actions.pod:3115
23736 msgid ""
23737 "This call is similar to L</mounts>.  That call returns a list of devices.  "
23738 "This one returns a hash table (map) of device name to directory where the "
23739 "device is mounted."
23740 msgstr ""
23741
23742 #. type: =head2
23743 #: ../fish/guestfish-actions.pod:3119
23744 msgid "mounts"
23745 msgstr ""
23746
23747 #. type: verbatim
23748 #: ../fish/guestfish-actions.pod:3121
23749 #, no-wrap
23750 msgid ""
23751 " mounts\n"
23752 "\n"
23753 msgstr ""
23754
23755 #. type: textblock
23756 #: ../fish/guestfish-actions.pod:3128
23757 msgid "See also: L</mountpoints>"
23758 msgstr ""
23759
23760 #. type: =head2
23761 #: ../fish/guestfish-actions.pod:3130
23762 msgid "mv"
23763 msgstr ""
23764
23765 #. type: verbatim
23766 #: ../fish/guestfish-actions.pod:3132
23767 #, no-wrap
23768 msgid ""
23769 " mv src dest\n"
23770 "\n"
23771 msgstr ""
23772
23773 #. type: =head2
23774 #: ../fish/guestfish-actions.pod:3137
23775 msgid "ntfs-3g-probe"
23776 msgstr ""
23777
23778 #. type: verbatim
23779 #: ../fish/guestfish-actions.pod:3139
23780 #, no-wrap
23781 msgid ""
23782 " ntfs-3g-probe true|false device\n"
23783 "\n"
23784 msgstr ""
23785
23786 #. type: =head2
23787 #: ../fish/guestfish-actions.pod:3153
23788 msgid "ntfsresize"
23789 msgstr ""
23790
23791 #. type: verbatim
23792 #: ../fish/guestfish-actions.pod:3155
23793 #, no-wrap
23794 msgid ""
23795 " ntfsresize device\n"
23796 "\n"
23797 msgstr ""
23798
23799 #. type: =head2
23800 #: ../fish/guestfish-actions.pod:3161
23801 msgid "ntfsresize-size"
23802 msgstr ""
23803
23804 #. type: verbatim
23805 #: ../fish/guestfish-actions.pod:3163
23806 #, no-wrap
23807 msgid ""
23808 " ntfsresize-size device size\n"
23809 "\n"
23810 msgstr ""
23811
23812 #. type: textblock
23813 #: ../fish/guestfish-actions.pod:3165
23814 msgid ""
23815 "This command is the same as L</ntfsresize> except that it allows you to "
23816 "specify the new size (in bytes) explicitly."
23817 msgstr ""
23818
23819 #. type: =head2
23820 #: ../fish/guestfish-actions.pod:3168
23821 msgid "part-add"
23822 msgstr ""
23823
23824 #. type: verbatim
23825 #: ../fish/guestfish-actions.pod:3170
23826 #, no-wrap
23827 msgid ""
23828 " part-add device prlogex startsect endsect\n"
23829 "\n"
23830 msgstr ""
23831
23832 #. type: textblock
23833 #: ../fish/guestfish-actions.pod:3172
23834 msgid ""
23835 "This command adds a partition to C<device>.  If there is no partition table "
23836 "on the device, call L</part-init> first."
23837 msgstr ""
23838
23839 #. type: textblock
23840 #: ../fish/guestfish-actions.pod:3184
23841 msgid ""
23842 "Creating a partition which covers the whole disk is not so easy.  Use "
23843 "L</part-disk> to do that."
23844 msgstr ""
23845
23846 #. type: =head2
23847 #: ../fish/guestfish-actions.pod:3187
23848 msgid "part-del"
23849 msgstr ""
23850
23851 #. type: verbatim
23852 #: ../fish/guestfish-actions.pod:3189
23853 #, no-wrap
23854 msgid ""
23855 " part-del device partnum\n"
23856 "\n"
23857 msgstr ""
23858
23859 #. type: =head2
23860 #: ../fish/guestfish-actions.pod:3197
23861 msgid "part-disk"
23862 msgstr ""
23863
23864 #. type: verbatim
23865 #: ../fish/guestfish-actions.pod:3199
23866 #, no-wrap
23867 msgid ""
23868 " part-disk device parttype\n"
23869 "\n"
23870 msgstr ""
23871
23872 #. type: textblock
23873 #: ../fish/guestfish-actions.pod:3201
23874 msgid ""
23875 "This command is simply a combination of L</part-init> followed by "
23876 "L</part-add> to create a single primary partition covering the whole disk."
23877 msgstr ""
23878
23879 #. type: textblock
23880 #: ../fish/guestfish-actions.pod:3205
23881 msgid ""
23882 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
23883 "possible values are described in L</part-init>."
23884 msgstr ""
23885
23886 #. type: =head2
23887 #: ../fish/guestfish-actions.pod:3211
23888 msgid "part-get-bootable"
23889 msgstr ""
23890
23891 #. type: verbatim
23892 #: ../fish/guestfish-actions.pod:3213
23893 #, no-wrap
23894 msgid ""
23895 " part-get-bootable device partnum\n"
23896 "\n"
23897 msgstr ""
23898
23899 #. type: textblock
23900 #: ../fish/guestfish-actions.pod:3218
23901 msgid "See also L</part-set-bootable>."
23902 msgstr ""
23903
23904 #. type: =head2
23905 #: ../fish/guestfish-actions.pod:3220
23906 msgid "part-get-mbr-id"
23907 msgstr ""
23908
23909 #. type: verbatim
23910 #: ../fish/guestfish-actions.pod:3222
23911 #, no-wrap
23912 msgid ""
23913 " part-get-mbr-id device partnum\n"
23914 "\n"
23915 msgstr ""
23916
23917 #. type: textblock
23918 #: ../fish/guestfish-actions.pod:3227 ../fish/guestfish-actions.pod:3365
23919 msgid ""
23920 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
23921 "undefined results for other partition table types (see "
23922 "L</part-get-parttype>)."
23923 msgstr ""
23924
23925 #. type: =head2
23926 #: ../fish/guestfish-actions.pod:3231
23927 msgid "part-get-parttype"
23928 msgstr ""
23929
23930 #. type: verbatim
23931 #: ../fish/guestfish-actions.pod:3233
23932 #, no-wrap
23933 msgid ""
23934 " part-get-parttype device\n"
23935 "\n"
23936 msgstr ""
23937
23938 #. type: textblock
23939 #: ../fish/guestfish-actions.pod:3238
23940 msgid ""
23941 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
23942 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
23943 "possible, although unusual.  See L</part-init> for a full list."
23944 msgstr ""
23945
23946 #. type: =head2
23947 #: ../fish/guestfish-actions.pod:3243
23948 msgid "part-init"
23949 msgstr ""
23950
23951 #. type: verbatim
23952 #: ../fish/guestfish-actions.pod:3245
23953 #, no-wrap
23954 msgid ""
23955 " part-init device parttype\n"
23956 "\n"
23957 msgstr ""
23958
23959 #. type: textblock
23960 #: ../fish/guestfish-actions.pod:3251
23961 msgid ""
23962 "Initially there are no partitions.  Following this, you should call "
23963 "L</part-add> for each partition required."
23964 msgstr ""
23965
23966 #. type: =head2
23967 #: ../fish/guestfish-actions.pod:3314
23968 msgid "part-list"
23969 msgstr ""
23970
23971 #. type: verbatim
23972 #: ../fish/guestfish-actions.pod:3316
23973 #, no-wrap
23974 msgid ""
23975 " part-list device\n"
23976 "\n"
23977 msgstr ""
23978
23979 #. type: textblock
23980 #: ../fish/guestfish-actions.pod:3331
23981 msgid ""
23982 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23983 "the device's sector size, see L</blockdev-getss>."
23984 msgstr ""
23985
23986 #. type: =head2
23987 #: ../fish/guestfish-actions.pod:3344
23988 msgid "part-set-bootable"
23989 msgstr ""
23990
23991 #. type: verbatim
23992 #: ../fish/guestfish-actions.pod:3346
23993 #, no-wrap
23994 msgid ""
23995 " part-set-bootable device partnum true|false\n"
23996 "\n"
23997 msgstr ""
23998
23999 #. type: =head2
24000 #: ../fish/guestfish-actions.pod:3355
24001 msgid "part-set-mbr-id"
24002 msgstr ""
24003
24004 #. type: verbatim
24005 #: ../fish/guestfish-actions.pod:3357
24006 #, no-wrap
24007 msgid ""
24008 " part-set-mbr-id device partnum idbyte\n"
24009 "\n"
24010 msgstr ""
24011
24012 #. type: =head2
24013 #: ../fish/guestfish-actions.pod:3369
24014 msgid "part-set-name"
24015 msgstr ""
24016
24017 #. type: verbatim
24018 #: ../fish/guestfish-actions.pod:3371
24019 #, no-wrap
24020 msgid ""
24021 " part-set-name device partnum name\n"
24022 "\n"
24023 msgstr ""
24024
24025 #. type: =head2
24026 #: ../fish/guestfish-actions.pod:3379
24027 msgid "part-to-dev"
24028 msgstr ""
24029
24030 #. type: verbatim
24031 #: ../fish/guestfish-actions.pod:3381
24032 #, no-wrap
24033 msgid ""
24034 " part-to-dev partition\n"
24035 "\n"
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../fish/guestfish-actions.pod:3387
24040 msgid ""
24041 "The named partition must exist, for example as a string returned from "
24042 "L</list-partitions>."
24043 msgstr ""
24044
24045 #. type: =head2
24046 #: ../fish/guestfish-actions.pod:3390
24047 msgid "ping-daemon"
24048 msgstr ""
24049
24050 #. type: verbatim
24051 #: ../fish/guestfish-actions.pod:3392
24052 #, no-wrap
24053 msgid ""
24054 " ping-daemon\n"
24055 "\n"
24056 msgstr ""
24057
24058 #. type: =head2
24059 #: ../fish/guestfish-actions.pod:3399
24060 msgid "pread"
24061 msgstr ""
24062
24063 #. type: verbatim
24064 #: ../fish/guestfish-actions.pod:3401
24065 #, no-wrap
24066 msgid ""
24067 " pread path count offset\n"
24068 "\n"
24069 msgstr ""
24070
24071 #. type: textblock
24072 #: ../fish/guestfish-actions.pod:3409
24073 msgid "See also L</pwrite>, L</pread-device>."
24074 msgstr ""
24075
24076 #. type: =head2
24077 #: ../fish/guestfish-actions.pod:3414
24078 msgid "pread-device"
24079 msgstr ""
24080
24081 #. type: verbatim
24082 #: ../fish/guestfish-actions.pod:3416
24083 #, no-wrap
24084 msgid ""
24085 " pread-device device count offset\n"
24086 "\n"
24087 msgstr ""
24088
24089 #. type: textblock
24090 #: ../fish/guestfish-actions.pod:3424
24091 msgid "See also L</pread>."
24092 msgstr ""
24093
24094 #. type: =head2
24095 #: ../fish/guestfish-actions.pod:3429
24096 msgid "pvcreate"
24097 msgstr ""
24098
24099 #. type: verbatim
24100 #: ../fish/guestfish-actions.pod:3431
24101 #, no-wrap
24102 msgid ""
24103 " pvcreate device\n"
24104 "\n"
24105 msgstr ""
24106
24107 #. type: =head2
24108 #: ../fish/guestfish-actions.pod:3437
24109 msgid "pvremove"
24110 msgstr ""
24111
24112 #. type: verbatim
24113 #: ../fish/guestfish-actions.pod:3439
24114 #, no-wrap
24115 msgid ""
24116 " pvremove device\n"
24117 "\n"
24118 msgstr ""
24119
24120 #. type: =head2
24121 #: ../fish/guestfish-actions.pod:3448
24122 msgid "pvresize"
24123 msgstr ""
24124
24125 #. type: verbatim
24126 #: ../fish/guestfish-actions.pod:3450
24127 #, no-wrap
24128 msgid ""
24129 " pvresize device\n"
24130 "\n"
24131 msgstr ""
24132
24133 #. type: =head2
24134 #: ../fish/guestfish-actions.pod:3455
24135 msgid "pvresize-size"
24136 msgstr ""
24137
24138 #. type: verbatim
24139 #: ../fish/guestfish-actions.pod:3457
24140 #, no-wrap
24141 msgid ""
24142 " pvresize-size device size\n"
24143 "\n"
24144 msgstr ""
24145
24146 #. type: textblock
24147 #: ../fish/guestfish-actions.pod:3459
24148 msgid ""
24149 "This command is the same as L</pvresize> except that it allows you to "
24150 "specify the new size (in bytes) explicitly."
24151 msgstr ""
24152
24153 #. type: =head2
24154 #: ../fish/guestfish-actions.pod:3462
24155 msgid "pvs"
24156 msgstr ""
24157
24158 #. type: verbatim
24159 #: ../fish/guestfish-actions.pod:3464
24160 #, no-wrap
24161 msgid ""
24162 " pvs\n"
24163 "\n"
24164 msgstr ""
24165
24166 #. type: textblock
24167 #: ../fish/guestfish-actions.pod:3472
24168 msgid "See also L</pvs-full>."
24169 msgstr ""
24170
24171 #. type: =head2
24172 #: ../fish/guestfish-actions.pod:3474
24173 msgid "pvs-full"
24174 msgstr ""
24175
24176 #. type: verbatim
24177 #: ../fish/guestfish-actions.pod:3476
24178 #, no-wrap
24179 msgid ""
24180 " pvs-full\n"
24181 "\n"
24182 msgstr ""
24183
24184 #. type: =head2
24185 #: ../fish/guestfish-actions.pod:3481
24186 msgid "pvuuid"
24187 msgstr ""
24188
24189 #. type: verbatim
24190 #: ../fish/guestfish-actions.pod:3483
24191 #, no-wrap
24192 msgid ""
24193 " pvuuid device\n"
24194 "\n"
24195 msgstr ""
24196
24197 #. type: =head2
24198 #: ../fish/guestfish-actions.pod:3487
24199 msgid "pwrite"
24200 msgstr ""
24201
24202 #. type: verbatim
24203 #: ../fish/guestfish-actions.pod:3489
24204 #, no-wrap
24205 msgid ""
24206 " pwrite path content offset\n"
24207 "\n"
24208 msgstr ""
24209
24210 #. type: textblock
24211 #: ../fish/guestfish-actions.pod:3500
24212 msgid "See also L</pread>, L</pwrite-device>."
24213 msgstr ""
24214
24215 #. type: =head2
24216 #: ../fish/guestfish-actions.pod:3505
24217 msgid "pwrite-device"
24218 msgstr ""
24219
24220 #. type: verbatim
24221 #: ../fish/guestfish-actions.pod:3507
24222 #, no-wrap
24223 msgid ""
24224 " pwrite-device device content offset\n"
24225 "\n"
24226 msgstr ""
24227
24228 #. type: textblock
24229 #: ../fish/guestfish-actions.pod:3517
24230 msgid "See also L</pwrite>."
24231 msgstr ""
24232
24233 #. type: =head2
24234 #: ../fish/guestfish-actions.pod:3522
24235 msgid "read-file"
24236 msgstr ""
24237
24238 #. type: verbatim
24239 #: ../fish/guestfish-actions.pod:3524
24240 #, no-wrap
24241 msgid ""
24242 " read-file path\n"
24243 "\n"
24244 msgstr ""
24245
24246 #. type: textblock
24247 #: ../fish/guestfish-actions.pod:3529
24248 msgid ""
24249 "Unlike L</cat>, this function can correctly handle files that contain "
24250 "embedded ASCII NUL characters.  However unlike L</download>, this function "
24251 "is limited in the total size of file that can be handled."
24252 msgstr ""
24253
24254 #. type: =head2
24255 #: ../fish/guestfish-actions.pod:3537
24256 msgid "read-lines"
24257 msgstr ""
24258
24259 #. type: verbatim
24260 #: ../fish/guestfish-actions.pod:3539
24261 #, no-wrap
24262 msgid ""
24263 " read-lines path\n"
24264 "\n"
24265 msgstr ""
24266
24267 #. type: textblock
24268 #: ../fish/guestfish-actions.pod:3546
24269 msgid ""
24270 "Note that this function cannot correctly handle binary files (specifically, "
24271 "files containing C<\\0> character which is treated as end of line).  For "
24272 "those you need to use the L</read-file> function which has a more complex "
24273 "interface."
24274 msgstr ""
24275
24276 #. type: =head2
24277 #: ../fish/guestfish-actions.pod:3551
24278 msgid "readdir"
24279 msgstr ""
24280
24281 #. type: verbatim
24282 #: ../fish/guestfish-actions.pod:3553
24283 #, no-wrap
24284 msgid ""
24285 " readdir dir\n"
24286 "\n"
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../fish/guestfish-actions.pod:3605
24291 msgid ""
24292 "This function is primarily intended for use by programs.  To get a simple "
24293 "list of names, use L</ls>.  To get a printable directory for human "
24294 "consumption, use L</ll>."
24295 msgstr ""
24296
24297 #. type: =head2
24298 #: ../fish/guestfish-actions.pod:3609
24299 msgid "readlink"
24300 msgstr ""
24301
24302 #. type: verbatim
24303 #: ../fish/guestfish-actions.pod:3611
24304 #, no-wrap
24305 msgid ""
24306 " readlink path\n"
24307 "\n"
24308 msgstr ""
24309
24310 #. type: =head2
24311 #: ../fish/guestfish-actions.pod:3615
24312 msgid "readlinklist"
24313 msgstr ""
24314
24315 #. type: verbatim
24316 #: ../fish/guestfish-actions.pod:3617
24317 #, no-wrap
24318 msgid ""
24319 " readlinklist path 'names ...'\n"
24320 "\n"
24321 msgstr ""
24322
24323 #. type: =head2
24324 #: ../fish/guestfish-actions.pod:3641
24325 msgid "realpath"
24326 msgstr ""
24327
24328 #. type: verbatim
24329 #: ../fish/guestfish-actions.pod:3643
24330 #, no-wrap
24331 msgid ""
24332 " realpath path\n"
24333 "\n"
24334 msgstr ""
24335
24336 #. type: =head2
24337 #: ../fish/guestfish-actions.pod:3648
24338 msgid "removexattr"
24339 msgstr ""
24340
24341 #. type: verbatim
24342 #: ../fish/guestfish-actions.pod:3650
24343 #, no-wrap
24344 msgid ""
24345 " removexattr xattr path\n"
24346 "\n"
24347 msgstr ""
24348
24349 #. type: textblock
24350 #: ../fish/guestfish-actions.pod:3655
24351 msgid "See also: L</lremovexattr>, L<attr(5)>."
24352 msgstr ""
24353
24354 #. type: =head2
24355 #: ../fish/guestfish-actions.pod:3657
24356 msgid "resize2fs"
24357 msgstr ""
24358
24359 #. type: verbatim
24360 #: ../fish/guestfish-actions.pod:3659
24361 #, no-wrap
24362 msgid ""
24363 " resize2fs device\n"
24364 "\n"
24365 msgstr ""
24366
24367 #. type: textblock
24368 #: ../fish/guestfish-actions.pod:3664
24369 msgid ""
24370 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
24371 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
24372 "gives an error about this and sometimes not.  In any case, it is always safe "
24373 "to call L</e2fsck-f> before calling this function."
24374 msgstr ""
24375
24376 #. type: =head2
24377 #: ../fish/guestfish-actions.pod:3670
24378 msgid "resize2fs-M"
24379 msgstr ""
24380
24381 #. type: verbatim
24382 #: ../fish/guestfish-actions.pod:3672
24383 #, no-wrap
24384 msgid ""
24385 " resize2fs-M device\n"
24386 "\n"
24387 msgstr ""
24388
24389 #. type: textblock
24390 #: ../fish/guestfish-actions.pod:3674
24391 msgid ""
24392 "This command is the same as L</resize2fs>, but the filesystem is resized to "
24393 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
24394 "command."
24395 msgstr ""
24396
24397 #. type: textblock
24398 #: ../fish/guestfish-actions.pod:3678
24399 msgid ""
24400 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
24401 "and read the C<Block size> and C<Block count> values.  These two numbers, "
24402 "multiplied together, give the resulting size of the minimal filesystem in "
24403 "bytes."
24404 msgstr ""
24405
24406 #. type: =head2
24407 #: ../fish/guestfish-actions.pod:3683
24408 msgid "resize2fs-size"
24409 msgstr ""
24410
24411 #. type: verbatim
24412 #: ../fish/guestfish-actions.pod:3685
24413 #, no-wrap
24414 msgid ""
24415 " resize2fs-size device size\n"
24416 "\n"
24417 msgstr ""
24418
24419 #. type: textblock
24420 #: ../fish/guestfish-actions.pod:3687
24421 msgid ""
24422 "This command is the same as L</resize2fs> except that it allows you to "
24423 "specify the new size (in bytes) explicitly."
24424 msgstr ""
24425
24426 #. type: =head2
24427 #: ../fish/guestfish-actions.pod:3690
24428 msgid "rm"
24429 msgstr ""
24430
24431 #. type: verbatim
24432 #: ../fish/guestfish-actions.pod:3692
24433 #, no-wrap
24434 msgid ""
24435 " rm path\n"
24436 "\n"
24437 msgstr ""
24438
24439 #. type: =head2
24440 #: ../fish/guestfish-actions.pod:3696
24441 msgid "rm-rf"
24442 msgstr ""
24443
24444 #. type: verbatim
24445 #: ../fish/guestfish-actions.pod:3698
24446 #, no-wrap
24447 msgid ""
24448 " rm-rf path\n"
24449 "\n"
24450 msgstr ""
24451
24452 #. type: =head2
24453 #: ../fish/guestfish-actions.pod:3704
24454 msgid "rmdir"
24455 msgstr ""
24456
24457 #. type: verbatim
24458 #: ../fish/guestfish-actions.pod:3706
24459 #, no-wrap
24460 msgid ""
24461 " rmdir path\n"
24462 "\n"
24463 msgstr ""
24464
24465 #. type: =head2
24466 #: ../fish/guestfish-actions.pod:3710
24467 msgid "rmmountpoint"
24468 msgstr ""
24469
24470 #. type: verbatim
24471 #: ../fish/guestfish-actions.pod:3712
24472 #, no-wrap
24473 msgid ""
24474 " rmmountpoint exemptpath\n"
24475 "\n"
24476 msgstr ""
24477
24478 #. type: textblock
24479 #: ../fish/guestfish-actions.pod:3714
24480 msgid ""
24481 "This calls removes a mountpoint that was previously created with "
24482 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
24483 msgstr ""
24484
24485 #. type: =head2
24486 #: ../fish/guestfish-actions.pod:3718
24487 msgid "scrub-device"
24488 msgstr ""
24489
24490 #. type: verbatim
24491 #: ../fish/guestfish-actions.pod:3720
24492 #, no-wrap
24493 msgid ""
24494 " scrub-device device\n"
24495 "\n"
24496 msgstr ""
24497
24498 #. type: =head2
24499 #: ../fish/guestfish-actions.pod:3731
24500 msgid "scrub-file"
24501 msgstr ""
24502
24503 #. type: verbatim
24504 #: ../fish/guestfish-actions.pod:3733
24505 #, no-wrap
24506 msgid ""
24507 " scrub-file file\n"
24508 "\n"
24509 msgstr ""
24510
24511 #. type: =head2
24512 #: ../fish/guestfish-actions.pod:3743
24513 msgid "scrub-freespace"
24514 msgstr ""
24515
24516 #. type: verbatim
24517 #: ../fish/guestfish-actions.pod:3745
24518 #, no-wrap
24519 msgid ""
24520 " scrub-freespace dir\n"
24521 "\n"
24522 msgstr ""
24523
24524 #. type: textblock
24525 #: ../fish/guestfish-actions.pod:3747
24526 msgid ""
24527 "This command creates the directory C<dir> and then fills it with files until "
24528 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
24529 "deletes them.  The intention is to scrub any free space on the partition "
24530 "containing C<dir>."
24531 msgstr ""
24532
24533 #. type: =head2
24534 #: ../fish/guestfish-actions.pod:3756
24535 msgid "set-append"
24536 msgstr ""
24537
24538 #. type: =head2
24539 #: ../fish/guestfish-actions.pod:3758
24540 msgid "append"
24541 msgstr ""
24542
24543 #. type: verbatim
24544 #: ../fish/guestfish-actions.pod:3760
24545 #, no-wrap
24546 msgid ""
24547 " set-append append\n"
24548 "\n"
24549 msgstr ""
24550
24551 #. type: =head2
24552 #: ../fish/guestfish-actions.pod:3771
24553 msgid "set-autosync"
24554 msgstr ""
24555
24556 #. type: =head2
24557 #: ../fish/guestfish-actions.pod:3773
24558 msgid "autosync"
24559 msgstr ""
24560
24561 #. type: verbatim
24562 #: ../fish/guestfish-actions.pod:3775
24563 #, no-wrap
24564 msgid ""
24565 " set-autosync true|false\n"
24566 "\n"
24567 msgstr ""
24568
24569 #. type: textblock
24570 #: ../fish/guestfish-actions.pod:3777
24571 msgid ""
24572 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
24573 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
24574 "closed (also if the program exits without closing handles)."
24575 msgstr ""
24576
24577 #. type: =head2
24578 #: ../fish/guestfish-actions.pod:3785
24579 msgid "set-direct"
24580 msgstr ""
24581
24582 #. type: =head2
24583 #: ../fish/guestfish-actions.pod:3787
24584 msgid "direct"
24585 msgstr ""
24586
24587 #. type: verbatim
24588 #: ../fish/guestfish-actions.pod:3789
24589 #, no-wrap
24590 msgid ""
24591 " set-direct true|false\n"
24592 "\n"
24593 msgstr ""
24594
24595 #. type: textblock
24596 #: ../fish/guestfish-actions.pod:3795
24597 msgid ""
24598 "One consequence of this is that log messages aren't caught by the library "
24599 "and handled by L</set-log-message-callback>, but go straight to stdout."
24600 msgstr ""
24601
24602 #. type: =head2
24603 #: ../fish/guestfish-actions.pod:3804
24604 msgid "set-e2label"
24605 msgstr ""
24606
24607 #. type: verbatim
24608 #: ../fish/guestfish-actions.pod:3806
24609 #, no-wrap
24610 msgid ""
24611 " set-e2label device label\n"
24612 "\n"
24613 msgstr ""
24614
24615 #. type: textblock
24616 #: ../fish/guestfish-actions.pod:3812
24617 msgid ""
24618 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
24619 "label on a filesystem."
24620 msgstr ""
24621
24622 #. type: =head2
24623 #: ../fish/guestfish-actions.pod:3815
24624 msgid "set-e2uuid"
24625 msgstr ""
24626
24627 #. type: verbatim
24628 #: ../fish/guestfish-actions.pod:3817
24629 #, no-wrap
24630 msgid ""
24631 " set-e2uuid device uuid\n"
24632 "\n"
24633 msgstr ""
24634
24635 #. type: textblock
24636 #: ../fish/guestfish-actions.pod:3824
24637 msgid ""
24638 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
24639 "UUID of a filesystem."
24640 msgstr ""
24641
24642 #. type: =head2
24643 #: ../fish/guestfish-actions.pod:3827
24644 msgid "set-memsize"
24645 msgstr ""
24646
24647 #. type: =head2
24648 #: ../fish/guestfish-actions.pod:3829
24649 msgid "memsize"
24650 msgstr ""
24651
24652 #. type: verbatim
24653 #: ../fish/guestfish-actions.pod:3831
24654 #, no-wrap
24655 msgid ""
24656 " set-memsize memsize\n"
24657 "\n"
24658 msgstr ""
24659
24660 #. type: textblock
24661 #: ../fish/guestfish-actions.pod:3833
24662 msgid ""
24663 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
24664 "This only has any effect if called before L</launch>."
24665 msgstr ""
24666
24667 #. type: =head2
24668 #: ../fish/guestfish-actions.pod:3844
24669 msgid "set-network"
24670 msgstr ""
24671
24672 #. type: =head2
24673 #: ../fish/guestfish-actions.pod:3846
24674 msgid "network"
24675 msgstr ""
24676
24677 #. type: verbatim
24678 #: ../fish/guestfish-actions.pod:3848
24679 #, no-wrap
24680 msgid ""
24681 " set-network true|false\n"
24682 "\n"
24683 msgstr ""
24684
24685 #. type: textblock
24686 #: ../fish/guestfish-actions.pod:3856
24687 msgid "You must call this before calling L</launch>, otherwise it has no effect."
24688 msgstr ""
24689
24690 #. type: =head2
24691 #: ../fish/guestfish-actions.pod:3859
24692 msgid "set-path"
24693 msgstr ""
24694
24695 #. type: =head2
24696 #: ../fish/guestfish-actions.pod:3861
24697 msgid "path"
24698 msgstr ""
24699
24700 #. type: verbatim
24701 #: ../fish/guestfish-actions.pod:3863
24702 #, no-wrap
24703 msgid ""
24704 " set-path searchpath\n"
24705 "\n"
24706 msgstr ""
24707
24708 #. type: =head2
24709 #: ../fish/guestfish-actions.pod:3872
24710 msgid "set-qemu"
24711 msgstr ""
24712
24713 #. type: =head2
24714 #: ../fish/guestfish-actions.pod:3874
24715 msgid "qemu"
24716 msgstr ""
24717
24718 #. type: verbatim
24719 #: ../fish/guestfish-actions.pod:3876
24720 #, no-wrap
24721 msgid ""
24722 " set-qemu qemu\n"
24723 "\n"
24724 msgstr ""
24725
24726 #. type: =head2
24727 #: ../fish/guestfish-actions.pod:3896
24728 msgid "set-recovery-proc"
24729 msgstr ""
24730
24731 #. type: =head2
24732 #: ../fish/guestfish-actions.pod:3898
24733 msgid "recovery-proc"
24734 msgstr ""
24735
24736 #. type: verbatim
24737 #: ../fish/guestfish-actions.pod:3900
24738 #, no-wrap
24739 msgid ""
24740 " set-recovery-proc true|false\n"
24741 "\n"
24742 msgstr ""
24743
24744 #. type: textblock
24745 #: ../fish/guestfish-actions.pod:3902
24746 msgid ""
24747 "If this is called with the parameter C<false> then L</launch> does not "
24748 "create a recovery process.  The purpose of the recovery process is to stop "
24749 "runaway qemu processes in the case where the main program aborts abruptly."
24750 msgstr ""
24751
24752 #. type: textblock
24753 #: ../fish/guestfish-actions.pod:3907
24754 msgid ""
24755 "This only has any effect if called before L</launch>, and the default is "
24756 "true."
24757 msgstr ""
24758
24759 #. type: =head2
24760 #: ../fish/guestfish-actions.pod:3916
24761 msgid "set-selinux"
24762 msgstr ""
24763
24764 #. type: =head2
24765 #: ../fish/guestfish-actions.pod:3918
24766 msgid "selinux"
24767 msgstr ""
24768
24769 #. type: verbatim
24770 #: ../fish/guestfish-actions.pod:3920
24771 #, no-wrap
24772 msgid ""
24773 " set-selinux true|false\n"
24774 "\n"
24775 msgstr ""
24776
24777 #. type: =head2
24778 #: ../fish/guestfish-actions.pod:3931
24779 msgid "set-trace"
24780 msgstr ""
24781
24782 #. type: =head2
24783 #: ../fish/guestfish-actions.pod:3933
24784 msgid "trace"
24785 msgstr ""
24786
24787 #. type: verbatim
24788 #: ../fish/guestfish-actions.pod:3935
24789 #, no-wrap
24790 msgid ""
24791 " set-trace true|false\n"
24792 "\n"
24793 msgstr ""
24794
24795 #. type: =head2
24796 #: ../fish/guestfish-actions.pod:3951
24797 msgid "set-verbose"
24798 msgstr ""
24799
24800 #. type: =head2
24801 #: ../fish/guestfish-actions.pod:3953
24802 msgid "verbose"
24803 msgstr ""
24804
24805 #. type: verbatim
24806 #: ../fish/guestfish-actions.pod:3955
24807 #, no-wrap
24808 msgid ""
24809 " set-verbose true|false\n"
24810 "\n"
24811 msgstr ""
24812
24813 #. type: =head2
24814 #: ../fish/guestfish-actions.pod:3962
24815 msgid "setcon"
24816 msgstr ""
24817
24818 #. type: verbatim
24819 #: ../fish/guestfish-actions.pod:3964
24820 #, no-wrap
24821 msgid ""
24822 " setcon context\n"
24823 "\n"
24824 msgstr ""
24825
24826 #. type: =head2
24827 #: ../fish/guestfish-actions.pod:3971
24828 msgid "setxattr"
24829 msgstr ""
24830
24831 #. type: verbatim
24832 #: ../fish/guestfish-actions.pod:3973
24833 #, no-wrap
24834 msgid ""
24835 " setxattr xattr val vallen path\n"
24836 "\n"
24837 msgstr ""
24838
24839 #. type: textblock
24840 #: ../fish/guestfish-actions.pod:3979
24841 msgid "See also: L</lsetxattr>, L<attr(5)>."
24842 msgstr ""
24843
24844 #. type: =head2
24845 #: ../fish/guestfish-actions.pod:3981
24846 msgid "sfdisk"
24847 msgstr ""
24848
24849 #. type: verbatim
24850 #: ../fish/guestfish-actions.pod:3983
24851 #, no-wrap
24852 msgid ""
24853 " sfdisk device cyls heads sectors 'lines ...'\n"
24854 "\n"
24855 msgstr ""
24856
24857 #. type: textblock
24858 #: ../fish/guestfish-actions.pod:4005
24859 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
24860 msgstr ""
24861
24862 #. type: =head2
24863 #: ../fish/guestfish-actions.pod:4011
24864 msgid "sfdiskM"
24865 msgstr ""
24866
24867 #. type: verbatim
24868 #: ../fish/guestfish-actions.pod:4013
24869 #, no-wrap
24870 msgid ""
24871 " sfdiskM device 'lines ...'\n"
24872 "\n"
24873 msgstr ""
24874
24875 #. type: textblock
24876 #: ../fish/guestfish-actions.pod:4015
24877 msgid ""
24878 "This is a simplified interface to the L</sfdisk> command, where partition "
24879 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
24880 "you don't need to specify the cyls, heads and sectors parameters which were "
24881 "rarely if ever used anyway."
24882 msgstr ""
24883
24884 #. type: textblock
24885 #: ../fish/guestfish-actions.pod:4021
24886 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
24887 msgstr ""
24888
24889 #. type: =head2
24890 #: ../fish/guestfish-actions.pod:4027
24891 msgid "sfdisk-N"
24892 msgstr ""
24893
24894 #. type: verbatim
24895 #: ../fish/guestfish-actions.pod:4029
24896 #, no-wrap
24897 msgid ""
24898 " sfdisk-N device partnum cyls heads sectors line\n"
24899 "\n"
24900 msgstr ""
24901
24902 #. type: textblock
24903 #: ../fish/guestfish-actions.pod:4034
24904 msgid ""
24905 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
24906 "cyls/heads/sectors parameters."
24907 msgstr ""
24908
24909 #. type: textblock
24910 #: ../fish/guestfish-actions.pod:4037
24911 msgid "See also: L</part-add>"
24912 msgstr ""
24913
24914 #. type: =head2
24915 #: ../fish/guestfish-actions.pod:4042
24916 msgid "sfdisk-disk-geometry"
24917 msgstr ""
24918
24919 #. type: verbatim
24920 #: ../fish/guestfish-actions.pod:4044
24921 #, no-wrap
24922 msgid ""
24923 " sfdisk-disk-geometry device\n"
24924 "\n"
24925 msgstr ""
24926
24927 #. type: textblock
24928 #: ../fish/guestfish-actions.pod:4046
24929 msgid ""
24930 "This displays the disk geometry of C<device> read from the partition table.  "
24931 "Especially in the case where the underlying block device has been resized, "
24932 "this can be different from the kernel's idea of the geometry (see "
24933 "L</sfdisk-kernel-geometry>)."
24934 msgstr ""
24935
24936 #. type: =head2
24937 #: ../fish/guestfish-actions.pod:4054
24938 msgid "sfdisk-kernel-geometry"
24939 msgstr ""
24940
24941 #. type: verbatim
24942 #: ../fish/guestfish-actions.pod:4056
24943 #, no-wrap
24944 msgid ""
24945 " sfdisk-kernel-geometry device\n"
24946 "\n"
24947 msgstr ""
24948
24949 #. type: =head2
24950 #: ../fish/guestfish-actions.pod:4063
24951 msgid "sfdisk-l"
24952 msgstr ""
24953
24954 #. type: verbatim
24955 #: ../fish/guestfish-actions.pod:4065
24956 #, no-wrap
24957 msgid ""
24958 " sfdisk-l device\n"
24959 "\n"
24960 msgstr ""
24961
24962 #. type: textblock
24963 #: ../fish/guestfish-actions.pod:4071
24964 msgid "See also: L</part-list>"
24965 msgstr ""
24966
24967 #. type: =head2
24968 #: ../fish/guestfish-actions.pod:4073
24969 msgid "sh"
24970 msgstr ""
24971
24972 #. type: verbatim
24973 #: ../fish/guestfish-actions.pod:4075
24974 #, no-wrap
24975 msgid ""
24976 " sh command\n"
24977 "\n"
24978 msgstr ""
24979
24980 #. type: textblock
24981 #: ../fish/guestfish-actions.pod:4080
24982 msgid "This is like L</command>, but passes the command to:"
24983 msgstr ""
24984
24985 #. type: textblock
24986 #: ../fish/guestfish-actions.pod:4088
24987 msgid "All the provisos about L</command> apply to this call."
24988 msgstr ""
24989
24990 #. type: =head2
24991 #: ../fish/guestfish-actions.pod:4090
24992 msgid "sh-lines"
24993 msgstr ""
24994
24995 #. type: verbatim
24996 #: ../fish/guestfish-actions.pod:4092
24997 #, no-wrap
24998 msgid ""
24999 " sh-lines command\n"
25000 "\n"
25001 msgstr ""
25002
25003 #. type: textblock
25004 #: ../fish/guestfish-actions.pod:4094
25005 msgid "This is the same as L</sh>, but splits the result into a list of lines."
25006 msgstr ""
25007
25008 #. type: textblock
25009 #: ../fish/guestfish-actions.pod:4097
25010 msgid "See also: L</command-lines>"
25011 msgstr ""
25012
25013 #. type: =head2
25014 #: ../fish/guestfish-actions.pod:4099
25015 msgid "sleep"
25016 msgstr ""
25017
25018 #. type: verbatim
25019 #: ../fish/guestfish-actions.pod:4101
25020 #, no-wrap
25021 msgid ""
25022 " sleep secs\n"
25023 "\n"
25024 msgstr ""
25025
25026 #. type: =head2
25027 #: ../fish/guestfish-actions.pod:4105
25028 msgid "stat"
25029 msgstr ""
25030
25031 #. type: verbatim
25032 #: ../fish/guestfish-actions.pod:4107
25033 #, no-wrap
25034 msgid ""
25035 " stat path\n"
25036 "\n"
25037 msgstr ""
25038
25039 #. type: =head2
25040 #: ../fish/guestfish-actions.pod:4113
25041 msgid "statvfs"
25042 msgstr ""
25043
25044 #. type: verbatim
25045 #: ../fish/guestfish-actions.pod:4115
25046 #, no-wrap
25047 msgid ""
25048 " statvfs path\n"
25049 "\n"
25050 msgstr ""
25051
25052 #. type: =head2
25053 #: ../fish/guestfish-actions.pod:4123
25054 msgid "strings"
25055 msgstr ""
25056
25057 #. type: verbatim
25058 #: ../fish/guestfish-actions.pod:4125
25059 #, no-wrap
25060 msgid ""
25061 " strings path\n"
25062 "\n"
25063 msgstr ""
25064
25065 #. type: =head2
25066 #: ../fish/guestfish-actions.pod:4133
25067 msgid "strings-e"
25068 msgstr ""
25069
25070 #. type: verbatim
25071 #: ../fish/guestfish-actions.pod:4135
25072 #, no-wrap
25073 msgid ""
25074 " strings-e encoding path\n"
25075 "\n"
25076 msgstr ""
25077
25078 #. type: textblock
25079 #: ../fish/guestfish-actions.pod:4137
25080 msgid ""
25081 "This is like the L</strings> command, but allows you to specify the encoding "
25082 "of strings that are looked for in the source file C<path>."
25083 msgstr ""
25084
25085 #. type: textblock
25086 #: ../fish/guestfish-actions.pod:4147
25087 msgid ""
25088 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
25089 "ISO-8859-X (this is what L</strings> uses)."
25090 msgstr ""
25091
25092 #. type: =head2
25093 #: ../fish/guestfish-actions.pod:4179
25094 msgid "swapoff-device"
25095 msgstr ""
25096
25097 #. type: verbatim
25098 #: ../fish/guestfish-actions.pod:4181
25099 #, no-wrap
25100 msgid ""
25101 " swapoff-device device\n"
25102 "\n"
25103 msgstr ""
25104
25105 #. type: textblock
25106 #: ../fish/guestfish-actions.pod:4183
25107 msgid ""
25108 "This command disables the libguestfs appliance swap device or partition "
25109 "named C<device>.  See L</swapon-device>."
25110 msgstr ""
25111
25112 #. type: =head2
25113 #: ../fish/guestfish-actions.pod:4187
25114 msgid "swapoff-file"
25115 msgstr ""
25116
25117 #. type: verbatim
25118 #: ../fish/guestfish-actions.pod:4189
25119 #, no-wrap
25120 msgid ""
25121 " swapoff-file file\n"
25122 "\n"
25123 msgstr ""
25124
25125 #. type: =head2
25126 #: ../fish/guestfish-actions.pod:4193
25127 msgid "swapoff-label"
25128 msgstr ""
25129
25130 #. type: verbatim
25131 #: ../fish/guestfish-actions.pod:4195
25132 #, no-wrap
25133 msgid ""
25134 " swapoff-label label\n"
25135 "\n"
25136 msgstr ""
25137
25138 #. type: =head2
25139 #: ../fish/guestfish-actions.pod:4200
25140 msgid "swapoff-uuid"
25141 msgstr ""
25142
25143 #. type: verbatim
25144 #: ../fish/guestfish-actions.pod:4202
25145 #, no-wrap
25146 msgid ""
25147 " swapoff-uuid uuid\n"
25148 "\n"
25149 msgstr ""
25150
25151 #. type: =head2
25152 #: ../fish/guestfish-actions.pod:4207
25153 msgid "swapon-device"
25154 msgstr ""
25155
25156 #. type: verbatim
25157 #: ../fish/guestfish-actions.pod:4209
25158 #, no-wrap
25159 msgid ""
25160 " swapon-device device\n"
25161 "\n"
25162 msgstr ""
25163
25164 #. type: textblock
25165 #: ../fish/guestfish-actions.pod:4211
25166 msgid ""
25167 "This command enables the libguestfs appliance to use the swap device or "
25168 "partition named C<device>.  The increased memory is made available for all "
25169 "commands, for example those run using L</command> or L</sh>."
25170 msgstr ""
25171
25172 #. type: =head2
25173 #: ../fish/guestfish-actions.pod:4223
25174 msgid "swapon-file"
25175 msgstr ""
25176
25177 #. type: verbatim
25178 #: ../fish/guestfish-actions.pod:4225
25179 #, no-wrap
25180 msgid ""
25181 " swapon-file file\n"
25182 "\n"
25183 msgstr ""
25184
25185 #. type: textblock
25186 #: ../fish/guestfish-actions.pod:4227
25187 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
25188 msgstr ""
25189
25190 #. type: =head2
25191 #: ../fish/guestfish-actions.pod:4230
25192 msgid "swapon-label"
25193 msgstr ""
25194
25195 #. type: verbatim
25196 #: ../fish/guestfish-actions.pod:4232
25197 #, no-wrap
25198 msgid ""
25199 " swapon-label label\n"
25200 "\n"
25201 msgstr ""
25202
25203 #. type: textblock
25204 #: ../fish/guestfish-actions.pod:4234
25205 msgid ""
25206 "This command enables swap to a labeled swap partition.  See "
25207 "L</swapon-device> for other notes."
25208 msgstr ""
25209
25210 #. type: =head2
25211 #: ../fish/guestfish-actions.pod:4237
25212 msgid "swapon-uuid"
25213 msgstr ""
25214
25215 #. type: verbatim
25216 #: ../fish/guestfish-actions.pod:4239
25217 #, no-wrap
25218 msgid ""
25219 " swapon-uuid uuid\n"
25220 "\n"
25221 msgstr ""
25222
25223 #. type: textblock
25224 #: ../fish/guestfish-actions.pod:4241
25225 msgid ""
25226 "This command enables swap to a swap partition with the given UUID.  See "
25227 "L</swapon-device> for other notes."
25228 msgstr ""
25229
25230 #. type: =head2
25231 #: ../fish/guestfish-actions.pod:4244
25232 msgid "sync"
25233 msgstr ""
25234
25235 #. type: verbatim
25236 #: ../fish/guestfish-actions.pod:4246
25237 #, no-wrap
25238 msgid ""
25239 " sync\n"
25240 "\n"
25241 msgstr ""
25242
25243 #. type: =head2
25244 #: ../fish/guestfish-actions.pod:4254
25245 msgid "tail"
25246 msgstr ""
25247
25248 #. type: verbatim
25249 #: ../fish/guestfish-actions.pod:4256
25250 #, no-wrap
25251 msgid ""
25252 " tail path\n"
25253 "\n"
25254 msgstr ""
25255
25256 #. type: =head2
25257 #: ../fish/guestfish-actions.pod:4264
25258 msgid "tail-n"
25259 msgstr ""
25260
25261 #. type: verbatim
25262 #: ../fish/guestfish-actions.pod:4266
25263 #, no-wrap
25264 msgid ""
25265 " tail-n nrlines path\n"
25266 "\n"
25267 msgstr ""
25268
25269 #. type: =head2
25270 #: ../fish/guestfish-actions.pod:4279
25271 msgid "tar-in"
25272 msgstr ""
25273
25274 #. type: verbatim
25275 #: ../fish/guestfish-actions.pod:4281
25276 #, no-wrap
25277 msgid ""
25278 " tar-in (tarfile|-) directory\n"
25279 "\n"
25280 msgstr ""
25281
25282 #. type: textblock
25283 #: ../fish/guestfish-actions.pod:4286
25284 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
25285 msgstr ""
25286
25287 #. type: =head2
25288 #: ../fish/guestfish-actions.pod:4291
25289 msgid "tar-out"
25290 msgstr ""
25291
25292 #. type: verbatim
25293 #: ../fish/guestfish-actions.pod:4293
25294 #, no-wrap
25295 msgid ""
25296 " tar-out directory (tarfile|-)\n"
25297 "\n"
25298 msgstr ""
25299
25300 #. type: textblock
25301 #: ../fish/guestfish-actions.pod:4298
25302 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
25303 msgstr ""
25304
25305 #. type: =head2
25306 #: ../fish/guestfish-actions.pod:4303
25307 msgid "tgz-in"
25308 msgstr ""
25309
25310 #. type: verbatim
25311 #: ../fish/guestfish-actions.pod:4305
25312 #, no-wrap
25313 msgid ""
25314 " tgz-in (tarball|-) directory\n"
25315 "\n"
25316 msgstr ""
25317
25318 #. type: textblock
25319 #: ../fish/guestfish-actions.pod:4310
25320 msgid "To upload an uncompressed tarball, use L</tar-in>."
25321 msgstr ""
25322
25323 #. type: =head2
25324 #: ../fish/guestfish-actions.pod:4314
25325 msgid "tgz-out"
25326 msgstr ""
25327
25328 #. type: verbatim
25329 #: ../fish/guestfish-actions.pod:4316
25330 #, no-wrap
25331 msgid ""
25332 " tgz-out directory (tarball|-)\n"
25333 "\n"
25334 msgstr ""
25335
25336 #. type: textblock
25337 #: ../fish/guestfish-actions.pod:4321
25338 msgid "To download an uncompressed tarball, use L</tar-out>."
25339 msgstr ""
25340
25341 #. type: =head2
25342 #: ../fish/guestfish-actions.pod:4325
25343 msgid "touch"
25344 msgstr ""
25345
25346 #. type: verbatim
25347 #: ../fish/guestfish-actions.pod:4327
25348 #, no-wrap
25349 msgid ""
25350 " touch path\n"
25351 "\n"
25352 msgstr ""
25353
25354 #. type: =head2
25355 #: ../fish/guestfish-actions.pod:4336
25356 msgid "truncate"
25357 msgstr ""
25358
25359 #. type: verbatim
25360 #: ../fish/guestfish-actions.pod:4338
25361 #, no-wrap
25362 msgid ""
25363 " truncate path\n"
25364 "\n"
25365 msgstr ""
25366
25367 #. type: =head2
25368 #: ../fish/guestfish-actions.pod:4343
25369 msgid "truncate-size"
25370 msgstr ""
25371
25372 #. type: verbatim
25373 #: ../fish/guestfish-actions.pod:4345
25374 #, no-wrap
25375 msgid ""
25376 " truncate-size path size\n"
25377 "\n"
25378 msgstr ""
25379
25380 #. type: textblock
25381 #: ../fish/guestfish-actions.pod:4350
25382 msgid ""
25383 "If the current file size is less than C<size> then the file is extended to "
25384 "the required size with zero bytes.  This creates a sparse file (ie. disk "
25385 "blocks are not allocated for the file until you write to it).  To create a "
25386 "non-sparse file of zeroes, use L</fallocate64> instead."
25387 msgstr ""
25388
25389 #. type: =head2
25390 #: ../fish/guestfish-actions.pod:4356
25391 msgid "tune2fs-l"
25392 msgstr ""
25393
25394 #. type: verbatim
25395 #: ../fish/guestfish-actions.pod:4358
25396 #, no-wrap
25397 msgid ""
25398 " tune2fs-l device\n"
25399 "\n"
25400 msgstr ""
25401
25402 #. type: =head2
25403 #: ../fish/guestfish-actions.pod:4368
25404 msgid "txz-in"
25405 msgstr ""
25406
25407 #. type: verbatim
25408 #: ../fish/guestfish-actions.pod:4370
25409 #, no-wrap
25410 msgid ""
25411 " txz-in (tarball|-) directory\n"
25412 "\n"
25413 msgstr ""
25414
25415 #. type: =head2
25416 #: ../fish/guestfish-actions.pod:4377
25417 msgid "txz-out"
25418 msgstr ""
25419
25420 #. type: verbatim
25421 #: ../fish/guestfish-actions.pod:4379
25422 #, no-wrap
25423 msgid ""
25424 " txz-out directory (tarball|-)\n"
25425 "\n"
25426 msgstr ""
25427
25428 #. type: =head2
25429 #: ../fish/guestfish-actions.pod:4386
25430 msgid "umask"
25431 msgstr ""
25432
25433 #. type: verbatim
25434 #: ../fish/guestfish-actions.pod:4388
25435 #, no-wrap
25436 msgid ""
25437 " umask mask\n"
25438 "\n"
25439 msgstr ""
25440
25441 #. type: textblock
25442 #: ../fish/guestfish-actions.pod:4402
25443 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
25444 msgstr ""
25445
25446 #. type: =head2
25447 #: ../fish/guestfish-actions.pod:4407
25448 msgid "umount"
25449 msgstr ""
25450
25451 #. type: =head2
25452 #: ../fish/guestfish-actions.pod:4409
25453 msgid "unmount"
25454 msgstr ""
25455
25456 #. type: verbatim
25457 #: ../fish/guestfish-actions.pod:4411
25458 #, no-wrap
25459 msgid ""
25460 " umount pathordevice\n"
25461 "\n"
25462 msgstr ""
25463
25464 #. type: =head2
25465 #: ../fish/guestfish-actions.pod:4417
25466 msgid "umount-all"
25467 msgstr ""
25468
25469 #. type: =head2
25470 #: ../fish/guestfish-actions.pod:4419
25471 msgid "unmount-all"
25472 msgstr ""
25473
25474 #. type: verbatim
25475 #: ../fish/guestfish-actions.pod:4421
25476 #, no-wrap
25477 msgid ""
25478 " umount-all\n"
25479 "\n"
25480 msgstr ""
25481
25482 #. type: =head2
25483 #: ../fish/guestfish-actions.pod:4427
25484 msgid "upload"
25485 msgstr ""
25486
25487 #. type: verbatim
25488 #: ../fish/guestfish-actions.pod:4429
25489 #, no-wrap
25490 msgid ""
25491 " upload (filename|-) remotefilename\n"
25492 "\n"
25493 msgstr ""
25494
25495 #. type: textblock
25496 #: ../fish/guestfish-actions.pod:4436
25497 msgid "See also L</download>."
25498 msgstr ""
25499
25500 #. type: =head2
25501 #: ../fish/guestfish-actions.pod:4440
25502 msgid "upload-offset"
25503 msgstr ""
25504
25505 #. type: verbatim
25506 #: ../fish/guestfish-actions.pod:4442
25507 #, no-wrap
25508 msgid ""
25509 " upload-offset (filename|-) remotefilename offset\n"
25510 "\n"
25511 msgstr ""
25512
25513 #. type: textblock
25514 #: ../fish/guestfish-actions.pod:4454
25515 msgid ""
25516 "Note that there is no limit on the amount of data that can be uploaded with "
25517 "this call, unlike with L</pwrite>, and this call always writes the full "
25518 "amount unless an error occurs."
25519 msgstr ""
25520
25521 #. type: textblock
25522 #: ../fish/guestfish-actions.pod:4459
25523 msgid "See also L</upload>, L</pwrite>."
25524 msgstr ""
25525
25526 #. type: =head2
25527 #: ../fish/guestfish-actions.pod:4463
25528 msgid "utimens"
25529 msgstr ""
25530
25531 #. type: verbatim
25532 #: ../fish/guestfish-actions.pod:4465
25533 #, no-wrap
25534 msgid ""
25535 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
25536 "\n"
25537 msgstr ""
25538
25539 #. type: =head2
25540 #: ../fish/guestfish-actions.pod:4484
25541 msgid "version"
25542 msgstr ""
25543
25544 #. type: verbatim
25545 #: ../fish/guestfish-actions.pod:4486
25546 #, no-wrap
25547 msgid ""
25548 " version\n"
25549 "\n"
25550 msgstr ""
25551
25552 #. type: textblock
25553 #: ../fish/guestfish-actions.pod:4513
25554 msgid ""
25555 "I<Note:> Don't use this call to test for availability of features.  In "
25556 "enterprise distributions we backport features from later versions into "
25557 "earlier versions, making this an unreliable way to test for features.  Use "
25558 "L</available> instead."
25559 msgstr ""
25560
25561 #. type: =head2
25562 #: ../fish/guestfish-actions.pod:4519
25563 msgid "vfs-label"
25564 msgstr ""
25565
25566 #. type: verbatim
25567 #: ../fish/guestfish-actions.pod:4521
25568 #, no-wrap
25569 msgid ""
25570 " vfs-label device\n"
25571 "\n"
25572 msgstr ""
25573
25574 #. type: textblock
25575 #: ../fish/guestfish-actions.pod:4528
25576 msgid "To find a filesystem from the label, use L</findfs-label>."
25577 msgstr ""
25578
25579 #. type: =head2
25580 #: ../fish/guestfish-actions.pod:4530
25581 msgid "vfs-type"
25582 msgstr ""
25583
25584 #. type: verbatim
25585 #: ../fish/guestfish-actions.pod:4532
25586 #, no-wrap
25587 msgid ""
25588 " vfs-type device\n"
25589 "\n"
25590 msgstr ""
25591
25592 #. type: =head2
25593 #: ../fish/guestfish-actions.pod:4542
25594 msgid "vfs-uuid"
25595 msgstr ""
25596
25597 #. type: verbatim
25598 #: ../fish/guestfish-actions.pod:4544
25599 #, no-wrap
25600 msgid ""
25601 " vfs-uuid device\n"
25602 "\n"
25603 msgstr ""
25604
25605 #. type: textblock
25606 #: ../fish/guestfish-actions.pod:4551
25607 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
25608 msgstr ""
25609
25610 #. type: =head2
25611 #: ../fish/guestfish-actions.pod:4553
25612 msgid "vg-activate"
25613 msgstr ""
25614
25615 #. type: verbatim
25616 #: ../fish/guestfish-actions.pod:4555
25617 #, no-wrap
25618 msgid ""
25619 " vg-activate true|false 'volgroups ...'\n"
25620 "\n"
25621 msgstr ""
25622
25623 #. type: =head2
25624 #: ../fish/guestfish-actions.pod:4568
25625 msgid "vg-activate-all"
25626 msgstr ""
25627
25628 #. type: verbatim
25629 #: ../fish/guestfish-actions.pod:4570
25630 #, no-wrap
25631 msgid ""
25632 " vg-activate-all true|false\n"
25633 "\n"
25634 msgstr ""
25635
25636 #. type: =head2
25637 #: ../fish/guestfish-actions.pod:4580
25638 msgid "vgcreate"
25639 msgstr ""
25640
25641 #. type: verbatim
25642 #: ../fish/guestfish-actions.pod:4582
25643 #, no-wrap
25644 msgid ""
25645 " vgcreate volgroup 'physvols ...'\n"
25646 "\n"
25647 msgstr ""
25648
25649 #. type: =head2
25650 #: ../fish/guestfish-actions.pod:4587
25651 msgid "vglvuuids"
25652 msgstr ""
25653
25654 #. type: verbatim
25655 #: ../fish/guestfish-actions.pod:4589
25656 #, no-wrap
25657 msgid ""
25658 " vglvuuids vgname\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: textblock
25663 #: ../fish/guestfish-actions.pod:4594
25664 msgid ""
25665 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
25666 "logical volumes and volume groups."
25667 msgstr ""
25668
25669 #. type: textblock
25670 #: ../fish/guestfish-actions.pod:4597
25671 msgid "See also L</vgpvuuids>."
25672 msgstr ""
25673
25674 #. type: =head2
25675 #: ../fish/guestfish-actions.pod:4599
25676 msgid "vgpvuuids"
25677 msgstr ""
25678
25679 #. type: verbatim
25680 #: ../fish/guestfish-actions.pod:4601
25681 #, no-wrap
25682 msgid ""
25683 " vgpvuuids vgname\n"
25684 "\n"
25685 msgstr ""
25686
25687 #. type: textblock
25688 #: ../fish/guestfish-actions.pod:4606
25689 msgid ""
25690 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
25691 "physical volumes and volume groups."
25692 msgstr ""
25693
25694 #. type: textblock
25695 #: ../fish/guestfish-actions.pod:4609
25696 msgid "See also L</vglvuuids>."
25697 msgstr ""
25698
25699 #. type: =head2
25700 #: ../fish/guestfish-actions.pod:4611
25701 msgid "vgremove"
25702 msgstr ""
25703
25704 #. type: verbatim
25705 #: ../fish/guestfish-actions.pod:4613
25706 #, no-wrap
25707 msgid ""
25708 " vgremove vgname\n"
25709 "\n"
25710 msgstr ""
25711
25712 #. type: =head2
25713 #: ../fish/guestfish-actions.pod:4620
25714 msgid "vgrename"
25715 msgstr ""
25716
25717 #. type: verbatim
25718 #: ../fish/guestfish-actions.pod:4622
25719 #, no-wrap
25720 msgid ""
25721 " vgrename volgroup newvolgroup\n"
25722 "\n"
25723 msgstr ""
25724
25725 #. type: =head2
25726 #: ../fish/guestfish-actions.pod:4626
25727 msgid "vgs"
25728 msgstr ""
25729
25730 #. type: verbatim
25731 #: ../fish/guestfish-actions.pod:4628
25732 #, no-wrap
25733 msgid ""
25734 " vgs\n"
25735 "\n"
25736 msgstr ""
25737
25738 #. type: textblock
25739 #: ../fish/guestfish-actions.pod:4636
25740 msgid "See also L</vgs-full>."
25741 msgstr ""
25742
25743 #. type: =head2
25744 #: ../fish/guestfish-actions.pod:4638
25745 msgid "vgs-full"
25746 msgstr ""
25747
25748 #. type: verbatim
25749 #: ../fish/guestfish-actions.pod:4640
25750 #, no-wrap
25751 msgid ""
25752 " vgs-full\n"
25753 "\n"
25754 msgstr ""
25755
25756 #. type: =head2
25757 #: ../fish/guestfish-actions.pod:4645
25758 msgid "vgscan"
25759 msgstr ""
25760
25761 #. type: verbatim
25762 #: ../fish/guestfish-actions.pod:4647
25763 #, no-wrap
25764 msgid ""
25765 " vgscan\n"
25766 "\n"
25767 msgstr ""
25768
25769 #. type: =head2
25770 #: ../fish/guestfish-actions.pod:4652
25771 msgid "vguuid"
25772 msgstr ""
25773
25774 #. type: verbatim
25775 #: ../fish/guestfish-actions.pod:4654
25776 #, no-wrap
25777 msgid ""
25778 " vguuid vgname\n"
25779 "\n"
25780 msgstr ""
25781
25782 #. type: =head2
25783 #: ../fish/guestfish-actions.pod:4658
25784 msgid "wc-c"
25785 msgstr ""
25786
25787 #. type: verbatim
25788 #: ../fish/guestfish-actions.pod:4660
25789 #, no-wrap
25790 msgid ""
25791 " wc-c path\n"
25792 "\n"
25793 msgstr ""
25794
25795 #. type: =head2
25796 #: ../fish/guestfish-actions.pod:4665
25797 msgid "wc-l"
25798 msgstr ""
25799
25800 #. type: verbatim
25801 #: ../fish/guestfish-actions.pod:4667
25802 #, no-wrap
25803 msgid ""
25804 " wc-l path\n"
25805 "\n"
25806 msgstr ""
25807
25808 #. type: =head2
25809 #: ../fish/guestfish-actions.pod:4672
25810 msgid "wc-w"
25811 msgstr ""
25812
25813 #. type: verbatim
25814 #: ../fish/guestfish-actions.pod:4674
25815 #, no-wrap
25816 msgid ""
25817 " wc-w path\n"
25818 "\n"
25819 msgstr ""
25820
25821 #. type: =head2
25822 #: ../fish/guestfish-actions.pod:4679
25823 msgid "write"
25824 msgstr ""
25825
25826 #. type: verbatim
25827 #: ../fish/guestfish-actions.pod:4681
25828 #, no-wrap
25829 msgid ""
25830 " write path content\n"
25831 "\n"
25832 msgstr ""
25833
25834 #. type: =head2
25835 #: ../fish/guestfish-actions.pod:4689
25836 msgid "write-file"
25837 msgstr ""
25838
25839 #. type: verbatim
25840 #: ../fish/guestfish-actions.pod:4691
25841 #, no-wrap
25842 msgid ""
25843 " write-file path content size\n"
25844 "\n"
25845 msgstr ""
25846
25847 #. type: =head2
25848 #: ../fish/guestfish-actions.pod:4714
25849 msgid "zegrep"
25850 msgstr ""
25851
25852 #. type: verbatim
25853 #: ../fish/guestfish-actions.pod:4716
25854 #, no-wrap
25855 msgid ""
25856 " zegrep regex path\n"
25857 "\n"
25858 msgstr ""
25859
25860 #. type: =head2
25861 #: ../fish/guestfish-actions.pod:4724
25862 msgid "zegrepi"
25863 msgstr ""
25864
25865 #. type: verbatim
25866 #: ../fish/guestfish-actions.pod:4726
25867 #, no-wrap
25868 msgid ""
25869 " zegrepi regex path\n"
25870 "\n"
25871 msgstr ""
25872
25873 #. type: =head2
25874 #: ../fish/guestfish-actions.pod:4734
25875 msgid "zero"
25876 msgstr ""
25877
25878 #. type: verbatim
25879 #: ../fish/guestfish-actions.pod:4736
25880 #, no-wrap
25881 msgid ""
25882 " zero device\n"
25883 "\n"
25884 msgstr ""
25885
25886 #. type: textblock
25887 #: ../fish/guestfish-actions.pod:4744
25888 msgid "See also: L</zero-device>, L</scrub-device>."
25889 msgstr ""
25890
25891 #. type: =head2
25892 #: ../fish/guestfish-actions.pod:4746
25893 msgid "zero-device"
25894 msgstr ""
25895
25896 #. type: verbatim
25897 #: ../fish/guestfish-actions.pod:4748
25898 #, no-wrap
25899 msgid ""
25900 " zero-device device\n"
25901 "\n"
25902 msgstr ""
25903
25904 #. type: textblock
25905 #: ../fish/guestfish-actions.pod:4750
25906 msgid ""
25907 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
25908 "which just zeroes the first few blocks of a device."
25909 msgstr ""
25910
25911 #. type: =head2
25912 #: ../fish/guestfish-actions.pod:4757
25913 msgid "zerofree"
25914 msgstr ""
25915
25916 #. type: verbatim
25917 #: ../fish/guestfish-actions.pod:4759
25918 #, no-wrap
25919 msgid ""
25920 " zerofree device\n"
25921 "\n"
25922 msgstr ""
25923
25924 #. type: =head2
25925 #: ../fish/guestfish-actions.pod:4772
25926 msgid "zfgrep"
25927 msgstr ""
25928
25929 #. type: verbatim
25930 #: ../fish/guestfish-actions.pod:4774
25931 #, no-wrap
25932 msgid ""
25933 " zfgrep pattern path\n"
25934 "\n"
25935 msgstr ""
25936
25937 #. type: =head2
25938 #: ../fish/guestfish-actions.pod:4782
25939 msgid "zfgrepi"
25940 msgstr ""
25941
25942 #. type: verbatim
25943 #: ../fish/guestfish-actions.pod:4784
25944 #, no-wrap
25945 msgid ""
25946 " zfgrepi pattern path\n"
25947 "\n"
25948 msgstr ""
25949
25950 #. type: =head2
25951 #: ../fish/guestfish-actions.pod:4792
25952 msgid "zfile"
25953 msgstr ""
25954
25955 #. type: verbatim
25956 #: ../fish/guestfish-actions.pod:4794
25957 #, no-wrap
25958 msgid ""
25959 " zfile meth path\n"
25960 "\n"
25961 msgstr ""
25962
25963 #. type: textblock
25964 #: ../fish/guestfish-actions.pod:4801
25965 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
25966 msgstr ""
25967
25968 #. type: =head2
25969 #: ../fish/guestfish-actions.pod:4811
25970 msgid "zgrep"
25971 msgstr ""
25972
25973 #. type: verbatim
25974 #: ../fish/guestfish-actions.pod:4813
25975 #, no-wrap
25976 msgid ""
25977 " zgrep regex path\n"
25978 "\n"
25979 msgstr ""
25980
25981 #. type: =head2
25982 #: ../fish/guestfish-actions.pod:4821
25983 msgid "zgrepi"
25984 msgstr ""
25985
25986 #. type: verbatim
25987 #: ../fish/guestfish-actions.pod:4823
25988 #, no-wrap
25989 msgid ""
25990 " zgrepi regex path\n"
25991 "\n"
25992 msgstr ""
25993
25994 #. type: =head2
25995 #: ../fish/guestfish-commands.pod:1
25996 msgid "alloc"
25997 msgstr ""
25998
25999 #. type: =head2
26000 #: ../fish/guestfish-commands.pod:3
26001 msgid "allocate"
26002 msgstr ""
26003
26004 #. type: verbatim
26005 #: ../fish/guestfish-commands.pod:5
26006 #, no-wrap
26007 msgid ""
26008 " alloc filename size\n"
26009 "\n"
26010 msgstr ""
26011
26012 #. type: textblock
26013 #: ../fish/guestfish-commands.pod:7
26014 msgid ""
26015 "This creates an empty (zeroed) file of the given size, and then adds so it "
26016 "can be further examined."
26017 msgstr ""
26018
26019 #. type: textblock
26020 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
26021 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
26022 msgstr ""
26023
26024 #. type: textblock
26025 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
26026 msgid "Size can be specified using standard suffixes, eg. C<1M>."
26027 msgstr ""
26028
26029 #. type: textblock
26030 #: ../fish/guestfish-commands.pod:14
26031 msgid ""
26032 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
26033 "image, see L</PREPARED DISK IMAGES>."
26034 msgstr ""
26035
26036 #. type: =head2
26037 #: ../fish/guestfish-commands.pod:17
26038 msgid "copy-in"
26039 msgstr ""
26040
26041 #. type: verbatim
26042 #: ../fish/guestfish-commands.pod:19
26043 #, no-wrap
26044 msgid ""
26045 " copy-in local [local ...] /remotedir\n"
26046 "\n"
26047 msgstr ""
26048
26049 #. type: textblock
26050 #: ../fish/guestfish-commands.pod:21
26051 msgid ""
26052 "C<copy-in> copies local files or directories recursively into the disk "
26053 "image, placing them in the directory called C</remotedir> (which must "
26054 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
26055 "other commands as necessary."
26056 msgstr ""
26057
26058 #. type: textblock
26059 #: ../fish/guestfish-commands.pod:26
26060 msgid ""
26061 "Multiple local files and directories can be specified, but the last "
26062 "parameter must always be a remote directory.  Wildcards cannot be used."
26063 msgstr ""
26064
26065 #. type: =head2
26066 #: ../fish/guestfish-commands.pod:30
26067 msgid "copy-out"
26068 msgstr ""
26069
26070 #. type: verbatim
26071 #: ../fish/guestfish-commands.pod:32
26072 #, no-wrap
26073 msgid ""
26074 " copy-out remote [remote ...] localdir\n"
26075 "\n"
26076 msgstr ""
26077
26078 #. type: textblock
26079 #: ../fish/guestfish-commands.pod:34
26080 msgid ""
26081 "C<copy-out> copies remote files or directories recursively out of the disk "
26082 "image, placing them on the host disk in a local directory called C<localdir> "
26083 "(which must exist).  This guestfish meta-command turns into a sequence of "
26084 "L</download>, L</tar-out> and other commands as necessary."
26085 msgstr ""
26086
26087 #. type: textblock
26088 #: ../fish/guestfish-commands.pod:40
26089 msgid ""
26090 "Multiple remote files and directories can be specified, but the last "
26091 "parameter must always be a local directory.  To download to the current "
26092 "directory, use C<.> as in:"
26093 msgstr ""
26094
26095 #. type: verbatim
26096 #: ../fish/guestfish-commands.pod:44
26097 #, no-wrap
26098 msgid ""
26099 " copy-out /home .\n"
26100 "\n"
26101 msgstr ""
26102
26103 #. type: textblock
26104 #: ../fish/guestfish-commands.pod:46
26105 msgid ""
26106 "Wildcards cannot be used in the ordinary command, but you can use them with "
26107 "the help of L</glob> like this:"
26108 msgstr ""
26109
26110 #. type: verbatim
26111 #: ../fish/guestfish-commands.pod:49
26112 #, no-wrap
26113 msgid ""
26114 " glob copy-out /home/* .\n"
26115 "\n"
26116 msgstr ""
26117
26118 #. type: =head2
26119 #: ../fish/guestfish-commands.pod:51
26120 msgid "echo"
26121 msgstr ""
26122
26123 #. type: verbatim
26124 #: ../fish/guestfish-commands.pod:53
26125 #, no-wrap
26126 msgid ""
26127 " echo [params ...]\n"
26128 "\n"
26129 msgstr ""
26130
26131 #. type: textblock
26132 #: ../fish/guestfish-commands.pod:55
26133 msgid "This echos the parameters to the terminal."
26134 msgstr ""
26135
26136 #. type: =head2
26137 #: ../fish/guestfish-commands.pod:57
26138 msgid "edit"
26139 msgstr ""
26140
26141 #. type: =head2
26142 #: ../fish/guestfish-commands.pod:59
26143 msgid "vi"
26144 msgstr ""
26145
26146 #. type: =head2
26147 #: ../fish/guestfish-commands.pod:61
26148 msgid "emacs"
26149 msgstr ""
26150
26151 #. type: verbatim
26152 #: ../fish/guestfish-commands.pod:63
26153 #, no-wrap
26154 msgid ""
26155 " edit filename\n"
26156 "\n"
26157 msgstr ""
26158
26159 #. type: textblock
26160 #: ../fish/guestfish-commands.pod:65
26161 msgid ""
26162 "This is used to edit a file.  It downloads the file, edits it locally using "
26163 "your editor, then uploads the result."
26164 msgstr ""
26165
26166 #. type: textblock
26167 #: ../fish/guestfish-commands.pod:68
26168 msgid ""
26169 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
26170 "or C<emacs> you will get those corresponding editors."
26171 msgstr ""
26172
26173 #. type: =head2
26174 #: ../fish/guestfish-commands.pod:72
26175 msgid "glob"
26176 msgstr ""
26177
26178 #. type: verbatim
26179 #: ../fish/guestfish-commands.pod:74
26180 #, no-wrap
26181 msgid ""
26182 " glob command args...\n"
26183 "\n"
26184 msgstr ""
26185
26186 #. type: textblock
26187 #: ../fish/guestfish-commands.pod:76
26188 msgid ""
26189 "Expand wildcards in any paths in the args list, and run C<command> "
26190 "repeatedly on each matching path."
26191 msgstr ""
26192
26193 #. type: textblock
26194 #: ../fish/guestfish-commands.pod:79
26195 msgid "See L</WILDCARDS AND GLOBBING>."
26196 msgstr ""
26197
26198 #. type: =head2
26199 #: ../fish/guestfish-commands.pod:81
26200 msgid "hexedit"
26201 msgstr ""
26202
26203 #. type: verbatim
26204 #: ../fish/guestfish-commands.pod:83
26205 #, no-wrap
26206 msgid ""
26207 " hexedit <filename|device>\n"
26208 " hexedit <filename|device> <max>\n"
26209 " hexedit <filename|device> <start> <max>\n"
26210 "\n"
26211 msgstr ""
26212
26213 #. type: textblock
26214 #: ../fish/guestfish-commands.pod:87
26215 msgid ""
26216 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
26217 "device."
26218 msgstr ""
26219
26220 #. type: textblock
26221 #: ../fish/guestfish-commands.pod:90
26222 msgid ""
26223 "This command works by downloading potentially the whole file or device, "
26224 "editing it locally, then uploading it.  If the file or device is large, you "
26225 "have to specify which part you wish to edit by using C<max> and/or C<start> "
26226 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
26227 "usual modifiers allowed such as C<1M> (1 megabyte)."
26228 msgstr ""
26229
26230 #. type: textblock
26231 #: ../fish/guestfish-commands.pod:97
26232 msgid "For example to edit the first few sectors of a disk you might do:"
26233 msgstr ""
26234
26235 #. type: verbatim
26236 #: ../fish/guestfish-commands.pod:100
26237 #, no-wrap
26238 msgid ""
26239 " hexedit /dev/sda 1M\n"
26240 "\n"
26241 msgstr ""
26242
26243 #. type: textblock
26244 #: ../fish/guestfish-commands.pod:102
26245 msgid ""
26246 "which would allow you to edit anywhere within the first megabyte of the "
26247 "disk."
26248 msgstr ""
26249
26250 #. type: textblock
26251 #: ../fish/guestfish-commands.pod:105
26252 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
26253 msgstr ""
26254
26255 #. type: verbatim
26256 #: ../fish/guestfish-commands.pod:107
26257 #, no-wrap
26258 msgid ""
26259 " hexedit /dev/sda1 0x400 0x400\n"
26260 "\n"
26261 msgstr ""
26262
26263 #. type: textblock
26264 #: ../fish/guestfish-commands.pod:109
26265 msgid "(assuming the superblock is in the standard location)."
26266 msgstr ""
26267
26268 #. type: textblock
26269 #: ../fish/guestfish-commands.pod:111
26270 msgid ""
26271 "This command requires the external L<hexedit(1)> program.  You can specify "
26272 "another program to use by setting the C<HEXEDITOR> environment variable."
26273 msgstr ""
26274
26275 #. type: textblock
26276 #: ../fish/guestfish-commands.pod:115
26277 msgid "See also L</hexdump>."
26278 msgstr ""
26279
26280 #. type: =head2
26281 #: ../fish/guestfish-commands.pod:117
26282 msgid "lcd"
26283 msgstr ""
26284
26285 #. type: verbatim
26286 #: ../fish/guestfish-commands.pod:119
26287 #, no-wrap
26288 msgid ""
26289 " lcd directory\n"
26290 "\n"
26291 msgstr ""
26292
26293 #. type: textblock
26294 #: ../fish/guestfish-commands.pod:121
26295 msgid "Change the local directory, ie. the current directory of guestfish itself."
26296 msgstr ""
26297
26298 #. type: textblock
26299 #: ../fish/guestfish-commands.pod:124
26300 msgid "Note that C<!cd> won't do what you might expect."
26301 msgstr ""
26302
26303 #. type: =head2
26304 #: ../fish/guestfish-commands.pod:126
26305 msgid "man"
26306 msgstr ""
26307
26308 #. type: =head2
26309 #: ../fish/guestfish-commands.pod:128
26310 msgid "manual"
26311 msgstr ""
26312
26313 #. type: verbatim
26314 #: ../fish/guestfish-commands.pod:130
26315 #, no-wrap
26316 msgid ""
26317 "  man\n"
26318 "\n"
26319 msgstr ""
26320
26321 #. type: textblock
26322 #: ../fish/guestfish-commands.pod:132
26323 msgid "Opens the manual page for guestfish."
26324 msgstr ""
26325
26326 #. type: =head2
26327 #: ../fish/guestfish-commands.pod:134
26328 msgid "more"
26329 msgstr ""
26330
26331 #. type: =head2
26332 #: ../fish/guestfish-commands.pod:136
26333 msgid "less"
26334 msgstr ""
26335
26336 #. type: verbatim
26337 #: ../fish/guestfish-commands.pod:138
26338 #, no-wrap
26339 msgid ""
26340 " more filename\n"
26341 "\n"
26342 msgstr ""
26343
26344 #. type: verbatim
26345 #: ../fish/guestfish-commands.pod:140
26346 #, no-wrap
26347 msgid ""
26348 " less filename\n"
26349 "\n"
26350 msgstr ""
26351
26352 #. type: textblock
26353 #: ../fish/guestfish-commands.pod:142
26354 msgid "This is used to view a file."
26355 msgstr ""
26356
26357 #. type: textblock
26358 #: ../fish/guestfish-commands.pod:144
26359 msgid ""
26360 "The default viewer is C<$PAGER>.  However if you use the alternate command "
26361 "C<less> you will get the C<less> command specifically."
26362 msgstr ""
26363
26364 #. type: =head2
26365 #: ../fish/guestfish-commands.pod:147
26366 msgid "reopen"
26367 msgstr ""
26368
26369 #. type: verbatim
26370 #: ../fish/guestfish-commands.pod:149
26371 #, no-wrap
26372 msgid ""
26373 "  reopen\n"
26374 "\n"
26375 msgstr ""
26376
26377 #. type: textblock
26378 #: ../fish/guestfish-commands.pod:151
26379 msgid ""
26380 "Close and reopen the libguestfs handle.  It is not necessary to use this "
26381 "normally, because the handle is closed properly when guestfish exits.  "
26382 "However this is occasionally useful for testing."
26383 msgstr ""
26384
26385 #. type: =head2
26386 #: ../fish/guestfish-commands.pod:155
26387 msgid "sparse"
26388 msgstr ""
26389
26390 #. type: verbatim
26391 #: ../fish/guestfish-commands.pod:157
26392 #, no-wrap
26393 msgid ""
26394 " sparse filename size\n"
26395 "\n"
26396 msgstr ""
26397
26398 #. type: textblock
26399 #: ../fish/guestfish-commands.pod:159
26400 msgid ""
26401 "This creates an empty sparse file of the given size, and then adds so it can "
26402 "be further examined."
26403 msgstr ""
26404
26405 #. type: textblock
26406 #: ../fish/guestfish-commands.pod:162
26407 msgid ""
26408 "In all respects it works the same as the L</alloc> command, except that the "
26409 "image file is allocated sparsely, which means that disk blocks are not "
26410 "assigned to the file until they are needed.  Sparse disk files only use "
26411 "space when written to, but they are slower and there is a danger you could "
26412 "run out of real disk space during a write operation."
26413 msgstr ""
26414
26415 #. type: =head2
26416 #: ../fish/guestfish-commands.pod:172
26417 msgid "supported"
26418 msgstr ""
26419
26420 #. type: verbatim
26421 #: ../fish/guestfish-commands.pod:174
26422 #, no-wrap
26423 msgid ""
26424 " supported\n"
26425 "\n"
26426 msgstr ""
26427
26428 #. type: textblock
26429 #: ../fish/guestfish-commands.pod:176
26430 msgid ""
26431 "This command returns a list of the optional groups known to the daemon, and "
26432 "indicates which ones are supported by this build of the libguestfs "
26433 "appliance."
26434 msgstr ""
26435
26436 #. type: textblock
26437 #: ../fish/guestfish-commands.pod:180
26438 msgid "See also L<guestfs(3)/AVAILABILITY>."
26439 msgstr ""
26440
26441 #. type: =head2
26442 #: ../fish/guestfish-commands.pod:182
26443 msgid "time"
26444 msgstr ""
26445
26446 #. type: verbatim
26447 #: ../fish/guestfish-commands.pod:184
26448 #, no-wrap
26449 msgid ""
26450 " time command args...\n"
26451 "\n"
26452 msgstr ""
26453
26454 #. type: textblock
26455 #: ../fish/guestfish-commands.pod:186
26456 msgid ""
26457 "Run the command as usual, but print the elapsed time afterwards.  This can "
26458 "be useful for benchmarking operations."
26459 msgstr ""
26460
26461 #. type: textblock
26462 #: ../test-tool/libguestfs-test-tool.pod:5
26463 msgid "libguestfs-test-tool - End user tests for libguestfs"
26464 msgstr ""
26465
26466 #. type: verbatim
26467 #: ../test-tool/libguestfs-test-tool.pod:9
26468 #, no-wrap
26469 msgid ""
26470 " libguestfs-test-tool [--options]\n"
26471 "\n"
26472 msgstr ""
26473
26474 #. type: textblock
26475 #: ../test-tool/libguestfs-test-tool.pod:13
26476 msgid ""
26477 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
26478 "and developers, to allow them to check basic libguestfs functionality is "
26479 "working.  This is needed because libguestfs occasionally breaks for reasons "
26480 "beyond our control: usually because of changes in the underlying qemu or "
26481 "kernel packages, or the host environment."
26482 msgstr ""
26483
26484 #. type: textblock
26485 #: ../test-tool/libguestfs-test-tool.pod:20
26486 msgid "If you suspect a problem in libguestfs, then just run:"
26487 msgstr ""
26488
26489 #. type: verbatim
26490 #: ../test-tool/libguestfs-test-tool.pod:22
26491 #, no-wrap
26492 msgid ""
26493 " libguestfs-test-tool\n"
26494 "\n"
26495 msgstr ""
26496
26497 #. type: textblock
26498 #: ../test-tool/libguestfs-test-tool.pod:24
26499 msgid "It will print lots of diagnostic messages."
26500 msgstr ""
26501
26502 #. type: textblock
26503 #: ../test-tool/libguestfs-test-tool.pod:26
26504 msgid "If it runs to completion successfully, you will see this near the end:"
26505 msgstr ""
26506
26507 #. type: verbatim
26508 #: ../test-tool/libguestfs-test-tool.pod:28
26509 #, no-wrap
26510 msgid ""
26511 " ===== TEST FINISHED OK =====\n"
26512 "\n"
26513 msgstr ""
26514
26515 #. type: textblock
26516 #: ../test-tool/libguestfs-test-tool.pod:30
26517 msgid "and the test tool will exit with code 0."
26518 msgstr ""
26519
26520 #. type: textblock
26521 #: ../test-tool/libguestfs-test-tool.pod:32
26522 msgid ""
26523 "If it fails (and/or exits with non-zero error code), please paste the "
26524 "B<complete, unedited> output of the test tool into a bug report.  More "
26525 "information about reporting bugs can be found on the "
26526 "L<http://libguestfs.org/> website."
26527 msgstr ""
26528
26529 #. type: =item
26530 #: ../test-tool/libguestfs-test-tool.pod:41
26531 msgid "I<--help>"
26532 msgstr ""
26533
26534 #. type: textblock
26535 #: ../test-tool/libguestfs-test-tool.pod:43
26536 msgid "Display short usage information and exit."
26537 msgstr ""
26538
26539 #. type: =item
26540 #: ../test-tool/libguestfs-test-tool.pod:45
26541 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
26542 msgstr ""
26543
26544 #. type: textblock
26545 #: ../test-tool/libguestfs-test-tool.pod:47
26546 msgid ""
26547 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
26548 "normally look in the C<$libexec> directory that was configured when the tool "
26549 "was built."
26550 msgstr ""
26551
26552 #. type: =item
26553 #: ../test-tool/libguestfs-test-tool.pod:51
26554 msgid "I<--qemu qemu_binary>"
26555 msgstr ""
26556
26557 #. type: textblock
26558 #: ../test-tool/libguestfs-test-tool.pod:53
26559 msgid ""
26560 "If you have downloaded another qemu binary, point this option at the full "
26561 "path of the binary to try it."
26562 msgstr ""
26563
26564 #. type: =item
26565 #: ../test-tool/libguestfs-test-tool.pod:56
26566 msgid "I<--qemudir qemu_source_dir>"
26567 msgstr ""
26568
26569 #. type: textblock
26570 #: ../test-tool/libguestfs-test-tool.pod:58
26571 msgid ""
26572 "If you have compiled qemu from source, point this option at the source "
26573 "directory to try it."
26574 msgstr ""
26575
26576 #. type: =item
26577 #: ../test-tool/libguestfs-test-tool.pod:61
26578 msgid "I<--timeout N>"
26579 msgstr ""
26580
26581 #. type: textblock
26582 #: ../test-tool/libguestfs-test-tool.pod:63
26583 msgid ""
26584 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
26585 "does not usually need to be adjusted unless your machine is very slow."
26586 msgstr ""
26587
26588 #. type: =head1
26589 #: ../test-tool/libguestfs-test-tool.pod:69
26590 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
26591 msgstr ""
26592
26593 #. type: textblock
26594 #: ../test-tool/libguestfs-test-tool.pod:71
26595 msgid ""
26596 "If you have compiled another version of qemu from source and would like to "
26597 "try that, then you can use the I<--qemudir> option to point to the qemu "
26598 "source directory."
26599 msgstr ""
26600
26601 #. type: textblock
26602 #: ../test-tool/libguestfs-test-tool.pod:75
26603 msgid ""
26604 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
26605 "option to point to the binary."
26606 msgstr ""
26607
26608 #. type: textblock
26609 #: ../test-tool/libguestfs-test-tool.pod:78
26610 msgid ""
26611 "When using an alternate qemu with libguestfs, usually you would need to "
26612 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
26613 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
26614 "when you use either of the I<--qemudir> or I<--qemu> options."
26615 msgstr ""
26616
26617 #. type: textblock
26618 #: ../test-tool/libguestfs-test-tool.pod:85
26619 msgid ""
26620 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
26621 "I<1> if there was an error."
26622 msgstr ""
26623
26624 #. type: =item
26625 #: ../test-tool/libguestfs-test-tool.pod:92
26626 msgid "/usr/libexec/libguestfs-test-tool-helper"
26627 msgstr ""
26628
26629 #. type: textblock
26630 #: ../test-tool/libguestfs-test-tool.pod:94
26631 msgid ""
26632 "This helper program is run inside the appliance and provides additional "
26633 "tests."
26634 msgstr ""
26635
26636 #. type: =item
26637 #: ../test-tool/libguestfs-test-tool.pod:97
26638 msgid "/usr/bin/mkisofs"
26639 msgstr ""
26640
26641 #. type: textblock
26642 #: ../test-tool/libguestfs-test-tool.pod:99
26643 msgid ""
26644 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
26645 "which is used as part of the tests."
26646 msgstr ""
26647
26648 #. type: textblock
26649 #: ../test-tool/libguestfs-test-tool.pod:106
26650 msgid ""
26651 "For the full list of environment variables which may affect libguestfs, "
26652 "please see the L<guestfs(3)> manual page."
26653 msgstr ""
26654
26655 #. type: textblock
26656 #: ../test-tool/libguestfs-test-tool.pod:111
26657 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
26658 msgstr ""
26659
26660 #. type: textblock
26661 #: ../test-tool/libguestfs-test-tool.pod:121
26662 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
26663 msgstr ""
26664
26665 #. type: textblock
26666 #: ../fuse/guestmount.pod:5
26667 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
26668 msgstr ""
26669
26670 #. type: verbatim
26671 #: ../fuse/guestmount.pod:9
26672 #, no-wrap
26673 msgid ""
26674 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
26675 "\n"
26676 msgstr ""
26677
26678 #. type: verbatim
26679 #: ../fuse/guestmount.pod:11
26680 #, no-wrap
26681 msgid ""
26682 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
26683 "\n"
26684 msgstr ""
26685
26686 #. type: verbatim
26687 #: ../fuse/guestmount.pod:13
26688 #, no-wrap
26689 msgid ""
26690 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
26691 "\n"
26692 msgstr ""
26693
26694 #. type: textblock
26695 #: ../fuse/guestmount.pod:17
26696 msgid ""
26697 "You must I<not> use C<guestmount> in read-write mode on live virtual "
26698 "machines.  If you do this, you risk disk corruption in the VM."
26699 msgstr ""
26700
26701 #. type: textblock
26702 #: ../fuse/guestmount.pod:22
26703 msgid ""
26704 "The guestmount program can be used to mount virtual machine filesystems and "
26705 "other disk images on the host.  It uses libguestfs for access to the guest "
26706 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
26707 "a mountable device."
26708 msgstr ""
26709
26710 #. type: textblock
26711 #: ../fuse/guestmount.pod:27
26712 msgid ""
26713 "Along with other options, you have to give at least one device (I<-a> "
26714 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
26715 "option) or use the I<-i> inspection option.  How this works is better "
26716 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
26717 "below."
26718 msgstr ""
26719
26720 #. type: textblock
26721 #: ../fuse/guestmount.pod:33
26722 msgid ""
26723 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
26724 "by you, and the filesystem will not be visible to any other users unless you "
26725 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
26726 "the filesystem, use the C<fusermount -u> command."
26727 msgstr ""
26728
26729 #. type: textblock
26730 #: ../fuse/guestmount.pod:41
26731 msgid ""
26732 "For a typical Windows guest which has its main filesystem on the first "
26733 "partition:"
26734 msgstr ""
26735
26736 #. type: verbatim
26737 #: ../fuse/guestmount.pod:44
26738 #, no-wrap
26739 msgid ""
26740 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
26741 "\n"
26742 msgstr ""
26743
26744 #. type: textblock
26745 #: ../fuse/guestmount.pod:46
26746 msgid ""
26747 "For a typical Linux guest which has a /boot filesystem on the first "
26748 "partition, and the root filesystem on a logical volume:"
26749 msgstr ""
26750
26751 #. type: verbatim
26752 #: ../fuse/guestmount.pod:49
26753 #, no-wrap
26754 msgid ""
26755 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
26756 "\n"
26757 msgstr ""
26758
26759 #. type: textblock
26760 #: ../fuse/guestmount.pod:51
26761 msgid "To get libguestfs to detect guest mountpoints for you:"
26762 msgstr ""
26763
26764 #. type: verbatim
26765 #: ../fuse/guestmount.pod:53
26766 #, no-wrap
26767 msgid ""
26768 " guestmount -a guest.img -i --ro /mnt\n"
26769 "\n"
26770 msgstr ""
26771
26772 #. type: textblock
26773 #: ../fuse/guestmount.pod:55
26774 msgid "For a libvirt guest called \"Guest\" you could do:"
26775 msgstr ""
26776
26777 #. type: verbatim
26778 #: ../fuse/guestmount.pod:57
26779 #, no-wrap
26780 msgid ""
26781 " guestmount -d Guest -i --ro /mnt\n"
26782 "\n"
26783 msgstr ""
26784
26785 #. type: textblock
26786 #: ../fuse/guestmount.pod:59
26787 msgid ""
26788 "If you don't know what filesystems are contained in a guest or disk image, "
26789 "use L<virt-filesystems(1)> first:"
26790 msgstr ""
26791
26792 #. type: verbatim
26793 #: ../fuse/guestmount.pod:62
26794 #, no-wrap
26795 msgid ""
26796 " virt-filesystems MyGuest\n"
26797 "\n"
26798 msgstr ""
26799
26800 #. type: textblock
26801 #: ../fuse/guestmount.pod:64
26802 msgid ""
26803 "If you want to trace the libguestfs calls but without excessive debugging "
26804 "information, we recommend:"
26805 msgstr ""
26806
26807 #. type: verbatim
26808 #: ../fuse/guestmount.pod:67
26809 #, no-wrap
26810 msgid ""
26811 " guestmount [...] --trace /mnt\n"
26812 "\n"
26813 msgstr ""
26814
26815 #. type: textblock
26816 #: ../fuse/guestmount.pod:69
26817 msgid "If you want to debug the program, we recommend:"
26818 msgstr ""
26819
26820 #. type: verbatim
26821 #: ../fuse/guestmount.pod:71
26822 #, no-wrap
26823 msgid ""
26824 " guestmount [...] --trace --verbose /mnt\n"
26825 "\n"
26826 msgstr ""
26827
26828 #. type: =item
26829 #: ../fuse/guestmount.pod:77
26830 msgid "B<-a image> | B<--add image>"
26831 msgstr ""
26832
26833 #. type: textblock
26834 #: ../fuse/guestmount.pod:79
26835 msgid "Add a block device or virtual machine image."
26836 msgstr ""
26837
26838 #. type: =item
26839 #: ../fuse/guestmount.pod:84
26840 msgid "B<-c URI> | B<--connect URI>"
26841 msgstr ""
26842
26843 #. type: =item
26844 #: ../fuse/guestmount.pod:90
26845 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
26846 msgstr ""
26847
26848 #. type: =item
26849 #: ../fuse/guestmount.pod:96
26850 msgid "B<--dir-cache-timeout N>"
26851 msgstr ""
26852
26853 #. type: textblock
26854 #: ../fuse/guestmount.pod:98
26855 msgid ""
26856 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
26857 "seconds.  The readdir cache [actually, there are several semi-independent "
26858 "caches] is populated after a readdir(2) call with the stat and extended "
26859 "attributes of the files in the directory, in anticipation that they will be "
26860 "requested soon after."
26861 msgstr ""
26862
26863 #. type: textblock
26864 #: ../fuse/guestmount.pod:104
26865 msgid ""
26866 "There is also a different attribute cache implemented by FUSE (see the FUSE "
26867 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
26868 "requests, only cache existing ones."
26869 msgstr ""
26870
26871 #. type: =item
26872 #: ../fuse/guestmount.pod:115
26873 msgid "B<--format=raw|qcow2|..> | B<--format>"
26874 msgstr ""
26875
26876 #. type: textblock
26877 #: ../fuse/guestmount.pod:122
26878 msgid ""
26879 "If you have untrusted raw-format guest disk images, you should use this "
26880 "option to specify the disk format.  This avoids a possible security problem "
26881 "with malicious guests (CVE-2010-3851).  See also "
26882 "L<guestfs(3)/guestfs_add_drive_opts>."
26883 msgstr ""
26884
26885 #. type: =item
26886 #: ../fuse/guestmount.pod:127
26887 msgid "B<--fuse-help>"
26888 msgstr ""
26889
26890 #. type: textblock
26891 #: ../fuse/guestmount.pod:129
26892 msgid "Display help on special FUSE options (see I<-o> below)."
26893 msgstr ""
26894
26895 #. type: textblock
26896 #: ../fuse/guestmount.pod:133
26897 msgid "Display brief help and exit."
26898 msgstr ""
26899
26900 #. type: =item
26901 #: ../fuse/guestmount.pod:135
26902 msgid "B<-i> | B<--inspector>"
26903 msgstr ""
26904
26905 #. type: =item
26906 #: ../fuse/guestmount.pod:146
26907 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
26908 msgstr ""
26909
26910 #. type: textblock
26911 #: ../fuse/guestmount.pod:148
26912 msgid ""
26913 "Mount the named partition or logical volume on the given mountpoint B<in the "
26914 "guest> (this has nothing to do with mountpoints in the host)."
26915 msgstr ""
26916
26917 #. type: textblock
26918 #: ../fuse/guestmount.pod:151
26919 msgid ""
26920 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
26921 "something on C</>."
26922 msgstr ""
26923
26924 #. type: =item
26925 #: ../fuse/guestmount.pod:154
26926 msgid "B<-n> | B<--no-sync>"
26927 msgstr ""
26928
26929 #. type: textblock
26930 #: ../fuse/guestmount.pod:156
26931 msgid ""
26932 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
26933 "unmounted.  If you specify this option, then we don't attempt to sync the "
26934 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
26935 msgstr ""
26936
26937 #. type: =item
26938 #: ../fuse/guestmount.pod:161
26939 msgid "B<-o option> | B<--option option>"
26940 msgstr ""
26941
26942 #. type: textblock
26943 #: ../fuse/guestmount.pod:163
26944 msgid "Pass extra options to FUSE."
26945 msgstr ""
26946
26947 #. type: textblock
26948 #: ../fuse/guestmount.pod:165
26949 msgid ""
26950 "To get a list of all the extra options supported by FUSE, use the command "
26951 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
26952 "of them are a good idea."
26953 msgstr ""
26954
26955 #. type: verbatim
26956 #: ../fuse/guestmount.pod:169
26957 #, no-wrap
26958 msgid ""
26959 " guestmount --fuse-help\n"
26960 "\n"
26961 msgstr ""
26962
26963 #. type: textblock
26964 #: ../fuse/guestmount.pod:171
26965 msgid "Some potentially useful FUSE options:"
26966 msgstr ""
26967
26968 #. type: =item
26969 #: ../fuse/guestmount.pod:175
26970 msgid "B<-o allow_other>"
26971 msgstr ""
26972
26973 #. type: textblock
26974 #: ../fuse/guestmount.pod:177
26975 msgid "Allow other users to see the filesystem."
26976 msgstr ""
26977
26978 #. type: =item
26979 #: ../fuse/guestmount.pod:179
26980 msgid "B<-o attr_timeout=N>"
26981 msgstr ""
26982
26983 #. type: textblock
26984 #: ../fuse/guestmount.pod:181
26985 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
26986 msgstr ""
26987
26988 #. type: =item
26989 #: ../fuse/guestmount.pod:183
26990 msgid "B<-o kernel_cache>"
26991 msgstr ""
26992
26993 #. type: textblock
26994 #: ../fuse/guestmount.pod:185
26995 msgid ""
26996 "Allow the kernel to cache files (reduces the number of reads that have to go "
26997 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
26998 "afford the extra memory usage."
26999 msgstr ""
27000
27001 #. type: =item
27002 #: ../fuse/guestmount.pod:189
27003 msgid "B<-o uid=N> B<-o gid=N>"
27004 msgstr ""
27005
27006 #. type: textblock
27007 #: ../fuse/guestmount.pod:191
27008 msgid ""
27009 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
27010 "the chosen values."
27011 msgstr ""
27012
27013 #. type: =item
27014 #: ../fuse/guestmount.pod:196
27015 msgid "B<-r> | B<--ro>"
27016 msgstr ""
27017
27018 #. type: textblock
27019 #: ../fuse/guestmount.pod:198
27020 msgid ""
27021 "Add devices and mount everything read-only.  Also disallow writes and make "
27022 "the disk appear read-only to FUSE."
27023 msgstr ""
27024
27025 #. type: textblock
27026 #: ../fuse/guestmount.pod:201
27027 msgid ""
27028 "This is highly recommended if you are not going to edit the guest disk.  If "
27029 "the guest is running and this option is I<not> supplied, then there is a "
27030 "strong risk of disk corruption in the guest.  We try to prevent this from "
27031 "happening, but it is not always possible."
27032 msgstr ""
27033
27034 #. type: textblock
27035 #: ../fuse/guestmount.pod:206
27036 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
27037 msgstr ""
27038
27039 #. type: textblock
27040 #: ../fuse/guestmount.pod:210
27041 msgid "Enable SELinux support for the guest."
27042 msgstr ""
27043
27044 #. type: =item
27045 #: ../fuse/guestmount.pod:212
27046 msgid "B<-v> | B<--verbose>"
27047 msgstr ""
27048
27049 #. type: textblock
27050 #: ../fuse/guestmount.pod:214
27051 msgid "Enable verbose messages from underlying libguestfs."
27052 msgstr ""
27053
27054 #. type: =item
27055 #: ../fuse/guestmount.pod:216
27056 msgid "B<-V> | B<--version>"
27057 msgstr ""
27058
27059 #. type: textblock
27060 #: ../fuse/guestmount.pod:218
27061 msgid "Display the program version and exit."
27062 msgstr ""
27063
27064 #. type: =item
27065 #: ../fuse/guestmount.pod:220
27066 msgid "B<-w> | B<--rw>"
27067 msgstr ""
27068
27069 #. type: textblock
27070 #: ../fuse/guestmount.pod:222
27071 msgid ""
27072 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
27073 "FOR READ AND WRITE>."
27074 msgstr ""
27075
27076 #. type: =item
27077 #: ../fuse/guestmount.pod:225
27078 msgid "B<-x> | B<--trace>"
27079 msgstr ""
27080
27081 #. type: textblock
27082 #: ../fuse/guestmount.pod:227
27083 msgid "Trace libguestfs calls and entry into each FUSE function."
27084 msgstr ""
27085
27086 #. type: textblock
27087 #: ../fuse/guestmount.pod:229
27088 msgid "This also stops the daemon from forking into the background."
27089 msgstr ""
27090
27091 #. type: textblock
27092 #: ../fuse/guestmount.pod:235
27093 msgid ""
27094 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27095 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
27096 "L<http://fuse.sf.net/>."
27097 msgstr ""
27098
27099 #. type: textblock
27100 #: ../tools/virt-edit.pl:34
27101 msgid "virt-edit - Edit a file in a virtual machine"
27102 msgstr ""
27103
27104 #. type: verbatim
27105 #: ../tools/virt-edit.pl:38
27106 #, no-wrap
27107 msgid ""
27108 " virt-edit [--options] domname file\n"
27109 "\n"
27110 msgstr ""
27111
27112 #. type: verbatim
27113 #: ../tools/virt-edit.pl:40
27114 #, no-wrap
27115 msgid ""
27116 " virt-edit [--options] disk.img [disk.img ...] file\n"
27117 "\n"
27118 msgstr ""
27119
27120 #. type: verbatim
27121 #: ../tools/virt-edit.pl:42
27122 #, no-wrap
27123 msgid ""
27124 " virt-edit [domname|disk.img] file -e 'expr'\n"
27125 "\n"
27126 msgstr ""
27127
27128 #. type: textblock
27129 #: ../tools/virt-edit.pl:46
27130 msgid ""
27131 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
27132 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
27133 "doing this, but doesn't catch all cases."
27134 msgstr ""
27135
27136 #. type: textblock
27137 #: ../tools/virt-edit.pl:52
27138 msgid ""
27139 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
27140 "the named virtual machine (or disk image)."
27141 msgstr ""
27142
27143 #. type: textblock
27144 #: ../tools/virt-edit.pl:55
27145 msgid ""
27146 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
27147 "you should look at the L<guestfish(1)> tool."
27148 msgstr ""
27149
27150 #. type: textblock
27151 #: ../tools/virt-edit.pl:60
27152 msgid "Edit the named files interactively:"
27153 msgstr ""
27154
27155 #. type: verbatim
27156 #: ../tools/virt-edit.pl:62
27157 #, no-wrap
27158 msgid ""
27159 " virt-edit mydomain /boot/grub/grub.conf\n"
27160 "\n"
27161 msgstr ""
27162
27163 #. type: verbatim
27164 #: ../tools/virt-edit.pl:64
27165 #, no-wrap
27166 msgid ""
27167 " virt-edit mydomain /etc/passwd\n"
27168 "\n"
27169 msgstr ""
27170
27171 #. type: textblock
27172 #: ../tools/virt-edit.pl:66
27173 msgid ""
27174 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
27175 "below).  To change the init default level to 5:"
27176 msgstr ""
27177
27178 #. type: verbatim
27179 #: ../tools/virt-edit.pl:70
27180 #, no-wrap
27181 msgid ""
27182 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
27183 "\n"
27184 msgstr ""
27185
27186 #. type: textblock
27187 #: ../tools/virt-edit.pl:82 ../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
27188 msgid "Display brief help."
27189 msgstr ""
27190
27191 #. type: textblock
27192 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114 ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71 ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:72
27193 msgid "Display version number and exit."
27194 msgstr ""
27195
27196 #. type: =item
27197 #: ../tools/virt-edit.pl:96
27198 msgid "B<--backup extension> | B<-b extension>"
27199 msgstr ""
27200
27201 #. type: textblock
27202 #: ../tools/virt-edit.pl:98
27203 msgid ""
27204 "Create a backup of the original file I<in the guest disk image>.  The backup "
27205 "has the original filename with C<extension> added."
27206 msgstr ""
27207
27208 #. type: textblock
27209 #: ../tools/virt-edit.pl:101
27210 msgid ""
27211 "Usually the first character of C<extension> would be a dot C<.> so you would "
27212 "write:"
27213 msgstr ""
27214
27215 #. type: verbatim
27216 #: ../tools/virt-edit.pl:104
27217 #, no-wrap
27218 msgid ""
27219 " virt-edit -b .orig [etc]\n"
27220 "\n"
27221 msgstr ""
27222
27223 #. type: textblock
27224 #: ../tools/virt-edit.pl:106
27225 msgid "By default, no backup file is made."
27226 msgstr ""
27227
27228 #. type: =item
27229 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
27230 msgid "B<--connect URI> | B<-c URI>"
27231 msgstr ""
27232
27233 #. type: textblock
27234 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
27235 msgid ""
27236 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
27237 "to the default libvirt hypervisor."
27238 msgstr ""
27239
27240 #. type: textblock
27241 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
27242 msgid ""
27243 "If you specify guest block devices directly, then libvirt is not used at "
27244 "all."
27245 msgstr ""
27246
27247 #. type: =item
27248 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140 ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
27249 msgid "B<--format> raw"
27250 msgstr ""
27251
27252 #. type: textblock
27253 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
27254 msgid ""
27255 "Specify the format of disk images given on the command line.  If this is "
27256 "omitted then the format is autodetected from the content of the disk image."
27257 msgstr ""
27258
27259 #. type: textblock
27260 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
27261 msgid ""
27262 "If disk images are requested from libvirt, then this program asks libvirt "
27263 "for this information.  In this case, the value of the format parameter is "
27264 "ignored."
27265 msgstr ""
27266
27267 #. type: textblock
27268 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150 ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540 ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
27269 msgid ""
27270 "If working with untrusted raw-format guest disk images, you should ensure "
27271 "the format is always specified."
27272 msgstr ""
27273
27274 #. type: =item
27275 #: ../tools/virt-edit.pl:141
27276 msgid "B<--expr EXPR> | B<-e EXPR>"
27277 msgstr ""
27278
27279 #. type: textblock
27280 #: ../tools/virt-edit.pl:143
27281 msgid ""
27282 "Instead of launching the external editor, non-interactively apply the Perl "
27283 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
27284 "EDITING> below."
27285 msgstr ""
27286
27287 #. type: textblock
27288 #: ../tools/virt-edit.pl:147
27289 msgid ""
27290 "Be careful to properly quote the expression to prevent it from being altered "
27291 "by the shell."
27292 msgstr ""
27293
27294 #. type: =head1
27295 #: ../tools/virt-edit.pl:268
27296 msgid "NON-INTERACTIVE EDITING"
27297 msgstr ""
27298
27299 #. type: textblock
27300 #: ../tools/virt-edit.pl:270
27301 msgid ""
27302 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
27303 "administrator can interactively edit the file."
27304 msgstr ""
27305
27306 #. type: textblock
27307 #: ../tools/virt-edit.pl:273
27308 msgid ""
27309 "There are two ways also to use C<virt-edit> from scripts in order to make "
27310 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
27311 "like this, it's less error-prone to write scripts directly using the "
27312 "libguestfs API and Augeas for configuration file editing.)"
27313 msgstr ""
27314
27315 #. type: textblock
27316 #: ../tools/virt-edit.pl:279
27317 msgid ""
27318 "The first method is to temporarily set C<$EDITOR> to any script or program "
27319 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
27320 "update C<tmpfile> in place however it likes."
27321 msgstr ""
27322
27323 #. type: textblock
27324 #: ../tools/virt-edit.pl:283
27325 msgid ""
27326 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
27327 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
27328 "instances of C<foo> with C<bar> in a file:"
27329 msgstr ""
27330
27331 #. type: verbatim
27332 #: ../tools/virt-edit.pl:287
27333 #, no-wrap
27334 msgid ""
27335 " virt-edit domname filename -e 's/foo/bar/'\n"
27336 "\n"
27337 msgstr ""
27338
27339 #. type: textblock
27340 #: ../tools/virt-edit.pl:289
27341 msgid ""
27342 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
27343 "For example to delete root's password you could do:"
27344 msgstr ""
27345
27346 #. type: verbatim
27347 #: ../tools/virt-edit.pl:292
27348 #, no-wrap
27349 msgid ""
27350 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
27351 "\n"
27352 msgstr ""
27353
27354 #. type: textblock
27355 #: ../tools/virt-edit.pl:294
27356 msgid ""
27357 "What really happens is that the snippet is evaluated as a Perl expression "
27358 "for each line of the file.  The line, including the final C<\\n>, is passed "
27359 "in C<$_> and the expression should update C<$_> or leave it unchanged."
27360 msgstr ""
27361
27362 #. type: textblock
27363 #: ../tools/virt-edit.pl:299
27364 msgid ""
27365 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
27366 "C<apache> user account from the password file you can do:"
27367 msgstr ""
27368
27369 #. type: verbatim
27370 #: ../tools/virt-edit.pl:302
27371 #, no-wrap
27372 msgid ""
27373 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
27374 "\n"
27375 msgstr ""
27376
27377 #. type: textblock
27378 #: ../tools/virt-edit.pl:304
27379 msgid ""
27380 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
27381 "the end of the file is rather difficult this way since there is no concept "
27382 "of \"last line of the file\" - your expression just doesn't get called "
27383 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
27384 "want to do this."
27385 msgstr ""
27386
27387 #. type: textblock
27388 #: ../tools/virt-edit.pl:310
27389 msgid ""
27390 "The variable C<$lineno> contains the current line number.  As is "
27391 "traditional, the first line in the file is number C<1>."
27392 msgstr ""
27393
27394 #. type: textblock
27395 #: ../tools/virt-edit.pl:313
27396 msgid ""
27397 "The return value from the expression is ignored, but the expression may call "
27398 "C<die> in order to abort the whole program, leaving the original file "
27399 "untouched."
27400 msgstr ""
27401
27402 #. type: textblock
27403 #: ../tools/virt-edit.pl:317
27404 msgid ""
27405 "Remember when matching the end of a line that C<$_> may contain the final "
27406 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
27407 "newline then neither of these.  Thus to match or substitute some text at the "
27408 "end of a line, use this regular expression:"
27409 msgstr ""
27410
27411 #. type: verbatim
27412 #: ../tools/virt-edit.pl:322
27413 #, no-wrap
27414 msgid ""
27415 " /some text(\\r?\\n)?$/\n"
27416 "\n"
27417 msgstr ""
27418
27419 #. type: textblock
27420 #: ../tools/virt-edit.pl:324
27421 msgid ""
27422 "Alternately, use the perl C<chomp> function, being careful not to chomp "
27423 "C<$_> itself (since that would remove all newlines from the file):"
27424 msgstr ""
27425
27426 #. type: verbatim
27427 #: ../tools/virt-edit.pl:328
27428 #, no-wrap
27429 msgid ""
27430 " my $m = $_; chomp $m; $m =~ /some text$/\n"
27431 "\n"
27432 msgstr ""
27433
27434 #. type: =item
27435 #: ../tools/virt-edit.pl:334
27436 msgid "C<EDITOR>"
27437 msgstr ""
27438
27439 #. type: textblock
27440 #: ../tools/virt-edit.pl:336
27441 msgid ""
27442 "If set, this string is used as the editor.  It may contain arguments, "
27443 "eg. C<\"emacs -nw\">"
27444 msgstr ""
27445
27446 #. type: textblock
27447 #: ../tools/virt-edit.pl:339
27448 msgid "If not set, C<vi> is used."
27449 msgstr ""
27450
27451 #. type: =head1
27452 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559 ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:250
27453 msgid "SHELL QUOTING"
27454 msgstr ""
27455
27456 #. type: textblock
27457 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567 ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:252
27458 msgid ""
27459 "Libvirt guest names can contain arbitrary characters, some of which have "
27460 "meaning to the shell such as C<#> and space.  You may need to quote or "
27461 "escape these characters on the command line.  See the shell manual page "
27462 "L<sh(1)> for details."
27463 msgstr ""
27464
27465 #. type: textblock
27466 #: ../tools/virt-edit.pl:352
27467 msgid ""
27468 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
27469 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
27470 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
27471 msgstr ""
27472
27473 #. type: =head1
27474 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:598 ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:269
27475 msgid "AUTHOR"
27476 msgstr ""
27477
27478 #. type: textblock
27479 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:600 ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:271
27480 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
27481 msgstr ""
27482
27483 #. type: textblock
27484 #: ../tools/virt-edit.pl:370 ../tools/virt-list-partitions.pl:275
27485 msgid "Copyright (C) 2009-2010 Red Hat Inc."
27486 msgstr ""
27487
27488 #. type: textblock
27489 #: ../tools/virt-win-reg.pl:37
27490 msgid ""
27491 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
27492 "guest"
27493 msgstr ""
27494
27495 #. type: verbatim
27496 #: ../tools/virt-win-reg.pl:41
27497 #, no-wrap
27498 msgid ""
27499 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
27500 "\n"
27501 msgstr ""
27502
27503 #. type: verbatim
27504 #: ../tools/virt-win-reg.pl:43
27505 #, no-wrap
27506 msgid ""
27507 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
27508 "\n"
27509 msgstr ""
27510
27511 #. type: verbatim
27512 #: ../tools/virt-win-reg.pl:45
27513 #, no-wrap
27514 msgid ""
27515 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
27516 "\n"
27517 msgstr ""
27518
27519 #. type: verbatim
27520 #: ../tools/virt-win-reg.pl:47
27521 #, no-wrap
27522 msgid ""
27523 " virt-win-reg --merge domname [input.reg ...]\n"
27524 "\n"
27525 msgstr ""
27526
27527 #. type: verbatim
27528 #: ../tools/virt-win-reg.pl:49
27529 #, no-wrap
27530 msgid ""
27531 " virt-win-reg [--options] disk.img ... # instead of domname\n"
27532 "\n"
27533 msgstr ""
27534
27535 #. type: textblock
27536 #: ../tools/virt-win-reg.pl:53
27537 msgid ""
27538 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
27539 "virtual machines.  If you do this, you I<will> get irreversible disk "
27540 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
27541 "but doesn't catch all cases."
27542 msgstr ""
27543
27544 #. type: textblock
27545 #: ../tools/virt-win-reg.pl:58
27546 msgid ""
27547 "Modifying the Windows Registry is an inherently risky operation.  The format "
27548 "is deliberately obscure and undocumented, and Registry changes can leave the "
27549 "system unbootable.  Therefore when using the C<--merge> option, make sure "
27550 "you have a reliable backup first."
27551 msgstr ""
27552
27553 #. type: textblock
27554 #: ../tools/virt-win-reg.pl:65
27555 msgid ""
27556 "This program can export and merge Windows Registry entries from a Windows "
27557 "guest."
27558 msgstr ""
27559
27560 #. type: textblock
27561 #: ../tools/virt-win-reg.pl:68
27562 msgid ""
27563 "The first parameter is the libvirt guest name or the raw disk image of a "
27564 "Windows guest."
27565 msgstr ""
27566
27567 #. type: textblock
27568 #: ../tools/virt-win-reg.pl:71
27569 msgid ""
27570 "If C<--merge> is I<not> specified, then the chosen registry key is "
27571 "displayed/exported (recursively).  For example:"
27572 msgstr ""
27573
27574 #. type: verbatim
27575 #: ../tools/virt-win-reg.pl:74
27576 #, no-wrap
27577 msgid ""
27578 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
27579 "\n"
27580 msgstr ""
27581
27582 #. type: textblock
27583 #: ../tools/virt-win-reg.pl:76
27584 msgid "You can also display single values from within registry keys, for example:"
27585 msgstr ""
27586
27587 #. type: verbatim
27588 #: ../tools/virt-win-reg.pl:79
27589 #, no-wrap
27590 msgid ""
27591 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
27592 " $ virt-win-reg Windows7 $cvkey ProductName\n"
27593 " Windows 7 Enterprise\n"
27594 "\n"
27595 msgstr ""
27596
27597 #. type: textblock
27598 #: ../tools/virt-win-reg.pl:83
27599 msgid ""
27600 "With C<--merge>, you can merge a textual regedit file into the Windows "
27601 "Registry:"
27602 msgstr ""
27603
27604 #. type: verbatim
27605 #: ../tools/virt-win-reg.pl:86
27606 #, no-wrap
27607 msgid ""
27608 " $ virt-win-reg --merge Windows7 changes.reg\n"
27609 "\n"
27610 msgstr ""
27611
27612 #. type: =head1
27613 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
27614 msgid "NOTE"
27615 msgstr ""
27616
27617 #. type: textblock
27618 #: ../tools/virt-win-reg.pl:90
27619 msgid ""
27620 "This program is only meant for simple access to the registry.  If you want "
27621 "to do complicated things with the registry, we suggest you download the "
27622 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
27623 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
27624 "L<hivexregedit(1)>."
27625 msgstr ""
27626
27627 #. type: =item
27628 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
27629 msgid "B<--debug>"
27630 msgstr ""
27631
27632 #. type: textblock
27633 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
27634 msgid "Enable debugging messages."
27635 msgstr ""
27636
27637 #. type: =item
27638 #: ../tools/virt-win-reg.pl:157
27639 msgid "B<--merge>"
27640 msgstr ""
27641
27642 #. type: textblock
27643 #: ../tools/virt-win-reg.pl:159
27644 msgid ""
27645 "In merge mode, this merges a textual regedit file into the Windows Registry "
27646 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
27647 "displays or exports Registry entries instead."
27648 msgstr ""
27649
27650 #. type: textblock
27651 #: ../tools/virt-win-reg.pl:163
27652 msgid ""
27653 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
27654 "result in disk corruption.  However exporting (without this flag)  is always "
27655 "safe."
27656 msgstr ""
27657
27658 #. type: =item
27659 #: ../tools/virt-win-reg.pl:171
27660 msgid "B<--encoding> UTF-16LE|ASCII"
27661 msgstr ""
27662
27663 #. type: textblock
27664 #: ../tools/virt-win-reg.pl:173
27665 msgid ""
27666 "When merging (only), you may need to specify the encoding for strings to be "
27667 "used in the hive file.  This is explained in detail in "
27668 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
27669 msgstr ""
27670
27671 #. type: textblock
27672 #: ../tools/virt-win-reg.pl:177
27673 msgid ""
27674 "The default is to use UTF-16LE, which should work with recent versions of "
27675 "Windows."
27676 msgstr ""
27677
27678 #. type: =head1
27679 #: ../tools/virt-win-reg.pl:402
27680 msgid "SUPPORTED SYSTEMS"
27681 msgstr ""
27682
27683 #. type: textblock
27684 #: ../tools/virt-win-reg.pl:404
27685 msgid ""
27686 "The program currently supports Windows NT-derived guests starting with "
27687 "Windows XP through to at least Windows 7."
27688 msgstr ""
27689
27690 #. type: textblock
27691 #: ../tools/virt-win-reg.pl:407
27692 msgid ""
27693 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
27694 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
27695 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
27696 msgstr ""
27697
27698 #. type: textblock
27699 #: ../tools/virt-win-reg.pl:411
27700 msgid ""
27701 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
27702 "C<HKEY_USERS>."
27703 msgstr ""
27704
27705 #. type: textblock
27706 #: ../tools/virt-win-reg.pl:414
27707 msgid ""
27708 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
27709 "time."
27710 msgstr ""
27711
27712 #. type: =head1
27713 #: ../tools/virt-win-reg.pl:417
27714 msgid "ENCODING"
27715 msgstr ""
27716
27717 #. type: textblock
27718 #: ../tools/virt-win-reg.pl:419
27719 msgid ""
27720 "C<virt-win-reg> expects that regedit files have already been reencoded in "
27721 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
27722 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
27723 "with Windows-style line endings, you may need to reencode the whole file "
27724 "before or after processing."
27725 msgstr ""
27726
27727 #. type: textblock
27728 #: ../tools/virt-win-reg.pl:425
27729 msgid ""
27730 "To reencode a file from Windows format to Linux (before processing it with "
27731 "the C<--merge> option), you would do something like this:"
27732 msgstr ""
27733
27734 #. type: verbatim
27735 #: ../tools/virt-win-reg.pl:428
27736 #, no-wrap
27737 msgid ""
27738 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
27739 "\n"
27740 msgstr ""
27741
27742 #. type: textblock
27743 #: ../tools/virt-win-reg.pl:430
27744 msgid ""
27745 "To go in the opposite direction, after exporting and before sending the file "
27746 "to a Windows user, do something like this:"
27747 msgstr ""
27748
27749 #. type: verbatim
27750 #: ../tools/virt-win-reg.pl:433
27751 #, no-wrap
27752 msgid ""
27753 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
27754 "\n"
27755 msgstr ""
27756
27757 #. type: textblock
27758 #: ../tools/virt-win-reg.pl:435
27759 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
27760 msgstr ""
27761
27762 #. type: textblock
27763 #: ../tools/virt-win-reg.pl:437
27764 msgid ""
27765 "If you are unsure about the current encoding, use the L<file(1)> command.  "
27766 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
27767 "Windows-style (CRLF) line endings, like this:"
27768 msgstr ""
27769
27770 #. type: verbatim
27771 #: ../tools/virt-win-reg.pl:441
27772 #, no-wrap
27773 msgid ""
27774 " $ file software.reg\n"
27775 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
27776 " with CRLF line terminators\n"
27777 "\n"
27778 msgstr ""
27779
27780 #. type: textblock
27781 #: ../tools/virt-win-reg.pl:445
27782 msgid "This file would need conversion before you could C<--merge> it."
27783 msgstr ""
27784
27785 #. type: =head1
27786 #: ../tools/virt-win-reg.pl:447
27787 msgid "CurrentControlSet etc."
27788 msgstr ""
27789
27790 #. type: textblock
27791 #: ../tools/virt-win-reg.pl:449
27792 msgid ""
27793 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
27794 "Registry at the level of the hive file, and therefore you cannot modify "
27795 "these."
27796 msgstr ""
27797
27798 #. type: textblock
27799 #: ../tools/virt-win-reg.pl:453
27800 msgid ""
27801 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
27802 "circumstances it might refer to another control set.  The way to find out is "
27803 "to look at the C<HKLM\\SYSTEM\\Select> key:"
27804 msgstr ""
27805
27806 #. type: verbatim
27807 #: ../tools/virt-win-reg.pl:457
27808 #, no-wrap
27809 msgid ""
27810 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
27811 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
27812 " \"Current\"=dword:00000001\n"
27813 " \"Default\"=dword:00000001\n"
27814 " \"Failed\"=dword:00000000\n"
27815 " \"LastKnownGood\"=dword:00000002\n"
27816 "\n"
27817 msgstr ""
27818
27819 #. type: textblock
27820 #: ../tools/virt-win-reg.pl:464
27821 msgid "\"Current\" is the one which Windows will choose when it boots."
27822 msgstr ""
27823
27824 #. type: textblock
27825 #: ../tools/virt-win-reg.pl:466
27826 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
27827 msgstr ""
27828
27829 #. type: =head1
27830 #: ../tools/virt-win-reg.pl:469
27831 msgid "WINDOWS TIPS"
27832 msgstr ""
27833
27834 #. type: textblock
27835 #: ../tools/virt-win-reg.pl:471
27836 msgid ""
27837 "Note that some of these tips modify the guest disk image.  The guest I<must> "
27838 "be shut off, else you will get disk corruption."
27839 msgstr ""
27840
27841 #. type: =head2
27842 #: ../tools/virt-win-reg.pl:474
27843 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
27844 msgstr ""
27845
27846 #. type: textblock
27847 #: ../tools/virt-win-reg.pl:476
27848 msgid ""
27849 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
27850 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
27851 "is uploaded into C<C:\\>:"
27852 msgstr ""
27853
27854 #. type: verbatim
27855 #: ../tools/virt-win-reg.pl:480
27856 #, no-wrap
27857 msgid ""
27858 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
27859 "\n"
27860 msgstr ""
27861
27862 #. type: textblock
27863 #: ../tools/virt-win-reg.pl:482
27864 msgid "Prepare a regedit file containing the registry change:"
27865 msgstr ""
27866
27867 #. type: verbatim
27868 #: ../tools/virt-win-reg.pl:484
27869 #, no-wrap
27870 msgid ""
27871 " cat > test.reg <<'EOF'\n"
27872 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
27873 " \"Test\"=\"c:\\\\test.bat\"\n"
27874 " EOF\n"
27875 "\n"
27876 msgstr ""
27877
27878 #. type: textblock
27879 #: ../tools/virt-win-reg.pl:489
27880 msgid ""
27881 "In this example we use the key C<RunOnce> which means that the script will "
27882 "run precisely once when the first user logs in.  If you want it to run every "
27883 "time a user logs in, replace C<RunOnce> with C<Run>."
27884 msgstr ""
27885
27886 #. type: textblock
27887 #: ../tools/virt-win-reg.pl:493
27888 msgid "Now update the registry:"
27889 msgstr ""
27890
27891 #. type: verbatim
27892 #: ../tools/virt-win-reg.pl:495
27893 #, no-wrap
27894 msgid ""
27895 " virt-win-reg --merge WindowsGuest test.reg\n"
27896 "\n"
27897 msgstr ""
27898
27899 #. type: =head2
27900 #: ../tools/virt-win-reg.pl:497
27901 msgid "INSTALLING A SERVICE"
27902 msgstr ""
27903
27904 #. type: textblock
27905 #: ../tools/virt-win-reg.pl:499
27906 msgid ""
27907 "This section assumes you are familiar with Windows services, and you either "
27908 "have a program which handles the Windows Service Control Protocol directly "
27909 "or you want to run any program using a service wrapper like SrvAny or the "
27910 "free RHSrvAny."
27911 msgstr ""
27912
27913 #. type: textblock
27914 #: ../tools/virt-win-reg.pl:504
27915 msgid ""
27916 "First upload the program and optionally the service wrapper.  In this case "
27917 "the test program is called C<test.exe> and we are using the RHSrvAny "
27918 "wrapper:"
27919 msgstr ""
27920
27921 #. type: verbatim
27922 #: ../tools/virt-win-reg.pl:508
27923 #, no-wrap
27924 msgid ""
27925 " guestfish -i -d WindowsGuest <<EOF\n"
27926 "   upload rhsrvany.exe /rhsrvany.exe\n"
27927 "   upload test.exe /test.exe\n"
27928 " EOF\n"
27929 "\n"
27930 msgstr ""
27931
27932 #. type: textblock
27933 #: ../tools/virt-win-reg.pl:513
27934 msgid ""
27935 "Prepare a regedit file containing the registry changes.  In this example, "
27936 "the first registry change is needed for the service itself or the service "
27937 "wrapper (if used).  The second registry change is only needed because I am "
27938 "using the RHSrvAny service wrapper."
27939 msgstr ""
27940
27941 #. type: verbatim
27942 #: ../tools/virt-win-reg.pl:518
27943 #, no-wrap
27944 msgid ""
27945 " cat > service.reg <<'EOF'\n"
27946 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
27947 " \"Type\"=dword:00000010\n"
27948 " \"Start\"=dword:00000002\n"
27949 " \"ErrorControl\"=dword:00000001\n"
27950 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
27951 " \"DisplayName\"=\"RHSrvAny\"\n"
27952 " \"ObjectName\"=\"NetworkService\"\n"
27953 " \n"
27954 msgstr ""
27955
27956 #. type: verbatim
27957 #: ../tools/virt-win-reg.pl:527
27958 #, no-wrap
27959 msgid ""
27960 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
27961 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
27962 " \"PWD\"=\"c:\\\\Temp\"\n"
27963 " EOF\n"
27964 "\n"
27965 msgstr ""
27966
27967 #. type: textblock
27968 #: ../tools/virt-win-reg.pl:538
27969 msgid ""
27970 "For use of C<ControlSet001> see the section above in this manual page.  You "
27971 "may need to adjust this according to the control set that is in use by the "
27972 "guest."
27973 msgstr ""
27974
27975 #. type: textblock
27976 #: ../tools/virt-win-reg.pl:544
27977 msgid ""
27978 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
27979 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
27980 "privileged account."
27981 msgstr ""
27982
27983 #. type: textblock
27984 #: ../tools/virt-win-reg.pl:550
27985 msgid ""
27986 "For the meaning of the magic numbers, see this Microsoft KB article: "
27987 "L<http://support.microsoft.com/kb/103000>."
27988 msgstr ""
27989
27990 #. type: textblock
27991 #: ../tools/virt-win-reg.pl:555
27992 msgid "Update the registry:"
27993 msgstr ""
27994
27995 #. type: verbatim
27996 #: ../tools/virt-win-reg.pl:557
27997 #, no-wrap
27998 msgid ""
27999 " virt-win-reg --merge WindowsGuest service.reg\n"
28000 "\n"
28001 msgstr ""
28002
28003 #. type: textblock
28004 #: ../tools/virt-win-reg.pl:561
28005 msgid ""
28006 "Be careful when passing parameters containing C<\\> (backslash) in the "
28007 "shell.  Usually you will have to use 'single quotes' or double backslashes "
28008 "(but not both) to protect them from the shell."
28009 msgstr ""
28010
28011 #. type: textblock
28012 #: ../tools/virt-win-reg.pl:565
28013 msgid "Paths and value names are case-insensitive."
28014 msgstr ""
28015
28016 #. type: textblock
28017 #: ../tools/virt-win-reg.pl:574
28018 msgid ""
28019 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
28020 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
28021 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
28022 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28023 msgstr ""
28024
28025 #. type: textblock
28026 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
28027 msgid ""
28028 "When reporting bugs, please enable debugging and capture the I<complete> "
28029 "output:"
28030 msgstr ""
28031
28032 #. type: verbatim
28033 #: ../tools/virt-win-reg.pl:592
28034 #, no-wrap
28035 msgid ""
28036 " export LIBGUESTFS_DEBUG=1\n"
28037 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
28038 "\n"
28039 msgstr ""
28040
28041 #. type: textblock
28042 #: ../tools/virt-win-reg.pl:595
28043 msgid ""
28044 "Attach /tmp/virt-win-reg.log to a new bug report at "
28045 "L<https://bugzilla.redhat.com/>"
28046 msgstr ""
28047
28048 #. type: textblock
28049 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510 ../tools/virt-make-fs.pl:565
28050 msgid "Copyright (C) 2010 Red Hat Inc."
28051 msgstr ""
28052
28053 #. type: textblock
28054 #: ../tools/virt-resize.pl:42
28055 msgid "virt-resize - Resize a virtual machine disk"
28056 msgstr ""
28057
28058 #. type: verbatim
28059 #: ../tools/virt-resize.pl:46
28060 #, no-wrap
28061 msgid ""
28062 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
28063 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
28064 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
28065 "\n"
28066 msgstr ""
28067
28068 #. type: textblock
28069 #: ../tools/virt-resize.pl:52
28070 msgid ""
28071 "Virt-resize is a tool which can resize a virtual machine disk, making it "
28072 "larger or smaller overall, and resizing or deleting any partitions contained "
28073 "within."
28074 msgstr ""
28075
28076 #. type: textblock
28077 #: ../tools/virt-resize.pl:56
28078 msgid ""
28079 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
28080 "not> be used on live virtual machines - for consistent results, shut the "
28081 "virtual machine down before resizing it."
28082 msgstr ""
28083
28084 #. type: textblock
28085 #: ../tools/virt-resize.pl:60
28086 msgid ""
28087 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
28088 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
28089 msgstr ""
28090
28091 #. type: textblock
28092 #: ../tools/virt-resize.pl:66
28093 msgid ""
28094 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
28095 "fill the extra 5GB of space."
28096 msgstr ""
28097
28098 #. type: verbatim
28099 #: ../tools/virt-resize.pl:69
28100 #, no-wrap
28101 msgid ""
28102 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
28103 " virt-filesystems --long -h --all -a olddisk\n"
28104 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
28105 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
28106 "\n"
28107 msgstr ""
28108
28109 #. type: textblock
28110 #: ../tools/virt-resize.pl:74
28111 msgid ""
28112 "As above, but make the /boot partition 200MB bigger, while giving the "
28113 "remaining space to /dev/sda2:"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../tools/virt-resize.pl:77
28118 #, no-wrap
28119 msgid ""
28120 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
28121 "\n"
28122 msgstr ""
28123
28124 #. type: textblock
28125 #: ../tools/virt-resize.pl:79
28126 msgid "As above, but the output format will be uncompressed qcow2:"
28127 msgstr ""
28128
28129 #. type: verbatim
28130 #: ../tools/virt-resize.pl:81
28131 #, no-wrap
28132 msgid ""
28133 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
28134 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
28135 "\n"
28136 msgstr ""
28137
28138 #. type: =head1
28139 #: ../tools/virt-resize.pl:84
28140 msgid "DETAILED USAGE"
28141 msgstr ""
28142
28143 #. type: =head2
28144 #: ../tools/virt-resize.pl:86
28145 msgid "EXPANDING A VIRTUAL MACHINE DISK"
28146 msgstr ""
28147
28148 #. type: =item
28149 #: ../tools/virt-resize.pl:90
28150 msgid "1. Shut down the virtual machine"
28151 msgstr ""
28152
28153 #. type: =item
28154 #: ../tools/virt-resize.pl:92
28155 msgid "2. Locate input disk image"
28156 msgstr ""
28157
28158 #. type: textblock
28159 #: ../tools/virt-resize.pl:94
28160 msgid ""
28161 "Locate the input disk image (ie. the file or device on the host containing "
28162 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
28163 "dumpxml> like this to find the disk image name:"
28164 msgstr ""
28165
28166 #. type: verbatim
28167 #: ../tools/virt-resize.pl:98
28168 #, no-wrap
28169 msgid ""
28170 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
28171 " Found 1 nodes:\n"
28172 " -- NODE --\n"
28173 " <source dev=\"/dev/vg/lv_guest\" />\n"
28174 "\n"
28175 msgstr ""
28176
28177 #. type: =item
28178 #: ../tools/virt-resize.pl:103
28179 msgid "3. Look at current sizing"
28180 msgstr ""
28181
28182 #. type: textblock
28183 #: ../tools/virt-resize.pl:105
28184 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
28185 msgstr ""
28186
28187 #. type: verbatim
28188 #: ../tools/virt-resize.pl:108
28189 #, no-wrap
28190 msgid ""
28191 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
28192 " Name       Type       Size  Parent\n"
28193 " /dev/sda1  partition  101M  /dev/sda\n"
28194 " /dev/sda2  partition  7.9G  /dev/sda\n"
28195 " /dev/sda   device     8.0G  -\n"
28196 "\n"
28197 msgstr ""
28198
28199 #. type: textblock
28200 #: ../tools/virt-resize.pl:114
28201 msgid ""
28202 "(This example is a virtual machine with an 8 GB disk which we would like to "
28203 "expand up to 10 GB)."
28204 msgstr ""
28205
28206 #. type: =item
28207 #: ../tools/virt-resize.pl:117
28208 msgid "4. Create output disk"
28209 msgstr ""
28210
28211 #. type: textblock
28212 #: ../tools/virt-resize.pl:119
28213 msgid ""
28214 "Virt-resize cannot do in-place disk modifications.  You have to have space "
28215 "to store the resized output disk."
28216 msgstr ""
28217
28218 #. type: textblock
28219 #: ../tools/virt-resize.pl:122
28220 msgid "To store the resized disk image in a file, create a file of a suitable size:"
28221 msgstr ""
28222
28223 #. type: verbatim
28224 #: ../tools/virt-resize.pl:125
28225 #, no-wrap
28226 msgid ""
28227 " # rm -f outdisk\n"
28228 " # truncate -s 10G outdisk\n"
28229 "\n"
28230 msgstr ""
28231
28232 #. type: textblock
28233 #: ../tools/virt-resize.pl:128
28234 msgid "Or use L<lvcreate(1)> to create a logical volume:"
28235 msgstr ""
28236
28237 #. type: verbatim
28238 #: ../tools/virt-resize.pl:130
28239 #, no-wrap
28240 msgid ""
28241 " # lvcreate -L 10G -n lv_name vg_name\n"
28242 "\n"
28243 msgstr ""
28244
28245 #. type: textblock
28246 #: ../tools/virt-resize.pl:132
28247 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
28248 msgstr ""
28249
28250 #. type: verbatim
28251 #: ../tools/virt-resize.pl:134
28252 #, no-wrap
28253 msgid ""
28254 " # virsh pool-list\n"
28255 " # virsh vol-create-as poolname newvol 10G\n"
28256 "\n"
28257 msgstr ""
28258
28259 #. type: =item
28260 #: ../tools/virt-resize.pl:137
28261 msgid "5. Resize"
28262 msgstr ""
28263
28264 #. type: textblock
28265 #: ../tools/virt-resize.pl:139
28266 msgid ""
28267 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
28268 "file) and the output disk.  The output disk is the one created in the "
28269 "previous step."
28270 msgstr ""
28271
28272 #. type: verbatim
28273 #: ../tools/virt-resize.pl:143
28274 #, no-wrap
28275 msgid ""
28276 " # virt-resize indisk outdisk\n"
28277 "\n"
28278 msgstr ""
28279
28280 #. type: textblock
28281 #: ../tools/virt-resize.pl:145
28282 msgid ""
28283 "This command just copies disk image C<indisk> to disk image C<outdisk> "
28284 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
28285 "larger, then an extra, empty partition is created at the end of the disk "
28286 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
28287 "error."
28288 msgstr ""
28289
28290 #. type: textblock
28291 #: ../tools/virt-resize.pl:151
28292 msgid ""
28293 "More realistically you'd want to expand existing partitions in the disk "
28294 "image by passing extra options (for the full list see the L</OPTIONS> "
28295 "section below)."
28296 msgstr ""
28297
28298 #. type: textblock
28299 #: ../tools/virt-resize.pl:155
28300 msgid ""
28301 "L</--expand> is the most useful option.  It expands the named partition "
28302 "within the disk to fill any extra space:"
28303 msgstr ""
28304
28305 #. type: verbatim
28306 #: ../tools/virt-resize.pl:158
28307 #, no-wrap
28308 msgid ""
28309 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
28310 "\n"
28311 msgstr ""
28312
28313 #. type: textblock
28314 #: ../tools/virt-resize.pl:160
28315 msgid ""
28316 "(In this case, an extra partition is I<not> created at the end of the disk, "
28317 "because there will be no unused space)."
28318 msgstr ""
28319
28320 #. type: textblock
28321 #: ../tools/virt-resize.pl:163
28322 msgid ""
28323 "L</--resize> is the other commonly used option.  The following would "
28324 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
28325 "rest of the available space:"
28326 msgstr ""
28327
28328 #. type: verbatim
28329 #: ../tools/virt-resize.pl:167
28330 #, no-wrap
28331 msgid ""
28332 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
28333 "     indisk outdisk\n"
28334 "\n"
28335 msgstr ""
28336
28337 #. type: textblock
28338 #: ../tools/virt-resize.pl:170
28339 msgid ""
28340 "If the expanded partition in the image contains a filesystem or LVM PV, then "
28341 "if virt-resize knows how, it will resize the contents, the equivalent of "
28342 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
28343 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
28344 "filesystems, so you would have to online resize them after booting the "
28345 "guest."
28346 msgstr ""
28347
28348 #. type: textblock
28349 #: ../tools/virt-resize.pl:177
28350 msgid "Other options are covered below."
28351 msgstr ""
28352
28353 #. type: =item
28354 #: ../tools/virt-resize.pl:179
28355 msgid "6. Test"
28356 msgstr ""
28357
28358 #. type: textblock
28359 #: ../tools/virt-resize.pl:181
28360 msgid "Thoroughly test the new disk image I<before> discarding the old one."
28361 msgstr ""
28362
28363 #. type: textblock
28364 #: ../tools/virt-resize.pl:183
28365 msgid "If you are using libvirt, edit the XML to point at the new disk:"
28366 msgstr ""
28367
28368 #. type: verbatim
28369 #: ../tools/virt-resize.pl:185
28370 #, no-wrap
28371 msgid ""
28372 " # virsh edit guestname\n"
28373 "\n"
28374 msgstr ""
28375
28376 #. type: textblock
28377 #: ../tools/virt-resize.pl:187
28378 msgid ""
28379 "Change E<lt>source ...E<gt>, see "
28380 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
28381 msgstr ""
28382
28383 #. type: textblock
28384 #: ../tools/virt-resize.pl:190
28385 msgid "Then start up the domain with the new, resized disk:"
28386 msgstr ""
28387
28388 #. type: verbatim
28389 #: ../tools/virt-resize.pl:192
28390 #, no-wrap
28391 msgid ""
28392 " # virsh start guestname\n"
28393 "\n"
28394 msgstr ""
28395
28396 #. type: textblock
28397 #: ../tools/virt-resize.pl:194
28398 msgid ""
28399 "and check that it still works.  See also the L</NOTES> section below for "
28400 "additional information."
28401 msgstr ""
28402
28403 #. type: =item
28404 #: ../tools/virt-resize.pl:197
28405 msgid "7. Resize LVs etc inside the guest"
28406 msgstr ""
28407
28408 #. type: textblock
28409 #: ../tools/virt-resize.pl:199
28410 msgid "(This can also be done offline using L<guestfish(1)>)"
28411 msgstr ""
28412
28413 #. type: textblock
28414 #: ../tools/virt-resize.pl:201
28415 msgid ""
28416 "Once the guest has booted you should see the new space available, at least "
28417 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
28418 "may need to resize LVs inside PVs, and also resize filesystem types that "
28419 "virt-resize does not know how to expand."
28420 msgstr ""
28421
28422 #. type: =head2
28423 #: ../tools/virt-resize.pl:208
28424 msgid "SHRINKING A VIRTUAL MACHINE DISK"
28425 msgstr ""
28426
28427 #. type: textblock
28428 #: ../tools/virt-resize.pl:210
28429 msgid ""
28430 "Shrinking is somewhat more complex than expanding, and only an overview is "
28431 "given here."
28432 msgstr ""
28433
28434 #. type: textblock
28435 #: ../tools/virt-resize.pl:213
28436 msgid ""
28437 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
28438 "filesystems).  The user has to shrink content before passing the disk image "
28439 "to virt-resize, and virt-resize will check that the content has been shrunk "
28440 "properly."
28441 msgstr ""
28442
28443 #. type: textblock
28444 #: ../tools/virt-resize.pl:218
28445 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
28446 msgstr ""
28447
28448 #. type: textblock
28449 #: ../tools/virt-resize.pl:220
28450 msgid ""
28451 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
28452 "steps 3 and 4 above to allocate a new disk image."
28453 msgstr ""
28454
28455 #. type: textblock
28456 #: ../tools/virt-resize.pl:223
28457 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
28458 msgstr ""
28459
28460 #. type: =head2
28461 #: ../tools/virt-resize.pl:226
28462 msgid "IGNORING OR DELETING PARTITIONS"
28463 msgstr ""
28464
28465 #. type: textblock
28466 #: ../tools/virt-resize.pl:228
28467 msgid ""
28468 "virt-resize also gives a convenient way to ignore or delete partitions when "
28469 "copying from the input disk to the output disk.  Ignoring a partition speeds "
28470 "up the copy where you don't care about the existing contents of a "
28471 "partition.  Deleting a partition removes it completely, but note that it "
28472 "also renumbers any partitions after the one which is deleted, which can "
28473 "leave some guests unbootable."
28474 msgstr ""
28475
28476 #. type: =head2
28477 #: ../tools/virt-resize.pl:235
28478 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
28479 msgstr ""
28480
28481 #. type: textblock
28482 #: ../tools/virt-resize.pl:237
28483 msgid ""
28484 "If the input disk is in qcow2 format, then you may prefer that the output is "
28485 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
28486 "the fly.  The output format is simply determined by the format of the empty "
28487 "output container that you provide.  Thus to create qcow2 output, use:"
28488 msgstr ""
28489
28490 #. type: verbatim
28491 #: ../tools/virt-resize.pl:243
28492 #, no-wrap
28493 msgid ""
28494 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
28495 "\n"
28496 msgstr ""
28497
28498 #. type: textblock
28499 #: ../tools/virt-resize.pl:245
28500 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
28501 msgstr ""
28502
28503 #. type: textblock
28504 #: ../tools/virt-resize.pl:247
28505 msgid "Similarly, to get non-sparse raw output use:"
28506 msgstr ""
28507
28508 #. type: verbatim
28509 #: ../tools/virt-resize.pl:249
28510 #, no-wrap
28511 msgid ""
28512 " fallocate -l size outdisk\n"
28513 "\n"
28514 msgstr ""
28515
28516 #. type: textblock
28517 #: ../tools/virt-resize.pl:251
28518 msgid ""
28519 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
28520 "if=/dev/zero of=outdisk bs=1M count=..>)"
28521 msgstr ""
28522
28523 #. type: textblock
28524 #: ../tools/virt-resize.pl:264
28525 msgid "Display help."
28526 msgstr ""
28527
28528 #. type: =item
28529 #: ../tools/virt-resize.pl:278
28530 msgid "B<--resize part=size>"
28531 msgstr ""
28532
28533 #. type: textblock
28534 #: ../tools/virt-resize.pl:280
28535 msgid ""
28536 "Resize the named partition (expanding or shrinking it) so that it has the "
28537 "given size."
28538 msgstr ""
28539
28540 #. type: textblock
28541 #: ../tools/virt-resize.pl:283
28542 msgid ""
28543 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
28544 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
28545 "Exabytes; or as a percentage of the current size; or as a relative number or "
28546 "percentage.  For example:"
28547 msgstr ""
28548
28549 #. type: verbatim
28550 #: ../tools/virt-resize.pl:288
28551 #, no-wrap
28552 msgid ""
28553 " --resize /dev/sda2=10G\n"
28554 "\n"
28555 msgstr ""
28556
28557 #. type: verbatim
28558 #: ../tools/virt-resize.pl:290
28559 #, no-wrap
28560 msgid ""
28561 " --resize /dev/sda4=90%\n"
28562 "\n"
28563 msgstr ""
28564
28565 #. type: verbatim
28566 #: ../tools/virt-resize.pl:292
28567 #, no-wrap
28568 msgid ""
28569 " --resize /dev/sda2=+1G\n"
28570 "\n"
28571 msgstr ""
28572
28573 #. type: verbatim
28574 #: ../tools/virt-resize.pl:294
28575 #, no-wrap
28576 msgid ""
28577 " --resize /dev/sda2=-200M\n"
28578 "\n"
28579 msgstr ""
28580
28581 #. type: verbatim
28582 #: ../tools/virt-resize.pl:296
28583 #, no-wrap
28584 msgid ""
28585 " --resize /dev/sda1=+128K\n"
28586 "\n"
28587 msgstr ""
28588
28589 #. type: verbatim
28590 #: ../tools/virt-resize.pl:298
28591 #, no-wrap
28592 msgid ""
28593 " --resize /dev/sda1=+10%\n"
28594 "\n"
28595 msgstr ""
28596
28597 #. type: verbatim
28598 #: ../tools/virt-resize.pl:300
28599 #, no-wrap
28600 msgid ""
28601 " --resize /dev/sda1=-10%\n"
28602 "\n"
28603 msgstr ""
28604
28605 #. type: textblock
28606 #: ../tools/virt-resize.pl:302
28607 msgid ""
28608 "You can increase the size of any partition.  Virt-resize will expand the "
28609 "direct content of the partition if it knows how (see C<--expand> below)."
28610 msgstr ""
28611
28612 #. type: textblock
28613 #: ../tools/virt-resize.pl:306
28614 msgid ""
28615 "You can only I<decrease> the size of partitions that contain filesystems or "
28616 "PVs which have already been shrunk.  Virt-resize will check this has been "
28617 "done before proceeding, or else will print an error (see also "
28618 "C<--resize-force>)."
28619 msgstr ""
28620
28621 #. type: textblock
28622 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403 ../tools/virt-resize.pl:420
28623 msgid "You can give this option multiple times."
28624 msgstr ""
28625
28626 #. type: =item
28627 #: ../tools/virt-resize.pl:317
28628 msgid "B<--resize-force part=size>"
28629 msgstr ""
28630
28631 #. type: textblock
28632 #: ../tools/virt-resize.pl:319
28633 msgid ""
28634 "This is the same as C<--resize> except that it will let you decrease the "
28635 "size of any partition.  Generally this means you will lose any data which "
28636 "was at the end of the partition you shrink, but you may not care about that "
28637 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
28638 "as a swap partition)."
28639 msgstr ""
28640
28641 #. type: textblock
28642 #: ../tools/virt-resize.pl:325
28643 msgid "See also the C<--ignore> option."
28644 msgstr ""
28645
28646 #. type: =item
28647 #: ../tools/virt-resize.pl:331
28648 msgid "B<--expand part>"
28649 msgstr ""
28650
28651 #. type: textblock
28652 #: ../tools/virt-resize.pl:333
28653 msgid ""
28654 "Expand the named partition so it uses up all extra space (space left over "
28655 "after any other resize changes that you request have been done)."
28656 msgstr ""
28657
28658 #. type: textblock
28659 #: ../tools/virt-resize.pl:336
28660 msgid ""
28661 "If virt-resize knows how, it will expand the direct content of the "
28662 "partition.  For example, if the partition is an LVM PV, it will expand the "
28663 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
28664 "content it doesn't know about alone."
28665 msgstr ""
28666
28667 #. type: textblock
28668 #: ../tools/virt-resize.pl:341
28669 msgid "Currently virt-resize can resize:"
28670 msgstr ""
28671
28672 #. type: textblock
28673 #: ../tools/virt-resize.pl:347
28674 msgid ""
28675 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
28676 "partition."
28677 msgstr ""
28678
28679 #. type: textblock
28680 #: ../tools/virt-resize.pl:352
28681 msgid ""
28682 "NTFS filesystems contained directly in a partition, if libguestfs was "
28683 "compiled with support for NTFS."
28684 msgstr ""
28685
28686 #. type: textblock
28687 #: ../tools/virt-resize.pl:355
28688 msgid ""
28689 "The filesystem must have been shut down consistently last time it was used.  "
28690 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
28691 "consistency check, so at the first boot after resizing Windows will check "
28692 "the disk."
28693 msgstr ""
28694
28695 #. type: textblock
28696 #: ../tools/virt-resize.pl:362
28697 msgid ""
28698 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
28699 "inside the PV, but see the C<--LV-expand> option.  The user could also "
28700 "resize LVs as desired after boot."
28701 msgstr ""
28702
28703 #. type: textblock
28704 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
28705 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
28706 msgstr ""
28707
28708 #. type: =item
28709 #: ../tools/virt-resize.pl:374
28710 msgid "B<--shrink part>"
28711 msgstr ""
28712
28713 #. type: textblock
28714 #: ../tools/virt-resize.pl:376
28715 msgid ""
28716 "Shrink the named partition until the overall disk image fits in the "
28717 "destination.  The named partition B<must> contain a filesystem or PV which "
28718 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
28719 "online tools).  Virt-resize will check this and give an error if it has not "
28720 "been done."
28721 msgstr ""
28722
28723 #. type: textblock
28724 #: ../tools/virt-resize.pl:382
28725 msgid ""
28726 "The amount by which the overall disk must be shrunk (after carrying out all "
28727 "other operations requested by the user) is called the \"deficit\".  For "
28728 "example, a straight copy (assume no other operations)  from a 5GB disk image "
28729 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
28730 "would give an error unless the user specified a partition to shrink and that "
28731 "partition had more than a gigabyte of free space."
28732 msgstr ""
28733
28734 #. type: =item
28735 #: ../tools/virt-resize.pl:396
28736 msgid "B<--ignore part>"
28737 msgstr ""
28738
28739 #. type: textblock
28740 #: ../tools/virt-resize.pl:398
28741 msgid ""
28742 "Ignore the named partition.  Effectively this means the partition is "
28743 "allocated on the destination disk, but the content is not copied across from "
28744 "the source disk.  The content of the partition will be blank (all zero "
28745 "bytes)."
28746 msgstr ""
28747
28748 #. type: =item
28749 #: ../tools/virt-resize.pl:409
28750 msgid "B<--delete part>"
28751 msgstr ""
28752
28753 #. type: textblock
28754 #: ../tools/virt-resize.pl:411
28755 msgid ""
28756 "Delete the named partition.  It would be more accurate to describe this as "
28757 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
28758 "the original disk image is left intact."
28759 msgstr ""
28760
28761 #. type: textblock
28762 #: ../tools/virt-resize.pl:415
28763 msgid ""
28764 "Note that when you delete a partition, then anything contained in the "
28765 "partition is also deleted.  Furthermore, this causes any partitions that "
28766 "come after to be I<renumbered>, which can easily make your guest unbootable."
28767 msgstr ""
28768
28769 #. type: =item
28770 #: ../tools/virt-resize.pl:426
28771 msgid "B<--LV-expand logvol>"
28772 msgstr ""
28773
28774 #. type: textblock
28775 #: ../tools/virt-resize.pl:428
28776 msgid ""
28777 "This takes the logical volume and, as a final step, expands it to fill all "
28778 "the space available in its volume group.  A typical usage, assuming a Linux "
28779 "guest with a single PV C</dev/sda2> and a root device called "
28780 "C</dev/vg_guest/lv_root> would be:"
28781 msgstr ""
28782
28783 #. type: verbatim
28784 #: ../tools/virt-resize.pl:433
28785 #, no-wrap
28786 msgid ""
28787 " virt-resize indisk outdisk \\\n"
28788 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
28789 "\n"
28790 msgstr ""
28791
28792 #. type: textblock
28793 #: ../tools/virt-resize.pl:436
28794 msgid ""
28795 "This would first expand the partition (and PV), and then expand the root "
28796 "device to fill the extra space in the PV."
28797 msgstr ""
28798
28799 #. type: textblock
28800 #: ../tools/virt-resize.pl:439
28801 msgid ""
28802 "The contents of the LV are also resized if virt-resize knows how to do "
28803 "that.  You can stop virt-resize from trying to expand the content by using "
28804 "the option C<--no-expand-content>."
28805 msgstr ""
28806
28807 #. type: textblock
28808 #: ../tools/virt-resize.pl:443
28809 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
28810 msgstr ""
28811
28812 #. type: textblock
28813 #: ../tools/virt-resize.pl:446
28814 msgid ""
28815 "You can give this option multiple times, I<but> it doesn't make sense to do "
28816 "this unless the logical volumes you specify are all in different volume "
28817 "groups."
28818 msgstr ""
28819
28820 #. type: =item
28821 #: ../tools/virt-resize.pl:454
28822 msgid "B<--no-copy-boot-loader>"
28823 msgstr ""
28824
28825 #. type: textblock
28826 #: ../tools/virt-resize.pl:456
28827 msgid ""
28828 "By default, virt-resize copies over some sectors at the start of the disk "
28829 "(up to the beginning of the first partition).  Commonly these sectors "
28830 "contain the Master Boot Record (MBR) and the boot loader, and are required "
28831 "in order for the guest to boot correctly."
28832 msgstr ""
28833
28834 #. type: textblock
28835 #: ../tools/virt-resize.pl:461
28836 msgid ""
28837 "If you specify this flag, then this initial copy is not done.  You may need "
28838 "to reinstall the boot loader in this case."
28839 msgstr ""
28840
28841 #. type: =item
28842 #: ../tools/virt-resize.pl:469
28843 msgid "B<--no-extra-partition>"
28844 msgstr ""
28845
28846 #. type: textblock
28847 #: ../tools/virt-resize.pl:471
28848 msgid ""
28849 "By default, virt-resize creates an extra partition if there is any extra, "
28850 "unused space after all resizing has happened.  Use this option to prevent "
28851 "the extra partition from being created.  If you do this then the extra space "
28852 "will be inaccessible until you run fdisk, parted, or some other partitioning "
28853 "tool in the guest."
28854 msgstr ""
28855
28856 #. type: textblock
28857 #: ../tools/virt-resize.pl:477
28858 msgid ""
28859 "Note that if the surplus space is smaller than 10 MB, no extra partition "
28860 "will be created."
28861 msgstr ""
28862
28863 #. type: =item
28864 #: ../tools/virt-resize.pl:484
28865 msgid "B<--no-expand-content>"
28866 msgstr ""
28867
28868 #. type: textblock
28869 #: ../tools/virt-resize.pl:486
28870 msgid ""
28871 "By default, virt-resize will try to expand the direct contents of "
28872 "partitions, if it knows how (see C<--expand> option above)."
28873 msgstr ""
28874
28875 #. type: textblock
28876 #: ../tools/virt-resize.pl:489
28877 msgid ""
28878 "If you give the C<--no-expand-content> option then virt-resize will not "
28879 "attempt this."
28880 msgstr ""
28881
28882 #. type: =item
28883 #: ../tools/virt-resize.pl:496
28884 msgid "B<-d> | B<--debug>"
28885 msgstr ""
28886
28887 #. type: =item
28888 #: ../tools/virt-resize.pl:504
28889 msgid "B<-n> | B<--dryrun>"
28890 msgstr ""
28891
28892 #. type: textblock
28893 #: ../tools/virt-resize.pl:506
28894 msgid "Print a summary of what would be done, but don't do anything."
28895 msgstr ""
28896
28897 #. type: =item
28898 #: ../tools/virt-resize.pl:512
28899 msgid "B<-q> | B<--quiet>"
28900 msgstr ""
28901
28902 #. type: textblock
28903 #: ../tools/virt-resize.pl:514
28904 msgid "Don't print the summary."
28905 msgstr ""
28906
28907 #. type: textblock
28908 #: ../tools/virt-resize.pl:522
28909 msgid ""
28910 "Specify the format of the input disk image.  If this flag is not given then "
28911 "it is auto-detected from the image itself."
28912 msgstr ""
28913
28914 #. type: textblock
28915 #: ../tools/virt-resize.pl:528
28916 msgid ""
28917 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
28918 "AND NON-SPARSE RAW FORMATS>."
28919 msgstr ""
28920
28921 #. type: =item
28922 #: ../tools/virt-resize.pl:535
28923 msgid "B<--output-format> raw"
28924 msgstr ""
28925
28926 #. type: textblock
28927 #: ../tools/virt-resize.pl:537
28928 msgid ""
28929 "Specify the format of the output disk image.  If this flag is not given then "
28930 "it is auto-detected from the image itself."
28931 msgstr ""
28932
28933 #. type: textblock
28934 #: ../tools/virt-resize.pl:543
28935 msgid ""
28936 "Note that you still need to create the output disk with the right format.  "
28937 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
28938 msgstr ""
28939
28940 #. type: =head1
28941 #: ../tools/virt-resize.pl:1419
28942 msgid "NOTES"
28943 msgstr ""
28944
28945 #. type: =head2
28946 #: ../tools/virt-resize.pl:1421
28947 msgid "\"Partition 1 does not end on cylinder boundary.\""
28948 msgstr ""
28949
28950 #. type: textblock
28951 #: ../tools/virt-resize.pl:1423
28952 msgid ""
28953 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
28954 "means the partitions will not be aligned to the ancient CHS geometry.  "
28955 "However CHS geometry is meaningless for disks manufactured since the early "
28956 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
28957 "cylinders is not required by any modern operating system."
28958 msgstr ""
28959
28960 #. type: =head2
28961 #: ../tools/virt-resize.pl:1430
28962 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
28963 msgstr ""
28964
28965 #. type: textblock
28966 #: ../tools/virt-resize.pl:1432
28967 msgid ""
28968 "In Windows Vista and later versions, Microsoft switched to using a separate "
28969 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
28970 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
28971 "the boot partition.  Doing so seems to break the guest completely.  However "
28972 "expanding the second partition (ie. C: drive) should work."
28973 msgstr ""
28974
28975 #. type: textblock
28976 #: ../tools/virt-resize.pl:1439
28977 msgid ""
28978 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
28979 "NTFS partitions have been expanded.  This is just a safety check and (unless "
28980 "it find errors) is nothing to worry about."
28981 msgstr ""
28982
28983 #. type: =head2
28984 #: ../tools/virt-resize.pl:1443
28985 msgid "GUEST BOOT STUCK AT \"GRUB\""
28986 msgstr ""
28987
28988 #. type: textblock
28989 #: ../tools/virt-resize.pl:1445
28990 msgid ""
28991 "If a Linux guest does not boot after resizing, and the boot is stuck after "
28992 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
28993 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
28994 "although we think is to do with partition alignment."
28995 msgstr ""
28996
28997 #. type: verbatim
28998 #: ../tools/virt-resize.pl:1450
28999 #, no-wrap
29000 msgid ""
29001 " guestfish -i -a newdisk\n"
29002 " ><fs> cat /boot/grub/device.map\n"
29003 " # check the contents of this file are sensible or\n"
29004 " # edit the file if necessary\n"
29005 " ><fs> grub-install / /dev/vda\n"
29006 " ><fs> exit\n"
29007 "\n"
29008 msgstr ""
29009
29010 #. type: textblock
29011 #: ../tools/virt-resize.pl:1457
29012 msgid ""
29013 "For more flexible guest reconfiguration, including if you need to specify "
29014 "other parameters to grub-install, use L<virt-rescue(1)>."
29015 msgstr ""
29016
29017 #. type: =head1
29018 #: ../tools/virt-resize.pl:1460
29019 msgid "ALTERNATIVE TOOLS"
29020 msgstr ""
29021
29022 #. type: textblock
29023 #: ../tools/virt-resize.pl:1462
29024 msgid ""
29025 "There are several proprietary tools for resizing partitions.  We won't "
29026 "mention any here."
29027 msgstr ""
29028
29029 #. type: textblock
29030 #: ../tools/virt-resize.pl:1465
29031 msgid ""
29032 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
29033 "operations on disk images.  They can resize and move partitions, but I don't "
29034 "think they can do anything with the contents, and they certainly don't "
29035 "understand LVM."
29036 msgstr ""
29037
29038 #. type: textblock
29039 #: ../tools/virt-resize.pl:1470
29040 msgid ""
29041 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
29042 "but at a much lower level.  You will probably end up hand-calculating sector "
29043 "offsets, which is something that virt-resize was designed to avoid.  If you "
29044 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
29045 "C<--debug> flag."
29046 msgstr ""
29047
29048 #. type: textblock
29049 #: ../tools/virt-resize.pl:1485
29050 msgid ""
29051 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
29052 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
29053 "L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
29054 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
29055 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29056 msgstr ""
29057
29058 #. type: textblock
29059 #: ../tools/virt-list-filesystems.pl:32
29060 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
29061 msgstr ""
29062
29063 #. type: verbatim
29064 #: ../tools/virt-list-filesystems.pl:36
29065 #, no-wrap
29066 msgid ""
29067 " virt-list-filesystems [--options] domname\n"
29068 "\n"
29069 msgstr ""
29070
29071 #. type: verbatim
29072 #: ../tools/virt-list-filesystems.pl:38
29073 #, no-wrap
29074 msgid ""
29075 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
29076 "\n"
29077 msgstr ""
29078
29079 #. type: textblock
29080 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
29081 msgid ""
29082 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
29083 "replacement."
29084 msgstr ""
29085
29086 #. type: textblock
29087 #: ../tools/virt-list-filesystems.pl:45
29088 msgid ""
29089 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
29090 "are contained in a virtual machine or disk image."
29091 msgstr ""
29092
29093 #. type: textblock
29094 #: ../tools/virt-list-filesystems.pl:49
29095 msgid ""
29096 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
29097 "functionality.  For more complex cases you should look at the "
29098 "L<guestfish(1)> tool."
29099 msgstr ""
29100
29101 #. type: =item
29102 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
29103 msgid "B<-l> | B<--long>"
29104 msgstr ""
29105
29106 #. type: textblock
29107 #: ../tools/virt-list-filesystems.pl:108
29108 msgid ""
29109 "With this option, C<virt-list-filesystems> displays the type of each "
29110 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
29111 msgstr ""
29112
29113 #. type: =item
29114 #: ../tools/virt-list-filesystems.pl:115
29115 msgid "B<-a> | B<--all>"
29116 msgstr ""
29117
29118 #. type: textblock
29119 #: ../tools/virt-list-filesystems.pl:117
29120 msgid ""
29121 "Normally we only show mountable filesystems.  If this option is given then "
29122 "swap devices are shown too."
29123 msgstr ""
29124
29125 #. type: textblock
29126 #: ../tools/virt-list-filesystems.pl:191
29127 msgid ""
29128 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
29129 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
29130 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29131 msgstr ""
29132
29133 #. type: textblock
29134 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
29135 msgid "Copyright (C) 2009 Red Hat Inc."
29136 msgstr ""
29137
29138 #. type: textblock
29139 #: ../tools/virt-tar.pl:33
29140 msgid "virt-tar - Extract or upload files to a virtual machine"
29141 msgstr ""
29142
29143 #. type: verbatim
29144 #: ../tools/virt-tar.pl:37
29145 #, no-wrap
29146 msgid ""
29147 " virt-tar [--options] -x domname directory tarball\n"
29148 "\n"
29149 msgstr ""
29150
29151 #. type: verbatim
29152 #: ../tools/virt-tar.pl:39
29153 #, no-wrap
29154 msgid ""
29155 " virt-tar [--options] -u domname tarball directory\n"
29156 "\n"
29157 msgstr ""
29158
29159 #. type: verbatim
29160 #: ../tools/virt-tar.pl:41
29161 #, no-wrap
29162 msgid ""
29163 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
29164 "\n"
29165 msgstr ""
29166
29167 #. type: verbatim
29168 #: ../tools/virt-tar.pl:43
29169 #, no-wrap
29170 msgid ""
29171 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
29172 "\n"
29173 msgstr ""
29174
29175 #. type: textblock
29176 #: ../tools/virt-tar.pl:47
29177 msgid ""
29178 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
29179 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
29180 msgstr ""
29181
29182 #. type: textblock
29183 #: ../tools/virt-tar.pl:52
29184 msgid "Download C</home> from the VM into a local tarball:"
29185 msgstr ""
29186
29187 #. type: verbatim
29188 #: ../tools/virt-tar.pl:54
29189 #, no-wrap
29190 msgid ""
29191 " virt-tar -x domname /home home.tar\n"
29192 "\n"
29193 msgstr ""
29194
29195 #. type: verbatim
29196 #: ../tools/virt-tar.pl:56
29197 #, no-wrap
29198 msgid ""
29199 " virt-tar -zx domname /home home.tar.gz\n"
29200 "\n"
29201 msgstr ""
29202
29203 #. type: textblock
29204 #: ../tools/virt-tar.pl:58
29205 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
29206 msgstr ""
29207
29208 #. type: verbatim
29209 #: ../tools/virt-tar.pl:60
29210 #, no-wrap
29211 msgid ""
29212 " virt-tar -u domname uploadstuff.tar /tmp\n"
29213 "\n"
29214 msgstr ""
29215
29216 #. type: verbatim
29217 #: ../tools/virt-tar.pl:62
29218 #, no-wrap
29219 msgid ""
29220 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
29221 "\n"
29222 msgstr ""
29223
29224 #. type: textblock
29225 #: ../tools/virt-tar.pl:66
29226 msgid ""
29227 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
29228 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
29229 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
29230 msgstr ""
29231
29232 #. type: textblock
29233 #: ../tools/virt-tar.pl:71
29234 msgid ""
29235 "You can use C<-x> (extract) on live virtual machines, but you might get "
29236 "inconsistent results or errors if there is filesystem activity inside the "
29237 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
29238 "work, but the only way to guarantee consistent results is if the virtual "
29239 "machine is shut down."
29240 msgstr ""
29241
29242 #. type: textblock
29243 #: ../tools/virt-tar.pl:79
29244 msgid ""
29245 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
29246 "parts of a guest filesystem.  There are many possibilities: making backups, "
29247 "uploading data files, snooping on guest activity, fixing or customizing "
29248 "guests, etc."
29249 msgstr ""
29250
29251 #. type: textblock
29252 #: ../tools/virt-tar.pl:84
29253 msgid ""
29254 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
29255 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
29256 "should look at the L<guestfish(1)> tool."
29257 msgstr ""
29258
29259 #. type: textblock
29260 #: ../tools/virt-tar.pl:88
29261 msgid ""
29262 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
29263 "its contents (recursively) from the virtual machine into a local tarball.  "
29264 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
29265 "virtual machine.  You cannot use these two options together."
29266 msgstr ""
29267
29268 #. type: textblock
29269 #: ../tools/virt-tar.pl:94
29270 msgid ""
29271 "In addition, you may need to use the C<-z> (gZip) option to enable "
29272 "compression.  When uploading, you have to specify C<-z> if the upload file "
29273 "is compressed because virt-tar won't detect this on its own."
29274 msgstr ""
29275
29276 #. type: textblock
29277 #: ../tools/virt-tar.pl:98
29278 msgid ""
29279 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
29280 "example it cannot do PKZip files or bzip2 compression.  If you want that "
29281 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
29282 "the L<libguestfs(3)> API)."
29283 msgstr ""
29284
29285 #. type: =item
29286 #: ../tools/virt-tar.pl:156
29287 msgid "B<-x> | B<--extract> | B<--download>"
29288 msgstr ""
29289
29290 #. type: =item
29291 #: ../tools/virt-tar.pl:158
29292 msgid "B<-u> | B<--upload>"
29293 msgstr ""
29294
29295 #. type: textblock
29296 #: ../tools/virt-tar.pl:160
29297 msgid ""
29298 "Use C<-x> to extract (download) a directory from a virtual machine to a "
29299 "local tarball."
29300 msgstr ""
29301
29302 #. type: textblock
29303 #: ../tools/virt-tar.pl:163
29304 msgid ""
29305 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
29306 "Please read the L</WARNING> section above before using this option."
29307 msgstr ""
29308
29309 #. type: textblock
29310 #: ../tools/virt-tar.pl:167
29311 msgid "You must specify exactly one of these options."
29312 msgstr ""
29313
29314 #. type: =item
29315 #: ../tools/virt-tar.pl:173
29316 msgid "B<-z> | B<--gzip>"
29317 msgstr ""
29318
29319 #. type: textblock
29320 #: ../tools/virt-tar.pl:175
29321 msgid "Specify that the input or output tarball is gzip-compressed."
29322 msgstr ""
29323
29324 #. type: textblock
29325 #: ../tools/virt-tar.pl:288
29326 msgid ""
29327 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
29328 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
29329 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
29330 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29331 msgstr ""
29332
29333 #. type: textblock
29334 #: ../tools/virt-make-fs.pl:37
29335 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
29336 msgstr ""
29337
29338 #. type: verbatim
29339 #: ../tools/virt-make-fs.pl:41
29340 #, no-wrap
29341 msgid ""
29342 " virt-make-fs [--options] input.tar output.img\n"
29343 "\n"
29344 msgstr ""
29345
29346 #. type: verbatim
29347 #: ../tools/virt-make-fs.pl:43
29348 #, no-wrap
29349 msgid ""
29350 " virt-make-fs [--options] input.tar.gz output.img\n"
29351 "\n"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../tools/virt-make-fs.pl:45
29356 #, no-wrap
29357 msgid ""
29358 " virt-make-fs [--options] directory output.img\n"
29359 "\n"
29360 msgstr ""
29361
29362 #. type: textblock
29363 #: ../tools/virt-make-fs.pl:49
29364 msgid ""
29365 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
29366 "archive or some files in a directory.  It is similar to tools like "
29367 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
29368 "it can create common filesystem types like ext2/3 or NTFS, which can be "
29369 "useful if you want to attach these filesystems to existing virtual machines "
29370 "(eg. to import large amounts of read-only data to a VM)."
29371 msgstr ""
29372
29373 #. type: textblock
29374 #: ../tools/virt-make-fs.pl:57
29375 msgid "Basic usage is:"
29376 msgstr ""
29377
29378 #. type: verbatim
29379 #: ../tools/virt-make-fs.pl:59
29380 #, no-wrap
29381 msgid ""
29382 " virt-make-fs input output\n"
29383 "\n"
29384 msgstr ""
29385
29386 #. type: textblock
29387 #: ../tools/virt-make-fs.pl:61
29388 msgid ""
29389 "where C<input> is either a directory containing files that you want to add, "
29390 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
29391 "C<output> is a disk image.  The input type is detected automatically.  The "
29392 "output disk image defaults to a raw ext2 image unless you specify extra "
29393 "flags (see L</OPTIONS> below)."
29394 msgstr ""
29395
29396 #. type: =head2
29397 #: ../tools/virt-make-fs.pl:67
29398 msgid "EXTRA SPACE"
29399 msgstr ""
29400
29401 #. type: textblock
29402 #: ../tools/virt-make-fs.pl:69
29403 msgid ""
29404 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
29405 "the files that it contains, but might have extra space.  Depending on how "
29406 "you are going to use the output, you might think this extra space is wasted "
29407 "and want to minimize it, or you might want to leave space so that more files "
29408 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
29409 "but you can use the C<--size> flag to leave space in the filesystem if you "
29410 "want it."
29411 msgstr ""
29412
29413 #. type: textblock
29414 #: ../tools/virt-make-fs.pl:77
29415 msgid ""
29416 "An alternative way to leave extra space but not make the output image any "
29417 "bigger is to use an alternative disk image format (instead of the default "
29418 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
29419 "image format (check your hypervisor supports this before using it).  This "
29420 "allows you to choose a large C<--size> but the extra space won't actually be "
29421 "allocated in the image until you try to store something in it."
29422 msgstr ""
29423
29424 #. type: textblock
29425 #: ../tools/virt-make-fs.pl:85
29426 msgid ""
29427 "Don't forget that you can also use local commands including L<resize2fs(8)> "
29428 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
29429 "virt-make-resize to build another image from scratch."
29430 msgstr ""
29431
29432 #. type: =head3
29433 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
29434 msgid "EXAMPLE"
29435 msgstr ""
29436
29437 #. type: verbatim
29438 #: ../tools/virt-make-fs.pl:91
29439 #, no-wrap
29440 msgid ""
29441 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
29442 "\n"
29443 msgstr ""
29444
29445 #. type: =head2
29446 #: ../tools/virt-make-fs.pl:93
29447 msgid "FILESYSTEM TYPE"
29448 msgstr ""
29449
29450 #. type: textblock
29451 #: ../tools/virt-make-fs.pl:95
29452 msgid ""
29453 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
29454 "libguestfs supports can be used (but I<not> read-only formats like "
29455 "ISO9660).  Here are some of the more common choices:"
29456 msgstr ""
29457
29458 #. type: =item
29459 #: ../tools/virt-make-fs.pl:101
29460 msgid "I<ext3>"
29461 msgstr ""
29462
29463 #. type: textblock
29464 #: ../tools/virt-make-fs.pl:103
29465 msgid ""
29466 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
29467 "you are not going to use the filesystem in a way that requires the journal, "
29468 "then this is just wasted overhead."
29469 msgstr ""
29470
29471 #. type: =item
29472 #: ../tools/virt-make-fs.pl:107
29473 msgid "I<ntfs> or I<vfat>"
29474 msgstr ""
29475
29476 #. type: textblock
29477 #: ../tools/virt-make-fs.pl:109
29478 msgid "Useful if exporting data to a Windows guest."
29479 msgstr ""
29480
29481 #. type: textblock
29482 #: ../tools/virt-make-fs.pl:111
29483 msgid ""
29484 "I<Note for vfat>: The tar archive or local directory must only contain files "
29485 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
29486 "program running within libguestfs is unable to change the ownership of "
29487 "non-root files, since vfat itself does not support this."
29488 msgstr ""
29489
29490 #. type: =item
29491 #: ../tools/virt-make-fs.pl:116
29492 msgid "I<minix>"
29493 msgstr ""
29494
29495 #. type: textblock
29496 #: ../tools/virt-make-fs.pl:118
29497 msgid ""
29498 "Lower overhead than C<ext2>, but certain limitations on filename length and "
29499 "total filesystem size."
29500 msgstr ""
29501
29502 #. type: verbatim
29503 #: ../tools/virt-make-fs.pl:125
29504 #, no-wrap
29505 msgid ""
29506 " virt-make-fs --type=minix input minixfs.img\n"
29507 "\n"
29508 msgstr ""
29509
29510 #. type: =head2
29511 #: ../tools/virt-make-fs.pl:127
29512 msgid "TO PARTITION OR NOT TO PARTITION"
29513 msgstr ""
29514
29515 #. type: textblock
29516 #: ../tools/virt-make-fs.pl:129
29517 msgid "Optionally virt-make-fs can add a partition table to the output disk."
29518 msgstr ""
29519
29520 #. type: textblock
29521 #: ../tools/virt-make-fs.pl:131
29522 msgid ""
29523 "Adding a partition can make the disk image more compatible with certain "
29524 "virtualized operating systems which don't expect to see a filesystem "
29525 "directly located on a block device (Linux doesn't care and will happily "
29526 "handle both types)."
29527 msgstr ""
29528
29529 #. type: textblock
29530 #: ../tools/virt-make-fs.pl:136
29531 msgid ""
29532 "On the other hand, if you have a partition table then the output image is no "
29533 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
29534 "directly on a partitioned disk image.  (However libguestfs tools such as "
29535 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
29536 msgstr ""
29537
29538 #. type: textblock
29539 #: ../tools/virt-make-fs.pl:144
29540 msgid "Add an MBR partition:"
29541 msgstr ""
29542
29543 #. type: verbatim
29544 #: ../tools/virt-make-fs.pl:146
29545 #, no-wrap
29546 msgid ""
29547 " virt-make-fs --partition -- input disk.img\n"
29548 "\n"
29549 msgstr ""
29550
29551 #. type: textblock
29552 #: ../tools/virt-make-fs.pl:148
29553 msgid ""
29554 "If the output disk image could be terabyte-sized or larger, it's better to "
29555 "use an EFI/GPT-compatible partition table:"
29556 msgstr ""
29557
29558 #. type: verbatim
29559 #: ../tools/virt-make-fs.pl:151
29560 #, no-wrap
29561 msgid ""
29562 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
29563 "\n"
29564 msgstr ""
29565
29566 #. type: textblock
29567 #: ../tools/virt-make-fs.pl:179
29568 msgid "Enable debugging information."
29569 msgstr ""
29570
29571 #. type: =item
29572 #: ../tools/virt-make-fs.pl:185
29573 msgid "B<--size=E<lt>NE<gt>>"
29574 msgstr ""
29575
29576 #. type: =item
29577 #: ../tools/virt-make-fs.pl:187
29578 msgid "B<--size=+E<lt>NE<gt>>"
29579 msgstr ""
29580
29581 #. type: =item
29582 #: ../tools/virt-make-fs.pl:189
29583 msgid "B<-s E<lt>NE<gt>>"
29584 msgstr ""
29585
29586 #. type: =item
29587 #: ../tools/virt-make-fs.pl:191
29588 msgid "B<-s +E<lt>NE<gt>>"
29589 msgstr ""
29590
29591 #. type: textblock
29592 #: ../tools/virt-make-fs.pl:193
29593 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
29594 msgstr ""
29595
29596 #. type: textblock
29597 #: ../tools/virt-make-fs.pl:196
29598 msgid ""
29599 "If this option is I<not> given, then the output image will be just large "
29600 "enough to contain all the files, with not much wasted space."
29601 msgstr ""
29602
29603 #. type: textblock
29604 #: ../tools/virt-make-fs.pl:199
29605 msgid ""
29606 "To choose a fixed size output disk, specify an absolute number followed by "
29607 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29608 "Petabytes or Exabytes.  This must be large enough to contain all the input "
29609 "files, else you will get an error."
29610 msgstr ""
29611
29612 #. type: textblock
29613 #: ../tools/virt-make-fs.pl:204
29614 msgid ""
29615 "To leave extra space, specify C<+> (plus sign) and a number followed by "
29616 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29617 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
29618 "the input files, and (approximately) an extra 200 MB free space."
29619 msgstr ""
29620
29621 #. type: textblock
29622 #: ../tools/virt-make-fs.pl:210
29623 msgid ""
29624 "Note that virt-make-fs estimates free space, and therefore will not produce "
29625 "filesystems containing precisely the free space requested.  (It is much more "
29626 "expensive and time-consuming to produce a filesystem which has precisely the "
29627 "desired free space)."
29628 msgstr ""
29629
29630 #. type: =item
29631 #: ../tools/virt-make-fs.pl:219
29632 msgid "B<--format=E<lt>fmtE<gt>>"
29633 msgstr ""
29634
29635 #. type: =item
29636 #: ../tools/virt-make-fs.pl:221
29637 msgid "B<-F E<lt>fmtE<gt>>"
29638 msgstr ""
29639
29640 #. type: textblock
29641 #: ../tools/virt-make-fs.pl:223
29642 msgid "Choose the output disk image format."
29643 msgstr ""
29644
29645 #. type: textblock
29646 #: ../tools/virt-make-fs.pl:225
29647 msgid "The default is C<raw> (raw disk image)."
29648 msgstr ""
29649
29650 #. type: textblock
29651 #: ../tools/virt-make-fs.pl:227
29652 msgid ""
29653 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
29654 "that would really make sense here is C<qcow2>."
29655 msgstr ""
29656
29657 #. type: =item
29658 #: ../tools/virt-make-fs.pl:234
29659 msgid "B<--type=E<lt>fsE<gt>>"
29660 msgstr ""
29661
29662 #. type: =item
29663 #: ../tools/virt-make-fs.pl:236
29664 msgid "B<-t E<lt>fsE<gt>>"
29665 msgstr ""
29666
29667 #. type: textblock
29668 #: ../tools/virt-make-fs.pl:238
29669 msgid "Choose the output filesystem type."
29670 msgstr ""
29671
29672 #. type: textblock
29673 #: ../tools/virt-make-fs.pl:240
29674 msgid "The default is C<ext2>."
29675 msgstr ""
29676
29677 #. type: textblock
29678 #: ../tools/virt-make-fs.pl:242
29679 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
29680 msgstr ""
29681
29682 #. type: =item
29683 #: ../tools/virt-make-fs.pl:249
29684 msgid "B<--partition>"
29685 msgstr ""
29686
29687 #. type: =item
29688 #: ../tools/virt-make-fs.pl:251
29689 msgid "B<--partition=E<lt>parttypeE<gt>>"
29690 msgstr ""
29691
29692 #. type: textblock
29693 #: ../tools/virt-make-fs.pl:253
29694 msgid ""
29695 "If specified, this flag adds an MBR partition table to the output disk "
29696 "image."
29697 msgstr ""
29698
29699 #. type: textblock
29700 #: ../tools/virt-make-fs.pl:256
29701 msgid ""
29702 "You can change the partition table type, eg. C<--partition=gpt> for large "
29703 "disks."
29704 msgstr ""
29705
29706 #. type: textblock
29707 #: ../tools/virt-make-fs.pl:259
29708 msgid ""
29709 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
29710 "might consider the next parameter to be the partition type.  For example:"
29711 msgstr ""
29712
29713 #. type: verbatim
29714 #: ../tools/virt-make-fs.pl:263
29715 #, no-wrap
29716 msgid ""
29717 " virt-make-fs --partition input.tar ...\n"
29718 "\n"
29719 msgstr ""
29720
29721 #. type: textblock
29722 #: ../tools/virt-make-fs.pl:265
29723 msgid ""
29724 "would cause virt-make-fs to think you wanted to use a partition type of "
29725 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
29726 "dash) between options and the input file argument:"
29727 msgstr ""
29728
29729 #. type: verbatim
29730 #: ../tools/virt-make-fs.pl:269
29731 #, no-wrap
29732 msgid ""
29733 " virt-make-fs --partition -- input.tar ...\n"
29734 "\n"
29735 msgstr ""
29736
29737 #. type: textblock
29738 #: ../tools/virt-make-fs.pl:536
29739 msgid ""
29740 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
29741 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
29742 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29743 msgstr ""
29744
29745 #. type: verbatim
29746 #: ../tools/virt-make-fs.pl:553
29747 #, no-wrap
29748 msgid ""
29749 " export LIBGUESTFS_DEBUG=1\n"
29750 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29751 "\n"
29752 msgstr ""
29753
29754 #. type: textblock
29755 #: ../tools/virt-make-fs.pl:556
29756 msgid ""
29757 "Attach /tmp/virt-make-fs.log to a new bug report at "
29758 "L<https://bugzilla.redhat.com/>"
29759 msgstr ""
29760
29761 #. type: textblock
29762 #: ../tools/virt-list-partitions.pl:32
29763 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
29764 msgstr ""
29765
29766 #. type: verbatim
29767 #: ../tools/virt-list-partitions.pl:36
29768 #, no-wrap
29769 msgid ""
29770 " virt-list-partitions [--options] domname\n"
29771 "\n"
29772 msgstr ""
29773
29774 #. type: verbatim
29775 #: ../tools/virt-list-partitions.pl:38
29776 #, no-wrap
29777 msgid ""
29778 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29779 "\n"
29780 msgstr ""
29781
29782 #. type: textblock
29783 #: ../tools/virt-list-partitions.pl:45
29784 msgid ""
29785 "C<virt-list-partitions> is a command line tool to list the partitions that "
29786 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29787 "first step to using L<virt-resize(1)>."
29788 msgstr ""
29789
29790 #. type: textblock
29791 #: ../tools/virt-list-partitions.pl:50
29792 msgid ""
29793 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
29794 "functionality.  For more complex cases you should look at the "
29795 "L<guestfish(1)> tool."
29796 msgstr ""
29797
29798 #. type: =item
29799 #: ../tools/virt-list-partitions.pl:107
29800 msgid "B<-h> | B<--human-readable>"
29801 msgstr ""
29802
29803 #. type: textblock
29804 #: ../tools/virt-list-partitions.pl:109
29805 msgid "Show sizes in human-readable form (eg. \"1G\")."
29806 msgstr ""
29807
29808 #. type: textblock
29809 #: ../tools/virt-list-partitions.pl:117
29810 msgid ""
29811 "With this option, C<virt-list-partitions> displays the type and size of each "
29812 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
29813 msgstr ""
29814
29815 #. type: =item
29816 #: ../tools/virt-list-partitions.pl:124
29817 msgid "B<-t> | B<--total>"
29818 msgstr ""
29819
29820 #. type: textblock
29821 #: ../tools/virt-list-partitions.pl:126
29822 msgid "Display the total size of each block device (as a separate row or rows)."
29823 msgstr ""
29824
29825 #. type: textblock
29826 #: ../tools/virt-list-partitions.pl:259
29827 msgid ""
29828 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
29829 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
29830 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29831 msgstr ""