Version 1.7.23.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2010-12-12 21:33+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33
23 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
24 #: ../tools/virt-tar.pl:29 ../tools/virt-make-fs.pl:33
25 #: ../tools/virt-list-partitions.pl:28
26 msgid "utf8"
27 msgstr ""
28
29 # type: =head1
30 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
31 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
32 #: ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35
33 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
34 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
35 #: ../tools/virt-list-partitions.pl:30
36 msgid "NAME"
37 msgstr "名前"
38
39 # type: textblock
40 #: ../src/guestfs.pod:5
41 msgid "guestfs - Library for accessing and modifying virtual machine images"
42 msgstr ""
43
44 # type: =head1
45 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
46 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
47 #: ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39
48 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
49 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
50 #: ../tools/virt-list-partitions.pl:34
51 msgid "SYNOPSIS"
52 msgstr ""
53
54 # type: verbatim
55 #: ../src/guestfs.pod:9
56 #, no-wrap
57 msgid ""
58 " #include <guestfs.h>\n"
59 " \n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:11
64 #, no-wrap
65 msgid ""
66 " guestfs_h *g = guestfs_create ();\n"
67 " guestfs_add_drive (g, \"guest.img\");\n"
68 " guestfs_launch (g);\n"
69 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
70 " guestfs_touch (g, \"/hello\");\n"
71 " guestfs_umount (g, \"/\");\n"
72 " guestfs_close (g);\n"
73 "\n"
74 msgstr ""
75
76 # type: verbatim
77 #: ../src/guestfs.pod:19
78 #, no-wrap
79 msgid ""
80 " cc prog.c -o prog -lguestfs\n"
81 "or:\n"
82 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
83 "\n"
84 msgstr ""
85
86 # type: =head1
87 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
88 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
89 #: ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63
90 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
91 #: ../tools/virt-tar.pl:72 ../tools/virt-make-fs.pl:47
92 #: ../tools/virt-list-partitions.pl:40
93 msgid "DESCRIPTION"
94 msgstr ""
95
96 # type: textblock
97 #: ../src/guestfs.pod:25
98 msgid ""
99 "Libguestfs is a library for accessing and modifying guest disk images.  "
100 "Amongst the things this is good for: making batch configuration changes to "
101 "guests, getting disk used/free statistics (see also: virt-df), migrating "
102 "between virtualization systems (see also: virt-p2v), performing partial "
103 "backups, performing partial guest clones, cloning guests and changing "
104 "registry/UUID/hostname info, and much else besides."
105 msgstr ""
106
107 # type: textblock
108 #: ../src/guestfs.pod:33
109 msgid ""
110 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
111 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
112 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
113 "qcow2, vmdk."
114 msgstr ""
115
116 # type: textblock
117 #: ../src/guestfs.pod:38
118 msgid ""
119 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
120 "what filesystem is in each LV, etc.).  It can also run commands in the "
121 "context of the guest.  Also you can access filesystems over FUSE."
122 msgstr ""
123
124 # type: textblock
125 #: ../src/guestfs.pod:43
126 msgid ""
127 "Libguestfs is a library that can be linked with C and C++ management "
128 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
129 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
130 "line."
131 msgstr ""
132
133 # type: textblock
134 #: ../src/guestfs.pod:48
135 msgid ""
136 "You don't need to be root to use libguestfs, although obviously you do need "
137 "enough permissions to access the disk images."
138 msgstr ""
139
140 # type: textblock
141 #: ../src/guestfs.pod:51
142 msgid ""
143 "Libguestfs is a large API because it can do many things.  For a gentle "
144 "introduction, please read the L</API OVERVIEW> section next."
145 msgstr ""
146
147 # type: textblock
148 #: ../src/guestfs.pod:54
149 msgid ""
150 "There are also some example programs in the L<guestfs-examples(3)> manual "
151 "page."
152 msgstr ""
153
154 # type: =head1
155 #: ../src/guestfs.pod:57
156 msgid "API OVERVIEW"
157 msgstr ""
158
159 # type: textblock
160 #: ../src/guestfs.pod:59
161 msgid ""
162 "This section provides a gentler overview of the libguestfs API.  We also try "
163 "to group API calls together, where that may not be obvious from reading "
164 "about the individual calls in the main section of this manual."
165 msgstr ""
166
167 # type: =head2
168 #: ../src/guestfs.pod:64
169 msgid "HANDLES"
170 msgstr ""
171
172 # type: textblock
173 #: ../src/guestfs.pod:66
174 msgid ""
175 "Before you can use libguestfs calls, you have to create a handle.  Then you "
176 "must add at least one disk image to the handle, followed by launching the "
177 "handle, then performing whatever operations you want, and finally closing "
178 "the handle.  By convention we use the single letter C<g> for the name of the "
179 "handle variable, although of course you can use any name you want."
180 msgstr ""
181
182 # type: textblock
183 #: ../src/guestfs.pod:73
184 msgid "The general structure of all libguestfs-using programs looks like this:"
185 msgstr ""
186
187 # type: verbatim
188 #: ../src/guestfs.pod:76
189 #, no-wrap
190 msgid ""
191 " guestfs_h *g = guestfs_create ();\n"
192 " \n"
193 msgstr ""
194
195 # type: verbatim
196 #: ../src/guestfs.pod:78
197 #, no-wrap
198 msgid ""
199 " /* Call guestfs_add_drive additional times if there are\n"
200 "  * multiple disk images.\n"
201 "  */\n"
202 " guestfs_add_drive (g, \"guest.img\");\n"
203 " \n"
204 msgstr ""
205
206 # type: verbatim
207 #: ../src/guestfs.pod:83
208 #, no-wrap
209 msgid ""
210 " /* Most manipulation calls won't work until you've launched\n"
211 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
212 "  * and _before_ other commands.\n"
213 "  */\n"
214 " guestfs_launch (g);\n"
215 " \n"
216 msgstr ""
217
218 # type: verbatim
219 #: ../src/guestfs.pod:89
220 #, no-wrap
221 msgid ""
222 " /* Now you can examine what partitions, LVs etc are available.\n"
223 "  */\n"
224 " char **partitions = guestfs_list_partitions (g);\n"
225 " char **logvols = guestfs_lvs (g);\n"
226 " \n"
227 msgstr ""
228
229 # type: verbatim
230 #: ../src/guestfs.pod:94
231 #, no-wrap
232 msgid ""
233 " /* To access a filesystem in the image, you must mount it.\n"
234 "  */\n"
235 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
236 " \n"
237 msgstr ""
238
239 # type: verbatim
240 #: ../src/guestfs.pod:98
241 #, no-wrap
242 msgid ""
243 " /* Now you can perform filesystem actions on the guest\n"
244 "  * disk image.\n"
245 "  */\n"
246 " guestfs_touch (g, \"/hello\");\n"
247 "\n"
248 msgstr ""
249
250 # type: verbatim
251 #: ../src/guestfs.pod:103
252 #, no-wrap
253 msgid ""
254 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
255 "  * it is done automatically when you close the handle.  See\n"
256 "  * discussion of autosync in this page.\n"
257 "  */\n"
258 " guestfs_sync (g);\n"
259 " \n"
260 msgstr ""
261
262 # type: verbatim
263 #: ../src/guestfs.pod:109
264 #, no-wrap
265 msgid ""
266 " /* Close the handle 'g'. */\n"
267 " guestfs_close (g);\n"
268 "\n"
269 msgstr ""
270
271 # type: textblock
272 #: ../src/guestfs.pod:112
273 msgid ""
274 "The code above doesn't include any error checking.  In real code you should "
275 "check return values carefully for errors.  In general all functions that "
276 "return integers return C<-1> on error, and all functions that return "
277 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
278 "how to handle errors, and consult the documentation for each function call "
279 "below to see precisely how they return error indications.  See L<guestfs-"
280 "examples(3)> for fully worked examples."
281 msgstr ""
282
283 # type: =head2
284 #: ../src/guestfs.pod:121
285 msgid "DISK IMAGES"
286 msgstr ""
287
288 # type: textblock
289 #: ../src/guestfs.pod:123
290 msgid ""
291 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
292 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
293 "actual block device, or simply an empty file of zeroes that you have created "
294 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
295 "of these."
296 msgstr ""
297
298 # type: textblock
299 #: ../src/guestfs.pod:129
300 msgid ""
301 "The call you should use in modern code for adding drives is L</"
302 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
303 "specifying that the format is raw, do:"
304 msgstr ""
305
306 # type: verbatim
307 #: ../src/guestfs.pod:133
308 #, no-wrap
309 msgid ""
310 " guestfs_add_drive_opts (g, filename,\n"
311 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
312 "                         -1);\n"
313 "\n"
314 msgstr ""
315
316 # type: textblock
317 #: ../src/guestfs.pod:137
318 msgid "You can add a disk read-only using:"
319 msgstr ""
320
321 # type: verbatim
322 #: ../src/guestfs.pod:139
323 #, no-wrap
324 msgid ""
325 " guestfs_add_drive_opts (g, filename,\n"
326 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
327 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
328 "                         -1);\n"
329 "\n"
330 msgstr ""
331
332 # type: textblock
333 #: ../src/guestfs.pod:144
334 msgid ""
335 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
336 "libguestfs won't modify the file."
337 msgstr ""
338
339 # type: textblock
340 #: ../src/guestfs.pod:147
341 msgid ""
342 "Be extremely cautious if the disk image is in use, eg. if it is being used "
343 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
344 "corruption, but adding it read-only is safe."
345 msgstr ""
346
347 # type: textblock
348 #: ../src/guestfs.pod:151
349 msgid ""
350 "You must add at least one disk image, and you may add multiple disk images.  "
351 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
352 "first one you added), C</dev/sdb> (for the second one you added), etc."
353 msgstr ""
354
355 # type: textblock
356 #: ../src/guestfs.pod:156
357 msgid ""
358 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
359 "can call L</guestfs_list_devices> to get a list of the device names, in the "
360 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
361 msgstr ""
362
363 # type: =head2
364 #: ../src/guestfs.pod:161
365 msgid "MOUNTING"
366 msgstr ""
367
368 # type: textblock
369 #: ../src/guestfs.pod:163
370 msgid ""
371 "Before you can read or write files, create directories and so on in a disk "
372 "image that contains filesystems, you have to mount those filesystems using "
373 "L</guestfs_mount>.  If you already know that a disk image contains (for "
374 "example) one partition with a filesystem on that partition, then you can "
375 "mount it directly:"
376 msgstr ""
377
378 # type: verbatim
379 #: ../src/guestfs.pod:169
380 #, no-wrap
381 msgid ""
382 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
383 "\n"
384 msgstr ""
385
386 # type: textblock
387 #: ../src/guestfs.pod:171
388 msgid ""
389 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
390 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
391 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
392 msgstr ""
393
394 # type: textblock
395 #: ../src/guestfs.pod:175
396 msgid ""
397 "If you are given a disk image and you don't know what it contains then you "
398 "have to find out.  Libguestfs can do that too: use L</"
399 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
400 "LVs, and either try mounting each to see what is mountable, or else examine "
401 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
402 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
403 "you might find it easier to look at higher level programs built on top of "
404 "libguestfs, in particular L<virt-inspector(1)>."
405 msgstr ""
406
407 # type: textblock
408 #: ../src/guestfs.pod:185
409 msgid ""
410 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
411 "several other variations of the C<guestfs_mount_*> call."
412 msgstr ""
413
414 # type: =head2
415 #: ../src/guestfs.pod:188
416 msgid "FILESYSTEM ACCESS AND MODIFICATION"
417 msgstr ""
418
419 # type: textblock
420 #: ../src/guestfs.pod:190
421 msgid ""
422 "The majority of the libguestfs API consists of fairly low-level calls for "
423 "accessing and modifying the files, directories, symlinks etc on mounted "
424 "filesystems.  There are over a hundred such calls which you can find listed "
425 "in detail below in this man page, and we don't even pretend to cover them "
426 "all in this overview."
427 msgstr ""
428
429 # type: textblock
430 #: ../src/guestfs.pod:196
431 msgid ""
432 "Specify filenames as full paths, starting with C<\"/\"> and including the "
433 "mount point."
434 msgstr ""
435
436 # type: textblock
437 #: ../src/guestfs.pod:199
438 msgid ""
439 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
440 "the file called C<\"etc/passwd\"> then you could do:"
441 msgstr ""
442
443 # type: verbatim
444 #: ../src/guestfs.pod:202
445 #, no-wrap
446 msgid ""
447 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
448 "\n"
449 msgstr ""
450
451 # type: textblock
452 #: ../src/guestfs.pod:204
453 msgid ""
454 "This would return C<data> as a newly allocated buffer containing the full "
455 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
456 "or C<NULL> if there was an error."
457 msgstr ""
458
459 # type: textblock
460 #: ../src/guestfs.pod:208
461 msgid ""
462 "As another example, to create a top-level directory on that filesystem "
463 "called C<\"var\"> you would do:"
464 msgstr ""
465
466 # type: verbatim
467 #: ../src/guestfs.pod:211
468 #, no-wrap
469 msgid ""
470 " guestfs_mkdir (g, \"/var\");\n"
471 "\n"
472 msgstr ""
473
474 # type: textblock
475 #: ../src/guestfs.pod:213
476 msgid "To create a symlink you could do:"
477 msgstr ""
478
479 # type: verbatim
480 #: ../src/guestfs.pod:215
481 #, no-wrap
482 msgid ""
483 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
484 "               \"/etc/rc3.d/S30portmap\");\n"
485 "\n"
486 msgstr ""
487
488 # type: textblock
489 #: ../src/guestfs.pod:218
490 msgid ""
491 "Libguestfs will reject attempts to use relative paths and there is no "
492 "concept of a current working directory."
493 msgstr ""
494
495 # type: textblock
496 #: ../src/guestfs.pod:221
497 msgid ""
498 "Libguestfs can return errors in many situations: for example if the "
499 "filesystem isn't writable, or if a file or directory that you requested "
500 "doesn't exist.  If you are using the C API (documented here)  you have to "
501 "check for those error conditions after each call.  (Other language bindings "
502 "turn these errors into exceptions)."
503 msgstr ""
504
505 # type: textblock
506 #: ../src/guestfs.pod:227
507 msgid ""
508 "File writes are affected by the per-handle umask, set by calling L</"
509 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
510 msgstr ""
511
512 # type: =head2
513 #: ../src/guestfs.pod:230
514 msgid "PARTITIONING"
515 msgstr ""
516
517 # type: textblock
518 #: ../src/guestfs.pod:232
519 msgid ""
520 "Libguestfs contains API calls to read, create and modify partition tables on "
521 "disk images."
522 msgstr ""
523
524 # type: textblock
525 #: ../src/guestfs.pod:235
526 msgid ""
527 "In the common case where you want to create a single partition covering the "
528 "whole disk, you should use the L</guestfs_part_disk> call:"
529 msgstr ""
530
531 # type: verbatim
532 #: ../src/guestfs.pod:239
533 #, no-wrap
534 msgid ""
535 " const char *parttype = \"mbr\";\n"
536 " if (disk_is_larger_than_2TB)\n"
537 "   parttype = \"gpt\";\n"
538 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
539 "\n"
540 msgstr ""
541
542 # type: textblock
543 #: ../src/guestfs.pod:244
544 msgid ""
545 "Obviously this effectively wipes anything that was on that disk image before."
546 msgstr ""
547
548 # type: =head2
549 #: ../src/guestfs.pod:247
550 msgid "LVM2"
551 msgstr ""
552
553 # type: textblock
554 #: ../src/guestfs.pod:249
555 msgid ""
556 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
557 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
558 "you familiarize yourself with the concepts of physical volumes, volume "
559 "groups and logical volumes."
560 msgstr ""
561
562 # type: textblock
563 #: ../src/guestfs.pod:254
564 msgid ""
565 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
566 "tldp.org/HOWTO/LVM-HOWTO/>."
567 msgstr ""
568
569 # type: =head2
570 #: ../src/guestfs.pod:257
571 msgid "DOWNLOADING"
572 msgstr ""
573
574 # type: textblock
575 #: ../src/guestfs.pod:259
576 msgid ""
577 "Use L</guestfs_cat> to download small, text only files.  This call is "
578 "limited to files which are less than 2 MB and which cannot contain any ASCII "
579 "NUL (C<\\0>) characters.  However it has a very simple to use API."
580 msgstr ""
581
582 # type: textblock
583 #: ../src/guestfs.pod:264
584 msgid ""
585 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
586 "bit data, since it returns a (pointer, size) pair.  However it is still "
587 "limited to \"small\" files, less than 2 MB."
588 msgstr ""
589
590 # type: textblock
591 #: ../src/guestfs.pod:268
592 msgid ""
593 "L</guestfs_download> can be used to download any file, with no limits on "
594 "content or size (even files larger than 4 GB)."
595 msgstr ""
596
597 # type: textblock
598 #: ../src/guestfs.pod:271
599 msgid ""
600 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
601 msgstr ""
602
603 # type: =head2
604 #: ../src/guestfs.pod:274
605 msgid "UPLOADING"
606 msgstr ""
607
608 # type: textblock
609 #: ../src/guestfs.pod:276
610 msgid ""
611 "It's often the case that you want to write a file or files to the disk image."
612 msgstr ""
613
614 # type: textblock
615 #: ../src/guestfs.pod:279
616 msgid ""
617 "To write a small file with fixed content, use L</guestfs_write>.  To create "
618 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
619 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
620 "of other functions for creating test files, for example L</guestfs_fill> and "
621 "L</guestfs_fill_pattern>."
622 msgstr ""
623
624 # type: textblock
625 #: ../src/guestfs.pod:285
626 msgid ""
627 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
628 "file content or size (even files larger than 4 GB)."
629 msgstr ""
630
631 # type: textblock
632 #: ../src/guestfs.pod:288
633 msgid ""
634 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
635 msgstr ""
636
637 # type: textblock
638 #: ../src/guestfs.pod:290
639 msgid ""
640 "However the fastest way to upload I<large numbers of arbitrary files> is to "
641 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
642 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
643 "in a predictable way (eg. adding it last after all other drives) then you "
644 "can get the device name from L</guestfs_list_devices> and mount it directly "
645 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
646 "portable between kernel versions, and they don't support labels or UUIDs.  "
647 "If you want to pre-build an image or you need to mount it using a label or "
648 "UUID, use an ISO image instead."
649 msgstr ""
650
651 # type: =head2
652 #: ../src/guestfs.pod:301
653 msgid "COPYING"
654 msgstr ""
655
656 # type: textblock
657 #: ../src/guestfs.pod:303
658 msgid ""
659 "There are various different commands for copying between files and devices "
660 "and in and out of the guest filesystem.  These are summarised in the table "
661 "below."
662 msgstr ""
663
664 # type: =item
665 #: ../src/guestfs.pod:309
666 msgid "B<file> to B<file>"
667 msgstr ""
668
669 # type: textblock
670 #: ../src/guestfs.pod:311
671 msgid ""
672 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
673 "directories recursively."
674 msgstr ""
675
676 # type: =item
677 #: ../src/guestfs.pod:314
678 msgid "B<file or device> to B<file or device>"
679 msgstr ""
680
681 # type: textblock
682 #: ../src/guestfs.pod:316
683 msgid ""
684 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
685 "devices in the guest."
686 msgstr ""
687
688 # type: textblock
689 #: ../src/guestfs.pod:319
690 msgid "Example: duplicate the contents of an LV:"
691 msgstr ""
692
693 # type: verbatim
694 #: ../src/guestfs.pod:321
695 #, no-wrap
696 msgid ""
697 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
698 "\n"
699 msgstr ""
700
701 # type: textblock
702 #: ../src/guestfs.pod:323
703 msgid ""
704 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
705 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
706 "guestfs_copy_size>."
707 msgstr ""
708
709 # type: =item
710 #: ../src/guestfs.pod:327
711 msgid "B<file on the host> to B<file or device>"
712 msgstr ""
713
714 # type: textblock
715 #: ../src/guestfs.pod:329
716 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
717 msgstr ""
718
719 # type: =item
720 #: ../src/guestfs.pod:331
721 msgid "B<file or device> to B<file on the host>"
722 msgstr ""
723
724 # type: textblock
725 #: ../src/guestfs.pod:333
726 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
727 msgstr ""
728
729 # type: =head2
730 #: ../src/guestfs.pod:337
731 msgid "LISTING FILES"
732 msgstr ""
733
734 # type: textblock
735 #: ../src/guestfs.pod:339
736 msgid ""
737 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
738 "L<guestfish(1)>-equivalent command C<ll>)."
739 msgstr ""
740
741 # type: textblock
742 #: ../src/guestfs.pod:342
743 msgid ""
744 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
745 "programs, as a flat list of strings."
746 msgstr ""
747
748 # type: textblock
749 #: ../src/guestfs.pod:345
750 msgid ""
751 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
752 "directory, plus additional information about each one.  It is more "
753 "equivalent to using the L<readdir(3)> call on a local filesystem."
754 msgstr ""
755
756 # type: textblock
757 #: ../src/guestfs.pod:349
758 msgid ""
759 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
760 msgstr ""
761
762 # type: =head2
763 #: ../src/guestfs.pod:352
764 msgid "RUNNING COMMANDS"
765 msgstr ""
766
767 # type: textblock
768 #: ../src/guestfs.pod:354
769 msgid ""
770 "Although libguestfs is primarily an API for manipulating files inside guest "
771 "images, we also provide some limited facilities for running commands inside "
772 "guests."
773 msgstr ""
774
775 # type: textblock
776 #: ../src/guestfs.pod:358
777 msgid "There are many limitations to this:"
778 msgstr ""
779
780 # type: =item
781 #: ../src/guestfs.pod:362 ../src/guestfs.pod:367 ../src/guestfs.pod:372
782 #: ../src/guestfs.pod:376 ../src/guestfs.pod:381 ../src/guestfs.pod:385
783 #: ../src/guestfs.pod:390 ../src/guestfs.pod:395 ../src/guestfs.pod:954
784 #: ../src/guestfs.pod:958 ../src/guestfs.pod:962 ../src/guestfs.pod:967
785 #: ../src/guestfs.pod:975 ../src/guestfs.pod:994 ../src/guestfs.pod:1002
786 #: ../src/guestfs.pod:1024 ../src/guestfs.pod:1028 ../src/guestfs.pod:1032
787 #: ../src/guestfs.pod:1036 ../src/guestfs.pod:1040 ../src/guestfs.pod:1044
788 #: ../src/guestfs.pod:1526 ../src/guestfs.pod:1531 ../src/guestfs.pod:1535
789 #: ../src/guestfs.pod:1645 ../src/guestfs.pod:1650 ../src/guestfs.pod:1654
790 #: ../src/guestfs.pod:2006 ../src/guestfs.pod:2012 ../src/guestfs.pod:2017
791 #: ../src/guestfs.pod:2023 ../src/guestfs.pod:2135 ../src/guestfs.pod:2139
792 #: ../src/guestfs.pod:2143 ../src/guestfs.pod:2147
793 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
794 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:579
795 #: ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:593
796 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:1593
797 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:1601
798 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1613
799 #: ../src/guestfs-actions.pod:1617 ../src/guestfs-actions.pod:1627
800 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1635
801 #: ../src/guestfs-actions.pod:1773 ../src/guestfs-actions.pod:1777
802 #: ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1787
803 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:1852
804 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish.pod:427
805 #: ../fish/guestfish.pod:431 ../fish/guestfish.pod:435
806 #: ../fish/guestfish.pod:439 ../fish/guestfish-actions.pod:13
807 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
808 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
809 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
810 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
811 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
812 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
813 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
814 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
815 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
816 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
817 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
818 #: ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542
819 #: ../tools/virt-win-reg.pl:548 ../tools/virt-resize.pl:345
820 #: ../tools/virt-resize.pl:350 ../tools/virt-resize.pl:360
821 msgid "*"
822 msgstr ""
823
824 # type: textblock
825 #: ../src/guestfs.pod:364
826 msgid ""
827 "The kernel version that the command runs under will be different from what "
828 "it expects."
829 msgstr ""
830
831 # type: textblock
832 #: ../src/guestfs.pod:369
833 msgid ""
834 "If the command needs to communicate with daemons, then most likely they "
835 "won't be running."
836 msgstr ""
837
838 # type: textblock
839 #: ../src/guestfs.pod:374
840 msgid "The command will be running in limited memory."
841 msgstr ""
842
843 # type: textblock
844 #: ../src/guestfs.pod:378
845 msgid ""
846 "The network may not be available unless you enable it (see L</"
847 "guestfs_set_network>)."
848 msgstr ""
849
850 # type: textblock
851 #: ../src/guestfs.pod:383
852 msgid "Only supports Linux guests (not Windows, BSD, etc)."
853 msgstr ""
854
855 # type: textblock
856 #: ../src/guestfs.pod:387
857 msgid ""
858 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
859 msgstr ""
860
861 # type: textblock
862 #: ../src/guestfs.pod:392
863 msgid ""
864 "For SELinux guests, you may need to enable SELinux and load policy first.  "
865 "See L</SELINUX> in this manpage."
866 msgstr ""
867
868 # type: textblock
869 #: ../src/guestfs.pod:397
870 msgid ""
871 "I<Security:> It is not safe to run commands from untrusted, possibly "
872 "malicious guests.  These commands may attempt to exploit your program by "
873 "sending unexpected output.  They could also try to exploit the Linux kernel "
874 "or qemu provided by the libguestfs appliance.  They could use the network "
875 "provided by the libguestfs appliance to bypass ordinary network partitions "
876 "and firewalls.  They could use the elevated privileges or different SELinux "
877 "context of your program to their advantage."
878 msgstr ""
879
880 # type: textblock
881 #: ../src/guestfs.pod:406
882 msgid ""
883 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
884 "(a script which runs when the guest next boots normally), and to have this "
885 "script run the commands you want in the normal context of the running guest, "
886 "network security and so on.  For information about other security issues, "
887 "see L</SECURITY>."
888 msgstr ""
889
890 # type: textblock
891 #: ../src/guestfs.pod:414
892 msgid ""
893 "The two main API calls to run commands are L</guestfs_command> and L</"
894 "guestfs_sh> (there are also variations)."
895 msgstr ""
896
897 # type: textblock
898 #: ../src/guestfs.pod:417
899 msgid ""
900 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
901 "shell globs, redirections, etc will work."
902 msgstr ""
903
904 # type: =head2
905 #: ../src/guestfs.pod:420
906 msgid "CONFIGURATION FILES"
907 msgstr ""
908
909 # type: textblock
910 #: ../src/guestfs.pod:422
911 msgid ""
912 "To read and write configuration files in Linux guest filesystems, we "
913 "strongly recommend using Augeas.  For example, Augeas understands how to "
914 "read and write, say, a Linux shadow password file or X.org configuration "
915 "file, and so avoids you having to write that code."
916 msgstr ""
917
918 # type: textblock
919 #: ../src/guestfs.pod:427
920 msgid ""
921 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
922 "document Augeas itself here because there is excellent documentation on the "
923 "L<http://augeas.net/> website."
924 msgstr ""
925
926 # type: textblock
927 #: ../src/guestfs.pod:431
928 msgid ""
929 "If you don't want to use Augeas (you fool!) then try calling L</"
930 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
931 "over."
932 msgstr ""
933
934 # type: =head2
935 #: ../src/guestfs.pod:435
936 msgid "SELINUX"
937 msgstr ""
938
939 # type: textblock
940 #: ../src/guestfs.pod:437
941 msgid ""
942 "We support SELinux guests.  To ensure that labeling happens correctly in "
943 "SELinux guests, you need to enable SELinux and load the guest's policy:"
944 msgstr ""
945
946 # type: =item
947 #: ../src/guestfs.pod:443 ../src/guestfs.pod:1147 ../src/guestfs.pod:1278
948 msgid "1."
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:445
953 msgid "Before launching, do:"
954 msgstr ""
955
956 # type: verbatim
957 #: ../src/guestfs.pod:447
958 #, no-wrap
959 msgid ""
960 " guestfs_set_selinux (g, 1);\n"
961 "\n"
962 msgstr ""
963
964 # type: =item
965 #: ../src/guestfs.pod:449 ../src/guestfs.pod:1151 ../src/guestfs.pod:1282
966 msgid "2."
967 msgstr ""
968
969 # type: textblock
970 #: ../src/guestfs.pod:451
971 msgid ""
972 "After mounting the guest's filesystem(s), load the policy.  This is best "
973 "done by running the L<load_policy(8)> command in the guest itself:"
974 msgstr ""
975
976 # type: verbatim
977 #: ../src/guestfs.pod:455
978 #, no-wrap
979 msgid ""
980 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
981 "\n"
982 msgstr ""
983
984 # type: textblock
985 #: ../src/guestfs.pod:457
986 msgid ""
987 "(Older versions of C<load_policy> require you to specify the name of the "
988 "policy file)."
989 msgstr ""
990
991 # type: =item
992 #: ../src/guestfs.pod:460 ../src/guestfs.pod:1288
993 msgid "3."
994 msgstr ""
995
996 # type: textblock
997 #: ../src/guestfs.pod:462
998 msgid ""
999 "Optionally, set the security context for the API.  The correct security "
1000 "context to use can only be known by inspecting the guest.  As an example:"
1001 msgstr ""
1002
1003 # type: verbatim
1004 #: ../src/guestfs.pod:466
1005 #, no-wrap
1006 msgid ""
1007 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1008 "\n"
1009 msgstr ""
1010
1011 # type: textblock
1012 #: ../src/guestfs.pod:470
1013 msgid "This will work for running commands and editing existing files."
1014 msgstr ""
1015
1016 # type: textblock
1017 #: ../src/guestfs.pod:472
1018 msgid ""
1019 "When new files are created, you may need to label them explicitly, for "
1020 "example by running the external command C<restorecon pathname>."
1021 msgstr ""
1022
1023 # type: =head2
1024 #: ../src/guestfs.pod:476
1025 msgid "UMASK"
1026 msgstr ""
1027
1028 # type: textblock
1029 #: ../src/guestfs.pod:478
1030 msgid ""
1031 "Certain calls are affected by the current file mode creation mask (the "
1032 "\"umask\").  In particular ones which create files or directories, such as "
1033 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1034 "either the default mode that the file is created with or modifies the mode "
1035 "that you supply."
1036 msgstr ""
1037
1038 # type: textblock
1039 #: ../src/guestfs.pod:484
1040 msgid ""
1041 "The default umask is C<022>, so files are created with modes such as C<0644> "
1042 "and directories with C<0755>."
1043 msgstr ""
1044
1045 # type: textblock
1046 #: ../src/guestfs.pod:487
1047 msgid ""
1048 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1049 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1050 "guestfs_chmod> after creating each file or directory."
1051 msgstr ""
1052
1053 # type: textblock
1054 #: ../src/guestfs.pod:491
1055 msgid "For more information about umask, see L<umask(2)>."
1056 msgstr ""
1057
1058 # type: =head1
1059 #: ../src/guestfs.pod:493 ../fish/guestfish.pod:720
1060 msgid "ENCRYPTED DISKS"
1061 msgstr ""
1062
1063 # type: textblock
1064 #: ../src/guestfs.pod:495
1065 msgid ""
1066 "Libguestfs allows you to access Linux guests which have been encrypted using "
1067 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1068 "standard.  This includes nearly all whole disk encryption systems used by "
1069 "modern Linux guests."
1070 msgstr ""
1071
1072 # type: textblock
1073 #: ../src/guestfs.pod:501
1074 msgid ""
1075 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1076 "returns the string C<crypto_LUKS>)."
1077 msgstr ""
1078
1079 # type: textblock
1080 #: ../src/guestfs.pod:504
1081 msgid ""
1082 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1083 "will require the passphrase!"
1084 msgstr ""
1085
1086 # type: textblock
1087 #: ../src/guestfs.pod:507
1088 msgid ""
1089 "Opening a LUKS device creates a new device mapper device called C</dev/"
1090 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1091 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1092 "from and encrypted to the underlying block device respectively."
1093 msgstr ""
1094
1095 # type: textblock
1096 #: ../src/guestfs.pod:513
1097 msgid ""
1098 "LVM volume groups on the device can be made visible by calling L</"
1099 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1100 "(s) can now be mounted in the usual way."
1101 msgstr ""
1102
1103 # type: textblock
1104 #: ../src/guestfs.pod:517
1105 msgid ""
1106 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1107 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1108 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1109 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1110 "underlying encrypted block device)."
1111 msgstr ""
1112
1113 # type: =head2
1114 #: ../src/guestfs.pod:524
1115 msgid "INSPECTION"
1116 msgstr ""
1117
1118 # type: textblock
1119 #: ../src/guestfs.pod:526
1120 msgid ""
1121 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1122 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1123 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1124 "frequently used part of this library has been rewritten in C and moved into "
1125 "the core code)."
1126 msgstr ""
1127
1128 # type: textblock
1129 #: ../src/guestfs.pod:532
1130 msgid ""
1131 "Add all disks belonging to the unknown virtual machine and call L</"
1132 "guestfs_launch> in the usual way."
1133 msgstr ""
1134
1135 # type: textblock
1136 #: ../src/guestfs.pod:535
1137 msgid ""
1138 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1139 "and certain heuristics, and returns a list of operating systems that were "
1140 "found.  An empty list means none were found.  A single element is the root "
1141 "filesystem of the operating system.  For dual- or multi-boot guests, "
1142 "multiple roots can be returned, each one corresponding to a separate "
1143 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1144 "world of virtualization, but since this scenario can happen, we have built "
1145 "libguestfs to deal with it.)"
1146 msgstr ""
1147
1148 # type: textblock
1149 #: ../src/guestfs.pod:544
1150 msgid ""
1151 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1152 "to get additional details about that operating system.  For example, call L</"
1153 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1154 "Windows and Linux-based operating systems respectively."
1155 msgstr ""
1156
1157 # type: textblock
1158 #: ../src/guestfs.pod:550
1159 msgid ""
1160 "Un*x-like and Linux-based operating systems usually consist of several "
1161 "filesystems which are mounted at boot time (for example, a separate boot "
1162 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1163 "filesystems correspond to mount points.  Call "
1164 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1165 "hash table like this example:"
1166 msgstr ""
1167
1168 # type: verbatim
1169 #: ../src/guestfs.pod:557
1170 #, no-wrap
1171 msgid ""
1172 " /boot => /dev/sda1\n"
1173 " /     => /dev/vg_guest/lv_root\n"
1174 " /usr  => /dev/vg_guest/lv_usr\n"
1175 "\n"
1176 msgstr ""
1177
1178 # type: textblock
1179 #: ../src/guestfs.pod:561
1180 msgid ""
1181 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1182 "filesystems as suggested."
1183 msgstr ""
1184
1185 # type: textblock
1186 #: ../src/guestfs.pod:564
1187 msgid ""
1188 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1189 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1190 msgstr ""
1191
1192 # type: textblock
1193 #: ../src/guestfs.pod:568
1194 msgid ""
1195 "Inspection currently only works for some common operating systems.  "
1196 "Contributors are welcome to send patches for other operating systems that we "
1197 "currently cannot detect."
1198 msgstr ""
1199
1200 # type: textblock
1201 #: ../src/guestfs.pod:572
1202 msgid ""
1203 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1204 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1205 "encrypted devices."
1206 msgstr ""
1207
1208 # type: textblock
1209 #: ../src/guestfs.pod:576
1210 msgid ""
1211 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1212 "inspection and caches the results in the guest handle.  Subsequent calls to "
1213 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1214 "read the disks.  If you change the content of the guest disks, you can redo "
1215 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1216 "guestfs_inspect_list_applications> works a little differently from the other "
1217 "calls and does read the disks.  See documentation for that function for "
1218 "details)."
1219 msgstr ""
1220
1221 # type: =head2
1222 #: ../src/guestfs.pod:585
1223 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1224 msgstr ""
1225
1226 # type: textblock
1227 #: ../src/guestfs.pod:587
1228 msgid ""
1229 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1230 "ntfs-3g.org/> driver."
1231 msgstr ""
1232
1233 # type: textblock
1234 #: ../src/guestfs.pod:590
1235 msgid ""
1236 "DOS and Windows still use drive letters, and the filesystems are always "
1237 "treated as case insensitive by Windows itself, and therefore you might find "
1238 "a Windows configuration file referring to a path like C<c:\\windows"
1239 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1240 "might be referred to as C</WINDOWS/System32>."
1241 msgstr ""
1242
1243 # type: textblock
1244 #: ../src/guestfs.pod:596
1245 msgid ""
1246 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1247 "libguestfs to read the appropriate Windows Registry and configuration files, "
1248 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1249 "inspector(1)>)."
1250 msgstr ""
1251
1252 # type: textblock
1253 #: ../src/guestfs.pod:601
1254 msgid ""
1255 "Replacing backslash characters with forward slash characters is also outside "
1256 "the scope of libguestfs, but something that you can easily do."
1257 msgstr ""
1258
1259 # type: textblock
1260 #: ../src/guestfs.pod:604
1261 msgid ""
1262 "Where we can help is in resolving the case insensitivity of paths.  For "
1263 "this, call L</guestfs_case_sensitive_path>."
1264 msgstr ""
1265
1266 # type: textblock
1267 #: ../src/guestfs.pod:607
1268 msgid ""
1269 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1270 "files, through the library C<hivex> which is part of the libguestfs project "
1271 "although ships as a separate tarball.  You have to locate and download the "
1272 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1273 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1274 "reg(1)> for more help on this issue."
1275 msgstr ""
1276
1277 # type: =head2
1278 #: ../src/guestfs.pod:615
1279 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1280 msgstr ""
1281
1282 # type: textblock
1283 #: ../src/guestfs.pod:617
1284 msgid ""
1285 "Although we don't want to discourage you from using the C API, we will "
1286 "mention here that the same API is also available in other languages."
1287 msgstr ""
1288
1289 # type: textblock
1290 #: ../src/guestfs.pod:620
1291 msgid ""
1292 "The API is broadly identical in all supported languages.  This means that "
1293 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1294 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1295 "words, a straightforward, predictable isomorphism between each language."
1296 msgstr ""
1297
1298 # type: textblock
1299 #: ../src/guestfs.pod:626
1300 msgid ""
1301 "Error messages are automatically transformed into exceptions if the language "
1302 "supports it."
1303 msgstr ""
1304
1305 # type: textblock
1306 #: ../src/guestfs.pod:629
1307 msgid ""
1308 "We don't try to \"object orientify\" parts of the API in OO languages, "
1309 "although contributors are welcome to write higher level APIs above what we "
1310 "provide in their favourite languages if they wish."
1311 msgstr ""
1312
1313 # type: =item
1314 #: ../src/guestfs.pod:635
1315 msgid "B<C++>"
1316 msgstr ""
1317
1318 # type: textblock
1319 #: ../src/guestfs.pod:637
1320 msgid ""
1321 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1322 "identical to the C API.  C++ classes and exceptions are not used."
1323 msgstr ""
1324
1325 # type: =item
1326 #: ../src/guestfs.pod:641
1327 msgid "B<C#>"
1328 msgstr ""
1329
1330 # type: textblock
1331 #: ../src/guestfs.pod:643
1332 msgid ""
1333 "The C# bindings are highly experimental.  Please read the warnings at the "
1334 "top of C<csharp/Libguestfs.cs>."
1335 msgstr ""
1336
1337 # type: =item
1338 #: ../src/guestfs.pod:646
1339 msgid "B<Haskell>"
1340 msgstr ""
1341
1342 # type: textblock
1343 #: ../src/guestfs.pod:648
1344 msgid ""
1345 "This is the only language binding that is working but incomplete.  Only "
1346 "calls which return simple integers have been bound in Haskell, and we are "
1347 "looking for help to complete this binding."
1348 msgstr ""
1349
1350 # type: =item
1351 #: ../src/guestfs.pod:652
1352 msgid "B<Java>"
1353 msgstr ""
1354
1355 # type: textblock
1356 #: ../src/guestfs.pod:654
1357 msgid ""
1358 "Full documentation is contained in the Javadoc which is distributed with "
1359 "libguestfs."
1360 msgstr ""
1361
1362 # type: =item
1363 #: ../src/guestfs.pod:657
1364 msgid "B<OCaml>"
1365 msgstr ""
1366
1367 # type: textblock
1368 #: ../src/guestfs.pod:659
1369 msgid "For documentation see L<guestfs-ocaml(3)>."
1370 msgstr ""
1371
1372 # type: =item
1373 #: ../src/guestfs.pod:661
1374 msgid "B<Perl>"
1375 msgstr ""
1376
1377 # type: textblock
1378 #: ../src/guestfs.pod:663
1379 msgid "For documentation see L<Sys::Guestfs(3)>."
1380 msgstr ""
1381
1382 # type: =item
1383 #: ../src/guestfs.pod:665
1384 msgid "B<PHP>"
1385 msgstr ""
1386
1387 # type: textblock
1388 #: ../src/guestfs.pod:667
1389 msgid ""
1390 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1391 "the php-libguestfs package for your distribution."
1392 msgstr ""
1393
1394 # type: textblock
1395 #: ../src/guestfs.pod:670
1396 msgid "The PHP binding only works correctly on 64 bit machines."
1397 msgstr ""
1398
1399 # type: =item
1400 #: ../src/guestfs.pod:672
1401 msgid "B<Python>"
1402 msgstr ""
1403
1404 # type: textblock
1405 #: ../src/guestfs.pod:674
1406 msgid "For documentation see L<guestfs-python(3)>."
1407 msgstr ""
1408
1409 # type: =item
1410 #: ../src/guestfs.pod:676
1411 msgid "B<Ruby>"
1412 msgstr ""
1413
1414 # type: textblock
1415 #: ../src/guestfs.pod:678
1416 msgid "For documentation see L<guestfs-ruby(3)>."
1417 msgstr ""
1418
1419 # type: =item
1420 #: ../src/guestfs.pod:680
1421 msgid "B<shell scripts>"
1422 msgstr ""
1423
1424 # type: textblock
1425 #: ../src/guestfs.pod:682
1426 msgid "For documentation see L<guestfish(1)>."
1427 msgstr ""
1428
1429 # type: =head2
1430 #: ../src/guestfs.pod:686
1431 msgid "LIBGUESTFS GOTCHAS"
1432 msgstr ""
1433
1434 # type: textblock
1435 #: ../src/guestfs.pod:688
1436 msgid ""
1437 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1438 "system [...] that works in the way it is documented but is counterintuitive "
1439 "and almost invites mistakes.\""
1440 msgstr ""
1441
1442 # type: textblock
1443 #: ../src/guestfs.pod:692
1444 msgid ""
1445 "Since we developed libguestfs and the associated tools, there are several "
1446 "things we would have designed differently, but are now stuck with for "
1447 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1448 "release, you can expect these to change.  Beware of them."
1449 msgstr ""
1450
1451 # type: =item
1452 #: ../src/guestfs.pod:700
1453 msgid "Autosync / forgetting to sync."
1454 msgstr ""
1455
1456 # type: textblock
1457 #: ../src/guestfs.pod:702
1458 msgid ""
1459 "When modifying a filesystem from C or another language, you B<must> unmount "
1460 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1461 "libguestfs handle.  You can also call:"
1462 msgstr ""
1463
1464 # type: verbatim
1465 #: ../src/guestfs.pod:706
1466 #, no-wrap
1467 msgid ""
1468 " guestfs_set_autosync (g, 1);\n"
1469 "\n"
1470 msgstr ""
1471
1472 # type: textblock
1473 #: ../src/guestfs.pod:708
1474 msgid ""
1475 "to have the unmount/sync done automatically for you when the handle 'g' is "
1476 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1477 msgstr ""
1478
1479 # type: textblock
1480 #: ../src/guestfs.pod:712
1481 msgid ""
1482 "If you forget to do this, then it is entirely possible that your changes "
1483 "won't be written out, or will be partially written, or (very rarely) that "
1484 "you'll get disk corruption."
1485 msgstr ""
1486
1487 # type: textblock
1488 #: ../src/guestfs.pod:716
1489 msgid ""
1490 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1491 "guestfish scripts that forget to sync will work just fine, which can make "
1492 "this very puzzling if you are trying to debug a problem."
1493 msgstr ""
1494
1495 # type: textblock
1496 #: ../src/guestfs.pod:720
1497 msgid ""
1498 "Update: Autosync is enabled by default for all API users starting from "
1499 "libguestfs 1.5.24."
1500 msgstr ""
1501
1502 # type: =item
1503 #: ../src/guestfs.pod:723
1504 msgid "Mount option C<-o sync> should not be the default."
1505 msgstr ""
1506
1507 # type: textblock
1508 #: ../src/guestfs.pod:725
1509 msgid ""
1510 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1511 "However C<-o sync> does not add any reliability benefit, but does have a "
1512 "very large performance impact."
1513 msgstr ""
1514
1515 # type: textblock
1516 #: ../src/guestfs.pod:729
1517 msgid ""
1518 "The work around is to use L</guestfs_mount_options> and set the mount "
1519 "options that you actually want to use."
1520 msgstr ""
1521
1522 # type: =item
1523 #: ../src/guestfs.pod:732
1524 msgid "Read-only should be the default."
1525 msgstr ""
1526
1527 # type: textblock
1528 #: ../src/guestfs.pod:734
1529 msgid ""
1530 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1531 "specify I<--rw> if you want to make changes to the image."
1532 msgstr ""
1533
1534 # type: textblock
1535 #: ../src/guestfs.pod:737
1536 msgid "This would reduce the potential to corrupt live VM images."
1537 msgstr ""
1538
1539 # type: textblock
1540 #: ../src/guestfs.pod:739
1541 msgid ""
1542 "Note that many filesystems change the disk when you just mount and unmount, "
1543 "even if you didn't perform any writes.  You need to use L</"
1544 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1545 msgstr ""
1546
1547 # type: =item
1548 #: ../src/guestfs.pod:743
1549 msgid "guestfish command line is hard to use."
1550 msgstr ""
1551
1552 # type: textblock
1553 #: ../src/guestfs.pod:745
1554 msgid ""
1555 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1556 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1557 "exist, so it fails.  In earlier versions of guestfish the error message was "
1558 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1559 "we should have used C<guestfish -c command> to run commands."
1560 msgstr ""
1561
1562 # type: =item
1563 #: ../src/guestfs.pod:752
1564 msgid "guestfish megabyte modifiers don't work right on all commands"
1565 msgstr ""
1566
1567 # type: textblock
1568 #: ../src/guestfs.pod:754
1569 msgid ""
1570 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1571 "other modifiers).  What guestfish actually does is to multiply the number "
1572 "part by the modifier part and pass the result to the C API.  However this "
1573 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1574 "expecting some other unit (eg. megabytes)."
1575 msgstr ""
1576
1577 # type: textblock
1578 #: ../src/guestfs.pod:761
1579 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1580 msgstr ""
1581
1582 # type: verbatim
1583 #: ../src/guestfs.pod:763
1584 #, no-wrap
1585 msgid ""
1586 " lvcreate LV VG 100M\n"
1587 "\n"
1588 msgstr ""
1589
1590 # type: textblock
1591 #: ../src/guestfs.pod:765
1592 msgid ""
1593 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1594 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1595 "megabytes * megabytes) logical volume.  The error message you get from this "
1596 "is also a little obscure."
1597 msgstr ""
1598
1599 # type: textblock
1600 #: ../src/guestfs.pod:770
1601 msgid ""
1602 "This could be fixed in the generator by specially marking parameters and "
1603 "return values which take bytes or other units."
1604 msgstr ""
1605
1606 # type: =item
1607 #: ../src/guestfs.pod:773
1608 msgid "Ambiguity between devices and paths"
1609 msgstr ""
1610
1611 # type: textblock
1612 #: ../src/guestfs.pod:775
1613 msgid ""
1614 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1615 "sdb2>) and a similar pathname.  A file might just happen to be called "
1616 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1617 msgstr ""
1618
1619 # type: textblock
1620 #: ../src/guestfs.pod:780
1621 msgid ""
1622 "In the current API we usually resolve this ambiguity by having two separate "
1623 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1624 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1625 "detecting if the path supplied begins with C</dev/>."
1626 msgstr ""
1627
1628 # type: textblock
1629 #: ../src/guestfs.pod:786
1630 msgid ""
1631 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1632 "make paths/devices into structured names.  One way to do this would be to "
1633 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1634 "aspect of grub.  Another way would be to use a structured type, equivalent "
1635 "to this OCaml type:"
1636 msgstr ""
1637
1638 # type: verbatim
1639 #: ../src/guestfs.pod:792
1640 #, no-wrap
1641 msgid ""
1642 " type path = Path of string | Device of int | Partition of int * int\n"
1643 "\n"
1644 msgstr ""
1645
1646 # type: textblock
1647 #: ../src/guestfs.pod:794
1648 msgid "which would allow you to pass arguments like:"
1649 msgstr ""
1650
1651 # type: verbatim
1652 #: ../src/guestfs.pod:796
1653 #, no-wrap
1654 msgid ""
1655 " Path \"/foo/bar\"\n"
1656 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1657 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1658 " Path \"/dev/sdb2\"    (* not a device *)\n"
1659 "\n"
1660 msgstr ""
1661
1662 # type: textblock
1663 #: ../src/guestfs.pod:801
1664 msgid ""
1665 "As you can see there are still problems to resolve even with this "
1666 "representation.  Also consider how it might work in guestfish."
1667 msgstr ""
1668
1669 # type: =head2
1670 #: ../src/guestfs.pod:806
1671 msgid "PROTOCOL LIMITS"
1672 msgstr ""
1673
1674 # type: textblock
1675 #: ../src/guestfs.pod:808
1676 msgid ""
1677 "Internally libguestfs uses a message-based protocol to pass API calls and "
1678 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1679 "plenty more detail about this).  The maximum message size used by the "
1680 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1681 "aware of this limit.  The API calls which may be affected are individually "
1682 "documented, with a link back to this section of the documentation."
1683 msgstr ""
1684
1685 # type: textblock
1686 #: ../src/guestfs.pod:816
1687 msgid ""
1688 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1689 "a simple string.  Because this string is at some point internally encoded as "
1690 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1691 "the requested file is larger than this then you will get an error."
1692 msgstr ""
1693
1694 # type: textblock
1695 #: ../src/guestfs.pod:822
1696 msgid ""
1697 "In order to transfer large files into and out of the guest filesystem, you "
1698 "need to use particular calls that support this.  The sections L</UPLOADING> "
1699 "and L</DOWNLOADING> document how to do this."
1700 msgstr ""
1701
1702 # type: textblock
1703 #: ../src/guestfs.pod:826
1704 msgid ""
1705 "You might also consider mounting the disk image using our FUSE filesystem "
1706 "support (L<guestmount(1)>)."
1707 msgstr ""
1708
1709 # type: =head2
1710 #: ../src/guestfs.pod:829
1711 msgid "KEYS AND PASSPHRASES"
1712 msgstr ""
1713
1714 # type: textblock
1715 #: ../src/guestfs.pod:831
1716 msgid ""
1717 "Certain libguestfs calls take a parameter that contains sensitive key "
1718 "material, passed in as a C string."
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:834
1723 msgid ""
1724 "In the future we would hope to change the libguestfs implementation so that "
1725 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1726 "swap.  However this is I<not> done at the moment, because of the complexity "
1727 "of such an implementation."
1728 msgstr ""
1729
1730 # type: textblock
1731 #: ../src/guestfs.pod:839
1732 msgid ""
1733 "Therefore you should be aware that any key parameter you pass to libguestfs "
1734 "might end up being written out to the swap partition.  If this is a concern, "
1735 "scrub the swap partition or don't use libguestfs on encrypted devices."
1736 msgstr ""
1737
1738 # type: =head1
1739 #: ../src/guestfs.pod:844
1740 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1741 msgstr ""
1742
1743 # type: textblock
1744 #: ../src/guestfs.pod:846
1745 msgid ""
1746 "All high-level libguestfs actions are synchronous.  If you want to use "
1747 "libguestfs asynchronously then you must create a thread."
1748 msgstr ""
1749
1750 # type: textblock
1751 #: ../src/guestfs.pod:849
1752 msgid ""
1753 "Only use the handle from a single thread.  Either use the handle exclusively "
1754 "from one thread, or provide your own mutex so that two threads cannot issue "
1755 "calls on the same handle at the same time."
1756 msgstr ""
1757
1758 # type: textblock
1759 #: ../src/guestfs.pod:853
1760 msgid ""
1761 "See the graphical program guestfs-browser for one possible architecture for "
1762 "multithreaded programs using libvirt and libguestfs."
1763 msgstr ""
1764
1765 # type: =head1
1766 #: ../src/guestfs.pod:856
1767 msgid "PATH"
1768 msgstr ""
1769
1770 # type: textblock
1771 #: ../src/guestfs.pod:858
1772 msgid ""
1773 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1774 "internal path."
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:861
1779 msgid ""
1780 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1781 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1782 msgstr ""
1783
1784 # type: textblock
1785 #: ../src/guestfs.pod:864
1786 msgid ""
1787 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1788 "to change the directories that libguestfs will search in.  The value is a "
1789 "colon-separated list of paths.  The current directory is I<not> searched "
1790 "unless the path contains an empty element or C<.>.  For example "
1791 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1792 "then C</usr/lib/guestfs>."
1793 msgstr ""
1794
1795 # type: =head1
1796 #: ../src/guestfs.pod:871
1797 msgid "QEMU WRAPPERS"
1798 msgstr ""
1799
1800 # type: textblock
1801 #: ../src/guestfs.pod:873
1802 msgid ""
1803 "If you want to compile your own qemu, run qemu from a non-standard location, "
1804 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1805 "around qemu."
1806 msgstr ""
1807
1808 # type: textblock
1809 #: ../src/guestfs.pod:877
1810 msgid ""
1811 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1812 "last command in the shell script (so that qemu replaces the shell and "
1813 "becomes the direct child of the libguestfs-using program).  If you don't do "
1814 "this, then the qemu process won't be cleaned up correctly."
1815 msgstr ""
1816
1817 # type: textblock
1818 #: ../src/guestfs.pod:882
1819 msgid ""
1820 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1821 "source:"
1822 msgstr ""
1823
1824 # type: verbatim
1825 #: ../src/guestfs.pod:885
1826 #, no-wrap
1827 msgid ""
1828 " #!/bin/sh -\n"
1829 " qemudir=/home/rjones/d/qemu\n"
1830 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1831 "\n"
1832 msgstr ""
1833
1834 # type: textblock
1835 #: ../src/guestfs.pod:889
1836 msgid ""
1837 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1838 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1839 "example:"
1840 msgstr ""
1841
1842 # type: verbatim
1843 #: ../src/guestfs.pod:893
1844 #, no-wrap
1845 msgid ""
1846 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1847 "\n"
1848 msgstr ""
1849
1850 # type: textblock
1851 #: ../src/guestfs.pod:895
1852 msgid ""
1853 "Note that libguestfs also calls qemu with the -help and -version options in "
1854 "order to determine features."
1855 msgstr ""
1856
1857 # type: =head2
1858 #: ../src/guestfs.pod:898
1859 msgid "ABI GUARANTEE"
1860 msgstr ""
1861
1862 # type: textblock
1863 #: ../src/guestfs.pod:900
1864 msgid ""
1865 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1866 "actions as outlined in this section.  Although we will deprecate some "
1867 "actions, for example if they get replaced by newer calls, we will keep the "
1868 "old actions forever.  This allows you the developer to program in confidence "
1869 "against the libguestfs API."
1870 msgstr ""
1871
1872 # type: =head1
1873 #: ../src/guestfs.pod:906
1874 msgid "BLOCK DEVICE NAMING"
1875 msgstr ""
1876
1877 # type: textblock
1878 #: ../src/guestfs.pod:908
1879 msgid ""
1880 "In the kernel there is now quite a profusion of schemata for naming block "
1881 "devices (in this context, by I<block device> I mean a physical or virtual "
1882 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1883 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1884 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1885 "for the old IDE driver (particularly for SATA devices) those devices also "
1886 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1887 "paravirtualized drivers.  This has created several different naming systems, "
1888 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1889 msgstr ""
1890
1891 # type: textblock
1892 #: ../src/guestfs.pod:920
1893 msgid ""
1894 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1895 "Linux kernel to access block devices.  We can run a variety of appliances "
1896 "based on a variety of Linux kernels."
1897 msgstr ""
1898
1899 # type: textblock
1900 #: ../src/guestfs.pod:924
1901 msgid ""
1902 "This causes a problem for libguestfs because many API calls use device or "
1903 "partition names.  Working scripts and the recipe (example) scripts that we "
1904 "make available over the internet could fail if the naming scheme changes."
1905 msgstr ""
1906
1907 # type: textblock
1908 #: ../src/guestfs.pod:929
1909 msgid ""
1910 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1911 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1912 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1913 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1914 msgstr ""
1915
1916 # type: textblock
1917 #: ../src/guestfs.pod:935
1918 msgid ""
1919 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1920 "L</guestfs_list_partitions> and similar calls return the true names of the "
1921 "devices and partitions as known to the appliance."
1922 msgstr ""
1923
1924 # type: =head2
1925 #: ../src/guestfs.pod:940
1926 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:942
1931 msgid ""
1932 "Usually this translation is transparent.  However in some (very rare)  cases "
1933 "you may need to know the exact algorithm.  Such cases include where you use "
1934 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
1935 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
1936 msgstr ""
1937
1938 # type: textblock
1939 #: ../src/guestfs.pod:948
1940 msgid ""
1941 "The algorithm is applied only to I<parameters> which are known to be either "
1942 "device or partition names.  Return values from functions such as L</"
1943 "guestfs_list_devices> are never changed."
1944 msgstr ""
1945
1946 # type: textblock
1947 #: ../src/guestfs.pod:956
1948 msgid "Is the string a parameter which is a device or partition name?"
1949 msgstr ""
1950
1951 # type: textblock
1952 #: ../src/guestfs.pod:960
1953 msgid "Does the string begin with C</dev/sd>?"
1954 msgstr ""
1955
1956 # type: textblock
1957 #: ../src/guestfs.pod:964
1958 msgid ""
1959 "Does the named device exist? If so, we use that device.  However if I<not> "
1960 "then we continue with this algorithm."
1961 msgstr ""
1962
1963 # type: textblock
1964 #: ../src/guestfs.pod:969
1965 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1966 msgstr ""
1967
1968 # type: textblock
1969 #: ../src/guestfs.pod:971
1970 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1971 msgstr ""
1972
1973 # type: textblock
1974 #: ../src/guestfs.pod:973
1975 msgid "If that named device exists, use it.  If not, continue."
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:977
1980 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:979
1985 msgid "If that named device exists, use it.  If not, return an error."
1986 msgstr ""
1987
1988 # type: =head3
1989 #: ../src/guestfs.pod:983
1990 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1991 msgstr ""
1992
1993 # type: textblock
1994 #: ../src/guestfs.pod:985
1995 msgid ""
1996 "Although the standard naming scheme and automatic translation is useful for "
1997 "simple programs and guestfish scripts, for larger programs it is best not to "
1998 "rely on this mechanism."
1999 msgstr ""
2000
2001 # type: textblock
2002 #: ../src/guestfs.pod:989
2003 msgid ""
2004 "Where possible for maximum future portability programs using libguestfs "
2005 "should use these future-proof techniques:"
2006 msgstr ""
2007
2008 # type: textblock
2009 #: ../src/guestfs.pod:996
2010 msgid ""
2011 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2012 "device names, and then use those names directly."
2013 msgstr ""
2014
2015 # type: textblock
2016 #: ../src/guestfs.pod:999
2017 msgid ""
2018 "Since those device names exist by definition, they will never be translated."
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:1004
2023 msgid ""
2024 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2025 "filesystem labels."
2026 msgstr ""
2027
2028 # type: =head1
2029 #: ../src/guestfs.pod:1009
2030 msgid "SECURITY"
2031 msgstr ""
2032
2033 # type: textblock
2034 #: ../src/guestfs.pod:1011
2035 msgid ""
2036 "This section discusses security implications of using libguestfs, "
2037 "particularly with untrusted or malicious guests or disk images."
2038 msgstr ""
2039
2040 # type: =head2
2041 #: ../src/guestfs.pod:1014
2042 msgid "GENERAL SECURITY CONSIDERATIONS"
2043 msgstr ""
2044
2045 # type: textblock
2046 #: ../src/guestfs.pod:1016
2047 msgid ""
2048 "Be careful with any files or data that you download from a guest (by "
2049 "\"download\" we mean not just the L</guestfs_download> command but any "
2050 "command that reads files, filenames, directories or anything else from a "
2051 "disk image).  An attacker could manipulate the data to fool your program "
2052 "into doing the wrong thing.  Consider cases such as:"
2053 msgstr ""
2054
2055 # type: textblock
2056 #: ../src/guestfs.pod:1026
2057 msgid "the data (file etc) not being present"
2058 msgstr ""
2059
2060 # type: textblock
2061 #: ../src/guestfs.pod:1030
2062 msgid "being present but empty"
2063 msgstr ""
2064
2065 # type: textblock
2066 #: ../src/guestfs.pod:1034
2067 msgid "being much larger than normal"
2068 msgstr ""
2069
2070 # type: textblock
2071 #: ../src/guestfs.pod:1038
2072 msgid "containing arbitrary 8 bit data"
2073 msgstr ""
2074
2075 # type: textblock
2076 #: ../src/guestfs.pod:1042
2077 msgid "being in an unexpected character encoding"
2078 msgstr ""
2079
2080 # type: textblock
2081 #: ../src/guestfs.pod:1046
2082 msgid "containing homoglyphs."
2083 msgstr ""
2084
2085 # type: =head2
2086 #: ../src/guestfs.pod:1050
2087 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2088 msgstr ""
2089
2090 # type: textblock
2091 #: ../src/guestfs.pod:1052
2092 msgid ""
2093 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2094 "(VFS) module can sometimes be escalated into exploits by deliberately "
2095 "creating a malicious, malformed filesystem.  These exploits are very severe "
2096 "for two reasons.  Firstly there are very many filesystem drivers in the "
2097 "kernel, and many of them are infrequently used and not much developer "
2098 "attention has been paid to the code.  Linux userspace helps potential "
2099 "crackers by detecting the filesystem type and automatically choosing the "
2100 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2101 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2102 "exploit (worse in some ways), giving immediate and total access to the "
2103 "system right down to the hardware level."
2104 msgstr ""
2105
2106 # type: textblock
2107 #: ../src/guestfs.pod:1065
2108 msgid ""
2109 "That explains why you should never mount a filesystem from an untrusted "
2110 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2111 "inside a qemu virtual machine, usually running as a non-root user.  The "
2112 "attacker would need to write a filesystem which first exploited the kernel, "
2113 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2114 "the libguestfs protocol, and finally to be as serious as the host kernel "
2115 "exploit it would need to escalate its privileges to root.  This multi-step "
2116 "escalation, performed by a static piece of data, is thought to be extremely "
2117 "hard to do, although we never say 'never' about security issues."
2118 msgstr ""
2119
2120 # type: textblock
2121 #: ../src/guestfs.pod:1076
2122 msgid ""
2123 "In any case callers can reduce the attack surface by forcing the filesystem "
2124 "type when mounting (use L</guestfs_mount_vfs>)."
2125 msgstr ""
2126
2127 # type: =head2
2128 #: ../src/guestfs.pod:1079
2129 msgid "PROTOCOL SECURITY"
2130 msgstr ""
2131
2132 # type: textblock
2133 #: ../src/guestfs.pod:1081
2134 msgid ""
2135 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2136 "defined upper message size.  However a program that uses libguestfs must "
2137 "also take care - for example you can write a program that downloads a binary "
2138 "from a disk image and executes it locally, and no amount of protocol "
2139 "security will save you from the consequences."
2140 msgstr ""
2141
2142 # type: =head2
2143 #: ../src/guestfs.pod:1087
2144 msgid "INSPECTION SECURITY"
2145 msgstr ""
2146
2147 # type: textblock
2148 #: ../src/guestfs.pod:1089
2149 msgid ""
2150 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2151 "directly from the guest, and these could contain any 8 bit data.  Callers "
2152 "should be careful to escape these before printing them to a structured file "
2153 "(for example, use HTML escaping if creating a web page)."
2154 msgstr ""
2155
2156 # type: textblock
2157 #: ../src/guestfs.pod:1095
2158 msgid ""
2159 "Guest configuration may be altered in unusual ways by the administrator of "
2160 "the virtual machine, and may not reflect reality (particularly for untrusted "
2161 "or actively malicious guests).  For example we parse the hostname from "
2162 "configuration files like C</etc/sysconfig/network> that we find in the "
2163 "guest, but the guest administrator can easily manipulate these files to "
2164 "provide the wrong hostname."
2165 msgstr ""
2166
2167 # type: textblock
2168 #: ../src/guestfs.pod:1103
2169 msgid ""
2170 "The inspection API parses guest configuration using two external libraries: "
2171 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2172 "designed to be robust in the face of malicious data, although denial of "
2173 "service attacks are still possible, for example with oversized configuration "
2174 "files."
2175 msgstr ""
2176
2177 # type: =head2
2178 #: ../src/guestfs.pod:1109
2179 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2180 msgstr ""
2181
2182 # type: textblock
2183 #: ../src/guestfs.pod:1111
2184 msgid ""
2185 "Be very cautious about running commands from the guest.  By running a "
2186 "command in the guest, you are giving CPU time to a binary that you do not "
2187 "control, under the same user account as the library, albeit wrapped in qemu "
2188 "virtualization.  More information and alternatives can be found in the "
2189 "section L</RUNNING COMMANDS>."
2190 msgstr ""
2191
2192 # type: =head2
2193 #: ../src/guestfs.pod:1117
2194 msgid "CVE-2010-3851"
2195 msgstr ""
2196
2197 # type: textblock
2198 #: ../src/guestfs.pod:1119
2199 msgid "https://bugzilla.redhat.com/642934"
2200 msgstr ""
2201
2202 # type: textblock
2203 #: ../src/guestfs.pod:1121
2204 msgid ""
2205 "This security bug concerns the automatic disk format detection that qemu "
2206 "does on disk images."
2207 msgstr ""
2208
2209 # type: textblock
2210 #: ../src/guestfs.pod:1124
2211 msgid ""
2212 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2213 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2214 "for one of the known headers, and if none is found then assuming the disk "
2215 "image must be raw."
2216 msgstr ""
2217
2218 # type: textblock
2219 #: ../src/guestfs.pod:1129
2220 msgid ""
2221 "This allows a guest which has been given a raw disk image to write some "
2222 "other header.  At next boot (or when the disk image is accessed by "
2223 "libguestfs) qemu would do autodetection and think the disk image format was, "
2224 "say, qcow2 based on the header written by the guest."
2225 msgstr ""
2226
2227 # type: textblock
2228 #: ../src/guestfs.pod:1134
2229 msgid ""
2230 "This in itself would not be a problem, but qcow2 offers many features, one "
2231 "of which is to allow a disk image to refer to another image (called the "
2232 "\"backing disk\").  It does this by placing the path to the backing disk "
2233 "into the qcow2 header.  This path is not validated and could point to any "
2234 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2235 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2236 "control of the attacker."
2237 msgstr ""
2238
2239 # type: textblock
2240 #: ../src/guestfs.pod:1142
2241 msgid ""
2242 "In libguestfs this is rather hard to exploit except under two circumstances:"
2243 msgstr ""
2244
2245 # type: textblock
2246 #: ../src/guestfs.pod:1149
2247 msgid "You have enabled the network or have opened the disk in write mode."
2248 msgstr ""
2249
2250 # type: textblock
2251 #: ../src/guestfs.pod:1153
2252 msgid ""
2253 "You are also running untrusted code from the guest (see L</RUNNING "
2254 "COMMANDS>)."
2255 msgstr ""
2256
2257 # type: textblock
2258 #: ../src/guestfs.pod:1158
2259 msgid ""
2260 "The way to avoid this is to specify the expected disk format when adding "
2261 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2262 "should always do this if the disk is raw format, and it's a good idea for "
2263 "other cases too."
2264 msgstr ""
2265
2266 # type: textblock
2267 #: ../src/guestfs.pod:1163
2268 msgid ""
2269 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2270 "format is fetched from libvirt and passed through."
2271 msgstr ""
2272
2273 # type: textblock
2274 #: ../src/guestfs.pod:1166
2275 msgid ""
2276 "For libguestfs tools, use the I<--format> command line parameter as "
2277 "appropriate."
2278 msgstr ""
2279
2280 # type: =head1
2281 #: ../src/guestfs.pod:1169
2282 msgid "CONNECTION MANAGEMENT"
2283 msgstr ""
2284
2285 # type: =head2
2286 #: ../src/guestfs.pod:1171
2287 msgid "guestfs_h *"
2288 msgstr ""
2289
2290 # type: textblock
2291 #: ../src/guestfs.pod:1173
2292 msgid ""
2293 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2294 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2295 "handle and release all resources used."
2296 msgstr ""
2297
2298 # type: textblock
2299 #: ../src/guestfs.pod:1177
2300 msgid ""
2301 "For information on using multiple handles and threads, see the section L</"
2302 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2303 msgstr ""
2304
2305 # type: =head2
2306 #: ../src/guestfs.pod:1180
2307 msgid "guestfs_create"
2308 msgstr ""
2309
2310 # type: verbatim
2311 #: ../src/guestfs.pod:1182
2312 #, no-wrap
2313 msgid ""
2314 " guestfs_h *guestfs_create (void);\n"
2315 "\n"
2316 msgstr ""
2317
2318 # type: textblock
2319 #: ../src/guestfs.pod:1184
2320 msgid "Create a connection handle."
2321 msgstr ""
2322
2323 # type: textblock
2324 #: ../src/guestfs.pod:1186
2325 msgid ""
2326 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2327 "on the handle at least once."
2328 msgstr ""
2329
2330 # type: textblock
2331 #: ../src/guestfs.pod:1189
2332 msgid ""
2333 "This function returns a non-NULL pointer to a handle on success or NULL on "
2334 "error."
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1192
2339 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2340 msgstr ""
2341
2342 # type: textblock
2343 #: ../src/guestfs.pod:1194
2344 msgid ""
2345 "You may also want to configure error handling for the handle.  See L</ERROR "
2346 "HANDLING> section below."
2347 msgstr ""
2348
2349 # type: =head2
2350 #: ../src/guestfs.pod:1197
2351 msgid "guestfs_close"
2352 msgstr ""
2353
2354 # type: verbatim
2355 #: ../src/guestfs.pod:1199
2356 #, no-wrap
2357 msgid ""
2358 " void guestfs_close (guestfs_h *g);\n"
2359 "\n"
2360 msgstr ""
2361
2362 # type: textblock
2363 #: ../src/guestfs.pod:1201
2364 msgid "This closes the connection handle and frees up all resources used."
2365 msgstr ""
2366
2367 # type: =head1
2368 #: ../src/guestfs.pod:1203
2369 msgid "ERROR HANDLING"
2370 msgstr ""
2371
2372 # type: textblock
2373 #: ../src/guestfs.pod:1205
2374 msgid ""
2375 "API functions can return errors.  For example, almost all functions that "
2376 "return C<int> will return C<-1> to indicate an error."
2377 msgstr ""
2378
2379 # type: textblock
2380 #: ../src/guestfs.pod:1208
2381 msgid ""
2382 "Additional information is available for errors: an error message string and "
2383 "optionally an error number (errno) if the thing that failed was a system "
2384 "call."
2385 msgstr ""
2386
2387 # type: textblock
2388 #: ../src/guestfs.pod:1212
2389 msgid ""
2390 "You can get at the additional information about the last error on the handle "
2391 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2392 "up an error handler with L</guestfs_set_error_handler>."
2393 msgstr ""
2394
2395 # type: textblock
2396 #: ../src/guestfs.pod:1217
2397 msgid ""
2398 "When the handle is created, a default error handler is installed which "
2399 "prints the error message string to C<stderr>.  For small short-running "
2400 "command line programs it is sufficient to do:"
2401 msgstr ""
2402
2403 # type: verbatim
2404 #: ../src/guestfs.pod:1221
2405 #, no-wrap
2406 msgid ""
2407 " if (guestfs_launch (g) == -1)\n"
2408 "   exit (EXIT_FAILURE);\n"
2409 "\n"
2410 msgstr ""
2411
2412 # type: textblock
2413 #: ../src/guestfs.pod:1224
2414 msgid ""
2415 "since the default error handler will ensure that an error message has been "
2416 "printed to C<stderr> before the program exits."
2417 msgstr ""
2418
2419 # type: textblock
2420 #: ../src/guestfs.pod:1227
2421 msgid ""
2422 "For other programs the caller will almost certainly want to install an "
2423 "alternate error handler or do error handling in-line like this:"
2424 msgstr ""
2425
2426 # type: verbatim
2427 #: ../src/guestfs.pod:1230
2428 #, no-wrap
2429 msgid ""
2430 " g = guestfs_create ();\n"
2431 " \n"
2432 msgstr ""
2433
2434 # type: verbatim
2435 #: ../src/guestfs.pod:1232
2436 #, no-wrap
2437 msgid ""
2438 " /* This disables the default behaviour of printing errors\n"
2439 "    on stderr. */\n"
2440 " guestfs_set_error_handler (g, NULL, NULL);\n"
2441 " \n"
2442 msgstr ""
2443
2444 # type: verbatim
2445 #: ../src/guestfs.pod:1236
2446 #, no-wrap
2447 msgid ""
2448 " if (guestfs_launch (g) == -1) {\n"
2449 "   /* Examine the error message and print it etc. */\n"
2450 "   char *msg = guestfs_last_error (g);\n"
2451 "   int errnum = guestfs_last_errno (g);\n"
2452 "   fprintf (stderr, \"%s\\n\", msg);\n"
2453 "   /* ... */\n"
2454 "  }\n"
2455 "\n"
2456 msgstr ""
2457
2458 # type: textblock
2459 #: ../src/guestfs.pod:1244
2460 msgid ""
2461 "Out of memory errors are handled differently.  The default action is to call "
2462 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2463 "guestfs_set_out_of_memory_handler>."
2464 msgstr ""
2465
2466 # type: textblock
2467 #: ../src/guestfs.pod:1248
2468 msgid ""
2469 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2470 "because there is no handle if this happens there is no way to get additional "
2471 "error information.  However L</guestfs_create> is supposed to be a "
2472 "lightweight operation which can only fail because of insufficient memory (it "
2473 "returns NULL in this case)."
2474 msgstr ""
2475
2476 # type: =head2
2477 #: ../src/guestfs.pod:1254
2478 msgid "guestfs_last_error"
2479 msgstr ""
2480
2481 # type: verbatim
2482 #: ../src/guestfs.pod:1256
2483 #, no-wrap
2484 msgid ""
2485 " const char *guestfs_last_error (guestfs_h *g);\n"
2486 "\n"
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1258
2491 msgid ""
2492 "This returns the last error message that happened on C<g>.  If there has not "
2493 "been an error since the handle was created, then this returns C<NULL>."
2494 msgstr ""
2495
2496 # type: textblock
2497 #: ../src/guestfs.pod:1262
2498 msgid ""
2499 "The lifetime of the returned string is until the next error occurs, or L</"
2500 "guestfs_close> is called."
2501 msgstr ""
2502
2503 # type: =head2
2504 #: ../src/guestfs.pod:1265
2505 msgid "guestfs_last_errno"
2506 msgstr ""
2507
2508 # type: verbatim
2509 #: ../src/guestfs.pod:1267
2510 #, no-wrap
2511 msgid ""
2512 " int guestfs_last_errno (guestfs_h *g);\n"
2513 "\n"
2514 msgstr ""
2515
2516 # type: textblock
2517 #: ../src/guestfs.pod:1269
2518 msgid "This returns the last error number (errno) that happened on C<g>."
2519 msgstr ""
2520
2521 # type: textblock
2522 #: ../src/guestfs.pod:1271
2523 msgid "If successful, an errno integer not equal to zero is returned."
2524 msgstr ""
2525
2526 # type: textblock
2527 #: ../src/guestfs.pod:1273
2528 msgid ""
2529 "If no error, this returns 0.  This call can return 0 in three situations:"
2530 msgstr ""
2531
2532 # type: textblock
2533 #: ../src/guestfs.pod:1280
2534 msgid "There has not been any error on the handle."
2535 msgstr ""
2536
2537 # type: textblock
2538 #: ../src/guestfs.pod:1284
2539 msgid ""
2540 "There has been an error but the errno was meaningless.  This corresponds to "
2541 "the case where the error did not come from a failed system call, but for "
2542 "some other reason."
2543 msgstr ""
2544
2545 # type: textblock
2546 #: ../src/guestfs.pod:1290
2547 msgid ""
2548 "There was an error from a failed system call, but for some reason the errno "
2549 "was not captured and returned.  This usually indicates a bug in libguestfs."
2550 msgstr ""
2551
2552 # type: textblock
2553 #: ../src/guestfs.pod:1296
2554 msgid ""
2555 "Libguestfs tries to convert the errno from inside the applicance into a "
2556 "corresponding errno for the caller (not entirely trivial: the appliance "
2557 "might be running a completely different operating system from the library "
2558 "and error numbers are not standardized across Un*xen).  If this could not be "
2559 "done, then the error is translated to C<EINVAL>.  In practice this should "
2560 "only happen in very rare circumstances."
2561 msgstr ""
2562
2563 # type: =head2
2564 #: ../src/guestfs.pod:1304
2565 msgid "guestfs_set_error_handler"
2566 msgstr ""
2567
2568 # type: verbatim
2569 #: ../src/guestfs.pod:1306
2570 #, no-wrap
2571 msgid ""
2572 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2573 "                                           void *opaque,\n"
2574 "                                           const char *msg);\n"
2575 " void guestfs_set_error_handler (guestfs_h *g,\n"
2576 "                                 guestfs_error_handler_cb cb,\n"
2577 "                                 void *opaque);\n"
2578 "\n"
2579 msgstr ""
2580
2581 # type: textblock
2582 #: ../src/guestfs.pod:1313
2583 msgid ""
2584 "The callback C<cb> will be called if there is an error.  The parameters "
2585 "passed to the callback are an opaque data pointer and the error message "
2586 "string."
2587 msgstr ""
2588
2589 # type: textblock
2590 #: ../src/guestfs.pod:1317
2591 msgid ""
2592 "C<errno> is not passed to the callback.  To get that the callback must call "
2593 "L</guestfs_last_errno>."
2594 msgstr ""
2595
2596 # type: textblock
2597 #: ../src/guestfs.pod:1320
2598 msgid ""
2599 "Note that the message string C<msg> is freed as soon as the callback "
2600 "function returns, so if you want to stash it somewhere you must make your "
2601 "own copy."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1324
2606 msgid "The default handler prints messages on C<stderr>."
2607 msgstr ""
2608
2609 # type: textblock
2610 #: ../src/guestfs.pod:1326
2611 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2612 msgstr ""
2613
2614 # type: =head2
2615 #: ../src/guestfs.pod:1328
2616 msgid "guestfs_get_error_handler"
2617 msgstr ""
2618
2619 # type: verbatim
2620 #: ../src/guestfs.pod:1330
2621 #, no-wrap
2622 msgid ""
2623 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2624 "                                                     void **opaque_rtn);\n"
2625 "\n"
2626 msgstr ""
2627
2628 # type: textblock
2629 #: ../src/guestfs.pod:1333
2630 msgid "Returns the current error handler callback."
2631 msgstr ""
2632
2633 # type: =head2
2634 #: ../src/guestfs.pod:1335
2635 msgid "guestfs_set_out_of_memory_handler"
2636 msgstr ""
2637
2638 # type: verbatim
2639 #: ../src/guestfs.pod:1337
2640 #, no-wrap
2641 msgid ""
2642 " typedef void (*guestfs_abort_cb) (void);\n"
2643 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2644 "                                        guestfs_abort_cb);\n"
2645 "\n"
2646 msgstr ""
2647
2648 # type: textblock
2649 #: ../src/guestfs.pod:1341
2650 msgid ""
2651 "The callback C<cb> will be called if there is an out of memory situation.  "
2652 "I<Note this callback must not return>."
2653 msgstr ""
2654
2655 # type: textblock
2656 #: ../src/guestfs.pod:1344
2657 msgid "The default is to call L<abort(3)>."
2658 msgstr ""
2659
2660 # type: textblock
2661 #: ../src/guestfs.pod:1346
2662 msgid ""
2663 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2664 msgstr ""
2665
2666 # type: =head2
2667 #: ../src/guestfs.pod:1349
2668 msgid "guestfs_get_out_of_memory_handler"
2669 msgstr ""
2670
2671 # type: verbatim
2672 #: ../src/guestfs.pod:1351
2673 #, no-wrap
2674 msgid ""
2675 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2676 "\n"
2677 msgstr ""
2678
2679 # type: textblock
2680 #: ../src/guestfs.pod:1353
2681 msgid "This returns the current out of memory handler."
2682 msgstr ""
2683
2684 # type: =head1
2685 #: ../src/guestfs.pod:1355
2686 msgid "API CALLS"
2687 msgstr ""
2688
2689 # type: textblock
2690 #: ../src/guestfs.pod:1357 ../fish/guestfish.pod:958
2691 msgid "@ACTIONS@"
2692 msgstr ""
2693
2694 # type: =head1
2695 #: ../src/guestfs.pod:1359
2696 msgid "STRUCTURES"
2697 msgstr ""
2698
2699 # type: textblock
2700 #: ../src/guestfs.pod:1361
2701 msgid "@STRUCTS@"
2702 msgstr ""
2703
2704 # type: =head1
2705 #: ../src/guestfs.pod:1363
2706 msgid "AVAILABILITY"
2707 msgstr ""
2708
2709 # type: =head2
2710 #: ../src/guestfs.pod:1365
2711 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2712 msgstr ""
2713
2714 # type: textblock
2715 #: ../src/guestfs.pod:1367
2716 msgid ""
2717 "Using L</guestfs_available> you can test availability of the following "
2718 "groups of functions.  This test queries the appliance to see if the "
2719 "appliance you are currently using supports the functionality."
2720 msgstr ""
2721
2722 # type: textblock
2723 #: ../src/guestfs.pod:1372
2724 msgid "@AVAILABILITY@"
2725 msgstr ""
2726
2727 # type: =head2
2728 #: ../src/guestfs.pod:1374
2729 msgid "GUESTFISH supported COMMAND"
2730 msgstr ""
2731
2732 # type: textblock
2733 #: ../src/guestfs.pod:1376
2734 msgid ""
2735 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2736 "prints out the available groups and whether they are supported by this build "
2737 "of libguestfs.  Note however that you have to do C<run> first."
2738 msgstr ""
2739
2740 # type: =head2
2741 #: ../src/guestfs.pod:1381
2742 msgid "SINGLE CALLS AT COMPILE TIME"
2743 msgstr ""
2744
2745 # type: textblock
2746 #: ../src/guestfs.pod:1383
2747 msgid ""
2748 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2749 "function, such as:"
2750 msgstr ""
2751
2752 # type: verbatim
2753 #: ../src/guestfs.pod:1386
2754 #, no-wrap
2755 msgid ""
2756 " #define LIBGUESTFS_HAVE_DD 1\n"
2757 "\n"
2758 msgstr ""
2759
2760 # type: textblock
2761 #: ../src/guestfs.pod:1388
2762 msgid "if L</guestfs_dd> is available."
2763 msgstr ""
2764
2765 # type: textblock
2766 #: ../src/guestfs.pod:1390
2767 msgid ""
2768 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2769 "function is available at compile time, we recommended using build tools such "
2770 "as autoconf or cmake.  For example in autotools you could use:"
2771 msgstr ""
2772
2773 # type: verbatim
2774 #: ../src/guestfs.pod:1395
2775 #, no-wrap
2776 msgid ""
2777 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2778 " AC_CHECK_FUNCS([guestfs_dd])\n"
2779 "\n"
2780 msgstr ""
2781
2782 # type: textblock
2783 #: ../src/guestfs.pod:1398
2784 msgid ""
2785 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2786 "in your program."
2787 msgstr ""
2788
2789 # type: =head2
2790 #: ../src/guestfs.pod:1401
2791 msgid "SINGLE CALLS AT RUN TIME"
2792 msgstr ""
2793
2794 # type: textblock
2795 #: ../src/guestfs.pod:1403
2796 msgid ""
2797 "Testing at compile time doesn't guarantee that a function really exists in "
2798 "the library.  The reason is that you might be dynamically linked against a "
2799 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2800 "This situation unfortunately results in a segmentation fault, which is a "
2801 "shortcoming of the C dynamic linking system itself."
2802 msgstr ""
2803
2804 # type: textblock
2805 #: ../src/guestfs.pod:1410
2806 msgid ""
2807 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2808 "in this example program (note that you still need the compile time check as "
2809 "well):"
2810 msgstr ""
2811
2812 # type: verbatim
2813 #: ../src/guestfs.pod:1414
2814 #, no-wrap
2815 msgid ""
2816 " #include <stdio.h>\n"
2817 " #include <stdlib.h>\n"
2818 " #include <unistd.h>\n"
2819 " #include <dlfcn.h>\n"
2820 " #include <guestfs.h>\n"
2821 " \n"
2822 msgstr ""
2823
2824 # type: verbatim
2825 #: ../src/guestfs.pod:1420
2826 #, no-wrap
2827 msgid ""
2828 " main ()\n"
2829 " {\n"
2830 " #ifdef LIBGUESTFS_HAVE_DD\n"
2831 "   void *dl;\n"
2832 "   int has_function;\n"
2833 " \n"
2834 msgstr ""
2835
2836 # type: verbatim
2837 #: ../src/guestfs.pod:1426
2838 #, no-wrap
2839 msgid ""
2840 "   /* Test if the function guestfs_dd is really available. */\n"
2841 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2842 "   if (!dl) {\n"
2843 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2844 "     exit (EXIT_FAILURE);\n"
2845 "   }\n"
2846 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2847 "   dlclose (dl);\n"
2848 " \n"
2849 msgstr ""
2850
2851 # type: verbatim
2852 #: ../src/guestfs.pod:1435
2853 #, no-wrap
2854 msgid ""
2855 "   if (!has_function)\n"
2856 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2857 "   else {\n"
2858 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2859 "     /* Now it's safe to call\n"
2860 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2861 "     */\n"
2862 "   }\n"
2863 " #else\n"
2864 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2865 " #endif\n"
2866 "  }\n"
2867 "\n"
2868 msgstr ""
2869
2870 # type: textblock
2871 #: ../src/guestfs.pod:1448
2872 msgid ""
2873 "You may think the above is an awful lot of hassle, and it is.  There are "
2874 "other ways outside of the C linking system to ensure that this kind of "
2875 "incompatibility never arises, such as using package versioning:"
2876 msgstr ""
2877
2878 # type: verbatim
2879 #: ../src/guestfs.pod:1453
2880 #, no-wrap
2881 msgid ""
2882 " Requires: libguestfs >= 1.0.80\n"
2883 "\n"
2884 msgstr ""
2885
2886 # type: =head1
2887 #: ../src/guestfs.pod:1455
2888 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2889 msgstr ""
2890
2891 # type: textblock
2892 #: ../src/guestfs.pod:1457
2893 msgid ""
2894 "A recent feature of the API is the introduction of calls which take optional "
2895 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2896 "takes variable arguments (ie. C<...>), as in this example:"
2897 msgstr ""
2898
2899 # type: verbatim
2900 #: ../src/guestfs.pod:1462
2901 #, no-wrap
2902 msgid ""
2903 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2904 "\n"
2905 msgstr ""
2906
2907 # type: textblock
2908 #: ../src/guestfs.pod:1464
2909 msgid ""
2910 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2911 "call with no optional arguments specified:"
2912 msgstr ""
2913
2914 # type: verbatim
2915 #: ../src/guestfs.pod:1467
2916 #, no-wrap
2917 msgid ""
2918 " guestfs_add_drive_opts (g, filename, -1);\n"
2919 "\n"
2920 msgstr ""
2921
2922 # type: textblock
2923 #: ../src/guestfs.pod:1469
2924 msgid "With a single optional argument:"
2925 msgstr ""
2926
2927 # type: verbatim
2928 #: ../src/guestfs.pod:1471
2929 #, no-wrap
2930 msgid ""
2931 " guestfs_add_drive_opts (g, filename,\n"
2932 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2933 "                         -1);\n"
2934 "\n"
2935 msgstr ""
2936
2937 # type: textblock
2938 #: ../src/guestfs.pod:1475
2939 msgid "With two:"
2940 msgstr ""
2941
2942 # type: verbatim
2943 #: ../src/guestfs.pod:1477
2944 #, no-wrap
2945 msgid ""
2946 " guestfs_add_drive_opts (g, filename,\n"
2947 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2948 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2949 "                         -1);\n"
2950 "\n"
2951 msgstr ""
2952
2953 # type: textblock
2954 #: ../src/guestfs.pod:1482
2955 msgid ""
2956 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2957 "happen!"
2958 msgstr ""
2959
2960 # type: =head2
2961 #: ../src/guestfs.pod:1485
2962 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2963 msgstr ""
2964
2965 # type: textblock
2966 #: ../src/guestfs.pod:1487
2967 msgid ""
2968 "The second variant has the same name with the suffix C<_va>, which works the "
2969 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2970 "example function, this is declared:"
2971 msgstr ""
2972
2973 # type: verbatim
2974 #: ../src/guestfs.pod:1491
2975 #, no-wrap
2976 msgid ""
2977 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2978 "                                va_list args);\n"
2979 "\n"
2980 msgstr ""
2981
2982 # type: =head2
2983 #: ../src/guestfs.pod:1494
2984 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2985 msgstr ""
2986
2987 # type: textblock
2988 #: ../src/guestfs.pod:1496
2989 msgid ""
2990 "The third variant is useful where you need to construct these calls.  You "
2991 "pass in a structure where you fill in the optional fields.  The structure "
2992 "has a bitmask as the first element which you must set to indicate which "
2993 "fields you have filled in.  For our example function the structure and call "
2994 "are declared:"
2995 msgstr ""
2996
2997 # type: verbatim
2998 #: ../src/guestfs.pod:1502
2999 #, no-wrap
3000 msgid ""
3001 " struct guestfs_add_drive_opts_argv {\n"
3002 "   uint64_t bitmask;\n"
3003 "   int readonly;\n"
3004 "   const char *format;\n"
3005 "   /* ... */\n"
3006 " };\n"
3007 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3008 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3009 "\n"
3010 msgstr ""
3011
3012 # type: textblock
3013 #: ../src/guestfs.pod:1511
3014 msgid "You could call it like this:"
3015 msgstr ""
3016
3017 # type: verbatim
3018 #: ../src/guestfs.pod:1513
3019 #, no-wrap
3020 msgid ""
3021 " struct guestfs_add_drive_opts_argv optargs = {\n"
3022 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3023 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3024 "   .readonly = 1,\n"
3025 "   .format = \"qcow2\"\n"
3026 " };\n"
3027 " \n"
3028 msgstr ""
3029
3030 # type: verbatim
3031 #: ../src/guestfs.pod:1520
3032 #, no-wrap
3033 msgid ""
3034 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3035 "\n"
3036 msgstr ""
3037
3038 # type: textblock
3039 #: ../src/guestfs.pod:1522 ../src/guestfs-actions.pod:11
3040 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:9
3041 #: ../fish/guestfish-actions.pod:1255 ../tools/virt-win-reg.pl:532
3042 msgid "Notes:"
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1528
3047 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3048 msgstr ""
3049
3050 # type: textblock
3051 #: ../src/guestfs.pod:1533
3052 msgid "You do not need to fill in all fields of the structure."
3053 msgstr ""
3054
3055 # type: textblock
3056 #: ../src/guestfs.pod:1537
3057 msgid ""
3058 "There must be a one-to-one correspondence between fields of the structure "
3059 "that are filled in, and bits set in the bitmask."
3060 msgstr ""
3061
3062 # type: =head2
3063 #: ../src/guestfs.pod:1542
3064 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3065 msgstr ""
3066
3067 # type: textblock
3068 #: ../src/guestfs.pod:1544
3069 msgid ""
3070 "In other languages, optional arguments are expressed in the way that is "
3071 "natural for that language.  We refer you to the language-specific "
3072 "documentation for more details on that."
3073 msgstr ""
3074
3075 # type: textblock
3076 #: ../src/guestfs.pod:1548
3077 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3078 msgstr ""
3079
3080 # type: =head2
3081 #: ../src/guestfs.pod:1550
3082 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3083 msgstr ""
3084
3085 # type: textblock
3086 #: ../src/guestfs.pod:1552
3087 msgid ""
3088 "The child process generates events in some situations.  Current events "
3089 "include: receiving a log message, the child process exits."
3090 msgstr ""
3091
3092 # type: textblock
3093 #: ../src/guestfs.pod:1555
3094 msgid ""
3095 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3096 "types of events."
3097 msgstr ""
3098
3099 # type: textblock
3100 #: ../src/guestfs.pod:1558
3101 msgid ""
3102 "Only I<one callback of each type> can be registered for each handle.  "
3103 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3104 "that type.  Cancel all callbacks of this type by calling this function with "
3105 "C<cb> set to C<NULL>."
3106 msgstr ""
3107
3108 # type: =head2
3109 #: ../src/guestfs.pod:1563
3110 msgid "guestfs_set_log_message_callback"
3111 msgstr ""
3112
3113 # type: verbatim
3114 #: ../src/guestfs.pod:1565
3115 #, no-wrap
3116 msgid ""
3117 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3118 "                                         char *buf, int len);\n"
3119 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3120 "                                        guestfs_log_message_cb cb,\n"
3121 "                                        void *opaque);\n"
3122 "\n"
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1571
3127 msgid ""
3128 "The callback function C<cb> will be called whenever qemu or the guest writes "
3129 "anything to the console."
3130 msgstr ""
3131
3132 # type: textblock
3133 #: ../src/guestfs.pod:1574
3134 msgid "Use this function to capture kernel messages and similar."
3135 msgstr ""
3136
3137 # type: textblock
3138 #: ../src/guestfs.pod:1576
3139 msgid ""
3140 "Normally there is no log message handler, and log messages are just "
3141 "discarded."
3142 msgstr ""
3143
3144 # type: =head2
3145 #: ../src/guestfs.pod:1579
3146 msgid "guestfs_set_subprocess_quit_callback"
3147 msgstr ""
3148
3149 # type: verbatim
3150 #: ../src/guestfs.pod:1581
3151 #, no-wrap
3152 msgid ""
3153 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3154 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3155 "                                            guestfs_subprocess_quit_cb cb,\n"
3156 "                                            void *opaque);\n"
3157 "\n"
3158 msgstr ""
3159
3160 # type: textblock
3161 #: ../src/guestfs.pod:1586
3162 msgid ""
3163 "The callback function C<cb> will be called when the child process quits, "
3164 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3165 "corresponds to a transition from any state to the CONFIG state)."
3166 msgstr ""
3167
3168 # type: =head2
3169 #: ../src/guestfs.pod:1591
3170 msgid "guestfs_set_launch_done_callback"
3171 msgstr ""
3172
3173 # type: verbatim
3174 #: ../src/guestfs.pod:1593
3175 #, no-wrap
3176 msgid ""
3177 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3178 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3179 "                                        guestfs_launch_done_cb cb,\n"
3180 "                                        void *opaque);\n"
3181 "\n"
3182 msgstr ""
3183
3184 # type: textblock
3185 #: ../src/guestfs.pod:1598
3186 msgid ""
3187 "The callback function C<cb> will be called when the child process becomes "
3188 "ready first time after it has been launched.  (This corresponds to a "
3189 "transition from LAUNCHING to the READY state)."
3190 msgstr ""
3191
3192 # type: =head2
3193 #: ../src/guestfs.pod:1602
3194 msgid "guestfs_set_close_callback"
3195 msgstr ""
3196
3197 # type: verbatim
3198 #: ../src/guestfs.pod:1604
3199 #, no-wrap
3200 msgid ""
3201 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3202 " void guestfs_set_close_callback (guestfs_h *g,\n"
3203 "                                  guestfs_close_cb cb,\n"
3204 "                                  void *opaque);\n"
3205 "\n"
3206 msgstr ""
3207
3208 # type: textblock
3209 #: ../src/guestfs.pod:1609
3210 msgid ""
3211 "The callback function C<cb> will be called while the handle is being closed "
3212 "(synchronously from L</guestfs_close>)."
3213 msgstr ""
3214
3215 # type: textblock
3216 #: ../src/guestfs.pod:1612
3217 msgid ""
3218 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3219 "handles that are open when the program exits.  This means that this callback "
3220 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3221 "problems in higher-level languages (eg. if your HLL interpreter has already "
3222 "been cleaned up by the time this is called, and if your callback then jumps "
3223 "into some HLL function)."
3224 msgstr ""
3225
3226 # type: =head2
3227 #: ../src/guestfs.pod:1620
3228 msgid "guestfs_set_progress_callback"
3229 msgstr ""
3230
3231 # type: verbatim
3232 #: ../src/guestfs.pod:1622
3233 #, no-wrap
3234 msgid ""
3235 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3236 "                                      int proc_nr, int serial,\n"
3237 "                                      uint64_t position, uint64_t total);\n"
3238 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3239 "                                     guestfs_progress_cb cb,\n"
3240 "                                     void *opaque);\n"
3241 "\n"
3242 msgstr ""
3243
3244 # type: textblock
3245 #: ../src/guestfs.pod:1629
3246 msgid ""
3247 "Some long-running operations can generate progress messages.  If this "
3248 "callback is registered, then it will be called each time a progress message "
3249 "is generated (usually two seconds after the operation started, and three "
3250 "times per second thereafter until it completes, although the frequency may "
3251 "change in future versions)."
3252 msgstr ""
3253
3254 # type: textblock
3255 #: ../src/guestfs.pod:1635
3256 msgid ""
3257 "The callback receives two numbers: C<position> and C<total>.  The units of "
3258 "C<total> are not defined, although for some operations C<total> may relate "
3259 "in some way to the amount of data to be transferred (eg. in bytes or "
3260 "megabytes), and C<position> may be the portion which has been transferred."
3261 msgstr ""
3262
3263 # type: textblock
3264 #: ../src/guestfs.pod:1641
3265 msgid "The only defined and stable parts of the API are:"
3266 msgstr ""
3267
3268 # type: textblock
3269 #: ../src/guestfs.pod:1647
3270 msgid ""
3271 "The callback can display to the user some type of progress bar or indicator "
3272 "which shows the ratio of C<position>:C<total>."
3273 msgstr ""
3274
3275 # type: textblock
3276 #: ../src/guestfs.pod:1652
3277 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3278 msgstr ""
3279
3280 # type: textblock
3281 #: ../src/guestfs.pod:1656
3282 msgid ""
3283 "If any progress notification is sent during a call, then a final progress "
3284 "notification is always sent when C<position> = C<total>."
3285 msgstr ""
3286
3287 # type: textblock
3288 #: ../src/guestfs.pod:1659
3289 msgid ""
3290 "This is to simplify caller code, so callers can easily set the progress "
3291 "indicator to \"100%\" at the end of the operation, without requiring special "
3292 "code to detect this case."
3293 msgstr ""
3294
3295 # type: textblock
3296 #: ../src/guestfs.pod:1665
3297 msgid ""
3298 "The callback also receives the procedure number and serial number of the "
3299 "call.  These are only useful for debugging protocol issues, and the callback "
3300 "can normally ignore them.  The callback may want to print these numbers in "
3301 "error messages or debugging messages."
3302 msgstr ""
3303
3304 # type: =head1
3305 #: ../src/guestfs.pod:1670
3306 msgid "PRIVATE DATA AREA"
3307 msgstr ""
3308
3309 # type: textblock
3310 #: ../src/guestfs.pod:1672
3311 msgid ""
3312 "You can attach named pieces of private data to the libguestfs handle, and "
3313 "fetch them by name for the lifetime of the handle.  This is called the "
3314 "private data area and is only available from the C API."
3315 msgstr ""
3316
3317 # type: textblock
3318 #: ../src/guestfs.pod:1676
3319 msgid "To attach a named piece of data, use the following call:"
3320 msgstr ""
3321
3322 # type: verbatim
3323 #: ../src/guestfs.pod:1678
3324 #, no-wrap
3325 msgid ""
3326 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3327 "\n"
3328 msgstr ""
3329
3330 # type: textblock
3331 #: ../src/guestfs.pod:1680
3332 msgid ""
3333 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3334 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3335 "overwritten."
3336 msgstr ""
3337
3338 # type: textblock
3339 #: ../src/guestfs.pod:1684
3340 msgid ""
3341 "You can use any C<key> you want, but names beginning with an underscore "
3342 "character are reserved for internal libguestfs purposes (for implementing "
3343 "language bindings).  It is recommended to prefix the name with some unique "
3344 "string to avoid collisions with other users."
3345 msgstr ""
3346
3347 # type: textblock
3348 #: ../src/guestfs.pod:1689
3349 msgid "To retrieve the pointer, use:"
3350 msgstr ""
3351
3352 # type: verbatim
3353 #: ../src/guestfs.pod:1691
3354 #, no-wrap
3355 msgid ""
3356 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3357 "\n"
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1693
3362 msgid ""
3363 "This function returns C<NULL> if either no data is found associated with "
3364 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3365 "C<NULL>."
3366 msgstr ""
3367
3368 # type: textblock
3369 #: ../src/guestfs.pod:1697
3370 msgid ""
3371 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3372 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3373 "all.  In particular, libguestfs does I<not> try to free the data when the "
3374 "handle is closed.  If the data must be freed, then the caller must either "
3375 "free it before calling L</guestfs_close> or must set up a close callback to "
3376 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3377 "can be registered for a handle)."
3378 msgstr ""
3379
3380 # type: textblock
3381 #: ../src/guestfs.pod:1705
3382 msgid ""
3383 "The private data area is implemented using a hash table, and should be "
3384 "reasonably efficient for moderate numbers of keys."
3385 msgstr ""
3386
3387 # type: =end
3388 #: ../src/guestfs.pod:1708 ../src/guestfs.pod:1713
3389 msgid "html"
3390 msgstr ""
3391
3392 # type: textblock
3393 #: ../src/guestfs.pod:1710
3394 msgid ""
3395 "<!-- old anchor for the next section --> <a name="
3396 "\"state_machine_and_low_level_event_api\"/>"
3397 msgstr ""
3398
3399 # type: =head1
3400 #: ../src/guestfs.pod:1715
3401 msgid "ARCHITECTURE"
3402 msgstr ""
3403
3404 # type: textblock
3405 #: ../src/guestfs.pod:1717
3406 msgid ""
3407 "Internally, libguestfs is implemented by running an appliance (a special "
3408 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3409 "process of the main program."
3410 msgstr ""
3411
3412 # type: verbatim
3413 #: ../src/guestfs.pod:1721
3414 #, no-wrap
3415 msgid ""
3416 "  ___________________\n"
3417 " /                   \\\n"
3418 " | main program      |\n"
3419 " |                   |\n"
3420 " |                   |           child process / appliance\n"
3421 " |                   |           __________________________\n"
3422 " |                   |          / qemu                     \\\n"
3423 " +-------------------+   RPC    |      +-----------------+ |\n"
3424 " | libguestfs     <--------------------> guestfsd        | |\n"
3425 " |                   |          |      +-----------------+ |\n"
3426 " \\___________________/          |      | Linux kernel    | |\n"
3427 "                                |      +--^--------------+ |\n"
3428 "                                \\_________|________________/\n"
3429 "                                          |\n"
3430 "                                   _______v______\n"
3431 "                                  /              \\\n"
3432 "                                  | Device or    |\n"
3433 "                                  | disk image   |\n"
3434 "                                  \\______________/\n"
3435 "\n"
3436 msgstr ""
3437
3438 # type: textblock
3439 #: ../src/guestfs.pod:1741
3440 msgid ""
3441 "The library, linked to the main program, creates the child process and hence "
3442 "the appliance in the L</guestfs_launch> function."
3443 msgstr ""
3444
3445 # type: textblock
3446 #: ../src/guestfs.pod:1744
3447 msgid ""
3448 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3449 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3450 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3451 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3452 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3453 "attached to the qemu process which translates device access by the "
3454 "appliance's Linux kernel into accesses to the image."
3455 msgstr ""
3456
3457 # type: textblock
3458 #: ../src/guestfs.pod:1753
3459 msgid ""
3460 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3461 "Although the disk image you are attached to might also be used by some "
3462 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3463 "care if both libguestfs's qemu process and your virtual machine are trying "
3464 "to update the disk image at the same time, since these usually results in "
3465 "massive disk corruption)."
3466 msgstr ""
3467
3468 # type: =head1
3469 #: ../src/guestfs.pod:1760
3470 msgid "STATE MACHINE"
3471 msgstr ""
3472
3473 # type: textblock
3474 #: ../src/guestfs.pod:1762
3475 msgid "libguestfs uses a state machine to model the child process:"
3476 msgstr ""
3477
3478 # type: verbatim
3479 #: ../src/guestfs.pod:1764
3480 #, no-wrap
3481 msgid ""
3482 "                         |\n"
3483 "                    guestfs_create\n"
3484 "                         |\n"
3485 "                         |\n"
3486 "                     ____V_____\n"
3487 "                    /          \\\n"
3488 "                    |  CONFIG  |\n"
3489 "                    \\__________/\n"
3490 "                     ^ ^   ^  \\\n"
3491 "                    /  |    \\  \\ guestfs_launch\n"
3492 "                   /   |    _\\__V______\n"
3493 "                  /    |   /           \\\n"
3494 "                 /     |   | LAUNCHING |\n"
3495 "                /      |   \\___________/\n"
3496 "               /       |       /\n"
3497 "              /        |  guestfs_launch\n"
3498 "             /         |     /\n"
3499 "    ______  /        __|____V\n"
3500 "   /      \\ ------> /        \\\n"
3501 "   | BUSY |         | READY  |\n"
3502 "   \\______/ <------ \\________/\n"
3503 "\n"
3504 msgstr ""
3505
3506 # type: textblock
3507 #: ../src/guestfs.pod:1786
3508 msgid ""
3509 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3510 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3511 "(3) alternating between READY and BUSY as commands are issued to, and "
3512 "carried out by, the child process."
3513 msgstr ""
3514
3515 # type: textblock
3516 #: ../src/guestfs.pod:1791
3517 msgid ""
3518 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3519 "asynchronously at any time (eg. due to some internal error), and that causes "
3520 "the state to transition back to CONFIG."
3521 msgstr ""
3522
3523 # type: textblock
3524 #: ../src/guestfs.pod:1795
3525 msgid ""
3526 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3527 "issued when in the CONFIG state."
3528 msgstr ""
3529
3530 # type: textblock
3531 #: ../src/guestfs.pod:1798
3532 msgid ""
3533 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3534 "L</guestfs_launch> blocks until the child process is READY to accept "
3535 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3536 "moves the state from CONFIG to LAUNCHING while it is running."
3537 msgstr ""
3538
3539 # type: textblock
3540 #: ../src/guestfs.pod:1804
3541 msgid ""
3542 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3543 "state.  These API calls block waiting for the command to be carried out (ie. "
3544 "the state to transition to BUSY and then back to READY).  There are no non-"
3545 "blocking versions, and no way to issue more than one command per handle at "
3546 "the same time."
3547 msgstr ""
3548
3549 # type: textblock
3550 #: ../src/guestfs.pod:1810
3551 msgid ""
3552 "Finally, the child process sends asynchronous messages back to the main "
3553 "program, such as kernel log messages.  You can register a callback to "
3554 "receive these messages."
3555 msgstr ""
3556
3557 # type: =head1
3558 #: ../src/guestfs.pod:1814
3559 msgid "INTERNALS"
3560 msgstr ""
3561
3562 # type: =head2
3563 #: ../src/guestfs.pod:1816
3564 msgid "COMMUNICATION PROTOCOL"
3565 msgstr ""
3566
3567 # type: textblock
3568 #: ../src/guestfs.pod:1818
3569 msgid ""
3570 "Don't rely on using this protocol directly.  This section documents how it "
3571 "currently works, but it may change at any time."
3572 msgstr ""
3573
3574 # type: textblock
3575 #: ../src/guestfs.pod:1821
3576 msgid ""
3577 "The protocol used to talk between the library and the daemon running inside "
3578 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3579 "1014, RFC 1832, RFC 4506)."
3580 msgstr ""
3581
3582 # type: textblock
3583 #: ../src/guestfs.pod:1825
3584 msgid ""
3585 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3586 "this file is automatically generated)."
3587 msgstr ""
3588
3589 # type: textblock
3590 #: ../src/guestfs.pod:1828
3591 msgid ""
3592 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3593 "and C<FileOut> parameters, which are handled with very simple request/reply "
3594 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3595 "parameters, which use the same request and reply messages, but they may also "
3596 "be followed by files sent using a chunked encoding."
3597 msgstr ""
3598
3599 # type: =head3
3600 #: ../src/guestfs.pod:1835
3601 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3602 msgstr ""
3603
3604 # type: textblock
3605 #: ../src/guestfs.pod:1837
3606 msgid "For ordinary functions, the request message is:"
3607 msgstr ""
3608
3609 # type: verbatim
3610 #: ../src/guestfs.pod:1839
3611 #, no-wrap
3612 msgid ""
3613 " total length (header + arguments,\n"
3614 "      but not including the length word itself)\n"
3615 " struct guestfs_message_header (encoded as XDR)\n"
3616 " struct guestfs_<foo>_args (encoded as XDR)\n"
3617 "\n"
3618 msgstr ""
3619
3620 # type: textblock
3621 #: ../src/guestfs.pod:1844
3622 msgid ""
3623 "The total length field allows the daemon to allocate a fixed size buffer "
3624 "into which it slurps the rest of the message.  As a result, the total length "
3625 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3626 "effective size of any request is limited to somewhere under this size."
3627 msgstr ""
3628
3629 # type: textblock
3630 #: ../src/guestfs.pod:1850
3631 msgid ""
3632 "Note also that many functions don't take any arguments, in which case the "
3633 "C<guestfs_I<foo>_args> is completely omitted."
3634 msgstr ""
3635
3636 # type: textblock
3637 #: ../src/guestfs.pod:1853
3638 msgid ""
3639 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3640 "receiver knows what type of args structure to expect, or none at all."
3641 msgstr ""
3642
3643 # type: textblock
3644 #: ../src/guestfs.pod:1857
3645 msgid ""
3646 "For functions that take optional arguments, the optional arguments are "
3647 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3648 "arguments.  A bitmask in the header indicates which optional arguments are "
3649 "meaningful.  The bitmask is also checked to see if it contains bits set "
3650 "which the daemon does not know about (eg. if more optional arguments were "
3651 "added in a later version of the library), and this causes the call to be "
3652 "rejected."
3653 msgstr ""
3654
3655 # type: textblock
3656 #: ../src/guestfs.pod:1865
3657 msgid "The reply message for ordinary functions is:"
3658 msgstr ""
3659
3660 # type: verbatim
3661 #: ../src/guestfs.pod:1867
3662 #, no-wrap
3663 msgid ""
3664 " total length (header + ret,\n"
3665 "      but not including the length word itself)\n"
3666 " struct guestfs_message_header (encoded as XDR)\n"
3667 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3668 "\n"
3669 msgstr ""
3670
3671 # type: textblock
3672 #: ../src/guestfs.pod:1872
3673 msgid ""
3674 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3675 "functions that return no formal return values."
3676 msgstr ""
3677
3678 # type: textblock
3679 #: ../src/guestfs.pod:1875
3680 msgid ""
3681 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3682 msgstr ""
3683
3684 # type: textblock
3685 #: ../src/guestfs.pod:1878
3686 msgid ""
3687 "In the case of an error, a flag is set in the header, and the reply message "
3688 "is slightly changed:"
3689 msgstr ""
3690
3691 # type: verbatim
3692 #: ../src/guestfs.pod:1881
3693 #, no-wrap
3694 msgid ""
3695 " total length (header + error,\n"
3696 "      but not including the length word itself)\n"
3697 " struct guestfs_message_header (encoded as XDR)\n"
3698 " struct guestfs_message_error (encoded as XDR)\n"
3699 "\n"
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1886
3704 msgid ""
3705 "The C<guestfs_message_error> structure contains the error message as a "
3706 "string."
3707 msgstr ""
3708
3709 # type: =head3
3710 #: ../src/guestfs.pod:1889
3711 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3712 msgstr ""
3713
3714 # type: textblock
3715 #: ../src/guestfs.pod:1891
3716 msgid ""
3717 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3718 "The normal request message is sent (see above).  However this is followed by "
3719 "a sequence of file chunks."
3720 msgstr ""
3721
3722 # type: verbatim
3723 #: ../src/guestfs.pod:1895
3724 #, no-wrap
3725 msgid ""
3726 " total length (header + arguments,\n"
3727 "      but not including the length word itself,\n"
3728 "      and not including the chunks)\n"
3729 " struct guestfs_message_header (encoded as XDR)\n"
3730 " struct guestfs_<foo>_args (encoded as XDR)\n"
3731 " sequence of chunks for FileIn param #0\n"
3732 " sequence of chunks for FileIn param #1 etc.\n"
3733 "\n"
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1903
3738 msgid "The \"sequence of chunks\" is:"
3739 msgstr ""
3740
3741 # type: verbatim
3742 #: ../src/guestfs.pod:1905
3743 #, no-wrap
3744 msgid ""
3745 " length of chunk (not including length word itself)\n"
3746 " struct guestfs_chunk (encoded as XDR)\n"
3747 " length of chunk\n"
3748 " struct guestfs_chunk (encoded as XDR)\n"
3749 "   ...\n"
3750 " length of chunk\n"
3751 " struct guestfs_chunk (with data.data_len == 0)\n"
3752 "\n"
3753 msgstr ""
3754
3755 # type: textblock
3756 #: ../src/guestfs.pod:1913
3757 msgid ""
3758 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3759 "is set in the final chunk to indicate either successful completion or early "
3760 "cancellation."
3761 msgstr ""
3762
3763 # type: textblock
3764 #: ../src/guestfs.pod:1917
3765 msgid ""
3766 "At time of writing there are no functions that have more than one FileIn "
3767 "parameter.  However this is (theoretically) supported, by sending the "
3768 "sequence of chunks for each FileIn parameter one after another (from left to "
3769 "right)."
3770 msgstr ""
3771
3772 # type: textblock
3773 #: ../src/guestfs.pod:1922
3774 msgid ""
3775 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3776 "transfer.  The library does this by sending a chunk with a special flag set "
3777 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3778 "RPC, does I<not> send any reply, and goes back to reading the next request."
3779 msgstr ""
3780
3781 # type: textblock
3782 #: ../src/guestfs.pod:1928
3783 msgid ""
3784 "The daemon may also cancel.  It does this by writing a special word "
3785 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3786 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3787 "cancel chunk).  The special word is chosen so that even if cancellation "
3788 "happens right at the end of the transfer (after the library has finished "
3789 "writing and has started listening for the reply), the \"spurious\" cancel "
3790 "flag will not be confused with the reply message."
3791 msgstr ""
3792
3793 # type: textblock
3794 #: ../src/guestfs.pod:1937
3795 msgid ""
3796 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3797 "limit), and also files where the size is not known in advance (eg. from "
3798 "pipes or sockets).  However the chunks are rather small "
3799 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3800 "to keep much in memory."
3801 msgstr ""
3802
3803 # type: =head3
3804 #: ../src/guestfs.pod:1943
3805 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3806 msgstr ""
3807
3808 # type: textblock
3809 #: ../src/guestfs.pod:1945
3810 msgid ""
3811 "The protocol for FileOut parameters is exactly the same as for FileIn "
3812 "parameters, but with the roles of daemon and library reversed."
3813 msgstr ""
3814
3815 # type: verbatim
3816 #: ../src/guestfs.pod:1948
3817 #, no-wrap
3818 msgid ""
3819 " total length (header + ret,\n"
3820 "      but not including the length word itself,\n"
3821 "      and not including the chunks)\n"
3822 " struct guestfs_message_header (encoded as XDR)\n"
3823 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3824 " sequence of chunks for FileOut param #0\n"
3825 " sequence of chunks for FileOut param #1 etc.\n"
3826 "\n"
3827 msgstr ""
3828
3829 # type: =head3
3830 #: ../src/guestfs.pod:1956
3831 msgid "INITIAL MESSAGE"
3832 msgstr ""
3833
3834 # type: textblock
3835 #: ../src/guestfs.pod:1958
3836 msgid ""
3837 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3838 "which indicates that the guest and daemon is alive.  This is what L</"
3839 "guestfs_launch> waits for."
3840 msgstr ""
3841
3842 # type: =head3
3843 #: ../src/guestfs.pod:1962
3844 msgid "PROGRESS NOTIFICATION MESSAGES"
3845 msgstr ""
3846
3847 # type: textblock
3848 #: ../src/guestfs.pod:1964
3849 msgid ""
3850 "The daemon may send progress notification messages at any time.  These are "
3851 "distinguished by the normal length word being replaced by "
3852 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3853 msgstr ""
3854
3855 # type: textblock
3856 #: ../src/guestfs.pod:1968
3857 msgid ""
3858 "The library turns them into progress callbacks (see "
3859 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3860 "discards them if not."
3861 msgstr ""
3862
3863 # type: textblock
3864 #: ../src/guestfs.pod:1972
3865 msgid ""
3866 "The daemon self-limits the frequency of progress messages it sends (see "
3867 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3868 "messages."
3869 msgstr ""
3870
3871 # type: =head1
3872 #: ../src/guestfs.pod:1976
3873 msgid "LIBGUESTFS VERSION NUMBERS"
3874 msgstr ""
3875
3876 # type: textblock
3877 #: ../src/guestfs.pod:1978
3878 msgid ""
3879 "Since April 2010, libguestfs has started to make separate development and "
3880 "stable releases, along with corresponding branches in our git repository.  "
3881 "These separate releases can be identified by version number:"
3882 msgstr ""
3883
3884 # type: verbatim
3885 #: ../src/guestfs.pod:1983
3886 #, no-wrap
3887 msgid ""
3888 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3889 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3890 "       |\n"
3891 "       v\n"
3892 " 1  .  3  .  5\n"
3893 " ^           ^\n"
3894 " |           |\n"
3895 " |           `-------- sub-version\n"
3896 " |\n"
3897 " `------ always '1' because we don't change the ABI\n"
3898 "\n"
3899 msgstr ""
3900
3901 # type: textblock
3902 #: ../src/guestfs.pod:1994
3903 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3904 msgstr ""
3905
3906 # type: textblock
3907 #: ../src/guestfs.pod:1996
3908 msgid ""
3909 "As time passes we cherry pick fixes from the development branch and backport "
3910 "those into the stable branch, the effect being that the stable branch should "
3911 "get more stable and less buggy over time.  So the stable releases are ideal "
3912 "for people who don't need new features but would just like the software to "
3913 "work."
3914 msgstr ""
3915
3916 # type: textblock
3917 #: ../src/guestfs.pod:2002
3918 msgid "Our criteria for backporting changes are:"
3919 msgstr ""
3920
3921 # type: textblock
3922 #: ../src/guestfs.pod:2008
3923 msgid ""
3924 "Documentation changes which don't affect any code are backported unless the "
3925 "documentation refers to a future feature which is not in stable."
3926 msgstr ""
3927
3928 # type: textblock
3929 #: ../src/guestfs.pod:2014
3930 msgid ""
3931 "Bug fixes which are not controversial, fix obvious problems, and have been "
3932 "well tested are backported."
3933 msgstr ""
3934
3935 # type: textblock
3936 #: ../src/guestfs.pod:2019
3937 msgid ""
3938 "Simple rearrangements of code which shouldn't affect how it works get "
3939 "backported.  This is so that the code in the two branches doesn't get too "
3940 "far out of step, allowing us to backport future fixes more easily."
3941 msgstr ""
3942
3943 # type: textblock
3944 #: ../src/guestfs.pod:2025
3945 msgid ""
3946 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3947 "exceptional case: the new feature is required in order to implement an "
3948 "important bug fix."
3949 msgstr ""
3950
3951 # type: textblock
3952 #: ../src/guestfs.pod:2031
3953 msgid ""
3954 "A new stable branch starts when we think the new features in development are "
3955 "substantial and compelling enough over the current stable branch to warrant "
3956 "it.  When that happens we create new stable and development versions 1.N.0 "
3957 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3958 "stable at this point, but by backporting fixes from development, that branch "
3959 "will stabilize over time."
3960 msgstr ""
3961
3962 # type: =head1
3963 #: ../src/guestfs.pod:2039 ../fish/guestfish.pod:965
3964 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3965 msgid "ENVIRONMENT VARIABLES"
3966 msgstr ""
3967
3968 # type: =item
3969 #: ../src/guestfs.pod:2043 ../fish/guestfish.pod:991
3970 msgid "LIBGUESTFS_APPEND"
3971 msgstr ""
3972
3973 # type: textblock
3974 #: ../src/guestfs.pod:2045 ../fish/guestfish.pod:993
3975 msgid "Pass additional options to the guest kernel."
3976 msgstr ""
3977
3978 # type: =item
3979 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:995
3980 msgid "LIBGUESTFS_DEBUG"
3981 msgstr ""
3982
3983 # type: textblock
3984 #: ../src/guestfs.pod:2049
3985 msgid ""
3986 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3987 "effect as calling C<guestfs_set_verbose (g, 1)>."
3988 msgstr ""
3989
3990 # type: =item
3991 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:1000
3992 msgid "LIBGUESTFS_MEMSIZE"
3993 msgstr ""
3994
3995 # type: textblock
3996 #: ../src/guestfs.pod:2054 ../fish/guestfish.pod:1002
3997 msgid ""
3998 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3999 msgstr ""
4000
4001 # type: verbatim
4002 #: ../src/guestfs.pod:2057 ../fish/guestfish.pod:1005
4003 #, no-wrap
4004 msgid ""
4005 " LIBGUESTFS_MEMSIZE=700\n"
4006 "\n"
4007 msgstr ""
4008
4009 # type: =item
4010 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:1007
4011 msgid "LIBGUESTFS_PATH"
4012 msgstr ""
4013
4014 # type: textblock
4015 #: ../src/guestfs.pod:2061
4016 msgid ""
4017 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4018 "the discussion of paths in section PATH above."
4019 msgstr ""
4020
4021 # type: =item
4022 #: ../src/guestfs.pod:2064 ../fish/guestfish.pod:1012
4023 msgid "LIBGUESTFS_QEMU"
4024 msgstr ""
4025
4026 # type: textblock
4027 #: ../src/guestfs.pod:2066 ../fish/guestfish.pod:1014
4028 msgid ""
4029 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4030 "which was found at compile time by the configure script is used."
4031 msgstr ""
4032
4033 # type: textblock
4034 #: ../src/guestfs.pod:2070
4035 msgid "See also L</QEMU WRAPPERS> above."
4036 msgstr ""
4037
4038 # type: =item
4039 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:1018
4040 msgid "LIBGUESTFS_TRACE"
4041 msgstr ""
4042
4043 # type: textblock
4044 #: ../src/guestfs.pod:2074
4045 msgid ""
4046 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4047 "effect as calling C<guestfs_set_trace (g, 1)>."
4048 msgstr ""
4049
4050 # type: =item
4051 #: ../src/guestfs.pod:2077 ../fish/guestfish.pod:1027
4052 msgid "TMPDIR"
4053 msgstr ""
4054
4055 # type: textblock
4056 #: ../src/guestfs.pod:2079 ../fish/guestfish.pod:1029
4057 msgid "Location of temporary directory, defaults to C</tmp>."
4058 msgstr ""
4059
4060 # type: textblock
4061 #: ../src/guestfs.pod:2081 ../fish/guestfish.pod:1031
4062 msgid ""
4063 "If libguestfs was compiled to use the supermin appliance then the real "
4064 "appliance is cached in this directory, shared between all handles belonging "
4065 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4066 "use in case C</tmp> is not large enough."
4067 msgstr ""
4068
4069 # type: =head1
4070 #: ../src/guestfs.pod:2089 ../fish/guestfish.pod:1089
4071 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4072 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
4073 #: ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189
4074 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
4075 #: ../tools/virt-list-partitions.pl:257
4076 msgid "SEE ALSO"
4077 msgstr ""
4078
4079 # type: textblock
4080 #: ../src/guestfs.pod:2091
4081 msgid ""
4082 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
4083 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4084 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
4085 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
4086 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4087 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4088 msgstr ""
4089
4090 # type: textblock
4091 #: ../src/guestfs.pod:2114
4092 msgid ""
4093 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4094 "(8)>, L<disktype(1)>."
4095 msgstr ""
4096
4097 # type: =head1
4098 #: ../src/guestfs.pod:2121 ../tools/virt-win-reg.pl:587
4099 #: ../tools/virt-make-fs.pl:548
4100 msgid "BUGS"
4101 msgstr ""
4102
4103 # type: textblock
4104 #: ../src/guestfs.pod:2123
4105 msgid "To get a list of bugs against libguestfs use this link:"
4106 msgstr ""
4107
4108 # type: textblock
4109 #: ../src/guestfs.pod:2125
4110 msgid ""
4111 "L<https://bugzilla.redhat.com/buglist.cgi?"
4112 "component=libguestfs&product=Virtualization+Tools>"
4113 msgstr ""
4114
4115 # type: textblock
4116 #: ../src/guestfs.pod:2127
4117 msgid "To report a new bug against libguestfs use this link:"
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs.pod:2129
4122 msgid ""
4123 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4124 "component=libguestfs&product=Virtualization+Tools>"
4125 msgstr ""
4126
4127 # type: textblock
4128 #: ../src/guestfs.pod:2131
4129 msgid "When reporting a bug, please check:"
4130 msgstr ""
4131
4132 # type: textblock
4133 #: ../src/guestfs.pod:2137
4134 msgid "That the bug hasn't been reported already."
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs.pod:2141
4139 msgid "That you are testing a recent version."
4140 msgstr ""
4141
4142 # type: textblock
4143 #: ../src/guestfs.pod:2145
4144 msgid "Describe the bug accurately, and give a way to reproduce it."
4145 msgstr ""
4146
4147 # type: textblock
4148 #: ../src/guestfs.pod:2149
4149 msgid ""
4150 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4151 "bug report."
4152 msgstr ""
4153
4154 # type: =head1
4155 #: ../src/guestfs.pod:2154 ../fish/guestfish.pod:1108
4156 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4157 msgid "AUTHORS"
4158 msgstr ""
4159
4160 # type: textblock
4161 #: ../src/guestfs.pod:2156 ../fish/guestfish.pod:1110
4162 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4163 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4164 msgstr ""
4165
4166 # type: =head1
4167 #: ../src/guestfs.pod:2158 ../fish/guestfish.pod:1112
4168 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4169 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:602
4170 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206
4171 #: ../tools/virt-tar.pl:296 ../tools/virt-make-fs.pl:563
4172 #: ../tools/virt-list-partitions.pl:273
4173 msgid "COPYRIGHT"
4174 msgstr ""
4175
4176 # type: textblock
4177 #: ../src/guestfs.pod:2160 ../fish/guestfish.pod:1114
4178 #: ../fuse/guestmount.pod:250
4179 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4180 msgstr ""
4181
4182 # type: textblock
4183 #: ../src/guestfs.pod:2163
4184 msgid ""
4185 "This library is free software; you can redistribute it and/or modify it "
4186 "under the terms of the GNU Lesser General Public License as published by the "
4187 "Free Software Foundation; either version 2 of the License, or (at your "
4188 "option) any later version."
4189 msgstr ""
4190
4191 # type: textblock
4192 #: ../src/guestfs.pod:2168
4193 msgid ""
4194 "This library is distributed in the hope that it will be useful, but WITHOUT "
4195 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4196 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4197 "for more details."
4198 msgstr ""
4199
4200 # type: textblock
4201 #: ../src/guestfs.pod:2173
4202 msgid ""
4203 "You should have received a copy of the GNU Lesser General Public License "
4204 "along with this library; if not, write to the Free Software Foundation, "
4205 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4206 msgstr ""
4207
4208 # type: =head2
4209 #: ../src/guestfs-actions.pod:1
4210 msgid "guestfs_add_cdrom"
4211 msgstr ""
4212
4213 # type: verbatim
4214 #: ../src/guestfs-actions.pod:3
4215 #, no-wrap
4216 msgid ""
4217 " int\n"
4218 " guestfs_add_cdrom (guestfs_h *g,\n"
4219 "                    const char *filename);\n"
4220 "\n"
4221 msgstr ""
4222
4223 # type: textblock
4224 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4225 msgid "This function adds a virtual CD-ROM disk image to the guest."
4226 msgstr ""
4227
4228 # type: textblock
4229 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4230 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4231 msgstr ""
4232
4233 # type: textblock
4234 #: ../src/guestfs-actions.pod:17
4235 msgid ""
4236 "This call checks for the existence of C<filename>.  This stops you from "
4237 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4238 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4239 "instead."
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:24
4244 msgid ""
4245 "If you just want to add an ISO file (often you use this as an efficient way "
4246 "to transfer large files into the guest), then you should probably use "
4247 "C<guestfs_add_drive_ro> instead."
4248 msgstr ""
4249
4250 # type: textblock
4251 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:128
4252 #: ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:226
4253 #: ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261
4254 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:295
4255 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4256 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:489
4257 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4258 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:635
4259 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:664
4260 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
4261 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
4262 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:990
4263 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1092
4264 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1129
4265 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1163
4266 #: ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264
4267 #: ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1326
4268 #: ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1466
4269 #: ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706
4270 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:2215
4271 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2420
4272 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3194
4273 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3229
4274 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3368
4275 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3395
4276 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3446
4277 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3538
4278 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3578
4279 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3633
4280 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3671
4281 #: ../src/guestfs-actions.pod:3706 ../src/guestfs-actions.pod:3718
4282 #: ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3770
4283 #: ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3798
4284 #: ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:3908
4285 #: ../src/guestfs-actions.pod:3928 ../src/guestfs-actions.pod:3941
4286 #: ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4010
4287 #: ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4044
4288 #: ../src/guestfs-actions.pod:4058 ../src/guestfs-actions.pod:4072
4289 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4104
4290 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4168
4291 #: ../src/guestfs-actions.pod:4239 ../src/guestfs-actions.pod:4270
4292 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4308
4293 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4337
4294 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4365
4295 #: ../src/guestfs-actions.pod:4380 ../src/guestfs-actions.pod:4415
4296 #: ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:4450
4297 #: ../src/guestfs-actions.pod:4464 ../src/guestfs-actions.pod:4481
4298 #: ../src/guestfs-actions.pod:4530 ../src/guestfs-actions.pod:4567
4299 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4609
4300 #: ../src/guestfs-actions.pod:4626 ../src/guestfs-actions.pod:4644
4301 #: ../src/guestfs-actions.pod:4778 ../src/guestfs-actions.pod:4835
4302 #: ../src/guestfs-actions.pod:4857 ../src/guestfs-actions.pod:4875
4303 #: ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4973
4304 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5003
4305 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5306
4306 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5339
4307 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5365
4308 #: ../src/guestfs-actions.pod:5377 ../src/guestfs-actions.pod:5391
4309 #: ../src/guestfs-actions.pod:5407 ../src/guestfs-actions.pod:5428
4310 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5466
4311 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5507
4312 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5544
4313 #: ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:5584
4314 #: ../src/guestfs-actions.pod:5601 ../src/guestfs-actions.pod:5629
4315 #: ../src/guestfs-actions.pod:5653 ../src/guestfs-actions.pod:5672
4316 #: ../src/guestfs-actions.pod:5696 ../src/guestfs-actions.pod:5711
4317 #: ../src/guestfs-actions.pod:5726 ../src/guestfs-actions.pod:5745
4318 #: ../src/guestfs-actions.pod:5782 ../src/guestfs-actions.pod:5805
4319 #: ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:5939
4320 #: ../src/guestfs-actions.pod:6060 ../src/guestfs-actions.pod:6072
4321 #: ../src/guestfs-actions.pod:6085 ../src/guestfs-actions.pod:6098
4322 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6133
4323 #: ../src/guestfs-actions.pod:6146 ../src/guestfs-actions.pod:6159
4324 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6233
4325 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6266
4326 #: ../src/guestfs-actions.pod:6282 ../src/guestfs-actions.pod:6299
4327 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6332
4328 #: ../src/guestfs-actions.pod:6368 ../src/guestfs-actions.pod:6382
4329 #: ../src/guestfs-actions.pod:6423 ../src/guestfs-actions.pod:6436
4330 #: ../src/guestfs-actions.pod:6454 ../src/guestfs-actions.pod:6488
4331 #: ../src/guestfs-actions.pod:6524 ../src/guestfs-actions.pod:6643
4332 #: ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6675
4333 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-actions.pod:6743
4334 #: ../src/guestfs-actions.pod:6788 ../src/guestfs-actions.pod:6821
4335 #: ../src/guestfs-actions.pod:6875 ../src/guestfs-actions.pod:6901
4336 #: ../src/guestfs-actions.pod:6967 ../src/guestfs-actions.pod:6986
4337 #: ../src/guestfs-actions.pod:7015
4338 msgid "This function returns 0 on success or -1 on error."
4339 msgstr ""
4340
4341 # type: textblock
4342 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:242
4343 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:28
4344 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4345 msgid ""
4346 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4347 "instead."
4348 msgstr ""
4349
4350 # type: textblock
4351 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:245
4352 #: ../src/guestfs-actions.pod:266 ../src/guestfs-actions.pod:1437
4353 #: ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1944
4354 #: ../src/guestfs-actions.pod:4129 ../src/guestfs-actions.pod:6909
4355 #: ../src/guestfs-actions.pod:7078 ../fish/guestfish-actions.pod:31
4356 #: ../fish/guestfish-actions.pod:156 ../fish/guestfish-actions.pod:170
4357 #: ../fish/guestfish-actions.pod:951 ../fish/guestfish-actions.pod:1308
4358 #: ../fish/guestfish-actions.pod:1322 ../fish/guestfish-actions.pod:2778
4359 #: ../fish/guestfish-actions.pod:4580 ../fish/guestfish-actions.pod:4677
4360 msgid ""
4361 "Deprecated functions will not be removed from the API, but the fact that "
4362 "they are deprecated indicates that there are problems with correct use of "
4363 "these functions."
4364 msgstr ""
4365
4366 # type: textblock
4367 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:130
4368 #: ../src/guestfs-actions.pod:1094 ../src/guestfs-actions.pod:1895
4369 #: ../src/guestfs-actions.pod:1993 ../src/guestfs-actions.pod:2096
4370 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3211
4371 #: ../src/guestfs-actions.pod:4417 ../src/guestfs-actions.pod:5486
4372 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5713
4373 #: ../src/guestfs-actions.pod:6176 ../src/guestfs-actions.pod:6301
4374 #: ../src/guestfs-actions.pod:6823
4375 msgid "(Added in 0.3)"
4376 msgstr ""
4377
4378 # type: =head2
4379 #: ../src/guestfs-actions.pod:41
4380 msgid "guestfs_add_domain"
4381 msgstr ""
4382
4383 # type: verbatim
4384 #: ../src/guestfs-actions.pod:43
4385 #, no-wrap
4386 msgid ""
4387 " int\n"
4388 " guestfs_add_domain (guestfs_h *g,\n"
4389 "                     const char *dom,\n"
4390 "                     ...);\n"
4391 "\n"
4392 msgstr ""
4393
4394 # type: textblock
4395 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139
4396 #: ../src/guestfs-actions.pod:4143
4397 msgid ""
4398 "You may supply a list of optional arguments to this call.  Use zero or more "
4399 "of the following pairs of parameters, and terminate the list with C<-1> on "
4400 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4401 msgstr ""
4402
4403 # type: verbatim
4404 #: ../src/guestfs-actions.pod:53
4405 #, no-wrap
4406 msgid ""
4407 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4408 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4409 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4410 "\n"
4411 msgstr ""
4412
4413 # type: textblock
4414 #: ../src/guestfs-actions.pod:57
4415 msgid ""
4416 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4417 "It works by connecting to libvirt, requesting the domain and domain XML from "
4418 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4419 "one."
4420 msgstr ""
4421
4422 # type: textblock
4423 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4424 msgid ""
4425 "The number of disks added is returned.  This operation is atomic: if an "
4426 "error is returned, then no disks are added."
4427 msgstr ""
4428
4429 # type: textblock
4430 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4431 msgid ""
4432 "This function does some minimal checks to make sure the libvirt domain is "
4433 "not running (unless C<readonly> is true).  In a future version we will try "
4434 "to acquire the libvirt lock on each disk."
4435 msgstr ""
4436
4437 # type: textblock
4438 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4439 msgid ""
4440 "Disks must be accessible locally.  This often means that adding disks from a "
4441 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4442 "unless those disks are accessible via the same device path locally too."
4443 msgstr ""
4444
4445 # type: textblock
4446 #: ../src/guestfs-actions.pod:74
4447 msgid ""
4448 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4449 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4450 "libvirt URI (or one set through an environment variable, see the libvirt "
4451 "documentation for full details).  If you are using the C API directly then "
4452 "it is more flexible to create the libvirt connection object yourself, get "
4453 "the domain object, and call C<guestfs_add_libvirt_dom>."
4454 msgstr ""
4455
4456 # type: textblock
4457 #: ../src/guestfs-actions.pod:82
4458 msgid ""
4459 "The other optional parameters are passed directly through to "
4460 "C<guestfs_add_drive_opts>."
4461 msgstr ""
4462
4463 # type: textblock
4464 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:338
4465 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:681
4466 #: ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730
4467 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:1309
4468 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1866
4469 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2005
4470 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2083
4471 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2634
4472 #: ../src/guestfs-actions.pod:2655 ../src/guestfs-actions.pod:4553
4473 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:5087
4474 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6409
4475 #: ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6847
4476 #: ../src/guestfs-actions.pod:6860
4477 msgid "On error this function returns -1."
4478 msgstr ""
4479
4480 # type: textblock
4481 #: ../src/guestfs-actions.pod:87
4482 msgid "(Added in 1.7.4)"
4483 msgstr ""
4484
4485 # type: =head2
4486 #: ../src/guestfs-actions.pod:89
4487 msgid "guestfs_add_domain_va"
4488 msgstr ""
4489
4490 # type: verbatim
4491 #: ../src/guestfs-actions.pod:91
4492 #, no-wrap
4493 msgid ""
4494 " int\n"
4495 " guestfs_add_domain_va (guestfs_h *g,\n"
4496 "                        const char *dom,\n"
4497 "                        va_list args);\n"
4498 "\n"
4499 msgstr ""
4500
4501 # type: textblock
4502 #: ../src/guestfs-actions.pod:96
4503 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4504 msgstr ""
4505
4506 # type: textblock
4507 #: ../src/guestfs-actions.pod:98 ../src/guestfs-actions.pod:109
4508 #: ../src/guestfs-actions.pod:202 ../src/guestfs-actions.pod:213
4509 #: ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4192
4510 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4511 msgstr ""
4512
4513 # type: =head2
4514 #: ../src/guestfs-actions.pod:100
4515 msgid "guestfs_add_domain_argv"
4516 msgstr ""
4517
4518 # type: verbatim
4519 #: ../src/guestfs-actions.pod:102
4520 #, no-wrap
4521 msgid ""
4522 " int\n"
4523 " guestfs_add_domain_argv (guestfs_h *g,\n"
4524 "                          const char *dom,\n"
4525 "                          const struct guestfs_add_domain_argv *optargs);\n"
4526 "\n"
4527 msgstr ""
4528
4529 # type: textblock
4530 #: ../src/guestfs-actions.pod:107
4531 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4532 msgstr ""
4533
4534 # type: =head2
4535 #: ../src/guestfs-actions.pod:111
4536 msgid "guestfs_add_drive"
4537 msgstr ""
4538
4539 # type: verbatim
4540 #: ../src/guestfs-actions.pod:113
4541 #, no-wrap
4542 msgid ""
4543 " int\n"
4544 " guestfs_add_drive (guestfs_h *g,\n"
4545 "                    const char *filename);\n"
4546 "\n"
4547 msgstr ""
4548
4549 # type: textblock
4550 #: ../src/guestfs-actions.pod:117
4551 msgid ""
4552 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4553 "optional parameters, so the disk is added writable, with the format being "
4554 "detected automatically."
4555 msgstr ""
4556
4557 # type: textblock
4558 #: ../src/guestfs-actions.pod:121
4559 msgid ""
4560 "Automatic detection of the format opens you up to a potential security hole "
4561 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4562 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4563 "you should think about replacing calls to this function with calls to "
4564 "C<guestfs_add_drive_opts>, and specifying the format."
4565 msgstr ""
4566
4567 # type: =head2
4568 #: ../src/guestfs-actions.pod:132
4569 msgid "guestfs_add_drive_opts"
4570 msgstr ""
4571
4572 # type: verbatim
4573 #: ../src/guestfs-actions.pod:134
4574 #, no-wrap
4575 msgid ""
4576 " int\n"
4577 " guestfs_add_drive_opts (guestfs_h *g,\n"
4578 "                         const char *filename,\n"
4579 "                         ...);\n"
4580 "\n"
4581 msgstr ""
4582
4583 # type: verbatim
4584 #: ../src/guestfs-actions.pod:144
4585 #, no-wrap
4586 msgid ""
4587 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4588 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4589 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4590 "\n"
4591 msgstr ""
4592
4593 # type: textblock
4594 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4595 msgid ""
4596 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4597 "The first time you call this function, the disk appears as C</dev/sda>, the "
4598 "second time as C</dev/sdb>, and so on."
4599 msgstr ""
4600
4601 # type: textblock
4602 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4603 msgid ""
4604 "You don't necessarily need to be root when using libguestfs.  However you "
4605 "obviously do need sufficient permissions to access the filename for whatever "
4606 "operations you want to perform (ie. read access if you just want to read the "
4607 "image or write access if you want to modify the image)."
4608 msgstr ""
4609
4610 # type: textblock
4611 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4612 msgid "This call checks that C<filename> exists."
4613 msgstr ""
4614
4615 # type: textblock
4616 #: ../src/guestfs-actions.pod:161 ../src/guestfs-actions.pod:4153
4617 #: ../fish/guestfish-actions.pod:105 ../fish/guestfish-actions.pod:2789
4618 msgid "The optional arguments are:"
4619 msgstr ""
4620
4621 # type: =item
4622 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4623 msgid "C<readonly>"
4624 msgstr ""
4625
4626 # type: textblock
4627 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4628 msgid ""
4629 "If true then the image is treated as read-only.  Writes are still allowed, "
4630 "but they are stored in a temporary snapshot overlay which is discarded at "
4631 "the end.  The disk that you add is not modified."
4632 msgstr ""
4633
4634 # type: =item
4635 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4636 msgid "C<format>"
4637 msgstr ""
4638
4639 # type: textblock
4640 #: ../src/guestfs-actions.pod:173
4641 msgid ""
4642 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4643 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4644 "Possible formats include C<raw> and C<qcow2>."
4645 msgstr ""
4646
4647 # type: textblock
4648 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4649 msgid ""
4650 "Automatic detection of the format opens you up to a potential security hole "
4651 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4652 "RHBZ#642934.  Specifying the format closes this security hole."
4653 msgstr ""
4654
4655 # type: =item
4656 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4657 msgid "C<iface>"
4658 msgstr ""
4659
4660 # type: textblock
4661 #: ../src/guestfs-actions.pod:184
4662 msgid ""
4663 "This rarely-used option lets you emulate the behaviour of the deprecated "
4664 "C<guestfs_add_drive_with_if> call (q.v.)"
4665 msgstr ""
4666
4667 # type: textblock
4668 #: ../src/guestfs-actions.pod:191
4669 msgid "(Added in 1.5.23)"
4670 msgstr ""
4671
4672 # type: =head2
4673 #: ../src/guestfs-actions.pod:193
4674 msgid "guestfs_add_drive_opts_va"
4675 msgstr ""
4676
4677 # type: verbatim
4678 #: ../src/guestfs-actions.pod:195
4679 #, no-wrap
4680 msgid ""
4681 " int\n"
4682 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4683 "                            const char *filename,\n"
4684 "                            va_list args);\n"
4685 "\n"
4686 msgstr ""
4687
4688 # type: textblock
4689 #: ../src/guestfs-actions.pod:200
4690 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4691 msgstr ""
4692
4693 # type: =head2
4694 #: ../src/guestfs-actions.pod:204
4695 msgid "guestfs_add_drive_opts_argv"
4696 msgstr ""
4697
4698 # type: verbatim
4699 #: ../src/guestfs-actions.pod:206
4700 #, no-wrap
4701 msgid ""
4702 " int\n"
4703 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4704 "                              const char *filename,\n"
4705 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4706 "\n"
4707 msgstr ""
4708
4709 # type: textblock
4710 #: ../src/guestfs-actions.pod:211
4711 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4712 msgstr ""
4713
4714 # type: =head2
4715 #: ../src/guestfs-actions.pod:215
4716 msgid "guestfs_add_drive_ro"
4717 msgstr ""
4718
4719 # type: verbatim
4720 #: ../src/guestfs-actions.pod:217
4721 #, no-wrap
4722 msgid ""
4723 " int\n"
4724 " guestfs_add_drive_ro (guestfs_h *g,\n"
4725 "                       const char *filename);\n"
4726 "\n"
4727 msgstr ""
4728
4729 # type: textblock
4730 #: ../src/guestfs-actions.pod:221
4731 msgid ""
4732 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4733 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4734 "disk is added read-only, with the format being detected automatically."
4735 msgstr ""
4736
4737 # type: textblock
4738 #: ../src/guestfs-actions.pod:228
4739 msgid "(Added in 1.0.38)"
4740 msgstr ""
4741
4742 # type: =head2
4743 #: ../src/guestfs-actions.pod:230
4744 msgid "guestfs_add_drive_ro_with_if"
4745 msgstr ""
4746
4747 # type: verbatim
4748 #: ../src/guestfs-actions.pod:232
4749 #, no-wrap
4750 msgid ""
4751 " int\n"
4752 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4753 "                               const char *filename,\n"
4754 "                               const char *iface);\n"
4755 "\n"
4756 msgstr ""
4757
4758 # type: textblock
4759 #: ../src/guestfs-actions.pod:237
4760 msgid ""
4761 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4762 "QEMU interface emulation to use at run time."
4763 msgstr ""
4764
4765 # type: textblock
4766 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
4767 #: ../src/guestfs-actions.pod:2305
4768 msgid "(Added in 1.0.84)"
4769 msgstr ""
4770
4771 # type: =head2
4772 #: ../src/guestfs-actions.pod:251
4773 msgid "guestfs_add_drive_with_if"
4774 msgstr ""
4775
4776 # type: verbatim
4777 #: ../src/guestfs-actions.pod:253
4778 #, no-wrap
4779 msgid ""
4780 " int\n"
4781 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4782 "                            const char *filename,\n"
4783 "                            const char *iface);\n"
4784 "\n"
4785 msgstr ""
4786
4787 # type: textblock
4788 #: ../src/guestfs-actions.pod:258
4789 msgid ""
4790 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4791 "QEMU interface emulation to use at run time."
4792 msgstr ""
4793
4794 # type: =head2
4795 #: ../src/guestfs-actions.pod:272
4796 msgid "guestfs_aug_clear"
4797 msgstr ""
4798
4799 # type: verbatim
4800 #: ../src/guestfs-actions.pod:274
4801 #, no-wrap
4802 msgid ""
4803 " int\n"
4804 " guestfs_aug_clear (guestfs_h *g,\n"
4805 "                    const char *augpath);\n"
4806 "\n"
4807 msgstr ""
4808
4809 # type: textblock
4810 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4811 msgid ""
4812 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4813 "L<augtool(1)> C<clear> command."
4814 msgstr ""
4815
4816 # type: textblock
4817 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4818 msgid "(Added in 1.3.4)"
4819 msgstr ""
4820
4821 # type: =head2
4822 #: ../src/guestfs-actions.pod:285
4823 msgid "guestfs_aug_close"
4824 msgstr ""
4825
4826 # type: verbatim
4827 #: ../src/guestfs-actions.pod:287
4828 #, no-wrap
4829 msgid ""
4830 " int\n"
4831 " guestfs_aug_close (guestfs_h *g);\n"
4832 "\n"
4833 msgstr ""
4834
4835 # type: textblock
4836 #: ../src/guestfs-actions.pod:290
4837 msgid ""
4838 "Close the current Augeas handle and free up any resources used by it.  After "
4839 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4840 "any other Augeas functions."
4841 msgstr ""
4842
4843 # type: textblock
4844 #: ../src/guestfs-actions.pod:297 ../src/guestfs-actions.pod:322
4845 #: ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:354
4846 #: ../src/guestfs-actions.pod:412 ../src/guestfs-actions.pod:432
4847 #: ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:477
4848 #: ../src/guestfs-actions.pod:491 ../src/guestfs-actions.pod:505
4849 #: ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:537
4850 #: ../src/guestfs-actions.pod:5164
4851 msgid "(Added in 0.7)"
4852 msgstr ""
4853
4854 # type: =head2
4855 #: ../src/guestfs-actions.pod:299
4856 msgid "guestfs_aug_defnode"
4857 msgstr ""
4858
4859 # type: verbatim
4860 #: ../src/guestfs-actions.pod:301
4861 #, no-wrap
4862 msgid ""
4863 " struct guestfs_int_bool *\n"
4864 " guestfs_aug_defnode (guestfs_h *g,\n"
4865 "                      const char *name,\n"
4866 "                      const char *expr,\n"
4867 "                      const char *val);\n"
4868 "\n"
4869 msgstr ""
4870
4871 # type: textblock
4872 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4873 msgid ""
4874 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4875 msgstr ""
4876
4877 # type: textblock
4878 #: ../src/guestfs-actions.pod:310
4879 msgid ""
4880 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4881 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4882 "containing that single node."
4883 msgstr ""
4884
4885 # type: textblock
4886 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4887 msgid ""
4888 "On success this returns a pair containing the number of nodes in the "
4889 "nodeset, and a boolean flag if a node was created."
4890 msgstr ""
4891
4892 # type: textblock
4893 #: ../src/guestfs-actions.pod:318
4894 msgid ""
4895 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4896 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4897 msgstr ""
4898
4899 # type: =head2
4900 #: ../src/guestfs-actions.pod:324
4901 msgid "guestfs_aug_defvar"
4902 msgstr ""
4903
4904 # type: verbatim
4905 #: ../src/guestfs-actions.pod:326
4906 #, no-wrap
4907 msgid ""
4908 " int\n"
4909 " guestfs_aug_defvar (guestfs_h *g,\n"
4910 "                     const char *name,\n"
4911 "                     const char *expr);\n"
4912 "\n"
4913 msgstr ""
4914
4915 # type: textblock
4916 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
4917 msgid ""
4918 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4919 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4920 msgstr ""
4921
4922 # type: textblock
4923 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
4924 msgid ""
4925 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4926 "evaluates to something which is not a nodeset."
4927 msgstr ""
4928
4929 # type: =head2
4930 #: ../src/guestfs-actions.pod:342
4931 msgid "guestfs_aug_get"
4932 msgstr ""
4933
4934 # type: verbatim
4935 #: ../src/guestfs-actions.pod:344
4936 #, no-wrap
4937 msgid ""
4938 " char *\n"
4939 " guestfs_aug_get (guestfs_h *g,\n"
4940 "                  const char *augpath);\n"
4941 "\n"
4942 msgstr ""
4943
4944 # type: textblock
4945 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
4946 msgid ""
4947 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4948 "node, the C<value> is returned."
4949 msgstr ""
4950
4951 # type: textblock
4952 #: ../src/guestfs-actions.pod:351 ../src/guestfs-actions.pod:851
4953 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:929
4954 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1048
4955 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1195
4956 #: ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1343
4957 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1646
4958 #: ../src/guestfs-actions.pod:1809 ../src/guestfs-actions.pod:1826
4959 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:1938
4960 #: ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2270
4961 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2558
4962 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2716
4963 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2771
4964 #: ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2856
4965 #: ../src/guestfs-actions.pod:3340 ../src/guestfs-actions.pod:3690
4966 #: ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:3970
4967 #: ../src/guestfs-actions.pod:4699 ../src/guestfs-actions.pod:4892
4968 #: ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5240
4969 #: ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5852
4970 #: ../src/guestfs-actions.pod:5868 ../src/guestfs-actions.pod:5885
4971 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:6583
4972 #: ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:6620
4973 #: ../src/guestfs-actions.pod:6800 ../src/guestfs-actions.pod:7072
4974 msgid ""
4975 "This function returns a string, or NULL on error.  I<The caller must free "
4976 "the returned string after use>."
4977 msgstr ""
4978
4979 # type: =head2
4980 #: ../src/guestfs-actions.pod:356
4981 msgid "guestfs_aug_init"
4982 msgstr ""
4983
4984 # type: verbatim
4985 #: ../src/guestfs-actions.pod:358
4986 #, no-wrap
4987 msgid ""
4988 " int\n"
4989 " guestfs_aug_init (guestfs_h *g,\n"
4990 "                   const char *root,\n"
4991 "                   int flags);\n"
4992 "\n"
4993 msgstr ""
4994
4995 # type: textblock
4996 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
4997 msgid ""
4998 "Create a new Augeas handle for editing configuration files.  If there was "
4999 "any previous Augeas handle associated with this guestfs session, then it is "
5000 "closed."
5001 msgstr ""
5002
5003 # type: textblock
5004 #: ../src/guestfs-actions.pod:367
5005 msgid "You must call this before using any other C<guestfs_aug_*> commands."
5006 msgstr ""
5007
5008 # type: textblock
5009 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
5010 msgid ""
5011 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5012 msgstr ""
5013
5014 # type: textblock
5015 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
5016 msgid ""
5017 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5018 "logical I<or> of the following integers:"
5019 msgstr ""
5020
5021 # type: =item
5022 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
5023 msgid "C<AUG_SAVE_BACKUP> = 1"
5024 msgstr ""
5025
5026 # type: textblock
5027 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
5028 msgid "Keep the original file with a C<.augsave> extension."
5029 msgstr ""
5030
5031 # type: =item
5032 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
5033 msgid "C<AUG_SAVE_NEWFILE> = 2"
5034 msgstr ""
5035
5036 # type: textblock
5037 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
5038 msgid ""
5039 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5040 "original.  Overrides C<AUG_SAVE_BACKUP>."
5041 msgstr ""
5042
5043 # type: =item
5044 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
5045 msgid "C<AUG_TYPE_CHECK> = 4"
5046 msgstr ""
5047
5048 # type: textblock
5049 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
5050 msgid "Typecheck lenses (can be expensive)."
5051 msgstr ""
5052
5053 # type: =item
5054 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
5055 msgid "C<AUG_NO_STDINC> = 8"
5056 msgstr ""
5057
5058 # type: textblock
5059 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
5060 msgid "Do not use standard load path for modules."
5061 msgstr ""
5062
5063 # type: =item
5064 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
5065 msgid "C<AUG_SAVE_NOOP> = 16"
5066 msgstr ""
5067
5068 # type: textblock
5069 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
5070 msgid "Make save a no-op, just record what would have been changed."
5071 msgstr ""
5072
5073 # type: =item
5074 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
5075 msgid "C<AUG_NO_LOAD> = 32"
5076 msgstr ""
5077
5078 # type: textblock
5079 #: ../src/guestfs-actions.pod:402
5080 msgid "Do not load the tree in C<guestfs_aug_init>."
5081 msgstr ""
5082
5083 # type: textblock
5084 #: ../src/guestfs-actions.pod:406
5085 msgid "To close the handle, you can call C<guestfs_aug_close>."
5086 msgstr ""
5087
5088 # type: textblock
5089 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
5090 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5091 msgstr ""
5092
5093 # type: =head2
5094 #: ../src/guestfs-actions.pod:414
5095 msgid "guestfs_aug_insert"
5096 msgstr ""
5097
5098 # type: verbatim
5099 #: ../src/guestfs-actions.pod:416
5100 #, no-wrap
5101 msgid ""
5102 " int\n"
5103 " guestfs_aug_insert (guestfs_h *g,\n"
5104 "                     const char *augpath,\n"
5105 "                     const char *label,\n"
5106 "                     int before);\n"
5107 "\n"
5108 msgstr ""
5109
5110 # type: textblock
5111 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
5112 msgid ""
5113 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5114 "or after C<path> (depending on the boolean flag C<before>)."
5115 msgstr ""
5116
5117 # type: textblock
5118 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
5119 msgid ""
5120 "C<path> must match exactly one existing node in the tree, and C<label> must "
5121 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5122 msgstr ""
5123
5124 # type: =head2
5125 #: ../src/guestfs-actions.pod:434
5126 msgid "guestfs_aug_load"
5127 msgstr ""
5128
5129 # type: verbatim
5130 #: ../src/guestfs-actions.pod:436
5131 #, no-wrap
5132 msgid ""
5133 " int\n"
5134 " guestfs_aug_load (guestfs_h *g);\n"
5135 "\n"
5136 msgstr ""
5137
5138 # type: textblock
5139 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
5140 msgid "Load files into the tree."
5141 msgstr ""
5142
5143 # type: textblock
5144 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
5145 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5146 msgstr ""
5147
5148 # type: =head2
5149 #: ../src/guestfs-actions.pod:448
5150 msgid "guestfs_aug_ls"
5151 msgstr ""
5152
5153 # type: verbatim
5154 #: ../src/guestfs-actions.pod:450
5155 #, no-wrap
5156 msgid ""
5157 " char **\n"
5158 " guestfs_aug_ls (guestfs_h *g,\n"
5159 "                 const char *augpath);\n"
5160 "\n"
5161 msgstr ""
5162
5163 # type: textblock
5164 #: ../src/guestfs-actions.pod:454
5165 msgid ""
5166 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5167 "sorting the resulting nodes into alphabetical order."
5168 msgstr ""
5169
5170 # type: textblock
5171 #: ../src/guestfs-actions.pod:457 ../src/guestfs-actions.pod:473
5172 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:1067
5173 #: ../src/guestfs-actions.pod:1358 ../src/guestfs-actions.pod:1377
5174 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1499
5175 #: ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:2150
5176 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2185
5177 #: ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:2252
5178 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2372
5179 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2790
5180 #: ../src/guestfs-actions.pod:3005 ../src/guestfs-actions.pod:3260
5181 #: ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3427
5182 #: ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:4514
5183 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5160
5184 #: ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5925
5185 #: ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:6041
5186 #: ../src/guestfs-actions.pod:6187 ../src/guestfs-actions.pod:6211
5187 #: ../src/guestfs-actions.pod:6693 ../src/guestfs-actions.pod:6713
5188 #: ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6925
5189 #: ../src/guestfs-actions.pod:6944 ../src/guestfs-actions.pod:7029
5190 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7094
5191 #: ../src/guestfs-actions.pod:7113
5192 msgid ""
5193 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5194 ">), or NULL if there was an error.  I<The caller must free the strings and "
5195 "the array after use>."
5196 msgstr ""
5197
5198 # type: textblock
5199 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:992
5200 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:1415
5201 #: ../src/guestfs-actions.pod:3083 ../src/guestfs-actions.pod:3114
5202 #: ../src/guestfs-actions.pod:3673 ../src/guestfs-actions.pod:3723
5203 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3943
5204 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4518
5205 #: ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5353
5206 #: ../src/guestfs-actions.pod:5367 ../src/guestfs-actions.pod:5379
5207 #: ../src/guestfs-actions.pod:5787 ../src/guestfs-actions.pod:6425
5208 #: ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:6677
5209 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:6913
5210 msgid "(Added in 0.8)"
5211 msgstr ""
5212
5213 # type: =head2
5214 #: ../src/guestfs-actions.pod:463
5215 msgid "guestfs_aug_match"
5216 msgstr ""
5217
5218 # type: verbatim
5219 #: ../src/guestfs-actions.pod:465
5220 #, no-wrap
5221 msgid ""
5222 " char **\n"
5223 " guestfs_aug_match (guestfs_h *g,\n"
5224 "                    const char *augpath);\n"
5225 "\n"
5226 msgstr ""
5227
5228 # type: textblock
5229 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
5230 msgid ""
5231 "Returns a list of paths which match the path expression C<path>.  The "
5232 "returned paths are sufficiently qualified so that they match exactly one "
5233 "node in the current tree."
5234 msgstr ""
5235
5236 # type: =head2
5237 #: ../src/guestfs-actions.pod:479
5238 msgid "guestfs_aug_mv"
5239 msgstr ""
5240
5241 # type: verbatim
5242 #: ../src/guestfs-actions.pod:481
5243 #, no-wrap
5244 msgid ""
5245 " int\n"
5246 " guestfs_aug_mv (guestfs_h *g,\n"
5247 "                 const char *src,\n"
5248 "                 const char *dest);\n"
5249 "\n"
5250 msgstr ""
5251
5252 # type: textblock
5253 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
5254 msgid ""
5255 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5256 "C<dest> is overwritten if it exists."
5257 msgstr ""
5258
5259 # type: =head2
5260 #: ../src/guestfs-actions.pod:493
5261 msgid "guestfs_aug_rm"
5262 msgstr ""
5263
5264 # type: verbatim
5265 #: ../src/guestfs-actions.pod:495
5266 #, no-wrap
5267 msgid ""
5268 " int\n"
5269 " guestfs_aug_rm (guestfs_h *g,\n"
5270 "                 const char *augpath);\n"
5271 "\n"
5272 msgstr ""
5273
5274 # type: textblock
5275 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5276 msgid "Remove C<path> and all of its children."
5277 msgstr ""
5278
5279 # type: textblock
5280 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5281 msgid "On success this returns the number of entries which were removed."
5282 msgstr ""
5283
5284 # type: =head2
5285 #: ../src/guestfs-actions.pod:507
5286 msgid "guestfs_aug_save"
5287 msgstr ""
5288
5289 # type: verbatim
5290 #: ../src/guestfs-actions.pod:509
5291 #, no-wrap
5292 msgid ""
5293 " int\n"
5294 " guestfs_aug_save (guestfs_h *g);\n"
5295 "\n"
5296 msgstr ""
5297
5298 # type: textblock
5299 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5300 msgid "This writes all pending changes to disk."
5301 msgstr ""
5302
5303 # type: textblock
5304 #: ../src/guestfs-actions.pod:514
5305 msgid ""
5306 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5307 "are saved."
5308 msgstr ""
5309
5310 # type: =head2
5311 #: ../src/guestfs-actions.pod:521
5312 msgid "guestfs_aug_set"
5313 msgstr ""
5314
5315 # type: verbatim
5316 #: ../src/guestfs-actions.pod:523
5317 #, no-wrap
5318 msgid ""
5319 " int\n"
5320 " guestfs_aug_set (guestfs_h *g,\n"
5321 "                  const char *augpath,\n"
5322 "                  const char *val);\n"
5323 "\n"
5324 msgstr ""
5325
5326 # type: textblock
5327 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5328 msgid "Set the value associated with C<path> to C<val>."
5329 msgstr ""
5330
5331 # type: textblock
5332 #: ../src/guestfs-actions.pod:530
5333 msgid ""
5334 "In the Augeas API, it is possible to clear a node by setting the value to "
5335 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5336 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5337 msgstr ""
5338
5339 # type: =head2
5340 #: ../src/guestfs-actions.pod:539
5341 msgid "guestfs_available"
5342 msgstr ""
5343
5344 # type: verbatim
5345 #: ../src/guestfs-actions.pod:541
5346 #, no-wrap
5347 msgid ""
5348 " int\n"
5349 " guestfs_available (guestfs_h *g,\n"
5350 "                    char *const *groups);\n"
5351 "\n"
5352 msgstr ""
5353
5354 # type: textblock
5355 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5356 msgid ""
5357 "This command is used to check the availability of some groups of "
5358 "functionality in the appliance, which not all builds of the libguestfs "
5359 "appliance will be able to provide."
5360 msgstr ""
5361
5362 # type: textblock
5363 #: ../src/guestfs-actions.pod:549
5364 msgid ""
5365 "The libguestfs groups, and the functions that those groups correspond to, "
5366 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5367 "runtime by calling C<guestfs_available_all_groups>."
5368 msgstr ""
5369
5370 # type: textblock
5371 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5372 msgid ""
5373 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5374 "\"]> would check for the availability of the Linux inotify functions and "
5375 "Augeas (configuration file editing) functions."
5376 msgstr ""
5377
5378 # type: textblock
5379 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5380 msgid "The command returns no error if I<all> requested groups are available."
5381 msgstr ""
5382
5383 # type: textblock
5384 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5385 msgid ""
5386 "It fails with an error if one or more of the requested groups is unavailable "
5387 "in the appliance."
5388 msgstr ""
5389
5390 # type: textblock
5391 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5392 msgid ""
5393 "If an unknown group name is included in the list of groups then an error is "
5394 "always returned."
5395 msgstr ""
5396
5397 # type: textblock
5398 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5399 msgid "I<Notes:>"
5400 msgstr ""
5401
5402 # type: textblock
5403 #: ../src/guestfs-actions.pod:573
5404 msgid "You must call C<guestfs_launch> before calling this function."
5405 msgstr ""
5406
5407 # type: textblock
5408 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5409 msgid ""
5410 "The reason is because we don't know what groups are supported by the "
5411 "appliance/daemon until it is running and can be queried."
5412 msgstr ""
5413
5414 # type: textblock
5415 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5416 msgid ""
5417 "If a group of functions is available, this does not necessarily mean that "
5418 "they will work.  You still have to check for errors when calling individual "
5419 "API functions even if they are available."
5420 msgstr ""
5421
5422 # type: textblock
5423 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5424 msgid ""
5425 "It is usually the job of distro packagers to build complete functionality "
5426 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5427 "with all requirements satisfied, will support everything."
5428 msgstr ""
5429
5430 # type: textblock
5431 #: ../src/guestfs-actions.pod:595
5432 msgid ""
5433 "This call was added in version C<1.0.80>.  In previous versions of "
5434 "libguestfs all you could do would be to speculatively execute a command to "
5435 "find out if the daemon implemented it.  See also C<guestfs_version>."
5436 msgstr ""
5437
5438 # type: textblock
5439 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5440 msgid "(Added in 1.0.80)"
5441 msgstr ""
5442
5443 # type: =head2
5444 #: ../src/guestfs-actions.pod:606
5445 msgid "guestfs_available_all_groups"
5446 msgstr ""
5447
5448 # type: verbatim
5449 #: ../src/guestfs-actions.pod:608
5450 #, no-wrap
5451 msgid ""
5452 " char **\n"
5453 " guestfs_available_all_groups (guestfs_h *g);\n"
5454 "\n"
5455 msgstr ""
5456
5457 # type: textblock
5458 #: ../src/guestfs-actions.pod:611
5459 msgid ""
5460 "This command returns a list of all optional groups that this daemon knows "
5461 "about.  Note this returns both supported and unsupported groups.  To find "
5462 "out which ones the daemon can actually support you have to call "
5463 "C<guestfs_available> on each member of the returned list."
5464 msgstr ""
5465
5466 # type: textblock
5467 #: ../src/guestfs-actions.pod:617
5468 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5469 msgstr ""
5470
5471 # type: textblock
5472 #: ../src/guestfs-actions.pod:623
5473 msgid "(Added in 1.3.15)"
5474 msgstr ""
5475
5476 # type: =head2
5477 #: ../src/guestfs-actions.pod:625
5478 msgid "guestfs_base64_in"
5479 msgstr ""
5480
5481 # type: verbatim
5482 #: ../src/guestfs-actions.pod:627
5483 #, no-wrap
5484 msgid ""
5485 " int\n"
5486 " guestfs_base64_in (guestfs_h *g,\n"
5487 "                    const char *base64file,\n"
5488 "                    const char *filename);\n"
5489 "\n"
5490 msgstr ""
5491
5492 # type: textblock
5493 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5494 msgid ""
5495 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5496 msgstr ""
5497
5498 # type: textblock
5499 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5500 msgid "(Added in 1.3.5)"
5501 msgstr ""
5502
5503 # type: =head2
5504 #: ../src/guestfs-actions.pod:639
5505 msgid "guestfs_base64_out"
5506 msgstr ""
5507
5508 # type: verbatim
5509 #: ../src/guestfs-actions.pod:641
5510 #, no-wrap
5511 msgid ""
5512 " int\n"
5513 " guestfs_base64_out (guestfs_h *g,\n"
5514 "                     const char *filename,\n"
5515 "                     const char *base64file);\n"
5516 "\n"
5517 msgstr ""
5518
5519 # type: textblock
5520 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5521 msgid ""
5522 "This command downloads the contents of C<filename>, writing it out to local "
5523 "file C<base64file> encoded as base64."
5524 msgstr ""
5525
5526 # type: =head2
5527 #: ../src/guestfs-actions.pod:653
5528 msgid "guestfs_blockdev_flushbufs"
5529 msgstr ""
5530
5531 # type: verbatim
5532 #: ../src/guestfs-actions.pod:655
5533 #, no-wrap
5534 msgid ""
5535 " int\n"
5536 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5537 "                             const char *device);\n"
5538 "\n"
5539 msgstr ""
5540
5541 # type: textblock
5542 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5543 msgid ""
5544 "This tells the kernel to flush internal buffers associated with C<device>."
5545 msgstr ""
5546
5547 # type: textblock
5548 #: ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:679
5549 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:710
5550 #: ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747
5551 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5552 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5553 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5554 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5555 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5556 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5557 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5558 msgid "This uses the L<blockdev(8)> command."
5559 msgstr ""
5560
5561 # type: textblock
5562 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:683
5563 #: ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:714
5564 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:751
5565 #: ../src/guestfs-actions.pod:765 ../src/guestfs-actions.pod:783
5566 #: ../src/guestfs-actions.pod:797 ../src/guestfs-actions.pod:811
5567 msgid "(Added in 0.9.3)"
5568 msgstr ""
5569
5570 # type: =head2
5571 #: ../src/guestfs-actions.pod:668
5572 msgid "guestfs_blockdev_getbsz"
5573 msgstr ""
5574
5575 # type: verbatim
5576 #: ../src/guestfs-actions.pod:670
5577 #, no-wrap
5578 msgid ""
5579 " int\n"
5580 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5581 "                          const char *device);\n"
5582 "\n"
5583 msgstr ""
5584
5585 # type: textblock
5586 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5587 msgid "This returns the block size of a device."
5588 msgstr ""
5589
5590 # type: textblock
5591 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776
5592 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5593 msgid ""
5594 "(Note this is different from both I<size in blocks> and I<filesystem block "
5595 "size>)."
5596 msgstr ""
5597
5598 # type: =head2
5599 #: ../src/guestfs-actions.pod:685
5600 msgid "guestfs_blockdev_getro"
5601 msgstr ""
5602
5603 # type: verbatim
5604 #: ../src/guestfs-actions.pod:687
5605 #, no-wrap
5606 msgid ""
5607 " int\n"
5608 " guestfs_blockdev_getro (guestfs_h *g,\n"
5609 "                         const char *device);\n"
5610 "\n"
5611 msgstr ""
5612
5613 # type: textblock
5614 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5615 msgid ""
5616 "Returns a boolean indicating if the block device is read-only (true if read-"
5617 "only, false if not)."
5618 msgstr ""
5619
5620 # type: textblock
5621 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:1398
5622 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1893
5623 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1976
5624 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2046
5625 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2094
5626 #: ../src/guestfs-actions.pod:3022 ../src/guestfs-actions.pod:3036
5627 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3065
5628 #: ../src/guestfs-actions.pod:3081 ../src/guestfs-actions.pod:3096
5629 #: ../src/guestfs-actions.pod:3112 ../src/guestfs-actions.pod:3126
5630 #: ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3153
5631 #: ../src/guestfs-actions.pod:3168 ../src/guestfs-actions.pod:3183
5632 #: ../src/guestfs-actions.pod:4663
5633 msgid "This function returns a C truth value on success or -1 on error."
5634 msgstr ""
5635
5636 # type: =head2
5637 #: ../src/guestfs-actions.pod:700
5638 msgid "guestfs_blockdev_getsize64"
5639 msgstr ""
5640
5641 # type: verbatim
5642 #: ../src/guestfs-actions.pod:702
5643 #, no-wrap
5644 msgid ""
5645 " int64_t\n"
5646 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5647 "                             const char *device);\n"
5648 "\n"
5649 msgstr ""
5650
5651 # type: textblock
5652 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5653 msgid "This returns the size of the device in bytes."
5654 msgstr ""
5655
5656 # type: textblock
5657 #: ../src/guestfs-actions.pod:708
5658 msgid "See also C<guestfs_blockdev_getsz>."
5659 msgstr ""
5660
5661 # type: =head2
5662 #: ../src/guestfs-actions.pod:716
5663 msgid "guestfs_blockdev_getss"
5664 msgstr ""
5665
5666 # type: verbatim
5667 #: ../src/guestfs-actions.pod:718
5668 #, no-wrap
5669 msgid ""
5670 " int\n"
5671 " guestfs_blockdev_getss (guestfs_h *g,\n"
5672 "                         const char *device);\n"
5673 "\n"
5674 msgstr ""
5675
5676 # type: textblock
5677 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5678 msgid ""
5679 "This returns the size of sectors on a block device.  Usually 512, but can be "
5680 "larger for modern devices."
5681 msgstr ""
5682
5683 # type: textblock
5684 #: ../src/guestfs-actions.pod:725
5685 msgid ""
5686 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5687 "that)."
5688 msgstr ""
5689
5690 # type: =head2
5691 #: ../src/guestfs-actions.pod:734
5692 msgid "guestfs_blockdev_getsz"
5693 msgstr ""
5694
5695 # type: verbatim
5696 #: ../src/guestfs-actions.pod:736
5697 #, no-wrap
5698 msgid ""
5699 " int64_t\n"
5700 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5701 "                         const char *device);\n"
5702 "\n"
5703 msgstr ""
5704
5705 # type: textblock
5706 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5707 msgid ""
5708 "This returns the size of the device in units of 512-byte sectors (even if "
5709 "the sectorsize isn't 512 bytes ... weird)."
5710 msgstr ""
5711
5712 # type: textblock
5713 #: ../src/guestfs-actions.pod:743
5714 msgid ""
5715 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5716 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5717 msgstr ""
5718
5719 # type: =head2
5720 #: ../src/guestfs-actions.pod:753
5721 msgid "guestfs_blockdev_rereadpt"
5722 msgstr ""
5723
5724 # type: verbatim
5725 #: ../src/guestfs-actions.pod:755
5726 #, no-wrap
5727 msgid ""
5728 " int\n"
5729 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5730 "                            const char *device);\n"
5731 "\n"
5732 msgstr ""
5733
5734 # type: textblock
5735 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5736 msgid "Reread the partition table on C<device>."
5737 msgstr ""
5738
5739 # type: =head2
5740 #: ../src/guestfs-actions.pod:767
5741 msgid "guestfs_blockdev_setbsz"
5742 msgstr ""
5743
5744 # type: verbatim
5745 #: ../src/guestfs-actions.pod:769
5746 #, no-wrap
5747 msgid ""
5748 " int\n"
5749 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5750 "                          const char *device,\n"
5751 "                          int blocksize);\n"
5752 "\n"
5753 msgstr ""
5754
5755 # type: textblock
5756 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5757 msgid "This sets the block size of a device."
5758 msgstr ""
5759
5760 # type: =head2
5761 #: ../src/guestfs-actions.pod:785
5762 msgid "guestfs_blockdev_setro"
5763 msgstr ""
5764
5765 # type: verbatim
5766 #: ../src/guestfs-actions.pod:787
5767 #, no-wrap
5768 msgid ""
5769 " int\n"
5770 " guestfs_blockdev_setro (guestfs_h *g,\n"
5771 "                         const char *device);\n"
5772 "\n"
5773 msgstr ""
5774
5775 # type: textblock
5776 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5777 msgid "Sets the block device named C<device> to read-only."
5778 msgstr ""
5779
5780 # type: =head2
5781 #: ../src/guestfs-actions.pod:799
5782 msgid "guestfs_blockdev_setrw"
5783 msgstr ""
5784
5785 # type: verbatim
5786 #: ../src/guestfs-actions.pod:801
5787 #, no-wrap
5788 msgid ""
5789 " int\n"
5790 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5791 "                         const char *device);\n"
5792 "\n"
5793 msgstr ""
5794
5795 # type: textblock
5796 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5797 msgid "Sets the block device named C<device> to read-write."
5798 msgstr ""
5799
5800 # type: =head2
5801 #: ../src/guestfs-actions.pod:813
5802 msgid "guestfs_case_sensitive_path"
5803 msgstr ""
5804
5805 # type: verbatim
5806 #: ../src/guestfs-actions.pod:815
5807 #, no-wrap
5808 msgid ""
5809 " char *\n"
5810 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5811 "                              const char *path);\n"
5812 "\n"
5813 msgstr ""
5814
5815 # type: textblock
5816 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5817 msgid ""
5818 "This can be used to resolve case insensitive paths on a filesystem which is "
5819 "case sensitive.  The use case is to resolve paths which you have read from "
5820 "Windows configuration files or the Windows Registry, to the true path."
5821 msgstr ""
5822
5823 # type: textblock
5824 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5825 msgid ""
5826 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5827 "(and probably others), which is that although the underlying filesystem is "
5828 "case-insensitive, the driver exports the filesystem to Linux as case-"
5829 "sensitive."
5830 msgstr ""
5831
5832 # type: textblock
5833 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5834 msgid ""
5835 "One consequence of this is that special directories such as C<c:\\windows> "
5836 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5837 "precise details of how they were created.  In Windows itself this would not "
5838 "be a problem."
5839 msgstr ""
5840
5841 # type: textblock
5842 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5843 msgid ""
5844 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5845 "#posixfilenames1>"
5846 msgstr ""
5847
5848 # type: textblock
5849 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5850 msgid ""
5851 "This function resolves the true case of each element in the path and returns "
5852 "the case-sensitive path."
5853 msgstr ""
5854
5855 # type: textblock
5856 #: ../src/guestfs-actions.pod:841
5857 msgid ""
5858 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5859 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5860 "how the directories were originally created under Windows)."
5861 msgstr ""
5862
5863 # type: textblock
5864 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5865 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5866 msgstr ""
5867
5868 # type: textblock
5869 #: ../src/guestfs-actions.pod:849
5870 msgid "See also C<guestfs_realpath>."
5871 msgstr ""
5872
5873 # type: textblock
5874 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6605
5875 msgid "(Added in 1.0.75)"
5876 msgstr ""
5877
5878 # type: =head2
5879 #: ../src/guestfs-actions.pod:856
5880 msgid "guestfs_cat"
5881 msgstr ""
5882
5883 # type: verbatim
5884 #: ../src/guestfs-actions.pod:858
5885 #, no-wrap
5886 msgid ""
5887 " char *\n"
5888 " guestfs_cat (guestfs_h *g,\n"
5889 "              const char *path);\n"
5890 "\n"
5891 msgstr ""
5892
5893 # type: textblock
5894 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5150
5895 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3424
5896 msgid "Return the contents of the file named C<path>."
5897 msgstr ""
5898
5899 # type: textblock
5900 #: ../src/guestfs-actions.pod:864
5901 msgid ""
5902 "Note that this function cannot correctly handle binary files (specifically, "
5903 "files containing C<\\0> character which is treated as end of string).  For "
5904 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5905 "functions which have a more complex interface."
5906 msgstr ""
5907
5908 # type: textblock
5909 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1051
5910 #: ../src/guestfs-actions.pod:1071 ../src/guestfs-actions.pod:1362
5911 #: ../src/guestfs-actions.pod:1381 ../src/guestfs-actions.pod:1484
5912 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1752
5913 #: ../src/guestfs-actions.pod:2170 ../src/guestfs-actions.pod:2189
5914 #: ../src/guestfs-actions.pod:2232 ../src/guestfs-actions.pod:2256
5915 #: ../src/guestfs-actions.pod:2273 ../src/guestfs-actions.pod:2302
5916 #: ../src/guestfs-actions.pod:4932 ../src/guestfs-actions.pod:4958
5917 #: ../src/guestfs-actions.pod:5089 ../src/guestfs-actions.pod:5115
5918 #: ../src/guestfs-actions.pod:5139 ../src/guestfs-actions.pod:5990
5919 #: ../src/guestfs-actions.pod:6045 ../src/guestfs-actions.pod:6191
5920 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6877
5921 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6929
5922 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:7033
5923 #: ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7098
5924 #: ../src/guestfs-actions.pod:7117 ../fish/guestfish-actions.pod:582
5925 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5926 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5927 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5928 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5929 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5930 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5931 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3294
5932 #: ../fish/guestfish-actions.pod:3309 ../fish/guestfish-actions.pod:3385
5933 #: ../fish/guestfish-actions.pod:3402 ../fish/guestfish-actions.pod:3417
5934 #: ../fish/guestfish-actions.pod:4000 ../fish/guestfish-actions.pod:4046
5935 #: ../fish/guestfish-actions.pod:4131 ../fish/guestfish-actions.pod:4146
5936 #: ../fish/guestfish-actions.pod:4556 ../fish/guestfish-actions.pod:4574
5937 #: ../fish/guestfish-actions.pod:4591 ../fish/guestfish-actions.pod:4601
5938 #: ../fish/guestfish-actions.pod:4649 ../fish/guestfish-actions.pod:4659
5939 #: ../fish/guestfish-actions.pod:4688 ../fish/guestfish-actions.pod:4698
5940 msgid ""
5941 "Because of the message protocol, there is a transfer limit of somewhere "
5942 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5943 msgstr ""
5944
5945 # type: textblock
5946 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:3264
5947 #: ../src/guestfs-actions.pod:3326 ../src/guestfs-actions.pod:3343
5948 #: ../src/guestfs-actions.pod:3431 ../src/guestfs-actions.pod:3836
5949 #: ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:5038
5950 #: ../src/guestfs-actions.pod:5052 ../src/guestfs-actions.pod:6764
5951 #: ../src/guestfs-actions.pod:6778
5952 msgid "(Added in 0.4)"
5953 msgstr ""
5954
5955 # type: =head2
5956 #: ../src/guestfs-actions.pod:877
5957 msgid "guestfs_checksum"
5958 msgstr ""
5959
5960 # type: verbatim
5961 #: ../src/guestfs-actions.pod:879
5962 #, no-wrap
5963 msgid ""
5964 " char *\n"
5965 " guestfs_checksum (guestfs_h *g,\n"
5966 "                   const char *csumtype,\n"
5967 "                   const char *path);\n"
5968 "\n"
5969 msgstr ""
5970
5971 # type: textblock
5972 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
5973 msgid ""
5974 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5975 msgstr ""
5976
5977 # type: textblock
5978 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
5979 msgid ""
5980 "The type of checksum to compute is given by the C<csumtype> parameter which "
5981 "must have one of the following values:"
5982 msgstr ""
5983
5984 # type: =item
5985 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
5986 msgid "C<crc>"
5987 msgstr ""
5988
5989 # type: textblock
5990 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
5991 msgid ""
5992 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5993 "C<cksum> command."
5994 msgstr ""
5995
5996 # type: =item
5997 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
5998 msgid "C<md5>"
5999 msgstr ""
6000
6001 # type: textblock
6002 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
6003 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6004 msgstr ""
6005
6006 # type: =item
6007 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
6008 msgid "C<sha1>"
6009 msgstr ""
6010
6011 # type: textblock
6012 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
6013 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6014 msgstr ""
6015
6016 # type: =item
6017 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
6018 msgid "C<sha224>"
6019 msgstr ""
6020
6021 # type: textblock
6022 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
6023 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6024 msgstr ""
6025
6026 # type: =item
6027 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
6028 msgid "C<sha256>"
6029 msgstr ""
6030
6031 # type: textblock
6032 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
6033 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6034 msgstr ""
6035
6036 # type: =item
6037 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
6038 msgid "C<sha384>"
6039 msgstr ""
6040
6041 # type: textblock
6042 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
6043 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6044 msgstr ""
6045
6046 # type: =item
6047 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
6048 msgid "C<sha512>"
6049 msgstr ""
6050
6051 # type: textblock
6052 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
6053 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6054 msgstr ""
6055
6056 # type: textblock
6057 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
6058 msgid "The checksum is returned as a printable string."
6059 msgstr ""
6060
6061 # type: textblock
6062 #: ../src/guestfs-actions.pod:925
6063 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6064 msgstr ""
6065
6066 # type: textblock
6067 #: ../src/guestfs-actions.pod:927
6068 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6069 msgstr ""
6070
6071 # type: textblock
6072 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:1240
6073 #: ../src/guestfs-actions.pod:2062 ../src/guestfs-actions.pod:3038
6074 #: ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3128
6075 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:6461
6076 msgid "(Added in 1.0.2)"
6077 msgstr ""
6078
6079 # type: =head2
6080 #: ../src/guestfs-actions.pod:934
6081 msgid "guestfs_checksum_device"
6082 msgstr ""
6083
6084 # type: verbatim
6085 #: ../src/guestfs-actions.pod:936
6086 #, no-wrap
6087 msgid ""
6088 " char *\n"
6089 " guestfs_checksum_device (guestfs_h *g,\n"
6090 "                          const char *csumtype,\n"
6091 "                          const char *device);\n"
6092 "\n"
6093 msgstr ""
6094
6095 # type: textblock
6096 #: ../src/guestfs-actions.pod:941
6097 msgid ""
6098 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6099 "device named C<device>.  For the types of checksums supported see the "
6100 "C<guestfs_checksum> command."
6101 msgstr ""
6102
6103 # type: textblock
6104 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:4569
6105 #: ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4665
6106 #: ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:4859
6107 #: ../src/guestfs-actions.pod:6370 ../src/guestfs-actions.pod:6384
6108 #: ../src/guestfs-actions.pod:6790
6109 msgid "(Added in 1.3.2)"
6110 msgstr ""
6111
6112 # type: =head2
6113 #: ../src/guestfs-actions.pod:950
6114 msgid "guestfs_checksums_out"
6115 msgstr ""
6116
6117 # type: verbatim
6118 #: ../src/guestfs-actions.pod:952
6119 #, no-wrap
6120 msgid ""
6121 " int\n"
6122 " guestfs_checksums_out (guestfs_h *g,\n"
6123 "                        const char *csumtype,\n"
6124 "                        const char *directory,\n"
6125 "                        const char *sumsfile);\n"
6126 "\n"
6127 msgstr ""
6128
6129 # type: textblock
6130 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
6131 msgid ""
6132 "This command computes the checksums of all regular files in C<directory> and "
6133 "then emits a list of those checksums to the local output file C<sumsfile>."
6134 msgstr ""
6135
6136 # type: textblock
6137 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
6138 msgid ""
6139 "This can be used for verifying the integrity of a virtual machine.  However "
6140 "to be properly secure you should pay attention to the output of the checksum "
6141 "command (it uses the ones from GNU coreutils).  In particular when the "
6142 "filename is not printable, coreutils uses a special backslash syntax.  For "
6143 "more information, see the GNU coreutils info file."
6144 msgstr ""
6145
6146 # type: textblock
6147 #: ../src/guestfs-actions.pod:972
6148 msgid "(Added in 1.3.7)"
6149 msgstr ""
6150
6151 # type: =head2
6152 #: ../src/guestfs-actions.pod:974
6153 msgid "guestfs_chmod"
6154 msgstr ""
6155
6156 # type: verbatim
6157 #: ../src/guestfs-actions.pod:976
6158 #, no-wrap
6159 msgid ""
6160 " int\n"
6161 " guestfs_chmod (guestfs_h *g,\n"
6162 "                int mode,\n"
6163 "                const char *path);\n"
6164 "\n"
6165 msgstr ""
6166
6167 # type: textblock
6168 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
6169 msgid ""
6170 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6171 "supported."
6172 msgstr ""
6173
6174 # type: textblock
6175 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
6176 msgid ""
6177 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6178 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6179 "C<700>."
6180 msgstr ""
6181
6182 # type: textblock
6183 #: ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:4087
6184 #: ../src/guestfs-actions.pod:4268 ../src/guestfs-actions.pod:4287
6185 #: ../src/guestfs-actions.pod:4306 ../fish/guestfish-actions.pod:671
6186 #: ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2869
6187 #: ../fish/guestfish-actions.pod:2879 ../fish/guestfish-actions.pod:2889
6188 msgid "The mode actually set is affected by the umask."
6189 msgstr ""
6190
6191 # type: =head2
6192 #: ../src/guestfs-actions.pod:994
6193 msgid "guestfs_chown"
6194 msgstr ""
6195
6196 # type: verbatim
6197 #: ../src/guestfs-actions.pod:996
6198 #, no-wrap
6199 msgid ""
6200 " int\n"
6201 " guestfs_chown (guestfs_h *g,\n"
6202 "                int owner,\n"
6203 "                int group,\n"
6204 "                const char *path);\n"
6205 "\n"
6206 msgstr ""
6207
6208 # type: textblock
6209 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
6210 msgid "Change the file owner to C<owner> and group to C<group>."
6211 msgstr ""
6212
6213 # type: textblock
6214 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3225
6215 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
6216 msgid ""
6217 "Only numeric uid and gid are supported.  If you want to use names, you will "
6218 "need to locate and parse the password file yourself (Augeas support makes "
6219 "this relatively easy)."
6220 msgstr ""
6221
6222 # type: =head2
6223 #: ../src/guestfs-actions.pod:1012
6224 msgid "guestfs_command"
6225 msgstr ""
6226
6227 # type: verbatim
6228 #: ../src/guestfs-actions.pod:1014
6229 #, no-wrap
6230 msgid ""
6231 " char *\n"
6232 " guestfs_command (guestfs_h *g,\n"
6233 "                  char *const *arguments);\n"
6234 "\n"
6235 msgstr ""
6236
6237 # type: textblock
6238 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
6239 msgid ""
6240 "This call runs a command from the guest filesystem.  The filesystem must be "
6241 "mounted, and must contain a compatible operating system (ie. something "
6242 "Linux, with the same or compatible processor architecture)."
6243 msgstr ""
6244
6245 # type: textblock
6246 #: ../src/guestfs-actions.pod:1023
6247 msgid ""
6248 "The single parameter is an argv-style list of arguments.  The first element "
6249 "is the name of the program to run.  Subsequent elements are parameters.  The "
6250 "list must be non-empty (ie. must contain a program name).  Note that the "
6251 "command runs directly, and is I<not> invoked via the shell (see "
6252 "C<guestfs_sh>)."
6253 msgstr ""
6254
6255 # type: textblock
6256 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
6257 msgid "The return value is anything printed to I<stdout> by the command."
6258 msgstr ""
6259
6260 # type: textblock
6261 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
6262 msgid ""
6263 "If the command returns a non-zero exit status, then this function returns an "
6264 "error message.  The error message string is the content of I<stderr> from "
6265 "the command."
6266 msgstr ""
6267
6268 # type: textblock
6269 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
6270 msgid ""
6271 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6272 "bin>.  If you require a program from another location, you should provide "
6273 "the full path in the first parameter."
6274 msgstr ""
6275
6276 # type: textblock
6277 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
6278 msgid ""
6279 "Shared libraries and data files required by the program must be available on "
6280 "filesystems which are mounted in the correct places.  It is the caller's "
6281 "responsibility to ensure all filesystems that are needed are mounted at the "
6282 "right locations."
6283 msgstr ""
6284
6285 # type: textblock
6286 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074
6287 #: ../src/guestfs-actions.pod:1537
6288 msgid "(Added in 0.9.1)"
6289 msgstr ""
6290
6291 # type: =head2
6292 #: ../src/guestfs-actions.pod:1056
6293 msgid "guestfs_command_lines"
6294 msgstr ""
6295
6296 # type: verbatim
6297 #: ../src/guestfs-actions.pod:1058
6298 #, no-wrap
6299 msgid ""
6300 " char **\n"
6301 " guestfs_command_lines (guestfs_h *g,\n"
6302 "                        char *const *arguments);\n"
6303 "\n"
6304 msgstr ""
6305
6306 # type: textblock
6307 #: ../src/guestfs-actions.pod:1062
6308 msgid ""
6309 "This is the same as C<guestfs_command>, but splits the result into a list of "
6310 "lines."
6311 msgstr ""
6312
6313 # type: textblock
6314 #: ../src/guestfs-actions.pod:1065
6315 msgid "See also: C<guestfs_sh_lines>"
6316 msgstr ""
6317
6318 # type: =head2
6319 #: ../src/guestfs-actions.pod:1076
6320 msgid "guestfs_config"
6321 msgstr ""
6322
6323 # type: verbatim
6324 #: ../src/guestfs-actions.pod:1078
6325 #, no-wrap
6326 msgid ""
6327 " int\n"
6328 " guestfs_config (guestfs_h *g,\n"
6329 "                 const char *qemuparam,\n"
6330 "                 const char *qemuvalue);\n"
6331 "\n"
6332 msgstr ""
6333
6334 # type: textblock
6335 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6336 msgid ""
6337 "This can be used to add arbitrary qemu command line parameters of the form "
6338 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6339 "setting some parameters which would interfere with parameters that we use."
6340 msgstr ""
6341
6342 # type: textblock
6343 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6344 msgid "The first character of C<param> string must be a C<-> (dash)."
6345 msgstr ""
6346
6347 # type: textblock
6348 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6349 msgid "C<value> can be NULL."
6350 msgstr ""
6351
6352 # type: =head2
6353 #: ../src/guestfs-actions.pod:1096
6354 msgid "guestfs_copy_size"
6355 msgstr ""
6356
6357 # type: verbatim
6358 #: ../src/guestfs-actions.pod:1098
6359 #, no-wrap
6360 msgid ""
6361 " int\n"
6362 " guestfs_copy_size (guestfs_h *g,\n"
6363 "                    const char *src,\n"
6364 "                    const char *dest,\n"
6365 "                    int64_t size);\n"
6366 "\n"
6367 msgstr ""
6368
6369 # type: textblock
6370 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6371 msgid ""
6372 "This command copies exactly C<size> bytes from one source device or file "
6373 "C<src> to another destination device or file C<dest>."
6374 msgstr ""
6375
6376 # type: textblock
6377 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6378 msgid ""
6379 "Note this will fail if the source is too short or if the destination is not "
6380 "large enough."
6381 msgstr ""
6382
6383 # type: textblock
6384 #: ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1235
6385 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1686
6386 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:6456
6387 #: ../src/guestfs-actions.pod:6490 ../src/guestfs-actions.pod:6969
6388 #: ../src/guestfs-actions.pod:6988
6389 msgid ""
6390 "This long-running command can generate progress notification messages so "
6391 "that the caller can display a progress bar or indicator.  To receive these "
6392 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6393 "guestfs_set_progress_callback>."
6394 msgstr ""
6395
6396 # type: textblock
6397 #: ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:3863
6398 #: ../src/guestfs-actions.pod:5065 ../src/guestfs-actions.pod:6697
6399 #: ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:6803
6400 msgid "(Added in 1.0.87)"
6401 msgstr ""
6402
6403 # type: =head2
6404 #: ../src/guestfs-actions.pod:1119
6405 msgid "guestfs_cp"
6406 msgstr ""
6407
6408 # type: verbatim
6409 #: ../src/guestfs-actions.pod:1121
6410 #, no-wrap
6411 msgid ""
6412 " int\n"
6413 " guestfs_cp (guestfs_h *g,\n"
6414 "             const char *src,\n"
6415 "             const char *dest);\n"
6416 "\n"
6417 msgstr ""
6418
6419 # type: textblock
6420 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6421 msgid ""
6422 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6423 "destination filename or destination directory."
6424 msgstr ""
6425
6426 # type: textblock
6427 #: ../src/guestfs-actions.pod:1131 ../src/guestfs-actions.pod:1145
6428 #: ../src/guestfs-actions.pod:1217 ../src/guestfs-actions.pod:1291
6429 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:4532
6430 #: ../src/guestfs-actions.pod:4909
6431 msgid "(Added in 1.0.18)"
6432 msgstr ""
6433
6434 # type: =head2
6435 #: ../src/guestfs-actions.pod:1133
6436 msgid "guestfs_cp_a"
6437 msgstr ""
6438
6439 # type: verbatim
6440 #: ../src/guestfs-actions.pod:1135
6441 #, no-wrap
6442 msgid ""
6443 " int\n"
6444 " guestfs_cp_a (guestfs_h *g,\n"
6445 "               const char *src,\n"
6446 "               const char *dest);\n"
6447 "\n"
6448 msgstr ""
6449
6450 # type: textblock
6451 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6452 msgid ""
6453 "This copies a file or directory from C<src> to C<dest> recursively using the "
6454 "C<cp -a> command."
6455 msgstr ""
6456
6457 # type: =head2
6458 #: ../src/guestfs-actions.pod:1147
6459 msgid "guestfs_dd"
6460 msgstr ""
6461
6462 # type: verbatim
6463 #: ../src/guestfs-actions.pod:1149
6464 #, no-wrap
6465 msgid ""
6466 " int\n"
6467 " guestfs_dd (guestfs_h *g,\n"
6468 "             const char *src,\n"
6469 "             const char *dest);\n"
6470 "\n"
6471 msgstr ""
6472
6473 # type: textblock
6474 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6475 msgid ""
6476 "This command copies from one source device or file C<src> to another "
6477 "destination device or file C<dest>.  Normally you would use this to copy to "
6478 "or from a device or partition, for example to duplicate a filesystem."
6479 msgstr ""
6480
6481 # type: textblock
6482 #: ../src/guestfs-actions.pod:1159
6483 msgid ""
6484 "If the destination is a device, it must be as large or larger than the "
6485 "source file or device, otherwise the copy will fail.  This command cannot do "
6486 "partial copies (see C<guestfs_copy_size>)."
6487 msgstr ""
6488
6489 # type: =head2
6490 #: ../src/guestfs-actions.pod:1167
6491 msgid "guestfs_df"
6492 msgstr ""
6493
6494 # type: verbatim
6495 #: ../src/guestfs-actions.pod:1169
6496 #, no-wrap
6497 msgid ""
6498 " char *\n"
6499 " guestfs_df (guestfs_h *g);\n"
6500 "\n"
6501 msgstr ""
6502
6503 # type: textblock
6504 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6505 msgid "This command runs the C<df> command to report disk space used."
6506 msgstr ""
6507
6508 # type: textblock
6509 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191
6510 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6511 msgid ""
6512 "This command is mostly useful for interactive sessions.  It is I<not> "
6513 "intended that you try to parse the output string.  Use C<statvfs> from "
6514 "programs."
6515 msgstr ""
6516
6517 # type: textblock
6518 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1198
6519 #: ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2235
6520 #: ../src/guestfs-actions.pod:2259 ../src/guestfs-actions.pod:2327
6521 #: ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4432
6522 #: ../src/guestfs-actions.pod:6194 ../src/guestfs-actions.pod:6218
6523 #: ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:6849
6524 #: ../src/guestfs-actions.pod:6862
6525 msgid "(Added in 1.0.54)"
6526 msgstr ""
6527
6528 # type: =head2
6529 #: ../src/guestfs-actions.pod:1183
6530 msgid "guestfs_df_h"
6531 msgstr ""
6532
6533 # type: verbatim
6534 #: ../src/guestfs-actions.pod:1185
6535 #, no-wrap
6536 msgid ""
6537 " char *\n"
6538 " guestfs_df_h (guestfs_h *g);\n"
6539 "\n"
6540 msgstr ""
6541
6542 # type: textblock
6543 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6544 msgid ""
6545 "This command runs the C<df -h> command to report disk space used in human-"
6546 "readable format."
6547 msgstr ""
6548
6549 # type: =head2
6550 #: ../src/guestfs-actions.pod:1200
6551 msgid "guestfs_dmesg"
6552 msgstr ""
6553
6554 # type: verbatim
6555 #: ../src/guestfs-actions.pod:1202
6556 #, no-wrap
6557 msgid ""
6558 " char *\n"
6559 " guestfs_dmesg (guestfs_h *g);\n"
6560 "\n"
6561 msgstr ""
6562
6563 # type: textblock
6564 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6565 msgid ""
6566 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6567 "This is sometimes useful for extended debugging of problems."
6568 msgstr ""
6569
6570 # type: textblock
6571 #: ../src/guestfs-actions.pod:1209
6572 msgid ""
6573 "Another way to get the same information is to enable verbose messages with "
6574 "C<guestfs_set_verbose> or by setting the environment variable "
6575 "C<LIBGUESTFS_DEBUG=1> before running the program."
6576 msgstr ""
6577
6578 # type: =head2
6579 #: ../src/guestfs-actions.pod:1219
6580 msgid "guestfs_download"
6581 msgstr ""
6582
6583 # type: verbatim
6584 #: ../src/guestfs-actions.pod:1221
6585 #, no-wrap
6586 msgid ""
6587 " int\n"
6588 " guestfs_download (guestfs_h *g,\n"
6589 "                   const char *remotefilename,\n"
6590 "                   const char *filename);\n"
6591 "\n"
6592 msgstr ""
6593
6594 # type: textblock
6595 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251
6596 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6597 msgid ""
6598 "Download file C<remotefilename> and save it as C<filename> on the local "
6599 "machine."
6600 msgstr ""
6601
6602 # type: textblock
6603 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6450
6604 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4304
6605 msgid "C<filename> can also be a named pipe."
6606 msgstr ""
6607
6608 # type: textblock
6609 #: ../src/guestfs-actions.pod:1231
6610 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6611 msgstr ""
6612
6613 # type: =head2
6614 #: ../src/guestfs-actions.pod:1242
6615 msgid "guestfs_download_offset"
6616 msgstr ""
6617
6618 # type: verbatim
6619 #: ../src/guestfs-actions.pod:1244
6620 #, no-wrap
6621 msgid ""
6622 " int\n"
6623 " guestfs_download_offset (guestfs_h *g,\n"
6624 "                          const char *remotefilename,\n"
6625 "                          const char *filename,\n"
6626 "                          int64_t offset,\n"
6627 "                          int64_t size);\n"
6628 "\n"
6629 msgstr ""
6630
6631 # type: textblock
6632 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6633 msgid ""
6634 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6635 "region must be within the file or device)."
6636 msgstr ""
6637
6638 # type: textblock
6639 #: ../src/guestfs-actions.pod:1257
6640 msgid ""
6641 "Note that there is no limit on the amount of data that can be downloaded "
6642 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6643 "full amount unless an error occurs."
6644 msgstr ""
6645
6646 # type: textblock
6647 #: ../src/guestfs-actions.pod:1262
6648 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6649 msgstr ""
6650
6651 # type: textblock
6652 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6495
6653 msgid "(Added in 1.5.17)"
6654 msgstr ""
6655
6656 # type: =head2
6657 #: ../src/guestfs-actions.pod:1273
6658 msgid "guestfs_drop_caches"
6659 msgstr ""
6660
6661 # type: verbatim
6662 #: ../src/guestfs-actions.pod:1275
6663 #, no-wrap
6664 msgid ""
6665 " int\n"
6666 " guestfs_drop_caches (guestfs_h *g,\n"
6667 "                      int whattodrop);\n"
6668 "\n"
6669 msgstr ""
6670
6671 # type: textblock
6672 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6673 msgid ""
6674 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6675 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6676 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6677 msgstr ""
6678
6679 # type: textblock
6680 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6681 msgid "Setting C<whattodrop> to 3 should drop everything."
6682 msgstr ""
6683
6684 # type: textblock
6685 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6686 msgid ""
6687 "This automatically calls L<sync(2)> before the operation, so that the "
6688 "maximum guest memory is freed."
6689 msgstr ""
6690
6691 # type: =head2
6692 #: ../src/guestfs-actions.pod:1293
6693 msgid "guestfs_du"
6694 msgstr ""
6695
6696 # type: verbatim
6697 #: ../src/guestfs-actions.pod:1295
6698 #, no-wrap
6699 msgid ""
6700 " int64_t\n"
6701 " guestfs_du (guestfs_h *g,\n"
6702 "             const char *path);\n"
6703 "\n"
6704 msgstr ""
6705
6706 # type: textblock
6707 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6708 msgid ""
6709 "This command runs the C<du -s> command to estimate file space usage for "
6710 "C<path>."
6711 msgstr ""
6712
6713 # type: textblock
6714 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6715 msgid ""
6716 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6717 "estimate includes the contents of the directory and all subdirectories "
6718 "(recursively)."
6719 msgstr ""
6720
6721 # type: textblock
6722 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6723 msgid ""
6724 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6725 msgstr ""
6726
6727 # type: =head2
6728 #: ../src/guestfs-actions.pod:1313
6729 msgid "guestfs_e2fsck_f"
6730 msgstr ""
6731
6732 # type: verbatim
6733 #: ../src/guestfs-actions.pod:1315
6734 #, no-wrap
6735 msgid ""
6736 " int\n"
6737 " guestfs_e2fsck_f (guestfs_h *g,\n"
6738 "                   const char *device);\n"
6739 "\n"
6740 msgstr ""
6741
6742 # type: textblock
6743 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6744 msgid ""
6745 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6746 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6747 "clean (C<-f>)."
6748 msgstr ""
6749
6750 # type: textblock
6751 #: ../src/guestfs-actions.pod:1323
6752 msgid ""
6753 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6754 "Normally you should use C<guestfs_fsck>."
6755 msgstr ""
6756
6757 # type: textblock
6758 #: ../src/guestfs-actions.pod:1328
6759 msgid "(Added in 1.0.29)"
6760 msgstr ""
6761
6762 # type: =head2
6763 #: ../src/guestfs-actions.pod:1330
6764 msgid "guestfs_echo_daemon"
6765 msgstr ""
6766
6767 # type: verbatim
6768 #: ../src/guestfs-actions.pod:1332
6769 #, no-wrap
6770 msgid ""
6771 " char *\n"
6772 " guestfs_echo_daemon (guestfs_h *g,\n"
6773 "                      char *const *words);\n"
6774 "\n"
6775 msgstr ""
6776
6777 # type: textblock
6778 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6779 msgid ""
6780 "This command concatenates the list of C<words> passed with single spaces "
6781 "between them and returns the resulting string."
6782 msgstr ""
6783
6784 # type: textblock
6785 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6786 msgid "You can use this command to test the connection through to the daemon."
6787 msgstr ""
6788
6789 # type: textblock
6790 #: ../src/guestfs-actions.pod:1341
6791 msgid "See also C<guestfs_ping_daemon>."
6792 msgstr ""
6793
6794 # type: textblock
6795 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073
6796 #: ../src/guestfs-actions.pod:5698
6797 msgid "(Added in 1.0.69)"
6798 msgstr ""
6799
6800 # type: =head2
6801 #: ../src/guestfs-actions.pod:1348
6802 msgid "guestfs_egrep"
6803 msgstr ""
6804
6805 # type: verbatim
6806 #: ../src/guestfs-actions.pod:1350
6807 #, no-wrap
6808 msgid ""
6809 " char **\n"
6810 " guestfs_egrep (guestfs_h *g,\n"
6811 "                const char *regex,\n"
6812 "                const char *path);\n"
6813 "\n"
6814 msgstr ""
6815
6816 # type: textblock
6817 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6818 msgid ""
6819 "This calls the external C<egrep> program and returns the matching lines."
6820 msgstr ""
6821
6822 # type: textblock
6823 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1384
6824 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1487
6825 #: ../src/guestfs-actions.pod:1506 ../src/guestfs-actions.pod:2173
6826 #: ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2348
6827 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:2376
6828 #: ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2444
6829 #: ../src/guestfs-actions.pod:2457 ../src/guestfs-actions.pod:3356
6830 #: ../src/guestfs-actions.pod:3370 ../src/guestfs-actions.pod:3383
6831 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:4367
6832 #: ../src/guestfs-actions.pod:5243 ../src/guestfs-actions.pod:5292
6833 #: ../src/guestfs-actions.pod:6062 ../src/guestfs-actions.pod:6074
6834 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6100
6835 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6135
6836 #: ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6161
6837 #: ../src/guestfs-actions.pod:6932 ../src/guestfs-actions.pod:6951
6838 #: ../src/guestfs-actions.pod:7036 ../src/guestfs-actions.pod:7055
6839 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7120
6840 msgid "(Added in 1.0.66)"
6841 msgstr ""
6842
6843 # type: =head2
6844 #: ../src/guestfs-actions.pod:1367
6845 msgid "guestfs_egrepi"
6846 msgstr ""
6847
6848 # type: verbatim
6849 #: ../src/guestfs-actions.pod:1369
6850 #, no-wrap
6851 msgid ""
6852 " char **\n"
6853 " guestfs_egrepi (guestfs_h *g,\n"
6854 "                 const char *regex,\n"
6855 "                 const char *path);\n"
6856 "\n"
6857 msgstr ""
6858
6859 # type: textblock
6860 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6861 msgid ""
6862 "This calls the external C<egrep -i> program and returns the matching lines."
6863 msgstr ""
6864
6865 # type: =head2
6866 #: ../src/guestfs-actions.pod:1386
6867 msgid "guestfs_equal"
6868 msgstr ""
6869
6870 # type: verbatim
6871 #: ../src/guestfs-actions.pod:1388
6872 #, no-wrap
6873 msgid ""
6874 " int\n"
6875 " guestfs_equal (guestfs_h *g,\n"
6876 "                const char *file1,\n"
6877 "                const char *file2);\n"
6878 "\n"
6879 msgstr ""
6880
6881 # type: textblock
6882 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6883 msgid ""
6884 "This compares the two files C<file1> and C<file2> and returns true if their "
6885 "content is exactly equal, or false otherwise."
6886 msgstr ""
6887
6888 # type: textblock
6889 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6890 msgid "The external L<cmp(1)> program is used for the comparison."
6891 msgstr ""
6892
6893 # type: =head2
6894 #: ../src/guestfs-actions.pod:1402
6895 msgid "guestfs_exists"
6896 msgstr ""
6897
6898 # type: verbatim
6899 #: ../src/guestfs-actions.pod:1404
6900 #, no-wrap
6901 msgid ""
6902 " int\n"
6903 " guestfs_exists (guestfs_h *g,\n"
6904 "                 const char *path);\n"
6905 "\n"
6906 msgstr ""
6907
6908 # type: textblock
6909 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6910 msgid ""
6911 "This returns C<true> if and only if there is a file, directory (or anything) "
6912 "with the given C<path> name."
6913 msgstr ""
6914
6915 # type: textblock
6916 #: ../src/guestfs-actions.pod:1411
6917 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6918 msgstr ""
6919
6920 # type: =head2
6921 #: ../src/guestfs-actions.pod:1417
6922 msgid "guestfs_fallocate"
6923 msgstr ""
6924
6925 # type: verbatim
6926 #: ../src/guestfs-actions.pod:1419
6927 #, no-wrap
6928 msgid ""
6929 " int\n"
6930 " guestfs_fallocate (guestfs_h *g,\n"
6931 "                    const char *path,\n"
6932 "                    int len);\n"
6933 "\n"
6934 msgstr ""
6935
6936 # type: textblock
6937 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450
6938 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6939 msgid ""
6940 "This command preallocates a file (containing zero bytes) named C<path> of "
6941 "size C<len> bytes.  If the file exists already, it is overwritten."
6942 msgstr ""
6943
6944 # type: textblock
6945 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
6946 msgid ""
6947 "Do not confuse this with the guestfish-specific C<alloc> command which "
6948 "allocates a file in the host and attaches it as a device."
6949 msgstr ""
6950
6951 # type: textblock
6952 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
6953 msgid ""
6954 "This function is deprecated.  In new code, use the C<fallocate64> call "
6955 "instead."
6956 msgstr ""
6957
6958 # type: =head2
6959 #: ../src/guestfs-actions.pod:1443
6960 msgid "guestfs_fallocate64"
6961 msgstr ""
6962
6963 # type: verbatim
6964 #: ../src/guestfs-actions.pod:1445
6965 #, no-wrap
6966 msgid ""
6967 " int\n"
6968 " guestfs_fallocate64 (guestfs_h *g,\n"
6969 "                      const char *path,\n"
6970 "                      int64_t len);\n"
6971 "\n"
6972 msgstr ""
6973
6974 # type: textblock
6975 #: ../src/guestfs-actions.pod:1454
6976 msgid ""
6977 "Note that this call allocates disk blocks for the file.  To create a sparse "
6978 "file use C<guestfs_truncate_size> instead."
6979 msgstr ""
6980
6981 # type: textblock
6982 #: ../src/guestfs-actions.pod:1457
6983 msgid ""
6984 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6985 "oversight it only allowed 30 bit lengths to be specified, effectively "
6986 "limiting the maximum size of files created through that call to 1GB."
6987 msgstr ""
6988
6989 # type: textblock
6990 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
6991 msgid ""
6992 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6993 "commands which create a file in the host and attach it as a device."
6994 msgstr ""
6995
6996 # type: textblock
6997 #: ../src/guestfs-actions.pod:1468
6998 msgid "(Added in 1.3.17)"
6999 msgstr ""
7000
7001 # type: =head2
7002 #: ../src/guestfs-actions.pod:1470
7003 msgid "guestfs_fgrep"
7004 msgstr ""
7005
7006 # type: verbatim
7007 #: ../src/guestfs-actions.pod:1472
7008 #, no-wrap
7009 msgid ""
7010 " char **\n"
7011 " guestfs_fgrep (guestfs_h *g,\n"
7012 "                const char *pattern,\n"
7013 "                const char *path);\n"
7014 "\n"
7015 msgstr ""
7016
7017 # type: textblock
7018 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
7019 msgid ""
7020 "This calls the external C<fgrep> program and returns the matching lines."
7021 msgstr ""
7022
7023 # type: =head2
7024 #: ../src/guestfs-actions.pod:1489
7025 msgid "guestfs_fgrepi"
7026 msgstr ""
7027
7028 # type: verbatim
7029 #: ../src/guestfs-actions.pod:1491
7030 #, no-wrap
7031 msgid ""
7032 " char **\n"
7033 " guestfs_fgrepi (guestfs_h *g,\n"
7034 "                 const char *pattern,\n"
7035 "                 const char *path);\n"
7036 "\n"
7037 msgstr ""
7038
7039 # type: textblock
7040 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
7041 msgid ""
7042 "This calls the external C<fgrep -i> program and returns the matching lines."
7043 msgstr ""
7044
7045 # type: =head2
7046 #: ../src/guestfs-actions.pod:1508
7047 msgid "guestfs_file"
7048 msgstr ""
7049
7050 # type: verbatim
7051 #: ../src/guestfs-actions.pod:1510
7052 #, no-wrap
7053 msgid ""
7054 " char *\n"
7055 " guestfs_file (guestfs_h *g,\n"
7056 "               const char *path);\n"
7057 "\n"
7058 msgstr ""
7059
7060 # type: textblock
7061 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
7062 msgid ""
7063 "This call uses the standard L<file(1)> command to determine the type or "
7064 "contents of the file."
7065 msgstr ""
7066
7067 # type: textblock
7068 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
7069 msgid ""
7070 "This call will also transparently look inside various types of compressed "
7071 "file."
7072 msgstr ""
7073
7074 # type: textblock
7075 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
7076 msgid ""
7077 "The exact command which runs is C<file -zb path>.  Note in particular that "
7078 "the filename is not prepended to the output (the C<-b> option)."
7079 msgstr ""
7080
7081 # type: textblock
7082 #: ../src/guestfs-actions.pod:1524
7083 msgid ""
7084 "This command can also be used on C</dev/> devices (and partitions, LV "
7085 "names).  You can for example use this to determine if a device contains a "
7086 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7087 msgstr ""
7088
7089 # type: textblock
7090 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
7091 msgid ""
7092 "If the C<path> does not begin with C</dev/> then this command only works for "
7093 "the content of regular files.  For other file types (directory, symbolic "
7094 "link etc) it will just return the string C<directory> etc."
7095 msgstr ""
7096
7097 # type: =head2
7098 #: ../src/guestfs-actions.pod:1539
7099 msgid "guestfs_file_architecture"
7100 msgstr ""
7101
7102 # type: verbatim
7103 #: ../src/guestfs-actions.pod:1541
7104 #, no-wrap
7105 msgid ""
7106 " char *\n"
7107 " guestfs_file_architecture (guestfs_h *g,\n"
7108 "                            const char *filename);\n"
7109 "\n"
7110 msgstr ""
7111
7112 # type: textblock
7113 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
7114 msgid ""
7115 "This detects the architecture of the binary C<filename>, and returns it if "
7116 "known."
7117 msgstr ""
7118
7119 # type: textblock
7120 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
7121 msgid "Currently defined architectures are:"
7122 msgstr ""
7123
7124 # type: =item
7125 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
7126 msgid "\"i386\""
7127 msgstr ""
7128
7129 # type: textblock
7130 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
7131 msgid ""
7132 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7133 "irrespective of the precise processor requirements of the binary."
7134 msgstr ""
7135
7136 # type: =item
7137 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
7138 msgid "\"x86_64\""
7139 msgstr ""
7140
7141 # type: textblock
7142 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
7143 msgid "64 bit x86-64."
7144 msgstr ""
7145
7146 # type: =item
7147 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
7148 msgid "\"sparc\""
7149 msgstr ""
7150
7151 # type: textblock
7152 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
7153 msgid "32 bit SPARC."
7154 msgstr ""
7155
7156 # type: =item
7157 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
7158 msgid "\"sparc64\""
7159 msgstr ""
7160
7161 # type: textblock
7162 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
7163 msgid "64 bit SPARC V9 and above."
7164 msgstr ""
7165
7166 # type: =item
7167 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
7168 msgid "\"ia64\""
7169 msgstr ""
7170
7171 # type: textblock
7172 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
7173 msgid "Intel Itanium."
7174 msgstr ""
7175
7176 # type: =item
7177 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
7178 msgid "\"ppc\""
7179 msgstr ""
7180
7181 # type: textblock
7182 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
7183 msgid "32 bit Power PC."
7184 msgstr ""
7185
7186 # type: =item
7187 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
7188 msgid "\"ppc64\""
7189 msgstr ""
7190
7191 # type: textblock
7192 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
7193 msgid "64 bit Power PC."
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
7198 msgid "Libguestfs may return other architecture strings in future."
7199 msgstr ""
7200
7201 # type: textblock
7202 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
7203 msgid "The function works on at least the following types of files:"
7204 msgstr ""
7205
7206 # type: textblock
7207 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
7208 msgid "many types of Un*x and Linux binary"
7209 msgstr ""
7210
7211 # type: textblock
7212 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
7213 msgid "many types of Un*x and Linux shared library"
7214 msgstr ""
7215
7216 # type: textblock
7217 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
7218 msgid "Windows Win32 and Win64 binaries"
7219 msgstr ""
7220
7221 # type: textblock
7222 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
7223 msgid "Windows Win32 and Win64 DLLs"
7224 msgstr ""
7225
7226 # type: textblock
7227 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
7228 msgid "Win32 binaries and DLLs return C<i386>."
7229 msgstr ""
7230
7231 # type: textblock
7232 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
7233 msgid "Win64 binaries and DLLs return C<x86_64>."
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
7238 msgid "Linux kernel modules"
7239 msgstr ""
7240
7241 # type: textblock
7242 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
7243 msgid "Linux new-style initrd images"
7244 msgstr ""
7245
7246 # type: textblock
7247 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
7248 msgid "some non-x86 Linux vmlinuz kernels"
7249 msgstr ""
7250
7251 # type: textblock
7252 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
7253 msgid "What it can't do currently:"
7254 msgstr ""
7255
7256 # type: textblock
7257 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
7258 msgid "static libraries (libfoo.a)"
7259 msgstr ""
7260
7261 # type: textblock
7262 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
7263 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7264 msgstr ""
7265
7266 # type: textblock
7267 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
7268 msgid "x86 Linux vmlinuz kernels"
7269 msgstr ""
7270
7271 # type: textblock
7272 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
7273 msgid ""
7274 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7275 "compressed code, and are horribly hard to unpack.  If you want to find the "
7276 "architecture of a kernel, use the architecture of the associated initrd or "
7277 "kernel module(s) instead."
7278 msgstr ""
7279
7280 # type: textblock
7281 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1812
7282 #: ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:2480
7283 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2587
7284 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2657
7285 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2774
7286 #: ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:3009
7287 #: ../src/guestfs-actions.pod:3141
7288 msgid "(Added in 1.5.3)"
7289 msgstr ""
7290
7291 # type: =head2
7292 #: ../src/guestfs-actions.pod:1651
7293 msgid "guestfs_filesize"
7294 msgstr ""
7295
7296 # type: verbatim
7297 #: ../src/guestfs-actions.pod:1653
7298 #, no-wrap
7299 msgid ""
7300 " int64_t\n"
7301 " guestfs_filesize (guestfs_h *g,\n"
7302 "                   const char *file);\n"
7303 "\n"
7304 msgstr ""
7305
7306 # type: textblock
7307 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
7308 msgid "This command returns the size of C<file> in bytes."
7309 msgstr ""
7310
7311 # type: textblock
7312 #: ../src/guestfs-actions.pod:1659
7313 msgid ""
7314 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7315 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7316 "devices, use C<guestfs_blockdev_getsize64>."
7317 msgstr ""
7318
7319 # type: textblock
7320 #: ../src/guestfs-actions.pod:1665
7321 msgid "(Added in 1.0.82)"
7322 msgstr ""
7323
7324 # type: =head2
7325 #: ../src/guestfs-actions.pod:1667
7326 msgid "guestfs_fill"
7327 msgstr ""
7328
7329 # type: verbatim
7330 #: ../src/guestfs-actions.pod:1669
7331 #, no-wrap
7332 msgid ""
7333 " int\n"
7334 " guestfs_fill (guestfs_h *g,\n"
7335 "               int c,\n"
7336 "               int len,\n"
7337 "               const char *path);\n"
7338 "\n"
7339 msgstr ""
7340
7341 # type: textblock
7342 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
7343 msgid ""
7344 "This command creates a new file called C<path>.  The initial content of the "
7345 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7346 "[0..255]>."
7347 msgstr ""
7348
7349 # type: textblock
7350 #: ../src/guestfs-actions.pod:1679
7351 msgid ""
7352 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7353 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7354 "bytes use C<guestfs_fill_pattern>."
7355 msgstr ""
7356
7357 # type: textblock
7358 #: ../src/guestfs-actions.pod:1691
7359 msgid "(Added in 1.0.79)"
7360 msgstr ""
7361
7362 # type: =head2
7363 #: ../src/guestfs-actions.pod:1693
7364 msgid "guestfs_fill_pattern"
7365 msgstr ""
7366
7367 # type: verbatim
7368 #: ../src/guestfs-actions.pod:1695
7369 #, no-wrap
7370 msgid ""
7371 " int\n"
7372 " guestfs_fill_pattern (guestfs_h *g,\n"
7373 "                       const char *pattern,\n"
7374 "                       int len,\n"
7375 "                       const char *path);\n"
7376 "\n"
7377 msgstr ""
7378
7379 # type: textblock
7380 #: ../src/guestfs-actions.pod:1701
7381 msgid ""
7382 "This function is like C<guestfs_fill> except that it creates a new file of "
7383 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7384 "pattern is truncated if necessary to ensure the length of the file is "
7385 "exactly C<len> bytes."
7386 msgstr ""
7387
7388 # type: textblock
7389 #: ../src/guestfs-actions.pod:1713
7390 msgid "(Added in 1.3.12)"
7391 msgstr ""
7392
7393 # type: =head2
7394 #: ../src/guestfs-actions.pod:1715
7395 msgid "guestfs_find"
7396 msgstr ""
7397
7398 # type: verbatim
7399 #: ../src/guestfs-actions.pod:1717
7400 #, no-wrap
7401 msgid ""
7402 " char **\n"
7403 " guestfs_find (guestfs_h *g,\n"
7404 "               const char *directory);\n"
7405 "\n"
7406 msgstr ""
7407
7408 # type: textblock
7409 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7410 msgid ""
7411 "This command lists out all files and directories, recursively, starting at "
7412 "C<directory>.  It is essentially equivalent to running the shell command "
7413 "C<find directory -print> but some post-processing happens on the output, "
7414 "described below."
7415 msgstr ""
7416
7417 # type: textblock
7418 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7419 msgid ""
7420 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7421 "structure was:"
7422 msgstr ""
7423
7424 # type: verbatim
7425 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7426 #, no-wrap
7427 msgid ""
7428 " /tmp/a\n"
7429 " /tmp/b\n"
7430 " /tmp/c/d\n"
7431 "\n"
7432 msgstr ""
7433
7434 # type: textblock
7435 #: ../src/guestfs-actions.pod:1733
7436 msgid ""
7437 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7438 msgstr ""
7439
7440 # type: verbatim
7441 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7442 #, no-wrap
7443 msgid ""
7444 " a\n"
7445 " b\n"
7446 " c\n"
7447 " c/d\n"
7448 "\n"
7449 msgstr ""
7450
7451 # type: textblock
7452 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7453 msgid "If C<directory> is not a directory, then this command returns an error."
7454 msgstr ""
7455
7456 # type: textblock
7457 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7458 msgid "The returned list is sorted."
7459 msgstr ""
7460
7461 # type: textblock
7462 #: ../src/guestfs-actions.pod:1746
7463 msgid "See also C<guestfs_find0>."
7464 msgstr ""
7465
7466 # type: textblock
7467 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3800
7468 #: ../src/guestfs-actions.pod:5327
7469 msgid "(Added in 1.0.27)"
7470 msgstr ""
7471
7472 # type: =head2
7473 #: ../src/guestfs-actions.pod:1757
7474 msgid "guestfs_find0"
7475 msgstr ""
7476
7477 # type: verbatim
7478 #: ../src/guestfs-actions.pod:1759
7479 #, no-wrap
7480 msgid ""
7481 " int\n"
7482 " guestfs_find0 (guestfs_h *g,\n"
7483 "                const char *directory,\n"
7484 "                const char *files);\n"
7485 "\n"
7486 msgstr ""
7487
7488 # type: textblock
7489 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7490 msgid ""
7491 "This command lists out all files and directories, recursively, starting at "
7492 "C<directory>, placing the resulting list in the external file called "
7493 "C<files>."
7494 msgstr ""
7495
7496 # type: textblock
7497 #: ../src/guestfs-actions.pod:1768
7498 msgid ""
7499 "This command works the same way as C<guestfs_find> with the following "
7500 "exceptions:"
7501 msgstr ""
7502
7503 # type: textblock
7504 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7505 msgid "The resulting list is written to an external file."
7506 msgstr ""
7507
7508 # type: textblock
7509 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7510 msgid ""
7511 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7512 "L<find(1)> option I<-print0>."
7513 msgstr ""
7514
7515 # type: textblock
7516 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7517 msgid "This command is not limited in the number of names that it can return."
7518 msgstr ""
7519
7520 # type: textblock
7521 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7522 msgid "The result list is not sorted."
7523 msgstr ""
7524
7525 # type: textblock
7526 #: ../src/guestfs-actions.pod:1795
7527 msgid "(Added in 1.0.74)"
7528 msgstr ""
7529
7530 # type: =head2
7531 #: ../src/guestfs-actions.pod:1797
7532 msgid "guestfs_findfs_label"
7533 msgstr ""
7534
7535 # type: verbatim
7536 #: ../src/guestfs-actions.pod:1799
7537 #, no-wrap
7538 msgid ""
7539 " char *\n"
7540 " guestfs_findfs_label (guestfs_h *g,\n"
7541 "                       const char *label);\n"
7542 "\n"
7543 msgstr ""
7544
7545 # type: textblock
7546 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7547 msgid ""
7548 "This command searches the filesystems and returns the one which has the "
7549 "given label.  An error is returned if no such filesystem can be found."
7550 msgstr ""
7551
7552 # type: textblock
7553 #: ../src/guestfs-actions.pod:1807
7554 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7555 msgstr ""
7556
7557 # type: =head2
7558 #: ../src/guestfs-actions.pod:1814
7559 msgid "guestfs_findfs_uuid"
7560 msgstr ""
7561
7562 # type: verbatim
7563 #: ../src/guestfs-actions.pod:1816
7564 #, no-wrap
7565 msgid ""
7566 " char *\n"
7567 " guestfs_findfs_uuid (guestfs_h *g,\n"
7568 "                      const char *uuid);\n"
7569 "\n"
7570 msgstr ""
7571
7572 # type: textblock
7573 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7574 msgid ""
7575 "This command searches the filesystems and returns the one which has the "
7576 "given UUID.  An error is returned if no such filesystem can be found."
7577 msgstr ""
7578
7579 # type: textblock
7580 #: ../src/guestfs-actions.pod:1824
7581 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7582 msgstr ""
7583
7584 # type: =head2
7585 #: ../src/guestfs-actions.pod:1831
7586 msgid "guestfs_fsck"
7587 msgstr ""
7588
7589 # type: verbatim
7590 #: ../src/guestfs-actions.pod:1833
7591 #, no-wrap
7592 msgid ""
7593 " int\n"
7594 " guestfs_fsck (guestfs_h *g,\n"
7595 "               const char *fstype,\n"
7596 "               const char *device);\n"
7597 "\n"
7598 msgstr ""
7599
7600 # type: textblock
7601 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7602 msgid ""
7603 "This runs the filesystem checker (fsck) on C<device> which should have "
7604 "filesystem type C<fstype>."
7605 msgstr ""
7606
7607 # type: textblock
7608 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7609 msgid ""
7610 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7611 "codes from C<fsck>."
7612 msgstr ""
7613
7614 # type: textblock
7615 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7616 msgid "Multiple status codes can be summed together."
7617 msgstr ""
7618
7619 # type: textblock
7620 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7621 msgid ""
7622 "A non-zero return code can mean \"success\", for example if errors have been "
7623 "corrected on the filesystem."
7624 msgstr ""
7625
7626 # type: textblock
7627 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7628 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7629 msgstr ""
7630
7631 # type: textblock
7632 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7633 msgid ""
7634 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7635 msgstr ""
7636
7637 # type: textblock
7638 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:6974
7639 msgid "(Added in 1.0.16)"
7640 msgstr ""
7641
7642 # type: =head2
7643 #: ../src/guestfs-actions.pod:1870
7644 msgid "guestfs_get_append"
7645 msgstr ""
7646
7647 # type: verbatim
7648 #: ../src/guestfs-actions.pod:1872
7649 #, no-wrap
7650 msgid ""
7651 " const char *\n"
7652 " guestfs_get_append (guestfs_h *g);\n"
7653 "\n"
7654 msgstr ""
7655
7656 # type: textblock
7657 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7658 msgid ""
7659 "Return the additional kernel options which are added to the guest kernel "
7660 "command line."
7661 msgstr ""
7662
7663 # type: textblock
7664 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7665 msgid "If C<NULL> then no options are added."
7666 msgstr ""
7667
7668 # type: textblock
7669 #: ../src/guestfs-actions.pod:1880
7670 msgid ""
7671 "This function returns a string which may be NULL.  There is no way to return "
7672 "an error from this function.  The string is owned by the guest handle and "
7673 "must I<not> be freed."
7674 msgstr ""
7675
7676 # type: textblock
7677 #: ../src/guestfs-actions.pod:1884 ../src/guestfs-actions.pod:5005
7678 #: ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5836
7679 #: ../src/guestfs-actions.pod:5855 ../src/guestfs-actions.pod:5871
7680 #: ../src/guestfs-actions.pod:5888 ../src/guestfs-actions.pod:6645
7681 #: ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:7017
7682 msgid "(Added in 1.0.26)"
7683 msgstr ""
7684
7685 # type: =head2
7686 #: ../src/guestfs-actions.pod:1886
7687 msgid "guestfs_get_autosync"
7688 msgstr ""
7689
7690 # type: verbatim
7691 #: ../src/guestfs-actions.pod:1888
7692 #, no-wrap
7693 msgid ""
7694 " int\n"
7695 " guestfs_get_autosync (guestfs_h *g);\n"
7696 "\n"
7697 msgstr ""
7698
7699 # type: textblock
7700 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7701 msgid "Get the autosync flag."
7702 msgstr ""
7703
7704 # type: =head2
7705 #: ../src/guestfs-actions.pod:1897
7706 msgid "guestfs_get_direct"
7707 msgstr ""
7708
7709 # type: verbatim
7710 #: ../src/guestfs-actions.pod:1899
7711 #, no-wrap
7712 msgid ""
7713 " int\n"
7714 " guestfs_get_direct (guestfs_h *g);\n"
7715 "\n"
7716 msgstr ""
7717
7718 # type: textblock
7719 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7720 msgid "Return the direct appliance mode flag."
7721 msgstr ""
7722
7723 # type: textblock
7724 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5509
7725 msgid "(Added in 1.0.72)"
7726 msgstr ""
7727
7728 # type: =head2
7729 #: ../src/guestfs-actions.pod:1908
7730 msgid "guestfs_get_e2label"
7731 msgstr ""
7732
7733 # type: verbatim
7734 #: ../src/guestfs-actions.pod:1910
7735 #, no-wrap
7736 msgid ""
7737 " char *\n"
7738 " guestfs_get_e2label (guestfs_h *g,\n"
7739 "                      const char *device);\n"
7740 "\n"
7741 msgstr ""
7742
7743 # type: textblock
7744 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7745 msgid ""
7746 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7747 msgstr ""
7748
7749 # type: textblock
7750 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7751 msgid ""
7752 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7753 msgstr ""
7754
7755 # type: textblock
7756 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948
7757 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5546
7758 msgid "(Added in 1.0.15)"
7759 msgstr ""
7760
7761 # type: =head2
7762 #: ../src/guestfs-actions.pod:1929
7763 msgid "guestfs_get_e2uuid"
7764 msgstr ""
7765
7766 # type: verbatim
7767 #: ../src/guestfs-actions.pod:1931
7768 #, no-wrap
7769 msgid ""
7770 " char *\n"
7771 " guestfs_get_e2uuid (guestfs_h *g,\n"
7772 "                     const char *device);\n"
7773 "\n"
7774 msgstr ""
7775
7776 # type: textblock
7777 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7778 msgid ""
7779 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7780 msgstr ""
7781
7782 # type: textblock
7783 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7784 msgid ""
7785 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7786 msgstr ""
7787
7788 # type: =head2
7789 #: ../src/guestfs-actions.pod:1950
7790 msgid "guestfs_get_memsize"
7791 msgstr ""
7792
7793 # type: verbatim
7794 #: ../src/guestfs-actions.pod:1952
7795 #, no-wrap
7796 msgid ""
7797 " int\n"
7798 " guestfs_get_memsize (guestfs_h *g);\n"
7799 "\n"
7800 msgstr ""
7801
7802 # type: textblock
7803 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7804 msgid ""
7805 "This gets the memory size in megabytes allocated to the qemu subprocess."
7806 msgstr ""
7807
7808 # type: textblock
7809 #: ../src/guestfs-actions.pod:1958
7810 msgid ""
7811 "If C<guestfs_set_memsize> was not called on this handle, and if "
7812 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7813 "value for memsize."
7814 msgstr ""
7815
7816 # type: textblock
7817 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2043
7818 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5669
7819 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7820 #: ../fish/guestfish-actions.pod:3711 ../fish/guestfish-actions.pod:3798
7821 msgid ""
7822 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7823 msgstr ""
7824
7825 # type: textblock
7826 #: ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:4091
7827 #: ../src/guestfs-actions.pod:4272 ../src/guestfs-actions.pod:4291
7828 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4322
7829 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:4352
7830 #: ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5567
7831 #: ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6411
7832 msgid "(Added in 1.0.55)"
7833 msgstr ""
7834
7835 # type: =head2
7836 #: ../src/guestfs-actions.pod:1969
7837 msgid "guestfs_get_network"
7838 msgstr ""
7839
7840 # type: verbatim
7841 #: ../src/guestfs-actions.pod:1971
7842 #, no-wrap
7843 msgid ""
7844 " int\n"
7845 " guestfs_get_network (guestfs_h *g);\n"
7846 "\n"
7847 msgstr ""
7848
7849 # type: textblock
7850 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7851 msgid "This returns the enable network flag."
7852 msgstr ""
7853
7854 # type: textblock
7855 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5586
7856 msgid "(Added in 1.5.4)"
7857 msgstr ""
7858
7859 # type: =head2
7860 #: ../src/guestfs-actions.pod:1980
7861 msgid "guestfs_get_path"
7862 msgstr ""
7863
7864 # type: verbatim
7865 #: ../src/guestfs-actions.pod:1982
7866 #, no-wrap
7867 msgid ""
7868 " const char *\n"
7869 " guestfs_get_path (guestfs_h *g);\n"
7870 "\n"
7871 msgstr ""
7872
7873 # type: textblock
7874 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7875 msgid "Return the current search path."
7876 msgstr ""
7877
7878 # type: textblock
7879 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7880 msgid ""
7881 "This is always non-NULL.  If it wasn't set already, then this will return "
7882 "the default path."
7883 msgstr ""
7884
7885 # type: textblock
7886 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7887 msgid ""
7888 "This function returns a string, or NULL on error.  The string is owned by "
7889 "the guest handle and must I<not> be freed."
7890 msgstr ""
7891
7892 # type: =head2
7893 #: ../src/guestfs-actions.pod:1995
7894 msgid "guestfs_get_pid"
7895 msgstr ""
7896
7897 # type: verbatim
7898 #: ../src/guestfs-actions.pod:1997
7899 #, no-wrap
7900 msgid ""
7901 " int\n"
7902 " guestfs_get_pid (guestfs_h *g);\n"
7903 "\n"
7904 msgstr ""
7905
7906 # type: textblock
7907 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7908 msgid ""
7909 "Return the process ID of the qemu subprocess.  If there is no qemu "
7910 "subprocess, then this will return an error."
7911 msgstr ""
7912
7913 # type: textblock
7914 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7915 msgid "This is an internal call used for debugging and testing."
7916 msgstr ""
7917
7918 # type: textblock
7919 #: ../src/guestfs-actions.pod:2007
7920 msgid "(Added in 1.0.56)"
7921 msgstr ""
7922
7923 # type: =head2
7924 #: ../src/guestfs-actions.pod:2009
7925 msgid "guestfs_get_qemu"
7926 msgstr ""
7927
7928 # type: verbatim
7929 #: ../src/guestfs-actions.pod:2011
7930 #, no-wrap
7931 msgid ""
7932 " const char *\n"
7933 " guestfs_get_qemu (guestfs_h *g);\n"
7934 "\n"
7935 msgstr ""
7936
7937 # type: textblock
7938 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
7939 msgid "Return the current qemu binary."
7940 msgstr ""
7941
7942 # type: textblock
7943 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
7944 msgid ""
7945 "This is always non-NULL.  If it wasn't set already, then this will return "
7946 "the default qemu binary name."
7947 msgstr ""
7948
7949 # type: textblock
7950 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5631
7951 msgid "(Added in 1.0.6)"
7952 msgstr ""
7953
7954 # type: =head2
7955 #: ../src/guestfs-actions.pod:2024
7956 msgid "guestfs_get_recovery_proc"
7957 msgstr ""
7958
7959 # type: verbatim
7960 #: ../src/guestfs-actions.pod:2026
7961 #, no-wrap
7962 msgid ""
7963 " int\n"
7964 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7965 "\n"
7966 msgstr ""
7967
7968 # type: textblock
7969 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
7970 msgid "Return the recovery process enabled flag."
7971 msgstr ""
7972
7973 # type: textblock
7974 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:3231
7975 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3898
7976 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:4935
7977 #: ../src/guestfs-actions.pod:5278 ../src/guestfs-actions.pod:5655
7978 #: ../src/guestfs-actions.pod:6314 ../src/guestfs-actions.pod:6334
7979 #: ../src/guestfs-actions.pod:6526
7980 msgid "(Added in 1.0.77)"
7981 msgstr ""
7982
7983 # type: =head2
7984 #: ../src/guestfs-actions.pod:2035
7985 msgid "guestfs_get_selinux"
7986 msgstr ""
7987
7988 # type: verbatim
7989 #: ../src/guestfs-actions.pod:2037
7990 #, no-wrap
7991 msgid ""
7992 " int\n"
7993 " guestfs_get_selinux (guestfs_h *g);\n"
7994 "\n"
7995 msgstr ""
7996
7997 # type: textblock
7998 #: ../src/guestfs-actions.pod:2040
7999 msgid ""
8000 "This returns the current setting of the selinux flag which is passed to the "
8001 "appliance at boot time.  See C<guestfs_set_selinux>."
8002 msgstr ""
8003
8004 # type: textblock
8005 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111
8006 #: ../src/guestfs-actions.pod:5674 ../src/guestfs-actions.pod:5728
8007 msgid "(Added in 1.0.67)"
8008 msgstr ""
8009
8010 # type: =head2
8011 #: ../src/guestfs-actions.pod:2050
8012 msgid "guestfs_get_state"
8013 msgstr ""
8014
8015 # type: verbatim
8016 #: ../src/guestfs-actions.pod:2052
8017 #, no-wrap
8018 msgid ""
8019 " int\n"
8020 " guestfs_get_state (guestfs_h *g);\n"
8021 "\n"
8022 msgstr ""
8023
8024 # type: textblock
8025 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
8026 msgid ""
8027 "This returns the current state as an opaque integer.  This is only useful "
8028 "for printing debug and internal error messages."
8029 msgstr ""
8030
8031 # type: textblock
8032 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:3034
8033 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3124
8034 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:1398
8035 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131
8036 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
8037 msgid "For more information on states, see L<guestfs(3)>."
8038 msgstr ""
8039
8040 # type: =head2
8041 #: ../src/guestfs-actions.pod:2064
8042 msgid "guestfs_get_trace"
8043 msgstr ""
8044
8045 # type: verbatim
8046 #: ../src/guestfs-actions.pod:2066
8047 #, no-wrap
8048 msgid ""
8049 " int\n"
8050 " guestfs_get_trace (guestfs_h *g);\n"
8051 "\n"
8052 msgstr ""
8053
8054 # type: textblock
8055 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
8056 msgid "Return the command trace flag."
8057 msgstr ""
8058
8059 # type: =head2
8060 #: ../src/guestfs-actions.pod:2075
8061 msgid "guestfs_get_umask"
8062 msgstr ""
8063
8064 # type: verbatim
8065 #: ../src/guestfs-actions.pod:2077
8066 #, no-wrap
8067 msgid ""
8068 " int\n"
8069 " guestfs_get_umask (guestfs_h *g);\n"
8070 "\n"
8071 msgstr ""
8072
8073 # type: textblock
8074 #: ../src/guestfs-actions.pod:2080
8075 msgid ""
8076 "Return the current umask.  By default the umask is C<022> unless it has been "
8077 "set by calling C<guestfs_umask>."
8078 msgstr ""
8079
8080 # type: =head2
8081 #: ../src/guestfs-actions.pod:2087
8082 msgid "guestfs_get_verbose"
8083 msgstr ""
8084
8085 # type: verbatim
8086 #: ../src/guestfs-actions.pod:2089
8087 #, no-wrap
8088 msgid ""
8089 " int\n"
8090 " guestfs_get_verbose (guestfs_h *g);\n"
8091 "\n"
8092 msgstr ""
8093
8094 # type: textblock
8095 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
8096 msgid "This returns the verbose messages flag."
8097 msgstr ""
8098
8099 # type: =head2
8100 #: ../src/guestfs-actions.pod:2098
8101 msgid "guestfs_getcon"
8102 msgstr ""
8103
8104 # type: verbatim
8105 #: ../src/guestfs-actions.pod:2100
8106 #, no-wrap
8107 msgid ""
8108 " char *\n"
8109 " guestfs_getcon (guestfs_h *g);\n"
8110 "\n"
8111 msgstr ""
8112
8113 # type: textblock
8114 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
8115 msgid "This gets the SELinux security context of the daemon."
8116 msgstr ""
8117
8118 # type: textblock
8119 #: ../src/guestfs-actions.pod:2105
8120 msgid ""
8121 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8122 msgstr ""
8123
8124 # type: =head2
8125 #: ../src/guestfs-actions.pod:2113
8126 msgid "guestfs_getxattrs"
8127 msgstr ""
8128
8129 # type: verbatim
8130 #: ../src/guestfs-actions.pod:2115
8131 #, no-wrap
8132 msgid ""
8133 " struct guestfs_xattr_list *\n"
8134 " guestfs_getxattrs (guestfs_h *g,\n"
8135 "                    const char *path);\n"
8136 "\n"
8137 msgstr ""
8138
8139 # type: textblock
8140 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1432
8141 msgid ""
8142 "This call lists the extended attributes of the file or directory C<path>."
8143 msgstr ""
8144
8145 # type: textblock
8146 #: ../src/guestfs-actions.pod:2122 ../fish/guestfish-actions.pod:1435
8147 msgid ""
8148 "At the system call level, this is a combination of the L<listxattr(2)> and "
8149 "L<getxattr(2)> calls."
8150 msgstr ""
8151
8152 # type: textblock
8153 #: ../src/guestfs-actions.pod:2125
8154 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8155 msgstr ""
8156
8157 # type: textblock
8158 #: ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:3243
8159 #: ../src/guestfs-actions.pod:3894
8160 msgid ""
8161 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8162 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8163 msgstr ""
8164
8165 # type: textblock
8166 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:3247
8167 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3448
8168 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5747
8169 #: ../src/guestfs-actions.pod:7082
8170 msgid "(Added in 1.0.59)"
8171 msgstr ""
8172
8173 # type: =head2
8174 #: ../src/guestfs-actions.pod:2133
8175 msgid "guestfs_glob_expand"
8176 msgstr ""
8177
8178 # type: verbatim
8179 #: ../src/guestfs-actions.pod:2135
8180 #, no-wrap
8181 msgid ""
8182 " char **\n"
8183 " guestfs_glob_expand (guestfs_h *g,\n"
8184 "                      const char *pattern);\n"
8185 "\n"
8186 msgstr ""
8187
8188 # type: textblock
8189 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1444
8190 msgid ""
8191 "This command searches for all the pathnames matching C<pattern> according to "
8192 "the wildcard expansion rules used by the shell."
8193 msgstr ""
8194
8195 # type: textblock
8196 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1448
8197 msgid ""
8198 "If no paths match, then this returns an empty list (note: not an error)."
8199 msgstr ""
8200
8201 # type: textblock
8202 #: ../src/guestfs-actions.pod:2146 ../fish/guestfish-actions.pod:1451
8203 msgid ""
8204 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8205 "GLOB_BRACE>.  See that manual page for more details."
8206 msgstr ""
8207
8208 # type: textblock
8209 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:5912
8210 #: ../src/guestfs-actions.pod:5929
8211 msgid "(Added in 1.0.50)"
8212 msgstr ""
8213
8214 # type: =head2
8215 #: ../src/guestfs-actions.pod:2156
8216 msgid "guestfs_grep"
8217 msgstr ""
8218
8219 # type: verbatim
8220 #: ../src/guestfs-actions.pod:2158
8221 #, no-wrap
8222 msgid ""
8223 " char **\n"
8224 " guestfs_grep (guestfs_h *g,\n"
8225 "               const char *regex,\n"
8226 "               const char *path);\n"
8227 "\n"
8228 msgstr ""
8229
8230 # type: textblock
8231 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1459
8232 msgid "This calls the external C<grep> program and returns the matching lines."
8233 msgstr ""
8234
8235 # type: =head2
8236 #: ../src/guestfs-actions.pod:2175
8237 msgid "guestfs_grepi"
8238 msgstr ""
8239
8240 # type: verbatim
8241 #: ../src/guestfs-actions.pod:2177
8242 #, no-wrap
8243 msgid ""
8244 " char **\n"
8245 " guestfs_grepi (guestfs_h *g,\n"
8246 "                const char *regex,\n"
8247 "                const char *path);\n"
8248 "\n"
8249 msgstr ""
8250
8251 # type: textblock
8252 #: ../src/guestfs-actions.pod:2182 ../fish/guestfish-actions.pod:1469
8253 msgid ""
8254 "This calls the external C<grep -i> program and returns the matching lines."
8255 msgstr ""
8256
8257 # type: =head2
8258 #: ../src/guestfs-actions.pod:2194
8259 msgid "guestfs_grub_install"
8260 msgstr ""
8261
8262 # type: verbatim
8263 #: ../src/guestfs-actions.pod:2196
8264 #, no-wrap
8265 msgid ""
8266 " int\n"
8267 " guestfs_grub_install (guestfs_h *g,\n"
8268 "                       const char *root,\n"
8269 "                       const char *device);\n"
8270 "\n"
8271 msgstr ""
8272
8273 # type: textblock
8274 #: ../src/guestfs-actions.pod:2201 ../fish/guestfish-actions.pod:1479
8275 msgid ""
8276 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8277 "the root directory being C<root>."
8278 msgstr ""
8279
8280 # type: textblock
8281 #: ../src/guestfs-actions.pod:2204 ../fish/guestfish-actions.pod:1482
8282 msgid ""
8283 "Note: If grub-install reports the error \"No suitable drive was found in the "
8284 "generated device map.\" it may be that you need to create a C</boot/grub/"
8285 "device.map> file first that contains the mapping between grub device names "
8286 "and Linux device names.  It is usually sufficient to create a file "
8287 "containing:"
8288 msgstr ""
8289
8290 # type: verbatim
8291 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1489
8292 #, no-wrap
8293 msgid ""
8294 " (hd0) /dev/vda\n"
8295 "\n"
8296 msgstr ""
8297
8298 # type: textblock
8299 #: ../src/guestfs-actions.pod:2213 ../fish/guestfish-actions.pod:1491
8300 msgid "replacing C</dev/vda> with the name of the installation device."
8301 msgstr ""
8302
8303 # type: textblock
8304 #: ../src/guestfs-actions.pod:2217
8305 msgid "(Added in 1.0.17)"
8306 msgstr ""
8307
8308 # type: =head2
8309 #: ../src/guestfs-actions.pod:2219
8310 msgid "guestfs_head"
8311 msgstr ""
8312
8313 # type: verbatim
8314 #: ../src/guestfs-actions.pod:2221
8315 #, no-wrap
8316 msgid ""
8317 " char **\n"
8318 " guestfs_head (guestfs_h *g,\n"
8319 "               const char *path);\n"
8320 "\n"
8321 msgstr ""
8322
8323 # type: textblock
8324 #: ../src/guestfs-actions.pod:2225 ../fish/guestfish-actions.pod:1497
8325 msgid ""
8326 "This command returns up to the first 10 lines of a file as a list of strings."
8327 msgstr ""
8328
8329 # type: =head2
8330 #: ../src/guestfs-actions.pod:2237
8331 msgid "guestfs_head_n"
8332 msgstr ""
8333
8334 # type: verbatim
8335 #: ../src/guestfs-actions.pod:2239
8336 #, no-wrap
8337 msgid ""
8338 " char **\n"
8339 " guestfs_head_n (guestfs_h *g,\n"
8340 "                 int nrlines,\n"
8341 "                 const char *path);\n"
8342 "\n"
8343 msgstr ""
8344
8345 # type: textblock
8346 #: ../src/guestfs-actions.pod:2244 ../fish/guestfish-actions.pod:1507
8347 msgid ""
8348 "If the parameter C<nrlines> is a positive number, this returns the first "
8349 "C<nrlines> lines of the file C<path>."
8350 msgstr ""
8351
8352 # type: textblock
8353 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1510
8354 msgid ""
8355 "If the parameter C<nrlines> is a negative number, this returns lines from "
8356 "the file C<path>, excluding the last C<nrlines> lines."
8357 msgstr ""
8358
8359 # type: textblock
8360 #: ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:6209
8361 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4144
8362 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8363 msgstr ""
8364
8365 # type: =head2
8366 #: ../src/guestfs-actions.pod:2261
8367 msgid "guestfs_hexdump"
8368 msgstr ""
8369
8370 # type: verbatim
8371 #: ../src/guestfs-actions.pod:2263
8372 #, no-wrap
8373 msgid ""
8374 " char *\n"
8375 " guestfs_hexdump (guestfs_h *g,\n"
8376 "                  const char *path);\n"
8377 "\n"
8378 msgstr ""
8379
8380 # type: textblock
8381 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1522
8382 msgid ""
8383 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8384 "readable, canonical hex dump of the file."
8385 msgstr ""
8386
8387 # type: textblock
8388 #: ../src/guestfs-actions.pod:2276 ../src/guestfs-actions.pod:5993
8389 #: ../src/guestfs-actions.pod:6048
8390 msgid "(Added in 1.0.22)"
8391 msgstr ""
8392
8393 # type: =head2
8394 #: ../src/guestfs-actions.pod:2278
8395 msgid "guestfs_initrd_cat"
8396 msgstr ""
8397
8398 # type: verbatim
8399 #: ../src/guestfs-actions.pod:2280
8400 #, no-wrap
8401 msgid ""
8402 " char *\n"
8403 " guestfs_initrd_cat (guestfs_h *g,\n"
8404 "                     const char *initrdpath,\n"
8405 "                     const char *filename,\n"
8406 "                     size_t *size_r);\n"
8407 "\n"
8408 msgstr ""
8409
8410 # type: textblock
8411 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1532
8412 msgid ""
8413 "This command unpacks the file C<filename> from the initrd file called "
8414 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8415 "character."
8416 msgstr ""
8417
8418 # type: textblock
8419 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1536
8420 msgid ""
8421 "For example, in guestfish you could use the following command to examine the "
8422 "boot script (usually called C</init>)  contained in a Linux initrd or "
8423 "initramfs image:"
8424 msgstr ""
8425
8426 # type: verbatim
8427 #: ../src/guestfs-actions.pod:2294 ../fish/guestfish-actions.pod:1540
8428 #, no-wrap
8429 msgid ""
8430 " initrd-cat /boot/initrd-<version>.img init\n"
8431 "\n"
8432 msgstr ""
8433
8434 # type: textblock
8435 #: ../src/guestfs-actions.pod:2296
8436 msgid "See also C<guestfs_initrd_list>."
8437 msgstr ""
8438
8439 # type: textblock
8440 #: ../src/guestfs-actions.pod:2298 ../src/guestfs-actions.pod:4928
8441 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:5135
8442 msgid ""
8443 "This function returns a buffer, or NULL on error.  The size of the returned "
8444 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8445 "after use>."
8446 msgstr ""
8447
8448 # type: =head2
8449 #: ../src/guestfs-actions.pod:2307
8450 msgid "guestfs_initrd_list"
8451 msgstr ""
8452
8453 # type: verbatim
8454 #: ../src/guestfs-actions.pod:2309
8455 #, no-wrap
8456 msgid ""
8457 " char **\n"
8458 " guestfs_initrd_list (guestfs_h *g,\n"
8459 "                      const char *path);\n"
8460 "\n"
8461 msgstr ""
8462
8463 # type: textblock
8464 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1551
8465 msgid "This command lists out files contained in an initrd."
8466 msgstr ""
8467
8468 # type: textblock
8469 #: ../src/guestfs-actions.pod:2315 ../fish/guestfish-actions.pod:1553
8470 msgid ""
8471 "The files are listed without any initial C</> character.  The files are "
8472 "listed in the order they appear (not necessarily alphabetical).  Directory "
8473 "names are listed as separate items."
8474 msgstr ""
8475
8476 # type: textblock
8477 #: ../src/guestfs-actions.pod:2319 ../fish/guestfish-actions.pod:1557
8478 msgid ""
8479 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8480 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8481 "files)."
8482 msgstr ""
8483
8484 # type: =head2
8485 #: ../src/guestfs-actions.pod:2329
8486 msgid "guestfs_inotify_add_watch"
8487 msgstr ""
8488
8489 # type: verbatim
8490 #: ../src/guestfs-actions.pod:2331
8491 #, no-wrap
8492 msgid ""
8493 " int64_t\n"
8494 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8495 "                            const char *path,\n"
8496 "                            int mask);\n"
8497 "\n"
8498 msgstr ""
8499
8500 # type: textblock
8501 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1565
8502 msgid "Watch C<path> for the events listed in C<mask>."
8503 msgstr ""
8504
8505 # type: textblock
8506 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1567
8507 msgid ""
8508 "Note that if C<path> is a directory then events within that directory are "
8509 "watched, but this does I<not> happen recursively (in subdirectories)."
8510 msgstr ""
8511
8512 # type: textblock
8513 #: ../src/guestfs-actions.pod:2342 ../fish/guestfish-actions.pod:1571
8514 msgid ""
8515 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8516 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8517 msgstr ""
8518
8519 # type: =head2
8520 #: ../src/guestfs-actions.pod:2350
8521 msgid "guestfs_inotify_close"
8522 msgstr ""
8523
8524 # type: verbatim
8525 #: ../src/guestfs-actions.pod:2352
8526 #, no-wrap
8527 msgid ""
8528 " int\n"
8529 " guestfs_inotify_close (guestfs_h *g);\n"
8530 "\n"
8531 msgstr ""
8532
8533 # type: textblock
8534 #: ../src/guestfs-actions.pod:2355 ../fish/guestfish-actions.pod:1579
8535 msgid ""
8536 "This closes the inotify handle which was previously opened by inotify_init.  "
8537 "It removes all watches, throws away any pending events, and deallocates all "
8538 "resources."
8539 msgstr ""
8540
8541 # type: =head2
8542 #: ../src/guestfs-actions.pod:2363
8543 msgid "guestfs_inotify_files"
8544 msgstr ""
8545
8546 # type: verbatim
8547 #: ../src/guestfs-actions.pod:2365
8548 #, no-wrap
8549 msgid ""
8550 " char **\n"
8551 " guestfs_inotify_files (guestfs_h *g);\n"
8552 "\n"
8553 msgstr ""
8554
8555 # type: textblock
8556 #: ../src/guestfs-actions.pod:2368
8557 msgid ""
8558 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8559 "returns a list of pathnames of objects that were touched.  The returned "
8560 "pathnames are sorted and deduplicated."
8561 msgstr ""
8562
8563 # type: =head2
8564 #: ../src/guestfs-actions.pod:2378
8565 msgid "guestfs_inotify_init"
8566 msgstr ""
8567
8568 # type: verbatim
8569 #: ../src/guestfs-actions.pod:2380
8570 #, no-wrap
8571 msgid ""
8572 " int\n"
8573 " guestfs_inotify_init (guestfs_h *g,\n"
8574 "                       int maxevents);\n"
8575 "\n"
8576 msgstr ""
8577
8578 # type: textblock
8579 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1595
8580 msgid ""
8581 "This command creates a new inotify handle.  The inotify subsystem can be "
8582 "used to notify events which happen to objects in the guest filesystem."
8583 msgstr ""
8584
8585 # type: textblock
8586 #: ../src/guestfs-actions.pod:2388
8587 msgid ""
8588 "C<maxevents> is the maximum number of events which will be queued up between "
8589 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8590 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8591 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8592 "throws away events, but records the fact that it threw them away by setting "
8593 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8594 "C<guestfs_inotify_read>)."
8595 msgstr ""
8596
8597 # type: textblock
8598 #: ../src/guestfs-actions.pod:2398
8599 msgid ""
8600 "Before any events are generated, you have to add some watches to the "
8601 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8602 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8603 msgstr ""
8604
8605 # type: textblock
8606 #: ../src/guestfs-actions.pod:2404
8607 msgid ""
8608 "Queued up events should be read periodically by calling "
8609 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8610 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8611 "often enough then you risk the internal queue overflowing."
8612 msgstr ""
8613
8614 # type: textblock
8615 #: ../src/guestfs-actions.pod:2411
8616 msgid ""
8617 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8618 "This also removes any watches automatically."
8619 msgstr ""
8620
8621 # type: textblock
8622 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1626
8623 msgid ""
8624 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8625 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8626 "that there is one global inotify handle per libguestfs instance."
8627 msgstr ""
8628
8629 # type: =head2
8630 #: ../src/guestfs-actions.pod:2424
8631 msgid "guestfs_inotify_read"
8632 msgstr ""
8633
8634 # type: verbatim
8635 #: ../src/guestfs-actions.pod:2426
8636 #, no-wrap
8637 msgid ""
8638 " struct guestfs_inotify_event_list *\n"
8639 " guestfs_inotify_read (guestfs_h *g);\n"
8640 "\n"
8641 msgstr ""
8642
8643 # type: textblock
8644 #: ../src/guestfs-actions.pod:2429 ../fish/guestfish-actions.pod:1635
8645 msgid ""
8646 "Return the complete queue of events that have happened since the previous "
8647 "read call."
8648 msgstr ""
8649
8650 # type: textblock
8651 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1638
8652 msgid "If no events have happened, this returns an empty list."
8653 msgstr ""
8654
8655 # type: textblock
8656 #: ../src/guestfs-actions.pod:2434 ../fish/guestfish-actions.pod:1640
8657 msgid ""
8658 "I<Note>: In order to make sure that all events have been read, you must call "
8659 "this function repeatedly until it returns an empty list.  The reason is that "
8660 "the call will read events up to the maximum appliance-to-host message size "
8661 "and leave remaining events in the queue."
8662 msgstr ""
8663
8664 # type: textblock
8665 #: ../src/guestfs-actions.pod:2440
8666 msgid ""
8667 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8668 "there was an error.  I<The caller must call "
8669 "C<guestfs_free_inotify_event_list> after use>."
8670 msgstr ""
8671
8672 # type: =head2
8673 #: ../src/guestfs-actions.pod:2446
8674 msgid "guestfs_inotify_rm_watch"
8675 msgstr ""
8676
8677 # type: verbatim
8678 #: ../src/guestfs-actions.pod:2448
8679 #, no-wrap
8680 msgid ""
8681 " int\n"
8682 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8683 "                           int wd);\n"
8684 "\n"
8685 msgstr ""
8686
8687 # type: textblock
8688 #: ../src/guestfs-actions.pod:2452
8689 msgid ""
8690 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8691 msgstr ""
8692
8693 # type: =head2
8694 #: ../src/guestfs-actions.pod:2459
8695 msgid "guestfs_inspect_get_arch"
8696 msgstr ""
8697
8698 # type: verbatim
8699 #: ../src/guestfs-actions.pod:2461
8700 #, no-wrap
8701 msgid ""
8702 " char *\n"
8703 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8704 "                           const char *root);\n"
8705 "\n"
8706 msgstr ""
8707
8708 # type: textblock
8709 #: ../src/guestfs-actions.pod:2465 ../src/guestfs-actions.pod:2488
8710 #: ../src/guestfs-actions.pod:2569 ../src/guestfs-actions.pod:2595
8711 #: ../src/guestfs-actions.pod:2617 ../src/guestfs-actions.pod:2644
8712 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:2698
8713 #: ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:2758
8714 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:2844
8715 #: ../src/guestfs-actions.pod:2867
8716 msgid ""
8717 "This function should only be called with a root device string as returned by "
8718 "C<guestfs_inspect_os>."
8719 msgstr ""
8720
8721 # type: textblock
8722 #: ../src/guestfs-actions.pod:2468
8723 msgid ""
8724 "This returns the architecture of the inspected operating system.  The "
8725 "possible return values are listed under C<guestfs_file_architecture>."
8726 msgstr ""
8727
8728 # type: textblock
8729 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1664
8730 msgid ""
8731 "If the architecture could not be determined, then the string C<unknown> is "
8732 "returned."
8733 msgstr ""
8734
8735 # type: textblock
8736 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
8737 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2632
8738 #: ../src/guestfs-actions.pod:2714 ../src/guestfs-actions.pod:2745
8739 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2788
8740 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2854
8741 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3001
8742 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741
8743 #: ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795
8744 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879
8745 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909
8746 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960
8747 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8748 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8749 msgstr ""
8750
8751 # type: =head2
8752 #: ../src/guestfs-actions.pod:2482
8753 msgid "guestfs_inspect_get_distro"
8754 msgstr ""
8755
8756 # type: verbatim
8757 #: ../src/guestfs-actions.pod:2484
8758 #, no-wrap
8759 msgid ""
8760 " char *\n"
8761 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8762 "                             const char *root);\n"
8763 "\n"
8764 msgstr ""
8765
8766 # type: textblock
8767 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1676
8768 msgid ""
8769 "This returns the distro (distribution) of the inspected operating system."
8770 msgstr ""
8771
8772 # type: textblock
8773 #: ../src/guestfs-actions.pod:2494 ../fish/guestfish-actions.pod:1679
8774 msgid "Currently defined distros are:"
8775 msgstr ""
8776
8777 # type: =item
8778 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1683
8779 msgid "\"archlinux\""
8780 msgstr ""
8781
8782 # type: textblock
8783 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1685
8784 msgid "Arch Linux."
8785 msgstr ""
8786
8787 # type: =item
8788 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1687
8789 msgid "\"debian\""
8790 msgstr ""
8791
8792 # type: textblock
8793 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1689
8794 msgid "Debian."
8795 msgstr ""
8796
8797 # type: =item
8798 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1691
8799 msgid "\"fedora\""
8800 msgstr ""
8801
8802 # type: textblock
8803 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1693
8804 msgid "Fedora."
8805 msgstr ""
8806
8807 # type: =item
8808 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1695
8809 msgid "\"gentoo\""
8810 msgstr ""
8811
8812 # type: textblock
8813 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1697
8814 msgid "Gentoo."
8815 msgstr ""
8816
8817 # type: =item
8818 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1699
8819 msgid "\"linuxmint\""
8820 msgstr ""
8821
8822 # type: textblock
8823 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1701
8824 msgid "Linux Mint."
8825 msgstr ""
8826
8827 # type: =item
8828 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1703
8829 msgid "\"mandriva\""
8830 msgstr ""
8831
8832 # type: textblock
8833 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1705
8834 msgid "Mandriva."
8835 msgstr ""
8836
8837 # type: =item
8838 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1707
8839 msgid "\"meego\""
8840 msgstr ""
8841
8842 # type: textblock
8843 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1709
8844 msgid "MeeGo."
8845 msgstr ""
8846
8847 # type: =item
8848 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1711
8849 msgid "\"pardus\""
8850 msgstr ""
8851
8852 # type: textblock
8853 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1713
8854 msgid "Pardus."
8855 msgstr ""
8856
8857 # type: =item
8858 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1715
8859 msgid "\"redhat-based\""
8860 msgstr ""
8861
8862 # type: textblock
8863 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1717
8864 msgid "Some Red Hat-derived distro."
8865 msgstr ""
8866
8867 # type: =item
8868 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1719
8869 msgid "\"rhel\""
8870 msgstr ""
8871
8872 # type: textblock
8873 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1721
8874 msgid "Red Hat Enterprise Linux and some derivatives."
8875 msgstr ""
8876
8877 # type: =item
8878 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1723
8879 msgid "\"ubuntu\""
8880 msgstr ""
8881
8882 # type: textblock
8883 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1725
8884 msgid "Ubuntu."
8885 msgstr ""
8886
8887 # type: =item
8888 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2822
8889 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8890 msgid "\"unknown\""
8891 msgstr ""
8892
8893 # type: textblock
8894 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1729
8895 msgid "The distro could not be determined."
8896 msgstr ""
8897
8898 # type: =item
8899 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2814
8900 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8901 msgid "\"windows\""
8902 msgstr ""
8903
8904 # type: textblock
8905 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1733
8906 msgid ""
8907 "Windows does not have distributions.  This string is returned if the OS type "
8908 "is Windows."
8909 msgstr ""
8910
8911 # type: textblock
8912 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2828
8913 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8914 msgid ""
8915 "Future versions of libguestfs may return other strings here.  The caller "
8916 "should be prepared to handle any string."
8917 msgstr ""
8918
8919 # type: =head2
8920 #: ../src/guestfs-actions.pod:2563
8921 msgid "guestfs_inspect_get_filesystems"
8922 msgstr ""
8923
8924 # type: verbatim
8925 #: ../src/guestfs-actions.pod:2565
8926 #, no-wrap
8927 msgid ""
8928 " char **\n"
8929 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8930 "                                  const char *root);\n"
8931 "\n"
8932 msgstr ""
8933
8934 # type: textblock
8935 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1750
8936 msgid ""
8937 "This returns a list of all the filesystems that we think are associated with "
8938 "this operating system.  This includes the root filesystem, other ordinary "
8939 "filesystems, and non-mounted devices like swap partitions."
8940 msgstr ""
8941
8942 # type: textblock
8943 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1755
8944 msgid ""
8945 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8946 "to be shared between operating systems."
8947 msgstr ""
8948
8949 # type: textblock
8950 #: ../src/guestfs-actions.pod:2580
8951 msgid ""
8952 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8953 "C<guestfs_inspect_get_mountpoints>."
8954 msgstr ""
8955
8956 # type: =head2
8957 #: ../src/guestfs-actions.pod:2589
8958 msgid "guestfs_inspect_get_hostname"
8959 msgstr ""
8960
8961 # type: verbatim
8962 #: ../src/guestfs-actions.pod:2591
8963 #, no-wrap
8964 msgid ""
8965 " char *\n"
8966 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8967 "                               const char *root);\n"
8968 "\n"
8969 msgstr ""
8970
8971 # type: textblock
8972 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1768
8973 msgid ""
8974 "This function returns the hostname of the operating system as found by "
8975 "inspection of the guest's configuration files."
8976 msgstr ""
8977
8978 # type: textblock
8979 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1771
8980 msgid ""
8981 "If the hostname could not be determined, then the string C<unknown> is "
8982 "returned."
8983 msgstr ""
8984
8985 # type: textblock
8986 #: ../src/guestfs-actions.pod:2609
8987 msgid "(Added in 1.7.9)"
8988 msgstr ""
8989
8990 # type: =head2
8991 #: ../src/guestfs-actions.pod:2611
8992 msgid "guestfs_inspect_get_major_version"
8993 msgstr ""
8994
8995 # type: verbatim
8996 #: ../src/guestfs-actions.pod:2613
8997 #, no-wrap
8998 msgid ""
8999 " int\n"
9000 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
9001 "                                    const char *root);\n"
9002 "\n"
9003 msgstr ""
9004
9005 # type: textblock
9006 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1783
9007 msgid ""
9008 "This returns the major version number of the inspected operating system."
9009 msgstr ""
9010
9011 # type: textblock
9012 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1786
9013 msgid ""
9014 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9015 "popular public names used by the operating system.  Notably the operating "
9016 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9017 "1).  You can find out the real versions corresponding to releases of Windows "
9018 "by consulting Wikipedia or MSDN."
9019 msgstr ""
9020
9021 # type: textblock
9022 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2650
9023 #: ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
9024 msgid "If the version could not be determined, then C<0> is returned."
9025 msgstr ""
9026
9027 # type: =head2
9028 #: ../src/guestfs-actions.pod:2638
9029 msgid "guestfs_inspect_get_minor_version"
9030 msgstr ""
9031
9032 # type: verbatim
9033 #: ../src/guestfs-actions.pod:2640
9034 #, no-wrap
9035 msgid ""
9036 " int\n"
9037 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9038 "                                    const char *root);\n"
9039 "\n"
9040 msgstr ""
9041
9042 # type: textblock
9043 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1804
9044 msgid ""
9045 "This returns the minor version number of the inspected operating system."
9046 msgstr ""
9047
9048 # type: textblock
9049 #: ../src/guestfs-actions.pod:2652
9050 msgid ""
9051 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9052 "C<guestfs_inspect_get_major_version>."
9053 msgstr ""
9054
9055 # type: =head2
9056 #: ../src/guestfs-actions.pod:2659
9057 msgid "guestfs_inspect_get_mountpoints"
9058 msgstr ""
9059
9060 # type: verbatim
9061 #: ../src/guestfs-actions.pod:2661
9062 #, no-wrap
9063 msgid ""
9064 " char **\n"
9065 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9066 "                                  const char *root);\n"
9067 "\n"
9068 msgstr ""
9069
9070 # type: textblock
9071 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1819
9072 msgid ""
9073 "This returns a hash of where we think the filesystems associated with this "
9074 "operating system should be mounted.  Callers should note that this is at "
9075 "best an educated guess made by reading configuration files such as C</etc/"
9076 "fstab>."
9077 msgstr ""
9078
9079 # type: textblock
9080 #: ../src/guestfs-actions.pod:2673 ../fish/guestfish-actions.pod:1824
9081 msgid ""
9082 "Each element in the returned hashtable has a key which is the path of the "
9083 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9084 "mounted there (eg. C</dev/sda1>)."
9085 msgstr ""
9086
9087 # type: textblock
9088 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1829
9089 msgid ""
9090 "Non-mounted devices such as swap devices are I<not> returned in this list."
9091 msgstr ""
9092
9093 # type: textblock
9094 #: ../src/guestfs-actions.pod:2681
9095 msgid ""
9096 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9097 "C<guestfs_inspect_get_filesystems>."
9098 msgstr ""
9099
9100 # type: textblock
9101 #: ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:3300
9102 #: ../src/guestfs-actions.pod:4494 ../src/guestfs-actions.pod:6350
9103 msgid ""
9104 "This function returns a NULL-terminated array of strings, or NULL if there "
9105 "was an error.  The array of strings will always have length C<2n+1>, where "
9106 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9107 "caller must free the strings and the array after use>."
9108 msgstr ""
9109
9110 # type: =head2
9111 #: ../src/guestfs-actions.pod:2692
9112 msgid "guestfs_inspect_get_package_format"
9113 msgstr ""
9114
9115 # type: verbatim
9116 #: ../src/guestfs-actions.pod:2694
9117 #, no-wrap
9118 msgid ""
9119 " char *\n"
9120 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9121 "                                     const char *root);\n"
9122 "\n"
9123 msgstr ""
9124
9125 # type: textblock
9126 #: ../src/guestfs-actions.pod:2701
9127 msgid ""
9128 "This function and C<guestfs_inspect_get_package_management> return the "
9129 "package format and package management tool used by the inspected operating "
9130 "system.  For example for Fedora these functions would return C<rpm> (package "
9131 "format) and C<yum> (package management)."
9132 msgstr ""
9133
9134 # type: textblock
9135 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1848
9136 msgid ""
9137 "This returns the string C<unknown> if we could not determine the package "
9138 "format I<or> if the operating system does not have a real packaging system "
9139 "(eg. Windows)."
9140 msgstr ""
9141
9142 # type: textblock
9143 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
9144 msgid ""
9145 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9146 "Future versions of libguestfs may return other strings."
9147 msgstr ""
9148
9149 # type: textblock
9150 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2750
9151 msgid "(Added in 1.7.5)"
9152 msgstr ""
9153
9154 # type: =head2
9155 #: ../src/guestfs-actions.pod:2721
9156 msgid "guestfs_inspect_get_package_management"
9157 msgstr ""
9158
9159 # type: verbatim
9160 #: ../src/guestfs-actions.pod:2723
9161 #, no-wrap
9162 msgid ""
9163 " char *\n"
9164 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9165 "                                         const char *root);\n"
9166 "\n"
9167 msgstr ""
9168
9169 # type: textblock
9170 #: ../src/guestfs-actions.pod:2730
9171 msgid ""
9172 "C<guestfs_inspect_get_package_format> and this function return the package "
9173 "format and package management tool used by the inspected operating system.  "
9174 "For example for Fedora these functions would return C<rpm> (package format) "
9175 "and C<yum> (package management)."
9176 msgstr ""
9177
9178 # type: textblock
9179 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1870
9180 msgid ""
9181 "This returns the string C<unknown> if we could not determine the package "
9182 "management tool I<or> if the operating system does not have a real packaging "
9183 "system (eg. Windows)."
9184 msgstr ""
9185
9186 # type: textblock
9187 #: ../src/guestfs-actions.pod:2740 ../fish/guestfish-actions.pod:1874
9188 msgid ""
9189 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9190 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9191 "libguestfs may return other strings."
9192 msgstr ""
9193
9194 # type: =head2
9195 #: ../src/guestfs-actions.pod:2752
9196 msgid "guestfs_inspect_get_product_name"
9197 msgstr ""
9198
9199 # type: verbatim
9200 #: ../src/guestfs-actions.pod:2754
9201 #, no-wrap
9202 msgid ""
9203 " char *\n"
9204 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9205 "                                   const char *root);\n"
9206 "\n"
9207 msgstr ""
9208
9209 # type: textblock
9210 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:1888
9211 msgid ""
9212 "This returns the product name of the inspected operating system.  The "
9213 "product name is generally some freeform string which can be displayed to the "
9214 "user, but should not be parsed by programs."
9215 msgstr ""
9216
9217 # type: textblock
9218 #: ../src/guestfs-actions.pod:2766 ../fish/guestfish-actions.pod:1893
9219 msgid ""
9220 "If the product name could not be determined, then the string C<unknown> is "
9221 "returned."
9222 msgstr ""
9223
9224 # type: =head2
9225 #: ../src/guestfs-actions.pod:2776
9226 msgid "guestfs_inspect_get_roots"
9227 msgstr ""
9228
9229 # type: verbatim
9230 #: ../src/guestfs-actions.pod:2778
9231 #, no-wrap
9232 msgid ""
9233 " char **\n"
9234 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9235 "\n"
9236 msgstr ""
9237
9238 # type: textblock
9239 #: ../src/guestfs-actions.pod:2781
9240 msgid ""
9241 "This function is a convenient way to get the list of root devices, as "
9242 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9243 "the whole inspection process."
9244 msgstr ""
9245
9246 # type: textblock
9247 #: ../src/guestfs-actions.pod:2785
9248 msgid ""
9249 "This returns an empty list if either no root devices were found or the "
9250 "caller has not called C<guestfs_inspect_os>."
9251 msgstr ""
9252
9253 # type: textblock
9254 #: ../src/guestfs-actions.pod:2794
9255 msgid "(Added in 1.7.3)"
9256 msgstr ""
9257
9258 # type: =head2
9259 #: ../src/guestfs-actions.pod:2796
9260 msgid "guestfs_inspect_get_type"
9261 msgstr ""
9262
9263 # type: verbatim
9264 #: ../src/guestfs-actions.pod:2798
9265 #, no-wrap
9266 msgid ""
9267 " char *\n"
9268 " guestfs_inspect_get_type (guestfs_h *g,\n"
9269 "                           const char *root);\n"
9270 "\n"
9271 msgstr ""
9272
9273 # type: textblock
9274 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1918
9275 msgid ""
9276 "This returns the type of the inspected operating system.  Currently defined "
9277 "types are:"
9278 msgstr ""
9279
9280 # type: =item
9281 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1923
9282 msgid "\"linux\""
9283 msgstr ""
9284
9285 # type: textblock
9286 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1925
9287 msgid "Any Linux-based operating system."
9288 msgstr ""
9289
9290 # type: textblock
9291 #: ../src/guestfs-actions.pod:2816 ../fish/guestfish-actions.pod:1929
9292 msgid "Any Microsoft Windows operating system."
9293 msgstr ""
9294
9295 # type: =item
9296 #: ../src/guestfs-actions.pod:2818 ../fish/guestfish-actions.pod:1931
9297 msgid "\"freebsd\""
9298 msgstr ""
9299
9300 # type: textblock
9301 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1933
9302 msgid "FreeBSD."
9303 msgstr ""
9304
9305 # type: textblock
9306 #: ../src/guestfs-actions.pod:2824 ../fish/guestfish-actions.pod:1937
9307 msgid "The operating system type could not be determined."
9308 msgstr ""
9309
9310 # type: =head2
9311 #: ../src/guestfs-actions.pod:2838
9312 msgid "guestfs_inspect_get_windows_systemroot"
9313 msgstr ""
9314
9315 # type: verbatim
9316 #: ../src/guestfs-actions.pod:2840
9317 #, no-wrap
9318 msgid ""
9319 " char *\n"
9320 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9321 "                                         const char *root);\n"
9322 "\n"
9323 msgstr ""
9324
9325 # type: textblock
9326 #: ../src/guestfs-actions.pod:2847 ../fish/guestfish-actions.pod:1953
9327 msgid ""
9328 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9329 "is a directory path such as C</WINDOWS>."
9330 msgstr ""
9331
9332 # type: textblock
9333 #: ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1956
9334 msgid ""
9335 "This call assumes that the guest is Windows and that the systemroot could be "
9336 "determined by inspection.  If this is not the case then an error is returned."
9337 msgstr ""
9338
9339 # type: textblock
9340 #: ../src/guestfs-actions.pod:2859
9341 msgid "(Added in 1.5.25)"
9342 msgstr ""
9343
9344 # type: =head2
9345 #: ../src/guestfs-actions.pod:2861
9346 msgid "guestfs_inspect_list_applications"
9347 msgstr ""
9348
9349 # type: verbatim
9350 #: ../src/guestfs-actions.pod:2863
9351 #, no-wrap
9352 msgid ""
9353 " struct guestfs_application_list *\n"
9354 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9355 "                                    const char *root);\n"
9356 "\n"
9357 msgstr ""
9358
9359 # type: textblock
9360 #: ../src/guestfs-actions.pod:2870 ../fish/guestfish-actions.pod:1969
9361 msgid "Return the list of applications installed in the operating system."
9362 msgstr ""
9363
9364 # type: textblock
9365 #: ../src/guestfs-actions.pod:2872
9366 msgid ""
9367 "I<Note:> This call works differently from other parts of the inspection "
9368 "API.  You have to call C<guestfs_inspect_os>, then "
9369 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9370 "this.  Listing applications is a significantly more difficult operation "
9371 "which requires access to the full filesystem.  Also note that unlike the "
9372 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9373 "the libguestfs handle, this call actually reads parts of the mounted "
9374 "filesystems during the call."
9375 msgstr ""
9376
9377 # type: textblock
9378 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1981
9379 msgid ""
9380 "This returns an empty list if the inspection code was not able to determine "
9381 "the list of applications."
9382 msgstr ""
9383
9384 # type: textblock
9385 #: ../src/guestfs-actions.pod:2885 ../fish/guestfish-actions.pod:1984
9386 msgid "The application structure contains the following fields:"
9387 msgstr ""
9388
9389 # type: =item
9390 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1988
9391 msgid "C<app_name>"
9392 msgstr ""
9393
9394 # type: textblock
9395 #: ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:1990
9396 msgid ""
9397 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9398 "guests, this is the package name."
9399 msgstr ""
9400
9401 # type: =item
9402 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1993
9403 msgid "C<app_display_name>"
9404 msgstr ""
9405
9406 # type: textblock
9407 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:1995
9408 msgid ""
9409 "The display name of the application, sometimes localized to the install "
9410 "language of the guest operating system."
9411 msgstr ""
9412
9413 # type: textblock
9414 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1998
9415 msgid ""
9416 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9417 "to display something can use C<app_name> instead."
9418 msgstr ""
9419
9420 # type: =item
9421 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2001
9422 msgid "C<app_epoch>"
9423 msgstr ""
9424
9425 # type: textblock
9426 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2003
9427 msgid ""
9428 "For package managers which use epochs, this contains the epoch of the "
9429 "package (an integer).  If unavailable, this is returned as C<0>."
9430 msgstr ""
9431
9432 # type: =item
9433 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2006
9434 msgid "C<app_version>"
9435 msgstr ""
9436
9437 # type: textblock
9438 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2008
9439 msgid ""
9440 "The version string of the application or package.  If unavailable this is "
9441 "returned as an empty string C<\"\">."
9442 msgstr ""
9443
9444 # type: =item
9445 #: ../src/guestfs-actions.pod:2912 ../fish/guestfish-actions.pod:2011
9446 msgid "C<app_release>"
9447 msgstr ""
9448
9449 # type: textblock
9450 #: ../src/guestfs-actions.pod:2914 ../fish/guestfish-actions.pod:2013
9451 msgid ""
9452 "The release string of the application or package, for package managers that "
9453 "use this.  If unavailable this is returned as an empty string C<\"\">."
9454 msgstr ""
9455
9456 # type: =item
9457 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2017
9458 msgid "C<app_install_path>"
9459 msgstr ""
9460
9461 # type: textblock
9462 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:2019
9463 msgid ""
9464 "The installation path of the application (on operating systems such as "
9465 "Windows which use installation paths).  This path is in the format used by "
9466 "the guest operating system, it is not a libguestfs path."
9467 msgstr ""
9468
9469 # type: textblock
9470 #: ../src/guestfs-actions.pod:2925 ../fish/guestfish-actions.pod:2024
9471 msgid "If unavailable this is returned as an empty string C<\"\">."
9472 msgstr ""
9473
9474 # type: =item
9475 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2026
9476 msgid "C<app_trans_path>"
9477 msgstr ""
9478
9479 # type: textblock
9480 #: ../src/guestfs-actions.pod:2929 ../fish/guestfish-actions.pod:2028
9481 msgid ""
9482 "The install path translated into a libguestfs path.  If unavailable this is "
9483 "returned as an empty string C<\"\">."
9484 msgstr ""
9485
9486 # type: =item
9487 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2031
9488 msgid "C<app_publisher>"
9489 msgstr ""
9490
9491 # type: textblock
9492 #: ../src/guestfs-actions.pod:2934 ../fish/guestfish-actions.pod:2033
9493 msgid ""
9494 "The name of the publisher of the application, for package managers that use "
9495 "this.  If unavailable this is returned as an empty string C<\"\">."
9496 msgstr ""
9497
9498 # type: =item
9499 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2037
9500 msgid "C<app_url>"
9501 msgstr ""
9502
9503 # type: textblock
9504 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2039
9505 msgid ""
9506 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9507 "returned as an empty string C<\"\">."
9508 msgstr ""
9509
9510 # type: =item
9511 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2042
9512 msgid "C<app_source_package>"
9513 msgstr ""
9514
9515 # type: textblock
9516 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2044
9517 msgid ""
9518 "For packaging systems which support this, the name of the source package.  "
9519 "If unavailable this is returned as an empty string C<\"\">."
9520 msgstr ""
9521
9522 # type: =item
9523 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2047
9524 msgid "C<app_summary>"
9525 msgstr ""
9526
9527 # type: textblock
9528 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2049
9529 msgid ""
9530 "A short (usually one line) description of the application or package.  If "
9531 "unavailable this is returned as an empty string C<\"\">."
9532 msgstr ""
9533
9534 # type: =item
9535 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2052
9536 msgid "C<app_description>"
9537 msgstr ""
9538
9539 # type: textblock
9540 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2054
9541 msgid ""
9542 "A longer description of the application or package.  If unavailable this is "
9543 "returned as an empty string C<\"\">."
9544 msgstr ""
9545
9546 # type: textblock
9547 #: ../src/guestfs-actions.pod:2962
9548 msgid ""
9549 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9550 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9551 "after use>."
9552 msgstr ""
9553
9554 # type: textblock
9555 #: ../src/guestfs-actions.pod:2966
9556 msgid "(Added in 1.7.8)"
9557 msgstr ""
9558
9559 # type: =head2
9560 #: ../src/guestfs-actions.pod:2968
9561 msgid "guestfs_inspect_os"
9562 msgstr ""
9563
9564 # type: verbatim
9565 #: ../src/guestfs-actions.pod:2970
9566 #, no-wrap
9567 msgid ""
9568 " char **\n"
9569 " guestfs_inspect_os (guestfs_h *g);\n"
9570 "\n"
9571 msgstr ""
9572
9573 # type: textblock
9574 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2065
9575 msgid ""
9576 "This function uses other libguestfs functions and certain heuristics to "
9577 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9578 "for operating systems."
9579 msgstr ""
9580
9581 # type: textblock
9582 #: ../src/guestfs-actions.pod:2977 ../fish/guestfish-actions.pod:2069
9583 msgid "The list returned is empty if no operating systems were found."
9584 msgstr ""
9585
9586 # type: textblock
9587 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2071
9588 msgid ""
9589 "If one operating system was found, then this returns a list with a single "
9590 "element, which is the name of the root filesystem of this operating system.  "
9591 "It is also possible for this function to return a list containing more than "
9592 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9593 "element being the root filesystem of one of the operating systems."
9594 msgstr ""
9595
9596 # type: textblock
9597 #: ../src/guestfs-actions.pod:2986
9598 msgid ""
9599 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9600 "functions in order to query further information about each operating system, "
9601 "such as the name and version."
9602 msgstr ""
9603
9604 # type: textblock
9605 #: ../src/guestfs-actions.pod:2991
9606 msgid ""
9607 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9608 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9609 "the contents.  This should be called with no disks currently mounted.  The "
9610 "function may also use Augeas, so any existing Augeas handle will be closed."
9611 msgstr ""
9612
9613 # type: textblock
9614 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2089
9615 msgid ""
9616 "This function cannot decrypt encrypted disks.  The caller must do that first "
9617 "(supplying the necessary keys) if the disk is encrypted."
9618 msgstr ""
9619
9620 # type: textblock
9621 #: ../src/guestfs-actions.pod:3003 ../src/guestfs-actions.pod:3258
9622 #: ../src/guestfs-actions.pod:3320
9623 msgid "See also C<guestfs_list_filesystems>."
9624 msgstr ""
9625
9626 # type: =head2
9627 #: ../src/guestfs-actions.pod:3011
9628 msgid "guestfs_is_blockdev"
9629 msgstr ""
9630
9631 # type: verbatim
9632 #: ../src/guestfs-actions.pod:3013
9633 #, no-wrap
9634 msgid ""
9635 " int\n"
9636 " guestfs_is_blockdev (guestfs_h *g,\n"
9637 "                      const char *path);\n"
9638 "\n"
9639 msgstr ""
9640
9641 # type: textblock
9642 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2101
9643 msgid ""
9644 "This returns C<true> if and only if there is a block device with the given "
9645 "C<path> name."
9646 msgstr ""
9647
9648 # type: textblock
9649 #: ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3049
9650 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3094
9651 #: ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3166
9652 #: ../src/guestfs-actions.pod:3181
9653 msgid "See also C<guestfs_stat>."
9654 msgstr ""
9655
9656 # type: textblock
9657 #: ../src/guestfs-actions.pod:3024 ../src/guestfs-actions.pod:3053
9658 #: ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3170
9659 #: ../src/guestfs-actions.pod:3185
9660 msgid "(Added in 1.5.10)"
9661 msgstr ""
9662
9663 # type: =head2
9664 #: ../src/guestfs-actions.pod:3026
9665 msgid "guestfs_is_busy"
9666 msgstr ""
9667
9668 # type: verbatim
9669 #: ../src/guestfs-actions.pod:3028
9670 #, no-wrap
9671 msgid ""
9672 " int\n"
9673 " guestfs_is_busy (guestfs_h *g);\n"
9674 "\n"
9675 msgstr ""
9676
9677 # type: textblock
9678 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2110
9679 msgid ""
9680 "This returns true iff this handle is busy processing a command (in the "
9681 "C<BUSY> state)."
9682 msgstr ""
9683
9684 # type: =head2
9685 #: ../src/guestfs-actions.pod:3040
9686 msgid "guestfs_is_chardev"
9687 msgstr ""
9688
9689 # type: verbatim
9690 #: ../src/guestfs-actions.pod:3042
9691 #, no-wrap
9692 msgid ""
9693 " int\n"
9694 " guestfs_is_chardev (guestfs_h *g,\n"
9695 "                     const char *path);\n"
9696 "\n"
9697 msgstr ""
9698
9699 # type: textblock
9700 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2119
9701 msgid ""
9702 "This returns C<true> if and only if there is a character device with the "
9703 "given C<path> name."
9704 msgstr ""
9705
9706 # type: =head2
9707 #: ../src/guestfs-actions.pod:3055
9708 msgid "guestfs_is_config"
9709 msgstr ""
9710
9711 # type: verbatim
9712 #: ../src/guestfs-actions.pod:3057
9713 #, no-wrap
9714 msgid ""
9715 " int\n"
9716 " guestfs_is_config (guestfs_h *g);\n"
9717 "\n"
9718 msgstr ""
9719
9720 # type: textblock
9721 #: ../src/guestfs-actions.pod:3060 ../fish/guestfish-actions.pod:2128
9722 msgid ""
9723 "This returns true iff this handle is being configured (in the C<CONFIG> "
9724 "state)."
9725 msgstr ""
9726
9727 # type: =head2
9728 #: ../src/guestfs-actions.pod:3069
9729 msgid "guestfs_is_dir"
9730 msgstr ""
9731
9732 # type: verbatim
9733 #: ../src/guestfs-actions.pod:3071
9734 #, no-wrap
9735 msgid ""
9736 " int\n"
9737 " guestfs_is_dir (guestfs_h *g,\n"
9738 "                 const char *path);\n"
9739 "\n"
9740 msgstr ""
9741
9742 # type: textblock
9743 #: ../src/guestfs-actions.pod:3075 ../fish/guestfish-actions.pod:2137
9744 msgid ""
9745 "This returns C<true> if and only if there is a directory with the given "
9746 "C<path> name.  Note that it returns false for other objects like files."
9747 msgstr ""
9748
9749 # type: =head2
9750 #: ../src/guestfs-actions.pod:3085
9751 msgid "guestfs_is_fifo"
9752 msgstr ""
9753
9754 # type: verbatim
9755 #: ../src/guestfs-actions.pod:3087
9756 #, no-wrap
9757 msgid ""
9758 " int\n"
9759 " guestfs_is_fifo (guestfs_h *g,\n"
9760 "                  const char *path);\n"
9761 "\n"
9762 msgstr ""
9763
9764 # type: textblock
9765 #: ../src/guestfs-actions.pod:3091 ../fish/guestfish-actions.pod:2147
9766 msgid ""
9767 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9768 "given C<path> name."
9769 msgstr ""
9770
9771 # type: =head2
9772 #: ../src/guestfs-actions.pod:3100
9773 msgid "guestfs_is_file"
9774 msgstr ""
9775
9776 # type: verbatim
9777 #: ../src/guestfs-actions.pod:3102
9778 #, no-wrap
9779 msgid ""
9780 " int\n"
9781 " guestfs_is_file (guestfs_h *g,\n"
9782 "                  const char *path);\n"
9783 "\n"
9784 msgstr ""
9785
9786 # type: textblock
9787 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2156
9788 msgid ""
9789 "This returns C<true> if and only if there is a regular file with the given "
9790 "C<path> name.  Note that it returns false for other objects like directories."
9791 msgstr ""
9792
9793 # type: =head2
9794 #: ../src/guestfs-actions.pod:3116
9795 msgid "guestfs_is_launching"
9796 msgstr ""
9797
9798 # type: verbatim
9799 #: ../src/guestfs-actions.pod:3118
9800 #, no-wrap
9801 msgid ""
9802 " int\n"
9803 " guestfs_is_launching (guestfs_h *g);\n"
9804 "\n"
9805 msgstr ""
9806
9807 # type: textblock
9808 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2166
9809 msgid ""
9810 "This returns true iff this handle is launching the subprocess (in the "
9811 "C<LAUNCHING> state)."
9812 msgstr ""
9813
9814 # type: =head2
9815 #: ../src/guestfs-actions.pod:3130
9816 msgid "guestfs_is_lv"
9817 msgstr ""
9818
9819 # type: verbatim
9820 #: ../src/guestfs-actions.pod:3132
9821 #, no-wrap
9822 msgid ""
9823 " int\n"
9824 " guestfs_is_lv (guestfs_h *g,\n"
9825 "                const char *device);\n"
9826 "\n"
9827 msgstr ""
9828
9829 # type: textblock
9830 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2175
9831 msgid ""
9832 "This command tests whether C<device> is a logical volume, and returns true "
9833 "iff this is the case."
9834 msgstr ""
9835
9836 # type: =head2
9837 #: ../src/guestfs-actions.pod:3143
9838 msgid "guestfs_is_ready"
9839 msgstr ""
9840
9841 # type: verbatim
9842 #: ../src/guestfs-actions.pod:3145
9843 #, no-wrap
9844 msgid ""
9845 " int\n"
9846 " guestfs_is_ready (guestfs_h *g);\n"
9847 "\n"
9848 msgstr ""
9849
9850 # type: textblock
9851 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2182
9852 msgid ""
9853 "This returns true iff this handle is ready to accept commands (in the "
9854 "C<READY> state)."
9855 msgstr ""
9856
9857 # type: =head2
9858 #: ../src/guestfs-actions.pod:3157
9859 msgid "guestfs_is_socket"
9860 msgstr ""
9861
9862 # type: verbatim
9863 #: ../src/guestfs-actions.pod:3159
9864 #, no-wrap
9865 msgid ""
9866 " int\n"
9867 " guestfs_is_socket (guestfs_h *g,\n"
9868 "                    const char *path);\n"
9869 "\n"
9870 msgstr ""
9871
9872 # type: textblock
9873 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2191
9874 msgid ""
9875 "This returns C<true> if and only if there is a Unix domain socket with the "
9876 "given C<path> name."
9877 msgstr ""
9878
9879 # type: =head2
9880 #: ../src/guestfs-actions.pod:3172
9881 msgid "guestfs_is_symlink"
9882 msgstr ""
9883
9884 # type: verbatim
9885 #: ../src/guestfs-actions.pod:3174
9886 #, no-wrap
9887 msgid ""
9888 " int\n"
9889 " guestfs_is_symlink (guestfs_h *g,\n"
9890 "                     const char *path);\n"
9891 "\n"
9892 msgstr ""
9893
9894 # type: textblock
9895 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2200
9896 msgid ""
9897 "This returns C<true> if and only if there is a symbolic link with the given "
9898 "C<path> name."
9899 msgstr ""
9900
9901 # type: =head2
9902 #: ../src/guestfs-actions.pod:3187
9903 msgid "guestfs_kill_subprocess"
9904 msgstr ""
9905
9906 # type: verbatim
9907 #: ../src/guestfs-actions.pod:3189
9908 #, no-wrap
9909 msgid ""
9910 " int\n"
9911 " guestfs_kill_subprocess (guestfs_h *g);\n"
9912 "\n"
9913 msgstr ""
9914
9915 # type: textblock
9916 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2209
9917 msgid "This kills the qemu subprocess.  You should never need to call this."
9918 msgstr ""
9919
9920 # type: =head2
9921 #: ../src/guestfs-actions.pod:3198
9922 msgid "guestfs_launch"
9923 msgstr ""
9924
9925 # type: verbatim
9926 #: ../src/guestfs-actions.pod:3200
9927 #, no-wrap
9928 msgid ""
9929 " int\n"
9930 " guestfs_launch (guestfs_h *g);\n"
9931 "\n"
9932 msgstr ""
9933
9934 # type: textblock
9935 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2217
9936 msgid ""
9937 "Internally libguestfs is implemented by running a virtual machine using "
9938 "L<qemu(1)>."
9939 msgstr ""
9940
9941 # type: textblock
9942 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
9943 msgid ""
9944 "You should call this after configuring the handle (eg. adding drives) but "
9945 "before performing any actions."
9946 msgstr ""
9947
9948 # type: =head2
9949 #: ../src/guestfs-actions.pod:3213
9950 msgid "guestfs_lchown"
9951 msgstr ""
9952
9953 # type: verbatim
9954 #: ../src/guestfs-actions.pod:3215
9955 #, no-wrap
9956 msgid ""
9957 " int\n"
9958 " guestfs_lchown (guestfs_h *g,\n"
9959 "                 int owner,\n"
9960 "                 int group,\n"
9961 "                 const char *path);\n"
9962 "\n"
9963 msgstr ""
9964
9965 # type: textblock
9966 #: ../src/guestfs-actions.pod:3221
9967 msgid ""
9968 "Change the file owner to C<owner> and group to C<group>.  This is like "
9969 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9970 "changed, not the target."
9971 msgstr ""
9972
9973 # type: =head2
9974 #: ../src/guestfs-actions.pod:3233
9975 msgid "guestfs_lgetxattrs"
9976 msgstr ""
9977
9978 # type: verbatim
9979 #: ../src/guestfs-actions.pod:3235
9980 #, no-wrap
9981 msgid ""
9982 " struct guestfs_xattr_list *\n"
9983 " guestfs_lgetxattrs (guestfs_h *g,\n"
9984 "                     const char *path);\n"
9985 "\n"
9986 msgstr ""
9987
9988 # type: textblock
9989 #: ../src/guestfs-actions.pod:3239
9990 msgid ""
9991 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9992 "then it returns the extended attributes of the link itself."
9993 msgstr ""
9994
9995 # type: =head2
9996 #: ../src/guestfs-actions.pod:3249
9997 msgid "guestfs_list_devices"
9998 msgstr ""
9999
10000 # type: verbatim
10001 #: ../src/guestfs-actions.pod:3251
10002 #, no-wrap
10003 msgid ""
10004 " char **\n"
10005 " guestfs_list_devices (guestfs_h *g);\n"
10006 "\n"
10007 msgstr ""
10008
10009 # type: textblock
10010 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2247
10011 msgid "List all the block devices."
10012 msgstr ""
10013
10014 # type: textblock
10015 #: ../src/guestfs-actions.pod:3256 ../fish/guestfish-actions.pod:2249
10016 msgid "The full block device names are returned, eg. C</dev/sda>."
10017 msgstr ""
10018
10019 # type: =head2
10020 #: ../src/guestfs-actions.pod:3266
10021 msgid "guestfs_list_filesystems"
10022 msgstr ""
10023
10024 # type: verbatim
10025 #: ../src/guestfs-actions.pod:3268
10026 #, no-wrap
10027 msgid ""
10028 " char **\n"
10029 " guestfs_list_filesystems (guestfs_h *g);\n"
10030 "\n"
10031 msgstr ""
10032
10033 # type: textblock
10034 #: ../src/guestfs-actions.pod:3271 ../fish/guestfish-actions.pod:2257
10035 msgid ""
10036 "This inspection command looks for filesystems on partitions, block devices "
10037 "and logical volumes, returning a list of devices containing filesystems and "
10038 "their type."
10039 msgstr ""
10040
10041 # type: textblock
10042 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2261
10043 msgid ""
10044 "The return value is a hash, where the keys are the devices containing "
10045 "filesystems, and the values are the filesystem types.  For example:"
10046 msgstr ""
10047
10048 # type: verbatim
10049 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2265
10050 #, no-wrap
10051 msgid ""
10052 " \"/dev/sda1\" => \"ntfs\"\n"
10053 " \"/dev/sda2\" => \"ext2\"\n"
10054 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10055 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10056 "\n"
10057 msgstr ""
10058
10059 # type: textblock
10060 #: ../src/guestfs-actions.pod:3284 ../fish/guestfish-actions.pod:2270
10061 msgid ""
10062 "The value can have the special value \"unknown\", meaning the content of the "
10063 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10064 msgstr ""
10065
10066 # type: textblock
10067 #: ../src/guestfs-actions.pod:3288
10068 msgid ""
10069 "This command runs other libguestfs commands, which might include "
10070 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10071 "soon after launch and only when nothing is mounted."
10072 msgstr ""
10073
10074 # type: textblock
10075 #: ../src/guestfs-actions.pod:3292
10076 msgid ""
10077 "Not all of the filesystems returned will be mountable.  In particular, swap "
10078 "partitions are returned in the list.  Also this command does not check that "
10079 "each filesystem found is valid and mountable, and some filesystems might be "
10080 "mountable but require special options.  Filesystems may not all belong to a "
10081 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10082 msgstr ""
10083
10084 # type: textblock
10085 #: ../src/guestfs-actions.pod:3306 ../src/guestfs-actions.pod:4895
10086 msgid "(Added in 1.5.15)"
10087 msgstr ""
10088
10089 # type: =head2
10090 #: ../src/guestfs-actions.pod:3308
10091 msgid "guestfs_list_partitions"
10092 msgstr ""
10093
10094 # type: verbatim
10095 #: ../src/guestfs-actions.pod:3310
10096 #, no-wrap
10097 msgid ""
10098 " char **\n"
10099 " guestfs_list_partitions (guestfs_h *g);\n"
10100 "\n"
10101 msgstr ""
10102
10103 # type: textblock
10104 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:2290
10105 msgid "List all the partitions detected on all block devices."
10106 msgstr ""
10107
10108 # type: textblock
10109 #: ../src/guestfs-actions.pod:3315 ../fish/guestfish-actions.pod:2292
10110 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10111 msgstr ""
10112
10113 # type: textblock
10114 #: ../src/guestfs-actions.pod:3317
10115 msgid ""
10116 "This does not return logical volumes.  For that you will need to call "
10117 "C<guestfs_lvs>."
10118 msgstr ""
10119
10120 # type: =head2
10121 #: ../src/guestfs-actions.pod:3328
10122 msgid "guestfs_ll"
10123 msgstr ""
10124
10125 # type: verbatim
10126 #: ../src/guestfs-actions.pod:3330
10127 #, no-wrap
10128 msgid ""
10129 " char *\n"
10130 " guestfs_ll (guestfs_h *g,\n"
10131 "             const char *directory);\n"
10132 "\n"
10133 msgstr ""
10134
10135 # type: textblock
10136 #: ../src/guestfs-actions.pod:3334 ../fish/guestfish-actions.pod:2303
10137 msgid ""
10138 "List the files in C<directory> (relative to the root directory, there is no "
10139 "cwd) in the format of 'ls -la'."
10140 msgstr ""
10141
10142 # type: textblock
10143 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2306
10144 msgid ""
10145 "This command is mostly useful for interactive sessions.  It is I<not> "
10146 "intended that you try to parse the output string."
10147 msgstr ""
10148
10149 # type: =head2
10150 #: ../src/guestfs-actions.pod:3345
10151 msgid "guestfs_ln"
10152 msgstr ""
10153
10154 # type: verbatim
10155 #: ../src/guestfs-actions.pod:3347
10156 #, no-wrap
10157 msgid ""
10158 " int\n"
10159 " guestfs_ln (guestfs_h *g,\n"
10160 "             const char *target,\n"
10161 "             const char *linkname);\n"
10162 "\n"
10163 msgstr ""
10164
10165 # type: textblock
10166 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2313
10167 msgid "This command creates a hard link using the C<ln> command."
10168 msgstr ""
10169
10170 # type: =head2
10171 #: ../src/guestfs-actions.pod:3358
10172 msgid "guestfs_ln_f"
10173 msgstr ""
10174
10175 # type: verbatim
10176 #: ../src/guestfs-actions.pod:3360
10177 #, no-wrap
10178 msgid ""
10179 " int\n"
10180 " guestfs_ln_f (guestfs_h *g,\n"
10181 "               const char *target,\n"
10182 "               const char *linkname);\n"
10183 "\n"
10184 msgstr ""
10185
10186 # type: textblock
10187 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2319
10188 msgid ""
10189 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10190 "option removes the link (C<linkname>) if it exists already."
10191 msgstr ""
10192
10193 # type: =head2
10194 #: ../src/guestfs-actions.pod:3372
10195 msgid "guestfs_ln_s"
10196 msgstr ""
10197
10198 # type: verbatim
10199 #: ../src/guestfs-actions.pod:3374
10200 #, no-wrap
10201 msgid ""
10202 " int\n"
10203 " guestfs_ln_s (guestfs_h *g,\n"
10204 "               const char *target,\n"
10205 "               const char *linkname);\n"
10206 "\n"
10207 msgstr ""
10208
10209 # type: textblock
10210 #: ../src/guestfs-actions.pod:3379 ../fish/guestfish-actions.pod:2326
10211 msgid "This command creates a symbolic link using the C<ln -s> command."
10212 msgstr ""
10213
10214 # type: =head2
10215 #: ../src/guestfs-actions.pod:3385
10216 msgid "guestfs_ln_sf"
10217 msgstr ""
10218
10219 # type: verbatim
10220 #: ../src/guestfs-actions.pod:3387
10221 #, no-wrap
10222 msgid ""
10223 " int\n"
10224 " guestfs_ln_sf (guestfs_h *g,\n"
10225 "                const char *target,\n"
10226 "                const char *linkname);\n"
10227 "\n"
10228 msgstr ""
10229
10230 # type: textblock
10231 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2332
10232 msgid ""
10233 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10234 "option removes the link (C<linkname>) if it exists already."
10235 msgstr ""
10236
10237 # type: =head2
10238 #: ../src/guestfs-actions.pod:3399
10239 msgid "guestfs_lremovexattr"
10240 msgstr ""
10241
10242 # type: verbatim
10243 #: ../src/guestfs-actions.pod:3401
10244 #, no-wrap
10245 msgid ""
10246 " int\n"
10247 " guestfs_lremovexattr (guestfs_h *g,\n"
10248 "                       const char *xattr,\n"
10249 "                       const char *path);\n"
10250 "\n"
10251 msgstr ""
10252
10253 # type: textblock
10254 #: ../src/guestfs-actions.pod:3406
10255 msgid ""
10256 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10257 "link, then it removes an extended attribute of the link itself."
10258 msgstr ""
10259
10260 # type: =head2
10261 #: ../src/guestfs-actions.pod:3414
10262 msgid "guestfs_ls"
10263 msgstr ""
10264
10265 # type: verbatim
10266 #: ../src/guestfs-actions.pod:3416
10267 #, no-wrap
10268 msgid ""
10269 " char **\n"
10270 " guestfs_ls (guestfs_h *g,\n"
10271 "             const char *directory);\n"
10272 "\n"
10273 msgstr ""
10274
10275 # type: textblock
10276 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2347
10277 msgid ""
10278 "List the files in C<directory> (relative to the root directory, there is no "
10279 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10280 msgstr ""
10281
10282 # type: textblock
10283 #: ../src/guestfs-actions.pod:3424
10284 msgid ""
10285 "This command is mostly useful for interactive sessions.  Programs should "
10286 "probably use C<guestfs_readdir> instead."
10287 msgstr ""
10288
10289 # type: =head2
10290 #: ../src/guestfs-actions.pod:3433
10291 msgid "guestfs_lsetxattr"
10292 msgstr ""
10293
10294 # type: verbatim
10295 #: ../src/guestfs-actions.pod:3435
10296 #, no-wrap
10297 msgid ""
10298 " int\n"
10299 " guestfs_lsetxattr (guestfs_h *g,\n"
10300 "                    const char *xattr,\n"
10301 "                    const char *val,\n"
10302 "                    int vallen,\n"
10303 "                    const char *path);\n"
10304 "\n"
10305 msgstr ""
10306
10307 # type: textblock
10308 #: ../src/guestfs-actions.pod:3442
10309 msgid ""
10310 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10311 "then it sets an extended attribute of the link itself."
10312 msgstr ""
10313
10314 # type: =head2
10315 #: ../src/guestfs-actions.pod:3450
10316 msgid "guestfs_lstat"
10317 msgstr ""
10318
10319 # type: verbatim
10320 #: ../src/guestfs-actions.pod:3452
10321 #, no-wrap
10322 msgid ""
10323 " struct guestfs_stat *\n"
10324 " guestfs_lstat (guestfs_h *g,\n"
10325 "                const char *path);\n"
10326 "\n"
10327 msgstr ""
10328
10329 # type: textblock
10330 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5949
10331 #: ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3979
10332 msgid "Returns file information for the given C<path>."
10333 msgstr ""
10334
10335 # type: textblock
10336 #: ../src/guestfs-actions.pod:3458
10337 msgid ""
10338 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10339 "link, then the link is stat-ed, not the file it refers to."
10340 msgstr ""
10341
10342 # type: textblock
10343 #: ../src/guestfs-actions.pod:3462 ../fish/guestfish-actions.pod:2372
10344 msgid "This is the same as the C<lstat(2)> system call."
10345 msgstr ""
10346
10347 # type: textblock
10348 #: ../src/guestfs-actions.pod:3464 ../src/guestfs-actions.pod:5953
10349 msgid ""
10350 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10351 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10352 msgstr ""
10353
10354 # type: textblock
10355 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:5957
10356 #: ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:6356
10357 msgid "(Added in 0.9.2)"
10358 msgstr ""
10359
10360 # type: =head2
10361 #: ../src/guestfs-actions.pod:3470
10362 msgid "guestfs_lstatlist"
10363 msgstr ""
10364
10365 # type: verbatim
10366 #: ../src/guestfs-actions.pod:3472
10367 #, no-wrap
10368 msgid ""
10369 " struct guestfs_stat_list *\n"
10370 " guestfs_lstatlist (guestfs_h *g,\n"
10371 "                    const char *path,\n"
10372 "                    char *const *names);\n"
10373 "\n"
10374 msgstr ""
10375
10376 # type: textblock
10377 #: ../src/guestfs-actions.pod:3477
10378 msgid ""
10379 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10380 "files, where all files are in the directory C<path>.  C<names> is the list "
10381 "of files from this directory."
10382 msgstr ""
10383
10384 # type: textblock
10385 #: ../src/guestfs-actions.pod:3481 ../fish/guestfish-actions.pod:2382
10386 msgid ""
10387 "On return you get a list of stat structs, with a one-to-one correspondence "
10388 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10389 "then the C<ino> field of that structure is set to C<-1>."
10390 msgstr ""
10391
10392 # type: textblock
10393 #: ../src/guestfs-actions.pod:3486
10394 msgid ""
10395 "This call is intended for programs that want to efficiently list a directory "
10396 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10397 "for a similarly efficient call for getting extended attributes.  Very long "
10398 "directory listings might cause the protocol message size to be exceeded, "
10399 "causing this call to fail.  The caller must split up such requests into "
10400 "smaller groups of names."
10401 msgstr ""
10402
10403 # type: textblock
10404 #: ../src/guestfs-actions.pod:3494
10405 msgid ""
10406 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10407 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10408 msgstr ""
10409
10410 # type: =head2
10411 #: ../src/guestfs-actions.pod:3500
10412 msgid "guestfs_luks_add_key"
10413 msgstr ""
10414
10415 # type: verbatim
10416 #: ../src/guestfs-actions.pod:3502
10417 #, no-wrap
10418 msgid ""
10419 " int\n"
10420 " guestfs_luks_add_key (guestfs_h *g,\n"
10421 "                       const char *device,\n"
10422 "                       const char *key,\n"
10423 "                       const char *newkey,\n"
10424 "                       int keyslot);\n"
10425 "\n"
10426 msgstr ""
10427
10428 # type: textblock
10429 #: ../src/guestfs-actions.pod:3509 ../fish/guestfish-actions.pod:2399
10430 msgid ""
10431 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10432 "existing key, and is used to access the device.  C<newkey> is the new key to "
10433 "add.  C<keyslot> is the key slot that will be replaced."
10434 msgstr ""
10435
10436 # type: textblock
10437 #: ../src/guestfs-actions.pod:3514
10438 msgid ""
10439 "Note that if C<keyslot> already contains a key, then this command will "
10440 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10441 msgstr ""
10442
10443 # type: textblock
10444 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:3560
10445 #: ../src/guestfs-actions.pod:3583 ../src/guestfs-actions.pod:3603
10446 #: ../src/guestfs-actions.pod:3635 ../src/guestfs-actions.pod:3654
10447 msgid ""
10448 "This function takes a key or passphrase parameter which could contain "
10449 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10450 "information."
10451 msgstr ""
10452
10453 # type: textblock
10454 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3564
10455 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3607
10456 msgid "(Added in 1.5.2)"
10457 msgstr ""
10458
10459 # type: =head2
10460 #: ../src/guestfs-actions.pod:3526
10461 msgid "guestfs_luks_close"
10462 msgstr ""
10463
10464 # type: verbatim
10465 #: ../src/guestfs-actions.pod:3528
10466 #, no-wrap
10467 msgid ""
10468 " int\n"
10469 " guestfs_luks_close (guestfs_h *g,\n"
10470 "                     const char *device);\n"
10471 "\n"
10472 msgstr ""
10473
10474 # type: textblock
10475 #: ../src/guestfs-actions.pod:3532
10476 msgid ""
10477 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10478 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10479 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10480 "underlying block device."
10481 msgstr ""
10482
10483 # type: textblock
10484 #: ../src/guestfs-actions.pod:3540 ../src/guestfs-actions.pod:3639
10485 #: ../src/guestfs-actions.pod:3658 ../src/guestfs-actions.pod:3708
10486 #: ../src/guestfs-actions.pod:3756
10487 msgid "(Added in 1.5.1)"
10488 msgstr ""
10489
10490 # type: =head2
10491 #: ../src/guestfs-actions.pod:3542
10492 msgid "guestfs_luks_format"
10493 msgstr ""
10494
10495 # type: verbatim
10496 #: ../src/guestfs-actions.pod:3544
10497 #, no-wrap
10498 msgid ""
10499 " int\n"
10500 " guestfs_luks_format (guestfs_h *g,\n"
10501 "                      const char *device,\n"
10502 "                      const char *key,\n"
10503 "                      int keyslot);\n"
10504 "\n"
10505 msgstr ""
10506
10507 # type: textblock
10508 #: ../src/guestfs-actions.pod:3550 ../fish/guestfish-actions.pod:2425
10509 msgid ""
10510 "This command erases existing data on C<device> and formats the device as a "
10511 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10512 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10513 msgstr ""
10514
10515 # type: textblock
10516 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3580
10517 #: ../src/guestfs-actions.pod:3720 ../src/guestfs-actions.pod:4646
10518 #: ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5784
10519 #: ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5833
10520 #: ../src/guestfs-actions.pod:6993 ../fish/guestfish-actions.pod:2433
10521 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530
10522 #: ../fish/guestfish-actions.pod:3091 ../fish/guestfish-actions.pod:3598
10523 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3894
10524 #: ../fish/guestfish-actions.pod:3909 ../fish/guestfish-actions.pod:4624
10525 msgid ""
10526 "B<This command is dangerous.  Without careful use you can easily destroy all "
10527 "your data>."
10528 msgstr ""
10529
10530 # type: =head2
10531 #: ../src/guestfs-actions.pod:3566
10532 msgid "guestfs_luks_format_cipher"
10533 msgstr ""
10534
10535 # type: verbatim
10536 #: ../src/guestfs-actions.pod:3568
10537 #, no-wrap
10538 msgid ""
10539 " int\n"
10540 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10541 "                             const char *device,\n"
10542 "                             const char *key,\n"
10543 "                             int keyslot,\n"
10544 "                             const char *cipher);\n"
10545 "\n"
10546 msgstr ""
10547
10548 # type: textblock
10549 #: ../src/guestfs-actions.pod:3575
10550 msgid ""
10551 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10552 "set the C<cipher> used."
10553 msgstr ""
10554
10555 # type: =head2
10556 #: ../src/guestfs-actions.pod:3589
10557 msgid "guestfs_luks_kill_slot"
10558 msgstr ""
10559
10560 # type: verbatim
10561 #: ../src/guestfs-actions.pod:3591
10562 #, no-wrap
10563 msgid ""
10564 " int\n"
10565 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10566 "                         const char *device,\n"
10567 "                         const char *key,\n"
10568 "                         int keyslot);\n"
10569 "\n"
10570 msgstr ""
10571
10572 # type: textblock
10573 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2453
10574 msgid ""
10575 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10576 "device C<device>.  C<key> must be one of the I<other> keys."
10577 msgstr ""
10578
10579 # type: =head2
10580 #: ../src/guestfs-actions.pod:3609
10581 msgid "guestfs_luks_open"
10582 msgstr ""
10583
10584 # type: verbatim
10585 #: ../src/guestfs-actions.pod:3611
10586 #, no-wrap
10587 msgid ""
10588 " int\n"
10589 " guestfs_luks_open (guestfs_h *g,\n"
10590 "                    const char *device,\n"
10591 "                    const char *key,\n"
10592 "                    const char *mapname);\n"
10593 "\n"
10594 msgstr ""
10595
10596 # type: textblock
10597 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2464
10598 msgid ""
10599 "This command opens a block device which has been encrypted according to the "
10600 "Linux Unified Key Setup (LUKS) standard."
10601 msgstr ""
10602
10603 # type: textblock
10604 #: ../src/guestfs-actions.pod:3620 ../fish/guestfish-actions.pod:2467
10605 msgid "C<device> is the encrypted block device or partition."
10606 msgstr ""
10607
10608 # type: textblock
10609 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2469
10610 msgid ""
10611 "The caller must supply one of the keys associated with the LUKS block "
10612 "device, in the C<key> parameter."
10613 msgstr ""
10614
10615 # type: textblock
10616 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2472
10617 msgid ""
10618 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10619 "writes to this block device are decrypted from and encrypted to the "
10620 "underlying C<device> respectively."
10621 msgstr ""
10622
10623 # type: textblock
10624 #: ../src/guestfs-actions.pod:3629
10625 msgid ""
10626 "If this block device contains LVM volume groups, then calling "
10627 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10628 "visible."
10629 msgstr ""
10630
10631 # type: =head2
10632 #: ../src/guestfs-actions.pod:3641
10633 msgid "guestfs_luks_open_ro"
10634 msgstr ""
10635
10636 # type: verbatim
10637 #: ../src/guestfs-actions.pod:3643
10638 #, no-wrap
10639 msgid ""
10640 " int\n"
10641 " guestfs_luks_open_ro (guestfs_h *g,\n"
10642 "                       const char *device,\n"
10643 "                       const char *key,\n"
10644 "                       const char *mapname);\n"
10645 "\n"
10646 msgstr ""
10647
10648 # type: textblock
10649 #: ../src/guestfs-actions.pod:3649
10650 msgid ""
10651 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10652 "created."
10653 msgstr ""
10654
10655 # type: =head2
10656 #: ../src/guestfs-actions.pod:3660
10657 msgid "guestfs_lvcreate"
10658 msgstr ""
10659
10660 # type: verbatim
10661 #: ../src/guestfs-actions.pod:3662
10662 #, no-wrap
10663 msgid ""
10664 " int\n"
10665 " guestfs_lvcreate (guestfs_h *g,\n"
10666 "                   const char *logvol,\n"
10667 "                   const char *volgroup,\n"
10668 "                   int mbytes);\n"
10669 "\n"
10670 msgstr ""
10671
10672 # type: textblock
10673 #: ../src/guestfs-actions.pod:3668 ../fish/guestfish-actions.pod:2497
10674 msgid ""
10675 "This creates an LVM logical volume called C<logvol> on the volume group "
10676 "C<volgroup>, with C<size> megabytes."
10677 msgstr ""
10678
10679 # type: =head2
10680 #: ../src/guestfs-actions.pod:3675
10681 msgid "guestfs_lvm_canonical_lv_name"
10682 msgstr ""
10683
10684 # type: verbatim
10685 #: ../src/guestfs-actions.pod:3677
10686 #, no-wrap
10687 msgid ""
10688 " char *\n"
10689 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10690 "                                const char *lvname);\n"
10691 "\n"
10692 msgstr ""
10693
10694 # type: textblock
10695 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2504
10696 msgid ""
10697 "This converts alternative naming schemes for LVs that you might find to the "
10698 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10699 "LV>."
10700 msgstr ""
10701
10702 # type: textblock
10703 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2508
10704 msgid ""
10705 "This command returns an error if the C<lvname> parameter does not refer to a "
10706 "logical volume."
10707 msgstr ""
10708
10709 # type: textblock
10710 #: ../src/guestfs-actions.pod:3688
10711 msgid "See also C<guestfs_is_lv>."
10712 msgstr ""
10713
10714 # type: textblock
10715 #: ../src/guestfs-actions.pod:3693
10716 msgid "(Added in 1.5.24)"
10717 msgstr ""
10718
10719 # type: =head2
10720 #: ../src/guestfs-actions.pod:3695
10721 msgid "guestfs_lvm_clear_filter"
10722 msgstr ""
10723
10724 # type: verbatim
10725 #: ../src/guestfs-actions.pod:3697
10726 #, no-wrap
10727 msgid ""
10728 " int\n"
10729 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10730 "\n"
10731 msgstr ""
10732
10733 # type: textblock
10734 #: ../src/guestfs-actions.pod:3700
10735 msgid ""
10736 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10737 "see every block device."
10738 msgstr ""
10739
10740 # type: textblock
10741 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3745
10742 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10743 msgid ""
10744 "This command also clears the LVM cache and performs a volume group scan."
10745 msgstr ""
10746
10747 # type: =head2
10748 #: ../src/guestfs-actions.pod:3710
10749 msgid "guestfs_lvm_remove_all"
10750 msgstr ""
10751
10752 # type: verbatim
10753 #: ../src/guestfs-actions.pod:3712
10754 #, no-wrap
10755 msgid ""
10756 " int\n"
10757 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10758 "\n"
10759 msgstr ""
10760
10761 # type: textblock
10762 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2527
10763 msgid ""
10764 "This command removes all LVM logical volumes, volume groups and physical "
10765 "volumes."
10766 msgstr ""
10767
10768 # type: =head2
10769 #: ../src/guestfs-actions.pod:3725
10770 msgid "guestfs_lvm_set_filter"
10771 msgstr ""
10772
10773 # type: verbatim
10774 #: ../src/guestfs-actions.pod:3727
10775 #, no-wrap
10776 msgid ""
10777 " int\n"
10778 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10779 "                         char *const *devices);\n"
10780 "\n"
10781 msgstr ""
10782
10783 # type: textblock
10784 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2537
10785 msgid ""
10786 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10787 "block devices in the list C<devices>, and will ignore all other attached "
10788 "block devices."
10789 msgstr ""
10790
10791 # type: textblock
10792 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2541
10793 msgid ""
10794 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10795 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10796 "there are two types of duplication possible: either cloned PVs/VGs which "
10797 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10798 "same name.  In normal operation you cannot create this situation, but you "
10799 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10800 "inside the LVM metadata."
10801 msgstr ""
10802
10803 # type: textblock
10804 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2554
10805 msgid "You can filter whole block devices or individual partitions."
10806 msgstr ""
10807
10808 # type: textblock
10809 #: ../src/guestfs-actions.pod:3750 ../fish/guestfish-actions.pod:2556
10810 msgid ""
10811 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10812 "filesystem), even if you are not filtering out that VG."
10813 msgstr ""
10814
10815 # type: =head2
10816 #: ../src/guestfs-actions.pod:3758
10817 msgid "guestfs_lvremove"
10818 msgstr ""
10819
10820 # type: verbatim
10821 #: ../src/guestfs-actions.pod:3760
10822 #, no-wrap
10823 msgid ""
10824 " int\n"
10825 " guestfs_lvremove (guestfs_h *g,\n"
10826 "                   const char *device);\n"
10827 "\n"
10828 msgstr ""
10829
10830 # type: textblock
10831 #: ../src/guestfs-actions.pod:3764 ../fish/guestfish-actions.pod:2564
10832 msgid ""
10833 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10834 "LV, such as C</dev/VG/LV>."
10835 msgstr ""
10836
10837 # type: textblock
10838 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2567
10839 msgid ""
10840 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10841 "dev/VG>."
10842 msgstr ""
10843
10844 # type: textblock
10845 #: ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:4992
10846 #: ../src/guestfs-actions.pod:6732
10847 msgid "(Added in 1.0.13)"
10848 msgstr ""
10849
10850 # type: =head2
10851 #: ../src/guestfs-actions.pod:3774
10852 msgid "guestfs_lvrename"
10853 msgstr ""
10854
10855 # type: verbatim
10856 #: ../src/guestfs-actions.pod:3776
10857 #, no-wrap
10858 msgid ""
10859 " int\n"
10860 " guestfs_lvrename (guestfs_h *g,\n"
10861 "                   const char *logvol,\n"
10862 "                   const char *newlogvol);\n"
10863 "\n"
10864 msgstr ""
10865
10866 # type: textblock
10867 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2574
10868 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10869 msgstr ""
10870
10871 # type: textblock
10872 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:6745
10873 msgid "(Added in 1.0.83)"
10874 msgstr ""
10875
10876 # type: =head2
10877 #: ../src/guestfs-actions.pod:3787
10878 msgid "guestfs_lvresize"
10879 msgstr ""
10880
10881 # type: verbatim
10882 #: ../src/guestfs-actions.pod:3789
10883 #, no-wrap
10884 msgid ""
10885 " int\n"
10886 " guestfs_lvresize (guestfs_h *g,\n"
10887 "                   const char *device,\n"
10888 "                   int mbytes);\n"
10889 "\n"
10890 msgstr ""
10891
10892 # type: textblock
10893 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2580
10894 msgid ""
10895 "This resizes (expands or shrinks) an existing LVM logical volume to "
10896 "C<mbytes>.  When reducing, data in the reduced part is lost."
10897 msgstr ""
10898
10899 # type: =head2
10900 #: ../src/guestfs-actions.pod:3802
10901 msgid "guestfs_lvresize_free"
10902 msgstr ""
10903
10904 # type: verbatim
10905 #: ../src/guestfs-actions.pod:3804
10906 #, no-wrap
10907 msgid ""
10908 " int\n"
10909 " guestfs_lvresize_free (guestfs_h *g,\n"
10910 "                        const char *lv,\n"
10911 "                        int percent);\n"
10912 "\n"
10913 msgstr ""
10914
10915 # type: textblock
10916 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2588
10917 msgid ""
10918 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10919 "remaining free space in the volume group.  Commonly you would call this with "
10920 "pc = 100 which expands the logical volume as much as possible, using all "
10921 "remaining free space in the volume group."
10922 msgstr ""
10923
10924 # type: textblock
10925 #: ../src/guestfs-actions.pod:3817
10926 msgid "(Added in 1.3.3)"
10927 msgstr ""
10928
10929 # type: =head2
10930 #: ../src/guestfs-actions.pod:3819
10931 msgid "guestfs_lvs"
10932 msgstr ""
10933
10934 # type: verbatim
10935 #: ../src/guestfs-actions.pod:3821
10936 #, no-wrap
10937 msgid ""
10938 " char **\n"
10939 " guestfs_lvs (guestfs_h *g);\n"
10940 "\n"
10941 msgstr ""
10942
10943 # type: textblock
10944 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2598
10945 msgid ""
10946 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10947 "(8)> command."
10948 msgstr ""
10949
10950 # type: textblock
10951 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2601
10952 msgid ""
10953 "This returns a list of the logical volume device names (eg. C</dev/"
10954 "VolGroup00/LogVol00>)."
10955 msgstr ""
10956
10957 # type: textblock
10958 #: ../src/guestfs-actions.pod:3830
10959 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10960 msgstr ""
10961
10962 # type: =head2
10963 #: ../src/guestfs-actions.pod:3838
10964 msgid "guestfs_lvs_full"
10965 msgstr ""
10966
10967 # type: verbatim
10968 #: ../src/guestfs-actions.pod:3840
10969 #, no-wrap
10970 msgid ""
10971 " struct guestfs_lvm_lv_list *\n"
10972 " guestfs_lvs_full (guestfs_h *g);\n"
10973 "\n"
10974 msgstr ""
10975
10976 # type: textblock
10977 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2610
10978 msgid ""
10979 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10980 "(8)> command.  The \"full\" version includes all fields."
10981 msgstr ""
10982
10983 # type: textblock
10984 #: ../src/guestfs-actions.pod:3846
10985 msgid ""
10986 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10987 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10988 msgstr ""
10989
10990 # type: =head2
10991 #: ../src/guestfs-actions.pod:3852
10992 msgid "guestfs_lvuuid"
10993 msgstr ""
10994
10995 # type: verbatim
10996 #: ../src/guestfs-actions.pod:3854
10997 #, no-wrap
10998 msgid ""
10999 " char *\n"
11000 " guestfs_lvuuid (guestfs_h *g,\n"
11001 "                 const char *device);\n"
11002 "\n"
11003 msgstr ""
11004
11005 # type: textblock
11006 #: ../src/guestfs-actions.pod:3858 ../fish/guestfish-actions.pod:2617
11007 msgid "This command returns the UUID of the LVM LV C<device>."
11008 msgstr ""
11009
11010 # type: =head2
11011 #: ../src/guestfs-actions.pod:3865
11012 msgid "guestfs_lxattrlist"
11013 msgstr ""
11014
11015 # type: verbatim
11016 #: ../src/guestfs-actions.pod:3867
11017 #, no-wrap
11018 msgid ""
11019 " struct guestfs_xattr_list *\n"
11020 " guestfs_lxattrlist (guestfs_h *g,\n"
11021 "                     const char *path,\n"
11022 "                     char *const *names);\n"
11023 "\n"
11024 msgstr ""
11025
11026 # type: textblock
11027 #: ../src/guestfs-actions.pod:3872 ../fish/guestfish-actions.pod:2623
11028 msgid ""
11029 "This call allows you to get the extended attributes of multiple files, where "
11030 "all files are in the directory C<path>.  C<names> is the list of files from "
11031 "this directory."
11032 msgstr ""
11033
11034 # type: textblock
11035 #: ../src/guestfs-actions.pod:3876 ../fish/guestfish-actions.pod:2627
11036 msgid ""
11037 "On return you get a flat list of xattr structs which must be interpreted "
11038 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11039 "C<attrval> in this struct is zero-length to indicate there was an error "
11040 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11041 "number (the number of following attributes for this file, which could be C<"
11042 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11043 "for the first named file.  This repeats for the second and subsequent files."
11044 msgstr ""
11045
11046 # type: textblock
11047 #: ../src/guestfs-actions.pod:3886
11048 msgid ""
11049 "This call is intended for programs that want to efficiently list a directory "
11050 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11051 "a similarly efficient call for getting standard stats.  Very long directory "
11052 "listings might cause the protocol message size to be exceeded, causing this "
11053 "call to fail.  The caller must split up such requests into smaller groups of "
11054 "names."
11055 msgstr ""
11056
11057 # type: =head2
11058 #: ../src/guestfs-actions.pod:3900
11059 msgid "guestfs_mkdir"
11060 msgstr ""
11061
11062 # type: verbatim
11063 #: ../src/guestfs-actions.pod:3902
11064 #, no-wrap
11065 msgid ""
11066 " int\n"
11067 " guestfs_mkdir (guestfs_h *g,\n"
11068 "                const char *path);\n"
11069 "\n"
11070 msgstr ""
11071
11072 # type: textblock
11073 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:2649
11074 msgid "Create a directory named C<path>."
11075 msgstr ""
11076
11077 # type: =head2
11078 #: ../src/guestfs-actions.pod:3912
11079 msgid "guestfs_mkdir_mode"
11080 msgstr ""
11081
11082 # type: verbatim
11083 #: ../src/guestfs-actions.pod:3914
11084 #, no-wrap
11085 msgid ""
11086 " int\n"
11087 " guestfs_mkdir_mode (guestfs_h *g,\n"
11088 "                     const char *path,\n"
11089 "                     int mode);\n"
11090 "\n"
11091 msgstr ""
11092
11093 # type: textblock
11094 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2655
11095 msgid ""
11096 "This command creates a directory, setting the initial permissions of the "
11097 "directory to C<mode>."
11098 msgstr ""
11099
11100 # type: textblock
11101 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2658
11102 msgid ""
11103 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11104 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11105 "other ways."
11106 msgstr ""
11107
11108 # type: textblock
11109 #: ../src/guestfs-actions.pod:3926
11110 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11111 msgstr ""
11112
11113 # type: =head2
11114 #: ../src/guestfs-actions.pod:3932
11115 msgid "guestfs_mkdir_p"
11116 msgstr ""
11117
11118 # type: verbatim
11119 #: ../src/guestfs-actions.pod:3934
11120 #, no-wrap
11121 msgid ""
11122 " int\n"
11123 " guestfs_mkdir_p (guestfs_h *g,\n"
11124 "                  const char *path);\n"
11125 "\n"
11126 msgstr ""
11127
11128 # type: textblock
11129 #: ../src/guestfs-actions.pod:3938 ../fish/guestfish-actions.pod:2668
11130 msgid ""
11131 "Create a directory named C<path>, creating any parent directories as "
11132 "necessary.  This is like the C<mkdir -p> shell command."
11133 msgstr ""
11134
11135 # type: =head2
11136 #: ../src/guestfs-actions.pod:3945
11137 msgid "guestfs_mkdtemp"
11138 msgstr ""
11139
11140 # type: verbatim
11141 #: ../src/guestfs-actions.pod:3947
11142 #, no-wrap
11143 msgid ""
11144 " char *\n"
11145 " guestfs_mkdtemp (guestfs_h *g,\n"
11146 "                  const char *template);\n"
11147 "\n"
11148 msgstr ""
11149
11150 # type: textblock
11151 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2675
11152 msgid ""
11153 "This command creates a temporary directory.  The C<template> parameter "
11154 "should be a full pathname for the temporary directory name with the final "
11155 "six characters being \"XXXXXX\"."
11156 msgstr ""
11157
11158 # type: textblock
11159 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2680
11160 msgid ""
11161 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11162 "being suitable for Windows filesystems."
11163 msgstr ""
11164
11165 # type: textblock
11166 #: ../src/guestfs-actions.pod:3959 ../fish/guestfish-actions.pod:2683
11167 msgid "The name of the temporary directory that was created is returned."
11168 msgstr ""
11169
11170 # type: textblock
11171 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2686
11172 msgid "The temporary directory is created with mode 0700 and is owned by root."
11173 msgstr ""
11174
11175 # type: textblock
11176 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2689
11177 msgid ""
11178 "The caller is responsible for deleting the temporary directory and its "
11179 "contents after use."
11180 msgstr ""
11181
11182 # type: textblock
11183 #: ../src/guestfs-actions.pod:3968 ../fish/guestfish-actions.pod:2692
11184 msgid "See also: L<mkdtemp(3)>"
11185 msgstr ""
11186
11187 # type: =head2
11188 #: ../src/guestfs-actions.pod:3975
11189 msgid "guestfs_mke2fs_J"
11190 msgstr ""
11191
11192 # type: verbatim
11193 #: ../src/guestfs-actions.pod:3977
11194 #, no-wrap
11195 msgid ""
11196 " int\n"
11197 " guestfs_mke2fs_J (guestfs_h *g,\n"
11198 "                   const char *fstype,\n"
11199 "                   int blocksize,\n"
11200 "                   const char *device,\n"
11201 "                   const char *journal);\n"
11202 "\n"
11203 msgstr ""
11204
11205 # type: textblock
11206 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:2698
11207 msgid ""
11208 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11209 "C<journal>.  It is equivalent to the command:"
11210 msgstr ""
11211
11212 # type: verbatim
11213 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:2702
11214 #, no-wrap
11215 msgid ""
11216 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11217 "\n"
11218 msgstr ""
11219
11220 # type: textblock
11221 #: ../src/guestfs-actions.pod:3990
11222 msgid "See also C<guestfs_mke2journal>."
11223 msgstr ""
11224
11225 # type: textblock
11226 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4012
11227 #: ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4046
11228 #: ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4074
11229 #: ../src/guestfs-actions.pod:4133 ../src/guestfs-actions.pod:4382
11230 msgid "(Added in 1.0.68)"
11231 msgstr ""
11232
11233 # type: =head2
11234 #: ../src/guestfs-actions.pod:3996
11235 msgid "guestfs_mke2fs_JL"
11236 msgstr ""
11237
11238 # type: verbatim
11239 #: ../src/guestfs-actions.pod:3998
11240 #, no-wrap
11241 msgid ""
11242 " int\n"
11243 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11244 "                    const char *fstype,\n"
11245 "                    int blocksize,\n"
11246 "                    const char *device,\n"
11247 "                    const char *label);\n"
11248 "\n"
11249 msgstr ""
11250
11251 # type: textblock
11252 #: ../src/guestfs-actions.pod:4005 ../fish/guestfish-actions.pod:2710
11253 msgid ""
11254 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11255 "the journal labeled C<label>."
11256 msgstr ""
11257
11258 # type: textblock
11259 #: ../src/guestfs-actions.pod:4008
11260 msgid "See also C<guestfs_mke2journal_L>."
11261 msgstr ""
11262
11263 # type: =head2
11264 #: ../src/guestfs-actions.pod:4014
11265 msgid "guestfs_mke2fs_JU"
11266 msgstr ""
11267
11268 # type: verbatim
11269 #: ../src/guestfs-actions.pod:4016
11270 #, no-wrap
11271 msgid ""
11272 " int\n"
11273 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11274 "                    const char *fstype,\n"
11275 "                    int blocksize,\n"
11276 "                    const char *device,\n"
11277 "                    const char *uuid);\n"
11278 "\n"
11279 msgstr ""
11280
11281 # type: textblock
11282 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2719
11283 msgid ""
11284 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11285 "the journal with UUID C<uuid>."
11286 msgstr ""
11287
11288 # type: textblock
11289 #: ../src/guestfs-actions.pod:4026
11290 msgid "See also C<guestfs_mke2journal_U>."
11291 msgstr ""
11292
11293 # type: =head2
11294 #: ../src/guestfs-actions.pod:4032
11295 msgid "guestfs_mke2journal"
11296 msgstr ""
11297
11298 # type: verbatim
11299 #: ../src/guestfs-actions.pod:4034
11300 #, no-wrap
11301 msgid ""
11302 " int\n"
11303 " guestfs_mke2journal (guestfs_h *g,\n"
11304 "                      int blocksize,\n"
11305 "                      const char *device);\n"
11306 "\n"
11307 msgstr ""
11308
11309 # type: textblock
11310 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:2728
11311 msgid ""
11312 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11313 "command:"
11314 msgstr ""
11315
11316 # type: verbatim
11317 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2731
11318 #, no-wrap
11319 msgid ""
11320 " mke2fs -O journal_dev -b blocksize device\n"
11321 "\n"
11322 msgstr ""
11323
11324 # type: =head2
11325 #: ../src/guestfs-actions.pod:4048
11326 msgid "guestfs_mke2journal_L"
11327 msgstr ""
11328
11329 # type: verbatim
11330 #: ../src/guestfs-actions.pod:4050
11331 #, no-wrap
11332 msgid ""
11333 " int\n"
11334 " guestfs_mke2journal_L (guestfs_h *g,\n"
11335 "                        int blocksize,\n"
11336 "                        const char *label,\n"
11337 "                        const char *device);\n"
11338 "\n"
11339 msgstr ""
11340
11341 # type: textblock
11342 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2737
11343 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11344 msgstr ""
11345
11346 # type: =head2
11347 #: ../src/guestfs-actions.pod:4062
11348 msgid "guestfs_mke2journal_U"
11349 msgstr ""
11350
11351 # type: verbatim
11352 #: ../src/guestfs-actions.pod:4064
11353 #, no-wrap
11354 msgid ""
11355 " int\n"
11356 " guestfs_mke2journal_U (guestfs_h *g,\n"
11357 "                        int blocksize,\n"
11358 "                        const char *uuid,\n"
11359 "                        const char *device);\n"
11360 "\n"
11361 msgstr ""
11362
11363 # type: textblock
11364 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:2743
11365 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11366 msgstr ""
11367
11368 # type: =head2
11369 #: ../src/guestfs-actions.pod:4076
11370 msgid "guestfs_mkfifo"
11371 msgstr ""
11372
11373 # type: verbatim
11374 #: ../src/guestfs-actions.pod:4078
11375 #, no-wrap
11376 msgid ""
11377 " int\n"
11378 " guestfs_mkfifo (guestfs_h *g,\n"
11379 "                 int mode,\n"
11380 "                 const char *path);\n"
11381 "\n"
11382 msgstr ""
11383
11384 # type: textblock
11385 #: ../src/guestfs-actions.pod:4083
11386 msgid ""
11387 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11388 "is just a convenient wrapper around C<guestfs_mknod>."
11389 msgstr ""
11390
11391 # type: =head2
11392 #: ../src/guestfs-actions.pod:4093
11393 msgid "guestfs_mkfs"
11394 msgstr ""
11395
11396 # type: verbatim
11397 #: ../src/guestfs-actions.pod:4095
11398 #, no-wrap
11399 msgid ""
11400 " int\n"
11401 " guestfs_mkfs (guestfs_h *g,\n"
11402 "               const char *fstype,\n"
11403 "               const char *device);\n"
11404 "\n"
11405 msgstr ""
11406
11407 # type: textblock
11408 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2759
11409 msgid ""
11410 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11411 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11412 msgstr ""
11413
11414 # type: =head2
11415 #: ../src/guestfs-actions.pod:4108
11416 msgid "guestfs_mkfs_b"
11417 msgstr ""
11418
11419 # type: verbatim
11420 #: ../src/guestfs-actions.pod:4110
11421 #, no-wrap
11422 msgid ""
11423 " int\n"
11424 " guestfs_mkfs_b (guestfs_h *g,\n"
11425 "                 const char *fstype,\n"
11426 "                 int blocksize,\n"
11427 "                 const char *device);\n"
11428 "\n"
11429 msgstr ""
11430
11431 # type: textblock
11432 #: ../src/guestfs-actions.pod:4116
11433 msgid ""
11434 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11435 "block size of the resulting filesystem.  Supported block sizes depend on the "
11436 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11437 msgstr ""
11438
11439 # type: textblock
11440 #: ../src/guestfs-actions.pod:4121 ../src/guestfs-actions.pod:4163
11441 #: ../fish/guestfish-actions.pod:2772 ../fish/guestfish-actions.pod:2799
11442 msgid ""
11443 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11444 "cluster size."
11445 msgstr ""
11446
11447 # type: textblock
11448 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2775
11449 msgid ""
11450 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
11451 msgstr ""
11452
11453 # type: =head2
11454 #: ../src/guestfs-actions.pod:4135
11455 msgid "guestfs_mkfs_opts"
11456 msgstr ""
11457
11458 # type: verbatim
11459 #: ../src/guestfs-actions.pod:4137
11460 #, no-wrap
11461 msgid ""
11462 " int\n"
11463 " guestfs_mkfs_opts (guestfs_h *g,\n"
11464 "                    const char *fstype,\n"
11465 "                    const char *device,\n"
11466 "                    ...);\n"
11467 "\n"
11468 msgstr ""
11469
11470 # type: verbatim
11471 #: ../src/guestfs-actions.pod:4148
11472 #, no-wrap
11473 msgid ""
11474 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
11475 "\n"
11476 msgstr ""
11477
11478 # type: textblock
11479 #: ../src/guestfs-actions.pod:4150 ../fish/guestfish-actions.pod:2786
11480 msgid ""
11481 "This function creates a filesystem on C<device>.  The filesystem type is "
11482 "C<fstype>, for example C<ext3>."
11483 msgstr ""
11484
11485 # type: =item
11486 #: ../src/guestfs-actions.pod:4157 ../fish/guestfish-actions.pod:2793
11487 msgid "C<blocksize>"
11488 msgstr ""
11489
11490 # type: textblock
11491 #: ../src/guestfs-actions.pod:4159 ../fish/guestfish-actions.pod:2795
11492 msgid ""
11493 "The filesystem block size.  Supported block sizes depend on the filesystem "
11494 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11495 "filesystems."
11496 msgstr ""
11497
11498 # type: =head2
11499 #: ../src/guestfs-actions.pod:4170
11500 msgid "guestfs_mkfs_opts_va"
11501 msgstr ""
11502
11503 # type: verbatim
11504 #: ../src/guestfs-actions.pod:4172
11505 #, no-wrap
11506 msgid ""
11507 " int\n"
11508 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
11509 "                       const char *fstype,\n"
11510 "                       const char *device,\n"
11511 "                       va_list args);\n"
11512 "\n"
11513 msgstr ""
11514
11515 # type: textblock
11516 #: ../src/guestfs-actions.pod:4178
11517 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
11518 msgstr ""
11519
11520 # type: =head2
11521 #: ../src/guestfs-actions.pod:4182
11522 msgid "guestfs_mkfs_opts_argv"
11523 msgstr ""
11524
11525 # type: verbatim
11526 #: ../src/guestfs-actions.pod:4184
11527 #, no-wrap
11528 msgid ""
11529 " int\n"
11530 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
11531 "                         const char *fstype,\n"
11532 "                         const char *device,\n"
11533 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
11534 "\n"
11535 msgstr ""
11536
11537 # type: textblock
11538 #: ../src/guestfs-actions.pod:4190
11539 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
11540 msgstr ""
11541
11542 # type: =head2
11543 #: ../src/guestfs-actions.pod:4194
11544 msgid "guestfs_mkmountpoint"
11545 msgstr ""
11546
11547 # type: verbatim
11548 #: ../src/guestfs-actions.pod:4196
11549 #, no-wrap
11550 msgid ""
11551 " int\n"
11552 " guestfs_mkmountpoint (guestfs_h *g,\n"
11553 "                       const char *exemptpath);\n"
11554 "\n"
11555 msgstr ""
11556
11557 # type: textblock
11558 #: ../src/guestfs-actions.pod:4200
11559 msgid ""
11560 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11561 "that can be used to create extra mountpoints before mounting the first "
11562 "filesystem."
11563 msgstr ""
11564
11565 # type: textblock
11566 #: ../src/guestfs-actions.pod:4204 ../fish/guestfish-actions.pod:2814
11567 msgid ""
11568 "These calls are I<only> necessary in some very limited circumstances, mainly "
11569 "the case where you want to mount a mix of unrelated and/or read-only "
11570 "filesystems together."
11571 msgstr ""
11572
11573 # type: textblock
11574 #: ../src/guestfs-actions.pod:4208 ../fish/guestfish-actions.pod:2818
11575 msgid ""
11576 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11577 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11578 "inside that.  You can unpack this as follows in guestfish:"
11579 msgstr ""
11580
11581 # type: verbatim
11582 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2823
11583 #, no-wrap
11584 msgid ""
11585 " add-ro Fedora-11-i686-Live.iso\n"
11586 " run\n"
11587 " mkmountpoint /cd\n"
11588 " mkmountpoint /sqsh\n"
11589 " mkmountpoint /ext3fs\n"
11590 " mount /dev/sda /cd\n"
11591 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11592 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11593 "\n"
11594 msgstr ""
11595
11596 # type: textblock
11597 #: ../src/guestfs-actions.pod:4222 ../fish/guestfish-actions.pod:2832
11598 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11599 msgstr ""
11600
11601 # type: textblock
11602 #: ../src/guestfs-actions.pod:4224
11603 msgid ""
11604 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11605 "may get unexpected errors if you try to mix these calls.  It is safest to "
11606 "manually unmount filesystems and remove mountpoints after use."
11607 msgstr ""
11608
11609 # type: textblock
11610 #: ../src/guestfs-actions.pod:4228
11611 msgid ""
11612 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11613 "first, so for this to work for manual mountpoints, you must ensure that the "
11614 "innermost mountpoints have the longest pathnames, as in the example code "
11615 "above."
11616 msgstr ""
11617
11618 # type: textblock
11619 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2843
11620 msgid ""
11621 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11622 msgstr ""
11623
11624 # type: textblock
11625 #: ../src/guestfs-actions.pod:4235
11626 msgid ""
11627 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11628 "means that C<guestfs_umount_all> is called when the handle is closed which "
11629 "can also trigger these issues."
11630 msgstr ""
11631
11632 # type: textblock
11633 #: ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4500
11634 #: ../src/guestfs-actions.pod:5393
11635 msgid "(Added in 1.0.62)"
11636 msgstr ""
11637
11638 # type: =head2
11639 #: ../src/guestfs-actions.pod:4243
11640 msgid "guestfs_mknod"
11641 msgstr ""
11642
11643 # type: verbatim
11644 #: ../src/guestfs-actions.pod:4245
11645 #, no-wrap
11646 msgid ""
11647 " int\n"
11648 " guestfs_mknod (guestfs_h *g,\n"
11649 "                int mode,\n"
11650 "                int devmajor,\n"
11651 "                int devminor,\n"
11652 "                const char *path);\n"
11653 "\n"
11654 msgstr ""
11655
11656 # type: textblock
11657 #: ../src/guestfs-actions.pod:4252 ../fish/guestfish-actions.pod:2853
11658 msgid ""
11659 "This call creates block or character special devices, or named pipes (FIFOs)."
11660 msgstr ""
11661
11662 # type: textblock
11663 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2856
11664 msgid ""
11665 "The C<mode> parameter should be the mode, using the standard constants.  "
11666 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11667 "used when creating block and character special devices."
11668 msgstr ""
11669
11670 # type: textblock
11671 #: ../src/guestfs-actions.pod:4260
11672 msgid ""
11673 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11674 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11675 "regular file).  These constants are available in the standard Linux header "
11676 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11677 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11678 "the appropriate constant for you."
11679 msgstr ""
11680
11681 # type: =head2
11682 #: ../src/guestfs-actions.pod:4274
11683 msgid "guestfs_mknod_b"
11684 msgstr ""
11685
11686 # type: verbatim
11687 #: ../src/guestfs-actions.pod:4276
11688 #, no-wrap
11689 msgid ""
11690 " int\n"
11691 " guestfs_mknod_b (guestfs_h *g,\n"
11692 "                  int mode,\n"
11693 "                  int devmajor,\n"
11694 "                  int devminor,\n"
11695 "                  const char *path);\n"
11696 "\n"
11697 msgstr ""
11698
11699 # type: textblock
11700 #: ../src/guestfs-actions.pod:4283
11701 msgid ""
11702 "This call creates a block device node called C<path> with mode C<mode> and "
11703 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11704 "wrapper around C<guestfs_mknod>."
11705 msgstr ""
11706
11707 # type: =head2
11708 #: ../src/guestfs-actions.pod:4293
11709 msgid "guestfs_mknod_c"
11710 msgstr ""
11711
11712 # type: verbatim
11713 #: ../src/guestfs-actions.pod:4295
11714 #, no-wrap
11715 msgid ""
11716 " int\n"
11717 " guestfs_mknod_c (guestfs_h *g,\n"
11718 "                  int mode,\n"
11719 "                  int devmajor,\n"
11720 "                  int devminor,\n"
11721 "                  const char *path);\n"
11722 "\n"
11723 msgstr ""
11724
11725 # type: textblock
11726 #: ../src/guestfs-actions.pod:4302
11727 msgid ""
11728 "This call creates a char device node called C<path> with mode C<mode> and "
11729 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11730 "wrapper around C<guestfs_mknod>."
11731 msgstr ""
11732
11733 # type: =head2
11734 #: ../src/guestfs-actions.pod:4312
11735 msgid "guestfs_mkswap"
11736 msgstr ""
11737
11738 # type: verbatim
11739 #: ../src/guestfs-actions.pod:4314
11740 #, no-wrap
11741 msgid ""
11742 " int\n"
11743 " guestfs_mkswap (guestfs_h *g,\n"
11744 "                 const char *device);\n"
11745 "\n"
11746 msgstr ""
11747
11748 # type: textblock
11749 #: ../src/guestfs-actions.pod:4318 ../fish/guestfish-actions.pod:2895
11750 msgid "Create a swap partition on C<device>."
11751 msgstr ""
11752
11753 # type: =head2
11754 #: ../src/guestfs-actions.pod:4324
11755 msgid "guestfs_mkswap_L"
11756 msgstr ""
11757
11758 # type: verbatim
11759 #: ../src/guestfs-actions.pod:4326
11760 #, no-wrap
11761 msgid ""
11762 " int\n"
11763 " guestfs_mkswap_L (guestfs_h *g,\n"
11764 "                   const char *label,\n"
11765 "                   const char *device);\n"
11766 "\n"
11767 msgstr ""
11768
11769 # type: textblock
11770 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2901
11771 msgid "Create a swap partition on C<device> with label C<label>."
11772 msgstr ""
11773
11774 # type: textblock
11775 #: ../src/guestfs-actions.pod:4333 ../fish/guestfish-actions.pod:2903
11776 msgid ""
11777 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11778 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11779 "or swap tools."
11780 msgstr ""
11781
11782 # type: =head2
11783 #: ../src/guestfs-actions.pod:4341
11784 msgid "guestfs_mkswap_U"
11785 msgstr ""
11786
11787 # type: verbatim
11788 #: ../src/guestfs-actions.pod:4343
11789 #, no-wrap
11790 msgid ""
11791 " int\n"
11792 " guestfs_mkswap_U (guestfs_h *g,\n"
11793 "                   const char *uuid,\n"
11794 "                   const char *device);\n"
11795 "\n"
11796 msgstr ""
11797
11798 # type: textblock
11799 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2911
11800 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11801 msgstr ""
11802
11803 # type: =head2
11804 #: ../src/guestfs-actions.pod:4354
11805 msgid "guestfs_mkswap_file"
11806 msgstr ""
11807
11808 # type: verbatim
11809 #: ../src/guestfs-actions.pod:4356
11810 #, no-wrap
11811 msgid ""
11812 " int\n"
11813 " guestfs_mkswap_file (guestfs_h *g,\n"
11814 "                      const char *path);\n"
11815 "\n"
11816 msgstr ""
11817
11818 # type: textblock
11819 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2917
11820 msgid "Create a swap file."
11821 msgstr ""
11822
11823 # type: textblock
11824 #: ../src/guestfs-actions.pod:4362
11825 msgid ""
11826 "This command just writes a swap file signature to an existing file.  To "
11827 "create the file itself, use something like C<guestfs_fallocate>."
11828 msgstr ""
11829
11830 # type: =head2
11831 #: ../src/guestfs-actions.pod:4369
11832 msgid "guestfs_modprobe"
11833 msgstr ""
11834
11835 # type: verbatim
11836 #: ../src/guestfs-actions.pod:4371
11837 #, no-wrap
11838 msgid ""
11839 " int\n"
11840 " guestfs_modprobe (guestfs_h *g,\n"
11841 "                   const char *modulename);\n"
11842 "\n"
11843 msgstr ""
11844
11845 # type: textblock
11846 #: ../src/guestfs-actions.pod:4375 ../fish/guestfish-actions.pod:2926
11847 msgid "This loads a kernel module in the appliance."
11848 msgstr ""
11849
11850 # type: textblock
11851 #: ../src/guestfs-actions.pod:4377 ../fish/guestfish-actions.pod:2928
11852 msgid ""
11853 "The kernel module must have been whitelisted when libguestfs was built (see "
11854 "C<appliance/kmod.whitelist.in> in the source)."
11855 msgstr ""
11856
11857 # type: =head2
11858 #: ../src/guestfs-actions.pod:4384
11859 msgid "guestfs_mount"
11860 msgstr ""
11861
11862 # type: verbatim
11863 #: ../src/guestfs-actions.pod:4386
11864 #, no-wrap
11865 msgid ""
11866 " int\n"
11867 " guestfs_mount (guestfs_h *g,\n"
11868 "                const char *device,\n"
11869 "                const char *mountpoint);\n"
11870 "\n"
11871 msgstr ""
11872
11873 # type: textblock
11874 #: ../src/guestfs-actions.pod:4391 ../fish/guestfish-actions.pod:2935
11875 msgid ""
11876 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11877 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11878 "those block devices contain partitions, they will have the usual names (eg. "
11879 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11880 msgstr ""
11881
11882 # type: textblock
11883 #: ../src/guestfs-actions.pod:4397 ../fish/guestfish-actions.pod:2941
11884 msgid ""
11885 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11886 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11887 "mounted on directories which already exist."
11888 msgstr ""
11889
11890 # type: textblock
11891 #: ../src/guestfs-actions.pod:4402 ../fish/guestfish-actions.pod:2946
11892 msgid ""
11893 "The mounted filesystem is writable, if we have sufficient permissions on the "
11894 "underlying device."
11895 msgstr ""
11896
11897 # type: textblock
11898 #: ../src/guestfs-actions.pod:4405
11899 msgid ""
11900 "B<Important note:> When you use this call, the filesystem options C<sync> "
11901 "and C<noatime> are set implicitly.  This was originally done because we "
11902 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11903 "very large negative performance impact and negligible effect on "
11904 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11905 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11906 "(use an empty string for the first parameter if you don't want any options)."
11907 msgstr ""
11908
11909 # type: =head2
11910 #: ../src/guestfs-actions.pod:4419
11911 msgid "guestfs_mount_loop"
11912 msgstr ""
11913
11914 # type: verbatim
11915 #: ../src/guestfs-actions.pod:4421
11916 #, no-wrap
11917 msgid ""
11918 " int\n"
11919 " guestfs_mount_loop (guestfs_h *g,\n"
11920 "                     const char *file,\n"
11921 "                     const char *mountpoint);\n"
11922 "\n"
11923 msgstr ""
11924
11925 # type: textblock
11926 #: ../src/guestfs-actions.pod:4426 ../fish/guestfish-actions.pod:2963
11927 msgid ""
11928 "This command lets you mount C<file> (a filesystem image in a file) on a "
11929 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11930 "mountpoint>."
11931 msgstr ""
11932
11933 # type: =head2
11934 #: ../src/guestfs-actions.pod:4434
11935 msgid "guestfs_mount_options"
11936 msgstr ""
11937
11938 # type: verbatim
11939 #: ../src/guestfs-actions.pod:4436
11940 #, no-wrap
11941 msgid ""
11942 " int\n"
11943 " guestfs_mount_options (guestfs_h *g,\n"
11944 "                        const char *options,\n"
11945 "                        const char *device,\n"
11946 "                        const char *mountpoint);\n"
11947 "\n"
11948 msgstr ""
11949
11950 # type: textblock
11951 #: ../src/guestfs-actions.pod:4442
11952 msgid ""
11953 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11954 "the mount options as for the L<mount(8)> I<-o> flag."
11955 msgstr ""
11956
11957 # type: textblock
11958 #: ../src/guestfs-actions.pod:4446 ../fish/guestfish-actions.pod:2975
11959 msgid ""
11960 "If the C<options> parameter is an empty string, then no options are passed "
11961 "(all options default to whatever the filesystem uses)."
11962 msgstr ""
11963
11964 # type: textblock
11965 #: ../src/guestfs-actions.pod:4452 ../src/guestfs-actions.pod:4466
11966 #: ../src/guestfs-actions.pod:4483
11967 msgid "(Added in 1.0.10)"
11968 msgstr ""
11969
11970 # type: =head2
11971 #: ../src/guestfs-actions.pod:4454
11972 msgid "guestfs_mount_ro"
11973 msgstr ""
11974
11975 # type: verbatim
11976 #: ../src/guestfs-actions.pod:4456
11977 #, no-wrap
11978 msgid ""
11979 " int\n"
11980 " guestfs_mount_ro (guestfs_h *g,\n"
11981 "                   const char *device,\n"
11982 "                   const char *mountpoint);\n"
11983 "\n"
11984 msgstr ""
11985
11986 # type: textblock
11987 #: ../src/guestfs-actions.pod:4461
11988 msgid ""
11989 "This is the same as the C<guestfs_mount> command, but it mounts the "
11990 "filesystem with the read-only (I<-o ro>) flag."
11991 msgstr ""
11992
11993 # type: =head2
11994 #: ../src/guestfs-actions.pod:4468
11995 msgid "guestfs_mount_vfs"
11996 msgstr ""
11997
11998 # type: verbatim
11999 #: ../src/guestfs-actions.pod:4470
12000 #, no-wrap
12001 msgid ""
12002 " int\n"
12003 " guestfs_mount_vfs (guestfs_h *g,\n"
12004 "                    const char *options,\n"
12005 "                    const char *vfstype,\n"
12006 "                    const char *device,\n"
12007 "                    const char *mountpoint);\n"
12008 "\n"
12009 msgstr ""
12010
12011 # type: textblock
12012 #: ../src/guestfs-actions.pod:4477
12013 msgid ""
12014 "This is the same as the C<guestfs_mount> command, but it allows you to set "
12015 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
12016 "t> flags."
12017 msgstr ""
12018
12019 # type: =head2
12020 #: ../src/guestfs-actions.pod:4485
12021 msgid "guestfs_mountpoints"
12022 msgstr ""
12023
12024 # type: verbatim
12025 #: ../src/guestfs-actions.pod:4487
12026 #, no-wrap
12027 msgid ""
12028 " char **\n"
12029 " guestfs_mountpoints (guestfs_h *g);\n"
12030 "\n"
12031 msgstr ""
12032
12033 # type: textblock
12034 #: ../src/guestfs-actions.pod:4490
12035 msgid ""
12036 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
12037 "devices.  This one returns a hash table (map) of device name to directory "
12038 "where the device is mounted."
12039 msgstr ""
12040
12041 # type: =head2
12042 #: ../src/guestfs-actions.pod:4502
12043 msgid "guestfs_mounts"
12044 msgstr ""
12045
12046 # type: verbatim
12047 #: ../src/guestfs-actions.pod:4504
12048 #, no-wrap
12049 msgid ""
12050 " char **\n"
12051 " guestfs_mounts (guestfs_h *g);\n"
12052 "\n"
12053 msgstr ""
12054
12055 # type: textblock
12056 #: ../src/guestfs-actions.pod:4507 ../fish/guestfish-actions.pod:3006
12057 msgid ""
12058 "This returns the list of currently mounted filesystems.  It returns the list "
12059 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12060 msgstr ""
12061
12062 # type: textblock
12063 #: ../src/guestfs-actions.pod:4510 ../fish/guestfish-actions.pod:3009
12064 msgid "Some internal mounts are not shown."
12065 msgstr ""
12066
12067 # type: textblock
12068 #: ../src/guestfs-actions.pod:4512
12069 msgid "See also: C<guestfs_mountpoints>"
12070 msgstr ""
12071
12072 # type: =head2
12073 #: ../src/guestfs-actions.pod:4520
12074 msgid "guestfs_mv"
12075 msgstr ""
12076
12077 # type: verbatim
12078 #: ../src/guestfs-actions.pod:4522
12079 #, no-wrap
12080 msgid ""
12081 " int\n"
12082 " guestfs_mv (guestfs_h *g,\n"
12083 "             const char *src,\n"
12084 "             const char *dest);\n"
12085 "\n"
12086 msgstr ""
12087
12088 # type: textblock
12089 #: ../src/guestfs-actions.pod:4527 ../fish/guestfish-actions.pod:3017
12090 msgid ""
12091 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12092 "destination filename or destination directory."
12093 msgstr ""
12094
12095 # type: =head2
12096 #: ../src/guestfs-actions.pod:4534
12097 msgid "guestfs_ntfs_3g_probe"
12098 msgstr ""
12099
12100 # type: verbatim
12101 #: ../src/guestfs-actions.pod:4536
12102 #, no-wrap
12103 msgid ""
12104 " int\n"
12105 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
12106 "                        int rw,\n"
12107 "                        const char *device);\n"
12108 "\n"
12109 msgstr ""
12110
12111 # type: textblock
12112 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3024
12113 msgid ""
12114 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12115 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12116 "write, and some cannot be mounted at all)."
12117 msgstr ""
12118
12119 # type: textblock
12120 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3028
12121 msgid ""
12122 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12123 "can be mounted read-write.  Set it to false if you want to test if the "
12124 "volume can be mounted read-only."
12125 msgstr ""
12126
12127 # type: textblock
12128 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3032
12129 msgid ""
12130 "The return value is an integer which C<0> if the operation would succeed, or "
12131 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12132 msgstr ""
12133
12134 # type: textblock
12135 #: ../src/guestfs-actions.pod:4555
12136 msgid "(Added in 1.0.43)"
12137 msgstr ""
12138
12139 # type: =head2
12140 #: ../src/guestfs-actions.pod:4557
12141 msgid "guestfs_ntfsresize"
12142 msgstr ""
12143
12144 # type: verbatim
12145 #: ../src/guestfs-actions.pod:4559
12146 #, no-wrap
12147 msgid ""
12148 " int\n"
12149 " guestfs_ntfsresize (guestfs_h *g,\n"
12150 "                     const char *device);\n"
12151 "\n"
12152 msgstr ""
12153
12154 # type: textblock
12155 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3040
12156 msgid ""
12157 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12158 "size of the underlying device.  See also L<ntfsresize(8)>."
12159 msgstr ""
12160
12161 # type: =head2
12162 #: ../src/guestfs-actions.pod:4571
12163 msgid "guestfs_ntfsresize_size"
12164 msgstr ""
12165
12166 # type: verbatim
12167 #: ../src/guestfs-actions.pod:4573
12168 #, no-wrap
12169 msgid ""
12170 " int\n"
12171 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12172 "                          const char *device,\n"
12173 "                          int64_t size);\n"
12174 "\n"
12175 msgstr ""
12176
12177 # type: textblock
12178 #: ../src/guestfs-actions.pod:4578
12179 msgid ""
12180 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12181 "to specify the new size (in bytes) explicitly."
12182 msgstr ""
12183
12184 # type: textblock
12185 #: ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:5019
12186 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5341
12187 msgid "(Added in 1.3.14)"
12188 msgstr ""
12189
12190 # type: =head2
12191 #: ../src/guestfs-actions.pod:4585
12192 msgid "guestfs_part_add"
12193 msgstr ""
12194
12195 # type: verbatim
12196 #: ../src/guestfs-actions.pod:4587
12197 #, no-wrap
12198 msgid ""
12199 " int\n"
12200 " guestfs_part_add (guestfs_h *g,\n"
12201 "                   const char *device,\n"
12202 "                   const char *prlogex,\n"
12203 "                   int64_t startsect,\n"
12204 "                   int64_t endsect);\n"
12205 "\n"
12206 msgstr ""
12207
12208 # type: textblock
12209 #: ../src/guestfs-actions.pod:4594
12210 msgid ""
12211 "This command adds a partition to C<device>.  If there is no partition table "
12212 "on the device, call C<guestfs_part_init> first."
12213 msgstr ""
12214
12215 # type: textblock
12216 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3058
12217 msgid ""
12218 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12219 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12220 "C<logical>) and C<e> (or C<extended>) partition types."
12221 msgstr ""
12222
12223 # type: textblock
12224 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3063
12225 msgid ""
12226 "C<startsect> and C<endsect> are the start and end of the partition in "
12227 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12228 "from the end of the disk (C<-1> is the last sector)."
12229 msgstr ""
12230
12231 # type: textblock
12232 #: ../src/guestfs-actions.pod:4606
12233 msgid ""
12234 "Creating a partition which covers the whole disk is not so easy.  Use "
12235 "C<guestfs_part_disk> to do that."
12236 msgstr ""
12237
12238 # type: textblock
12239 #: ../src/guestfs-actions.pod:4611 ../src/guestfs-actions.pod:4649
12240 #: ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4780
12241 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4837
12242 #: ../src/guestfs-actions.pod:4877
12243 msgid "(Added in 1.0.78)"
12244 msgstr ""
12245
12246 # type: =head2
12247 #: ../src/guestfs-actions.pod:4613
12248 msgid "guestfs_part_del"
12249 msgstr ""
12250
12251 # type: verbatim
12252 #: ../src/guestfs-actions.pod:4615
12253 #, no-wrap
12254 msgid ""
12255 " int\n"
12256 " guestfs_part_del (guestfs_h *g,\n"
12257 "                   const char *device,\n"
12258 "                   int partnum);\n"
12259 "\n"
12260 msgstr ""
12261
12262 # type: textblock
12263 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3074
12264 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12265 msgstr ""
12266
12267 # type: textblock
12268 #: ../src/guestfs-actions.pod:4622 ../fish/guestfish-actions.pod:3076
12269 msgid ""
12270 "Note that in the case of MBR partitioning, deleting an extended partition "
12271 "also deletes any logical partitions it contains."
12272 msgstr ""
12273
12274 # type: =head2
12275 #: ../src/guestfs-actions.pod:4630
12276 msgid "guestfs_part_disk"
12277 msgstr ""
12278
12279 # type: verbatim
12280 #: ../src/guestfs-actions.pod:4632
12281 #, no-wrap
12282 msgid ""
12283 " int\n"
12284 " guestfs_part_disk (guestfs_h *g,\n"
12285 "                    const char *device,\n"
12286 "                    const char *parttype);\n"
12287 "\n"
12288 msgstr ""
12289
12290 # type: textblock
12291 #: ../src/guestfs-actions.pod:4637
12292 msgid ""
12293 "This command is simply a combination of C<guestfs_part_init> followed by "
12294 "C<guestfs_part_add> to create a single primary partition covering the whole "
12295 "disk."
12296 msgstr ""
12297
12298 # type: textblock
12299 #: ../src/guestfs-actions.pod:4641
12300 msgid ""
12301 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12302 "possible values are described in C<guestfs_part_init>."
12303 msgstr ""
12304
12305 # type: =head2
12306 #: ../src/guestfs-actions.pod:4651
12307 msgid "guestfs_part_get_bootable"
12308 msgstr ""
12309
12310 # type: verbatim
12311 #: ../src/guestfs-actions.pod:4653
12312 #, no-wrap
12313 msgid ""
12314 " int\n"
12315 " guestfs_part_get_bootable (guestfs_h *g,\n"
12316 "                            const char *device,\n"
12317 "                            int partnum);\n"
12318 "\n"
12319 msgstr ""
12320
12321 # type: textblock
12322 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3098
12323 msgid ""
12324 "This command returns true if the partition C<partnum> on C<device> has the "
12325 "bootable flag set."
12326 msgstr ""
12327
12328 # type: textblock
12329 #: ../src/guestfs-actions.pod:4661
12330 msgid "See also C<guestfs_part_set_bootable>."
12331 msgstr ""
12332
12333 # type: =head2
12334 #: ../src/guestfs-actions.pod:4667
12335 msgid "guestfs_part_get_mbr_id"
12336 msgstr ""
12337
12338 # type: verbatim
12339 #: ../src/guestfs-actions.pod:4669
12340 #, no-wrap
12341 msgid ""
12342 " int\n"
12343 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12344 "                          const char *device,\n"
12345 "                          int partnum);\n"
12346 "\n"
12347 msgstr ""
12348
12349 # type: textblock
12350 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3107
12351 msgid ""
12352 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12353 "partition C<partnum>."
12354 msgstr ""
12355
12356 # type: textblock
12357 #: ../src/guestfs-actions.pod:4677 ../src/guestfs-actions.pod:4853
12358 msgid ""
12359 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12360 "undefined results for other partition table types (see "
12361 "C<guestfs_part_get_parttype>)."
12362 msgstr ""
12363
12364 # type: =head2
12365 #: ../src/guestfs-actions.pod:4685
12366 msgid "guestfs_part_get_parttype"
12367 msgstr ""
12368
12369 # type: verbatim
12370 #: ../src/guestfs-actions.pod:4687
12371 #, no-wrap
12372 msgid ""
12373 " char *\n"
12374 " guestfs_part_get_parttype (guestfs_h *g,\n"
12375 "                            const char *device);\n"
12376 "\n"
12377 msgstr ""
12378
12379 # type: textblock
12380 #: ../src/guestfs-actions.pod:4691 ../fish/guestfish-actions.pod:3118
12381 msgid ""
12382 "This command examines the partition table on C<device> and returns the "
12383 "partition table type (format) being used."
12384 msgstr ""
12385
12386 # type: textblock
12387 #: ../src/guestfs-actions.pod:4694
12388 msgid ""
12389 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12390 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12391 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12392 msgstr ""
12393
12394 # type: =head2
12395 #: ../src/guestfs-actions.pod:4704
12396 msgid "guestfs_part_init"
12397 msgstr ""
12398
12399 # type: verbatim
12400 #: ../src/guestfs-actions.pod:4706
12401 #, no-wrap
12402 msgid ""
12403 " int\n"
12404 " guestfs_part_init (guestfs_h *g,\n"
12405 "                    const char *device,\n"
12406 "                    const char *parttype);\n"
12407 "\n"
12408 msgstr ""
12409
12410 # type: textblock
12411 #: ../src/guestfs-actions.pod:4711 ../fish/guestfish-actions.pod:3130
12412 msgid ""
12413 "This creates an empty partition table on C<device> of one of the partition "
12414 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12415 "(for large disks)."
12416 msgstr ""
12417
12418 # type: textblock
12419 #: ../src/guestfs-actions.pod:4715
12420 msgid ""
12421 "Initially there are no partitions.  Following this, you should call "
12422 "C<guestfs_part_add> for each partition required."
12423 msgstr ""
12424
12425 # type: textblock
12426 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3137
12427 msgid "Possible values for C<parttype> are:"
12428 msgstr ""
12429
12430 # type: =item
12431 #: ../src/guestfs-actions.pod:4722 ../fish/guestfish-actions.pod:3141
12432 msgid "B<efi> | B<gpt>"
12433 msgstr ""
12434
12435 # type: textblock
12436 #: ../src/guestfs-actions.pod:4724 ../fish/guestfish-actions.pod:3143
12437 msgid "Intel EFI / GPT partition table."
12438 msgstr ""
12439
12440 # type: textblock
12441 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3145
12442 msgid ""
12443 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12444 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12445 "the C<mbr> format."
12446 msgstr ""
12447
12448 # type: =item
12449 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3149
12450 msgid "B<mbr> | B<msdos>"
12451 msgstr ""
12452
12453 # type: textblock
12454 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3151
12455 msgid ""
12456 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12457 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12458 "TB.  For large disks we recommend using C<gpt>."
12459 msgstr ""
12460
12461 # type: textblock
12462 #: ../src/guestfs-actions.pod:4739 ../fish/guestfish-actions.pod:3158
12463 msgid ""
12464 "Other partition table types that may work but are not supported include:"
12465 msgstr ""
12466
12467 # type: =item
12468 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3163
12469 msgid "B<aix>"
12470 msgstr ""
12471
12472 # type: textblock
12473 #: ../src/guestfs-actions.pod:4746 ../fish/guestfish-actions.pod:3165
12474 msgid "AIX disk labels."
12475 msgstr ""
12476
12477 # type: =item
12478 #: ../src/guestfs-actions.pod:4748 ../fish/guestfish-actions.pod:3167
12479 msgid "B<amiga> | B<rdb>"
12480 msgstr ""
12481
12482 # type: textblock
12483 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3169
12484 msgid "Amiga \"Rigid Disk Block\" format."
12485 msgstr ""
12486
12487 # type: =item
12488 #: ../src/guestfs-actions.pod:4752 ../fish/guestfish-actions.pod:3171
12489 msgid "B<bsd>"
12490 msgstr ""
12491
12492 # type: textblock
12493 #: ../src/guestfs-actions.pod:4754 ../fish/guestfish-actions.pod:3173
12494 msgid "BSD disk labels."
12495 msgstr ""
12496
12497 # type: =item
12498 #: ../src/guestfs-actions.pod:4756 ../fish/guestfish-actions.pod:3175
12499 msgid "B<dasd>"
12500 msgstr ""
12501
12502 # type: textblock
12503 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3177
12504 msgid "DASD, used on IBM mainframes."
12505 msgstr ""
12506
12507 # type: =item
12508 #: ../src/guestfs-actions.pod:4760 ../fish/guestfish-actions.pod:3179
12509 msgid "B<dvh>"
12510 msgstr ""
12511
12512 # type: textblock
12513 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3181
12514 msgid "MIPS/SGI volumes."
12515 msgstr ""
12516
12517 # type: =item
12518 #: ../src/guestfs-actions.pod:4764 ../fish/guestfish-actions.pod:3183
12519 msgid "B<mac>"
12520 msgstr ""
12521
12522 # type: textblock
12523 #: ../src/guestfs-actions.pod:4766 ../fish/guestfish-actions.pod:3185
12524 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12525 msgstr ""
12526
12527 # type: =item
12528 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3187
12529 msgid "B<pc98>"
12530 msgstr ""
12531
12532 # type: textblock
12533 #: ../src/guestfs-actions.pod:4770 ../fish/guestfish-actions.pod:3189
12534 msgid "NEC PC-98 format, common in Japan apparently."
12535 msgstr ""
12536
12537 # type: =item
12538 #: ../src/guestfs-actions.pod:4772 ../fish/guestfish-actions.pod:3191
12539 msgid "B<sun>"
12540 msgstr ""
12541
12542 # type: textblock
12543 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3193
12544 msgid "Sun disk labels."
12545 msgstr ""
12546
12547 # type: =head2
12548 #: ../src/guestfs-actions.pod:4782
12549 msgid "guestfs_part_list"
12550 msgstr ""
12551
12552 # type: verbatim
12553 #: ../src/guestfs-actions.pod:4784
12554 #, no-wrap
12555 msgid ""
12556 " struct guestfs_partition_list *\n"
12557 " guestfs_part_list (guestfs_h *g,\n"
12558 "                    const char *device);\n"
12559 "\n"
12560 msgstr ""
12561
12562 # type: textblock
12563 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3201
12564 msgid ""
12565 "This command parses the partition table on C<device> and returns the list of "
12566 "partitions found."
12567 msgstr ""
12568
12569 # type: textblock
12570 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3204
12571 msgid "The fields in the returned structure are:"
12572 msgstr ""
12573
12574 # type: =item
12575 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3208
12576 msgid "B<part_num>"
12577 msgstr ""
12578
12579 # type: textblock
12580 #: ../src/guestfs-actions.pod:4797 ../fish/guestfish-actions.pod:3210
12581 msgid "Partition number, counting from 1."
12582 msgstr ""
12583
12584 # type: =item
12585 #: ../src/guestfs-actions.pod:4799 ../fish/guestfish-actions.pod:3212
12586 msgid "B<part_start>"
12587 msgstr ""
12588
12589 # type: textblock
12590 #: ../src/guestfs-actions.pod:4801
12591 msgid ""
12592 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12593 "the device's sector size, see C<guestfs_blockdev_getss>."
12594 msgstr ""
12595
12596 # type: =item
12597 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3217
12598 msgid "B<part_end>"
12599 msgstr ""
12600
12601 # type: textblock
12602 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3219
12603 msgid "End of the partition in bytes."
12604 msgstr ""
12605
12606 # type: =item
12607 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3221
12608 msgid "B<part_size>"
12609 msgstr ""
12610
12611 # type: textblock
12612 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3223
12613 msgid "Size of the partition in bytes."
12614 msgstr ""
12615
12616 # type: textblock
12617 #: ../src/guestfs-actions.pod:4814
12618 msgid ""
12619 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12620 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12621 "use>."
12622 msgstr ""
12623
12624 # type: =head2
12625 #: ../src/guestfs-actions.pod:4820
12626 msgid "guestfs_part_set_bootable"
12627 msgstr ""
12628
12629 # type: verbatim
12630 #: ../src/guestfs-actions.pod:4822
12631 #, no-wrap
12632 msgid ""
12633 " int\n"
12634 " guestfs_part_set_bootable (guestfs_h *g,\n"
12635 "                            const char *device,\n"
12636 "                            int partnum,\n"
12637 "                            int bootable);\n"
12638 "\n"
12639 msgstr ""
12640
12641 # type: textblock
12642 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3231
12643 msgid ""
12644 "This sets the bootable flag on partition numbered C<partnum> on device "
12645 "C<device>.  Note that partitions are numbered from 1."
12646 msgstr ""
12647
12648 # type: textblock
12649 #: ../src/guestfs-actions.pod:4831 ../fish/guestfish-actions.pod:3234
12650 msgid ""
12651 "The bootable flag is used by some operating systems (notably Windows) to "
12652 "determine which partition to boot from.  It is by no means universally "
12653 "recognized."
12654 msgstr ""
12655
12656 # type: =head2
12657 #: ../src/guestfs-actions.pod:4839
12658 msgid "guestfs_part_set_mbr_id"
12659 msgstr ""
12660
12661 # type: verbatim
12662 #: ../src/guestfs-actions.pod:4841
12663 #, no-wrap
12664 msgid ""
12665 " int\n"
12666 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12667 "                          const char *device,\n"
12668 "                          int partnum,\n"
12669 "                          int idbyte);\n"
12670 "\n"
12671 msgstr ""
12672
12673 # type: textblock
12674 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3242
12675 msgid ""
12676 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12677 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12678 "documentation are in fact hexadecimal numbers, but usually documented "
12679 "without any leading \"0x\" which might be confusing."
12680 msgstr ""
12681
12682 # type: =head2
12683 #: ../src/guestfs-actions.pod:4861
12684 msgid "guestfs_part_set_name"
12685 msgstr ""
12686
12687 # type: verbatim
12688 #: ../src/guestfs-actions.pod:4863
12689 #, no-wrap
12690 msgid ""
12691 " int\n"
12692 " guestfs_part_set_name (guestfs_h *g,\n"
12693 "                        const char *device,\n"
12694 "                        int partnum,\n"
12695 "                        const char *name);\n"
12696 "\n"
12697 msgstr ""
12698
12699 # type: textblock
12700 #: ../src/guestfs-actions.pod:4869 ../fish/guestfish-actions.pod:3256
12701 msgid ""
12702 "This sets the partition name on partition numbered C<partnum> on device "
12703 "C<device>.  Note that partitions are numbered from 1."
12704 msgstr ""
12705
12706 # type: textblock
12707 #: ../src/guestfs-actions.pod:4872 ../fish/guestfish-actions.pod:3259
12708 msgid ""
12709 "The partition name can only be set on certain types of partition table.  "
12710 "This works on C<gpt> but not on C<mbr> partitions."
12711 msgstr ""
12712
12713 # type: =head2
12714 #: ../src/guestfs-actions.pod:4879
12715 msgid "guestfs_part_to_dev"
12716 msgstr ""
12717
12718 # type: verbatim
12719 #: ../src/guestfs-actions.pod:4881
12720 #, no-wrap
12721 msgid ""
12722 " char *\n"
12723 " guestfs_part_to_dev (guestfs_h *g,\n"
12724 "                      const char *partition);\n"
12725 "\n"
12726 msgstr ""
12727
12728 # type: textblock
12729 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3266
12730 msgid ""
12731 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12732 "partition number, returning the device name (eg. \"/dev/sdb\")."
12733 msgstr ""
12734
12735 # type: textblock
12736 #: ../src/guestfs-actions.pod:4889
12737 msgid ""
12738 "The named partition must exist, for example as a string returned from "
12739 "C<guestfs_list_partitions>."
12740 msgstr ""
12741
12742 # type: =head2
12743 #: ../src/guestfs-actions.pod:4897
12744 msgid "guestfs_ping_daemon"
12745 msgstr ""
12746
12747 # type: verbatim
12748 #: ../src/guestfs-actions.pod:4899
12749 #, no-wrap
12750 msgid ""
12751 " int\n"
12752 " guestfs_ping_daemon (guestfs_h *g);\n"
12753 "\n"
12754 msgstr ""
12755
12756 # type: textblock
12757 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3277
12758 msgid ""
12759 "This is a test probe into the guestfs daemon running inside the qemu "
12760 "subprocess.  Calling this function checks that the daemon responds to the "
12761 "ping message, without affecting the daemon or attached block device(s) in "
12762 "any other way."
12763 msgstr ""
12764
12765 # type: =head2
12766 #: ../src/guestfs-actions.pod:4911
12767 msgid "guestfs_pread"
12768 msgstr ""
12769
12770 # type: verbatim
12771 #: ../src/guestfs-actions.pod:4913
12772 #, no-wrap
12773 msgid ""
12774 " char *\n"
12775 " guestfs_pread (guestfs_h *g,\n"
12776 "                const char *path,\n"
12777 "                int count,\n"
12778 "                int64_t offset,\n"
12779 "                size_t *size_r);\n"
12780 "\n"
12781 msgstr ""
12782
12783 # type: textblock
12784 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3286
12785 msgid ""
12786 "This command lets you read part of a file.  It reads C<count> bytes of the "
12787 "file, starting at C<offset>, from file C<path>."
12788 msgstr ""
12789
12790 # type: textblock
12791 #: ../src/guestfs-actions.pod:4923 ../src/guestfs-actions.pod:4949
12792 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3304
12793 msgid ""
12794 "This may read fewer bytes than requested.  For further details see the "
12795 "L<pread(2)> system call."
12796 msgstr ""
12797
12798 # type: textblock
12799 #: ../src/guestfs-actions.pod:4926
12800 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12801 msgstr ""
12802
12803 # type: =head2
12804 #: ../src/guestfs-actions.pod:4937
12805 msgid "guestfs_pread_device"
12806 msgstr ""
12807
12808 # type: verbatim
12809 #: ../src/guestfs-actions.pod:4939
12810 #, no-wrap
12811 msgid ""
12812 " char *\n"
12813 " guestfs_pread_device (guestfs_h *g,\n"
12814 "                       const char *device,\n"
12815 "                       int count,\n"
12816 "                       int64_t offset,\n"
12817 "                       size_t *size_r);\n"
12818 "\n"
12819 msgstr ""
12820
12821 # type: textblock
12822 #: ../src/guestfs-actions.pod:4946 ../fish/guestfish-actions.pod:3301
12823 msgid ""
12824 "This command lets you read part of a file.  It reads C<count> bytes of "
12825 "C<device>, starting at C<offset>."
12826 msgstr ""
12827
12828 # type: textblock
12829 #: ../src/guestfs-actions.pod:4952
12830 msgid "See also C<guestfs_pread>."
12831 msgstr ""
12832
12833 # type: textblock
12834 #: ../src/guestfs-actions.pod:4961
12835 msgid "(Added in 1.5.21)"
12836 msgstr ""
12837
12838 # type: =head2
12839 #: ../src/guestfs-actions.pod:4963
12840 msgid "guestfs_pvcreate"
12841 msgstr ""
12842
12843 # type: verbatim
12844 #: ../src/guestfs-actions.pod:4965
12845 #, no-wrap
12846 msgid ""
12847 " int\n"
12848 " guestfs_pvcreate (guestfs_h *g,\n"
12849 "                   const char *device);\n"
12850 "\n"
12851 msgstr ""
12852
12853 # type: textblock
12854 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3316
12855 msgid ""
12856 "This creates an LVM physical volume on the named C<device>, where C<device> "
12857 "should usually be a partition name such as C</dev/sda1>."
12858 msgstr ""
12859
12860 # type: =head2
12861 #: ../src/guestfs-actions.pod:4977
12862 msgid "guestfs_pvremove"
12863 msgstr ""
12864
12865 # type: verbatim
12866 #: ../src/guestfs-actions.pod:4979
12867 #, no-wrap
12868 msgid ""
12869 " int\n"
12870 " guestfs_pvremove (guestfs_h *g,\n"
12871 "                   const char *device);\n"
12872 "\n"
12873 msgstr ""
12874
12875 # type: textblock
12876 #: ../src/guestfs-actions.pod:4983 ../fish/guestfish-actions.pod:3324
12877 msgid ""
12878 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12879 "it."
12880 msgstr ""
12881
12882 # type: textblock
12883 #: ../src/guestfs-actions.pod:4986 ../fish/guestfish-actions.pod:3327
12884 msgid ""
12885 "The implementation uses the C<pvremove> command which refuses to wipe "
12886 "physical volumes that contain any volume groups, so you have to remove those "
12887 "first."
12888 msgstr ""
12889
12890 # type: =head2
12891 #: ../src/guestfs-actions.pod:4994
12892 msgid "guestfs_pvresize"
12893 msgstr ""
12894
12895 # type: verbatim
12896 #: ../src/guestfs-actions.pod:4996
12897 #, no-wrap
12898 msgid ""
12899 " int\n"
12900 " guestfs_pvresize (guestfs_h *g,\n"
12901 "                   const char *device);\n"
12902 "\n"
12903 msgstr ""
12904
12905 # type: textblock
12906 #: ../src/guestfs-actions.pod:5000 ../fish/guestfish-actions.pod:3335
12907 msgid ""
12908 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12909 "the new size of the underlying device."
12910 msgstr ""
12911
12912 # type: =head2
12913 #: ../src/guestfs-actions.pod:5007
12914 msgid "guestfs_pvresize_size"
12915 msgstr ""
12916
12917 # type: verbatim
12918 #: ../src/guestfs-actions.pod:5009
12919 #, no-wrap
12920 msgid ""
12921 " int\n"
12922 " guestfs_pvresize_size (guestfs_h *g,\n"
12923 "                        const char *device,\n"
12924 "                        int64_t size);\n"
12925 "\n"
12926 msgstr ""
12927
12928 # type: textblock
12929 #: ../src/guestfs-actions.pod:5014
12930 msgid ""
12931 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12932 "specify the new size (in bytes) explicitly."
12933 msgstr ""
12934
12935 # type: =head2
12936 #: ../src/guestfs-actions.pod:5021
12937 msgid "guestfs_pvs"
12938 msgstr ""
12939
12940 # type: verbatim
12941 #: ../src/guestfs-actions.pod:5023
12942 #, no-wrap
12943 msgid ""
12944 " char **\n"
12945 " guestfs_pvs (guestfs_h *g);\n"
12946 "\n"
12947 msgstr ""
12948
12949 # type: textblock
12950 #: ../src/guestfs-actions.pod:5026 ../fish/guestfish-actions.pod:3349
12951 msgid ""
12952 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12953 "(8)> command."
12954 msgstr ""
12955
12956 # type: textblock
12957 #: ../src/guestfs-actions.pod:5029 ../fish/guestfish-actions.pod:3352
12958 msgid ""
12959 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12960 "sda2>)."
12961 msgstr ""
12962
12963 # type: textblock
12964 #: ../src/guestfs-actions.pod:5032
12965 msgid "See also C<guestfs_pvs_full>."
12966 msgstr ""
12967
12968 # type: =head2
12969 #: ../src/guestfs-actions.pod:5040
12970 msgid "guestfs_pvs_full"
12971 msgstr ""
12972
12973 # type: verbatim
12974 #: ../src/guestfs-actions.pod:5042
12975 #, no-wrap
12976 msgid ""
12977 " struct guestfs_lvm_pv_list *\n"
12978 " guestfs_pvs_full (guestfs_h *g);\n"
12979 "\n"
12980 msgstr ""
12981
12982 # type: textblock
12983 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3361
12984 msgid ""
12985 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12986 "(8)> command.  The \"full\" version includes all fields."
12987 msgstr ""
12988
12989 # type: textblock
12990 #: ../src/guestfs-actions.pod:5048
12991 msgid ""
12992 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12993 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12994 msgstr ""
12995
12996 # type: =head2
12997 #: ../src/guestfs-actions.pod:5054
12998 msgid "guestfs_pvuuid"
12999 msgstr ""
13000
13001 # type: verbatim
13002 #: ../src/guestfs-actions.pod:5056
13003 #, no-wrap
13004 msgid ""
13005 " char *\n"
13006 " guestfs_pvuuid (guestfs_h *g,\n"
13007 "                 const char *device);\n"
13008 "\n"
13009 msgstr ""
13010
13011 # type: textblock
13012 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3368
13013 msgid "This command returns the UUID of the LVM PV C<device>."
13014 msgstr ""
13015
13016 # type: =head2
13017 #: ../src/guestfs-actions.pod:5067
13018 msgid "guestfs_pwrite"
13019 msgstr ""
13020
13021 # type: verbatim
13022 #: ../src/guestfs-actions.pod:5069
13023 #, no-wrap
13024 msgid ""
13025 " int\n"
13026 " guestfs_pwrite (guestfs_h *g,\n"
13027 "                 const char *path,\n"
13028 "                 const char *content,\n"
13029 "                 size_t content_size,\n"
13030 "                 int64_t offset);\n"
13031 "\n"
13032 msgstr ""
13033
13034 # type: textblock
13035 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3374
13036 msgid ""
13037 "This command writes to part of a file.  It writes the data buffer C<content> "
13038 "to the file C<path> starting at offset C<offset>."
13039 msgstr ""
13040
13041 # type: textblock
13042 #: ../src/guestfs-actions.pod:5079 ../fish/guestfish-actions.pod:3377
13043 msgid ""
13044 "This command implements the L<pwrite(2)> system call, and like that system "
13045 "call it may not write the full data requested.  The return value is the "
13046 "number of bytes that were actually written to the file.  This could even be "
13047 "0, although short writes are unlikely for regular files in ordinary "
13048 "circumstances."
13049 msgstr ""
13050
13051 # type: textblock
13052 #: ../src/guestfs-actions.pod:5085
13053 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
13054 msgstr ""
13055
13056 # type: =head2
13057 #: ../src/guestfs-actions.pod:5094
13058 msgid "guestfs_pwrite_device"
13059 msgstr ""
13060
13061 # type: verbatim
13062 #: ../src/guestfs-actions.pod:5096
13063 #, no-wrap
13064 msgid ""
13065 " int\n"
13066 " guestfs_pwrite_device (guestfs_h *g,\n"
13067 "                        const char *device,\n"
13068 "                        const char *content,\n"
13069 "                        size_t content_size,\n"
13070 "                        int64_t offset);\n"
13071 "\n"
13072 msgstr ""
13073
13074 # type: textblock
13075 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3392
13076 msgid ""
13077 "This command writes to part of a device.  It writes the data buffer "
13078 "C<content> to C<device> starting at offset C<offset>."
13079 msgstr ""
13080
13081 # type: textblock
13082 #: ../src/guestfs-actions.pod:5106 ../fish/guestfish-actions.pod:3395
13083 msgid ""
13084 "This command implements the L<pwrite(2)> system call, and like that system "
13085 "call it may not write the full data requested (although short writes to disk "
13086 "devices and partitions are probably impossible with standard Linux kernels)."
13087 msgstr ""
13088
13089 # type: textblock
13090 #: ../src/guestfs-actions.pod:5111
13091 msgid "See also C<guestfs_pwrite>."
13092 msgstr ""
13093
13094 # type: textblock
13095 #: ../src/guestfs-actions.pod:5118
13096 msgid "(Added in 1.5.20)"
13097 msgstr ""
13098
13099 # type: =head2
13100 #: ../src/guestfs-actions.pod:5120
13101 msgid "guestfs_read_file"
13102 msgstr ""
13103
13104 # type: verbatim
13105 #: ../src/guestfs-actions.pod:5122
13106 #, no-wrap
13107 msgid ""
13108 " char *\n"
13109 " guestfs_read_file (guestfs_h *g,\n"
13110 "                    const char *path,\n"
13111 "                    size_t *size_r);\n"
13112 "\n"
13113 msgstr ""
13114
13115 # type: textblock
13116 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3409
13117 msgid "This calls returns the contents of the file C<path> as a buffer."
13118 msgstr ""
13119
13120 # type: textblock
13121 #: ../src/guestfs-actions.pod:5130
13122 msgid ""
13123 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
13124 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
13125 "function is limited in the total size of file that can be handled."
13126 msgstr ""
13127
13128 # type: textblock
13129 #: ../src/guestfs-actions.pod:5142
13130 msgid "(Added in 1.0.63)"
13131 msgstr ""
13132
13133 # type: =head2
13134 #: ../src/guestfs-actions.pod:5144
13135 msgid "guestfs_read_lines"
13136 msgstr ""
13137
13138 # type: verbatim
13139 #: ../src/guestfs-actions.pod:5146
13140 #, no-wrap
13141 msgid ""
13142 " char **\n"
13143 " guestfs_read_lines (guestfs_h *g,\n"
13144 "                     const char *path);\n"
13145 "\n"
13146 msgstr ""
13147
13148 # type: textblock
13149 #: ../src/guestfs-actions.pod:5152 ../fish/guestfish-actions.pod:3426
13150 msgid ""
13151 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13152 "C<CRLF> character sequences are I<not> returned."
13153 msgstr ""
13154
13155 # type: textblock
13156 #: ../src/guestfs-actions.pod:5155
13157 msgid ""
13158 "Note that this function cannot correctly handle binary files (specifically, "
13159 "files containing C<\\0> character which is treated as end of line).  For "
13160 "those you need to use the C<guestfs_read_file> function which has a more "
13161 "complex interface."
13162 msgstr ""
13163
13164 # type: =head2
13165 #: ../src/guestfs-actions.pod:5166
13166 msgid "guestfs_readdir"
13167 msgstr ""
13168
13169 # type: verbatim
13170 #: ../src/guestfs-actions.pod:5168
13171 #, no-wrap
13172 msgid ""
13173 " struct guestfs_dirent_list *\n"
13174 " guestfs_readdir (guestfs_h *g,\n"
13175 "                  const char *dir);\n"
13176 "\n"
13177 msgstr ""
13178
13179 # type: textblock
13180 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3438
13181 msgid "This returns the list of directory entries in directory C<dir>."
13182 msgstr ""
13183
13184 # type: textblock
13185 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3440
13186 msgid ""
13187 "All entries in the directory are returned, including C<.> and C<..>.  The "
13188 "entries are I<not> sorted, but returned in the same order as the underlying "
13189 "filesystem."
13190 msgstr ""
13191
13192 # type: textblock
13193 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3444
13194 msgid ""
13195 "Also this call returns basic file type information about each file.  The "
13196 "C<ftyp> field will contain one of the following characters:"
13197 msgstr ""
13198
13199 # type: =item
13200 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3449
13201 msgid "'b'"
13202 msgstr ""
13203
13204 # type: textblock
13205 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3451
13206 msgid "Block special"
13207 msgstr ""
13208
13209 # type: =item
13210 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:3453
13211 msgid "'c'"
13212 msgstr ""
13213
13214 # type: textblock
13215 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3455
13216 msgid "Char special"
13217 msgstr ""
13218
13219 # type: =item
13220 #: ../src/guestfs-actions.pod:5191 ../fish/guestfish-actions.pod:3457
13221 msgid "'d'"
13222 msgstr ""
13223
13224 # type: textblock
13225 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3459
13226 msgid "Directory"
13227 msgstr ""
13228
13229 # type: =item
13230 #: ../src/guestfs-actions.pod:5195 ../fish/guestfish-actions.pod:3461
13231 msgid "'f'"
13232 msgstr ""
13233
13234 # type: textblock
13235 #: ../src/guestfs-actions.pod:5197 ../fish/guestfish-actions.pod:3463
13236 msgid "FIFO (named pipe)"
13237 msgstr ""
13238
13239 # type: =item
13240 #: ../src/guestfs-actions.pod:5199 ../fish/guestfish-actions.pod:3465
13241 msgid "'l'"
13242 msgstr ""
13243
13244 # type: textblock
13245 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3467
13246 msgid "Symbolic link"
13247 msgstr ""
13248
13249 # type: =item
13250 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3469
13251 msgid "'r'"
13252 msgstr ""
13253
13254 # type: textblock
13255 #: ../src/guestfs-actions.pod:5205 ../fish/guestfish-actions.pod:3471
13256 msgid "Regular file"
13257 msgstr ""
13258
13259 # type: =item
13260 #: ../src/guestfs-actions.pod:5207 ../fish/guestfish-actions.pod:3473
13261 msgid "'s'"
13262 msgstr ""
13263
13264 # type: textblock
13265 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3475
13266 msgid "Socket"
13267 msgstr ""
13268
13269 # type: =item
13270 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:3477
13271 msgid "'u'"
13272 msgstr ""
13273
13274 # type: textblock
13275 #: ../src/guestfs-actions.pod:5213 ../fish/guestfish-actions.pod:3479
13276 msgid "Unknown file type"
13277 msgstr ""
13278
13279 # type: =item
13280 #: ../src/guestfs-actions.pod:5215 ../fish/guestfish-actions.pod:3481
13281 msgid "'?'"
13282 msgstr ""
13283
13284 # type: textblock
13285 #: ../src/guestfs-actions.pod:5217 ../fish/guestfish-actions.pod:3483
13286 msgid ""
13287 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13288 msgstr ""
13289
13290 # type: textblock
13291 #: ../src/guestfs-actions.pod:5222
13292 msgid ""
13293 "This function is primarily intended for use by programs.  To get a simple "
13294 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13295 "consumption, use C<guestfs_ll>."
13296 msgstr ""
13297
13298 # type: textblock
13299 #: ../src/guestfs-actions.pod:5226
13300 msgid ""
13301 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13302 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13303 msgstr ""
13304
13305 # type: =head2
13306 #: ../src/guestfs-actions.pod:5232
13307 msgid "guestfs_readlink"
13308 msgstr ""
13309
13310 # type: verbatim
13311 #: ../src/guestfs-actions.pod:5234
13312 #, no-wrap
13313 msgid ""
13314 " char *\n"
13315 " guestfs_readlink (guestfs_h *g,\n"
13316 "                   const char *path);\n"
13317 "\n"
13318 msgstr ""
13319
13320 # type: textblock
13321 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3496
13322 msgid "This command reads the target of a symbolic link."
13323 msgstr ""
13324
13325 # type: =head2
13326 #: ../src/guestfs-actions.pod:5245
13327 msgid "guestfs_readlinklist"
13328 msgstr ""
13329
13330 # type: verbatim
13331 #: ../src/guestfs-actions.pod:5247
13332 #, no-wrap
13333 msgid ""
13334 " char **\n"
13335 " guestfs_readlinklist (guestfs_h *g,\n"
13336 "                       const char *path,\n"
13337 "                       char *const *names);\n"
13338 "\n"
13339 msgstr ""
13340
13341 # type: textblock
13342 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:3502
13343 msgid ""
13344 "This call allows you to do a C<readlink> operation on multiple files, where "
13345 "all files are in the directory C<path>.  C<names> is the list of files from "
13346 "this directory."
13347 msgstr ""
13348
13349 # type: textblock
13350 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:3506
13351 msgid ""
13352 "On return you get a list of strings, with a one-to-one correspondence to the "
13353 "C<names> list.  Each string is the value of the symbolic link."
13354 msgstr ""
13355
13356 # type: textblock
13357 #: ../src/guestfs-actions.pod:5260 ../fish/guestfish-actions.pod:3510
13358 msgid ""
13359 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13360 "result string is the empty string C<\"\">.  However the whole operation is "
13361 "completed even if there were C<readlink(2)> errors, and so you can call this "
13362 "function with names where you don't know if they are symbolic links already "
13363 "(albeit slightly less efficient)."
13364 msgstr ""
13365
13366 # type: textblock
13367 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3517
13368 msgid ""
13369 "This call is intended for programs that want to efficiently list a directory "
13370 "contents without making many round-trips.  Very long directory listings "
13371 "might cause the protocol message size to be exceeded, causing this call to "
13372 "fail.  The caller must split up such requests into smaller groups of names."
13373 msgstr ""
13374
13375 # type: =head2
13376 #: ../src/guestfs-actions.pod:5280
13377 msgid "guestfs_realpath"
13378 msgstr ""
13379
13380 # type: verbatim
13381 #: ../src/guestfs-actions.pod:5282
13382 #, no-wrap
13383 msgid ""
13384 " char *\n"
13385 " guestfs_realpath (guestfs_h *g,\n"
13386 "                   const char *path);\n"
13387 "\n"
13388 msgstr ""
13389
13390 # type: textblock
13391 #: ../src/guestfs-actions.pod:5286 ../fish/guestfish-actions.pod:3528
13392 msgid ""
13393 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13394 "has no C<.>, C<..> or symbolic link path elements."
13395 msgstr ""
13396
13397 # type: =head2
13398 #: ../src/guestfs-actions.pod:5294
13399 msgid "guestfs_removexattr"
13400 msgstr ""
13401
13402 # type: verbatim
13403 #: ../src/guestfs-actions.pod:5296
13404 #, no-wrap
13405 msgid ""
13406 " int\n"
13407 " guestfs_removexattr (guestfs_h *g,\n"
13408 "                      const char *xattr,\n"
13409 "                      const char *path);\n"
13410 "\n"
13411 msgstr ""
13412
13413 # type: textblock
13414 #: ../src/guestfs-actions.pod:5301 ../fish/guestfish-actions.pod:3535
13415 msgid ""
13416 "This call removes the extended attribute named C<xattr> of the file C<path>."
13417 msgstr ""
13418
13419 # type: textblock
13420 #: ../src/guestfs-actions.pod:5304
13421 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13422 msgstr ""
13423
13424 # type: =head2
13425 #: ../src/guestfs-actions.pod:5310
13426 msgid "guestfs_resize2fs"
13427 msgstr ""
13428
13429 # type: verbatim
13430 #: ../src/guestfs-actions.pod:5312
13431 #, no-wrap
13432 msgid ""
13433 " int\n"
13434 " guestfs_resize2fs (guestfs_h *g,\n"
13435 "                    const char *device);\n"
13436 "\n"
13437 msgstr ""
13438
13439 # type: textblock
13440 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3544
13441 msgid ""
13442 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13443 "underlying device."
13444 msgstr ""
13445
13446 # type: textblock
13447 #: ../src/guestfs-actions.pod:5319
13448 msgid ""
13449 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13450 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13451 "sometimes gives an error about this and sometimes not.  In any case, it is "
13452 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13453 msgstr ""
13454
13455 # type: =head2
13456 #: ../src/guestfs-actions.pod:5329
13457 msgid "guestfs_resize2fs_size"
13458 msgstr ""
13459
13460 # type: verbatim
13461 #: ../src/guestfs-actions.pod:5331
13462 #, no-wrap
13463 msgid ""
13464 " int\n"
13465 " guestfs_resize2fs_size (guestfs_h *g,\n"
13466 "                         const char *device,\n"
13467 "                         int64_t size);\n"
13468 "\n"
13469 msgstr ""
13470
13471 # type: textblock
13472 #: ../src/guestfs-actions.pod:5336
13473 msgid ""
13474 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13475 "to specify the new size (in bytes) explicitly."
13476 msgstr ""
13477
13478 # type: =head2
13479 #: ../src/guestfs-actions.pod:5343
13480 msgid "guestfs_rm"
13481 msgstr ""
13482
13483 # type: verbatim
13484 #: ../src/guestfs-actions.pod:5345
13485 #, no-wrap
13486 msgid ""
13487 " int\n"
13488 " guestfs_rm (guestfs_h *g,\n"
13489 "             const char *path);\n"
13490 "\n"
13491 msgstr ""
13492
13493 # type: textblock
13494 #: ../src/guestfs-actions.pod:5349 ../fish/guestfish-actions.pod:3564
13495 msgid "Remove the single file C<path>."
13496 msgstr ""
13497
13498 # type: =head2
13499 #: ../src/guestfs-actions.pod:5355
13500 msgid "guestfs_rm_rf"
13501 msgstr ""
13502
13503 # type: verbatim
13504 #: ../src/guestfs-actions.pod:5357
13505 #, no-wrap
13506 msgid ""
13507 " int\n"
13508 " guestfs_rm_rf (guestfs_h *g,\n"
13509 "                const char *path);\n"
13510 "\n"
13511 msgstr ""
13512
13513 # type: textblock
13514 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3570
13515 msgid ""
13516 "Remove the file or directory C<path>, recursively removing the contents if "
13517 "its a directory.  This is like the C<rm -rf> shell command."
13518 msgstr ""
13519
13520 # type: =head2
13521 #: ../src/guestfs-actions.pod:5369
13522 msgid "guestfs_rmdir"
13523 msgstr ""
13524
13525 # type: verbatim
13526 #: ../src/guestfs-actions.pod:5371
13527 #, no-wrap
13528 msgid ""
13529 " int\n"
13530 " guestfs_rmdir (guestfs_h *g,\n"
13531 "                const char *path);\n"
13532 "\n"
13533 msgstr ""
13534
13535 # type: textblock
13536 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:3578
13537 msgid "Remove the single directory C<path>."
13538 msgstr ""
13539
13540 # type: =head2
13541 #: ../src/guestfs-actions.pod:5381
13542 msgid "guestfs_rmmountpoint"
13543 msgstr ""
13544
13545 # type: verbatim
13546 #: ../src/guestfs-actions.pod:5383
13547 #, no-wrap
13548 msgid ""
13549 " int\n"
13550 " guestfs_rmmountpoint (guestfs_h *g,\n"
13551 "                       const char *exemptpath);\n"
13552 "\n"
13553 msgstr ""
13554
13555 # type: textblock
13556 #: ../src/guestfs-actions.pod:5387
13557 msgid ""
13558 "This calls removes a mountpoint that was previously created with "
13559 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13560 msgstr ""
13561
13562 # type: =head2
13563 #: ../src/guestfs-actions.pod:5395
13564 msgid "guestfs_scrub_device"
13565 msgstr ""
13566
13567 # type: verbatim
13568 #: ../src/guestfs-actions.pod:5397
13569 #, no-wrap
13570 msgid ""
13571 " int\n"
13572 " guestfs_scrub_device (guestfs_h *g,\n"
13573 "                       const char *device);\n"
13574 "\n"
13575 msgstr ""
13576
13577 # type: textblock
13578 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3592
13579 msgid ""
13580 "This command writes patterns over C<device> to make data retrieval more "
13581 "difficult."
13582 msgstr ""
13583
13584 # type: textblock
13585 #: ../src/guestfs-actions.pod:5404 ../src/guestfs-actions.pod:5425
13586 #: ../src/guestfs-actions.pod:5444 ../fish/guestfish-actions.pod:3595
13587 #: ../fish/guestfish-actions.pod:3610 ../fish/guestfish-actions.pod:3623
13588 msgid ""
13589 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13590 "more details."
13591 msgstr ""
13592
13593 # type: textblock
13594 #: ../src/guestfs-actions.pod:5412 ../src/guestfs-actions.pod:5430
13595 #: ../src/guestfs-actions.pod:5449
13596 msgid "(Added in 1.0.52)"
13597 msgstr ""
13598
13599 # type: =head2
13600 #: ../src/guestfs-actions.pod:5414
13601 msgid "guestfs_scrub_file"
13602 msgstr ""
13603
13604 # type: verbatim
13605 #: ../src/guestfs-actions.pod:5416
13606 #, no-wrap
13607 msgid ""
13608 " int\n"
13609 " guestfs_scrub_file (guestfs_h *g,\n"
13610 "                     const char *file);\n"
13611 "\n"
13612 msgstr ""
13613
13614 # type: textblock
13615 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3605
13616 msgid ""
13617 "This command writes patterns over a file to make data retrieval more "
13618 "difficult."
13619 msgstr ""
13620
13621 # type: textblock
13622 #: ../src/guestfs-actions.pod:5423 ../fish/guestfish-actions.pod:3608
13623 msgid "The file is I<removed> after scrubbing."
13624 msgstr ""
13625
13626 # type: =head2
13627 #: ../src/guestfs-actions.pod:5432
13628 msgid "guestfs_scrub_freespace"
13629 msgstr ""
13630
13631 # type: verbatim
13632 #: ../src/guestfs-actions.pod:5434
13633 #, no-wrap
13634 msgid ""
13635 " int\n"
13636 " guestfs_scrub_freespace (guestfs_h *g,\n"
13637 "                          const char *dir);\n"
13638 "\n"
13639 msgstr ""
13640
13641 # type: textblock
13642 #: ../src/guestfs-actions.pod:5438
13643 msgid ""
13644 "This command creates the directory C<dir> and then fills it with files until "
13645 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13646 "and deletes them.  The intention is to scrub any free space on the partition "
13647 "containing C<dir>."
13648 msgstr ""
13649
13650 # type: =head2
13651 #: ../src/guestfs-actions.pod:5451
13652 msgid "guestfs_set_append"
13653 msgstr ""
13654
13655 # type: verbatim
13656 #: ../src/guestfs-actions.pod:5453
13657 #, no-wrap
13658 msgid ""
13659 " int\n"
13660 " guestfs_set_append (guestfs_h *g,\n"
13661 "                     const char *append);\n"
13662 "\n"
13663 msgstr ""
13664
13665 # type: textblock
13666 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3632
13667 msgid ""
13668 "This function is used to add additional options to the guest kernel command "
13669 "line."
13670 msgstr ""
13671
13672 # type: textblock
13673 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:3635
13674 msgid ""
13675 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13676 "environment variable."
13677 msgstr ""
13678
13679 # type: textblock
13680 #: ../src/guestfs-actions.pod:5463 ../fish/guestfish-actions.pod:3638
13681 msgid ""
13682 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13683 "(libguestfs always adds a few of its own)."
13684 msgstr ""
13685
13686 # type: =head2
13687 #: ../src/guestfs-actions.pod:5470
13688 msgid "guestfs_set_autosync"
13689 msgstr ""
13690
13691 # type: verbatim
13692 #: ../src/guestfs-actions.pod:5472
13693 #, no-wrap
13694 msgid ""
13695 " int\n"
13696 " guestfs_set_autosync (guestfs_h *g,\n"
13697 "                       int autosync);\n"
13698 "\n"
13699 msgstr ""
13700
13701 # type: textblock
13702 #: ../src/guestfs-actions.pod:5476
13703 msgid ""
13704 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13705 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13706 "the handle is closed (also if the program exits without closing handles)."
13707 msgstr ""
13708
13709 # type: textblock
13710 #: ../src/guestfs-actions.pod:5481 ../fish/guestfish-actions.pod:3652
13711 msgid ""
13712 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13713 "disabled by default)."
13714 msgstr ""
13715
13716 # type: =head2
13717 #: ../src/guestfs-actions.pod:5488
13718 msgid "guestfs_set_direct"
13719 msgstr ""
13720
13721 # type: verbatim
13722 #: ../src/guestfs-actions.pod:5490
13723 #, no-wrap
13724 msgid ""
13725 " int\n"
13726 " guestfs_set_direct (guestfs_h *g,\n"
13727 "                     int direct);\n"
13728 "\n"
13729 msgstr ""
13730
13731 # type: textblock
13732 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:3661
13733 msgid ""
13734 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13735 "passed directly through to the appliance once it is launched."
13736 msgstr ""
13737
13738 # type: textblock
13739 #: ../src/guestfs-actions.pod:5498
13740 msgid ""
13741 "One consequence of this is that log messages aren't caught by the library "
13742 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13743 "stdout."
13744 msgstr ""
13745
13746 # type: textblock
13747 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:3669
13748 msgid "You probably don't want to use this unless you know what you are doing."
13749 msgstr ""
13750
13751 # type: textblock
13752 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3672
13753 msgid "The default is disabled."
13754 msgstr ""
13755
13756 # type: =head2
13757 #: ../src/guestfs-actions.pod:5511
13758 msgid "guestfs_set_e2label"
13759 msgstr ""
13760
13761 # type: verbatim
13762 #: ../src/guestfs-actions.pod:5513
13763 #, no-wrap
13764 msgid ""
13765 " int\n"
13766 " guestfs_set_e2label (guestfs_h *g,\n"
13767 "                      const char *device,\n"
13768 "                      const char *label);\n"
13769 "\n"
13770 msgstr ""
13771
13772 # type: textblock
13773 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3678
13774 msgid ""
13775 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13776 "C<label>.  Filesystem labels are limited to 16 characters."
13777 msgstr ""
13778
13779 # type: textblock
13780 #: ../src/guestfs-actions.pod:5522
13781 msgid ""
13782 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13783 "the existing label on a filesystem."
13784 msgstr ""
13785
13786 # type: =head2
13787 #: ../src/guestfs-actions.pod:5529
13788 msgid "guestfs_set_e2uuid"
13789 msgstr ""
13790
13791 # type: verbatim
13792 #: ../src/guestfs-actions.pod:5531
13793 #, no-wrap
13794 msgid ""
13795 " int\n"
13796 " guestfs_set_e2uuid (guestfs_h *g,\n"
13797 "                     const char *device,\n"
13798 "                     const char *uuid);\n"
13799 "\n"
13800 msgstr ""
13801
13802 # type: textblock
13803 #: ../src/guestfs-actions.pod:5536 ../fish/guestfish-actions.pod:3689
13804 msgid ""
13805 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13806 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13807 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13808 msgstr ""
13809
13810 # type: textblock
13811 #: ../src/guestfs-actions.pod:5541
13812 msgid ""
13813 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13814 "the existing UUID of a filesystem."
13815 msgstr ""
13816
13817 # type: =head2
13818 #: ../src/guestfs-actions.pod:5548
13819 msgid "guestfs_set_memsize"
13820 msgstr ""
13821
13822 # type: verbatim
13823 #: ../src/guestfs-actions.pod:5550
13824 #, no-wrap
13825 msgid ""
13826 " int\n"
13827 " guestfs_set_memsize (guestfs_h *g,\n"
13828 "                      int memsize);\n"
13829 "\n"
13830 msgstr ""
13831
13832 # type: textblock
13833 #: ../src/guestfs-actions.pod:5554
13834 msgid ""
13835 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13836 "This only has any effect if called before C<guestfs_launch>."
13837 msgstr ""
13838
13839 # type: textblock
13840 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3707
13841 msgid ""
13842 "You can also change this by setting the environment variable "
13843 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13844 msgstr ""
13845
13846 # type: =head2
13847 #: ../src/guestfs-actions.pod:5569
13848 msgid "guestfs_set_network"
13849 msgstr ""
13850
13851 # type: verbatim
13852 #: ../src/guestfs-actions.pod:5571
13853 #, no-wrap
13854 msgid ""
13855 " int\n"
13856 " guestfs_set_network (guestfs_h *g,\n"
13857 "                      int network);\n"
13858 "\n"
13859 msgstr ""
13860
13861 # type: textblock
13862 #: ../src/guestfs-actions.pod:5575 ../fish/guestfish-actions.pod:3720
13863 msgid ""
13864 "If C<network> is true, then the network is enabled in the libguestfs "
13865 "appliance.  The default is false."
13866 msgstr ""
13867
13868 # type: textblock
13869 #: ../src/guestfs-actions.pod:5578 ../fish/guestfish-actions.pod:3723
13870 msgid ""
13871 "This affects whether commands are able to access the network (see L<guestfs"
13872 "(3)/RUNNING COMMANDS>)."
13873 msgstr ""
13874
13875 # type: textblock
13876 #: ../src/guestfs-actions.pod:5581
13877 msgid ""
13878 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13879 "effect."
13880 msgstr ""
13881
13882 # type: =head2
13883 #: ../src/guestfs-actions.pod:5588
13884 msgid "guestfs_set_path"
13885 msgstr ""
13886
13887 # type: verbatim
13888 #: ../src/guestfs-actions.pod:5590
13889 #, no-wrap
13890 msgid ""
13891 " int\n"
13892 " guestfs_set_path (guestfs_h *g,\n"
13893 "                   const char *searchpath);\n"
13894 "\n"
13895 msgstr ""
13896
13897 # type: textblock
13898 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3735
13899 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13900 msgstr ""
13901
13902 # type: textblock
13903 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:3737
13904 msgid ""
13905 "The default is C<$libdir/guestfs> unless overridden by setting "
13906 "C<LIBGUESTFS_PATH> environment variable."
13907 msgstr ""
13908
13909 # type: textblock
13910 #: ../src/guestfs-actions.pod:5599 ../fish/guestfish-actions.pod:3740
13911 msgid "Setting C<path> to C<NULL> restores the default path."
13912 msgstr ""
13913
13914 # type: =head2
13915 #: ../src/guestfs-actions.pod:5605
13916 msgid "guestfs_set_qemu"
13917 msgstr ""
13918
13919 # type: verbatim
13920 #: ../src/guestfs-actions.pod:5607
13921 #, no-wrap
13922 msgid ""
13923 " int\n"
13924 " guestfs_set_qemu (guestfs_h *g,\n"
13925 "                   const char *qemu);\n"
13926 "\n"
13927 msgstr ""
13928
13929 # type: textblock
13930 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3748
13931 msgid "Set the qemu binary that we will use."
13932 msgstr ""
13933
13934 # type: textblock
13935 #: ../src/guestfs-actions.pod:5613 ../fish/guestfish-actions.pod:3750
13936 msgid ""
13937 "The default is chosen when the library was compiled by the configure script."
13938 msgstr ""
13939
13940 # type: textblock
13941 #: ../src/guestfs-actions.pod:5616 ../fish/guestfish-actions.pod:3753
13942 msgid ""
13943 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13944 "variable."
13945 msgstr ""
13946
13947 # type: textblock
13948 #: ../src/guestfs-actions.pod:5619 ../fish/guestfish-actions.pod:3756
13949 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13950 msgstr ""
13951
13952 # type: textblock
13953 #: ../src/guestfs-actions.pod:5621 ../fish/guestfish-actions.pod:3758
13954 msgid ""
13955 "Note that you should call this function as early as possible after creating "
13956 "the handle.  This is because some pre-launch operations depend on testing "
13957 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13958 "don't retest features, and so you might see inconsistent results.  Using the "
13959 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13960 "the qemu binary at the same time as the handle is created."
13961 msgstr ""
13962
13963 # type: =head2
13964 #: ../src/guestfs-actions.pod:5633
13965 msgid "guestfs_set_recovery_proc"
13966 msgstr ""
13967
13968 # type: verbatim
13969 #: ../src/guestfs-actions.pod:5635
13970 #, no-wrap
13971 msgid ""
13972 " int\n"
13973 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13974 "                            int recoveryproc);\n"
13975 "\n"
13976 msgstr ""
13977
13978 # type: textblock
13979 #: ../src/guestfs-actions.pod:5639
13980 msgid ""
13981 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13982 "not create a recovery process.  The purpose of the recovery process is to "
13983 "stop runaway qemu processes in the case where the main program aborts "
13984 "abruptly."
13985 msgstr ""
13986
13987 # type: textblock
13988 #: ../src/guestfs-actions.pod:5644
13989 msgid ""
13990 "This only has any effect if called before C<guestfs_launch>, and the default "
13991 "is true."
13992 msgstr ""
13993
13994 # type: textblock
13995 #: ../src/guestfs-actions.pod:5647 ../fish/guestfish-actions.pod:3780
13996 msgid ""
13997 "About the only time when you would want to disable this is if the main "
13998 "process will fork itself into the background (\"daemonize\" itself).  In "
13999 "this case the recovery process thinks that the main program has disappeared "
14000 "and so kills qemu, which is not very helpful."
14001 msgstr ""
14002
14003 # type: =head2
14004 #: ../src/guestfs-actions.pod:5657
14005 msgid "guestfs_set_selinux"
14006 msgstr ""
14007
14008 # type: verbatim
14009 #: ../src/guestfs-actions.pod:5659
14010 #, no-wrap
14011 msgid ""
14012 " int\n"
14013 " guestfs_set_selinux (guestfs_h *g,\n"
14014 "                      int selinux);\n"
14015 "\n"
14016 msgstr ""
14017
14018 # type: textblock
14019 #: ../src/guestfs-actions.pod:5663 ../fish/guestfish-actions.pod:3792
14020 msgid ""
14021 "This sets the selinux flag that is passed to the appliance at boot time.  "
14022 "The default is C<selinux=0> (disabled)."
14023 msgstr ""
14024
14025 # type: textblock
14026 #: ../src/guestfs-actions.pod:5666 ../fish/guestfish-actions.pod:3795
14027 msgid ""
14028 "Note that if SELinux is enabled, it is always in Permissive mode "
14029 "(C<enforcing=0>)."
14030 msgstr ""
14031
14032 # type: =head2
14033 #: ../src/guestfs-actions.pod:5676
14034 msgid "guestfs_set_trace"
14035 msgstr ""
14036
14037 # type: verbatim
14038 #: ../src/guestfs-actions.pod:5678
14039 #, no-wrap
14040 msgid ""
14041 " int\n"
14042 " guestfs_set_trace (guestfs_h *g,\n"
14043 "                    int trace);\n"
14044 "\n"
14045 msgstr ""
14046
14047 # type: textblock
14048 #: ../src/guestfs-actions.pod:5682 ../fish/guestfish-actions.pod:3807
14049 msgid ""
14050 "If the command trace flag is set to 1, then commands are printed on stderr "
14051 "before they are executed in a format which is very similar to the one used "
14052 "by guestfish.  In other words, you can run a program with this enabled, and "
14053 "you will get out a script which you can feed to guestfish to perform the "
14054 "same set of actions."
14055 msgstr ""
14056
14057 # type: textblock
14058 #: ../src/guestfs-actions.pod:5689 ../fish/guestfish-actions.pod:3814
14059 msgid ""
14060 "If you want to trace C API calls into libguestfs (and other libraries) then "
14061 "possibly a better way is to use the external ltrace(1) command."
14062 msgstr ""
14063
14064 # type: textblock
14065 #: ../src/guestfs-actions.pod:5693 ../fish/guestfish-actions.pod:3818
14066 msgid ""
14067 "Command traces are disabled unless the environment variable "
14068 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14069 msgstr ""
14070
14071 # type: =head2
14072 #: ../src/guestfs-actions.pod:5700
14073 msgid "guestfs_set_verbose"
14074 msgstr ""
14075
14076 # type: verbatim
14077 #: ../src/guestfs-actions.pod:5702
14078 #, no-wrap
14079 msgid ""
14080 " int\n"
14081 " guestfs_set_verbose (guestfs_h *g,\n"
14082 "                      int verbose);\n"
14083 "\n"
14084 msgstr ""
14085
14086 # type: textblock
14087 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3827
14088 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
14089 msgstr ""
14090
14091 # type: textblock
14092 #: ../src/guestfs-actions.pod:5708 ../fish/guestfish-actions.pod:3829
14093 msgid ""
14094 "Verbose messages are disabled unless the environment variable "
14095 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14096 msgstr ""
14097
14098 # type: =head2
14099 #: ../src/guestfs-actions.pod:5715
14100 msgid "guestfs_setcon"
14101 msgstr ""
14102
14103 # type: verbatim
14104 #: ../src/guestfs-actions.pod:5717
14105 #, no-wrap
14106 msgid ""
14107 " int\n"
14108 " guestfs_setcon (guestfs_h *g,\n"
14109 "                 const char *context);\n"
14110 "\n"
14111 msgstr ""
14112
14113 # type: textblock
14114 #: ../src/guestfs-actions.pod:5721 ../fish/guestfish-actions.pod:3836
14115 msgid ""
14116 "This sets the SELinux security context of the daemon to the string "
14117 "C<context>."
14118 msgstr ""
14119
14120 # type: textblock
14121 #: ../src/guestfs-actions.pod:5724 ../fish/guestfish-actions.pod:3839
14122 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14123 msgstr ""
14124
14125 # type: =head2
14126 #: ../src/guestfs-actions.pod:5730
14127 msgid "guestfs_setxattr"
14128 msgstr ""
14129
14130 # type: verbatim
14131 #: ../src/guestfs-actions.pod:5732
14132 #, no-wrap
14133 msgid ""
14134 " int\n"
14135 " guestfs_setxattr (guestfs_h *g,\n"
14136 "                   const char *xattr,\n"
14137 "                   const char *val,\n"
14138 "                   int vallen,\n"
14139 "                   const char *path);\n"
14140 "\n"
14141 msgstr ""
14142
14143 # type: textblock
14144 #: ../src/guestfs-actions.pod:5739 ../fish/guestfish-actions.pod:3845
14145 msgid ""
14146 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14147 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14148 msgstr ""
14149
14150 # type: textblock
14151 #: ../src/guestfs-actions.pod:5743
14152 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14153 msgstr ""
14154
14155 # type: =head2
14156 #: ../src/guestfs-actions.pod:5749
14157 msgid "guestfs_sfdisk"
14158 msgstr ""
14159
14160 # type: verbatim
14161 #: ../src/guestfs-actions.pod:5751
14162 #, no-wrap
14163 msgid ""
14164 " int\n"
14165 " guestfs_sfdisk (guestfs_h *g,\n"
14166 "                 const char *device,\n"
14167 "                 int cyls,\n"
14168 "                 int heads,\n"
14169 "                 int sectors,\n"
14170 "                 char *const *lines);\n"
14171 "\n"
14172 msgstr ""
14173
14174 # type: textblock
14175 #: ../src/guestfs-actions.pod:5759 ../fish/guestfish-actions.pod:3855
14176 msgid ""
14177 "This is a direct interface to the L<sfdisk(8)> program for creating "
14178 "partitions on block devices."
14179 msgstr ""
14180
14181 # type: textblock
14182 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3858
14183 msgid "C<device> should be a block device, for example C</dev/sda>."
14184 msgstr ""
14185
14186 # type: textblock
14187 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:3860
14188 msgid ""
14189 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14190 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14191 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14192 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14193 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14194 "the kernel) cannot work out the right geometry and you will need to tell it."
14195 msgstr ""
14196
14197 # type: textblock
14198 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:3868
14199 msgid ""
14200 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14201 "refer to the L<sfdisk(8)> manpage."
14202 msgstr ""
14203
14204 # type: textblock
14205 #: ../src/guestfs-actions.pod:5775 ../fish/guestfish-actions.pod:3871
14206 msgid ""
14207 "To create a single partition occupying the whole disk, you would pass "
14208 "C<lines> as a single element list, when the single element being the string "
14209 "C<,> (comma)."
14210 msgstr ""
14211
14212 # type: textblock
14213 #: ../src/guestfs-actions.pod:5779
14214 msgid ""
14215 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14216 msgstr ""
14217
14218 # type: =head2
14219 #: ../src/guestfs-actions.pod:5789
14220 msgid "guestfs_sfdiskM"
14221 msgstr ""
14222
14223 # type: verbatim
14224 #: ../src/guestfs-actions.pod:5791
14225 #, no-wrap
14226 msgid ""
14227 " int\n"
14228 " guestfs_sfdiskM (guestfs_h *g,\n"
14229 "                  const char *device,\n"
14230 "                  char *const *lines);\n"
14231 "\n"
14232 msgstr ""
14233
14234 # type: textblock
14235 #: ../src/guestfs-actions.pod:5796
14236 msgid ""
14237 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14238 "partition sizes are specified in megabytes only (rounded to the nearest "
14239 "cylinder) and you don't need to specify the cyls, heads and sectors "
14240 "parameters which were rarely if ever used anyway."
14241 msgstr ""
14242
14243 # type: textblock
14244 #: ../src/guestfs-actions.pod:5802
14245 msgid ""
14246 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14247 "C<guestfs_part_disk>"
14248 msgstr ""
14249
14250 # type: =head2
14251 #: ../src/guestfs-actions.pod:5812
14252 msgid "guestfs_sfdisk_N"
14253 msgstr ""
14254
14255 # type: verbatim
14256 #: ../src/guestfs-actions.pod:5814
14257 #, no-wrap
14258 msgid ""
14259 " int\n"
14260 " guestfs_sfdisk_N (guestfs_h *g,\n"
14261 "                   const char *device,\n"
14262 "                   int partnum,\n"
14263 "                   int cyls,\n"
14264 "                   int heads,\n"
14265 "                   int sectors,\n"
14266 "                   const char *line);\n"
14267 "\n"
14268 msgstr ""
14269
14270 # type: textblock
14271 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3901
14272 msgid ""
14273 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14274 "(note: C<n> counts from 1)."
14275 msgstr ""
14276
14277 # type: textblock
14278 #: ../src/guestfs-actions.pod:5826
14279 msgid ""
14280 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14281 "for the cyls/heads/sectors parameters."
14282 msgstr ""
14283
14284 # type: textblock
14285 #: ../src/guestfs-actions.pod:5829
14286 msgid "See also: C<guestfs_part_add>"
14287 msgstr ""
14288
14289 # type: =head2
14290 #: ../src/guestfs-actions.pod:5838
14291 msgid "guestfs_sfdisk_disk_geometry"
14292 msgstr ""
14293
14294 # type: verbatim
14295 #: ../src/guestfs-actions.pod:5840
14296 #, no-wrap
14297 msgid ""
14298 " char *\n"
14299 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14300 "                               const char *device);\n"
14301 "\n"
14302 msgstr ""
14303
14304 # type: textblock
14305 #: ../src/guestfs-actions.pod:5844
14306 msgid ""
14307 "This displays the disk geometry of C<device> read from the partition table.  "
14308 "Especially in the case where the underlying block device has been resized, "
14309 "this can be different from the kernel's idea of the geometry (see "
14310 "C<guestfs_sfdisk_kernel_geometry>)."
14311 msgstr ""
14312
14313 # type: textblock
14314 #: ../src/guestfs-actions.pod:5849 ../src/guestfs-actions.pod:5865
14315 #: ../fish/guestfish-actions.pod:3921 ../fish/guestfish-actions.pod:3930
14316 msgid "The result is in human-readable format, and not designed to be parsed."
14317 msgstr ""
14318
14319 # type: =head2
14320 #: ../src/guestfs-actions.pod:5857
14321 msgid "guestfs_sfdisk_kernel_geometry"
14322 msgstr ""
14323
14324 # type: verbatim
14325 #: ../src/guestfs-actions.pod:5859
14326 #, no-wrap
14327 msgid ""
14328 " char *\n"
14329 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14330 "                                 const char *device);\n"
14331 "\n"
14332 msgstr ""
14333
14334 # type: textblock
14335 #: ../src/guestfs-actions.pod:5863 ../fish/guestfish-actions.pod:3928
14336 msgid "This displays the kernel's idea of the geometry of C<device>."
14337 msgstr ""
14338
14339 # type: =head2
14340 #: ../src/guestfs-actions.pod:5873
14341 msgid "guestfs_sfdisk_l"
14342 msgstr ""
14343
14344 # type: verbatim
14345 #: ../src/guestfs-actions.pod:5875
14346 #, no-wrap
14347 msgid ""
14348 " char *\n"
14349 " guestfs_sfdisk_l (guestfs_h *g,\n"
14350 "                   const char *device);\n"
14351 "\n"
14352 msgstr ""
14353
14354 # type: textblock
14355 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3937
14356 msgid ""
14357 "This displays the partition table on C<device>, in the human-readable output "
14358 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14359 msgstr ""
14360
14361 # type: textblock
14362 #: ../src/guestfs-actions.pod:5883
14363 msgid "See also: C<guestfs_part_list>"
14364 msgstr ""
14365
14366 # type: =head2
14367 #: ../src/guestfs-actions.pod:5890
14368 msgid "guestfs_sh"
14369 msgstr ""
14370
14371 # type: verbatim
14372 #: ../src/guestfs-actions.pod:5892
14373 #, no-wrap
14374 msgid ""
14375 " char *\n"
14376 " guestfs_sh (guestfs_h *g,\n"
14377 "             const char *command);\n"
14378 "\n"
14379 msgstr ""
14380
14381 # type: textblock
14382 #: ../src/guestfs-actions.pod:5896 ../fish/guestfish-actions.pod:3947
14383 msgid ""
14384 "This call runs a command from the guest filesystem via the guest's C</bin/"
14385 "sh>."
14386 msgstr ""
14387
14388 # type: textblock
14389 #: ../src/guestfs-actions.pod:5899
14390 msgid "This is like C<guestfs_command>, but passes the command to:"
14391 msgstr ""
14392
14393 # type: verbatim
14394 #: ../src/guestfs-actions.pod:5901 ../fish/guestfish-actions.pod:3952
14395 #, no-wrap
14396 msgid ""
14397 " /bin/sh -c \"command\"\n"
14398 "\n"
14399 msgstr ""
14400
14401 # type: textblock
14402 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3954
14403 msgid ""
14404 "Depending on the guest's shell, this usually results in wildcards being "
14405 "expanded, shell expressions being interpolated and so on."
14406 msgstr ""
14407
14408 # type: textblock
14409 #: ../src/guestfs-actions.pod:5907
14410 msgid "All the provisos about C<guestfs_command> apply to this call."
14411 msgstr ""
14412
14413 # type: =head2
14414 #: ../src/guestfs-actions.pod:5914
14415 msgid "guestfs_sh_lines"
14416 msgstr ""
14417
14418 # type: verbatim
14419 #: ../src/guestfs-actions.pod:5916
14420 #, no-wrap
14421 msgid ""
14422 " char **\n"
14423 " guestfs_sh_lines (guestfs_h *g,\n"
14424 "                   const char *command);\n"
14425 "\n"
14426 msgstr ""
14427
14428 # type: textblock
14429 #: ../src/guestfs-actions.pod:5920
14430 msgid ""
14431 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14432 "lines."
14433 msgstr ""
14434
14435 # type: textblock
14436 #: ../src/guestfs-actions.pod:5923
14437 msgid "See also: C<guestfs_command_lines>"
14438 msgstr ""
14439
14440 # type: =head2
14441 #: ../src/guestfs-actions.pod:5931
14442 msgid "guestfs_sleep"
14443 msgstr ""
14444
14445 # type: verbatim
14446 #: ../src/guestfs-actions.pod:5933
14447 #, no-wrap
14448 msgid ""
14449 " int\n"
14450 " guestfs_sleep (guestfs_h *g,\n"
14451 "                int secs);\n"
14452 "\n"
14453 msgstr ""
14454
14455 # type: textblock
14456 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3973
14457 msgid "Sleep for C<secs> seconds."
14458 msgstr ""
14459
14460 # type: textblock
14461 #: ../src/guestfs-actions.pod:5941
14462 msgid "(Added in 1.0.41)"
14463 msgstr ""
14464
14465 # type: =head2
14466 #: ../src/guestfs-actions.pod:5943 ../src/guestfs-structs.pod:109
14467 msgid "guestfs_stat"
14468 msgstr ""
14469
14470 # type: verbatim
14471 #: ../src/guestfs-actions.pod:5945
14472 #, no-wrap
14473 msgid ""
14474 " struct guestfs_stat *\n"
14475 " guestfs_stat (guestfs_h *g,\n"
14476 "               const char *path);\n"
14477 "\n"
14478 msgstr ""
14479
14480 # type: textblock
14481 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:3981
14482 msgid "This is the same as the C<stat(2)> system call."
14483 msgstr ""
14484
14485 # type: =head2
14486 #: ../src/guestfs-actions.pod:5959 ../src/guestfs-structs.pod:135
14487 msgid "guestfs_statvfs"
14488 msgstr ""
14489
14490 # type: verbatim
14491 #: ../src/guestfs-actions.pod:5961
14492 #, no-wrap
14493 msgid ""
14494 " struct guestfs_statvfs *\n"
14495 " guestfs_statvfs (guestfs_h *g,\n"
14496 "                  const char *path);\n"
14497 "\n"
14498 msgstr ""
14499
14500 # type: textblock
14501 #: ../src/guestfs-actions.pod:5965 ../fish/guestfish-actions.pod:3987
14502 msgid ""
14503 "Returns file system statistics for any mounted file system.  C<path> should "
14504 "be a file or directory in the mounted file system (typically it is the mount "
14505 "point itself, but it doesn't need to be)."
14506 msgstr ""
14507
14508 # type: textblock
14509 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:3991
14510 msgid "This is the same as the C<statvfs(2)> system call."
14511 msgstr ""
14512
14513 # type: textblock
14514 #: ../src/guestfs-actions.pod:5971
14515 msgid ""
14516 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14517 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14518 msgstr ""
14519
14520 # type: =head2
14521 #: ../src/guestfs-actions.pod:5977
14522 msgid "guestfs_strings"
14523 msgstr ""
14524
14525 # type: verbatim
14526 #: ../src/guestfs-actions.pod:5979
14527 #, no-wrap
14528 msgid ""
14529 " char **\n"
14530 " guestfs_strings (guestfs_h *g,\n"
14531 "                  const char *path);\n"
14532 "\n"
14533 msgstr ""
14534
14535 # type: textblock
14536 #: ../src/guestfs-actions.pod:5983 ../fish/guestfish-actions.pod:3997
14537 msgid ""
14538 "This runs the L<strings(1)> command on a file and returns the list of "
14539 "printable strings found."
14540 msgstr ""
14541
14542 # type: =head2
14543 #: ../src/guestfs-actions.pod:5995
14544 msgid "guestfs_strings_e"
14545 msgstr ""
14546
14547 # type: verbatim
14548 #: ../src/guestfs-actions.pod:5997
14549 #, no-wrap
14550 msgid ""
14551 " char **\n"
14552 " guestfs_strings_e (guestfs_h *g,\n"
14553 "                    const char *encoding,\n"
14554 "                    const char *path);\n"
14555 "\n"
14556 msgstr ""
14557
14558 # type: textblock
14559 #: ../src/guestfs-actions.pod:6002
14560 msgid ""
14561 "This is like the C<guestfs_strings> command, but allows you to specify the "
14562 "encoding of strings that are looked for in the source file C<path>."
14563 msgstr ""
14564
14565 # type: textblock
14566 #: ../src/guestfs-actions.pod:6006 ../fish/guestfish-actions.pod:4011
14567 msgid "Allowed encodings are:"
14568 msgstr ""
14569
14570 # type: =item
14571 #: ../src/guestfs-actions.pod:6010 ../fish/guestfish-actions.pod:4015
14572 msgid "s"
14573 msgstr ""
14574
14575 # type: textblock
14576 #: ../src/guestfs-actions.pod:6012
14577 msgid ""
14578 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14579 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14580 msgstr ""
14581
14582 # type: =item
14583 #: ../src/guestfs-actions.pod:6015 ../fish/guestfish-actions.pod:4020
14584 msgid "S"
14585 msgstr ""
14586
14587 # type: textblock
14588 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4022
14589 msgid "Single 8-bit-byte characters."
14590 msgstr ""
14591
14592 # type: =item
14593 #: ../src/guestfs-actions.pod:6019 ../fish/guestfish-actions.pod:4024
14594 msgid "b"
14595 msgstr ""
14596
14597 # type: textblock
14598 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:4026
14599 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14600 msgstr ""
14601
14602 # type: =item
14603 #: ../src/guestfs-actions.pod:6024 ../fish/guestfish-actions.pod:4029
14604 msgid "l (lower case letter L)"
14605 msgstr ""
14606
14607 # type: textblock
14608 #: ../src/guestfs-actions.pod:6026 ../fish/guestfish-actions.pod:4031
14609 msgid ""
14610 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14611 "examining binaries in Windows guests."
14612 msgstr ""
14613
14614 # type: =item
14615 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4034
14616 msgid "B"
14617 msgstr ""
14618
14619 # type: textblock
14620 #: ../src/guestfs-actions.pod:6031 ../fish/guestfish-actions.pod:4036
14621 msgid "32-bit big endian such as UCS-4BE."
14622 msgstr ""
14623
14624 # type: =item
14625 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4038
14626 msgid "L"
14627 msgstr ""
14628
14629 # type: textblock
14630 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4040
14631 msgid "32-bit little endian such as UCS-4LE."
14632 msgstr ""
14633
14634 # type: textblock
14635 #: ../src/guestfs-actions.pod:6039 ../fish/guestfish-actions.pod:4044
14636 msgid "The returned strings are transcoded to UTF-8."
14637 msgstr ""
14638
14639 # type: =head2
14640 #: ../src/guestfs-actions.pod:6050
14641 msgid "guestfs_swapoff_device"
14642 msgstr ""
14643
14644 # type: verbatim
14645 #: ../src/guestfs-actions.pod:6052
14646 #, no-wrap
14647 msgid ""
14648 " int\n"
14649 " guestfs_swapoff_device (guestfs_h *g,\n"
14650 "                         const char *device);\n"
14651 "\n"
14652 msgstr ""
14653
14654 # type: textblock
14655 #: ../src/guestfs-actions.pod:6056
14656 msgid ""
14657 "This command disables the libguestfs appliance swap device or partition "
14658 "named C<device>.  See C<guestfs_swapon_device>."
14659 msgstr ""
14660
14661 # type: =head2
14662 #: ../src/guestfs-actions.pod:6064
14663 msgid "guestfs_swapoff_file"
14664 msgstr ""
14665
14666 # type: verbatim
14667 #: ../src/guestfs-actions.pod:6066
14668 #, no-wrap
14669 msgid ""
14670 " int\n"
14671 " guestfs_swapoff_file (guestfs_h *g,\n"
14672 "                       const char *file);\n"
14673 "\n"
14674 msgstr ""
14675
14676 # type: textblock
14677 #: ../src/guestfs-actions.pod:6070 ../fish/guestfish-actions.pod:4061
14678 msgid "This command disables the libguestfs appliance swap on file."
14679 msgstr ""
14680
14681 # type: =head2
14682 #: ../src/guestfs-actions.pod:6076
14683 msgid "guestfs_swapoff_label"
14684 msgstr ""
14685
14686 # type: verbatim
14687 #: ../src/guestfs-actions.pod:6078
14688 #, no-wrap
14689 msgid ""
14690 " int\n"
14691 " guestfs_swapoff_label (guestfs_h *g,\n"
14692 "                        const char *label);\n"
14693 "\n"
14694 msgstr ""
14695
14696 # type: textblock
14697 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4067
14698 msgid ""
14699 "This command disables the libguestfs appliance swap on labeled swap "
14700 "partition."
14701 msgstr ""
14702
14703 # type: =head2
14704 #: ../src/guestfs-actions.pod:6089
14705 msgid "guestfs_swapoff_uuid"
14706 msgstr ""
14707
14708 # type: verbatim
14709 #: ../src/guestfs-actions.pod:6091
14710 #, no-wrap
14711 msgid ""
14712 " int\n"
14713 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14714 "                       const char *uuid);\n"
14715 "\n"
14716 msgstr ""
14717
14718 # type: textblock
14719 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4074
14720 msgid ""
14721 "This command disables the libguestfs appliance swap partition with the given "
14722 "UUID."
14723 msgstr ""
14724
14725 # type: =head2
14726 #: ../src/guestfs-actions.pod:6102
14727 msgid "guestfs_swapon_device"
14728 msgstr ""
14729
14730 # type: verbatim
14731 #: ../src/guestfs-actions.pod:6104
14732 #, no-wrap
14733 msgid ""
14734 " int\n"
14735 " guestfs_swapon_device (guestfs_h *g,\n"
14736 "                        const char *device);\n"
14737 "\n"
14738 msgstr ""
14739
14740 # type: textblock
14741 #: ../src/guestfs-actions.pod:6108
14742 msgid ""
14743 "This command enables the libguestfs appliance to use the swap device or "
14744 "partition named C<device>.  The increased memory is made available for all "
14745 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14746 msgstr ""
14747
14748 # type: textblock
14749 #: ../src/guestfs-actions.pod:6113 ../fish/guestfish-actions.pod:4086
14750 msgid ""
14751 "Note that you should not swap to existing guest swap partitions unless you "
14752 "know what you are doing.  They may contain hibernation information, or other "
14753 "information that the guest doesn't want you to trash.  You also risk leaking "
14754 "information about the host to the guest this way.  Instead, attach a new "
14755 "host device to the guest and swap on that."
14756 msgstr ""
14757
14758 # type: =head2
14759 #: ../src/guestfs-actions.pod:6124
14760 msgid "guestfs_swapon_file"
14761 msgstr ""
14762
14763 # type: verbatim
14764 #: ../src/guestfs-actions.pod:6126
14765 #, no-wrap
14766 msgid ""
14767 " int\n"
14768 " guestfs_swapon_file (guestfs_h *g,\n"
14769 "                      const char *file);\n"
14770 "\n"
14771 msgstr ""
14772
14773 # type: textblock
14774 #: ../src/guestfs-actions.pod:6130
14775 msgid ""
14776 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14777 "notes."
14778 msgstr ""
14779
14780 # type: =head2
14781 #: ../src/guestfs-actions.pod:6137
14782 msgid "guestfs_swapon_label"
14783 msgstr ""
14784
14785 # type: verbatim
14786 #: ../src/guestfs-actions.pod:6139
14787 #, no-wrap
14788 msgid ""
14789 " int\n"
14790 " guestfs_swapon_label (guestfs_h *g,\n"
14791 "                       const char *label);\n"
14792 "\n"
14793 msgstr ""
14794
14795 # type: textblock
14796 #: ../src/guestfs-actions.pod:6143
14797 msgid ""
14798 "This command enables swap to a labeled swap partition.  See "
14799 "C<guestfs_swapon_device> for other notes."
14800 msgstr ""
14801
14802 # type: =head2
14803 #: ../src/guestfs-actions.pod:6150
14804 msgid "guestfs_swapon_uuid"
14805 msgstr ""
14806
14807 # type: verbatim
14808 #: ../src/guestfs-actions.pod:6152
14809 #, no-wrap
14810 msgid ""
14811 " int\n"
14812 " guestfs_swapon_uuid (guestfs_h *g,\n"
14813 "                      const char *uuid);\n"
14814 "\n"
14815 msgstr ""
14816
14817 # type: textblock
14818 #: ../src/guestfs-actions.pod:6156
14819 msgid ""
14820 "This command enables swap to a swap partition with the given UUID.  See "
14821 "C<guestfs_swapon_device> for other notes."
14822 msgstr ""
14823
14824 # type: =head2
14825 #: ../src/guestfs-actions.pod:6163
14826 msgid "guestfs_sync"
14827 msgstr ""
14828
14829 # type: verbatim
14830 #: ../src/guestfs-actions.pod:6165
14831 #, no-wrap
14832 msgid ""
14833 " int\n"
14834 " guestfs_sync (guestfs_h *g);\n"
14835 "\n"
14836 msgstr ""
14837
14838 # type: textblock
14839 #: ../src/guestfs-actions.pod:6168 ../fish/guestfish-actions.pod:4118
14840 msgid ""
14841 "This syncs the disk, so that any writes are flushed through to the "
14842 "underlying disk image."
14843 msgstr ""
14844
14845 # type: textblock
14846 #: ../src/guestfs-actions.pod:6171 ../fish/guestfish-actions.pod:4121
14847 msgid ""
14848 "You should always call this if you have modified a disk image, before "
14849 "closing the handle."
14850 msgstr ""
14851
14852 # type: =head2
14853 #: ../src/guestfs-actions.pod:6178
14854 msgid "guestfs_tail"
14855 msgstr ""
14856
14857 # type: verbatim
14858 #: ../src/guestfs-actions.pod:6180
14859 #, no-wrap
14860 msgid ""
14861 " char **\n"
14862 " guestfs_tail (guestfs_h *g,\n"
14863 "               const char *path);\n"
14864 "\n"
14865 msgstr ""
14866
14867 # type: textblock
14868 #: ../src/guestfs-actions.pod:6184 ../fish/guestfish-actions.pod:4128
14869 msgid ""
14870 "This command returns up to the last 10 lines of a file as a list of strings."
14871 msgstr ""
14872
14873 # type: =head2
14874 #: ../src/guestfs-actions.pod:6196
14875 msgid "guestfs_tail_n"
14876 msgstr ""
14877
14878 # type: verbatim
14879 #: ../src/guestfs-actions.pod:6198
14880 #, no-wrap
14881 msgid ""
14882 " char **\n"
14883 " guestfs_tail_n (guestfs_h *g,\n"
14884 "                 int nrlines,\n"
14885 "                 const char *path);\n"
14886 "\n"
14887 msgstr ""
14888
14889 # type: textblock
14890 #: ../src/guestfs-actions.pod:6203 ../fish/guestfish-actions.pod:4138
14891 msgid ""
14892 "If the parameter C<nrlines> is a positive number, this returns the last "
14893 "C<nrlines> lines of the file C<path>."
14894 msgstr ""
14895
14896 # type: textblock
14897 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4141
14898 msgid ""
14899 "If the parameter C<nrlines> is a negative number, this returns lines from "
14900 "the file C<path>, starting with the C<-nrlines>th line."
14901 msgstr ""
14902
14903 # type: =head2
14904 #: ../src/guestfs-actions.pod:6220
14905 msgid "guestfs_tar_in"
14906 msgstr ""
14907
14908 # type: verbatim
14909 #: ../src/guestfs-actions.pod:6222
14910 #, no-wrap
14911 msgid ""
14912 " int\n"
14913 " guestfs_tar_in (guestfs_h *g,\n"
14914 "                 const char *tarfile,\n"
14915 "                 const char *directory);\n"
14916 "\n"
14917 msgstr ""
14918
14919 # type: textblock
14920 #: ../src/guestfs-actions.pod:6227 ../fish/guestfish-actions.pod:4153
14921 msgid ""
14922 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14923 "tar file) into C<directory>."
14924 msgstr ""
14925
14926 # type: textblock
14927 #: ../src/guestfs-actions.pod:6230
14928 msgid ""
14929 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14930 msgstr ""
14931
14932 # type: textblock
14933 #: ../src/guestfs-actions.pod:6235 ../src/guestfs-actions.pod:6252
14934 #: ../src/guestfs-actions.pod:6268 ../src/guestfs-actions.pod:6284
14935 msgid "(Added in 1.0.3)"
14936 msgstr ""
14937
14938 # type: =head2
14939 #: ../src/guestfs-actions.pod:6237
14940 msgid "guestfs_tar_out"
14941 msgstr ""
14942
14943 # type: verbatim
14944 #: ../src/guestfs-actions.pod:6239
14945 #, no-wrap
14946 msgid ""
14947 " int\n"
14948 " guestfs_tar_out (guestfs_h *g,\n"
14949 "                  const char *directory,\n"
14950 "                  const char *tarfile);\n"
14951 "\n"
14952 msgstr ""
14953
14954 # type: textblock
14955 #: ../src/guestfs-actions.pod:6244 ../fish/guestfish-actions.pod:4165
14956 msgid ""
14957 "This command packs the contents of C<directory> and downloads it to local "
14958 "file C<tarfile>."
14959 msgstr ""
14960
14961 # type: textblock
14962 #: ../src/guestfs-actions.pod:6247
14963 msgid ""
14964 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14965 "C<guestfs_txz_out>."
14966 msgstr ""
14967
14968 # type: =head2
14969 #: ../src/guestfs-actions.pod:6254
14970 msgid "guestfs_tgz_in"
14971 msgstr ""
14972
14973 # type: verbatim
14974 #: ../src/guestfs-actions.pod:6256
14975 #, no-wrap
14976 msgid ""
14977 " int\n"
14978 " guestfs_tgz_in (guestfs_h *g,\n"
14979 "                 const char *tarball,\n"
14980 "                 const char *directory);\n"
14981 "\n"
14982 msgstr ""
14983
14984 # type: textblock
14985 #: ../src/guestfs-actions.pod:6261 ../fish/guestfish-actions.pod:4177
14986 msgid ""
14987 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14988 "tar file) into C<directory>."
14989 msgstr ""
14990
14991 # type: textblock
14992 #: ../src/guestfs-actions.pod:6264
14993 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14994 msgstr ""
14995
14996 # type: =head2
14997 #: ../src/guestfs-actions.pod:6270
14998 msgid "guestfs_tgz_out"
14999 msgstr ""
15000
15001 # type: verbatim
15002 #: ../src/guestfs-actions.pod:6272
15003 #, no-wrap
15004 msgid ""
15005 " int\n"
15006 " guestfs_tgz_out (guestfs_h *g,\n"
15007 "                  const char *directory,\n"
15008 "                  const char *tarball);\n"
15009 "\n"
15010 msgstr ""
15011
15012 # type: textblock
15013 #: ../src/guestfs-actions.pod:6277 ../fish/guestfish-actions.pod:4188
15014 msgid ""
15015 "This command packs the contents of C<directory> and downloads it to local "
15016 "file C<tarball>."
15017 msgstr ""
15018
15019 # type: textblock
15020 #: ../src/guestfs-actions.pod:6280
15021 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
15022 msgstr ""
15023
15024 # type: =head2
15025 #: ../src/guestfs-actions.pod:6286
15026 msgid "guestfs_touch"
15027 msgstr ""
15028
15029 # type: verbatim
15030 #: ../src/guestfs-actions.pod:6288
15031 #, no-wrap
15032 msgid ""
15033 " int\n"
15034 " guestfs_touch (guestfs_h *g,\n"
15035 "                const char *path);\n"
15036 "\n"
15037 msgstr ""
15038
15039 # type: textblock
15040 #: ../src/guestfs-actions.pod:6292 ../fish/guestfish-actions.pod:4199
15041 msgid ""
15042 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15043 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15044 "length file."
15045 msgstr ""
15046
15047 # type: textblock
15048 #: ../src/guestfs-actions.pod:6296 ../fish/guestfish-actions.pod:4203
15049 msgid ""
15050 "This command only works on regular files, and will fail on other file types "
15051 "such as directories, symbolic links, block special etc."
15052 msgstr ""
15053
15054 # type: =head2
15055 #: ../src/guestfs-actions.pod:6303
15056 msgid "guestfs_truncate"
15057 msgstr ""
15058
15059 # type: verbatim
15060 #: ../src/guestfs-actions.pod:6305
15061 #, no-wrap
15062 msgid ""
15063 " int\n"
15064 " guestfs_truncate (guestfs_h *g,\n"
15065 "                   const char *path);\n"
15066 "\n"
15067 msgstr ""
15068
15069 # type: textblock
15070 #: ../src/guestfs-actions.pod:6309 ../fish/guestfish-actions.pod:4210
15071 msgid ""
15072 "This command truncates C<path> to a zero-length file.  The file must exist "
15073 "already."
15074 msgstr ""
15075
15076 # type: =head2
15077 #: ../src/guestfs-actions.pod:6316
15078 msgid "guestfs_truncate_size"
15079 msgstr ""
15080
15081 # type: verbatim
15082 #: ../src/guestfs-actions.pod:6318
15083 #, no-wrap
15084 msgid ""
15085 " int\n"
15086 " guestfs_truncate_size (guestfs_h *g,\n"
15087 "                        const char *path,\n"
15088 "                        int64_t size);\n"
15089 "\n"
15090 msgstr ""
15091
15092 # type: textblock
15093 #: ../src/guestfs-actions.pod:6323 ../fish/guestfish-actions.pod:4217
15094 msgid ""
15095 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15096 "already."
15097 msgstr ""
15098
15099 # type: textblock
15100 #: ../src/guestfs-actions.pod:6326
15101 msgid ""
15102 "If the current file size is less than C<size> then the file is extended to "
15103 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15104 "blocks are not allocated for the file until you write to it).  To create a "
15105 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
15106 msgstr ""
15107
15108 # type: =head2
15109 #: ../src/guestfs-actions.pod:6336
15110 msgid "guestfs_tune2fs_l"
15111 msgstr ""
15112
15113 # type: verbatim
15114 #: ../src/guestfs-actions.pod:6338
15115 #, no-wrap
15116 msgid ""
15117 " char **\n"
15118 " guestfs_tune2fs_l (guestfs_h *g,\n"
15119 "                    const char *device);\n"
15120 "\n"
15121 msgstr ""
15122
15123 # type: textblock
15124 #: ../src/guestfs-actions.pod:6342 ../fish/guestfish-actions.pod:4230
15125 msgid ""
15126 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15127 "C<device>."
15128 msgstr ""
15129
15130 # type: textblock
15131 #: ../src/guestfs-actions.pod:6345 ../fish/guestfish-actions.pod:4233
15132 msgid ""
15133 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15134 "for more details.  The list of fields returned isn't clearly defined, and "
15135 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15136 "and the filesystem itself."
15137 msgstr ""
15138
15139 # type: =head2
15140 #: ../src/guestfs-actions.pod:6358
15141 msgid "guestfs_txz_in"
15142 msgstr ""
15143
15144 # type: verbatim
15145 #: ../src/guestfs-actions.pod:6360
15146 #, no-wrap
15147 msgid ""
15148 " int\n"
15149 " guestfs_txz_in (guestfs_h *g,\n"
15150 "                 const char *tarball,\n"
15151 "                 const char *directory);\n"
15152 "\n"
15153 msgstr ""
15154
15155 # type: textblock
15156 #: ../src/guestfs-actions.pod:6365 ../fish/guestfish-actions.pod:4242
15157 msgid ""
15158 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15159 "tar file) into C<directory>."
15160 msgstr ""
15161
15162 # type: =head2
15163 #: ../src/guestfs-actions.pod:6372
15164 msgid "guestfs_txz_out"
15165 msgstr ""
15166
15167 # type: verbatim
15168 #: ../src/guestfs-actions.pod:6374
15169 #, no-wrap
15170 msgid ""
15171 " int\n"
15172 " guestfs_txz_out (guestfs_h *g,\n"
15173 "                  const char *directory,\n"
15174 "                  const char *tarball);\n"
15175 "\n"
15176 msgstr ""
15177
15178 # type: textblock
15179 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4251
15180 msgid ""
15181 "This command packs the contents of C<directory> and downloads it to local "
15182 "file C<tarball> (as an xz compressed tar archive)."
15183 msgstr ""
15184
15185 # type: =head2
15186 #: ../src/guestfs-actions.pod:6386
15187 msgid "guestfs_umask"
15188 msgstr ""
15189
15190 # type: verbatim
15191 #: ../src/guestfs-actions.pod:6388
15192 #, no-wrap
15193 msgid ""
15194 " int\n"
15195 " guestfs_umask (guestfs_h *g,\n"
15196 "                int mask);\n"
15197 "\n"
15198 msgstr ""
15199
15200 # type: textblock
15201 #: ../src/guestfs-actions.pod:6392 ../fish/guestfish-actions.pod:4260
15202 msgid ""
15203 "This function sets the mask used for creating new files and device nodes to "
15204 "C<mask & 0777>."
15205 msgstr ""
15206
15207 # type: textblock
15208 #: ../src/guestfs-actions.pod:6395 ../fish/guestfish-actions.pod:4263
15209 msgid ""
15210 "Typical umask values would be C<022> which creates new files with "
15211 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15212 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15213 msgstr ""
15214
15215 # type: textblock
15216 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4268
15217 msgid ""
15218 "The default umask is C<022>.  This is important because it means that "
15219 "directories and device nodes will be created with C<0644> or C<0755> mode "
15220 "even if you specify C<0777>."
15221 msgstr ""
15222
15223 # type: textblock
15224 #: ../src/guestfs-actions.pod:6404
15225 msgid ""
15226 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15227 "C<guestfs_mkdir>."
15228 msgstr ""
15229
15230 # type: textblock
15231 #: ../src/guestfs-actions.pod:6407 ../fish/guestfish-actions.pod:4275
15232 msgid "This call returns the previous umask."
15233 msgstr ""
15234
15235 # type: =head2
15236 #: ../src/guestfs-actions.pod:6413
15237 msgid "guestfs_umount"
15238 msgstr ""
15239
15240 # type: verbatim
15241 #: ../src/guestfs-actions.pod:6415
15242 #, no-wrap
15243 msgid ""
15244 " int\n"
15245 " guestfs_umount (guestfs_h *g,\n"
15246 "                 const char *pathordevice);\n"
15247 "\n"
15248 msgstr ""
15249
15250 # type: textblock
15251 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4283
15252 msgid ""
15253 "This unmounts the given filesystem.  The filesystem may be specified either "
15254 "by its mountpoint (path) or the device which contains the filesystem."
15255 msgstr ""
15256
15257 # type: =head2
15258 #: ../src/guestfs-actions.pod:6427
15259 msgid "guestfs_umount_all"
15260 msgstr ""
15261
15262 # type: verbatim
15263 #: ../src/guestfs-actions.pod:6429
15264 #, no-wrap
15265 msgid ""
15266 " int\n"
15267 " guestfs_umount_all (guestfs_h *g);\n"
15268 "\n"
15269 msgstr ""
15270
15271 # type: textblock
15272 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4293
15273 msgid "This unmounts all mounted filesystems."
15274 msgstr ""
15275
15276 # type: textblock
15277 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4295
15278 msgid "Some internal mounts are not unmounted by this call."
15279 msgstr ""
15280
15281 # type: =head2
15282 #: ../src/guestfs-actions.pod:6440
15283 msgid "guestfs_upload"
15284 msgstr ""
15285
15286 # type: verbatim
15287 #: ../src/guestfs-actions.pod:6442
15288 #, no-wrap
15289 msgid ""
15290 " int\n"
15291 " guestfs_upload (guestfs_h *g,\n"
15292 "                 const char *filename,\n"
15293 "                 const char *remotefilename);\n"
15294 "\n"
15295 msgstr ""
15296
15297 # type: textblock
15298 #: ../src/guestfs-actions.pod:6447 ../src/guestfs-actions.pod:6471
15299 #: ../fish/guestfish-actions.pod:4301 ../fish/guestfish-actions.pod:4314
15300 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15301 msgstr ""
15302
15303 # type: textblock
15304 #: ../src/guestfs-actions.pod:6452
15305 msgid "See also C<guestfs_download>."
15306 msgstr ""
15307
15308 # type: =head2
15309 #: ../src/guestfs-actions.pod:6463
15310 msgid "guestfs_upload_offset"
15311 msgstr ""
15312
15313 # type: verbatim
15314 #: ../src/guestfs-actions.pod:6465
15315 #, no-wrap
15316 msgid ""
15317 " int\n"
15318 " guestfs_upload_offset (guestfs_h *g,\n"
15319 "                        const char *filename,\n"
15320 "                        const char *remotefilename,\n"
15321 "                        int64_t offset);\n"
15322 "\n"
15323 msgstr ""
15324
15325 # type: textblock
15326 #: ../src/guestfs-actions.pod:6474 ../fish/guestfish-actions.pod:4317
15327 msgid ""
15328 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15329 "The intention is to overwrite parts of existing files or devices, although "
15330 "if a non-existant file is specified then it is created with a \"hole\" "
15331 "before C<offset>.  The size of the data written is implicit in the size of "
15332 "the source C<filename>."
15333 msgstr ""
15334
15335 # type: textblock
15336 #: ../src/guestfs-actions.pod:6481
15337 msgid ""
15338 "Note that there is no limit on the amount of data that can be uploaded with "
15339 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15340 "full amount unless an error occurs."
15341 msgstr ""
15342
15343 # type: textblock
15344 #: ../src/guestfs-actions.pod:6486
15345 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15346 msgstr ""
15347
15348 # type: =head2
15349 #: ../src/guestfs-actions.pod:6497
15350 msgid "guestfs_utimens"
15351 msgstr ""
15352
15353 # type: verbatim
15354 #: ../src/guestfs-actions.pod:6499
15355 #, no-wrap
15356 msgid ""
15357 " int\n"
15358 " guestfs_utimens (guestfs_h *g,\n"
15359 "                  const char *path,\n"
15360 "                  int64_t atsecs,\n"
15361 "                  int64_t atnsecs,\n"
15362 "                  int64_t mtsecs,\n"
15363 "                  int64_t mtnsecs);\n"
15364 "\n"
15365 msgstr ""
15366
15367 # type: textblock
15368 #: ../src/guestfs-actions.pod:6507 ../fish/guestfish-actions.pod:4337
15369 msgid "This command sets the timestamps of a file with nanosecond precision."
15370 msgstr ""
15371
15372 # type: textblock
15373 #: ../src/guestfs-actions.pod:6510 ../fish/guestfish-actions.pod:4340
15374 msgid ""
15375 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15376 "from the epoch."
15377 msgstr ""
15378
15379 # type: textblock
15380 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4343
15381 msgid ""
15382 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15383 "nanoseconds from the epoch."
15384 msgstr ""
15385
15386 # type: textblock
15387 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4346
15388 msgid ""
15389 "If the C<*nsecs> field contains the special value C<-1> then the "
15390 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15391 "ignored in this case)."
15392 msgstr ""
15393
15394 # type: textblock
15395 #: ../src/guestfs-actions.pod:6520 ../fish/guestfish-actions.pod:4350
15396 msgid ""
15397 "If the C<*nsecs> field contains the special value C<-2> then the "
15398 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15399 "in this case)."
15400 msgstr ""
15401
15402 # type: =head2
15403 #: ../src/guestfs-actions.pod:6528 ../src/guestfs-structs.pod:175
15404 msgid "guestfs_version"
15405 msgstr ""
15406
15407 # type: verbatim
15408 #: ../src/guestfs-actions.pod:6530
15409 #, no-wrap
15410 msgid ""
15411 " struct guestfs_version *\n"
15412 " guestfs_version (guestfs_h *g);\n"
15413 "\n"
15414 msgstr ""
15415
15416 # type: textblock
15417 #: ../src/guestfs-actions.pod:6533 ../fish/guestfish-actions.pod:4358
15418 msgid ""
15419 "Return the libguestfs version number that the program is linked against."
15420 msgstr ""
15421
15422 # type: textblock
15423 #: ../src/guestfs-actions.pod:6536 ../fish/guestfish-actions.pod:4361
15424 msgid ""
15425 "Note that because of dynamic linking this is not necessarily the version of "
15426 "libguestfs that you compiled against.  You can compile the program, and then "
15427 "at runtime dynamically link against a completely different C<libguestfs.so> "
15428 "library."
15429 msgstr ""
15430
15431 # type: textblock
15432 #: ../src/guestfs-actions.pod:6541 ../fish/guestfish-actions.pod:4366
15433 msgid ""
15434 "This call was added in version C<1.0.58>.  In previous versions of "
15435 "libguestfs there was no way to get the version number.  From C code you can "
15436 "use dynamic linker functions to find out if this symbol exists (if it "
15437 "doesn't, then it's an earlier version)."
15438 msgstr ""
15439
15440 # type: textblock
15441 #: ../src/guestfs-actions.pod:6547 ../fish/guestfish-actions.pod:4372
15442 msgid ""
15443 "The call returns a structure with four elements.  The first three (C<major>, "
15444 "C<minor> and C<release>) are numbers and correspond to the usual version "
15445 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15446 "but may be used for distro-specific information."
15447 msgstr ""
15448
15449 # type: textblock
15450 #: ../src/guestfs-actions.pod:6553 ../fish/guestfish-actions.pod:4378
15451 msgid ""
15452 "To construct the original version string: C<$major.$minor.$release$extra>"
15453 msgstr ""
15454
15455 # type: textblock
15456 #: ../src/guestfs-actions.pod:6556 ../fish/guestfish-actions.pod:4381
15457 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15458 msgstr ""
15459
15460 # type: textblock
15461 #: ../src/guestfs-actions.pod:6558
15462 msgid ""
15463 "I<Note:> Don't use this call to test for availability of features.  In "
15464 "enterprise distributions we backport features from later versions into "
15465 "earlier versions, making this an unreliable way to test for features.  Use "
15466 "C<guestfs_available> instead."
15467 msgstr ""
15468
15469 # type: textblock
15470 #: ../src/guestfs-actions.pod:6564
15471 msgid ""
15472 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15473 "error.  I<The caller must call C<guestfs_free_version> after use>."
15474 msgstr ""
15475
15476 # type: textblock
15477 #: ../src/guestfs-actions.pod:6568
15478 msgid "(Added in 1.0.58)"
15479 msgstr ""
15480
15481 # type: =head2
15482 #: ../src/guestfs-actions.pod:6570
15483 msgid "guestfs_vfs_label"
15484 msgstr ""
15485
15486 # type: verbatim
15487 #: ../src/guestfs-actions.pod:6572
15488 #, no-wrap
15489 msgid ""
15490 " char *\n"
15491 " guestfs_vfs_label (guestfs_h *g,\n"
15492 "                    const char *device);\n"
15493 "\n"
15494 msgstr ""
15495
15496 # type: textblock
15497 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4393
15498 msgid "This returns the filesystem label of the filesystem on C<device>."
15499 msgstr ""
15500
15501 # type: textblock
15502 #: ../src/guestfs-actions.pod:6579 ../fish/guestfish-actions.pod:4396
15503 msgid "If the filesystem is unlabeled, this returns the empty string."
15504 msgstr ""
15505
15506 # type: textblock
15507 #: ../src/guestfs-actions.pod:6581
15508 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15509 msgstr ""
15510
15511 # type: textblock
15512 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6623
15513 msgid "(Added in 1.3.18)"
15514 msgstr ""
15515
15516 # type: =head2
15517 #: ../src/guestfs-actions.pod:6588
15518 msgid "guestfs_vfs_type"
15519 msgstr ""
15520
15521 # type: verbatim
15522 #: ../src/guestfs-actions.pod:6590
15523 #, no-wrap
15524 msgid ""
15525 " char *\n"
15526 " guestfs_vfs_type (guestfs_h *g,\n"
15527 "                   const char *device);\n"
15528 "\n"
15529 msgstr ""
15530
15531 # type: textblock
15532 #: ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4404
15533 msgid ""
15534 "This command gets the filesystem type corresponding to the filesystem on "
15535 "C<device>."
15536 msgstr ""
15537
15538 # type: textblock
15539 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4407
15540 msgid ""
15541 "For most filesystems, the result is the name of the Linux VFS module which "
15542 "would be used to mount this filesystem if you mounted it without specifying "
15543 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15544 msgstr ""
15545
15546 # type: =head2
15547 #: ../src/guestfs-actions.pod:6607
15548 msgid "guestfs_vfs_uuid"
15549 msgstr ""
15550
15551 # type: verbatim
15552 #: ../src/guestfs-actions.pod:6609
15553 #, no-wrap
15554 msgid ""
15555 " char *\n"
15556 " guestfs_vfs_uuid (guestfs_h *g,\n"
15557 "                   const char *device);\n"
15558 "\n"
15559 msgstr ""
15560
15561 # type: textblock
15562 #: ../src/guestfs-actions.pod:6613 ../fish/guestfish-actions.pod:4416
15563 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15564 msgstr ""
15565
15566 # type: textblock
15567 #: ../src/guestfs-actions.pod:6616 ../fish/guestfish-actions.pod:4419
15568 msgid "If the filesystem does not have a UUID, this returns the empty string."
15569 msgstr ""
15570
15571 # type: textblock
15572 #: ../src/guestfs-actions.pod:6618
15573 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15574 msgstr ""
15575
15576 # type: =head2
15577 #: ../src/guestfs-actions.pod:6625
15578 msgid "guestfs_vg_activate"
15579 msgstr ""
15580
15581 # type: verbatim
15582 #: ../src/guestfs-actions.pod:6627
15583 #, no-wrap
15584 msgid ""
15585 " int\n"
15586 " guestfs_vg_activate (guestfs_h *g,\n"
15587 "                      int activate,\n"
15588 "                      char *const *volgroups);\n"
15589 "\n"
15590 msgstr ""
15591
15592 # type: textblock
15593 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4427
15594 msgid ""
15595 "This command activates or (if C<activate> is false) deactivates all logical "
15596 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15597 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15598 "deactivated, then those devices disappear."
15599 msgstr ""
15600
15601 # type: textblock
15602 #: ../src/guestfs-actions.pod:6638 ../fish/guestfish-actions.pod:4433
15603 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15604 msgstr ""
15605
15606 # type: textblock
15607 #: ../src/guestfs-actions.pod:6640 ../fish/guestfish-actions.pod:4435
15608 msgid ""
15609 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15610 "activated or deactivated."
15611 msgstr ""
15612
15613 # type: =head2
15614 #: ../src/guestfs-actions.pod:6647
15615 msgid "guestfs_vg_activate_all"
15616 msgstr ""
15617
15618 # type: verbatim
15619 #: ../src/guestfs-actions.pod:6649
15620 #, no-wrap
15621 msgid ""
15622 " int\n"
15623 " guestfs_vg_activate_all (guestfs_h *g,\n"
15624 "                          int activate);\n"
15625 "\n"
15626 msgstr ""
15627
15628 # type: textblock
15629 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4442
15630 msgid ""
15631 "This command activates or (if C<activate> is false) deactivates all logical "
15632 "volumes in all volume groups.  If activated, then they are made known to the "
15633 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15634 "those devices disappear."
15635 msgstr ""
15636
15637 # type: textblock
15638 #: ../src/guestfs-actions.pod:6659 ../fish/guestfish-actions.pod:4448
15639 msgid "This command is the same as running C<vgchange -a y|n>"
15640 msgstr ""
15641
15642 # type: =head2
15643 #: ../src/guestfs-actions.pod:6665
15644 msgid "guestfs_vgcreate"
15645 msgstr ""
15646
15647 # type: verbatim
15648 #: ../src/guestfs-actions.pod:6667
15649 #, no-wrap
15650 msgid ""
15651 " int\n"
15652 " guestfs_vgcreate (guestfs_h *g,\n"
15653 "                   const char *volgroup,\n"
15654 "                   char *const *physvols);\n"
15655 "\n"
15656 msgstr ""
15657
15658 # type: textblock
15659 #: ../src/guestfs-actions.pod:6672 ../fish/guestfish-actions.pod:4454
15660 msgid ""
15661 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15662 "of physical volumes C<physvols>."
15663 msgstr ""
15664
15665 # type: =head2
15666 #: ../src/guestfs-actions.pod:6679
15667 msgid "guestfs_vglvuuids"
15668 msgstr ""
15669
15670 # type: verbatim
15671 #: ../src/guestfs-actions.pod:6681
15672 #, no-wrap
15673 msgid ""
15674 " char **\n"
15675 " guestfs_vglvuuids (guestfs_h *g,\n"
15676 "                    const char *vgname);\n"
15677 "\n"
15678 msgstr ""
15679
15680 # type: textblock
15681 #: ../src/guestfs-actions.pod:6685 ../fish/guestfish-actions.pod:4461
15682 msgid ""
15683 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15684 "volumes created in this volume group."
15685 msgstr ""
15686
15687 # type: textblock
15688 #: ../src/guestfs-actions.pod:6688
15689 msgid ""
15690 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15691 "associate logical volumes and volume groups."
15692 msgstr ""
15693
15694 # type: textblock
15695 #: ../src/guestfs-actions.pod:6691
15696 msgid "See also C<guestfs_vgpvuuids>."
15697 msgstr ""
15698
15699 # type: =head2
15700 #: ../src/guestfs-actions.pod:6699
15701 msgid "guestfs_vgpvuuids"
15702 msgstr ""
15703
15704 # type: verbatim
15705 #: ../src/guestfs-actions.pod:6701
15706 #, no-wrap
15707 msgid ""
15708 " char **\n"
15709 " guestfs_vgpvuuids (guestfs_h *g,\n"
15710 "                    const char *vgname);\n"
15711 "\n"
15712 msgstr ""
15713
15714 # type: textblock
15715 #: ../src/guestfs-actions.pod:6705 ../fish/guestfish-actions.pod:4473
15716 msgid ""
15717 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15718 "volumes that this volume group resides on."
15719 msgstr ""
15720
15721 # type: textblock
15722 #: ../src/guestfs-actions.pod:6708
15723 msgid ""
15724 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15725 "associate physical volumes and volume groups."
15726 msgstr ""
15727
15728 # type: textblock
15729 #: ../src/guestfs-actions.pod:6711
15730 msgid "See also C<guestfs_vglvuuids>."
15731 msgstr ""
15732
15733 # type: =head2
15734 #: ../src/guestfs-actions.pod:6719
15735 msgid "guestfs_vgremove"
15736 msgstr ""
15737
15738 # type: verbatim
15739 #: ../src/guestfs-actions.pod:6721
15740 #, no-wrap
15741 msgid ""
15742 " int\n"
15743 " guestfs_vgremove (guestfs_h *g,\n"
15744 "                   const char *vgname);\n"
15745 "\n"
15746 msgstr ""
15747
15748 # type: textblock
15749 #: ../src/guestfs-actions.pod:6725 ../fish/guestfish-actions.pod:4485
15750 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15751 msgstr ""
15752
15753 # type: textblock
15754 #: ../src/guestfs-actions.pod:6727 ../fish/guestfish-actions.pod:4487
15755 msgid ""
15756 "This also forcibly removes all logical volumes in the volume group (if any)."
15757 msgstr ""
15758
15759 # type: =head2
15760 #: ../src/guestfs-actions.pod:6734
15761 msgid "guestfs_vgrename"
15762 msgstr ""
15763
15764 # type: verbatim
15765 #: ../src/guestfs-actions.pod:6736
15766 #, no-wrap
15767 msgid ""
15768 " int\n"
15769 " guestfs_vgrename (guestfs_h *g,\n"
15770 "                   const char *volgroup,\n"
15771 "                   const char *newvolgroup);\n"
15772 "\n"
15773 msgstr ""
15774
15775 # type: textblock
15776 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4494
15777 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15778 msgstr ""
15779
15780 # type: =head2
15781 #: ../src/guestfs-actions.pod:6747
15782 msgid "guestfs_vgs"
15783 msgstr ""
15784
15785 # type: verbatim
15786 #: ../src/guestfs-actions.pod:6749
15787 #, no-wrap
15788 msgid ""
15789 " char **\n"
15790 " guestfs_vgs (guestfs_h *g);\n"
15791 "\n"
15792 msgstr ""
15793
15794 # type: textblock
15795 #: ../src/guestfs-actions.pod:6752 ../fish/guestfish-actions.pod:4500
15796 msgid ""
15797 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15798 "> command."
15799 msgstr ""
15800
15801 # type: textblock
15802 #: ../src/guestfs-actions.pod:6755 ../fish/guestfish-actions.pod:4503
15803 msgid ""
15804 "This returns a list of just the volume group names that were detected (eg. "
15805 "C<VolGroup00>)."
15806 msgstr ""
15807
15808 # type: textblock
15809 #: ../src/guestfs-actions.pod:6758
15810 msgid "See also C<guestfs_vgs_full>."
15811 msgstr ""
15812
15813 # type: =head2
15814 #: ../src/guestfs-actions.pod:6766
15815 msgid "guestfs_vgs_full"
15816 msgstr ""
15817
15818 # type: verbatim
15819 #: ../src/guestfs-actions.pod:6768
15820 #, no-wrap
15821 msgid ""
15822 " struct guestfs_lvm_vg_list *\n"
15823 " guestfs_vgs_full (guestfs_h *g);\n"
15824 "\n"
15825 msgstr ""
15826
15827 # type: textblock
15828 #: ../src/guestfs-actions.pod:6771 ../fish/guestfish-actions.pod:4512
15829 msgid ""
15830 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15831 "> command.  The \"full\" version includes all fields."
15832 msgstr ""
15833
15834 # type: textblock
15835 #: ../src/guestfs-actions.pod:6774
15836 msgid ""
15837 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15838 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15839 msgstr ""
15840
15841 # type: =head2
15842 #: ../src/guestfs-actions.pod:6780
15843 msgid "guestfs_vgscan"
15844 msgstr ""
15845
15846 # type: verbatim
15847 #: ../src/guestfs-actions.pod:6782
15848 #, no-wrap
15849 msgid ""
15850 " int\n"
15851 " guestfs_vgscan (guestfs_h *g);\n"
15852 "\n"
15853 msgstr ""
15854
15855 # type: textblock
15856 #: ../src/guestfs-actions.pod:6785 ../fish/guestfish-actions.pod:4519
15857 msgid ""
15858 "This rescans all block devices and rebuilds the list of LVM physical "
15859 "volumes, volume groups and logical volumes."
15860 msgstr ""
15861
15862 # type: =head2
15863 #: ../src/guestfs-actions.pod:6792
15864 msgid "guestfs_vguuid"
15865 msgstr ""
15866
15867 # type: verbatim
15868 #: ../src/guestfs-actions.pod:6794
15869 #, no-wrap
15870 msgid ""
15871 " char *\n"
15872 " guestfs_vguuid (guestfs_h *g,\n"
15873 "                 const char *vgname);\n"
15874 "\n"
15875 msgstr ""
15876
15877 # type: textblock
15878 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4526
15879 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15880 msgstr ""
15881
15882 # type: =head2
15883 #: ../src/guestfs-actions.pod:6805
15884 msgid "guestfs_wait_ready"
15885 msgstr ""
15886
15887 # type: verbatim
15888 #: ../src/guestfs-actions.pod:6807
15889 #, no-wrap
15890 msgid ""
15891 " int\n"
15892 " guestfs_wait_ready (guestfs_h *g);\n"
15893 "\n"
15894 msgstr ""
15895
15896 # type: textblock
15897 #: ../src/guestfs-actions.pod:6810
15898 msgid "This function is a no op."
15899 msgstr ""
15900
15901 # type: textblock
15902 #: ../src/guestfs-actions.pod:6812
15903 msgid ""
15904 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15905 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15906 "is no longer necessary because C<guestfs_launch> now does the waiting."
15907 msgstr ""
15908
15909 # type: textblock
15910 #: ../src/guestfs-actions.pod:6817
15911 msgid ""
15912 "If you see any calls to this function in code then you can just remove them, "
15913 "unless you want to retain compatibility with older versions of the API."
15914 msgstr ""
15915
15916 # type: =head2
15917 #: ../src/guestfs-actions.pod:6825
15918 msgid "guestfs_wc_c"
15919 msgstr ""
15920
15921 # type: verbatim
15922 #: ../src/guestfs-actions.pod:6827
15923 #, no-wrap
15924 msgid ""
15925 " int\n"
15926 " guestfs_wc_c (guestfs_h *g,\n"
15927 "               const char *path);\n"
15928 "\n"
15929 msgstr ""
15930
15931 # type: textblock
15932 #: ../src/guestfs-actions.pod:6831 ../fish/guestfish-actions.pod:4532
15933 msgid ""
15934 "This command counts the characters in a file, using the C<wc -c> external "
15935 "command."
15936 msgstr ""
15937
15938 # type: =head2
15939 #: ../src/guestfs-actions.pod:6838
15940 msgid "guestfs_wc_l"
15941 msgstr ""
15942
15943 # type: verbatim
15944 #: ../src/guestfs-actions.pod:6840
15945 #, no-wrap
15946 msgid ""
15947 " int\n"
15948 " guestfs_wc_l (guestfs_h *g,\n"
15949 "               const char *path);\n"
15950 "\n"
15951 msgstr ""
15952
15953 # type: textblock
15954 #: ../src/guestfs-actions.pod:6844 ../fish/guestfish-actions.pod:4539
15955 msgid ""
15956 "This command counts the lines in a file, using the C<wc -l> external command."
15957 msgstr ""
15958
15959 # type: =head2
15960 #: ../src/guestfs-actions.pod:6851
15961 msgid "guestfs_wc_w"
15962 msgstr ""
15963
15964 # type: verbatim
15965 #: ../src/guestfs-actions.pod:6853
15966 #, no-wrap
15967 msgid ""
15968 " int\n"
15969 " guestfs_wc_w (guestfs_h *g,\n"
15970 "               const char *path);\n"
15971 "\n"
15972 msgstr ""
15973
15974 # type: textblock
15975 #: ../src/guestfs-actions.pod:6857 ../fish/guestfish-actions.pod:4546
15976 msgid ""
15977 "This command counts the words in a file, using the C<wc -w> external command."
15978 msgstr ""
15979
15980 # type: =head2
15981 #: ../src/guestfs-actions.pod:6864
15982 msgid "guestfs_write"
15983 msgstr ""
15984
15985 # type: verbatim
15986 #: ../src/guestfs-actions.pod:6866
15987 #, no-wrap
15988 msgid ""
15989 " int\n"
15990 " guestfs_write (guestfs_h *g,\n"
15991 "                const char *path,\n"
15992 "                const char *content,\n"
15993 "                size_t content_size);\n"
15994 "\n"
15995 msgstr ""
15996
15997 # type: textblock
15998 #: ../src/guestfs-actions.pod:6872 ../fish/guestfish-actions.pod:4553
15999 msgid ""
16000 "This call creates a file called C<path>.  The content of the file is the "
16001 "string C<content> (which can contain any 8 bit data)."
16002 msgstr ""
16003
16004 # type: =head2
16005 #: ../src/guestfs-actions.pod:6882
16006 msgid "guestfs_write_file"
16007 msgstr ""
16008
16009 # type: verbatim
16010 #: ../src/guestfs-actions.pod:6884
16011 #, no-wrap
16012 msgid ""
16013 " int\n"
16014 " guestfs_write_file (guestfs_h *g,\n"
16015 "                     const char *path,\n"
16016 "                     const char *content,\n"
16017 "                     int size);\n"
16018 "\n"
16019 msgstr ""
16020
16021 # type: textblock
16022 #: ../src/guestfs-actions.pod:6890 ../fish/guestfish-actions.pod:4563
16023 msgid ""
16024 "This call creates a file called C<path>.  The contents of the file is the "
16025 "string C<content> (which can contain any 8 bit data), with length C<size>."
16026 msgstr ""
16027
16028 # type: textblock
16029 #: ../src/guestfs-actions.pod:6894 ../fish/guestfish-actions.pod:4567
16030 msgid ""
16031 "As a special case, if C<size> is C<0> then the length is calculated using "
16032 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16033 msgstr ""
16034
16035 # type: textblock
16036 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4571
16037 msgid ""
16038 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16039 "I<not> work, even if the length is specified."
16040 msgstr ""
16041
16042 # type: textblock
16043 #: ../src/guestfs-actions.pod:6906 ../fish/guestfish-actions.pod:4577
16044 msgid ""
16045 "This function is deprecated.  In new code, use the C<write> call instead."
16046 msgstr ""
16047
16048 # type: =head2
16049 #: ../src/guestfs-actions.pod:6915
16050 msgid "guestfs_zegrep"
16051 msgstr ""
16052
16053 # type: verbatim
16054 #: ../src/guestfs-actions.pod:6917
16055 #, no-wrap
16056 msgid ""
16057 " char **\n"
16058 " guestfs_zegrep (guestfs_h *g,\n"
16059 "                 const char *regex,\n"
16060 "                 const char *path);\n"
16061 "\n"
16062 msgstr ""
16063
16064 # type: textblock
16065 #: ../src/guestfs-actions.pod:6922 ../fish/guestfish-actions.pod:4588
16066 msgid ""
16067 "This calls the external C<zegrep> program and returns the matching lines."
16068 msgstr ""
16069
16070 # type: =head2
16071 #: ../src/guestfs-actions.pod:6934
16072 msgid "guestfs_zegrepi"
16073 msgstr ""
16074
16075 # type: verbatim
16076 #: ../src/guestfs-actions.pod:6936
16077 #, no-wrap
16078 msgid ""
16079 " char **\n"
16080 " guestfs_zegrepi (guestfs_h *g,\n"
16081 "                  const char *regex,\n"
16082 "                  const char *path);\n"
16083 "\n"
16084 msgstr ""
16085
16086 # type: textblock
16087 #: ../src/guestfs-actions.pod:6941 ../fish/guestfish-actions.pod:4598
16088 msgid ""
16089 "This calls the external C<zegrep -i> program and returns the matching lines."
16090 msgstr ""
16091
16092 # type: =head2
16093 #: ../src/guestfs-actions.pod:6953
16094 msgid "guestfs_zero"
16095 msgstr ""
16096
16097 # type: verbatim
16098 #: ../src/guestfs-actions.pod:6955
16099 #, no-wrap
16100 msgid ""
16101 " int\n"
16102 " guestfs_zero (guestfs_h *g,\n"
16103 "               const char *device);\n"
16104 "\n"
16105 msgstr ""
16106
16107 # type: textblock
16108 #: ../src/guestfs-actions.pod:6959 ../fish/guestfish-actions.pod:4608
16109 msgid "This command writes zeroes over the first few blocks of C<device>."
16110 msgstr ""
16111
16112 # type: textblock
16113 #: ../src/guestfs-actions.pod:6961 ../fish/guestfish-actions.pod:4610
16114 msgid ""
16115 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16116 "securely wipe the device).  It should be sufficient to remove any partition "
16117 "tables, filesystem superblocks and so on."
16118 msgstr ""
16119
16120 # type: textblock
16121 #: ../src/guestfs-actions.pod:6965
16122 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
16123 msgstr ""
16124
16125 # type: =head2
16126 #: ../src/guestfs-actions.pod:6976
16127 msgid "guestfs_zero_device"
16128 msgstr ""
16129
16130 # type: verbatim
16131 #: ../src/guestfs-actions.pod:6978
16132 #, no-wrap
16133 msgid ""
16134 " int\n"
16135 " guestfs_zero_device (guestfs_h *g,\n"
16136 "                      const char *device);\n"
16137 "\n"
16138 msgstr ""
16139
16140 # type: textblock
16141 #: ../src/guestfs-actions.pod:6982
16142 msgid ""
16143 "This command writes zeroes over the entire C<device>.  Compare with "
16144 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16145 msgstr ""
16146
16147 # type: textblock
16148 #: ../src/guestfs-actions.pod:6996
16149 msgid "(Added in 1.3.1)"
16150 msgstr ""
16151
16152 # type: =head2
16153 #: ../src/guestfs-actions.pod:6998
16154 msgid "guestfs_zerofree"
16155 msgstr ""
16156
16157 # type: verbatim
16158 #: ../src/guestfs-actions.pod:7000
16159 #, no-wrap
16160 msgid ""
16161 " int\n"
16162 " guestfs_zerofree (guestfs_h *g,\n"
16163 "                   const char *device);\n"
16164 "\n"
16165 msgstr ""
16166
16167 # type: textblock
16168 #: ../src/guestfs-actions.pod:7004 ../fish/guestfish-actions.pod:4631
16169 msgid ""
16170 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16171 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16172 "possible to compress the filesystem more effectively."
16173 msgstr ""
16174
16175 # type: textblock
16176 #: ../src/guestfs-actions.pod:7009 ../fish/guestfish-actions.pod:4636
16177 msgid "You should B<not> run this program if the filesystem is mounted."
16178 msgstr ""
16179
16180 # type: textblock
16181 #: ../src/guestfs-actions.pod:7012 ../fish/guestfish-actions.pod:4639
16182 msgid ""
16183 "It is possible that using this program can damage the filesystem or data on "
16184 "the filesystem."
16185 msgstr ""
16186
16187 # type: =head2
16188 #: ../src/guestfs-actions.pod:7019
16189 msgid "guestfs_zfgrep"
16190 msgstr ""
16191
16192 # type: verbatim
16193 #: ../src/guestfs-actions.pod:7021
16194 #, no-wrap
16195 msgid ""
16196 " char **\n"
16197 " guestfs_zfgrep (guestfs_h *g,\n"
16198 "                 const char *pattern,\n"
16199 "                 const char *path);\n"
16200 "\n"
16201 msgstr ""
16202
16203 # type: textblock
16204 #: ../src/guestfs-actions.pod:7026 ../fish/guestfish-actions.pod:4646
16205 msgid ""
16206 "This calls the external C<zfgrep> program and returns the matching lines."
16207 msgstr ""
16208
16209 # type: =head2
16210 #: ../src/guestfs-actions.pod:7038
16211 msgid "guestfs_zfgrepi"
16212 msgstr ""
16213
16214 # type: verbatim
16215 #: ../src/guestfs-actions.pod:7040
16216 #, no-wrap
16217 msgid ""
16218 " char **\n"
16219 " guestfs_zfgrepi (guestfs_h *g,\n"
16220 "                  const char *pattern,\n"
16221 "                  const char *path);\n"
16222 "\n"
16223 msgstr ""
16224
16225 # type: textblock
16226 #: ../src/guestfs-actions.pod:7045 ../fish/guestfish-actions.pod:4656
16227 msgid ""
16228 "This calls the external C<zfgrep -i> program and returns the matching lines."
16229 msgstr ""
16230
16231 # type: =head2
16232 #: ../src/guestfs-actions.pod:7057
16233 msgid "guestfs_zfile"
16234 msgstr ""
16235
16236 # type: verbatim
16237 #: ../src/guestfs-actions.pod:7059
16238 #, no-wrap
16239 msgid ""
16240 " char *\n"
16241 " guestfs_zfile (guestfs_h *g,\n"
16242 "                const char *meth,\n"
16243 "                const char *path);\n"
16244 "\n"
16245 msgstr ""
16246
16247 # type: textblock
16248 #: ../src/guestfs-actions.pod:7064 ../fish/guestfish-actions.pod:4666
16249 msgid ""
16250 "This command runs C<file> after first decompressing C<path> using C<method>."
16251 msgstr ""
16252
16253 # type: textblock
16254 #: ../src/guestfs-actions.pod:7067 ../fish/guestfish-actions.pod:4669
16255 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16256 msgstr ""
16257
16258 # type: textblock
16259 #: ../src/guestfs-actions.pod:7069
16260 msgid ""
16261 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16262 "files."
16263 msgstr ""
16264
16265 # type: textblock
16266 #: ../src/guestfs-actions.pod:7075 ../fish/guestfish-actions.pod:4674
16267 msgid ""
16268 "This function is deprecated.  In new code, use the C<file> call instead."
16269 msgstr ""
16270
16271 # type: =head2
16272 #: ../src/guestfs-actions.pod:7084
16273 msgid "guestfs_zgrep"
16274 msgstr ""
16275
16276 # type: verbatim
16277 #: ../src/guestfs-actions.pod:7086
16278 #, no-wrap
16279 msgid ""
16280 " char **\n"
16281 " guestfs_zgrep (guestfs_h *g,\n"
16282 "                const char *regex,\n"
16283 "                const char *path);\n"
16284 "\n"
16285 msgstr ""
16286
16287 # type: textblock
16288 #: ../src/guestfs-actions.pod:7091 ../fish/guestfish-actions.pod:4685
16289 msgid ""
16290 "This calls the external C<zgrep> program and returns the matching lines."
16291 msgstr ""
16292
16293 # type: =head2
16294 #: ../src/guestfs-actions.pod:7103
16295 msgid "guestfs_zgrepi"
16296 msgstr ""
16297
16298 # type: verbatim
16299 #: ../src/guestfs-actions.pod:7105
16300 #, no-wrap
16301 msgid ""
16302 " char **\n"
16303 " guestfs_zgrepi (guestfs_h *g,\n"
16304 "                 const char *regex,\n"
16305 "                 const char *path);\n"
16306 "\n"
16307 msgstr ""
16308
16309 # type: textblock
16310 #: ../src/guestfs-actions.pod:7110 ../fish/guestfish-actions.pod:4695
16311 msgid ""
16312 "This calls the external C<zgrep -i> program and returns the matching lines."
16313 msgstr ""
16314
16315 # type: =item
16316 #: ../src/guestfs-availability.pod:3
16317 msgid "B<augeas>"
16318 msgstr ""
16319
16320 # type: textblock
16321 #: ../src/guestfs-availability.pod:5
16322 msgid ""
16323 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16324 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16325 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16326 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16327 "L</guestfs_aug_save> L</guestfs_aug_set>"
16328 msgstr ""
16329
16330 # type: =item
16331 #: ../src/guestfs-availability.pod:21
16332 msgid "B<inotify>"
16333 msgstr ""
16334
16335 # type: textblock
16336 #: ../src/guestfs-availability.pod:23
16337 msgid ""
16338 "The following functions: L</guestfs_inotify_add_watch> L</"
16339 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16340 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16341 msgstr ""
16342
16343 # type: =item
16344 #: ../src/guestfs-availability.pod:31
16345 msgid "B<linuxfsuuid>"
16346 msgstr ""
16347
16348 # type: textblock
16349 #: ../src/guestfs-availability.pod:33
16350 msgid ""
16351 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16352 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16353 msgstr ""
16354
16355 # type: =item
16356 #: ../src/guestfs-availability.pod:40
16357 msgid "B<linuxmodules>"
16358 msgstr ""
16359
16360 # type: textblock
16361 #: ../src/guestfs-availability.pod:42
16362 msgid "The following functions: L</guestfs_modprobe>"
16363 msgstr ""
16364
16365 # type: =item
16366 #: ../src/guestfs-availability.pod:45
16367 msgid "B<linuxxattrs>"
16368 msgstr ""
16369
16370 # type: textblock
16371 #: ../src/guestfs-availability.pod:47
16372 msgid ""
16373 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16374 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16375 "guestfs_removexattr> L</guestfs_setxattr>"
16376 msgstr ""
16377
16378 # type: =item
16379 #: ../src/guestfs-availability.pod:56
16380 msgid "B<luks>"
16381 msgstr ""
16382
16383 # type: textblock
16384 #: ../src/guestfs-availability.pod:58
16385 msgid ""
16386 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16387 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16388 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16389 msgstr ""
16390
16391 # type: =item
16392 #: ../src/guestfs-availability.pod:67
16393 msgid "B<lvm2>"
16394 msgstr ""
16395
16396 # type: textblock
16397 #: ../src/guestfs-availability.pod:69
16398 msgid ""
16399 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16400 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16401 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16402 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16403 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16404 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16405 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16406 msgstr ""
16407
16408 # type: =item
16409 #: ../src/guestfs-availability.pod:92
16410 msgid "B<mknod>"
16411 msgstr ""
16412
16413 # type: textblock
16414 #: ../src/guestfs-availability.pod:94
16415 msgid ""
16416 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16417 "guestfs_mknod_b> L</guestfs_mknod_c>"
16418 msgstr ""
16419
16420 # type: =item
16421 #: ../src/guestfs-availability.pod:100
16422 msgid "B<ntfs3g>"
16423 msgstr ""
16424
16425 # type: textblock
16426 #: ../src/guestfs-availability.pod:102
16427 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16428 msgstr ""
16429
16430 # type: =item
16431 #: ../src/guestfs-availability.pod:105
16432 msgid "B<ntfsprogs>"
16433 msgstr ""
16434
16435 # type: textblock
16436 #: ../src/guestfs-availability.pod:107
16437 msgid ""
16438 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16439 msgstr ""
16440
16441 # type: =item
16442 #: ../src/guestfs-availability.pod:111
16443 msgid "B<realpath>"
16444 msgstr ""
16445
16446 # type: textblock
16447 #: ../src/guestfs-availability.pod:113
16448 msgid "The following functions: L</guestfs_realpath>"
16449 msgstr ""
16450
16451 # type: =item
16452 #: ../src/guestfs-availability.pod:116
16453 msgid "B<scrub>"
16454 msgstr ""
16455
16456 # type: textblock
16457 #: ../src/guestfs-availability.pod:118
16458 msgid ""
16459 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16460 "guestfs_scrub_freespace>"
16461 msgstr ""
16462
16463 # type: =item
16464 #: ../src/guestfs-availability.pod:123
16465 msgid "B<selinux>"
16466 msgstr ""
16467
16468 # type: textblock
16469 #: ../src/guestfs-availability.pod:125
16470 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16471 msgstr ""
16472
16473 # type: =item
16474 #: ../src/guestfs-availability.pod:129
16475 msgid "B<xz>"
16476 msgstr ""
16477
16478 # type: textblock
16479 #: ../src/guestfs-availability.pod:131
16480 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16481 msgstr ""
16482
16483 # type: =item
16484 #: ../src/guestfs-availability.pod:135
16485 msgid "B<zerofree>"
16486 msgstr ""
16487
16488 # type: textblock
16489 #: ../src/guestfs-availability.pod:137
16490 msgid "The following functions: L</guestfs_zerofree>"
16491 msgstr ""
16492
16493 # type: =head2
16494 #: ../src/guestfs-structs.pod:1
16495 msgid "guestfs_int_bool"
16496 msgstr ""
16497
16498 # type: verbatim
16499 #: ../src/guestfs-structs.pod:3
16500 #, no-wrap
16501 msgid ""
16502 " struct guestfs_int_bool {\n"
16503 "   int32_t i;\n"
16504 "   int32_t b;\n"
16505 " };\n"
16506 " \n"
16507 msgstr ""
16508
16509 # type: verbatim
16510 #: ../src/guestfs-structs.pod:8
16511 #, no-wrap
16512 msgid ""
16513 " struct guestfs_int_bool_list {\n"
16514 "   uint32_t len; /* Number of elements in list. */\n"
16515 "   struct guestfs_int_bool *val; /* Elements. */\n"
16516 " };\n"
16517 " \n"
16518 msgstr ""
16519
16520 # type: verbatim
16521 #: ../src/guestfs-structs.pod:13
16522 #, no-wrap
16523 msgid ""
16524 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16525 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16526 "\n"
16527 msgstr ""
16528
16529 # type: =head2
16530 #: ../src/guestfs-structs.pod:16
16531 msgid "guestfs_lvm_pv"
16532 msgstr ""
16533
16534 # type: verbatim
16535 #: ../src/guestfs-structs.pod:18
16536 #, no-wrap
16537 msgid ""
16538 " struct guestfs_lvm_pv {\n"
16539 "   char *pv_name;\n"
16540 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16541 "   char pv_uuid[32];\n"
16542 "   char *pv_fmt;\n"
16543 "   uint64_t pv_size;\n"
16544 "   uint64_t dev_size;\n"
16545 "   uint64_t pv_free;\n"
16546 "   uint64_t pv_used;\n"
16547 "   char *pv_attr;\n"
16548 "   int64_t pv_pe_count;\n"
16549 "   int64_t pv_pe_alloc_count;\n"
16550 "   char *pv_tags;\n"
16551 "   uint64_t pe_start;\n"
16552 "   int64_t pv_mda_count;\n"
16553 "   uint64_t pv_mda_free;\n"
16554 " };\n"
16555 " \n"
16556 msgstr ""
16557
16558 # type: verbatim
16559 #: ../src/guestfs-structs.pod:36
16560 #, no-wrap
16561 msgid ""
16562 " struct guestfs_lvm_pv_list {\n"
16563 "   uint32_t len; /* Number of elements in list. */\n"
16564 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16565 " };\n"
16566 " \n"
16567 msgstr ""
16568
16569 # type: verbatim
16570 #: ../src/guestfs-structs.pod:41
16571 #, no-wrap
16572 msgid ""
16573 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16574 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16575 "\n"
16576 msgstr ""
16577
16578 # type: =head2
16579 #: ../src/guestfs-structs.pod:44
16580 msgid "guestfs_lvm_vg"
16581 msgstr ""
16582
16583 # type: verbatim
16584 #: ../src/guestfs-structs.pod:46
16585 #, no-wrap
16586 msgid ""
16587 " struct guestfs_lvm_vg {\n"
16588 "   char *vg_name;\n"
16589 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16590 "   char vg_uuid[32];\n"
16591 "   char *vg_fmt;\n"
16592 "   char *vg_attr;\n"
16593 "   uint64_t vg_size;\n"
16594 "   uint64_t vg_free;\n"
16595 "   char *vg_sysid;\n"
16596 "   uint64_t vg_extent_size;\n"
16597 "   int64_t vg_extent_count;\n"
16598 "   int64_t vg_free_count;\n"
16599 "   int64_t max_lv;\n"
16600 "   int64_t max_pv;\n"
16601 "   int64_t pv_count;\n"
16602 "   int64_t lv_count;\n"
16603 "   int64_t snap_count;\n"
16604 "   int64_t vg_seqno;\n"
16605 "   char *vg_tags;\n"
16606 "   int64_t vg_mda_count;\n"
16607 "   uint64_t vg_mda_free;\n"
16608 " };\n"
16609 " \n"
16610 msgstr ""
16611
16612 # type: verbatim
16613 #: ../src/guestfs-structs.pod:69
16614 #, no-wrap
16615 msgid ""
16616 " struct guestfs_lvm_vg_list {\n"
16617 "   uint32_t len; /* Number of elements in list. */\n"
16618 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16619 " };\n"
16620 " \n"
16621 msgstr ""
16622
16623 # type: verbatim
16624 #: ../src/guestfs-structs.pod:74
16625 #, no-wrap
16626 msgid ""
16627 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16628 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16629 "\n"
16630 msgstr ""
16631
16632 # type: =head2
16633 #: ../src/guestfs-structs.pod:77
16634 msgid "guestfs_lvm_lv"
16635 msgstr ""
16636
16637 # type: verbatim
16638 #: ../src/guestfs-structs.pod:79
16639 #, no-wrap
16640 msgid ""
16641 " struct guestfs_lvm_lv {\n"
16642 "   char *lv_name;\n"
16643 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16644 "   char lv_uuid[32];\n"
16645 "   char *lv_attr;\n"
16646 "   int64_t lv_major;\n"
16647 "   int64_t lv_minor;\n"
16648 "   int64_t lv_kernel_major;\n"
16649 "   int64_t lv_kernel_minor;\n"
16650 "   uint64_t lv_size;\n"
16651 "   int64_t seg_count;\n"
16652 "   char *origin;\n"
16653 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16654 "   float snap_percent;\n"
16655 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16656 "   float copy_percent;\n"
16657 "   char *move_pv;\n"
16658 "   char *lv_tags;\n"
16659 "   char *mirror_log;\n"
16660 "   char *modules;\n"
16661 " };\n"
16662 " \n"
16663 msgstr ""
16664
16665 # type: verbatim
16666 #: ../src/guestfs-structs.pod:101
16667 #, no-wrap
16668 msgid ""
16669 " struct guestfs_lvm_lv_list {\n"
16670 "   uint32_t len; /* Number of elements in list. */\n"
16671 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16672 " };\n"
16673 " \n"
16674 msgstr ""
16675
16676 # type: verbatim
16677 #: ../src/guestfs-structs.pod:106
16678 #, no-wrap
16679 msgid ""
16680 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16681 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16682 "\n"
16683 msgstr ""
16684
16685 # type: verbatim
16686 #: ../src/guestfs-structs.pod:111
16687 #, no-wrap
16688 msgid ""
16689 " struct guestfs_stat {\n"
16690 "   int64_t dev;\n"
16691 "   int64_t ino;\n"
16692 "   int64_t mode;\n"
16693 "   int64_t nlink;\n"
16694 "   int64_t uid;\n"
16695 "   int64_t gid;\n"
16696 "   int64_t rdev;\n"
16697 "   int64_t size;\n"
16698 "   int64_t blksize;\n"
16699 "   int64_t blocks;\n"
16700 "   int64_t atime;\n"
16701 "   int64_t mtime;\n"
16702 "   int64_t ctime;\n"
16703 " };\n"
16704 " \n"
16705 msgstr ""
16706
16707 # type: verbatim
16708 #: ../src/guestfs-structs.pod:127
16709 #, no-wrap
16710 msgid ""
16711 " struct guestfs_stat_list {\n"
16712 "   uint32_t len; /* Number of elements in list. */\n"
16713 "   struct guestfs_stat *val; /* Elements. */\n"
16714 " };\n"
16715 " \n"
16716 msgstr ""
16717
16718 # type: verbatim
16719 #: ../src/guestfs-structs.pod:132
16720 #, no-wrap
16721 msgid ""
16722 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16723 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16724 "\n"
16725 msgstr ""
16726
16727 # type: verbatim
16728 #: ../src/guestfs-structs.pod:137
16729 #, no-wrap
16730 msgid ""
16731 " struct guestfs_statvfs {\n"
16732 "   int64_t bsize;\n"
16733 "   int64_t frsize;\n"
16734 "   int64_t blocks;\n"
16735 "   int64_t bfree;\n"
16736 "   int64_t bavail;\n"
16737 "   int64_t files;\n"
16738 "   int64_t ffree;\n"
16739 "   int64_t favail;\n"
16740 "   int64_t fsid;\n"
16741 "   int64_t flag;\n"
16742 "   int64_t namemax;\n"
16743 " };\n"
16744 " \n"
16745 msgstr ""
16746
16747 # type: verbatim
16748 #: ../src/guestfs-structs.pod:151
16749 #, no-wrap
16750 msgid ""
16751 " struct guestfs_statvfs_list {\n"
16752 "   uint32_t len; /* Number of elements in list. */\n"
16753 "   struct guestfs_statvfs *val; /* Elements. */\n"
16754 " };\n"
16755 " \n"
16756 msgstr ""
16757
16758 # type: verbatim
16759 #: ../src/guestfs-structs.pod:156
16760 #, no-wrap
16761 msgid ""
16762 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16763 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16764 "\n"
16765 msgstr ""
16766
16767 # type: =head2
16768 #: ../src/guestfs-structs.pod:159
16769 msgid "guestfs_dirent"
16770 msgstr ""
16771
16772 # type: verbatim
16773 #: ../src/guestfs-structs.pod:161
16774 #, no-wrap
16775 msgid ""
16776 " struct guestfs_dirent {\n"
16777 "   int64_t ino;\n"
16778 "   char ftyp;\n"
16779 "   char *name;\n"
16780 " };\n"
16781 " \n"
16782 msgstr ""
16783
16784 # type: verbatim
16785 #: ../src/guestfs-structs.pod:167
16786 #, no-wrap
16787 msgid ""
16788 " struct guestfs_dirent_list {\n"
16789 "   uint32_t len; /* Number of elements in list. */\n"
16790 "   struct guestfs_dirent *val; /* Elements. */\n"
16791 " };\n"
16792 " \n"
16793 msgstr ""
16794
16795 # type: verbatim
16796 #: ../src/guestfs-structs.pod:172
16797 #, no-wrap
16798 msgid ""
16799 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16800 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16801 "\n"
16802 msgstr ""
16803
16804 # type: verbatim
16805 #: ../src/guestfs-structs.pod:177
16806 #, no-wrap
16807 msgid ""
16808 " struct guestfs_version {\n"
16809 "   int64_t major;\n"
16810 "   int64_t minor;\n"
16811 "   int64_t release;\n"
16812 "   char *extra;\n"
16813 " };\n"
16814 " \n"
16815 msgstr ""
16816
16817 # type: verbatim
16818 #: ../src/guestfs-structs.pod:184
16819 #, no-wrap
16820 msgid ""
16821 " struct guestfs_version_list {\n"
16822 "   uint32_t len; /* Number of elements in list. */\n"
16823 "   struct guestfs_version *val; /* Elements. */\n"
16824 " };\n"
16825 " \n"
16826 msgstr ""
16827
16828 # type: verbatim
16829 #: ../src/guestfs-structs.pod:189
16830 #, no-wrap
16831 msgid ""
16832 " void guestfs_free_version (struct guestfs_free_version *);\n"
16833 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16834 "\n"
16835 msgstr ""
16836
16837 # type: =head2
16838 #: ../src/guestfs-structs.pod:192
16839 msgid "guestfs_xattr"
16840 msgstr ""
16841
16842 # type: verbatim
16843 #: ../src/guestfs-structs.pod:194
16844 #, no-wrap
16845 msgid ""
16846 " struct guestfs_xattr {\n"
16847 "   char *attrname;\n"
16848 "   /* The next two fields describe a byte array. */\n"
16849 "   uint32_t attrval_len;\n"
16850 "   char *attrval;\n"
16851 " };\n"
16852 " \n"
16853 msgstr ""
16854
16855 # type: verbatim
16856 #: ../src/guestfs-structs.pod:201
16857 #, no-wrap
16858 msgid ""
16859 " struct guestfs_xattr_list {\n"
16860 "   uint32_t len; /* Number of elements in list. */\n"
16861 "   struct guestfs_xattr *val; /* Elements. */\n"
16862 " };\n"
16863 " \n"
16864 msgstr ""
16865
16866 # type: verbatim
16867 #: ../src/guestfs-structs.pod:206
16868 #, no-wrap
16869 msgid ""
16870 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16871 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16872 "\n"
16873 msgstr ""
16874
16875 # type: =head2
16876 #: ../src/guestfs-structs.pod:209
16877 msgid "guestfs_inotify_event"
16878 msgstr ""
16879
16880 # type: verbatim
16881 #: ../src/guestfs-structs.pod:211
16882 #, no-wrap
16883 msgid ""
16884 " struct guestfs_inotify_event {\n"
16885 "   int64_t in_wd;\n"
16886 "   uint32_t in_mask;\n"
16887 "   uint32_t in_cookie;\n"
16888 "   char *in_name;\n"
16889 " };\n"
16890 " \n"
16891 msgstr ""
16892
16893 # type: verbatim
16894 #: ../src/guestfs-structs.pod:218
16895 #, no-wrap
16896 msgid ""
16897 " struct guestfs_inotify_event_list {\n"
16898 "   uint32_t len; /* Number of elements in list. */\n"
16899 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16900 " };\n"
16901 " \n"
16902 msgstr ""
16903
16904 # type: verbatim
16905 #: ../src/guestfs-structs.pod:223
16906 #, no-wrap
16907 msgid ""
16908 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16909 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16910 "\n"
16911 msgstr ""
16912
16913 # type: =head2
16914 #: ../src/guestfs-structs.pod:226
16915 msgid "guestfs_partition"
16916 msgstr ""
16917
16918 # type: verbatim
16919 #: ../src/guestfs-structs.pod:228
16920 #, no-wrap
16921 msgid ""
16922 " struct guestfs_partition {\n"
16923 "   int32_t part_num;\n"
16924 "   uint64_t part_start;\n"
16925 "   uint64_t part_end;\n"
16926 "   uint64_t part_size;\n"
16927 " };\n"
16928 " \n"
16929 msgstr ""
16930
16931 # type: verbatim
16932 #: ../src/guestfs-structs.pod:235
16933 #, no-wrap
16934 msgid ""
16935 " struct guestfs_partition_list {\n"
16936 "   uint32_t len; /* Number of elements in list. */\n"
16937 "   struct guestfs_partition *val; /* Elements. */\n"
16938 " };\n"
16939 " \n"
16940 msgstr ""
16941
16942 # type: verbatim
16943 #: ../src/guestfs-structs.pod:240
16944 #, no-wrap
16945 msgid ""
16946 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16947 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16948 "\n"
16949 msgstr ""
16950
16951 # type: =head2
16952 #: ../src/guestfs-structs.pod:243
16953 msgid "guestfs_application"
16954 msgstr ""
16955
16956 # type: verbatim
16957 #: ../src/guestfs-structs.pod:245
16958 #, no-wrap
16959 msgid ""
16960 " struct guestfs_application {\n"
16961 "   char *app_name;\n"
16962 "   char *app_display_name;\n"
16963 "   int32_t app_epoch;\n"
16964 "   char *app_version;\n"
16965 "   char *app_release;\n"
16966 "   char *app_install_path;\n"
16967 "   char *app_trans_path;\n"
16968 "   char *app_publisher;\n"
16969 "   char *app_url;\n"
16970 "   char *app_source_package;\n"
16971 "   char *app_summary;\n"
16972 "   char *app_description;\n"
16973 " };\n"
16974 " \n"
16975 msgstr ""
16976
16977 # type: verbatim
16978 #: ../src/guestfs-structs.pod:260
16979 #, no-wrap
16980 msgid ""
16981 " struct guestfs_application_list {\n"
16982 "   uint32_t len; /* Number of elements in list. */\n"
16983 "   struct guestfs_application *val; /* Elements. */\n"
16984 " };\n"
16985 " \n"
16986 msgstr ""
16987
16988 # type: verbatim
16989 #: ../src/guestfs-structs.pod:265
16990 #, no-wrap
16991 msgid ""
16992 " void guestfs_free_application (struct guestfs_free_application *);\n"
16993 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16994 "\n"
16995 msgstr ""
16996
16997 # type: textblock
16998 #: ../fish/guestfish.pod:5
16999 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17000 msgstr ""
17001
17002 # type: verbatim
17003 #: ../fish/guestfish.pod:9
17004 #, no-wrap
17005 msgid ""
17006 " guestfish [--options] [commands]\n"
17007 "\n"
17008 msgstr ""
17009
17010 # type: verbatim
17011 #: ../fish/guestfish.pod:11
17012 #, no-wrap
17013 msgid ""
17014 " guestfish\n"
17015 "\n"
17016 msgstr ""
17017
17018 # type: verbatim
17019 #: ../fish/guestfish.pod:13
17020 #, no-wrap
17021 msgid ""
17022 " guestfish [--ro|--rw] -a disk.img\n"
17023 "\n"
17024 msgstr ""
17025
17026 # type: verbatim
17027 #: ../fish/guestfish.pod:15
17028 #, no-wrap
17029 msgid ""
17030 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17031 "\n"
17032 msgstr ""
17033
17034 # type: verbatim
17035 #: ../fish/guestfish.pod:17
17036 #, no-wrap
17037 msgid ""
17038 " guestfish -d libvirt-domain\n"
17039 "\n"
17040 msgstr ""
17041
17042 # type: verbatim
17043 #: ../fish/guestfish.pod:19
17044 #, no-wrap
17045 msgid ""
17046 " guestfish [--ro|--rw] -a disk.img -i\n"
17047 "\n"
17048 msgstr ""
17049
17050 # type: verbatim
17051 #: ../fish/guestfish.pod:21
17052 #, no-wrap
17053 msgid ""
17054 " guestfish -d libvirt-domain -i\n"
17055 "\n"
17056 msgstr ""
17057
17058 # type: =head1
17059 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
17060 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
17061 msgid "WARNING"
17062 msgstr ""
17063
17064 # type: textblock
17065 #: ../fish/guestfish.pod:25
17066 msgid ""
17067 "Using guestfish in read/write mode on live virtual machines can be "
17068 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17069 "option to use guestfish safely if the disk image or virtual machine might be "
17070 "live."
17071 msgstr ""
17072
17073 # type: textblock
17074 #: ../fish/guestfish.pod:32
17075 msgid ""
17076 "Guestfish is a shell and command-line tool for examining and modifying "
17077 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17078 "functionality of the guestfs API, see L<guestfs(3)>."
17079 msgstr ""
17080
17081 # type: textblock
17082 #: ../fish/guestfish.pod:36
17083 msgid ""
17084 "Guestfish gives you structured access to the libguestfs API, from shell "
17085 "scripts or the command line or interactively.  If you want to rescue a "
17086 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17087 "command."
17088 msgstr ""
17089
17090 # type: =head1
17091 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897
17092 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
17093 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
17094 msgid "EXAMPLES"
17095 msgstr ""
17096
17097 # type: =head2
17098 #: ../fish/guestfish.pod:43
17099 msgid "As an interactive shell"
17100 msgstr ""
17101
17102 # type: verbatim
17103 #: ../fish/guestfish.pod:45
17104 #, no-wrap
17105 msgid ""
17106 " $ guestfish\n"
17107 " \n"
17108 msgstr ""
17109
17110 # type: verbatim
17111 #: ../fish/guestfish.pod:47
17112 #, no-wrap
17113 msgid ""
17114 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17115 " editing virtual machine filesystems.\n"
17116 " \n"
17117 msgstr ""
17118
17119 # type: verbatim
17120 #: ../fish/guestfish.pod:50
17121 #, no-wrap
17122 msgid ""
17123 " Type: 'help' for a list of commands\n"
17124 "       'man' to read the manual\n"
17125 "       'quit' to quit the shell\n"
17126 " \n"
17127 msgstr ""
17128
17129 # type: verbatim
17130 #: ../fish/guestfish.pod:54
17131 #, no-wrap
17132 msgid ""
17133 " ><fs> add-ro disk.img\n"
17134 " ><fs> run\n"
17135 " ><fs> list-filesystems\n"
17136 " /dev/sda1: ext4\n"
17137 " /dev/vg_guest/lv_root: ext4\n"
17138 " /dev/vg_guest/lv_swap: swap\n"
17139 " ><fs> mount /dev/vg_guest/lv_root /\n"
17140 " ><fs> cat /etc/fstab\n"
17141 " # /etc/fstab\n"
17142 " # Created by anaconda\n"
17143 " [...]\n"
17144 " ><fs> exit\n"
17145 "\n"
17146 msgstr ""
17147
17148 # type: =head2
17149 #: ../fish/guestfish.pod:67
17150 msgid "From shell scripts"
17151 msgstr ""
17152
17153 # type: textblock
17154 #: ../fish/guestfish.pod:69
17155 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17156 msgstr ""
17157
17158 # type: verbatim
17159 #: ../fish/guestfish.pod:71
17160 #, no-wrap
17161 msgid ""
17162 " guestfish <<_EOF_\n"
17163 " add disk.img\n"
17164 " run\n"
17165 " mount /dev/vg_guest/lv_root /\n"
17166 " write /etc/motd \"Welcome, new users\"\n"
17167 " _EOF_\n"
17168 "\n"
17169 msgstr ""
17170
17171 # type: textblock
17172 #: ../fish/guestfish.pod:78
17173 msgid "List the LVM logical volumes in a disk image:"
17174 msgstr ""
17175
17176 # type: verbatim
17177 #: ../fish/guestfish.pod:80
17178 #, no-wrap
17179 msgid ""
17180 " guestfish -a disk.img --ro <<_EOF_\n"
17181 " run\n"
17182 " lvs\n"
17183 " _EOF_\n"
17184 "\n"
17185 msgstr ""
17186
17187 # type: textblock
17188 #: ../fish/guestfish.pod:85
17189 msgid "List all the filesystems in a disk image:"
17190 msgstr ""
17191
17192 # type: verbatim
17193 #: ../fish/guestfish.pod:87
17194 #, no-wrap
17195 msgid ""
17196 " guestfish -a disk.img --ro <<_EOF_\n"
17197 " run\n"
17198 " list-filesystems\n"
17199 " _EOF_\n"
17200 "\n"
17201 msgstr ""
17202
17203 # type: =head2
17204 #: ../fish/guestfish.pod:92
17205 msgid "On one command line"
17206 msgstr ""
17207
17208 # type: textblock
17209 #: ../fish/guestfish.pod:94
17210 msgid "Update C</etc/resolv.conf> in a guest:"
17211 msgstr ""
17212
17213 # type: verbatim
17214 #: ../fish/guestfish.pod:96
17215 #, no-wrap
17216 msgid ""
17217 " guestfish \\\n"
17218 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17219 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17220 "\n"
17221 msgstr ""
17222
17223 # type: textblock
17224 #: ../fish/guestfish.pod:100
17225 msgid "Edit C</boot/grub/grub.conf> interactively:"
17226 msgstr ""
17227
17228 # type: verbatim
17229 #: ../fish/guestfish.pod:102
17230 #, no-wrap
17231 msgid ""
17232 " guestfish --rw --add disk.img \\\n"
17233 "   --mount /dev/vg_guest/lv_root \\\n"
17234 "   --mount /dev/sda1:/boot \\\n"
17235 "   edit /boot/grub/grub.conf\n"
17236 "\n"
17237 msgstr ""
17238
17239 # type: =head2
17240 #: ../fish/guestfish.pod:107
17241 msgid "Mount disks automatically"
17242 msgstr ""
17243
17244 # type: textblock
17245 #: ../fish/guestfish.pod:109
17246 msgid ""
17247 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17248 msgstr ""
17249
17250 # type: verbatim
17251 #: ../fish/guestfish.pod:112
17252 #, no-wrap
17253 msgid ""
17254 " guestfish --ro -a disk.img -i cat /etc/group\n"
17255 "\n"
17256 msgstr ""
17257
17258 # type: verbatim
17259 #: ../fish/guestfish.pod:114
17260 #, no-wrap
17261 msgid ""
17262 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17263 "\n"
17264 msgstr ""
17265
17266 # type: textblock
17267 #: ../fish/guestfish.pod:116
17268 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17269 msgstr ""
17270
17271 # type: verbatim
17272 #: ../fish/guestfish.pod:118
17273 #, no-wrap
17274 msgid ""
17275 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17276 "\n"
17277 msgstr ""
17278
17279 # type: =head2
17280 #: ../fish/guestfish.pod:120
17281 msgid "As a script interpreter"
17282 msgstr ""
17283
17284 # type: textblock
17285 #: ../fish/guestfish.pod:122
17286 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17287 msgstr ""
17288
17289 # type: verbatim
17290 #: ../fish/guestfish.pod:124
17291 #, no-wrap
17292 msgid ""
17293 " #!/usr/bin/guestfish -f\n"
17294 " sparse test1.img 100M\n"
17295 " run\n"
17296 " part-disk /dev/sda mbr\n"
17297 " mkfs ext2 /dev/sda1\n"
17298 "\n"
17299 msgstr ""
17300
17301 # type: =head2
17302 #: ../fish/guestfish.pod:130
17303 msgid "Start with a prepared disk"
17304 msgstr ""
17305
17306 # type: textblock
17307 #: ../fish/guestfish.pod:132
17308 msgid ""
17309 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17310 "single ext2-formatted partition:"
17311 msgstr ""
17312
17313 # type: verbatim
17314 #: ../fish/guestfish.pod:135
17315 #, no-wrap
17316 msgid ""
17317 " guestfish -N fs\n"
17318 "\n"
17319 msgstr ""
17320
17321 # type: textblock
17322 #: ../fish/guestfish.pod:137
17323 msgid "To list what is available do:"
17324 msgstr ""
17325
17326 # type: verbatim
17327 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
17328 #, no-wrap
17329 msgid ""
17330 " guestfish -N help | less\n"
17331 "\n"
17332 msgstr ""
17333
17334 # type: =head2
17335 #: ../fish/guestfish.pod:141
17336 msgid "Remote control"
17337 msgstr ""
17338
17339 # type: verbatim
17340 #: ../fish/guestfish.pod:143
17341 #, no-wrap
17342 msgid ""
17343 " eval \"`guestfish --listen`\"\n"
17344 " guestfish --remote add-ro disk.img\n"
17345 " guestfish --remote run\n"
17346 " guestfish --remote lvs\n"
17347 "\n"
17348 msgstr ""
17349
17350 # type: =head1
17351 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17352 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17353 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
17354 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98
17355 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
17356 msgid "OPTIONS"
17357 msgstr ""
17358
17359 # type: =item
17360 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17361 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
17362 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
17363 #: ../tools/virt-tar.pl:106 ../tools/virt-make-fs.pl:161
17364 #: ../tools/virt-list-partitions.pl:62
17365 msgid "B<--help>"
17366 msgstr ""
17367
17368 # type: textblock
17369 #: ../fish/guestfish.pod:154
17370 msgid "Displays general help on options."
17371 msgstr ""
17372
17373 # type: =item
17374 #: ../fish/guestfish.pod:156
17375 msgid "B<-h>"
17376 msgstr ""
17377
17378 # type: =item
17379 #: ../fish/guestfish.pod:158
17380 msgid "B<--cmd-help>"
17381 msgstr ""
17382
17383 # type: textblock
17384 #: ../fish/guestfish.pod:160
17385 msgid "Lists all available guestfish commands."
17386 msgstr ""
17387
17388 # type: =item
17389 #: ../fish/guestfish.pod:162
17390 msgid "B<-h cmd>"
17391 msgstr ""
17392
17393 # type: =item
17394 #: ../fish/guestfish.pod:164
17395 msgid "B<--cmd-help cmd>"
17396 msgstr ""
17397
17398 # type: textblock
17399 #: ../fish/guestfish.pod:166
17400 msgid "Displays detailed help on a single command C<cmd>."
17401 msgstr ""
17402
17403 # type: =item
17404 #: ../fish/guestfish.pod:168
17405 msgid "B<-a image>"
17406 msgstr ""
17407
17408 # type: =item
17409 #: ../fish/guestfish.pod:170
17410 msgid "B<--add image>"
17411 msgstr ""
17412
17413 # type: textblock
17414 #: ../fish/guestfish.pod:172
17415 msgid "Add a block device or virtual machine image to the shell."
17416 msgstr ""
17417
17418 # type: textblock
17419 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
17420 msgid ""
17421 "The format of the disk image is auto-detected.  To override this and force a "
17422 "particular format use the I<--format=..> option."
17423 msgstr ""
17424
17425 # type: textblock
17426 #: ../fish/guestfish.pod:177
17427 msgid ""
17428 "Using this flag is mostly equivalent to using the C<add> command, with "
17429 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17430 "the I<--format:...> flag was given."
17431 msgstr ""
17432
17433 # type: =item
17434 #: ../fish/guestfish.pod:181
17435 msgid "B<-c URI>"
17436 msgstr ""
17437
17438 # type: =item
17439 #: ../fish/guestfish.pod:183
17440 msgid "B<--connect URI>"
17441 msgstr ""
17442
17443 # type: textblock
17444 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
17445 msgid ""
17446 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17447 "URI to use.  The default is to use the default libvirt connection."
17448 msgstr ""
17449
17450 # type: =item
17451 #: ../fish/guestfish.pod:189
17452 msgid "B<--csh>"
17453 msgstr ""
17454
17455 # type: textblock
17456 #: ../fish/guestfish.pod:191
17457 msgid ""
17458 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17459 "section L</REMOTE CONTROL AND CSH> below."
17460 msgstr ""
17461
17462 # type: =item
17463 #: ../fish/guestfish.pod:194
17464 msgid "B<-d libvirt-domain>"
17465 msgstr ""
17466
17467 # type: =item
17468 #: ../fish/guestfish.pod:196
17469 msgid "B<--domain libvirt-domain>"
17470 msgstr ""
17471
17472 # type: textblock
17473 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
17474 msgid ""
17475 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17476 "used, then any libvirt domain can be used.  However in write mode, only "
17477 "libvirt domains which are shut down can be named here."
17478 msgstr ""
17479
17480 # type: textblock
17481 #: ../fish/guestfish.pod:202
17482 msgid ""
17483 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17484 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17485 "if the I<--format:...> flag was given."
17486 msgstr ""
17487
17488 # type: =item
17489 #: ../fish/guestfish.pod:206
17490 msgid "B<-D>"
17491 msgstr ""
17492
17493 # type: =item
17494 #: ../fish/guestfish.pod:208
17495 msgid "B<--no-dest-paths>"
17496 msgstr ""
17497
17498 # type: textblock
17499 #: ../fish/guestfish.pod:210
17500 msgid ""
17501 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17502 "to hit the tab key to complete paths on the guest filesystem, but this "
17503 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17504 "allow this feature to be disabled."
17505 msgstr ""
17506
17507 # type: =item
17508 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
17509 msgid "B<--echo-keys>"
17510 msgstr ""
17511
17512 # type: textblock
17513 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
17514 msgid ""
17515 "When prompting for keys and passphrases, guestfish normally turns echoing "
17516 "off so you cannot see what you are typing.  If you are not worried about "
17517 "Tempest attacks and there is no one else in the room you can specify this "
17518 "flag to see what you are typing."
17519 msgstr ""
17520
17521 # type: =item
17522 #: ../fish/guestfish.pod:222
17523 msgid "B<-f file>"
17524 msgstr ""
17525
17526 # type: =item
17527 #: ../fish/guestfish.pod:224
17528 msgid "B<--file file>"
17529 msgstr ""
17530
17531 # type: textblock
17532 #: ../fish/guestfish.pod:226
17533 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17534 msgstr ""
17535
17536 # type: verbatim
17537 #: ../fish/guestfish.pod:229
17538 #, no-wrap
17539 msgid ""
17540 " #!/usr/bin/guestfish -f\n"
17541 "\n"
17542 msgstr ""
17543
17544 # type: =item
17545 #: ../fish/guestfish.pod:231
17546 msgid "B<--format=raw|qcow2|..>"
17547 msgstr ""
17548
17549 # type: =item
17550 #: ../fish/guestfish.pod:233
17551 msgid "B<--format>"
17552 msgstr ""
17553
17554 # type: textblock
17555 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
17556 msgid ""
17557 "The default for the I<-a> option is to auto-detect the format of the disk "
17558 "image.  Using this forces the disk format for I<-a> options which follow on "
17559 "the command line.  Using I<--format> with no argument switches back to auto-"
17560 "detection for subsequent I<-a> options."
17561 msgstr ""
17562
17563 # type: textblock
17564 #: ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
17565 msgid "For example:"
17566 msgstr ""
17567
17568 # type: verbatim
17569 #: ../fish/guestfish.pod:242
17570 #, no-wrap
17571 msgid ""
17572 " guestfish --format=raw -a disk.img\n"
17573 "\n"
17574 msgstr ""
17575
17576 # type: textblock
17577 #: ../fish/guestfish.pod:244
17578 msgid "forces raw format (no auto-detection) for C<disk.img>."
17579 msgstr ""
17580
17581 # type: verbatim
17582 #: ../fish/guestfish.pod:246
17583 #, no-wrap
17584 msgid ""
17585 " guestfish --format=raw -a disk.img --format -a another.img\n"
17586 "\n"
17587 msgstr ""
17588
17589 # type: textblock
17590 #: ../fish/guestfish.pod:248
17591 msgid ""
17592 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17593 "detection for C<another.img>."
17594 msgstr ""
17595
17596 # type: textblock
17597 #: ../fish/guestfish.pod:251
17598 msgid ""
17599 "If you have untrusted raw-format guest disk images, you should use this "
17600 "option to specify the disk format.  This avoids a possible security problem "
17601 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17602 msgstr ""
17603
17604 # type: =item
17605 #: ../fish/guestfish.pod:256
17606 msgid "B<-i>"
17607 msgstr ""
17608
17609 # type: =item
17610 #: ../fish/guestfish.pod:258
17611 msgid "B<--inspector>"
17612 msgstr ""
17613
17614 # type: textblock
17615 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
17616 msgid ""
17617 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17618 "system and mount filesystems as they would be mounted on the real virtual "
17619 "machine."
17620 msgstr ""
17621
17622 # type: textblock
17623 #: ../fish/guestfish.pod:264
17624 msgid "Typical usage is either:"
17625 msgstr ""
17626
17627 # type: verbatim
17628 #: ../fish/guestfish.pod:266
17629 #, no-wrap
17630 msgid ""
17631 " guestfish -d myguest -i\n"
17632 "\n"
17633 msgstr ""
17634
17635 # type: textblock
17636 #: ../fish/guestfish.pod:268
17637 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17638 msgstr ""
17639
17640 # type: verbatim
17641 #: ../fish/guestfish.pod:270
17642 #, no-wrap
17643 msgid ""
17644 " guestfish --ro -d myguest -i\n"
17645 "\n"
17646 msgstr ""
17647
17648 # type: textblock
17649 #: ../fish/guestfish.pod:272
17650 msgid "(for active domains, readonly), or specify the block device directly:"
17651 msgstr ""
17652
17653 # type: verbatim
17654 #: ../fish/guestfish.pod:274
17655 #, no-wrap
17656 msgid ""
17657 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17658 "\n"
17659 msgstr ""
17660
17661 # type: textblock
17662 #: ../fish/guestfish.pod:276
17663 msgid ""
17664 "Note that the command line syntax changed slightly over older versions of "
17665 "guestfish.  You can still use the old syntax:"
17666 msgstr ""
17667
17668 # type: verbatim
17669 #: ../fish/guestfish.pod:279
17670 #, no-wrap
17671 msgid ""
17672 " guestfish [--ro] -i disk.img\n"
17673 "\n"
17674 msgstr ""
17675
17676 # type: verbatim
17677 #: ../fish/guestfish.pod:281
17678 #, no-wrap
17679 msgid ""
17680 " guestfish [--ro] -i libvirt-domain\n"
17681 "\n"
17682 msgstr ""
17683
17684 # type: textblock
17685 #: ../fish/guestfish.pod:283
17686 msgid ""
17687 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17688 "then using other commands to mount the filesystems that were found."
17689 msgstr ""
17690
17691 # type: =item
17692 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
17693 msgid "B<--keys-from-stdin>"
17694 msgstr ""
17695
17696 # type: textblock
17697 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
17698 msgid ""
17699 "Read key or passphrase parameters from stdin.  The default is to try to read "
17700 "passphrases from the user by opening C</dev/tty>."
17701 msgstr ""
17702
17703 # type: =item
17704 #: ../fish/guestfish.pod:292
17705 msgid "B<--listen>"
17706 msgstr ""
17707
17708 # type: textblock
17709 #: ../fish/guestfish.pod:294
17710 msgid ""
17711 "Fork into the background and listen for remote commands.  See section L</"
17712 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17713 msgstr ""
17714
17715 # type: =item
17716 #: ../fish/guestfish.pod:297
17717 msgid "B<-m dev[:mountpoint]>"
17718 msgstr ""
17719
17720 # type: =item
17721 #: ../fish/guestfish.pod:299
17722 msgid "B<--mount dev[:mountpoint]>"
17723 msgstr ""
17724
17725 # type: textblock
17726 #: ../fish/guestfish.pod:301
17727 msgid "Mount the named partition or logical volume on the given mountpoint."
17728 msgstr ""
17729
17730 # type: textblock
17731 #: ../fish/guestfish.pod:303
17732 msgid "If the mountpoint is omitted, it defaults to C</>."
17733 msgstr ""
17734
17735 # type: textblock
17736 #: ../fish/guestfish.pod:305
17737 msgid "You have to mount something on C</> before most commands will work."
17738 msgstr ""
17739
17740 # type: textblock
17741 #: ../fish/guestfish.pod:307
17742 msgid ""
17743 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17744 "launched."
17745 msgstr ""
17746
17747 # type: textblock
17748 #: ../fish/guestfish.pod:310
17749 msgid ""
17750 "If you don't know what filesystems a disk image contains, you can either run "
17751 "guestfish without this option, then list the partitions, filesystems and LVs "
17752 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17753 "commands), or you can use the L<virt-filesystems(1)> program."
17754 msgstr ""
17755
17756 # type: textblock
17757 #: ../fish/guestfish.pod:316
17758 msgid ""
17759 "Using this flag is mostly equivalent to using the C<mount-options> command "
17760 "or the C<mount-ro> command if the I<--ro> flag was given."
17761 msgstr ""
17762
17763 # type: =item
17764 #: ../fish/guestfish.pod:319
17765 msgid "B<-n>"
17766 msgstr ""
17767
17768 # type: =item
17769 #: ../fish/guestfish.pod:321
17770 msgid "B<--no-sync>"
17771 msgstr ""
17772
17773 # type: textblock
17774 #: ../fish/guestfish.pod:323
17775 msgid ""
17776 "Disable autosync.  This is enabled by default.  See the discussion of "
17777 "autosync in the L<guestfs(3)> manpage."
17778 msgstr ""
17779
17780 # type: =item
17781 #: ../fish/guestfish.pod:326
17782 msgid "B<-N type>"
17783 msgstr ""
17784
17785 # type: =item
17786 #: ../fish/guestfish.pod:328
17787 msgid "B<--new type>"
17788 msgstr ""
17789
17790 # type: =item
17791 #: ../fish/guestfish.pod:330
17792 msgid "B<-N help>"
17793 msgstr ""
17794
17795 # type: textblock
17796 #: ../fish/guestfish.pod:332
17797 msgid ""
17798 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17799 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17800 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17801 "IMAGES> below."
17802 msgstr ""
17803
17804 # type: =item
17805 #: ../fish/guestfish.pod:337
17806 msgid "B<--progress-bars>"
17807 msgstr ""
17808
17809 # type: textblock
17810 #: ../fish/guestfish.pod:339
17811 msgid "Enable progress bars, even when guestfish is used non-interactively."
17812 msgstr ""
17813
17814 # type: textblock
17815 #: ../fish/guestfish.pod:341
17816 msgid ""
17817 "Progress bars are enabled by default when guestfish is used as an "
17818 "interactive shell."
17819 msgstr ""
17820
17821 # type: =item
17822 #: ../fish/guestfish.pod:344
17823 msgid "B<--no-progress-bars>"
17824 msgstr ""
17825
17826 # type: textblock
17827 #: ../fish/guestfish.pod:346
17828 msgid "Disable progress bars."
17829 msgstr ""
17830
17831 # type: =item
17832 #: ../fish/guestfish.pod:348
17833 msgid "B<--remote[=pid]>"
17834 msgstr ""
17835
17836 # type: textblock
17837 #: ../fish/guestfish.pod:350
17838 msgid ""
17839 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17840 "CONTROL GUESTFISH OVER A SOCKET> below."
17841 msgstr ""
17842
17843 # type: =item
17844 #: ../fish/guestfish.pod:353
17845 msgid "B<-r>"
17846 msgstr ""
17847
17848 # type: =item
17849 #: ../fish/guestfish.pod:355
17850 msgid "B<--ro>"
17851 msgstr ""
17852
17853 # type: textblock
17854 #: ../fish/guestfish.pod:357
17855 msgid ""
17856 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17857 "mounts are done read-only."
17858 msgstr ""
17859
17860 # type: textblock
17861 #: ../fish/guestfish.pod:360
17862 msgid ""
17863 "The option must always be used if the disk image or virtual machine might be "
17864 "running, and is generally recommended in cases where you don't need write "
17865 "access to the disk."
17866 msgstr ""
17867
17868 # type: textblock
17869 #: ../fish/guestfish.pod:364
17870 msgid ""
17871 "Note that prepared disk images created with I<-N> are not affected by this "
17872 "option.  Also commands like C<add> are not affected - you have to specify "
17873 "the C<readonly:true> option explicitly if you need it."
17874 msgstr ""
17875
17876 # type: textblock
17877 #: ../fish/guestfish.pod:368
17878 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17879 msgstr ""
17880
17881 # type: =item
17882 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
17883 msgid "B<--selinux>"
17884 msgstr ""
17885
17886 # type: textblock
17887 #: ../fish/guestfish.pod:372
17888 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17889 msgstr ""
17890
17891 # type: =item
17892 #: ../fish/guestfish.pod:374
17893 msgid "B<-v>"
17894 msgstr ""
17895
17896 # type: =item
17897 #: ../fish/guestfish.pod:376
17898 msgid "B<--verbose>"
17899 msgstr ""
17900
17901 # type: textblock
17902 #: ../fish/guestfish.pod:378
17903 msgid ""
17904 "Enable very verbose messages.  This is particularly useful if you find a bug."
17905 msgstr ""
17906
17907 # type: =item
17908 #: ../fish/guestfish.pod:381
17909 msgid "B<-V>"
17910 msgstr ""
17911
17912 # type: =item
17913 #: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88
17914 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
17915 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:114
17916 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
17917 msgid "B<--version>"
17918 msgstr ""
17919
17920 # type: textblock
17921 #: ../fish/guestfish.pod:385
17922 msgid "Display the guestfish / libguestfs version number and exit."
17923 msgstr ""
17924
17925 # type: =item
17926 #: ../fish/guestfish.pod:387
17927 msgid "B<-w>"
17928 msgstr ""
17929
17930 # type: =item
17931 #: ../fish/guestfish.pod:389
17932 msgid "B<--rw>"
17933 msgstr ""
17934
17935 # type: textblock
17936 #: ../fish/guestfish.pod:391
17937 msgid ""
17938 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17939 "WRITE> below."
17940 msgstr ""
17941
17942 # type: =item
17943 #: ../fish/guestfish.pod:394
17944 msgid "B<-x>"
17945 msgstr ""
17946
17947 # type: textblock
17948 #: ../fish/guestfish.pod:396
17949 msgid "Echo each command before executing it."
17950 msgstr ""
17951
17952 # type: =head1
17953 #: ../fish/guestfish.pod:400
17954 msgid "COMMANDS ON COMMAND LINE"
17955 msgstr ""
17956
17957 # type: textblock
17958 #: ../fish/guestfish.pod:402
17959 msgid ""
17960 "Any additional (non-option) arguments are treated as commands to execute."
17961 msgstr ""
17962
17963 # type: textblock
17964 #: ../fish/guestfish.pod:405
17965 msgid ""
17966 "Commands to execute should be separated by a colon (C<:>), where the colon "
17967 "is a separate parameter.  Thus:"
17968 msgstr ""
17969
17970 # type: verbatim
17971 #: ../fish/guestfish.pod:408
17972 #, no-wrap
17973 msgid ""
17974 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17975 "\n"
17976 msgstr ""
17977
17978 # type: textblock
17979 #: ../fish/guestfish.pod:410
17980 msgid ""
17981 "If there are no additional arguments, then we enter a shell, either an "
17982 "interactive shell with a prompt (if the input is a terminal) or a non-"
17983 "interactive shell."
17984 msgstr ""
17985
17986 # type: textblock
17987 #: ../fish/guestfish.pod:414
17988 msgid ""
17989 "In either command line mode or non-interactive shell, the first command that "
17990 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17991 "prompt) if a command fails, you can continue to enter commands."
17992 msgstr ""
17993
17994 # type: =head1
17995 #: ../fish/guestfish.pod:419
17996 msgid "USING launch (OR run)"
17997 msgstr ""
17998
17999 # type: textblock
18000 #: ../fish/guestfish.pod:421
18001 msgid ""
18002 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18003 "then launch it, then mount any disks you need, and finally issue actions/"
18004 "commands.  So the general order of the day is:"
18005 msgstr ""
18006
18007 # type: textblock
18008 #: ../fish/guestfish.pod:429
18009 msgid "add or -a/--add"
18010 msgstr ""
18011
18012 # type: textblock
18013 #: ../fish/guestfish.pod:433
18014 msgid "launch (aka run)"
18015 msgstr ""
18016
18017 # type: textblock
18018 #: ../fish/guestfish.pod:437
18019 msgid "mount or -m/--mount"
18020 msgstr ""
18021
18022 # type: textblock
18023 #: ../fish/guestfish.pod:441
18024 msgid "any other commands"
18025 msgstr ""
18026
18027 # type: textblock
18028 #: ../fish/guestfish.pod:445
18029 msgid ""
18030 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18031 "guest before mounting or performing any other commands."
18032 msgstr ""
18033
18034 # type: textblock
18035 #: ../fish/guestfish.pod:448
18036 msgid ""
18037 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18038 "I<--new> options were given then C<run> is done automatically, simply "
18039 "because guestfish can't perform the action you asked for without doing this."
18040 msgstr ""
18041
18042 # type: =head1
18043 #: ../fish/guestfish.pod:453
18044 msgid "OPENING DISKS FOR READ AND WRITE"
18045 msgstr ""
18046
18047 # type: textblock
18048 #: ../fish/guestfish.pod:455
18049 msgid ""
18050 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
18051 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
18052 "open disk images read-only or for writing."
18053 msgstr ""
18054
18055 # type: textblock
18056 #: ../fish/guestfish.pod:459
18057 msgid ""
18058 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
18059 "disk images supplied on the command line for write.  To open a disk image "
18060 "read-only you have to do I<-a image --ro>."
18061 msgstr ""
18062
18063 # type: textblock
18064 #: ../fish/guestfish.pod:463
18065 msgid ""
18066 "This matters: If you accidentally open a live VM disk image writable then "
18067 "you will cause irreversible disk corruption."
18068 msgstr ""
18069
18070 # type: textblock
18071 #: ../fish/guestfish.pod:466
18072 msgid ""
18073 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
18074 "images will be opened read-only.  You will have to either specify "
18075 "I<guestfish --rw> or change a configuration file in order to get write "
18076 "access for disk images specified by those other command line options."
18077 msgstr ""
18078
18079 # type: textblock
18080 #: ../fish/guestfish.pod:471
18081 msgid ""
18082 "This version of guestfish has a I<--rw> option which does nothing (it is "
18083 "already the default).  However it is highly recommended that you use this "
18084 "option to indicate that guestfish needs write access, and to prepare your "
18085 "scripts for the day when this option will be required for write access."
18086 msgstr ""
18087
18088 # type: textblock
18089 #: ../fish/guestfish.pod:477
18090 msgid ""
18091 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18092 "other libguestfs program apart from guestfish and guestmount."
18093 msgstr ""
18094
18095 # type: =head1
18096 #: ../fish/guestfish.pod:480
18097 msgid "QUOTING"
18098 msgstr ""
18099
18100 # type: textblock
18101 #: ../fish/guestfish.pod:482
18102 msgid ""
18103 "You can quote ordinary parameters using either single or double quotes.  For "
18104 "example:"
18105 msgstr ""
18106
18107 # type: verbatim
18108 #: ../fish/guestfish.pod:485
18109 #, no-wrap
18110 msgid ""
18111 " add \"file with a space.img\"\n"
18112 "\n"
18113 msgstr ""
18114
18115 # type: verbatim
18116 #: ../fish/guestfish.pod:487
18117 #, no-wrap
18118 msgid ""
18119 " rm '/file name'\n"
18120 "\n"
18121 msgstr ""
18122
18123 # type: verbatim
18124 #: ../fish/guestfish.pod:489
18125 #, no-wrap
18126 msgid ""
18127 " rm '/\"'\n"
18128 "\n"
18129 msgstr ""
18130
18131 # type: textblock
18132 #: ../fish/guestfish.pod:491
18133 msgid ""
18134 "A few commands require a list of strings to be passed.  For these, use a "
18135 "whitespace-separated list, enclosed in quotes.  Strings containing "
18136 "whitespace to be passed through must be enclosed in single quotes.  A "
18137 "literal single quote must be escaped with a backslash."
18138 msgstr ""
18139
18140 # type: verbatim
18141 #: ../fish/guestfish.pod:496
18142 #, no-wrap
18143 msgid ""
18144 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18145 " command \"/bin/echo 'foo      bar'\"\n"
18146 " command \"/bin/echo \\'foo\\'\"\n"
18147 "\n"
18148 msgstr ""
18149
18150 # type: =head1
18151 #: ../fish/guestfish.pod:500
18152 msgid "OPTIONAL ARGUMENTS"
18153 msgstr ""
18154
18155 # type: textblock
18156 #: ../fish/guestfish.pod:502
18157 msgid ""
18158 "Some commands take optional arguments.  These arguments appear in this "
18159 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18160 msgstr ""
18161
18162 # type: verbatim
18163 #: ../fish/guestfish.pod:506
18164 #, no-wrap
18165 msgid ""
18166 " add-drive-opts filename\n"
18167 "\n"
18168 msgstr ""
18169
18170 # type: verbatim
18171 #: ../fish/guestfish.pod:508
18172 #, no-wrap
18173 msgid ""
18174 " add-drive-opts filename readonly:true\n"
18175 "\n"
18176 msgstr ""
18177
18178 # type: verbatim
18179 #: ../fish/guestfish.pod:510
18180 #, no-wrap
18181 msgid ""
18182 " add-drive-opts filename format:qcow2 readonly:false\n"
18183 "\n"
18184 msgstr ""
18185
18186 # type: textblock
18187 #: ../fish/guestfish.pod:512
18188 msgid ""
18189 "Each optional argument can appear at most once.  All optional arguments must "
18190 "appear after the required ones."
18191 msgstr ""
18192
18193 # type: =head1
18194 #: ../fish/guestfish.pod:515
18195 msgid "NUMBERS"
18196 msgstr ""
18197
18198 # type: textblock
18199 #: ../fish/guestfish.pod:517
18200 msgid ""
18201 "This section applies to all commands which can take integers as parameters."
18202 msgstr ""
18203
18204 # type: =head2
18205 #: ../fish/guestfish.pod:520
18206 msgid "SIZE SUFFIX"
18207 msgstr ""
18208
18209 # type: textblock
18210 #: ../fish/guestfish.pod:522
18211 msgid ""
18212 "When the command takes a parameter measured in bytes, you can use one of the "
18213 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18214 msgstr ""
18215
18216 # type: =item
18217 #: ../fish/guestfish.pod:528
18218 msgid "B<k> or B<K> or B<KiB>"
18219 msgstr ""
18220
18221 # type: textblock
18222 #: ../fish/guestfish.pod:530
18223 msgid "The size in kilobytes (multiplied by 1024)."
18224 msgstr ""
18225
18226 # type: =item
18227 #: ../fish/guestfish.pod:532
18228 msgid "B<KB>"
18229 msgstr ""
18230
18231 # type: textblock
18232 #: ../fish/guestfish.pod:534
18233 msgid "The size in SI 1000 byte units."
18234 msgstr ""
18235
18236 # type: =item
18237 #: ../fish/guestfish.pod:536
18238 msgid "B<M> or B<MiB>"
18239 msgstr ""
18240
18241 # type: textblock
18242 #: ../fish/guestfish.pod:538
18243 msgid "The size in megabytes (multiplied by 1048576)."
18244 msgstr ""
18245
18246 # type: =item
18247 #: ../fish/guestfish.pod:540
18248 msgid "B<MB>"
18249 msgstr ""
18250
18251 # type: textblock
18252 #: ../fish/guestfish.pod:542
18253 msgid "The size in SI 1000000 byte units."
18254 msgstr ""
18255
18256 # type: =item
18257 #: ../fish/guestfish.pod:544
18258 msgid "B<G> or B<GiB>"
18259 msgstr ""
18260
18261 # type: textblock
18262 #: ../fish/guestfish.pod:546
18263 msgid "The size in gigabytes (multiplied by 2**30)."
18264 msgstr ""
18265
18266 # type: =item
18267 #: ../fish/guestfish.pod:548
18268 msgid "B<GB>"
18269 msgstr ""
18270
18271 # type: textblock
18272 #: ../fish/guestfish.pod:550
18273 msgid "The size in SI 10**9 byte units."
18274 msgstr ""
18275
18276 # type: =item
18277 #: ../fish/guestfish.pod:552
18278 msgid "B<T> or B<TiB>"
18279 msgstr ""
18280
18281 # type: textblock
18282 #: ../fish/guestfish.pod:554
18283 msgid "The size in terabytes (multiplied by 2**40)."
18284 msgstr ""
18285
18286 # type: =item
18287 #: ../fish/guestfish.pod:556
18288 msgid "B<TB>"
18289 msgstr ""
18290
18291 # type: textblock
18292 #: ../fish/guestfish.pod:558
18293 msgid "The size in SI 10**12 byte units."
18294 msgstr ""
18295
18296 # type: =item
18297 #: ../fish/guestfish.pod:560
18298 msgid "B<P> or B<PiB>"
18299 msgstr ""
18300
18301 # type: textblock
18302 #: ../fish/guestfish.pod:562
18303 msgid "The size in petabytes (multiplied by 2**50)."
18304 msgstr ""
18305
18306 # type: =item
18307 #: ../fish/guestfish.pod:564
18308 msgid "B<PB>"
18309 msgstr ""
18310
18311 # type: textblock
18312 #: ../fish/guestfish.pod:566
18313 msgid "The size in SI 10**15 byte units."
18314 msgstr ""
18315
18316 # type: =item
18317 #: ../fish/guestfish.pod:568
18318 msgid "B<E> or B<EiB>"
18319 msgstr ""
18320
18321 # type: textblock
18322 #: ../fish/guestfish.pod:570
18323 msgid "The size in exabytes (multiplied by 2**60)."
18324 msgstr ""
18325
18326 # type: =item
18327 #: ../fish/guestfish.pod:572
18328 msgid "B<EB>"
18329 msgstr ""
18330
18331 # type: textblock
18332 #: ../fish/guestfish.pod:574
18333 msgid "The size in SI 10**18 byte units."
18334 msgstr ""
18335
18336 # type: =item
18337 #: ../fish/guestfish.pod:576
18338 msgid "B<Z> or B<ZiB>"
18339 msgstr ""
18340
18341 # type: textblock
18342 #: ../fish/guestfish.pod:578
18343 msgid "The size in zettabytes (multiplied by 2**70)."
18344 msgstr ""
18345
18346 # type: =item
18347 #: ../fish/guestfish.pod:580
18348 msgid "B<ZB>"
18349 msgstr ""
18350
18351 # type: textblock
18352 #: ../fish/guestfish.pod:582
18353 msgid "The size in SI 10**21 byte units."
18354 msgstr ""
18355
18356 # type: =item
18357 #: ../fish/guestfish.pod:584
18358 msgid "B<Y> or B<YiB>"
18359 msgstr ""
18360
18361 # type: textblock
18362 #: ../fish/guestfish.pod:586
18363 msgid "The size in yottabytes (multiplied by 2**80)."
18364 msgstr ""
18365
18366 # type: =item
18367 #: ../fish/guestfish.pod:588
18368 msgid "B<YB>"
18369 msgstr ""
18370
18371 # type: textblock
18372 #: ../fish/guestfish.pod:590
18373 msgid "The size in SI 10**24 byte units."
18374 msgstr ""
18375
18376 # type: verbatim
18377 #: ../fish/guestfish.pod:596
18378 #, no-wrap
18379 msgid ""
18380 " truncate-size /file 1G\n"
18381 "\n"
18382 msgstr ""
18383
18384 # type: textblock
18385 #: ../fish/guestfish.pod:598
18386 msgid "would truncate the file to 1 gigabyte."
18387 msgstr ""
18388
18389 # type: textblock
18390 #: ../fish/guestfish.pod:600
18391 msgid ""
18392 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18393 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18394 "suffix will probably not do what you expect."
18395 msgstr ""
18396
18397 # type: =head2
18398 #: ../fish/guestfish.pod:604
18399 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18400 msgstr ""
18401
18402 # type: textblock
18403 #: ../fish/guestfish.pod:606
18404 msgid ""
18405 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18406 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18407 msgstr ""
18408
18409 # type: verbatim
18410 #: ../fish/guestfish.pod:609
18411 #, no-wrap
18412 msgid ""
18413 " 1234      decimal number 1234\n"
18414 " 02322     octal number, equivalent to decimal 1234\n"
18415 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18416 "\n"
18417 msgstr ""
18418
18419 # type: textblock
18420 #: ../fish/guestfish.pod:613
18421 msgid ""
18422 "When using the C<chmod> command, you almost always want to specify an octal "
18423 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18424 "L<chmod(1)> program):"
18425 msgstr ""
18426
18427 # type: verbatim
18428 #: ../fish/guestfish.pod:617
18429 #, no-wrap
18430 msgid ""
18431 " chmod 0777 /public  # OK\n"
18432 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18433 "\n"
18434 msgstr ""
18435
18436 # type: textblock
18437 #: ../fish/guestfish.pod:620
18438 msgid ""
18439 "Commands that return numbers usually print them in decimal, but some "
18440 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18441 "octal, preceeded by C<0>)."
18442 msgstr ""
18443
18444 # type: =head1
18445 #: ../fish/guestfish.pod:624
18446 msgid "WILDCARDS AND GLOBBING"
18447 msgstr ""
18448
18449 # type: textblock
18450 #: ../fish/guestfish.pod:626
18451 msgid ""
18452 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18453 "(globbing) by default.  So for example the following will not do what you "
18454 "expect:"
18455 msgstr ""
18456
18457 # type: verbatim
18458 #: ../fish/guestfish.pod:630
18459 #, no-wrap
18460 msgid ""
18461 " rm-rf /home/*\n"
18462 "\n"
18463 msgstr ""
18464
18465 # type: textblock
18466 #: ../fish/guestfish.pod:632
18467 msgid ""
18468 "Assuming you don't have a directory called literally C</home/*> then the "
18469 "above command will return an error."
18470 msgstr ""
18471
18472 # type: textblock
18473 #: ../fish/guestfish.pod:635
18474 msgid "To perform wildcard expansion, use the C<glob> command."
18475 msgstr ""
18476
18477 # type: verbatim
18478 #: ../fish/guestfish.pod:637
18479 #, no-wrap
18480 msgid ""
18481 " glob rm-rf /home/*\n"
18482 "\n"
18483 msgstr ""
18484
18485 # type: textblock
18486 #: ../fish/guestfish.pod:639
18487 msgid ""
18488 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18489 "many times), equivalent to:"
18490 msgstr ""
18491
18492 # type: verbatim
18493 #: ../fish/guestfish.pod:642
18494 #, no-wrap
18495 msgid ""
18496 " rm-rf /home/jim\n"
18497 " rm-rf /home/joe\n"
18498 " rm-rf /home/mary\n"
18499 "\n"
18500 msgstr ""
18501
18502 # type: textblock
18503 #: ../fish/guestfish.pod:646
18504 msgid "C<glob> only works on simple guest paths and not on device names."
18505 msgstr ""
18506
18507 # type: textblock
18508 #: ../fish/guestfish.pod:648
18509 msgid ""
18510 "If you have several parameters, each containing a wildcard, then glob will "
18511 "perform a Cartesian product."
18512 msgstr ""
18513
18514 # type: =head1
18515 #: ../fish/guestfish.pod:651
18516 msgid "COMMENTS"
18517 msgstr ""
18518
18519 # type: textblock
18520 #: ../fish/guestfish.pod:653
18521 msgid ""
18522 "Any line which starts with a I<#> character is treated as a comment and "
18523 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18524 "a command.  For example:"
18525 msgstr ""
18526
18527 # type: verbatim
18528 #: ../fish/guestfish.pod:657
18529 #, no-wrap
18530 msgid ""
18531 " # this is a comment\n"
18532 "         # this is a comment\n"
18533 " foo # NOT a comment\n"
18534 "\n"
18535 msgstr ""
18536
18537 # type: textblock
18538 #: ../fish/guestfish.pod:661
18539 msgid "Blank lines are also ignored."
18540 msgstr ""
18541
18542 # type: =head1
18543 #: ../fish/guestfish.pod:663
18544 msgid "RUNNING COMMANDS LOCALLY"
18545 msgstr ""
18546
18547 # type: textblock
18548 #: ../fish/guestfish.pod:665
18549 msgid ""
18550 "Any line which starts with a I<!> character is treated as a command sent to "
18551 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18552 msgstr ""
18553
18554 # type: verbatim
18555 #: ../fish/guestfish.pod:669
18556 #, no-wrap
18557 msgid ""
18558 " !mkdir local\n"
18559 " tgz-out /remote local/remote-data.tar.gz\n"
18560 "\n"
18561 msgstr ""
18562
18563 # type: textblock
18564 #: ../fish/guestfish.pod:672
18565 msgid ""
18566 "will create a directory C<local> on the host, and then export the contents "
18567 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18568 "(See C<tgz-out>)."
18569 msgstr ""
18570
18571 # type: textblock
18572 #: ../fish/guestfish.pod:676
18573 msgid ""
18574 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18575 "effect, due to the way that subprocesses work in Unix."
18576 msgstr ""
18577
18578 # type: =head1
18579 #: ../fish/guestfish.pod:679
18580 msgid "PIPES"
18581 msgstr ""
18582
18583 # type: textblock
18584 #: ../fish/guestfish.pod:681
18585 msgid ""
18586 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18587 "command (a guestfish command) to the second command (any host command).  For "
18588 "example:"
18589 msgstr ""
18590
18591 # type: verbatim
18592 #: ../fish/guestfish.pod:685
18593 #, no-wrap
18594 msgid ""
18595 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18596 "\n"
18597 msgstr ""
18598
18599 # type: textblock
18600 #: ../fish/guestfish.pod:687
18601 msgid ""
18602 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18603 "program).  The above command would list all accounts in the guest filesystem "
18604 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18605 msgstr ""
18606
18607 # type: verbatim
18608 #: ../fish/guestfish.pod:692
18609 #, no-wrap
18610 msgid ""
18611 " hexdump /bin/ls | head\n"
18612 " list-devices | tail -1\n"
18613 " tgz-out / - | tar ztf -\n"
18614 "\n"
18615 msgstr ""
18616
18617 # type: textblock
18618 #: ../fish/guestfish.pod:696
18619 msgid ""
18620 "The space before the pipe symbol is required, any space after the pipe "
18621 "symbol is optional.  Everything after the pipe symbol is just passed "
18622 "straight to the host shell, so it can contain redirections, globs and "
18623 "anything else that makes sense on the host side."
18624 msgstr ""
18625
18626 # type: textblock
18627 #: ../fish/guestfish.pod:701
18628 msgid ""
18629 "To use a literal argument which begins with a pipe symbol, you have to quote "
18630 "it, eg:"
18631 msgstr ""
18632
18633 # type: verbatim
18634 #: ../fish/guestfish.pod:704
18635 #, no-wrap
18636 msgid ""
18637 " echo \"|\"\n"
18638 "\n"
18639 msgstr ""
18640
18641 # type: =head1
18642 #: ../fish/guestfish.pod:706
18643 msgid "HOME DIRECTORIES"
18644 msgstr ""
18645
18646 # type: textblock
18647 #: ../fish/guestfish.pod:708
18648 msgid ""
18649 "If a parameter starts with the character C<~> then the tilde may be expanded "
18650 "as a home directory path (either C<~> for the current user's home directory, "
18651 "or C<~user> for another user)."
18652 msgstr ""
18653
18654 # type: textblock
18655 #: ../fish/guestfish.pod:712
18656 msgid ""
18657 "Note that home directory expansion happens for users known I<on the host>, "
18658 "not in the guest filesystem."
18659 msgstr ""
18660
18661 # type: textblock
18662 #: ../fish/guestfish.pod:715
18663 msgid ""
18664 "To use a literal argument which begins with a tilde, you have to quote it, "
18665 "eg:"
18666 msgstr ""
18667
18668 # type: verbatim
18669 #: ../fish/guestfish.pod:718
18670 #, no-wrap
18671 msgid ""
18672 " echo \"~\"\n"
18673 "\n"
18674 msgstr ""
18675
18676 # type: textblock
18677 #: ../fish/guestfish.pod:722
18678 msgid ""
18679 "Libguestfs has some support for Linux guests encrypted according to the "
18680 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18681 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18682 "LUKS is supported."
18683 msgstr ""
18684
18685 # type: textblock
18686 #: ../fish/guestfish.pod:727
18687 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18688 msgstr ""
18689
18690 # type: verbatim
18691 #: ../fish/guestfish.pod:729
18692 #, no-wrap
18693 msgid ""
18694 " ><fs> vfs-type /dev/sda2\n"
18695 " crypto_LUKS\n"
18696 "\n"
18697 msgstr ""
18698
18699 # type: textblock
18700 #: ../fish/guestfish.pod:732
18701 msgid ""
18702 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18703 "device called C</dev/mapper/luksdev>."
18704 msgstr ""
18705
18706 # type: verbatim
18707 #: ../fish/guestfish.pod:735
18708 #, no-wrap
18709 msgid ""
18710 " ><fs> luks-open /dev/sda2 luksdev\n"
18711 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18712 "\n"
18713 msgstr ""
18714
18715 # type: textblock
18716 #: ../fish/guestfish.pod:738
18717 msgid ""
18718 "Finally you have to tell LVM to scan for volume groups on the newly created "
18719 "mapper device:"
18720 msgstr ""
18721
18722 # type: verbatim
18723 #: ../fish/guestfish.pod:741
18724 #, no-wrap
18725 msgid ""
18726 " vgscan\n"
18727 " vg-activate-all true\n"
18728 "\n"
18729 msgstr ""
18730
18731 # type: textblock
18732 #: ../fish/guestfish.pod:744
18733 msgid "The logical volume(s) can now be mounted in the usual way."
18734 msgstr ""
18735
18736 # type: textblock
18737 #: ../fish/guestfish.pod:746
18738 msgid ""
18739 "Before closing a LUKS device you must unmount any logical volumes on it and "
18740 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18741 "one.  Then you can close the mapper device:"
18742 msgstr ""
18743
18744 # type: verbatim
18745 #: ../fish/guestfish.pod:750
18746 #, no-wrap
18747 msgid ""
18748 " vg-activate false /dev/VG\n"
18749 " luks-close /dev/mapper/luksdev\n"
18750 "\n"
18751 msgstr ""
18752
18753 # type: =head1
18754 #: ../fish/guestfish.pod:753
18755 msgid "WINDOWS PATHS"
18756 msgstr ""
18757
18758 # type: textblock
18759 #: ../fish/guestfish.pod:755
18760 msgid ""
18761 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18762 "(with some limitations).  The following commands are equivalent:"
18763 msgstr ""
18764
18765 # type: verbatim
18766 #: ../fish/guestfish.pod:758
18767 #, no-wrap
18768 msgid ""
18769 " file /WINDOWS/system32/config/system.LOG\n"
18770 "\n"
18771 msgstr ""
18772
18773 # type: verbatim
18774 #: ../fish/guestfish.pod:760
18775 #, no-wrap
18776 msgid ""
18777 " file win:/windows/system32/config/system.log\n"
18778 "\n"
18779 msgstr ""
18780
18781 # type: verbatim
18782 #: ../fish/guestfish.pod:762
18783 #, no-wrap
18784 msgid ""
18785 " file win:\\windows\\system32\\config\\system.log\n"
18786 "\n"
18787 msgstr ""
18788
18789 # type: verbatim
18790 #: ../fish/guestfish.pod:764
18791 #, no-wrap
18792 msgid ""
18793 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18794 "\n"
18795 msgstr ""
18796
18797 # type: textblock
18798 #: ../fish/guestfish.pod:766
18799 msgid ""
18800 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18801 "handles case insensitivity like Windows would.  This only works in argument "
18802 "positions that expect a path."
18803 msgstr ""
18804
18805 # type: =head1
18806 #: ../fish/guestfish.pod:770
18807 msgid "UPLOADING AND DOWNLOADING FILES"
18808 msgstr ""
18809
18810 # type: textblock
18811 #: ../fish/guestfish.pod:772
18812 msgid ""
18813 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18814 "others which upload from or download to a local file, you can use the "
18815 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18816 msgstr ""
18817
18818 # type: verbatim
18819 #: ../fish/guestfish.pod:776
18820 #, no-wrap
18821 msgid ""
18822 " upload - /foo\n"
18823 "\n"
18824 msgstr ""
18825
18826 # type: textblock
18827 #: ../fish/guestfish.pod:778
18828 msgid ""
18829 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18830 msgstr ""
18831
18832 # type: verbatim
18833 #: ../fish/guestfish.pod:781
18834 #, no-wrap
18835 msgid ""
18836 " tar-out /etc - | tar tf -\n"
18837 "\n"
18838 msgstr ""
18839
18840 # type: textblock
18841 #: ../fish/guestfish.pod:783
18842 msgid ""
18843 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18844 "command (see L</PIPES>)."
18845 msgstr ""
18846
18847 # type: textblock
18848 #: ../fish/guestfish.pod:786
18849 msgid ""
18850 "When using C<-> to read from stdin, the input is read up to the end of "
18851 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18852 "some arbitrary end marker:"
18853 msgstr ""
18854
18855 # type: verbatim
18856 #: ../fish/guestfish.pod:790
18857 #, no-wrap
18858 msgid ""
18859 " upload -<<END /foo\n"
18860 " input line 1\n"
18861 " input line 2\n"
18862 " input line 3\n"
18863 " END\n"
18864 "\n"
18865 msgstr ""
18866
18867 # type: textblock
18868 #: ../fish/guestfish.pod:796
18869 msgid ""
18870 "Any string of characters can be used instead of C<END>.  The end marker must "
18871 "appear on a line of its own, without any preceeding or following characters "
18872 "(not even spaces)."
18873 msgstr ""
18874
18875 # type: textblock
18876 #: ../fish/guestfish.pod:800
18877 msgid ""
18878 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18879 "upload local files (so-called \"FileIn\" parameters in the generator)."
18880 msgstr ""
18881
18882 # type: =head1
18883 #: ../fish/guestfish.pod:803
18884 msgid "EXIT ON ERROR BEHAVIOUR"
18885 msgstr ""
18886
18887 # type: textblock
18888 #: ../fish/guestfish.pod:805
18889 msgid ""
18890 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18891 "taking commands from a human over a tty), and will exit on the first error "
18892 "in non-interactive mode (scripts, commands given on the command line)."
18893 msgstr ""
18894
18895 # type: textblock
18896 #: ../fish/guestfish.pod:810
18897 msgid ""
18898 "If you prefix a command with a I<-> character, then that command will not "
18899 "cause guestfish to exit, even if that (one) command returns an error."
18900 msgstr ""
18901
18902 # type: =head1
18903 #: ../fish/guestfish.pod:814
18904 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18905 msgstr ""
18906
18907 # type: textblock
18908 #: ../fish/guestfish.pod:816
18909 msgid ""
18910 "Guestfish can be remote-controlled over a socket.  This is useful "
18911 "particularly in shell scripts where you want to make several different "
18912 "changes to a filesystem, but you don't want the overhead of starting up a "
18913 "guestfish process each time."
18914 msgstr ""
18915
18916 # type: textblock
18917 #: ../fish/guestfish.pod:821
18918 msgid "Start a guestfish server process using:"
18919 msgstr ""
18920
18921 # type: verbatim
18922 #: ../fish/guestfish.pod:823
18923 #, no-wrap
18924 msgid ""
18925 " eval \"`guestfish --listen`\"\n"
18926 "\n"
18927 msgstr ""
18928
18929 # type: textblock
18930 #: ../fish/guestfish.pod:825
18931 msgid "and then send it commands by doing:"
18932 msgstr ""
18933
18934 # type: verbatim
18935 #: ../fish/guestfish.pod:827
18936 #, no-wrap
18937 msgid ""
18938 " guestfish --remote cmd [...]\n"
18939 "\n"
18940 msgstr ""
18941
18942 # type: textblock
18943 #: ../fish/guestfish.pod:829
18944 msgid "To cause the server to exit, send it the exit command:"
18945 msgstr ""
18946
18947 # type: verbatim
18948 #: ../fish/guestfish.pod:831
18949 #, no-wrap
18950 msgid ""
18951 " guestfish --remote exit\n"
18952 "\n"
18953 msgstr ""
18954
18955 # type: textblock
18956 #: ../fish/guestfish.pod:833
18957 msgid ""
18958 "Note that the server will normally exit if there is an error in a command.  "
18959 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18960 "BEHAVIOUR>."
18961 msgstr ""
18962
18963 # type: =head2
18964 #: ../fish/guestfish.pod:837
18965 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18966 msgstr ""
18967
18968 # type: textblock
18969 #: ../fish/guestfish.pod:839
18970 msgid ""
18971 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18972 "is how the I<--remote> option knows where to send the commands.  You can "
18973 "have several guestfish listener processes running using:"
18974 msgstr ""
18975
18976 # type: verbatim
18977 #: ../fish/guestfish.pod:843
18978 #, no-wrap
18979 msgid ""
18980 " eval \"`guestfish --listen`\"\n"
18981 " pid1=$GUESTFISH_PID\n"
18982 " eval \"`guestfish --listen`\"\n"
18983 " pid2=$GUESTFISH_PID\n"
18984 " ...\n"
18985 " guestfish --remote=$pid1 cmd\n"
18986 " guestfish --remote=$pid2 cmd\n"
18987 "\n"
18988 msgstr ""
18989
18990 # type: =head2
18991 #: ../fish/guestfish.pod:851
18992 msgid "REMOTE CONTROL AND CSH"
18993 msgstr ""
18994
18995 # type: textblock
18996 #: ../fish/guestfish.pod:853
18997 msgid ""
18998 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18999 "option:"
19000 msgstr ""
19001
19002 # type: verbatim
19003 #: ../fish/guestfish.pod:856
19004 #, no-wrap
19005 msgid ""
19006 " eval \"`guestfish --listen --csh`\"\n"
19007 "\n"
19008 msgstr ""
19009
19010 # type: =head2
19011 #: ../fish/guestfish.pod:858
19012 msgid "REMOTE CONTROL DETAILS"
19013 msgstr ""
19014
19015 # type: textblock
19016 #: ../fish/guestfish.pod:860
19017 msgid ""
19018 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19019 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19020 "and C<$PID> is the process ID of the server."
19021 msgstr ""
19022
19023 # type: textblock
19024 #: ../fish/guestfish.pod:864
19025 msgid "Guestfish client and server versions must match exactly."
19026 msgstr ""
19027
19028 # type: =head1
19029 #: ../fish/guestfish.pod:866
19030 msgid "PREPARED DISK IMAGES"
19031 msgstr ""
19032
19033 # type: textblock
19034 #: ../fish/guestfish.pod:868
19035 msgid ""
19036 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19037 "preformatted disk images that guestfish can make for you to save typing.  "
19038 "This is particularly useful for testing purposes.  This option is used "
19039 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19040 "can be mixed with I<-a>)."
19041 msgstr ""
19042
19043 # type: textblock
19044 #: ../fish/guestfish.pod:874
19045 msgid ""
19046 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19047 "the second and so on.  Existing files in the current directory are "
19048 "I<overwritten>."
19049 msgstr ""
19050
19051 # type: textblock
19052 #: ../fish/guestfish.pod:878
19053 msgid ""
19054 "The type briefly describes how the disk should be sized, partitioned, how "
19055 "filesystem(s) should be created, and how content should be added.  "
19056 "Optionally the type can be followed by extra parameters, separated by C<:> "
19057 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19058 "allocated disk, containing a single partition, with the partition formatted "
19059 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19060 "disk instead."
19061 msgstr ""
19062
19063 # type: textblock
19064 #: ../fish/guestfish.pod:886
19065 msgid "To list the available types and any extra parameters they take, run:"
19066 msgstr ""
19067
19068 # type: textblock
19069 #: ../fish/guestfish.pod:890
19070 msgid ""
19071 "Note that the prepared filesystem is not mounted.  You would usually have to "
19072 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19073 msgstr ""
19074
19075 # type: textblock
19076 #: ../fish/guestfish.pod:894
19077 msgid ""
19078 "If any I<-N> or I<--new> options are given, the guest is automatically "
19079 "launched."
19080 msgstr ""
19081
19082 # type: textblock
19083 #: ../fish/guestfish.pod:899
19084 msgid "Create a 100MB disk with an ext4-formatted partition:"
19085 msgstr ""
19086
19087 # type: verbatim
19088 #: ../fish/guestfish.pod:901
19089 #, no-wrap
19090 msgid ""
19091 " guestfish -N fs:ext4\n"
19092 "\n"
19093 msgstr ""
19094
19095 # type: textblock
19096 #: ../fish/guestfish.pod:903
19097 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19098 msgstr ""
19099
19100 # type: verbatim
19101 #: ../fish/guestfish.pod:905
19102 #, no-wrap
19103 msgid ""
19104 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19105 "\n"
19106 msgstr ""
19107
19108 # type: textblock
19109 #: ../fish/guestfish.pod:907
19110 msgid "Create a blank 200MB disk:"
19111 msgstr ""
19112
19113 # type: verbatim
19114 #: ../fish/guestfish.pod:909
19115 #, no-wrap
19116 msgid ""
19117 " guestfish -N disk:200M\n"
19118 "\n"
19119 msgstr ""
19120
19121 # type: =head1
19122 #: ../fish/guestfish.pod:911
19123 msgid "PROGRESS BARS"
19124 msgstr ""
19125
19126 # type: textblock
19127 #: ../fish/guestfish.pod:913
19128 msgid ""
19129 "Some (not all) long-running commands send progress notification messages as "
19130 "they are running.  Guestfish turns these messages into progress bars."
19131 msgstr ""
19132
19133 # type: textblock
19134 #: ../fish/guestfish.pod:917
19135 msgid ""
19136 "When a command that supports progress bars takes longer than two seconds to "
19137 "run, and if progress bars are enabled, then you will see one appearing below "
19138 "the command:"
19139 msgstr ""
19140
19141 # type: verbatim
19142 #: ../fish/guestfish.pod:921
19143 #, no-wrap
19144 msgid ""
19145 " ><fs> copy-size /large-file /another-file 2048M\n"
19146 " / 10% [#####-----------------------------------------] 00:30\n"
19147 "\n"
19148 msgstr ""
19149
19150 # type: textblock
19151 #: ../fish/guestfish.pod:924
19152 msgid ""
19153 "The spinner on the left hand side moves round once for every progress "
19154 "notification received from the backend.  This is a (reasonably) golden "
19155 "assurance that the command is \"doing something\" even if the progress bar "
19156 "is not moving, because the command is able to send the progress "
19157 "notifications.  When the bar reaches 100% and the command finishes, the "
19158 "spinner disappears."
19159 msgstr ""
19160
19161 # type: textblock
19162 #: ../fish/guestfish.pod:931
19163 msgid ""
19164 "Progress bars are enabled by default when guestfish is used interactively.  "
19165 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19166 "and you can disable them completely using I<--no-progress-bars>."
19167 msgstr ""
19168
19169 # type: =head1
19170 #: ../fish/guestfish.pod:936
19171 msgid "GUESTFISH COMMANDS"
19172 msgstr ""
19173
19174 # type: textblock
19175 #: ../fish/guestfish.pod:938
19176 msgid ""
19177 "The commands in this section are guestfish convenience commands, in other "
19178 "words, they are not part of the L<guestfs(3)> API."
19179 msgstr ""
19180
19181 # type: =head2
19182 #: ../fish/guestfish.pod:941
19183 msgid "help"
19184 msgstr ""
19185
19186 # type: verbatim
19187 #: ../fish/guestfish.pod:943
19188 #, no-wrap
19189 msgid ""
19190 " help\n"
19191 " help cmd\n"
19192 "\n"
19193 msgstr ""
19194
19195 # type: textblock
19196 #: ../fish/guestfish.pod:946
19197 msgid "Without any parameter, this provides general help."
19198 msgstr ""
19199
19200 # type: textblock
19201 #: ../fish/guestfish.pod:948
19202 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19203 msgstr ""
19204
19205 # type: =head2
19206 #: ../fish/guestfish.pod:950
19207 msgid "quit | exit"
19208 msgstr ""
19209
19210 # type: textblock
19211 #: ../fish/guestfish.pod:952
19212 msgid "This exits guestfish.  You can also use C<^D> key."
19213 msgstr ""
19214
19215 # type: textblock
19216 #: ../fish/guestfish.pod:954
19217 msgid "@FISH_COMMANDS@"
19218 msgstr ""
19219
19220 # type: =head1
19221 #: ../fish/guestfish.pod:956
19222 msgid "COMMANDS"
19223 msgstr ""
19224
19225 # type: =head1
19226 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
19227 msgid "EXIT CODE"
19228 msgstr ""
19229
19230 # type: textblock
19231 #: ../fish/guestfish.pod:962
19232 msgid ""
19233 "guestfish returns 0 if the commands completed without error, or 1 if there "
19234 "was an error."
19235 msgstr ""
19236
19237 # type: =item
19238 #: ../fish/guestfish.pod:969
19239 msgid "EDITOR"
19240 msgstr ""
19241
19242 # type: textblock
19243 #: ../fish/guestfish.pod:971
19244 msgid ""
19245 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19246 "C<vi>."
19247 msgstr ""
19248
19249 # type: =item
19250 #: ../fish/guestfish.pod:974
19251 msgid "GUESTFISH_PID"
19252 msgstr ""
19253
19254 # type: textblock
19255 #: ../fish/guestfish.pod:976
19256 msgid ""
19257 "Used with the I<--remote> option to specify the remote guestfish process to "
19258 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19259 msgstr ""
19260
19261 # type: =item
19262 #: ../fish/guestfish.pod:980
19263 msgid "HEXEDITOR"
19264 msgstr ""
19265
19266 # type: textblock
19267 #: ../fish/guestfish.pod:982
19268 msgid ""
19269 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19270 "not specified, the external L<hexedit(1)> program is used."
19271 msgstr ""
19272
19273 # type: =item
19274 #: ../fish/guestfish.pod:986
19275 msgid "HOME"
19276 msgstr ""
19277
19278 # type: textblock
19279 #: ../fish/guestfish.pod:988
19280 msgid ""
19281 "If compiled with GNU readline support, various files in the home directory "
19282 "can be used.  See L</FILES>."
19283 msgstr ""
19284
19285 # type: textblock
19286 #: ../fish/guestfish.pod:997
19287 msgid ""
19288 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19289 "effect as using the B<-v> option."
19290 msgstr ""
19291
19292 # type: textblock
19293 #: ../fish/guestfish.pod:1009
19294 msgid ""
19295 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19296 "the discussion of paths in L<guestfs(3)>."
19297 msgstr ""
19298
19299 # type: textblock
19300 #: ../fish/guestfish.pod:1020
19301 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19302 msgstr ""
19303
19304 # type: =item
19305 #: ../fish/guestfish.pod:1022
19306 msgid "PAGER"
19307 msgstr ""
19308
19309 # type: textblock
19310 #: ../fish/guestfish.pod:1024
19311 msgid ""
19312 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19313 "C<more>."
19314 msgstr ""
19315
19316 # type: =head1
19317 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
19318 msgid "FILES"
19319 msgstr ""
19320
19321 # type: =item
19322 #: ../fish/guestfish.pod:1043
19323 msgid "$HOME/.guestfish"
19324 msgstr ""
19325
19326 # type: textblock
19327 #: ../fish/guestfish.pod:1045
19328 msgid ""
19329 "If compiled with GNU readline support, then the command history is saved in "
19330 "this file."
19331 msgstr ""
19332
19333 # type: =item
19334 #: ../fish/guestfish.pod:1048
19335 msgid "$HOME/.inputrc"
19336 msgstr ""
19337
19338 # type: =item
19339 #: ../fish/guestfish.pod:1050
19340 msgid "/etc/inputrc"
19341 msgstr ""
19342
19343 # type: textblock
19344 #: ../fish/guestfish.pod:1052
19345 msgid ""
19346 "If compiled with GNU readline support, then these files can be used to "
19347 "configure readline.  For further information, please see L<readline(3)/"
19348 "INITIALIZATION FILE>."
19349 msgstr ""
19350
19351 # type: textblock
19352 #: ../fish/guestfish.pod:1056
19353 msgid "To write rules which only apply to guestfish, use:"
19354 msgstr ""
19355
19356 # type: verbatim
19357 #: ../fish/guestfish.pod:1058
19358 #, no-wrap
19359 msgid ""
19360 " $if guestfish\n"
19361 " ...\n"
19362 " $endif\n"
19363 "\n"
19364 msgstr ""
19365
19366 # type: textblock
19367 #: ../fish/guestfish.pod:1062
19368 msgid ""
19369 "Variables that you can set in inputrc that change the behaviour of guestfish "
19370 "in useful ways include:"
19371 msgstr ""
19372
19373 # type: =item
19374 #: ../fish/guestfish.pod:1067
19375 msgid "completion-ignore-case (default: on)"
19376 msgstr ""
19377
19378 # type: textblock
19379 #: ../fish/guestfish.pod:1069
19380 msgid ""
19381 "By default, guestfish will ignore case when tab-completing paths on the "
19382 "disk.  Use:"
19383 msgstr ""
19384
19385 # type: verbatim
19386 #: ../fish/guestfish.pod:1072
19387 #, no-wrap
19388 msgid ""
19389 " set completion-ignore-case off\n"
19390 "\n"
19391 msgstr ""
19392
19393 # type: textblock
19394 #: ../fish/guestfish.pod:1074
19395 msgid "to make guestfish case sensitive."
19396 msgstr ""
19397
19398 # type: =item
19399 #: ../fish/guestfish.pod:1078
19400 msgid "test1.img"
19401 msgstr ""
19402
19403 # type: =item
19404 #: ../fish/guestfish.pod:1080
19405 msgid "test2.img (etc)"
19406 msgstr ""
19407
19408 # type: textblock
19409 #: ../fish/guestfish.pod:1082
19410 msgid ""
19411 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19412 "will be created in the file C<test1.img> in the current directory.  The "
19413 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19414 "the same name will be overwritten."
19415 msgstr ""
19416
19417 # type: textblock
19418 #: ../fish/guestfish.pod:1091
19419 msgid ""
19420 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19421 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19422 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19423 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19424 "L<hexedit(1)>."
19425 msgstr ""
19426
19427 # type: textblock
19428 #: ../fish/guestfish.pod:1117 ../test-tool/libguestfs-test-tool.pod:124
19429 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19430 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1512
19431 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300
19432 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
19433 msgid ""
19434 "This program is free software; you can redistribute it and/or modify it "
19435 "under the terms of the GNU General Public License as published by the Free "
19436 "Software Foundation; either version 2 of the License, or (at your option) "
19437 "any later version."
19438 msgstr ""
19439
19440 # type: textblock
19441 #: ../fish/guestfish.pod:1122 ../test-tool/libguestfs-test-tool.pod:129
19442 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19443 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1517
19444 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305
19445 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
19446 msgid ""
19447 "This program is distributed in the hope that it will be useful, but WITHOUT "
19448 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19449 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19450 "more details."
19451 msgstr ""
19452
19453 # type: textblock
19454 #: ../fish/guestfish.pod:1127 ../test-tool/libguestfs-test-tool.pod:134
19455 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19456 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1522
19457 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310
19458 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
19459 msgid ""
19460 "You should have received a copy of the GNU General Public License along with "
19461 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19462 "Ave, Cambridge, MA 02139, USA."
19463 msgstr ""
19464
19465 # type: =head2
19466 #: ../fish/guestfish-actions.pod:1
19467 msgid "add-cdrom"
19468 msgstr ""
19469
19470 # type: verbatim
19471 #: ../fish/guestfish-actions.pod:3
19472 #, no-wrap
19473 msgid ""
19474 " add-cdrom filename\n"
19475 "\n"
19476 msgstr ""
19477
19478 # type: textblock
19479 #: ../fish/guestfish-actions.pod:15
19480 msgid ""
19481 "This call checks for the existence of C<filename>.  This stops you from "
19482 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19483 "and C<http:> URLs.  To specify those, use the general L</config> call "
19484 "instead."
19485 msgstr ""
19486
19487 # type: textblock
19488 #: ../fish/guestfish-actions.pod:22
19489 msgid ""
19490 "If you just want to add an ISO file (often you use this as an efficient way "
19491 "to transfer large files into the guest), then you should probably use L</add-"
19492 "drive-ro> instead."
19493 msgstr ""
19494
19495 # type: =head2
19496 #: ../fish/guestfish-actions.pod:35
19497 msgid "add-domain"
19498 msgstr ""
19499
19500 # type: =head2
19501 #: ../fish/guestfish-actions.pod:37
19502 msgid "domain"
19503 msgstr ""
19504
19505 # type: verbatim
19506 #: ../fish/guestfish-actions.pod:39
19507 #, no-wrap
19508 msgid ""
19509 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19510 "\n"
19511 msgstr ""
19512
19513 # type: textblock
19514 #: ../fish/guestfish-actions.pod:41
19515 msgid ""
19516 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19517 "It works by connecting to libvirt, requesting the domain and domain XML from "
19518 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19519 msgstr ""
19520
19521 # type: textblock
19522 #: ../fish/guestfish-actions.pod:58
19523 msgid ""
19524 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19525 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19526 "libvirt URI (or one set through an environment variable, see the libvirt "
19527 "documentation for full details).  If you are using the C API directly then "
19528 "it is more flexible to create the libvirt connection object yourself, get "
19529 "the domain object, and call L</add-libvirt-dom>."
19530 msgstr ""
19531
19532 # type: textblock
19533 #: ../fish/guestfish-actions.pod:66
19534 msgid ""
19535 "The other optional parameters are passed directly through to L</add-drive-"
19536 "opts>."
19537 msgstr ""
19538
19539 # type: textblock
19540 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19541 #: ../fish/guestfish-actions.pod:2804
19542 msgid ""
19543 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19544 msgstr ""
19545
19546 # type: =head2
19547 #: ../fish/guestfish-actions.pod:71
19548 msgid "add-drive"
19549 msgstr ""
19550
19551 # type: verbatim
19552 #: ../fish/guestfish-actions.pod:73
19553 #, no-wrap
19554 msgid ""
19555 " add-drive filename\n"
19556 "\n"
19557 msgstr ""
19558
19559 # type: textblock
19560 #: ../fish/guestfish-actions.pod:75
19561 msgid ""
19562 "This function is the equivalent of calling L</add-drive-opts> with no "
19563 "optional parameters, so the disk is added writable, with the format being "
19564 "detected automatically."
19565 msgstr ""
19566
19567 # type: textblock
19568 #: ../fish/guestfish-actions.pod:79
19569 msgid ""
19570 "Automatic detection of the format opens you up to a potential security hole "
19571 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19572 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19573 "you should think about replacing calls to this function with calls to L</add-"
19574 "drive-opts>, and specifying the format."
19575 msgstr ""
19576
19577 # type: =head2
19578 #: ../fish/guestfish-actions.pod:86
19579 msgid "add-drive-opts"
19580 msgstr ""
19581
19582 # type: =head2
19583 #: ../fish/guestfish-actions.pod:88
19584 msgid "add"
19585 msgstr ""
19586
19587 # type: verbatim
19588 #: ../fish/guestfish-actions.pod:90
19589 #, no-wrap
19590 msgid ""
19591 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19592 "\n"
19593 msgstr ""
19594
19595 # type: textblock
19596 #: ../fish/guestfish-actions.pod:117
19597 msgid ""
19598 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19599 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19600 "include C<raw> and C<qcow2>."
19601 msgstr ""
19602
19603 # type: textblock
19604 #: ../fish/guestfish-actions.pod:128
19605 msgid ""
19606 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19607 "add-drive-with-if> call (q.v.)"
19608 msgstr ""
19609
19610 # type: =head2
19611 #: ../fish/guestfish-actions.pod:135
19612 msgid "add-drive-ro"
19613 msgstr ""
19614
19615 # type: =head2
19616 #: ../fish/guestfish-actions.pod:137
19617 msgid "add-ro"
19618 msgstr ""
19619
19620 # type: verbatim
19621 #: ../fish/guestfish-actions.pod:139
19622 #, no-wrap
19623 msgid ""
19624 " add-drive-ro filename\n"
19625 "\n"
19626 msgstr ""
19627
19628 # type: textblock
19629 #: ../fish/guestfish-actions.pod:141
19630 msgid ""
19631 "This function is the equivalent of calling L</add-drive-opts> with the "
19632 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19633 "is added read-only, with the format being detected automatically."
19634 msgstr ""
19635
19636 # type: =head2
19637 #: ../fish/guestfish-actions.pod:146
19638 msgid "add-drive-ro-with-if"
19639 msgstr ""
19640
19641 # type: verbatim
19642 #: ../fish/guestfish-actions.pod:148
19643 #, no-wrap
19644 msgid ""
19645 " add-drive-ro-with-if filename iface\n"
19646 "\n"
19647 msgstr ""
19648
19649 # type: textblock
19650 #: ../fish/guestfish-actions.pod:150
19651 msgid ""
19652 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19653 "interface emulation to use at run time."
19654 msgstr ""
19655
19656 # type: =head2
19657 #: ../fish/guestfish-actions.pod:160
19658 msgid "add-drive-with-if"
19659 msgstr ""
19660
19661 # type: verbatim
19662 #: ../fish/guestfish-actions.pod:162
19663 #, no-wrap
19664 msgid ""
19665 " add-drive-with-if filename iface\n"
19666 "\n"
19667 msgstr ""
19668
19669 # type: textblock
19670 #: ../fish/guestfish-actions.pod:164
19671 msgid ""
19672 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19673 "interface emulation to use at run time."
19674 msgstr ""
19675
19676 # type: =head2
19677 #: ../fish/guestfish-actions.pod:174
19678 msgid "aug-clear"
19679 msgstr ""
19680
19681 # type: verbatim
19682 #: ../fish/guestfish-actions.pod:176
19683 #, no-wrap
19684 msgid ""
19685 " aug-clear augpath\n"
19686 "\n"
19687 msgstr ""
19688
19689 # type: =head2
19690 #: ../fish/guestfish-actions.pod:181
19691 msgid "aug-close"
19692 msgstr ""
19693
19694 # type: verbatim
19695 #: ../fish/guestfish-actions.pod:183
19696 #, no-wrap
19697 msgid ""
19698 " aug-close\n"
19699 "\n"
19700 msgstr ""
19701
19702 # type: textblock
19703 #: ../fish/guestfish-actions.pod:185
19704 msgid ""
19705 "Close the current Augeas handle and free up any resources used by it.  After "
19706 "calling this, you have to call L</aug-init> again before you can use any "
19707 "other Augeas functions."
19708 msgstr ""
19709
19710 # type: =head2
19711 #: ../fish/guestfish-actions.pod:190
19712 msgid "aug-defnode"
19713 msgstr ""
19714
19715 # type: verbatim
19716 #: ../fish/guestfish-actions.pod:192
19717 #, no-wrap
19718 msgid ""
19719 " aug-defnode name expr val\n"
19720 "\n"
19721 msgstr ""
19722
19723 # type: textblock
19724 #: ../fish/guestfish-actions.pod:197
19725 msgid ""
19726 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19727 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19728 "containing that single node."
19729 msgstr ""
19730
19731 # type: =head2
19732 #: ../fish/guestfish-actions.pod:205
19733 msgid "aug-defvar"
19734 msgstr ""
19735
19736 # type: verbatim
19737 #: ../fish/guestfish-actions.pod:207
19738 #, no-wrap
19739 msgid ""
19740 " aug-defvar name expr\n"
19741 "\n"
19742 msgstr ""
19743
19744 # type: =head2
19745 #: ../fish/guestfish-actions.pod:216
19746 msgid "aug-get"
19747 msgstr ""
19748
19749 # type: verbatim
19750 #: ../fish/guestfish-actions.pod:218
19751 #, no-wrap
19752 msgid ""
19753 " aug-get augpath\n"
19754 "\n"
19755 msgstr ""
19756
19757 # type: =head2
19758 #: ../fish/guestfish-actions.pod:223
19759 msgid "aug-init"
19760 msgstr ""
19761
19762 # type: verbatim
19763 #: ../fish/guestfish-actions.pod:225
19764 #, no-wrap
19765 msgid ""
19766 " aug-init root flags\n"
19767 "\n"
19768 msgstr ""
19769
19770 # type: textblock
19771 #: ../fish/guestfish-actions.pod:231
19772 msgid "You must call this before using any other L</aug-*> commands."
19773 msgstr ""
19774
19775 # type: textblock
19776 #: ../fish/guestfish-actions.pod:266
19777 msgid "Do not load the tree in L</aug-init>."
19778 msgstr ""
19779
19780 # type: textblock
19781 #: ../fish/guestfish-actions.pod:270
19782 msgid "To close the handle, you can call L</aug-close>."
19783 msgstr ""
19784
19785 # type: =head2
19786 #: ../fish/guestfish-actions.pod:274
19787 msgid "aug-insert"
19788 msgstr ""
19789
19790 # type: verbatim
19791 #: ../fish/guestfish-actions.pod:276
19792 #, no-wrap
19793 msgid ""
19794 " aug-insert augpath label true|false\n"
19795 "\n"
19796 msgstr ""
19797
19798 # type: =head2
19799 #: ../fish/guestfish-actions.pod:286
19800 msgid "aug-load"
19801 msgstr ""
19802
19803 # type: verbatim
19804 #: ../fish/guestfish-actions.pod:288
19805 #, no-wrap
19806 msgid ""
19807 " aug-load\n"
19808 "\n"
19809 msgstr ""
19810
19811 # type: =head2
19812 #: ../fish/guestfish-actions.pod:295
19813 msgid "aug-ls"
19814 msgstr ""
19815
19816 # type: verbatim
19817 #: ../fish/guestfish-actions.pod:297
19818 #, no-wrap
19819 msgid ""
19820 " aug-ls augpath\n"
19821 "\n"
19822 msgstr ""
19823
19824 # type: textblock
19825 #: ../fish/guestfish-actions.pod:299
19826 msgid ""
19827 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19828 "resulting nodes into alphabetical order."
19829 msgstr ""
19830
19831 # type: =head2
19832 #: ../fish/guestfish-actions.pod:302
19833 msgid "aug-match"
19834 msgstr ""
19835
19836 # type: verbatim
19837 #: ../fish/guestfish-actions.pod:304
19838 #, no-wrap
19839 msgid ""
19840 " aug-match augpath\n"
19841 "\n"
19842 msgstr ""
19843
19844 # type: =head2
19845 #: ../fish/guestfish-actions.pod:310
19846 msgid "aug-mv"
19847 msgstr ""
19848
19849 # type: verbatim
19850 #: ../fish/guestfish-actions.pod:312
19851 #, no-wrap
19852 msgid ""
19853 " aug-mv src dest\n"
19854 "\n"
19855 msgstr ""
19856
19857 # type: =head2
19858 #: ../fish/guestfish-actions.pod:317
19859 msgid "aug-rm"
19860 msgstr ""
19861
19862 # type: verbatim
19863 #: ../fish/guestfish-actions.pod:319
19864 #, no-wrap
19865 msgid ""
19866 " aug-rm augpath\n"
19867 "\n"
19868 msgstr ""
19869
19870 # type: =head2
19871 #: ../fish/guestfish-actions.pod:325
19872 msgid "aug-save"
19873 msgstr ""
19874
19875 # type: verbatim
19876 #: ../fish/guestfish-actions.pod:327
19877 #, no-wrap
19878 msgid ""
19879 " aug-save\n"
19880 "\n"
19881 msgstr ""
19882
19883 # type: textblock
19884 #: ../fish/guestfish-actions.pod:331
19885 msgid ""
19886 "The flags which were passed to L</aug-init> affect exactly how files are "
19887 "saved."
19888 msgstr ""
19889
19890 # type: =head2
19891 #: ../fish/guestfish-actions.pod:334
19892 msgid "aug-set"
19893 msgstr ""
19894
19895 # type: verbatim
19896 #: ../fish/guestfish-actions.pod:336
19897 #, no-wrap
19898 msgid ""
19899 " aug-set augpath val\n"
19900 "\n"
19901 msgstr ""
19902
19903 # type: textblock
19904 #: ../fish/guestfish-actions.pod:340
19905 msgid ""
19906 "In the Augeas API, it is possible to clear a node by setting the value to "
19907 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19908 "this call.  Instead you must use the L</aug-clear> call."
19909 msgstr ""
19910
19911 # type: =head2
19912 #: ../fish/guestfish-actions.pod:345
19913 msgid "available"
19914 msgstr ""
19915
19916 # type: verbatim
19917 #: ../fish/guestfish-actions.pod:347
19918 #, no-wrap
19919 msgid ""
19920 " available 'groups ...'\n"
19921 "\n"
19922 msgstr ""
19923
19924 # type: textblock
19925 #: ../fish/guestfish-actions.pod:353
19926 msgid ""
19927 "The libguestfs groups, and the functions that those groups correspond to, "
19928 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19929 "runtime by calling L</available-all-groups>."
19930 msgstr ""
19931
19932 # type: textblock
19933 #: ../fish/guestfish-actions.pod:377
19934 msgid "You must call L</launch> before calling this function."
19935 msgstr ""
19936
19937 # type: textblock
19938 #: ../fish/guestfish-actions.pod:399
19939 msgid ""
19940 "This call was added in version C<1.0.80>.  In previous versions of "
19941 "libguestfs all you could do would be to speculatively execute a command to "
19942 "find out if the daemon implemented it.  See also L</version>."
19943 msgstr ""
19944
19945 # type: =head2
19946 #: ../fish/guestfish-actions.pod:406
19947 msgid "available-all-groups"
19948 msgstr ""
19949
19950 # type: verbatim
19951 #: ../fish/guestfish-actions.pod:408
19952 #, no-wrap
19953 msgid ""
19954 " available-all-groups\n"
19955 "\n"
19956 msgstr ""
19957
19958 # type: textblock
19959 #: ../fish/guestfish-actions.pod:410
19960 msgid ""
19961 "This command returns a list of all optional groups that this daemon knows "
19962 "about.  Note this returns both supported and unsupported groups.  To find "
19963 "out which ones the daemon can actually support you have to call L</"
19964 "available> on each member of the returned list."
19965 msgstr ""
19966
19967 # type: textblock
19968 #: ../fish/guestfish-actions.pod:416
19969 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19970 msgstr ""
19971
19972 # type: =head2
19973 #: ../fish/guestfish-actions.pod:418
19974 msgid "base64-in"
19975 msgstr ""
19976
19977 # type: verbatim
19978 #: ../fish/guestfish-actions.pod:420
19979 #, no-wrap
19980 msgid ""
19981 " base64-in (base64file|-) filename\n"
19982 "\n"
19983 msgstr ""
19984
19985 # type: textblock
19986 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19987 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19988 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19989 #: ../fish/guestfish-actions.pod:4159 ../fish/guestfish-actions.pod:4171
19990 #: ../fish/guestfish-actions.pod:4182 ../fish/guestfish-actions.pod:4193
19991 #: ../fish/guestfish-actions.pod:4245 ../fish/guestfish-actions.pod:4254
19992 #: ../fish/guestfish-actions.pod:4308 ../fish/guestfish-actions.pod:4331
19993 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19994 msgstr ""
19995
19996 # type: =head2
19997 #: ../fish/guestfish-actions.pod:427
19998 msgid "base64-out"
19999 msgstr ""
20000
20001 # type: verbatim
20002 #: ../fish/guestfish-actions.pod:429
20003 #, no-wrap
20004 msgid ""
20005 " base64-out filename (base64file|-)\n"
20006 "\n"
20007 msgstr ""
20008
20009 # type: =head2
20010 #: ../fish/guestfish-actions.pod:436
20011 msgid "blockdev-flushbufs"
20012 msgstr ""
20013
20014 # type: verbatim
20015 #: ../fish/guestfish-actions.pod:438
20016 #, no-wrap
20017 msgid ""
20018 " blockdev-flushbufs device\n"
20019 "\n"
20020 msgstr ""
20021
20022 # type: =head2
20023 #: ../fish/guestfish-actions.pod:445
20024 msgid "blockdev-getbsz"
20025 msgstr ""
20026
20027 # type: verbatim
20028 #: ../fish/guestfish-actions.pod:447
20029 #, no-wrap
20030 msgid ""
20031 " blockdev-getbsz device\n"
20032 "\n"
20033 msgstr ""
20034
20035 # type: =head2
20036 #: ../fish/guestfish-actions.pod:456
20037 msgid "blockdev-getro"
20038 msgstr ""
20039
20040 # type: verbatim
20041 #: ../fish/guestfish-actions.pod:458
20042 #, no-wrap
20043 msgid ""
20044 " blockdev-getro device\n"
20045 "\n"
20046 msgstr ""
20047
20048 # type: =head2
20049 #: ../fish/guestfish-actions.pod:465
20050 msgid "blockdev-getsize64"
20051 msgstr ""
20052
20053 # type: verbatim
20054 #: ../fish/guestfish-actions.pod:467
20055 #, no-wrap
20056 msgid ""
20057 " blockdev-getsize64 device\n"
20058 "\n"
20059 msgstr ""
20060
20061 # type: textblock
20062 #: ../fish/guestfish-actions.pod:471
20063 msgid "See also L</blockdev-getsz>."
20064 msgstr ""
20065
20066 # type: =head2
20067 #: ../fish/guestfish-actions.pod:475
20068 msgid "blockdev-getss"
20069 msgstr ""
20070
20071 # type: verbatim
20072 #: ../fish/guestfish-actions.pod:477
20073 #, no-wrap
20074 msgid ""
20075 " blockdev-getss device\n"
20076 "\n"
20077 msgstr ""
20078
20079 # type: textblock
20080 #: ../fish/guestfish-actions.pod:482
20081 msgid ""
20082 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
20083 msgstr ""
20084
20085 # type: =head2
20086 #: ../fish/guestfish-actions.pod:487
20087 msgid "blockdev-getsz"
20088 msgstr ""
20089
20090 # type: verbatim
20091 #: ../fish/guestfish-actions.pod:489
20092 #, no-wrap
20093 msgid ""
20094 " blockdev-getsz device\n"
20095 "\n"
20096 msgstr ""
20097
20098 # type: textblock
20099 #: ../fish/guestfish-actions.pod:494
20100 msgid ""
20101 "See also L</blockdev-getss> for the real sector size of the device, and L</"
20102 "blockdev-getsize64> for the more useful I<size in bytes>."
20103 msgstr ""
20104
20105 # type: =head2
20106 #: ../fish/guestfish-actions.pod:500
20107 msgid "blockdev-rereadpt"
20108 msgstr ""
20109
20110 # type: verbatim
20111 #: ../fish/guestfish-actions.pod:502
20112 #, no-wrap
20113 msgid ""
20114 " blockdev-rereadpt device\n"
20115 "\n"
20116 msgstr ""
20117
20118 # type: =head2
20119 #: ../fish/guestfish-actions.pod:508
20120 msgid "blockdev-setbsz"
20121 msgstr ""
20122
20123 # type: verbatim
20124 #: ../fish/guestfish-actions.pod:510
20125 #, no-wrap
20126 msgid ""
20127 " blockdev-setbsz device blocksize\n"
20128 "\n"
20129 msgstr ""
20130
20131 # type: =head2
20132 #: ../fish/guestfish-actions.pod:519
20133 msgid "blockdev-setro"
20134 msgstr ""
20135
20136 # type: verbatim
20137 #: ../fish/guestfish-actions.pod:521
20138 #, no-wrap
20139 msgid ""
20140 " blockdev-setro device\n"
20141 "\n"
20142 msgstr ""
20143
20144 # type: =head2
20145 #: ../fish/guestfish-actions.pod:527
20146 msgid "blockdev-setrw"
20147 msgstr ""
20148
20149 # type: verbatim
20150 #: ../fish/guestfish-actions.pod:529
20151 #, no-wrap
20152 msgid ""
20153 " blockdev-setrw device\n"
20154 "\n"
20155 msgstr ""
20156
20157 # type: =head2
20158 #: ../fish/guestfish-actions.pod:535
20159 msgid "case-sensitive-path"
20160 msgstr ""
20161
20162 # type: verbatim
20163 #: ../fish/guestfish-actions.pod:537
20164 #, no-wrap
20165 msgid ""
20166 " case-sensitive-path path\n"
20167 "\n"
20168 msgstr ""
20169
20170 # type: textblock
20171 #: ../fish/guestfish-actions.pod:561
20172 msgid ""
20173 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
20174 "WINDOWS/system32\"> (the exact return value would depend on details of how "
20175 "the directories were originally created under Windows)."
20176 msgstr ""
20177
20178 # type: textblock
20179 #: ../fish/guestfish-actions.pod:569
20180 msgid "See also L</realpath>."
20181 msgstr ""
20182
20183 # type: =head2
20184 #: ../fish/guestfish-actions.pod:571
20185 msgid "cat"
20186 msgstr ""
20187
20188 # type: verbatim
20189 #: ../fish/guestfish-actions.pod:573
20190 #, no-wrap
20191 msgid ""
20192 " cat path\n"
20193 "\n"
20194 msgstr ""
20195
20196 # type: textblock
20197 #: ../fish/guestfish-actions.pod:577
20198 msgid ""
20199 "Note that this function cannot correctly handle binary files (specifically, "
20200 "files containing C<\\0> character which is treated as end of string).  For "
20201 "those you need to use the L</read-file> or L</download> functions which have "
20202 "a more complex interface."
20203 msgstr ""
20204
20205 # type: =head2
20206 #: ../fish/guestfish-actions.pod:585
20207 msgid "checksum"
20208 msgstr ""
20209
20210 # type: verbatim
20211 #: ../fish/guestfish-actions.pod:587
20212 #, no-wrap
20213 msgid ""
20214 " checksum csumtype path\n"
20215 "\n"
20216 msgstr ""
20217
20218 # type: textblock
20219 #: ../fish/guestfish-actions.pod:630
20220 msgid "To get the checksum for a device, use L</checksum-device>."
20221 msgstr ""
20222
20223 # type: textblock
20224 #: ../fish/guestfish-actions.pod:632
20225 msgid "To get the checksums for many files, use L</checksums-out>."
20226 msgstr ""
20227
20228 # type: =head2
20229 #: ../fish/guestfish-actions.pod:634
20230 msgid "checksum-device"
20231 msgstr ""
20232
20233 # type: verbatim
20234 #: ../fish/guestfish-actions.pod:636
20235 #, no-wrap
20236 msgid ""
20237 " checksum-device csumtype device\n"
20238 "\n"
20239 msgstr ""
20240
20241 # type: textblock
20242 #: ../fish/guestfish-actions.pod:638
20243 msgid ""
20244 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20245 "device named C<device>.  For the types of checksums supported see the L</"
20246 "checksum> command."
20247 msgstr ""
20248
20249 # type: =head2
20250 #: ../fish/guestfish-actions.pod:642
20251 msgid "checksums-out"
20252 msgstr ""
20253
20254 # type: verbatim
20255 #: ../fish/guestfish-actions.pod:644
20256 #, no-wrap
20257 msgid ""
20258 " checksums-out csumtype directory (sumsfile|-)\n"
20259 "\n"
20260 msgstr ""
20261
20262 # type: =head2
20263 #: ../fish/guestfish-actions.pod:660
20264 msgid "chmod"
20265 msgstr ""
20266
20267 # type: verbatim
20268 #: ../fish/guestfish-actions.pod:662
20269 #, no-wrap
20270 msgid ""
20271 " chmod mode path\n"
20272 "\n"
20273 msgstr ""
20274
20275 # type: =head2
20276 #: ../fish/guestfish-actions.pod:673
20277 msgid "chown"
20278 msgstr ""
20279
20280 # type: verbatim
20281 #: ../fish/guestfish-actions.pod:675
20282 #, no-wrap
20283 msgid ""
20284 " chown owner group path\n"
20285 "\n"
20286 msgstr ""
20287
20288 # type: =head2
20289 #: ../fish/guestfish-actions.pod:683
20290 msgid "command"
20291 msgstr ""
20292
20293 # type: verbatim
20294 #: ../fish/guestfish-actions.pod:685
20295 #, no-wrap
20296 msgid ""
20297 " command 'arguments ...'\n"
20298 "\n"
20299 msgstr ""
20300
20301 # type: textblock
20302 #: ../fish/guestfish-actions.pod:692
20303 msgid ""
20304 "The single parameter is an argv-style list of arguments.  The first element "
20305 "is the name of the program to run.  Subsequent elements are parameters.  The "
20306 "list must be non-empty (ie. must contain a program name).  Note that the "
20307 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20308 msgstr ""
20309
20310 # type: =head2
20311 #: ../fish/guestfish-actions.pod:720
20312 msgid "command-lines"
20313 msgstr ""
20314
20315 # type: verbatim
20316 #: ../fish/guestfish-actions.pod:722
20317 #, no-wrap
20318 msgid ""
20319 " command-lines 'arguments ...'\n"
20320 "\n"
20321 msgstr ""
20322
20323 # type: textblock
20324 #: ../fish/guestfish-actions.pod:724
20325 msgid ""
20326 "This is the same as L</command>, but splits the result into a list of lines."
20327 msgstr ""
20328
20329 # type: textblock
20330 #: ../fish/guestfish-actions.pod:727
20331 msgid "See also: L</sh-lines>"
20332 msgstr ""
20333
20334 # type: =head2
20335 #: ../fish/guestfish-actions.pod:732
20336 msgid "config"
20337 msgstr ""
20338
20339 # type: verbatim
20340 #: ../fish/guestfish-actions.pod:734
20341 #, no-wrap
20342 msgid ""
20343 " config qemuparam qemuvalue\n"
20344 "\n"
20345 msgstr ""
20346
20347 # type: =head2
20348 #: ../fish/guestfish-actions.pod:745
20349 msgid "copy-size"
20350 msgstr ""
20351
20352 # type: verbatim
20353 #: ../fish/guestfish-actions.pod:747
20354 #, no-wrap
20355 msgid ""
20356 " copy-size src dest size\n"
20357 "\n"
20358 msgstr ""
20359
20360 # type: =head2
20361 #: ../fish/guestfish-actions.pod:755
20362 msgid "cp"
20363 msgstr ""
20364
20365 # type: verbatim
20366 #: ../fish/guestfish-actions.pod:757
20367 #, no-wrap
20368 msgid ""
20369 " cp src dest\n"
20370 "\n"
20371 msgstr ""
20372
20373 # type: =head2
20374 #: ../fish/guestfish-actions.pod:762
20375 msgid "cp-a"
20376 msgstr ""
20377
20378 # type: verbatim
20379 #: ../fish/guestfish-actions.pod:764
20380 #, no-wrap
20381 msgid ""
20382 " cp-a src dest\n"
20383 "\n"
20384 msgstr ""
20385
20386 # type: =head2
20387 #: ../fish/guestfish-actions.pod:769
20388 msgid "dd"
20389 msgstr ""
20390
20391 # type: verbatim
20392 #: ../fish/guestfish-actions.pod:771
20393 #, no-wrap
20394 msgid ""
20395 " dd src dest\n"
20396 "\n"
20397 msgstr ""
20398
20399 # type: textblock
20400 #: ../fish/guestfish-actions.pod:778
20401 msgid ""
20402 "If the destination is a device, it must be as large or larger than the "
20403 "source file or device, otherwise the copy will fail.  This command cannot do "
20404 "partial copies (see L</copy-size>)."
20405 msgstr ""
20406
20407 # type: =head2
20408 #: ../fish/guestfish-actions.pod:782
20409 msgid "df"
20410 msgstr ""
20411
20412 # type: verbatim
20413 #: ../fish/guestfish-actions.pod:784
20414 #, no-wrap
20415 msgid ""
20416 " df\n"
20417 "\n"
20418 msgstr ""
20419
20420 # type: =head2
20421 #: ../fish/guestfish-actions.pod:792
20422 msgid "df-h"
20423 msgstr ""
20424
20425 # type: verbatim
20426 #: ../fish/guestfish-actions.pod:794
20427 #, no-wrap
20428 msgid ""
20429 " df-h\n"
20430 "\n"
20431 msgstr ""
20432
20433 # type: =head2
20434 #: ../fish/guestfish-actions.pod:803
20435 msgid "dmesg"
20436 msgstr ""
20437
20438 # type: verbatim
20439 #: ../fish/guestfish-actions.pod:805
20440 #, no-wrap
20441 msgid ""
20442 " dmesg\n"
20443 "\n"
20444 msgstr ""
20445
20446 # type: textblock
20447 #: ../fish/guestfish-actions.pod:811
20448 msgid ""
20449 "Another way to get the same information is to enable verbose messages with "
20450 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20451 "before running the program."
20452 msgstr ""
20453
20454 # type: =head2
20455 #: ../fish/guestfish-actions.pod:816
20456 msgid "download"
20457 msgstr ""
20458
20459 # type: verbatim
20460 #: ../fish/guestfish-actions.pod:818
20461 #, no-wrap
20462 msgid ""
20463 " download remotefilename (filename|-)\n"
20464 "\n"
20465 msgstr ""
20466
20467 # type: textblock
20468 #: ../fish/guestfish-actions.pod:825
20469 msgid "See also L</upload>, L</cat>."
20470 msgstr ""
20471
20472 # type: =head2
20473 #: ../fish/guestfish-actions.pod:829
20474 msgid "download-offset"
20475 msgstr ""
20476
20477 # type: verbatim
20478 #: ../fish/guestfish-actions.pod:831
20479 #, no-wrap
20480 msgid ""
20481 " download-offset remotefilename (filename|-) offset size\n"
20482 "\n"
20483 msgstr ""
20484
20485 # type: textblock
20486 #: ../fish/guestfish-actions.pod:839
20487 msgid ""
20488 "Note that there is no limit on the amount of data that can be downloaded "
20489 "with this call, unlike with L</pread>, and this call always reads the full "
20490 "amount unless an error occurs."
20491 msgstr ""
20492
20493 # type: textblock
20494 #: ../fish/guestfish-actions.pod:844
20495 msgid "See also L</download>, L</pread>."
20496 msgstr ""
20497
20498 # type: =head2
20499 #: ../fish/guestfish-actions.pod:848
20500 msgid "drop-caches"
20501 msgstr ""
20502
20503 # type: verbatim
20504 #: ../fish/guestfish-actions.pod:850
20505 #, no-wrap
20506 msgid ""
20507 " drop-caches whattodrop\n"
20508 "\n"
20509 msgstr ""
20510
20511 # type: =head2
20512 #: ../fish/guestfish-actions.pod:862
20513 msgid "du"
20514 msgstr ""
20515
20516 # type: verbatim
20517 #: ../fish/guestfish-actions.pod:864
20518 #, no-wrap
20519 msgid ""
20520 " du path\n"
20521 "\n"
20522 msgstr ""
20523
20524 # type: =head2
20525 #: ../fish/guestfish-actions.pod:876
20526 msgid "e2fsck-f"
20527 msgstr ""
20528
20529 # type: verbatim
20530 #: ../fish/guestfish-actions.pod:878
20531 #, no-wrap
20532 msgid ""
20533 " e2fsck-f device\n"
20534 "\n"
20535 msgstr ""
20536
20537 # type: textblock
20538 #: ../fish/guestfish-actions.pod:884
20539 msgid ""
20540 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20541 "should use L</fsck>."
20542 msgstr ""
20543
20544 # type: =head2
20545 #: ../fish/guestfish-actions.pod:887
20546 msgid "echo-daemon"
20547 msgstr ""
20548
20549 # type: verbatim
20550 #: ../fish/guestfish-actions.pod:889
20551 #, no-wrap
20552 msgid ""
20553 " echo-daemon 'words ...'\n"
20554 "\n"
20555 msgstr ""
20556
20557 # type: textblock
20558 #: ../fish/guestfish-actions.pod:896
20559 msgid "See also L</ping-daemon>."
20560 msgstr ""
20561
20562 # type: =head2
20563 #: ../fish/guestfish-actions.pod:898
20564 msgid "egrep"
20565 msgstr ""
20566
20567 # type: verbatim
20568 #: ../fish/guestfish-actions.pod:900
20569 #, no-wrap
20570 msgid ""
20571 " egrep regex path\n"
20572 "\n"
20573 msgstr ""
20574
20575 # type: =head2
20576 #: ../fish/guestfish-actions.pod:908
20577 msgid "egrepi"
20578 msgstr ""
20579
20580 # type: verbatim
20581 #: ../fish/guestfish-actions.pod:910
20582 #, no-wrap
20583 msgid ""
20584 " egrepi regex path\n"
20585 "\n"
20586 msgstr ""
20587
20588 # type: =head2
20589 #: ../fish/guestfish-actions.pod:918
20590 msgid "equal"
20591 msgstr ""
20592
20593 # type: verbatim
20594 #: ../fish/guestfish-actions.pod:920
20595 #, no-wrap
20596 msgid ""
20597 " equal file1 file2\n"
20598 "\n"
20599 msgstr ""
20600
20601 # type: =head2
20602 #: ../fish/guestfish-actions.pod:927
20603 msgid "exists"
20604 msgstr ""
20605
20606 # type: verbatim
20607 #: ../fish/guestfish-actions.pod:929
20608 #, no-wrap
20609 msgid ""
20610 " exists path\n"
20611 "\n"
20612 msgstr ""
20613
20614 # type: textblock
20615 #: ../fish/guestfish-actions.pod:934
20616 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20617 msgstr ""
20618
20619 # type: =head2
20620 #: ../fish/guestfish-actions.pod:936
20621 msgid "fallocate"
20622 msgstr ""
20623
20624 # type: verbatim
20625 #: ../fish/guestfish-actions.pod:938
20626 #, no-wrap
20627 msgid ""
20628 " fallocate path len\n"
20629 "\n"
20630 msgstr ""
20631
20632 # type: =head2
20633 #: ../fish/guestfish-actions.pod:955
20634 msgid "fallocate64"
20635 msgstr ""
20636
20637 # type: verbatim
20638 #: ../fish/guestfish-actions.pod:957
20639 #, no-wrap
20640 msgid ""
20641 " fallocate64 path len\n"
20642 "\n"
20643 msgstr ""
20644
20645 # type: textblock
20646 #: ../fish/guestfish-actions.pod:963
20647 msgid ""
20648 "Note that this call allocates disk blocks for the file.  To create a sparse "
20649 "file use L</truncate-size> instead."
20650 msgstr ""
20651
20652 # type: textblock
20653 #: ../fish/guestfish-actions.pod:966
20654 msgid ""
20655 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20656 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20657 "maximum size of files created through that call to 1GB."
20658 msgstr ""
20659
20660 # type: =head2
20661 #: ../fish/guestfish-actions.pod:975
20662 msgid "fgrep"
20663 msgstr ""
20664
20665 # type: verbatim
20666 #: ../fish/guestfish-actions.pod:977
20667 #, no-wrap
20668 msgid ""
20669 " fgrep pattern path\n"
20670 "\n"
20671 msgstr ""
20672
20673 # type: =head2
20674 #: ../fish/guestfish-actions.pod:985
20675 msgid "fgrepi"
20676 msgstr ""
20677
20678 # type: verbatim
20679 #: ../fish/guestfish-actions.pod:987
20680 #, no-wrap
20681 msgid ""
20682 " fgrepi pattern path\n"
20683 "\n"
20684 msgstr ""
20685
20686 # type: =head2
20687 #: ../fish/guestfish-actions.pod:995
20688 msgid "file"
20689 msgstr ""
20690
20691 # type: verbatim
20692 #: ../fish/guestfish-actions.pod:997
20693 #, no-wrap
20694 msgid ""
20695 " file path\n"
20696 "\n"
20697 msgstr ""
20698
20699 # type: textblock
20700 #: ../fish/guestfish-actions.pod:1009
20701 msgid ""
20702 "This command can also be used on C</dev/> devices (and partitions, LV "
20703 "names).  You can for example use this to determine if a device contains a "
20704 "filesystem, although it's usually better to use L</vfs-type>."
20705 msgstr ""
20706
20707 # type: =head2
20708 #: ../fish/guestfish-actions.pod:1019
20709 msgid "file-architecture"
20710 msgstr ""
20711
20712 # type: verbatim
20713 #: ../fish/guestfish-actions.pod:1021
20714 #, no-wrap
20715 msgid ""
20716 " file-architecture filename\n"
20717 "\n"
20718 msgstr ""
20719
20720 # type: =head2
20721 #: ../fish/guestfish-actions.pod:1124
20722 msgid "filesize"
20723 msgstr ""
20724
20725 # type: verbatim
20726 #: ../fish/guestfish-actions.pod:1126
20727 #, no-wrap
20728 msgid ""
20729 " filesize file\n"
20730 "\n"
20731 msgstr ""
20732
20733 # type: textblock
20734 #: ../fish/guestfish-actions.pod:1130
20735 msgid ""
20736 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20737 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20738 msgstr ""
20739
20740 # type: =head2
20741 #: ../fish/guestfish-actions.pod:1134
20742 msgid "fill"
20743 msgstr ""
20744
20745 # type: verbatim
20746 #: ../fish/guestfish-actions.pod:1136
20747 #, no-wrap
20748 msgid ""
20749 " fill c len path\n"
20750 "\n"
20751 msgstr ""
20752
20753 # type: textblock
20754 #: ../fish/guestfish-actions.pod:1142
20755 msgid ""
20756 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20757 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20758 "L</fill-pattern>."
20759 msgstr ""
20760
20761 # type: =head2
20762 #: ../fish/guestfish-actions.pod:1147
20763 msgid "fill-pattern"
20764 msgstr ""
20765
20766 # type: verbatim
20767 #: ../fish/guestfish-actions.pod:1149
20768 #, no-wrap
20769 msgid ""
20770 " fill-pattern pattern len path\n"
20771 "\n"
20772 msgstr ""
20773
20774 # type: textblock
20775 #: ../fish/guestfish-actions.pod:1151
20776 msgid ""
20777 "This function is like L</fill> except that it creates a new file of length "
20778 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20779 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20780 "bytes."
20781 msgstr ""
20782
20783 # type: =head2
20784 #: ../fish/guestfish-actions.pod:1156
20785 msgid "find"
20786 msgstr ""
20787
20788 # type: verbatim
20789 #: ../fish/guestfish-actions.pod:1158
20790 #, no-wrap
20791 msgid ""
20792 " find directory\n"
20793 "\n"
20794 msgstr ""
20795
20796 # type: textblock
20797 #: ../fish/guestfish-actions.pod:1172
20798 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20799 msgstr ""
20800
20801 # type: textblock
20802 #: ../fish/guestfish-actions.pod:1185
20803 msgid "See also L</find0>."
20804 msgstr ""
20805
20806 # type: =head2
20807 #: ../fish/guestfish-actions.pod:1190
20808 msgid "find0"
20809 msgstr ""
20810
20811 # type: verbatim
20812 #: ../fish/guestfish-actions.pod:1192
20813 #, no-wrap
20814 msgid ""
20815 " find0 directory (files|-)\n"
20816 "\n"
20817 msgstr ""
20818
20819 # type: textblock
20820 #: ../fish/guestfish-actions.pod:1198
20821 msgid ""
20822 "This command works the same way as L</find> with the following exceptions:"
20823 msgstr ""
20824
20825 # type: =head2
20826 #: ../fish/guestfish-actions.pod:1225
20827 msgid "findfs-label"
20828 msgstr ""
20829
20830 # type: verbatim
20831 #: ../fish/guestfish-actions.pod:1227
20832 #, no-wrap
20833 msgid ""
20834 " findfs-label label\n"
20835 "\n"
20836 msgstr ""
20837
20838 # type: textblock
20839 #: ../fish/guestfish-actions.pod:1233
20840 msgid "To find the label of a filesystem, use L</vfs-label>."
20841 msgstr ""
20842
20843 # type: =head2
20844 #: ../fish/guestfish-actions.pod:1235
20845 msgid "findfs-uuid"
20846 msgstr ""
20847
20848 # type: verbatim
20849 #: ../fish/guestfish-actions.pod:1237
20850 #, no-wrap
20851 msgid ""
20852 " findfs-uuid uuid\n"
20853 "\n"
20854 msgstr ""
20855
20856 # type: textblock
20857 #: ../fish/guestfish-actions.pod:1243
20858 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20859 msgstr ""
20860
20861 # type: =head2
20862 #: ../fish/guestfish-actions.pod:1245
20863 msgid "fsck"
20864 msgstr ""
20865
20866 # type: verbatim
20867 #: ../fish/guestfish-actions.pod:1247
20868 #, no-wrap
20869 msgid ""
20870 " fsck fstype device\n"
20871 "\n"
20872 msgstr ""
20873
20874 # type: =head2
20875 #: ../fish/guestfish-actions.pod:1277
20876 msgid "get-append"
20877 msgstr ""
20878
20879 # type: verbatim
20880 #: ../fish/guestfish-actions.pod:1279
20881 #, no-wrap
20882 msgid ""
20883 " get-append\n"
20884 "\n"
20885 msgstr ""
20886
20887 # type: =head2
20888 #: ../fish/guestfish-actions.pod:1286
20889 msgid "get-autosync"
20890 msgstr ""
20891
20892 # type: verbatim
20893 #: ../fish/guestfish-actions.pod:1288
20894 #, no-wrap
20895 msgid ""
20896 " get-autosync\n"
20897 "\n"
20898 msgstr ""
20899
20900 # type: =head2
20901 #: ../fish/guestfish-actions.pod:1292
20902 msgid "get-direct"
20903 msgstr ""
20904
20905 # type: verbatim
20906 #: ../fish/guestfish-actions.pod:1294
20907 #, no-wrap
20908 msgid ""
20909 " get-direct\n"
20910 "\n"
20911 msgstr ""
20912
20913 # type: =head2
20914 #: ../fish/guestfish-actions.pod:1298
20915 msgid "get-e2label"
20916 msgstr ""
20917
20918 # type: verbatim
20919 #: ../fish/guestfish-actions.pod:1300
20920 #, no-wrap
20921 msgid ""
20922 " get-e2label device\n"
20923 "\n"
20924 msgstr ""
20925
20926 # type: =head2
20927 #: ../fish/guestfish-actions.pod:1312
20928 msgid "get-e2uuid"
20929 msgstr ""
20930
20931 # type: verbatim
20932 #: ../fish/guestfish-actions.pod:1314
20933 #, no-wrap
20934 msgid ""
20935 " get-e2uuid device\n"
20936 "\n"
20937 msgstr ""
20938
20939 # type: =head2
20940 #: ../fish/guestfish-actions.pod:1326
20941 msgid "get-memsize"
20942 msgstr ""
20943
20944 # type: verbatim
20945 #: ../fish/guestfish-actions.pod:1328
20946 #, no-wrap
20947 msgid ""
20948 " get-memsize\n"
20949 "\n"
20950 msgstr ""
20951
20952 # type: textblock
20953 #: ../fish/guestfish-actions.pod:1333
20954 msgid ""
20955 "If L</set-memsize> was not called on this handle, and if "
20956 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20957 "value for memsize."
20958 msgstr ""
20959
20960 # type: =head2
20961 #: ../fish/guestfish-actions.pod:1340
20962 msgid "get-network"
20963 msgstr ""
20964
20965 # type: verbatim
20966 #: ../fish/guestfish-actions.pod:1342
20967 #, no-wrap
20968 msgid ""
20969 " get-network\n"
20970 "\n"
20971 msgstr ""
20972
20973 # type: =head2
20974 #: ../fish/guestfish-actions.pod:1346
20975 msgid "get-path"
20976 msgstr ""
20977
20978 # type: verbatim
20979 #: ../fish/guestfish-actions.pod:1348
20980 #, no-wrap
20981 msgid ""
20982 " get-path\n"
20983 "\n"
20984 msgstr ""
20985
20986 # type: =head2
20987 #: ../fish/guestfish-actions.pod:1355
20988 msgid "get-pid"
20989 msgstr ""
20990
20991 # type: =head2
20992 #: ../fish/guestfish-actions.pod:1357
20993 msgid "pid"
20994 msgstr ""
20995
20996 # type: verbatim
20997 #: ../fish/guestfish-actions.pod:1359
20998 #, no-wrap
20999 msgid ""
21000 " get-pid\n"
21001 "\n"
21002 msgstr ""
21003
21004 # type: =head2
21005 #: ../fish/guestfish-actions.pod:1366
21006 msgid "get-qemu"
21007 msgstr ""
21008
21009 # type: verbatim
21010 #: ../fish/guestfish-actions.pod:1368
21011 #, no-wrap
21012 msgid ""
21013 " get-qemu\n"
21014 "\n"
21015 msgstr ""
21016
21017 # type: =head2
21018 #: ../fish/guestfish-actions.pod:1375
21019 msgid "get-recovery-proc"
21020 msgstr ""
21021
21022 # type: verbatim
21023 #: ../fish/guestfish-actions.pod:1377
21024 #, no-wrap
21025 msgid ""
21026 " get-recovery-proc\n"
21027 "\n"
21028 msgstr ""
21029
21030 # type: =head2
21031 #: ../fish/guestfish-actions.pod:1381
21032 msgid "get-selinux"
21033 msgstr ""
21034
21035 # type: verbatim
21036 #: ../fish/guestfish-actions.pod:1383
21037 #, no-wrap
21038 msgid ""
21039 " get-selinux\n"
21040 "\n"
21041 msgstr ""
21042
21043 # type: textblock
21044 #: ../fish/guestfish-actions.pod:1385
21045 msgid ""
21046 "This returns the current setting of the selinux flag which is passed to the "
21047 "appliance at boot time.  See L</set-selinux>."
21048 msgstr ""
21049
21050 # type: =head2
21051 #: ../fish/guestfish-actions.pod:1391
21052 msgid "get-state"
21053 msgstr ""
21054
21055 # type: verbatim
21056 #: ../fish/guestfish-actions.pod:1393
21057 #, no-wrap
21058 msgid ""
21059 " get-state\n"
21060 "\n"
21061 msgstr ""
21062
21063 # type: =head2
21064 #: ../fish/guestfish-actions.pod:1400
21065 msgid "get-trace"
21066 msgstr ""
21067
21068 # type: verbatim
21069 #: ../fish/guestfish-actions.pod:1402
21070 #, no-wrap
21071 msgid ""
21072 " get-trace\n"
21073 "\n"
21074 msgstr ""
21075
21076 # type: =head2
21077 #: ../fish/guestfish-actions.pod:1406
21078 msgid "get-umask"
21079 msgstr ""
21080
21081 # type: verbatim
21082 #: ../fish/guestfish-actions.pod:1408
21083 #, no-wrap
21084 msgid ""
21085 " get-umask\n"
21086 "\n"
21087 msgstr ""
21088
21089 # type: textblock
21090 #: ../fish/guestfish-actions.pod:1410
21091 msgid ""
21092 "Return the current umask.  By default the umask is C<022> unless it has been "
21093 "set by calling L</umask>."
21094 msgstr ""
21095
21096 # type: =head2
21097 #: ../fish/guestfish-actions.pod:1413
21098 msgid "get-verbose"
21099 msgstr ""
21100
21101 # type: verbatim
21102 #: ../fish/guestfish-actions.pod:1415
21103 #, no-wrap
21104 msgid ""
21105 " get-verbose\n"
21106 "\n"
21107 msgstr ""
21108
21109 # type: =head2
21110 #: ../fish/guestfish-actions.pod:1419
21111 msgid "getcon"
21112 msgstr ""
21113
21114 # type: verbatim
21115 #: ../fish/guestfish-actions.pod:1421
21116 #, no-wrap
21117 msgid ""
21118 " getcon\n"
21119 "\n"
21120 msgstr ""
21121
21122 # type: textblock
21123 #: ../fish/guestfish-actions.pod:1425
21124 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
21125 msgstr ""
21126
21127 # type: =head2
21128 #: ../fish/guestfish-actions.pod:1428
21129 msgid "getxattrs"
21130 msgstr ""
21131
21132 # type: verbatim
21133 #: ../fish/guestfish-actions.pod:1430
21134 #, no-wrap
21135 msgid ""
21136 " getxattrs path\n"
21137 "\n"
21138 msgstr ""
21139
21140 # type: textblock
21141 #: ../fish/guestfish-actions.pod:1438
21142 msgid "See also: L</lgetxattrs>, L<attr(5)>."
21143 msgstr ""
21144
21145 # type: =head2
21146 #: ../fish/guestfish-actions.pod:1440
21147 msgid "glob-expand"
21148 msgstr ""
21149
21150 # type: verbatim
21151 #: ../fish/guestfish-actions.pod:1442
21152 #, no-wrap
21153 msgid ""
21154 " glob-expand pattern\n"
21155 "\n"
21156 msgstr ""
21157
21158 # type: =head2
21159 #: ../fish/guestfish-actions.pod:1455
21160 msgid "grep"
21161 msgstr ""
21162
21163 # type: verbatim
21164 #: ../fish/guestfish-actions.pod:1457
21165 #, no-wrap
21166 msgid ""
21167 " grep regex path\n"
21168 "\n"
21169 msgstr ""
21170
21171 # type: =head2
21172 #: ../fish/guestfish-actions.pod:1465
21173 msgid "grepi"
21174 msgstr ""
21175
21176 # type: verbatim
21177 #: ../fish/guestfish-actions.pod:1467
21178 #, no-wrap
21179 msgid ""
21180 " grepi regex path\n"
21181 "\n"
21182 msgstr ""
21183
21184 # type: =head2
21185 #: ../fish/guestfish-actions.pod:1475
21186 msgid "grub-install"
21187 msgstr ""
21188
21189 # type: verbatim
21190 #: ../fish/guestfish-actions.pod:1477
21191 #, no-wrap
21192 msgid ""
21193 " grub-install root device\n"
21194 "\n"
21195 msgstr ""
21196
21197 # type: =head2
21198 #: ../fish/guestfish-actions.pod:1493
21199 msgid "head"
21200 msgstr ""
21201
21202 # type: verbatim
21203 #: ../fish/guestfish-actions.pod:1495
21204 #, no-wrap
21205 msgid ""
21206 " head path\n"
21207 "\n"
21208 msgstr ""
21209
21210 # type: =head2
21211 #: ../fish/guestfish-actions.pod:1503
21212 msgid "head-n"
21213 msgstr ""
21214
21215 # type: verbatim
21216 #: ../fish/guestfish-actions.pod:1505
21217 #, no-wrap
21218 msgid ""
21219 " head-n nrlines path\n"
21220 "\n"
21221 msgstr ""
21222
21223 # type: =head2
21224 #: ../fish/guestfish-actions.pod:1518
21225 msgid "hexdump"
21226 msgstr ""
21227
21228 # type: verbatim
21229 #: ../fish/guestfish-actions.pod:1520
21230 #, no-wrap
21231 msgid ""
21232 " hexdump path\n"
21233 "\n"
21234 msgstr ""
21235
21236 # type: =head2
21237 #: ../fish/guestfish-actions.pod:1528
21238 msgid "initrd-cat"
21239 msgstr ""
21240
21241 # type: verbatim
21242 #: ../fish/guestfish-actions.pod:1530
21243 #, no-wrap
21244 msgid ""
21245 " initrd-cat initrdpath filename\n"
21246 "\n"
21247 msgstr ""
21248
21249 # type: textblock
21250 #: ../fish/guestfish-actions.pod:1542
21251 msgid "See also L</initrd-list>."
21252 msgstr ""
21253
21254 # type: =head2
21255 #: ../fish/guestfish-actions.pod:1547
21256 msgid "initrd-list"
21257 msgstr ""
21258
21259 # type: verbatim
21260 #: ../fish/guestfish-actions.pod:1549
21261 #, no-wrap
21262 msgid ""
21263 " initrd-list path\n"
21264 "\n"
21265 msgstr ""
21266
21267 # type: =head2
21268 #: ../fish/guestfish-actions.pod:1561
21269 msgid "inotify-add-watch"
21270 msgstr ""
21271
21272 # type: verbatim
21273 #: ../fish/guestfish-actions.pod:1563
21274 #, no-wrap
21275 msgid ""
21276 " inotify-add-watch path mask\n"
21277 "\n"
21278 msgstr ""
21279
21280 # type: =head2
21281 #: ../fish/guestfish-actions.pod:1575
21282 msgid "inotify-close"
21283 msgstr ""
21284
21285 # type: verbatim
21286 #: ../fish/guestfish-actions.pod:1577
21287 #, no-wrap
21288 msgid ""
21289 " inotify-close\n"
21290 "\n"
21291 msgstr ""
21292
21293 # type: =head2
21294 #: ../fish/guestfish-actions.pod:1583
21295 msgid "inotify-files"
21296 msgstr ""
21297
21298 # type: verbatim
21299 #: ../fish/guestfish-actions.pod:1585
21300 #, no-wrap
21301 msgid ""
21302 " inotify-files\n"
21303 "\n"
21304 msgstr ""
21305
21306 # type: textblock
21307 #: ../fish/guestfish-actions.pod:1587
21308 msgid ""
21309 "This function is a helpful wrapper around L</inotify-read> which just "
21310 "returns a list of pathnames of objects that were touched.  The returned "
21311 "pathnames are sorted and deduplicated."
21312 msgstr ""
21313
21314 # type: =head2
21315 #: ../fish/guestfish-actions.pod:1591
21316 msgid "inotify-init"
21317 msgstr ""
21318
21319 # type: verbatim
21320 #: ../fish/guestfish-actions.pod:1593
21321 #, no-wrap
21322 msgid ""
21323 " inotify-init maxevents\n"
21324 "\n"
21325 msgstr ""
21326
21327 # type: textblock
21328 #: ../fish/guestfish-actions.pod:1599
21329 msgid ""
21330 "C<maxevents> is the maximum number of events which will be queued up between "
21331 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21332 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21333 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21334 "but records the fact that it threw them away by setting a flag "
21335 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21336 msgstr ""
21337
21338 # type: textblock
21339 #: ../fish/guestfish-actions.pod:1609
21340 msgid ""
21341 "Before any events are generated, you have to add some watches to the "
21342 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21343 "L</inotify-watch-all>."
21344 msgstr ""
21345
21346 # type: textblock
21347 #: ../fish/guestfish-actions.pod:1615
21348 msgid ""
21349 "Queued up events should be read periodically by calling L</inotify-read> (or "
21350 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21351 "If you don't read the events out often enough then you risk the internal "
21352 "queue overflowing."
21353 msgstr ""
21354
21355 # type: textblock
21356 #: ../fish/guestfish-actions.pod:1622
21357 msgid ""
21358 "The handle should be closed after use by calling L</inotify-close>.  This "
21359 "also removes any watches automatically."
21360 msgstr ""
21361
21362 # type: =head2
21363 #: ../fish/guestfish-actions.pod:1631
21364 msgid "inotify-read"
21365 msgstr ""
21366
21367 # type: verbatim
21368 #: ../fish/guestfish-actions.pod:1633
21369 #, no-wrap
21370 msgid ""
21371 " inotify-read\n"
21372 "\n"
21373 msgstr ""
21374
21375 # type: =head2
21376 #: ../fish/guestfish-actions.pod:1646
21377 msgid "inotify-rm-watch"
21378 msgstr ""
21379
21380 # type: verbatim
21381 #: ../fish/guestfish-actions.pod:1648
21382 #, no-wrap
21383 msgid ""
21384 " inotify-rm-watch wd\n"
21385 "\n"
21386 msgstr ""
21387
21388 # type: textblock
21389 #: ../fish/guestfish-actions.pod:1650
21390 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21391 msgstr ""
21392
21393 # type: =head2
21394 #: ../fish/guestfish-actions.pod:1653
21395 msgid "inspect-get-arch"
21396 msgstr ""
21397
21398 # type: verbatim
21399 #: ../fish/guestfish-actions.pod:1655
21400 #, no-wrap
21401 msgid ""
21402 " inspect-get-arch root\n"
21403 "\n"
21404 msgstr ""
21405
21406 # type: textblock
21407 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21408 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21409 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801
21410 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839
21411 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885
21412 #: ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950
21413 #: ../fish/guestfish-actions.pod:1966
21414 msgid ""
21415 "This function should only be called with a root device string as returned by "
21416 "L</inspect-os>."
21417 msgstr ""
21418
21419 # type: textblock
21420 #: ../fish/guestfish-actions.pod:1660
21421 msgid ""
21422 "This returns the architecture of the inspected operating system.  The "
21423 "possible return values are listed under L</file-architecture>."
21424 msgstr ""
21425
21426 # type: =head2
21427 #: ../fish/guestfish-actions.pod:1669
21428 msgid "inspect-get-distro"
21429 msgstr ""
21430
21431 # type: verbatim
21432 #: ../fish/guestfish-actions.pod:1671
21433 #, no-wrap
21434 msgid ""
21435 " inspect-get-distro root\n"
21436 "\n"
21437 msgstr ""
21438
21439 # type: =head2
21440 #: ../fish/guestfish-actions.pod:1743
21441 msgid "inspect-get-filesystems"
21442 msgstr ""
21443
21444 # type: verbatim
21445 #: ../fish/guestfish-actions.pod:1745
21446 #, no-wrap
21447 msgid ""
21448 " inspect-get-filesystems root\n"
21449 "\n"
21450 msgstr ""
21451
21452 # type: textblock
21453 #: ../fish/guestfish-actions.pod:1758
21454 msgid ""
21455 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21456 "get-mountpoints>."
21457 msgstr ""
21458
21459 # type: =head2
21460 #: ../fish/guestfish-actions.pod:1761
21461 msgid "inspect-get-hostname"
21462 msgstr ""
21463
21464 # type: verbatim
21465 #: ../fish/guestfish-actions.pod:1763
21466 #, no-wrap
21467 msgid ""
21468 " inspect-get-hostname root\n"
21469 "\n"
21470 msgstr ""
21471
21472 # type: =head2
21473 #: ../fish/guestfish-actions.pod:1776
21474 msgid "inspect-get-major-version"
21475 msgstr ""
21476
21477 # type: verbatim
21478 #: ../fish/guestfish-actions.pod:1778
21479 #, no-wrap
21480 msgid ""
21481 " inspect-get-major-version root\n"
21482 "\n"
21483 msgstr ""
21484
21485 # type: =head2
21486 #: ../fish/guestfish-actions.pod:1797
21487 msgid "inspect-get-minor-version"
21488 msgstr ""
21489
21490 # type: verbatim
21491 #: ../fish/guestfish-actions.pod:1799
21492 #, no-wrap
21493 msgid ""
21494 " inspect-get-minor-version root\n"
21495 "\n"
21496 msgstr ""
21497
21498 # type: textblock
21499 #: ../fish/guestfish-actions.pod:1809
21500 msgid ""
21501 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21502 "get-major-version>."
21503 msgstr ""
21504
21505 # type: =head2
21506 #: ../fish/guestfish-actions.pod:1812
21507 msgid "inspect-get-mountpoints"
21508 msgstr ""
21509
21510 # type: verbatim
21511 #: ../fish/guestfish-actions.pod:1814
21512 #, no-wrap
21513 msgid ""
21514 " inspect-get-mountpoints root\n"
21515 "\n"
21516 msgstr ""
21517
21518 # type: textblock
21519 #: ../fish/guestfish-actions.pod:1832
21520 msgid ""
21521 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21522 "get-filesystems>."
21523 msgstr ""
21524
21525 # type: =head2
21526 #: ../fish/guestfish-actions.pod:1835
21527 msgid "inspect-get-package-format"
21528 msgstr ""
21529
21530 # type: verbatim
21531 #: ../fish/guestfish-actions.pod:1837
21532 #, no-wrap
21533 msgid ""
21534 " inspect-get-package-format root\n"
21535 "\n"
21536 msgstr ""
21537
21538 # type: textblock
21539 #: ../fish/guestfish-actions.pod:1842
21540 msgid ""
21541 "This function and L</inspect-get-package-management> return the package "
21542 "format and package management tool used by the inspected operating system.  "
21543 "For example for Fedora these functions would return C<rpm> (package format) "
21544 "and C<yum> (package management)."
21545 msgstr ""
21546
21547 # type: =head2
21548 #: ../fish/guestfish-actions.pod:1857
21549 msgid "inspect-get-package-management"
21550 msgstr ""
21551
21552 # type: verbatim
21553 #: ../fish/guestfish-actions.pod:1859
21554 #, no-wrap
21555 msgid ""
21556 " inspect-get-package-management root\n"
21557 "\n"
21558 msgstr ""
21559
21560 # type: textblock
21561 #: ../fish/guestfish-actions.pod:1864
21562 msgid ""
21563 "L</inspect-get-package-format> and this function return the package format "
21564 "and package management tool used by the inspected operating system.  For "
21565 "example for Fedora these functions would return C<rpm> (package format) and "
21566 "C<yum> (package management)."
21567 msgstr ""
21568
21569 # type: =head2
21570 #: ../fish/guestfish-actions.pod:1881
21571 msgid "inspect-get-product-name"
21572 msgstr ""
21573
21574 # type: verbatim
21575 #: ../fish/guestfish-actions.pod:1883
21576 #, no-wrap
21577 msgid ""
21578 " inspect-get-product-name root\n"
21579 "\n"
21580 msgstr ""
21581
21582 # type: =head2
21583 #: ../fish/guestfish-actions.pod:1898
21584 msgid "inspect-get-roots"
21585 msgstr ""
21586
21587 # type: verbatim
21588 #: ../fish/guestfish-actions.pod:1900
21589 #, no-wrap
21590 msgid ""
21591 " inspect-get-roots\n"
21592 "\n"
21593 msgstr ""
21594
21595 # type: textblock
21596 #: ../fish/guestfish-actions.pod:1902
21597 msgid ""
21598 "This function is a convenient way to get the list of root devices, as "
21599 "returned from a previous call to L</inspect-os>, but without redoing the "
21600 "whole inspection process."
21601 msgstr ""
21602
21603 # type: textblock
21604 #: ../fish/guestfish-actions.pod:1906
21605 msgid ""
21606 "This returns an empty list if either no root devices were found or the "
21607 "caller has not called L</inspect-os>."
21608 msgstr ""
21609
21610 # type: =head2
21611 #: ../fish/guestfish-actions.pod:1911
21612 msgid "inspect-get-type"
21613 msgstr ""
21614
21615 # type: verbatim
21616 #: ../fish/guestfish-actions.pod:1913
21617 #, no-wrap
21618 msgid ""
21619 " inspect-get-type root\n"
21620 "\n"
21621 msgstr ""
21622
21623 # type: =head2
21624 #: ../fish/guestfish-actions.pod:1946
21625 msgid "inspect-get-windows-systemroot"
21626 msgstr ""
21627
21628 # type: verbatim
21629 #: ../fish/guestfish-actions.pod:1948
21630 #, no-wrap
21631 msgid ""
21632 " inspect-get-windows-systemroot root\n"
21633 "\n"
21634 msgstr ""
21635
21636 # type: =head2
21637 #: ../fish/guestfish-actions.pod:1962
21638 msgid "inspect-list-applications"
21639 msgstr ""
21640
21641 # type: verbatim
21642 #: ../fish/guestfish-actions.pod:1964
21643 #, no-wrap
21644 msgid ""
21645 " inspect-list-applications root\n"
21646 "\n"
21647 msgstr ""
21648
21649 # type: textblock
21650 #: ../fish/guestfish-actions.pod:1971
21651 msgid ""
21652 "I<Note:> This call works differently from other parts of the inspection "
21653 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21654 "then mount up the disks, before calling this.  Listing applications is a "
21655 "significantly more difficult operation which requires access to the full "
21656 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21657 "are just returning data cached in the libguestfs handle, this call actually "
21658 "reads parts of the mounted filesystems during the call."
21659 msgstr ""
21660
21661 # type: =head2
21662 #: ../fish/guestfish-actions.pod:2061
21663 msgid "inspect-os"
21664 msgstr ""
21665
21666 # type: verbatim
21667 #: ../fish/guestfish-actions.pod:2063
21668 #, no-wrap
21669 msgid ""
21670 " inspect-os\n"
21671 "\n"
21672 msgstr ""
21673
21674 # type: textblock
21675 #: ../fish/guestfish-actions.pod:2078
21676 msgid ""
21677 "You can pass the root string(s) returned to other L</inspect-get-*> "
21678 "functions in order to query further information about each operating system, "
21679 "such as the name and version."
21680 msgstr ""
21681
21682 # type: textblock
21683 #: ../fish/guestfish-actions.pod:2083
21684 msgid ""
21685 "This function uses other libguestfs features such as L</mount-ro> and L</"
21686 "umount-all> in order to mount and unmount filesystems and look at the "
21687 "contents.  This should be called with no disks currently mounted.  The "
21688 "function may also use Augeas, so any existing Augeas handle will be closed."
21689 msgstr ""
21690
21691 # type: textblock
21692 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251
21693 #: ../fish/guestfish-actions.pod:2297
21694 msgid "See also L</list-filesystems>."
21695 msgstr ""
21696
21697 # type: =head2
21698 #: ../fish/guestfish-actions.pod:2097
21699 msgid "is-blockdev"
21700 msgstr ""
21701
21702 # type: verbatim
21703 #: ../fish/guestfish-actions.pod:2099
21704 #, no-wrap
21705 msgid ""
21706 " is-blockdev path\n"
21707 "\n"
21708 msgstr ""
21709
21710 # type: textblock
21711 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122
21712 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150
21713 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194
21714 #: ../fish/guestfish-actions.pod:2203
21715 msgid "See also L</stat>."
21716 msgstr ""
21717
21718 # type: =head2
21719 #: ../fish/guestfish-actions.pod:2106
21720 msgid "is-busy"
21721 msgstr ""
21722
21723 # type: verbatim
21724 #: ../fish/guestfish-actions.pod:2108
21725 #, no-wrap
21726 msgid ""
21727 " is-busy\n"
21728 "\n"
21729 msgstr ""
21730
21731 # type: =head2
21732 #: ../fish/guestfish-actions.pod:2115
21733 msgid "is-chardev"
21734 msgstr ""
21735
21736 # type: verbatim
21737 #: ../fish/guestfish-actions.pod:2117
21738 #, no-wrap
21739 msgid ""
21740 " is-chardev path\n"
21741 "\n"
21742 msgstr ""
21743
21744 # type: =head2
21745 #: ../fish/guestfish-actions.pod:2124
21746 msgid "is-config"
21747 msgstr ""
21748
21749 # type: verbatim
21750 #: ../fish/guestfish-actions.pod:2126
21751 #, no-wrap
21752 msgid ""
21753 " is-config\n"
21754 "\n"
21755 msgstr ""
21756
21757 # type: =head2
21758 #: ../fish/guestfish-actions.pod:2133
21759 msgid "is-dir"
21760 msgstr ""
21761
21762 # type: verbatim
21763 #: ../fish/guestfish-actions.pod:2135
21764 #, no-wrap
21765 msgid ""
21766 " is-dir path\n"
21767 "\n"
21768 msgstr ""
21769
21770 # type: =head2
21771 #: ../fish/guestfish-actions.pod:2143
21772 msgid "is-fifo"
21773 msgstr ""
21774
21775 # type: verbatim
21776 #: ../fish/guestfish-actions.pod:2145
21777 #, no-wrap
21778 msgid ""
21779 " is-fifo path\n"
21780 "\n"
21781 msgstr ""
21782
21783 # type: =head2
21784 #: ../fish/guestfish-actions.pod:2152
21785 msgid "is-file"
21786 msgstr ""
21787
21788 # type: verbatim
21789 #: ../fish/guestfish-actions.pod:2154
21790 #, no-wrap
21791 msgid ""
21792 " is-file path\n"
21793 "\n"
21794 msgstr ""
21795
21796 # type: =head2
21797 #: ../fish/guestfish-actions.pod:2162
21798 msgid "is-launching"
21799 msgstr ""
21800
21801 # type: verbatim
21802 #: ../fish/guestfish-actions.pod:2164
21803 #, no-wrap
21804 msgid ""
21805 " is-launching\n"
21806 "\n"
21807 msgstr ""
21808
21809 # type: =head2
21810 #: ../fish/guestfish-actions.pod:2171
21811 msgid "is-lv"
21812 msgstr ""
21813
21814 # type: verbatim
21815 #: ../fish/guestfish-actions.pod:2173
21816 #, no-wrap
21817 msgid ""
21818 " is-lv device\n"
21819 "\n"
21820 msgstr ""
21821
21822 # type: =head2
21823 #: ../fish/guestfish-actions.pod:2178
21824 msgid "is-ready"
21825 msgstr ""
21826
21827 # type: verbatim
21828 #: ../fish/guestfish-actions.pod:2180
21829 #, no-wrap
21830 msgid ""
21831 " is-ready\n"
21832 "\n"
21833 msgstr ""
21834
21835 # type: =head2
21836 #: ../fish/guestfish-actions.pod:2187
21837 msgid "is-socket"
21838 msgstr ""
21839
21840 # type: verbatim
21841 #: ../fish/guestfish-actions.pod:2189
21842 #, no-wrap
21843 msgid ""
21844 " is-socket path\n"
21845 "\n"
21846 msgstr ""
21847
21848 # type: =head2
21849 #: ../fish/guestfish-actions.pod:2196
21850 msgid "is-symlink"
21851 msgstr ""
21852
21853 # type: verbatim
21854 #: ../fish/guestfish-actions.pod:2198
21855 #, no-wrap
21856 msgid ""
21857 " is-symlink path\n"
21858 "\n"
21859 msgstr ""
21860
21861 # type: =head2
21862 #: ../fish/guestfish-actions.pod:2205
21863 msgid "kill-subprocess"
21864 msgstr ""
21865
21866 # type: verbatim
21867 #: ../fish/guestfish-actions.pod:2207
21868 #, no-wrap
21869 msgid ""
21870 " kill-subprocess\n"
21871 "\n"
21872 msgstr ""
21873
21874 # type: =head2
21875 #: ../fish/guestfish-actions.pod:2211
21876 msgid "launch"
21877 msgstr ""
21878
21879 # type: =head2
21880 #: ../fish/guestfish-actions.pod:2213
21881 msgid "run"
21882 msgstr ""
21883
21884 # type: verbatim
21885 #: ../fish/guestfish-actions.pod:2215
21886 #, no-wrap
21887 msgid ""
21888 " launch\n"
21889 "\n"
21890 msgstr ""
21891
21892 # type: =head2
21893 #: ../fish/guestfish-actions.pod:2223
21894 msgid "lchown"
21895 msgstr ""
21896
21897 # type: verbatim
21898 #: ../fish/guestfish-actions.pod:2225
21899 #, no-wrap
21900 msgid ""
21901 " lchown owner group path\n"
21902 "\n"
21903 msgstr ""
21904
21905 # type: textblock
21906 #: ../fish/guestfish-actions.pod:2227
21907 msgid ""
21908 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21909 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21910 "target."
21911 msgstr ""
21912
21913 # type: =head2
21914 #: ../fish/guestfish-actions.pod:2235
21915 msgid "lgetxattrs"
21916 msgstr ""
21917
21918 # type: verbatim
21919 #: ../fish/guestfish-actions.pod:2237
21920 #, no-wrap
21921 msgid ""
21922 " lgetxattrs path\n"
21923 "\n"
21924 msgstr ""
21925
21926 # type: textblock
21927 #: ../fish/guestfish-actions.pod:2239
21928 msgid ""
21929 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21930 "it returns the extended attributes of the link itself."
21931 msgstr ""
21932
21933 # type: =head2
21934 #: ../fish/guestfish-actions.pod:2243
21935 msgid "list-devices"
21936 msgstr ""
21937
21938 # type: verbatim
21939 #: ../fish/guestfish-actions.pod:2245
21940 #, no-wrap
21941 msgid ""
21942 " list-devices\n"
21943 "\n"
21944 msgstr ""
21945
21946 # type: =head2
21947 #: ../fish/guestfish-actions.pod:2253
21948 msgid "list-filesystems"
21949 msgstr ""
21950
21951 # type: verbatim
21952 #: ../fish/guestfish-actions.pod:2255
21953 #, no-wrap
21954 msgid ""
21955 " list-filesystems\n"
21956 "\n"
21957 msgstr ""
21958
21959 # type: textblock
21960 #: ../fish/guestfish-actions.pod:2274
21961 msgid ""
21962 "This command runs other libguestfs commands, which might include L</mount> "
21963 "and L</umount>, and therefore you should use this soon after launch and only "
21964 "when nothing is mounted."
21965 msgstr ""
21966
21967 # type: textblock
21968 #: ../fish/guestfish-actions.pod:2278
21969 msgid ""
21970 "Not all of the filesystems returned will be mountable.  In particular, swap "
21971 "partitions are returned in the list.  Also this command does not check that "
21972 "each filesystem found is valid and mountable, and some filesystems might be "
21973 "mountable but require special options.  Filesystems may not all belong to a "
21974 "single logical operating system (use L</inspect-os> to look for OSes)."
21975 msgstr ""
21976
21977 # type: =head2
21978 #: ../fish/guestfish-actions.pod:2286
21979 msgid "list-partitions"
21980 msgstr ""
21981
21982 # type: verbatim
21983 #: ../fish/guestfish-actions.pod:2288
21984 #, no-wrap
21985 msgid ""
21986 " list-partitions\n"
21987 "\n"
21988 msgstr ""
21989
21990 # type: textblock
21991 #: ../fish/guestfish-actions.pod:2294
21992 msgid ""
21993 "This does not return logical volumes.  For that you will need to call L</"
21994 "lvs>."
21995 msgstr ""
21996
21997 # type: =head2
21998 #: ../fish/guestfish-actions.pod:2299
21999 msgid "ll"
22000 msgstr ""
22001
22002 # type: verbatim
22003 #: ../fish/guestfish-actions.pod:2301
22004 #, no-wrap
22005 msgid ""
22006 " ll directory\n"
22007 "\n"
22008 msgstr ""
22009
22010 # type: =head2
22011 #: ../fish/guestfish-actions.pod:2309
22012 msgid "ln"
22013 msgstr ""
22014
22015 # type: verbatim
22016 #: ../fish/guestfish-actions.pod:2311
22017 #, no-wrap
22018 msgid ""
22019 " ln target linkname\n"
22020 "\n"
22021 msgstr ""
22022
22023 # type: =head2
22024 #: ../fish/guestfish-actions.pod:2315
22025 msgid "ln-f"
22026 msgstr ""
22027
22028 # type: verbatim
22029 #: ../fish/guestfish-actions.pod:2317
22030 #, no-wrap
22031 msgid ""
22032 " ln-f target linkname\n"
22033 "\n"
22034 msgstr ""
22035
22036 # type: =head2
22037 #: ../fish/guestfish-actions.pod:2322
22038 msgid "ln-s"
22039 msgstr ""
22040
22041 # type: verbatim
22042 #: ../fish/guestfish-actions.pod:2324
22043 #, no-wrap
22044 msgid ""
22045 " ln-s target linkname\n"
22046 "\n"
22047 msgstr ""
22048
22049 # type: =head2
22050 #: ../fish/guestfish-actions.pod:2328
22051 msgid "ln-sf"
22052 msgstr ""
22053
22054 # type: verbatim
22055 #: ../fish/guestfish-actions.pod:2330
22056 #, no-wrap
22057 msgid ""
22058 " ln-sf target linkname\n"
22059 "\n"
22060 msgstr ""
22061
22062 # type: =head2
22063 #: ../fish/guestfish-actions.pod:2335
22064 msgid "lremovexattr"
22065 msgstr ""
22066
22067 # type: verbatim
22068 #: ../fish/guestfish-actions.pod:2337
22069 #, no-wrap
22070 msgid ""
22071 " lremovexattr xattr path\n"
22072 "\n"
22073 msgstr ""
22074
22075 # type: textblock
22076 #: ../fish/guestfish-actions.pod:2339
22077 msgid ""
22078 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
22079 "it removes an extended attribute of the link itself."
22080 msgstr ""
22081
22082 # type: =head2
22083 #: ../fish/guestfish-actions.pod:2343
22084 msgid "ls"
22085 msgstr ""
22086
22087 # type: verbatim
22088 #: ../fish/guestfish-actions.pod:2345
22089 #, no-wrap
22090 msgid ""
22091 " ls directory\n"
22092 "\n"
22093 msgstr ""
22094
22095 # type: textblock
22096 #: ../fish/guestfish-actions.pod:2351
22097 msgid ""
22098 "This command is mostly useful for interactive sessions.  Programs should "
22099 "probably use L</readdir> instead."
22100 msgstr ""
22101
22102 # type: =head2
22103 #: ../fish/guestfish-actions.pod:2354
22104 msgid "lsetxattr"
22105 msgstr ""
22106
22107 # type: verbatim
22108 #: ../fish/guestfish-actions.pod:2356
22109 #, no-wrap
22110 msgid ""
22111 " lsetxattr xattr val vallen path\n"
22112 "\n"
22113 msgstr ""
22114
22115 # type: textblock
22116 #: ../fish/guestfish-actions.pod:2358
22117 msgid ""
22118 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
22119 "sets an extended attribute of the link itself."
22120 msgstr ""
22121
22122 # type: =head2
22123 #: ../fish/guestfish-actions.pod:2362
22124 msgid "lstat"
22125 msgstr ""
22126
22127 # type: verbatim
22128 #: ../fish/guestfish-actions.pod:2364
22129 #, no-wrap
22130 msgid ""
22131 " lstat path\n"
22132 "\n"
22133 msgstr ""
22134
22135 # type: textblock
22136 #: ../fish/guestfish-actions.pod:2368
22137 msgid ""
22138 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
22139 "the link is stat-ed, not the file it refers to."
22140 msgstr ""
22141
22142 # type: =head2
22143 #: ../fish/guestfish-actions.pod:2374
22144 msgid "lstatlist"
22145 msgstr ""
22146
22147 # type: verbatim
22148 #: ../fish/guestfish-actions.pod:2376
22149 #, no-wrap
22150 msgid ""
22151 " lstatlist path 'names ...'\n"
22152 "\n"
22153 msgstr ""
22154
22155 # type: textblock
22156 #: ../fish/guestfish-actions.pod:2378
22157 msgid ""
22158 "This call allows you to perform the L</lstat> operation on multiple files, "
22159 "where all files are in the directory C<path>.  C<names> is the list of files "
22160 "from this directory."
22161 msgstr ""
22162
22163 # type: textblock
22164 #: ../fish/guestfish-actions.pod:2387
22165 msgid ""
22166 "This call is intended for programs that want to efficiently list a directory "
22167 "contents without making many round-trips.  See also L</lxattrlist> for a "
22168 "similarly efficient call for getting extended attributes.  Very long "
22169 "directory listings might cause the protocol message size to be exceeded, "
22170 "causing this call to fail.  The caller must split up such requests into "
22171 "smaller groups of names."
22172 msgstr ""
22173
22174 # type: =head2
22175 #: ../fish/guestfish-actions.pod:2395
22176 msgid "luks-add-key"
22177 msgstr ""
22178
22179 # type: verbatim
22180 #: ../fish/guestfish-actions.pod:2397
22181 #, no-wrap
22182 msgid ""
22183 " luks-add-key device keyslot\n"
22184 "\n"
22185 msgstr ""
22186
22187 # type: textblock
22188 #: ../fish/guestfish-actions.pod:2404
22189 msgid ""
22190 "Note that if C<keyslot> already contains a key, then this command will "
22191 "fail.  You have to use L</luks-kill-slot> first to remove that key."
22192 msgstr ""
22193
22194 # type: textblock
22195 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430
22196 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457
22197 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
22198 msgid ""
22199 "This command has one or more key or passphrase parameters.  Guestfish will "
22200 "prompt for these separately."
22201 msgstr ""
22202
22203 # type: =head2
22204 #: ../fish/guestfish-actions.pod:2411
22205 msgid "luks-close"
22206 msgstr ""
22207
22208 # type: verbatim
22209 #: ../fish/guestfish-actions.pod:2413
22210 #, no-wrap
22211 msgid ""
22212 " luks-close device\n"
22213 "\n"
22214 msgstr ""
22215
22216 # type: textblock
22217 #: ../fish/guestfish-actions.pod:2415
22218 msgid ""
22219 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
22220 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
22221 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
22222 "block device."
22223 msgstr ""
22224
22225 # type: =head2
22226 #: ../fish/guestfish-actions.pod:2421
22227 msgid "luks-format"
22228 msgstr ""
22229
22230 # type: verbatim
22231 #: ../fish/guestfish-actions.pod:2423
22232 #, no-wrap
22233 msgid ""
22234 " luks-format device keyslot\n"
22235 "\n"
22236 msgstr ""
22237
22238 # type: =head2
22239 #: ../fish/guestfish-actions.pod:2436
22240 msgid "luks-format-cipher"
22241 msgstr ""
22242
22243 # type: verbatim
22244 #: ../fish/guestfish-actions.pod:2438
22245 #, no-wrap
22246 msgid ""
22247 " luks-format-cipher device keyslot cipher\n"
22248 "\n"
22249 msgstr ""
22250
22251 # type: textblock
22252 #: ../fish/guestfish-actions.pod:2440
22253 msgid ""
22254 "This command is the same as L</luks-format> but it also allows you to set "
22255 "the C<cipher> used."
22256 msgstr ""
22257
22258 # type: =head2
22259 #: ../fish/guestfish-actions.pod:2449
22260 msgid "luks-kill-slot"
22261 msgstr ""
22262
22263 # type: verbatim
22264 #: ../fish/guestfish-actions.pod:2451
22265 #, no-wrap
22266 msgid ""
22267 " luks-kill-slot device keyslot\n"
22268 "\n"
22269 msgstr ""
22270
22271 # type: =head2
22272 #: ../fish/guestfish-actions.pod:2460
22273 msgid "luks-open"
22274 msgstr ""
22275
22276 # type: verbatim
22277 #: ../fish/guestfish-actions.pod:2462
22278 #, no-wrap
22279 msgid ""
22280 " luks-open device mapname\n"
22281 "\n"
22282 msgstr ""
22283
22284 # type: textblock
22285 #: ../fish/guestfish-actions.pod:2476
22286 msgid ""
22287 "If this block device contains LVM volume groups, then calling L</vgscan> "
22288 "followed by L</vg-activate-all> will make them visible."
22289 msgstr ""
22290
22291 # type: =head2
22292 #: ../fish/guestfish-actions.pod:2483
22293 msgid "luks-open-ro"
22294 msgstr ""
22295
22296 # type: verbatim
22297 #: ../fish/guestfish-actions.pod:2485
22298 #, no-wrap
22299 msgid ""
22300 " luks-open-ro device mapname\n"
22301 "\n"
22302 msgstr ""
22303
22304 # type: textblock
22305 #: ../fish/guestfish-actions.pod:2487
22306 msgid ""
22307 "This is the same as L</luks-open> except that a read-only mapping is created."
22308 msgstr ""
22309
22310 # type: =head2
22311 #: ../fish/guestfish-actions.pod:2493
22312 msgid "lvcreate"
22313 msgstr ""
22314
22315 # type: verbatim
22316 #: ../fish/guestfish-actions.pod:2495
22317 #, no-wrap
22318 msgid ""
22319 " lvcreate logvol volgroup mbytes\n"
22320 "\n"
22321 msgstr ""
22322
22323 # type: =head2
22324 #: ../fish/guestfish-actions.pod:2500
22325 msgid "lvm-canonical-lv-name"
22326 msgstr ""
22327
22328 # type: verbatim
22329 #: ../fish/guestfish-actions.pod:2502
22330 #, no-wrap
22331 msgid ""
22332 " lvm-canonical-lv-name lvname\n"
22333 "\n"
22334 msgstr ""
22335
22336 # type: textblock
22337 #: ../fish/guestfish-actions.pod:2511
22338 msgid "See also L</is-lv>."
22339 msgstr ""
22340
22341 # type: =head2
22342 #: ../fish/guestfish-actions.pod:2513
22343 msgid "lvm-clear-filter"
22344 msgstr ""
22345
22346 # type: verbatim
22347 #: ../fish/guestfish-actions.pod:2515
22348 #, no-wrap
22349 msgid ""
22350 " lvm-clear-filter\n"
22351 "\n"
22352 msgstr ""
22353
22354 # type: textblock
22355 #: ../fish/guestfish-actions.pod:2517
22356 msgid ""
22357 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22358 "block device."
22359 msgstr ""
22360
22361 # type: =head2
22362 #: ../fish/guestfish-actions.pod:2523
22363 msgid "lvm-remove-all"
22364 msgstr ""
22365
22366 # type: verbatim
22367 #: ../fish/guestfish-actions.pod:2525
22368 #, no-wrap
22369 msgid ""
22370 " lvm-remove-all\n"
22371 "\n"
22372 msgstr ""
22373
22374 # type: =head2
22375 #: ../fish/guestfish-actions.pod:2533
22376 msgid "lvm-set-filter"
22377 msgstr ""
22378
22379 # type: verbatim
22380 #: ../fish/guestfish-actions.pod:2535
22381 #, no-wrap
22382 msgid ""
22383 " lvm-set-filter 'devices ...'\n"
22384 "\n"
22385 msgstr ""
22386
22387 # type: =head2
22388 #: ../fish/guestfish-actions.pod:2560
22389 msgid "lvremove"
22390 msgstr ""
22391
22392 # type: verbatim
22393 #: ../fish/guestfish-actions.pod:2562
22394 #, no-wrap
22395 msgid ""
22396 " lvremove device\n"
22397 "\n"
22398 msgstr ""
22399
22400 # type: =head2
22401 #: ../fish/guestfish-actions.pod:2570
22402 msgid "lvrename"
22403 msgstr ""
22404
22405 # type: verbatim
22406 #: ../fish/guestfish-actions.pod:2572
22407 #, no-wrap
22408 msgid ""
22409 " lvrename logvol newlogvol\n"
22410 "\n"
22411 msgstr ""
22412
22413 # type: =head2
22414 #: ../fish/guestfish-actions.pod:2576
22415 msgid "lvresize"
22416 msgstr ""
22417
22418 # type: verbatim
22419 #: ../fish/guestfish-actions.pod:2578
22420 #, no-wrap
22421 msgid ""
22422 " lvresize device mbytes\n"
22423 "\n"
22424 msgstr ""
22425
22426 # type: =head2
22427 #: ../fish/guestfish-actions.pod:2584
22428 msgid "lvresize-free"
22429 msgstr ""
22430
22431 # type: verbatim
22432 #: ../fish/guestfish-actions.pod:2586
22433 #, no-wrap
22434 msgid ""
22435 " lvresize-free lv percent\n"
22436 "\n"
22437 msgstr ""
22438
22439 # type: =head2
22440 #: ../fish/guestfish-actions.pod:2594
22441 msgid "lvs"
22442 msgstr ""
22443
22444 # type: verbatim
22445 #: ../fish/guestfish-actions.pod:2596
22446 #, no-wrap
22447 msgid ""
22448 " lvs\n"
22449 "\n"
22450 msgstr ""
22451
22452 # type: textblock
22453 #: ../fish/guestfish-actions.pod:2604
22454 msgid "See also L</lvs-full>, L</list-filesystems>."
22455 msgstr ""
22456
22457 # type: =head2
22458 #: ../fish/guestfish-actions.pod:2606
22459 msgid "lvs-full"
22460 msgstr ""
22461
22462 # type: verbatim
22463 #: ../fish/guestfish-actions.pod:2608
22464 #, no-wrap
22465 msgid ""
22466 " lvs-full\n"
22467 "\n"
22468 msgstr ""
22469
22470 # type: =head2
22471 #: ../fish/guestfish-actions.pod:2613
22472 msgid "lvuuid"
22473 msgstr ""
22474
22475 # type: verbatim
22476 #: ../fish/guestfish-actions.pod:2615
22477 #, no-wrap
22478 msgid ""
22479 " lvuuid device\n"
22480 "\n"
22481 msgstr ""
22482
22483 # type: =head2
22484 #: ../fish/guestfish-actions.pod:2619
22485 msgid "lxattrlist"
22486 msgstr ""
22487
22488 # type: verbatim
22489 #: ../fish/guestfish-actions.pod:2621
22490 #, no-wrap
22491 msgid ""
22492 " lxattrlist path 'names ...'\n"
22493 "\n"
22494 msgstr ""
22495
22496 # type: textblock
22497 #: ../fish/guestfish-actions.pod:2637
22498 msgid ""
22499 "This call is intended for programs that want to efficiently list a directory "
22500 "contents without making many round-trips.  See also L</lstatlist> for a "
22501 "similarly efficient call for getting standard stats.  Very long directory "
22502 "listings might cause the protocol message size to be exceeded, causing this "
22503 "call to fail.  The caller must split up such requests into smaller groups of "
22504 "names."
22505 msgstr ""
22506
22507 # type: =head2
22508 #: ../fish/guestfish-actions.pod:2645
22509 msgid "mkdir"
22510 msgstr ""
22511
22512 # type: verbatim
22513 #: ../fish/guestfish-actions.pod:2647
22514 #, no-wrap
22515 msgid ""
22516 " mkdir path\n"
22517 "\n"
22518 msgstr ""
22519
22520 # type: =head2
22521 #: ../fish/guestfish-actions.pod:2651
22522 msgid "mkdir-mode"
22523 msgstr ""
22524
22525 # type: verbatim
22526 #: ../fish/guestfish-actions.pod:2653
22527 #, no-wrap
22528 msgid ""
22529 " mkdir-mode path mode\n"
22530 "\n"
22531 msgstr ""
22532
22533 # type: textblock
22534 #: ../fish/guestfish-actions.pod:2662
22535 msgid "See also L</mkdir>, L</umask>"
22536 msgstr ""
22537
22538 # type: =head2
22539 #: ../fish/guestfish-actions.pod:2664
22540 msgid "mkdir-p"
22541 msgstr ""
22542
22543 # type: verbatim
22544 #: ../fish/guestfish-actions.pod:2666
22545 #, no-wrap
22546 msgid ""
22547 " mkdir-p path\n"
22548 "\n"
22549 msgstr ""
22550
22551 # type: =head2
22552 #: ../fish/guestfish-actions.pod:2671
22553 msgid "mkdtemp"
22554 msgstr ""
22555
22556 # type: verbatim
22557 #: ../fish/guestfish-actions.pod:2673
22558 #, no-wrap
22559 msgid ""
22560 " mkdtemp template\n"
22561 "\n"
22562 msgstr ""
22563
22564 # type: =head2
22565 #: ../fish/guestfish-actions.pod:2694
22566 msgid "mke2fs-J"
22567 msgstr ""
22568
22569 # type: verbatim
22570 #: ../fish/guestfish-actions.pod:2696
22571 #, no-wrap
22572 msgid ""
22573 " mke2fs-J fstype blocksize device journal\n"
22574 "\n"
22575 msgstr ""
22576
22577 # type: textblock
22578 #: ../fish/guestfish-actions.pod:2704
22579 msgid "See also L</mke2journal>."
22580 msgstr ""
22581
22582 # type: =head2
22583 #: ../fish/guestfish-actions.pod:2706
22584 msgid "mke2fs-JL"
22585 msgstr ""
22586
22587 # type: verbatim
22588 #: ../fish/guestfish-actions.pod:2708
22589 #, no-wrap
22590 msgid ""
22591 " mke2fs-JL fstype blocksize device label\n"
22592 "\n"
22593 msgstr ""
22594
22595 # type: textblock
22596 #: ../fish/guestfish-actions.pod:2713
22597 msgid "See also L</mke2journal-L>."
22598 msgstr ""
22599
22600 # type: =head2
22601 #: ../fish/guestfish-actions.pod:2715
22602 msgid "mke2fs-JU"
22603 msgstr ""
22604
22605 # type: verbatim
22606 #: ../fish/guestfish-actions.pod:2717
22607 #, no-wrap
22608 msgid ""
22609 " mke2fs-JU fstype blocksize device uuid\n"
22610 "\n"
22611 msgstr ""
22612
22613 # type: textblock
22614 #: ../fish/guestfish-actions.pod:2722
22615 msgid "See also L</mke2journal-U>."
22616 msgstr ""
22617
22618 # type: =head2
22619 #: ../fish/guestfish-actions.pod:2724
22620 msgid "mke2journal"
22621 msgstr ""
22622
22623 # type: verbatim
22624 #: ../fish/guestfish-actions.pod:2726
22625 #, no-wrap
22626 msgid ""
22627 " mke2journal blocksize device\n"
22628 "\n"
22629 msgstr ""
22630
22631 # type: =head2
22632 #: ../fish/guestfish-actions.pod:2733
22633 msgid "mke2journal-L"
22634 msgstr ""
22635
22636 # type: verbatim
22637 #: ../fish/guestfish-actions.pod:2735
22638 #, no-wrap
22639 msgid ""
22640 " mke2journal-L blocksize label device\n"
22641 "\n"
22642 msgstr ""
22643
22644 # type: =head2
22645 #: ../fish/guestfish-actions.pod:2739
22646 msgid "mke2journal-U"
22647 msgstr ""
22648
22649 # type: verbatim
22650 #: ../fish/guestfish-actions.pod:2741
22651 #, no-wrap
22652 msgid ""
22653 " mke2journal-U blocksize uuid device\n"
22654 "\n"
22655 msgstr ""
22656
22657 # type: =head2
22658 #: ../fish/guestfish-actions.pod:2745
22659 msgid "mkfifo"
22660 msgstr ""
22661
22662 # type: verbatim
22663 #: ../fish/guestfish-actions.pod:2747
22664 #, no-wrap
22665 msgid ""
22666 " mkfifo mode path\n"
22667 "\n"
22668 msgstr ""
22669
22670 # type: textblock
22671 #: ../fish/guestfish-actions.pod:2749
22672 msgid ""
22673 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22674 "is just a convenient wrapper around L</mknod>."
22675 msgstr ""
22676
22677 # type: =head2
22678 #: ../fish/guestfish-actions.pod:2755
22679 msgid "mkfs"
22680 msgstr ""
22681
22682 # type: verbatim
22683 #: ../fish/guestfish-actions.pod:2757
22684 #, no-wrap
22685 msgid ""
22686 " mkfs fstype device\n"
22687 "\n"
22688 msgstr ""
22689
22690 # type: =head2
22691 #: ../fish/guestfish-actions.pod:2763
22692 msgid "mkfs-b"
22693 msgstr ""
22694
22695 # type: verbatim
22696 #: ../fish/guestfish-actions.pod:2765
22697 #, no-wrap
22698 msgid ""
22699 " mkfs-b fstype blocksize device\n"
22700 "\n"
22701 msgstr ""
22702
22703 # type: textblock
22704 #: ../fish/guestfish-actions.pod:2767
22705 msgid ""
22706 "This call is similar to L</mkfs>, but it allows you to control the block "
22707 "size of the resulting filesystem.  Supported block sizes depend on the "
22708 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22709 msgstr ""
22710
22711 # type: =head2
22712 #: ../fish/guestfish-actions.pod:2782
22713 msgid "mkfs-opts"
22714 msgstr ""
22715
22716 # type: verbatim
22717 #: ../fish/guestfish-actions.pod:2784
22718 #, no-wrap
22719 msgid ""
22720 " mkfs-opts fstype device [blocksize:..]\n"
22721 "\n"
22722 msgstr ""
22723
22724 # type: =head2
22725 #: ../fish/guestfish-actions.pod:2806
22726 msgid "mkmountpoint"
22727 msgstr ""
22728
22729 # type: verbatim
22730 #: ../fish/guestfish-actions.pod:2808
22731 #, no-wrap
22732 msgid ""
22733 " mkmountpoint exemptpath\n"
22734 "\n"
22735 msgstr ""
22736
22737 # type: textblock
22738 #: ../fish/guestfish-actions.pod:2810
22739 msgid ""
22740 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22741 "to create extra mountpoints before mounting the first filesystem."
22742 msgstr ""
22743
22744 # type: textblock
22745 #: ../fish/guestfish-actions.pod:2834
22746 msgid ""
22747 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22748 "unexpected errors if you try to mix these calls.  It is safest to manually "
22749 "unmount filesystems and remove mountpoints after use."
22750 msgstr ""
22751
22752 # type: textblock
22753 #: ../fish/guestfish-actions.pod:2838
22754 msgid ""
22755 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22756 "for this to work for manual mountpoints, you must ensure that the innermost "
22757 "mountpoints have the longest pathnames, as in the example code above."
22758 msgstr ""
22759
22760 # type: textblock
22761 #: ../fish/guestfish-actions.pod:2845
22762 msgid ""
22763 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22764 "that L</umount-all> is called when the handle is closed which can also "
22765 "trigger these issues."
22766 msgstr ""
22767
22768 # type: =head2
22769 #: ../fish/guestfish-actions.pod:2849
22770 msgid "mknod"
22771 msgstr ""
22772
22773 # type: verbatim
22774 #: ../fish/guestfish-actions.pod:2851
22775 #, no-wrap
22776 msgid ""
22777 " mknod mode devmajor devminor path\n"
22778 "\n"
22779 msgstr ""
22780
22781 # type: textblock
22782 #: ../fish/guestfish-actions.pod:2861
22783 msgid ""
22784 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22785 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22786 "regular file).  These constants are available in the standard Linux header "
22787 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22788 "wrappers around this command which bitwise OR in the appropriate constant "
22789 "for you."
22790 msgstr ""
22791
22792 # type: =head2
22793 #: ../fish/guestfish-actions.pod:2871
22794 msgid "mknod-b"
22795 msgstr ""
22796
22797 # type: verbatim
22798 #: ../fish/guestfish-actions.pod:2873
22799 #, no-wrap
22800 msgid ""
22801 " mknod-b mode devmajor devminor path\n"
22802 "\n"
22803 msgstr ""
22804
22805 # type: textblock
22806 #: ../fish/guestfish-actions.pod:2875
22807 msgid ""
22808 "This call creates a block device node called C<path> with mode C<mode> and "
22809 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22810 "wrapper around L</mknod>."
22811 msgstr ""
22812
22813 # type: =head2
22814 #: ../fish/guestfish-actions.pod:2881
22815 msgid "mknod-c"
22816 msgstr ""
22817
22818 # type: verbatim
22819 #: ../fish/guestfish-actions.pod:2883
22820 #, no-wrap
22821 msgid ""
22822 " mknod-c mode devmajor devminor path\n"
22823 "\n"
22824 msgstr ""
22825
22826 # type: textblock
22827 #: ../fish/guestfish-actions.pod:2885
22828 msgid ""
22829 "This call creates a char device node called C<path> with mode C<mode> and "
22830 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22831 "wrapper around L</mknod>."
22832 msgstr ""
22833
22834 # type: =head2
22835 #: ../fish/guestfish-actions.pod:2891
22836 msgid "mkswap"
22837 msgstr ""
22838
22839 # type: verbatim
22840 #: ../fish/guestfish-actions.pod:2893
22841 #, no-wrap
22842 msgid ""
22843 " mkswap device\n"
22844 "\n"
22845 msgstr ""
22846
22847 # type: =head2
22848 #: ../fish/guestfish-actions.pod:2897
22849 msgid "mkswap-L"
22850 msgstr ""
22851
22852 # type: verbatim
22853 #: ../fish/guestfish-actions.pod:2899
22854 #, no-wrap
22855 msgid ""
22856 " mkswap-L label device\n"
22857 "\n"
22858 msgstr ""
22859
22860 # type: =head2
22861 #: ../fish/guestfish-actions.pod:2907
22862 msgid "mkswap-U"
22863 msgstr ""
22864
22865 # type: verbatim
22866 #: ../fish/guestfish-actions.pod:2909
22867 #, no-wrap
22868 msgid ""
22869 " mkswap-U uuid device\n"
22870 "\n"
22871 msgstr ""
22872
22873 # type: =head2
22874 #: ../fish/guestfish-actions.pod:2913
22875 msgid "mkswap-file"
22876 msgstr ""
22877
22878 # type: verbatim
22879 #: ../fish/guestfish-actions.pod:2915
22880 #, no-wrap
22881 msgid ""
22882 " mkswap-file path\n"
22883 "\n"
22884 msgstr ""
22885
22886 # type: textblock
22887 #: ../fish/guestfish-actions.pod:2919
22888 msgid ""
22889 "This command just writes a swap file signature to an existing file.  To "
22890 "create the file itself, use something like L</fallocate>."
22891 msgstr ""
22892
22893 # type: =head2
22894 #: ../fish/guestfish-actions.pod:2922
22895 msgid "modprobe"
22896 msgstr ""
22897
22898 # type: verbatim
22899 #: ../fish/guestfish-actions.pod:2924
22900 #, no-wrap
22901 msgid ""
22902 " modprobe modulename\n"
22903 "\n"
22904 msgstr ""
22905
22906 # type: =head2
22907 #: ../fish/guestfish-actions.pod:2931
22908 msgid "mount"
22909 msgstr ""
22910
22911 # type: verbatim
22912 #: ../fish/guestfish-actions.pod:2933
22913 #, no-wrap
22914 msgid ""
22915 " mount device mountpoint\n"
22916 "\n"
22917 msgstr ""
22918
22919 # type: textblock
22920 #: ../fish/guestfish-actions.pod:2949
22921 msgid ""
22922 "B<Important note:> When you use this call, the filesystem options C<sync> "
22923 "and C<noatime> are set implicitly.  This was originally done because we "
22924 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22925 "very large negative performance impact and negligible effect on "
22926 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22927 "code that needs performance, and instead use L</mount-options> (use an empty "
22928 "string for the first parameter if you don't want any options)."
22929 msgstr ""
22930
22931 # type: =head2
22932 #: ../fish/guestfish-actions.pod:2959
22933 msgid "mount-loop"
22934 msgstr ""
22935
22936 # type: verbatim
22937 #: ../fish/guestfish-actions.pod:2961
22938 #, no-wrap
22939 msgid ""
22940 " mount-loop file mountpoint\n"
22941 "\n"
22942 msgstr ""
22943
22944 # type: =head2
22945 #: ../fish/guestfish-actions.pod:2967
22946 msgid "mount-options"
22947 msgstr ""
22948
22949 # type: verbatim
22950 #: ../fish/guestfish-actions.pod:2969
22951 #, no-wrap
22952 msgid ""
22953 " mount-options options device mountpoint\n"
22954 "\n"
22955 msgstr ""
22956
22957 # type: textblock
22958 #: ../fish/guestfish-actions.pod:2971
22959 msgid ""
22960 "This is the same as the L</mount> command, but it allows you to set the "
22961 "mount options as for the L<mount(8)> I<-o> flag."
22962 msgstr ""
22963
22964 # type: =head2
22965 #: ../fish/guestfish-actions.pod:2979
22966 msgid "mount-ro"
22967 msgstr ""
22968
22969 # type: verbatim
22970 #: ../fish/guestfish-actions.pod:2981
22971 #, no-wrap
22972 msgid ""
22973 " mount-ro device mountpoint\n"
22974 "\n"
22975 msgstr ""
22976
22977 # type: textblock
22978 #: ../fish/guestfish-actions.pod:2983
22979 msgid ""
22980 "This is the same as the L</mount> command, but it mounts the filesystem with "
22981 "the read-only (I<-o ro>) flag."
22982 msgstr ""
22983
22984 # type: =head2
22985 #: ../fish/guestfish-actions.pod:2986
22986 msgid "mount-vfs"
22987 msgstr ""
22988
22989 # type: verbatim
22990 #: ../fish/guestfish-actions.pod:2988
22991 #, no-wrap
22992 msgid ""
22993 " mount-vfs options vfstype device mountpoint\n"
22994 "\n"
22995 msgstr ""
22996
22997 # type: textblock
22998 #: ../fish/guestfish-actions.pod:2990
22999 msgid ""
23000 "This is the same as the L</mount> command, but it allows you to set both the "
23001 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
23002 msgstr ""
23003
23004 # type: =head2
23005 #: ../fish/guestfish-actions.pod:2994
23006 msgid "mountpoints"
23007 msgstr ""
23008
23009 # type: verbatim
23010 #: ../fish/guestfish-actions.pod:2996
23011 #, no-wrap
23012 msgid ""
23013 " mountpoints\n"
23014 "\n"
23015 msgstr ""
23016
23017 # type: textblock
23018 #: ../fish/guestfish-actions.pod:2998
23019 msgid ""
23020 "This call is similar to L</mounts>.  That call returns a list of devices.  "
23021 "This one returns a hash table (map) of device name to directory where the "
23022 "device is mounted."
23023 msgstr ""
23024
23025 # type: =head2
23026 #: ../fish/guestfish-actions.pod:3002
23027 msgid "mounts"
23028 msgstr ""
23029
23030 # type: verbatim
23031 #: ../fish/guestfish-actions.pod:3004
23032 #, no-wrap
23033 msgid ""
23034 " mounts\n"
23035 "\n"
23036 msgstr ""
23037
23038 # type: textblock
23039 #: ../fish/guestfish-actions.pod:3011
23040 msgid "See also: L</mountpoints>"
23041 msgstr ""
23042
23043 # type: =head2
23044 #: ../fish/guestfish-actions.pod:3013
23045 msgid "mv"
23046 msgstr ""
23047
23048 # type: verbatim
23049 #: ../fish/guestfish-actions.pod:3015
23050 #, no-wrap
23051 msgid ""
23052 " mv src dest\n"
23053 "\n"
23054 msgstr ""
23055
23056 # type: =head2
23057 #: ../fish/guestfish-actions.pod:3020
23058 msgid "ntfs-3g-probe"
23059 msgstr ""
23060
23061 # type: verbatim
23062 #: ../fish/guestfish-actions.pod:3022
23063 #, no-wrap
23064 msgid ""
23065 " ntfs-3g-probe true|false device\n"
23066 "\n"
23067 msgstr ""
23068
23069 # type: =head2
23070 #: ../fish/guestfish-actions.pod:3036
23071 msgid "ntfsresize"
23072 msgstr ""
23073
23074 # type: verbatim
23075 #: ../fish/guestfish-actions.pod:3038
23076 #, no-wrap
23077 msgid ""
23078 " ntfsresize device\n"
23079 "\n"
23080 msgstr ""
23081
23082 # type: =head2
23083 #: ../fish/guestfish-actions.pod:3044
23084 msgid "ntfsresize-size"
23085 msgstr ""
23086
23087 # type: verbatim
23088 #: ../fish/guestfish-actions.pod:3046
23089 #, no-wrap
23090 msgid ""
23091 " ntfsresize-size device size\n"
23092 "\n"
23093 msgstr ""
23094
23095 # type: textblock
23096 #: ../fish/guestfish-actions.pod:3048
23097 msgid ""
23098 "This command is the same as L</ntfsresize> except that it allows you to "
23099 "specify the new size (in bytes) explicitly."
23100 msgstr ""
23101
23102 # type: =head2
23103 #: ../fish/guestfish-actions.pod:3051
23104 msgid "part-add"
23105 msgstr ""
23106
23107 # type: verbatim
23108 #: ../fish/guestfish-actions.pod:3053
23109 #, no-wrap
23110 msgid ""
23111 " part-add device prlogex startsect endsect\n"
23112 "\n"
23113 msgstr ""
23114
23115 # type: textblock
23116 #: ../fish/guestfish-actions.pod:3055
23117 msgid ""
23118 "This command adds a partition to C<device>.  If there is no partition table "
23119 "on the device, call L</part-init> first."
23120 msgstr ""
23121
23122 # type: textblock
23123 #: ../fish/guestfish-actions.pod:3067
23124 msgid ""
23125 "Creating a partition which covers the whole disk is not so easy.  Use L</"
23126 "part-disk> to do that."
23127 msgstr ""
23128
23129 # type: =head2
23130 #: ../fish/guestfish-actions.pod:3070
23131 msgid "part-del"
23132 msgstr ""
23133
23134 # type: verbatim
23135 #: ../fish/guestfish-actions.pod:3072
23136 #, no-wrap
23137 msgid ""
23138 " part-del device partnum\n"
23139 "\n"
23140 msgstr ""
23141
23142 # type: =head2
23143 #: ../fish/guestfish-actions.pod:3080
23144 msgid "part-disk"
23145 msgstr ""
23146
23147 # type: verbatim
23148 #: ../fish/guestfish-actions.pod:3082
23149 #, no-wrap
23150 msgid ""
23151 " part-disk device parttype\n"
23152 "\n"
23153 msgstr ""
23154
23155 # type: textblock
23156 #: ../fish/guestfish-actions.pod:3084
23157 msgid ""
23158 "This command is simply a combination of L</part-init> followed by L</part-"
23159 "add> to create a single primary partition covering the whole disk."
23160 msgstr ""
23161
23162 # type: textblock
23163 #: ../fish/guestfish-actions.pod:3088
23164 msgid ""
23165 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
23166 "possible values are described in L</part-init>."
23167 msgstr ""
23168
23169 # type: =head2
23170 #: ../fish/guestfish-actions.pod:3094
23171 msgid "part-get-bootable"
23172 msgstr ""
23173
23174 # type: verbatim
23175 #: ../fish/guestfish-actions.pod:3096
23176 #, no-wrap
23177 msgid ""
23178 " part-get-bootable device partnum\n"
23179 "\n"
23180 msgstr ""
23181
23182 # type: textblock
23183 #: ../fish/guestfish-actions.pod:3101
23184 msgid "See also L</part-set-bootable>."
23185 msgstr ""
23186
23187 # type: =head2
23188 #: ../fish/guestfish-actions.pod:3103
23189 msgid "part-get-mbr-id"
23190 msgstr ""
23191
23192 # type: verbatim
23193 #: ../fish/guestfish-actions.pod:3105
23194 #, no-wrap
23195 msgid ""
23196 " part-get-mbr-id device partnum\n"
23197 "\n"
23198 msgstr ""
23199
23200 # type: textblock
23201 #: ../fish/guestfish-actions.pod:3110 ../fish/guestfish-actions.pod:3248
23202 msgid ""
23203 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
23204 "undefined results for other partition table types (see L</part-get-"
23205 "parttype>)."
23206 msgstr ""
23207
23208 # type: =head2
23209 #: ../fish/guestfish-actions.pod:3114
23210 msgid "part-get-parttype"
23211 msgstr ""
23212
23213 # type: verbatim
23214 #: ../fish/guestfish-actions.pod:3116
23215 #, no-wrap
23216 msgid ""
23217 " part-get-parttype device\n"
23218 "\n"
23219 msgstr ""
23220
23221 # type: textblock
23222 #: ../fish/guestfish-actions.pod:3121
23223 msgid ""
23224 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
23225 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
23226 "possible, although unusual.  See L</part-init> for a full list."
23227 msgstr ""
23228
23229 # type: =head2
23230 #: ../fish/guestfish-actions.pod:3126
23231 msgid "part-init"
23232 msgstr ""
23233
23234 # type: verbatim
23235 #: ../fish/guestfish-actions.pod:3128
23236 #, no-wrap
23237 msgid ""
23238 " part-init device parttype\n"
23239 "\n"
23240 msgstr ""
23241
23242 # type: textblock
23243 #: ../fish/guestfish-actions.pod:3134
23244 msgid ""
23245 "Initially there are no partitions.  Following this, you should call L</part-"
23246 "add> for each partition required."
23247 msgstr ""
23248
23249 # type: =head2
23250 #: ../fish/guestfish-actions.pod:3197
23251 msgid "part-list"
23252 msgstr ""
23253
23254 # type: verbatim
23255 #: ../fish/guestfish-actions.pod:3199
23256 #, no-wrap
23257 msgid ""
23258 " part-list device\n"
23259 "\n"
23260 msgstr ""
23261
23262 # type: textblock
23263 #: ../fish/guestfish-actions.pod:3214
23264 msgid ""
23265 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23266 "the device's sector size, see L</blockdev-getss>."
23267 msgstr ""
23268
23269 # type: =head2
23270 #: ../fish/guestfish-actions.pod:3227
23271 msgid "part-set-bootable"
23272 msgstr ""
23273
23274 # type: verbatim
23275 #: ../fish/guestfish-actions.pod:3229
23276 #, no-wrap
23277 msgid ""
23278 " part-set-bootable device partnum true|false\n"
23279 "\n"
23280 msgstr ""
23281
23282 # type: =head2
23283 #: ../fish/guestfish-actions.pod:3238
23284 msgid "part-set-mbr-id"
23285 msgstr ""
23286
23287 # type: verbatim
23288 #: ../fish/guestfish-actions.pod:3240
23289 #, no-wrap
23290 msgid ""
23291 " part-set-mbr-id device partnum idbyte\n"
23292 "\n"
23293 msgstr ""
23294
23295 # type: =head2
23296 #: ../fish/guestfish-actions.pod:3252
23297 msgid "part-set-name"
23298 msgstr ""
23299
23300 # type: verbatim
23301 #: ../fish/guestfish-actions.pod:3254
23302 #, no-wrap
23303 msgid ""
23304 " part-set-name device partnum name\n"
23305 "\n"
23306 msgstr ""
23307
23308 # type: =head2
23309 #: ../fish/guestfish-actions.pod:3262
23310 msgid "part-to-dev"
23311 msgstr ""
23312
23313 # type: verbatim
23314 #: ../fish/guestfish-actions.pod:3264
23315 #, no-wrap
23316 msgid ""
23317 " part-to-dev partition\n"
23318 "\n"
23319 msgstr ""
23320
23321 # type: textblock
23322 #: ../fish/guestfish-actions.pod:3270
23323 msgid ""
23324 "The named partition must exist, for example as a string returned from L</"
23325 "list-partitions>."
23326 msgstr ""
23327
23328 # type: =head2
23329 #: ../fish/guestfish-actions.pod:3273
23330 msgid "ping-daemon"
23331 msgstr ""
23332
23333 # type: verbatim
23334 #: ../fish/guestfish-actions.pod:3275
23335 #, no-wrap
23336 msgid ""
23337 " ping-daemon\n"
23338 "\n"
23339 msgstr ""
23340
23341 # type: =head2
23342 #: ../fish/guestfish-actions.pod:3282
23343 msgid "pread"
23344 msgstr ""
23345
23346 # type: verbatim
23347 #: ../fish/guestfish-actions.pod:3284
23348 #, no-wrap
23349 msgid ""
23350 " pread path count offset\n"
23351 "\n"
23352 msgstr ""
23353
23354 # type: textblock
23355 #: ../fish/guestfish-actions.pod:3292
23356 msgid "See also L</pwrite>, L</pread-device>."
23357 msgstr ""
23358
23359 # type: =head2
23360 #: ../fish/guestfish-actions.pod:3297
23361 msgid "pread-device"
23362 msgstr ""
23363
23364 # type: verbatim
23365 #: ../fish/guestfish-actions.pod:3299
23366 #, no-wrap
23367 msgid ""
23368 " pread-device device count offset\n"
23369 "\n"
23370 msgstr ""
23371
23372 # type: textblock
23373 #: ../fish/guestfish-actions.pod:3307
23374 msgid "See also L</pread>."
23375 msgstr ""
23376
23377 # type: =head2
23378 #: ../fish/guestfish-actions.pod:3312
23379 msgid "pvcreate"
23380 msgstr ""
23381
23382 # type: verbatim
23383 #: ../fish/guestfish-actions.pod:3314
23384 #, no-wrap
23385 msgid ""
23386 " pvcreate device\n"
23387 "\n"
23388 msgstr ""
23389
23390 # type: =head2
23391 #: ../fish/guestfish-actions.pod:3320
23392 msgid "pvremove"
23393 msgstr ""
23394
23395 # type: verbatim
23396 #: ../fish/guestfish-actions.pod:3322
23397 #, no-wrap
23398 msgid ""
23399 " pvremove device\n"
23400 "\n"
23401 msgstr ""
23402
23403 # type: =head2
23404 #: ../fish/guestfish-actions.pod:3331
23405 msgid "pvresize"
23406 msgstr ""
23407
23408 # type: verbatim
23409 #: ../fish/guestfish-actions.pod:3333
23410 #, no-wrap
23411 msgid ""
23412 " pvresize device\n"
23413 "\n"
23414 msgstr ""
23415
23416 # type: =head2
23417 #: ../fish/guestfish-actions.pod:3338
23418 msgid "pvresize-size"
23419 msgstr ""
23420
23421 # type: verbatim
23422 #: ../fish/guestfish-actions.pod:3340
23423 #, no-wrap
23424 msgid ""
23425 " pvresize-size device size\n"
23426 "\n"
23427 msgstr ""
23428
23429 # type: textblock
23430 #: ../fish/guestfish-actions.pod:3342
23431 msgid ""
23432 "This command is the same as L</pvresize> except that it allows you to "
23433 "specify the new size (in bytes) explicitly."
23434 msgstr ""
23435
23436 # type: =head2
23437 #: ../fish/guestfish-actions.pod:3345
23438 msgid "pvs"
23439 msgstr ""
23440
23441 # type: verbatim
23442 #: ../fish/guestfish-actions.pod:3347
23443 #, no-wrap
23444 msgid ""
23445 " pvs\n"
23446 "\n"
23447 msgstr ""
23448
23449 # type: textblock
23450 #: ../fish/guestfish-actions.pod:3355
23451 msgid "See also L</pvs-full>."
23452 msgstr ""
23453
23454 # type: =head2
23455 #: ../fish/guestfish-actions.pod:3357
23456 msgid "pvs-full"
23457 msgstr ""
23458
23459 # type: verbatim
23460 #: ../fish/guestfish-actions.pod:3359
23461 #, no-wrap
23462 msgid ""
23463 " pvs-full\n"
23464 "\n"
23465 msgstr ""
23466
23467 # type: =head2
23468 #: ../fish/guestfish-actions.pod:3364
23469 msgid "pvuuid"
23470 msgstr ""
23471
23472 # type: verbatim
23473 #: ../fish/guestfish-actions.pod:3366
23474 #, no-wrap
23475 msgid ""
23476 " pvuuid device\n"
23477 "\n"
23478 msgstr ""
23479
23480 # type: =head2
23481 #: ../fish/guestfish-actions.pod:3370
23482 msgid "pwrite"
23483 msgstr ""
23484
23485 # type: verbatim
23486 #: ../fish/guestfish-actions.pod:3372
23487 #, no-wrap
23488 msgid ""
23489 " pwrite path content offset\n"
23490 "\n"
23491 msgstr ""
23492
23493 # type: textblock
23494 #: ../fish/guestfish-actions.pod:3383
23495 msgid "See also L</pread>, L</pwrite-device>."
23496 msgstr ""
23497
23498 # type: =head2
23499 #: ../fish/guestfish-actions.pod:3388
23500 msgid "pwrite-device"
23501 msgstr ""
23502
23503 # type: verbatim
23504 #: ../fish/guestfish-actions.pod:3390
23505 #, no-wrap
23506 msgid ""
23507 " pwrite-device device content offset\n"
23508 "\n"
23509 msgstr ""
23510
23511 # type: textblock
23512 #: ../fish/guestfish-actions.pod:3400
23513 msgid "See also L</pwrite>."
23514 msgstr ""
23515
23516 # type: =head2
23517 #: ../fish/guestfish-actions.pod:3405
23518 msgid "read-file"
23519 msgstr ""
23520
23521 # type: verbatim
23522 #: ../fish/guestfish-actions.pod:3407
23523 #, no-wrap
23524 msgid ""
23525 " read-file path\n"
23526 "\n"
23527 msgstr ""
23528
23529 # type: textblock
23530 #: ../fish/guestfish-actions.pod:3412
23531 msgid ""
23532 "Unlike L</cat>, this function can correctly handle files that contain "
23533 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23534 "is limited in the total size of file that can be handled."
23535 msgstr ""
23536
23537 # type: =head2
23538 #: ../fish/guestfish-actions.pod:3420
23539 msgid "read-lines"
23540 msgstr ""
23541
23542 # type: verbatim
23543 #: ../fish/guestfish-actions.pod:3422
23544 #, no-wrap
23545 msgid ""
23546 " read-lines path\n"
23547 "\n"
23548 msgstr ""
23549
23550 # type: textblock
23551 #: ../fish/guestfish-actions.pod:3429
23552 msgid ""
23553 "Note that this function cannot correctly handle binary files (specifically, "
23554 "files containing C<\\0> character which is treated as end of line).  For "
23555 "those you need to use the L</read-file> function which has a more complex "
23556 "interface."
23557 msgstr ""
23558
23559 # type: =head2
23560 #: ../fish/guestfish-actions.pod:3434
23561 msgid "readdir"
23562 msgstr ""
23563
23564 # type: verbatim
23565 #: ../fish/guestfish-actions.pod:3436
23566 #, no-wrap
23567 msgid ""
23568 " readdir dir\n"
23569 "\n"
23570 msgstr ""
23571
23572 # type: textblock
23573 #: ../fish/guestfish-actions.pod:3488
23574 msgid ""
23575 "This function is primarily intended for use by programs.  To get a simple "
23576 "list of names, use L</ls>.  To get a printable directory for human "
23577 "consumption, use L</ll>."
23578 msgstr ""
23579
23580 # type: =head2
23581 #: ../fish/guestfish-actions.pod:3492
23582 msgid "readlink"
23583 msgstr ""
23584
23585 # type: verbatim
23586 #: ../fish/guestfish-actions.pod:3494
23587 #, no-wrap
23588 msgid ""
23589 " readlink path\n"
23590 "\n"
23591 msgstr ""
23592
23593 # type: =head2
23594 #: ../fish/guestfish-actions.pod:3498
23595 msgid "readlinklist"
23596 msgstr ""
23597
23598 # type: verbatim
23599 #: ../fish/guestfish-actions.pod:3500
23600 #, no-wrap
23601 msgid ""
23602 " readlinklist path 'names ...'\n"
23603 "\n"
23604 msgstr ""
23605
23606 # type: =head2
23607 #: ../fish/guestfish-actions.pod:3524
23608 msgid "realpath"
23609 msgstr ""
23610
23611 # type: verbatim
23612 #: ../fish/guestfish-actions.pod:3526
23613 #, no-wrap
23614 msgid ""
23615 " realpath path\n"
23616 "\n"
23617 msgstr ""
23618
23619 # type: =head2
23620 #: ../fish/guestfish-actions.pod:3531
23621 msgid "removexattr"
23622 msgstr ""
23623
23624 # type: verbatim
23625 #: ../fish/guestfish-actions.pod:3533
23626 #, no-wrap
23627 msgid ""
23628 " removexattr xattr path\n"
23629 "\n"
23630 msgstr ""
23631
23632 # type: textblock
23633 #: ../fish/guestfish-actions.pod:3538
23634 msgid "See also: L</lremovexattr>, L<attr(5)>."
23635 msgstr ""
23636
23637 # type: =head2
23638 #: ../fish/guestfish-actions.pod:3540
23639 msgid "resize2fs"
23640 msgstr ""
23641
23642 # type: verbatim
23643 #: ../fish/guestfish-actions.pod:3542
23644 #, no-wrap
23645 msgid ""
23646 " resize2fs device\n"
23647 "\n"
23648 msgstr ""
23649
23650 # type: textblock
23651 #: ../fish/guestfish-actions.pod:3547
23652 msgid ""
23653 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23654 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23655 "gives an error about this and sometimes not.  In any case, it is always safe "
23656 "to call L</e2fsck-f> before calling this function."
23657 msgstr ""
23658
23659 # type: =head2
23660 #: ../fish/guestfish-actions.pod:3553
23661 msgid "resize2fs-size"
23662 msgstr ""
23663
23664 # type: verbatim
23665 #: ../fish/guestfish-actions.pod:3555
23666 #, no-wrap
23667 msgid ""
23668 " resize2fs-size device size\n"
23669 "\n"
23670 msgstr ""
23671
23672 # type: textblock
23673 #: ../fish/guestfish-actions.pod:3557
23674 msgid ""
23675 "This command is the same as L</resize2fs> except that it allows you to "
23676 "specify the new size (in bytes) explicitly."
23677 msgstr ""
23678
23679 # type: =head2
23680 #: ../fish/guestfish-actions.pod:3560
23681 msgid "rm"
23682 msgstr ""
23683
23684 # type: verbatim
23685 #: ../fish/guestfish-actions.pod:3562
23686 #, no-wrap
23687 msgid ""
23688 " rm path\n"
23689 "\n"
23690 msgstr ""
23691
23692 # type: =head2
23693 #: ../fish/guestfish-actions.pod:3566
23694 msgid "rm-rf"
23695 msgstr ""
23696
23697 # type: verbatim
23698 #: ../fish/guestfish-actions.pod:3568
23699 #, no-wrap
23700 msgid ""
23701 " rm-rf path\n"
23702 "\n"
23703 msgstr ""
23704
23705 # type: =head2
23706 #: ../fish/guestfish-actions.pod:3574
23707 msgid "rmdir"
23708 msgstr ""
23709
23710 # type: verbatim
23711 #: ../fish/guestfish-actions.pod:3576
23712 #, no-wrap
23713 msgid ""
23714 " rmdir path\n"
23715 "\n"
23716 msgstr ""
23717
23718 # type: =head2
23719 #: ../fish/guestfish-actions.pod:3580
23720 msgid "rmmountpoint"
23721 msgstr ""
23722
23723 # type: verbatim
23724 #: ../fish/guestfish-actions.pod:3582
23725 #, no-wrap
23726 msgid ""
23727 " rmmountpoint exemptpath\n"
23728 "\n"
23729 msgstr ""
23730
23731 # type: textblock
23732 #: ../fish/guestfish-actions.pod:3584
23733 msgid ""
23734 "This calls removes a mountpoint that was previously created with L</"
23735 "mkmountpoint>.  See L</mkmountpoint> for full details."
23736 msgstr ""
23737
23738 # type: =head2
23739 #: ../fish/guestfish-actions.pod:3588
23740 msgid "scrub-device"
23741 msgstr ""
23742
23743 # type: verbatim
23744 #: ../fish/guestfish-actions.pod:3590
23745 #, no-wrap
23746 msgid ""
23747 " scrub-device device\n"
23748 "\n"
23749 msgstr ""
23750
23751 # type: =head2
23752 #: ../fish/guestfish-actions.pod:3601
23753 msgid "scrub-file"
23754 msgstr ""
23755
23756 # type: verbatim
23757 #: ../fish/guestfish-actions.pod:3603
23758 #, no-wrap
23759 msgid ""
23760 " scrub-file file\n"
23761 "\n"
23762 msgstr ""
23763
23764 # type: =head2
23765 #: ../fish/guestfish-actions.pod:3613
23766 msgid "scrub-freespace"
23767 msgstr ""
23768
23769 # type: verbatim
23770 #: ../fish/guestfish-actions.pod:3615
23771 #, no-wrap
23772 msgid ""
23773 " scrub-freespace dir\n"
23774 "\n"
23775 msgstr ""
23776
23777 # type: textblock
23778 #: ../fish/guestfish-actions.pod:3617
23779 msgid ""
23780 "This command creates the directory C<dir> and then fills it with files until "
23781 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23782 "deletes them.  The intention is to scrub any free space on the partition "
23783 "containing C<dir>."
23784 msgstr ""
23785
23786 # type: =head2
23787 #: ../fish/guestfish-actions.pod:3626
23788 msgid "set-append"
23789 msgstr ""
23790
23791 # type: =head2
23792 #: ../fish/guestfish-actions.pod:3628
23793 msgid "append"
23794 msgstr ""
23795
23796 # type: verbatim
23797 #: ../fish/guestfish-actions.pod:3630
23798 #, no-wrap
23799 msgid ""
23800 " set-append append\n"
23801 "\n"
23802 msgstr ""
23803
23804 # type: =head2
23805 #: ../fish/guestfish-actions.pod:3641
23806 msgid "set-autosync"
23807 msgstr ""
23808
23809 # type: =head2
23810 #: ../fish/guestfish-actions.pod:3643
23811 msgid "autosync"
23812 msgstr ""
23813
23814 # type: verbatim
23815 #: ../fish/guestfish-actions.pod:3645
23816 #, no-wrap
23817 msgid ""
23818 " set-autosync true|false\n"
23819 "\n"
23820 msgstr ""
23821
23822 # type: textblock
23823 #: ../fish/guestfish-actions.pod:3647
23824 msgid ""
23825 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23826 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23827 "closed (also if the program exits without closing handles)."
23828 msgstr ""
23829
23830 # type: =head2
23831 #: ../fish/guestfish-actions.pod:3655
23832 msgid "set-direct"
23833 msgstr ""
23834
23835 # type: =head2
23836 #: ../fish/guestfish-actions.pod:3657
23837 msgid "direct"
23838 msgstr ""
23839
23840 # type: verbatim
23841 #: ../fish/guestfish-actions.pod:3659
23842 #, no-wrap
23843 msgid ""
23844 " set-direct true|false\n"
23845 "\n"
23846 msgstr ""
23847
23848 # type: textblock
23849 #: ../fish/guestfish-actions.pod:3665
23850 msgid ""
23851 "One consequence of this is that log messages aren't caught by the library "
23852 "and handled by L</set-log-message-callback>, but go straight to stdout."
23853 msgstr ""
23854
23855 # type: =head2
23856 #: ../fish/guestfish-actions.pod:3674
23857 msgid "set-e2label"
23858 msgstr ""
23859
23860 # type: verbatim
23861 #: ../fish/guestfish-actions.pod:3676
23862 #, no-wrap
23863 msgid ""
23864 " set-e2label device label\n"
23865 "\n"
23866 msgstr ""
23867
23868 # type: textblock
23869 #: ../fish/guestfish-actions.pod:3682
23870 msgid ""
23871 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23872 "label on a filesystem."
23873 msgstr ""
23874
23875 # type: =head2
23876 #: ../fish/guestfish-actions.pod:3685
23877 msgid "set-e2uuid"
23878 msgstr ""
23879
23880 # type: verbatim
23881 #: ../fish/guestfish-actions.pod:3687
23882 #, no-wrap
23883 msgid ""
23884 " set-e2uuid device uuid\n"
23885 "\n"
23886 msgstr ""
23887
23888 # type: textblock
23889 #: ../fish/guestfish-actions.pod:3694
23890 msgid ""
23891 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23892 "UUID of a filesystem."
23893 msgstr ""
23894
23895 # type: =head2
23896 #: ../fish/guestfish-actions.pod:3697
23897 msgid "set-memsize"
23898 msgstr ""
23899
23900 # type: =head2
23901 #: ../fish/guestfish-actions.pod:3699
23902 msgid "memsize"
23903 msgstr ""
23904
23905 # type: verbatim
23906 #: ../fish/guestfish-actions.pod:3701
23907 #, no-wrap
23908 msgid ""
23909 " set-memsize memsize\n"
23910 "\n"
23911 msgstr ""
23912
23913 # type: textblock
23914 #: ../fish/guestfish-actions.pod:3703
23915 msgid ""
23916 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23917 "This only has any effect if called before L</launch>."
23918 msgstr ""
23919
23920 # type: =head2
23921 #: ../fish/guestfish-actions.pod:3714
23922 msgid "set-network"
23923 msgstr ""
23924
23925 # type: =head2
23926 #: ../fish/guestfish-actions.pod:3716
23927 msgid "network"
23928 msgstr ""
23929
23930 # type: verbatim
23931 #: ../fish/guestfish-actions.pod:3718
23932 #, no-wrap
23933 msgid ""
23934 " set-network true|false\n"
23935 "\n"
23936 msgstr ""
23937
23938 # type: textblock
23939 #: ../fish/guestfish-actions.pod:3726
23940 msgid ""
23941 "You must call this before calling L</launch>, otherwise it has no effect."
23942 msgstr ""
23943
23944 # type: =head2
23945 #: ../fish/guestfish-actions.pod:3729
23946 msgid "set-path"
23947 msgstr ""
23948
23949 # type: =head2
23950 #: ../fish/guestfish-actions.pod:3731
23951 msgid "path"
23952 msgstr ""
23953
23954 # type: verbatim
23955 #: ../fish/guestfish-actions.pod:3733
23956 #, no-wrap
23957 msgid ""
23958 " set-path searchpath\n"
23959 "\n"
23960 msgstr ""
23961
23962 # type: =head2
23963 #: ../fish/guestfish-actions.pod:3742
23964 msgid "set-qemu"
23965 msgstr ""
23966
23967 # type: =head2
23968 #: ../fish/guestfish-actions.pod:3744
23969 msgid "qemu"
23970 msgstr ""
23971
23972 # type: verbatim
23973 #: ../fish/guestfish-actions.pod:3746
23974 #, no-wrap
23975 msgid ""
23976 " set-qemu qemu\n"
23977 "\n"
23978 msgstr ""
23979
23980 # type: =head2
23981 #: ../fish/guestfish-actions.pod:3766
23982 msgid "set-recovery-proc"
23983 msgstr ""
23984
23985 # type: =head2
23986 #: ../fish/guestfish-actions.pod:3768
23987 msgid "recovery-proc"
23988 msgstr ""
23989
23990 # type: verbatim
23991 #: ../fish/guestfish-actions.pod:3770
23992 #, no-wrap
23993 msgid ""
23994 " set-recovery-proc true|false\n"
23995 "\n"
23996 msgstr ""
23997
23998 # type: textblock
23999 #: ../fish/guestfish-actions.pod:3772
24000 msgid ""
24001 "If this is called with the parameter C<false> then L</launch> does not "
24002 "create a recovery process.  The purpose of the recovery process is to stop "
24003 "runaway qemu processes in the case where the main program aborts abruptly."
24004 msgstr ""
24005
24006 # type: textblock
24007 #: ../fish/guestfish-actions.pod:3777
24008 msgid ""
24009 "This only has any effect if called before L</launch>, and the default is "
24010 "true."
24011 msgstr ""
24012
24013 # type: =head2
24014 #: ../fish/guestfish-actions.pod:3786
24015 msgid "set-selinux"
24016 msgstr ""
24017
24018 # type: =head2
24019 #: ../fish/guestfish-actions.pod:3788
24020 msgid "selinux"
24021 msgstr ""
24022
24023 # type: verbatim
24024 #: ../fish/guestfish-actions.pod:3790
24025 #, no-wrap
24026 msgid ""
24027 " set-selinux true|false\n"
24028 "\n"
24029 msgstr ""
24030
24031 # type: =head2
24032 #: ../fish/guestfish-actions.pod:3801
24033 msgid "set-trace"
24034 msgstr ""
24035
24036 # type: =head2
24037 #: ../fish/guestfish-actions.pod:3803
24038 msgid "trace"
24039 msgstr ""
24040
24041 # type: verbatim
24042 #: ../fish/guestfish-actions.pod:3805
24043 #, no-wrap
24044 msgid ""
24045 " set-trace true|false\n"
24046 "\n"
24047 msgstr ""
24048
24049 # type: =head2
24050 #: ../fish/guestfish-actions.pod:3821
24051 msgid "set-verbose"
24052 msgstr ""
24053
24054 # type: =head2
24055 #: ../fish/guestfish-actions.pod:3823
24056 msgid "verbose"
24057 msgstr ""
24058
24059 # type: verbatim
24060 #: ../fish/guestfish-actions.pod:3825
24061 #, no-wrap
24062 msgid ""
24063 " set-verbose true|false\n"
24064 "\n"
24065 msgstr ""
24066
24067 # type: =head2
24068 #: ../fish/guestfish-actions.pod:3832
24069 msgid "setcon"
24070 msgstr ""
24071
24072 # type: verbatim
24073 #: ../fish/guestfish-actions.pod:3834
24074 #, no-wrap
24075 msgid ""
24076 " setcon context\n"
24077 "\n"
24078 msgstr ""
24079
24080 # type: =head2
24081 #: ../fish/guestfish-actions.pod:3841
24082 msgid "setxattr"
24083 msgstr ""
24084
24085 # type: verbatim
24086 #: ../fish/guestfish-actions.pod:3843
24087 #, no-wrap
24088 msgid ""
24089 " setxattr xattr val vallen path\n"
24090 "\n"
24091 msgstr ""
24092
24093 # type: textblock
24094 #: ../fish/guestfish-actions.pod:3849
24095 msgid "See also: L</lsetxattr>, L<attr(5)>."
24096 msgstr ""
24097
24098 # type: =head2
24099 #: ../fish/guestfish-actions.pod:3851
24100 msgid "sfdisk"
24101 msgstr ""
24102
24103 # type: verbatim
24104 #: ../fish/guestfish-actions.pod:3853
24105 #, no-wrap
24106 msgid ""
24107 " sfdisk device cyls heads sectors 'lines ...'\n"
24108 "\n"
24109 msgstr ""
24110
24111 # type: textblock
24112 #: ../fish/guestfish-actions.pod:3875
24113 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
24114 msgstr ""
24115
24116 # type: =head2
24117 #: ../fish/guestfish-actions.pod:3881
24118 msgid "sfdiskM"
24119 msgstr ""
24120
24121 # type: verbatim
24122 #: ../fish/guestfish-actions.pod:3883
24123 #, no-wrap
24124 msgid ""
24125 " sfdiskM device 'lines ...'\n"
24126 "\n"
24127 msgstr ""
24128
24129 # type: textblock
24130 #: ../fish/guestfish-actions.pod:3885
24131 msgid ""
24132 "This is a simplified interface to the L</sfdisk> command, where partition "
24133 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
24134 "you don't need to specify the cyls, heads and sectors parameters which were "
24135 "rarely if ever used anyway."
24136 msgstr ""
24137
24138 # type: textblock
24139 #: ../fish/guestfish-actions.pod:3891
24140 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
24141 msgstr ""
24142
24143 # type: =head2
24144 #: ../fish/guestfish-actions.pod:3897
24145 msgid "sfdisk-N"
24146 msgstr ""
24147
24148 # type: verbatim
24149 #: ../fish/guestfish-actions.pod:3899
24150 #, no-wrap
24151 msgid ""
24152 " sfdisk-N device partnum cyls heads sectors line\n"
24153 "\n"
24154 msgstr ""
24155
24156 # type: textblock
24157 #: ../fish/guestfish-actions.pod:3904
24158 msgid ""
24159 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
24160 "cyls/heads/sectors parameters."
24161 msgstr ""
24162
24163 # type: textblock
24164 #: ../fish/guestfish-actions.pod:3907
24165 msgid "See also: L</part-add>"
24166 msgstr ""
24167
24168 # type: =head2
24169 #: ../fish/guestfish-actions.pod:3912
24170 msgid "sfdisk-disk-geometry"
24171 msgstr ""
24172
24173 # type: verbatim
24174 #: ../fish/guestfish-actions.pod:3914
24175 #, no-wrap
24176 msgid ""
24177 " sfdisk-disk-geometry device\n"
24178 "\n"
24179 msgstr ""
24180
24181 # type: textblock
24182 #: ../fish/guestfish-actions.pod:3916
24183 msgid ""
24184 "This displays the disk geometry of C<device> read from the partition table.  "
24185 "Especially in the case where the underlying block device has been resized, "
24186 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
24187 "kernel-geometry>)."
24188 msgstr ""
24189
24190 # type: =head2
24191 #: ../fish/guestfish-actions.pod:3924
24192 msgid "sfdisk-kernel-geometry"
24193 msgstr ""
24194
24195 # type: verbatim
24196 #: ../fish/guestfish-actions.pod:3926
24197 #, no-wrap
24198 msgid ""
24199 " sfdisk-kernel-geometry device\n"
24200 "\n"
24201 msgstr ""
24202
24203 # type: =head2
24204 #: ../fish/guestfish-actions.pod:3933
24205 msgid "sfdisk-l"
24206 msgstr ""
24207
24208 # type: verbatim
24209 #: ../fish/guestfish-actions.pod:3935
24210 #, no-wrap
24211 msgid ""
24212 " sfdisk-l device\n"
24213 "\n"
24214 msgstr ""
24215
24216 # type: textblock
24217 #: ../fish/guestfish-actions.pod:3941
24218 msgid "See also: L</part-list>"
24219 msgstr ""
24220
24221 # type: =head2
24222 #: ../fish/guestfish-actions.pod:3943
24223 msgid "sh"
24224 msgstr ""
24225
24226 # type: verbatim
24227 #: ../fish/guestfish-actions.pod:3945
24228 #, no-wrap
24229 msgid ""
24230 " sh command\n"
24231 "\n"
24232 msgstr ""
24233
24234 # type: textblock
24235 #: ../fish/guestfish-actions.pod:3950
24236 msgid "This is like L</command>, but passes the command to:"
24237 msgstr ""
24238
24239 # type: textblock
24240 #: ../fish/guestfish-actions.pod:3958
24241 msgid "All the provisos about L</command> apply to this call."
24242 msgstr ""
24243
24244 # type: =head2
24245 #: ../fish/guestfish-actions.pod:3960
24246 msgid "sh-lines"
24247 msgstr ""
24248
24249 # type: verbatim
24250 #: ../fish/guestfish-actions.pod:3962
24251 #, no-wrap
24252 msgid ""
24253 " sh-lines command\n"
24254 "\n"
24255 msgstr ""
24256
24257 # type: textblock
24258 #: ../fish/guestfish-actions.pod:3964
24259 msgid "This is the same as L</sh>, but splits the result into a list of lines."
24260 msgstr ""
24261
24262 # type: textblock
24263 #: ../fish/guestfish-actions.pod:3967
24264 msgid "See also: L</command-lines>"
24265 msgstr ""
24266
24267 # type: =head2
24268 #: ../fish/guestfish-actions.pod:3969
24269 msgid "sleep"
24270 msgstr ""
24271
24272 # type: verbatim
24273 #: ../fish/guestfish-actions.pod:3971
24274 #, no-wrap
24275 msgid ""
24276 " sleep secs\n"
24277 "\n"
24278 msgstr ""
24279
24280 # type: =head2
24281 #: ../fish/guestfish-actions.pod:3975
24282 msgid "stat"
24283 msgstr ""
24284
24285 # type: verbatim
24286 #: ../fish/guestfish-actions.pod:3977
24287 #, no-wrap
24288 msgid ""
24289 " stat path\n"
24290 "\n"
24291 msgstr ""
24292
24293 # type: =head2
24294 #: ../fish/guestfish-actions.pod:3983
24295 msgid "statvfs"
24296 msgstr ""
24297
24298 # type: verbatim
24299 #: ../fish/guestfish-actions.pod:3985
24300 #, no-wrap
24301 msgid ""
24302 " statvfs path\n"
24303 "\n"
24304 msgstr ""
24305
24306 # type: =head2
24307 #: ../fish/guestfish-actions.pod:3993
24308 msgid "strings"
24309 msgstr ""
24310
24311 # type: verbatim
24312 #: ../fish/guestfish-actions.pod:3995
24313 #, no-wrap
24314 msgid ""
24315 " strings path\n"
24316 "\n"
24317 msgstr ""
24318
24319 # type: =head2
24320 #: ../fish/guestfish-actions.pod:4003
24321 msgid "strings-e"
24322 msgstr ""
24323
24324 # type: verbatim
24325 #: ../fish/guestfish-actions.pod:4005
24326 #, no-wrap
24327 msgid ""
24328 " strings-e encoding path\n"
24329 "\n"
24330 msgstr ""
24331
24332 # type: textblock
24333 #: ../fish/guestfish-actions.pod:4007
24334 msgid ""
24335 "This is like the L</strings> command, but allows you to specify the encoding "
24336 "of strings that are looked for in the source file C<path>."
24337 msgstr ""
24338
24339 # type: textblock
24340 #: ../fish/guestfish-actions.pod:4017
24341 msgid ""
24342 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24343 "ISO-8859-X (this is what L</strings> uses)."
24344 msgstr ""
24345
24346 # type: =head2
24347 #: ../fish/guestfish-actions.pod:4049
24348 msgid "swapoff-device"
24349 msgstr ""
24350
24351 # type: verbatim
24352 #: ../fish/guestfish-actions.pod:4051
24353 #, no-wrap
24354 msgid ""
24355 " swapoff-device device\n"
24356 "\n"
24357 msgstr ""
24358
24359 # type: textblock
24360 #: ../fish/guestfish-actions.pod:4053
24361 msgid ""
24362 "This command disables the libguestfs appliance swap device or partition "
24363 "named C<device>.  See L</swapon-device>."
24364 msgstr ""
24365
24366 # type: =head2
24367 #: ../fish/guestfish-actions.pod:4057
24368 msgid "swapoff-file"
24369 msgstr ""
24370
24371 # type: verbatim
24372 #: ../fish/guestfish-actions.pod:4059
24373 #, no-wrap
24374 msgid ""
24375 " swapoff-file file\n"
24376 "\n"
24377 msgstr ""
24378
24379 # type: =head2
24380 #: ../fish/guestfish-actions.pod:4063
24381 msgid "swapoff-label"
24382 msgstr ""
24383
24384 # type: verbatim
24385 #: ../fish/guestfish-actions.pod:4065
24386 #, no-wrap
24387 msgid ""
24388 " swapoff-label label\n"
24389 "\n"
24390 msgstr ""
24391
24392 # type: =head2
24393 #: ../fish/guestfish-actions.pod:4070
24394 msgid "swapoff-uuid"
24395 msgstr ""
24396
24397 # type: verbatim
24398 #: ../fish/guestfish-actions.pod:4072
24399 #, no-wrap
24400 msgid ""
24401 " swapoff-uuid uuid\n"
24402 "\n"
24403 msgstr ""
24404
24405 # type: =head2
24406 #: ../fish/guestfish-actions.pod:4077
24407 msgid "swapon-device"
24408 msgstr ""
24409
24410 # type: verbatim
24411 #: ../fish/guestfish-actions.pod:4079
24412 #, no-wrap
24413 msgid ""
24414 " swapon-device device\n"
24415 "\n"
24416 msgstr ""
24417
24418 # type: textblock
24419 #: ../fish/guestfish-actions.pod:4081
24420 msgid ""
24421 "This command enables the libguestfs appliance to use the swap device or "
24422 "partition named C<device>.  The increased memory is made available for all "
24423 "commands, for example those run using L</command> or L</sh>."
24424 msgstr ""
24425
24426 # type: =head2
24427 #: ../fish/guestfish-actions.pod:4093
24428 msgid "swapon-file"
24429 msgstr ""
24430
24431 # type: verbatim
24432 #: ../fish/guestfish-actions.pod:4095
24433 #, no-wrap
24434 msgid ""
24435 " swapon-file file\n"
24436 "\n"
24437 msgstr ""
24438
24439 # type: textblock
24440 #: ../fish/guestfish-actions.pod:4097
24441 msgid ""
24442 "This command enables swap to a file.  See L</swapon-device> for other notes."
24443 msgstr ""
24444
24445 # type: =head2
24446 #: ../fish/guestfish-actions.pod:4100
24447 msgid "swapon-label"
24448 msgstr ""
24449
24450 # type: verbatim
24451 #: ../fish/guestfish-actions.pod:4102
24452 #, no-wrap
24453 msgid ""
24454 " swapon-label label\n"
24455 "\n"
24456 msgstr ""
24457
24458 # type: textblock
24459 #: ../fish/guestfish-actions.pod:4104
24460 msgid ""
24461 "This command enables swap to a labeled swap partition.  See L</swapon-"
24462 "device> for other notes."
24463 msgstr ""
24464
24465 # type: =head2
24466 #: ../fish/guestfish-actions.pod:4107
24467 msgid "swapon-uuid"
24468 msgstr ""
24469
24470 # type: verbatim
24471 #: ../fish/guestfish-actions.pod:4109
24472 #, no-wrap
24473 msgid ""
24474 " swapon-uuid uuid\n"
24475 "\n"
24476 msgstr ""
24477
24478 # type: textblock
24479 #: ../fish/guestfish-actions.pod:4111
24480 msgid ""
24481 "This command enables swap to a swap partition with the given UUID.  See L</"
24482 "swapon-device> for other notes."
24483 msgstr ""
24484
24485 # type: =head2
24486 #: ../fish/guestfish-actions.pod:4114
24487 msgid "sync"
24488 msgstr ""
24489
24490 # type: verbatim
24491 #: ../fish/guestfish-actions.pod:4116
24492 #, no-wrap
24493 msgid ""
24494 " sync\n"
24495 "\n"
24496 msgstr ""
24497
24498 # type: =head2
24499 #: ../fish/guestfish-actions.pod:4124
24500 msgid "tail"
24501 msgstr ""
24502
24503 # type: verbatim
24504 #: ../fish/guestfish-actions.pod:4126
24505 #, no-wrap
24506 msgid ""
24507 " tail path\n"
24508 "\n"
24509 msgstr ""
24510
24511 # type: =head2
24512 #: ../fish/guestfish-actions.pod:4134
24513 msgid "tail-n"
24514 msgstr ""
24515
24516 # type: verbatim
24517 #: ../fish/guestfish-actions.pod:4136
24518 #, no-wrap
24519 msgid ""
24520 " tail-n nrlines path\n"
24521 "\n"
24522 msgstr ""
24523
24524 # type: =head2
24525 #: ../fish/guestfish-actions.pod:4149
24526 msgid "tar-in"
24527 msgstr ""
24528
24529 # type: verbatim
24530 #: ../fish/guestfish-actions.pod:4151
24531 #, no-wrap
24532 msgid ""
24533 " tar-in (tarfile|-) directory\n"
24534 "\n"
24535 msgstr ""
24536
24537 # type: textblock
24538 #: ../fish/guestfish-actions.pod:4156
24539 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24540 msgstr ""
24541
24542 # type: =head2
24543 #: ../fish/guestfish-actions.pod:4161
24544 msgid "tar-out"
24545 msgstr ""
24546
24547 # type: verbatim
24548 #: ../fish/guestfish-actions.pod:4163
24549 #, no-wrap
24550 msgid ""
24551 " tar-out directory (tarfile|-)\n"
24552 "\n"
24553 msgstr ""
24554
24555 # type: textblock
24556 #: ../fish/guestfish-actions.pod:4168
24557 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24558 msgstr ""
24559
24560 # type: =head2
24561 #: ../fish/guestfish-actions.pod:4173
24562 msgid "tgz-in"
24563 msgstr ""
24564
24565 # type: verbatim
24566 #: ../fish/guestfish-actions.pod:4175
24567 #, no-wrap
24568 msgid ""
24569 " tgz-in (tarball|-) directory\n"
24570 "\n"
24571 msgstr ""
24572
24573 # type: textblock
24574 #: ../fish/guestfish-actions.pod:4180
24575 msgid "To upload an uncompressed tarball, use L</tar-in>."
24576 msgstr ""
24577
24578 # type: =head2
24579 #: ../fish/guestfish-actions.pod:4184
24580 msgid "tgz-out"
24581 msgstr ""
24582
24583 # type: verbatim
24584 #: ../fish/guestfish-actions.pod:4186
24585 #, no-wrap
24586 msgid ""
24587 " tgz-out directory (tarball|-)\n"
24588 "\n"
24589 msgstr ""
24590
24591 # type: textblock
24592 #: ../fish/guestfish-actions.pod:4191
24593 msgid "To download an uncompressed tarball, use L</tar-out>."
24594 msgstr ""
24595
24596 # type: =head2
24597 #: ../fish/guestfish-actions.pod:4195
24598 msgid "touch"
24599 msgstr ""
24600
24601 # type: verbatim
24602 #: ../fish/guestfish-actions.pod:4197
24603 #, no-wrap
24604 msgid ""
24605 " touch path\n"
24606 "\n"
24607 msgstr ""
24608
24609 # type: =head2
24610 #: ../fish/guestfish-actions.pod:4206
24611 msgid "truncate"
24612 msgstr ""
24613
24614 # type: verbatim
24615 #: ../fish/guestfish-actions.pod:4208
24616 #, no-wrap
24617 msgid ""
24618 " truncate path\n"
24619 "\n"
24620 msgstr ""
24621
24622 # type: =head2
24623 #: ../fish/guestfish-actions.pod:4213
24624 msgid "truncate-size"
24625 msgstr ""
24626
24627 # type: verbatim
24628 #: ../fish/guestfish-actions.pod:4215
24629 #, no-wrap
24630 msgid ""
24631 " truncate-size path size\n"
24632 "\n"
24633 msgstr ""
24634
24635 # type: textblock
24636 #: ../fish/guestfish-actions.pod:4220
24637 msgid ""
24638 "If the current file size is less than C<size> then the file is extended to "
24639 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24640 "blocks are not allocated for the file until you write to it).  To create a "
24641 "non-sparse file of zeroes, use L</fallocate64> instead."
24642 msgstr ""
24643
24644 # type: =head2
24645 #: ../fish/guestfish-actions.pod:4226
24646 msgid "tune2fs-l"
24647 msgstr ""
24648
24649 # type: verbatim
24650 #: ../fish/guestfish-actions.pod:4228
24651 #, no-wrap
24652 msgid ""
24653 " tune2fs-l device\n"
24654 "\n"
24655 msgstr ""
24656
24657 # type: =head2
24658 #: ../fish/guestfish-actions.pod:4238
24659 msgid "txz-in"
24660 msgstr ""
24661
24662 # type: verbatim
24663 #: ../fish/guestfish-actions.pod:4240
24664 #, no-wrap
24665 msgid ""
24666 " txz-in (tarball|-) directory\n"
24667 "\n"
24668 msgstr ""
24669
24670 # type: =head2
24671 #: ../fish/guestfish-actions.pod:4247
24672 msgid "txz-out"
24673 msgstr ""
24674
24675 # type: verbatim
24676 #: ../fish/guestfish-actions.pod:4249
24677 #, no-wrap
24678 msgid ""
24679 " txz-out directory (tarball|-)\n"
24680 "\n"
24681 msgstr ""
24682
24683 # type: =head2
24684 #: ../fish/guestfish-actions.pod:4256
24685 msgid "umask"
24686 msgstr ""
24687
24688 # type: verbatim
24689 #: ../fish/guestfish-actions.pod:4258
24690 #, no-wrap
24691 msgid ""
24692 " umask mask\n"
24693 "\n"
24694 msgstr ""
24695
24696 # type: textblock
24697 #: ../fish/guestfish-actions.pod:4272
24698 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24699 msgstr ""
24700
24701 # type: =head2
24702 #: ../fish/guestfish-actions.pod:4277
24703 msgid "umount"
24704 msgstr ""
24705
24706 # type: =head2
24707 #: ../fish/guestfish-actions.pod:4279
24708 msgid "unmount"
24709 msgstr ""
24710
24711 # type: verbatim
24712 #: ../fish/guestfish-actions.pod:4281
24713 #, no-wrap
24714 msgid ""
24715 " umount pathordevice\n"
24716 "\n"
24717 msgstr ""
24718
24719 # type: =head2
24720 #: ../fish/guestfish-actions.pod:4287
24721 msgid "umount-all"
24722 msgstr ""
24723
24724 # type: =head2
24725 #: ../fish/guestfish-actions.pod:4289
24726 msgid "unmount-all"
24727 msgstr ""
24728
24729 # type: verbatim
24730 #: ../fish/guestfish-actions.pod:4291
24731 #, no-wrap
24732 msgid ""
24733 " umount-all\n"
24734 "\n"
24735 msgstr ""
24736
24737 # type: =head2
24738 #: ../fish/guestfish-actions.pod:4297
24739 msgid "upload"
24740 msgstr ""
24741
24742 # type: verbatim
24743 #: ../fish/guestfish-actions.pod:4299
24744 #, no-wrap
24745 msgid ""
24746 " upload (filename|-) remotefilename\n"
24747 "\n"
24748 msgstr ""
24749
24750 # type: textblock
24751 #: ../fish/guestfish-actions.pod:4306
24752 msgid "See also L</download>."
24753 msgstr ""
24754
24755 # type: =head2
24756 #: ../fish/guestfish-actions.pod:4310
24757 msgid "upload-offset"
24758 msgstr ""
24759
24760 # type: verbatim
24761 #: ../fish/guestfish-actions.pod:4312
24762 #, no-wrap
24763 msgid ""
24764 " upload-offset (filename|-) remotefilename offset\n"
24765 "\n"
24766 msgstr ""
24767
24768 # type: textblock
24769 #: ../fish/guestfish-actions.pod:4324
24770 msgid ""
24771 "Note that there is no limit on the amount of data that can be uploaded with "
24772 "this call, unlike with L</pwrite>, and this call always writes the full "
24773 "amount unless an error occurs."
24774 msgstr ""
24775
24776 # type: textblock
24777 #: ../fish/guestfish-actions.pod:4329
24778 msgid "See also L</upload>, L</pwrite>."
24779 msgstr ""
24780
24781 # type: =head2
24782 #: ../fish/guestfish-actions.pod:4333
24783 msgid "utimens"
24784 msgstr ""
24785
24786 # type: verbatim
24787 #: ../fish/guestfish-actions.pod:4335
24788 #, no-wrap
24789 msgid ""
24790 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24791 "\n"
24792 msgstr ""
24793
24794 # type: =head2
24795 #: ../fish/guestfish-actions.pod:4354
24796 msgid "version"
24797 msgstr ""
24798
24799 # type: verbatim
24800 #: ../fish/guestfish-actions.pod:4356
24801 #, no-wrap
24802 msgid ""
24803 " version\n"
24804 "\n"
24805 msgstr ""
24806
24807 # type: textblock
24808 #: ../fish/guestfish-actions.pod:4383
24809 msgid ""
24810 "I<Note:> Don't use this call to test for availability of features.  In "
24811 "enterprise distributions we backport features from later versions into "
24812 "earlier versions, making this an unreliable way to test for features.  Use "
24813 "L</available> instead."
24814 msgstr ""
24815
24816 # type: =head2
24817 #: ../fish/guestfish-actions.pod:4389
24818 msgid "vfs-label"
24819 msgstr ""
24820
24821 # type: verbatim
24822 #: ../fish/guestfish-actions.pod:4391
24823 #, no-wrap
24824 msgid ""
24825 " vfs-label device\n"
24826 "\n"
24827 msgstr ""
24828
24829 # type: textblock
24830 #: ../fish/guestfish-actions.pod:4398
24831 msgid "To find a filesystem from the label, use L</findfs-label>."
24832 msgstr ""
24833
24834 # type: =head2
24835 #: ../fish/guestfish-actions.pod:4400
24836 msgid "vfs-type"
24837 msgstr ""
24838
24839 # type: verbatim
24840 #: ../fish/guestfish-actions.pod:4402
24841 #, no-wrap
24842 msgid ""
24843 " vfs-type device\n"
24844 "\n"
24845 msgstr ""
24846
24847 # type: =head2
24848 #: ../fish/guestfish-actions.pod:4412
24849 msgid "vfs-uuid"
24850 msgstr ""
24851
24852 # type: verbatim
24853 #: ../fish/guestfish-actions.pod:4414
24854 #, no-wrap
24855 msgid ""
24856 " vfs-uuid device\n"
24857 "\n"
24858 msgstr ""
24859
24860 # type: textblock
24861 #: ../fish/guestfish-actions.pod:4421
24862 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24863 msgstr ""
24864
24865 # type: =head2
24866 #: ../fish/guestfish-actions.pod:4423
24867 msgid "vg-activate"
24868 msgstr ""
24869
24870 # type: verbatim
24871 #: ../fish/guestfish-actions.pod:4425
24872 #, no-wrap
24873 msgid ""
24874 " vg-activate true|false 'volgroups ...'\n"
24875 "\n"
24876 msgstr ""
24877
24878 # type: =head2
24879 #: ../fish/guestfish-actions.pod:4438
24880 msgid "vg-activate-all"
24881 msgstr ""
24882
24883 # type: verbatim
24884 #: ../fish/guestfish-actions.pod:4440
24885 #, no-wrap
24886 msgid ""
24887 " vg-activate-all true|false\n"
24888 "\n"
24889 msgstr ""
24890
24891 # type: =head2
24892 #: ../fish/guestfish-actions.pod:4450
24893 msgid "vgcreate"
24894 msgstr ""
24895
24896 # type: verbatim
24897 #: ../fish/guestfish-actions.pod:4452
24898 #, no-wrap
24899 msgid ""
24900 " vgcreate volgroup 'physvols ...'\n"
24901 "\n"
24902 msgstr ""
24903
24904 # type: =head2
24905 #: ../fish/guestfish-actions.pod:4457
24906 msgid "vglvuuids"
24907 msgstr ""
24908
24909 # type: verbatim
24910 #: ../fish/guestfish-actions.pod:4459
24911 #, no-wrap
24912 msgid ""
24913 " vglvuuids vgname\n"
24914 "\n"
24915 msgstr ""
24916
24917 # type: textblock
24918 #: ../fish/guestfish-actions.pod:4464
24919 msgid ""
24920 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24921 "logical volumes and volume groups."
24922 msgstr ""
24923
24924 # type: textblock
24925 #: ../fish/guestfish-actions.pod:4467
24926 msgid "See also L</vgpvuuids>."
24927 msgstr ""
24928
24929 # type: =head2
24930 #: ../fish/guestfish-actions.pod:4469
24931 msgid "vgpvuuids"
24932 msgstr ""
24933
24934 # type: verbatim
24935 #: ../fish/guestfish-actions.pod:4471
24936 #, no-wrap
24937 msgid ""
24938 " vgpvuuids vgname\n"
24939 "\n"
24940 msgstr ""
24941
24942 # type: textblock
24943 #: ../fish/guestfish-actions.pod:4476
24944 msgid ""
24945 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24946 "physical volumes and volume groups."
24947 msgstr ""
24948
24949 # type: textblock
24950 #: ../fish/guestfish-actions.pod:4479
24951 msgid "See also L</vglvuuids>."
24952 msgstr ""
24953
24954 # type: =head2
24955 #: ../fish/guestfish-actions.pod:4481
24956 msgid "vgremove"
24957 msgstr ""
24958
24959 # type: verbatim
24960 #: ../fish/guestfish-actions.pod:4483
24961 #, no-wrap
24962 msgid ""
24963 " vgremove vgname\n"
24964 "\n"
24965 msgstr ""
24966
24967 # type: =head2
24968 #: ../fish/guestfish-actions.pod:4490
24969 msgid "vgrename"
24970 msgstr ""
24971
24972 # type: verbatim
24973 #: ../fish/guestfish-actions.pod:4492
24974 #, no-wrap
24975 msgid ""
24976 " vgrename volgroup newvolgroup\n"
24977 "\n"
24978 msgstr ""
24979
24980 # type: =head2
24981 #: ../fish/guestfish-actions.pod:4496
24982 msgid "vgs"
24983 msgstr ""
24984
24985 # type: verbatim
24986 #: ../fish/guestfish-actions.pod:4498
24987 #, no-wrap
24988 msgid ""
24989 " vgs\n"
24990 "\n"
24991 msgstr ""
24992
24993 # type: textblock
24994 #: ../fish/guestfish-actions.pod:4506
24995 msgid "See also L</vgs-full>."
24996 msgstr ""
24997
24998 # type: =head2
24999 #: ../fish/guestfish-actions.pod:4508
25000 msgid "vgs-full"
25001 msgstr ""
25002
25003 # type: verbatim
25004 #: ../fish/guestfish-actions.pod:4510
25005 #, no-wrap
25006 msgid ""
25007 " vgs-full\n"
25008 "\n"
25009 msgstr ""
25010
25011 # type: =head2
25012 #: ../fish/guestfish-actions.pod:4515
25013 msgid "vgscan"
25014 msgstr ""
25015
25016 # type: verbatim
25017 #: ../fish/guestfish-actions.pod:4517
25018 #, no-wrap
25019 msgid ""
25020 " vgscan\n"
25021 "\n"
25022 msgstr ""
25023
25024 # type: =head2
25025 #: ../fish/guestfish-actions.pod:4522
25026 msgid "vguuid"
25027 msgstr ""
25028
25029 # type: verbatim
25030 #: ../fish/guestfish-actions.pod:4524
25031 #, no-wrap
25032 msgid ""
25033 " vguuid vgname\n"
25034 "\n"
25035 msgstr ""
25036
25037 # type: =head2
25038 #: ../fish/guestfish-actions.pod:4528
25039 msgid "wc-c"
25040 msgstr ""
25041
25042 # type: verbatim
25043 #: ../fish/guestfish-actions.pod:4530
25044 #, no-wrap
25045 msgid ""
25046 " wc-c path\n"
25047 "\n"
25048 msgstr ""
25049
25050 # type: =head2
25051 #: ../fish/guestfish-actions.pod:4535
25052 msgid "wc-l"
25053 msgstr ""
25054
25055 # type: verbatim
25056 #: ../fish/guestfish-actions.pod:4537
25057 #, no-wrap
25058 msgid ""
25059 " wc-l path\n"
25060 "\n"
25061 msgstr ""
25062
25063 # type: =head2
25064 #: ../fish/guestfish-actions.pod:4542
25065 msgid "wc-w"
25066 msgstr ""
25067
25068 # type: verbatim
25069 #: ../fish/guestfish-actions.pod:4544
25070 #, no-wrap
25071 msgid ""
25072 " wc-w path\n"
25073 "\n"
25074 msgstr ""
25075
25076 # type: =head2
25077 #: ../fish/guestfish-actions.pod:4549
25078 msgid "write"
25079 msgstr ""
25080
25081 # type: verbatim
25082 #: ../fish/guestfish-actions.pod:4551
25083 #, no-wrap
25084 msgid ""
25085 " write path content\n"
25086 "\n"
25087 msgstr ""
25088
25089 # type: =head2
25090 #: ../fish/guestfish-actions.pod:4559
25091 msgid "write-file"
25092 msgstr ""
25093
25094 # type: verbatim
25095 #: ../fish/guestfish-actions.pod:4561
25096 #, no-wrap
25097 msgid ""
25098 " write-file path content size\n"
25099 "\n"
25100 msgstr ""
25101
25102 # type: =head2
25103 #: ../fish/guestfish-actions.pod:4584
25104 msgid "zegrep"
25105 msgstr ""
25106
25107 # type: verbatim
25108 #: ../fish/guestfish-actions.pod:4586
25109 #, no-wrap
25110 msgid ""
25111 " zegrep regex path\n"
25112 "\n"
25113 msgstr ""
25114
25115 # type: =head2
25116 #: ../fish/guestfish-actions.pod:4594
25117 msgid "zegrepi"
25118 msgstr ""
25119
25120 # type: verbatim
25121 #: ../fish/guestfish-actions.pod:4596
25122 #, no-wrap
25123 msgid ""
25124 " zegrepi regex path\n"
25125 "\n"
25126 msgstr ""
25127
25128 # type: =head2
25129 #: ../fish/guestfish-actions.pod:4604
25130 msgid "zero"
25131 msgstr ""
25132
25133 # type: verbatim
25134 #: ../fish/guestfish-actions.pod:4606
25135 #, no-wrap
25136 msgid ""
25137 " zero device\n"
25138 "\n"
25139 msgstr ""
25140
25141 # type: textblock
25142 #: ../fish/guestfish-actions.pod:4614
25143 msgid "See also: L</zero-device>, L</scrub-device>."
25144 msgstr ""
25145
25146 # type: =head2
25147 #: ../fish/guestfish-actions.pod:4616
25148 msgid "zero-device"
25149 msgstr ""
25150
25151 # type: verbatim
25152 #: ../fish/guestfish-actions.pod:4618
25153 #, no-wrap
25154 msgid ""
25155 " zero-device device\n"
25156 "\n"
25157 msgstr ""
25158
25159 # type: textblock
25160 #: ../fish/guestfish-actions.pod:4620
25161 msgid ""
25162 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
25163 "which just zeroes the first few blocks of a device."
25164 msgstr ""
25165
25166 # type: =head2
25167 #: ../fish/guestfish-actions.pod:4627
25168 msgid "zerofree"
25169 msgstr ""
25170
25171 # type: verbatim
25172 #: ../fish/guestfish-actions.pod:4629
25173 #, no-wrap
25174 msgid ""
25175 " zerofree device\n"
25176 "\n"
25177 msgstr ""
25178
25179 # type: =head2
25180 #: ../fish/guestfish-actions.pod:4642
25181 msgid "zfgrep"
25182 msgstr ""
25183
25184 # type: verbatim
25185 #: ../fish/guestfish-actions.pod:4644
25186 #, no-wrap
25187 msgid ""
25188 " zfgrep pattern path\n"
25189 "\n"
25190 msgstr ""
25191
25192 # type: =head2
25193 #: ../fish/guestfish-actions.pod:4652
25194 msgid "zfgrepi"
25195 msgstr ""
25196
25197 # type: verbatim
25198 #: ../fish/guestfish-actions.pod:4654
25199 #, no-wrap
25200 msgid ""
25201 " zfgrepi pattern path\n"
25202 "\n"
25203 msgstr ""
25204
25205 # type: =head2
25206 #: ../fish/guestfish-actions.pod:4662
25207 msgid "zfile"
25208 msgstr ""
25209
25210 # type: verbatim
25211 #: ../fish/guestfish-actions.pod:4664
25212 #, no-wrap
25213 msgid ""
25214 " zfile meth path\n"
25215 "\n"
25216 msgstr ""
25217
25218 # type: textblock
25219 #: ../fish/guestfish-actions.pod:4671
25220 msgid ""
25221 "Since 1.0.63, use L</file> instead which can now process compressed files."
25222 msgstr ""
25223
25224 # type: =head2
25225 #: ../fish/guestfish-actions.pod:4681
25226 msgid "zgrep"
25227 msgstr ""
25228
25229 # type: verbatim
25230 #: ../fish/guestfish-actions.pod:4683
25231 #, no-wrap
25232 msgid ""
25233 " zgrep regex path\n"
25234 "\n"
25235 msgstr ""
25236
25237 # type: =head2
25238 #: ../fish/guestfish-actions.pod:4691
25239 msgid "zgrepi"
25240 msgstr ""
25241
25242 # type: verbatim
25243 #: ../fish/guestfish-actions.pod:4693
25244 #, no-wrap
25245 msgid ""
25246 " zgrepi regex path\n"
25247 "\n"
25248 msgstr ""
25249
25250 # type: =head2
25251 #: ../fish/guestfish-commands.pod:1
25252 msgid "alloc"
25253 msgstr ""
25254
25255 # type: =head2
25256 #: ../fish/guestfish-commands.pod:3
25257 msgid "allocate"
25258 msgstr ""
25259
25260 # type: verbatim
25261 #: ../fish/guestfish-commands.pod:5
25262 #, no-wrap
25263 msgid ""
25264 " alloc filename size\n"
25265 "\n"
25266 msgstr ""
25267
25268 # type: textblock
25269 #: ../fish/guestfish-commands.pod:7
25270 msgid ""
25271 "This creates an empty (zeroed) file of the given size, and then adds so it "
25272 "can be further examined."
25273 msgstr ""
25274
25275 # type: textblock
25276 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25277 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25278 msgstr ""
25279
25280 # type: textblock
25281 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25282 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25283 msgstr ""
25284
25285 # type: textblock
25286 #: ../fish/guestfish-commands.pod:14
25287 msgid ""
25288 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25289 "image, see L</PREPARED DISK IMAGES>."
25290 msgstr ""
25291
25292 # type: =head2
25293 #: ../fish/guestfish-commands.pod:17
25294 msgid "copy-in"
25295 msgstr ""
25296
25297 # type: verbatim
25298 #: ../fish/guestfish-commands.pod:19
25299 #, no-wrap
25300 msgid ""
25301 " copy-in local [local ...] /remotedir\n"
25302 "\n"
25303 msgstr ""
25304
25305 # type: textblock
25306 #: ../fish/guestfish-commands.pod:21
25307 msgid ""
25308 "C<copy-in> copies local files or directories recursively into the disk "
25309 "image, placing them in the directory called C</remotedir> (which must "
25310 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25311 "other commands as necessary."
25312 msgstr ""
25313
25314 # type: textblock
25315 #: ../fish/guestfish-commands.pod:26
25316 msgid ""
25317 "Multiple local files and directories can be specified, but the last "
25318 "parameter must always be a remote directory.  Wildcards cannot be used."
25319 msgstr ""
25320
25321 # type: =head2
25322 #: ../fish/guestfish-commands.pod:30
25323 msgid "copy-out"
25324 msgstr ""
25325
25326 # type: verbatim
25327 #: ../fish/guestfish-commands.pod:32
25328 #, no-wrap
25329 msgid ""
25330 " copy-out remote [remote ...] localdir\n"
25331 "\n"
25332 msgstr ""
25333
25334 # type: textblock
25335 #: ../fish/guestfish-commands.pod:34
25336 msgid ""
25337 "C<copy-out> copies remote files or directories recursively out of the disk "
25338 "image, placing them on the host disk in a local directory called C<localdir> "
25339 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25340 "download>, L</tar-out> and other commands as necessary."
25341 msgstr ""
25342
25343 # type: textblock
25344 #: ../fish/guestfish-commands.pod:40
25345 msgid ""
25346 "Multiple remote files and directories can be specified, but the last "
25347 "parameter must always be a local directory.  To download to the current "
25348 "directory, use C<.> as in:"
25349 msgstr ""
25350
25351 # type: verbatim
25352 #: ../fish/guestfish-commands.pod:44
25353 #, no-wrap
25354 msgid ""
25355 " copy-out /home .\n"
25356 "\n"
25357 msgstr ""
25358
25359 # type: textblock
25360 #: ../fish/guestfish-commands.pod:46
25361 msgid ""
25362 "Wildcards cannot be used in the ordinary command, but you can use them with "
25363 "the help of L</glob> like this:"
25364 msgstr ""
25365
25366 # type: verbatim
25367 #: ../fish/guestfish-commands.pod:49
25368 #, no-wrap
25369 msgid ""
25370 " glob copy-out /home/* .\n"
25371 "\n"
25372 msgstr ""
25373
25374 # type: =head2
25375 #: ../fish/guestfish-commands.pod:51
25376 msgid "echo"
25377 msgstr ""
25378
25379 # type: verbatim
25380 #: ../fish/guestfish-commands.pod:53
25381 #, no-wrap
25382 msgid ""
25383 " echo [params ...]\n"
25384 "\n"
25385 msgstr ""
25386
25387 # type: textblock
25388 #: ../fish/guestfish-commands.pod:55
25389 msgid "This echos the parameters to the terminal."
25390 msgstr ""
25391
25392 # type: =head2
25393 #: ../fish/guestfish-commands.pod:57
25394 msgid "edit"
25395 msgstr ""
25396
25397 # type: =head2
25398 #: ../fish/guestfish-commands.pod:59
25399 msgid "vi"
25400 msgstr ""
25401
25402 # type: =head2
25403 #: ../fish/guestfish-commands.pod:61
25404 msgid "emacs"
25405 msgstr ""
25406
25407 # type: verbatim
25408 #: ../fish/guestfish-commands.pod:63
25409 #, no-wrap
25410 msgid ""
25411 " edit filename\n"
25412 "\n"
25413 msgstr ""
25414
25415 # type: textblock
25416 #: ../fish/guestfish-commands.pod:65
25417 msgid ""
25418 "This is used to edit a file.  It downloads the file, edits it locally using "
25419 "your editor, then uploads the result."
25420 msgstr ""
25421
25422 # type: textblock
25423 #: ../fish/guestfish-commands.pod:68
25424 msgid ""
25425 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25426 "or C<emacs> you will get those corresponding editors."
25427 msgstr ""
25428
25429 # type: =head2
25430 #: ../fish/guestfish-commands.pod:72
25431 msgid "glob"
25432 msgstr ""
25433
25434 # type: verbatim
25435 #: ../fish/guestfish-commands.pod:74
25436 #, no-wrap
25437 msgid ""
25438 " glob command args...\n"
25439 "\n"
25440 msgstr ""
25441
25442 # type: textblock
25443 #: ../fish/guestfish-commands.pod:76
25444 msgid ""
25445 "Expand wildcards in any paths in the args list, and run C<command> "
25446 "repeatedly on each matching path."
25447 msgstr ""
25448
25449 # type: textblock
25450 #: ../fish/guestfish-commands.pod:79
25451 msgid "See L</WILDCARDS AND GLOBBING>."
25452 msgstr ""
25453
25454 # type: =head2
25455 #: ../fish/guestfish-commands.pod:81
25456 msgid "hexedit"
25457 msgstr ""
25458
25459 # type: verbatim
25460 #: ../fish/guestfish-commands.pod:83
25461 #, no-wrap
25462 msgid ""
25463 " hexedit <filename|device>\n"
25464 " hexedit <filename|device> <max>\n"
25465 " hexedit <filename|device> <start> <max>\n"
25466 "\n"
25467 msgstr ""
25468
25469 # type: textblock
25470 #: ../fish/guestfish-commands.pod:87
25471 msgid ""
25472 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25473 "device."
25474 msgstr ""
25475
25476 # type: textblock
25477 #: ../fish/guestfish-commands.pod:90
25478 msgid ""
25479 "This command works by downloading potentially the whole file or device, "
25480 "editing it locally, then uploading it.  If the file or device is large, you "
25481 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25482 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25483 "usual modifiers allowed such as C<1M> (1 megabyte)."
25484 msgstr ""
25485
25486 # type: textblock
25487 #: ../fish/guestfish-commands.pod:97
25488 msgid "For example to edit the first few sectors of a disk you might do:"
25489 msgstr ""
25490
25491 # type: verbatim
25492 #: ../fish/guestfish-commands.pod:100
25493 #, no-wrap
25494 msgid ""
25495 " hexedit /dev/sda 1M\n"
25496 "\n"
25497 msgstr ""
25498
25499 # type: textblock
25500 #: ../fish/guestfish-commands.pod:102
25501 msgid ""
25502 "which would allow you to edit anywhere within the first megabyte of the disk."
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../fish/guestfish-commands.pod:105
25507 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25508 msgstr ""
25509
25510 # type: verbatim
25511 #: ../fish/guestfish-commands.pod:107
25512 #, no-wrap
25513 msgid ""
25514 " hexedit /dev/sda1 0x400 0x400\n"
25515 "\n"
25516 msgstr ""
25517
25518 # type: textblock
25519 #: ../fish/guestfish-commands.pod:109
25520 msgid "(assuming the superblock is in the standard location)."
25521 msgstr ""
25522
25523 # type: textblock
25524 #: ../fish/guestfish-commands.pod:111
25525 msgid ""
25526 "This command requires the external L<hexedit(1)> program.  You can specify "
25527 "another program to use by setting the C<HEXEDITOR> environment variable."
25528 msgstr ""
25529
25530 # type: textblock
25531 #: ../fish/guestfish-commands.pod:115
25532 msgid "See also L</hexdump>."
25533 msgstr ""
25534
25535 # type: =head2
25536 #: ../fish/guestfish-commands.pod:117
25537 msgid "lcd"
25538 msgstr ""
25539
25540 # type: verbatim
25541 #: ../fish/guestfish-commands.pod:119
25542 #, no-wrap
25543 msgid ""
25544 " lcd directory\n"
25545 "\n"
25546 msgstr ""
25547
25548 # type: textblock
25549 #: ../fish/guestfish-commands.pod:121
25550 msgid ""
25551 "Change the local directory, ie. the current directory of guestfish itself."
25552 msgstr ""
25553
25554 # type: textblock
25555 #: ../fish/guestfish-commands.pod:124
25556 msgid "Note that C<!cd> won't do what you might expect."
25557 msgstr ""
25558
25559 # type: =head2
25560 #: ../fish/guestfish-commands.pod:126
25561 msgid "man"
25562 msgstr ""
25563
25564 # type: =head2
25565 #: ../fish/guestfish-commands.pod:128
25566 msgid "manual"
25567 msgstr ""
25568
25569 # type: verbatim
25570 #: ../fish/guestfish-commands.pod:130
25571 #, no-wrap
25572 msgid ""
25573 "  man\n"
25574 "\n"
25575 msgstr ""
25576
25577 # type: textblock
25578 #: ../fish/guestfish-commands.pod:132
25579 msgid "Opens the manual page for guestfish."
25580 msgstr ""
25581
25582 # type: =head2
25583 #: ../fish/guestfish-commands.pod:134
25584 msgid "more"
25585 msgstr ""
25586
25587 # type: =head2
25588 #: ../fish/guestfish-commands.pod:136
25589 msgid "less"
25590 msgstr ""
25591
25592 # type: verbatim
25593 #: ../fish/guestfish-commands.pod:138
25594 #, no-wrap
25595 msgid ""
25596 " more filename\n"
25597 "\n"
25598 msgstr ""
25599
25600 # type: verbatim
25601 #: ../fish/guestfish-commands.pod:140
25602 #, no-wrap
25603 msgid ""
25604 " less filename\n"
25605 "\n"
25606 msgstr ""
25607
25608 # type: textblock
25609 #: ../fish/guestfish-commands.pod:142
25610 msgid "This is used to view a file."
25611 msgstr ""
25612
25613 # type: textblock
25614 #: ../fish/guestfish-commands.pod:144
25615 msgid ""
25616 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25617 "C<less> you will get the C<less> command specifically."
25618 msgstr ""
25619
25620 # type: =head2
25621 #: ../fish/guestfish-commands.pod:147
25622 msgid "reopen"
25623 msgstr ""
25624
25625 # type: verbatim
25626 #: ../fish/guestfish-commands.pod:149
25627 #, no-wrap
25628 msgid ""
25629 "  reopen\n"
25630 "\n"
25631 msgstr ""
25632
25633 # type: textblock
25634 #: ../fish/guestfish-commands.pod:151
25635 msgid ""
25636 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25637 "normally, because the handle is closed properly when guestfish exits.  "
25638 "However this is occasionally useful for testing."
25639 msgstr ""
25640
25641 # type: =head2
25642 #: ../fish/guestfish-commands.pod:155
25643 msgid "sparse"
25644 msgstr ""
25645
25646 # type: verbatim
25647 #: ../fish/guestfish-commands.pod:157
25648 #, no-wrap
25649 msgid ""
25650 " sparse filename size\n"
25651 "\n"
25652 msgstr ""
25653
25654 # type: textblock
25655 #: ../fish/guestfish-commands.pod:159
25656 msgid ""
25657 "This creates an empty sparse file of the given size, and then adds so it can "
25658 "be further examined."
25659 msgstr ""
25660
25661 # type: textblock
25662 #: ../fish/guestfish-commands.pod:162
25663 msgid ""
25664 "In all respects it works the same as the L</alloc> command, except that the "
25665 "image file is allocated sparsely, which means that disk blocks are not "
25666 "assigned to the file until they are needed.  Sparse disk files only use "
25667 "space when written to, but they are slower and there is a danger you could "
25668 "run out of real disk space during a write operation."
25669 msgstr ""
25670
25671 # type: =head2
25672 #: ../fish/guestfish-commands.pod:172
25673 msgid "supported"
25674 msgstr ""
25675
25676 # type: verbatim
25677 #: ../fish/guestfish-commands.pod:174
25678 #, no-wrap
25679 msgid ""
25680 " supported\n"
25681 "\n"
25682 msgstr ""
25683
25684 # type: textblock
25685 #: ../fish/guestfish-commands.pod:176
25686 msgid ""
25687 "This command returns a list of the optional groups known to the daemon, and "
25688 "indicates which ones are supported by this build of the libguestfs appliance."
25689 msgstr ""
25690
25691 # type: textblock
25692 #: ../fish/guestfish-commands.pod:180
25693 msgid "See also L<guestfs(3)/AVAILABILITY>."
25694 msgstr ""
25695
25696 # type: =head2
25697 #: ../fish/guestfish-commands.pod:182
25698 msgid "time"
25699 msgstr ""
25700
25701 # type: verbatim
25702 #: ../fish/guestfish-commands.pod:184
25703 #, no-wrap
25704 msgid ""
25705 " time command args...\n"
25706 "\n"
25707 msgstr ""
25708
25709 # type: textblock
25710 #: ../fish/guestfish-commands.pod:186
25711 msgid ""
25712 "Run the command as usual, but print the elapsed time afterwards.  This can "
25713 "be useful for benchmarking operations."
25714 msgstr ""
25715
25716 # type: textblock
25717 #: ../test-tool/libguestfs-test-tool.pod:5
25718 msgid "libguestfs-test-tool - End user tests for libguestfs"
25719 msgstr ""
25720
25721 # type: verbatim
25722 #: ../test-tool/libguestfs-test-tool.pod:9
25723 #, no-wrap
25724 msgid ""
25725 " libguestfs-test-tool [--options]\n"
25726 "\n"
25727 msgstr ""
25728
25729 # type: textblock
25730 #: ../test-tool/libguestfs-test-tool.pod:13
25731 msgid ""
25732 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25733 "and developers, to allow them to check basic libguestfs functionality is "
25734 "working.  This is needed because libguestfs occasionally breaks for reasons "
25735 "beyond our control: usually because of changes in the underlying qemu or "
25736 "kernel packages, or the host environment."
25737 msgstr ""
25738
25739 # type: textblock
25740 #: ../test-tool/libguestfs-test-tool.pod:20
25741 msgid "If you suspect a problem in libguestfs, then just run:"
25742 msgstr ""
25743
25744 # type: verbatim
25745 #: ../test-tool/libguestfs-test-tool.pod:22
25746 #, no-wrap
25747 msgid ""
25748 " libguestfs-test-tool\n"
25749 "\n"
25750 msgstr ""
25751
25752 # type: textblock
25753 #: ../test-tool/libguestfs-test-tool.pod:24
25754 msgid "It will print lots of diagnostic messages."
25755 msgstr ""
25756
25757 # type: textblock
25758 #: ../test-tool/libguestfs-test-tool.pod:26
25759 msgid "If it runs to completion successfully, you will see this near the end:"
25760 msgstr ""
25761
25762 # type: verbatim
25763 #: ../test-tool/libguestfs-test-tool.pod:28
25764 #, no-wrap
25765 msgid ""
25766 " ===== TEST FINISHED OK =====\n"
25767 "\n"
25768 msgstr ""
25769
25770 # type: textblock
25771 #: ../test-tool/libguestfs-test-tool.pod:30
25772 msgid "and the test tool will exit with code 0."
25773 msgstr ""
25774
25775 # type: textblock
25776 #: ../test-tool/libguestfs-test-tool.pod:32
25777 msgid ""
25778 "If it fails (and/or exits with non-zero error code), please paste the "
25779 "B<complete, unedited> output of the test tool into a bug report.  More "
25780 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25781 "> website."
25782 msgstr ""
25783
25784 # type: =item
25785 #: ../test-tool/libguestfs-test-tool.pod:41
25786 msgid "I<--help>"
25787 msgstr ""
25788
25789 # type: textblock
25790 #: ../test-tool/libguestfs-test-tool.pod:43
25791 msgid "Display short usage information and exit."
25792 msgstr ""
25793
25794 # type: =item
25795 #: ../test-tool/libguestfs-test-tool.pod:45
25796 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25797 msgstr ""
25798
25799 # type: textblock
25800 #: ../test-tool/libguestfs-test-tool.pod:47
25801 msgid ""
25802 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25803 "normally look in the C<$libexec> directory that was configured when the tool "
25804 "was built."
25805 msgstr ""
25806
25807 # type: =item
25808 #: ../test-tool/libguestfs-test-tool.pod:51
25809 msgid "I<--qemu qemu_binary>"
25810 msgstr ""
25811
25812 # type: textblock
25813 #: ../test-tool/libguestfs-test-tool.pod:53
25814 msgid ""
25815 "If you have downloaded another qemu binary, point this option at the full "
25816 "path of the binary to try it."
25817 msgstr ""
25818
25819 # type: =item
25820 #: ../test-tool/libguestfs-test-tool.pod:56
25821 msgid "I<--qemudir qemu_source_dir>"
25822 msgstr ""
25823
25824 # type: textblock
25825 #: ../test-tool/libguestfs-test-tool.pod:58
25826 msgid ""
25827 "If you have compiled qemu from source, point this option at the source "
25828 "directory to try it."
25829 msgstr ""
25830
25831 # type: =item
25832 #: ../test-tool/libguestfs-test-tool.pod:61
25833 msgid "I<--timeout N>"
25834 msgstr ""
25835
25836 # type: textblock
25837 #: ../test-tool/libguestfs-test-tool.pod:63
25838 msgid ""
25839 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25840 "does not usually need to be adjusted unless your machine is very slow."
25841 msgstr ""
25842
25843 # type: =head1
25844 #: ../test-tool/libguestfs-test-tool.pod:69
25845 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25846 msgstr ""
25847
25848 # type: textblock
25849 #: ../test-tool/libguestfs-test-tool.pod:71
25850 msgid ""
25851 "If you have compiled another version of qemu from source and would like to "
25852 "try that, then you can use the I<--qemudir> option to point to the qemu "
25853 "source directory."
25854 msgstr ""
25855
25856 # type: textblock
25857 #: ../test-tool/libguestfs-test-tool.pod:75
25858 msgid ""
25859 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25860 "option to point to the binary."
25861 msgstr ""
25862
25863 # type: textblock
25864 #: ../test-tool/libguestfs-test-tool.pod:78
25865 msgid ""
25866 "When using an alternate qemu with libguestfs, usually you would need to "
25867 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25868 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25869 "use either of the I<--qemudir> or I<--qemu> options."
25870 msgstr ""
25871
25872 # type: textblock
25873 #: ../test-tool/libguestfs-test-tool.pod:85
25874 msgid ""
25875 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25876 "I<1> if there was an error."
25877 msgstr ""
25878
25879 # type: =item
25880 #: ../test-tool/libguestfs-test-tool.pod:92
25881 msgid "/usr/libexec/libguestfs-test-tool-helper"
25882 msgstr ""
25883
25884 # type: textblock
25885 #: ../test-tool/libguestfs-test-tool.pod:94
25886 msgid ""
25887 "This helper program is run inside the appliance and provides additional "
25888 "tests."
25889 msgstr ""
25890
25891 # type: =item
25892 #: ../test-tool/libguestfs-test-tool.pod:97
25893 msgid "/usr/bin/mkisofs"
25894 msgstr ""
25895
25896 # type: textblock
25897 #: ../test-tool/libguestfs-test-tool.pod:99
25898 msgid ""
25899 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25900 "which is used as part of the tests."
25901 msgstr ""
25902
25903 # type: textblock
25904 #: ../test-tool/libguestfs-test-tool.pod:106
25905 msgid ""
25906 "For the full list of environment variables which may affect libguestfs, "
25907 "please see the L<guestfs(3)> manual page."
25908 msgstr ""
25909
25910 # type: textblock
25911 #: ../test-tool/libguestfs-test-tool.pod:111
25912 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25913 msgstr ""
25914
25915 # type: textblock
25916 #: ../test-tool/libguestfs-test-tool.pod:121
25917 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25918 msgstr ""
25919
25920 # type: textblock
25921 #: ../fuse/guestmount.pod:5
25922 msgid ""
25923 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25924 msgstr ""
25925
25926 # type: verbatim
25927 #: ../fuse/guestmount.pod:9
25928 #, no-wrap
25929 msgid ""
25930 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25931 "\n"
25932 msgstr ""
25933
25934 # type: verbatim
25935 #: ../fuse/guestmount.pod:11
25936 #, no-wrap
25937 msgid ""
25938 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25939 "\n"
25940 msgstr ""
25941
25942 # type: verbatim
25943 #: ../fuse/guestmount.pod:13
25944 #, no-wrap
25945 msgid ""
25946 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25947 "\n"
25948 msgstr ""
25949
25950 # type: textblock
25951 #: ../fuse/guestmount.pod:17
25952 msgid ""
25953 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25954 "machines.  If you do this, you risk disk corruption in the VM."
25955 msgstr ""
25956
25957 # type: textblock
25958 #: ../fuse/guestmount.pod:22
25959 msgid ""
25960 "The guestmount program can be used to mount virtual machine filesystems and "
25961 "other disk images on the host.  It uses libguestfs for access to the guest "
25962 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25963 "a mountable device."
25964 msgstr ""
25965
25966 # type: textblock
25967 #: ../fuse/guestmount.pod:27
25968 msgid ""
25969 "Along with other options, you have to give at least one device (I<-a> "
25970 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25971 "option) or use the I<-i> inspection option.  How this works is better "
25972 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25973 "below."
25974 msgstr ""
25975
25976 # type: textblock
25977 #: ../fuse/guestmount.pod:33
25978 msgid ""
25979 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25980 "by you, and the filesystem will not be visible to any other users unless you "
25981 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25982 "the filesystem, use the C<fusermount -u> command."
25983 msgstr ""
25984
25985 # type: textblock
25986 #: ../fuse/guestmount.pod:41
25987 msgid ""
25988 "For a typical Windows guest which has its main filesystem on the first "
25989 "partition:"
25990 msgstr ""
25991
25992 # type: verbatim
25993 #: ../fuse/guestmount.pod:44
25994 #, no-wrap
25995 msgid ""
25996 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25997 "\n"
25998 msgstr ""
25999
26000 # type: textblock
26001 #: ../fuse/guestmount.pod:46
26002 msgid ""
26003 "For a typical Linux guest which has a /boot filesystem on the first "
26004 "partition, and the root filesystem on a logical volume:"
26005 msgstr ""
26006
26007 # type: verbatim
26008 #: ../fuse/guestmount.pod:49
26009 #, no-wrap
26010 msgid ""
26011 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
26012 "\n"
26013 msgstr ""
26014
26015 # type: textblock
26016 #: ../fuse/guestmount.pod:51
26017 msgid "To get libguestfs to detect guest mountpoints for you:"
26018 msgstr ""
26019
26020 # type: verbatim
26021 #: ../fuse/guestmount.pod:53
26022 #, no-wrap
26023 msgid ""
26024 " guestmount -a guest.img -i --ro /mnt\n"
26025 "\n"
26026 msgstr ""
26027
26028 # type: textblock
26029 #: ../fuse/guestmount.pod:55
26030 msgid "For a libvirt guest called \"Guest\" you could do:"
26031 msgstr ""
26032
26033 # type: verbatim
26034 #: ../fuse/guestmount.pod:57
26035 #, no-wrap
26036 msgid ""
26037 " guestmount -d Guest -i --ro /mnt\n"
26038 "\n"
26039 msgstr ""
26040
26041 # type: textblock
26042 #: ../fuse/guestmount.pod:59
26043 msgid ""
26044 "If you don't know what filesystems are contained in a guest or disk image, "
26045 "use L<virt-filesystems(1)> first:"
26046 msgstr ""
26047
26048 # type: verbatim
26049 #: ../fuse/guestmount.pod:62
26050 #, no-wrap
26051 msgid ""
26052 " virt-filesystems MyGuest\n"
26053 "\n"
26054 msgstr ""
26055
26056 # type: textblock
26057 #: ../fuse/guestmount.pod:64
26058 msgid ""
26059 "If you want to trace the libguestfs calls but without excessive debugging "
26060 "information, we recommend:"
26061 msgstr ""
26062
26063 # type: verbatim
26064 #: ../fuse/guestmount.pod:67
26065 #, no-wrap
26066 msgid ""
26067 " guestmount [...] --trace /mnt\n"
26068 "\n"
26069 msgstr ""
26070
26071 # type: textblock
26072 #: ../fuse/guestmount.pod:69
26073 msgid "If you want to debug the program, we recommend:"
26074 msgstr ""
26075
26076 # type: verbatim
26077 #: ../fuse/guestmount.pod:71
26078 #, no-wrap
26079 msgid ""
26080 " guestmount [...] --trace --verbose /mnt\n"
26081 "\n"
26082 msgstr ""
26083
26084 # type: =item
26085 #: ../fuse/guestmount.pod:77
26086 msgid "B<-a image> | B<--add image>"
26087 msgstr ""
26088
26089 # type: textblock
26090 #: ../fuse/guestmount.pod:79
26091 msgid "Add a block device or virtual machine image."
26092 msgstr ""
26093
26094 # type: =item
26095 #: ../fuse/guestmount.pod:84
26096 msgid "B<-c URI> | B<--connect URI>"
26097 msgstr ""
26098
26099 # type: =item
26100 #: ../fuse/guestmount.pod:90
26101 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
26102 msgstr ""
26103
26104 # type: =item
26105 #: ../fuse/guestmount.pod:96
26106 msgid "B<--dir-cache-timeout N>"
26107 msgstr ""
26108
26109 # type: textblock
26110 #: ../fuse/guestmount.pod:98
26111 msgid ""
26112 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
26113 "seconds.  The readdir cache [actually, there are several semi-independent "
26114 "caches] is populated after a readdir(2) call with the stat and extended "
26115 "attributes of the files in the directory, in anticipation that they will be "
26116 "requested soon after."
26117 msgstr ""
26118
26119 # type: textblock
26120 #: ../fuse/guestmount.pod:104
26121 msgid ""
26122 "There is also a different attribute cache implemented by FUSE (see the FUSE "
26123 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
26124 "requests, only cache existing ones."
26125 msgstr ""
26126
26127 # type: =item
26128 #: ../fuse/guestmount.pod:115
26129 msgid "B<--format=raw|qcow2|..> | B<--format>"
26130 msgstr ""
26131
26132 # type: textblock
26133 #: ../fuse/guestmount.pod:122
26134 msgid ""
26135 "If you have untrusted raw-format guest disk images, you should use this "
26136 "option to specify the disk format.  This avoids a possible security problem "
26137 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
26138 "guestfs_add_drive_opts>."
26139 msgstr ""
26140
26141 # type: =item
26142 #: ../fuse/guestmount.pod:127
26143 msgid "B<--fuse-help>"
26144 msgstr ""
26145
26146 # type: textblock
26147 #: ../fuse/guestmount.pod:129
26148 msgid "Display help on special FUSE options (see I<-o> below)."
26149 msgstr ""
26150
26151 # type: textblock
26152 #: ../fuse/guestmount.pod:133
26153 msgid "Display brief help and exit."
26154 msgstr ""
26155
26156 # type: =item
26157 #: ../fuse/guestmount.pod:135
26158 msgid "B<-i> | B<--inspector>"
26159 msgstr ""
26160
26161 # type: =item
26162 #: ../fuse/guestmount.pod:146
26163 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
26164 msgstr ""
26165
26166 # type: textblock
26167 #: ../fuse/guestmount.pod:148
26168 msgid ""
26169 "Mount the named partition or logical volume on the given mountpoint B<in the "
26170 "guest> (this has nothing to do with mountpoints in the host)."
26171 msgstr ""
26172
26173 # type: textblock
26174 #: ../fuse/guestmount.pod:151
26175 msgid ""
26176 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
26177 "something on C</>."
26178 msgstr ""
26179
26180 # type: =item
26181 #: ../fuse/guestmount.pod:154
26182 msgid "B<-n> | B<--no-sync>"
26183 msgstr ""
26184
26185 # type: textblock
26186 #: ../fuse/guestmount.pod:156
26187 msgid ""
26188 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
26189 "unmounted.  If you specify this option, then we don't attempt to sync the "
26190 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
26191 msgstr ""
26192
26193 # type: =item
26194 #: ../fuse/guestmount.pod:161
26195 msgid "B<-o option> | B<--option option>"
26196 msgstr ""
26197
26198 # type: textblock
26199 #: ../fuse/guestmount.pod:163
26200 msgid "Pass extra options to FUSE."
26201 msgstr ""
26202
26203 # type: textblock
26204 #: ../fuse/guestmount.pod:165
26205 msgid ""
26206 "To get a list of all the extra options supported by FUSE, use the command "
26207 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
26208 "of them are a good idea."
26209 msgstr ""
26210
26211 # type: verbatim
26212 #: ../fuse/guestmount.pod:169
26213 #, no-wrap
26214 msgid ""
26215 " guestmount --fuse-help\n"
26216 "\n"
26217 msgstr ""
26218
26219 # type: textblock
26220 #: ../fuse/guestmount.pod:171
26221 msgid "Some potentially useful FUSE options:"
26222 msgstr ""
26223
26224 # type: =item
26225 #: ../fuse/guestmount.pod:175
26226 msgid "B<-o allow_other>"
26227 msgstr ""
26228
26229 # type: textblock
26230 #: ../fuse/guestmount.pod:177
26231 msgid "Allow other users to see the filesystem."
26232 msgstr ""
26233
26234 # type: =item
26235 #: ../fuse/guestmount.pod:179
26236 msgid "B<-o attr_timeout=N>"
26237 msgstr ""
26238
26239 # type: textblock
26240 #: ../fuse/guestmount.pod:181
26241 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
26242 msgstr ""
26243
26244 # type: =item
26245 #: ../fuse/guestmount.pod:183
26246 msgid "B<-o kernel_cache>"
26247 msgstr ""
26248
26249 # type: textblock
26250 #: ../fuse/guestmount.pod:185
26251 msgid ""
26252 "Allow the kernel to cache files (reduces the number of reads that have to go "
26253 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
26254 "afford the extra memory usage."
26255 msgstr ""
26256
26257 # type: =item
26258 #: ../fuse/guestmount.pod:189
26259 msgid "B<-o uid=N> B<-o gid=N>"
26260 msgstr ""
26261
26262 # type: textblock
26263 #: ../fuse/guestmount.pod:191
26264 msgid ""
26265 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
26266 "the chosen values."
26267 msgstr ""
26268
26269 # type: =item
26270 #: ../fuse/guestmount.pod:196
26271 msgid "B<-r> | B<--ro>"
26272 msgstr ""
26273
26274 # type: textblock
26275 #: ../fuse/guestmount.pod:198
26276 msgid ""
26277 "Add devices and mount everything read-only.  Also disallow writes and make "
26278 "the disk appear read-only to FUSE."
26279 msgstr ""
26280
26281 # type: textblock
26282 #: ../fuse/guestmount.pod:201
26283 msgid ""
26284 "This is highly recommended if you are not going to edit the guest disk.  If "
26285 "the guest is running and this option is I<not> supplied, then there is a "
26286 "strong risk of disk corruption in the guest.  We try to prevent this from "
26287 "happening, but it is not always possible."
26288 msgstr ""
26289
26290 # type: textblock
26291 #: ../fuse/guestmount.pod:206
26292 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26293 msgstr ""
26294
26295 # type: textblock
26296 #: ../fuse/guestmount.pod:210
26297 msgid "Enable SELinux support for the guest."
26298 msgstr ""
26299
26300 # type: =item
26301 #: ../fuse/guestmount.pod:212
26302 msgid "B<-v> | B<--verbose>"
26303 msgstr ""
26304
26305 # type: textblock
26306 #: ../fuse/guestmount.pod:214
26307 msgid "Enable verbose messages from underlying libguestfs."
26308 msgstr ""
26309
26310 # type: =item
26311 #: ../fuse/guestmount.pod:216
26312 msgid "B<-V> | B<--version>"
26313 msgstr ""
26314
26315 # type: textblock
26316 #: ../fuse/guestmount.pod:218
26317 msgid "Display the program version and exit."
26318 msgstr ""
26319
26320 # type: =item
26321 #: ../fuse/guestmount.pod:220
26322 msgid "B<-w> | B<--rw>"
26323 msgstr ""
26324
26325 # type: textblock
26326 #: ../fuse/guestmount.pod:222
26327 msgid ""
26328 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26329 "FOR READ AND WRITE>."
26330 msgstr ""
26331
26332 # type: =item
26333 #: ../fuse/guestmount.pod:225
26334 msgid "B<-x> | B<--trace>"
26335 msgstr ""
26336
26337 # type: textblock
26338 #: ../fuse/guestmount.pod:227
26339 msgid "Trace libguestfs calls."
26340 msgstr ""
26341
26342 # type: textblock
26343 #: ../fuse/guestmount.pod:229
26344 msgid "This also stops the daemon from forking into the background."
26345 msgstr ""
26346
26347 # type: textblock
26348 #: ../fuse/guestmount.pod:235
26349 msgid ""
26350 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26351 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26352 "net/>."
26353 msgstr ""
26354
26355 # type: textblock
26356 #: ../tools/virt-edit.pl:34
26357 msgid "virt-edit - Edit a file in a virtual machine"
26358 msgstr ""
26359
26360 # type: verbatim
26361 #: ../tools/virt-edit.pl:38
26362 #, no-wrap
26363 msgid ""
26364 " virt-edit [--options] domname file\n"
26365 "\n"
26366 msgstr ""
26367
26368 # type: verbatim
26369 #: ../tools/virt-edit.pl:40
26370 #, no-wrap
26371 msgid ""
26372 " virt-edit [--options] disk.img [disk.img ...] file\n"
26373 "\n"
26374 msgstr ""
26375
26376 # type: verbatim
26377 #: ../tools/virt-edit.pl:42
26378 #, no-wrap
26379 msgid ""
26380 " virt-edit [domname|disk.img] file -e 'expr'\n"
26381 "\n"
26382 msgstr ""
26383
26384 # type: textblock
26385 #: ../tools/virt-edit.pl:46
26386 msgid ""
26387 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26388 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26389 "doing this, but doesn't catch all cases."
26390 msgstr ""
26391
26392 # type: textblock
26393 #: ../tools/virt-edit.pl:52
26394 msgid ""
26395 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26396 "the named virtual machine (or disk image)."
26397 msgstr ""
26398
26399 # type: textblock
26400 #: ../tools/virt-edit.pl:55
26401 msgid ""
26402 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26403 "you should look at the L<guestfish(1)> tool."
26404 msgstr ""
26405
26406 # type: textblock
26407 #: ../tools/virt-edit.pl:60
26408 msgid "Edit the named files interactively:"
26409 msgstr ""
26410
26411 # type: verbatim
26412 #: ../tools/virt-edit.pl:62
26413 #, no-wrap
26414 msgid ""
26415 " virt-edit mydomain /boot/grub/grub.conf\n"
26416 "\n"
26417 msgstr ""
26418
26419 # type: verbatim
26420 #: ../tools/virt-edit.pl:64
26421 #, no-wrap
26422 msgid ""
26423 " virt-edit mydomain /etc/passwd\n"
26424 "\n"
26425 msgstr ""
26426
26427 # type: textblock
26428 #: ../tools/virt-edit.pl:66
26429 msgid ""
26430 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26431 "below).  To change the init default level to 5:"
26432 msgstr ""
26433
26434 # type: verbatim
26435 #: ../tools/virt-edit.pl:70
26436 #, no-wrap
26437 msgid ""
26438 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26439 "\n"
26440 msgstr ""
26441
26442 # type: textblock
26443 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
26444 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108
26445 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
26446 msgid "Display brief help."
26447 msgstr ""
26448
26449 # type: textblock
26450 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
26451 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
26452 #: ../tools/virt-tar.pl:116 ../tools/virt-make-fs.pl:171
26453 #: ../tools/virt-list-partitions.pl:72
26454 msgid "Display version number and exit."
26455 msgstr ""
26456
26457 # type: =item
26458 #: ../tools/virt-edit.pl:96
26459 msgid "B<--backup extension> | B<-b extension>"
26460 msgstr ""
26461
26462 # type: textblock
26463 #: ../tools/virt-edit.pl:98
26464 msgid ""
26465 "Create a backup of the original file I<in the guest disk image>.  The backup "
26466 "has the original filename with C<extension> added."
26467 msgstr ""
26468
26469 # type: textblock
26470 #: ../tools/virt-edit.pl:101
26471 msgid ""
26472 "Usually the first character of C<extension> would be a dot C<.> so you would "
26473 "write:"
26474 msgstr ""
26475
26476 # type: verbatim
26477 #: ../tools/virt-edit.pl:104
26478 #, no-wrap
26479 msgid ""
26480 " virt-edit -b .orig [etc]\n"
26481 "\n"
26482 msgstr ""
26483
26484 # type: textblock
26485 #: ../tools/virt-edit.pl:106
26486 msgid "By default, no backup file is made."
26487 msgstr ""
26488
26489 # type: =item
26490 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
26491 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122
26492 #: ../tools/virt-list-partitions.pl:78
26493 msgid "B<--connect URI> | B<-c URI>"
26494 msgstr ""
26495
26496 # type: textblock
26497 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
26498 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124
26499 #: ../tools/virt-list-partitions.pl:80
26500 msgid ""
26501 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26502 "to the default libvirt hypervisor."
26503 msgstr ""
26504
26505 # type: textblock
26506 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
26507 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127
26508 #: ../tools/virt-list-partitions.pl:83
26509 msgid ""
26510 "If you specify guest block devices directly, then libvirt is not used at all."
26511 msgstr ""
26512
26513 # type: =item
26514 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
26515 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
26516 #: ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
26517 msgid "B<--format> raw"
26518 msgstr ""
26519
26520 # type: textblock
26521 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
26522 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136
26523 #: ../tools/virt-list-partitions.pl:92
26524 msgid ""
26525 "Specify the format of disk images given on the command line.  If this is "
26526 "omitted then the format is autodetected from the content of the disk image."
26527 msgstr ""
26528
26529 # type: textblock
26530 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
26531 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140
26532 #: ../tools/virt-list-partitions.pl:96
26533 msgid ""
26534 "If disk images are requested from libvirt, then this program asks libvirt "
26535 "for this information.  In this case, the value of the format parameter is "
26536 "ignored."
26537 msgstr ""
26538
26539 # type: textblock
26540 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
26541 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
26542 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144
26543 #: ../tools/virt-list-partitions.pl:100
26544 msgid ""
26545 "If working with untrusted raw-format guest disk images, you should ensure "
26546 "the format is always specified."
26547 msgstr ""
26548
26549 # type: =item
26550 #: ../tools/virt-edit.pl:141
26551 msgid "B<--expr EXPR> | B<-e EXPR>"
26552 msgstr ""
26553
26554 # type: textblock
26555 #: ../tools/virt-edit.pl:143
26556 msgid ""
26557 "Instead of launching the external editor, non-interactively apply the Perl "
26558 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26559 "EDITING> below."
26560 msgstr ""
26561
26562 # type: textblock
26563 #: ../tools/virt-edit.pl:147
26564 msgid ""
26565 "Be careful to properly quote the expression to prevent it from being altered "
26566 "by the shell."
26567 msgstr ""
26568
26569 # type: =head1
26570 #: ../tools/virt-edit.pl:268
26571 msgid "NON-INTERACTIVE EDITING"
26572 msgstr ""
26573
26574 # type: textblock
26575 #: ../tools/virt-edit.pl:270
26576 msgid ""
26577 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26578 "administrator can interactively edit the file."
26579 msgstr ""
26580
26581 # type: textblock
26582 #: ../tools/virt-edit.pl:273
26583 msgid ""
26584 "There are two ways also to use C<virt-edit> from scripts in order to make "
26585 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26586 "like this, it's less error-prone to write scripts directly using the "
26587 "libguestfs API and Augeas for configuration file editing.)"
26588 msgstr ""
26589
26590 # type: textblock
26591 #: ../tools/virt-edit.pl:279
26592 msgid ""
26593 "The first method is to temporarily set C<$EDITOR> to any script or program "
26594 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26595 "update C<tmpfile> in place however it likes."
26596 msgstr ""
26597
26598 # type: textblock
26599 #: ../tools/virt-edit.pl:283
26600 msgid ""
26601 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26602 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26603 "instances of C<foo> with C<bar> in a file:"
26604 msgstr ""
26605
26606 # type: verbatim
26607 #: ../tools/virt-edit.pl:287
26608 #, no-wrap
26609 msgid ""
26610 " virt-edit domname filename -e 's/foo/bar/'\n"
26611 "\n"
26612 msgstr ""
26613
26614 # type: textblock
26615 #: ../tools/virt-edit.pl:289
26616 msgid ""
26617 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26618 "For example to delete root's password you could do:"
26619 msgstr ""
26620
26621 # type: verbatim
26622 #: ../tools/virt-edit.pl:292
26623 #, no-wrap
26624 msgid ""
26625 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26626 "\n"
26627 msgstr ""
26628
26629 # type: textblock
26630 #: ../tools/virt-edit.pl:294
26631 msgid ""
26632 "What really happens is that the snippet is evaluated as a Perl expression "
26633 "for each line of the file.  The line, including the final C<\\n>, is passed "
26634 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26635 msgstr ""
26636
26637 # type: textblock
26638 #: ../tools/virt-edit.pl:299
26639 msgid ""
26640 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26641 "C<apache> user account from the password file you can do:"
26642 msgstr ""
26643
26644 # type: verbatim
26645 #: ../tools/virt-edit.pl:302
26646 #, no-wrap
26647 msgid ""
26648 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26649 "\n"
26650 msgstr ""
26651
26652 # type: textblock
26653 #: ../tools/virt-edit.pl:304
26654 msgid ""
26655 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26656 "the end of the file is rather difficult this way since there is no concept "
26657 "of \"last line of the file\" - your expression just doesn't get called "
26658 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26659 "want to do this."
26660 msgstr ""
26661
26662 # type: textblock
26663 #: ../tools/virt-edit.pl:310
26664 msgid ""
26665 "The variable C<$lineno> contains the current line number.  As is "
26666 "traditional, the first line in the file is number C<1>."
26667 msgstr ""
26668
26669 # type: textblock
26670 #: ../tools/virt-edit.pl:313
26671 msgid ""
26672 "The return value from the expression is ignored, but the expression may call "
26673 "C<die> in order to abort the whole program, leaving the original file "
26674 "untouched."
26675 msgstr ""
26676
26677 # type: textblock
26678 #: ../tools/virt-edit.pl:317
26679 msgid ""
26680 "Remember when matching the end of a line that C<$_> may contain the final C<"
26681 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26682 "newline then neither of these.  Thus to match or substitute some text at the "
26683 "end of a line, use this regular expression:"
26684 msgstr ""
26685
26686 # type: verbatim
26687 #: ../tools/virt-edit.pl:322
26688 #, no-wrap
26689 msgid ""
26690 " /some text(\\r?\\n)?$/\n"
26691 "\n"
26692 msgstr ""
26693
26694 # type: textblock
26695 #: ../tools/virt-edit.pl:324
26696 msgid ""
26697 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26698 "$_> itself (since that would remove all newlines from the file):"
26699 msgstr ""
26700
26701 # type: verbatim
26702 #: ../tools/virt-edit.pl:328
26703 #, no-wrap
26704 msgid ""
26705 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26706 "\n"
26707 msgstr ""
26708
26709 # type: =item
26710 #: ../tools/virt-edit.pl:334
26711 msgid "C<EDITOR>"
26712 msgstr ""
26713
26714 # type: textblock
26715 #: ../tools/virt-edit.pl:336
26716 msgid ""
26717 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26718 "\"emacs -nw\">"
26719 msgstr ""
26720
26721 # type: textblock
26722 #: ../tools/virt-edit.pl:339
26723 msgid "If not set, C<vi> is used."
26724 msgstr ""
26725
26726 # type: =head2
26727 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
26728 #: ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182
26729 #: ../tools/virt-tar.pl:274 ../tools/virt-make-fs.pl:527
26730 #: ../tools/virt-list-partitions.pl:250
26731 msgid "SHELL QUOTING"
26732 msgstr ""
26733
26734 # type: textblock
26735 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
26736 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
26737 #: ../tools/virt-tar.pl:276 ../tools/virt-make-fs.pl:529
26738 #: ../tools/virt-list-partitions.pl:252
26739 msgid ""
26740 "Libvirt guest names can contain arbitrary characters, some of which have "
26741 "meaning to the shell such as C<#> and space.  You may need to quote or "
26742 "escape these characters on the command line.  See the shell manual page L<sh"
26743 "(1)> for details."
26744 msgstr ""
26745
26746 # type: textblock
26747 #: ../tools/virt-edit.pl:352
26748 msgid ""
26749 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26750 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26751 "L<perlre(1)>."
26752 msgstr ""
26753
26754 # type: =head1
26755 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:598
26756 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
26757 #: ../tools/virt-tar.pl:292 ../tools/virt-make-fs.pl:559
26758 #: ../tools/virt-list-partitions.pl:269
26759 msgid "AUTHOR"
26760 msgstr ""
26761
26762 # type: textblock
26763 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:600
26764 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
26765 #: ../tools/virt-tar.pl:294 ../tools/virt-make-fs.pl:561
26766 #: ../tools/virt-list-partitions.pl:271
26767 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26768 msgstr ""
26769
26770 # type: textblock
26771 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
26772 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26773 msgstr ""
26774
26775 # type: textblock
26776 #: ../tools/virt-win-reg.pl:37
26777 msgid ""
26778 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26779 msgstr ""
26780
26781 # type: verbatim
26782 #: ../tools/virt-win-reg.pl:41
26783 #, no-wrap
26784 msgid ""
26785 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26786 "\n"
26787 msgstr ""
26788
26789 # type: verbatim
26790 #: ../tools/virt-win-reg.pl:43
26791 #, no-wrap
26792 msgid ""
26793 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26794 "\n"
26795 msgstr ""
26796
26797 # type: verbatim
26798 #: ../tools/virt-win-reg.pl:45
26799 #, no-wrap
26800 msgid ""
26801 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26802 "\n"
26803 msgstr ""
26804
26805 # type: verbatim
26806 #: ../tools/virt-win-reg.pl:47
26807 #, no-wrap
26808 msgid ""
26809 " virt-win-reg --merge domname [input.reg ...]\n"
26810 "\n"
26811 msgstr ""
26812
26813 # type: verbatim
26814 #: ../tools/virt-win-reg.pl:49
26815 #, no-wrap
26816 msgid ""
26817 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26818 "\n"
26819 msgstr ""
26820
26821 # type: textblock
26822 #: ../tools/virt-win-reg.pl:53
26823 msgid ""
26824 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26825 "virtual machines.  If you do this, you I<will> get irreversible disk "
26826 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26827 "but doesn't catch all cases."
26828 msgstr ""
26829
26830 # type: textblock
26831 #: ../tools/virt-win-reg.pl:58
26832 msgid ""
26833 "Modifying the Windows Registry is an inherently risky operation.  The format "
26834 "is deliberately obscure and undocumented, and Registry changes can leave the "
26835 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26836 "you have a reliable backup first."
26837 msgstr ""
26838
26839 # type: textblock
26840 #: ../tools/virt-win-reg.pl:65
26841 msgid ""
26842 "This program can export and merge Windows Registry entries from a Windows "
26843 "guest."
26844 msgstr ""
26845
26846 # type: textblock
26847 #: ../tools/virt-win-reg.pl:68
26848 msgid ""
26849 "The first parameter is the libvirt guest name or the raw disk image of a "
26850 "Windows guest."
26851 msgstr ""
26852
26853 # type: textblock
26854 #: ../tools/virt-win-reg.pl:71
26855 msgid ""
26856 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26857 "exported (recursively).  For example:"
26858 msgstr ""
26859
26860 # type: verbatim
26861 #: ../tools/virt-win-reg.pl:74
26862 #, no-wrap
26863 msgid ""
26864 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26865 "\n"
26866 msgstr ""
26867
26868 # type: textblock
26869 #: ../tools/virt-win-reg.pl:76
26870 msgid ""
26871 "You can also display single values from within registry keys, for example:"
26872 msgstr ""
26873
26874 # type: verbatim
26875 #: ../tools/virt-win-reg.pl:79
26876 #, no-wrap
26877 msgid ""
26878 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26879 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26880 " Windows 7 Enterprise\n"
26881 "\n"
26882 msgstr ""
26883
26884 # type: textblock
26885 #: ../tools/virt-win-reg.pl:83
26886 msgid ""
26887 "With C<--merge>, you can merge a textual regedit file into the Windows "
26888 "Registry:"
26889 msgstr ""
26890
26891 # type: verbatim
26892 #: ../tools/virt-win-reg.pl:86
26893 #, no-wrap
26894 msgid ""
26895 " $ virt-win-reg --merge Windows7 changes.reg\n"
26896 "\n"
26897 msgstr ""
26898
26899 # type: =head2
26900 #: ../tools/virt-win-reg.pl:88
26901 msgid "NOTE"
26902 msgstr ""
26903
26904 # type: textblock
26905 #: ../tools/virt-win-reg.pl:90
26906 msgid ""
26907 "This program is only meant for simple access to the registry.  If you want "
26908 "to do complicated things with the registry, we suggest you download the "
26909 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26910 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26911 "L<hivexregedit(1)>."
26912 msgstr ""
26913
26914 # type: =item
26915 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
26916 msgid "B<--debug>"
26917 msgstr ""
26918
26919 # type: textblock
26920 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
26921 msgid "Enable debugging messages."
26922 msgstr ""
26923
26924 # type: =item
26925 #: ../tools/virt-win-reg.pl:157
26926 msgid "B<--merge>"
26927 msgstr ""
26928
26929 # type: textblock
26930 #: ../tools/virt-win-reg.pl:159
26931 msgid ""
26932 "In merge mode, this merges a textual regedit file into the Windows Registry "
26933 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26934 "displays or exports Registry entries instead."
26935 msgstr ""
26936
26937 # type: textblock
26938 #: ../tools/virt-win-reg.pl:163
26939 msgid ""
26940 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26941 "result in disk corruption.  However exporting (without this flag)  is always "
26942 "safe."
26943 msgstr ""
26944
26945 # type: =item
26946 #: ../tools/virt-win-reg.pl:171
26947 msgid "B<--encoding> UTF-16LE|ASCII"
26948 msgstr ""
26949
26950 # type: textblock
26951 #: ../tools/virt-win-reg.pl:173
26952 msgid ""
26953 "When merging (only), you may need to specify the encoding for strings to be "
26954 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26955 "(3)/ENCODING STRINGS>."
26956 msgstr ""
26957
26958 # type: textblock
26959 #: ../tools/virt-win-reg.pl:177
26960 msgid ""
26961 "The default is to use UTF-16LE, which should work with recent versions of "
26962 "Windows."
26963 msgstr ""
26964
26965 # type: =head2
26966 #: ../tools/virt-win-reg.pl:402
26967 msgid "SUPPORTED SYSTEMS"
26968 msgstr ""
26969
26970 # type: textblock
26971 #: ../tools/virt-win-reg.pl:404
26972 msgid ""
26973 "The program currently supports Windows NT-derived guests starting with "
26974 "Windows XP through to at least Windows 7."
26975 msgstr ""
26976
26977 # type: textblock
26978 #: ../tools/virt-win-reg.pl:407
26979 msgid ""
26980 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26981 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26982 "and C<HKEY_USERS\\.DEFAULT>."
26983 msgstr ""
26984
26985 # type: textblock
26986 #: ../tools/virt-win-reg.pl:411
26987 msgid ""
26988 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26989 "C<HKEY_USERS>."
26990 msgstr ""
26991
26992 # type: textblock
26993 #: ../tools/virt-win-reg.pl:414
26994 msgid ""
26995 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26996 "time."
26997 msgstr ""
26998
26999 # type: =head2
27000 #: ../tools/virt-win-reg.pl:417
27001 msgid "ENCODING"
27002 msgstr ""
27003
27004 # type: textblock
27005 #: ../tools/virt-win-reg.pl:419
27006 msgid ""
27007 "C<virt-win-reg> expects that regedit files have already been reencoded in "
27008 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
27009 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
27010 "Windows-style line endings, you may need to reencode the whole file before "
27011 "or after processing."
27012 msgstr ""
27013
27014 # type: textblock
27015 #: ../tools/virt-win-reg.pl:425
27016 msgid ""
27017 "To reencode a file from Windows format to Linux (before processing it with "
27018 "the C<--merge> option), you would do something like this:"
27019 msgstr ""
27020
27021 # type: verbatim
27022 #: ../tools/virt-win-reg.pl:428
27023 #, no-wrap
27024 msgid ""
27025 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
27026 "\n"
27027 msgstr ""
27028
27029 # type: textblock
27030 #: ../tools/virt-win-reg.pl:430
27031 msgid ""
27032 "To go in the opposite direction, after exporting and before sending the file "
27033 "to a Windows user, do something like this:"
27034 msgstr ""
27035
27036 # type: verbatim
27037 #: ../tools/virt-win-reg.pl:433
27038 #, no-wrap
27039 msgid ""
27040 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
27041 "\n"
27042 msgstr ""
27043
27044 # type: textblock
27045 #: ../tools/virt-win-reg.pl:435
27046 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
27047 msgstr ""
27048
27049 # type: textblock
27050 #: ../tools/virt-win-reg.pl:437
27051 msgid ""
27052 "If you are unsure about the current encoding, use the L<file(1)> command.  "
27053 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
27054 "style (CRLF) line endings, like this:"
27055 msgstr ""
27056
27057 # type: verbatim
27058 #: ../tools/virt-win-reg.pl:441
27059 #, no-wrap
27060 msgid ""
27061 " $ file software.reg\n"
27062 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
27063 " with CRLF line terminators\n"
27064 "\n"
27065 msgstr ""
27066
27067 # type: textblock
27068 #: ../tools/virt-win-reg.pl:445
27069 msgid "This file would need conversion before you could C<--merge> it."
27070 msgstr ""
27071
27072 # type: =head2
27073 #: ../tools/virt-win-reg.pl:447
27074 msgid "CurrentControlSet etc."
27075 msgstr ""
27076
27077 # type: textblock
27078 #: ../tools/virt-win-reg.pl:449
27079 msgid ""
27080 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
27081 "Registry at the level of the hive file, and therefore you cannot modify "
27082 "these."
27083 msgstr ""
27084
27085 # type: textblock
27086 #: ../tools/virt-win-reg.pl:453
27087 msgid ""
27088 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
27089 "circumstances it might refer to another control set.  The way to find out is "
27090 "to look at the C<HKLM\\SYSTEM\\Select> key:"
27091 msgstr ""
27092
27093 # type: verbatim
27094 #: ../tools/virt-win-reg.pl:457
27095 #, no-wrap
27096 msgid ""
27097 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
27098 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
27099 " \"Current\"=dword:00000001\n"
27100 " \"Default\"=dword:00000001\n"
27101 " \"Failed\"=dword:00000000\n"
27102 " \"LastKnownGood\"=dword:00000002\n"
27103 "\n"
27104 msgstr ""
27105
27106 # type: textblock
27107 #: ../tools/virt-win-reg.pl:464
27108 msgid "\"Current\" is the one which Windows will choose when it boots."
27109 msgstr ""
27110
27111 # type: textblock
27112 #: ../tools/virt-win-reg.pl:466
27113 msgid ""
27114 "Similarly, other C<Current...> keys in the path may need to be replaced."
27115 msgstr ""
27116
27117 # type: =head1
27118 #: ../tools/virt-win-reg.pl:469
27119 msgid "WINDOWS TIPS"
27120 msgstr ""
27121
27122 # type: textblock
27123 #: ../tools/virt-win-reg.pl:471
27124 msgid ""
27125 "Note that some of these tips modify the guest disk image.  The guest I<must> "
27126 "be shut off, else you will get disk corruption."
27127 msgstr ""
27128
27129 # type: =head2
27130 #: ../tools/virt-win-reg.pl:474
27131 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
27132 msgstr ""
27133
27134 # type: textblock
27135 #: ../tools/virt-win-reg.pl:476
27136 msgid ""
27137 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
27138 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
27139 "is uploaded into C<C:\\>:"
27140 msgstr ""
27141
27142 # type: verbatim
27143 #: ../tools/virt-win-reg.pl:480
27144 #, no-wrap
27145 msgid ""
27146 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
27147 "\n"
27148 msgstr ""
27149
27150 # type: textblock
27151 #: ../tools/virt-win-reg.pl:482
27152 msgid "Prepare a regedit file containing the registry change:"
27153 msgstr ""
27154
27155 # type: verbatim
27156 #: ../tools/virt-win-reg.pl:484
27157 #, no-wrap
27158 msgid ""
27159 " cat > test.reg <<'EOF'\n"
27160 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
27161 " \"Test\"=\"c:\\\\test.bat\"\n"
27162 " EOF\n"
27163 "\n"
27164 msgstr ""
27165
27166 # type: textblock
27167 #: ../tools/virt-win-reg.pl:489
27168 msgid ""
27169 "In this example we use the key C<RunOnce> which means that the script will "
27170 "run precisely once when the first user logs in.  If you want it to run every "
27171 "time a user logs in, replace C<RunOnce> with C<Run>."
27172 msgstr ""
27173
27174 # type: textblock
27175 #: ../tools/virt-win-reg.pl:493
27176 msgid "Now update the registry:"
27177 msgstr ""
27178
27179 # type: verbatim
27180 #: ../tools/virt-win-reg.pl:495
27181 #, no-wrap
27182 msgid ""
27183 " virt-win-reg --merge WindowsGuest test.reg\n"
27184 "\n"
27185 msgstr ""
27186
27187 # type: =head2
27188 #: ../tools/virt-win-reg.pl:497
27189 msgid "INSTALLING A SERVICE"
27190 msgstr ""
27191
27192 # type: textblock
27193 #: ../tools/virt-win-reg.pl:499
27194 msgid ""
27195 "This section assumes you are familiar with Windows services, and you either "
27196 "have a program which handles the Windows Service Control Protocol directly "
27197 "or you want to run any program using a service wrapper like SrvAny or the "
27198 "free RHSrvAny."
27199 msgstr ""
27200
27201 # type: textblock
27202 #: ../tools/virt-win-reg.pl:504
27203 msgid ""
27204 "First upload the program and optionally the service wrapper.  In this case "
27205 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
27206 msgstr ""
27207
27208 # type: verbatim
27209 #: ../tools/virt-win-reg.pl:508
27210 #, no-wrap
27211 msgid ""
27212 " guestfish -i -d WindowsGuest <<EOF\n"
27213 "   upload rhsrvany.exe /rhsrvany.exe\n"
27214 "   upload test.exe /test.exe\n"
27215 " EOF\n"
27216 "\n"
27217 msgstr ""
27218
27219 # type: textblock
27220 #: ../tools/virt-win-reg.pl:513
27221 msgid ""
27222 "Prepare a regedit file containing the registry changes.  In this example, "
27223 "the first registry change is needed for the service itself or the service "
27224 "wrapper (if used).  The second registry change is only needed because I am "
27225 "using the RHSrvAny service wrapper."
27226 msgstr ""
27227
27228 # type: verbatim
27229 #: ../tools/virt-win-reg.pl:518
27230 #, no-wrap
27231 msgid ""
27232 " cat > service.reg <<'EOF'\n"
27233 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
27234 " \"Type\"=dword:00000010\n"
27235 " \"Start\"=dword:00000002\n"
27236 " \"ErrorControl\"=dword:00000001\n"
27237 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
27238 " \"DisplayName\"=\"RHSrvAny\"\n"
27239 " \"ObjectName\"=\"NetworkService\"\n"
27240 " \n"
27241 msgstr ""
27242
27243 # type: verbatim
27244 #: ../tools/virt-win-reg.pl:527
27245 #, no-wrap
27246 msgid ""
27247 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
27248 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
27249 " \"PWD\"=\"c:\\\\Temp\"\n"
27250 " EOF\n"
27251 "\n"
27252 msgstr ""
27253
27254 # type: textblock
27255 #: ../tools/virt-win-reg.pl:538
27256 msgid ""
27257 "For use of C<ControlSet001> see the section above in this manual page.  You "
27258 "may need to adjust this according to the control set that is in use by the "
27259 "guest."
27260 msgstr ""
27261
27262 # type: textblock
27263 #: ../tools/virt-win-reg.pl:544
27264 msgid ""
27265 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
27266 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
27267 "privileged account."
27268 msgstr ""
27269
27270 # type: textblock
27271 #: ../tools/virt-win-reg.pl:550
27272 msgid ""
27273 "For the meaning of the magic numbers, see this Microsoft KB article: "
27274 "L<http://support.microsoft.com/kb/103000>."
27275 msgstr ""
27276
27277 # type: textblock
27278 #: ../tools/virt-win-reg.pl:555
27279 msgid "Update the registry:"
27280 msgstr ""
27281
27282 # type: verbatim
27283 #: ../tools/virt-win-reg.pl:557
27284 #, no-wrap
27285 msgid ""
27286 " virt-win-reg --merge WindowsGuest service.reg\n"
27287 "\n"
27288 msgstr ""
27289
27290 # type: textblock
27291 #: ../tools/virt-win-reg.pl:561
27292 msgid ""
27293 "Be careful when passing parameters containing C<\\> (backslash) in the "
27294 "shell.  Usually you will have to use 'single quotes' or double backslashes "
27295 "(but not both) to protect them from the shell."
27296 msgstr ""
27297
27298 # type: textblock
27299 #: ../tools/virt-win-reg.pl:565
27300 msgid "Paths and value names are case-insensitive."
27301 msgstr ""
27302
27303 # type: textblock
27304 #: ../tools/virt-win-reg.pl:574
27305 msgid ""
27306 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
27307 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
27308 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27309 msgstr ""
27310
27311 # type: textblock
27312 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
27313 msgid ""
27314 "When reporting bugs, please enable debugging and capture the I<complete> "
27315 "output:"
27316 msgstr ""
27317
27318 # type: verbatim
27319 #: ../tools/virt-win-reg.pl:592
27320 #, no-wrap
27321 msgid ""
27322 " export LIBGUESTFS_DEBUG=1\n"
27323 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
27324 "\n"
27325 msgstr ""
27326
27327 # type: textblock
27328 #: ../tools/virt-win-reg.pl:595
27329 msgid ""
27330 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
27331 "redhat.com/>"
27332 msgstr ""
27333
27334 # type: textblock
27335 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510
27336 #: ../tools/virt-make-fs.pl:565
27337 msgid "Copyright (C) 2010 Red Hat Inc."
27338 msgstr ""
27339
27340 # type: textblock
27341 #: ../tools/virt-resize.pl:42
27342 msgid "virt-resize - Resize a virtual machine disk"
27343 msgstr ""
27344
27345 # type: verbatim
27346 #: ../tools/virt-resize.pl:46
27347 #, no-wrap
27348 msgid ""
27349 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27350 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27351 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27352 "\n"
27353 msgstr ""
27354
27355 # type: textblock
27356 #: ../tools/virt-resize.pl:52
27357 msgid ""
27358 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27359 "larger or smaller overall, and resizing or deleting any partitions contained "
27360 "within."
27361 msgstr ""
27362
27363 # type: textblock
27364 #: ../tools/virt-resize.pl:56
27365 msgid ""
27366 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27367 "not> be used on live virtual machines - for consistent results, shut the "
27368 "virtual machine down before resizing it."
27369 msgstr ""
27370
27371 # type: textblock
27372 #: ../tools/virt-resize.pl:60
27373 msgid ""
27374 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
27375 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
27376 msgstr ""
27377
27378 # type: textblock
27379 #: ../tools/virt-resize.pl:66
27380 msgid ""
27381 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27382 "fill the extra 5GB of space."
27383 msgstr ""
27384
27385 # type: verbatim
27386 #: ../tools/virt-resize.pl:69
27387 #, no-wrap
27388 msgid ""
27389 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27390 " virt-filesystems --long --h --all -a olddisk\n"
27391 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27392 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27393 "\n"
27394 msgstr ""
27395
27396 # type: textblock
27397 #: ../tools/virt-resize.pl:74
27398 msgid ""
27399 "As above, but make the /boot partition 200MB bigger, while giving the "
27400 "remaining space to /dev/sda2:"
27401 msgstr ""
27402
27403 # type: verbatim
27404 #: ../tools/virt-resize.pl:77
27405 #, no-wrap
27406 msgid ""
27407 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27408 "\n"
27409 msgstr ""
27410
27411 # type: textblock
27412 #: ../tools/virt-resize.pl:79
27413 msgid "As above, but the output format will be uncompressed qcow2:"
27414 msgstr ""
27415
27416 # type: verbatim
27417 #: ../tools/virt-resize.pl:81
27418 #, no-wrap
27419 msgid ""
27420 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27421 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27422 "\n"
27423 msgstr ""
27424
27425 # type: =head1
27426 #: ../tools/virt-resize.pl:84
27427 msgid "DETAILED USAGE"
27428 msgstr ""
27429
27430 # type: =head2
27431 #: ../tools/virt-resize.pl:86
27432 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27433 msgstr ""
27434
27435 # type: =item
27436 #: ../tools/virt-resize.pl:90
27437 msgid "1. Shut down the virtual machine"
27438 msgstr ""
27439
27440 # type: =item
27441 #: ../tools/virt-resize.pl:92
27442 msgid "2. Locate input disk image"
27443 msgstr ""
27444
27445 # type: textblock
27446 #: ../tools/virt-resize.pl:94
27447 msgid ""
27448 "Locate the input disk image (ie. the file or device on the host containing "
27449 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27450 "dumpxml> like this to find the disk image name:"
27451 msgstr ""
27452
27453 # type: verbatim
27454 #: ../tools/virt-resize.pl:98
27455 #, no-wrap
27456 msgid ""
27457 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27458 " Found 1 nodes:\n"
27459 " -- NODE --\n"
27460 " <source dev=\"/dev/vg/lv_guest\" />\n"
27461 "\n"
27462 msgstr ""
27463
27464 # type: =item
27465 #: ../tools/virt-resize.pl:103
27466 msgid "3. Look at current sizing"
27467 msgstr ""
27468
27469 # type: textblock
27470 #: ../tools/virt-resize.pl:105
27471 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
27472 msgstr ""
27473
27474 # type: verbatim
27475 #: ../tools/virt-resize.pl:108
27476 #, no-wrap
27477 msgid ""
27478 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27479 " Name       Type       Size  Parent\n"
27480 " /dev/sda1  partition  101M  /dev/sda\n"
27481 " /dev/sda2  partition  7.9G  /dev/sda\n"
27482 " /dev/sda   device     8.0G  -\n"
27483 "\n"
27484 msgstr ""
27485
27486 # type: textblock
27487 #: ../tools/virt-resize.pl:114
27488 msgid ""
27489 "(This example is a virtual machine with an 8 GB disk which we would like to "
27490 "expand up to 10 GB)."
27491 msgstr ""
27492
27493 # type: =item
27494 #: ../tools/virt-resize.pl:117
27495 msgid "4. Create output disk"
27496 msgstr ""
27497
27498 # type: textblock
27499 #: ../tools/virt-resize.pl:119
27500 msgid ""
27501 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27502 "to store the resized output disk."
27503 msgstr ""
27504
27505 # type: textblock
27506 #: ../tools/virt-resize.pl:122
27507 msgid ""
27508 "To store the resized disk image in a file, create a file of a suitable size:"
27509 msgstr ""
27510
27511 # type: verbatim
27512 #: ../tools/virt-resize.pl:125
27513 #, no-wrap
27514 msgid ""
27515 " # rm -f outdisk\n"
27516 " # truncate -s 10G outdisk\n"
27517 "\n"
27518 msgstr ""
27519
27520 # type: textblock
27521 #: ../tools/virt-resize.pl:128
27522 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27523 msgstr ""
27524
27525 # type: verbatim
27526 #: ../tools/virt-resize.pl:130
27527 #, no-wrap
27528 msgid ""
27529 " # lvcreate -L 10G -n lv_name vg_name\n"
27530 "\n"
27531 msgstr ""
27532
27533 # type: textblock
27534 #: ../tools/virt-resize.pl:132
27535 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27536 msgstr ""
27537
27538 # type: verbatim
27539 #: ../tools/virt-resize.pl:134
27540 #, no-wrap
27541 msgid ""
27542 " # virsh pool-list\n"
27543 " # virsh vol-create-as poolname newvol 10G\n"
27544 "\n"
27545 msgstr ""
27546
27547 # type: =item
27548 #: ../tools/virt-resize.pl:137
27549 msgid "5. Resize"
27550 msgstr ""
27551
27552 # type: textblock
27553 #: ../tools/virt-resize.pl:139
27554 msgid ""
27555 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27556 "file) and the output disk.  The output disk is the one created in the "
27557 "previous step."
27558 msgstr ""
27559
27560 # type: verbatim
27561 #: ../tools/virt-resize.pl:143
27562 #, no-wrap
27563 msgid ""
27564 " # virt-resize indisk outdisk\n"
27565 "\n"
27566 msgstr ""
27567
27568 # type: textblock
27569 #: ../tools/virt-resize.pl:145
27570 msgid ""
27571 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27572 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27573 "larger, then an extra, empty partition is created at the end of the disk "
27574 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27575 "error."
27576 msgstr ""
27577
27578 # type: textblock
27579 #: ../tools/virt-resize.pl:151
27580 msgid ""
27581 "More realistically you'd want to expand existing partitions in the disk "
27582 "image by passing extra options (for the full list see the L</OPTIONS> "
27583 "section below)."
27584 msgstr ""
27585
27586 # type: textblock
27587 #: ../tools/virt-resize.pl:155
27588 msgid ""
27589 "L</--expand> is the most useful option.  It expands the named partition "
27590 "within the disk to fill any extra space:"
27591 msgstr ""
27592
27593 # type: verbatim
27594 #: ../tools/virt-resize.pl:158
27595 #, no-wrap
27596 msgid ""
27597 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27598 "\n"
27599 msgstr ""
27600
27601 # type: textblock
27602 #: ../tools/virt-resize.pl:160
27603 msgid ""
27604 "(In this case, an extra partition is I<not> created at the end of the disk, "
27605 "because there will be no unused space)."
27606 msgstr ""
27607
27608 # type: textblock
27609 #: ../tools/virt-resize.pl:163
27610 msgid ""
27611 "L</--resize> is the other commonly used option.  The following would "
27612 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27613 "rest of the available space:"
27614 msgstr ""
27615
27616 # type: verbatim
27617 #: ../tools/virt-resize.pl:167
27618 #, no-wrap
27619 msgid ""
27620 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27621 "     indisk outdisk\n"
27622 "\n"
27623 msgstr ""
27624
27625 # type: textblock
27626 #: ../tools/virt-resize.pl:170
27627 msgid ""
27628 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27629 "if virt-resize knows how, it will resize the contents, the equivalent of "
27630 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27631 ">.  However virt-resize does not know how to resize some filesystems, so you "
27632 "would have to online resize them after booting the guest."
27633 msgstr ""
27634
27635 # type: textblock
27636 #: ../tools/virt-resize.pl:177
27637 msgid "Other options are covered below."
27638 msgstr ""
27639
27640 # type: =item
27641 #: ../tools/virt-resize.pl:179
27642 msgid "6. Test"
27643 msgstr ""
27644
27645 # type: textblock
27646 #: ../tools/virt-resize.pl:181
27647 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27648 msgstr ""
27649
27650 # type: textblock
27651 #: ../tools/virt-resize.pl:183
27652 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27653 msgstr ""
27654
27655 # type: verbatim
27656 #: ../tools/virt-resize.pl:185
27657 #, no-wrap
27658 msgid ""
27659 " # virsh edit guestname\n"
27660 "\n"
27661 msgstr ""
27662
27663 # type: textblock
27664 #: ../tools/virt-resize.pl:187
27665 msgid ""
27666 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27667 "html#elementsDisks>"
27668 msgstr ""
27669
27670 # type: textblock
27671 #: ../tools/virt-resize.pl:190
27672 msgid "Then start up the domain with the new, resized disk:"
27673 msgstr ""
27674
27675 # type: verbatim
27676 #: ../tools/virt-resize.pl:192
27677 #, no-wrap
27678 msgid ""
27679 " # virsh start guestname\n"
27680 "\n"
27681 msgstr ""
27682
27683 # type: textblock
27684 #: ../tools/virt-resize.pl:194
27685 msgid ""
27686 "and check that it still works.  See also the L</NOTES> section below for "
27687 "additional information."
27688 msgstr ""
27689
27690 # type: =item
27691 #: ../tools/virt-resize.pl:197
27692 msgid "7. Resize LVs etc inside the guest"
27693 msgstr ""
27694
27695 # type: textblock
27696 #: ../tools/virt-resize.pl:199
27697 msgid "(This can also be done offline using L<guestfish(1)>)"
27698 msgstr ""
27699
27700 # type: textblock
27701 #: ../tools/virt-resize.pl:201
27702 msgid ""
27703 "Once the guest has booted you should see the new space available, at least "
27704 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27705 "may need to resize LVs inside PVs, and also resize filesystem types that "
27706 "virt-resize does not know how to expand."
27707 msgstr ""
27708
27709 # type: =head2
27710 #: ../tools/virt-resize.pl:208
27711 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27712 msgstr ""
27713
27714 # type: textblock
27715 #: ../tools/virt-resize.pl:210
27716 msgid ""
27717 "Shrinking is somewhat more complex than expanding, and only an overview is "
27718 "given here."
27719 msgstr ""
27720
27721 # type: textblock
27722 #: ../tools/virt-resize.pl:213
27723 msgid ""
27724 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27725 "filesystems).  The user has to shrink content before passing the disk image "
27726 "to virt-resize, and virt-resize will check that the content has been shrunk "
27727 "properly."
27728 msgstr ""
27729
27730 # type: textblock
27731 #: ../tools/virt-resize.pl:218
27732 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27733 msgstr ""
27734
27735 # type: textblock
27736 #: ../tools/virt-resize.pl:220
27737 msgid ""
27738 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27739 "steps 3 and 4 above to allocate a new disk image."
27740 msgstr ""
27741
27742 # type: textblock
27743 #: ../tools/virt-resize.pl:223
27744 msgid ""
27745 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27746 msgstr ""
27747
27748 # type: =head2
27749 #: ../tools/virt-resize.pl:226
27750 msgid "IGNORING OR DELETING PARTITIONS"
27751 msgstr ""
27752
27753 # type: textblock
27754 #: ../tools/virt-resize.pl:228
27755 msgid ""
27756 "virt-resize also gives a convenient way to ignore or delete partitions when "
27757 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27758 "up the copy where you don't care about the existing contents of a "
27759 "partition.  Deleting a partition removes it completely, but note that it "
27760 "also renumbers any partitions after the one which is deleted, which can "
27761 "leave some guests unbootable."
27762 msgstr ""
27763
27764 # type: =head2
27765 #: ../tools/virt-resize.pl:235
27766 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27767 msgstr ""
27768
27769 # type: textblock
27770 #: ../tools/virt-resize.pl:237
27771 msgid ""
27772 "If the input disk is in qcow2 format, then you may prefer that the output is "
27773 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27774 "the fly.  The output format is simply determined by the format of the empty "
27775 "output container that you provide.  Thus to create qcow2 output, use:"
27776 msgstr ""
27777
27778 # type: verbatim
27779 #: ../tools/virt-resize.pl:243
27780 #, no-wrap
27781 msgid ""
27782 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27783 "\n"
27784 msgstr ""
27785
27786 # type: textblock
27787 #: ../tools/virt-resize.pl:245
27788 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27789 msgstr ""
27790
27791 # type: textblock
27792 #: ../tools/virt-resize.pl:247
27793 msgid "Similarly, to get non-sparse raw output use:"
27794 msgstr ""
27795
27796 # type: verbatim
27797 #: ../tools/virt-resize.pl:249
27798 #, no-wrap
27799 msgid ""
27800 " fallocate -l size outdisk\n"
27801 "\n"
27802 msgstr ""
27803
27804 # type: textblock
27805 #: ../tools/virt-resize.pl:251
27806 msgid ""
27807 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27808 "dev/zero of=outdisk bs=1M count=..>)"
27809 msgstr ""
27810
27811 # type: textblock
27812 #: ../tools/virt-resize.pl:264
27813 msgid "Display help."
27814 msgstr ""
27815
27816 # type: =item
27817 #: ../tools/virt-resize.pl:278
27818 msgid "B<--resize part=size>"
27819 msgstr ""
27820
27821 # type: textblock
27822 #: ../tools/virt-resize.pl:280
27823 msgid ""
27824 "Resize the named partition (expanding or shrinking it) so that it has the "
27825 "given size."
27826 msgstr ""
27827
27828 # type: textblock
27829 #: ../tools/virt-resize.pl:283
27830 msgid ""
27831 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27832 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27833 "Exabytes; or as a percentage of the current size; or as a relative number or "
27834 "percentage.  For example:"
27835 msgstr ""
27836
27837 # type: verbatim
27838 #: ../tools/virt-resize.pl:288
27839 #, no-wrap
27840 msgid ""
27841 " --resize /dev/sda2=10G\n"
27842 "\n"
27843 msgstr ""
27844
27845 # type: verbatim
27846 #: ../tools/virt-resize.pl:290
27847 #, no-wrap
27848 msgid ""
27849 " --resize /dev/sda4=90%\n"
27850 "\n"
27851 msgstr ""
27852
27853 # type: verbatim
27854 #: ../tools/virt-resize.pl:292
27855 #, no-wrap
27856 msgid ""
27857 " --resize /dev/sda2=+1G\n"
27858 "\n"
27859 msgstr ""
27860
27861 # type: verbatim
27862 #: ../tools/virt-resize.pl:294
27863 #, no-wrap
27864 msgid ""
27865 " --resize /dev/sda2=-200M\n"
27866 "\n"
27867 msgstr ""
27868
27869 # type: verbatim
27870 #: ../tools/virt-resize.pl:296
27871 #, no-wrap
27872 msgid ""
27873 " --resize /dev/sda1=+128K\n"
27874 "\n"
27875 msgstr ""
27876
27877 # type: verbatim
27878 #: ../tools/virt-resize.pl:298
27879 #, no-wrap
27880 msgid ""
27881 " --resize /dev/sda1=+10%\n"
27882 "\n"
27883 msgstr ""
27884
27885 # type: verbatim
27886 #: ../tools/virt-resize.pl:300
27887 #, no-wrap
27888 msgid ""
27889 " --resize /dev/sda1=-10%\n"
27890 "\n"
27891 msgstr ""
27892
27893 # type: textblock
27894 #: ../tools/virt-resize.pl:302
27895 msgid ""
27896 "You can increase the size of any partition.  Virt-resize will expand the "
27897 "direct content of the partition if it knows how (see C<--expand> below)."
27898 msgstr ""
27899
27900 # type: textblock
27901 #: ../tools/virt-resize.pl:306
27902 msgid ""
27903 "You can only I<decrease> the size of partitions that contain filesystems or "
27904 "PVs which have already been shrunk.  Virt-resize will check this has been "
27905 "done before proceeding, or else will print an error (see also C<--resize-"
27906 "force>)."
27907 msgstr ""
27908
27909 # type: textblock
27910 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
27911 #: ../tools/virt-resize.pl:420
27912 msgid "You can give this option multiple times."
27913 msgstr ""
27914
27915 # type: =item
27916 #: ../tools/virt-resize.pl:317
27917 msgid "B<--resize-force part=size>"
27918 msgstr ""
27919
27920 # type: textblock
27921 #: ../tools/virt-resize.pl:319
27922 msgid ""
27923 "This is the same as C<--resize> except that it will let you decrease the "
27924 "size of any partition.  Generally this means you will lose any data which "
27925 "was at the end of the partition you shrink, but you may not care about that "
27926 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27927 "as a swap partition)."
27928 msgstr ""
27929
27930 # type: textblock
27931 #: ../tools/virt-resize.pl:325
27932 msgid "See also the C<--ignore> option."
27933 msgstr ""
27934
27935 # type: =item
27936 #: ../tools/virt-resize.pl:331
27937 msgid "B<--expand part>"
27938 msgstr ""
27939
27940 # type: textblock
27941 #: ../tools/virt-resize.pl:333
27942 msgid ""
27943 "Expand the named partition so it uses up all extra space (space left over "
27944 "after any other resize changes that you request have been done)."
27945 msgstr ""
27946
27947 # type: textblock
27948 #: ../tools/virt-resize.pl:336
27949 msgid ""
27950 "If virt-resize knows how, it will expand the direct content of the "
27951 "partition.  For example, if the partition is an LVM PV, it will expand the "
27952 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27953 "content it doesn't know about alone."
27954 msgstr ""
27955
27956 # type: textblock
27957 #: ../tools/virt-resize.pl:341
27958 msgid "Currently virt-resize can resize:"
27959 msgstr ""
27960
27961 # type: textblock
27962 #: ../tools/virt-resize.pl:347
27963 msgid ""
27964 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27965 "partition."
27966 msgstr ""
27967
27968 # type: textblock
27969 #: ../tools/virt-resize.pl:352
27970 msgid ""
27971 "NTFS filesystems contained directly in a partition, if libguestfs was "
27972 "compiled with support for NTFS."
27973 msgstr ""
27974
27975 # type: textblock
27976 #: ../tools/virt-resize.pl:355
27977 msgid ""
27978 "The filesystem must have been shut down consistently last time it was used.  "
27979 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27980 "consistency check, so at the first boot after resizing Windows will check "
27981 "the disk."
27982 msgstr ""
27983
27984 # type: textblock
27985 #: ../tools/virt-resize.pl:362
27986 msgid ""
27987 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
27988 "inside the PV, but see the C<--LV-expand> option.  The user could also "
27989 "resize LVs as desired after boot."
27990 msgstr ""
27991
27992 # type: textblock
27993 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
27994 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27995 msgstr ""
27996
27997 # type: =item
27998 #: ../tools/virt-resize.pl:374
27999 msgid "B<--shrink part>"
28000 msgstr ""
28001
28002 # type: textblock
28003 #: ../tools/virt-resize.pl:376
28004 msgid ""
28005 "Shrink the named partition until the overall disk image fits in the "
28006 "destination.  The named partition B<must> contain a filesystem or PV which "
28007 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
28008 "online tools).  Virt-resize will check this and give an error if it has not "
28009 "been done."
28010 msgstr ""
28011
28012 # type: textblock
28013 #: ../tools/virt-resize.pl:382
28014 msgid ""
28015 "The amount by which the overall disk must be shrunk (after carrying out all "
28016 "other operations requested by the user) is called the \"deficit\".  For "
28017 "example, a straight copy (assume no other operations)  from a 5GB disk image "
28018 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
28019 "would give an error unless the user specified a partition to shrink and that "
28020 "partition had more than a gigabyte of free space."
28021 msgstr ""
28022
28023 # type: =item
28024 #: ../tools/virt-resize.pl:396
28025 msgid "B<--ignore part>"
28026 msgstr ""
28027
28028 # type: textblock
28029 #: ../tools/virt-resize.pl:398
28030 msgid ""
28031 "Ignore the named partition.  Effectively this means the partition is "
28032 "allocated on the destination disk, but the content is not copied across from "
28033 "the source disk.  The content of the partition will be blank (all zero "
28034 "bytes)."
28035 msgstr ""
28036
28037 # type: =item
28038 #: ../tools/virt-resize.pl:409
28039 msgid "B<--delete part>"
28040 msgstr ""
28041
28042 # type: textblock
28043 #: ../tools/virt-resize.pl:411
28044 msgid ""
28045 "Delete the named partition.  It would be more accurate to describe this as "
28046 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
28047 "the original disk image is left intact."
28048 msgstr ""
28049
28050 # type: textblock
28051 #: ../tools/virt-resize.pl:415
28052 msgid ""
28053 "Note that when you delete a partition, then anything contained in the "
28054 "partition is also deleted.  Furthermore, this causes any partitions that "
28055 "come after to be I<renumbered>, which can easily make your guest unbootable."
28056 msgstr ""
28057
28058 # type: =item
28059 #: ../tools/virt-resize.pl:426
28060 msgid "B<--LV-expand logvol>"
28061 msgstr ""
28062
28063 # type: textblock
28064 #: ../tools/virt-resize.pl:428
28065 msgid ""
28066 "This takes the logical volume and, as a final step, expands it to fill all "
28067 "the space available in its volume group.  A typical usage, assuming a Linux "
28068 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
28069 "lv_root> would be:"
28070 msgstr ""
28071
28072 # type: verbatim
28073 #: ../tools/virt-resize.pl:433
28074 #, no-wrap
28075 msgid ""
28076 " virt-resize indisk outdisk \\\n"
28077 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
28078 "\n"
28079 msgstr ""
28080
28081 # type: textblock
28082 #: ../tools/virt-resize.pl:436
28083 msgid ""
28084 "This would first expand the partition (and PV), and then expand the root "
28085 "device to fill the extra space in the PV."
28086 msgstr ""
28087
28088 # type: textblock
28089 #: ../tools/virt-resize.pl:439
28090 msgid ""
28091 "The contents of the LV are also resized if virt-resize knows how to do "
28092 "that.  You can stop virt-resize from trying to expand the content by using "
28093 "the option C<--no-expand-content>."
28094 msgstr ""
28095
28096 # type: textblock
28097 #: ../tools/virt-resize.pl:443
28098 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
28099 msgstr ""
28100
28101 # type: textblock
28102 #: ../tools/virt-resize.pl:446
28103 msgid ""
28104 "You can give this option multiple times, I<but> it doesn't make sense to do "
28105 "this unless the logical volumes you specify are all in different volume "
28106 "groups."
28107 msgstr ""
28108
28109 # type: =item
28110 #: ../tools/virt-resize.pl:454
28111 msgid "B<--no-copy-boot-loader>"
28112 msgstr ""
28113
28114 # type: textblock
28115 #: ../tools/virt-resize.pl:456
28116 msgid ""
28117 "By default, virt-resize copies over some sectors at the start of the disk "
28118 "(up to the beginning of the first partition).  Commonly these sectors "
28119 "contain the Master Boot Record (MBR) and the boot loader, and are required "
28120 "in order for the guest to boot correctly."
28121 msgstr ""
28122
28123 # type: textblock
28124 #: ../tools/virt-resize.pl:461
28125 msgid ""
28126 "If you specify this flag, then this initial copy is not done.  You may need "
28127 "to reinstall the boot loader in this case."
28128 msgstr ""
28129
28130 # type: =item
28131 #: ../tools/virt-resize.pl:469
28132 msgid "B<--no-extra-partition>"
28133 msgstr ""
28134
28135 # type: textblock
28136 #: ../tools/virt-resize.pl:471
28137 msgid ""
28138 "By default, virt-resize creates an extra partition if there is any extra, "
28139 "unused space after all resizing has happened.  Use this option to prevent "
28140 "the extra partition from being created.  If you do this then the extra space "
28141 "will be inaccessible until you run fdisk, parted, or some other partitioning "
28142 "tool in the guest."
28143 msgstr ""
28144
28145 # type: textblock
28146 #: ../tools/virt-resize.pl:477
28147 msgid ""
28148 "Note that if the surplus space is smaller than 10 MB, no extra partition "
28149 "will be created."
28150 msgstr ""
28151
28152 # type: =item
28153 #: ../tools/virt-resize.pl:484
28154 msgid "B<--no-expand-content>"
28155 msgstr ""
28156
28157 # type: textblock
28158 #: ../tools/virt-resize.pl:486
28159 msgid ""
28160 "By default, virt-resize will try to expand the direct contents of "
28161 "partitions, if it knows how (see C<--expand> option above)."
28162 msgstr ""
28163
28164 # type: textblock
28165 #: ../tools/virt-resize.pl:489
28166 msgid ""
28167 "If you give the C<--no-expand-content> option then virt-resize will not "
28168 "attempt this."
28169 msgstr ""
28170
28171 # type: =item
28172 #: ../tools/virt-resize.pl:496
28173 msgid "B<-d> | B<--debug>"
28174 msgstr ""
28175
28176 # type: =item
28177 #: ../tools/virt-resize.pl:504
28178 msgid "B<-n> | B<--dryrun>"
28179 msgstr ""
28180
28181 # type: textblock
28182 #: ../tools/virt-resize.pl:506
28183 msgid "Print a summary of what would be done, but don't do anything."
28184 msgstr ""
28185
28186 # type: =item
28187 #: ../tools/virt-resize.pl:512
28188 msgid "B<-q> | B<--quiet>"
28189 msgstr ""
28190
28191 # type: textblock
28192 #: ../tools/virt-resize.pl:514
28193 msgid "Don't print the summary."
28194 msgstr ""
28195
28196 # type: textblock
28197 #: ../tools/virt-resize.pl:522
28198 msgid ""
28199 "Specify the format of the input disk image.  If this flag is not given then "
28200 "it is auto-detected from the image itself."
28201 msgstr ""
28202
28203 # type: textblock
28204 #: ../tools/virt-resize.pl:528
28205 msgid ""
28206 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
28207 "AND NON-SPARSE RAW FORMATS>."
28208 msgstr ""
28209
28210 # type: =item
28211 #: ../tools/virt-resize.pl:535
28212 msgid "B<--output-format> raw"
28213 msgstr ""
28214
28215 # type: textblock
28216 #: ../tools/virt-resize.pl:537
28217 msgid ""
28218 "Specify the format of the output disk image.  If this flag is not given then "
28219 "it is auto-detected from the image itself."
28220 msgstr ""
28221
28222 # type: textblock
28223 #: ../tools/virt-resize.pl:543
28224 msgid ""
28225 "Note that you still need to create the output disk with the right format.  "
28226 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
28227 msgstr ""
28228
28229 # type: =head1
28230 #: ../tools/virt-resize.pl:1419
28231 msgid "NOTES"
28232 msgstr ""
28233
28234 # type: =head2
28235 #: ../tools/virt-resize.pl:1421
28236 msgid "\"Partition 1 does not end on cylinder boundary.\""
28237 msgstr ""
28238
28239 # type: textblock
28240 #: ../tools/virt-resize.pl:1423
28241 msgid ""
28242 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
28243 "means the partitions will not be aligned to the ancient CHS geometry.  "
28244 "However CHS geometry is meaningless for disks manufactured since the early "
28245 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
28246 "cylinders is not required by any modern operating system."
28247 msgstr ""
28248
28249 # type: =head2
28250 #: ../tools/virt-resize.pl:1430
28251 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
28252 msgstr ""
28253
28254 # type: textblock
28255 #: ../tools/virt-resize.pl:1432
28256 msgid ""
28257 "In Windows Vista and later versions, Microsoft switched to using a separate "
28258 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
28259 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
28260 "the boot partition.  Doing so seems to break the guest completely.  However "
28261 "expanding the second partition (ie. C: drive) should work."
28262 msgstr ""
28263
28264 # type: textblock
28265 #: ../tools/virt-resize.pl:1439
28266 msgid ""
28267 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
28268 "NTFS partitions have been expanded.  This is just a safety check and (unless "
28269 "it find errors) is nothing to worry about."
28270 msgstr ""
28271
28272 # type: =head2
28273 #: ../tools/virt-resize.pl:1443
28274 msgid "GUEST BOOT STUCK AT \"GRUB\""
28275 msgstr ""
28276
28277 # type: textblock
28278 #: ../tools/virt-resize.pl:1445
28279 msgid ""
28280 "If a Linux guest does not boot after resizing, and the boot is stuck after "
28281 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
28282 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
28283 "although we think is to do with partition alignment."
28284 msgstr ""
28285
28286 # type: verbatim
28287 #: ../tools/virt-resize.pl:1450
28288 #, no-wrap
28289 msgid ""
28290 " guestfish -i -a newdisk\n"
28291 " ><fs> cat /boot/grub/device.map\n"
28292 " # check the contents of this file are sensible or\n"
28293 " # edit the file if necessary\n"
28294 " ><fs> grub-install / /dev/vda\n"
28295 " ><fs> exit\n"
28296 "\n"
28297 msgstr ""
28298
28299 # type: textblock
28300 #: ../tools/virt-resize.pl:1457
28301 msgid ""
28302 "For more flexible guest reconfiguration, including if you need to specify "
28303 "other parameters to grub-install, use L<virt-rescue(1)>."
28304 msgstr ""
28305
28306 # type: =head1
28307 #: ../tools/virt-resize.pl:1460
28308 msgid "ALTERNATIVE TOOLS"
28309 msgstr ""
28310
28311 # type: textblock
28312 #: ../tools/virt-resize.pl:1462
28313 msgid ""
28314 "There are several proprietary tools for resizing partitions.  We won't "
28315 "mention any here."
28316 msgstr ""
28317
28318 # type: textblock
28319 #: ../tools/virt-resize.pl:1465
28320 msgid ""
28321 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
28322 "operations on disk images.  They can resize and move partitions, but I don't "
28323 "think they can do anything with the contents, and they certainly don't "
28324 "understand LVM."
28325 msgstr ""
28326
28327 # type: textblock
28328 #: ../tools/virt-resize.pl:1470
28329 msgid ""
28330 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
28331 "but at a much lower level.  You will probably end up hand-calculating sector "
28332 "offsets, which is something that virt-resize was designed to avoid.  If you "
28333 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
28334 "C<--debug> flag."
28335 msgstr ""
28336
28337 # type: textblock
28338 #: ../tools/virt-resize.pl:1485
28339 msgid ""
28340 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
28341 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
28342 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
28343 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
28344 "libguestfs.org/>."
28345 msgstr ""
28346
28347 # type: textblock
28348 #: ../tools/virt-list-filesystems.pl:32
28349 msgid ""
28350 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28351 msgstr ""
28352
28353 # type: verbatim
28354 #: ../tools/virt-list-filesystems.pl:36
28355 #, no-wrap
28356 msgid ""
28357 " virt-list-filesystems [--options] domname\n"
28358 "\n"
28359 msgstr ""
28360
28361 # type: verbatim
28362 #: ../tools/virt-list-filesystems.pl:38
28363 #, no-wrap
28364 msgid ""
28365 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28366 "\n"
28367 msgstr ""
28368
28369 # type: textblock
28370 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
28371 msgid ""
28372 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
28373 "replacement."
28374 msgstr ""
28375
28376 # type: textblock
28377 #: ../tools/virt-list-filesystems.pl:45
28378 msgid ""
28379 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28380 "are contained in a virtual machine or disk image."
28381 msgstr ""
28382
28383 # type: textblock
28384 #: ../tools/virt-list-filesystems.pl:49
28385 msgid ""
28386 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28387 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28388 "> tool."
28389 msgstr ""
28390
28391 # type: =item
28392 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
28393 msgid "B<-l> | B<--long>"
28394 msgstr ""
28395
28396 # type: textblock
28397 #: ../tools/virt-list-filesystems.pl:108
28398 msgid ""
28399 "With this option, C<virt-list-filesystems> displays the type of each "
28400 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28401 msgstr ""
28402
28403 # type: =item
28404 #: ../tools/virt-list-filesystems.pl:115
28405 msgid "B<-a> | B<--all>"
28406 msgstr ""
28407
28408 # type: textblock
28409 #: ../tools/virt-list-filesystems.pl:117
28410 msgid ""
28411 "Normally we only show mountable filesystems.  If this option is given then "
28412 "swap devices are shown too."
28413 msgstr ""
28414
28415 # type: textblock
28416 #: ../tools/virt-list-filesystems.pl:191
28417 msgid ""
28418 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
28419 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28420 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28421 msgstr ""
28422
28423 # type: textblock
28424 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
28425 msgid "Copyright (C) 2009 Red Hat Inc."
28426 msgstr ""
28427
28428 # type: textblock
28429 #: ../tools/virt-tar.pl:33
28430 msgid "virt-tar - Extract or upload files to a virtual machine"
28431 msgstr ""
28432
28433 # type: verbatim
28434 #: ../tools/virt-tar.pl:37
28435 #, no-wrap
28436 msgid ""
28437 " virt-tar [--options] -x domname directory tarball\n"
28438 "\n"
28439 msgstr ""
28440
28441 # type: verbatim
28442 #: ../tools/virt-tar.pl:39
28443 #, no-wrap
28444 msgid ""
28445 " virt-tar [--options] -u domname tarball directory\n"
28446 "\n"
28447 msgstr ""
28448
28449 # type: verbatim
28450 #: ../tools/virt-tar.pl:41
28451 #, no-wrap
28452 msgid ""
28453 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28454 "\n"
28455 msgstr ""
28456
28457 # type: verbatim
28458 #: ../tools/virt-tar.pl:43
28459 #, no-wrap
28460 msgid ""
28461 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28462 "\n"
28463 msgstr ""
28464
28465 # type: textblock
28466 #: ../tools/virt-tar.pl:47
28467 msgid "Download C</home> from the VM into a local tarball:"
28468 msgstr ""
28469
28470 # type: verbatim
28471 #: ../tools/virt-tar.pl:49
28472 #, no-wrap
28473 msgid ""
28474 " virt-tar -x domname /home home.tar\n"
28475 "\n"
28476 msgstr ""
28477
28478 # type: verbatim
28479 #: ../tools/virt-tar.pl:51
28480 #, no-wrap
28481 msgid ""
28482 " virt-tar -zx domname /home home.tar.gz\n"
28483 "\n"
28484 msgstr ""
28485
28486 # type: textblock
28487 #: ../tools/virt-tar.pl:53
28488 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28489 msgstr ""
28490
28491 # type: verbatim
28492 #: ../tools/virt-tar.pl:55
28493 #, no-wrap
28494 msgid ""
28495 " virt-tar -u domname uploadstuff.tar /tmp\n"
28496 "\n"
28497 msgstr ""
28498
28499 # type: verbatim
28500 #: ../tools/virt-tar.pl:57
28501 #, no-wrap
28502 msgid ""
28503 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28504 "\n"
28505 msgstr ""
28506
28507 # type: textblock
28508 #: ../tools/virt-tar.pl:61
28509 msgid ""
28510 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28511 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28512 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28513 msgstr ""
28514
28515 # type: textblock
28516 #: ../tools/virt-tar.pl:66
28517 msgid ""
28518 "You can use C<-x> (extract) on live virtual machines, but you might get "
28519 "inconsistent results or errors if there is filesystem activity inside the "
28520 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28521 "work, but the only way to guarantee consistent results is if the virtual "
28522 "machine is shut down."
28523 msgstr ""
28524
28525 # type: textblock
28526 #: ../tools/virt-tar.pl:74
28527 msgid ""
28528 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28529 "parts of a guest filesystem.  There are many possibilities: making backups, "
28530 "uploading data files, snooping on guest activity, fixing or customizing "
28531 "guests, etc."
28532 msgstr ""
28533
28534 # type: textblock
28535 #: ../tools/virt-tar.pl:79
28536 msgid ""
28537 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28538 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28539 "should look at the L<guestfish(1)> tool."
28540 msgstr ""
28541
28542 # type: textblock
28543 #: ../tools/virt-tar.pl:83
28544 msgid ""
28545 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28546 "its contents (recursively) from the virtual machine into a local tarball.  "
28547 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28548 "virtual machine.  You cannot use these two options together."
28549 msgstr ""
28550
28551 # type: textblock
28552 #: ../tools/virt-tar.pl:89
28553 msgid ""
28554 "In addition, you may need to use the C<-z> (gZip) option to enable "
28555 "compression.  When uploading, you have to specify C<-z> if the upload file "
28556 "is compressed because virt-tar won't detect this on its own."
28557 msgstr ""
28558
28559 # type: textblock
28560 #: ../tools/virt-tar.pl:93
28561 msgid ""
28562 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28563 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28564 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28565 "the L<libguestfs(3)> API)."
28566 msgstr ""
28567
28568 # type: =item
28569 #: ../tools/virt-tar.pl:151
28570 msgid "B<-x> | B<--extract> | B<--download>"
28571 msgstr ""
28572
28573 # type: =item
28574 #: ../tools/virt-tar.pl:153
28575 msgid "B<-u> | B<--upload>"
28576 msgstr ""
28577
28578 # type: textblock
28579 #: ../tools/virt-tar.pl:155
28580 msgid ""
28581 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28582 "local tarball."
28583 msgstr ""
28584
28585 # type: textblock
28586 #: ../tools/virt-tar.pl:158
28587 msgid ""
28588 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28589 "Please read the L</WARNING> section above before using this option."
28590 msgstr ""
28591
28592 # type: textblock
28593 #: ../tools/virt-tar.pl:162
28594 msgid "You must specify exactly one of these options."
28595 msgstr ""
28596
28597 # type: =item
28598 #: ../tools/virt-tar.pl:168
28599 msgid "B<-z> | B<--gzip>"
28600 msgstr ""
28601
28602 # type: textblock
28603 #: ../tools/virt-tar.pl:170
28604 msgid "Specify that the input or output tarball is gzip-compressed."
28605 msgstr ""
28606
28607 # type: textblock
28608 #: ../tools/virt-tar.pl:283
28609 msgid ""
28610 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28611 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28612 "org/>."
28613 msgstr ""
28614
28615 # type: textblock
28616 #: ../tools/virt-make-fs.pl:37
28617 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28618 msgstr ""
28619
28620 # type: verbatim
28621 #: ../tools/virt-make-fs.pl:41
28622 #, no-wrap
28623 msgid ""
28624 " virt-make-fs [--options] input.tar output.img\n"
28625 "\n"
28626 msgstr ""
28627
28628 # type: verbatim
28629 #: ../tools/virt-make-fs.pl:43
28630 #, no-wrap
28631 msgid ""
28632 " virt-make-fs [--options] input.tar.gz output.img\n"
28633 "\n"
28634 msgstr ""
28635
28636 # type: verbatim
28637 #: ../tools/virt-make-fs.pl:45
28638 #, no-wrap
28639 msgid ""
28640 " virt-make-fs [--options] directory output.img\n"
28641 "\n"
28642 msgstr ""
28643
28644 # type: textblock
28645 #: ../tools/virt-make-fs.pl:49
28646 msgid ""
28647 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28648 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28649 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28650 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28651 "you want to attach these filesystems to existing virtual machines (eg. to "
28652 "import large amounts of read-only data to a VM)."
28653 msgstr ""
28654
28655 # type: textblock
28656 #: ../tools/virt-make-fs.pl:57
28657 msgid "Basic usage is:"
28658 msgstr ""
28659
28660 # type: verbatim
28661 #: ../tools/virt-make-fs.pl:59
28662 #, no-wrap
28663 msgid ""
28664 " virt-make-fs input output\n"
28665 "\n"
28666 msgstr ""
28667
28668 # type: textblock
28669 #: ../tools/virt-make-fs.pl:61
28670 msgid ""
28671 "where C<input> is either a directory containing files that you want to add, "
28672 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28673 "C<output> is a disk image.  The input type is detected automatically.  The "
28674 "output disk image defaults to a raw ext2 image unless you specify extra "
28675 "flags (see L</OPTIONS> below)."
28676 msgstr ""
28677
28678 # type: =head2
28679 #: ../tools/virt-make-fs.pl:67
28680 msgid "EXTRA SPACE"
28681 msgstr ""
28682
28683 # type: textblock
28684 #: ../tools/virt-make-fs.pl:69
28685 msgid ""
28686 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28687 "the files that it contains, but might have extra space.  Depending on how "
28688 "you are going to use the output, you might think this extra space is wasted "
28689 "and want to minimize it, or you might want to leave space so that more files "
28690 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28691 "but you can use the C<--size> flag to leave space in the filesystem if you "
28692 "want it."
28693 msgstr ""
28694
28695 # type: textblock
28696 #: ../tools/virt-make-fs.pl:77
28697 msgid ""
28698 "An alternative way to leave extra space but not make the output image any "
28699 "bigger is to use an alternative disk image format (instead of the default "
28700 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28701 "image format (check your hypervisor supports this before using it).  This "
28702 "allows you to choose a large C<--size> but the extra space won't actually be "
28703 "allocated in the image until you try to store something in it."
28704 msgstr ""
28705
28706 # type: textblock
28707 #: ../tools/virt-make-fs.pl:85
28708 msgid ""
28709 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28710 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28711 "resize to build another image from scratch."
28712 msgstr ""
28713
28714 # type: =head3
28715 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28716 #: ../tools/virt-make-fs.pl:142
28717 msgid "EXAMPLE"
28718 msgstr ""
28719
28720 # type: verbatim
28721 #: ../tools/virt-make-fs.pl:91
28722 #, no-wrap
28723 msgid ""
28724 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28725 "\n"
28726 msgstr ""
28727
28728 # type: =head2
28729 #: ../tools/virt-make-fs.pl:93
28730 msgid "FILESYSTEM TYPE"
28731 msgstr ""
28732
28733 # type: textblock
28734 #: ../tools/virt-make-fs.pl:95
28735 msgid ""
28736 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28737 "libguestfs supports can be used (but I<not> read-only formats like "
28738 "ISO9660).  Here are some of the more common choices:"
28739 msgstr ""
28740
28741 # type: =item
28742 #: ../tools/virt-make-fs.pl:101
28743 msgid "I<ext3>"
28744 msgstr ""
28745
28746 # type: textblock
28747 #: ../tools/virt-make-fs.pl:103
28748 msgid ""
28749 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28750 "you are not going to use the filesystem in a way that requires the journal, "
28751 "then this is just wasted overhead."
28752 msgstr ""
28753
28754 # type: =item
28755 #: ../tools/virt-make-fs.pl:107
28756 msgid "I<ntfs> or I<vfat>"
28757 msgstr ""
28758
28759 # type: textblock
28760 #: ../tools/virt-make-fs.pl:109
28761 msgid "Useful if exporting data to a Windows guest."
28762 msgstr ""
28763
28764 # type: textblock
28765 #: ../tools/virt-make-fs.pl:111
28766 msgid ""
28767 "I<Note for vfat>: The tar archive or local directory must only contain files "
28768 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28769 "program running within libguestfs is unable to change the ownership of non-"
28770 "root files, since vfat itself does not support this."
28771 msgstr ""
28772
28773 # type: =item
28774 #: ../tools/virt-make-fs.pl:116
28775 msgid "I<minix>"
28776 msgstr ""
28777
28778 # type: textblock
28779 #: ../tools/virt-make-fs.pl:118
28780 msgid ""
28781 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28782 "total filesystem size."
28783 msgstr ""
28784
28785 # type: verbatim
28786 #: ../tools/virt-make-fs.pl:125
28787 #, no-wrap
28788 msgid ""
28789 " virt-make-fs --type=minix input minixfs.img\n"
28790 "\n"
28791 msgstr ""
28792
28793 # type: =head2
28794 #: ../tools/virt-make-fs.pl:127
28795 msgid "TO PARTITION OR NOT TO PARTITION"
28796 msgstr ""
28797
28798 # type: textblock
28799 #: ../tools/virt-make-fs.pl:129
28800 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28801 msgstr ""
28802
28803 # type: textblock
28804 #: ../tools/virt-make-fs.pl:131
28805 msgid ""
28806 "Adding a partition can make the disk image more compatible with certain "
28807 "virtualized operating systems which don't expect to see a filesystem "
28808 "directly located on a block device (Linux doesn't care and will happily "
28809 "handle both types)."
28810 msgstr ""
28811
28812 # type: textblock
28813 #: ../tools/virt-make-fs.pl:136
28814 msgid ""
28815 "On the other hand, if you have a partition table then the output image is no "
28816 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28817 "directly on a partitioned disk image.  (However libguestfs tools such as "
28818 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28819 msgstr ""
28820
28821 # type: textblock
28822 #: ../tools/virt-make-fs.pl:144
28823 msgid "Add an MBR partition:"
28824 msgstr ""
28825
28826 # type: verbatim
28827 #: ../tools/virt-make-fs.pl:146
28828 #, no-wrap
28829 msgid ""
28830 " virt-make-fs --partition -- input disk.img\n"
28831 "\n"
28832 msgstr ""
28833
28834 # type: textblock
28835 #: ../tools/virt-make-fs.pl:148
28836 msgid ""
28837 "If the output disk image could be terabyte-sized or larger, it's better to "
28838 "use an EFI/GPT-compatible partition table:"
28839 msgstr ""
28840
28841 # type: verbatim
28842 #: ../tools/virt-make-fs.pl:151
28843 #, no-wrap
28844 msgid ""
28845 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28846 "\n"
28847 msgstr ""
28848
28849 # type: textblock
28850 #: ../tools/virt-make-fs.pl:179
28851 msgid "Enable debugging information."
28852 msgstr ""
28853
28854 # type: =item
28855 #: ../tools/virt-make-fs.pl:185
28856 msgid "B<--size=E<lt>NE<gt>>"
28857 msgstr ""
28858
28859 # type: =item
28860 #: ../tools/virt-make-fs.pl:187
28861 msgid "B<--size=+E<lt>NE<gt>>"
28862 msgstr ""
28863
28864 # type: =item
28865 #: ../tools/virt-make-fs.pl:189
28866 msgid "B<-s E<lt>NE<gt>>"
28867 msgstr ""
28868
28869 # type: =item
28870 #: ../tools/virt-make-fs.pl:191
28871 msgid "B<-s +E<lt>NE<gt>>"
28872 msgstr ""
28873
28874 # type: textblock
28875 #: ../tools/virt-make-fs.pl:193
28876 msgid ""
28877 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28878 msgstr ""
28879
28880 # type: textblock
28881 #: ../tools/virt-make-fs.pl:196
28882 msgid ""
28883 "If this option is I<not> given, then the output image will be just large "
28884 "enough to contain all the files, with not much wasted space."
28885 msgstr ""
28886
28887 # type: textblock
28888 #: ../tools/virt-make-fs.pl:199
28889 msgid ""
28890 "To choose a fixed size output disk, specify an absolute number followed by b/"
28891 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28892 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28893 "files, else you will get an error."
28894 msgstr ""
28895
28896 # type: textblock
28897 #: ../tools/virt-make-fs.pl:204
28898 msgid ""
28899 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28900 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28901 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28902 "the input files, and (approximately) an extra 200 MB free space."
28903 msgstr ""
28904
28905 # type: textblock
28906 #: ../tools/virt-make-fs.pl:210
28907 msgid ""
28908 "Note that virt-make-fs estimates free space, and therefore will not produce "
28909 "filesystems containing precisely the free space requested.  (It is much more "
28910 "expensive and time-consuming to produce a filesystem which has precisely the "
28911 "desired free space)."
28912 msgstr ""
28913
28914 # type: =item
28915 #: ../tools/virt-make-fs.pl:219
28916 msgid "B<--format=E<lt>fmtE<gt>>"
28917 msgstr ""
28918
28919 # type: =item
28920 #: ../tools/virt-make-fs.pl:221
28921 msgid "B<-F E<lt>fmtE<gt>>"
28922 msgstr ""
28923
28924 # type: textblock
28925 #: ../tools/virt-make-fs.pl:223
28926 msgid "Choose the output disk image format."
28927 msgstr ""
28928
28929 # type: textblock
28930 #: ../tools/virt-make-fs.pl:225
28931 msgid "The default is C<raw> (raw disk image)."
28932 msgstr ""
28933
28934 # type: textblock
28935 #: ../tools/virt-make-fs.pl:227
28936 msgid ""
28937 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28938 "that would really make sense here is C<qcow2>."
28939 msgstr ""
28940
28941 # type: =item
28942 #: ../tools/virt-make-fs.pl:234
28943 msgid "B<--type=E<lt>fsE<gt>>"
28944 msgstr ""
28945
28946 # type: =item
28947 #: ../tools/virt-make-fs.pl:236
28948 msgid "B<-t E<lt>fsE<gt>>"
28949 msgstr ""
28950
28951 # type: textblock
28952 #: ../tools/virt-make-fs.pl:238
28953 msgid "Choose the output filesystem type."
28954 msgstr ""
28955
28956 # type: textblock
28957 #: ../tools/virt-make-fs.pl:240
28958 msgid "The default is C<ext2>."
28959 msgstr ""
28960
28961 # type: textblock
28962 #: ../tools/virt-make-fs.pl:242
28963 msgid ""
28964 "Any filesystem which is supported read-write by libguestfs can be used here."
28965 msgstr ""
28966
28967 # type: =item
28968 #: ../tools/virt-make-fs.pl:249
28969 msgid "B<--partition>"
28970 msgstr ""
28971
28972 # type: =item
28973 #: ../tools/virt-make-fs.pl:251
28974 msgid "B<--partition=E<lt>parttypeE<gt>>"
28975 msgstr ""
28976
28977 # type: textblock
28978 #: ../tools/virt-make-fs.pl:253
28979 msgid ""
28980 "If specified, this flag adds an MBR partition table to the output disk image."
28981 msgstr ""
28982
28983 # type: textblock
28984 #: ../tools/virt-make-fs.pl:256
28985 msgid ""
28986 "You can change the partition table type, eg. C<--partition=gpt> for large "
28987 "disks."
28988 msgstr ""
28989
28990 # type: textblock
28991 #: ../tools/virt-make-fs.pl:259
28992 msgid ""
28993 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28994 "might consider the next parameter to be the partition type.  For example:"
28995 msgstr ""
28996
28997 # type: verbatim
28998 #: ../tools/virt-make-fs.pl:263
28999 #, no-wrap
29000 msgid ""
29001 " virt-make-fs --partition input.tar ...\n"
29002 "\n"
29003 msgstr ""
29004
29005 # type: textblock
29006 #: ../tools/virt-make-fs.pl:265
29007 msgid ""
29008 "would cause virt-make-fs to think you wanted to use a partition type of "
29009 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
29010 "dash) between options and the input file argument:"
29011 msgstr ""
29012
29013 # type: verbatim
29014 #: ../tools/virt-make-fs.pl:269
29015 #, no-wrap
29016 msgid ""
29017 " virt-make-fs --partition -- input.tar ...\n"
29018 "\n"
29019 msgstr ""
29020
29021 # type: textblock
29022 #: ../tools/virt-make-fs.pl:536
29023 msgid ""
29024 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
29025 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
29026 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29027 msgstr ""
29028
29029 # type: verbatim
29030 #: ../tools/virt-make-fs.pl:553
29031 #, no-wrap
29032 msgid ""
29033 " export LIBGUESTFS_DEBUG=1\n"
29034 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29035 "\n"
29036 msgstr ""
29037
29038 # type: textblock
29039 #: ../tools/virt-make-fs.pl:556
29040 msgid ""
29041 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
29042 "redhat.com/>"
29043 msgstr ""
29044
29045 # type: textblock
29046 #: ../tools/virt-list-partitions.pl:32
29047 msgid ""
29048 "virt-list-partitions - List partitions in a virtual machine or disk image"
29049 msgstr ""
29050
29051 # type: verbatim
29052 #: ../tools/virt-list-partitions.pl:36
29053 #, no-wrap
29054 msgid ""
29055 " virt-list-partitions [--options] domname\n"
29056 "\n"
29057 msgstr ""
29058
29059 # type: verbatim
29060 #: ../tools/virt-list-partitions.pl:38
29061 #, no-wrap
29062 msgid ""
29063 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29064 "\n"
29065 msgstr ""
29066
29067 # type: textblock
29068 #: ../tools/virt-list-partitions.pl:45
29069 msgid ""
29070 "C<virt-list-partitions> is a command line tool to list the partitions that "
29071 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29072 "first step to using L<virt-resize(1)>."
29073 msgstr ""
29074
29075 # type: textblock
29076 #: ../tools/virt-list-partitions.pl:50
29077 msgid ""
29078 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
29079 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29080 "> tool."
29081 msgstr ""
29082
29083 # type: =item
29084 #: ../tools/virt-list-partitions.pl:107
29085 msgid "B<-h> | B<--human-readable>"
29086 msgstr ""
29087
29088 # type: textblock
29089 #: ../tools/virt-list-partitions.pl:109
29090 msgid "Show sizes in human-readable form (eg. \"1G\")."
29091 msgstr ""
29092
29093 # type: textblock
29094 #: ../tools/virt-list-partitions.pl:117
29095 msgid ""
29096 "With this option, C<virt-list-partitions> displays the type and size of each "
29097 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
29098 msgstr ""
29099
29100 # type: =item
29101 #: ../tools/virt-list-partitions.pl:124
29102 msgid "B<-t> | B<--total>"
29103 msgstr ""
29104
29105 # type: textblock
29106 #: ../tools/virt-list-partitions.pl:126
29107 msgid ""
29108 "Display the total size of each block device (as a separate row or rows)."
29109 msgstr ""
29110
29111 # type: textblock
29112 #: ../tools/virt-list-partitions.pl:259
29113 msgid ""
29114 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
29115 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
29116 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29117 msgstr ""