Version 1.7.24.
[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-16 23:16+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:985
784 #: ../src/guestfs.pod:989 ../src/guestfs.pod:993 ../src/guestfs.pod:998
785 #: ../src/guestfs.pod:1006 ../src/guestfs.pod:1025 ../src/guestfs.pod:1033
786 #: ../src/guestfs.pod:1055 ../src/guestfs.pod:1059 ../src/guestfs.pod:1063
787 #: ../src/guestfs.pod:1067 ../src/guestfs.pod:1071 ../src/guestfs.pod:1075
788 #: ../src/guestfs.pod:1557 ../src/guestfs.pod:1562 ../src/guestfs.pod:1566
789 #: ../src/guestfs.pod:1676 ../src/guestfs.pod:1681 ../src/guestfs.pod:1685
790 #: ../src/guestfs.pod:2037 ../src/guestfs.pod:2043 ../src/guestfs.pod:2048
791 #: ../src/guestfs.pod:2054 ../src/guestfs.pod:2166 ../src/guestfs.pod:2170
792 #: ../src/guestfs.pod:2174 ../src/guestfs.pod:2178
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:1178 ../src/guestfs.pod:1309
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:1182 ../src/guestfs.pod:1313
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:1319
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: =head3
1234 #: ../src/guestfs.pod:590
1235 msgid "DRIVE LETTERS AND PATHS"
1236 msgstr ""
1237
1238 # type: textblock
1239 #: ../src/guestfs.pod:592
1240 msgid ""
1241 "DOS and Windows still use drive letters, and the filesystems are always "
1242 "treated as case insensitive by Windows itself, and therefore you might find "
1243 "a Windows configuration file referring to a path like C<c:\\windows"
1244 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1245 "might be referred to as C</WINDOWS/System32>."
1246 msgstr ""
1247
1248 # type: textblock
1249 #: ../src/guestfs.pod:598
1250 msgid ""
1251 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1252 "libguestfs to read the appropriate Windows Registry and configuration files, "
1253 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1254 "inspector(1)>)."
1255 msgstr ""
1256
1257 # type: textblock
1258 #: ../src/guestfs.pod:603
1259 msgid ""
1260 "Replacing backslash characters with forward slash characters is also outside "
1261 "the scope of libguestfs, but something that you can easily do."
1262 msgstr ""
1263
1264 # type: textblock
1265 #: ../src/guestfs.pod:606
1266 msgid ""
1267 "Where we can help is in resolving the case insensitivity of paths.  For "
1268 "this, call L</guestfs_case_sensitive_path>."
1269 msgstr ""
1270
1271 # type: =head3
1272 #: ../src/guestfs.pod:609
1273 msgid "ACCESSING THE WINDOWS REGISTRY"
1274 msgstr ""
1275
1276 # type: textblock
1277 #: ../src/guestfs.pod:611
1278 msgid ""
1279 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1280 "files, through the library C<hivex> which is part of the libguestfs project "
1281 "although ships as a separate tarball.  You have to locate and download the "
1282 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1283 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1284 "reg(1)> for more help on this issue."
1285 msgstr ""
1286
1287 # type: =head3
1288 #: ../src/guestfs.pod:619
1289 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1290 msgstr ""
1291
1292 # type: textblock
1293 #: ../src/guestfs.pod:621
1294 msgid ""
1295 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1296 "provide something which looks like a Linux symlink.  The way it tries to do "
1297 "the rewriting is described here:"
1298 msgstr ""
1299
1300 # type: textblock
1301 #: ../src/guestfs.pod:625
1302 msgid ""
1303 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1304 "symbolic-links/>"
1305 msgstr ""
1306
1307 # type: textblock
1308 #: ../src/guestfs.pod:627
1309 msgid ""
1310 "The essential problem is that ntfs-3g simply does not have enough "
1311 "information to do a correct job.  NTFS links can contain drive letters and "
1312 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1313 "It is almost certainly the case that libguestfs callers should ignore what "
1314 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1315 msgstr ""
1316
1317 # type: textblock
1318 #: ../src/guestfs.pod:634
1319 msgid ""
1320 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1321 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1322 "attribute, and read the raw reparse data from that (you can find the format "
1323 "documented in various places around the web)."
1324 msgstr ""
1325
1326 # type: =head3
1327 #: ../src/guestfs.pod:639
1328 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1329 msgstr ""
1330
1331 # type: textblock
1332 #: ../src/guestfs.pod:641
1333 msgid ""
1334 "There are other useful extended attributes that can be read from ntfs-3g "
1335 "filesystems (using L</guestfs_getxattr>).  See:"
1336 msgstr ""
1337
1338 # type: textblock
1339 #: ../src/guestfs.pod:644
1340 msgid ""
1341 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1342 msgstr ""
1343
1344 # type: =head2
1345 #: ../src/guestfs.pod:646
1346 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1347 msgstr ""
1348
1349 # type: textblock
1350 #: ../src/guestfs.pod:648
1351 msgid ""
1352 "Although we don't want to discourage you from using the C API, we will "
1353 "mention here that the same API is also available in other languages."
1354 msgstr ""
1355
1356 # type: textblock
1357 #: ../src/guestfs.pod:651
1358 msgid ""
1359 "The API is broadly identical in all supported languages.  This means that "
1360 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1361 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1362 "words, a straightforward, predictable isomorphism between each language."
1363 msgstr ""
1364
1365 # type: textblock
1366 #: ../src/guestfs.pod:657
1367 msgid ""
1368 "Error messages are automatically transformed into exceptions if the language "
1369 "supports it."
1370 msgstr ""
1371
1372 # type: textblock
1373 #: ../src/guestfs.pod:660
1374 msgid ""
1375 "We don't try to \"object orientify\" parts of the API in OO languages, "
1376 "although contributors are welcome to write higher level APIs above what we "
1377 "provide in their favourite languages if they wish."
1378 msgstr ""
1379
1380 # type: =item
1381 #: ../src/guestfs.pod:666
1382 msgid "B<C++>"
1383 msgstr ""
1384
1385 # type: textblock
1386 #: ../src/guestfs.pod:668
1387 msgid ""
1388 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1389 "identical to the C API.  C++ classes and exceptions are not used."
1390 msgstr ""
1391
1392 # type: =item
1393 #: ../src/guestfs.pod:672
1394 msgid "B<C#>"
1395 msgstr ""
1396
1397 # type: textblock
1398 #: ../src/guestfs.pod:674
1399 msgid ""
1400 "The C# bindings are highly experimental.  Please read the warnings at the "
1401 "top of C<csharp/Libguestfs.cs>."
1402 msgstr ""
1403
1404 # type: =item
1405 #: ../src/guestfs.pod:677
1406 msgid "B<Haskell>"
1407 msgstr ""
1408
1409 # type: textblock
1410 #: ../src/guestfs.pod:679
1411 msgid ""
1412 "This is the only language binding that is working but incomplete.  Only "
1413 "calls which return simple integers have been bound in Haskell, and we are "
1414 "looking for help to complete this binding."
1415 msgstr ""
1416
1417 # type: =item
1418 #: ../src/guestfs.pod:683
1419 msgid "B<Java>"
1420 msgstr ""
1421
1422 # type: textblock
1423 #: ../src/guestfs.pod:685
1424 msgid ""
1425 "Full documentation is contained in the Javadoc which is distributed with "
1426 "libguestfs."
1427 msgstr ""
1428
1429 # type: =item
1430 #: ../src/guestfs.pod:688
1431 msgid "B<OCaml>"
1432 msgstr ""
1433
1434 # type: textblock
1435 #: ../src/guestfs.pod:690
1436 msgid "For documentation see L<guestfs-ocaml(3)>."
1437 msgstr ""
1438
1439 # type: =item
1440 #: ../src/guestfs.pod:692
1441 msgid "B<Perl>"
1442 msgstr ""
1443
1444 # type: textblock
1445 #: ../src/guestfs.pod:694
1446 msgid "For documentation see L<Sys::Guestfs(3)>."
1447 msgstr ""
1448
1449 # type: =item
1450 #: ../src/guestfs.pod:696
1451 msgid "B<PHP>"
1452 msgstr ""
1453
1454 # type: textblock
1455 #: ../src/guestfs.pod:698
1456 msgid ""
1457 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1458 "the php-libguestfs package for your distribution."
1459 msgstr ""
1460
1461 # type: textblock
1462 #: ../src/guestfs.pod:701
1463 msgid "The PHP binding only works correctly on 64 bit machines."
1464 msgstr ""
1465
1466 # type: =item
1467 #: ../src/guestfs.pod:703
1468 msgid "B<Python>"
1469 msgstr ""
1470
1471 # type: textblock
1472 #: ../src/guestfs.pod:705
1473 msgid "For documentation see L<guestfs-python(3)>."
1474 msgstr ""
1475
1476 # type: =item
1477 #: ../src/guestfs.pod:707
1478 msgid "B<Ruby>"
1479 msgstr ""
1480
1481 # type: textblock
1482 #: ../src/guestfs.pod:709
1483 msgid "For documentation see L<guestfs-ruby(3)>."
1484 msgstr ""
1485
1486 # type: =item
1487 #: ../src/guestfs.pod:711
1488 msgid "B<shell scripts>"
1489 msgstr ""
1490
1491 # type: textblock
1492 #: ../src/guestfs.pod:713
1493 msgid "For documentation see L<guestfish(1)>."
1494 msgstr ""
1495
1496 # type: =head2
1497 #: ../src/guestfs.pod:717
1498 msgid "LIBGUESTFS GOTCHAS"
1499 msgstr ""
1500
1501 # type: textblock
1502 #: ../src/guestfs.pod:719
1503 msgid ""
1504 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1505 "system [...] that works in the way it is documented but is counterintuitive "
1506 "and almost invites mistakes.\""
1507 msgstr ""
1508
1509 # type: textblock
1510 #: ../src/guestfs.pod:723
1511 msgid ""
1512 "Since we developed libguestfs and the associated tools, there are several "
1513 "things we would have designed differently, but are now stuck with for "
1514 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1515 "release, you can expect these to change.  Beware of them."
1516 msgstr ""
1517
1518 # type: =item
1519 #: ../src/guestfs.pod:731
1520 msgid "Autosync / forgetting to sync."
1521 msgstr ""
1522
1523 # type: textblock
1524 #: ../src/guestfs.pod:733
1525 msgid ""
1526 "When modifying a filesystem from C or another language, you B<must> unmount "
1527 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1528 "libguestfs handle.  You can also call:"
1529 msgstr ""
1530
1531 # type: verbatim
1532 #: ../src/guestfs.pod:737
1533 #, no-wrap
1534 msgid ""
1535 " guestfs_set_autosync (g, 1);\n"
1536 "\n"
1537 msgstr ""
1538
1539 # type: textblock
1540 #: ../src/guestfs.pod:739
1541 msgid ""
1542 "to have the unmount/sync done automatically for you when the handle 'g' is "
1543 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1544 msgstr ""
1545
1546 # type: textblock
1547 #: ../src/guestfs.pod:743
1548 msgid ""
1549 "If you forget to do this, then it is entirely possible that your changes "
1550 "won't be written out, or will be partially written, or (very rarely) that "
1551 "you'll get disk corruption."
1552 msgstr ""
1553
1554 # type: textblock
1555 #: ../src/guestfs.pod:747
1556 msgid ""
1557 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1558 "guestfish scripts that forget to sync will work just fine, which can make "
1559 "this very puzzling if you are trying to debug a problem."
1560 msgstr ""
1561
1562 # type: textblock
1563 #: ../src/guestfs.pod:751
1564 msgid ""
1565 "Update: Autosync is enabled by default for all API users starting from "
1566 "libguestfs 1.5.24."
1567 msgstr ""
1568
1569 # type: =item
1570 #: ../src/guestfs.pod:754
1571 msgid "Mount option C<-o sync> should not be the default."
1572 msgstr ""
1573
1574 # type: textblock
1575 #: ../src/guestfs.pod:756
1576 msgid ""
1577 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1578 "However C<-o sync> does not add any reliability benefit, but does have a "
1579 "very large performance impact."
1580 msgstr ""
1581
1582 # type: textblock
1583 #: ../src/guestfs.pod:760
1584 msgid ""
1585 "The work around is to use L</guestfs_mount_options> and set the mount "
1586 "options that you actually want to use."
1587 msgstr ""
1588
1589 # type: =item
1590 #: ../src/guestfs.pod:763
1591 msgid "Read-only should be the default."
1592 msgstr ""
1593
1594 # type: textblock
1595 #: ../src/guestfs.pod:765
1596 msgid ""
1597 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1598 "specify I<--rw> if you want to make changes to the image."
1599 msgstr ""
1600
1601 # type: textblock
1602 #: ../src/guestfs.pod:768
1603 msgid "This would reduce the potential to corrupt live VM images."
1604 msgstr ""
1605
1606 # type: textblock
1607 #: ../src/guestfs.pod:770
1608 msgid ""
1609 "Note that many filesystems change the disk when you just mount and unmount, "
1610 "even if you didn't perform any writes.  You need to use L</"
1611 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1612 msgstr ""
1613
1614 # type: =item
1615 #: ../src/guestfs.pod:774
1616 msgid "guestfish command line is hard to use."
1617 msgstr ""
1618
1619 # type: textblock
1620 #: ../src/guestfs.pod:776
1621 msgid ""
1622 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1623 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1624 "exist, so it fails.  In earlier versions of guestfish the error message was "
1625 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1626 "we should have used C<guestfish -c command> to run commands."
1627 msgstr ""
1628
1629 # type: =item
1630 #: ../src/guestfs.pod:783
1631 msgid "guestfish megabyte modifiers don't work right on all commands"
1632 msgstr ""
1633
1634 # type: textblock
1635 #: ../src/guestfs.pod:785
1636 msgid ""
1637 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1638 "other modifiers).  What guestfish actually does is to multiply the number "
1639 "part by the modifier part and pass the result to the C API.  However this "
1640 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1641 "expecting some other unit (eg. megabytes)."
1642 msgstr ""
1643
1644 # type: textblock
1645 #: ../src/guestfs.pod:792
1646 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1647 msgstr ""
1648
1649 # type: verbatim
1650 #: ../src/guestfs.pod:794
1651 #, no-wrap
1652 msgid ""
1653 " lvcreate LV VG 100M\n"
1654 "\n"
1655 msgstr ""
1656
1657 # type: textblock
1658 #: ../src/guestfs.pod:796
1659 msgid ""
1660 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1661 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1662 "megabytes * megabytes) logical volume.  The error message you get from this "
1663 "is also a little obscure."
1664 msgstr ""
1665
1666 # type: textblock
1667 #: ../src/guestfs.pod:801
1668 msgid ""
1669 "This could be fixed in the generator by specially marking parameters and "
1670 "return values which take bytes or other units."
1671 msgstr ""
1672
1673 # type: =item
1674 #: ../src/guestfs.pod:804
1675 msgid "Ambiguity between devices and paths"
1676 msgstr ""
1677
1678 # type: textblock
1679 #: ../src/guestfs.pod:806
1680 msgid ""
1681 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1682 "sdb2>) and a similar pathname.  A file might just happen to be called "
1683 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1684 msgstr ""
1685
1686 # type: textblock
1687 #: ../src/guestfs.pod:811
1688 msgid ""
1689 "In the current API we usually resolve this ambiguity by having two separate "
1690 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1691 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1692 "detecting if the path supplied begins with C</dev/>."
1693 msgstr ""
1694
1695 # type: textblock
1696 #: ../src/guestfs.pod:817
1697 msgid ""
1698 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1699 "make paths/devices into structured names.  One way to do this would be to "
1700 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1701 "aspect of grub.  Another way would be to use a structured type, equivalent "
1702 "to this OCaml type:"
1703 msgstr ""
1704
1705 # type: verbatim
1706 #: ../src/guestfs.pod:823
1707 #, no-wrap
1708 msgid ""
1709 " type path = Path of string | Device of int | Partition of int * int\n"
1710 "\n"
1711 msgstr ""
1712
1713 # type: textblock
1714 #: ../src/guestfs.pod:825
1715 msgid "which would allow you to pass arguments like:"
1716 msgstr ""
1717
1718 # type: verbatim
1719 #: ../src/guestfs.pod:827
1720 #, no-wrap
1721 msgid ""
1722 " Path \"/foo/bar\"\n"
1723 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1724 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1725 " Path \"/dev/sdb2\"    (* not a device *)\n"
1726 "\n"
1727 msgstr ""
1728
1729 # type: textblock
1730 #: ../src/guestfs.pod:832
1731 msgid ""
1732 "As you can see there are still problems to resolve even with this "
1733 "representation.  Also consider how it might work in guestfish."
1734 msgstr ""
1735
1736 # type: =head2
1737 #: ../src/guestfs.pod:837
1738 msgid "PROTOCOL LIMITS"
1739 msgstr ""
1740
1741 # type: textblock
1742 #: ../src/guestfs.pod:839
1743 msgid ""
1744 "Internally libguestfs uses a message-based protocol to pass API calls and "
1745 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1746 "plenty more detail about this).  The maximum message size used by the "
1747 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1748 "aware of this limit.  The API calls which may be affected are individually "
1749 "documented, with a link back to this section of the documentation."
1750 msgstr ""
1751
1752 # type: textblock
1753 #: ../src/guestfs.pod:847
1754 msgid ""
1755 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1756 "a simple string.  Because this string is at some point internally encoded as "
1757 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1758 "the requested file is larger than this then you will get an error."
1759 msgstr ""
1760
1761 # type: textblock
1762 #: ../src/guestfs.pod:853
1763 msgid ""
1764 "In order to transfer large files into and out of the guest filesystem, you "
1765 "need to use particular calls that support this.  The sections L</UPLOADING> "
1766 "and L</DOWNLOADING> document how to do this."
1767 msgstr ""
1768
1769 # type: textblock
1770 #: ../src/guestfs.pod:857
1771 msgid ""
1772 "You might also consider mounting the disk image using our FUSE filesystem "
1773 "support (L<guestmount(1)>)."
1774 msgstr ""
1775
1776 # type: =head2
1777 #: ../src/guestfs.pod:860
1778 msgid "KEYS AND PASSPHRASES"
1779 msgstr ""
1780
1781 # type: textblock
1782 #: ../src/guestfs.pod:862
1783 msgid ""
1784 "Certain libguestfs calls take a parameter that contains sensitive key "
1785 "material, passed in as a C string."
1786 msgstr ""
1787
1788 # type: textblock
1789 #: ../src/guestfs.pod:865
1790 msgid ""
1791 "In the future we would hope to change the libguestfs implementation so that "
1792 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1793 "swap.  However this is I<not> done at the moment, because of the complexity "
1794 "of such an implementation."
1795 msgstr ""
1796
1797 # type: textblock
1798 #: ../src/guestfs.pod:870
1799 msgid ""
1800 "Therefore you should be aware that any key parameter you pass to libguestfs "
1801 "might end up being written out to the swap partition.  If this is a concern, "
1802 "scrub the swap partition or don't use libguestfs on encrypted devices."
1803 msgstr ""
1804
1805 # type: =head1
1806 #: ../src/guestfs.pod:875
1807 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1808 msgstr ""
1809
1810 # type: textblock
1811 #: ../src/guestfs.pod:877
1812 msgid ""
1813 "All high-level libguestfs actions are synchronous.  If you want to use "
1814 "libguestfs asynchronously then you must create a thread."
1815 msgstr ""
1816
1817 # type: textblock
1818 #: ../src/guestfs.pod:880
1819 msgid ""
1820 "Only use the handle from a single thread.  Either use the handle exclusively "
1821 "from one thread, or provide your own mutex so that two threads cannot issue "
1822 "calls on the same handle at the same time."
1823 msgstr ""
1824
1825 # type: textblock
1826 #: ../src/guestfs.pod:884
1827 msgid ""
1828 "See the graphical program guestfs-browser for one possible architecture for "
1829 "multithreaded programs using libvirt and libguestfs."
1830 msgstr ""
1831
1832 # type: =head1
1833 #: ../src/guestfs.pod:887
1834 msgid "PATH"
1835 msgstr ""
1836
1837 # type: textblock
1838 #: ../src/guestfs.pod:889
1839 msgid ""
1840 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1841 "internal path."
1842 msgstr ""
1843
1844 # type: textblock
1845 #: ../src/guestfs.pod:892
1846 msgid ""
1847 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1848 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1849 msgstr ""
1850
1851 # type: textblock
1852 #: ../src/guestfs.pod:895
1853 msgid ""
1854 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1855 "to change the directories that libguestfs will search in.  The value is a "
1856 "colon-separated list of paths.  The current directory is I<not> searched "
1857 "unless the path contains an empty element or C<.>.  For example "
1858 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1859 "then C</usr/lib/guestfs>."
1860 msgstr ""
1861
1862 # type: =head1
1863 #: ../src/guestfs.pod:902
1864 msgid "QEMU WRAPPERS"
1865 msgstr ""
1866
1867 # type: textblock
1868 #: ../src/guestfs.pod:904
1869 msgid ""
1870 "If you want to compile your own qemu, run qemu from a non-standard location, "
1871 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1872 "around qemu."
1873 msgstr ""
1874
1875 # type: textblock
1876 #: ../src/guestfs.pod:908
1877 msgid ""
1878 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1879 "last command in the shell script (so that qemu replaces the shell and "
1880 "becomes the direct child of the libguestfs-using program).  If you don't do "
1881 "this, then the qemu process won't be cleaned up correctly."
1882 msgstr ""
1883
1884 # type: textblock
1885 #: ../src/guestfs.pod:913
1886 msgid ""
1887 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1888 "source:"
1889 msgstr ""
1890
1891 # type: verbatim
1892 #: ../src/guestfs.pod:916
1893 #, no-wrap
1894 msgid ""
1895 " #!/bin/sh -\n"
1896 " qemudir=/home/rjones/d/qemu\n"
1897 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1898 "\n"
1899 msgstr ""
1900
1901 # type: textblock
1902 #: ../src/guestfs.pod:920
1903 msgid ""
1904 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1905 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1906 "example:"
1907 msgstr ""
1908
1909 # type: verbatim
1910 #: ../src/guestfs.pod:924
1911 #, no-wrap
1912 msgid ""
1913 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1914 "\n"
1915 msgstr ""
1916
1917 # type: textblock
1918 #: ../src/guestfs.pod:926
1919 msgid ""
1920 "Note that libguestfs also calls qemu with the -help and -version options in "
1921 "order to determine features."
1922 msgstr ""
1923
1924 # type: =head2
1925 #: ../src/guestfs.pod:929
1926 msgid "ABI GUARANTEE"
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:931
1931 msgid ""
1932 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1933 "actions as outlined in this section.  Although we will deprecate some "
1934 "actions, for example if they get replaced by newer calls, we will keep the "
1935 "old actions forever.  This allows you the developer to program in confidence "
1936 "against the libguestfs API."
1937 msgstr ""
1938
1939 # type: =head1
1940 #: ../src/guestfs.pod:937
1941 msgid "BLOCK DEVICE NAMING"
1942 msgstr ""
1943
1944 # type: textblock
1945 #: ../src/guestfs.pod:939
1946 msgid ""
1947 "In the kernel there is now quite a profusion of schemata for naming block "
1948 "devices (in this context, by I<block device> I mean a physical or virtual "
1949 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1950 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1951 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1952 "for the old IDE driver (particularly for SATA devices) those devices also "
1953 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1954 "paravirtualized drivers.  This has created several different naming systems, "
1955 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1956 msgstr ""
1957
1958 # type: textblock
1959 #: ../src/guestfs.pod:951
1960 msgid ""
1961 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1962 "Linux kernel to access block devices.  We can run a variety of appliances "
1963 "based on a variety of Linux kernels."
1964 msgstr ""
1965
1966 # type: textblock
1967 #: ../src/guestfs.pod:955
1968 msgid ""
1969 "This causes a problem for libguestfs because many API calls use device or "
1970 "partition names.  Working scripts and the recipe (example) scripts that we "
1971 "make available over the internet could fail if the naming scheme changes."
1972 msgstr ""
1973
1974 # type: textblock
1975 #: ../src/guestfs.pod:960
1976 msgid ""
1977 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1978 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1979 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1980 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:966
1985 msgid ""
1986 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1987 "L</guestfs_list_partitions> and similar calls return the true names of the "
1988 "devices and partitions as known to the appliance."
1989 msgstr ""
1990
1991 # type: =head2
1992 #: ../src/guestfs.pod:971
1993 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1994 msgstr ""
1995
1996 # type: textblock
1997 #: ../src/guestfs.pod:973
1998 msgid ""
1999 "Usually this translation is transparent.  However in some (very rare)  cases "
2000 "you may need to know the exact algorithm.  Such cases include where you use "
2001 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2002 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2003 msgstr ""
2004
2005 # type: textblock
2006 #: ../src/guestfs.pod:979
2007 msgid ""
2008 "The algorithm is applied only to I<parameters> which are known to be either "
2009 "device or partition names.  Return values from functions such as L</"
2010 "guestfs_list_devices> are never changed."
2011 msgstr ""
2012
2013 # type: textblock
2014 #: ../src/guestfs.pod:987
2015 msgid "Is the string a parameter which is a device or partition name?"
2016 msgstr ""
2017
2018 # type: textblock
2019 #: ../src/guestfs.pod:991
2020 msgid "Does the string begin with C</dev/sd>?"
2021 msgstr ""
2022
2023 # type: textblock
2024 #: ../src/guestfs.pod:995
2025 msgid ""
2026 "Does the named device exist? If so, we use that device.  However if I<not> "
2027 "then we continue with this algorithm."
2028 msgstr ""
2029
2030 # type: textblock
2031 #: ../src/guestfs.pod:1000
2032 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2033 msgstr ""
2034
2035 # type: textblock
2036 #: ../src/guestfs.pod:1002
2037 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2038 msgstr ""
2039
2040 # type: textblock
2041 #: ../src/guestfs.pod:1004
2042 msgid "If that named device exists, use it.  If not, continue."
2043 msgstr ""
2044
2045 # type: textblock
2046 #: ../src/guestfs.pod:1008
2047 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2048 msgstr ""
2049
2050 # type: textblock
2051 #: ../src/guestfs.pod:1010
2052 msgid "If that named device exists, use it.  If not, return an error."
2053 msgstr ""
2054
2055 # type: =head3
2056 #: ../src/guestfs.pod:1014
2057 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2058 msgstr ""
2059
2060 # type: textblock
2061 #: ../src/guestfs.pod:1016
2062 msgid ""
2063 "Although the standard naming scheme and automatic translation is useful for "
2064 "simple programs and guestfish scripts, for larger programs it is best not to "
2065 "rely on this mechanism."
2066 msgstr ""
2067
2068 # type: textblock
2069 #: ../src/guestfs.pod:1020
2070 msgid ""
2071 "Where possible for maximum future portability programs using libguestfs "
2072 "should use these future-proof techniques:"
2073 msgstr ""
2074
2075 # type: textblock
2076 #: ../src/guestfs.pod:1027
2077 msgid ""
2078 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2079 "device names, and then use those names directly."
2080 msgstr ""
2081
2082 # type: textblock
2083 #: ../src/guestfs.pod:1030
2084 msgid ""
2085 "Since those device names exist by definition, they will never be translated."
2086 msgstr ""
2087
2088 # type: textblock
2089 #: ../src/guestfs.pod:1035
2090 msgid ""
2091 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2092 "filesystem labels."
2093 msgstr ""
2094
2095 # type: =head1
2096 #: ../src/guestfs.pod:1040
2097 msgid "SECURITY"
2098 msgstr ""
2099
2100 # type: textblock
2101 #: ../src/guestfs.pod:1042
2102 msgid ""
2103 "This section discusses security implications of using libguestfs, "
2104 "particularly with untrusted or malicious guests or disk images."
2105 msgstr ""
2106
2107 # type: =head2
2108 #: ../src/guestfs.pod:1045
2109 msgid "GENERAL SECURITY CONSIDERATIONS"
2110 msgstr ""
2111
2112 # type: textblock
2113 #: ../src/guestfs.pod:1047
2114 msgid ""
2115 "Be careful with any files or data that you download from a guest (by "
2116 "\"download\" we mean not just the L</guestfs_download> command but any "
2117 "command that reads files, filenames, directories or anything else from a "
2118 "disk image).  An attacker could manipulate the data to fool your program "
2119 "into doing the wrong thing.  Consider cases such as:"
2120 msgstr ""
2121
2122 # type: textblock
2123 #: ../src/guestfs.pod:1057
2124 msgid "the data (file etc) not being present"
2125 msgstr ""
2126
2127 # type: textblock
2128 #: ../src/guestfs.pod:1061
2129 msgid "being present but empty"
2130 msgstr ""
2131
2132 # type: textblock
2133 #: ../src/guestfs.pod:1065
2134 msgid "being much larger than normal"
2135 msgstr ""
2136
2137 # type: textblock
2138 #: ../src/guestfs.pod:1069
2139 msgid "containing arbitrary 8 bit data"
2140 msgstr ""
2141
2142 # type: textblock
2143 #: ../src/guestfs.pod:1073
2144 msgid "being in an unexpected character encoding"
2145 msgstr ""
2146
2147 # type: textblock
2148 #: ../src/guestfs.pod:1077
2149 msgid "containing homoglyphs."
2150 msgstr ""
2151
2152 # type: =head2
2153 #: ../src/guestfs.pod:1081
2154 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2155 msgstr ""
2156
2157 # type: textblock
2158 #: ../src/guestfs.pod:1083
2159 msgid ""
2160 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2161 "(VFS) module can sometimes be escalated into exploits by deliberately "
2162 "creating a malicious, malformed filesystem.  These exploits are very severe "
2163 "for two reasons.  Firstly there are very many filesystem drivers in the "
2164 "kernel, and many of them are infrequently used and not much developer "
2165 "attention has been paid to the code.  Linux userspace helps potential "
2166 "crackers by detecting the filesystem type and automatically choosing the "
2167 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2168 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2169 "exploit (worse in some ways), giving immediate and total access to the "
2170 "system right down to the hardware level."
2171 msgstr ""
2172
2173 # type: textblock
2174 #: ../src/guestfs.pod:1096
2175 msgid ""
2176 "That explains why you should never mount a filesystem from an untrusted "
2177 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2178 "inside a qemu virtual machine, usually running as a non-root user.  The "
2179 "attacker would need to write a filesystem which first exploited the kernel, "
2180 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2181 "the libguestfs protocol, and finally to be as serious as the host kernel "
2182 "exploit it would need to escalate its privileges to root.  This multi-step "
2183 "escalation, performed by a static piece of data, is thought to be extremely "
2184 "hard to do, although we never say 'never' about security issues."
2185 msgstr ""
2186
2187 # type: textblock
2188 #: ../src/guestfs.pod:1107
2189 msgid ""
2190 "In any case callers can reduce the attack surface by forcing the filesystem "
2191 "type when mounting (use L</guestfs_mount_vfs>)."
2192 msgstr ""
2193
2194 # type: =head2
2195 #: ../src/guestfs.pod:1110
2196 msgid "PROTOCOL SECURITY"
2197 msgstr ""
2198
2199 # type: textblock
2200 #: ../src/guestfs.pod:1112
2201 msgid ""
2202 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2203 "defined upper message size.  However a program that uses libguestfs must "
2204 "also take care - for example you can write a program that downloads a binary "
2205 "from a disk image and executes it locally, and no amount of protocol "
2206 "security will save you from the consequences."
2207 msgstr ""
2208
2209 # type: =head2
2210 #: ../src/guestfs.pod:1118
2211 msgid "INSPECTION SECURITY"
2212 msgstr ""
2213
2214 # type: textblock
2215 #: ../src/guestfs.pod:1120
2216 msgid ""
2217 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2218 "directly from the guest, and these could contain any 8 bit data.  Callers "
2219 "should be careful to escape these before printing them to a structured file "
2220 "(for example, use HTML escaping if creating a web page)."
2221 msgstr ""
2222
2223 # type: textblock
2224 #: ../src/guestfs.pod:1126
2225 msgid ""
2226 "Guest configuration may be altered in unusual ways by the administrator of "
2227 "the virtual machine, and may not reflect reality (particularly for untrusted "
2228 "or actively malicious guests).  For example we parse the hostname from "
2229 "configuration files like C</etc/sysconfig/network> that we find in the "
2230 "guest, but the guest administrator can easily manipulate these files to "
2231 "provide the wrong hostname."
2232 msgstr ""
2233
2234 # type: textblock
2235 #: ../src/guestfs.pod:1134
2236 msgid ""
2237 "The inspection API parses guest configuration using two external libraries: "
2238 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2239 "designed to be robust in the face of malicious data, although denial of "
2240 "service attacks are still possible, for example with oversized configuration "
2241 "files."
2242 msgstr ""
2243
2244 # type: =head2
2245 #: ../src/guestfs.pod:1140
2246 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2247 msgstr ""
2248
2249 # type: textblock
2250 #: ../src/guestfs.pod:1142
2251 msgid ""
2252 "Be very cautious about running commands from the guest.  By running a "
2253 "command in the guest, you are giving CPU time to a binary that you do not "
2254 "control, under the same user account as the library, albeit wrapped in qemu "
2255 "virtualization.  More information and alternatives can be found in the "
2256 "section L</RUNNING COMMANDS>."
2257 msgstr ""
2258
2259 # type: =head2
2260 #: ../src/guestfs.pod:1148
2261 msgid "CVE-2010-3851"
2262 msgstr ""
2263
2264 # type: textblock
2265 #: ../src/guestfs.pod:1150
2266 msgid "https://bugzilla.redhat.com/642934"
2267 msgstr ""
2268
2269 # type: textblock
2270 #: ../src/guestfs.pod:1152
2271 msgid ""
2272 "This security bug concerns the automatic disk format detection that qemu "
2273 "does on disk images."
2274 msgstr ""
2275
2276 # type: textblock
2277 #: ../src/guestfs.pod:1155
2278 msgid ""
2279 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2280 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2281 "for one of the known headers, and if none is found then assuming the disk "
2282 "image must be raw."
2283 msgstr ""
2284
2285 # type: textblock
2286 #: ../src/guestfs.pod:1160
2287 msgid ""
2288 "This allows a guest which has been given a raw disk image to write some "
2289 "other header.  At next boot (or when the disk image is accessed by "
2290 "libguestfs) qemu would do autodetection and think the disk image format was, "
2291 "say, qcow2 based on the header written by the guest."
2292 msgstr ""
2293
2294 # type: textblock
2295 #: ../src/guestfs.pod:1165
2296 msgid ""
2297 "This in itself would not be a problem, but qcow2 offers many features, one "
2298 "of which is to allow a disk image to refer to another image (called the "
2299 "\"backing disk\").  It does this by placing the path to the backing disk "
2300 "into the qcow2 header.  This path is not validated and could point to any "
2301 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2302 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2303 "control of the attacker."
2304 msgstr ""
2305
2306 # type: textblock
2307 #: ../src/guestfs.pod:1173
2308 msgid ""
2309 "In libguestfs this is rather hard to exploit except under two circumstances:"
2310 msgstr ""
2311
2312 # type: textblock
2313 #: ../src/guestfs.pod:1180
2314 msgid "You have enabled the network or have opened the disk in write mode."
2315 msgstr ""
2316
2317 # type: textblock
2318 #: ../src/guestfs.pod:1184
2319 msgid ""
2320 "You are also running untrusted code from the guest (see L</RUNNING "
2321 "COMMANDS>)."
2322 msgstr ""
2323
2324 # type: textblock
2325 #: ../src/guestfs.pod:1189
2326 msgid ""
2327 "The way to avoid this is to specify the expected disk format when adding "
2328 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2329 "should always do this if the disk is raw format, and it's a good idea for "
2330 "other cases too."
2331 msgstr ""
2332
2333 # type: textblock
2334 #: ../src/guestfs.pod:1194
2335 msgid ""
2336 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2337 "format is fetched from libvirt and passed through."
2338 msgstr ""
2339
2340 # type: textblock
2341 #: ../src/guestfs.pod:1197
2342 msgid ""
2343 "For libguestfs tools, use the I<--format> command line parameter as "
2344 "appropriate."
2345 msgstr ""
2346
2347 # type: =head1
2348 #: ../src/guestfs.pod:1200
2349 msgid "CONNECTION MANAGEMENT"
2350 msgstr ""
2351
2352 # type: =head2
2353 #: ../src/guestfs.pod:1202
2354 msgid "guestfs_h *"
2355 msgstr ""
2356
2357 # type: textblock
2358 #: ../src/guestfs.pod:1204
2359 msgid ""
2360 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2361 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2362 "handle and release all resources used."
2363 msgstr ""
2364
2365 # type: textblock
2366 #: ../src/guestfs.pod:1208
2367 msgid ""
2368 "For information on using multiple handles and threads, see the section L</"
2369 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2370 msgstr ""
2371
2372 # type: =head2
2373 #: ../src/guestfs.pod:1211
2374 msgid "guestfs_create"
2375 msgstr ""
2376
2377 # type: verbatim
2378 #: ../src/guestfs.pod:1213
2379 #, no-wrap
2380 msgid ""
2381 " guestfs_h *guestfs_create (void);\n"
2382 "\n"
2383 msgstr ""
2384
2385 # type: textblock
2386 #: ../src/guestfs.pod:1215
2387 msgid "Create a connection handle."
2388 msgstr ""
2389
2390 # type: textblock
2391 #: ../src/guestfs.pod:1217
2392 msgid ""
2393 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2394 "on the handle at least once."
2395 msgstr ""
2396
2397 # type: textblock
2398 #: ../src/guestfs.pod:1220
2399 msgid ""
2400 "This function returns a non-NULL pointer to a handle on success or NULL on "
2401 "error."
2402 msgstr ""
2403
2404 # type: textblock
2405 #: ../src/guestfs.pod:1223
2406 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2407 msgstr ""
2408
2409 # type: textblock
2410 #: ../src/guestfs.pod:1225
2411 msgid ""
2412 "You may also want to configure error handling for the handle.  See L</ERROR "
2413 "HANDLING> section below."
2414 msgstr ""
2415
2416 # type: =head2
2417 #: ../src/guestfs.pod:1228
2418 msgid "guestfs_close"
2419 msgstr ""
2420
2421 # type: verbatim
2422 #: ../src/guestfs.pod:1230
2423 #, no-wrap
2424 msgid ""
2425 " void guestfs_close (guestfs_h *g);\n"
2426 "\n"
2427 msgstr ""
2428
2429 # type: textblock
2430 #: ../src/guestfs.pod:1232
2431 msgid "This closes the connection handle and frees up all resources used."
2432 msgstr ""
2433
2434 # type: =head1
2435 #: ../src/guestfs.pod:1234
2436 msgid "ERROR HANDLING"
2437 msgstr ""
2438
2439 # type: textblock
2440 #: ../src/guestfs.pod:1236
2441 msgid ""
2442 "API functions can return errors.  For example, almost all functions that "
2443 "return C<int> will return C<-1> to indicate an error."
2444 msgstr ""
2445
2446 # type: textblock
2447 #: ../src/guestfs.pod:1239
2448 msgid ""
2449 "Additional information is available for errors: an error message string and "
2450 "optionally an error number (errno) if the thing that failed was a system "
2451 "call."
2452 msgstr ""
2453
2454 # type: textblock
2455 #: ../src/guestfs.pod:1243
2456 msgid ""
2457 "You can get at the additional information about the last error on the handle "
2458 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2459 "up an error handler with L</guestfs_set_error_handler>."
2460 msgstr ""
2461
2462 # type: textblock
2463 #: ../src/guestfs.pod:1248
2464 msgid ""
2465 "When the handle is created, a default error handler is installed which "
2466 "prints the error message string to C<stderr>.  For small short-running "
2467 "command line programs it is sufficient to do:"
2468 msgstr ""
2469
2470 # type: verbatim
2471 #: ../src/guestfs.pod:1252
2472 #, no-wrap
2473 msgid ""
2474 " if (guestfs_launch (g) == -1)\n"
2475 "   exit (EXIT_FAILURE);\n"
2476 "\n"
2477 msgstr ""
2478
2479 # type: textblock
2480 #: ../src/guestfs.pod:1255
2481 msgid ""
2482 "since the default error handler will ensure that an error message has been "
2483 "printed to C<stderr> before the program exits."
2484 msgstr ""
2485
2486 # type: textblock
2487 #: ../src/guestfs.pod:1258
2488 msgid ""
2489 "For other programs the caller will almost certainly want to install an "
2490 "alternate error handler or do error handling in-line like this:"
2491 msgstr ""
2492
2493 # type: verbatim
2494 #: ../src/guestfs.pod:1261
2495 #, no-wrap
2496 msgid ""
2497 " g = guestfs_create ();\n"
2498 " \n"
2499 msgstr ""
2500
2501 # type: verbatim
2502 #: ../src/guestfs.pod:1263
2503 #, no-wrap
2504 msgid ""
2505 " /* This disables the default behaviour of printing errors\n"
2506 "    on stderr. */\n"
2507 " guestfs_set_error_handler (g, NULL, NULL);\n"
2508 " \n"
2509 msgstr ""
2510
2511 # type: verbatim
2512 #: ../src/guestfs.pod:1267
2513 #, no-wrap
2514 msgid ""
2515 " if (guestfs_launch (g) == -1) {\n"
2516 "   /* Examine the error message and print it etc. */\n"
2517 "   char *msg = guestfs_last_error (g);\n"
2518 "   int errnum = guestfs_last_errno (g);\n"
2519 "   fprintf (stderr, \"%s\\n\", msg);\n"
2520 "   /* ... */\n"
2521 "  }\n"
2522 "\n"
2523 msgstr ""
2524
2525 # type: textblock
2526 #: ../src/guestfs.pod:1275
2527 msgid ""
2528 "Out of memory errors are handled differently.  The default action is to call "
2529 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2530 "guestfs_set_out_of_memory_handler>."
2531 msgstr ""
2532
2533 # type: textblock
2534 #: ../src/guestfs.pod:1279
2535 msgid ""
2536 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2537 "because there is no handle if this happens there is no way to get additional "
2538 "error information.  However L</guestfs_create> is supposed to be a "
2539 "lightweight operation which can only fail because of insufficient memory (it "
2540 "returns NULL in this case)."
2541 msgstr ""
2542
2543 # type: =head2
2544 #: ../src/guestfs.pod:1285
2545 msgid "guestfs_last_error"
2546 msgstr ""
2547
2548 # type: verbatim
2549 #: ../src/guestfs.pod:1287
2550 #, no-wrap
2551 msgid ""
2552 " const char *guestfs_last_error (guestfs_h *g);\n"
2553 "\n"
2554 msgstr ""
2555
2556 # type: textblock
2557 #: ../src/guestfs.pod:1289
2558 msgid ""
2559 "This returns the last error message that happened on C<g>.  If there has not "
2560 "been an error since the handle was created, then this returns C<NULL>."
2561 msgstr ""
2562
2563 # type: textblock
2564 #: ../src/guestfs.pod:1293
2565 msgid ""
2566 "The lifetime of the returned string is until the next error occurs, or L</"
2567 "guestfs_close> is called."
2568 msgstr ""
2569
2570 # type: =head2
2571 #: ../src/guestfs.pod:1296
2572 msgid "guestfs_last_errno"
2573 msgstr ""
2574
2575 # type: verbatim
2576 #: ../src/guestfs.pod:1298
2577 #, no-wrap
2578 msgid ""
2579 " int guestfs_last_errno (guestfs_h *g);\n"
2580 "\n"
2581 msgstr ""
2582
2583 # type: textblock
2584 #: ../src/guestfs.pod:1300
2585 msgid "This returns the last error number (errno) that happened on C<g>."
2586 msgstr ""
2587
2588 # type: textblock
2589 #: ../src/guestfs.pod:1302
2590 msgid "If successful, an errno integer not equal to zero is returned."
2591 msgstr ""
2592
2593 # type: textblock
2594 #: ../src/guestfs.pod:1304
2595 msgid ""
2596 "If no error, this returns 0.  This call can return 0 in three situations:"
2597 msgstr ""
2598
2599 # type: textblock
2600 #: ../src/guestfs.pod:1311
2601 msgid "There has not been any error on the handle."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1315
2606 msgid ""
2607 "There has been an error but the errno was meaningless.  This corresponds to "
2608 "the case where the error did not come from a failed system call, but for "
2609 "some other reason."
2610 msgstr ""
2611
2612 # type: textblock
2613 #: ../src/guestfs.pod:1321
2614 msgid ""
2615 "There was an error from a failed system call, but for some reason the errno "
2616 "was not captured and returned.  This usually indicates a bug in libguestfs."
2617 msgstr ""
2618
2619 # type: textblock
2620 #: ../src/guestfs.pod:1327
2621 msgid ""
2622 "Libguestfs tries to convert the errno from inside the applicance into a "
2623 "corresponding errno for the caller (not entirely trivial: the appliance "
2624 "might be running a completely different operating system from the library "
2625 "and error numbers are not standardized across Un*xen).  If this could not be "
2626 "done, then the error is translated to C<EINVAL>.  In practice this should "
2627 "only happen in very rare circumstances."
2628 msgstr ""
2629
2630 # type: =head2
2631 #: ../src/guestfs.pod:1335
2632 msgid "guestfs_set_error_handler"
2633 msgstr ""
2634
2635 # type: verbatim
2636 #: ../src/guestfs.pod:1337
2637 #, no-wrap
2638 msgid ""
2639 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2640 "                                           void *opaque,\n"
2641 "                                           const char *msg);\n"
2642 " void guestfs_set_error_handler (guestfs_h *g,\n"
2643 "                                 guestfs_error_handler_cb cb,\n"
2644 "                                 void *opaque);\n"
2645 "\n"
2646 msgstr ""
2647
2648 # type: textblock
2649 #: ../src/guestfs.pod:1344
2650 msgid ""
2651 "The callback C<cb> will be called if there is an error.  The parameters "
2652 "passed to the callback are an opaque data pointer and the error message "
2653 "string."
2654 msgstr ""
2655
2656 # type: textblock
2657 #: ../src/guestfs.pod:1348
2658 msgid ""
2659 "C<errno> is not passed to the callback.  To get that the callback must call "
2660 "L</guestfs_last_errno>."
2661 msgstr ""
2662
2663 # type: textblock
2664 #: ../src/guestfs.pod:1351
2665 msgid ""
2666 "Note that the message string C<msg> is freed as soon as the callback "
2667 "function returns, so if you want to stash it somewhere you must make your "
2668 "own copy."
2669 msgstr ""
2670
2671 # type: textblock
2672 #: ../src/guestfs.pod:1355
2673 msgid "The default handler prints messages on C<stderr>."
2674 msgstr ""
2675
2676 # type: textblock
2677 #: ../src/guestfs.pod:1357
2678 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2679 msgstr ""
2680
2681 # type: =head2
2682 #: ../src/guestfs.pod:1359
2683 msgid "guestfs_get_error_handler"
2684 msgstr ""
2685
2686 # type: verbatim
2687 #: ../src/guestfs.pod:1361
2688 #, no-wrap
2689 msgid ""
2690 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2691 "                                                     void **opaque_rtn);\n"
2692 "\n"
2693 msgstr ""
2694
2695 # type: textblock
2696 #: ../src/guestfs.pod:1364
2697 msgid "Returns the current error handler callback."
2698 msgstr ""
2699
2700 # type: =head2
2701 #: ../src/guestfs.pod:1366
2702 msgid "guestfs_set_out_of_memory_handler"
2703 msgstr ""
2704
2705 # type: verbatim
2706 #: ../src/guestfs.pod:1368
2707 #, no-wrap
2708 msgid ""
2709 " typedef void (*guestfs_abort_cb) (void);\n"
2710 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2711 "                                        guestfs_abort_cb);\n"
2712 "\n"
2713 msgstr ""
2714
2715 # type: textblock
2716 #: ../src/guestfs.pod:1372
2717 msgid ""
2718 "The callback C<cb> will be called if there is an out of memory situation.  "
2719 "I<Note this callback must not return>."
2720 msgstr ""
2721
2722 # type: textblock
2723 #: ../src/guestfs.pod:1375
2724 msgid "The default is to call L<abort(3)>."
2725 msgstr ""
2726
2727 # type: textblock
2728 #: ../src/guestfs.pod:1377
2729 msgid ""
2730 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2731 msgstr ""
2732
2733 # type: =head2
2734 #: ../src/guestfs.pod:1380
2735 msgid "guestfs_get_out_of_memory_handler"
2736 msgstr ""
2737
2738 # type: verbatim
2739 #: ../src/guestfs.pod:1382
2740 #, no-wrap
2741 msgid ""
2742 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2743 "\n"
2744 msgstr ""
2745
2746 # type: textblock
2747 #: ../src/guestfs.pod:1384
2748 msgid "This returns the current out of memory handler."
2749 msgstr ""
2750
2751 # type: =head1
2752 #: ../src/guestfs.pod:1386
2753 msgid "API CALLS"
2754 msgstr ""
2755
2756 # type: textblock
2757 #: ../src/guestfs.pod:1388 ../fish/guestfish.pod:958
2758 msgid "@ACTIONS@"
2759 msgstr ""
2760
2761 # type: =head1
2762 #: ../src/guestfs.pod:1390
2763 msgid "STRUCTURES"
2764 msgstr ""
2765
2766 # type: textblock
2767 #: ../src/guestfs.pod:1392
2768 msgid "@STRUCTS@"
2769 msgstr ""
2770
2771 # type: =head1
2772 #: ../src/guestfs.pod:1394
2773 msgid "AVAILABILITY"
2774 msgstr ""
2775
2776 # type: =head2
2777 #: ../src/guestfs.pod:1396
2778 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2779 msgstr ""
2780
2781 # type: textblock
2782 #: ../src/guestfs.pod:1398
2783 msgid ""
2784 "Using L</guestfs_available> you can test availability of the following "
2785 "groups of functions.  This test queries the appliance to see if the "
2786 "appliance you are currently using supports the functionality."
2787 msgstr ""
2788
2789 # type: textblock
2790 #: ../src/guestfs.pod:1403
2791 msgid "@AVAILABILITY@"
2792 msgstr ""
2793
2794 # type: =head2
2795 #: ../src/guestfs.pod:1405
2796 msgid "GUESTFISH supported COMMAND"
2797 msgstr ""
2798
2799 # type: textblock
2800 #: ../src/guestfs.pod:1407
2801 msgid ""
2802 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2803 "prints out the available groups and whether they are supported by this build "
2804 "of libguestfs.  Note however that you have to do C<run> first."
2805 msgstr ""
2806
2807 # type: =head2
2808 #: ../src/guestfs.pod:1412
2809 msgid "SINGLE CALLS AT COMPILE TIME"
2810 msgstr ""
2811
2812 # type: textblock
2813 #: ../src/guestfs.pod:1414
2814 msgid ""
2815 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2816 "function, such as:"
2817 msgstr ""
2818
2819 # type: verbatim
2820 #: ../src/guestfs.pod:1417
2821 #, no-wrap
2822 msgid ""
2823 " #define LIBGUESTFS_HAVE_DD 1\n"
2824 "\n"
2825 msgstr ""
2826
2827 # type: textblock
2828 #: ../src/guestfs.pod:1419
2829 msgid "if L</guestfs_dd> is available."
2830 msgstr ""
2831
2832 # type: textblock
2833 #: ../src/guestfs.pod:1421
2834 msgid ""
2835 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2836 "function is available at compile time, we recommended using build tools such "
2837 "as autoconf or cmake.  For example in autotools you could use:"
2838 msgstr ""
2839
2840 # type: verbatim
2841 #: ../src/guestfs.pod:1426
2842 #, no-wrap
2843 msgid ""
2844 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2845 " AC_CHECK_FUNCS([guestfs_dd])\n"
2846 "\n"
2847 msgstr ""
2848
2849 # type: textblock
2850 #: ../src/guestfs.pod:1429
2851 msgid ""
2852 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2853 "in your program."
2854 msgstr ""
2855
2856 # type: =head2
2857 #: ../src/guestfs.pod:1432
2858 msgid "SINGLE CALLS AT RUN TIME"
2859 msgstr ""
2860
2861 # type: textblock
2862 #: ../src/guestfs.pod:1434
2863 msgid ""
2864 "Testing at compile time doesn't guarantee that a function really exists in "
2865 "the library.  The reason is that you might be dynamically linked against a "
2866 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2867 "This situation unfortunately results in a segmentation fault, which is a "
2868 "shortcoming of the C dynamic linking system itself."
2869 msgstr ""
2870
2871 # type: textblock
2872 #: ../src/guestfs.pod:1441
2873 msgid ""
2874 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2875 "in this example program (note that you still need the compile time check as "
2876 "well):"
2877 msgstr ""
2878
2879 # type: verbatim
2880 #: ../src/guestfs.pod:1445
2881 #, no-wrap
2882 msgid ""
2883 " #include <stdio.h>\n"
2884 " #include <stdlib.h>\n"
2885 " #include <unistd.h>\n"
2886 " #include <dlfcn.h>\n"
2887 " #include <guestfs.h>\n"
2888 " \n"
2889 msgstr ""
2890
2891 # type: verbatim
2892 #: ../src/guestfs.pod:1451
2893 #, no-wrap
2894 msgid ""
2895 " main ()\n"
2896 " {\n"
2897 " #ifdef LIBGUESTFS_HAVE_DD\n"
2898 "   void *dl;\n"
2899 "   int has_function;\n"
2900 " \n"
2901 msgstr ""
2902
2903 # type: verbatim
2904 #: ../src/guestfs.pod:1457
2905 #, no-wrap
2906 msgid ""
2907 "   /* Test if the function guestfs_dd is really available. */\n"
2908 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2909 "   if (!dl) {\n"
2910 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2911 "     exit (EXIT_FAILURE);\n"
2912 "   }\n"
2913 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2914 "   dlclose (dl);\n"
2915 " \n"
2916 msgstr ""
2917
2918 # type: verbatim
2919 #: ../src/guestfs.pod:1466
2920 #, no-wrap
2921 msgid ""
2922 "   if (!has_function)\n"
2923 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2924 "   else {\n"
2925 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2926 "     /* Now it's safe to call\n"
2927 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2928 "     */\n"
2929 "   }\n"
2930 " #else\n"
2931 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2932 " #endif\n"
2933 "  }\n"
2934 "\n"
2935 msgstr ""
2936
2937 # type: textblock
2938 #: ../src/guestfs.pod:1479
2939 msgid ""
2940 "You may think the above is an awful lot of hassle, and it is.  There are "
2941 "other ways outside of the C linking system to ensure that this kind of "
2942 "incompatibility never arises, such as using package versioning:"
2943 msgstr ""
2944
2945 # type: verbatim
2946 #: ../src/guestfs.pod:1484
2947 #, no-wrap
2948 msgid ""
2949 " Requires: libguestfs >= 1.0.80\n"
2950 "\n"
2951 msgstr ""
2952
2953 # type: =head1
2954 #: ../src/guestfs.pod:1486
2955 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2956 msgstr ""
2957
2958 # type: textblock
2959 #: ../src/guestfs.pod:1488
2960 msgid ""
2961 "A recent feature of the API is the introduction of calls which take optional "
2962 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2963 "takes variable arguments (ie. C<...>), as in this example:"
2964 msgstr ""
2965
2966 # type: verbatim
2967 #: ../src/guestfs.pod:1493
2968 #, no-wrap
2969 msgid ""
2970 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2971 "\n"
2972 msgstr ""
2973
2974 # type: textblock
2975 #: ../src/guestfs.pod:1495
2976 msgid ""
2977 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2978 "call with no optional arguments specified:"
2979 msgstr ""
2980
2981 # type: verbatim
2982 #: ../src/guestfs.pod:1498
2983 #, no-wrap
2984 msgid ""
2985 " guestfs_add_drive_opts (g, filename, -1);\n"
2986 "\n"
2987 msgstr ""
2988
2989 # type: textblock
2990 #: ../src/guestfs.pod:1500
2991 msgid "With a single optional argument:"
2992 msgstr ""
2993
2994 # type: verbatim
2995 #: ../src/guestfs.pod:1502
2996 #, no-wrap
2997 msgid ""
2998 " guestfs_add_drive_opts (g, filename,\n"
2999 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3000 "                         -1);\n"
3001 "\n"
3002 msgstr ""
3003
3004 # type: textblock
3005 #: ../src/guestfs.pod:1506
3006 msgid "With two:"
3007 msgstr ""
3008
3009 # type: verbatim
3010 #: ../src/guestfs.pod:1508
3011 #, no-wrap
3012 msgid ""
3013 " guestfs_add_drive_opts (g, filename,\n"
3014 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3015 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3016 "                         -1);\n"
3017 "\n"
3018 msgstr ""
3019
3020 # type: textblock
3021 #: ../src/guestfs.pod:1513
3022 msgid ""
3023 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3024 "happen!"
3025 msgstr ""
3026
3027 # type: =head2
3028 #: ../src/guestfs.pod:1516
3029 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3030 msgstr ""
3031
3032 # type: textblock
3033 #: ../src/guestfs.pod:1518
3034 msgid ""
3035 "The second variant has the same name with the suffix C<_va>, which works the "
3036 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3037 "example function, this is declared:"
3038 msgstr ""
3039
3040 # type: verbatim
3041 #: ../src/guestfs.pod:1522
3042 #, no-wrap
3043 msgid ""
3044 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3045 "                                va_list args);\n"
3046 "\n"
3047 msgstr ""
3048
3049 # type: =head2
3050 #: ../src/guestfs.pod:1525
3051 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3052 msgstr ""
3053
3054 # type: textblock
3055 #: ../src/guestfs.pod:1527
3056 msgid ""
3057 "The third variant is useful where you need to construct these calls.  You "
3058 "pass in a structure where you fill in the optional fields.  The structure "
3059 "has a bitmask as the first element which you must set to indicate which "
3060 "fields you have filled in.  For our example function the structure and call "
3061 "are declared:"
3062 msgstr ""
3063
3064 # type: verbatim
3065 #: ../src/guestfs.pod:1533
3066 #, no-wrap
3067 msgid ""
3068 " struct guestfs_add_drive_opts_argv {\n"
3069 "   uint64_t bitmask;\n"
3070 "   int readonly;\n"
3071 "   const char *format;\n"
3072 "   /* ... */\n"
3073 " };\n"
3074 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3075 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3076 "\n"
3077 msgstr ""
3078
3079 # type: textblock
3080 #: ../src/guestfs.pod:1542
3081 msgid "You could call it like this:"
3082 msgstr ""
3083
3084 # type: verbatim
3085 #: ../src/guestfs.pod:1544
3086 #, no-wrap
3087 msgid ""
3088 " struct guestfs_add_drive_opts_argv optargs = {\n"
3089 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3090 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3091 "   .readonly = 1,\n"
3092 "   .format = \"qcow2\"\n"
3093 " };\n"
3094 " \n"
3095 msgstr ""
3096
3097 # type: verbatim
3098 #: ../src/guestfs.pod:1551
3099 #, no-wrap
3100 msgid ""
3101 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3102 "\n"
3103 msgstr ""
3104
3105 # type: textblock
3106 #: ../src/guestfs.pod:1553 ../src/guestfs-actions.pod:11
3107 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:9
3108 #: ../fish/guestfish-actions.pod:1255 ../tools/virt-win-reg.pl:532
3109 msgid "Notes:"
3110 msgstr ""
3111
3112 # type: textblock
3113 #: ../src/guestfs.pod:1559
3114 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3115 msgstr ""
3116
3117 # type: textblock
3118 #: ../src/guestfs.pod:1564
3119 msgid "You do not need to fill in all fields of the structure."
3120 msgstr ""
3121
3122 # type: textblock
3123 #: ../src/guestfs.pod:1568
3124 msgid ""
3125 "There must be a one-to-one correspondence between fields of the structure "
3126 "that are filled in, and bits set in the bitmask."
3127 msgstr ""
3128
3129 # type: =head2
3130 #: ../src/guestfs.pod:1573
3131 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3132 msgstr ""
3133
3134 # type: textblock
3135 #: ../src/guestfs.pod:1575
3136 msgid ""
3137 "In other languages, optional arguments are expressed in the way that is "
3138 "natural for that language.  We refer you to the language-specific "
3139 "documentation for more details on that."
3140 msgstr ""
3141
3142 # type: textblock
3143 #: ../src/guestfs.pod:1579
3144 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3145 msgstr ""
3146
3147 # type: =head2
3148 #: ../src/guestfs.pod:1581
3149 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3150 msgstr ""
3151
3152 # type: textblock
3153 #: ../src/guestfs.pod:1583
3154 msgid ""
3155 "The child process generates events in some situations.  Current events "
3156 "include: receiving a log message, the child process exits."
3157 msgstr ""
3158
3159 # type: textblock
3160 #: ../src/guestfs.pod:1586
3161 msgid ""
3162 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3163 "types of events."
3164 msgstr ""
3165
3166 # type: textblock
3167 #: ../src/guestfs.pod:1589
3168 msgid ""
3169 "Only I<one callback of each type> can be registered for each handle.  "
3170 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3171 "that type.  Cancel all callbacks of this type by calling this function with "
3172 "C<cb> set to C<NULL>."
3173 msgstr ""
3174
3175 # type: =head2
3176 #: ../src/guestfs.pod:1594
3177 msgid "guestfs_set_log_message_callback"
3178 msgstr ""
3179
3180 # type: verbatim
3181 #: ../src/guestfs.pod:1596
3182 #, no-wrap
3183 msgid ""
3184 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3185 "                                         char *buf, int len);\n"
3186 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3187 "                                        guestfs_log_message_cb cb,\n"
3188 "                                        void *opaque);\n"
3189 "\n"
3190 msgstr ""
3191
3192 # type: textblock
3193 #: ../src/guestfs.pod:1602
3194 msgid ""
3195 "The callback function C<cb> will be called whenever qemu or the guest writes "
3196 "anything to the console."
3197 msgstr ""
3198
3199 # type: textblock
3200 #: ../src/guestfs.pod:1605
3201 msgid "Use this function to capture kernel messages and similar."
3202 msgstr ""
3203
3204 # type: textblock
3205 #: ../src/guestfs.pod:1607
3206 msgid ""
3207 "Normally there is no log message handler, and log messages are just "
3208 "discarded."
3209 msgstr ""
3210
3211 # type: =head2
3212 #: ../src/guestfs.pod:1610
3213 msgid "guestfs_set_subprocess_quit_callback"
3214 msgstr ""
3215
3216 # type: verbatim
3217 #: ../src/guestfs.pod:1612
3218 #, no-wrap
3219 msgid ""
3220 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3221 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3222 "                                            guestfs_subprocess_quit_cb cb,\n"
3223 "                                            void *opaque);\n"
3224 "\n"
3225 msgstr ""
3226
3227 # type: textblock
3228 #: ../src/guestfs.pod:1617
3229 msgid ""
3230 "The callback function C<cb> will be called when the child process quits, "
3231 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3232 "corresponds to a transition from any state to the CONFIG state)."
3233 msgstr ""
3234
3235 # type: =head2
3236 #: ../src/guestfs.pod:1622
3237 msgid "guestfs_set_launch_done_callback"
3238 msgstr ""
3239
3240 # type: verbatim
3241 #: ../src/guestfs.pod:1624
3242 #, no-wrap
3243 msgid ""
3244 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3245 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3246 "                                        guestfs_launch_done_cb cb,\n"
3247 "                                        void *opaque);\n"
3248 "\n"
3249 msgstr ""
3250
3251 # type: textblock
3252 #: ../src/guestfs.pod:1629
3253 msgid ""
3254 "The callback function C<cb> will be called when the child process becomes "
3255 "ready first time after it has been launched.  (This corresponds to a "
3256 "transition from LAUNCHING to the READY state)."
3257 msgstr ""
3258
3259 # type: =head2
3260 #: ../src/guestfs.pod:1633
3261 msgid "guestfs_set_close_callback"
3262 msgstr ""
3263
3264 # type: verbatim
3265 #: ../src/guestfs.pod:1635
3266 #, no-wrap
3267 msgid ""
3268 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3269 " void guestfs_set_close_callback (guestfs_h *g,\n"
3270 "                                  guestfs_close_cb cb,\n"
3271 "                                  void *opaque);\n"
3272 "\n"
3273 msgstr ""
3274
3275 # type: textblock
3276 #: ../src/guestfs.pod:1640
3277 msgid ""
3278 "The callback function C<cb> will be called while the handle is being closed "
3279 "(synchronously from L</guestfs_close>)."
3280 msgstr ""
3281
3282 # type: textblock
3283 #: ../src/guestfs.pod:1643
3284 msgid ""
3285 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3286 "handles that are open when the program exits.  This means that this callback "
3287 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3288 "problems in higher-level languages (eg. if your HLL interpreter has already "
3289 "been cleaned up by the time this is called, and if your callback then jumps "
3290 "into some HLL function)."
3291 msgstr ""
3292
3293 # type: =head2
3294 #: ../src/guestfs.pod:1651
3295 msgid "guestfs_set_progress_callback"
3296 msgstr ""
3297
3298 # type: verbatim
3299 #: ../src/guestfs.pod:1653
3300 #, no-wrap
3301 msgid ""
3302 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3303 "                                      int proc_nr, int serial,\n"
3304 "                                      uint64_t position, uint64_t total);\n"
3305 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3306 "                                     guestfs_progress_cb cb,\n"
3307 "                                     void *opaque);\n"
3308 "\n"
3309 msgstr ""
3310
3311 # type: textblock
3312 #: ../src/guestfs.pod:1660
3313 msgid ""
3314 "Some long-running operations can generate progress messages.  If this "
3315 "callback is registered, then it will be called each time a progress message "
3316 "is generated (usually two seconds after the operation started, and three "
3317 "times per second thereafter until it completes, although the frequency may "
3318 "change in future versions)."
3319 msgstr ""
3320
3321 # type: textblock
3322 #: ../src/guestfs.pod:1666
3323 msgid ""
3324 "The callback receives two numbers: C<position> and C<total>.  The units of "
3325 "C<total> are not defined, although for some operations C<total> may relate "
3326 "in some way to the amount of data to be transferred (eg. in bytes or "
3327 "megabytes), and C<position> may be the portion which has been transferred."
3328 msgstr ""
3329
3330 # type: textblock
3331 #: ../src/guestfs.pod:1672
3332 msgid "The only defined and stable parts of the API are:"
3333 msgstr ""
3334
3335 # type: textblock
3336 #: ../src/guestfs.pod:1678
3337 msgid ""
3338 "The callback can display to the user some type of progress bar or indicator "
3339 "which shows the ratio of C<position>:C<total>."
3340 msgstr ""
3341
3342 # type: textblock
3343 #: ../src/guestfs.pod:1683
3344 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3345 msgstr ""
3346
3347 # type: textblock
3348 #: ../src/guestfs.pod:1687
3349 msgid ""
3350 "If any progress notification is sent during a call, then a final progress "
3351 "notification is always sent when C<position> = C<total>."
3352 msgstr ""
3353
3354 # type: textblock
3355 #: ../src/guestfs.pod:1690
3356 msgid ""
3357 "This is to simplify caller code, so callers can easily set the progress "
3358 "indicator to \"100%\" at the end of the operation, without requiring special "
3359 "code to detect this case."
3360 msgstr ""
3361
3362 # type: textblock
3363 #: ../src/guestfs.pod:1696
3364 msgid ""
3365 "The callback also receives the procedure number and serial number of the "
3366 "call.  These are only useful for debugging protocol issues, and the callback "
3367 "can normally ignore them.  The callback may want to print these numbers in "
3368 "error messages or debugging messages."
3369 msgstr ""
3370
3371 # type: =head1
3372 #: ../src/guestfs.pod:1701
3373 msgid "PRIVATE DATA AREA"
3374 msgstr ""
3375
3376 # type: textblock
3377 #: ../src/guestfs.pod:1703
3378 msgid ""
3379 "You can attach named pieces of private data to the libguestfs handle, and "
3380 "fetch them by name for the lifetime of the handle.  This is called the "
3381 "private data area and is only available from the C API."
3382 msgstr ""
3383
3384 # type: textblock
3385 #: ../src/guestfs.pod:1707
3386 msgid "To attach a named piece of data, use the following call:"
3387 msgstr ""
3388
3389 # type: verbatim
3390 #: ../src/guestfs.pod:1709
3391 #, no-wrap
3392 msgid ""
3393 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3394 "\n"
3395 msgstr ""
3396
3397 # type: textblock
3398 #: ../src/guestfs.pod:1711
3399 msgid ""
3400 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3401 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3402 "overwritten."
3403 msgstr ""
3404
3405 # type: textblock
3406 #: ../src/guestfs.pod:1715
3407 msgid ""
3408 "You can use any C<key> you want, but names beginning with an underscore "
3409 "character are reserved for internal libguestfs purposes (for implementing "
3410 "language bindings).  It is recommended to prefix the name with some unique "
3411 "string to avoid collisions with other users."
3412 msgstr ""
3413
3414 # type: textblock
3415 #: ../src/guestfs.pod:1720
3416 msgid "To retrieve the pointer, use:"
3417 msgstr ""
3418
3419 # type: verbatim
3420 #: ../src/guestfs.pod:1722
3421 #, no-wrap
3422 msgid ""
3423 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3424 "\n"
3425 msgstr ""
3426
3427 # type: textblock
3428 #: ../src/guestfs.pod:1724
3429 msgid ""
3430 "This function returns C<NULL> if either no data is found associated with "
3431 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3432 "C<NULL>."
3433 msgstr ""
3434
3435 # type: textblock
3436 #: ../src/guestfs.pod:1728
3437 msgid ""
3438 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3439 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3440 "all.  In particular, libguestfs does I<not> try to free the data when the "
3441 "handle is closed.  If the data must be freed, then the caller must either "
3442 "free it before calling L</guestfs_close> or must set up a close callback to "
3443 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3444 "can be registered for a handle)."
3445 msgstr ""
3446
3447 # type: textblock
3448 #: ../src/guestfs.pod:1736
3449 msgid ""
3450 "The private data area is implemented using a hash table, and should be "
3451 "reasonably efficient for moderate numbers of keys."
3452 msgstr ""
3453
3454 # type: =end
3455 #: ../src/guestfs.pod:1739 ../src/guestfs.pod:1744
3456 msgid "html"
3457 msgstr ""
3458
3459 # type: textblock
3460 #: ../src/guestfs.pod:1741
3461 msgid ""
3462 "<!-- old anchor for the next section --> <a name="
3463 "\"state_machine_and_low_level_event_api\"/>"
3464 msgstr ""
3465
3466 # type: =head1
3467 #: ../src/guestfs.pod:1746
3468 msgid "ARCHITECTURE"
3469 msgstr ""
3470
3471 # type: textblock
3472 #: ../src/guestfs.pod:1748
3473 msgid ""
3474 "Internally, libguestfs is implemented by running an appliance (a special "
3475 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3476 "process of the main program."
3477 msgstr ""
3478
3479 # type: verbatim
3480 #: ../src/guestfs.pod:1752
3481 #, no-wrap
3482 msgid ""
3483 "  ___________________\n"
3484 " /                   \\\n"
3485 " | main program      |\n"
3486 " |                   |\n"
3487 " |                   |           child process / appliance\n"
3488 " |                   |           __________________________\n"
3489 " |                   |          / qemu                     \\\n"
3490 " +-------------------+   RPC    |      +-----------------+ |\n"
3491 " | libguestfs     <--------------------> guestfsd        | |\n"
3492 " |                   |          |      +-----------------+ |\n"
3493 " \\___________________/          |      | Linux kernel    | |\n"
3494 "                                |      +--^--------------+ |\n"
3495 "                                \\_________|________________/\n"
3496 "                                          |\n"
3497 "                                   _______v______\n"
3498 "                                  /              \\\n"
3499 "                                  | Device or    |\n"
3500 "                                  | disk image   |\n"
3501 "                                  \\______________/\n"
3502 "\n"
3503 msgstr ""
3504
3505 # type: textblock
3506 #: ../src/guestfs.pod:1772
3507 msgid ""
3508 "The library, linked to the main program, creates the child process and hence "
3509 "the appliance in the L</guestfs_launch> function."
3510 msgstr ""
3511
3512 # type: textblock
3513 #: ../src/guestfs.pod:1775
3514 msgid ""
3515 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3516 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3517 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3518 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3519 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3520 "attached to the qemu process which translates device access by the "
3521 "appliance's Linux kernel into accesses to the image."
3522 msgstr ""
3523
3524 # type: textblock
3525 #: ../src/guestfs.pod:1784
3526 msgid ""
3527 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3528 "Although the disk image you are attached to might also be used by some "
3529 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3530 "care if both libguestfs's qemu process and your virtual machine are trying "
3531 "to update the disk image at the same time, since these usually results in "
3532 "massive disk corruption)."
3533 msgstr ""
3534
3535 # type: =head1
3536 #: ../src/guestfs.pod:1791
3537 msgid "STATE MACHINE"
3538 msgstr ""
3539
3540 # type: textblock
3541 #: ../src/guestfs.pod:1793
3542 msgid "libguestfs uses a state machine to model the child process:"
3543 msgstr ""
3544
3545 # type: verbatim
3546 #: ../src/guestfs.pod:1795
3547 #, no-wrap
3548 msgid ""
3549 "                         |\n"
3550 "                    guestfs_create\n"
3551 "                         |\n"
3552 "                         |\n"
3553 "                     ____V_____\n"
3554 "                    /          \\\n"
3555 "                    |  CONFIG  |\n"
3556 "                    \\__________/\n"
3557 "                     ^ ^   ^  \\\n"
3558 "                    /  |    \\  \\ guestfs_launch\n"
3559 "                   /   |    _\\__V______\n"
3560 "                  /    |   /           \\\n"
3561 "                 /     |   | LAUNCHING |\n"
3562 "                /      |   \\___________/\n"
3563 "               /       |       /\n"
3564 "              /        |  guestfs_launch\n"
3565 "             /         |     /\n"
3566 "    ______  /        __|____V\n"
3567 "   /      \\ ------> /        \\\n"
3568 "   | BUSY |         | READY  |\n"
3569 "   \\______/ <------ \\________/\n"
3570 "\n"
3571 msgstr ""
3572
3573 # type: textblock
3574 #: ../src/guestfs.pod:1817
3575 msgid ""
3576 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3577 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3578 "(3) alternating between READY and BUSY as commands are issued to, and "
3579 "carried out by, the child process."
3580 msgstr ""
3581
3582 # type: textblock
3583 #: ../src/guestfs.pod:1822
3584 msgid ""
3585 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3586 "asynchronously at any time (eg. due to some internal error), and that causes "
3587 "the state to transition back to CONFIG."
3588 msgstr ""
3589
3590 # type: textblock
3591 #: ../src/guestfs.pod:1826
3592 msgid ""
3593 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3594 "issued when in the CONFIG state."
3595 msgstr ""
3596
3597 # type: textblock
3598 #: ../src/guestfs.pod:1829
3599 msgid ""
3600 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3601 "L</guestfs_launch> blocks until the child process is READY to accept "
3602 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3603 "moves the state from CONFIG to LAUNCHING while it is running."
3604 msgstr ""
3605
3606 # type: textblock
3607 #: ../src/guestfs.pod:1835
3608 msgid ""
3609 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3610 "state.  These API calls block waiting for the command to be carried out (ie. "
3611 "the state to transition to BUSY and then back to READY).  There are no non-"
3612 "blocking versions, and no way to issue more than one command per handle at "
3613 "the same time."
3614 msgstr ""
3615
3616 # type: textblock
3617 #: ../src/guestfs.pod:1841
3618 msgid ""
3619 "Finally, the child process sends asynchronous messages back to the main "
3620 "program, such as kernel log messages.  You can register a callback to "
3621 "receive these messages."
3622 msgstr ""
3623
3624 # type: =head1
3625 #: ../src/guestfs.pod:1845
3626 msgid "INTERNALS"
3627 msgstr ""
3628
3629 # type: =head2
3630 #: ../src/guestfs.pod:1847
3631 msgid "COMMUNICATION PROTOCOL"
3632 msgstr ""
3633
3634 # type: textblock
3635 #: ../src/guestfs.pod:1849
3636 msgid ""
3637 "Don't rely on using this protocol directly.  This section documents how it "
3638 "currently works, but it may change at any time."
3639 msgstr ""
3640
3641 # type: textblock
3642 #: ../src/guestfs.pod:1852
3643 msgid ""
3644 "The protocol used to talk between the library and the daemon running inside "
3645 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3646 "1014, RFC 1832, RFC 4506)."
3647 msgstr ""
3648
3649 # type: textblock
3650 #: ../src/guestfs.pod:1856
3651 msgid ""
3652 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3653 "this file is automatically generated)."
3654 msgstr ""
3655
3656 # type: textblock
3657 #: ../src/guestfs.pod:1859
3658 msgid ""
3659 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3660 "and C<FileOut> parameters, which are handled with very simple request/reply "
3661 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3662 "parameters, which use the same request and reply messages, but they may also "
3663 "be followed by files sent using a chunked encoding."
3664 msgstr ""
3665
3666 # type: =head3
3667 #: ../src/guestfs.pod:1866
3668 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3669 msgstr ""
3670
3671 # type: textblock
3672 #: ../src/guestfs.pod:1868
3673 msgid "For ordinary functions, the request message is:"
3674 msgstr ""
3675
3676 # type: verbatim
3677 #: ../src/guestfs.pod:1870
3678 #, no-wrap
3679 msgid ""
3680 " total length (header + arguments,\n"
3681 "      but not including the length word itself)\n"
3682 " struct guestfs_message_header (encoded as XDR)\n"
3683 " struct guestfs_<foo>_args (encoded as XDR)\n"
3684 "\n"
3685 msgstr ""
3686
3687 # type: textblock
3688 #: ../src/guestfs.pod:1875
3689 msgid ""
3690 "The total length field allows the daemon to allocate a fixed size buffer "
3691 "into which it slurps the rest of the message.  As a result, the total length "
3692 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3693 "effective size of any request is limited to somewhere under this size."
3694 msgstr ""
3695
3696 # type: textblock
3697 #: ../src/guestfs.pod:1881
3698 msgid ""
3699 "Note also that many functions don't take any arguments, in which case the "
3700 "C<guestfs_I<foo>_args> is completely omitted."
3701 msgstr ""
3702
3703 # type: textblock
3704 #: ../src/guestfs.pod:1884
3705 msgid ""
3706 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3707 "receiver knows what type of args structure to expect, or none at all."
3708 msgstr ""
3709
3710 # type: textblock
3711 #: ../src/guestfs.pod:1888
3712 msgid ""
3713 "For functions that take optional arguments, the optional arguments are "
3714 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3715 "arguments.  A bitmask in the header indicates which optional arguments are "
3716 "meaningful.  The bitmask is also checked to see if it contains bits set "
3717 "which the daemon does not know about (eg. if more optional arguments were "
3718 "added in a later version of the library), and this causes the call to be "
3719 "rejected."
3720 msgstr ""
3721
3722 # type: textblock
3723 #: ../src/guestfs.pod:1896
3724 msgid "The reply message for ordinary functions is:"
3725 msgstr ""
3726
3727 # type: verbatim
3728 #: ../src/guestfs.pod:1898
3729 #, no-wrap
3730 msgid ""
3731 " total length (header + ret,\n"
3732 "      but not including the length word itself)\n"
3733 " struct guestfs_message_header (encoded as XDR)\n"
3734 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3735 "\n"
3736 msgstr ""
3737
3738 # type: textblock
3739 #: ../src/guestfs.pod:1903
3740 msgid ""
3741 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3742 "functions that return no formal return values."
3743 msgstr ""
3744
3745 # type: textblock
3746 #: ../src/guestfs.pod:1906
3747 msgid ""
3748 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3749 msgstr ""
3750
3751 # type: textblock
3752 #: ../src/guestfs.pod:1909
3753 msgid ""
3754 "In the case of an error, a flag is set in the header, and the reply message "
3755 "is slightly changed:"
3756 msgstr ""
3757
3758 # type: verbatim
3759 #: ../src/guestfs.pod:1912
3760 #, no-wrap
3761 msgid ""
3762 " total length (header + error,\n"
3763 "      but not including the length word itself)\n"
3764 " struct guestfs_message_header (encoded as XDR)\n"
3765 " struct guestfs_message_error (encoded as XDR)\n"
3766 "\n"
3767 msgstr ""
3768
3769 # type: textblock
3770 #: ../src/guestfs.pod:1917
3771 msgid ""
3772 "The C<guestfs_message_error> structure contains the error message as a "
3773 "string."
3774 msgstr ""
3775
3776 # type: =head3
3777 #: ../src/guestfs.pod:1920
3778 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3779 msgstr ""
3780
3781 # type: textblock
3782 #: ../src/guestfs.pod:1922
3783 msgid ""
3784 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3785 "The normal request message is sent (see above).  However this is followed by "
3786 "a sequence of file chunks."
3787 msgstr ""
3788
3789 # type: verbatim
3790 #: ../src/guestfs.pod:1926
3791 #, no-wrap
3792 msgid ""
3793 " total length (header + arguments,\n"
3794 "      but not including the length word itself,\n"
3795 "      and not including the chunks)\n"
3796 " struct guestfs_message_header (encoded as XDR)\n"
3797 " struct guestfs_<foo>_args (encoded as XDR)\n"
3798 " sequence of chunks for FileIn param #0\n"
3799 " sequence of chunks for FileIn param #1 etc.\n"
3800 "\n"
3801 msgstr ""
3802
3803 # type: textblock
3804 #: ../src/guestfs.pod:1934
3805 msgid "The \"sequence of chunks\" is:"
3806 msgstr ""
3807
3808 # type: verbatim
3809 #: ../src/guestfs.pod:1936
3810 #, no-wrap
3811 msgid ""
3812 " length of chunk (not including length word itself)\n"
3813 " struct guestfs_chunk (encoded as XDR)\n"
3814 " length of chunk\n"
3815 " struct guestfs_chunk (encoded as XDR)\n"
3816 "   ...\n"
3817 " length of chunk\n"
3818 " struct guestfs_chunk (with data.data_len == 0)\n"
3819 "\n"
3820 msgstr ""
3821
3822 # type: textblock
3823 #: ../src/guestfs.pod:1944
3824 msgid ""
3825 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3826 "is set in the final chunk to indicate either successful completion or early "
3827 "cancellation."
3828 msgstr ""
3829
3830 # type: textblock
3831 #: ../src/guestfs.pod:1948
3832 msgid ""
3833 "At time of writing there are no functions that have more than one FileIn "
3834 "parameter.  However this is (theoretically) supported, by sending the "
3835 "sequence of chunks for each FileIn parameter one after another (from left to "
3836 "right)."
3837 msgstr ""
3838
3839 # type: textblock
3840 #: ../src/guestfs.pod:1953
3841 msgid ""
3842 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3843 "transfer.  The library does this by sending a chunk with a special flag set "
3844 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3845 "RPC, does I<not> send any reply, and goes back to reading the next request."
3846 msgstr ""
3847
3848 # type: textblock
3849 #: ../src/guestfs.pod:1959
3850 msgid ""
3851 "The daemon may also cancel.  It does this by writing a special word "
3852 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3853 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3854 "cancel chunk).  The special word is chosen so that even if cancellation "
3855 "happens right at the end of the transfer (after the library has finished "
3856 "writing and has started listening for the reply), the \"spurious\" cancel "
3857 "flag will not be confused with the reply message."
3858 msgstr ""
3859
3860 # type: textblock
3861 #: ../src/guestfs.pod:1968
3862 msgid ""
3863 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3864 "limit), and also files where the size is not known in advance (eg. from "
3865 "pipes or sockets).  However the chunks are rather small "
3866 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3867 "to keep much in memory."
3868 msgstr ""
3869
3870 # type: =head3
3871 #: ../src/guestfs.pod:1974
3872 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3873 msgstr ""
3874
3875 # type: textblock
3876 #: ../src/guestfs.pod:1976
3877 msgid ""
3878 "The protocol for FileOut parameters is exactly the same as for FileIn "
3879 "parameters, but with the roles of daemon and library reversed."
3880 msgstr ""
3881
3882 # type: verbatim
3883 #: ../src/guestfs.pod:1979
3884 #, no-wrap
3885 msgid ""
3886 " total length (header + ret,\n"
3887 "      but not including the length word itself,\n"
3888 "      and not including the chunks)\n"
3889 " struct guestfs_message_header (encoded as XDR)\n"
3890 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3891 " sequence of chunks for FileOut param #0\n"
3892 " sequence of chunks for FileOut param #1 etc.\n"
3893 "\n"
3894 msgstr ""
3895
3896 # type: =head3
3897 #: ../src/guestfs.pod:1987
3898 msgid "INITIAL MESSAGE"
3899 msgstr ""
3900
3901 # type: textblock
3902 #: ../src/guestfs.pod:1989
3903 msgid ""
3904 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3905 "which indicates that the guest and daemon is alive.  This is what L</"
3906 "guestfs_launch> waits for."
3907 msgstr ""
3908
3909 # type: =head3
3910 #: ../src/guestfs.pod:1993
3911 msgid "PROGRESS NOTIFICATION MESSAGES"
3912 msgstr ""
3913
3914 # type: textblock
3915 #: ../src/guestfs.pod:1995
3916 msgid ""
3917 "The daemon may send progress notification messages at any time.  These are "
3918 "distinguished by the normal length word being replaced by "
3919 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3920 msgstr ""
3921
3922 # type: textblock
3923 #: ../src/guestfs.pod:1999
3924 msgid ""
3925 "The library turns them into progress callbacks (see "
3926 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3927 "discards them if not."
3928 msgstr ""
3929
3930 # type: textblock
3931 #: ../src/guestfs.pod:2003
3932 msgid ""
3933 "The daemon self-limits the frequency of progress messages it sends (see "
3934 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3935 "messages."
3936 msgstr ""
3937
3938 # type: =head1
3939 #: ../src/guestfs.pod:2007
3940 msgid "LIBGUESTFS VERSION NUMBERS"
3941 msgstr ""
3942
3943 # type: textblock
3944 #: ../src/guestfs.pod:2009
3945 msgid ""
3946 "Since April 2010, libguestfs has started to make separate development and "
3947 "stable releases, along with corresponding branches in our git repository.  "
3948 "These separate releases can be identified by version number:"
3949 msgstr ""
3950
3951 # type: verbatim
3952 #: ../src/guestfs.pod:2014
3953 #, no-wrap
3954 msgid ""
3955 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3956 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3957 "       |\n"
3958 "       v\n"
3959 " 1  .  3  .  5\n"
3960 " ^           ^\n"
3961 " |           |\n"
3962 " |           `-------- sub-version\n"
3963 " |\n"
3964 " `------ always '1' because we don't change the ABI\n"
3965 "\n"
3966 msgstr ""
3967
3968 # type: textblock
3969 #: ../src/guestfs.pod:2025
3970 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3971 msgstr ""
3972
3973 # type: textblock
3974 #: ../src/guestfs.pod:2027
3975 msgid ""
3976 "As time passes we cherry pick fixes from the development branch and backport "
3977 "those into the stable branch, the effect being that the stable branch should "
3978 "get more stable and less buggy over time.  So the stable releases are ideal "
3979 "for people who don't need new features but would just like the software to "
3980 "work."
3981 msgstr ""
3982
3983 # type: textblock
3984 #: ../src/guestfs.pod:2033
3985 msgid "Our criteria for backporting changes are:"
3986 msgstr ""
3987
3988 # type: textblock
3989 #: ../src/guestfs.pod:2039
3990 msgid ""
3991 "Documentation changes which don't affect any code are backported unless the "
3992 "documentation refers to a future feature which is not in stable."
3993 msgstr ""
3994
3995 # type: textblock
3996 #: ../src/guestfs.pod:2045
3997 msgid ""
3998 "Bug fixes which are not controversial, fix obvious problems, and have been "
3999 "well tested are backported."
4000 msgstr ""
4001
4002 # type: textblock
4003 #: ../src/guestfs.pod:2050
4004 msgid ""
4005 "Simple rearrangements of code which shouldn't affect how it works get "
4006 "backported.  This is so that the code in the two branches doesn't get too "
4007 "far out of step, allowing us to backport future fixes more easily."
4008 msgstr ""
4009
4010 # type: textblock
4011 #: ../src/guestfs.pod:2056
4012 msgid ""
4013 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4014 "exceptional case: the new feature is required in order to implement an "
4015 "important bug fix."
4016 msgstr ""
4017
4018 # type: textblock
4019 #: ../src/guestfs.pod:2062
4020 msgid ""
4021 "A new stable branch starts when we think the new features in development are "
4022 "substantial and compelling enough over the current stable branch to warrant "
4023 "it.  When that happens we create new stable and development versions 1.N.0 "
4024 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4025 "stable at this point, but by backporting fixes from development, that branch "
4026 "will stabilize over time."
4027 msgstr ""
4028
4029 # type: =head1
4030 #: ../src/guestfs.pod:2070 ../fish/guestfish.pod:965
4031 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
4032 msgid "ENVIRONMENT VARIABLES"
4033 msgstr ""
4034
4035 # type: =item
4036 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:991
4037 msgid "LIBGUESTFS_APPEND"
4038 msgstr ""
4039
4040 # type: textblock
4041 #: ../src/guestfs.pod:2076 ../fish/guestfish.pod:993
4042 msgid "Pass additional options to the guest kernel."
4043 msgstr ""
4044
4045 # type: =item
4046 #: ../src/guestfs.pod:2078 ../fish/guestfish.pod:995
4047 msgid "LIBGUESTFS_DEBUG"
4048 msgstr ""
4049
4050 # type: textblock
4051 #: ../src/guestfs.pod:2080
4052 msgid ""
4053 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
4054 "effect as calling C<guestfs_set_verbose (g, 1)>."
4055 msgstr ""
4056
4057 # type: =item
4058 #: ../src/guestfs.pod:2083 ../fish/guestfish.pod:1000
4059 msgid "LIBGUESTFS_MEMSIZE"
4060 msgstr ""
4061
4062 # type: textblock
4063 #: ../src/guestfs.pod:2085 ../fish/guestfish.pod:1002
4064 msgid ""
4065 "Set the memory allocated to the qemu process, in megabytes.  For example:"
4066 msgstr ""
4067
4068 # type: verbatim
4069 #: ../src/guestfs.pod:2088 ../fish/guestfish.pod:1005
4070 #, no-wrap
4071 msgid ""
4072 " LIBGUESTFS_MEMSIZE=700\n"
4073 "\n"
4074 msgstr ""
4075
4076 # type: =item
4077 #: ../src/guestfs.pod:2090 ../fish/guestfish.pod:1007
4078 msgid "LIBGUESTFS_PATH"
4079 msgstr ""
4080
4081 # type: textblock
4082 #: ../src/guestfs.pod:2092
4083 msgid ""
4084 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4085 "the discussion of paths in section PATH above."
4086 msgstr ""
4087
4088 # type: =item
4089 #: ../src/guestfs.pod:2095 ../fish/guestfish.pod:1012
4090 msgid "LIBGUESTFS_QEMU"
4091 msgstr ""
4092
4093 # type: textblock
4094 #: ../src/guestfs.pod:2097 ../fish/guestfish.pod:1014
4095 msgid ""
4096 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4097 "which was found at compile time by the configure script is used."
4098 msgstr ""
4099
4100 # type: textblock
4101 #: ../src/guestfs.pod:2101
4102 msgid "See also L</QEMU WRAPPERS> above."
4103 msgstr ""
4104
4105 # type: =item
4106 #: ../src/guestfs.pod:2103 ../fish/guestfish.pod:1018
4107 msgid "LIBGUESTFS_TRACE"
4108 msgstr ""
4109
4110 # type: textblock
4111 #: ../src/guestfs.pod:2105
4112 msgid ""
4113 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4114 "effect as calling C<guestfs_set_trace (g, 1)>."
4115 msgstr ""
4116
4117 # type: =item
4118 #: ../src/guestfs.pod:2108 ../fish/guestfish.pod:1027
4119 msgid "TMPDIR"
4120 msgstr ""
4121
4122 # type: textblock
4123 #: ../src/guestfs.pod:2110 ../fish/guestfish.pod:1029
4124 msgid "Location of temporary directory, defaults to C</tmp>."
4125 msgstr ""
4126
4127 # type: textblock
4128 #: ../src/guestfs.pod:2112 ../fish/guestfish.pod:1031
4129 msgid ""
4130 "If libguestfs was compiled to use the supermin appliance then the real "
4131 "appliance is cached in this directory, shared between all handles belonging "
4132 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4133 "use in case C</tmp> is not large enough."
4134 msgstr ""
4135
4136 # type: =head1
4137 #: ../src/guestfs.pod:2120 ../fish/guestfish.pod:1089
4138 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4139 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
4140 #: ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189
4141 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
4142 #: ../tools/virt-list-partitions.pl:257
4143 msgid "SEE ALSO"
4144 msgstr ""
4145
4146 # type: textblock
4147 #: ../src/guestfs.pod:2122
4148 msgid ""
4149 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
4150 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4151 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
4152 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
4153 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4154 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4155 msgstr ""
4156
4157 # type: textblock
4158 #: ../src/guestfs.pod:2145
4159 msgid ""
4160 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4161 "(8)>, L<disktype(1)>."
4162 msgstr ""
4163
4164 # type: =head1
4165 #: ../src/guestfs.pod:2152 ../tools/virt-win-reg.pl:587
4166 #: ../tools/virt-make-fs.pl:548
4167 msgid "BUGS"
4168 msgstr ""
4169
4170 # type: textblock
4171 #: ../src/guestfs.pod:2154
4172 msgid "To get a list of bugs against libguestfs use this link:"
4173 msgstr ""
4174
4175 # type: textblock
4176 #: ../src/guestfs.pod:2156
4177 msgid ""
4178 "L<https://bugzilla.redhat.com/buglist.cgi?"
4179 "component=libguestfs&product=Virtualization+Tools>"
4180 msgstr ""
4181
4182 # type: textblock
4183 #: ../src/guestfs.pod:2158
4184 msgid "To report a new bug against libguestfs use this link:"
4185 msgstr ""
4186
4187 # type: textblock
4188 #: ../src/guestfs.pod:2160
4189 msgid ""
4190 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4191 "component=libguestfs&product=Virtualization+Tools>"
4192 msgstr ""
4193
4194 # type: textblock
4195 #: ../src/guestfs.pod:2162
4196 msgid "When reporting a bug, please check:"
4197 msgstr ""
4198
4199 # type: textblock
4200 #: ../src/guestfs.pod:2168
4201 msgid "That the bug hasn't been reported already."
4202 msgstr ""
4203
4204 # type: textblock
4205 #: ../src/guestfs.pod:2172
4206 msgid "That you are testing a recent version."
4207 msgstr ""
4208
4209 # type: textblock
4210 #: ../src/guestfs.pod:2176
4211 msgid "Describe the bug accurately, and give a way to reproduce it."
4212 msgstr ""
4213
4214 # type: textblock
4215 #: ../src/guestfs.pod:2180
4216 msgid ""
4217 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4218 "bug report."
4219 msgstr ""
4220
4221 # type: =head1
4222 #: ../src/guestfs.pod:2185 ../fish/guestfish.pod:1108
4223 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4224 msgid "AUTHORS"
4225 msgstr ""
4226
4227 # type: textblock
4228 #: ../src/guestfs.pod:2187 ../fish/guestfish.pod:1110
4229 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4230 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4231 msgstr ""
4232
4233 # type: =head1
4234 #: ../src/guestfs.pod:2189 ../fish/guestfish.pod:1112
4235 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4236 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:602
4237 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206
4238 #: ../tools/virt-tar.pl:296 ../tools/virt-make-fs.pl:563
4239 #: ../tools/virt-list-partitions.pl:273
4240 msgid "COPYRIGHT"
4241 msgstr ""
4242
4243 # type: textblock
4244 #: ../src/guestfs.pod:2191 ../fish/guestfish.pod:1114
4245 #: ../fuse/guestmount.pod:250
4246 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4247 msgstr ""
4248
4249 # type: textblock
4250 #: ../src/guestfs.pod:2194
4251 msgid ""
4252 "This library is free software; you can redistribute it and/or modify it "
4253 "under the terms of the GNU Lesser General Public License as published by the "
4254 "Free Software Foundation; either version 2 of the License, or (at your "
4255 "option) any later version."
4256 msgstr ""
4257
4258 # type: textblock
4259 #: ../src/guestfs.pod:2199
4260 msgid ""
4261 "This library is distributed in the hope that it will be useful, but WITHOUT "
4262 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4263 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4264 "for more details."
4265 msgstr ""
4266
4267 # type: textblock
4268 #: ../src/guestfs.pod:2204
4269 msgid ""
4270 "You should have received a copy of the GNU Lesser General Public License "
4271 "along with this library; if not, write to the Free Software Foundation, "
4272 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4273 msgstr ""
4274
4275 # type: =head2
4276 #: ../src/guestfs-actions.pod:1
4277 msgid "guestfs_add_cdrom"
4278 msgstr ""
4279
4280 # type: verbatim
4281 #: ../src/guestfs-actions.pod:3
4282 #, no-wrap
4283 msgid ""
4284 " int\n"
4285 " guestfs_add_cdrom (guestfs_h *g,\n"
4286 "                    const char *filename);\n"
4287 "\n"
4288 msgstr ""
4289
4290 # type: textblock
4291 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4292 msgid "This function adds a virtual CD-ROM disk image to the guest."
4293 msgstr ""
4294
4295 # type: textblock
4296 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4297 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4298 msgstr ""
4299
4300 # type: textblock
4301 #: ../src/guestfs-actions.pod:17
4302 msgid ""
4303 "This call checks for the existence of C<filename>.  This stops you from "
4304 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4305 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4306 "instead."
4307 msgstr ""
4308
4309 # type: textblock
4310 #: ../src/guestfs-actions.pod:24
4311 msgid ""
4312 "If you just want to add an ISO file (often you use this as an efficient way "
4313 "to transfer large files into the guest), then you should probably use "
4314 "C<guestfs_add_drive_ro> instead."
4315 msgstr ""
4316
4317 # type: textblock
4318 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:128
4319 #: ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:226
4320 #: ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261
4321 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:295
4322 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4323 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:489
4324 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4325 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:635
4326 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:664
4327 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
4328 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
4329 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:990
4330 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1092
4331 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1129
4332 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1163
4333 #: ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264
4334 #: ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1326
4335 #: ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1466
4336 #: ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706
4337 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:2243
4338 #: ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2448
4339 #: ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:3222
4340 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3257
4341 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3424
4342 #: ../src/guestfs-actions.pod:3437 ../src/guestfs-actions.pod:3451
4343 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3502
4344 #: ../src/guestfs-actions.pod:3574 ../src/guestfs-actions.pod:3594
4345 #: ../src/guestfs-actions.pod:3611 ../src/guestfs-actions.pod:3634
4346 #: ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3689
4347 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:3727
4348 #: ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:3774
4349 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:3826
4350 #: ../src/guestfs-actions.pod:3839 ../src/guestfs-actions.pod:3854
4351 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3964
4352 #: ../src/guestfs-actions.pod:3984 ../src/guestfs-actions.pod:3997
4353 #: ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4066
4354 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4100
4355 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4128
4356 #: ../src/guestfs-actions.pod:4145 ../src/guestfs-actions.pod:4160
4357 #: ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4224
4358 #: ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4326
4359 #: ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4364
4360 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4393
4361 #: ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4421
4362 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4471
4363 #: ../src/guestfs-actions.pod:4486 ../src/guestfs-actions.pod:4506
4364 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4537
4365 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4623
4366 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4665
4367 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4700
4368 #: ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:4891
4369 #: ../src/guestfs-actions.pod:4913 ../src/guestfs-actions.pod:4931
4370 #: ../src/guestfs-actions.pod:4963 ../src/guestfs-actions.pod:5029
4371 #: ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5059
4372 #: ../src/guestfs-actions.pod:5073 ../src/guestfs-actions.pod:5362
4373 #: ../src/guestfs-actions.pod:5381 ../src/guestfs-actions.pod:5395
4374 #: ../src/guestfs-actions.pod:5407 ../src/guestfs-actions.pod:5421
4375 #: ../src/guestfs-actions.pod:5433 ../src/guestfs-actions.pod:5447
4376 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5484
4377 #: ../src/guestfs-actions.pod:5503 ../src/guestfs-actions.pod:5522
4378 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5563
4379 #: ../src/guestfs-actions.pod:5581 ../src/guestfs-actions.pod:5600
4380 #: ../src/guestfs-actions.pod:5621 ../src/guestfs-actions.pod:5640
4381 #: ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:5685
4382 #: ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:5728
4383 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5767
4384 #: ../src/guestfs-actions.pod:5782 ../src/guestfs-actions.pod:5801
4385 #: ../src/guestfs-actions.pod:5838 ../src/guestfs-actions.pod:5861
4386 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:5995
4387 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6128
4388 #: ../src/guestfs-actions.pod:6141 ../src/guestfs-actions.pod:6154
4389 #: ../src/guestfs-actions.pod:6176 ../src/guestfs-actions.pod:6189
4390 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6215
4391 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6289
4392 #: ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6322
4393 #: ../src/guestfs-actions.pod:6338 ../src/guestfs-actions.pod:6355
4394 #: ../src/guestfs-actions.pod:6368 ../src/guestfs-actions.pod:6388
4395 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6438
4396 #: ../src/guestfs-actions.pod:6479 ../src/guestfs-actions.pod:6492
4397 #: ../src/guestfs-actions.pod:6510 ../src/guestfs-actions.pod:6544
4398 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6699
4399 #: ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:6731
4400 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:6799
4401 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6877
4402 #: ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6957
4403 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7042
4404 #: ../src/guestfs-actions.pod:7071
4405 msgid "This function returns 0 on success or -1 on error."
4406 msgstr ""
4407
4408 # type: textblock
4409 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:242
4410 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:28
4411 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4412 msgid ""
4413 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4414 "instead."
4415 msgstr ""
4416
4417 # type: textblock
4418 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:245
4419 #: ../src/guestfs-actions.pod:266 ../src/guestfs-actions.pod:1437
4420 #: ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1944
4421 #: ../src/guestfs-actions.pod:4185 ../src/guestfs-actions.pod:6965
4422 #: ../src/guestfs-actions.pod:7134 ../fish/guestfish-actions.pod:31
4423 #: ../fish/guestfish-actions.pod:156 ../fish/guestfish-actions.pod:170
4424 #: ../fish/guestfish-actions.pod:951 ../fish/guestfish-actions.pod:1308
4425 #: ../fish/guestfish-actions.pod:1322 ../fish/guestfish-actions.pod:2818
4426 #: ../fish/guestfish-actions.pod:4620 ../fish/guestfish-actions.pod:4717
4427 msgid ""
4428 "Deprecated functions will not be removed from the API, but the fact that "
4429 "they are deprecated indicates that there are problems with correct use of "
4430 "these functions."
4431 msgstr ""
4432
4433 # type: textblock
4434 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:130
4435 #: ../src/guestfs-actions.pod:1094 ../src/guestfs-actions.pod:1895
4436 #: ../src/guestfs-actions.pod:1993 ../src/guestfs-actions.pod:2096
4437 #: ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3239
4438 #: ../src/guestfs-actions.pod:4473 ../src/guestfs-actions.pod:5542
4439 #: ../src/guestfs-actions.pod:5659 ../src/guestfs-actions.pod:5769
4440 #: ../src/guestfs-actions.pod:6232 ../src/guestfs-actions.pod:6357
4441 #: ../src/guestfs-actions.pod:6879
4442 msgid "(Added in 0.3)"
4443 msgstr ""
4444
4445 # type: =head2
4446 #: ../src/guestfs-actions.pod:41
4447 msgid "guestfs_add_domain"
4448 msgstr ""
4449
4450 # type: verbatim
4451 #: ../src/guestfs-actions.pod:43
4452 #, no-wrap
4453 msgid ""
4454 " int\n"
4455 " guestfs_add_domain (guestfs_h *g,\n"
4456 "                     const char *dom,\n"
4457 "                     ...);\n"
4458 "\n"
4459 msgstr ""
4460
4461 # type: textblock
4462 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139
4463 #: ../src/guestfs-actions.pod:4199
4464 msgid ""
4465 "You may supply a list of optional arguments to this call.  Use zero or more "
4466 "of the following pairs of parameters, and terminate the list with C<-1> on "
4467 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4468 msgstr ""
4469
4470 # type: verbatim
4471 #: ../src/guestfs-actions.pod:53
4472 #, no-wrap
4473 msgid ""
4474 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4475 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4476 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4477 "\n"
4478 msgstr ""
4479
4480 # type: textblock
4481 #: ../src/guestfs-actions.pod:57
4482 msgid ""
4483 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4484 "It works by connecting to libvirt, requesting the domain and domain XML from "
4485 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4486 "one."
4487 msgstr ""
4488
4489 # type: textblock
4490 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4491 msgid ""
4492 "The number of disks added is returned.  This operation is atomic: if an "
4493 "error is returned, then no disks are added."
4494 msgstr ""
4495
4496 # type: textblock
4497 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4498 msgid ""
4499 "This function does some minimal checks to make sure the libvirt domain is "
4500 "not running (unless C<readonly> is true).  In a future version we will try "
4501 "to acquire the libvirt lock on each disk."
4502 msgstr ""
4503
4504 # type: textblock
4505 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4506 msgid ""
4507 "Disks must be accessible locally.  This often means that adding disks from a "
4508 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4509 "unless those disks are accessible via the same device path locally too."
4510 msgstr ""
4511
4512 # type: textblock
4513 #: ../src/guestfs-actions.pod:74
4514 msgid ""
4515 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4516 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4517 "libvirt URI (or one set through an environment variable, see the libvirt "
4518 "documentation for full details).  If you are using the C API directly then "
4519 "it is more flexible to create the libvirt connection object yourself, get "
4520 "the domain object, and call C<guestfs_add_libvirt_dom>."
4521 msgstr ""
4522
4523 # type: textblock
4524 #: ../src/guestfs-actions.pod:82
4525 msgid ""
4526 "The other optional parameters are passed directly through to "
4527 "C<guestfs_add_drive_opts>."
4528 msgstr ""
4529
4530 # type: textblock
4531 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:338
4532 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:681
4533 #: ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730
4534 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:1309
4535 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1866
4536 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2005
4537 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2083
4538 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2662
4539 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:4609
4540 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:5143
4541 #: ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:6465
4542 #: ../src/guestfs-actions.pod:6890 ../src/guestfs-actions.pod:6903
4543 #: ../src/guestfs-actions.pod:6916
4544 msgid "On error this function returns -1."
4545 msgstr ""
4546
4547 # type: textblock
4548 #: ../src/guestfs-actions.pod:87
4549 msgid "(Added in 1.7.4)"
4550 msgstr ""
4551
4552 # type: =head2
4553 #: ../src/guestfs-actions.pod:89
4554 msgid "guestfs_add_domain_va"
4555 msgstr ""
4556
4557 # type: verbatim
4558 #: ../src/guestfs-actions.pod:91
4559 #, no-wrap
4560 msgid ""
4561 " int\n"
4562 " guestfs_add_domain_va (guestfs_h *g,\n"
4563 "                        const char *dom,\n"
4564 "                        va_list args);\n"
4565 "\n"
4566 msgstr ""
4567
4568 # type: textblock
4569 #: ../src/guestfs-actions.pod:96
4570 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4571 msgstr ""
4572
4573 # type: textblock
4574 #: ../src/guestfs-actions.pod:98 ../src/guestfs-actions.pod:109
4575 #: ../src/guestfs-actions.pod:202 ../src/guestfs-actions.pod:213
4576 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4248
4577 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4578 msgstr ""
4579
4580 # type: =head2
4581 #: ../src/guestfs-actions.pod:100
4582 msgid "guestfs_add_domain_argv"
4583 msgstr ""
4584
4585 # type: verbatim
4586 #: ../src/guestfs-actions.pod:102
4587 #, no-wrap
4588 msgid ""
4589 " int\n"
4590 " guestfs_add_domain_argv (guestfs_h *g,\n"
4591 "                          const char *dom,\n"
4592 "                          const struct guestfs_add_domain_argv *optargs);\n"
4593 "\n"
4594 msgstr ""
4595
4596 # type: textblock
4597 #: ../src/guestfs-actions.pod:107
4598 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4599 msgstr ""
4600
4601 # type: =head2
4602 #: ../src/guestfs-actions.pod:111
4603 msgid "guestfs_add_drive"
4604 msgstr ""
4605
4606 # type: verbatim
4607 #: ../src/guestfs-actions.pod:113
4608 #, no-wrap
4609 msgid ""
4610 " int\n"
4611 " guestfs_add_drive (guestfs_h *g,\n"
4612 "                    const char *filename);\n"
4613 "\n"
4614 msgstr ""
4615
4616 # type: textblock
4617 #: ../src/guestfs-actions.pod:117
4618 msgid ""
4619 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4620 "optional parameters, so the disk is added writable, with the format being "
4621 "detected automatically."
4622 msgstr ""
4623
4624 # type: textblock
4625 #: ../src/guestfs-actions.pod:121
4626 msgid ""
4627 "Automatic detection of the format opens you up to a potential security hole "
4628 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4629 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4630 "you should think about replacing calls to this function with calls to "
4631 "C<guestfs_add_drive_opts>, and specifying the format."
4632 msgstr ""
4633
4634 # type: =head2
4635 #: ../src/guestfs-actions.pod:132
4636 msgid "guestfs_add_drive_opts"
4637 msgstr ""
4638
4639 # type: verbatim
4640 #: ../src/guestfs-actions.pod:134
4641 #, no-wrap
4642 msgid ""
4643 " int\n"
4644 " guestfs_add_drive_opts (guestfs_h *g,\n"
4645 "                         const char *filename,\n"
4646 "                         ...);\n"
4647 "\n"
4648 msgstr ""
4649
4650 # type: verbatim
4651 #: ../src/guestfs-actions.pod:144
4652 #, no-wrap
4653 msgid ""
4654 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4655 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4656 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4657 "\n"
4658 msgstr ""
4659
4660 # type: textblock
4661 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4662 msgid ""
4663 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4664 "The first time you call this function, the disk appears as C</dev/sda>, the "
4665 "second time as C</dev/sdb>, and so on."
4666 msgstr ""
4667
4668 # type: textblock
4669 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4670 msgid ""
4671 "You don't necessarily need to be root when using libguestfs.  However you "
4672 "obviously do need sufficient permissions to access the filename for whatever "
4673 "operations you want to perform (ie. read access if you just want to read the "
4674 "image or write access if you want to modify the image)."
4675 msgstr ""
4676
4677 # type: textblock
4678 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4679 msgid "This call checks that C<filename> exists."
4680 msgstr ""
4681
4682 # type: textblock
4683 #: ../src/guestfs-actions.pod:161 ../src/guestfs-actions.pod:4209
4684 #: ../fish/guestfish-actions.pod:105 ../fish/guestfish-actions.pod:2829
4685 msgid "The optional arguments are:"
4686 msgstr ""
4687
4688 # type: =item
4689 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4690 msgid "C<readonly>"
4691 msgstr ""
4692
4693 # type: textblock
4694 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4695 msgid ""
4696 "If true then the image is treated as read-only.  Writes are still allowed, "
4697 "but they are stored in a temporary snapshot overlay which is discarded at "
4698 "the end.  The disk that you add is not modified."
4699 msgstr ""
4700
4701 # type: =item
4702 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4703 msgid "C<format>"
4704 msgstr ""
4705
4706 # type: textblock
4707 #: ../src/guestfs-actions.pod:173
4708 msgid ""
4709 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4710 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4711 "Possible formats include C<raw> and C<qcow2>."
4712 msgstr ""
4713
4714 # type: textblock
4715 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4716 msgid ""
4717 "Automatic detection of the format opens you up to a potential security hole "
4718 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4719 "RHBZ#642934.  Specifying the format closes this security hole."
4720 msgstr ""
4721
4722 # type: =item
4723 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4724 msgid "C<iface>"
4725 msgstr ""
4726
4727 # type: textblock
4728 #: ../src/guestfs-actions.pod:184
4729 msgid ""
4730 "This rarely-used option lets you emulate the behaviour of the deprecated "
4731 "C<guestfs_add_drive_with_if> call (q.v.)"
4732 msgstr ""
4733
4734 # type: textblock
4735 #: ../src/guestfs-actions.pod:191
4736 msgid "(Added in 1.5.23)"
4737 msgstr ""
4738
4739 # type: =head2
4740 #: ../src/guestfs-actions.pod:193
4741 msgid "guestfs_add_drive_opts_va"
4742 msgstr ""
4743
4744 # type: verbatim
4745 #: ../src/guestfs-actions.pod:195
4746 #, no-wrap
4747 msgid ""
4748 " int\n"
4749 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4750 "                            const char *filename,\n"
4751 "                            va_list args);\n"
4752 "\n"
4753 msgstr ""
4754
4755 # type: textblock
4756 #: ../src/guestfs-actions.pod:200
4757 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4758 msgstr ""
4759
4760 # type: =head2
4761 #: ../src/guestfs-actions.pod:204
4762 msgid "guestfs_add_drive_opts_argv"
4763 msgstr ""
4764
4765 # type: verbatim
4766 #: ../src/guestfs-actions.pod:206
4767 #, no-wrap
4768 msgid ""
4769 " int\n"
4770 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4771 "                              const char *filename,\n"
4772 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4773 "\n"
4774 msgstr ""
4775
4776 # type: textblock
4777 #: ../src/guestfs-actions.pod:211
4778 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4779 msgstr ""
4780
4781 # type: =head2
4782 #: ../src/guestfs-actions.pod:215
4783 msgid "guestfs_add_drive_ro"
4784 msgstr ""
4785
4786 # type: verbatim
4787 #: ../src/guestfs-actions.pod:217
4788 #, no-wrap
4789 msgid ""
4790 " int\n"
4791 " guestfs_add_drive_ro (guestfs_h *g,\n"
4792 "                       const char *filename);\n"
4793 "\n"
4794 msgstr ""
4795
4796 # type: textblock
4797 #: ../src/guestfs-actions.pod:221
4798 msgid ""
4799 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4800 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4801 "disk is added read-only, with the format being detected automatically."
4802 msgstr ""
4803
4804 # type: textblock
4805 #: ../src/guestfs-actions.pod:228
4806 msgid "(Added in 1.0.38)"
4807 msgstr ""
4808
4809 # type: =head2
4810 #: ../src/guestfs-actions.pod:230
4811 msgid "guestfs_add_drive_ro_with_if"
4812 msgstr ""
4813
4814 # type: verbatim
4815 #: ../src/guestfs-actions.pod:232
4816 #, no-wrap
4817 msgid ""
4818 " int\n"
4819 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4820 "                               const char *filename,\n"
4821 "                               const char *iface);\n"
4822 "\n"
4823 msgstr ""
4824
4825 # type: textblock
4826 #: ../src/guestfs-actions.pod:237
4827 msgid ""
4828 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4829 "QEMU interface emulation to use at run time."
4830 msgstr ""
4831
4832 # type: textblock
4833 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
4834 #: ../src/guestfs-actions.pod:2333
4835 msgid "(Added in 1.0.84)"
4836 msgstr ""
4837
4838 # type: =head2
4839 #: ../src/guestfs-actions.pod:251
4840 msgid "guestfs_add_drive_with_if"
4841 msgstr ""
4842
4843 # type: verbatim
4844 #: ../src/guestfs-actions.pod:253
4845 #, no-wrap
4846 msgid ""
4847 " int\n"
4848 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4849 "                            const char *filename,\n"
4850 "                            const char *iface);\n"
4851 "\n"
4852 msgstr ""
4853
4854 # type: textblock
4855 #: ../src/guestfs-actions.pod:258
4856 msgid ""
4857 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4858 "QEMU interface emulation to use at run time."
4859 msgstr ""
4860
4861 # type: =head2
4862 #: ../src/guestfs-actions.pod:272
4863 msgid "guestfs_aug_clear"
4864 msgstr ""
4865
4866 # type: verbatim
4867 #: ../src/guestfs-actions.pod:274
4868 #, no-wrap
4869 msgid ""
4870 " int\n"
4871 " guestfs_aug_clear (guestfs_h *g,\n"
4872 "                    const char *augpath);\n"
4873 "\n"
4874 msgstr ""
4875
4876 # type: textblock
4877 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4878 msgid ""
4879 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4880 "L<augtool(1)> C<clear> command."
4881 msgstr ""
4882
4883 # type: textblock
4884 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4885 msgid "(Added in 1.3.4)"
4886 msgstr ""
4887
4888 # type: =head2
4889 #: ../src/guestfs-actions.pod:285
4890 msgid "guestfs_aug_close"
4891 msgstr ""
4892
4893 # type: verbatim
4894 #: ../src/guestfs-actions.pod:287
4895 #, no-wrap
4896 msgid ""
4897 " int\n"
4898 " guestfs_aug_close (guestfs_h *g);\n"
4899 "\n"
4900 msgstr ""
4901
4902 # type: textblock
4903 #: ../src/guestfs-actions.pod:290
4904 msgid ""
4905 "Close the current Augeas handle and free up any resources used by it.  After "
4906 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4907 "any other Augeas functions."
4908 msgstr ""
4909
4910 # type: textblock
4911 #: ../src/guestfs-actions.pod:297 ../src/guestfs-actions.pod:322
4912 #: ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:354
4913 #: ../src/guestfs-actions.pod:412 ../src/guestfs-actions.pod:432
4914 #: ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:477
4915 #: ../src/guestfs-actions.pod:491 ../src/guestfs-actions.pod:505
4916 #: ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:537
4917 #: ../src/guestfs-actions.pod:5220
4918 msgid "(Added in 0.7)"
4919 msgstr ""
4920
4921 # type: =head2
4922 #: ../src/guestfs-actions.pod:299
4923 msgid "guestfs_aug_defnode"
4924 msgstr ""
4925
4926 # type: verbatim
4927 #: ../src/guestfs-actions.pod:301
4928 #, no-wrap
4929 msgid ""
4930 " struct guestfs_int_bool *\n"
4931 " guestfs_aug_defnode (guestfs_h *g,\n"
4932 "                      const char *name,\n"
4933 "                      const char *expr,\n"
4934 "                      const char *val);\n"
4935 "\n"
4936 msgstr ""
4937
4938 # type: textblock
4939 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4940 msgid ""
4941 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4942 msgstr ""
4943
4944 # type: textblock
4945 #: ../src/guestfs-actions.pod:310
4946 msgid ""
4947 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4948 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4949 "containing that single node."
4950 msgstr ""
4951
4952 # type: textblock
4953 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4954 msgid ""
4955 "On success this returns a pair containing the number of nodes in the "
4956 "nodeset, and a boolean flag if a node was created."
4957 msgstr ""
4958
4959 # type: textblock
4960 #: ../src/guestfs-actions.pod:318
4961 msgid ""
4962 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4963 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4964 msgstr ""
4965
4966 # type: =head2
4967 #: ../src/guestfs-actions.pod:324
4968 msgid "guestfs_aug_defvar"
4969 msgstr ""
4970
4971 # type: verbatim
4972 #: ../src/guestfs-actions.pod:326
4973 #, no-wrap
4974 msgid ""
4975 " int\n"
4976 " guestfs_aug_defvar (guestfs_h *g,\n"
4977 "                     const char *name,\n"
4978 "                     const char *expr);\n"
4979 "\n"
4980 msgstr ""
4981
4982 # type: textblock
4983 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
4984 msgid ""
4985 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4986 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4987 msgstr ""
4988
4989 # type: textblock
4990 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
4991 msgid ""
4992 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4993 "evaluates to something which is not a nodeset."
4994 msgstr ""
4995
4996 # type: =head2
4997 #: ../src/guestfs-actions.pod:342
4998 msgid "guestfs_aug_get"
4999 msgstr ""
5000
5001 # type: verbatim
5002 #: ../src/guestfs-actions.pod:344
5003 #, no-wrap
5004 msgid ""
5005 " char *\n"
5006 " guestfs_aug_get (guestfs_h *g,\n"
5007 "                  const char *augpath);\n"
5008 "\n"
5009 msgstr ""
5010
5011 # type: textblock
5012 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
5013 msgid ""
5014 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5015 "node, the C<value> is returned."
5016 msgstr ""
5017
5018 # type: textblock
5019 #: ../src/guestfs-actions.pod:351 ../src/guestfs-actions.pod:851
5020 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:929
5021 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1048
5022 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1195
5023 #: ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1343
5024 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1646
5025 #: ../src/guestfs-actions.pod:1809 ../src/guestfs-actions.pod:1826
5026 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:1938
5027 #: ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2298
5028 #: ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2586
5029 #: ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2744
5030 #: ../src/guestfs-actions.pod:2775 ../src/guestfs-actions.pod:2799
5031 #: ../src/guestfs-actions.pod:2861 ../src/guestfs-actions.pod:2884
5032 #: ../src/guestfs-actions.pod:3396 ../src/guestfs-actions.pod:3746
5033 #: ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:4026
5034 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4948
5035 #: ../src/guestfs-actions.pod:5118 ../src/guestfs-actions.pod:5296
5036 #: ../src/guestfs-actions.pod:5345 ../src/guestfs-actions.pod:5908
5037 #: ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:5941
5038 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6639
5039 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6676
5040 #: ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:7128
5041 msgid ""
5042 "This function returns a string, or NULL on error.  I<The caller must free "
5043 "the returned string after use>."
5044 msgstr ""
5045
5046 # type: =head2
5047 #: ../src/guestfs-actions.pod:356
5048 msgid "guestfs_aug_init"
5049 msgstr ""
5050
5051 # type: verbatim
5052 #: ../src/guestfs-actions.pod:358
5053 #, no-wrap
5054 msgid ""
5055 " int\n"
5056 " guestfs_aug_init (guestfs_h *g,\n"
5057 "                   const char *root,\n"
5058 "                   int flags);\n"
5059 "\n"
5060 msgstr ""
5061
5062 # type: textblock
5063 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
5064 msgid ""
5065 "Create a new Augeas handle for editing configuration files.  If there was "
5066 "any previous Augeas handle associated with this guestfs session, then it is "
5067 "closed."
5068 msgstr ""
5069
5070 # type: textblock
5071 #: ../src/guestfs-actions.pod:367
5072 msgid "You must call this before using any other C<guestfs_aug_*> commands."
5073 msgstr ""
5074
5075 # type: textblock
5076 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
5077 msgid ""
5078 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5079 msgstr ""
5080
5081 # type: textblock
5082 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
5083 msgid ""
5084 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5085 "logical I<or> of the following integers:"
5086 msgstr ""
5087
5088 # type: =item
5089 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
5090 msgid "C<AUG_SAVE_BACKUP> = 1"
5091 msgstr ""
5092
5093 # type: textblock
5094 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
5095 msgid "Keep the original file with a C<.augsave> extension."
5096 msgstr ""
5097
5098 # type: =item
5099 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
5100 msgid "C<AUG_SAVE_NEWFILE> = 2"
5101 msgstr ""
5102
5103 # type: textblock
5104 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
5105 msgid ""
5106 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5107 "original.  Overrides C<AUG_SAVE_BACKUP>."
5108 msgstr ""
5109
5110 # type: =item
5111 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
5112 msgid "C<AUG_TYPE_CHECK> = 4"
5113 msgstr ""
5114
5115 # type: textblock
5116 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
5117 msgid "Typecheck lenses (can be expensive)."
5118 msgstr ""
5119
5120 # type: =item
5121 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
5122 msgid "C<AUG_NO_STDINC> = 8"
5123 msgstr ""
5124
5125 # type: textblock
5126 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
5127 msgid "Do not use standard load path for modules."
5128 msgstr ""
5129
5130 # type: =item
5131 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
5132 msgid "C<AUG_SAVE_NOOP> = 16"
5133 msgstr ""
5134
5135 # type: textblock
5136 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
5137 msgid "Make save a no-op, just record what would have been changed."
5138 msgstr ""
5139
5140 # type: =item
5141 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
5142 msgid "C<AUG_NO_LOAD> = 32"
5143 msgstr ""
5144
5145 # type: textblock
5146 #: ../src/guestfs-actions.pod:402
5147 msgid "Do not load the tree in C<guestfs_aug_init>."
5148 msgstr ""
5149
5150 # type: textblock
5151 #: ../src/guestfs-actions.pod:406
5152 msgid "To close the handle, you can call C<guestfs_aug_close>."
5153 msgstr ""
5154
5155 # type: textblock
5156 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
5157 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5158 msgstr ""
5159
5160 # type: =head2
5161 #: ../src/guestfs-actions.pod:414
5162 msgid "guestfs_aug_insert"
5163 msgstr ""
5164
5165 # type: verbatim
5166 #: ../src/guestfs-actions.pod:416
5167 #, no-wrap
5168 msgid ""
5169 " int\n"
5170 " guestfs_aug_insert (guestfs_h *g,\n"
5171 "                     const char *augpath,\n"
5172 "                     const char *label,\n"
5173 "                     int before);\n"
5174 "\n"
5175 msgstr ""
5176
5177 # type: textblock
5178 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
5179 msgid ""
5180 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5181 "or after C<path> (depending on the boolean flag C<before>)."
5182 msgstr ""
5183
5184 # type: textblock
5185 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
5186 msgid ""
5187 "C<path> must match exactly one existing node in the tree, and C<label> must "
5188 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5189 msgstr ""
5190
5191 # type: =head2
5192 #: ../src/guestfs-actions.pod:434
5193 msgid "guestfs_aug_load"
5194 msgstr ""
5195
5196 # type: verbatim
5197 #: ../src/guestfs-actions.pod:436
5198 #, no-wrap
5199 msgid ""
5200 " int\n"
5201 " guestfs_aug_load (guestfs_h *g);\n"
5202 "\n"
5203 msgstr ""
5204
5205 # type: textblock
5206 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
5207 msgid "Load files into the tree."
5208 msgstr ""
5209
5210 # type: textblock
5211 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
5212 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5213 msgstr ""
5214
5215 # type: =head2
5216 #: ../src/guestfs-actions.pod:448
5217 msgid "guestfs_aug_ls"
5218 msgstr ""
5219
5220 # type: verbatim
5221 #: ../src/guestfs-actions.pod:450
5222 #, no-wrap
5223 msgid ""
5224 " char **\n"
5225 " guestfs_aug_ls (guestfs_h *g,\n"
5226 "                 const char *augpath);\n"
5227 "\n"
5228 msgstr ""
5229
5230 # type: textblock
5231 #: ../src/guestfs-actions.pod:454
5232 msgid ""
5233 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5234 "sorting the resulting nodes into alphabetical order."
5235 msgstr ""
5236
5237 # type: textblock
5238 #: ../src/guestfs-actions.pod:457 ../src/guestfs-actions.pod:473
5239 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:1067
5240 #: ../src/guestfs-actions.pod:1358 ../src/guestfs-actions.pod:1377
5241 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1499
5242 #: ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:2178
5243 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2213
5244 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2280
5245 #: ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2400
5246 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2818
5247 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3316
5248 #: ../src/guestfs-actions.pod:3378 ../src/guestfs-actions.pod:3483
5249 #: ../src/guestfs-actions.pod:3888 ../src/guestfs-actions.pod:4570
5250 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5216
5251 #: ../src/guestfs-actions.pod:5330 ../src/guestfs-actions.pod:5981
5252 #: ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:6097
5253 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6267
5254 #: ../src/guestfs-actions.pod:6749 ../src/guestfs-actions.pod:6769
5255 #: ../src/guestfs-actions.pod:6816 ../src/guestfs-actions.pod:6981
5256 #: ../src/guestfs-actions.pod:7000 ../src/guestfs-actions.pod:7085
5257 #: ../src/guestfs-actions.pod:7104 ../src/guestfs-actions.pod:7150
5258 #: ../src/guestfs-actions.pod:7169
5259 msgid ""
5260 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5261 ">), or NULL if there was an error.  I<The caller must free the strings and "
5262 "the array after use>."
5263 msgstr ""
5264
5265 # type: textblock
5266 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:992
5267 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:1415
5268 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3142
5269 #: ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:3779
5270 #: ../src/guestfs-actions.pod:3966 ../src/guestfs-actions.pod:3999
5271 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4574
5272 #: ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5409
5273 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5435
5274 #: ../src/guestfs-actions.pod:5843 ../src/guestfs-actions.pod:6481
5275 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6733
5276 #: ../src/guestfs-actions.pod:6936 ../src/guestfs-actions.pod:6969
5277 msgid "(Added in 0.8)"
5278 msgstr ""
5279
5280 # type: =head2
5281 #: ../src/guestfs-actions.pod:463
5282 msgid "guestfs_aug_match"
5283 msgstr ""
5284
5285 # type: verbatim
5286 #: ../src/guestfs-actions.pod:465
5287 #, no-wrap
5288 msgid ""
5289 " char **\n"
5290 " guestfs_aug_match (guestfs_h *g,\n"
5291 "                    const char *augpath);\n"
5292 "\n"
5293 msgstr ""
5294
5295 # type: textblock
5296 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
5297 msgid ""
5298 "Returns a list of paths which match the path expression C<path>.  The "
5299 "returned paths are sufficiently qualified so that they match exactly one "
5300 "node in the current tree."
5301 msgstr ""
5302
5303 # type: =head2
5304 #: ../src/guestfs-actions.pod:479
5305 msgid "guestfs_aug_mv"
5306 msgstr ""
5307
5308 # type: verbatim
5309 #: ../src/guestfs-actions.pod:481
5310 #, no-wrap
5311 msgid ""
5312 " int\n"
5313 " guestfs_aug_mv (guestfs_h *g,\n"
5314 "                 const char *src,\n"
5315 "                 const char *dest);\n"
5316 "\n"
5317 msgstr ""
5318
5319 # type: textblock
5320 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
5321 msgid ""
5322 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5323 "C<dest> is overwritten if it exists."
5324 msgstr ""
5325
5326 # type: =head2
5327 #: ../src/guestfs-actions.pod:493
5328 msgid "guestfs_aug_rm"
5329 msgstr ""
5330
5331 # type: verbatim
5332 #: ../src/guestfs-actions.pod:495
5333 #, no-wrap
5334 msgid ""
5335 " int\n"
5336 " guestfs_aug_rm (guestfs_h *g,\n"
5337 "                 const char *augpath);\n"
5338 "\n"
5339 msgstr ""
5340
5341 # type: textblock
5342 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5343 msgid "Remove C<path> and all of its children."
5344 msgstr ""
5345
5346 # type: textblock
5347 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5348 msgid "On success this returns the number of entries which were removed."
5349 msgstr ""
5350
5351 # type: =head2
5352 #: ../src/guestfs-actions.pod:507
5353 msgid "guestfs_aug_save"
5354 msgstr ""
5355
5356 # type: verbatim
5357 #: ../src/guestfs-actions.pod:509
5358 #, no-wrap
5359 msgid ""
5360 " int\n"
5361 " guestfs_aug_save (guestfs_h *g);\n"
5362 "\n"
5363 msgstr ""
5364
5365 # type: textblock
5366 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5367 msgid "This writes all pending changes to disk."
5368 msgstr ""
5369
5370 # type: textblock
5371 #: ../src/guestfs-actions.pod:514
5372 msgid ""
5373 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5374 "are saved."
5375 msgstr ""
5376
5377 # type: =head2
5378 #: ../src/guestfs-actions.pod:521
5379 msgid "guestfs_aug_set"
5380 msgstr ""
5381
5382 # type: verbatim
5383 #: ../src/guestfs-actions.pod:523
5384 #, no-wrap
5385 msgid ""
5386 " int\n"
5387 " guestfs_aug_set (guestfs_h *g,\n"
5388 "                  const char *augpath,\n"
5389 "                  const char *val);\n"
5390 "\n"
5391 msgstr ""
5392
5393 # type: textblock
5394 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5395 msgid "Set the value associated with C<path> to C<val>."
5396 msgstr ""
5397
5398 # type: textblock
5399 #: ../src/guestfs-actions.pod:530
5400 msgid ""
5401 "In the Augeas API, it is possible to clear a node by setting the value to "
5402 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5403 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5404 msgstr ""
5405
5406 # type: =head2
5407 #: ../src/guestfs-actions.pod:539
5408 msgid "guestfs_available"
5409 msgstr ""
5410
5411 # type: verbatim
5412 #: ../src/guestfs-actions.pod:541
5413 #, no-wrap
5414 msgid ""
5415 " int\n"
5416 " guestfs_available (guestfs_h *g,\n"
5417 "                    char *const *groups);\n"
5418 "\n"
5419 msgstr ""
5420
5421 # type: textblock
5422 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5423 msgid ""
5424 "This command is used to check the availability of some groups of "
5425 "functionality in the appliance, which not all builds of the libguestfs "
5426 "appliance will be able to provide."
5427 msgstr ""
5428
5429 # type: textblock
5430 #: ../src/guestfs-actions.pod:549
5431 msgid ""
5432 "The libguestfs groups, and the functions that those groups correspond to, "
5433 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5434 "runtime by calling C<guestfs_available_all_groups>."
5435 msgstr ""
5436
5437 # type: textblock
5438 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5439 msgid ""
5440 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5441 "\"]> would check for the availability of the Linux inotify functions and "
5442 "Augeas (configuration file editing) functions."
5443 msgstr ""
5444
5445 # type: textblock
5446 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5447 msgid "The command returns no error if I<all> requested groups are available."
5448 msgstr ""
5449
5450 # type: textblock
5451 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5452 msgid ""
5453 "It fails with an error if one or more of the requested groups is unavailable "
5454 "in the appliance."
5455 msgstr ""
5456
5457 # type: textblock
5458 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5459 msgid ""
5460 "If an unknown group name is included in the list of groups then an error is "
5461 "always returned."
5462 msgstr ""
5463
5464 # type: textblock
5465 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5466 msgid "I<Notes:>"
5467 msgstr ""
5468
5469 # type: textblock
5470 #: ../src/guestfs-actions.pod:573
5471 msgid "You must call C<guestfs_launch> before calling this function."
5472 msgstr ""
5473
5474 # type: textblock
5475 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5476 msgid ""
5477 "The reason is because we don't know what groups are supported by the "
5478 "appliance/daemon until it is running and can be queried."
5479 msgstr ""
5480
5481 # type: textblock
5482 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5483 msgid ""
5484 "If a group of functions is available, this does not necessarily mean that "
5485 "they will work.  You still have to check for errors when calling individual "
5486 "API functions even if they are available."
5487 msgstr ""
5488
5489 # type: textblock
5490 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5491 msgid ""
5492 "It is usually the job of distro packagers to build complete functionality "
5493 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5494 "with all requirements satisfied, will support everything."
5495 msgstr ""
5496
5497 # type: textblock
5498 #: ../src/guestfs-actions.pod:595
5499 msgid ""
5500 "This call was added in version C<1.0.80>.  In previous versions of "
5501 "libguestfs all you could do would be to speculatively execute a command to "
5502 "find out if the daemon implemented it.  See also C<guestfs_version>."
5503 msgstr ""
5504
5505 # type: textblock
5506 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5507 msgid "(Added in 1.0.80)"
5508 msgstr ""
5509
5510 # type: =head2
5511 #: ../src/guestfs-actions.pod:606
5512 msgid "guestfs_available_all_groups"
5513 msgstr ""
5514
5515 # type: verbatim
5516 #: ../src/guestfs-actions.pod:608
5517 #, no-wrap
5518 msgid ""
5519 " char **\n"
5520 " guestfs_available_all_groups (guestfs_h *g);\n"
5521 "\n"
5522 msgstr ""
5523
5524 # type: textblock
5525 #: ../src/guestfs-actions.pod:611
5526 msgid ""
5527 "This command returns a list of all optional groups that this daemon knows "
5528 "about.  Note this returns both supported and unsupported groups.  To find "
5529 "out which ones the daemon can actually support you have to call "
5530 "C<guestfs_available> on each member of the returned list."
5531 msgstr ""
5532
5533 # type: textblock
5534 #: ../src/guestfs-actions.pod:617
5535 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5536 msgstr ""
5537
5538 # type: textblock
5539 #: ../src/guestfs-actions.pod:623
5540 msgid "(Added in 1.3.15)"
5541 msgstr ""
5542
5543 # type: =head2
5544 #: ../src/guestfs-actions.pod:625
5545 msgid "guestfs_base64_in"
5546 msgstr ""
5547
5548 # type: verbatim
5549 #: ../src/guestfs-actions.pod:627
5550 #, no-wrap
5551 msgid ""
5552 " int\n"
5553 " guestfs_base64_in (guestfs_h *g,\n"
5554 "                    const char *base64file,\n"
5555 "                    const char *filename);\n"
5556 "\n"
5557 msgstr ""
5558
5559 # type: textblock
5560 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5561 msgid ""
5562 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5563 msgstr ""
5564
5565 # type: textblock
5566 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5567 msgid "(Added in 1.3.5)"
5568 msgstr ""
5569
5570 # type: =head2
5571 #: ../src/guestfs-actions.pod:639
5572 msgid "guestfs_base64_out"
5573 msgstr ""
5574
5575 # type: verbatim
5576 #: ../src/guestfs-actions.pod:641
5577 #, no-wrap
5578 msgid ""
5579 " int\n"
5580 " guestfs_base64_out (guestfs_h *g,\n"
5581 "                     const char *filename,\n"
5582 "                     const char *base64file);\n"
5583 "\n"
5584 msgstr ""
5585
5586 # type: textblock
5587 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5588 msgid ""
5589 "This command downloads the contents of C<filename>, writing it out to local "
5590 "file C<base64file> encoded as base64."
5591 msgstr ""
5592
5593 # type: =head2
5594 #: ../src/guestfs-actions.pod:653
5595 msgid "guestfs_blockdev_flushbufs"
5596 msgstr ""
5597
5598 # type: verbatim
5599 #: ../src/guestfs-actions.pod:655
5600 #, no-wrap
5601 msgid ""
5602 " int\n"
5603 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5604 "                             const char *device);\n"
5605 "\n"
5606 msgstr ""
5607
5608 # type: textblock
5609 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5610 msgid ""
5611 "This tells the kernel to flush internal buffers associated with C<device>."
5612 msgstr ""
5613
5614 # type: textblock
5615 #: ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:679
5616 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:710
5617 #: ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747
5618 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5619 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5620 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5621 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5622 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5623 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5624 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5625 msgid "This uses the L<blockdev(8)> command."
5626 msgstr ""
5627
5628 # type: textblock
5629 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:683
5630 #: ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:714
5631 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:751
5632 #: ../src/guestfs-actions.pod:765 ../src/guestfs-actions.pod:783
5633 #: ../src/guestfs-actions.pod:797 ../src/guestfs-actions.pod:811
5634 msgid "(Added in 0.9.3)"
5635 msgstr ""
5636
5637 # type: =head2
5638 #: ../src/guestfs-actions.pod:668
5639 msgid "guestfs_blockdev_getbsz"
5640 msgstr ""
5641
5642 # type: verbatim
5643 #: ../src/guestfs-actions.pod:670
5644 #, no-wrap
5645 msgid ""
5646 " int\n"
5647 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5648 "                          const char *device);\n"
5649 "\n"
5650 msgstr ""
5651
5652 # type: textblock
5653 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5654 msgid "This returns the block size of a device."
5655 msgstr ""
5656
5657 # type: textblock
5658 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776
5659 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5660 msgid ""
5661 "(Note this is different from both I<size in blocks> and I<filesystem block "
5662 "size>)."
5663 msgstr ""
5664
5665 # type: =head2
5666 #: ../src/guestfs-actions.pod:685
5667 msgid "guestfs_blockdev_getro"
5668 msgstr ""
5669
5670 # type: verbatim
5671 #: ../src/guestfs-actions.pod:687
5672 #, no-wrap
5673 msgid ""
5674 " int\n"
5675 " guestfs_blockdev_getro (guestfs_h *g,\n"
5676 "                         const char *device);\n"
5677 "\n"
5678 msgstr ""
5679
5680 # type: textblock
5681 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5682 msgid ""
5683 "Returns a boolean indicating if the block device is read-only (true if read-"
5684 "only, false if not)."
5685 msgstr ""
5686
5687 # type: textblock
5688 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:1398
5689 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1893
5690 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1976
5691 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2046
5692 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2094
5693 #: ../src/guestfs-actions.pod:3050 ../src/guestfs-actions.pod:3064
5694 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3093
5695 #: ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3124
5696 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3154
5697 #: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3181
5698 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3211
5699 #: ../src/guestfs-actions.pod:4719
5700 msgid "This function returns a C truth value on success or -1 on error."
5701 msgstr ""
5702
5703 # type: =head2
5704 #: ../src/guestfs-actions.pod:700
5705 msgid "guestfs_blockdev_getsize64"
5706 msgstr ""
5707
5708 # type: verbatim
5709 #: ../src/guestfs-actions.pod:702
5710 #, no-wrap
5711 msgid ""
5712 " int64_t\n"
5713 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5714 "                             const char *device);\n"
5715 "\n"
5716 msgstr ""
5717
5718 # type: textblock
5719 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5720 msgid "This returns the size of the device in bytes."
5721 msgstr ""
5722
5723 # type: textblock
5724 #: ../src/guestfs-actions.pod:708
5725 msgid "See also C<guestfs_blockdev_getsz>."
5726 msgstr ""
5727
5728 # type: =head2
5729 #: ../src/guestfs-actions.pod:716
5730 msgid "guestfs_blockdev_getss"
5731 msgstr ""
5732
5733 # type: verbatim
5734 #: ../src/guestfs-actions.pod:718
5735 #, no-wrap
5736 msgid ""
5737 " int\n"
5738 " guestfs_blockdev_getss (guestfs_h *g,\n"
5739 "                         const char *device);\n"
5740 "\n"
5741 msgstr ""
5742
5743 # type: textblock
5744 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5745 msgid ""
5746 "This returns the size of sectors on a block device.  Usually 512, but can be "
5747 "larger for modern devices."
5748 msgstr ""
5749
5750 # type: textblock
5751 #: ../src/guestfs-actions.pod:725
5752 msgid ""
5753 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5754 "that)."
5755 msgstr ""
5756
5757 # type: =head2
5758 #: ../src/guestfs-actions.pod:734
5759 msgid "guestfs_blockdev_getsz"
5760 msgstr ""
5761
5762 # type: verbatim
5763 #: ../src/guestfs-actions.pod:736
5764 #, no-wrap
5765 msgid ""
5766 " int64_t\n"
5767 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5768 "                         const char *device);\n"
5769 "\n"
5770 msgstr ""
5771
5772 # type: textblock
5773 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5774 msgid ""
5775 "This returns the size of the device in units of 512-byte sectors (even if "
5776 "the sectorsize isn't 512 bytes ... weird)."
5777 msgstr ""
5778
5779 # type: textblock
5780 #: ../src/guestfs-actions.pod:743
5781 msgid ""
5782 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5783 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5784 msgstr ""
5785
5786 # type: =head2
5787 #: ../src/guestfs-actions.pod:753
5788 msgid "guestfs_blockdev_rereadpt"
5789 msgstr ""
5790
5791 # type: verbatim
5792 #: ../src/guestfs-actions.pod:755
5793 #, no-wrap
5794 msgid ""
5795 " int\n"
5796 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5797 "                            const char *device);\n"
5798 "\n"
5799 msgstr ""
5800
5801 # type: textblock
5802 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5803 msgid "Reread the partition table on C<device>."
5804 msgstr ""
5805
5806 # type: =head2
5807 #: ../src/guestfs-actions.pod:767
5808 msgid "guestfs_blockdev_setbsz"
5809 msgstr ""
5810
5811 # type: verbatim
5812 #: ../src/guestfs-actions.pod:769
5813 #, no-wrap
5814 msgid ""
5815 " int\n"
5816 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5817 "                          const char *device,\n"
5818 "                          int blocksize);\n"
5819 "\n"
5820 msgstr ""
5821
5822 # type: textblock
5823 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5824 msgid "This sets the block size of a device."
5825 msgstr ""
5826
5827 # type: =head2
5828 #: ../src/guestfs-actions.pod:785
5829 msgid "guestfs_blockdev_setro"
5830 msgstr ""
5831
5832 # type: verbatim
5833 #: ../src/guestfs-actions.pod:787
5834 #, no-wrap
5835 msgid ""
5836 " int\n"
5837 " guestfs_blockdev_setro (guestfs_h *g,\n"
5838 "                         const char *device);\n"
5839 "\n"
5840 msgstr ""
5841
5842 # type: textblock
5843 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5844 msgid "Sets the block device named C<device> to read-only."
5845 msgstr ""
5846
5847 # type: =head2
5848 #: ../src/guestfs-actions.pod:799
5849 msgid "guestfs_blockdev_setrw"
5850 msgstr ""
5851
5852 # type: verbatim
5853 #: ../src/guestfs-actions.pod:801
5854 #, no-wrap
5855 msgid ""
5856 " int\n"
5857 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5858 "                         const char *device);\n"
5859 "\n"
5860 msgstr ""
5861
5862 # type: textblock
5863 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5864 msgid "Sets the block device named C<device> to read-write."
5865 msgstr ""
5866
5867 # type: =head2
5868 #: ../src/guestfs-actions.pod:813
5869 msgid "guestfs_case_sensitive_path"
5870 msgstr ""
5871
5872 # type: verbatim
5873 #: ../src/guestfs-actions.pod:815
5874 #, no-wrap
5875 msgid ""
5876 " char *\n"
5877 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5878 "                              const char *path);\n"
5879 "\n"
5880 msgstr ""
5881
5882 # type: textblock
5883 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5884 msgid ""
5885 "This can be used to resolve case insensitive paths on a filesystem which is "
5886 "case sensitive.  The use case is to resolve paths which you have read from "
5887 "Windows configuration files or the Windows Registry, to the true path."
5888 msgstr ""
5889
5890 # type: textblock
5891 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5892 msgid ""
5893 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5894 "(and probably others), which is that although the underlying filesystem is "
5895 "case-insensitive, the driver exports the filesystem to Linux as case-"
5896 "sensitive."
5897 msgstr ""
5898
5899 # type: textblock
5900 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5901 msgid ""
5902 "One consequence of this is that special directories such as C<c:\\windows> "
5903 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5904 "precise details of how they were created.  In Windows itself this would not "
5905 "be a problem."
5906 msgstr ""
5907
5908 # type: textblock
5909 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5910 msgid ""
5911 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5912 "#posixfilenames1>"
5913 msgstr ""
5914
5915 # type: textblock
5916 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5917 msgid ""
5918 "This function resolves the true case of each element in the path and returns "
5919 "the case-sensitive path."
5920 msgstr ""
5921
5922 # type: textblock
5923 #: ../src/guestfs-actions.pod:841
5924 msgid ""
5925 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5926 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5927 "how the directories were originally created under Windows)."
5928 msgstr ""
5929
5930 # type: textblock
5931 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5932 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5933 msgstr ""
5934
5935 # type: textblock
5936 #: ../src/guestfs-actions.pod:849
5937 msgid "See also C<guestfs_realpath>."
5938 msgstr ""
5939
5940 # type: textblock
5941 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6661
5942 msgid "(Added in 1.0.75)"
5943 msgstr ""
5944
5945 # type: =head2
5946 #: ../src/guestfs-actions.pod:856
5947 msgid "guestfs_cat"
5948 msgstr ""
5949
5950 # type: verbatim
5951 #: ../src/guestfs-actions.pod:858
5952 #, no-wrap
5953 msgid ""
5954 " char *\n"
5955 " guestfs_cat (guestfs_h *g,\n"
5956 "              const char *path);\n"
5957 "\n"
5958 msgstr ""
5959
5960 # type: textblock
5961 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5206
5962 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3464
5963 msgid "Return the contents of the file named C<path>."
5964 msgstr ""
5965
5966 # type: textblock
5967 #: ../src/guestfs-actions.pod:864
5968 msgid ""
5969 "Note that this function cannot correctly handle binary files (specifically, "
5970 "files containing C<\\0> character which is treated as end of string).  For "
5971 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5972 "functions which have a more complex interface."
5973 msgstr ""
5974
5975 # type: textblock
5976 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1051
5977 #: ../src/guestfs-actions.pod:1071 ../src/guestfs-actions.pod:1362
5978 #: ../src/guestfs-actions.pod:1381 ../src/guestfs-actions.pod:1484
5979 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1752
5980 #: ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2217
5981 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2284
5982 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2330
5983 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5014
5984 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5171
5985 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:6046
5986 #: ../src/guestfs-actions.pod:6101 ../src/guestfs-actions.pod:6247
5987 #: ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6933
5988 #: ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6985
5989 #: ../src/guestfs-actions.pod:7004 ../src/guestfs-actions.pod:7089
5990 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7154
5991 #: ../src/guestfs-actions.pod:7173 ../fish/guestfish-actions.pod:582
5992 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5993 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5994 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5995 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1482
5996 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:1520
5997 #: ../fish/guestfish-actions.pod:1535 ../fish/guestfish-actions.pod:1545
5998 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:3334
5999 #: ../fish/guestfish-actions.pod:3349 ../fish/guestfish-actions.pod:3425
6000 #: ../fish/guestfish-actions.pod:3442 ../fish/guestfish-actions.pod:3457
6001 #: ../fish/guestfish-actions.pod:4040 ../fish/guestfish-actions.pod:4086
6002 #: ../fish/guestfish-actions.pod:4171 ../fish/guestfish-actions.pod:4186
6003 #: ../fish/guestfish-actions.pod:4596 ../fish/guestfish-actions.pod:4614
6004 #: ../fish/guestfish-actions.pod:4631 ../fish/guestfish-actions.pod:4641
6005 #: ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4699
6006 #: ../fish/guestfish-actions.pod:4728 ../fish/guestfish-actions.pod:4738
6007 msgid ""
6008 "Because of the message protocol, there is a transfer limit of somewhere "
6009 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6010 msgstr ""
6011
6012 # type: textblock
6013 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:3320
6014 #: ../src/guestfs-actions.pod:3382 ../src/guestfs-actions.pod:3399
6015 #: ../src/guestfs-actions.pod:3487 ../src/guestfs-actions.pod:3892
6016 #: ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:5094
6017 #: ../src/guestfs-actions.pod:5108 ../src/guestfs-actions.pod:6820
6018 #: ../src/guestfs-actions.pod:6834
6019 msgid "(Added in 0.4)"
6020 msgstr ""
6021
6022 # type: =head2
6023 #: ../src/guestfs-actions.pod:877
6024 msgid "guestfs_checksum"
6025 msgstr ""
6026
6027 # type: verbatim
6028 #: ../src/guestfs-actions.pod:879
6029 #, no-wrap
6030 msgid ""
6031 " char *\n"
6032 " guestfs_checksum (guestfs_h *g,\n"
6033 "                   const char *csumtype,\n"
6034 "                   const char *path);\n"
6035 "\n"
6036 msgstr ""
6037
6038 # type: textblock
6039 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
6040 msgid ""
6041 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6042 msgstr ""
6043
6044 # type: textblock
6045 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
6046 msgid ""
6047 "The type of checksum to compute is given by the C<csumtype> parameter which "
6048 "must have one of the following values:"
6049 msgstr ""
6050
6051 # type: =item
6052 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
6053 msgid "C<crc>"
6054 msgstr ""
6055
6056 # type: textblock
6057 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
6058 msgid ""
6059 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6060 "C<cksum> command."
6061 msgstr ""
6062
6063 # type: =item
6064 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
6065 msgid "C<md5>"
6066 msgstr ""
6067
6068 # type: textblock
6069 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
6070 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6071 msgstr ""
6072
6073 # type: =item
6074 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
6075 msgid "C<sha1>"
6076 msgstr ""
6077
6078 # type: textblock
6079 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
6080 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6081 msgstr ""
6082
6083 # type: =item
6084 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
6085 msgid "C<sha224>"
6086 msgstr ""
6087
6088 # type: textblock
6089 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
6090 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6091 msgstr ""
6092
6093 # type: =item
6094 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
6095 msgid "C<sha256>"
6096 msgstr ""
6097
6098 # type: textblock
6099 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
6100 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6101 msgstr ""
6102
6103 # type: =item
6104 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
6105 msgid "C<sha384>"
6106 msgstr ""
6107
6108 # type: textblock
6109 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
6110 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6111 msgstr ""
6112
6113 # type: =item
6114 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
6115 msgid "C<sha512>"
6116 msgstr ""
6117
6118 # type: textblock
6119 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
6120 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6121 msgstr ""
6122
6123 # type: textblock
6124 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
6125 msgid "The checksum is returned as a printable string."
6126 msgstr ""
6127
6128 # type: textblock
6129 #: ../src/guestfs-actions.pod:925
6130 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6131 msgstr ""
6132
6133 # type: textblock
6134 #: ../src/guestfs-actions.pod:927
6135 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6136 msgstr ""
6137
6138 # type: textblock
6139 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:1240
6140 #: ../src/guestfs-actions.pod:2062 ../src/guestfs-actions.pod:3066
6141 #: ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3156
6142 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:6517
6143 msgid "(Added in 1.0.2)"
6144 msgstr ""
6145
6146 # type: =head2
6147 #: ../src/guestfs-actions.pod:934
6148 msgid "guestfs_checksum_device"
6149 msgstr ""
6150
6151 # type: verbatim
6152 #: ../src/guestfs-actions.pod:936
6153 #, no-wrap
6154 msgid ""
6155 " char *\n"
6156 " guestfs_checksum_device (guestfs_h *g,\n"
6157 "                          const char *csumtype,\n"
6158 "                          const char *device);\n"
6159 "\n"
6160 msgstr ""
6161
6162 # type: textblock
6163 #: ../src/guestfs-actions.pod:941
6164 msgid ""
6165 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6166 "device named C<device>.  For the types of checksums supported see the "
6167 "C<guestfs_checksum> command."
6168 msgstr ""
6169
6170 # type: textblock
6171 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:4625
6172 #: ../src/guestfs-actions.pod:4684 ../src/guestfs-actions.pod:4721
6173 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4915
6174 #: ../src/guestfs-actions.pod:6426 ../src/guestfs-actions.pod:6440
6175 #: ../src/guestfs-actions.pod:6846
6176 msgid "(Added in 1.3.2)"
6177 msgstr ""
6178
6179 # type: =head2
6180 #: ../src/guestfs-actions.pod:950
6181 msgid "guestfs_checksums_out"
6182 msgstr ""
6183
6184 # type: verbatim
6185 #: ../src/guestfs-actions.pod:952
6186 #, no-wrap
6187 msgid ""
6188 " int\n"
6189 " guestfs_checksums_out (guestfs_h *g,\n"
6190 "                        const char *csumtype,\n"
6191 "                        const char *directory,\n"
6192 "                        const char *sumsfile);\n"
6193 "\n"
6194 msgstr ""
6195
6196 # type: textblock
6197 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
6198 msgid ""
6199 "This command computes the checksums of all regular files in C<directory> and "
6200 "then emits a list of those checksums to the local output file C<sumsfile>."
6201 msgstr ""
6202
6203 # type: textblock
6204 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
6205 msgid ""
6206 "This can be used for verifying the integrity of a virtual machine.  However "
6207 "to be properly secure you should pay attention to the output of the checksum "
6208 "command (it uses the ones from GNU coreutils).  In particular when the "
6209 "filename is not printable, coreutils uses a special backslash syntax.  For "
6210 "more information, see the GNU coreutils info file."
6211 msgstr ""
6212
6213 # type: textblock
6214 #: ../src/guestfs-actions.pod:972
6215 msgid "(Added in 1.3.7)"
6216 msgstr ""
6217
6218 # type: =head2
6219 #: ../src/guestfs-actions.pod:974
6220 msgid "guestfs_chmod"
6221 msgstr ""
6222
6223 # type: verbatim
6224 #: ../src/guestfs-actions.pod:976
6225 #, no-wrap
6226 msgid ""
6227 " int\n"
6228 " guestfs_chmod (guestfs_h *g,\n"
6229 "                int mode,\n"
6230 "                const char *path);\n"
6231 "\n"
6232 msgstr ""
6233
6234 # type: textblock
6235 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
6236 msgid ""
6237 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6238 "supported."
6239 msgstr ""
6240
6241 # type: textblock
6242 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
6243 msgid ""
6244 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6245 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6246 "C<700>."
6247 msgstr ""
6248
6249 # type: textblock
6250 #: ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:4143
6251 #: ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4343
6252 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:671
6253 #: ../fish/guestfish-actions.pod:2793 ../fish/guestfish-actions.pod:2909
6254 #: ../fish/guestfish-actions.pod:2919 ../fish/guestfish-actions.pod:2929
6255 msgid "The mode actually set is affected by the umask."
6256 msgstr ""
6257
6258 # type: =head2
6259 #: ../src/guestfs-actions.pod:994
6260 msgid "guestfs_chown"
6261 msgstr ""
6262
6263 # type: verbatim
6264 #: ../src/guestfs-actions.pod:996
6265 #, no-wrap
6266 msgid ""
6267 " int\n"
6268 " guestfs_chown (guestfs_h *g,\n"
6269 "                int owner,\n"
6270 "                int group,\n"
6271 "                const char *path);\n"
6272 "\n"
6273 msgstr ""
6274
6275 # type: textblock
6276 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
6277 msgid "Change the file owner to C<owner> and group to C<group>."
6278 msgstr ""
6279
6280 # type: textblock
6281 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3253
6282 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2251
6283 msgid ""
6284 "Only numeric uid and gid are supported.  If you want to use names, you will "
6285 "need to locate and parse the password file yourself (Augeas support makes "
6286 "this relatively easy)."
6287 msgstr ""
6288
6289 # type: =head2
6290 #: ../src/guestfs-actions.pod:1012
6291 msgid "guestfs_command"
6292 msgstr ""
6293
6294 # type: verbatim
6295 #: ../src/guestfs-actions.pod:1014
6296 #, no-wrap
6297 msgid ""
6298 " char *\n"
6299 " guestfs_command (guestfs_h *g,\n"
6300 "                  char *const *arguments);\n"
6301 "\n"
6302 msgstr ""
6303
6304 # type: textblock
6305 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
6306 msgid ""
6307 "This call runs a command from the guest filesystem.  The filesystem must be "
6308 "mounted, and must contain a compatible operating system (ie. something "
6309 "Linux, with the same or compatible processor architecture)."
6310 msgstr ""
6311
6312 # type: textblock
6313 #: ../src/guestfs-actions.pod:1023
6314 msgid ""
6315 "The single parameter is an argv-style list of arguments.  The first element "
6316 "is the name of the program to run.  Subsequent elements are parameters.  The "
6317 "list must be non-empty (ie. must contain a program name).  Note that the "
6318 "command runs directly, and is I<not> invoked via the shell (see "
6319 "C<guestfs_sh>)."
6320 msgstr ""
6321
6322 # type: textblock
6323 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
6324 msgid "The return value is anything printed to I<stdout> by the command."
6325 msgstr ""
6326
6327 # type: textblock
6328 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
6329 msgid ""
6330 "If the command returns a non-zero exit status, then this function returns an "
6331 "error message.  The error message string is the content of I<stderr> from "
6332 "the command."
6333 msgstr ""
6334
6335 # type: textblock
6336 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
6337 msgid ""
6338 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6339 "bin>.  If you require a program from another location, you should provide "
6340 "the full path in the first parameter."
6341 msgstr ""
6342
6343 # type: textblock
6344 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
6345 msgid ""
6346 "Shared libraries and data files required by the program must be available on "
6347 "filesystems which are mounted in the correct places.  It is the caller's "
6348 "responsibility to ensure all filesystems that are needed are mounted at the "
6349 "right locations."
6350 msgstr ""
6351
6352 # type: textblock
6353 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074
6354 #: ../src/guestfs-actions.pod:1537
6355 msgid "(Added in 0.9.1)"
6356 msgstr ""
6357
6358 # type: =head2
6359 #: ../src/guestfs-actions.pod:1056
6360 msgid "guestfs_command_lines"
6361 msgstr ""
6362
6363 # type: verbatim
6364 #: ../src/guestfs-actions.pod:1058
6365 #, no-wrap
6366 msgid ""
6367 " char **\n"
6368 " guestfs_command_lines (guestfs_h *g,\n"
6369 "                        char *const *arguments);\n"
6370 "\n"
6371 msgstr ""
6372
6373 # type: textblock
6374 #: ../src/guestfs-actions.pod:1062
6375 msgid ""
6376 "This is the same as C<guestfs_command>, but splits the result into a list of "
6377 "lines."
6378 msgstr ""
6379
6380 # type: textblock
6381 #: ../src/guestfs-actions.pod:1065
6382 msgid "See also: C<guestfs_sh_lines>"
6383 msgstr ""
6384
6385 # type: =head2
6386 #: ../src/guestfs-actions.pod:1076
6387 msgid "guestfs_config"
6388 msgstr ""
6389
6390 # type: verbatim
6391 #: ../src/guestfs-actions.pod:1078
6392 #, no-wrap
6393 msgid ""
6394 " int\n"
6395 " guestfs_config (guestfs_h *g,\n"
6396 "                 const char *qemuparam,\n"
6397 "                 const char *qemuvalue);\n"
6398 "\n"
6399 msgstr ""
6400
6401 # type: textblock
6402 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6403 msgid ""
6404 "This can be used to add arbitrary qemu command line parameters of the form "
6405 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6406 "setting some parameters which would interfere with parameters that we use."
6407 msgstr ""
6408
6409 # type: textblock
6410 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6411 msgid "The first character of C<param> string must be a C<-> (dash)."
6412 msgstr ""
6413
6414 # type: textblock
6415 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6416 msgid "C<value> can be NULL."
6417 msgstr ""
6418
6419 # type: =head2
6420 #: ../src/guestfs-actions.pod:1096
6421 msgid "guestfs_copy_size"
6422 msgstr ""
6423
6424 # type: verbatim
6425 #: ../src/guestfs-actions.pod:1098
6426 #, no-wrap
6427 msgid ""
6428 " int\n"
6429 " guestfs_copy_size (guestfs_h *g,\n"
6430 "                    const char *src,\n"
6431 "                    const char *dest,\n"
6432 "                    int64_t size);\n"
6433 "\n"
6434 msgstr ""
6435
6436 # type: textblock
6437 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6438 msgid ""
6439 "This command copies exactly C<size> bytes from one source device or file "
6440 "C<src> to another destination device or file C<dest>."
6441 msgstr ""
6442
6443 # type: textblock
6444 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6445 msgid ""
6446 "Note this will fail if the source is too short or if the destination is not "
6447 "large enough."
6448 msgstr ""
6449
6450 # type: textblock
6451 #: ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1235
6452 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1686
6453 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:6512
6454 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:7025
6455 #: ../src/guestfs-actions.pod:7044
6456 msgid ""
6457 "This long-running command can generate progress notification messages so "
6458 "that the caller can display a progress bar or indicator.  To receive these "
6459 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6460 "guestfs_set_progress_callback>."
6461 msgstr ""
6462
6463 # type: textblock
6464 #: ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:3919
6465 #: ../src/guestfs-actions.pod:5121 ../src/guestfs-actions.pod:6753
6466 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6859
6467 msgid "(Added in 1.0.87)"
6468 msgstr ""
6469
6470 # type: =head2
6471 #: ../src/guestfs-actions.pod:1119
6472 msgid "guestfs_cp"
6473 msgstr ""
6474
6475 # type: verbatim
6476 #: ../src/guestfs-actions.pod:1121
6477 #, no-wrap
6478 msgid ""
6479 " int\n"
6480 " guestfs_cp (guestfs_h *g,\n"
6481 "             const char *src,\n"
6482 "             const char *dest);\n"
6483 "\n"
6484 msgstr ""
6485
6486 # type: textblock
6487 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6488 msgid ""
6489 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6490 "destination filename or destination directory."
6491 msgstr ""
6492
6493 # type: textblock
6494 #: ../src/guestfs-actions.pod:1131 ../src/guestfs-actions.pod:1145
6495 #: ../src/guestfs-actions.pod:1217 ../src/guestfs-actions.pod:1291
6496 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:4588
6497 #: ../src/guestfs-actions.pod:4965
6498 msgid "(Added in 1.0.18)"
6499 msgstr ""
6500
6501 # type: =head2
6502 #: ../src/guestfs-actions.pod:1133
6503 msgid "guestfs_cp_a"
6504 msgstr ""
6505
6506 # type: verbatim
6507 #: ../src/guestfs-actions.pod:1135
6508 #, no-wrap
6509 msgid ""
6510 " int\n"
6511 " guestfs_cp_a (guestfs_h *g,\n"
6512 "               const char *src,\n"
6513 "               const char *dest);\n"
6514 "\n"
6515 msgstr ""
6516
6517 # type: textblock
6518 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6519 msgid ""
6520 "This copies a file or directory from C<src> to C<dest> recursively using the "
6521 "C<cp -a> command."
6522 msgstr ""
6523
6524 # type: =head2
6525 #: ../src/guestfs-actions.pod:1147
6526 msgid "guestfs_dd"
6527 msgstr ""
6528
6529 # type: verbatim
6530 #: ../src/guestfs-actions.pod:1149
6531 #, no-wrap
6532 msgid ""
6533 " int\n"
6534 " guestfs_dd (guestfs_h *g,\n"
6535 "             const char *src,\n"
6536 "             const char *dest);\n"
6537 "\n"
6538 msgstr ""
6539
6540 # type: textblock
6541 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6542 msgid ""
6543 "This command copies from one source device or file C<src> to another "
6544 "destination device or file C<dest>.  Normally you would use this to copy to "
6545 "or from a device or partition, for example to duplicate a filesystem."
6546 msgstr ""
6547
6548 # type: textblock
6549 #: ../src/guestfs-actions.pod:1159
6550 msgid ""
6551 "If the destination is a device, it must be as large or larger than the "
6552 "source file or device, otherwise the copy will fail.  This command cannot do "
6553 "partial copies (see C<guestfs_copy_size>)."
6554 msgstr ""
6555
6556 # type: =head2
6557 #: ../src/guestfs-actions.pod:1167
6558 msgid "guestfs_df"
6559 msgstr ""
6560
6561 # type: verbatim
6562 #: ../src/guestfs-actions.pod:1169
6563 #, no-wrap
6564 msgid ""
6565 " char *\n"
6566 " guestfs_df (guestfs_h *g);\n"
6567 "\n"
6568 msgstr ""
6569
6570 # type: textblock
6571 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6572 msgid "This command runs the C<df> command to report disk space used."
6573 msgstr ""
6574
6575 # type: textblock
6576 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191
6577 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6578 msgid ""
6579 "This command is mostly useful for interactive sessions.  It is I<not> "
6580 "intended that you try to parse the output string.  Use C<statvfs> from "
6581 "programs."
6582 msgstr ""
6583
6584 # type: textblock
6585 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1198
6586 #: ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2263
6587 #: ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2355
6588 #: ../src/guestfs-actions.pod:4029 ../src/guestfs-actions.pod:4488
6589 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6274
6590 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6905
6591 #: ../src/guestfs-actions.pod:6918
6592 msgid "(Added in 1.0.54)"
6593 msgstr ""
6594
6595 # type: =head2
6596 #: ../src/guestfs-actions.pod:1183
6597 msgid "guestfs_df_h"
6598 msgstr ""
6599
6600 # type: verbatim
6601 #: ../src/guestfs-actions.pod:1185
6602 #, no-wrap
6603 msgid ""
6604 " char *\n"
6605 " guestfs_df_h (guestfs_h *g);\n"
6606 "\n"
6607 msgstr ""
6608
6609 # type: textblock
6610 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6611 msgid ""
6612 "This command runs the C<df -h> command to report disk space used in human-"
6613 "readable format."
6614 msgstr ""
6615
6616 # type: =head2
6617 #: ../src/guestfs-actions.pod:1200
6618 msgid "guestfs_dmesg"
6619 msgstr ""
6620
6621 # type: verbatim
6622 #: ../src/guestfs-actions.pod:1202
6623 #, no-wrap
6624 msgid ""
6625 " char *\n"
6626 " guestfs_dmesg (guestfs_h *g);\n"
6627 "\n"
6628 msgstr ""
6629
6630 # type: textblock
6631 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6632 msgid ""
6633 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6634 "This is sometimes useful for extended debugging of problems."
6635 msgstr ""
6636
6637 # type: textblock
6638 #: ../src/guestfs-actions.pod:1209
6639 msgid ""
6640 "Another way to get the same information is to enable verbose messages with "
6641 "C<guestfs_set_verbose> or by setting the environment variable "
6642 "C<LIBGUESTFS_DEBUG=1> before running the program."
6643 msgstr ""
6644
6645 # type: =head2
6646 #: ../src/guestfs-actions.pod:1219
6647 msgid "guestfs_download"
6648 msgstr ""
6649
6650 # type: verbatim
6651 #: ../src/guestfs-actions.pod:1221
6652 #, no-wrap
6653 msgid ""
6654 " int\n"
6655 " guestfs_download (guestfs_h *g,\n"
6656 "                   const char *remotefilename,\n"
6657 "                   const char *filename);\n"
6658 "\n"
6659 msgstr ""
6660
6661 # type: textblock
6662 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251
6663 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6664 msgid ""
6665 "Download file C<remotefilename> and save it as C<filename> on the local "
6666 "machine."
6667 msgstr ""
6668
6669 # type: textblock
6670 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6506
6671 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4344
6672 msgid "C<filename> can also be a named pipe."
6673 msgstr ""
6674
6675 # type: textblock
6676 #: ../src/guestfs-actions.pod:1231
6677 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6678 msgstr ""
6679
6680 # type: =head2
6681 #: ../src/guestfs-actions.pod:1242
6682 msgid "guestfs_download_offset"
6683 msgstr ""
6684
6685 # type: verbatim
6686 #: ../src/guestfs-actions.pod:1244
6687 #, no-wrap
6688 msgid ""
6689 " int\n"
6690 " guestfs_download_offset (guestfs_h *g,\n"
6691 "                          const char *remotefilename,\n"
6692 "                          const char *filename,\n"
6693 "                          int64_t offset,\n"
6694 "                          int64_t size);\n"
6695 "\n"
6696 msgstr ""
6697
6698 # type: textblock
6699 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6700 msgid ""
6701 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6702 "region must be within the file or device)."
6703 msgstr ""
6704
6705 # type: textblock
6706 #: ../src/guestfs-actions.pod:1257
6707 msgid ""
6708 "Note that there is no limit on the amount of data that can be downloaded "
6709 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6710 "full amount unless an error occurs."
6711 msgstr ""
6712
6713 # type: textblock
6714 #: ../src/guestfs-actions.pod:1262
6715 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6716 msgstr ""
6717
6718 # type: textblock
6719 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6551
6720 msgid "(Added in 1.5.17)"
6721 msgstr ""
6722
6723 # type: =head2
6724 #: ../src/guestfs-actions.pod:1273
6725 msgid "guestfs_drop_caches"
6726 msgstr ""
6727
6728 # type: verbatim
6729 #: ../src/guestfs-actions.pod:1275
6730 #, no-wrap
6731 msgid ""
6732 " int\n"
6733 " guestfs_drop_caches (guestfs_h *g,\n"
6734 "                      int whattodrop);\n"
6735 "\n"
6736 msgstr ""
6737
6738 # type: textblock
6739 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6740 msgid ""
6741 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6742 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6743 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6744 msgstr ""
6745
6746 # type: textblock
6747 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6748 msgid "Setting C<whattodrop> to 3 should drop everything."
6749 msgstr ""
6750
6751 # type: textblock
6752 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6753 msgid ""
6754 "This automatically calls L<sync(2)> before the operation, so that the "
6755 "maximum guest memory is freed."
6756 msgstr ""
6757
6758 # type: =head2
6759 #: ../src/guestfs-actions.pod:1293
6760 msgid "guestfs_du"
6761 msgstr ""
6762
6763 # type: verbatim
6764 #: ../src/guestfs-actions.pod:1295
6765 #, no-wrap
6766 msgid ""
6767 " int64_t\n"
6768 " guestfs_du (guestfs_h *g,\n"
6769 "             const char *path);\n"
6770 "\n"
6771 msgstr ""
6772
6773 # type: textblock
6774 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6775 msgid ""
6776 "This command runs the C<du -s> command to estimate file space usage for "
6777 "C<path>."
6778 msgstr ""
6779
6780 # type: textblock
6781 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6782 msgid ""
6783 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6784 "estimate includes the contents of the directory and all subdirectories "
6785 "(recursively)."
6786 msgstr ""
6787
6788 # type: textblock
6789 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6790 msgid ""
6791 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6792 msgstr ""
6793
6794 # type: =head2
6795 #: ../src/guestfs-actions.pod:1313
6796 msgid "guestfs_e2fsck_f"
6797 msgstr ""
6798
6799 # type: verbatim
6800 #: ../src/guestfs-actions.pod:1315
6801 #, no-wrap
6802 msgid ""
6803 " int\n"
6804 " guestfs_e2fsck_f (guestfs_h *g,\n"
6805 "                   const char *device);\n"
6806 "\n"
6807 msgstr ""
6808
6809 # type: textblock
6810 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6811 msgid ""
6812 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6813 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6814 "clean (C<-f>)."
6815 msgstr ""
6816
6817 # type: textblock
6818 #: ../src/guestfs-actions.pod:1323
6819 msgid ""
6820 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6821 "Normally you should use C<guestfs_fsck>."
6822 msgstr ""
6823
6824 # type: textblock
6825 #: ../src/guestfs-actions.pod:1328
6826 msgid "(Added in 1.0.29)"
6827 msgstr ""
6828
6829 # type: =head2
6830 #: ../src/guestfs-actions.pod:1330
6831 msgid "guestfs_echo_daemon"
6832 msgstr ""
6833
6834 # type: verbatim
6835 #: ../src/guestfs-actions.pod:1332
6836 #, no-wrap
6837 msgid ""
6838 " char *\n"
6839 " guestfs_echo_daemon (guestfs_h *g,\n"
6840 "                      char *const *words);\n"
6841 "\n"
6842 msgstr ""
6843
6844 # type: textblock
6845 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6846 msgid ""
6847 "This command concatenates the list of C<words> passed with single spaces "
6848 "between them and returns the resulting string."
6849 msgstr ""
6850
6851 # type: textblock
6852 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6853 msgid "You can use this command to test the connection through to the daemon."
6854 msgstr ""
6855
6856 # type: textblock
6857 #: ../src/guestfs-actions.pod:1341
6858 msgid "See also C<guestfs_ping_daemon>."
6859 msgstr ""
6860
6861 # type: textblock
6862 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073
6863 #: ../src/guestfs-actions.pod:5754
6864 msgid "(Added in 1.0.69)"
6865 msgstr ""
6866
6867 # type: =head2
6868 #: ../src/guestfs-actions.pod:1348
6869 msgid "guestfs_egrep"
6870 msgstr ""
6871
6872 # type: verbatim
6873 #: ../src/guestfs-actions.pod:1350
6874 #, no-wrap
6875 msgid ""
6876 " char **\n"
6877 " guestfs_egrep (guestfs_h *g,\n"
6878 "                const char *regex,\n"
6879 "                const char *path);\n"
6880 "\n"
6881 msgstr ""
6882
6883 # type: textblock
6884 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6885 msgid ""
6886 "This calls the external C<egrep> program and returns the matching lines."
6887 msgstr ""
6888
6889 # type: textblock
6890 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1384
6891 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1487
6892 #: ../src/guestfs-actions.pod:1506 ../src/guestfs-actions.pod:2201
6893 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2376
6894 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2404
6895 #: ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2472
6896 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:3412
6897 #: ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3439
6898 #: ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:4423
6899 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5348
6900 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6130
6901 #: ../src/guestfs-actions.pod:6143 ../src/guestfs-actions.pod:6156
6902 #: ../src/guestfs-actions.pod:6178 ../src/guestfs-actions.pod:6191
6903 #: ../src/guestfs-actions.pod:6204 ../src/guestfs-actions.pod:6217
6904 #: ../src/guestfs-actions.pod:6988 ../src/guestfs-actions.pod:7007
6905 #: ../src/guestfs-actions.pod:7092 ../src/guestfs-actions.pod:7111
6906 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7176
6907 msgid "(Added in 1.0.66)"
6908 msgstr ""
6909
6910 # type: =head2
6911 #: ../src/guestfs-actions.pod:1367
6912 msgid "guestfs_egrepi"
6913 msgstr ""
6914
6915 # type: verbatim
6916 #: ../src/guestfs-actions.pod:1369
6917 #, no-wrap
6918 msgid ""
6919 " char **\n"
6920 " guestfs_egrepi (guestfs_h *g,\n"
6921 "                 const char *regex,\n"
6922 "                 const char *path);\n"
6923 "\n"
6924 msgstr ""
6925
6926 # type: textblock
6927 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6928 msgid ""
6929 "This calls the external C<egrep -i> program and returns the matching lines."
6930 msgstr ""
6931
6932 # type: =head2
6933 #: ../src/guestfs-actions.pod:1386
6934 msgid "guestfs_equal"
6935 msgstr ""
6936
6937 # type: verbatim
6938 #: ../src/guestfs-actions.pod:1388
6939 #, no-wrap
6940 msgid ""
6941 " int\n"
6942 " guestfs_equal (guestfs_h *g,\n"
6943 "                const char *file1,\n"
6944 "                const char *file2);\n"
6945 "\n"
6946 msgstr ""
6947
6948 # type: textblock
6949 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6950 msgid ""
6951 "This compares the two files C<file1> and C<file2> and returns true if their "
6952 "content is exactly equal, or false otherwise."
6953 msgstr ""
6954
6955 # type: textblock
6956 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6957 msgid "The external L<cmp(1)> program is used for the comparison."
6958 msgstr ""
6959
6960 # type: =head2
6961 #: ../src/guestfs-actions.pod:1402
6962 msgid "guestfs_exists"
6963 msgstr ""
6964
6965 # type: verbatim
6966 #: ../src/guestfs-actions.pod:1404
6967 #, no-wrap
6968 msgid ""
6969 " int\n"
6970 " guestfs_exists (guestfs_h *g,\n"
6971 "                 const char *path);\n"
6972 "\n"
6973 msgstr ""
6974
6975 # type: textblock
6976 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6977 msgid ""
6978 "This returns C<true> if and only if there is a file, directory (or anything) "
6979 "with the given C<path> name."
6980 msgstr ""
6981
6982 # type: textblock
6983 #: ../src/guestfs-actions.pod:1411
6984 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6985 msgstr ""
6986
6987 # type: =head2
6988 #: ../src/guestfs-actions.pod:1417
6989 msgid "guestfs_fallocate"
6990 msgstr ""
6991
6992 # type: verbatim
6993 #: ../src/guestfs-actions.pod:1419
6994 #, no-wrap
6995 msgid ""
6996 " int\n"
6997 " guestfs_fallocate (guestfs_h *g,\n"
6998 "                    const char *path,\n"
6999 "                    int len);\n"
7000 "\n"
7001 msgstr ""
7002
7003 # type: textblock
7004 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450
7005 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
7006 msgid ""
7007 "This command preallocates a file (containing zero bytes) named C<path> of "
7008 "size C<len> bytes.  If the file exists already, it is overwritten."
7009 msgstr ""
7010
7011 # type: textblock
7012 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
7013 msgid ""
7014 "Do not confuse this with the guestfish-specific C<alloc> command which "
7015 "allocates a file in the host and attaches it as a device."
7016 msgstr ""
7017
7018 # type: textblock
7019 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
7020 msgid ""
7021 "This function is deprecated.  In new code, use the C<fallocate64> call "
7022 "instead."
7023 msgstr ""
7024
7025 # type: =head2
7026 #: ../src/guestfs-actions.pod:1443
7027 msgid "guestfs_fallocate64"
7028 msgstr ""
7029
7030 # type: verbatim
7031 #: ../src/guestfs-actions.pod:1445
7032 #, no-wrap
7033 msgid ""
7034 " int\n"
7035 " guestfs_fallocate64 (guestfs_h *g,\n"
7036 "                      const char *path,\n"
7037 "                      int64_t len);\n"
7038 "\n"
7039 msgstr ""
7040
7041 # type: textblock
7042 #: ../src/guestfs-actions.pod:1454
7043 msgid ""
7044 "Note that this call allocates disk blocks for the file.  To create a sparse "
7045 "file use C<guestfs_truncate_size> instead."
7046 msgstr ""
7047
7048 # type: textblock
7049 #: ../src/guestfs-actions.pod:1457
7050 msgid ""
7051 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
7052 "oversight it only allowed 30 bit lengths to be specified, effectively "
7053 "limiting the maximum size of files created through that call to 1GB."
7054 msgstr ""
7055
7056 # type: textblock
7057 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
7058 msgid ""
7059 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7060 "commands which create a file in the host and attach it as a device."
7061 msgstr ""
7062
7063 # type: textblock
7064 #: ../src/guestfs-actions.pod:1468
7065 msgid "(Added in 1.3.17)"
7066 msgstr ""
7067
7068 # type: =head2
7069 #: ../src/guestfs-actions.pod:1470
7070 msgid "guestfs_fgrep"
7071 msgstr ""
7072
7073 # type: verbatim
7074 #: ../src/guestfs-actions.pod:1472
7075 #, no-wrap
7076 msgid ""
7077 " char **\n"
7078 " guestfs_fgrep (guestfs_h *g,\n"
7079 "                const char *pattern,\n"
7080 "                const char *path);\n"
7081 "\n"
7082 msgstr ""
7083
7084 # type: textblock
7085 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
7086 msgid ""
7087 "This calls the external C<fgrep> program and returns the matching lines."
7088 msgstr ""
7089
7090 # type: =head2
7091 #: ../src/guestfs-actions.pod:1489
7092 msgid "guestfs_fgrepi"
7093 msgstr ""
7094
7095 # type: verbatim
7096 #: ../src/guestfs-actions.pod:1491
7097 #, no-wrap
7098 msgid ""
7099 " char **\n"
7100 " guestfs_fgrepi (guestfs_h *g,\n"
7101 "                 const char *pattern,\n"
7102 "                 const char *path);\n"
7103 "\n"
7104 msgstr ""
7105
7106 # type: textblock
7107 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
7108 msgid ""
7109 "This calls the external C<fgrep -i> program and returns the matching lines."
7110 msgstr ""
7111
7112 # type: =head2
7113 #: ../src/guestfs-actions.pod:1508
7114 msgid "guestfs_file"
7115 msgstr ""
7116
7117 # type: verbatim
7118 #: ../src/guestfs-actions.pod:1510
7119 #, no-wrap
7120 msgid ""
7121 " char *\n"
7122 " guestfs_file (guestfs_h *g,\n"
7123 "               const char *path);\n"
7124 "\n"
7125 msgstr ""
7126
7127 # type: textblock
7128 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
7129 msgid ""
7130 "This call uses the standard L<file(1)> command to determine the type or "
7131 "contents of the file."
7132 msgstr ""
7133
7134 # type: textblock
7135 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
7136 msgid ""
7137 "This call will also transparently look inside various types of compressed "
7138 "file."
7139 msgstr ""
7140
7141 # type: textblock
7142 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
7143 msgid ""
7144 "The exact command which runs is C<file -zb path>.  Note in particular that "
7145 "the filename is not prepended to the output (the C<-b> option)."
7146 msgstr ""
7147
7148 # type: textblock
7149 #: ../src/guestfs-actions.pod:1524
7150 msgid ""
7151 "This command can also be used on C</dev/> devices (and partitions, LV "
7152 "names).  You can for example use this to determine if a device contains a "
7153 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7154 msgstr ""
7155
7156 # type: textblock
7157 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
7158 msgid ""
7159 "If the C<path> does not begin with C</dev/> then this command only works for "
7160 "the content of regular files.  For other file types (directory, symbolic "
7161 "link etc) it will just return the string C<directory> etc."
7162 msgstr ""
7163
7164 # type: =head2
7165 #: ../src/guestfs-actions.pod:1539
7166 msgid "guestfs_file_architecture"
7167 msgstr ""
7168
7169 # type: verbatim
7170 #: ../src/guestfs-actions.pod:1541
7171 #, no-wrap
7172 msgid ""
7173 " char *\n"
7174 " guestfs_file_architecture (guestfs_h *g,\n"
7175 "                            const char *filename);\n"
7176 "\n"
7177 msgstr ""
7178
7179 # type: textblock
7180 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
7181 msgid ""
7182 "This detects the architecture of the binary C<filename>, and returns it if "
7183 "known."
7184 msgstr ""
7185
7186 # type: textblock
7187 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
7188 msgid "Currently defined architectures are:"
7189 msgstr ""
7190
7191 # type: =item
7192 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
7193 msgid "\"i386\""
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
7198 msgid ""
7199 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7200 "irrespective of the precise processor requirements of the binary."
7201 msgstr ""
7202
7203 # type: =item
7204 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
7205 msgid "\"x86_64\""
7206 msgstr ""
7207
7208 # type: textblock
7209 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
7210 msgid "64 bit x86-64."
7211 msgstr ""
7212
7213 # type: =item
7214 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
7215 msgid "\"sparc\""
7216 msgstr ""
7217
7218 # type: textblock
7219 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
7220 msgid "32 bit SPARC."
7221 msgstr ""
7222
7223 # type: =item
7224 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
7225 msgid "\"sparc64\""
7226 msgstr ""
7227
7228 # type: textblock
7229 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
7230 msgid "64 bit SPARC V9 and above."
7231 msgstr ""
7232
7233 # type: =item
7234 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
7235 msgid "\"ia64\""
7236 msgstr ""
7237
7238 # type: textblock
7239 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
7240 msgid "Intel Itanium."
7241 msgstr ""
7242
7243 # type: =item
7244 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
7245 msgid "\"ppc\""
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
7250 msgid "32 bit Power PC."
7251 msgstr ""
7252
7253 # type: =item
7254 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
7255 msgid "\"ppc64\""
7256 msgstr ""
7257
7258 # type: textblock
7259 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
7260 msgid "64 bit Power PC."
7261 msgstr ""
7262
7263 # type: textblock
7264 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
7265 msgid "Libguestfs may return other architecture strings in future."
7266 msgstr ""
7267
7268 # type: textblock
7269 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
7270 msgid "The function works on at least the following types of files:"
7271 msgstr ""
7272
7273 # type: textblock
7274 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
7275 msgid "many types of Un*x and Linux binary"
7276 msgstr ""
7277
7278 # type: textblock
7279 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
7280 msgid "many types of Un*x and Linux shared library"
7281 msgstr ""
7282
7283 # type: textblock
7284 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
7285 msgid "Windows Win32 and Win64 binaries"
7286 msgstr ""
7287
7288 # type: textblock
7289 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
7290 msgid "Windows Win32 and Win64 DLLs"
7291 msgstr ""
7292
7293 # type: textblock
7294 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
7295 msgid "Win32 binaries and DLLs return C<i386>."
7296 msgstr ""
7297
7298 # type: textblock
7299 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
7300 msgid "Win64 binaries and DLLs return C<x86_64>."
7301 msgstr ""
7302
7303 # type: textblock
7304 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
7305 msgid "Linux kernel modules"
7306 msgstr ""
7307
7308 # type: textblock
7309 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
7310 msgid "Linux new-style initrd images"
7311 msgstr ""
7312
7313 # type: textblock
7314 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
7315 msgid "some non-x86 Linux vmlinuz kernels"
7316 msgstr ""
7317
7318 # type: textblock
7319 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
7320 msgid "What it can't do currently:"
7321 msgstr ""
7322
7323 # type: textblock
7324 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
7325 msgid "static libraries (libfoo.a)"
7326 msgstr ""
7327
7328 # type: textblock
7329 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
7330 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7331 msgstr ""
7332
7333 # type: textblock
7334 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
7335 msgid "x86 Linux vmlinuz kernels"
7336 msgstr ""
7337
7338 # type: textblock
7339 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
7340 msgid ""
7341 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7342 "compressed code, and are horribly hard to unpack.  If you want to find the "
7343 "architecture of a kernel, use the architecture of the associated initrd or "
7344 "kernel module(s) instead."
7345 msgstr ""
7346
7347 # type: textblock
7348 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1812
7349 #: ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:2508
7350 #: ../src/guestfs-actions.pod:2589 ../src/guestfs-actions.pod:2615
7351 #: ../src/guestfs-actions.pod:2664 ../src/guestfs-actions.pod:2685
7352 #: ../src/guestfs-actions.pod:2718 ../src/guestfs-actions.pod:2802
7353 #: ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:3037
7354 #: ../src/guestfs-actions.pod:3169
7355 msgid "(Added in 1.5.3)"
7356 msgstr ""
7357
7358 # type: =head2
7359 #: ../src/guestfs-actions.pod:1651
7360 msgid "guestfs_filesize"
7361 msgstr ""
7362
7363 # type: verbatim
7364 #: ../src/guestfs-actions.pod:1653
7365 #, no-wrap
7366 msgid ""
7367 " int64_t\n"
7368 " guestfs_filesize (guestfs_h *g,\n"
7369 "                   const char *file);\n"
7370 "\n"
7371 msgstr ""
7372
7373 # type: textblock
7374 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
7375 msgid "This command returns the size of C<file> in bytes."
7376 msgstr ""
7377
7378 # type: textblock
7379 #: ../src/guestfs-actions.pod:1659
7380 msgid ""
7381 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7382 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7383 "devices, use C<guestfs_blockdev_getsize64>."
7384 msgstr ""
7385
7386 # type: textblock
7387 #: ../src/guestfs-actions.pod:1665
7388 msgid "(Added in 1.0.82)"
7389 msgstr ""
7390
7391 # type: =head2
7392 #: ../src/guestfs-actions.pod:1667
7393 msgid "guestfs_fill"
7394 msgstr ""
7395
7396 # type: verbatim
7397 #: ../src/guestfs-actions.pod:1669
7398 #, no-wrap
7399 msgid ""
7400 " int\n"
7401 " guestfs_fill (guestfs_h *g,\n"
7402 "               int c,\n"
7403 "               int len,\n"
7404 "               const char *path);\n"
7405 "\n"
7406 msgstr ""
7407
7408 # type: textblock
7409 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
7410 msgid ""
7411 "This command creates a new file called C<path>.  The initial content of the "
7412 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7413 "[0..255]>."
7414 msgstr ""
7415
7416 # type: textblock
7417 #: ../src/guestfs-actions.pod:1679
7418 msgid ""
7419 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7420 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7421 "bytes use C<guestfs_fill_pattern>."
7422 msgstr ""
7423
7424 # type: textblock
7425 #: ../src/guestfs-actions.pod:1691
7426 msgid "(Added in 1.0.79)"
7427 msgstr ""
7428
7429 # type: =head2
7430 #: ../src/guestfs-actions.pod:1693
7431 msgid "guestfs_fill_pattern"
7432 msgstr ""
7433
7434 # type: verbatim
7435 #: ../src/guestfs-actions.pod:1695
7436 #, no-wrap
7437 msgid ""
7438 " int\n"
7439 " guestfs_fill_pattern (guestfs_h *g,\n"
7440 "                       const char *pattern,\n"
7441 "                       int len,\n"
7442 "                       const char *path);\n"
7443 "\n"
7444 msgstr ""
7445
7446 # type: textblock
7447 #: ../src/guestfs-actions.pod:1701
7448 msgid ""
7449 "This function is like C<guestfs_fill> except that it creates a new file of "
7450 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7451 "pattern is truncated if necessary to ensure the length of the file is "
7452 "exactly C<len> bytes."
7453 msgstr ""
7454
7455 # type: textblock
7456 #: ../src/guestfs-actions.pod:1713
7457 msgid "(Added in 1.3.12)"
7458 msgstr ""
7459
7460 # type: =head2
7461 #: ../src/guestfs-actions.pod:1715
7462 msgid "guestfs_find"
7463 msgstr ""
7464
7465 # type: verbatim
7466 #: ../src/guestfs-actions.pod:1717
7467 #, no-wrap
7468 msgid ""
7469 " char **\n"
7470 " guestfs_find (guestfs_h *g,\n"
7471 "               const char *directory);\n"
7472 "\n"
7473 msgstr ""
7474
7475 # type: textblock
7476 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7477 msgid ""
7478 "This command lists out all files and directories, recursively, starting at "
7479 "C<directory>.  It is essentially equivalent to running the shell command "
7480 "C<find directory -print> but some post-processing happens on the output, "
7481 "described below."
7482 msgstr ""
7483
7484 # type: textblock
7485 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7486 msgid ""
7487 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7488 "structure was:"
7489 msgstr ""
7490
7491 # type: verbatim
7492 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7493 #, no-wrap
7494 msgid ""
7495 " /tmp/a\n"
7496 " /tmp/b\n"
7497 " /tmp/c/d\n"
7498 "\n"
7499 msgstr ""
7500
7501 # type: textblock
7502 #: ../src/guestfs-actions.pod:1733
7503 msgid ""
7504 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7505 msgstr ""
7506
7507 # type: verbatim
7508 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7509 #, no-wrap
7510 msgid ""
7511 " a\n"
7512 " b\n"
7513 " c\n"
7514 " c/d\n"
7515 "\n"
7516 msgstr ""
7517
7518 # type: textblock
7519 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7520 msgid "If C<directory> is not a directory, then this command returns an error."
7521 msgstr ""
7522
7523 # type: textblock
7524 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7525 msgid "The returned list is sorted."
7526 msgstr ""
7527
7528 # type: textblock
7529 #: ../src/guestfs-actions.pod:1746
7530 msgid "See also C<guestfs_find0>."
7531 msgstr ""
7532
7533 # type: textblock
7534 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3856
7535 #: ../src/guestfs-actions.pod:5383
7536 msgid "(Added in 1.0.27)"
7537 msgstr ""
7538
7539 # type: =head2
7540 #: ../src/guestfs-actions.pod:1757
7541 msgid "guestfs_find0"
7542 msgstr ""
7543
7544 # type: verbatim
7545 #: ../src/guestfs-actions.pod:1759
7546 #, no-wrap
7547 msgid ""
7548 " int\n"
7549 " guestfs_find0 (guestfs_h *g,\n"
7550 "                const char *directory,\n"
7551 "                const char *files);\n"
7552 "\n"
7553 msgstr ""
7554
7555 # type: textblock
7556 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7557 msgid ""
7558 "This command lists out all files and directories, recursively, starting at "
7559 "C<directory>, placing the resulting list in the external file called "
7560 "C<files>."
7561 msgstr ""
7562
7563 # type: textblock
7564 #: ../src/guestfs-actions.pod:1768
7565 msgid ""
7566 "This command works the same way as C<guestfs_find> with the following "
7567 "exceptions:"
7568 msgstr ""
7569
7570 # type: textblock
7571 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7572 msgid "The resulting list is written to an external file."
7573 msgstr ""
7574
7575 # type: textblock
7576 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7577 msgid ""
7578 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7579 "L<find(1)> option I<-print0>."
7580 msgstr ""
7581
7582 # type: textblock
7583 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7584 msgid "This command is not limited in the number of names that it can return."
7585 msgstr ""
7586
7587 # type: textblock
7588 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7589 msgid "The result list is not sorted."
7590 msgstr ""
7591
7592 # type: textblock
7593 #: ../src/guestfs-actions.pod:1795
7594 msgid "(Added in 1.0.74)"
7595 msgstr ""
7596
7597 # type: =head2
7598 #: ../src/guestfs-actions.pod:1797
7599 msgid "guestfs_findfs_label"
7600 msgstr ""
7601
7602 # type: verbatim
7603 #: ../src/guestfs-actions.pod:1799
7604 #, no-wrap
7605 msgid ""
7606 " char *\n"
7607 " guestfs_findfs_label (guestfs_h *g,\n"
7608 "                       const char *label);\n"
7609 "\n"
7610 msgstr ""
7611
7612 # type: textblock
7613 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7614 msgid ""
7615 "This command searches the filesystems and returns the one which has the "
7616 "given label.  An error is returned if no such filesystem can be found."
7617 msgstr ""
7618
7619 # type: textblock
7620 #: ../src/guestfs-actions.pod:1807
7621 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7622 msgstr ""
7623
7624 # type: =head2
7625 #: ../src/guestfs-actions.pod:1814
7626 msgid "guestfs_findfs_uuid"
7627 msgstr ""
7628
7629 # type: verbatim
7630 #: ../src/guestfs-actions.pod:1816
7631 #, no-wrap
7632 msgid ""
7633 " char *\n"
7634 " guestfs_findfs_uuid (guestfs_h *g,\n"
7635 "                      const char *uuid);\n"
7636 "\n"
7637 msgstr ""
7638
7639 # type: textblock
7640 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7641 msgid ""
7642 "This command searches the filesystems and returns the one which has the "
7643 "given UUID.  An error is returned if no such filesystem can be found."
7644 msgstr ""
7645
7646 # type: textblock
7647 #: ../src/guestfs-actions.pod:1824
7648 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7649 msgstr ""
7650
7651 # type: =head2
7652 #: ../src/guestfs-actions.pod:1831
7653 msgid "guestfs_fsck"
7654 msgstr ""
7655
7656 # type: verbatim
7657 #: ../src/guestfs-actions.pod:1833
7658 #, no-wrap
7659 msgid ""
7660 " int\n"
7661 " guestfs_fsck (guestfs_h *g,\n"
7662 "               const char *fstype,\n"
7663 "               const char *device);\n"
7664 "\n"
7665 msgstr ""
7666
7667 # type: textblock
7668 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7669 msgid ""
7670 "This runs the filesystem checker (fsck) on C<device> which should have "
7671 "filesystem type C<fstype>."
7672 msgstr ""
7673
7674 # type: textblock
7675 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7676 msgid ""
7677 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7678 "codes from C<fsck>."
7679 msgstr ""
7680
7681 # type: textblock
7682 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7683 msgid "Multiple status codes can be summed together."
7684 msgstr ""
7685
7686 # type: textblock
7687 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7688 msgid ""
7689 "A non-zero return code can mean \"success\", for example if errors have been "
7690 "corrected on the filesystem."
7691 msgstr ""
7692
7693 # type: textblock
7694 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7695 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7696 msgstr ""
7697
7698 # type: textblock
7699 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7700 msgid ""
7701 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7702 msgstr ""
7703
7704 # type: textblock
7705 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:7030
7706 msgid "(Added in 1.0.16)"
7707 msgstr ""
7708
7709 # type: =head2
7710 #: ../src/guestfs-actions.pod:1870
7711 msgid "guestfs_get_append"
7712 msgstr ""
7713
7714 # type: verbatim
7715 #: ../src/guestfs-actions.pod:1872
7716 #, no-wrap
7717 msgid ""
7718 " const char *\n"
7719 " guestfs_get_append (guestfs_h *g);\n"
7720 "\n"
7721 msgstr ""
7722
7723 # type: textblock
7724 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7725 msgid ""
7726 "Return the additional kernel options which are added to the guest kernel "
7727 "command line."
7728 msgstr ""
7729
7730 # type: textblock
7731 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7732 msgid "If C<NULL> then no options are added."
7733 msgstr ""
7734
7735 # type: textblock
7736 #: ../src/guestfs-actions.pod:1880
7737 msgid ""
7738 "This function returns a string which may be NULL.  There is no way to return "
7739 "an error from this function.  The string is owned by the guest handle and "
7740 "must I<not> be freed."
7741 msgstr ""
7742
7743 # type: textblock
7744 #: ../src/guestfs-actions.pod:1884 ../src/guestfs-actions.pod:5061
7745 #: ../src/guestfs-actions.pod:5524 ../src/guestfs-actions.pod:5892
7746 #: ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:5927
7747 #: ../src/guestfs-actions.pod:5944 ../src/guestfs-actions.pod:6701
7748 #: ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:7073
7749 msgid "(Added in 1.0.26)"
7750 msgstr ""
7751
7752 # type: =head2
7753 #: ../src/guestfs-actions.pod:1886
7754 msgid "guestfs_get_autosync"
7755 msgstr ""
7756
7757 # type: verbatim
7758 #: ../src/guestfs-actions.pod:1888
7759 #, no-wrap
7760 msgid ""
7761 " int\n"
7762 " guestfs_get_autosync (guestfs_h *g);\n"
7763 "\n"
7764 msgstr ""
7765
7766 # type: textblock
7767 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7768 msgid "Get the autosync flag."
7769 msgstr ""
7770
7771 # type: =head2
7772 #: ../src/guestfs-actions.pod:1897
7773 msgid "guestfs_get_direct"
7774 msgstr ""
7775
7776 # type: verbatim
7777 #: ../src/guestfs-actions.pod:1899
7778 #, no-wrap
7779 msgid ""
7780 " int\n"
7781 " guestfs_get_direct (guestfs_h *g);\n"
7782 "\n"
7783 msgstr ""
7784
7785 # type: textblock
7786 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7787 msgid "Return the direct appliance mode flag."
7788 msgstr ""
7789
7790 # type: textblock
7791 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5565
7792 msgid "(Added in 1.0.72)"
7793 msgstr ""
7794
7795 # type: =head2
7796 #: ../src/guestfs-actions.pod:1908
7797 msgid "guestfs_get_e2label"
7798 msgstr ""
7799
7800 # type: verbatim
7801 #: ../src/guestfs-actions.pod:1910
7802 #, no-wrap
7803 msgid ""
7804 " char *\n"
7805 " guestfs_get_e2label (guestfs_h *g,\n"
7806 "                      const char *device);\n"
7807 "\n"
7808 msgstr ""
7809
7810 # type: textblock
7811 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7812 msgid ""
7813 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7814 msgstr ""
7815
7816 # type: textblock
7817 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7818 msgid ""
7819 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7820 msgstr ""
7821
7822 # type: textblock
7823 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948
7824 #: ../src/guestfs-actions.pod:5583 ../src/guestfs-actions.pod:5602
7825 msgid "(Added in 1.0.15)"
7826 msgstr ""
7827
7828 # type: =head2
7829 #: ../src/guestfs-actions.pod:1929
7830 msgid "guestfs_get_e2uuid"
7831 msgstr ""
7832
7833 # type: verbatim
7834 #: ../src/guestfs-actions.pod:1931
7835 #, no-wrap
7836 msgid ""
7837 " char *\n"
7838 " guestfs_get_e2uuid (guestfs_h *g,\n"
7839 "                     const char *device);\n"
7840 "\n"
7841 msgstr ""
7842
7843 # type: textblock
7844 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7845 msgid ""
7846 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7847 msgstr ""
7848
7849 # type: textblock
7850 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7851 msgid ""
7852 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7853 msgstr ""
7854
7855 # type: =head2
7856 #: ../src/guestfs-actions.pod:1950
7857 msgid "guestfs_get_memsize"
7858 msgstr ""
7859
7860 # type: verbatim
7861 #: ../src/guestfs-actions.pod:1952
7862 #, no-wrap
7863 msgid ""
7864 " int\n"
7865 " guestfs_get_memsize (guestfs_h *g);\n"
7866 "\n"
7867 msgstr ""
7868
7869 # type: textblock
7870 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7871 msgid ""
7872 "This gets the memory size in megabytes allocated to the qemu subprocess."
7873 msgstr ""
7874
7875 # type: textblock
7876 #: ../src/guestfs-actions.pod:1958
7877 msgid ""
7878 "If C<guestfs_set_memsize> was not called on this handle, and if "
7879 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7880 "value for memsize."
7881 msgstr ""
7882
7883 # type: textblock
7884 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2043
7885 #: ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:5725
7886 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7887 #: ../fish/guestfish-actions.pod:3751 ../fish/guestfish-actions.pod:3838
7888 msgid ""
7889 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7890 msgstr ""
7891
7892 # type: textblock
7893 #: ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:4147
7894 #: ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4347
7895 #: ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:4378
7896 #: ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4408
7897 #: ../src/guestfs-actions.pod:5286 ../src/guestfs-actions.pod:5623
7898 #: ../src/guestfs-actions.pod:5866 ../src/guestfs-actions.pod:6467
7899 msgid "(Added in 1.0.55)"
7900 msgstr ""
7901
7902 # type: =head2
7903 #: ../src/guestfs-actions.pod:1969
7904 msgid "guestfs_get_network"
7905 msgstr ""
7906
7907 # type: verbatim
7908 #: ../src/guestfs-actions.pod:1971
7909 #, no-wrap
7910 msgid ""
7911 " int\n"
7912 " guestfs_get_network (guestfs_h *g);\n"
7913 "\n"
7914 msgstr ""
7915
7916 # type: textblock
7917 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7918 msgid "This returns the enable network flag."
7919 msgstr ""
7920
7921 # type: textblock
7922 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5642
7923 msgid "(Added in 1.5.4)"
7924 msgstr ""
7925
7926 # type: =head2
7927 #: ../src/guestfs-actions.pod:1980
7928 msgid "guestfs_get_path"
7929 msgstr ""
7930
7931 # type: verbatim
7932 #: ../src/guestfs-actions.pod:1982
7933 #, no-wrap
7934 msgid ""
7935 " const char *\n"
7936 " guestfs_get_path (guestfs_h *g);\n"
7937 "\n"
7938 msgstr ""
7939
7940 # type: textblock
7941 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7942 msgid "Return the current search path."
7943 msgstr ""
7944
7945 # type: textblock
7946 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7947 msgid ""
7948 "This is always non-NULL.  If it wasn't set already, then this will return "
7949 "the default path."
7950 msgstr ""
7951
7952 # type: textblock
7953 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7954 msgid ""
7955 "This function returns a string, or NULL on error.  The string is owned by "
7956 "the guest handle and must I<not> be freed."
7957 msgstr ""
7958
7959 # type: =head2
7960 #: ../src/guestfs-actions.pod:1995
7961 msgid "guestfs_get_pid"
7962 msgstr ""
7963
7964 # type: verbatim
7965 #: ../src/guestfs-actions.pod:1997
7966 #, no-wrap
7967 msgid ""
7968 " int\n"
7969 " guestfs_get_pid (guestfs_h *g);\n"
7970 "\n"
7971 msgstr ""
7972
7973 # type: textblock
7974 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7975 msgid ""
7976 "Return the process ID of the qemu subprocess.  If there is no qemu "
7977 "subprocess, then this will return an error."
7978 msgstr ""
7979
7980 # type: textblock
7981 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7982 msgid "This is an internal call used for debugging and testing."
7983 msgstr ""
7984
7985 # type: textblock
7986 #: ../src/guestfs-actions.pod:2007
7987 msgid "(Added in 1.0.56)"
7988 msgstr ""
7989
7990 # type: =head2
7991 #: ../src/guestfs-actions.pod:2009
7992 msgid "guestfs_get_qemu"
7993 msgstr ""
7994
7995 # type: verbatim
7996 #: ../src/guestfs-actions.pod:2011
7997 #, no-wrap
7998 msgid ""
7999 " const char *\n"
8000 " guestfs_get_qemu (guestfs_h *g);\n"
8001 "\n"
8002 msgstr ""
8003
8004 # type: textblock
8005 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
8006 msgid "Return the current qemu binary."
8007 msgstr ""
8008
8009 # type: textblock
8010 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
8011 msgid ""
8012 "This is always non-NULL.  If it wasn't set already, then this will return "
8013 "the default qemu binary name."
8014 msgstr ""
8015
8016 # type: textblock
8017 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5687
8018 msgid "(Added in 1.0.6)"
8019 msgstr ""
8020
8021 # type: =head2
8022 #: ../src/guestfs-actions.pod:2024
8023 msgid "guestfs_get_recovery_proc"
8024 msgstr ""
8025
8026 # type: verbatim
8027 #: ../src/guestfs-actions.pod:2026
8028 #, no-wrap
8029 msgid ""
8030 " int\n"
8031 " guestfs_get_recovery_proc (guestfs_h *g);\n"
8032 "\n"
8033 msgstr ""
8034
8035 # type: textblock
8036 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
8037 msgid "Return the recovery process enabled flag."
8038 msgstr ""
8039
8040 # type: textblock
8041 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:3259
8042 #: ../src/guestfs-actions.pod:3554 ../src/guestfs-actions.pod:3954
8043 #: ../src/guestfs-actions.pod:3986 ../src/guestfs-actions.pod:4991
8044 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5711
8045 #: ../src/guestfs-actions.pod:6370 ../src/guestfs-actions.pod:6390
8046 #: ../src/guestfs-actions.pod:6582
8047 msgid "(Added in 1.0.77)"
8048 msgstr ""
8049
8050 # type: =head2
8051 #: ../src/guestfs-actions.pod:2035
8052 msgid "guestfs_get_selinux"
8053 msgstr ""
8054
8055 # type: verbatim
8056 #: ../src/guestfs-actions.pod:2037
8057 #, no-wrap
8058 msgid ""
8059 " int\n"
8060 " guestfs_get_selinux (guestfs_h *g);\n"
8061 "\n"
8062 msgstr ""
8063
8064 # type: textblock
8065 #: ../src/guestfs-actions.pod:2040
8066 msgid ""
8067 "This returns the current setting of the selinux flag which is passed to the "
8068 "appliance at boot time.  See C<guestfs_set_selinux>."
8069 msgstr ""
8070
8071 # type: textblock
8072 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111
8073 #: ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:5784
8074 msgid "(Added in 1.0.67)"
8075 msgstr ""
8076
8077 # type: =head2
8078 #: ../src/guestfs-actions.pod:2050
8079 msgid "guestfs_get_state"
8080 msgstr ""
8081
8082 # type: verbatim
8083 #: ../src/guestfs-actions.pod:2052
8084 #, no-wrap
8085 msgid ""
8086 " int\n"
8087 " guestfs_get_state (guestfs_h *g);\n"
8088 "\n"
8089 msgstr ""
8090
8091 # type: textblock
8092 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
8093 msgid ""
8094 "This returns the current state as an opaque integer.  This is only useful "
8095 "for printing debug and internal error messages."
8096 msgstr ""
8097
8098 # type: textblock
8099 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:3062
8100 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3152
8101 #: ../src/guestfs-actions.pod:3179 ../fish/guestfish-actions.pod:1398
8102 #: ../fish/guestfish-actions.pod:2133 ../fish/guestfish-actions.pod:2151
8103 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2205
8104 msgid "For more information on states, see L<guestfs(3)>."
8105 msgstr ""
8106
8107 # type: =head2
8108 #: ../src/guestfs-actions.pod:2064
8109 msgid "guestfs_get_trace"
8110 msgstr ""
8111
8112 # type: verbatim
8113 #: ../src/guestfs-actions.pod:2066
8114 #, no-wrap
8115 msgid ""
8116 " int\n"
8117 " guestfs_get_trace (guestfs_h *g);\n"
8118 "\n"
8119 msgstr ""
8120
8121 # type: textblock
8122 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
8123 msgid "Return the command trace flag."
8124 msgstr ""
8125
8126 # type: =head2
8127 #: ../src/guestfs-actions.pod:2075
8128 msgid "guestfs_get_umask"
8129 msgstr ""
8130
8131 # type: verbatim
8132 #: ../src/guestfs-actions.pod:2077
8133 #, no-wrap
8134 msgid ""
8135 " int\n"
8136 " guestfs_get_umask (guestfs_h *g);\n"
8137 "\n"
8138 msgstr ""
8139
8140 # type: textblock
8141 #: ../src/guestfs-actions.pod:2080
8142 msgid ""
8143 "Return the current umask.  By default the umask is C<022> unless it has been "
8144 "set by calling C<guestfs_umask>."
8145 msgstr ""
8146
8147 # type: =head2
8148 #: ../src/guestfs-actions.pod:2087
8149 msgid "guestfs_get_verbose"
8150 msgstr ""
8151
8152 # type: verbatim
8153 #: ../src/guestfs-actions.pod:2089
8154 #, no-wrap
8155 msgid ""
8156 " int\n"
8157 " guestfs_get_verbose (guestfs_h *g);\n"
8158 "\n"
8159 msgstr ""
8160
8161 # type: textblock
8162 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
8163 msgid "This returns the verbose messages flag."
8164 msgstr ""
8165
8166 # type: =head2
8167 #: ../src/guestfs-actions.pod:2098
8168 msgid "guestfs_getcon"
8169 msgstr ""
8170
8171 # type: verbatim
8172 #: ../src/guestfs-actions.pod:2100
8173 #, no-wrap
8174 msgid ""
8175 " char *\n"
8176 " guestfs_getcon (guestfs_h *g);\n"
8177 "\n"
8178 msgstr ""
8179
8180 # type: textblock
8181 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
8182 msgid "This gets the SELinux security context of the daemon."
8183 msgstr ""
8184
8185 # type: textblock
8186 #: ../src/guestfs-actions.pod:2105
8187 msgid ""
8188 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8189 msgstr ""
8190
8191 # type: =head2
8192 #: ../src/guestfs-actions.pod:2113
8193 msgid "guestfs_getxattr"
8194 msgstr ""
8195
8196 # type: verbatim
8197 #: ../src/guestfs-actions.pod:2115
8198 #, no-wrap
8199 msgid ""
8200 " char *\n"
8201 " guestfs_getxattr (guestfs_h *g,\n"
8202 "                   const char *path,\n"
8203 "                   const char *name,\n"
8204 "                   size_t *size_r);\n"
8205 "\n"
8206 msgstr ""
8207
8208 # type: textblock
8209 #: ../src/guestfs-actions.pod:2121
8210 msgid ""
8211 "Get a single extended attribute from file C<path> named C<name>.  This call "
8212 "follows symlinks.  If you want to lookup an extended attribute for the "
8213 "symlink itself, use C<guestfs_lgetxattr>."
8214 msgstr ""
8215
8216 # type: textblock
8217 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3273
8218 msgid ""
8219 "Normally it is better to get all extended attributes from a file in one go "
8220 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
8221 "implementations are buggy and do not provide a way to list out attributes.  "
8222 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
8223 "extended attributes you want in advance and call this function."
8224 msgstr ""
8225
8226 # type: textblock
8227 #: ../src/guestfs-actions.pod:2132 ../src/guestfs-actions.pod:3280
8228 #: ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:2270
8229 msgid ""
8230 "Extended attribute values are blobs of binary data.  If there is no extended "
8231 "attribute named C<name>, this returns an error."
8232 msgstr ""
8233
8234 # type: textblock
8235 #: ../src/guestfs-actions.pod:2135
8236 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
8237 msgstr ""
8238
8239 # type: textblock
8240 #: ../src/guestfs-actions.pod:2137 ../src/guestfs-actions.pod:2326
8241 #: ../src/guestfs-actions.pod:3285 ../src/guestfs-actions.pod:4984
8242 #: ../src/guestfs-actions.pod:5010 ../src/guestfs-actions.pod:5191
8243 msgid ""
8244 "This function returns a buffer, or NULL on error.  The size of the returned "
8245 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8246 "after use>."
8247 msgstr ""
8248
8249 # type: =head2
8250 #: ../src/guestfs-actions.pod:2141
8251 msgid "guestfs_getxattrs"
8252 msgstr ""
8253
8254 # type: verbatim
8255 #: ../src/guestfs-actions.pod:2143
8256 #, no-wrap
8257 msgid ""
8258 " struct guestfs_xattr_list *\n"
8259 " guestfs_getxattrs (guestfs_h *g,\n"
8260 "                    const char *path);\n"
8261 "\n"
8262 msgstr ""
8263
8264 # type: textblock
8265 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1452
8266 msgid ""
8267 "This call lists the extended attributes of the file or directory C<path>."
8268 msgstr ""
8269
8270 # type: textblock
8271 #: ../src/guestfs-actions.pod:2150 ../fish/guestfish-actions.pod:1455
8272 msgid ""
8273 "At the system call level, this is a combination of the L<listxattr(2)> and "
8274 "L<getxattr(2)> calls."
8275 msgstr ""
8276
8277 # type: textblock
8278 #: ../src/guestfs-actions.pod:2153
8279 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8280 msgstr ""
8281
8282 # type: textblock
8283 #: ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:3299
8284 #: ../src/guestfs-actions.pod:3950
8285 msgid ""
8286 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8287 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8288 msgstr ""
8289
8290 # type: textblock
8291 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3303
8292 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:3504
8293 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5803
8294 #: ../src/guestfs-actions.pod:7138
8295 msgid "(Added in 1.0.59)"
8296 msgstr ""
8297
8298 # type: =head2
8299 #: ../src/guestfs-actions.pod:2161
8300 msgid "guestfs_glob_expand"
8301 msgstr ""
8302
8303 # type: verbatim
8304 #: ../src/guestfs-actions.pod:2163
8305 #, no-wrap
8306 msgid ""
8307 " char **\n"
8308 " guestfs_glob_expand (guestfs_h *g,\n"
8309 "                      const char *pattern);\n"
8310 "\n"
8311 msgstr ""
8312
8313 # type: textblock
8314 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1464
8315 msgid ""
8316 "This command searches for all the pathnames matching C<pattern> according to "
8317 "the wildcard expansion rules used by the shell."
8318 msgstr ""
8319
8320 # type: textblock
8321 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1468
8322 msgid ""
8323 "If no paths match, then this returns an empty list (note: not an error)."
8324 msgstr ""
8325
8326 # type: textblock
8327 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1471
8328 msgid ""
8329 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8330 "GLOB_BRACE>.  See that manual page for more details."
8331 msgstr ""
8332
8333 # type: textblock
8334 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:5968
8335 #: ../src/guestfs-actions.pod:5985
8336 msgid "(Added in 1.0.50)"
8337 msgstr ""
8338
8339 # type: =head2
8340 #: ../src/guestfs-actions.pod:2184
8341 msgid "guestfs_grep"
8342 msgstr ""
8343
8344 # type: verbatim
8345 #: ../src/guestfs-actions.pod:2186
8346 #, no-wrap
8347 msgid ""
8348 " char **\n"
8349 " guestfs_grep (guestfs_h *g,\n"
8350 "               const char *regex,\n"
8351 "               const char *path);\n"
8352 "\n"
8353 msgstr ""
8354
8355 # type: textblock
8356 #: ../src/guestfs-actions.pod:2191 ../fish/guestfish-actions.pod:1479
8357 msgid "This calls the external C<grep> program and returns the matching lines."
8358 msgstr ""
8359
8360 # type: =head2
8361 #: ../src/guestfs-actions.pod:2203
8362 msgid "guestfs_grepi"
8363 msgstr ""
8364
8365 # type: verbatim
8366 #: ../src/guestfs-actions.pod:2205
8367 #, no-wrap
8368 msgid ""
8369 " char **\n"
8370 " guestfs_grepi (guestfs_h *g,\n"
8371 "                const char *regex,\n"
8372 "                const char *path);\n"
8373 "\n"
8374 msgstr ""
8375
8376 # type: textblock
8377 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1489
8378 msgid ""
8379 "This calls the external C<grep -i> program and returns the matching lines."
8380 msgstr ""
8381
8382 # type: =head2
8383 #: ../src/guestfs-actions.pod:2222
8384 msgid "guestfs_grub_install"
8385 msgstr ""
8386
8387 # type: verbatim
8388 #: ../src/guestfs-actions.pod:2224
8389 #, no-wrap
8390 msgid ""
8391 " int\n"
8392 " guestfs_grub_install (guestfs_h *g,\n"
8393 "                       const char *root,\n"
8394 "                       const char *device);\n"
8395 "\n"
8396 msgstr ""
8397
8398 # type: textblock
8399 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1499
8400 msgid ""
8401 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8402 "the root directory being C<root>."
8403 msgstr ""
8404
8405 # type: textblock
8406 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1502
8407 msgid ""
8408 "Note: If grub-install reports the error \"No suitable drive was found in the "
8409 "generated device map.\" it may be that you need to create a C</boot/grub/"
8410 "device.map> file first that contains the mapping between grub device names "
8411 "and Linux device names.  It is usually sufficient to create a file "
8412 "containing:"
8413 msgstr ""
8414
8415 # type: verbatim
8416 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1509
8417 #, no-wrap
8418 msgid ""
8419 " (hd0) /dev/vda\n"
8420 "\n"
8421 msgstr ""
8422
8423 # type: textblock
8424 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1511
8425 msgid "replacing C</dev/vda> with the name of the installation device."
8426 msgstr ""
8427
8428 # type: textblock
8429 #: ../src/guestfs-actions.pod:2245
8430 msgid "(Added in 1.0.17)"
8431 msgstr ""
8432
8433 # type: =head2
8434 #: ../src/guestfs-actions.pod:2247
8435 msgid "guestfs_head"
8436 msgstr ""
8437
8438 # type: verbatim
8439 #: ../src/guestfs-actions.pod:2249
8440 #, no-wrap
8441 msgid ""
8442 " char **\n"
8443 " guestfs_head (guestfs_h *g,\n"
8444 "               const char *path);\n"
8445 "\n"
8446 msgstr ""
8447
8448 # type: textblock
8449 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1517
8450 msgid ""
8451 "This command returns up to the first 10 lines of a file as a list of strings."
8452 msgstr ""
8453
8454 # type: =head2
8455 #: ../src/guestfs-actions.pod:2265
8456 msgid "guestfs_head_n"
8457 msgstr ""
8458
8459 # type: verbatim
8460 #: ../src/guestfs-actions.pod:2267
8461 #, no-wrap
8462 msgid ""
8463 " char **\n"
8464 " guestfs_head_n (guestfs_h *g,\n"
8465 "                 int nrlines,\n"
8466 "                 const char *path);\n"
8467 "\n"
8468 msgstr ""
8469
8470 # type: textblock
8471 #: ../src/guestfs-actions.pod:2272 ../fish/guestfish-actions.pod:1527
8472 msgid ""
8473 "If the parameter C<nrlines> is a positive number, this returns the first "
8474 "C<nrlines> lines of the file C<path>."
8475 msgstr ""
8476
8477 # type: textblock
8478 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1530
8479 msgid ""
8480 "If the parameter C<nrlines> is a negative number, this returns lines from "
8481 "the file C<path>, excluding the last C<nrlines> lines."
8482 msgstr ""
8483
8484 # type: textblock
8485 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6265
8486 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:4184
8487 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8488 msgstr ""
8489
8490 # type: =head2
8491 #: ../src/guestfs-actions.pod:2289
8492 msgid "guestfs_hexdump"
8493 msgstr ""
8494
8495 # type: verbatim
8496 #: ../src/guestfs-actions.pod:2291
8497 #, no-wrap
8498 msgid ""
8499 " char *\n"
8500 " guestfs_hexdump (guestfs_h *g,\n"
8501 "                  const char *path);\n"
8502 "\n"
8503 msgstr ""
8504
8505 # type: textblock
8506 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1542
8507 msgid ""
8508 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8509 "readable, canonical hex dump of the file."
8510 msgstr ""
8511
8512 # type: textblock
8513 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6049
8514 #: ../src/guestfs-actions.pod:6104
8515 msgid "(Added in 1.0.22)"
8516 msgstr ""
8517
8518 # type: =head2
8519 #: ../src/guestfs-actions.pod:2306
8520 msgid "guestfs_initrd_cat"
8521 msgstr ""
8522
8523 # type: verbatim
8524 #: ../src/guestfs-actions.pod:2308
8525 #, no-wrap
8526 msgid ""
8527 " char *\n"
8528 " guestfs_initrd_cat (guestfs_h *g,\n"
8529 "                     const char *initrdpath,\n"
8530 "                     const char *filename,\n"
8531 "                     size_t *size_r);\n"
8532 "\n"
8533 msgstr ""
8534
8535 # type: textblock
8536 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1552
8537 msgid ""
8538 "This command unpacks the file C<filename> from the initrd file called "
8539 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8540 "character."
8541 msgstr ""
8542
8543 # type: textblock
8544 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1556
8545 msgid ""
8546 "For example, in guestfish you could use the following command to examine the "
8547 "boot script (usually called C</init>)  contained in a Linux initrd or "
8548 "initramfs image:"
8549 msgstr ""
8550
8551 # type: verbatim
8552 #: ../src/guestfs-actions.pod:2322 ../fish/guestfish-actions.pod:1560
8553 #, no-wrap
8554 msgid ""
8555 " initrd-cat /boot/initrd-<version>.img init\n"
8556 "\n"
8557 msgstr ""
8558
8559 # type: textblock
8560 #: ../src/guestfs-actions.pod:2324
8561 msgid "See also C<guestfs_initrd_list>."
8562 msgstr ""
8563
8564 # type: =head2
8565 #: ../src/guestfs-actions.pod:2335
8566 msgid "guestfs_initrd_list"
8567 msgstr ""
8568
8569 # type: verbatim
8570 #: ../src/guestfs-actions.pod:2337
8571 #, no-wrap
8572 msgid ""
8573 " char **\n"
8574 " guestfs_initrd_list (guestfs_h *g,\n"
8575 "                      const char *path);\n"
8576 "\n"
8577 msgstr ""
8578
8579 # type: textblock
8580 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1571
8581 msgid "This command lists out files contained in an initrd."
8582 msgstr ""
8583
8584 # type: textblock
8585 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1573
8586 msgid ""
8587 "The files are listed without any initial C</> character.  The files are "
8588 "listed in the order they appear (not necessarily alphabetical).  Directory "
8589 "names are listed as separate items."
8590 msgstr ""
8591
8592 # type: textblock
8593 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1577
8594 msgid ""
8595 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8596 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8597 "files)."
8598 msgstr ""
8599
8600 # type: =head2
8601 #: ../src/guestfs-actions.pod:2357
8602 msgid "guestfs_inotify_add_watch"
8603 msgstr ""
8604
8605 # type: verbatim
8606 #: ../src/guestfs-actions.pod:2359
8607 #, no-wrap
8608 msgid ""
8609 " int64_t\n"
8610 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8611 "                            const char *path,\n"
8612 "                            int mask);\n"
8613 "\n"
8614 msgstr ""
8615
8616 # type: textblock
8617 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1585
8618 msgid "Watch C<path> for the events listed in C<mask>."
8619 msgstr ""
8620
8621 # type: textblock
8622 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1587
8623 msgid ""
8624 "Note that if C<path> is a directory then events within that directory are "
8625 "watched, but this does I<not> happen recursively (in subdirectories)."
8626 msgstr ""
8627
8628 # type: textblock
8629 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1591
8630 msgid ""
8631 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8632 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8633 msgstr ""
8634
8635 # type: =head2
8636 #: ../src/guestfs-actions.pod:2378
8637 msgid "guestfs_inotify_close"
8638 msgstr ""
8639
8640 # type: verbatim
8641 #: ../src/guestfs-actions.pod:2380
8642 #, no-wrap
8643 msgid ""
8644 " int\n"
8645 " guestfs_inotify_close (guestfs_h *g);\n"
8646 "\n"
8647 msgstr ""
8648
8649 # type: textblock
8650 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1599
8651 msgid ""
8652 "This closes the inotify handle which was previously opened by inotify_init.  "
8653 "It removes all watches, throws away any pending events, and deallocates all "
8654 "resources."
8655 msgstr ""
8656
8657 # type: =head2
8658 #: ../src/guestfs-actions.pod:2391
8659 msgid "guestfs_inotify_files"
8660 msgstr ""
8661
8662 # type: verbatim
8663 #: ../src/guestfs-actions.pod:2393
8664 #, no-wrap
8665 msgid ""
8666 " char **\n"
8667 " guestfs_inotify_files (guestfs_h *g);\n"
8668 "\n"
8669 msgstr ""
8670
8671 # type: textblock
8672 #: ../src/guestfs-actions.pod:2396
8673 msgid ""
8674 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8675 "returns a list of pathnames of objects that were touched.  The returned "
8676 "pathnames are sorted and deduplicated."
8677 msgstr ""
8678
8679 # type: =head2
8680 #: ../src/guestfs-actions.pod:2406
8681 msgid "guestfs_inotify_init"
8682 msgstr ""
8683
8684 # type: verbatim
8685 #: ../src/guestfs-actions.pod:2408
8686 #, no-wrap
8687 msgid ""
8688 " int\n"
8689 " guestfs_inotify_init (guestfs_h *g,\n"
8690 "                       int maxevents);\n"
8691 "\n"
8692 msgstr ""
8693
8694 # type: textblock
8695 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1615
8696 msgid ""
8697 "This command creates a new inotify handle.  The inotify subsystem can be "
8698 "used to notify events which happen to objects in the guest filesystem."
8699 msgstr ""
8700
8701 # type: textblock
8702 #: ../src/guestfs-actions.pod:2416
8703 msgid ""
8704 "C<maxevents> is the maximum number of events which will be queued up between "
8705 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8706 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8707 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8708 "throws away events, but records the fact that it threw them away by setting "
8709 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8710 "C<guestfs_inotify_read>)."
8711 msgstr ""
8712
8713 # type: textblock
8714 #: ../src/guestfs-actions.pod:2426
8715 msgid ""
8716 "Before any events are generated, you have to add some watches to the "
8717 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8718 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8719 msgstr ""
8720
8721 # type: textblock
8722 #: ../src/guestfs-actions.pod:2432
8723 msgid ""
8724 "Queued up events should be read periodically by calling "
8725 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8726 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8727 "often enough then you risk the internal queue overflowing."
8728 msgstr ""
8729
8730 # type: textblock
8731 #: ../src/guestfs-actions.pod:2439
8732 msgid ""
8733 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8734 "This also removes any watches automatically."
8735 msgstr ""
8736
8737 # type: textblock
8738 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1646
8739 msgid ""
8740 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8741 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8742 "that there is one global inotify handle per libguestfs instance."
8743 msgstr ""
8744
8745 # type: =head2
8746 #: ../src/guestfs-actions.pod:2452
8747 msgid "guestfs_inotify_read"
8748 msgstr ""
8749
8750 # type: verbatim
8751 #: ../src/guestfs-actions.pod:2454
8752 #, no-wrap
8753 msgid ""
8754 " struct guestfs_inotify_event_list *\n"
8755 " guestfs_inotify_read (guestfs_h *g);\n"
8756 "\n"
8757 msgstr ""
8758
8759 # type: textblock
8760 #: ../src/guestfs-actions.pod:2457 ../fish/guestfish-actions.pod:1655
8761 msgid ""
8762 "Return the complete queue of events that have happened since the previous "
8763 "read call."
8764 msgstr ""
8765
8766 # type: textblock
8767 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1658
8768 msgid "If no events have happened, this returns an empty list."
8769 msgstr ""
8770
8771 # type: textblock
8772 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1660
8773 msgid ""
8774 "I<Note>: In order to make sure that all events have been read, you must call "
8775 "this function repeatedly until it returns an empty list.  The reason is that "
8776 "the call will read events up to the maximum appliance-to-host message size "
8777 "and leave remaining events in the queue."
8778 msgstr ""
8779
8780 # type: textblock
8781 #: ../src/guestfs-actions.pod:2468
8782 msgid ""
8783 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8784 "there was an error.  I<The caller must call "
8785 "C<guestfs_free_inotify_event_list> after use>."
8786 msgstr ""
8787
8788 # type: =head2
8789 #: ../src/guestfs-actions.pod:2474
8790 msgid "guestfs_inotify_rm_watch"
8791 msgstr ""
8792
8793 # type: verbatim
8794 #: ../src/guestfs-actions.pod:2476
8795 #, no-wrap
8796 msgid ""
8797 " int\n"
8798 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8799 "                           int wd);\n"
8800 "\n"
8801 msgstr ""
8802
8803 # type: textblock
8804 #: ../src/guestfs-actions.pod:2480
8805 msgid ""
8806 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8807 msgstr ""
8808
8809 # type: =head2
8810 #: ../src/guestfs-actions.pod:2487
8811 msgid "guestfs_inspect_get_arch"
8812 msgstr ""
8813
8814 # type: verbatim
8815 #: ../src/guestfs-actions.pod:2489
8816 #, no-wrap
8817 msgid ""
8818 " char *\n"
8819 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8820 "                           const char *root);\n"
8821 "\n"
8822 msgstr ""
8823
8824 # type: textblock
8825 #: ../src/guestfs-actions.pod:2493 ../src/guestfs-actions.pod:2516
8826 #: ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2623
8827 #: ../src/guestfs-actions.pod:2645 ../src/guestfs-actions.pod:2672
8828 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2726
8829 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:2786
8830 #: ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2872
8831 #: ../src/guestfs-actions.pod:2895
8832 msgid ""
8833 "This function should only be called with a root device string as returned by "
8834 "C<guestfs_inspect_os>."
8835 msgstr ""
8836
8837 # type: textblock
8838 #: ../src/guestfs-actions.pod:2496
8839 msgid ""
8840 "This returns the architecture of the inspected operating system.  The "
8841 "possible return values are listed under C<guestfs_file_architecture>."
8842 msgstr ""
8843
8844 # type: textblock
8845 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1684
8846 msgid ""
8847 "If the architecture could not be determined, then the string C<unknown> is "
8848 "returned."
8849 msgstr ""
8850
8851 # type: textblock
8852 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2584
8853 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2660
8854 #: ../src/guestfs-actions.pod:2742 ../src/guestfs-actions.pod:2773
8855 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2816
8856 #: ../src/guestfs-actions.pod:2859 ../src/guestfs-actions.pod:2882
8857 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3029
8858 #: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:1761
8859 #: ../fish/guestfish-actions.pod:1794 ../fish/guestfish-actions.pod:1815
8860 #: ../fish/guestfish-actions.pod:1875 ../fish/guestfish-actions.pod:1899
8861 #: ../fish/guestfish-actions.pod:1916 ../fish/guestfish-actions.pod:1929
8862 #: ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1980
8863 #: ../fish/guestfish-actions.pod:2079 ../fish/guestfish-actions.pod:2113
8864 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8865 msgstr ""
8866
8867 # type: =head2
8868 #: ../src/guestfs-actions.pod:2510
8869 msgid "guestfs_inspect_get_distro"
8870 msgstr ""
8871
8872 # type: verbatim
8873 #: ../src/guestfs-actions.pod:2512
8874 #, no-wrap
8875 msgid ""
8876 " char *\n"
8877 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8878 "                             const char *root);\n"
8879 "\n"
8880 msgstr ""
8881
8882 # type: textblock
8883 #: ../src/guestfs-actions.pod:2519 ../fish/guestfish-actions.pod:1696
8884 msgid ""
8885 "This returns the distro (distribution) of the inspected operating system."
8886 msgstr ""
8887
8888 # type: textblock
8889 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1699
8890 msgid "Currently defined distros are:"
8891 msgstr ""
8892
8893 # type: =item
8894 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1703
8895 msgid "\"archlinux\""
8896 msgstr ""
8897
8898 # type: textblock
8899 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1705
8900 msgid "Arch Linux."
8901 msgstr ""
8902
8903 # type: =item
8904 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1707
8905 msgid "\"debian\""
8906 msgstr ""
8907
8908 # type: textblock
8909 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1709
8910 msgid "Debian."
8911 msgstr ""
8912
8913 # type: =item
8914 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1711
8915 msgid "\"fedora\""
8916 msgstr ""
8917
8918 # type: textblock
8919 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1713
8920 msgid "Fedora."
8921 msgstr ""
8922
8923 # type: =item
8924 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1715
8925 msgid "\"gentoo\""
8926 msgstr ""
8927
8928 # type: textblock
8929 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1717
8930 msgid "Gentoo."
8931 msgstr ""
8932
8933 # type: =item
8934 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1719
8935 msgid "\"linuxmint\""
8936 msgstr ""
8937
8938 # type: textblock
8939 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1721
8940 msgid "Linux Mint."
8941 msgstr ""
8942
8943 # type: =item
8944 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1723
8945 msgid "\"mandriva\""
8946 msgstr ""
8947
8948 # type: textblock
8949 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1725
8950 msgid "Mandriva."
8951 msgstr ""
8952
8953 # type: =item
8954 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1727
8955 msgid "\"meego\""
8956 msgstr ""
8957
8958 # type: textblock
8959 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1729
8960 msgid "MeeGo."
8961 msgstr ""
8962
8963 # type: =item
8964 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1731
8965 msgid "\"pardus\""
8966 msgstr ""
8967
8968 # type: textblock
8969 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1733
8970 msgid "Pardus."
8971 msgstr ""
8972
8973 # type: =item
8974 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1735
8975 msgid "\"redhat-based\""
8976 msgstr ""
8977
8978 # type: textblock
8979 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1737
8980 msgid "Some Red Hat-derived distro."
8981 msgstr ""
8982
8983 # type: =item
8984 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1739
8985 msgid "\"rhel\""
8986 msgstr ""
8987
8988 # type: textblock
8989 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1741
8990 msgid "Red Hat Enterprise Linux and some derivatives."
8991 msgstr ""
8992
8993 # type: =item
8994 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1743
8995 msgid "\"ubuntu\""
8996 msgstr ""
8997
8998 # type: textblock
8999 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1745
9000 msgid "Ubuntu."
9001 msgstr ""
9002
9003 # type: =item
9004 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2850
9005 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1955
9006 msgid "\"unknown\""
9007 msgstr ""
9008
9009 # type: textblock
9010 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1749
9011 msgid "The distro could not be determined."
9012 msgstr ""
9013
9014 # type: =item
9015 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2842
9016 #: ../fish/guestfish-actions.pod:1751 ../fish/guestfish-actions.pod:1947
9017 msgid "\"windows\""
9018 msgstr ""
9019
9020 # type: textblock
9021 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1753
9022 msgid ""
9023 "Windows does not have distributions.  This string is returned if the OS type "
9024 "is Windows."
9025 msgstr ""
9026
9027 # type: textblock
9028 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2856
9029 #: ../fish/guestfish-actions.pod:1758 ../fish/guestfish-actions.pod:1961
9030 msgid ""
9031 "Future versions of libguestfs may return other strings here.  The caller "
9032 "should be prepared to handle any string."
9033 msgstr ""
9034
9035 # type: =head2
9036 #: ../src/guestfs-actions.pod:2591
9037 msgid "guestfs_inspect_get_filesystems"
9038 msgstr ""
9039
9040 # type: verbatim
9041 #: ../src/guestfs-actions.pod:2593
9042 #, no-wrap
9043 msgid ""
9044 " char **\n"
9045 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
9046 "                                  const char *root);\n"
9047 "\n"
9048 msgstr ""
9049
9050 # type: textblock
9051 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1770
9052 msgid ""
9053 "This returns a list of all the filesystems that we think are associated with "
9054 "this operating system.  This includes the root filesystem, other ordinary "
9055 "filesystems, and non-mounted devices like swap partitions."
9056 msgstr ""
9057
9058 # type: textblock
9059 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1775
9060 msgid ""
9061 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9062 "to be shared between operating systems."
9063 msgstr ""
9064
9065 # type: textblock
9066 #: ../src/guestfs-actions.pod:2608
9067 msgid ""
9068 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9069 "C<guestfs_inspect_get_mountpoints>."
9070 msgstr ""
9071
9072 # type: =head2
9073 #: ../src/guestfs-actions.pod:2617
9074 msgid "guestfs_inspect_get_hostname"
9075 msgstr ""
9076
9077 # type: verbatim
9078 #: ../src/guestfs-actions.pod:2619
9079 #, no-wrap
9080 msgid ""
9081 " char *\n"
9082 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
9083 "                               const char *root);\n"
9084 "\n"
9085 msgstr ""
9086
9087 # type: textblock
9088 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1788
9089 msgid ""
9090 "This function returns the hostname of the operating system as found by "
9091 "inspection of the guest's configuration files."
9092 msgstr ""
9093
9094 # type: textblock
9095 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1791
9096 msgid ""
9097 "If the hostname could not be determined, then the string C<unknown> is "
9098 "returned."
9099 msgstr ""
9100
9101 # type: textblock
9102 #: ../src/guestfs-actions.pod:2637
9103 msgid "(Added in 1.7.9)"
9104 msgstr ""
9105
9106 # type: =head2
9107 #: ../src/guestfs-actions.pod:2639
9108 msgid "guestfs_inspect_get_major_version"
9109 msgstr ""
9110
9111 # type: verbatim
9112 #: ../src/guestfs-actions.pod:2641
9113 #, no-wrap
9114 msgid ""
9115 " int\n"
9116 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
9117 "                                    const char *root);\n"
9118 "\n"
9119 msgstr ""
9120
9121 # type: textblock
9122 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1803
9123 msgid ""
9124 "This returns the major version number of the inspected operating system."
9125 msgstr ""
9126
9127 # type: textblock
9128 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1806
9129 msgid ""
9130 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9131 "popular public names used by the operating system.  Notably the operating "
9132 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9133 "1).  You can find out the real versions corresponding to releases of Windows "
9134 "by consulting Wikipedia or MSDN."
9135 msgstr ""
9136
9137 # type: textblock
9138 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2678
9139 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1827
9140 msgid "If the version could not be determined, then C<0> is returned."
9141 msgstr ""
9142
9143 # type: =head2
9144 #: ../src/guestfs-actions.pod:2666
9145 msgid "guestfs_inspect_get_minor_version"
9146 msgstr ""
9147
9148 # type: verbatim
9149 #: ../src/guestfs-actions.pod:2668
9150 #, no-wrap
9151 msgid ""
9152 " int\n"
9153 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9154 "                                    const char *root);\n"
9155 "\n"
9156 msgstr ""
9157
9158 # type: textblock
9159 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1824
9160 msgid ""
9161 "This returns the minor version number of the inspected operating system."
9162 msgstr ""
9163
9164 # type: textblock
9165 #: ../src/guestfs-actions.pod:2680
9166 msgid ""
9167 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9168 "C<guestfs_inspect_get_major_version>."
9169 msgstr ""
9170
9171 # type: =head2
9172 #: ../src/guestfs-actions.pod:2687
9173 msgid "guestfs_inspect_get_mountpoints"
9174 msgstr ""
9175
9176 # type: verbatim
9177 #: ../src/guestfs-actions.pod:2689
9178 #, no-wrap
9179 msgid ""
9180 " char **\n"
9181 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9182 "                                  const char *root);\n"
9183 "\n"
9184 msgstr ""
9185
9186 # type: textblock
9187 #: ../src/guestfs-actions.pod:2696 ../fish/guestfish-actions.pod:1839
9188 msgid ""
9189 "This returns a hash of where we think the filesystems associated with this "
9190 "operating system should be mounted.  Callers should note that this is at "
9191 "best an educated guess made by reading configuration files such as C</etc/"
9192 "fstab>."
9193 msgstr ""
9194
9195 # type: textblock
9196 #: ../src/guestfs-actions.pod:2701 ../fish/guestfish-actions.pod:1844
9197 msgid ""
9198 "Each element in the returned hashtable has a key which is the path of the "
9199 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9200 "mounted there (eg. C</dev/sda1>)."
9201 msgstr ""
9202
9203 # type: textblock
9204 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1849
9205 msgid ""
9206 "Non-mounted devices such as swap devices are I<not> returned in this list."
9207 msgstr ""
9208
9209 # type: textblock
9210 #: ../src/guestfs-actions.pod:2709
9211 msgid ""
9212 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9213 "C<guestfs_inspect_get_filesystems>."
9214 msgstr ""
9215
9216 # type: textblock
9217 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:3356
9218 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:6406
9219 msgid ""
9220 "This function returns a NULL-terminated array of strings, or NULL if there "
9221 "was an error.  The array of strings will always have length C<2n+1>, where "
9222 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9223 "caller must free the strings and the array after use>."
9224 msgstr ""
9225
9226 # type: =head2
9227 #: ../src/guestfs-actions.pod:2720
9228 msgid "guestfs_inspect_get_package_format"
9229 msgstr ""
9230
9231 # type: verbatim
9232 #: ../src/guestfs-actions.pod:2722
9233 #, no-wrap
9234 msgid ""
9235 " char *\n"
9236 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9237 "                                     const char *root);\n"
9238 "\n"
9239 msgstr ""
9240
9241 # type: textblock
9242 #: ../src/guestfs-actions.pod:2729
9243 msgid ""
9244 "This function and C<guestfs_inspect_get_package_management> return the "
9245 "package format and package management tool used by the inspected operating "
9246 "system.  For example for Fedora these functions would return C<rpm> (package "
9247 "format) and C<yum> (package management)."
9248 msgstr ""
9249
9250 # type: textblock
9251 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1868
9252 msgid ""
9253 "This returns the string C<unknown> if we could not determine the package "
9254 "format I<or> if the operating system does not have a real packaging system "
9255 "(eg. Windows)."
9256 msgstr ""
9257
9258 # type: textblock
9259 #: ../src/guestfs-actions.pod:2739 ../fish/guestfish-actions.pod:1872
9260 msgid ""
9261 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9262 "Future versions of libguestfs may return other strings."
9263 msgstr ""
9264
9265 # type: textblock
9266 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2778
9267 msgid "(Added in 1.7.5)"
9268 msgstr ""
9269
9270 # type: =head2
9271 #: ../src/guestfs-actions.pod:2749
9272 msgid "guestfs_inspect_get_package_management"
9273 msgstr ""
9274
9275 # type: verbatim
9276 #: ../src/guestfs-actions.pod:2751
9277 #, no-wrap
9278 msgid ""
9279 " char *\n"
9280 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9281 "                                         const char *root);\n"
9282 "\n"
9283 msgstr ""
9284
9285 # type: textblock
9286 #: ../src/guestfs-actions.pod:2758
9287 msgid ""
9288 "C<guestfs_inspect_get_package_format> and this function return the package "
9289 "format and package management tool used by the inspected operating system.  "
9290 "For example for Fedora these functions would return C<rpm> (package format) "
9291 "and C<yum> (package management)."
9292 msgstr ""
9293
9294 # type: textblock
9295 #: ../src/guestfs-actions.pod:2764 ../fish/guestfish-actions.pod:1890
9296 msgid ""
9297 "This returns the string C<unknown> if we could not determine the package "
9298 "management tool I<or> if the operating system does not have a real packaging "
9299 "system (eg. Windows)."
9300 msgstr ""
9301
9302 # type: textblock
9303 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1894
9304 msgid ""
9305 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9306 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9307 "libguestfs may return other strings."
9308 msgstr ""
9309
9310 # type: =head2
9311 #: ../src/guestfs-actions.pod:2780
9312 msgid "guestfs_inspect_get_product_name"
9313 msgstr ""
9314
9315 # type: verbatim
9316 #: ../src/guestfs-actions.pod:2782
9317 #, no-wrap
9318 msgid ""
9319 " char *\n"
9320 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9321 "                                   const char *root);\n"
9322 "\n"
9323 msgstr ""
9324
9325 # type: textblock
9326 #: ../src/guestfs-actions.pod:2789 ../fish/guestfish-actions.pod:1908
9327 msgid ""
9328 "This returns the product name of the inspected operating system.  The "
9329 "product name is generally some freeform string which can be displayed to the "
9330 "user, but should not be parsed by programs."
9331 msgstr ""
9332
9333 # type: textblock
9334 #: ../src/guestfs-actions.pod:2794 ../fish/guestfish-actions.pod:1913
9335 msgid ""
9336 "If the product name could not be determined, then the string C<unknown> is "
9337 "returned."
9338 msgstr ""
9339
9340 # type: =head2
9341 #: ../src/guestfs-actions.pod:2804
9342 msgid "guestfs_inspect_get_roots"
9343 msgstr ""
9344
9345 # type: verbatim
9346 #: ../src/guestfs-actions.pod:2806
9347 #, no-wrap
9348 msgid ""
9349 " char **\n"
9350 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9351 "\n"
9352 msgstr ""
9353
9354 # type: textblock
9355 #: ../src/guestfs-actions.pod:2809
9356 msgid ""
9357 "This function is a convenient way to get the list of root devices, as "
9358 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9359 "the whole inspection process."
9360 msgstr ""
9361
9362 # type: textblock
9363 #: ../src/guestfs-actions.pod:2813
9364 msgid ""
9365 "This returns an empty list if either no root devices were found or the "
9366 "caller has not called C<guestfs_inspect_os>."
9367 msgstr ""
9368
9369 # type: textblock
9370 #: ../src/guestfs-actions.pod:2822
9371 msgid "(Added in 1.7.3)"
9372 msgstr ""
9373
9374 # type: =head2
9375 #: ../src/guestfs-actions.pod:2824
9376 msgid "guestfs_inspect_get_type"
9377 msgstr ""
9378
9379 # type: verbatim
9380 #: ../src/guestfs-actions.pod:2826
9381 #, no-wrap
9382 msgid ""
9383 " char *\n"
9384 " guestfs_inspect_get_type (guestfs_h *g,\n"
9385 "                           const char *root);\n"
9386 "\n"
9387 msgstr ""
9388
9389 # type: textblock
9390 #: ../src/guestfs-actions.pod:2833 ../fish/guestfish-actions.pod:1938
9391 msgid ""
9392 "This returns the type of the inspected operating system.  Currently defined "
9393 "types are:"
9394 msgstr ""
9395
9396 # type: =item
9397 #: ../src/guestfs-actions.pod:2838 ../fish/guestfish-actions.pod:1943
9398 msgid "\"linux\""
9399 msgstr ""
9400
9401 # type: textblock
9402 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1945
9403 msgid "Any Linux-based operating system."
9404 msgstr ""
9405
9406 # type: textblock
9407 #: ../src/guestfs-actions.pod:2844 ../fish/guestfish-actions.pod:1949
9408 msgid "Any Microsoft Windows operating system."
9409 msgstr ""
9410
9411 # type: =item
9412 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:1951
9413 msgid "\"freebsd\""
9414 msgstr ""
9415
9416 # type: textblock
9417 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1953
9418 msgid "FreeBSD."
9419 msgstr ""
9420
9421 # type: textblock
9422 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1957
9423 msgid "The operating system type could not be determined."
9424 msgstr ""
9425
9426 # type: =head2
9427 #: ../src/guestfs-actions.pod:2866
9428 msgid "guestfs_inspect_get_windows_systemroot"
9429 msgstr ""
9430
9431 # type: verbatim
9432 #: ../src/guestfs-actions.pod:2868
9433 #, no-wrap
9434 msgid ""
9435 " char *\n"
9436 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9437 "                                         const char *root);\n"
9438 "\n"
9439 msgstr ""
9440
9441 # type: textblock
9442 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1973
9443 msgid ""
9444 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9445 "is a directory path such as C</WINDOWS>."
9446 msgstr ""
9447
9448 # type: textblock
9449 #: ../src/guestfs-actions.pod:2878 ../fish/guestfish-actions.pod:1976
9450 msgid ""
9451 "This call assumes that the guest is Windows and that the systemroot could be "
9452 "determined by inspection.  If this is not the case then an error is returned."
9453 msgstr ""
9454
9455 # type: textblock
9456 #: ../src/guestfs-actions.pod:2887
9457 msgid "(Added in 1.5.25)"
9458 msgstr ""
9459
9460 # type: =head2
9461 #: ../src/guestfs-actions.pod:2889
9462 msgid "guestfs_inspect_list_applications"
9463 msgstr ""
9464
9465 # type: verbatim
9466 #: ../src/guestfs-actions.pod:2891
9467 #, no-wrap
9468 msgid ""
9469 " struct guestfs_application_list *\n"
9470 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9471 "                                    const char *root);\n"
9472 "\n"
9473 msgstr ""
9474
9475 # type: textblock
9476 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1989
9477 msgid "Return the list of applications installed in the operating system."
9478 msgstr ""
9479
9480 # type: textblock
9481 #: ../src/guestfs-actions.pod:2900
9482 msgid ""
9483 "I<Note:> This call works differently from other parts of the inspection "
9484 "API.  You have to call C<guestfs_inspect_os>, then "
9485 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9486 "this.  Listing applications is a significantly more difficult operation "
9487 "which requires access to the full filesystem.  Also note that unlike the "
9488 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9489 "the libguestfs handle, this call actually reads parts of the mounted "
9490 "filesystems during the call."
9491 msgstr ""
9492
9493 # type: textblock
9494 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2001
9495 msgid ""
9496 "This returns an empty list if the inspection code was not able to determine "
9497 "the list of applications."
9498 msgstr ""
9499
9500 # type: textblock
9501 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:2004
9502 msgid "The application structure contains the following fields:"
9503 msgstr ""
9504
9505 # type: =item
9506 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2008
9507 msgid "C<app_name>"
9508 msgstr ""
9509
9510 # type: textblock
9511 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2010
9512 msgid ""
9513 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9514 "guests, this is the package name."
9515 msgstr ""
9516
9517 # type: =item
9518 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2013
9519 msgid "C<app_display_name>"
9520 msgstr ""
9521
9522 # type: textblock
9523 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2015
9524 msgid ""
9525 "The display name of the application, sometimes localized to the install "
9526 "language of the guest operating system."
9527 msgstr ""
9528
9529 # type: textblock
9530 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2018
9531 msgid ""
9532 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9533 "to display something can use C<app_name> instead."
9534 msgstr ""
9535
9536 # type: =item
9537 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2021
9538 msgid "C<app_epoch>"
9539 msgstr ""
9540
9541 # type: textblock
9542 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2023
9543 msgid ""
9544 "For package managers which use epochs, this contains the epoch of the "
9545 "package (an integer).  If unavailable, this is returned as C<0>."
9546 msgstr ""
9547
9548 # type: =item
9549 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2026
9550 msgid "C<app_version>"
9551 msgstr ""
9552
9553 # type: textblock
9554 #: ../src/guestfs-actions.pod:2937 ../fish/guestfish-actions.pod:2028
9555 msgid ""
9556 "The version string of the application or package.  If unavailable this is "
9557 "returned as an empty string C<\"\">."
9558 msgstr ""
9559
9560 # type: =item
9561 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2031
9562 msgid "C<app_release>"
9563 msgstr ""
9564
9565 # type: textblock
9566 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2033
9567 msgid ""
9568 "The release string of the application or package, for package managers that "
9569 "use this.  If unavailable this is returned as an empty string C<\"\">."
9570 msgstr ""
9571
9572 # type: =item
9573 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2037
9574 msgid "C<app_install_path>"
9575 msgstr ""
9576
9577 # type: textblock
9578 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2039
9579 msgid ""
9580 "The installation path of the application (on operating systems such as "
9581 "Windows which use installation paths).  This path is in the format used by "
9582 "the guest operating system, it is not a libguestfs path."
9583 msgstr ""
9584
9585 # type: textblock
9586 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2044
9587 msgid "If unavailable this is returned as an empty string C<\"\">."
9588 msgstr ""
9589
9590 # type: =item
9591 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2046
9592 msgid "C<app_trans_path>"
9593 msgstr ""
9594
9595 # type: textblock
9596 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2048
9597 msgid ""
9598 "The install path translated into a libguestfs path.  If unavailable this is "
9599 "returned as an empty string C<\"\">."
9600 msgstr ""
9601
9602 # type: =item
9603 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2051
9604 msgid "C<app_publisher>"
9605 msgstr ""
9606
9607 # type: textblock
9608 #: ../src/guestfs-actions.pod:2962 ../fish/guestfish-actions.pod:2053
9609 msgid ""
9610 "The name of the publisher of the application, for package managers that use "
9611 "this.  If unavailable this is returned as an empty string C<\"\">."
9612 msgstr ""
9613
9614 # type: =item
9615 #: ../src/guestfs-actions.pod:2966 ../fish/guestfish-actions.pod:2057
9616 msgid "C<app_url>"
9617 msgstr ""
9618
9619 # type: textblock
9620 #: ../src/guestfs-actions.pod:2968 ../fish/guestfish-actions.pod:2059
9621 msgid ""
9622 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9623 "returned as an empty string C<\"\">."
9624 msgstr ""
9625
9626 # type: =item
9627 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2062
9628 msgid "C<app_source_package>"
9629 msgstr ""
9630
9631 # type: textblock
9632 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2064
9633 msgid ""
9634 "For packaging systems which support this, the name of the source package.  "
9635 "If unavailable this is returned as an empty string C<\"\">."
9636 msgstr ""
9637
9638 # type: =item
9639 #: ../src/guestfs-actions.pod:2976 ../fish/guestfish-actions.pod:2067
9640 msgid "C<app_summary>"
9641 msgstr ""
9642
9643 # type: textblock
9644 #: ../src/guestfs-actions.pod:2978 ../fish/guestfish-actions.pod:2069
9645 msgid ""
9646 "A short (usually one line) description of the application or package.  If "
9647 "unavailable this is returned as an empty string C<\"\">."
9648 msgstr ""
9649
9650 # type: =item
9651 #: ../src/guestfs-actions.pod:2981 ../fish/guestfish-actions.pod:2072
9652 msgid "C<app_description>"
9653 msgstr ""
9654
9655 # type: textblock
9656 #: ../src/guestfs-actions.pod:2983 ../fish/guestfish-actions.pod:2074
9657 msgid ""
9658 "A longer description of the application or package.  If unavailable this is "
9659 "returned as an empty string C<\"\">."
9660 msgstr ""
9661
9662 # type: textblock
9663 #: ../src/guestfs-actions.pod:2990
9664 msgid ""
9665 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9666 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9667 "after use>."
9668 msgstr ""
9669
9670 # type: textblock
9671 #: ../src/guestfs-actions.pod:2994
9672 msgid "(Added in 1.7.8)"
9673 msgstr ""
9674
9675 # type: =head2
9676 #: ../src/guestfs-actions.pod:2996
9677 msgid "guestfs_inspect_os"
9678 msgstr ""
9679
9680 # type: verbatim
9681 #: ../src/guestfs-actions.pod:2998
9682 #, no-wrap
9683 msgid ""
9684 " char **\n"
9685 " guestfs_inspect_os (guestfs_h *g);\n"
9686 "\n"
9687 msgstr ""
9688
9689 # type: textblock
9690 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2085
9691 msgid ""
9692 "This function uses other libguestfs functions and certain heuristics to "
9693 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9694 "for operating systems."
9695 msgstr ""
9696
9697 # type: textblock
9698 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2089
9699 msgid "The list returned is empty if no operating systems were found."
9700 msgstr ""
9701
9702 # type: textblock
9703 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2091
9704 msgid ""
9705 "If one operating system was found, then this returns a list with a single "
9706 "element, which is the name of the root filesystem of this operating system.  "
9707 "It is also possible for this function to return a list containing more than "
9708 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9709 "element being the root filesystem of one of the operating systems."
9710 msgstr ""
9711
9712 # type: textblock
9713 #: ../src/guestfs-actions.pod:3014
9714 msgid ""
9715 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9716 "functions in order to query further information about each operating system, "
9717 "such as the name and version."
9718 msgstr ""
9719
9720 # type: textblock
9721 #: ../src/guestfs-actions.pod:3019
9722 msgid ""
9723 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9724 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9725 "the contents.  This should be called with no disks currently mounted.  The "
9726 "function may also use Augeas, so any existing Augeas handle will be closed."
9727 msgstr ""
9728
9729 # type: textblock
9730 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2109
9731 msgid ""
9732 "This function cannot decrypt encrypted disks.  The caller must do that first "
9733 "(supplying the necessary keys) if the disk is encrypted."
9734 msgstr ""
9735
9736 # type: textblock
9737 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3314
9738 #: ../src/guestfs-actions.pod:3376
9739 msgid "See also C<guestfs_list_filesystems>."
9740 msgstr ""
9741
9742 # type: =head2
9743 #: ../src/guestfs-actions.pod:3039
9744 msgid "guestfs_is_blockdev"
9745 msgstr ""
9746
9747 # type: verbatim
9748 #: ../src/guestfs-actions.pod:3041
9749 #, no-wrap
9750 msgid ""
9751 " int\n"
9752 " guestfs_is_blockdev (guestfs_h *g,\n"
9753 "                      const char *path);\n"
9754 "\n"
9755 msgstr ""
9756
9757 # type: textblock
9758 #: ../src/guestfs-actions.pod:3045 ../fish/guestfish-actions.pod:2121
9759 msgid ""
9760 "This returns C<true> if and only if there is a block device with the given "
9761 "C<path> name."
9762 msgstr ""
9763
9764 # type: textblock
9765 #: ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:3077
9766 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3122
9767 #: ../src/guestfs-actions.pod:3138 ../src/guestfs-actions.pod:3194
9768 #: ../src/guestfs-actions.pod:3209
9769 msgid "See also C<guestfs_stat>."
9770 msgstr ""
9771
9772 # type: textblock
9773 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3081
9774 #: ../src/guestfs-actions.pod:3126 ../src/guestfs-actions.pod:3198
9775 #: ../src/guestfs-actions.pod:3213
9776 msgid "(Added in 1.5.10)"
9777 msgstr ""
9778
9779 # type: =head2
9780 #: ../src/guestfs-actions.pod:3054
9781 msgid "guestfs_is_busy"
9782 msgstr ""
9783
9784 # type: verbatim
9785 #: ../src/guestfs-actions.pod:3056
9786 #, no-wrap
9787 msgid ""
9788 " int\n"
9789 " guestfs_is_busy (guestfs_h *g);\n"
9790 "\n"
9791 msgstr ""
9792
9793 # type: textblock
9794 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2130
9795 msgid ""
9796 "This returns true iff this handle is busy processing a command (in the "
9797 "C<BUSY> state)."
9798 msgstr ""
9799
9800 # type: =head2
9801 #: ../src/guestfs-actions.pod:3068
9802 msgid "guestfs_is_chardev"
9803 msgstr ""
9804
9805 # type: verbatim
9806 #: ../src/guestfs-actions.pod:3070
9807 #, no-wrap
9808 msgid ""
9809 " int\n"
9810 " guestfs_is_chardev (guestfs_h *g,\n"
9811 "                     const char *path);\n"
9812 "\n"
9813 msgstr ""
9814
9815 # type: textblock
9816 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2139
9817 msgid ""
9818 "This returns C<true> if and only if there is a character device with the "
9819 "given C<path> name."
9820 msgstr ""
9821
9822 # type: =head2
9823 #: ../src/guestfs-actions.pod:3083
9824 msgid "guestfs_is_config"
9825 msgstr ""
9826
9827 # type: verbatim
9828 #: ../src/guestfs-actions.pod:3085
9829 #, no-wrap
9830 msgid ""
9831 " int\n"
9832 " guestfs_is_config (guestfs_h *g);\n"
9833 "\n"
9834 msgstr ""
9835
9836 # type: textblock
9837 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2148
9838 msgid ""
9839 "This returns true iff this handle is being configured (in the C<CONFIG> "
9840 "state)."
9841 msgstr ""
9842
9843 # type: =head2
9844 #: ../src/guestfs-actions.pod:3097
9845 msgid "guestfs_is_dir"
9846 msgstr ""
9847
9848 # type: verbatim
9849 #: ../src/guestfs-actions.pod:3099
9850 #, no-wrap
9851 msgid ""
9852 " int\n"
9853 " guestfs_is_dir (guestfs_h *g,\n"
9854 "                 const char *path);\n"
9855 "\n"
9856 msgstr ""
9857
9858 # type: textblock
9859 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2157
9860 msgid ""
9861 "This returns C<true> if and only if there is a directory with the given "
9862 "C<path> name.  Note that it returns false for other objects like files."
9863 msgstr ""
9864
9865 # type: =head2
9866 #: ../src/guestfs-actions.pod:3113
9867 msgid "guestfs_is_fifo"
9868 msgstr ""
9869
9870 # type: verbatim
9871 #: ../src/guestfs-actions.pod:3115
9872 #, no-wrap
9873 msgid ""
9874 " int\n"
9875 " guestfs_is_fifo (guestfs_h *g,\n"
9876 "                  const char *path);\n"
9877 "\n"
9878 msgstr ""
9879
9880 # type: textblock
9881 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2167
9882 msgid ""
9883 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9884 "given C<path> name."
9885 msgstr ""
9886
9887 # type: =head2
9888 #: ../src/guestfs-actions.pod:3128
9889 msgid "guestfs_is_file"
9890 msgstr ""
9891
9892 # type: verbatim
9893 #: ../src/guestfs-actions.pod:3130
9894 #, no-wrap
9895 msgid ""
9896 " int\n"
9897 " guestfs_is_file (guestfs_h *g,\n"
9898 "                  const char *path);\n"
9899 "\n"
9900 msgstr ""
9901
9902 # type: textblock
9903 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2176
9904 msgid ""
9905 "This returns C<true> if and only if there is a regular file with the given "
9906 "C<path> name.  Note that it returns false for other objects like directories."
9907 msgstr ""
9908
9909 # type: =head2
9910 #: ../src/guestfs-actions.pod:3144
9911 msgid "guestfs_is_launching"
9912 msgstr ""
9913
9914 # type: verbatim
9915 #: ../src/guestfs-actions.pod:3146
9916 #, no-wrap
9917 msgid ""
9918 " int\n"
9919 " guestfs_is_launching (guestfs_h *g);\n"
9920 "\n"
9921 msgstr ""
9922
9923 # type: textblock
9924 #: ../src/guestfs-actions.pod:3149 ../fish/guestfish-actions.pod:2186
9925 msgid ""
9926 "This returns true iff this handle is launching the subprocess (in the "
9927 "C<LAUNCHING> state)."
9928 msgstr ""
9929
9930 # type: =head2
9931 #: ../src/guestfs-actions.pod:3158
9932 msgid "guestfs_is_lv"
9933 msgstr ""
9934
9935 # type: verbatim
9936 #: ../src/guestfs-actions.pod:3160
9937 #, no-wrap
9938 msgid ""
9939 " int\n"
9940 " guestfs_is_lv (guestfs_h *g,\n"
9941 "                const char *device);\n"
9942 "\n"
9943 msgstr ""
9944
9945 # type: textblock
9946 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2195
9947 msgid ""
9948 "This command tests whether C<device> is a logical volume, and returns true "
9949 "iff this is the case."
9950 msgstr ""
9951
9952 # type: =head2
9953 #: ../src/guestfs-actions.pod:3171
9954 msgid "guestfs_is_ready"
9955 msgstr ""
9956
9957 # type: verbatim
9958 #: ../src/guestfs-actions.pod:3173
9959 #, no-wrap
9960 msgid ""
9961 " int\n"
9962 " guestfs_is_ready (guestfs_h *g);\n"
9963 "\n"
9964 msgstr ""
9965
9966 # type: textblock
9967 #: ../src/guestfs-actions.pod:3176 ../fish/guestfish-actions.pod:2202
9968 msgid ""
9969 "This returns true iff this handle is ready to accept commands (in the "
9970 "C<READY> state)."
9971 msgstr ""
9972
9973 # type: =head2
9974 #: ../src/guestfs-actions.pod:3185
9975 msgid "guestfs_is_socket"
9976 msgstr ""
9977
9978 # type: verbatim
9979 #: ../src/guestfs-actions.pod:3187
9980 #, no-wrap
9981 msgid ""
9982 " int\n"
9983 " guestfs_is_socket (guestfs_h *g,\n"
9984 "                    const char *path);\n"
9985 "\n"
9986 msgstr ""
9987
9988 # type: textblock
9989 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2211
9990 msgid ""
9991 "This returns C<true> if and only if there is a Unix domain socket with the "
9992 "given C<path> name."
9993 msgstr ""
9994
9995 # type: =head2
9996 #: ../src/guestfs-actions.pod:3200
9997 msgid "guestfs_is_symlink"
9998 msgstr ""
9999
10000 # type: verbatim
10001 #: ../src/guestfs-actions.pod:3202
10002 #, no-wrap
10003 msgid ""
10004 " int\n"
10005 " guestfs_is_symlink (guestfs_h *g,\n"
10006 "                     const char *path);\n"
10007 "\n"
10008 msgstr ""
10009
10010 # type: textblock
10011 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
10012 msgid ""
10013 "This returns C<true> if and only if there is a symbolic link with the given "
10014 "C<path> name."
10015 msgstr ""
10016
10017 # type: =head2
10018 #: ../src/guestfs-actions.pod:3215
10019 msgid "guestfs_kill_subprocess"
10020 msgstr ""
10021
10022 # type: verbatim
10023 #: ../src/guestfs-actions.pod:3217
10024 #, no-wrap
10025 msgid ""
10026 " int\n"
10027 " guestfs_kill_subprocess (guestfs_h *g);\n"
10028 "\n"
10029 msgstr ""
10030
10031 # type: textblock
10032 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2229
10033 msgid "This kills the qemu subprocess.  You should never need to call this."
10034 msgstr ""
10035
10036 # type: =head2
10037 #: ../src/guestfs-actions.pod:3226
10038 msgid "guestfs_launch"
10039 msgstr ""
10040
10041 # type: verbatim
10042 #: ../src/guestfs-actions.pod:3228
10043 #, no-wrap
10044 msgid ""
10045 " int\n"
10046 " guestfs_launch (guestfs_h *g);\n"
10047 "\n"
10048 msgstr ""
10049
10050 # type: textblock
10051 #: ../src/guestfs-actions.pod:3231 ../fish/guestfish-actions.pod:2237
10052 msgid ""
10053 "Internally libguestfs is implemented by running a virtual machine using "
10054 "L<qemu(1)>."
10055 msgstr ""
10056
10057 # type: textblock
10058 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2240
10059 msgid ""
10060 "You should call this after configuring the handle (eg. adding drives) but "
10061 "before performing any actions."
10062 msgstr ""
10063
10064 # type: =head2
10065 #: ../src/guestfs-actions.pod:3241
10066 msgid "guestfs_lchown"
10067 msgstr ""
10068
10069 # type: verbatim
10070 #: ../src/guestfs-actions.pod:3243
10071 #, no-wrap
10072 msgid ""
10073 " int\n"
10074 " guestfs_lchown (guestfs_h *g,\n"
10075 "                 int owner,\n"
10076 "                 int group,\n"
10077 "                 const char *path);\n"
10078 "\n"
10079 msgstr ""
10080
10081 # type: textblock
10082 #: ../src/guestfs-actions.pod:3249
10083 msgid ""
10084 "Change the file owner to C<owner> and group to C<group>.  This is like "
10085 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
10086 "changed, not the target."
10087 msgstr ""
10088
10089 # type: =head2
10090 #: ../src/guestfs-actions.pod:3261
10091 msgid "guestfs_lgetxattr"
10092 msgstr ""
10093
10094 # type: verbatim
10095 #: ../src/guestfs-actions.pod:3263
10096 #, no-wrap
10097 msgid ""
10098 " char *\n"
10099 " guestfs_lgetxattr (guestfs_h *g,\n"
10100 "                    const char *path,\n"
10101 "                    const char *name,\n"
10102 "                    size_t *size_r);\n"
10103 "\n"
10104 msgstr ""
10105
10106 # type: textblock
10107 #: ../src/guestfs-actions.pod:3269 ../fish/guestfish-actions.pod:2259
10108 msgid ""
10109 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10110 "is a symlink, then this call returns an extended attribute from the symlink."
10111 msgstr ""
10112
10113 # type: textblock
10114 #: ../src/guestfs-actions.pod:3283
10115 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
10116 msgstr ""
10117
10118 # type: =head2
10119 #: ../src/guestfs-actions.pod:3289
10120 msgid "guestfs_lgetxattrs"
10121 msgstr ""
10122
10123 # type: verbatim
10124 #: ../src/guestfs-actions.pod:3291
10125 #, no-wrap
10126 msgid ""
10127 " struct guestfs_xattr_list *\n"
10128 " guestfs_lgetxattrs (guestfs_h *g,\n"
10129 "                     const char *path);\n"
10130 "\n"
10131 msgstr ""
10132
10133 # type: textblock
10134 #: ../src/guestfs-actions.pod:3295
10135 msgid ""
10136 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
10137 "then it returns the extended attributes of the link itself."
10138 msgstr ""
10139
10140 # type: =head2
10141 #: ../src/guestfs-actions.pod:3305
10142 msgid "guestfs_list_devices"
10143 msgstr ""
10144
10145 # type: verbatim
10146 #: ../src/guestfs-actions.pod:3307
10147 #, no-wrap
10148 msgid ""
10149 " char **\n"
10150 " guestfs_list_devices (guestfs_h *g);\n"
10151 "\n"
10152 msgstr ""
10153
10154 # type: textblock
10155 #: ../src/guestfs-actions.pod:3310 ../fish/guestfish-actions.pod:2287
10156 msgid "List all the block devices."
10157 msgstr ""
10158
10159 # type: textblock
10160 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2289
10161 msgid "The full block device names are returned, eg. C</dev/sda>."
10162 msgstr ""
10163
10164 # type: =head2
10165 #: ../src/guestfs-actions.pod:3322
10166 msgid "guestfs_list_filesystems"
10167 msgstr ""
10168
10169 # type: verbatim
10170 #: ../src/guestfs-actions.pod:3324
10171 #, no-wrap
10172 msgid ""
10173 " char **\n"
10174 " guestfs_list_filesystems (guestfs_h *g);\n"
10175 "\n"
10176 msgstr ""
10177
10178 # type: textblock
10179 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2297
10180 msgid ""
10181 "This inspection command looks for filesystems on partitions, block devices "
10182 "and logical volumes, returning a list of devices containing filesystems and "
10183 "their type."
10184 msgstr ""
10185
10186 # type: textblock
10187 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:2301
10188 msgid ""
10189 "The return value is a hash, where the keys are the devices containing "
10190 "filesystems, and the values are the filesystem types.  For example:"
10191 msgstr ""
10192
10193 # type: verbatim
10194 #: ../src/guestfs-actions.pod:3335 ../fish/guestfish-actions.pod:2305
10195 #, no-wrap
10196 msgid ""
10197 " \"/dev/sda1\" => \"ntfs\"\n"
10198 " \"/dev/sda2\" => \"ext2\"\n"
10199 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10200 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10201 "\n"
10202 msgstr ""
10203
10204 # type: textblock
10205 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2310
10206 msgid ""
10207 "The value can have the special value \"unknown\", meaning the content of the "
10208 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10209 msgstr ""
10210
10211 # type: textblock
10212 #: ../src/guestfs-actions.pod:3344
10213 msgid ""
10214 "This command runs other libguestfs commands, which might include "
10215 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10216 "soon after launch and only when nothing is mounted."
10217 msgstr ""
10218
10219 # type: textblock
10220 #: ../src/guestfs-actions.pod:3348
10221 msgid ""
10222 "Not all of the filesystems returned will be mountable.  In particular, swap "
10223 "partitions are returned in the list.  Also this command does not check that "
10224 "each filesystem found is valid and mountable, and some filesystems might be "
10225 "mountable but require special options.  Filesystems may not all belong to a "
10226 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10227 msgstr ""
10228
10229 # type: textblock
10230 #: ../src/guestfs-actions.pod:3362 ../src/guestfs-actions.pod:4951
10231 msgid "(Added in 1.5.15)"
10232 msgstr ""
10233
10234 # type: =head2
10235 #: ../src/guestfs-actions.pod:3364
10236 msgid "guestfs_list_partitions"
10237 msgstr ""
10238
10239 # type: verbatim
10240 #: ../src/guestfs-actions.pod:3366
10241 #, no-wrap
10242 msgid ""
10243 " char **\n"
10244 " guestfs_list_partitions (guestfs_h *g);\n"
10245 "\n"
10246 msgstr ""
10247
10248 # type: textblock
10249 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2330
10250 msgid "List all the partitions detected on all block devices."
10251 msgstr ""
10252
10253 # type: textblock
10254 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2332
10255 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10256 msgstr ""
10257
10258 # type: textblock
10259 #: ../src/guestfs-actions.pod:3373
10260 msgid ""
10261 "This does not return logical volumes.  For that you will need to call "
10262 "C<guestfs_lvs>."
10263 msgstr ""
10264
10265 # type: =head2
10266 #: ../src/guestfs-actions.pod:3384
10267 msgid "guestfs_ll"
10268 msgstr ""
10269
10270 # type: verbatim
10271 #: ../src/guestfs-actions.pod:3386
10272 #, no-wrap
10273 msgid ""
10274 " char *\n"
10275 " guestfs_ll (guestfs_h *g,\n"
10276 "             const char *directory);\n"
10277 "\n"
10278 msgstr ""
10279
10280 # type: textblock
10281 #: ../src/guestfs-actions.pod:3390 ../fish/guestfish-actions.pod:2343
10282 msgid ""
10283 "List the files in C<directory> (relative to the root directory, there is no "
10284 "cwd) in the format of 'ls -la'."
10285 msgstr ""
10286
10287 # type: textblock
10288 #: ../src/guestfs-actions.pod:3393 ../fish/guestfish-actions.pod:2346
10289 msgid ""
10290 "This command is mostly useful for interactive sessions.  It is I<not> "
10291 "intended that you try to parse the output string."
10292 msgstr ""
10293
10294 # type: =head2
10295 #: ../src/guestfs-actions.pod:3401
10296 msgid "guestfs_ln"
10297 msgstr ""
10298
10299 # type: verbatim
10300 #: ../src/guestfs-actions.pod:3403
10301 #, no-wrap
10302 msgid ""
10303 " int\n"
10304 " guestfs_ln (guestfs_h *g,\n"
10305 "             const char *target,\n"
10306 "             const char *linkname);\n"
10307 "\n"
10308 msgstr ""
10309
10310 # type: textblock
10311 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2353
10312 msgid "This command creates a hard link using the C<ln> command."
10313 msgstr ""
10314
10315 # type: =head2
10316 #: ../src/guestfs-actions.pod:3414
10317 msgid "guestfs_ln_f"
10318 msgstr ""
10319
10320 # type: verbatim
10321 #: ../src/guestfs-actions.pod:3416
10322 #, no-wrap
10323 msgid ""
10324 " int\n"
10325 " guestfs_ln_f (guestfs_h *g,\n"
10326 "               const char *target,\n"
10327 "               const char *linkname);\n"
10328 "\n"
10329 msgstr ""
10330
10331 # type: textblock
10332 #: ../src/guestfs-actions.pod:3421 ../fish/guestfish-actions.pod:2359
10333 msgid ""
10334 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10335 "option removes the link (C<linkname>) if it exists already."
10336 msgstr ""
10337
10338 # type: =head2
10339 #: ../src/guestfs-actions.pod:3428
10340 msgid "guestfs_ln_s"
10341 msgstr ""
10342
10343 # type: verbatim
10344 #: ../src/guestfs-actions.pod:3430
10345 #, no-wrap
10346 msgid ""
10347 " int\n"
10348 " guestfs_ln_s (guestfs_h *g,\n"
10349 "               const char *target,\n"
10350 "               const char *linkname);\n"
10351 "\n"
10352 msgstr ""
10353
10354 # type: textblock
10355 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2366
10356 msgid "This command creates a symbolic link using the C<ln -s> command."
10357 msgstr ""
10358
10359 # type: =head2
10360 #: ../src/guestfs-actions.pod:3441
10361 msgid "guestfs_ln_sf"
10362 msgstr ""
10363
10364 # type: verbatim
10365 #: ../src/guestfs-actions.pod:3443
10366 #, no-wrap
10367 msgid ""
10368 " int\n"
10369 " guestfs_ln_sf (guestfs_h *g,\n"
10370 "                const char *target,\n"
10371 "                const char *linkname);\n"
10372 "\n"
10373 msgstr ""
10374
10375 # type: textblock
10376 #: ../src/guestfs-actions.pod:3448 ../fish/guestfish-actions.pod:2372
10377 msgid ""
10378 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10379 "option removes the link (C<linkname>) if it exists already."
10380 msgstr ""
10381
10382 # type: =head2
10383 #: ../src/guestfs-actions.pod:3455
10384 msgid "guestfs_lremovexattr"
10385 msgstr ""
10386
10387 # type: verbatim
10388 #: ../src/guestfs-actions.pod:3457
10389 #, no-wrap
10390 msgid ""
10391 " int\n"
10392 " guestfs_lremovexattr (guestfs_h *g,\n"
10393 "                       const char *xattr,\n"
10394 "                       const char *path);\n"
10395 "\n"
10396 msgstr ""
10397
10398 # type: textblock
10399 #: ../src/guestfs-actions.pod:3462
10400 msgid ""
10401 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10402 "link, then it removes an extended attribute of the link itself."
10403 msgstr ""
10404
10405 # type: =head2
10406 #: ../src/guestfs-actions.pod:3470
10407 msgid "guestfs_ls"
10408 msgstr ""
10409
10410 # type: verbatim
10411 #: ../src/guestfs-actions.pod:3472
10412 #, no-wrap
10413 msgid ""
10414 " char **\n"
10415 " guestfs_ls (guestfs_h *g,\n"
10416 "             const char *directory);\n"
10417 "\n"
10418 msgstr ""
10419
10420 # type: textblock
10421 #: ../src/guestfs-actions.pod:3476 ../fish/guestfish-actions.pod:2387
10422 msgid ""
10423 "List the files in C<directory> (relative to the root directory, there is no "
10424 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10425 msgstr ""
10426
10427 # type: textblock
10428 #: ../src/guestfs-actions.pod:3480
10429 msgid ""
10430 "This command is mostly useful for interactive sessions.  Programs should "
10431 "probably use C<guestfs_readdir> instead."
10432 msgstr ""
10433
10434 # type: =head2
10435 #: ../src/guestfs-actions.pod:3489
10436 msgid "guestfs_lsetxattr"
10437 msgstr ""
10438
10439 # type: verbatim
10440 #: ../src/guestfs-actions.pod:3491
10441 #, no-wrap
10442 msgid ""
10443 " int\n"
10444 " guestfs_lsetxattr (guestfs_h *g,\n"
10445 "                    const char *xattr,\n"
10446 "                    const char *val,\n"
10447 "                    int vallen,\n"
10448 "                    const char *path);\n"
10449 "\n"
10450 msgstr ""
10451
10452 # type: textblock
10453 #: ../src/guestfs-actions.pod:3498
10454 msgid ""
10455 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10456 "then it sets an extended attribute of the link itself."
10457 msgstr ""
10458
10459 # type: =head2
10460 #: ../src/guestfs-actions.pod:3506
10461 msgid "guestfs_lstat"
10462 msgstr ""
10463
10464 # type: verbatim
10465 #: ../src/guestfs-actions.pod:3508
10466 #, no-wrap
10467 msgid ""
10468 " struct guestfs_stat *\n"
10469 " guestfs_lstat (guestfs_h *g,\n"
10470 "                const char *path);\n"
10471 "\n"
10472 msgstr ""
10473
10474 # type: textblock
10475 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:6005
10476 #: ../fish/guestfish-actions.pod:2406 ../fish/guestfish-actions.pod:4019
10477 msgid "Returns file information for the given C<path>."
10478 msgstr ""
10479
10480 # type: textblock
10481 #: ../src/guestfs-actions.pod:3514
10482 msgid ""
10483 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10484 "link, then the link is stat-ed, not the file it refers to."
10485 msgstr ""
10486
10487 # type: textblock
10488 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2412
10489 msgid "This is the same as the C<lstat(2)> system call."
10490 msgstr ""
10491
10492 # type: textblock
10493 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:6009
10494 msgid ""
10495 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10496 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10497 msgstr ""
10498
10499 # type: textblock
10500 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:6013
10501 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6412
10502 msgid "(Added in 0.9.2)"
10503 msgstr ""
10504
10505 # type: =head2
10506 #: ../src/guestfs-actions.pod:3526
10507 msgid "guestfs_lstatlist"
10508 msgstr ""
10509
10510 # type: verbatim
10511 #: ../src/guestfs-actions.pod:3528
10512 #, no-wrap
10513 msgid ""
10514 " struct guestfs_stat_list *\n"
10515 " guestfs_lstatlist (guestfs_h *g,\n"
10516 "                    const char *path,\n"
10517 "                    char *const *names);\n"
10518 "\n"
10519 msgstr ""
10520
10521 # type: textblock
10522 #: ../src/guestfs-actions.pod:3533
10523 msgid ""
10524 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10525 "files, where all files are in the directory C<path>.  C<names> is the list "
10526 "of files from this directory."
10527 msgstr ""
10528
10529 # type: textblock
10530 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2422
10531 msgid ""
10532 "On return you get a list of stat structs, with a one-to-one correspondence "
10533 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10534 "then the C<ino> field of that structure is set to C<-1>."
10535 msgstr ""
10536
10537 # type: textblock
10538 #: ../src/guestfs-actions.pod:3542
10539 msgid ""
10540 "This call is intended for programs that want to efficiently list a directory "
10541 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10542 "for a similarly efficient call for getting extended attributes.  Very long "
10543 "directory listings might cause the protocol message size to be exceeded, "
10544 "causing this call to fail.  The caller must split up such requests into "
10545 "smaller groups of names."
10546 msgstr ""
10547
10548 # type: textblock
10549 #: ../src/guestfs-actions.pod:3550
10550 msgid ""
10551 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10552 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10553 msgstr ""
10554
10555 # type: =head2
10556 #: ../src/guestfs-actions.pod:3556
10557 msgid "guestfs_luks_add_key"
10558 msgstr ""
10559
10560 # type: verbatim
10561 #: ../src/guestfs-actions.pod:3558
10562 #, no-wrap
10563 msgid ""
10564 " int\n"
10565 " guestfs_luks_add_key (guestfs_h *g,\n"
10566 "                       const char *device,\n"
10567 "                       const char *key,\n"
10568 "                       const char *newkey,\n"
10569 "                       int keyslot);\n"
10570 "\n"
10571 msgstr ""
10572
10573 # type: textblock
10574 #: ../src/guestfs-actions.pod:3565 ../fish/guestfish-actions.pod:2439
10575 msgid ""
10576 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10577 "existing key, and is used to access the device.  C<newkey> is the new key to "
10578 "add.  C<keyslot> is the key slot that will be replaced."
10579 msgstr ""
10580
10581 # type: textblock
10582 #: ../src/guestfs-actions.pod:3570
10583 msgid ""
10584 "Note that if C<keyslot> already contains a key, then this command will "
10585 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10586 msgstr ""
10587
10588 # type: textblock
10589 #: ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3616
10590 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3659
10591 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3710
10592 msgid ""
10593 "This function takes a key or passphrase parameter which could contain "
10594 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10595 "information."
10596 msgstr ""
10597
10598 # type: textblock
10599 #: ../src/guestfs-actions.pod:3580 ../src/guestfs-actions.pod:3620
10600 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3663
10601 msgid "(Added in 1.5.2)"
10602 msgstr ""
10603
10604 # type: =head2
10605 #: ../src/guestfs-actions.pod:3582
10606 msgid "guestfs_luks_close"
10607 msgstr ""
10608
10609 # type: verbatim
10610 #: ../src/guestfs-actions.pod:3584
10611 #, no-wrap
10612 msgid ""
10613 " int\n"
10614 " guestfs_luks_close (guestfs_h *g,\n"
10615 "                     const char *device);\n"
10616 "\n"
10617 msgstr ""
10618
10619 # type: textblock
10620 #: ../src/guestfs-actions.pod:3588
10621 msgid ""
10622 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10623 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10624 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10625 "underlying block device."
10626 msgstr ""
10627
10628 # type: textblock
10629 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3695
10630 #: ../src/guestfs-actions.pod:3714 ../src/guestfs-actions.pod:3764
10631 #: ../src/guestfs-actions.pod:3812
10632 msgid "(Added in 1.5.1)"
10633 msgstr ""
10634
10635 # type: =head2
10636 #: ../src/guestfs-actions.pod:3598
10637 msgid "guestfs_luks_format"
10638 msgstr ""
10639
10640 # type: verbatim
10641 #: ../src/guestfs-actions.pod:3600
10642 #, no-wrap
10643 msgid ""
10644 " int\n"
10645 " guestfs_luks_format (guestfs_h *g,\n"
10646 "                      const char *device,\n"
10647 "                      const char *key,\n"
10648 "                      int keyslot);\n"
10649 "\n"
10650 msgstr ""
10651
10652 # type: textblock
10653 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2465
10654 msgid ""
10655 "This command erases existing data on C<device> and formats the device as a "
10656 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10657 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10658 msgstr ""
10659
10660 # type: textblock
10661 #: ../src/guestfs-actions.pod:3613 ../src/guestfs-actions.pod:3636
10662 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:4702
10663 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5840
10664 #: ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5889
10665 #: ../src/guestfs-actions.pod:7049 ../fish/guestfish-actions.pod:2473
10666 #: ../fish/guestfish-actions.pod:2486 ../fish/guestfish-actions.pod:2570
10667 #: ../fish/guestfish-actions.pod:3131 ../fish/guestfish-actions.pod:3638
10668 #: ../fish/guestfish-actions.pod:3918 ../fish/guestfish-actions.pod:3934
10669 #: ../fish/guestfish-actions.pod:3949 ../fish/guestfish-actions.pod:4664
10670 msgid ""
10671 "B<This command is dangerous.  Without careful use you can easily destroy all "
10672 "your data>."
10673 msgstr ""
10674
10675 # type: =head2
10676 #: ../src/guestfs-actions.pod:3622
10677 msgid "guestfs_luks_format_cipher"
10678 msgstr ""
10679
10680 # type: verbatim
10681 #: ../src/guestfs-actions.pod:3624
10682 #, no-wrap
10683 msgid ""
10684 " int\n"
10685 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10686 "                             const char *device,\n"
10687 "                             const char *key,\n"
10688 "                             int keyslot,\n"
10689 "                             const char *cipher);\n"
10690 "\n"
10691 msgstr ""
10692
10693 # type: textblock
10694 #: ../src/guestfs-actions.pod:3631
10695 msgid ""
10696 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10697 "set the C<cipher> used."
10698 msgstr ""
10699
10700 # type: =head2
10701 #: ../src/guestfs-actions.pod:3645
10702 msgid "guestfs_luks_kill_slot"
10703 msgstr ""
10704
10705 # type: verbatim
10706 #: ../src/guestfs-actions.pod:3647
10707 #, no-wrap
10708 msgid ""
10709 " int\n"
10710 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10711 "                         const char *device,\n"
10712 "                         const char *key,\n"
10713 "                         int keyslot);\n"
10714 "\n"
10715 msgstr ""
10716
10717 # type: textblock
10718 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2493
10719 msgid ""
10720 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10721 "device C<device>.  C<key> must be one of the I<other> keys."
10722 msgstr ""
10723
10724 # type: =head2
10725 #: ../src/guestfs-actions.pod:3665
10726 msgid "guestfs_luks_open"
10727 msgstr ""
10728
10729 # type: verbatim
10730 #: ../src/guestfs-actions.pod:3667
10731 #, no-wrap
10732 msgid ""
10733 " int\n"
10734 " guestfs_luks_open (guestfs_h *g,\n"
10735 "                    const char *device,\n"
10736 "                    const char *key,\n"
10737 "                    const char *mapname);\n"
10738 "\n"
10739 msgstr ""
10740
10741 # type: textblock
10742 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2504
10743 msgid ""
10744 "This command opens a block device which has been encrypted according to the "
10745 "Linux Unified Key Setup (LUKS) standard."
10746 msgstr ""
10747
10748 # type: textblock
10749 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2507
10750 msgid "C<device> is the encrypted block device or partition."
10751 msgstr ""
10752
10753 # type: textblock
10754 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2509
10755 msgid ""
10756 "The caller must supply one of the keys associated with the LUKS block "
10757 "device, in the C<key> parameter."
10758 msgstr ""
10759
10760 # type: textblock
10761 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2512
10762 msgid ""
10763 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10764 "writes to this block device are decrypted from and encrypted to the "
10765 "underlying C<device> respectively."
10766 msgstr ""
10767
10768 # type: textblock
10769 #: ../src/guestfs-actions.pod:3685
10770 msgid ""
10771 "If this block device contains LVM volume groups, then calling "
10772 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10773 "visible."
10774 msgstr ""
10775
10776 # type: =head2
10777 #: ../src/guestfs-actions.pod:3697
10778 msgid "guestfs_luks_open_ro"
10779 msgstr ""
10780
10781 # type: verbatim
10782 #: ../src/guestfs-actions.pod:3699
10783 #, no-wrap
10784 msgid ""
10785 " int\n"
10786 " guestfs_luks_open_ro (guestfs_h *g,\n"
10787 "                       const char *device,\n"
10788 "                       const char *key,\n"
10789 "                       const char *mapname);\n"
10790 "\n"
10791 msgstr ""
10792
10793 # type: textblock
10794 #: ../src/guestfs-actions.pod:3705
10795 msgid ""
10796 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10797 "created."
10798 msgstr ""
10799
10800 # type: =head2
10801 #: ../src/guestfs-actions.pod:3716
10802 msgid "guestfs_lvcreate"
10803 msgstr ""
10804
10805 # type: verbatim
10806 #: ../src/guestfs-actions.pod:3718
10807 #, no-wrap
10808 msgid ""
10809 " int\n"
10810 " guestfs_lvcreate (guestfs_h *g,\n"
10811 "                   const char *logvol,\n"
10812 "                   const char *volgroup,\n"
10813 "                   int mbytes);\n"
10814 "\n"
10815 msgstr ""
10816
10817 # type: textblock
10818 #: ../src/guestfs-actions.pod:3724 ../fish/guestfish-actions.pod:2537
10819 msgid ""
10820 "This creates an LVM logical volume called C<logvol> on the volume group "
10821 "C<volgroup>, with C<size> megabytes."
10822 msgstr ""
10823
10824 # type: =head2
10825 #: ../src/guestfs-actions.pod:3731
10826 msgid "guestfs_lvm_canonical_lv_name"
10827 msgstr ""
10828
10829 # type: verbatim
10830 #: ../src/guestfs-actions.pod:3733
10831 #, no-wrap
10832 msgid ""
10833 " char *\n"
10834 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10835 "                                const char *lvname);\n"
10836 "\n"
10837 msgstr ""
10838
10839 # type: textblock
10840 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2544
10841 msgid ""
10842 "This converts alternative naming schemes for LVs that you might find to the "
10843 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10844 "LV>."
10845 msgstr ""
10846
10847 # type: textblock
10848 #: ../src/guestfs-actions.pod:3741 ../fish/guestfish-actions.pod:2548
10849 msgid ""
10850 "This command returns an error if the C<lvname> parameter does not refer to a "
10851 "logical volume."
10852 msgstr ""
10853
10854 # type: textblock
10855 #: ../src/guestfs-actions.pod:3744
10856 msgid "See also C<guestfs_is_lv>."
10857 msgstr ""
10858
10859 # type: textblock
10860 #: ../src/guestfs-actions.pod:3749
10861 msgid "(Added in 1.5.24)"
10862 msgstr ""
10863
10864 # type: =head2
10865 #: ../src/guestfs-actions.pod:3751
10866 msgid "guestfs_lvm_clear_filter"
10867 msgstr ""
10868
10869 # type: verbatim
10870 #: ../src/guestfs-actions.pod:3753
10871 #, no-wrap
10872 msgid ""
10873 " int\n"
10874 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10875 "\n"
10876 msgstr ""
10877
10878 # type: textblock
10879 #: ../src/guestfs-actions.pod:3756
10880 msgid ""
10881 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10882 "see every block device."
10883 msgstr ""
10884
10885 # type: textblock
10886 #: ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3801
10887 #: ../fish/guestfish-actions.pod:2560 ../fish/guestfish-actions.pod:2591
10888 msgid ""
10889 "This command also clears the LVM cache and performs a volume group scan."
10890 msgstr ""
10891
10892 # type: =head2
10893 #: ../src/guestfs-actions.pod:3766
10894 msgid "guestfs_lvm_remove_all"
10895 msgstr ""
10896
10897 # type: verbatim
10898 #: ../src/guestfs-actions.pod:3768
10899 #, no-wrap
10900 msgid ""
10901 " int\n"
10902 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10903 "\n"
10904 msgstr ""
10905
10906 # type: textblock
10907 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2567
10908 msgid ""
10909 "This command removes all LVM logical volumes, volume groups and physical "
10910 "volumes."
10911 msgstr ""
10912
10913 # type: =head2
10914 #: ../src/guestfs-actions.pod:3781
10915 msgid "guestfs_lvm_set_filter"
10916 msgstr ""
10917
10918 # type: verbatim
10919 #: ../src/guestfs-actions.pod:3783
10920 #, no-wrap
10921 msgid ""
10922 " int\n"
10923 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10924 "                         char *const *devices);\n"
10925 "\n"
10926 msgstr ""
10927
10928 # type: textblock
10929 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2577
10930 msgid ""
10931 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10932 "block devices in the list C<devices>, and will ignore all other attached "
10933 "block devices."
10934 msgstr ""
10935
10936 # type: textblock
10937 #: ../src/guestfs-actions.pod:3791 ../fish/guestfish-actions.pod:2581
10938 msgid ""
10939 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10940 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10941 "there are two types of duplication possible: either cloned PVs/VGs which "
10942 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10943 "same name.  In normal operation you cannot create this situation, but you "
10944 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10945 "inside the LVM metadata."
10946 msgstr ""
10947
10948 # type: textblock
10949 #: ../src/guestfs-actions.pod:3804 ../fish/guestfish-actions.pod:2594
10950 msgid "You can filter whole block devices or individual partitions."
10951 msgstr ""
10952
10953 # type: textblock
10954 #: ../src/guestfs-actions.pod:3806 ../fish/guestfish-actions.pod:2596
10955 msgid ""
10956 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10957 "filesystem), even if you are not filtering out that VG."
10958 msgstr ""
10959
10960 # type: =head2
10961 #: ../src/guestfs-actions.pod:3814
10962 msgid "guestfs_lvremove"
10963 msgstr ""
10964
10965 # type: verbatim
10966 #: ../src/guestfs-actions.pod:3816
10967 #, no-wrap
10968 msgid ""
10969 " int\n"
10970 " guestfs_lvremove (guestfs_h *g,\n"
10971 "                   const char *device);\n"
10972 "\n"
10973 msgstr ""
10974
10975 # type: textblock
10976 #: ../src/guestfs-actions.pod:3820 ../fish/guestfish-actions.pod:2604
10977 msgid ""
10978 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10979 "LV, such as C</dev/VG/LV>."
10980 msgstr ""
10981
10982 # type: textblock
10983 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2607
10984 msgid ""
10985 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10986 "dev/VG>."
10987 msgstr ""
10988
10989 # type: textblock
10990 #: ../src/guestfs-actions.pod:3828 ../src/guestfs-actions.pod:5048
10991 #: ../src/guestfs-actions.pod:6788
10992 msgid "(Added in 1.0.13)"
10993 msgstr ""
10994
10995 # type: =head2
10996 #: ../src/guestfs-actions.pod:3830
10997 msgid "guestfs_lvrename"
10998 msgstr ""
10999
11000 # type: verbatim
11001 #: ../src/guestfs-actions.pod:3832
11002 #, no-wrap
11003 msgid ""
11004 " int\n"
11005 " guestfs_lvrename (guestfs_h *g,\n"
11006 "                   const char *logvol,\n"
11007 "                   const char *newlogvol);\n"
11008 "\n"
11009 msgstr ""
11010
11011 # type: textblock
11012 #: ../src/guestfs-actions.pod:3837 ../fish/guestfish-actions.pod:2614
11013 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11014 msgstr ""
11015
11016 # type: textblock
11017 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:6801
11018 msgid "(Added in 1.0.83)"
11019 msgstr ""
11020
11021 # type: =head2
11022 #: ../src/guestfs-actions.pod:3843
11023 msgid "guestfs_lvresize"
11024 msgstr ""
11025
11026 # type: verbatim
11027 #: ../src/guestfs-actions.pod:3845
11028 #, no-wrap
11029 msgid ""
11030 " int\n"
11031 " guestfs_lvresize (guestfs_h *g,\n"
11032 "                   const char *device,\n"
11033 "                   int mbytes);\n"
11034 "\n"
11035 msgstr ""
11036
11037 # type: textblock
11038 #: ../src/guestfs-actions.pod:3850 ../fish/guestfish-actions.pod:2620
11039 msgid ""
11040 "This resizes (expands or shrinks) an existing LVM logical volume to "
11041 "C<mbytes>.  When reducing, data in the reduced part is lost."
11042 msgstr ""
11043
11044 # type: =head2
11045 #: ../src/guestfs-actions.pod:3858
11046 msgid "guestfs_lvresize_free"
11047 msgstr ""
11048
11049 # type: verbatim
11050 #: ../src/guestfs-actions.pod:3860
11051 #, no-wrap
11052 msgid ""
11053 " int\n"
11054 " guestfs_lvresize_free (guestfs_h *g,\n"
11055 "                        const char *lv,\n"
11056 "                        int percent);\n"
11057 "\n"
11058 msgstr ""
11059
11060 # type: textblock
11061 #: ../src/guestfs-actions.pod:3865 ../fish/guestfish-actions.pod:2628
11062 msgid ""
11063 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11064 "remaining free space in the volume group.  Commonly you would call this with "
11065 "pc = 100 which expands the logical volume as much as possible, using all "
11066 "remaining free space in the volume group."
11067 msgstr ""
11068
11069 # type: textblock
11070 #: ../src/guestfs-actions.pod:3873
11071 msgid "(Added in 1.3.3)"
11072 msgstr ""
11073
11074 # type: =head2
11075 #: ../src/guestfs-actions.pod:3875
11076 msgid "guestfs_lvs"
11077 msgstr ""
11078
11079 # type: verbatim
11080 #: ../src/guestfs-actions.pod:3877
11081 #, no-wrap
11082 msgid ""
11083 " char **\n"
11084 " guestfs_lvs (guestfs_h *g);\n"
11085 "\n"
11086 msgstr ""
11087
11088 # type: textblock
11089 #: ../src/guestfs-actions.pod:3880 ../fish/guestfish-actions.pod:2638
11090 msgid ""
11091 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11092 "(8)> command."
11093 msgstr ""
11094
11095 # type: textblock
11096 #: ../src/guestfs-actions.pod:3883 ../fish/guestfish-actions.pod:2641
11097 msgid ""
11098 "This returns a list of the logical volume device names (eg. C</dev/"
11099 "VolGroup00/LogVol00>)."
11100 msgstr ""
11101
11102 # type: textblock
11103 #: ../src/guestfs-actions.pod:3886
11104 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
11105 msgstr ""
11106
11107 # type: =head2
11108 #: ../src/guestfs-actions.pod:3894
11109 msgid "guestfs_lvs_full"
11110 msgstr ""
11111
11112 # type: verbatim
11113 #: ../src/guestfs-actions.pod:3896
11114 #, no-wrap
11115 msgid ""
11116 " struct guestfs_lvm_lv_list *\n"
11117 " guestfs_lvs_full (guestfs_h *g);\n"
11118 "\n"
11119 msgstr ""
11120
11121 # type: textblock
11122 #: ../src/guestfs-actions.pod:3899 ../fish/guestfish-actions.pod:2650
11123 msgid ""
11124 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11125 "(8)> command.  The \"full\" version includes all fields."
11126 msgstr ""
11127
11128 # type: textblock
11129 #: ../src/guestfs-actions.pod:3902
11130 msgid ""
11131 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
11132 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
11133 msgstr ""
11134
11135 # type: =head2
11136 #: ../src/guestfs-actions.pod:3908
11137 msgid "guestfs_lvuuid"
11138 msgstr ""
11139
11140 # type: verbatim
11141 #: ../src/guestfs-actions.pod:3910
11142 #, no-wrap
11143 msgid ""
11144 " char *\n"
11145 " guestfs_lvuuid (guestfs_h *g,\n"
11146 "                 const char *device);\n"
11147 "\n"
11148 msgstr ""
11149
11150 # type: textblock
11151 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2657
11152 msgid "This command returns the UUID of the LVM LV C<device>."
11153 msgstr ""
11154
11155 # type: =head2
11156 #: ../src/guestfs-actions.pod:3921
11157 msgid "guestfs_lxattrlist"
11158 msgstr ""
11159
11160 # type: verbatim
11161 #: ../src/guestfs-actions.pod:3923
11162 #, no-wrap
11163 msgid ""
11164 " struct guestfs_xattr_list *\n"
11165 " guestfs_lxattrlist (guestfs_h *g,\n"
11166 "                     const char *path,\n"
11167 "                     char *const *names);\n"
11168 "\n"
11169 msgstr ""
11170
11171 # type: textblock
11172 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:2663
11173 msgid ""
11174 "This call allows you to get the extended attributes of multiple files, where "
11175 "all files are in the directory C<path>.  C<names> is the list of files from "
11176 "this directory."
11177 msgstr ""
11178
11179 # type: textblock
11180 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:2667
11181 msgid ""
11182 "On return you get a flat list of xattr structs which must be interpreted "
11183 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11184 "C<attrval> in this struct is zero-length to indicate there was an error "
11185 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11186 "number (the number of following attributes for this file, which could be C<"
11187 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11188 "for the first named file.  This repeats for the second and subsequent files."
11189 msgstr ""
11190
11191 # type: textblock
11192 #: ../src/guestfs-actions.pod:3942
11193 msgid ""
11194 "This call is intended for programs that want to efficiently list a directory "
11195 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11196 "a similarly efficient call for getting standard stats.  Very long directory "
11197 "listings might cause the protocol message size to be exceeded, causing this "
11198 "call to fail.  The caller must split up such requests into smaller groups of "
11199 "names."
11200 msgstr ""
11201
11202 # type: =head2
11203 #: ../src/guestfs-actions.pod:3956
11204 msgid "guestfs_mkdir"
11205 msgstr ""
11206
11207 # type: verbatim
11208 #: ../src/guestfs-actions.pod:3958
11209 #, no-wrap
11210 msgid ""
11211 " int\n"
11212 " guestfs_mkdir (guestfs_h *g,\n"
11213 "                const char *path);\n"
11214 "\n"
11215 msgstr ""
11216
11217 # type: textblock
11218 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2689
11219 msgid "Create a directory named C<path>."
11220 msgstr ""
11221
11222 # type: =head2
11223 #: ../src/guestfs-actions.pod:3968
11224 msgid "guestfs_mkdir_mode"
11225 msgstr ""
11226
11227 # type: verbatim
11228 #: ../src/guestfs-actions.pod:3970
11229 #, no-wrap
11230 msgid ""
11231 " int\n"
11232 " guestfs_mkdir_mode (guestfs_h *g,\n"
11233 "                     const char *path,\n"
11234 "                     int mode);\n"
11235 "\n"
11236 msgstr ""
11237
11238 # type: textblock
11239 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:2695
11240 msgid ""
11241 "This command creates a directory, setting the initial permissions of the "
11242 "directory to C<mode>."
11243 msgstr ""
11244
11245 # type: textblock
11246 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:2698
11247 msgid ""
11248 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11249 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11250 "other ways."
11251 msgstr ""
11252
11253 # type: textblock
11254 #: ../src/guestfs-actions.pod:3982
11255 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11256 msgstr ""
11257
11258 # type: =head2
11259 #: ../src/guestfs-actions.pod:3988
11260 msgid "guestfs_mkdir_p"
11261 msgstr ""
11262
11263 # type: verbatim
11264 #: ../src/guestfs-actions.pod:3990
11265 #, no-wrap
11266 msgid ""
11267 " int\n"
11268 " guestfs_mkdir_p (guestfs_h *g,\n"
11269 "                  const char *path);\n"
11270 "\n"
11271 msgstr ""
11272
11273 # type: textblock
11274 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:2708
11275 msgid ""
11276 "Create a directory named C<path>, creating any parent directories as "
11277 "necessary.  This is like the C<mkdir -p> shell command."
11278 msgstr ""
11279
11280 # type: =head2
11281 #: ../src/guestfs-actions.pod:4001
11282 msgid "guestfs_mkdtemp"
11283 msgstr ""
11284
11285 # type: verbatim
11286 #: ../src/guestfs-actions.pod:4003
11287 #, no-wrap
11288 msgid ""
11289 " char *\n"
11290 " guestfs_mkdtemp (guestfs_h *g,\n"
11291 "                  const char *template);\n"
11292 "\n"
11293 msgstr ""
11294
11295 # type: textblock
11296 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2715
11297 msgid ""
11298 "This command creates a temporary directory.  The C<template> parameter "
11299 "should be a full pathname for the temporary directory name with the final "
11300 "six characters being \"XXXXXX\"."
11301 msgstr ""
11302
11303 # type: textblock
11304 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:2720
11305 msgid ""
11306 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11307 "being suitable for Windows filesystems."
11308 msgstr ""
11309
11310 # type: textblock
11311 #: ../src/guestfs-actions.pod:4015 ../fish/guestfish-actions.pod:2723
11312 msgid "The name of the temporary directory that was created is returned."
11313 msgstr ""
11314
11315 # type: textblock
11316 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2726
11317 msgid "The temporary directory is created with mode 0700 and is owned by root."
11318 msgstr ""
11319
11320 # type: textblock
11321 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2729
11322 msgid ""
11323 "The caller is responsible for deleting the temporary directory and its "
11324 "contents after use."
11325 msgstr ""
11326
11327 # type: textblock
11328 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2732
11329 msgid "See also: L<mkdtemp(3)>"
11330 msgstr ""
11331
11332 # type: =head2
11333 #: ../src/guestfs-actions.pod:4031
11334 msgid "guestfs_mke2fs_J"
11335 msgstr ""
11336
11337 # type: verbatim
11338 #: ../src/guestfs-actions.pod:4033
11339 #, no-wrap
11340 msgid ""
11341 " int\n"
11342 " guestfs_mke2fs_J (guestfs_h *g,\n"
11343 "                   const char *fstype,\n"
11344 "                   int blocksize,\n"
11345 "                   const char *device,\n"
11346 "                   const char *journal);\n"
11347 "\n"
11348 msgstr ""
11349
11350 # type: textblock
11351 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2738
11352 msgid ""
11353 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11354 "C<journal>.  It is equivalent to the command:"
11355 msgstr ""
11356
11357 # type: verbatim
11358 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2742
11359 #, no-wrap
11360 msgid ""
11361 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11362 "\n"
11363 msgstr ""
11364
11365 # type: textblock
11366 #: ../src/guestfs-actions.pod:4046
11367 msgid "See also C<guestfs_mke2journal>."
11368 msgstr ""
11369
11370 # type: textblock
11371 #: ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4068
11372 #: ../src/guestfs-actions.pod:4086 ../src/guestfs-actions.pod:4102
11373 #: ../src/guestfs-actions.pod:4116 ../src/guestfs-actions.pod:4130
11374 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4438
11375 msgid "(Added in 1.0.68)"
11376 msgstr ""
11377
11378 # type: =head2
11379 #: ../src/guestfs-actions.pod:4052
11380 msgid "guestfs_mke2fs_JL"
11381 msgstr ""
11382
11383 # type: verbatim
11384 #: ../src/guestfs-actions.pod:4054
11385 #, no-wrap
11386 msgid ""
11387 " int\n"
11388 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11389 "                    const char *fstype,\n"
11390 "                    int blocksize,\n"
11391 "                    const char *device,\n"
11392 "                    const char *label);\n"
11393 "\n"
11394 msgstr ""
11395
11396 # type: textblock
11397 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:2750
11398 msgid ""
11399 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11400 "the journal labeled C<label>."
11401 msgstr ""
11402
11403 # type: textblock
11404 #: ../src/guestfs-actions.pod:4064
11405 msgid "See also C<guestfs_mke2journal_L>."
11406 msgstr ""
11407
11408 # type: =head2
11409 #: ../src/guestfs-actions.pod:4070
11410 msgid "guestfs_mke2fs_JU"
11411 msgstr ""
11412
11413 # type: verbatim
11414 #: ../src/guestfs-actions.pod:4072
11415 #, no-wrap
11416 msgid ""
11417 " int\n"
11418 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11419 "                    const char *fstype,\n"
11420 "                    int blocksize,\n"
11421 "                    const char *device,\n"
11422 "                    const char *uuid);\n"
11423 "\n"
11424 msgstr ""
11425
11426 # type: textblock
11427 #: ../src/guestfs-actions.pod:4079 ../fish/guestfish-actions.pod:2759
11428 msgid ""
11429 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11430 "the journal with UUID C<uuid>."
11431 msgstr ""
11432
11433 # type: textblock
11434 #: ../src/guestfs-actions.pod:4082
11435 msgid "See also C<guestfs_mke2journal_U>."
11436 msgstr ""
11437
11438 # type: =head2
11439 #: ../src/guestfs-actions.pod:4088
11440 msgid "guestfs_mke2journal"
11441 msgstr ""
11442
11443 # type: verbatim
11444 #: ../src/guestfs-actions.pod:4090
11445 #, no-wrap
11446 msgid ""
11447 " int\n"
11448 " guestfs_mke2journal (guestfs_h *g,\n"
11449 "                      int blocksize,\n"
11450 "                      const char *device);\n"
11451 "\n"
11452 msgstr ""
11453
11454 # type: textblock
11455 #: ../src/guestfs-actions.pod:4095 ../fish/guestfish-actions.pod:2768
11456 msgid ""
11457 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11458 "command:"
11459 msgstr ""
11460
11461 # type: verbatim
11462 #: ../src/guestfs-actions.pod:4098 ../fish/guestfish-actions.pod:2771
11463 #, no-wrap
11464 msgid ""
11465 " mke2fs -O journal_dev -b blocksize device\n"
11466 "\n"
11467 msgstr ""
11468
11469 # type: =head2
11470 #: ../src/guestfs-actions.pod:4104
11471 msgid "guestfs_mke2journal_L"
11472 msgstr ""
11473
11474 # type: verbatim
11475 #: ../src/guestfs-actions.pod:4106
11476 #, no-wrap
11477 msgid ""
11478 " int\n"
11479 " guestfs_mke2journal_L (guestfs_h *g,\n"
11480 "                        int blocksize,\n"
11481 "                        const char *label,\n"
11482 "                        const char *device);\n"
11483 "\n"
11484 msgstr ""
11485
11486 # type: textblock
11487 #: ../src/guestfs-actions.pod:4112 ../fish/guestfish-actions.pod:2777
11488 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11489 msgstr ""
11490
11491 # type: =head2
11492 #: ../src/guestfs-actions.pod:4118
11493 msgid "guestfs_mke2journal_U"
11494 msgstr ""
11495
11496 # type: verbatim
11497 #: ../src/guestfs-actions.pod:4120
11498 #, no-wrap
11499 msgid ""
11500 " int\n"
11501 " guestfs_mke2journal_U (guestfs_h *g,\n"
11502 "                        int blocksize,\n"
11503 "                        const char *uuid,\n"
11504 "                        const char *device);\n"
11505 "\n"
11506 msgstr ""
11507
11508 # type: textblock
11509 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11510 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11511 msgstr ""
11512
11513 # type: =head2
11514 #: ../src/guestfs-actions.pod:4132
11515 msgid "guestfs_mkfifo"
11516 msgstr ""
11517
11518 # type: verbatim
11519 #: ../src/guestfs-actions.pod:4134
11520 #, no-wrap
11521 msgid ""
11522 " int\n"
11523 " guestfs_mkfifo (guestfs_h *g,\n"
11524 "                 int mode,\n"
11525 "                 const char *path);\n"
11526 "\n"
11527 msgstr ""
11528
11529 # type: textblock
11530 #: ../src/guestfs-actions.pod:4139
11531 msgid ""
11532 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11533 "is just a convenient wrapper around C<guestfs_mknod>."
11534 msgstr ""
11535
11536 # type: =head2
11537 #: ../src/guestfs-actions.pod:4149
11538 msgid "guestfs_mkfs"
11539 msgstr ""
11540
11541 # type: verbatim
11542 #: ../src/guestfs-actions.pod:4151
11543 #, no-wrap
11544 msgid ""
11545 " int\n"
11546 " guestfs_mkfs (guestfs_h *g,\n"
11547 "               const char *fstype,\n"
11548 "               const char *device);\n"
11549 "\n"
11550 msgstr ""
11551
11552 # type: textblock
11553 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2799
11554 msgid ""
11555 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11556 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11557 msgstr ""
11558
11559 # type: =head2
11560 #: ../src/guestfs-actions.pod:4164
11561 msgid "guestfs_mkfs_b"
11562 msgstr ""
11563
11564 # type: verbatim
11565 #: ../src/guestfs-actions.pod:4166
11566 #, no-wrap
11567 msgid ""
11568 " int\n"
11569 " guestfs_mkfs_b (guestfs_h *g,\n"
11570 "                 const char *fstype,\n"
11571 "                 int blocksize,\n"
11572 "                 const char *device);\n"
11573 "\n"
11574 msgstr ""
11575
11576 # type: textblock
11577 #: ../src/guestfs-actions.pod:4172
11578 msgid ""
11579 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11580 "block size of the resulting filesystem.  Supported block sizes depend on the "
11581 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11582 msgstr ""
11583
11584 # type: textblock
11585 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4219
11586 #: ../fish/guestfish-actions.pod:2812 ../fish/guestfish-actions.pod:2839
11587 msgid ""
11588 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11589 "cluster size."
11590 msgstr ""
11591
11592 # type: textblock
11593 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2815
11594 msgid ""
11595 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
11596 msgstr ""
11597
11598 # type: =head2
11599 #: ../src/guestfs-actions.pod:4191
11600 msgid "guestfs_mkfs_opts"
11601 msgstr ""
11602
11603 # type: verbatim
11604 #: ../src/guestfs-actions.pod:4193
11605 #, no-wrap
11606 msgid ""
11607 " int\n"
11608 " guestfs_mkfs_opts (guestfs_h *g,\n"
11609 "                    const char *fstype,\n"
11610 "                    const char *device,\n"
11611 "                    ...);\n"
11612 "\n"
11613 msgstr ""
11614
11615 # type: verbatim
11616 #: ../src/guestfs-actions.pod:4204
11617 #, no-wrap
11618 msgid ""
11619 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
11620 "\n"
11621 msgstr ""
11622
11623 # type: textblock
11624 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:2826
11625 msgid ""
11626 "This function creates a filesystem on C<device>.  The filesystem type is "
11627 "C<fstype>, for example C<ext3>."
11628 msgstr ""
11629
11630 # type: =item
11631 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2833
11632 msgid "C<blocksize>"
11633 msgstr ""
11634
11635 # type: textblock
11636 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2835
11637 msgid ""
11638 "The filesystem block size.  Supported block sizes depend on the filesystem "
11639 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11640 "filesystems."
11641 msgstr ""
11642
11643 # type: =head2
11644 #: ../src/guestfs-actions.pod:4226
11645 msgid "guestfs_mkfs_opts_va"
11646 msgstr ""
11647
11648 # type: verbatim
11649 #: ../src/guestfs-actions.pod:4228
11650 #, no-wrap
11651 msgid ""
11652 " int\n"
11653 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
11654 "                       const char *fstype,\n"
11655 "                       const char *device,\n"
11656 "                       va_list args);\n"
11657 "\n"
11658 msgstr ""
11659
11660 # type: textblock
11661 #: ../src/guestfs-actions.pod:4234
11662 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
11663 msgstr ""
11664
11665 # type: =head2
11666 #: ../src/guestfs-actions.pod:4238
11667 msgid "guestfs_mkfs_opts_argv"
11668 msgstr ""
11669
11670 # type: verbatim
11671 #: ../src/guestfs-actions.pod:4240
11672 #, no-wrap
11673 msgid ""
11674 " int\n"
11675 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
11676 "                         const char *fstype,\n"
11677 "                         const char *device,\n"
11678 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
11679 "\n"
11680 msgstr ""
11681
11682 # type: textblock
11683 #: ../src/guestfs-actions.pod:4246
11684 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
11685 msgstr ""
11686
11687 # type: =head2
11688 #: ../src/guestfs-actions.pod:4250
11689 msgid "guestfs_mkmountpoint"
11690 msgstr ""
11691
11692 # type: verbatim
11693 #: ../src/guestfs-actions.pod:4252
11694 #, no-wrap
11695 msgid ""
11696 " int\n"
11697 " guestfs_mkmountpoint (guestfs_h *g,\n"
11698 "                       const char *exemptpath);\n"
11699 "\n"
11700 msgstr ""
11701
11702 # type: textblock
11703 #: ../src/guestfs-actions.pod:4256
11704 msgid ""
11705 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11706 "that can be used to create extra mountpoints before mounting the first "
11707 "filesystem."
11708 msgstr ""
11709
11710 # type: textblock
11711 #: ../src/guestfs-actions.pod:4260 ../fish/guestfish-actions.pod:2854
11712 msgid ""
11713 "These calls are I<only> necessary in some very limited circumstances, mainly "
11714 "the case where you want to mount a mix of unrelated and/or read-only "
11715 "filesystems together."
11716 msgstr ""
11717
11718 # type: textblock
11719 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2858
11720 msgid ""
11721 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11722 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11723 "inside that.  You can unpack this as follows in guestfish:"
11724 msgstr ""
11725
11726 # type: verbatim
11727 #: ../src/guestfs-actions.pod:4269 ../fish/guestfish-actions.pod:2863
11728 #, no-wrap
11729 msgid ""
11730 " add-ro Fedora-11-i686-Live.iso\n"
11731 " run\n"
11732 " mkmountpoint /cd\n"
11733 " mkmountpoint /sqsh\n"
11734 " mkmountpoint /ext3fs\n"
11735 " mount /dev/sda /cd\n"
11736 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11737 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11738 "\n"
11739 msgstr ""
11740
11741 # type: textblock
11742 #: ../src/guestfs-actions.pod:4278 ../fish/guestfish-actions.pod:2872
11743 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11744 msgstr ""
11745
11746 # type: textblock
11747 #: ../src/guestfs-actions.pod:4280
11748 msgid ""
11749 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11750 "may get unexpected errors if you try to mix these calls.  It is safest to "
11751 "manually unmount filesystems and remove mountpoints after use."
11752 msgstr ""
11753
11754 # type: textblock
11755 #: ../src/guestfs-actions.pod:4284
11756 msgid ""
11757 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11758 "first, so for this to work for manual mountpoints, you must ensure that the "
11759 "innermost mountpoints have the longest pathnames, as in the example code "
11760 "above."
11761 msgstr ""
11762
11763 # type: textblock
11764 #: ../src/guestfs-actions.pod:4289 ../fish/guestfish-actions.pod:2883
11765 msgid ""
11766 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11767 msgstr ""
11768
11769 # type: textblock
11770 #: ../src/guestfs-actions.pod:4291
11771 msgid ""
11772 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11773 "means that C<guestfs_umount_all> is called when the handle is closed which "
11774 "can also trigger these issues."
11775 msgstr ""
11776
11777 # type: textblock
11778 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4556
11779 #: ../src/guestfs-actions.pod:5449
11780 msgid "(Added in 1.0.62)"
11781 msgstr ""
11782
11783 # type: =head2
11784 #: ../src/guestfs-actions.pod:4299
11785 msgid "guestfs_mknod"
11786 msgstr ""
11787
11788 # type: verbatim
11789 #: ../src/guestfs-actions.pod:4301
11790 #, no-wrap
11791 msgid ""
11792 " int\n"
11793 " guestfs_mknod (guestfs_h *g,\n"
11794 "                int mode,\n"
11795 "                int devmajor,\n"
11796 "                int devminor,\n"
11797 "                const char *path);\n"
11798 "\n"
11799 msgstr ""
11800
11801 # type: textblock
11802 #: ../src/guestfs-actions.pod:4308 ../fish/guestfish-actions.pod:2893
11803 msgid ""
11804 "This call creates block or character special devices, or named pipes (FIFOs)."
11805 msgstr ""
11806
11807 # type: textblock
11808 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2896
11809 msgid ""
11810 "The C<mode> parameter should be the mode, using the standard constants.  "
11811 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11812 "used when creating block and character special devices."
11813 msgstr ""
11814
11815 # type: textblock
11816 #: ../src/guestfs-actions.pod:4316
11817 msgid ""
11818 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11819 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11820 "regular file).  These constants are available in the standard Linux header "
11821 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11822 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11823 "the appropriate constant for you."
11824 msgstr ""
11825
11826 # type: =head2
11827 #: ../src/guestfs-actions.pod:4330
11828 msgid "guestfs_mknod_b"
11829 msgstr ""
11830
11831 # type: verbatim
11832 #: ../src/guestfs-actions.pod:4332
11833 #, no-wrap
11834 msgid ""
11835 " int\n"
11836 " guestfs_mknod_b (guestfs_h *g,\n"
11837 "                  int mode,\n"
11838 "                  int devmajor,\n"
11839 "                  int devminor,\n"
11840 "                  const char *path);\n"
11841 "\n"
11842 msgstr ""
11843
11844 # type: textblock
11845 #: ../src/guestfs-actions.pod:4339
11846 msgid ""
11847 "This call creates a block device node called C<path> with mode C<mode> and "
11848 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11849 "wrapper around C<guestfs_mknod>."
11850 msgstr ""
11851
11852 # type: =head2
11853 #: ../src/guestfs-actions.pod:4349
11854 msgid "guestfs_mknod_c"
11855 msgstr ""
11856
11857 # type: verbatim
11858 #: ../src/guestfs-actions.pod:4351
11859 #, no-wrap
11860 msgid ""
11861 " int\n"
11862 " guestfs_mknod_c (guestfs_h *g,\n"
11863 "                  int mode,\n"
11864 "                  int devmajor,\n"
11865 "                  int devminor,\n"
11866 "                  const char *path);\n"
11867 "\n"
11868 msgstr ""
11869
11870 # type: textblock
11871 #: ../src/guestfs-actions.pod:4358
11872 msgid ""
11873 "This call creates a char device node called C<path> with mode C<mode> and "
11874 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11875 "wrapper around C<guestfs_mknod>."
11876 msgstr ""
11877
11878 # type: =head2
11879 #: ../src/guestfs-actions.pod:4368
11880 msgid "guestfs_mkswap"
11881 msgstr ""
11882
11883 # type: verbatim
11884 #: ../src/guestfs-actions.pod:4370
11885 #, no-wrap
11886 msgid ""
11887 " int\n"
11888 " guestfs_mkswap (guestfs_h *g,\n"
11889 "                 const char *device);\n"
11890 "\n"
11891 msgstr ""
11892
11893 # type: textblock
11894 #: ../src/guestfs-actions.pod:4374 ../fish/guestfish-actions.pod:2935
11895 msgid "Create a swap partition on C<device>."
11896 msgstr ""
11897
11898 # type: =head2
11899 #: ../src/guestfs-actions.pod:4380
11900 msgid "guestfs_mkswap_L"
11901 msgstr ""
11902
11903 # type: verbatim
11904 #: ../src/guestfs-actions.pod:4382
11905 #, no-wrap
11906 msgid ""
11907 " int\n"
11908 " guestfs_mkswap_L (guestfs_h *g,\n"
11909 "                   const char *label,\n"
11910 "                   const char *device);\n"
11911 "\n"
11912 msgstr ""
11913
11914 # type: textblock
11915 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:2941
11916 msgid "Create a swap partition on C<device> with label C<label>."
11917 msgstr ""
11918
11919 # type: textblock
11920 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:2943
11921 msgid ""
11922 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11923 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11924 "or swap tools."
11925 msgstr ""
11926
11927 # type: =head2
11928 #: ../src/guestfs-actions.pod:4397
11929 msgid "guestfs_mkswap_U"
11930 msgstr ""
11931
11932 # type: verbatim
11933 #: ../src/guestfs-actions.pod:4399
11934 #, no-wrap
11935 msgid ""
11936 " int\n"
11937 " guestfs_mkswap_U (guestfs_h *g,\n"
11938 "                   const char *uuid,\n"
11939 "                   const char *device);\n"
11940 "\n"
11941 msgstr ""
11942
11943 # type: textblock
11944 #: ../src/guestfs-actions.pod:4404 ../fish/guestfish-actions.pod:2951
11945 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11946 msgstr ""
11947
11948 # type: =head2
11949 #: ../src/guestfs-actions.pod:4410
11950 msgid "guestfs_mkswap_file"
11951 msgstr ""
11952
11953 # type: verbatim
11954 #: ../src/guestfs-actions.pod:4412
11955 #, no-wrap
11956 msgid ""
11957 " int\n"
11958 " guestfs_mkswap_file (guestfs_h *g,\n"
11959 "                      const char *path);\n"
11960 "\n"
11961 msgstr ""
11962
11963 # type: textblock
11964 #: ../src/guestfs-actions.pod:4416 ../fish/guestfish-actions.pod:2957
11965 msgid "Create a swap file."
11966 msgstr ""
11967
11968 # type: textblock
11969 #: ../src/guestfs-actions.pod:4418
11970 msgid ""
11971 "This command just writes a swap file signature to an existing file.  To "
11972 "create the file itself, use something like C<guestfs_fallocate>."
11973 msgstr ""
11974
11975 # type: =head2
11976 #: ../src/guestfs-actions.pod:4425
11977 msgid "guestfs_modprobe"
11978 msgstr ""
11979
11980 # type: verbatim
11981 #: ../src/guestfs-actions.pod:4427
11982 #, no-wrap
11983 msgid ""
11984 " int\n"
11985 " guestfs_modprobe (guestfs_h *g,\n"
11986 "                   const char *modulename);\n"
11987 "\n"
11988 msgstr ""
11989
11990 # type: textblock
11991 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:2966
11992 msgid "This loads a kernel module in the appliance."
11993 msgstr ""
11994
11995 # type: textblock
11996 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:2968
11997 msgid ""
11998 "The kernel module must have been whitelisted when libguestfs was built (see "
11999 "C<appliance/kmod.whitelist.in> in the source)."
12000 msgstr ""
12001
12002 # type: =head2
12003 #: ../src/guestfs-actions.pod:4440
12004 msgid "guestfs_mount"
12005 msgstr ""
12006
12007 # type: verbatim
12008 #: ../src/guestfs-actions.pod:4442
12009 #, no-wrap
12010 msgid ""
12011 " int\n"
12012 " guestfs_mount (guestfs_h *g,\n"
12013 "                const char *device,\n"
12014 "                const char *mountpoint);\n"
12015 "\n"
12016 msgstr ""
12017
12018 # type: textblock
12019 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:2975
12020 msgid ""
12021 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12022 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12023 "those block devices contain partitions, they will have the usual names (eg. "
12024 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12025 msgstr ""
12026
12027 # type: textblock
12028 #: ../src/guestfs-actions.pod:4453 ../fish/guestfish-actions.pod:2981
12029 msgid ""
12030 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12031 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12032 "mounted on directories which already exist."
12033 msgstr ""
12034
12035 # type: textblock
12036 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:2986
12037 msgid ""
12038 "The mounted filesystem is writable, if we have sufficient permissions on the "
12039 "underlying device."
12040 msgstr ""
12041
12042 # type: textblock
12043 #: ../src/guestfs-actions.pod:4461
12044 msgid ""
12045 "B<Important note:> When you use this call, the filesystem options C<sync> "
12046 "and C<noatime> are set implicitly.  This was originally done because we "
12047 "thought it would improve reliability, but it turns out that I<-o sync> has a "
12048 "very large negative performance impact and negligible effect on "
12049 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
12050 "in any code that needs performance, and instead use C<guestfs_mount_options> "
12051 "(use an empty string for the first parameter if you don't want any options)."
12052 msgstr ""
12053
12054 # type: =head2
12055 #: ../src/guestfs-actions.pod:4475
12056 msgid "guestfs_mount_loop"
12057 msgstr ""
12058
12059 # type: verbatim
12060 #: ../src/guestfs-actions.pod:4477
12061 #, no-wrap
12062 msgid ""
12063 " int\n"
12064 " guestfs_mount_loop (guestfs_h *g,\n"
12065 "                     const char *file,\n"
12066 "                     const char *mountpoint);\n"
12067 "\n"
12068 msgstr ""
12069
12070 # type: textblock
12071 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3003
12072 msgid ""
12073 "This command lets you mount C<file> (a filesystem image in a file) on a "
12074 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12075 "mountpoint>."
12076 msgstr ""
12077
12078 # type: =head2
12079 #: ../src/guestfs-actions.pod:4490
12080 msgid "guestfs_mount_options"
12081 msgstr ""
12082
12083 # type: verbatim
12084 #: ../src/guestfs-actions.pod:4492
12085 #, no-wrap
12086 msgid ""
12087 " int\n"
12088 " guestfs_mount_options (guestfs_h *g,\n"
12089 "                        const char *options,\n"
12090 "                        const char *device,\n"
12091 "                        const char *mountpoint);\n"
12092 "\n"
12093 msgstr ""
12094
12095 # type: textblock
12096 #: ../src/guestfs-actions.pod:4498
12097 msgid ""
12098 "This is the same as the C<guestfs_mount> command, but it allows you to set "
12099 "the mount options as for the L<mount(8)> I<-o> flag."
12100 msgstr ""
12101
12102 # type: textblock
12103 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3015
12104 msgid ""
12105 "If the C<options> parameter is an empty string, then no options are passed "
12106 "(all options default to whatever the filesystem uses)."
12107 msgstr ""
12108
12109 # type: textblock
12110 #: ../src/guestfs-actions.pod:4508 ../src/guestfs-actions.pod:4522
12111 #: ../src/guestfs-actions.pod:4539
12112 msgid "(Added in 1.0.10)"
12113 msgstr ""
12114
12115 # type: =head2
12116 #: ../src/guestfs-actions.pod:4510
12117 msgid "guestfs_mount_ro"
12118 msgstr ""
12119
12120 # type: verbatim
12121 #: ../src/guestfs-actions.pod:4512
12122 #, no-wrap
12123 msgid ""
12124 " int\n"
12125 " guestfs_mount_ro (guestfs_h *g,\n"
12126 "                   const char *device,\n"
12127 "                   const char *mountpoint);\n"
12128 "\n"
12129 msgstr ""
12130
12131 # type: textblock
12132 #: ../src/guestfs-actions.pod:4517
12133 msgid ""
12134 "This is the same as the C<guestfs_mount> command, but it mounts the "
12135 "filesystem with the read-only (I<-o ro>) flag."
12136 msgstr ""
12137
12138 # type: =head2
12139 #: ../src/guestfs-actions.pod:4524
12140 msgid "guestfs_mount_vfs"
12141 msgstr ""
12142
12143 # type: verbatim
12144 #: ../src/guestfs-actions.pod:4526
12145 #, no-wrap
12146 msgid ""
12147 " int\n"
12148 " guestfs_mount_vfs (guestfs_h *g,\n"
12149 "                    const char *options,\n"
12150 "                    const char *vfstype,\n"
12151 "                    const char *device,\n"
12152 "                    const char *mountpoint);\n"
12153 "\n"
12154 msgstr ""
12155
12156 # type: textblock
12157 #: ../src/guestfs-actions.pod:4533
12158 msgid ""
12159 "This is the same as the C<guestfs_mount> command, but it allows you to set "
12160 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
12161 "t> flags."
12162 msgstr ""
12163
12164 # type: =head2
12165 #: ../src/guestfs-actions.pod:4541
12166 msgid "guestfs_mountpoints"
12167 msgstr ""
12168
12169 # type: verbatim
12170 #: ../src/guestfs-actions.pod:4543
12171 #, no-wrap
12172 msgid ""
12173 " char **\n"
12174 " guestfs_mountpoints (guestfs_h *g);\n"
12175 "\n"
12176 msgstr ""
12177
12178 # type: textblock
12179 #: ../src/guestfs-actions.pod:4546
12180 msgid ""
12181 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
12182 "devices.  This one returns a hash table (map) of device name to directory "
12183 "where the device is mounted."
12184 msgstr ""
12185
12186 # type: =head2
12187 #: ../src/guestfs-actions.pod:4558
12188 msgid "guestfs_mounts"
12189 msgstr ""
12190
12191 # type: verbatim
12192 #: ../src/guestfs-actions.pod:4560
12193 #, no-wrap
12194 msgid ""
12195 " char **\n"
12196 " guestfs_mounts (guestfs_h *g);\n"
12197 "\n"
12198 msgstr ""
12199
12200 # type: textblock
12201 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3046
12202 msgid ""
12203 "This returns the list of currently mounted filesystems.  It returns the list "
12204 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12205 msgstr ""
12206
12207 # type: textblock
12208 #: ../src/guestfs-actions.pod:4566 ../fish/guestfish-actions.pod:3049
12209 msgid "Some internal mounts are not shown."
12210 msgstr ""
12211
12212 # type: textblock
12213 #: ../src/guestfs-actions.pod:4568
12214 msgid "See also: C<guestfs_mountpoints>"
12215 msgstr ""
12216
12217 # type: =head2
12218 #: ../src/guestfs-actions.pod:4576
12219 msgid "guestfs_mv"
12220 msgstr ""
12221
12222 # type: verbatim
12223 #: ../src/guestfs-actions.pod:4578
12224 #, no-wrap
12225 msgid ""
12226 " int\n"
12227 " guestfs_mv (guestfs_h *g,\n"
12228 "             const char *src,\n"
12229 "             const char *dest);\n"
12230 "\n"
12231 msgstr ""
12232
12233 # type: textblock
12234 #: ../src/guestfs-actions.pod:4583 ../fish/guestfish-actions.pod:3057
12235 msgid ""
12236 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12237 "destination filename or destination directory."
12238 msgstr ""
12239
12240 # type: =head2
12241 #: ../src/guestfs-actions.pod:4590
12242 msgid "guestfs_ntfs_3g_probe"
12243 msgstr ""
12244
12245 # type: verbatim
12246 #: ../src/guestfs-actions.pod:4592
12247 #, no-wrap
12248 msgid ""
12249 " int\n"
12250 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
12251 "                        int rw,\n"
12252 "                        const char *device);\n"
12253 "\n"
12254 msgstr ""
12255
12256 # type: textblock
12257 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3064
12258 msgid ""
12259 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12260 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12261 "write, and some cannot be mounted at all)."
12262 msgstr ""
12263
12264 # type: textblock
12265 #: ../src/guestfs-actions.pod:4601 ../fish/guestfish-actions.pod:3068
12266 msgid ""
12267 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12268 "can be mounted read-write.  Set it to false if you want to test if the "
12269 "volume can be mounted read-only."
12270 msgstr ""
12271
12272 # type: textblock
12273 #: ../src/guestfs-actions.pod:4605 ../fish/guestfish-actions.pod:3072
12274 msgid ""
12275 "The return value is an integer which C<0> if the operation would succeed, or "
12276 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12277 msgstr ""
12278
12279 # type: textblock
12280 #: ../src/guestfs-actions.pod:4611
12281 msgid "(Added in 1.0.43)"
12282 msgstr ""
12283
12284 # type: =head2
12285 #: ../src/guestfs-actions.pod:4613
12286 msgid "guestfs_ntfsresize"
12287 msgstr ""
12288
12289 # type: verbatim
12290 #: ../src/guestfs-actions.pod:4615
12291 #, no-wrap
12292 msgid ""
12293 " int\n"
12294 " guestfs_ntfsresize (guestfs_h *g,\n"
12295 "                     const char *device);\n"
12296 "\n"
12297 msgstr ""
12298
12299 # type: textblock
12300 #: ../src/guestfs-actions.pod:4619 ../fish/guestfish-actions.pod:3080
12301 msgid ""
12302 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12303 "size of the underlying device.  See also L<ntfsresize(8)>."
12304 msgstr ""
12305
12306 # type: =head2
12307 #: ../src/guestfs-actions.pod:4627
12308 msgid "guestfs_ntfsresize_size"
12309 msgstr ""
12310
12311 # type: verbatim
12312 #: ../src/guestfs-actions.pod:4629
12313 #, no-wrap
12314 msgid ""
12315 " int\n"
12316 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12317 "                          const char *device,\n"
12318 "                          int64_t size);\n"
12319 "\n"
12320 msgstr ""
12321
12322 # type: textblock
12323 #: ../src/guestfs-actions.pod:4634
12324 msgid ""
12325 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12326 "to specify the new size (in bytes) explicitly."
12327 msgstr ""
12328
12329 # type: textblock
12330 #: ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:5075
12331 #: ../src/guestfs-actions.pod:5148 ../src/guestfs-actions.pod:5397
12332 msgid "(Added in 1.3.14)"
12333 msgstr ""
12334
12335 # type: =head2
12336 #: ../src/guestfs-actions.pod:4641
12337 msgid "guestfs_part_add"
12338 msgstr ""
12339
12340 # type: verbatim
12341 #: ../src/guestfs-actions.pod:4643
12342 #, no-wrap
12343 msgid ""
12344 " int\n"
12345 " guestfs_part_add (guestfs_h *g,\n"
12346 "                   const char *device,\n"
12347 "                   const char *prlogex,\n"
12348 "                   int64_t startsect,\n"
12349 "                   int64_t endsect);\n"
12350 "\n"
12351 msgstr ""
12352
12353 # type: textblock
12354 #: ../src/guestfs-actions.pod:4650
12355 msgid ""
12356 "This command adds a partition to C<device>.  If there is no partition table "
12357 "on the device, call C<guestfs_part_init> first."
12358 msgstr ""
12359
12360 # type: textblock
12361 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3098
12362 msgid ""
12363 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12364 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12365 "C<logical>) and C<e> (or C<extended>) partition types."
12366 msgstr ""
12367
12368 # type: textblock
12369 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3103
12370 msgid ""
12371 "C<startsect> and C<endsect> are the start and end of the partition in "
12372 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12373 "from the end of the disk (C<-1> is the last sector)."
12374 msgstr ""
12375
12376 # type: textblock
12377 #: ../src/guestfs-actions.pod:4662
12378 msgid ""
12379 "Creating a partition which covers the whole disk is not so easy.  Use "
12380 "C<guestfs_part_disk> to do that."
12381 msgstr ""
12382
12383 # type: textblock
12384 #: ../src/guestfs-actions.pod:4667 ../src/guestfs-actions.pod:4705
12385 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4836
12386 #: ../src/guestfs-actions.pod:4874 ../src/guestfs-actions.pod:4893
12387 #: ../src/guestfs-actions.pod:4933
12388 msgid "(Added in 1.0.78)"
12389 msgstr ""
12390
12391 # type: =head2
12392 #: ../src/guestfs-actions.pod:4669
12393 msgid "guestfs_part_del"
12394 msgstr ""
12395
12396 # type: verbatim
12397 #: ../src/guestfs-actions.pod:4671
12398 #, no-wrap
12399 msgid ""
12400 " int\n"
12401 " guestfs_part_del (guestfs_h *g,\n"
12402 "                   const char *device,\n"
12403 "                   int partnum);\n"
12404 "\n"
12405 msgstr ""
12406
12407 # type: textblock
12408 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3114
12409 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12410 msgstr ""
12411
12412 # type: textblock
12413 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3116
12414 msgid ""
12415 "Note that in the case of MBR partitioning, deleting an extended partition "
12416 "also deletes any logical partitions it contains."
12417 msgstr ""
12418
12419 # type: =head2
12420 #: ../src/guestfs-actions.pod:4686
12421 msgid "guestfs_part_disk"
12422 msgstr ""
12423
12424 # type: verbatim
12425 #: ../src/guestfs-actions.pod:4688
12426 #, no-wrap
12427 msgid ""
12428 " int\n"
12429 " guestfs_part_disk (guestfs_h *g,\n"
12430 "                    const char *device,\n"
12431 "                    const char *parttype);\n"
12432 "\n"
12433 msgstr ""
12434
12435 # type: textblock
12436 #: ../src/guestfs-actions.pod:4693
12437 msgid ""
12438 "This command is simply a combination of C<guestfs_part_init> followed by "
12439 "C<guestfs_part_add> to create a single primary partition covering the whole "
12440 "disk."
12441 msgstr ""
12442
12443 # type: textblock
12444 #: ../src/guestfs-actions.pod:4697
12445 msgid ""
12446 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12447 "possible values are described in C<guestfs_part_init>."
12448 msgstr ""
12449
12450 # type: =head2
12451 #: ../src/guestfs-actions.pod:4707
12452 msgid "guestfs_part_get_bootable"
12453 msgstr ""
12454
12455 # type: verbatim
12456 #: ../src/guestfs-actions.pod:4709
12457 #, no-wrap
12458 msgid ""
12459 " int\n"
12460 " guestfs_part_get_bootable (guestfs_h *g,\n"
12461 "                            const char *device,\n"
12462 "                            int partnum);\n"
12463 "\n"
12464 msgstr ""
12465
12466 # type: textblock
12467 #: ../src/guestfs-actions.pod:4714 ../fish/guestfish-actions.pod:3138
12468 msgid ""
12469 "This command returns true if the partition C<partnum> on C<device> has the "
12470 "bootable flag set."
12471 msgstr ""
12472
12473 # type: textblock
12474 #: ../src/guestfs-actions.pod:4717
12475 msgid "See also C<guestfs_part_set_bootable>."
12476 msgstr ""
12477
12478 # type: =head2
12479 #: ../src/guestfs-actions.pod:4723
12480 msgid "guestfs_part_get_mbr_id"
12481 msgstr ""
12482
12483 # type: verbatim
12484 #: ../src/guestfs-actions.pod:4725
12485 #, no-wrap
12486 msgid ""
12487 " int\n"
12488 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12489 "                          const char *device,\n"
12490 "                          int partnum);\n"
12491 "\n"
12492 msgstr ""
12493
12494 # type: textblock
12495 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3147
12496 msgid ""
12497 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12498 "partition C<partnum>."
12499 msgstr ""
12500
12501 # type: textblock
12502 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4909
12503 msgid ""
12504 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12505 "undefined results for other partition table types (see "
12506 "C<guestfs_part_get_parttype>)."
12507 msgstr ""
12508
12509 # type: =head2
12510 #: ../src/guestfs-actions.pod:4741
12511 msgid "guestfs_part_get_parttype"
12512 msgstr ""
12513
12514 # type: verbatim
12515 #: ../src/guestfs-actions.pod:4743
12516 #, no-wrap
12517 msgid ""
12518 " char *\n"
12519 " guestfs_part_get_parttype (guestfs_h *g,\n"
12520 "                            const char *device);\n"
12521 "\n"
12522 msgstr ""
12523
12524 # type: textblock
12525 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3158
12526 msgid ""
12527 "This command examines the partition table on C<device> and returns the "
12528 "partition table type (format) being used."
12529 msgstr ""
12530
12531 # type: textblock
12532 #: ../src/guestfs-actions.pod:4750
12533 msgid ""
12534 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12535 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12536 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12537 msgstr ""
12538
12539 # type: =head2
12540 #: ../src/guestfs-actions.pod:4760
12541 msgid "guestfs_part_init"
12542 msgstr ""
12543
12544 # type: verbatim
12545 #: ../src/guestfs-actions.pod:4762
12546 #, no-wrap
12547 msgid ""
12548 " int\n"
12549 " guestfs_part_init (guestfs_h *g,\n"
12550 "                    const char *device,\n"
12551 "                    const char *parttype);\n"
12552 "\n"
12553 msgstr ""
12554
12555 # type: textblock
12556 #: ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:3170
12557 msgid ""
12558 "This creates an empty partition table on C<device> of one of the partition "
12559 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12560 "(for large disks)."
12561 msgstr ""
12562
12563 # type: textblock
12564 #: ../src/guestfs-actions.pod:4771
12565 msgid ""
12566 "Initially there are no partitions.  Following this, you should call "
12567 "C<guestfs_part_add> for each partition required."
12568 msgstr ""
12569
12570 # type: textblock
12571 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3177
12572 msgid "Possible values for C<parttype> are:"
12573 msgstr ""
12574
12575 # type: =item
12576 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3181
12577 msgid "B<efi> | B<gpt>"
12578 msgstr ""
12579
12580 # type: textblock
12581 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3183
12582 msgid "Intel EFI / GPT partition table."
12583 msgstr ""
12584
12585 # type: textblock
12586 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3185
12587 msgid ""
12588 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12589 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12590 "the C<mbr> format."
12591 msgstr ""
12592
12593 # type: =item
12594 #: ../src/guestfs-actions.pod:4786 ../fish/guestfish-actions.pod:3189
12595 msgid "B<mbr> | B<msdos>"
12596 msgstr ""
12597
12598 # type: textblock
12599 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3191
12600 msgid ""
12601 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12602 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12603 "TB.  For large disks we recommend using C<gpt>."
12604 msgstr ""
12605
12606 # type: textblock
12607 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3198
12608 msgid ""
12609 "Other partition table types that may work but are not supported include:"
12610 msgstr ""
12611
12612 # type: =item
12613 #: ../src/guestfs-actions.pod:4800 ../fish/guestfish-actions.pod:3203
12614 msgid "B<aix>"
12615 msgstr ""
12616
12617 # type: textblock
12618 #: ../src/guestfs-actions.pod:4802 ../fish/guestfish-actions.pod:3205
12619 msgid "AIX disk labels."
12620 msgstr ""
12621
12622 # type: =item
12623 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3207
12624 msgid "B<amiga> | B<rdb>"
12625 msgstr ""
12626
12627 # type: textblock
12628 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3209
12629 msgid "Amiga \"Rigid Disk Block\" format."
12630 msgstr ""
12631
12632 # type: =item
12633 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3211
12634 msgid "B<bsd>"
12635 msgstr ""
12636
12637 # type: textblock
12638 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3213
12639 msgid "BSD disk labels."
12640 msgstr ""
12641
12642 # type: =item
12643 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3215
12644 msgid "B<dasd>"
12645 msgstr ""
12646
12647 # type: textblock
12648 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3217
12649 msgid "DASD, used on IBM mainframes."
12650 msgstr ""
12651
12652 # type: =item
12653 #: ../src/guestfs-actions.pod:4816 ../fish/guestfish-actions.pod:3219
12654 msgid "B<dvh>"
12655 msgstr ""
12656
12657 # type: textblock
12658 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3221
12659 msgid "MIPS/SGI volumes."
12660 msgstr ""
12661
12662 # type: =item
12663 #: ../src/guestfs-actions.pod:4820 ../fish/guestfish-actions.pod:3223
12664 msgid "B<mac>"
12665 msgstr ""
12666
12667 # type: textblock
12668 #: ../src/guestfs-actions.pod:4822 ../fish/guestfish-actions.pod:3225
12669 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12670 msgstr ""
12671
12672 # type: =item
12673 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3227
12674 msgid "B<pc98>"
12675 msgstr ""
12676
12677 # type: textblock
12678 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3229
12679 msgid "NEC PC-98 format, common in Japan apparently."
12680 msgstr ""
12681
12682 # type: =item
12683 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3231
12684 msgid "B<sun>"
12685 msgstr ""
12686
12687 # type: textblock
12688 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3233
12689 msgid "Sun disk labels."
12690 msgstr ""
12691
12692 # type: =head2
12693 #: ../src/guestfs-actions.pod:4838
12694 msgid "guestfs_part_list"
12695 msgstr ""
12696
12697 # type: verbatim
12698 #: ../src/guestfs-actions.pod:4840
12699 #, no-wrap
12700 msgid ""
12701 " struct guestfs_partition_list *\n"
12702 " guestfs_part_list (guestfs_h *g,\n"
12703 "                    const char *device);\n"
12704 "\n"
12705 msgstr ""
12706
12707 # type: textblock
12708 #: ../src/guestfs-actions.pod:4844 ../fish/guestfish-actions.pod:3241
12709 msgid ""
12710 "This command parses the partition table on C<device> and returns the list of "
12711 "partitions found."
12712 msgstr ""
12713
12714 # type: textblock
12715 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3244
12716 msgid "The fields in the returned structure are:"
12717 msgstr ""
12718
12719 # type: =item
12720 #: ../src/guestfs-actions.pod:4851 ../fish/guestfish-actions.pod:3248
12721 msgid "B<part_num>"
12722 msgstr ""
12723
12724 # type: textblock
12725 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3250
12726 msgid "Partition number, counting from 1."
12727 msgstr ""
12728
12729 # type: =item
12730 #: ../src/guestfs-actions.pod:4855 ../fish/guestfish-actions.pod:3252
12731 msgid "B<part_start>"
12732 msgstr ""
12733
12734 # type: textblock
12735 #: ../src/guestfs-actions.pod:4857
12736 msgid ""
12737 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12738 "the device's sector size, see C<guestfs_blockdev_getss>."
12739 msgstr ""
12740
12741 # type: =item
12742 #: ../src/guestfs-actions.pod:4860 ../fish/guestfish-actions.pod:3257
12743 msgid "B<part_end>"
12744 msgstr ""
12745
12746 # type: textblock
12747 #: ../src/guestfs-actions.pod:4862 ../fish/guestfish-actions.pod:3259
12748 msgid "End of the partition in bytes."
12749 msgstr ""
12750
12751 # type: =item
12752 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3261
12753 msgid "B<part_size>"
12754 msgstr ""
12755
12756 # type: textblock
12757 #: ../src/guestfs-actions.pod:4866 ../fish/guestfish-actions.pod:3263
12758 msgid "Size of the partition in bytes."
12759 msgstr ""
12760
12761 # type: textblock
12762 #: ../src/guestfs-actions.pod:4870
12763 msgid ""
12764 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12765 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12766 "use>."
12767 msgstr ""
12768
12769 # type: =head2
12770 #: ../src/guestfs-actions.pod:4876
12771 msgid "guestfs_part_set_bootable"
12772 msgstr ""
12773
12774 # type: verbatim
12775 #: ../src/guestfs-actions.pod:4878
12776 #, no-wrap
12777 msgid ""
12778 " int\n"
12779 " guestfs_part_set_bootable (guestfs_h *g,\n"
12780 "                            const char *device,\n"
12781 "                            int partnum,\n"
12782 "                            int bootable);\n"
12783 "\n"
12784 msgstr ""
12785
12786 # type: textblock
12787 #: ../src/guestfs-actions.pod:4884 ../fish/guestfish-actions.pod:3271
12788 msgid ""
12789 "This sets the bootable flag on partition numbered C<partnum> on device "
12790 "C<device>.  Note that partitions are numbered from 1."
12791 msgstr ""
12792
12793 # type: textblock
12794 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3274
12795 msgid ""
12796 "The bootable flag is used by some operating systems (notably Windows) to "
12797 "determine which partition to boot from.  It is by no means universally "
12798 "recognized."
12799 msgstr ""
12800
12801 # type: =head2
12802 #: ../src/guestfs-actions.pod:4895
12803 msgid "guestfs_part_set_mbr_id"
12804 msgstr ""
12805
12806 # type: verbatim
12807 #: ../src/guestfs-actions.pod:4897
12808 #, no-wrap
12809 msgid ""
12810 " int\n"
12811 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12812 "                          const char *device,\n"
12813 "                          int partnum,\n"
12814 "                          int idbyte);\n"
12815 "\n"
12816 msgstr ""
12817
12818 # type: textblock
12819 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3282
12820 msgid ""
12821 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12822 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12823 "documentation are in fact hexadecimal numbers, but usually documented "
12824 "without any leading \"0x\" which might be confusing."
12825 msgstr ""
12826
12827 # type: =head2
12828 #: ../src/guestfs-actions.pod:4917
12829 msgid "guestfs_part_set_name"
12830 msgstr ""
12831
12832 # type: verbatim
12833 #: ../src/guestfs-actions.pod:4919
12834 #, no-wrap
12835 msgid ""
12836 " int\n"
12837 " guestfs_part_set_name (guestfs_h *g,\n"
12838 "                        const char *device,\n"
12839 "                        int partnum,\n"
12840 "                        const char *name);\n"
12841 "\n"
12842 msgstr ""
12843
12844 # type: textblock
12845 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3296
12846 msgid ""
12847 "This sets the partition name on partition numbered C<partnum> on device "
12848 "C<device>.  Note that partitions are numbered from 1."
12849 msgstr ""
12850
12851 # type: textblock
12852 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3299
12853 msgid ""
12854 "The partition name can only be set on certain types of partition table.  "
12855 "This works on C<gpt> but not on C<mbr> partitions."
12856 msgstr ""
12857
12858 # type: =head2
12859 #: ../src/guestfs-actions.pod:4935
12860 msgid "guestfs_part_to_dev"
12861 msgstr ""
12862
12863 # type: verbatim
12864 #: ../src/guestfs-actions.pod:4937
12865 #, no-wrap
12866 msgid ""
12867 " char *\n"
12868 " guestfs_part_to_dev (guestfs_h *g,\n"
12869 "                      const char *partition);\n"
12870 "\n"
12871 msgstr ""
12872
12873 # type: textblock
12874 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3306
12875 msgid ""
12876 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12877 "partition number, returning the device name (eg. \"/dev/sdb\")."
12878 msgstr ""
12879
12880 # type: textblock
12881 #: ../src/guestfs-actions.pod:4945
12882 msgid ""
12883 "The named partition must exist, for example as a string returned from "
12884 "C<guestfs_list_partitions>."
12885 msgstr ""
12886
12887 # type: =head2
12888 #: ../src/guestfs-actions.pod:4953
12889 msgid "guestfs_ping_daemon"
12890 msgstr ""
12891
12892 # type: verbatim
12893 #: ../src/guestfs-actions.pod:4955
12894 #, no-wrap
12895 msgid ""
12896 " int\n"
12897 " guestfs_ping_daemon (guestfs_h *g);\n"
12898 "\n"
12899 msgstr ""
12900
12901 # type: textblock
12902 #: ../src/guestfs-actions.pod:4958 ../fish/guestfish-actions.pod:3317
12903 msgid ""
12904 "This is a test probe into the guestfs daemon running inside the qemu "
12905 "subprocess.  Calling this function checks that the daemon responds to the "
12906 "ping message, without affecting the daemon or attached block device(s) in "
12907 "any other way."
12908 msgstr ""
12909
12910 # type: =head2
12911 #: ../src/guestfs-actions.pod:4967
12912 msgid "guestfs_pread"
12913 msgstr ""
12914
12915 # type: verbatim
12916 #: ../src/guestfs-actions.pod:4969
12917 #, no-wrap
12918 msgid ""
12919 " char *\n"
12920 " guestfs_pread (guestfs_h *g,\n"
12921 "                const char *path,\n"
12922 "                int count,\n"
12923 "                int64_t offset,\n"
12924 "                size_t *size_r);\n"
12925 "\n"
12926 msgstr ""
12927
12928 # type: textblock
12929 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3326
12930 msgid ""
12931 "This command lets you read part of a file.  It reads C<count> bytes of the "
12932 "file, starting at C<offset>, from file C<path>."
12933 msgstr ""
12934
12935 # type: textblock
12936 #: ../src/guestfs-actions.pod:4979 ../src/guestfs-actions.pod:5005
12937 #: ../fish/guestfish-actions.pod:3329 ../fish/guestfish-actions.pod:3344
12938 msgid ""
12939 "This may read fewer bytes than requested.  For further details see the "
12940 "L<pread(2)> system call."
12941 msgstr ""
12942
12943 # type: textblock
12944 #: ../src/guestfs-actions.pod:4982
12945 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12946 msgstr ""
12947
12948 # type: =head2
12949 #: ../src/guestfs-actions.pod:4993
12950 msgid "guestfs_pread_device"
12951 msgstr ""
12952
12953 # type: verbatim
12954 #: ../src/guestfs-actions.pod:4995
12955 #, no-wrap
12956 msgid ""
12957 " char *\n"
12958 " guestfs_pread_device (guestfs_h *g,\n"
12959 "                       const char *device,\n"
12960 "                       int count,\n"
12961 "                       int64_t offset,\n"
12962 "                       size_t *size_r);\n"
12963 "\n"
12964 msgstr ""
12965
12966 # type: textblock
12967 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3341
12968 msgid ""
12969 "This command lets you read part of a file.  It reads C<count> bytes of "
12970 "C<device>, starting at C<offset>."
12971 msgstr ""
12972
12973 # type: textblock
12974 #: ../src/guestfs-actions.pod:5008
12975 msgid "See also C<guestfs_pread>."
12976 msgstr ""
12977
12978 # type: textblock
12979 #: ../src/guestfs-actions.pod:5017
12980 msgid "(Added in 1.5.21)"
12981 msgstr ""
12982
12983 # type: =head2
12984 #: ../src/guestfs-actions.pod:5019
12985 msgid "guestfs_pvcreate"
12986 msgstr ""
12987
12988 # type: verbatim
12989 #: ../src/guestfs-actions.pod:5021
12990 #, no-wrap
12991 msgid ""
12992 " int\n"
12993 " guestfs_pvcreate (guestfs_h *g,\n"
12994 "                   const char *device);\n"
12995 "\n"
12996 msgstr ""
12997
12998 # type: textblock
12999 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3356
13000 msgid ""
13001 "This creates an LVM physical volume on the named C<device>, where C<device> "
13002 "should usually be a partition name such as C</dev/sda1>."
13003 msgstr ""
13004
13005 # type: =head2
13006 #: ../src/guestfs-actions.pod:5033
13007 msgid "guestfs_pvremove"
13008 msgstr ""
13009
13010 # type: verbatim
13011 #: ../src/guestfs-actions.pod:5035
13012 #, no-wrap
13013 msgid ""
13014 " int\n"
13015 " guestfs_pvremove (guestfs_h *g,\n"
13016 "                   const char *device);\n"
13017 "\n"
13018 msgstr ""
13019
13020 # type: textblock
13021 #: ../src/guestfs-actions.pod:5039 ../fish/guestfish-actions.pod:3364
13022 msgid ""
13023 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13024 "it."
13025 msgstr ""
13026
13027 # type: textblock
13028 #: ../src/guestfs-actions.pod:5042 ../fish/guestfish-actions.pod:3367
13029 msgid ""
13030 "The implementation uses the C<pvremove> command which refuses to wipe "
13031 "physical volumes that contain any volume groups, so you have to remove those "
13032 "first."
13033 msgstr ""
13034
13035 # type: =head2
13036 #: ../src/guestfs-actions.pod:5050
13037 msgid "guestfs_pvresize"
13038 msgstr ""
13039
13040 # type: verbatim
13041 #: ../src/guestfs-actions.pod:5052
13042 #, no-wrap
13043 msgid ""
13044 " int\n"
13045 " guestfs_pvresize (guestfs_h *g,\n"
13046 "                   const char *device);\n"
13047 "\n"
13048 msgstr ""
13049
13050 # type: textblock
13051 #: ../src/guestfs-actions.pod:5056 ../fish/guestfish-actions.pod:3375
13052 msgid ""
13053 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13054 "the new size of the underlying device."
13055 msgstr ""
13056
13057 # type: =head2
13058 #: ../src/guestfs-actions.pod:5063
13059 msgid "guestfs_pvresize_size"
13060 msgstr ""
13061
13062 # type: verbatim
13063 #: ../src/guestfs-actions.pod:5065
13064 #, no-wrap
13065 msgid ""
13066 " int\n"
13067 " guestfs_pvresize_size (guestfs_h *g,\n"
13068 "                        const char *device,\n"
13069 "                        int64_t size);\n"
13070 "\n"
13071 msgstr ""
13072
13073 # type: textblock
13074 #: ../src/guestfs-actions.pod:5070
13075 msgid ""
13076 "This command is the same as C<guestfs_pvresize> except that it allows you to "
13077 "specify the new size (in bytes) explicitly."
13078 msgstr ""
13079
13080 # type: =head2
13081 #: ../src/guestfs-actions.pod:5077
13082 msgid "guestfs_pvs"
13083 msgstr ""
13084
13085 # type: verbatim
13086 #: ../src/guestfs-actions.pod:5079
13087 #, no-wrap
13088 msgid ""
13089 " char **\n"
13090 " guestfs_pvs (guestfs_h *g);\n"
13091 "\n"
13092 msgstr ""
13093
13094 # type: textblock
13095 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3389
13096 msgid ""
13097 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13098 "(8)> command."
13099 msgstr ""
13100
13101 # type: textblock
13102 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3392
13103 msgid ""
13104 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13105 "sda2>)."
13106 msgstr ""
13107
13108 # type: textblock
13109 #: ../src/guestfs-actions.pod:5088
13110 msgid "See also C<guestfs_pvs_full>."
13111 msgstr ""
13112
13113 # type: =head2
13114 #: ../src/guestfs-actions.pod:5096
13115 msgid "guestfs_pvs_full"
13116 msgstr ""
13117
13118 # type: verbatim
13119 #: ../src/guestfs-actions.pod:5098
13120 #, no-wrap
13121 msgid ""
13122 " struct guestfs_lvm_pv_list *\n"
13123 " guestfs_pvs_full (guestfs_h *g);\n"
13124 "\n"
13125 msgstr ""
13126
13127 # type: textblock
13128 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3401
13129 msgid ""
13130 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13131 "(8)> command.  The \"full\" version includes all fields."
13132 msgstr ""
13133
13134 # type: textblock
13135 #: ../src/guestfs-actions.pod:5104
13136 msgid ""
13137 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
13138 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
13139 msgstr ""
13140
13141 # type: =head2
13142 #: ../src/guestfs-actions.pod:5110
13143 msgid "guestfs_pvuuid"
13144 msgstr ""
13145
13146 # type: verbatim
13147 #: ../src/guestfs-actions.pod:5112
13148 #, no-wrap
13149 msgid ""
13150 " char *\n"
13151 " guestfs_pvuuid (guestfs_h *g,\n"
13152 "                 const char *device);\n"
13153 "\n"
13154 msgstr ""
13155
13156 # type: textblock
13157 #: ../src/guestfs-actions.pod:5116 ../fish/guestfish-actions.pod:3408
13158 msgid "This command returns the UUID of the LVM PV C<device>."
13159 msgstr ""
13160
13161 # type: =head2
13162 #: ../src/guestfs-actions.pod:5123
13163 msgid "guestfs_pwrite"
13164 msgstr ""
13165
13166 # type: verbatim
13167 #: ../src/guestfs-actions.pod:5125
13168 #, no-wrap
13169 msgid ""
13170 " int\n"
13171 " guestfs_pwrite (guestfs_h *g,\n"
13172 "                 const char *path,\n"
13173 "                 const char *content,\n"
13174 "                 size_t content_size,\n"
13175 "                 int64_t offset);\n"
13176 "\n"
13177 msgstr ""
13178
13179 # type: textblock
13180 #: ../src/guestfs-actions.pod:5132 ../fish/guestfish-actions.pod:3414
13181 msgid ""
13182 "This command writes to part of a file.  It writes the data buffer C<content> "
13183 "to the file C<path> starting at offset C<offset>."
13184 msgstr ""
13185
13186 # type: textblock
13187 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3417
13188 msgid ""
13189 "This command implements the L<pwrite(2)> system call, and like that system "
13190 "call it may not write the full data requested.  The return value is the "
13191 "number of bytes that were actually written to the file.  This could even be "
13192 "0, although short writes are unlikely for regular files in ordinary "
13193 "circumstances."
13194 msgstr ""
13195
13196 # type: textblock
13197 #: ../src/guestfs-actions.pod:5141
13198 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
13199 msgstr ""
13200
13201 # type: =head2
13202 #: ../src/guestfs-actions.pod:5150
13203 msgid "guestfs_pwrite_device"
13204 msgstr ""
13205
13206 # type: verbatim
13207 #: ../src/guestfs-actions.pod:5152
13208 #, no-wrap
13209 msgid ""
13210 " int\n"
13211 " guestfs_pwrite_device (guestfs_h *g,\n"
13212 "                        const char *device,\n"
13213 "                        const char *content,\n"
13214 "                        size_t content_size,\n"
13215 "                        int64_t offset);\n"
13216 "\n"
13217 msgstr ""
13218
13219 # type: textblock
13220 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3432
13221 msgid ""
13222 "This command writes to part of a device.  It writes the data buffer "
13223 "C<content> to C<device> starting at offset C<offset>."
13224 msgstr ""
13225
13226 # type: textblock
13227 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:3435
13228 msgid ""
13229 "This command implements the L<pwrite(2)> system call, and like that system "
13230 "call it may not write the full data requested (although short writes to disk "
13231 "devices and partitions are probably impossible with standard Linux kernels)."
13232 msgstr ""
13233
13234 # type: textblock
13235 #: ../src/guestfs-actions.pod:5167
13236 msgid "See also C<guestfs_pwrite>."
13237 msgstr ""
13238
13239 # type: textblock
13240 #: ../src/guestfs-actions.pod:5174
13241 msgid "(Added in 1.5.20)"
13242 msgstr ""
13243
13244 # type: =head2
13245 #: ../src/guestfs-actions.pod:5176
13246 msgid "guestfs_read_file"
13247 msgstr ""
13248
13249 # type: verbatim
13250 #: ../src/guestfs-actions.pod:5178
13251 #, no-wrap
13252 msgid ""
13253 " char *\n"
13254 " guestfs_read_file (guestfs_h *g,\n"
13255 "                    const char *path,\n"
13256 "                    size_t *size_r);\n"
13257 "\n"
13258 msgstr ""
13259
13260 # type: textblock
13261 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3449
13262 msgid "This calls returns the contents of the file C<path> as a buffer."
13263 msgstr ""
13264
13265 # type: textblock
13266 #: ../src/guestfs-actions.pod:5186
13267 msgid ""
13268 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
13269 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
13270 "function is limited in the total size of file that can be handled."
13271 msgstr ""
13272
13273 # type: textblock
13274 #: ../src/guestfs-actions.pod:5198
13275 msgid "(Added in 1.0.63)"
13276 msgstr ""
13277
13278 # type: =head2
13279 #: ../src/guestfs-actions.pod:5200
13280 msgid "guestfs_read_lines"
13281 msgstr ""
13282
13283 # type: verbatim
13284 #: ../src/guestfs-actions.pod:5202
13285 #, no-wrap
13286 msgid ""
13287 " char **\n"
13288 " guestfs_read_lines (guestfs_h *g,\n"
13289 "                     const char *path);\n"
13290 "\n"
13291 msgstr ""
13292
13293 # type: textblock
13294 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3466
13295 msgid ""
13296 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13297 "C<CRLF> character sequences are I<not> returned."
13298 msgstr ""
13299
13300 # type: textblock
13301 #: ../src/guestfs-actions.pod:5211
13302 msgid ""
13303 "Note that this function cannot correctly handle binary files (specifically, "
13304 "files containing C<\\0> character which is treated as end of line).  For "
13305 "those you need to use the C<guestfs_read_file> function which has a more "
13306 "complex interface."
13307 msgstr ""
13308
13309 # type: =head2
13310 #: ../src/guestfs-actions.pod:5222
13311 msgid "guestfs_readdir"
13312 msgstr ""
13313
13314 # type: verbatim
13315 #: ../src/guestfs-actions.pod:5224
13316 #, no-wrap
13317 msgid ""
13318 " struct guestfs_dirent_list *\n"
13319 " guestfs_readdir (guestfs_h *g,\n"
13320 "                  const char *dir);\n"
13321 "\n"
13322 msgstr ""
13323
13324 # type: textblock
13325 #: ../src/guestfs-actions.pod:5228 ../fish/guestfish-actions.pod:3478
13326 msgid "This returns the list of directory entries in directory C<dir>."
13327 msgstr ""
13328
13329 # type: textblock
13330 #: ../src/guestfs-actions.pod:5230 ../fish/guestfish-actions.pod:3480
13331 msgid ""
13332 "All entries in the directory are returned, including C<.> and C<..>.  The "
13333 "entries are I<not> sorted, but returned in the same order as the underlying "
13334 "filesystem."
13335 msgstr ""
13336
13337 # type: textblock
13338 #: ../src/guestfs-actions.pod:5234 ../fish/guestfish-actions.pod:3484
13339 msgid ""
13340 "Also this call returns basic file type information about each file.  The "
13341 "C<ftyp> field will contain one of the following characters:"
13342 msgstr ""
13343
13344 # type: =item
13345 #: ../src/guestfs-actions.pod:5239 ../fish/guestfish-actions.pod:3489
13346 msgid "'b'"
13347 msgstr ""
13348
13349 # type: textblock
13350 #: ../src/guestfs-actions.pod:5241 ../fish/guestfish-actions.pod:3491
13351 msgid "Block special"
13352 msgstr ""
13353
13354 # type: =item
13355 #: ../src/guestfs-actions.pod:5243 ../fish/guestfish-actions.pod:3493
13356 msgid "'c'"
13357 msgstr ""
13358
13359 # type: textblock
13360 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3495
13361 msgid "Char special"
13362 msgstr ""
13363
13364 # type: =item
13365 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:3497
13366 msgid "'d'"
13367 msgstr ""
13368
13369 # type: textblock
13370 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3499
13371 msgid "Directory"
13372 msgstr ""
13373
13374 # type: =item
13375 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3501
13376 msgid "'f'"
13377 msgstr ""
13378
13379 # type: textblock
13380 #: ../src/guestfs-actions.pod:5253 ../fish/guestfish-actions.pod:3503
13381 msgid "FIFO (named pipe)"
13382 msgstr ""
13383
13384 # type: =item
13385 #: ../src/guestfs-actions.pod:5255 ../fish/guestfish-actions.pod:3505
13386 msgid "'l'"
13387 msgstr ""
13388
13389 # type: textblock
13390 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:3507
13391 msgid "Symbolic link"
13392 msgstr ""
13393
13394 # type: =item
13395 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3509
13396 msgid "'r'"
13397 msgstr ""
13398
13399 # type: textblock
13400 #: ../src/guestfs-actions.pod:5261 ../fish/guestfish-actions.pod:3511
13401 msgid "Regular file"
13402 msgstr ""
13403
13404 # type: =item
13405 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3513
13406 msgid "'s'"
13407 msgstr ""
13408
13409 # type: textblock
13410 #: ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3515
13411 msgid "Socket"
13412 msgstr ""
13413
13414 # type: =item
13415 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3517
13416 msgid "'u'"
13417 msgstr ""
13418
13419 # type: textblock
13420 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:3519
13421 msgid "Unknown file type"
13422 msgstr ""
13423
13424 # type: =item
13425 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3521
13426 msgid "'?'"
13427 msgstr ""
13428
13429 # type: textblock
13430 #: ../src/guestfs-actions.pod:5273 ../fish/guestfish-actions.pod:3523
13431 msgid ""
13432 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13433 msgstr ""
13434
13435 # type: textblock
13436 #: ../src/guestfs-actions.pod:5278
13437 msgid ""
13438 "This function is primarily intended for use by programs.  To get a simple "
13439 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13440 "consumption, use C<guestfs_ll>."
13441 msgstr ""
13442
13443 # type: textblock
13444 #: ../src/guestfs-actions.pod:5282
13445 msgid ""
13446 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13447 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13448 msgstr ""
13449
13450 # type: =head2
13451 #: ../src/guestfs-actions.pod:5288
13452 msgid "guestfs_readlink"
13453 msgstr ""
13454
13455 # type: verbatim
13456 #: ../src/guestfs-actions.pod:5290
13457 #, no-wrap
13458 msgid ""
13459 " char *\n"
13460 " guestfs_readlink (guestfs_h *g,\n"
13461 "                   const char *path);\n"
13462 "\n"
13463 msgstr ""
13464
13465 # type: textblock
13466 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3536
13467 msgid "This command reads the target of a symbolic link."
13468 msgstr ""
13469
13470 # type: =head2
13471 #: ../src/guestfs-actions.pod:5301
13472 msgid "guestfs_readlinklist"
13473 msgstr ""
13474
13475 # type: verbatim
13476 #: ../src/guestfs-actions.pod:5303
13477 #, no-wrap
13478 msgid ""
13479 " char **\n"
13480 " guestfs_readlinklist (guestfs_h *g,\n"
13481 "                       const char *path,\n"
13482 "                       char *const *names);\n"
13483 "\n"
13484 msgstr ""
13485
13486 # type: textblock
13487 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3542
13488 msgid ""
13489 "This call allows you to do a C<readlink> operation on multiple files, where "
13490 "all files are in the directory C<path>.  C<names> is the list of files from "
13491 "this directory."
13492 msgstr ""
13493
13494 # type: textblock
13495 #: ../src/guestfs-actions.pod:5312 ../fish/guestfish-actions.pod:3546
13496 msgid ""
13497 "On return you get a list of strings, with a one-to-one correspondence to the "
13498 "C<names> list.  Each string is the value of the symbolic link."
13499 msgstr ""
13500
13501 # type: textblock
13502 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3550
13503 msgid ""
13504 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13505 "result string is the empty string C<\"\">.  However the whole operation is "
13506 "completed even if there were C<readlink(2)> errors, and so you can call this "
13507 "function with names where you don't know if they are symbolic links already "
13508 "(albeit slightly less efficient)."
13509 msgstr ""
13510
13511 # type: textblock
13512 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3557
13513 msgid ""
13514 "This call is intended for programs that want to efficiently list a directory "
13515 "contents without making many round-trips.  Very long directory listings "
13516 "might cause the protocol message size to be exceeded, causing this call to "
13517 "fail.  The caller must split up such requests into smaller groups of names."
13518 msgstr ""
13519
13520 # type: =head2
13521 #: ../src/guestfs-actions.pod:5336
13522 msgid "guestfs_realpath"
13523 msgstr ""
13524
13525 # type: verbatim
13526 #: ../src/guestfs-actions.pod:5338
13527 #, no-wrap
13528 msgid ""
13529 " char *\n"
13530 " guestfs_realpath (guestfs_h *g,\n"
13531 "                   const char *path);\n"
13532 "\n"
13533 msgstr ""
13534
13535 # type: textblock
13536 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3568
13537 msgid ""
13538 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13539 "has no C<.>, C<..> or symbolic link path elements."
13540 msgstr ""
13541
13542 # type: =head2
13543 #: ../src/guestfs-actions.pod:5350
13544 msgid "guestfs_removexattr"
13545 msgstr ""
13546
13547 # type: verbatim
13548 #: ../src/guestfs-actions.pod:5352
13549 #, no-wrap
13550 msgid ""
13551 " int\n"
13552 " guestfs_removexattr (guestfs_h *g,\n"
13553 "                      const char *xattr,\n"
13554 "                      const char *path);\n"
13555 "\n"
13556 msgstr ""
13557
13558 # type: textblock
13559 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3575
13560 msgid ""
13561 "This call removes the extended attribute named C<xattr> of the file C<path>."
13562 msgstr ""
13563
13564 # type: textblock
13565 #: ../src/guestfs-actions.pod:5360
13566 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13567 msgstr ""
13568
13569 # type: =head2
13570 #: ../src/guestfs-actions.pod:5366
13571 msgid "guestfs_resize2fs"
13572 msgstr ""
13573
13574 # type: verbatim
13575 #: ../src/guestfs-actions.pod:5368
13576 #, no-wrap
13577 msgid ""
13578 " int\n"
13579 " guestfs_resize2fs (guestfs_h *g,\n"
13580 "                    const char *device);\n"
13581 "\n"
13582 msgstr ""
13583
13584 # type: textblock
13585 #: ../src/guestfs-actions.pod:5372 ../fish/guestfish-actions.pod:3584
13586 msgid ""
13587 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13588 "underlying device."
13589 msgstr ""
13590
13591 # type: textblock
13592 #: ../src/guestfs-actions.pod:5375
13593 msgid ""
13594 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13595 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13596 "sometimes gives an error about this and sometimes not.  In any case, it is "
13597 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13598 msgstr ""
13599
13600 # type: =head2
13601 #: ../src/guestfs-actions.pod:5385
13602 msgid "guestfs_resize2fs_size"
13603 msgstr ""
13604
13605 # type: verbatim
13606 #: ../src/guestfs-actions.pod:5387
13607 #, no-wrap
13608 msgid ""
13609 " int\n"
13610 " guestfs_resize2fs_size (guestfs_h *g,\n"
13611 "                         const char *device,\n"
13612 "                         int64_t size);\n"
13613 "\n"
13614 msgstr ""
13615
13616 # type: textblock
13617 #: ../src/guestfs-actions.pod:5392
13618 msgid ""
13619 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13620 "to specify the new size (in bytes) explicitly."
13621 msgstr ""
13622
13623 # type: =head2
13624 #: ../src/guestfs-actions.pod:5399
13625 msgid "guestfs_rm"
13626 msgstr ""
13627
13628 # type: verbatim
13629 #: ../src/guestfs-actions.pod:5401
13630 #, no-wrap
13631 msgid ""
13632 " int\n"
13633 " guestfs_rm (guestfs_h *g,\n"
13634 "             const char *path);\n"
13635 "\n"
13636 msgstr ""
13637
13638 # type: textblock
13639 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3604
13640 msgid "Remove the single file C<path>."
13641 msgstr ""
13642
13643 # type: =head2
13644 #: ../src/guestfs-actions.pod:5411
13645 msgid "guestfs_rm_rf"
13646 msgstr ""
13647
13648 # type: verbatim
13649 #: ../src/guestfs-actions.pod:5413
13650 #, no-wrap
13651 msgid ""
13652 " int\n"
13653 " guestfs_rm_rf (guestfs_h *g,\n"
13654 "                const char *path);\n"
13655 "\n"
13656 msgstr ""
13657
13658 # type: textblock
13659 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3610
13660 msgid ""
13661 "Remove the file or directory C<path>, recursively removing the contents if "
13662 "its a directory.  This is like the C<rm -rf> shell command."
13663 msgstr ""
13664
13665 # type: =head2
13666 #: ../src/guestfs-actions.pod:5425
13667 msgid "guestfs_rmdir"
13668 msgstr ""
13669
13670 # type: verbatim
13671 #: ../src/guestfs-actions.pod:5427
13672 #, no-wrap
13673 msgid ""
13674 " int\n"
13675 " guestfs_rmdir (guestfs_h *g,\n"
13676 "                const char *path);\n"
13677 "\n"
13678 msgstr ""
13679
13680 # type: textblock
13681 #: ../src/guestfs-actions.pod:5431 ../fish/guestfish-actions.pod:3618
13682 msgid "Remove the single directory C<path>."
13683 msgstr ""
13684
13685 # type: =head2
13686 #: ../src/guestfs-actions.pod:5437
13687 msgid "guestfs_rmmountpoint"
13688 msgstr ""
13689
13690 # type: verbatim
13691 #: ../src/guestfs-actions.pod:5439
13692 #, no-wrap
13693 msgid ""
13694 " int\n"
13695 " guestfs_rmmountpoint (guestfs_h *g,\n"
13696 "                       const char *exemptpath);\n"
13697 "\n"
13698 msgstr ""
13699
13700 # type: textblock
13701 #: ../src/guestfs-actions.pod:5443
13702 msgid ""
13703 "This calls removes a mountpoint that was previously created with "
13704 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13705 msgstr ""
13706
13707 # type: =head2
13708 #: ../src/guestfs-actions.pod:5451
13709 msgid "guestfs_scrub_device"
13710 msgstr ""
13711
13712 # type: verbatim
13713 #: ../src/guestfs-actions.pod:5453
13714 #, no-wrap
13715 msgid ""
13716 " int\n"
13717 " guestfs_scrub_device (guestfs_h *g,\n"
13718 "                       const char *device);\n"
13719 "\n"
13720 msgstr ""
13721
13722 # type: textblock
13723 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3632
13724 msgid ""
13725 "This command writes patterns over C<device> to make data retrieval more "
13726 "difficult."
13727 msgstr ""
13728
13729 # type: textblock
13730 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5481
13731 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3635
13732 #: ../fish/guestfish-actions.pod:3650 ../fish/guestfish-actions.pod:3663
13733 msgid ""
13734 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13735 "more details."
13736 msgstr ""
13737
13738 # type: textblock
13739 #: ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5486
13740 #: ../src/guestfs-actions.pod:5505
13741 msgid "(Added in 1.0.52)"
13742 msgstr ""
13743
13744 # type: =head2
13745 #: ../src/guestfs-actions.pod:5470
13746 msgid "guestfs_scrub_file"
13747 msgstr ""
13748
13749 # type: verbatim
13750 #: ../src/guestfs-actions.pod:5472
13751 #, no-wrap
13752 msgid ""
13753 " int\n"
13754 " guestfs_scrub_file (guestfs_h *g,\n"
13755 "                     const char *file);\n"
13756 "\n"
13757 msgstr ""
13758
13759 # type: textblock
13760 #: ../src/guestfs-actions.pod:5476 ../fish/guestfish-actions.pod:3645
13761 msgid ""
13762 "This command writes patterns over a file to make data retrieval more "
13763 "difficult."
13764 msgstr ""
13765
13766 # type: textblock
13767 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:3648
13768 msgid "The file is I<removed> after scrubbing."
13769 msgstr ""
13770
13771 # type: =head2
13772 #: ../src/guestfs-actions.pod:5488
13773 msgid "guestfs_scrub_freespace"
13774 msgstr ""
13775
13776 # type: verbatim
13777 #: ../src/guestfs-actions.pod:5490
13778 #, no-wrap
13779 msgid ""
13780 " int\n"
13781 " guestfs_scrub_freespace (guestfs_h *g,\n"
13782 "                          const char *dir);\n"
13783 "\n"
13784 msgstr ""
13785
13786 # type: textblock
13787 #: ../src/guestfs-actions.pod:5494
13788 msgid ""
13789 "This command creates the directory C<dir> and then fills it with files until "
13790 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13791 "and deletes them.  The intention is to scrub any free space on the partition "
13792 "containing C<dir>."
13793 msgstr ""
13794
13795 # type: =head2
13796 #: ../src/guestfs-actions.pod:5507
13797 msgid "guestfs_set_append"
13798 msgstr ""
13799
13800 # type: verbatim
13801 #: ../src/guestfs-actions.pod:5509
13802 #, no-wrap
13803 msgid ""
13804 " int\n"
13805 " guestfs_set_append (guestfs_h *g,\n"
13806 "                     const char *append);\n"
13807 "\n"
13808 msgstr ""
13809
13810 # type: textblock
13811 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3672
13812 msgid ""
13813 "This function is used to add additional options to the guest kernel command "
13814 "line."
13815 msgstr ""
13816
13817 # type: textblock
13818 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3675
13819 msgid ""
13820 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13821 "environment variable."
13822 msgstr ""
13823
13824 # type: textblock
13825 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3678
13826 msgid ""
13827 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13828 "(libguestfs always adds a few of its own)."
13829 msgstr ""
13830
13831 # type: =head2
13832 #: ../src/guestfs-actions.pod:5526
13833 msgid "guestfs_set_autosync"
13834 msgstr ""
13835
13836 # type: verbatim
13837 #: ../src/guestfs-actions.pod:5528
13838 #, no-wrap
13839 msgid ""
13840 " int\n"
13841 " guestfs_set_autosync (guestfs_h *g,\n"
13842 "                       int autosync);\n"
13843 "\n"
13844 msgstr ""
13845
13846 # type: textblock
13847 #: ../src/guestfs-actions.pod:5532
13848 msgid ""
13849 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13850 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13851 "the handle is closed (also if the program exits without closing handles)."
13852 msgstr ""
13853
13854 # type: textblock
13855 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:3692
13856 msgid ""
13857 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13858 "disabled by default)."
13859 msgstr ""
13860
13861 # type: =head2
13862 #: ../src/guestfs-actions.pod:5544
13863 msgid "guestfs_set_direct"
13864 msgstr ""
13865
13866 # type: verbatim
13867 #: ../src/guestfs-actions.pod:5546
13868 #, no-wrap
13869 msgid ""
13870 " int\n"
13871 " guestfs_set_direct (guestfs_h *g,\n"
13872 "                     int direct);\n"
13873 "\n"
13874 msgstr ""
13875
13876 # type: textblock
13877 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:3701
13878 msgid ""
13879 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13880 "passed directly through to the appliance once it is launched."
13881 msgstr ""
13882
13883 # type: textblock
13884 #: ../src/guestfs-actions.pod:5554
13885 msgid ""
13886 "One consequence of this is that log messages aren't caught by the library "
13887 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13888 "stdout."
13889 msgstr ""
13890
13891 # type: textblock
13892 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3709
13893 msgid "You probably don't want to use this unless you know what you are doing."
13894 msgstr ""
13895
13896 # type: textblock
13897 #: ../src/guestfs-actions.pod:5561 ../fish/guestfish-actions.pod:3712
13898 msgid "The default is disabled."
13899 msgstr ""
13900
13901 # type: =head2
13902 #: ../src/guestfs-actions.pod:5567
13903 msgid "guestfs_set_e2label"
13904 msgstr ""
13905
13906 # type: verbatim
13907 #: ../src/guestfs-actions.pod:5569
13908 #, no-wrap
13909 msgid ""
13910 " int\n"
13911 " guestfs_set_e2label (guestfs_h *g,\n"
13912 "                      const char *device,\n"
13913 "                      const char *label);\n"
13914 "\n"
13915 msgstr ""
13916
13917 # type: textblock
13918 #: ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3718
13919 msgid ""
13920 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13921 "C<label>.  Filesystem labels are limited to 16 characters."
13922 msgstr ""
13923
13924 # type: textblock
13925 #: ../src/guestfs-actions.pod:5578
13926 msgid ""
13927 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13928 "the existing label on a filesystem."
13929 msgstr ""
13930
13931 # type: =head2
13932 #: ../src/guestfs-actions.pod:5585
13933 msgid "guestfs_set_e2uuid"
13934 msgstr ""
13935
13936 # type: verbatim
13937 #: ../src/guestfs-actions.pod:5587
13938 #, no-wrap
13939 msgid ""
13940 " int\n"
13941 " guestfs_set_e2uuid (guestfs_h *g,\n"
13942 "                     const char *device,\n"
13943 "                     const char *uuid);\n"
13944 "\n"
13945 msgstr ""
13946
13947 # type: textblock
13948 #: ../src/guestfs-actions.pod:5592 ../fish/guestfish-actions.pod:3729
13949 msgid ""
13950 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13951 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13952 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13953 msgstr ""
13954
13955 # type: textblock
13956 #: ../src/guestfs-actions.pod:5597
13957 msgid ""
13958 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13959 "the existing UUID of a filesystem."
13960 msgstr ""
13961
13962 # type: =head2
13963 #: ../src/guestfs-actions.pod:5604
13964 msgid "guestfs_set_memsize"
13965 msgstr ""
13966
13967 # type: verbatim
13968 #: ../src/guestfs-actions.pod:5606
13969 #, no-wrap
13970 msgid ""
13971 " int\n"
13972 " guestfs_set_memsize (guestfs_h *g,\n"
13973 "                      int memsize);\n"
13974 "\n"
13975 msgstr ""
13976
13977 # type: textblock
13978 #: ../src/guestfs-actions.pod:5610
13979 msgid ""
13980 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13981 "This only has any effect if called before C<guestfs_launch>."
13982 msgstr ""
13983
13984 # type: textblock
13985 #: ../src/guestfs-actions.pod:5614 ../fish/guestfish-actions.pod:3747
13986 msgid ""
13987 "You can also change this by setting the environment variable "
13988 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13989 msgstr ""
13990
13991 # type: =head2
13992 #: ../src/guestfs-actions.pod:5625
13993 msgid "guestfs_set_network"
13994 msgstr ""
13995
13996 # type: verbatim
13997 #: ../src/guestfs-actions.pod:5627
13998 #, no-wrap
13999 msgid ""
14000 " int\n"
14001 " guestfs_set_network (guestfs_h *g,\n"
14002 "                      int network);\n"
14003 "\n"
14004 msgstr ""
14005
14006 # type: textblock
14007 #: ../src/guestfs-actions.pod:5631 ../fish/guestfish-actions.pod:3760
14008 msgid ""
14009 "If C<network> is true, then the network is enabled in the libguestfs "
14010 "appliance.  The default is false."
14011 msgstr ""
14012
14013 # type: textblock
14014 #: ../src/guestfs-actions.pod:5634 ../fish/guestfish-actions.pod:3763
14015 msgid ""
14016 "This affects whether commands are able to access the network (see L<guestfs"
14017 "(3)/RUNNING COMMANDS>)."
14018 msgstr ""
14019
14020 # type: textblock
14021 #: ../src/guestfs-actions.pod:5637
14022 msgid ""
14023 "You must call this before calling C<guestfs_launch>, otherwise it has no "
14024 "effect."
14025 msgstr ""
14026
14027 # type: =head2
14028 #: ../src/guestfs-actions.pod:5644
14029 msgid "guestfs_set_path"
14030 msgstr ""
14031
14032 # type: verbatim
14033 #: ../src/guestfs-actions.pod:5646
14034 #, no-wrap
14035 msgid ""
14036 " int\n"
14037 " guestfs_set_path (guestfs_h *g,\n"
14038 "                   const char *searchpath);\n"
14039 "\n"
14040 msgstr ""
14041
14042 # type: textblock
14043 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:3775
14044 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14045 msgstr ""
14046
14047 # type: textblock
14048 #: ../src/guestfs-actions.pod:5652 ../fish/guestfish-actions.pod:3777
14049 msgid ""
14050 "The default is C<$libdir/guestfs> unless overridden by setting "
14051 "C<LIBGUESTFS_PATH> environment variable."
14052 msgstr ""
14053
14054 # type: textblock
14055 #: ../src/guestfs-actions.pod:5655 ../fish/guestfish-actions.pod:3780
14056 msgid "Setting C<path> to C<NULL> restores the default path."
14057 msgstr ""
14058
14059 # type: =head2
14060 #: ../src/guestfs-actions.pod:5661
14061 msgid "guestfs_set_qemu"
14062 msgstr ""
14063
14064 # type: verbatim
14065 #: ../src/guestfs-actions.pod:5663
14066 #, no-wrap
14067 msgid ""
14068 " int\n"
14069 " guestfs_set_qemu (guestfs_h *g,\n"
14070 "                   const char *qemu);\n"
14071 "\n"
14072 msgstr ""
14073
14074 # type: textblock
14075 #: ../src/guestfs-actions.pod:5667 ../fish/guestfish-actions.pod:3788
14076 msgid "Set the qemu binary that we will use."
14077 msgstr ""
14078
14079 # type: textblock
14080 #: ../src/guestfs-actions.pod:5669 ../fish/guestfish-actions.pod:3790
14081 msgid ""
14082 "The default is chosen when the library was compiled by the configure script."
14083 msgstr ""
14084
14085 # type: textblock
14086 #: ../src/guestfs-actions.pod:5672 ../fish/guestfish-actions.pod:3793
14087 msgid ""
14088 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14089 "variable."
14090 msgstr ""
14091
14092 # type: textblock
14093 #: ../src/guestfs-actions.pod:5675 ../fish/guestfish-actions.pod:3796
14094 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14095 msgstr ""
14096
14097 # type: textblock
14098 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:3798
14099 msgid ""
14100 "Note that you should call this function as early as possible after creating "
14101 "the handle.  This is because some pre-launch operations depend on testing "
14102 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14103 "don't retest features, and so you might see inconsistent results.  Using the "
14104 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14105 "the qemu binary at the same time as the handle is created."
14106 msgstr ""
14107
14108 # type: =head2
14109 #: ../src/guestfs-actions.pod:5689
14110 msgid "guestfs_set_recovery_proc"
14111 msgstr ""
14112
14113 # type: verbatim
14114 #: ../src/guestfs-actions.pod:5691
14115 #, no-wrap
14116 msgid ""
14117 " int\n"
14118 " guestfs_set_recovery_proc (guestfs_h *g,\n"
14119 "                            int recoveryproc);\n"
14120 "\n"
14121 msgstr ""
14122
14123 # type: textblock
14124 #: ../src/guestfs-actions.pod:5695
14125 msgid ""
14126 "If this is called with the parameter C<false> then C<guestfs_launch> does "
14127 "not create a recovery process.  The purpose of the recovery process is to "
14128 "stop runaway qemu processes in the case where the main program aborts "
14129 "abruptly."
14130 msgstr ""
14131
14132 # type: textblock
14133 #: ../src/guestfs-actions.pod:5700
14134 msgid ""
14135 "This only has any effect if called before C<guestfs_launch>, and the default "
14136 "is true."
14137 msgstr ""
14138
14139 # type: textblock
14140 #: ../src/guestfs-actions.pod:5703 ../fish/guestfish-actions.pod:3820
14141 msgid ""
14142 "About the only time when you would want to disable this is if the main "
14143 "process will fork itself into the background (\"daemonize\" itself).  In "
14144 "this case the recovery process thinks that the main program has disappeared "
14145 "and so kills qemu, which is not very helpful."
14146 msgstr ""
14147
14148 # type: =head2
14149 #: ../src/guestfs-actions.pod:5713
14150 msgid "guestfs_set_selinux"
14151 msgstr ""
14152
14153 # type: verbatim
14154 #: ../src/guestfs-actions.pod:5715
14155 #, no-wrap
14156 msgid ""
14157 " int\n"
14158 " guestfs_set_selinux (guestfs_h *g,\n"
14159 "                      int selinux);\n"
14160 "\n"
14161 msgstr ""
14162
14163 # type: textblock
14164 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3832
14165 msgid ""
14166 "This sets the selinux flag that is passed to the appliance at boot time.  "
14167 "The default is C<selinux=0> (disabled)."
14168 msgstr ""
14169
14170 # type: textblock
14171 #: ../src/guestfs-actions.pod:5722 ../fish/guestfish-actions.pod:3835
14172 msgid ""
14173 "Note that if SELinux is enabled, it is always in Permissive mode "
14174 "(C<enforcing=0>)."
14175 msgstr ""
14176
14177 # type: =head2
14178 #: ../src/guestfs-actions.pod:5732
14179 msgid "guestfs_set_trace"
14180 msgstr ""
14181
14182 # type: verbatim
14183 #: ../src/guestfs-actions.pod:5734
14184 #, no-wrap
14185 msgid ""
14186 " int\n"
14187 " guestfs_set_trace (guestfs_h *g,\n"
14188 "                    int trace);\n"
14189 "\n"
14190 msgstr ""
14191
14192 # type: textblock
14193 #: ../src/guestfs-actions.pod:5738 ../fish/guestfish-actions.pod:3847
14194 msgid ""
14195 "If the command trace flag is set to 1, then commands are printed on stderr "
14196 "before they are executed in a format which is very similar to the one used "
14197 "by guestfish.  In other words, you can run a program with this enabled, and "
14198 "you will get out a script which you can feed to guestfish to perform the "
14199 "same set of actions."
14200 msgstr ""
14201
14202 # type: textblock
14203 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3854
14204 msgid ""
14205 "If you want to trace C API calls into libguestfs (and other libraries) then "
14206 "possibly a better way is to use the external ltrace(1) command."
14207 msgstr ""
14208
14209 # type: textblock
14210 #: ../src/guestfs-actions.pod:5749 ../fish/guestfish-actions.pod:3858
14211 msgid ""
14212 "Command traces are disabled unless the environment variable "
14213 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14214 msgstr ""
14215
14216 # type: =head2
14217 #: ../src/guestfs-actions.pod:5756
14218 msgid "guestfs_set_verbose"
14219 msgstr ""
14220
14221 # type: verbatim
14222 #: ../src/guestfs-actions.pod:5758
14223 #, no-wrap
14224 msgid ""
14225 " int\n"
14226 " guestfs_set_verbose (guestfs_h *g,\n"
14227 "                      int verbose);\n"
14228 "\n"
14229 msgstr ""
14230
14231 # type: textblock
14232 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3867
14233 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
14234 msgstr ""
14235
14236 # type: textblock
14237 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:3869
14238 msgid ""
14239 "Verbose messages are disabled unless the environment variable "
14240 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14241 msgstr ""
14242
14243 # type: =head2
14244 #: ../src/guestfs-actions.pod:5771
14245 msgid "guestfs_setcon"
14246 msgstr ""
14247
14248 # type: verbatim
14249 #: ../src/guestfs-actions.pod:5773
14250 #, no-wrap
14251 msgid ""
14252 " int\n"
14253 " guestfs_setcon (guestfs_h *g,\n"
14254 "                 const char *context);\n"
14255 "\n"
14256 msgstr ""
14257
14258 # type: textblock
14259 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3876
14260 msgid ""
14261 "This sets the SELinux security context of the daemon to the string "
14262 "C<context>."
14263 msgstr ""
14264
14265 # type: textblock
14266 #: ../src/guestfs-actions.pod:5780 ../fish/guestfish-actions.pod:3879
14267 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14268 msgstr ""
14269
14270 # type: =head2
14271 #: ../src/guestfs-actions.pod:5786
14272 msgid "guestfs_setxattr"
14273 msgstr ""
14274
14275 # type: verbatim
14276 #: ../src/guestfs-actions.pod:5788
14277 #, no-wrap
14278 msgid ""
14279 " int\n"
14280 " guestfs_setxattr (guestfs_h *g,\n"
14281 "                   const char *xattr,\n"
14282 "                   const char *val,\n"
14283 "                   int vallen,\n"
14284 "                   const char *path);\n"
14285 "\n"
14286 msgstr ""
14287
14288 # type: textblock
14289 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:3885
14290 msgid ""
14291 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14292 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14293 msgstr ""
14294
14295 # type: textblock
14296 #: ../src/guestfs-actions.pod:5799
14297 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14298 msgstr ""
14299
14300 # type: =head2
14301 #: ../src/guestfs-actions.pod:5805
14302 msgid "guestfs_sfdisk"
14303 msgstr ""
14304
14305 # type: verbatim
14306 #: ../src/guestfs-actions.pod:5807
14307 #, no-wrap
14308 msgid ""
14309 " int\n"
14310 " guestfs_sfdisk (guestfs_h *g,\n"
14311 "                 const char *device,\n"
14312 "                 int cyls,\n"
14313 "                 int heads,\n"
14314 "                 int sectors,\n"
14315 "                 char *const *lines);\n"
14316 "\n"
14317 msgstr ""
14318
14319 # type: textblock
14320 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3895
14321 msgid ""
14322 "This is a direct interface to the L<sfdisk(8)> program for creating "
14323 "partitions on block devices."
14324 msgstr ""
14325
14326 # type: textblock
14327 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3898
14328 msgid "C<device> should be a block device, for example C</dev/sda>."
14329 msgstr ""
14330
14331 # type: textblock
14332 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3900
14333 msgid ""
14334 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14335 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14336 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14337 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14338 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14339 "the kernel) cannot work out the right geometry and you will need to tell it."
14340 msgstr ""
14341
14342 # type: textblock
14343 #: ../src/guestfs-actions.pod:5828 ../fish/guestfish-actions.pod:3908
14344 msgid ""
14345 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14346 "refer to the L<sfdisk(8)> manpage."
14347 msgstr ""
14348
14349 # type: textblock
14350 #: ../src/guestfs-actions.pod:5831 ../fish/guestfish-actions.pod:3911
14351 msgid ""
14352 "To create a single partition occupying the whole disk, you would pass "
14353 "C<lines> as a single element list, when the single element being the string "
14354 "C<,> (comma)."
14355 msgstr ""
14356
14357 # type: textblock
14358 #: ../src/guestfs-actions.pod:5835
14359 msgid ""
14360 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14361 msgstr ""
14362
14363 # type: =head2
14364 #: ../src/guestfs-actions.pod:5845
14365 msgid "guestfs_sfdiskM"
14366 msgstr ""
14367
14368 # type: verbatim
14369 #: ../src/guestfs-actions.pod:5847
14370 #, no-wrap
14371 msgid ""
14372 " int\n"
14373 " guestfs_sfdiskM (guestfs_h *g,\n"
14374 "                  const char *device,\n"
14375 "                  char *const *lines);\n"
14376 "\n"
14377 msgstr ""
14378
14379 # type: textblock
14380 #: ../src/guestfs-actions.pod:5852
14381 msgid ""
14382 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14383 "partition sizes are specified in megabytes only (rounded to the nearest "
14384 "cylinder) and you don't need to specify the cyls, heads and sectors "
14385 "parameters which were rarely if ever used anyway."
14386 msgstr ""
14387
14388 # type: textblock
14389 #: ../src/guestfs-actions.pod:5858
14390 msgid ""
14391 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14392 "C<guestfs_part_disk>"
14393 msgstr ""
14394
14395 # type: =head2
14396 #: ../src/guestfs-actions.pod:5868
14397 msgid "guestfs_sfdisk_N"
14398 msgstr ""
14399
14400 # type: verbatim
14401 #: ../src/guestfs-actions.pod:5870
14402 #, no-wrap
14403 msgid ""
14404 " int\n"
14405 " guestfs_sfdisk_N (guestfs_h *g,\n"
14406 "                   const char *device,\n"
14407 "                   int partnum,\n"
14408 "                   int cyls,\n"
14409 "                   int heads,\n"
14410 "                   int sectors,\n"
14411 "                   const char *line);\n"
14412 "\n"
14413 msgstr ""
14414
14415 # type: textblock
14416 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3941
14417 msgid ""
14418 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14419 "(note: C<n> counts from 1)."
14420 msgstr ""
14421
14422 # type: textblock
14423 #: ../src/guestfs-actions.pod:5882
14424 msgid ""
14425 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14426 "for the cyls/heads/sectors parameters."
14427 msgstr ""
14428
14429 # type: textblock
14430 #: ../src/guestfs-actions.pod:5885
14431 msgid "See also: C<guestfs_part_add>"
14432 msgstr ""
14433
14434 # type: =head2
14435 #: ../src/guestfs-actions.pod:5894
14436 msgid "guestfs_sfdisk_disk_geometry"
14437 msgstr ""
14438
14439 # type: verbatim
14440 #: ../src/guestfs-actions.pod:5896
14441 #, no-wrap
14442 msgid ""
14443 " char *\n"
14444 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14445 "                               const char *device);\n"
14446 "\n"
14447 msgstr ""
14448
14449 # type: textblock
14450 #: ../src/guestfs-actions.pod:5900
14451 msgid ""
14452 "This displays the disk geometry of C<device> read from the partition table.  "
14453 "Especially in the case where the underlying block device has been resized, "
14454 "this can be different from the kernel's idea of the geometry (see "
14455 "C<guestfs_sfdisk_kernel_geometry>)."
14456 msgstr ""
14457
14458 # type: textblock
14459 #: ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5921
14460 #: ../fish/guestfish-actions.pod:3961 ../fish/guestfish-actions.pod:3970
14461 msgid "The result is in human-readable format, and not designed to be parsed."
14462 msgstr ""
14463
14464 # type: =head2
14465 #: ../src/guestfs-actions.pod:5913
14466 msgid "guestfs_sfdisk_kernel_geometry"
14467 msgstr ""
14468
14469 # type: verbatim
14470 #: ../src/guestfs-actions.pod:5915
14471 #, no-wrap
14472 msgid ""
14473 " char *\n"
14474 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14475 "                                 const char *device);\n"
14476 "\n"
14477 msgstr ""
14478
14479 # type: textblock
14480 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3968
14481 msgid "This displays the kernel's idea of the geometry of C<device>."
14482 msgstr ""
14483
14484 # type: =head2
14485 #: ../src/guestfs-actions.pod:5929
14486 msgid "guestfs_sfdisk_l"
14487 msgstr ""
14488
14489 # type: verbatim
14490 #: ../src/guestfs-actions.pod:5931
14491 #, no-wrap
14492 msgid ""
14493 " char *\n"
14494 " guestfs_sfdisk_l (guestfs_h *g,\n"
14495 "                   const char *device);\n"
14496 "\n"
14497 msgstr ""
14498
14499 # type: textblock
14500 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3977
14501 msgid ""
14502 "This displays the partition table on C<device>, in the human-readable output "
14503 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14504 msgstr ""
14505
14506 # type: textblock
14507 #: ../src/guestfs-actions.pod:5939
14508 msgid "See also: C<guestfs_part_list>"
14509 msgstr ""
14510
14511 # type: =head2
14512 #: ../src/guestfs-actions.pod:5946
14513 msgid "guestfs_sh"
14514 msgstr ""
14515
14516 # type: verbatim
14517 #: ../src/guestfs-actions.pod:5948
14518 #, no-wrap
14519 msgid ""
14520 " char *\n"
14521 " guestfs_sh (guestfs_h *g,\n"
14522 "             const char *command);\n"
14523 "\n"
14524 msgstr ""
14525
14526 # type: textblock
14527 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:3987
14528 msgid ""
14529 "This call runs a command from the guest filesystem via the guest's C</bin/"
14530 "sh>."
14531 msgstr ""
14532
14533 # type: textblock
14534 #: ../src/guestfs-actions.pod:5955
14535 msgid "This is like C<guestfs_command>, but passes the command to:"
14536 msgstr ""
14537
14538 # type: verbatim
14539 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:3992
14540 #, no-wrap
14541 msgid ""
14542 " /bin/sh -c \"command\"\n"
14543 "\n"
14544 msgstr ""
14545
14546 # type: textblock
14547 #: ../src/guestfs-actions.pod:5959 ../fish/guestfish-actions.pod:3994
14548 msgid ""
14549 "Depending on the guest's shell, this usually results in wildcards being "
14550 "expanded, shell expressions being interpolated and so on."
14551 msgstr ""
14552
14553 # type: textblock
14554 #: ../src/guestfs-actions.pod:5963
14555 msgid "All the provisos about C<guestfs_command> apply to this call."
14556 msgstr ""
14557
14558 # type: =head2
14559 #: ../src/guestfs-actions.pod:5970
14560 msgid "guestfs_sh_lines"
14561 msgstr ""
14562
14563 # type: verbatim
14564 #: ../src/guestfs-actions.pod:5972
14565 #, no-wrap
14566 msgid ""
14567 " char **\n"
14568 " guestfs_sh_lines (guestfs_h *g,\n"
14569 "                   const char *command);\n"
14570 "\n"
14571 msgstr ""
14572
14573 # type: textblock
14574 #: ../src/guestfs-actions.pod:5976
14575 msgid ""
14576 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14577 "lines."
14578 msgstr ""
14579
14580 # type: textblock
14581 #: ../src/guestfs-actions.pod:5979
14582 msgid "See also: C<guestfs_command_lines>"
14583 msgstr ""
14584
14585 # type: =head2
14586 #: ../src/guestfs-actions.pod:5987
14587 msgid "guestfs_sleep"
14588 msgstr ""
14589
14590 # type: verbatim
14591 #: ../src/guestfs-actions.pod:5989
14592 #, no-wrap
14593 msgid ""
14594 " int\n"
14595 " guestfs_sleep (guestfs_h *g,\n"
14596 "                int secs);\n"
14597 "\n"
14598 msgstr ""
14599
14600 # type: textblock
14601 #: ../src/guestfs-actions.pod:5993 ../fish/guestfish-actions.pod:4013
14602 msgid "Sleep for C<secs> seconds."
14603 msgstr ""
14604
14605 # type: textblock
14606 #: ../src/guestfs-actions.pod:5997
14607 msgid "(Added in 1.0.41)"
14608 msgstr ""
14609
14610 # type: =head2
14611 #: ../src/guestfs-actions.pod:5999 ../src/guestfs-structs.pod:109
14612 msgid "guestfs_stat"
14613 msgstr ""
14614
14615 # type: verbatim
14616 #: ../src/guestfs-actions.pod:6001
14617 #, no-wrap
14618 msgid ""
14619 " struct guestfs_stat *\n"
14620 " guestfs_stat (guestfs_h *g,\n"
14621 "               const char *path);\n"
14622 "\n"
14623 msgstr ""
14624
14625 # type: textblock
14626 #: ../src/guestfs-actions.pod:6007 ../fish/guestfish-actions.pod:4021
14627 msgid "This is the same as the C<stat(2)> system call."
14628 msgstr ""
14629
14630 # type: =head2
14631 #: ../src/guestfs-actions.pod:6015 ../src/guestfs-structs.pod:135
14632 msgid "guestfs_statvfs"
14633 msgstr ""
14634
14635 # type: verbatim
14636 #: ../src/guestfs-actions.pod:6017
14637 #, no-wrap
14638 msgid ""
14639 " struct guestfs_statvfs *\n"
14640 " guestfs_statvfs (guestfs_h *g,\n"
14641 "                  const char *path);\n"
14642 "\n"
14643 msgstr ""
14644
14645 # type: textblock
14646 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:4027
14647 msgid ""
14648 "Returns file system statistics for any mounted file system.  C<path> should "
14649 "be a file or directory in the mounted file system (typically it is the mount "
14650 "point itself, but it doesn't need to be)."
14651 msgstr ""
14652
14653 # type: textblock
14654 #: ../src/guestfs-actions.pod:6025 ../fish/guestfish-actions.pod:4031
14655 msgid "This is the same as the C<statvfs(2)> system call."
14656 msgstr ""
14657
14658 # type: textblock
14659 #: ../src/guestfs-actions.pod:6027
14660 msgid ""
14661 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14662 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14663 msgstr ""
14664
14665 # type: =head2
14666 #: ../src/guestfs-actions.pod:6033
14667 msgid "guestfs_strings"
14668 msgstr ""
14669
14670 # type: verbatim
14671 #: ../src/guestfs-actions.pod:6035
14672 #, no-wrap
14673 msgid ""
14674 " char **\n"
14675 " guestfs_strings (guestfs_h *g,\n"
14676 "                  const char *path);\n"
14677 "\n"
14678 msgstr ""
14679
14680 # type: textblock
14681 #: ../src/guestfs-actions.pod:6039 ../fish/guestfish-actions.pod:4037
14682 msgid ""
14683 "This runs the L<strings(1)> command on a file and returns the list of "
14684 "printable strings found."
14685 msgstr ""
14686
14687 # type: =head2
14688 #: ../src/guestfs-actions.pod:6051
14689 msgid "guestfs_strings_e"
14690 msgstr ""
14691
14692 # type: verbatim
14693 #: ../src/guestfs-actions.pod:6053
14694 #, no-wrap
14695 msgid ""
14696 " char **\n"
14697 " guestfs_strings_e (guestfs_h *g,\n"
14698 "                    const char *encoding,\n"
14699 "                    const char *path);\n"
14700 "\n"
14701 msgstr ""
14702
14703 # type: textblock
14704 #: ../src/guestfs-actions.pod:6058
14705 msgid ""
14706 "This is like the C<guestfs_strings> command, but allows you to specify the "
14707 "encoding of strings that are looked for in the source file C<path>."
14708 msgstr ""
14709
14710 # type: textblock
14711 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4051
14712 msgid "Allowed encodings are:"
14713 msgstr ""
14714
14715 # type: =item
14716 #: ../src/guestfs-actions.pod:6066 ../fish/guestfish-actions.pod:4055
14717 msgid "s"
14718 msgstr ""
14719
14720 # type: textblock
14721 #: ../src/guestfs-actions.pod:6068
14722 msgid ""
14723 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14724 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14725 msgstr ""
14726
14727 # type: =item
14728 #: ../src/guestfs-actions.pod:6071 ../fish/guestfish-actions.pod:4060
14729 msgid "S"
14730 msgstr ""
14731
14732 # type: textblock
14733 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4062
14734 msgid "Single 8-bit-byte characters."
14735 msgstr ""
14736
14737 # type: =item
14738 #: ../src/guestfs-actions.pod:6075 ../fish/guestfish-actions.pod:4064
14739 msgid "b"
14740 msgstr ""
14741
14742 # type: textblock
14743 #: ../src/guestfs-actions.pod:6077 ../fish/guestfish-actions.pod:4066
14744 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14745 msgstr ""
14746
14747 # type: =item
14748 #: ../src/guestfs-actions.pod:6080 ../fish/guestfish-actions.pod:4069
14749 msgid "l (lower case letter L)"
14750 msgstr ""
14751
14752 # type: textblock
14753 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4071
14754 msgid ""
14755 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14756 "examining binaries in Windows guests."
14757 msgstr ""
14758
14759 # type: =item
14760 #: ../src/guestfs-actions.pod:6085 ../fish/guestfish-actions.pod:4074
14761 msgid "B"
14762 msgstr ""
14763
14764 # type: textblock
14765 #: ../src/guestfs-actions.pod:6087 ../fish/guestfish-actions.pod:4076
14766 msgid "32-bit big endian such as UCS-4BE."
14767 msgstr ""
14768
14769 # type: =item
14770 #: ../src/guestfs-actions.pod:6089 ../fish/guestfish-actions.pod:4078
14771 msgid "L"
14772 msgstr ""
14773
14774 # type: textblock
14775 #: ../src/guestfs-actions.pod:6091 ../fish/guestfish-actions.pod:4080
14776 msgid "32-bit little endian such as UCS-4LE."
14777 msgstr ""
14778
14779 # type: textblock
14780 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4084
14781 msgid "The returned strings are transcoded to UTF-8."
14782 msgstr ""
14783
14784 # type: =head2
14785 #: ../src/guestfs-actions.pod:6106
14786 msgid "guestfs_swapoff_device"
14787 msgstr ""
14788
14789 # type: verbatim
14790 #: ../src/guestfs-actions.pod:6108
14791 #, no-wrap
14792 msgid ""
14793 " int\n"
14794 " guestfs_swapoff_device (guestfs_h *g,\n"
14795 "                         const char *device);\n"
14796 "\n"
14797 msgstr ""
14798
14799 # type: textblock
14800 #: ../src/guestfs-actions.pod:6112
14801 msgid ""
14802 "This command disables the libguestfs appliance swap device or partition "
14803 "named C<device>.  See C<guestfs_swapon_device>."
14804 msgstr ""
14805
14806 # type: =head2
14807 #: ../src/guestfs-actions.pod:6120
14808 msgid "guestfs_swapoff_file"
14809 msgstr ""
14810
14811 # type: verbatim
14812 #: ../src/guestfs-actions.pod:6122
14813 #, no-wrap
14814 msgid ""
14815 " int\n"
14816 " guestfs_swapoff_file (guestfs_h *g,\n"
14817 "                       const char *file);\n"
14818 "\n"
14819 msgstr ""
14820
14821 # type: textblock
14822 #: ../src/guestfs-actions.pod:6126 ../fish/guestfish-actions.pod:4101
14823 msgid "This command disables the libguestfs appliance swap on file."
14824 msgstr ""
14825
14826 # type: =head2
14827 #: ../src/guestfs-actions.pod:6132
14828 msgid "guestfs_swapoff_label"
14829 msgstr ""
14830
14831 # type: verbatim
14832 #: ../src/guestfs-actions.pod:6134
14833 #, no-wrap
14834 msgid ""
14835 " int\n"
14836 " guestfs_swapoff_label (guestfs_h *g,\n"
14837 "                        const char *label);\n"
14838 "\n"
14839 msgstr ""
14840
14841 # type: textblock
14842 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4107
14843 msgid ""
14844 "This command disables the libguestfs appliance swap on labeled swap "
14845 "partition."
14846 msgstr ""
14847
14848 # type: =head2
14849 #: ../src/guestfs-actions.pod:6145
14850 msgid "guestfs_swapoff_uuid"
14851 msgstr ""
14852
14853 # type: verbatim
14854 #: ../src/guestfs-actions.pod:6147
14855 #, no-wrap
14856 msgid ""
14857 " int\n"
14858 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14859 "                       const char *uuid);\n"
14860 "\n"
14861 msgstr ""
14862
14863 # type: textblock
14864 #: ../src/guestfs-actions.pod:6151 ../fish/guestfish-actions.pod:4114
14865 msgid ""
14866 "This command disables the libguestfs appliance swap partition with the given "
14867 "UUID."
14868 msgstr ""
14869
14870 # type: =head2
14871 #: ../src/guestfs-actions.pod:6158
14872 msgid "guestfs_swapon_device"
14873 msgstr ""
14874
14875 # type: verbatim
14876 #: ../src/guestfs-actions.pod:6160
14877 #, no-wrap
14878 msgid ""
14879 " int\n"
14880 " guestfs_swapon_device (guestfs_h *g,\n"
14881 "                        const char *device);\n"
14882 "\n"
14883 msgstr ""
14884
14885 # type: textblock
14886 #: ../src/guestfs-actions.pod:6164
14887 msgid ""
14888 "This command enables the libguestfs appliance to use the swap device or "
14889 "partition named C<device>.  The increased memory is made available for all "
14890 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14891 msgstr ""
14892
14893 # type: textblock
14894 #: ../src/guestfs-actions.pod:6169 ../fish/guestfish-actions.pod:4126
14895 msgid ""
14896 "Note that you should not swap to existing guest swap partitions unless you "
14897 "know what you are doing.  They may contain hibernation information, or other "
14898 "information that the guest doesn't want you to trash.  You also risk leaking "
14899 "information about the host to the guest this way.  Instead, attach a new "
14900 "host device to the guest and swap on that."
14901 msgstr ""
14902
14903 # type: =head2
14904 #: ../src/guestfs-actions.pod:6180
14905 msgid "guestfs_swapon_file"
14906 msgstr ""
14907
14908 # type: verbatim
14909 #: ../src/guestfs-actions.pod:6182
14910 #, no-wrap
14911 msgid ""
14912 " int\n"
14913 " guestfs_swapon_file (guestfs_h *g,\n"
14914 "                      const char *file);\n"
14915 "\n"
14916 msgstr ""
14917
14918 # type: textblock
14919 #: ../src/guestfs-actions.pod:6186
14920 msgid ""
14921 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14922 "notes."
14923 msgstr ""
14924
14925 # type: =head2
14926 #: ../src/guestfs-actions.pod:6193
14927 msgid "guestfs_swapon_label"
14928 msgstr ""
14929
14930 # type: verbatim
14931 #: ../src/guestfs-actions.pod:6195
14932 #, no-wrap
14933 msgid ""
14934 " int\n"
14935 " guestfs_swapon_label (guestfs_h *g,\n"
14936 "                       const char *label);\n"
14937 "\n"
14938 msgstr ""
14939
14940 # type: textblock
14941 #: ../src/guestfs-actions.pod:6199
14942 msgid ""
14943 "This command enables swap to a labeled swap partition.  See "
14944 "C<guestfs_swapon_device> for other notes."
14945 msgstr ""
14946
14947 # type: =head2
14948 #: ../src/guestfs-actions.pod:6206
14949 msgid "guestfs_swapon_uuid"
14950 msgstr ""
14951
14952 # type: verbatim
14953 #: ../src/guestfs-actions.pod:6208
14954 #, no-wrap
14955 msgid ""
14956 " int\n"
14957 " guestfs_swapon_uuid (guestfs_h *g,\n"
14958 "                      const char *uuid);\n"
14959 "\n"
14960 msgstr ""
14961
14962 # type: textblock
14963 #: ../src/guestfs-actions.pod:6212
14964 msgid ""
14965 "This command enables swap to a swap partition with the given UUID.  See "
14966 "C<guestfs_swapon_device> for other notes."
14967 msgstr ""
14968
14969 # type: =head2
14970 #: ../src/guestfs-actions.pod:6219
14971 msgid "guestfs_sync"
14972 msgstr ""
14973
14974 # type: verbatim
14975 #: ../src/guestfs-actions.pod:6221
14976 #, no-wrap
14977 msgid ""
14978 " int\n"
14979 " guestfs_sync (guestfs_h *g);\n"
14980 "\n"
14981 msgstr ""
14982
14983 # type: textblock
14984 #: ../src/guestfs-actions.pod:6224 ../fish/guestfish-actions.pod:4158
14985 msgid ""
14986 "This syncs the disk, so that any writes are flushed through to the "
14987 "underlying disk image."
14988 msgstr ""
14989
14990 # type: textblock
14991 #: ../src/guestfs-actions.pod:6227 ../fish/guestfish-actions.pod:4161
14992 msgid ""
14993 "You should always call this if you have modified a disk image, before "
14994 "closing the handle."
14995 msgstr ""
14996
14997 # type: =head2
14998 #: ../src/guestfs-actions.pod:6234
14999 msgid "guestfs_tail"
15000 msgstr ""
15001
15002 # type: verbatim
15003 #: ../src/guestfs-actions.pod:6236
15004 #, no-wrap
15005 msgid ""
15006 " char **\n"
15007 " guestfs_tail (guestfs_h *g,\n"
15008 "               const char *path);\n"
15009 "\n"
15010 msgstr ""
15011
15012 # type: textblock
15013 #: ../src/guestfs-actions.pod:6240 ../fish/guestfish-actions.pod:4168
15014 msgid ""
15015 "This command returns up to the last 10 lines of a file as a list of strings."
15016 msgstr ""
15017
15018 # type: =head2
15019 #: ../src/guestfs-actions.pod:6252
15020 msgid "guestfs_tail_n"
15021 msgstr ""
15022
15023 # type: verbatim
15024 #: ../src/guestfs-actions.pod:6254
15025 #, no-wrap
15026 msgid ""
15027 " char **\n"
15028 " guestfs_tail_n (guestfs_h *g,\n"
15029 "                 int nrlines,\n"
15030 "                 const char *path);\n"
15031 "\n"
15032 msgstr ""
15033
15034 # type: textblock
15035 #: ../src/guestfs-actions.pod:6259 ../fish/guestfish-actions.pod:4178
15036 msgid ""
15037 "If the parameter C<nrlines> is a positive number, this returns the last "
15038 "C<nrlines> lines of the file C<path>."
15039 msgstr ""
15040
15041 # type: textblock
15042 #: ../src/guestfs-actions.pod:6262 ../fish/guestfish-actions.pod:4181
15043 msgid ""
15044 "If the parameter C<nrlines> is a negative number, this returns lines from "
15045 "the file C<path>, starting with the C<-nrlines>th line."
15046 msgstr ""
15047
15048 # type: =head2
15049 #: ../src/guestfs-actions.pod:6276
15050 msgid "guestfs_tar_in"
15051 msgstr ""
15052
15053 # type: verbatim
15054 #: ../src/guestfs-actions.pod:6278
15055 #, no-wrap
15056 msgid ""
15057 " int\n"
15058 " guestfs_tar_in (guestfs_h *g,\n"
15059 "                 const char *tarfile,\n"
15060 "                 const char *directory);\n"
15061 "\n"
15062 msgstr ""
15063
15064 # type: textblock
15065 #: ../src/guestfs-actions.pod:6283 ../fish/guestfish-actions.pod:4193
15066 msgid ""
15067 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15068 "tar file) into C<directory>."
15069 msgstr ""
15070
15071 # type: textblock
15072 #: ../src/guestfs-actions.pod:6286
15073 msgid ""
15074 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
15075 msgstr ""
15076
15077 # type: textblock
15078 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6308
15079 #: ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6340
15080 msgid "(Added in 1.0.3)"
15081 msgstr ""
15082
15083 # type: =head2
15084 #: ../src/guestfs-actions.pod:6293
15085 msgid "guestfs_tar_out"
15086 msgstr ""
15087
15088 # type: verbatim
15089 #: ../src/guestfs-actions.pod:6295
15090 #, no-wrap
15091 msgid ""
15092 " int\n"
15093 " guestfs_tar_out (guestfs_h *g,\n"
15094 "                  const char *directory,\n"
15095 "                  const char *tarfile);\n"
15096 "\n"
15097 msgstr ""
15098
15099 # type: textblock
15100 #: ../src/guestfs-actions.pod:6300 ../fish/guestfish-actions.pod:4205
15101 msgid ""
15102 "This command packs the contents of C<directory> and downloads it to local "
15103 "file C<tarfile>."
15104 msgstr ""
15105
15106 # type: textblock
15107 #: ../src/guestfs-actions.pod:6303
15108 msgid ""
15109 "To download a compressed tarball, use C<guestfs_tgz_out> or "
15110 "C<guestfs_txz_out>."
15111 msgstr ""
15112
15113 # type: =head2
15114 #: ../src/guestfs-actions.pod:6310
15115 msgid "guestfs_tgz_in"
15116 msgstr ""
15117
15118 # type: verbatim
15119 #: ../src/guestfs-actions.pod:6312
15120 #, no-wrap
15121 msgid ""
15122 " int\n"
15123 " guestfs_tgz_in (guestfs_h *g,\n"
15124 "                 const char *tarball,\n"
15125 "                 const char *directory);\n"
15126 "\n"
15127 msgstr ""
15128
15129 # type: textblock
15130 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4217
15131 msgid ""
15132 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15133 "tar file) into C<directory>."
15134 msgstr ""
15135
15136 # type: textblock
15137 #: ../src/guestfs-actions.pod:6320
15138 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
15139 msgstr ""
15140
15141 # type: =head2
15142 #: ../src/guestfs-actions.pod:6326
15143 msgid "guestfs_tgz_out"
15144 msgstr ""
15145
15146 # type: verbatim
15147 #: ../src/guestfs-actions.pod:6328
15148 #, no-wrap
15149 msgid ""
15150 " int\n"
15151 " guestfs_tgz_out (guestfs_h *g,\n"
15152 "                  const char *directory,\n"
15153 "                  const char *tarball);\n"
15154 "\n"
15155 msgstr ""
15156
15157 # type: textblock
15158 #: ../src/guestfs-actions.pod:6333 ../fish/guestfish-actions.pod:4228
15159 msgid ""
15160 "This command packs the contents of C<directory> and downloads it to local "
15161 "file C<tarball>."
15162 msgstr ""
15163
15164 # type: textblock
15165 #: ../src/guestfs-actions.pod:6336
15166 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
15167 msgstr ""
15168
15169 # type: =head2
15170 #: ../src/guestfs-actions.pod:6342
15171 msgid "guestfs_touch"
15172 msgstr ""
15173
15174 # type: verbatim
15175 #: ../src/guestfs-actions.pod:6344
15176 #, no-wrap
15177 msgid ""
15178 " int\n"
15179 " guestfs_touch (guestfs_h *g,\n"
15180 "                const char *path);\n"
15181 "\n"
15182 msgstr ""
15183
15184 # type: textblock
15185 #: ../src/guestfs-actions.pod:6348 ../fish/guestfish-actions.pod:4239
15186 msgid ""
15187 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15188 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15189 "length file."
15190 msgstr ""
15191
15192 # type: textblock
15193 #: ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:4243
15194 msgid ""
15195 "This command only works on regular files, and will fail on other file types "
15196 "such as directories, symbolic links, block special etc."
15197 msgstr ""
15198
15199 # type: =head2
15200 #: ../src/guestfs-actions.pod:6359
15201 msgid "guestfs_truncate"
15202 msgstr ""
15203
15204 # type: verbatim
15205 #: ../src/guestfs-actions.pod:6361
15206 #, no-wrap
15207 msgid ""
15208 " int\n"
15209 " guestfs_truncate (guestfs_h *g,\n"
15210 "                   const char *path);\n"
15211 "\n"
15212 msgstr ""
15213
15214 # type: textblock
15215 #: ../src/guestfs-actions.pod:6365 ../fish/guestfish-actions.pod:4250
15216 msgid ""
15217 "This command truncates C<path> to a zero-length file.  The file must exist "
15218 "already."
15219 msgstr ""
15220
15221 # type: =head2
15222 #: ../src/guestfs-actions.pod:6372
15223 msgid "guestfs_truncate_size"
15224 msgstr ""
15225
15226 # type: verbatim
15227 #: ../src/guestfs-actions.pod:6374
15228 #, no-wrap
15229 msgid ""
15230 " int\n"
15231 " guestfs_truncate_size (guestfs_h *g,\n"
15232 "                        const char *path,\n"
15233 "                        int64_t size);\n"
15234 "\n"
15235 msgstr ""
15236
15237 # type: textblock
15238 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4257
15239 msgid ""
15240 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15241 "already."
15242 msgstr ""
15243
15244 # type: textblock
15245 #: ../src/guestfs-actions.pod:6382
15246 msgid ""
15247 "If the current file size is less than C<size> then the file is extended to "
15248 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15249 "blocks are not allocated for the file until you write to it).  To create a "
15250 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
15251 msgstr ""
15252
15253 # type: =head2
15254 #: ../src/guestfs-actions.pod:6392
15255 msgid "guestfs_tune2fs_l"
15256 msgstr ""
15257
15258 # type: verbatim
15259 #: ../src/guestfs-actions.pod:6394
15260 #, no-wrap
15261 msgid ""
15262 " char **\n"
15263 " guestfs_tune2fs_l (guestfs_h *g,\n"
15264 "                    const char *device);\n"
15265 "\n"
15266 msgstr ""
15267
15268 # type: textblock
15269 #: ../src/guestfs-actions.pod:6398 ../fish/guestfish-actions.pod:4270
15270 msgid ""
15271 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15272 "C<device>."
15273 msgstr ""
15274
15275 # type: textblock
15276 #: ../src/guestfs-actions.pod:6401 ../fish/guestfish-actions.pod:4273
15277 msgid ""
15278 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15279 "for more details.  The list of fields returned isn't clearly defined, and "
15280 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15281 "and the filesystem itself."
15282 msgstr ""
15283
15284 # type: =head2
15285 #: ../src/guestfs-actions.pod:6414
15286 msgid "guestfs_txz_in"
15287 msgstr ""
15288
15289 # type: verbatim
15290 #: ../src/guestfs-actions.pod:6416
15291 #, no-wrap
15292 msgid ""
15293 " int\n"
15294 " guestfs_txz_in (guestfs_h *g,\n"
15295 "                 const char *tarball,\n"
15296 "                 const char *directory);\n"
15297 "\n"
15298 msgstr ""
15299
15300 # type: textblock
15301 #: ../src/guestfs-actions.pod:6421 ../fish/guestfish-actions.pod:4282
15302 msgid ""
15303 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15304 "tar file) into C<directory>."
15305 msgstr ""
15306
15307 # type: =head2
15308 #: ../src/guestfs-actions.pod:6428
15309 msgid "guestfs_txz_out"
15310 msgstr ""
15311
15312 # type: verbatim
15313 #: ../src/guestfs-actions.pod:6430
15314 #, no-wrap
15315 msgid ""
15316 " int\n"
15317 " guestfs_txz_out (guestfs_h *g,\n"
15318 "                  const char *directory,\n"
15319 "                  const char *tarball);\n"
15320 "\n"
15321 msgstr ""
15322
15323 # type: textblock
15324 #: ../src/guestfs-actions.pod:6435 ../fish/guestfish-actions.pod:4291
15325 msgid ""
15326 "This command packs the contents of C<directory> and downloads it to local "
15327 "file C<tarball> (as an xz compressed tar archive)."
15328 msgstr ""
15329
15330 # type: =head2
15331 #: ../src/guestfs-actions.pod:6442
15332 msgid "guestfs_umask"
15333 msgstr ""
15334
15335 # type: verbatim
15336 #: ../src/guestfs-actions.pod:6444
15337 #, no-wrap
15338 msgid ""
15339 " int\n"
15340 " guestfs_umask (guestfs_h *g,\n"
15341 "                int mask);\n"
15342 "\n"
15343 msgstr ""
15344
15345 # type: textblock
15346 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4300
15347 msgid ""
15348 "This function sets the mask used for creating new files and device nodes to "
15349 "C<mask & 0777>."
15350 msgstr ""
15351
15352 # type: textblock
15353 #: ../src/guestfs-actions.pod:6451 ../fish/guestfish-actions.pod:4303
15354 msgid ""
15355 "Typical umask values would be C<022> which creates new files with "
15356 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15357 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15358 msgstr ""
15359
15360 # type: textblock
15361 #: ../src/guestfs-actions.pod:6456 ../fish/guestfish-actions.pod:4308
15362 msgid ""
15363 "The default umask is C<022>.  This is important because it means that "
15364 "directories and device nodes will be created with C<0644> or C<0755> mode "
15365 "even if you specify C<0777>."
15366 msgstr ""
15367
15368 # type: textblock
15369 #: ../src/guestfs-actions.pod:6460
15370 msgid ""
15371 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15372 "C<guestfs_mkdir>."
15373 msgstr ""
15374
15375 # type: textblock
15376 #: ../src/guestfs-actions.pod:6463 ../fish/guestfish-actions.pod:4315
15377 msgid "This call returns the previous umask."
15378 msgstr ""
15379
15380 # type: =head2
15381 #: ../src/guestfs-actions.pod:6469
15382 msgid "guestfs_umount"
15383 msgstr ""
15384
15385 # type: verbatim
15386 #: ../src/guestfs-actions.pod:6471
15387 #, no-wrap
15388 msgid ""
15389 " int\n"
15390 " guestfs_umount (guestfs_h *g,\n"
15391 "                 const char *pathordevice);\n"
15392 "\n"
15393 msgstr ""
15394
15395 # type: textblock
15396 #: ../src/guestfs-actions.pod:6475 ../fish/guestfish-actions.pod:4323
15397 msgid ""
15398 "This unmounts the given filesystem.  The filesystem may be specified either "
15399 "by its mountpoint (path) or the device which contains the filesystem."
15400 msgstr ""
15401
15402 # type: =head2
15403 #: ../src/guestfs-actions.pod:6483
15404 msgid "guestfs_umount_all"
15405 msgstr ""
15406
15407 # type: verbatim
15408 #: ../src/guestfs-actions.pod:6485
15409 #, no-wrap
15410 msgid ""
15411 " int\n"
15412 " guestfs_umount_all (guestfs_h *g);\n"
15413 "\n"
15414 msgstr ""
15415
15416 # type: textblock
15417 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4333
15418 msgid "This unmounts all mounted filesystems."
15419 msgstr ""
15420
15421 # type: textblock
15422 #: ../src/guestfs-actions.pod:6490 ../fish/guestfish-actions.pod:4335
15423 msgid "Some internal mounts are not unmounted by this call."
15424 msgstr ""
15425
15426 # type: =head2
15427 #: ../src/guestfs-actions.pod:6496
15428 msgid "guestfs_upload"
15429 msgstr ""
15430
15431 # type: verbatim
15432 #: ../src/guestfs-actions.pod:6498
15433 #, no-wrap
15434 msgid ""
15435 " int\n"
15436 " guestfs_upload (guestfs_h *g,\n"
15437 "                 const char *filename,\n"
15438 "                 const char *remotefilename);\n"
15439 "\n"
15440 msgstr ""
15441
15442 # type: textblock
15443 #: ../src/guestfs-actions.pod:6503 ../src/guestfs-actions.pod:6527
15444 #: ../fish/guestfish-actions.pod:4341 ../fish/guestfish-actions.pod:4354
15445 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15446 msgstr ""
15447
15448 # type: textblock
15449 #: ../src/guestfs-actions.pod:6508
15450 msgid "See also C<guestfs_download>."
15451 msgstr ""
15452
15453 # type: =head2
15454 #: ../src/guestfs-actions.pod:6519
15455 msgid "guestfs_upload_offset"
15456 msgstr ""
15457
15458 # type: verbatim
15459 #: ../src/guestfs-actions.pod:6521
15460 #, no-wrap
15461 msgid ""
15462 " int\n"
15463 " guestfs_upload_offset (guestfs_h *g,\n"
15464 "                        const char *filename,\n"
15465 "                        const char *remotefilename,\n"
15466 "                        int64_t offset);\n"
15467 "\n"
15468 msgstr ""
15469
15470 # type: textblock
15471 #: ../src/guestfs-actions.pod:6530 ../fish/guestfish-actions.pod:4357
15472 msgid ""
15473 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15474 "The intention is to overwrite parts of existing files or devices, although "
15475 "if a non-existant file is specified then it is created with a \"hole\" "
15476 "before C<offset>.  The size of the data written is implicit in the size of "
15477 "the source C<filename>."
15478 msgstr ""
15479
15480 # type: textblock
15481 #: ../src/guestfs-actions.pod:6537
15482 msgid ""
15483 "Note that there is no limit on the amount of data that can be uploaded with "
15484 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15485 "full amount unless an error occurs."
15486 msgstr ""
15487
15488 # type: textblock
15489 #: ../src/guestfs-actions.pod:6542
15490 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15491 msgstr ""
15492
15493 # type: =head2
15494 #: ../src/guestfs-actions.pod:6553
15495 msgid "guestfs_utimens"
15496 msgstr ""
15497
15498 # type: verbatim
15499 #: ../src/guestfs-actions.pod:6555
15500 #, no-wrap
15501 msgid ""
15502 " int\n"
15503 " guestfs_utimens (guestfs_h *g,\n"
15504 "                  const char *path,\n"
15505 "                  int64_t atsecs,\n"
15506 "                  int64_t atnsecs,\n"
15507 "                  int64_t mtsecs,\n"
15508 "                  int64_t mtnsecs);\n"
15509 "\n"
15510 msgstr ""
15511
15512 # type: textblock
15513 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4377
15514 msgid "This command sets the timestamps of a file with nanosecond precision."
15515 msgstr ""
15516
15517 # type: textblock
15518 #: ../src/guestfs-actions.pod:6566 ../fish/guestfish-actions.pod:4380
15519 msgid ""
15520 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15521 "from the epoch."
15522 msgstr ""
15523
15524 # type: textblock
15525 #: ../src/guestfs-actions.pod:6569 ../fish/guestfish-actions.pod:4383
15526 msgid ""
15527 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15528 "nanoseconds from the epoch."
15529 msgstr ""
15530
15531 # type: textblock
15532 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4386
15533 msgid ""
15534 "If the C<*nsecs> field contains the special value C<-1> then the "
15535 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15536 "ignored in this case)."
15537 msgstr ""
15538
15539 # type: textblock
15540 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4390
15541 msgid ""
15542 "If the C<*nsecs> field contains the special value C<-2> then the "
15543 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15544 "in this case)."
15545 msgstr ""
15546
15547 # type: =head2
15548 #: ../src/guestfs-actions.pod:6584 ../src/guestfs-structs.pod:175
15549 msgid "guestfs_version"
15550 msgstr ""
15551
15552 # type: verbatim
15553 #: ../src/guestfs-actions.pod:6586
15554 #, no-wrap
15555 msgid ""
15556 " struct guestfs_version *\n"
15557 " guestfs_version (guestfs_h *g);\n"
15558 "\n"
15559 msgstr ""
15560
15561 # type: textblock
15562 #: ../src/guestfs-actions.pod:6589 ../fish/guestfish-actions.pod:4398
15563 msgid ""
15564 "Return the libguestfs version number that the program is linked against."
15565 msgstr ""
15566
15567 # type: textblock
15568 #: ../src/guestfs-actions.pod:6592 ../fish/guestfish-actions.pod:4401
15569 msgid ""
15570 "Note that because of dynamic linking this is not necessarily the version of "
15571 "libguestfs that you compiled against.  You can compile the program, and then "
15572 "at runtime dynamically link against a completely different C<libguestfs.so> "
15573 "library."
15574 msgstr ""
15575
15576 # type: textblock
15577 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4406
15578 msgid ""
15579 "This call was added in version C<1.0.58>.  In previous versions of "
15580 "libguestfs there was no way to get the version number.  From C code you can "
15581 "use dynamic linker functions to find out if this symbol exists (if it "
15582 "doesn't, then it's an earlier version)."
15583 msgstr ""
15584
15585 # type: textblock
15586 #: ../src/guestfs-actions.pod:6603 ../fish/guestfish-actions.pod:4412
15587 msgid ""
15588 "The call returns a structure with four elements.  The first three (C<major>, "
15589 "C<minor> and C<release>) are numbers and correspond to the usual version "
15590 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15591 "but may be used for distro-specific information."
15592 msgstr ""
15593
15594 # type: textblock
15595 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4418
15596 msgid ""
15597 "To construct the original version string: C<$major.$minor.$release$extra>"
15598 msgstr ""
15599
15600 # type: textblock
15601 #: ../src/guestfs-actions.pod:6612 ../fish/guestfish-actions.pod:4421
15602 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15603 msgstr ""
15604
15605 # type: textblock
15606 #: ../src/guestfs-actions.pod:6614
15607 msgid ""
15608 "I<Note:> Don't use this call to test for availability of features.  In "
15609 "enterprise distributions we backport features from later versions into "
15610 "earlier versions, making this an unreliable way to test for features.  Use "
15611 "C<guestfs_available> instead."
15612 msgstr ""
15613
15614 # type: textblock
15615 #: ../src/guestfs-actions.pod:6620
15616 msgid ""
15617 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15618 "error.  I<The caller must call C<guestfs_free_version> after use>."
15619 msgstr ""
15620
15621 # type: textblock
15622 #: ../src/guestfs-actions.pod:6624
15623 msgid "(Added in 1.0.58)"
15624 msgstr ""
15625
15626 # type: =head2
15627 #: ../src/guestfs-actions.pod:6626
15628 msgid "guestfs_vfs_label"
15629 msgstr ""
15630
15631 # type: verbatim
15632 #: ../src/guestfs-actions.pod:6628
15633 #, no-wrap
15634 msgid ""
15635 " char *\n"
15636 " guestfs_vfs_label (guestfs_h *g,\n"
15637 "                    const char *device);\n"
15638 "\n"
15639 msgstr ""
15640
15641 # type: textblock
15642 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4433
15643 msgid "This returns the filesystem label of the filesystem on C<device>."
15644 msgstr ""
15645
15646 # type: textblock
15647 #: ../src/guestfs-actions.pod:6635 ../fish/guestfish-actions.pod:4436
15648 msgid "If the filesystem is unlabeled, this returns the empty string."
15649 msgstr ""
15650
15651 # type: textblock
15652 #: ../src/guestfs-actions.pod:6637
15653 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15654 msgstr ""
15655
15656 # type: textblock
15657 #: ../src/guestfs-actions.pod:6642 ../src/guestfs-actions.pod:6679
15658 msgid "(Added in 1.3.18)"
15659 msgstr ""
15660
15661 # type: =head2
15662 #: ../src/guestfs-actions.pod:6644
15663 msgid "guestfs_vfs_type"
15664 msgstr ""
15665
15666 # type: verbatim
15667 #: ../src/guestfs-actions.pod:6646
15668 #, no-wrap
15669 msgid ""
15670 " char *\n"
15671 " guestfs_vfs_type (guestfs_h *g,\n"
15672 "                   const char *device);\n"
15673 "\n"
15674 msgstr ""
15675
15676 # type: textblock
15677 #: ../src/guestfs-actions.pod:6650 ../fish/guestfish-actions.pod:4444
15678 msgid ""
15679 "This command gets the filesystem type corresponding to the filesystem on "
15680 "C<device>."
15681 msgstr ""
15682
15683 # type: textblock
15684 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4447
15685 msgid ""
15686 "For most filesystems, the result is the name of the Linux VFS module which "
15687 "would be used to mount this filesystem if you mounted it without specifying "
15688 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15689 msgstr ""
15690
15691 # type: =head2
15692 #: ../src/guestfs-actions.pod:6663
15693 msgid "guestfs_vfs_uuid"
15694 msgstr ""
15695
15696 # type: verbatim
15697 #: ../src/guestfs-actions.pod:6665
15698 #, no-wrap
15699 msgid ""
15700 " char *\n"
15701 " guestfs_vfs_uuid (guestfs_h *g,\n"
15702 "                   const char *device);\n"
15703 "\n"
15704 msgstr ""
15705
15706 # type: textblock
15707 #: ../src/guestfs-actions.pod:6669 ../fish/guestfish-actions.pod:4456
15708 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15709 msgstr ""
15710
15711 # type: textblock
15712 #: ../src/guestfs-actions.pod:6672 ../fish/guestfish-actions.pod:4459
15713 msgid "If the filesystem does not have a UUID, this returns the empty string."
15714 msgstr ""
15715
15716 # type: textblock
15717 #: ../src/guestfs-actions.pod:6674
15718 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15719 msgstr ""
15720
15721 # type: =head2
15722 #: ../src/guestfs-actions.pod:6681
15723 msgid "guestfs_vg_activate"
15724 msgstr ""
15725
15726 # type: verbatim
15727 #: ../src/guestfs-actions.pod:6683
15728 #, no-wrap
15729 msgid ""
15730 " int\n"
15731 " guestfs_vg_activate (guestfs_h *g,\n"
15732 "                      int activate,\n"
15733 "                      char *const *volgroups);\n"
15734 "\n"
15735 msgstr ""
15736
15737 # type: textblock
15738 #: ../src/guestfs-actions.pod:6688 ../fish/guestfish-actions.pod:4467
15739 msgid ""
15740 "This command activates or (if C<activate> is false) deactivates all logical "
15741 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15742 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15743 "deactivated, then those devices disappear."
15744 msgstr ""
15745
15746 # type: textblock
15747 #: ../src/guestfs-actions.pod:6694 ../fish/guestfish-actions.pod:4473
15748 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15749 msgstr ""
15750
15751 # type: textblock
15752 #: ../src/guestfs-actions.pod:6696 ../fish/guestfish-actions.pod:4475
15753 msgid ""
15754 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15755 "activated or deactivated."
15756 msgstr ""
15757
15758 # type: =head2
15759 #: ../src/guestfs-actions.pod:6703
15760 msgid "guestfs_vg_activate_all"
15761 msgstr ""
15762
15763 # type: verbatim
15764 #: ../src/guestfs-actions.pod:6705
15765 #, no-wrap
15766 msgid ""
15767 " int\n"
15768 " guestfs_vg_activate_all (guestfs_h *g,\n"
15769 "                          int activate);\n"
15770 "\n"
15771 msgstr ""
15772
15773 # type: textblock
15774 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4482
15775 msgid ""
15776 "This command activates or (if C<activate> is false) deactivates all logical "
15777 "volumes in all volume groups.  If activated, then they are made known to the "
15778 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15779 "those devices disappear."
15780 msgstr ""
15781
15782 # type: textblock
15783 #: ../src/guestfs-actions.pod:6715 ../fish/guestfish-actions.pod:4488
15784 msgid "This command is the same as running C<vgchange -a y|n>"
15785 msgstr ""
15786
15787 # type: =head2
15788 #: ../src/guestfs-actions.pod:6721
15789 msgid "guestfs_vgcreate"
15790 msgstr ""
15791
15792 # type: verbatim
15793 #: ../src/guestfs-actions.pod:6723
15794 #, no-wrap
15795 msgid ""
15796 " int\n"
15797 " guestfs_vgcreate (guestfs_h *g,\n"
15798 "                   const char *volgroup,\n"
15799 "                   char *const *physvols);\n"
15800 "\n"
15801 msgstr ""
15802
15803 # type: textblock
15804 #: ../src/guestfs-actions.pod:6728 ../fish/guestfish-actions.pod:4494
15805 msgid ""
15806 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15807 "of physical volumes C<physvols>."
15808 msgstr ""
15809
15810 # type: =head2
15811 #: ../src/guestfs-actions.pod:6735
15812 msgid "guestfs_vglvuuids"
15813 msgstr ""
15814
15815 # type: verbatim
15816 #: ../src/guestfs-actions.pod:6737
15817 #, no-wrap
15818 msgid ""
15819 " char **\n"
15820 " guestfs_vglvuuids (guestfs_h *g,\n"
15821 "                    const char *vgname);\n"
15822 "\n"
15823 msgstr ""
15824
15825 # type: textblock
15826 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4501
15827 msgid ""
15828 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15829 "volumes created in this volume group."
15830 msgstr ""
15831
15832 # type: textblock
15833 #: ../src/guestfs-actions.pod:6744
15834 msgid ""
15835 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15836 "associate logical volumes and volume groups."
15837 msgstr ""
15838
15839 # type: textblock
15840 #: ../src/guestfs-actions.pod:6747
15841 msgid "See also C<guestfs_vgpvuuids>."
15842 msgstr ""
15843
15844 # type: =head2
15845 #: ../src/guestfs-actions.pod:6755
15846 msgid "guestfs_vgpvuuids"
15847 msgstr ""
15848
15849 # type: verbatim
15850 #: ../src/guestfs-actions.pod:6757
15851 #, no-wrap
15852 msgid ""
15853 " char **\n"
15854 " guestfs_vgpvuuids (guestfs_h *g,\n"
15855 "                    const char *vgname);\n"
15856 "\n"
15857 msgstr ""
15858
15859 # type: textblock
15860 #: ../src/guestfs-actions.pod:6761 ../fish/guestfish-actions.pod:4513
15861 msgid ""
15862 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15863 "volumes that this volume group resides on."
15864 msgstr ""
15865
15866 # type: textblock
15867 #: ../src/guestfs-actions.pod:6764
15868 msgid ""
15869 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15870 "associate physical volumes and volume groups."
15871 msgstr ""
15872
15873 # type: textblock
15874 #: ../src/guestfs-actions.pod:6767
15875 msgid "See also C<guestfs_vglvuuids>."
15876 msgstr ""
15877
15878 # type: =head2
15879 #: ../src/guestfs-actions.pod:6775
15880 msgid "guestfs_vgremove"
15881 msgstr ""
15882
15883 # type: verbatim
15884 #: ../src/guestfs-actions.pod:6777
15885 #, no-wrap
15886 msgid ""
15887 " int\n"
15888 " guestfs_vgremove (guestfs_h *g,\n"
15889 "                   const char *vgname);\n"
15890 "\n"
15891 msgstr ""
15892
15893 # type: textblock
15894 #: ../src/guestfs-actions.pod:6781 ../fish/guestfish-actions.pod:4525
15895 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15896 msgstr ""
15897
15898 # type: textblock
15899 #: ../src/guestfs-actions.pod:6783 ../fish/guestfish-actions.pod:4527
15900 msgid ""
15901 "This also forcibly removes all logical volumes in the volume group (if any)."
15902 msgstr ""
15903
15904 # type: =head2
15905 #: ../src/guestfs-actions.pod:6790
15906 msgid "guestfs_vgrename"
15907 msgstr ""
15908
15909 # type: verbatim
15910 #: ../src/guestfs-actions.pod:6792
15911 #, no-wrap
15912 msgid ""
15913 " int\n"
15914 " guestfs_vgrename (guestfs_h *g,\n"
15915 "                   const char *volgroup,\n"
15916 "                   const char *newvolgroup);\n"
15917 "\n"
15918 msgstr ""
15919
15920 # type: textblock
15921 #: ../src/guestfs-actions.pod:6797 ../fish/guestfish-actions.pod:4534
15922 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15923 msgstr ""
15924
15925 # type: =head2
15926 #: ../src/guestfs-actions.pod:6803
15927 msgid "guestfs_vgs"
15928 msgstr ""
15929
15930 # type: verbatim
15931 #: ../src/guestfs-actions.pod:6805
15932 #, no-wrap
15933 msgid ""
15934 " char **\n"
15935 " guestfs_vgs (guestfs_h *g);\n"
15936 "\n"
15937 msgstr ""
15938
15939 # type: textblock
15940 #: ../src/guestfs-actions.pod:6808 ../fish/guestfish-actions.pod:4540
15941 msgid ""
15942 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15943 "> command."
15944 msgstr ""
15945
15946 # type: textblock
15947 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4543
15948 msgid ""
15949 "This returns a list of just the volume group names that were detected (eg. "
15950 "C<VolGroup00>)."
15951 msgstr ""
15952
15953 # type: textblock
15954 #: ../src/guestfs-actions.pod:6814
15955 msgid "See also C<guestfs_vgs_full>."
15956 msgstr ""
15957
15958 # type: =head2
15959 #: ../src/guestfs-actions.pod:6822
15960 msgid "guestfs_vgs_full"
15961 msgstr ""
15962
15963 # type: verbatim
15964 #: ../src/guestfs-actions.pod:6824
15965 #, no-wrap
15966 msgid ""
15967 " struct guestfs_lvm_vg_list *\n"
15968 " guestfs_vgs_full (guestfs_h *g);\n"
15969 "\n"
15970 msgstr ""
15971
15972 # type: textblock
15973 #: ../src/guestfs-actions.pod:6827 ../fish/guestfish-actions.pod:4552
15974 msgid ""
15975 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15976 "> command.  The \"full\" version includes all fields."
15977 msgstr ""
15978
15979 # type: textblock
15980 #: ../src/guestfs-actions.pod:6830
15981 msgid ""
15982 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15983 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15984 msgstr ""
15985
15986 # type: =head2
15987 #: ../src/guestfs-actions.pod:6836
15988 msgid "guestfs_vgscan"
15989 msgstr ""
15990
15991 # type: verbatim
15992 #: ../src/guestfs-actions.pod:6838
15993 #, no-wrap
15994 msgid ""
15995 " int\n"
15996 " guestfs_vgscan (guestfs_h *g);\n"
15997 "\n"
15998 msgstr ""
15999
16000 # type: textblock
16001 #: ../src/guestfs-actions.pod:6841 ../fish/guestfish-actions.pod:4559
16002 msgid ""
16003 "This rescans all block devices and rebuilds the list of LVM physical "
16004 "volumes, volume groups and logical volumes."
16005 msgstr ""
16006
16007 # type: =head2
16008 #: ../src/guestfs-actions.pod:6848
16009 msgid "guestfs_vguuid"
16010 msgstr ""
16011
16012 # type: verbatim
16013 #: ../src/guestfs-actions.pod:6850
16014 #, no-wrap
16015 msgid ""
16016 " char *\n"
16017 " guestfs_vguuid (guestfs_h *g,\n"
16018 "                 const char *vgname);\n"
16019 "\n"
16020 msgstr ""
16021
16022 # type: textblock
16023 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4566
16024 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16025 msgstr ""
16026
16027 # type: =head2
16028 #: ../src/guestfs-actions.pod:6861
16029 msgid "guestfs_wait_ready"
16030 msgstr ""
16031
16032 # type: verbatim
16033 #: ../src/guestfs-actions.pod:6863
16034 #, no-wrap
16035 msgid ""
16036 " int\n"
16037 " guestfs_wait_ready (guestfs_h *g);\n"
16038 "\n"
16039 msgstr ""
16040
16041 # type: textblock
16042 #: ../src/guestfs-actions.pod:6866
16043 msgid "This function is a no op."
16044 msgstr ""
16045
16046 # type: textblock
16047 #: ../src/guestfs-actions.pod:6868
16048 msgid ""
16049 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
16050 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
16051 "is no longer necessary because C<guestfs_launch> now does the waiting."
16052 msgstr ""
16053
16054 # type: textblock
16055 #: ../src/guestfs-actions.pod:6873
16056 msgid ""
16057 "If you see any calls to this function in code then you can just remove them, "
16058 "unless you want to retain compatibility with older versions of the API."
16059 msgstr ""
16060
16061 # type: =head2
16062 #: ../src/guestfs-actions.pod:6881
16063 msgid "guestfs_wc_c"
16064 msgstr ""
16065
16066 # type: verbatim
16067 #: ../src/guestfs-actions.pod:6883
16068 #, no-wrap
16069 msgid ""
16070 " int\n"
16071 " guestfs_wc_c (guestfs_h *g,\n"
16072 "               const char *path);\n"
16073 "\n"
16074 msgstr ""
16075
16076 # type: textblock
16077 #: ../src/guestfs-actions.pod:6887 ../fish/guestfish-actions.pod:4572
16078 msgid ""
16079 "This command counts the characters in a file, using the C<wc -c> external "
16080 "command."
16081 msgstr ""
16082
16083 # type: =head2
16084 #: ../src/guestfs-actions.pod:6894
16085 msgid "guestfs_wc_l"
16086 msgstr ""
16087
16088 # type: verbatim
16089 #: ../src/guestfs-actions.pod:6896
16090 #, no-wrap
16091 msgid ""
16092 " int\n"
16093 " guestfs_wc_l (guestfs_h *g,\n"
16094 "               const char *path);\n"
16095 "\n"
16096 msgstr ""
16097
16098 # type: textblock
16099 #: ../src/guestfs-actions.pod:6900 ../fish/guestfish-actions.pod:4579
16100 msgid ""
16101 "This command counts the lines in a file, using the C<wc -l> external command."
16102 msgstr ""
16103
16104 # type: =head2
16105 #: ../src/guestfs-actions.pod:6907
16106 msgid "guestfs_wc_w"
16107 msgstr ""
16108
16109 # type: verbatim
16110 #: ../src/guestfs-actions.pod:6909
16111 #, no-wrap
16112 msgid ""
16113 " int\n"
16114 " guestfs_wc_w (guestfs_h *g,\n"
16115 "               const char *path);\n"
16116 "\n"
16117 msgstr ""
16118
16119 # type: textblock
16120 #: ../src/guestfs-actions.pod:6913 ../fish/guestfish-actions.pod:4586
16121 msgid ""
16122 "This command counts the words in a file, using the C<wc -w> external command."
16123 msgstr ""
16124
16125 # type: =head2
16126 #: ../src/guestfs-actions.pod:6920
16127 msgid "guestfs_write"
16128 msgstr ""
16129
16130 # type: verbatim
16131 #: ../src/guestfs-actions.pod:6922
16132 #, no-wrap
16133 msgid ""
16134 " int\n"
16135 " guestfs_write (guestfs_h *g,\n"
16136 "                const char *path,\n"
16137 "                const char *content,\n"
16138 "                size_t content_size);\n"
16139 "\n"
16140 msgstr ""
16141
16142 # type: textblock
16143 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4593
16144 msgid ""
16145 "This call creates a file called C<path>.  The content of the file is the "
16146 "string C<content> (which can contain any 8 bit data)."
16147 msgstr ""
16148
16149 # type: =head2
16150 #: ../src/guestfs-actions.pod:6938
16151 msgid "guestfs_write_file"
16152 msgstr ""
16153
16154 # type: verbatim
16155 #: ../src/guestfs-actions.pod:6940
16156 #, no-wrap
16157 msgid ""
16158 " int\n"
16159 " guestfs_write_file (guestfs_h *g,\n"
16160 "                     const char *path,\n"
16161 "                     const char *content,\n"
16162 "                     int size);\n"
16163 "\n"
16164 msgstr ""
16165
16166 # type: textblock
16167 #: ../src/guestfs-actions.pod:6946 ../fish/guestfish-actions.pod:4603
16168 msgid ""
16169 "This call creates a file called C<path>.  The contents of the file is the "
16170 "string C<content> (which can contain any 8 bit data), with length C<size>."
16171 msgstr ""
16172
16173 # type: textblock
16174 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4607
16175 msgid ""
16176 "As a special case, if C<size> is C<0> then the length is calculated using "
16177 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16178 msgstr ""
16179
16180 # type: textblock
16181 #: ../src/guestfs-actions.pod:6954 ../fish/guestfish-actions.pod:4611
16182 msgid ""
16183 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16184 "I<not> work, even if the length is specified."
16185 msgstr ""
16186
16187 # type: textblock
16188 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4617
16189 msgid ""
16190 "This function is deprecated.  In new code, use the C<write> call instead."
16191 msgstr ""
16192
16193 # type: =head2
16194 #: ../src/guestfs-actions.pod:6971
16195 msgid "guestfs_zegrep"
16196 msgstr ""
16197
16198 # type: verbatim
16199 #: ../src/guestfs-actions.pod:6973
16200 #, no-wrap
16201 msgid ""
16202 " char **\n"
16203 " guestfs_zegrep (guestfs_h *g,\n"
16204 "                 const char *regex,\n"
16205 "                 const char *path);\n"
16206 "\n"
16207 msgstr ""
16208
16209 # type: textblock
16210 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4628
16211 msgid ""
16212 "This calls the external C<zegrep> program and returns the matching lines."
16213 msgstr ""
16214
16215 # type: =head2
16216 #: ../src/guestfs-actions.pod:6990
16217 msgid "guestfs_zegrepi"
16218 msgstr ""
16219
16220 # type: verbatim
16221 #: ../src/guestfs-actions.pod:6992
16222 #, no-wrap
16223 msgid ""
16224 " char **\n"
16225 " guestfs_zegrepi (guestfs_h *g,\n"
16226 "                  const char *regex,\n"
16227 "                  const char *path);\n"
16228 "\n"
16229 msgstr ""
16230
16231 # type: textblock
16232 #: ../src/guestfs-actions.pod:6997 ../fish/guestfish-actions.pod:4638
16233 msgid ""
16234 "This calls the external C<zegrep -i> program and returns the matching lines."
16235 msgstr ""
16236
16237 # type: =head2
16238 #: ../src/guestfs-actions.pod:7009
16239 msgid "guestfs_zero"
16240 msgstr ""
16241
16242 # type: verbatim
16243 #: ../src/guestfs-actions.pod:7011
16244 #, no-wrap
16245 msgid ""
16246 " int\n"
16247 " guestfs_zero (guestfs_h *g,\n"
16248 "               const char *device);\n"
16249 "\n"
16250 msgstr ""
16251
16252 # type: textblock
16253 #: ../src/guestfs-actions.pod:7015 ../fish/guestfish-actions.pod:4648
16254 msgid "This command writes zeroes over the first few blocks of C<device>."
16255 msgstr ""
16256
16257 # type: textblock
16258 #: ../src/guestfs-actions.pod:7017 ../fish/guestfish-actions.pod:4650
16259 msgid ""
16260 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16261 "securely wipe the device).  It should be sufficient to remove any partition "
16262 "tables, filesystem superblocks and so on."
16263 msgstr ""
16264
16265 # type: textblock
16266 #: ../src/guestfs-actions.pod:7021
16267 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
16268 msgstr ""
16269
16270 # type: =head2
16271 #: ../src/guestfs-actions.pod:7032
16272 msgid "guestfs_zero_device"
16273 msgstr ""
16274
16275 # type: verbatim
16276 #: ../src/guestfs-actions.pod:7034
16277 #, no-wrap
16278 msgid ""
16279 " int\n"
16280 " guestfs_zero_device (guestfs_h *g,\n"
16281 "                      const char *device);\n"
16282 "\n"
16283 msgstr ""
16284
16285 # type: textblock
16286 #: ../src/guestfs-actions.pod:7038
16287 msgid ""
16288 "This command writes zeroes over the entire C<device>.  Compare with "
16289 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16290 msgstr ""
16291
16292 # type: textblock
16293 #: ../src/guestfs-actions.pod:7052
16294 msgid "(Added in 1.3.1)"
16295 msgstr ""
16296
16297 # type: =head2
16298 #: ../src/guestfs-actions.pod:7054
16299 msgid "guestfs_zerofree"
16300 msgstr ""
16301
16302 # type: verbatim
16303 #: ../src/guestfs-actions.pod:7056
16304 #, no-wrap
16305 msgid ""
16306 " int\n"
16307 " guestfs_zerofree (guestfs_h *g,\n"
16308 "                   const char *device);\n"
16309 "\n"
16310 msgstr ""
16311
16312 # type: textblock
16313 #: ../src/guestfs-actions.pod:7060 ../fish/guestfish-actions.pod:4671
16314 msgid ""
16315 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16316 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16317 "possible to compress the filesystem more effectively."
16318 msgstr ""
16319
16320 # type: textblock
16321 #: ../src/guestfs-actions.pod:7065 ../fish/guestfish-actions.pod:4676
16322 msgid "You should B<not> run this program if the filesystem is mounted."
16323 msgstr ""
16324
16325 # type: textblock
16326 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4679
16327 msgid ""
16328 "It is possible that using this program can damage the filesystem or data on "
16329 "the filesystem."
16330 msgstr ""
16331
16332 # type: =head2
16333 #: ../src/guestfs-actions.pod:7075
16334 msgid "guestfs_zfgrep"
16335 msgstr ""
16336
16337 # type: verbatim
16338 #: ../src/guestfs-actions.pod:7077
16339 #, no-wrap
16340 msgid ""
16341 " char **\n"
16342 " guestfs_zfgrep (guestfs_h *g,\n"
16343 "                 const char *pattern,\n"
16344 "                 const char *path);\n"
16345 "\n"
16346 msgstr ""
16347
16348 # type: textblock
16349 #: ../src/guestfs-actions.pod:7082 ../fish/guestfish-actions.pod:4686
16350 msgid ""
16351 "This calls the external C<zfgrep> program and returns the matching lines."
16352 msgstr ""
16353
16354 # type: =head2
16355 #: ../src/guestfs-actions.pod:7094
16356 msgid "guestfs_zfgrepi"
16357 msgstr ""
16358
16359 # type: verbatim
16360 #: ../src/guestfs-actions.pod:7096
16361 #, no-wrap
16362 msgid ""
16363 " char **\n"
16364 " guestfs_zfgrepi (guestfs_h *g,\n"
16365 "                  const char *pattern,\n"
16366 "                  const char *path);\n"
16367 "\n"
16368 msgstr ""
16369
16370 # type: textblock
16371 #: ../src/guestfs-actions.pod:7101 ../fish/guestfish-actions.pod:4696
16372 msgid ""
16373 "This calls the external C<zfgrep -i> program and returns the matching lines."
16374 msgstr ""
16375
16376 # type: =head2
16377 #: ../src/guestfs-actions.pod:7113
16378 msgid "guestfs_zfile"
16379 msgstr ""
16380
16381 # type: verbatim
16382 #: ../src/guestfs-actions.pod:7115
16383 #, no-wrap
16384 msgid ""
16385 " char *\n"
16386 " guestfs_zfile (guestfs_h *g,\n"
16387 "                const char *meth,\n"
16388 "                const char *path);\n"
16389 "\n"
16390 msgstr ""
16391
16392 # type: textblock
16393 #: ../src/guestfs-actions.pod:7120 ../fish/guestfish-actions.pod:4706
16394 msgid ""
16395 "This command runs C<file> after first decompressing C<path> using C<method>."
16396 msgstr ""
16397
16398 # type: textblock
16399 #: ../src/guestfs-actions.pod:7123 ../fish/guestfish-actions.pod:4709
16400 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16401 msgstr ""
16402
16403 # type: textblock
16404 #: ../src/guestfs-actions.pod:7125
16405 msgid ""
16406 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16407 "files."
16408 msgstr ""
16409
16410 # type: textblock
16411 #: ../src/guestfs-actions.pod:7131 ../fish/guestfish-actions.pod:4714
16412 msgid ""
16413 "This function is deprecated.  In new code, use the C<file> call instead."
16414 msgstr ""
16415
16416 # type: =head2
16417 #: ../src/guestfs-actions.pod:7140
16418 msgid "guestfs_zgrep"
16419 msgstr ""
16420
16421 # type: verbatim
16422 #: ../src/guestfs-actions.pod:7142
16423 #, no-wrap
16424 msgid ""
16425 " char **\n"
16426 " guestfs_zgrep (guestfs_h *g,\n"
16427 "                const char *regex,\n"
16428 "                const char *path);\n"
16429 "\n"
16430 msgstr ""
16431
16432 # type: textblock
16433 #: ../src/guestfs-actions.pod:7147 ../fish/guestfish-actions.pod:4725
16434 msgid ""
16435 "This calls the external C<zgrep> program and returns the matching lines."
16436 msgstr ""
16437
16438 # type: =head2
16439 #: ../src/guestfs-actions.pod:7159
16440 msgid "guestfs_zgrepi"
16441 msgstr ""
16442
16443 # type: verbatim
16444 #: ../src/guestfs-actions.pod:7161
16445 #, no-wrap
16446 msgid ""
16447 " char **\n"
16448 " guestfs_zgrepi (guestfs_h *g,\n"
16449 "                 const char *regex,\n"
16450 "                 const char *path);\n"
16451 "\n"
16452 msgstr ""
16453
16454 # type: textblock
16455 #: ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:4735
16456 msgid ""
16457 "This calls the external C<zgrep -i> program and returns the matching lines."
16458 msgstr ""
16459
16460 # type: =item
16461 #: ../src/guestfs-availability.pod:3
16462 msgid "B<augeas>"
16463 msgstr ""
16464
16465 # type: textblock
16466 #: ../src/guestfs-availability.pod:5
16467 msgid ""
16468 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16469 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16470 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16471 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16472 "L</guestfs_aug_save> L</guestfs_aug_set>"
16473 msgstr ""
16474
16475 # type: =item
16476 #: ../src/guestfs-availability.pod:21
16477 msgid "B<inotify>"
16478 msgstr ""
16479
16480 # type: textblock
16481 #: ../src/guestfs-availability.pod:23
16482 msgid ""
16483 "The following functions: L</guestfs_inotify_add_watch> L</"
16484 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16485 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16486 msgstr ""
16487
16488 # type: =item
16489 #: ../src/guestfs-availability.pod:31
16490 msgid "B<linuxfsuuid>"
16491 msgstr ""
16492
16493 # type: textblock
16494 #: ../src/guestfs-availability.pod:33
16495 msgid ""
16496 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16497 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16498 msgstr ""
16499
16500 # type: =item
16501 #: ../src/guestfs-availability.pod:40
16502 msgid "B<linuxmodules>"
16503 msgstr ""
16504
16505 # type: textblock
16506 #: ../src/guestfs-availability.pod:42
16507 msgid "The following functions: L</guestfs_modprobe>"
16508 msgstr ""
16509
16510 # type: =item
16511 #: ../src/guestfs-availability.pod:45
16512 msgid "B<linuxxattrs>"
16513 msgstr ""
16514
16515 # type: textblock
16516 #: ../src/guestfs-availability.pod:47
16517 msgid ""
16518 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
16519 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
16520 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
16521 "guestfs_setxattr>"
16522 msgstr ""
16523
16524 # type: =item
16525 #: ../src/guestfs-availability.pod:58
16526 msgid "B<luks>"
16527 msgstr ""
16528
16529 # type: textblock
16530 #: ../src/guestfs-availability.pod:60
16531 msgid ""
16532 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16533 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16534 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16535 msgstr ""
16536
16537 # type: =item
16538 #: ../src/guestfs-availability.pod:69
16539 msgid "B<lvm2>"
16540 msgstr ""
16541
16542 # type: textblock
16543 #: ../src/guestfs-availability.pod:71
16544 msgid ""
16545 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16546 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16547 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16548 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16549 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16550 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16551 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16552 msgstr ""
16553
16554 # type: =item
16555 #: ../src/guestfs-availability.pod:94
16556 msgid "B<mknod>"
16557 msgstr ""
16558
16559 # type: textblock
16560 #: ../src/guestfs-availability.pod:96
16561 msgid ""
16562 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16563 "guestfs_mknod_b> L</guestfs_mknod_c>"
16564 msgstr ""
16565
16566 # type: =item
16567 #: ../src/guestfs-availability.pod:102
16568 msgid "B<ntfs3g>"
16569 msgstr ""
16570
16571 # type: textblock
16572 #: ../src/guestfs-availability.pod:104
16573 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16574 msgstr ""
16575
16576 # type: =item
16577 #: ../src/guestfs-availability.pod:107
16578 msgid "B<ntfsprogs>"
16579 msgstr ""
16580
16581 # type: textblock
16582 #: ../src/guestfs-availability.pod:109
16583 msgid ""
16584 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16585 msgstr ""
16586
16587 # type: =item
16588 #: ../src/guestfs-availability.pod:113
16589 msgid "B<realpath>"
16590 msgstr ""
16591
16592 # type: textblock
16593 #: ../src/guestfs-availability.pod:115
16594 msgid "The following functions: L</guestfs_realpath>"
16595 msgstr ""
16596
16597 # type: =item
16598 #: ../src/guestfs-availability.pod:118
16599 msgid "B<scrub>"
16600 msgstr ""
16601
16602 # type: textblock
16603 #: ../src/guestfs-availability.pod:120
16604 msgid ""
16605 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16606 "guestfs_scrub_freespace>"
16607 msgstr ""
16608
16609 # type: =item
16610 #: ../src/guestfs-availability.pod:125
16611 msgid "B<selinux>"
16612 msgstr ""
16613
16614 # type: textblock
16615 #: ../src/guestfs-availability.pod:127
16616 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16617 msgstr ""
16618
16619 # type: =item
16620 #: ../src/guestfs-availability.pod:131
16621 msgid "B<xz>"
16622 msgstr ""
16623
16624 # type: textblock
16625 #: ../src/guestfs-availability.pod:133
16626 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16627 msgstr ""
16628
16629 # type: =item
16630 #: ../src/guestfs-availability.pod:137
16631 msgid "B<zerofree>"
16632 msgstr ""
16633
16634 # type: textblock
16635 #: ../src/guestfs-availability.pod:139
16636 msgid "The following functions: L</guestfs_zerofree>"
16637 msgstr ""
16638
16639 # type: =head2
16640 #: ../src/guestfs-structs.pod:1
16641 msgid "guestfs_int_bool"
16642 msgstr ""
16643
16644 # type: verbatim
16645 #: ../src/guestfs-structs.pod:3
16646 #, no-wrap
16647 msgid ""
16648 " struct guestfs_int_bool {\n"
16649 "   int32_t i;\n"
16650 "   int32_t b;\n"
16651 " };\n"
16652 " \n"
16653 msgstr ""
16654
16655 # type: verbatim
16656 #: ../src/guestfs-structs.pod:8
16657 #, no-wrap
16658 msgid ""
16659 " struct guestfs_int_bool_list {\n"
16660 "   uint32_t len; /* Number of elements in list. */\n"
16661 "   struct guestfs_int_bool *val; /* Elements. */\n"
16662 " };\n"
16663 " \n"
16664 msgstr ""
16665
16666 # type: verbatim
16667 #: ../src/guestfs-structs.pod:13
16668 #, no-wrap
16669 msgid ""
16670 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16671 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16672 "\n"
16673 msgstr ""
16674
16675 # type: =head2
16676 #: ../src/guestfs-structs.pod:16
16677 msgid "guestfs_lvm_pv"
16678 msgstr ""
16679
16680 # type: verbatim
16681 #: ../src/guestfs-structs.pod:18
16682 #, no-wrap
16683 msgid ""
16684 " struct guestfs_lvm_pv {\n"
16685 "   char *pv_name;\n"
16686 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16687 "   char pv_uuid[32];\n"
16688 "   char *pv_fmt;\n"
16689 "   uint64_t pv_size;\n"
16690 "   uint64_t dev_size;\n"
16691 "   uint64_t pv_free;\n"
16692 "   uint64_t pv_used;\n"
16693 "   char *pv_attr;\n"
16694 "   int64_t pv_pe_count;\n"
16695 "   int64_t pv_pe_alloc_count;\n"
16696 "   char *pv_tags;\n"
16697 "   uint64_t pe_start;\n"
16698 "   int64_t pv_mda_count;\n"
16699 "   uint64_t pv_mda_free;\n"
16700 " };\n"
16701 " \n"
16702 msgstr ""
16703
16704 # type: verbatim
16705 #: ../src/guestfs-structs.pod:36
16706 #, no-wrap
16707 msgid ""
16708 " struct guestfs_lvm_pv_list {\n"
16709 "   uint32_t len; /* Number of elements in list. */\n"
16710 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16711 " };\n"
16712 " \n"
16713 msgstr ""
16714
16715 # type: verbatim
16716 #: ../src/guestfs-structs.pod:41
16717 #, no-wrap
16718 msgid ""
16719 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16720 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16721 "\n"
16722 msgstr ""
16723
16724 # type: =head2
16725 #: ../src/guestfs-structs.pod:44
16726 msgid "guestfs_lvm_vg"
16727 msgstr ""
16728
16729 # type: verbatim
16730 #: ../src/guestfs-structs.pod:46
16731 #, no-wrap
16732 msgid ""
16733 " struct guestfs_lvm_vg {\n"
16734 "   char *vg_name;\n"
16735 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16736 "   char vg_uuid[32];\n"
16737 "   char *vg_fmt;\n"
16738 "   char *vg_attr;\n"
16739 "   uint64_t vg_size;\n"
16740 "   uint64_t vg_free;\n"
16741 "   char *vg_sysid;\n"
16742 "   uint64_t vg_extent_size;\n"
16743 "   int64_t vg_extent_count;\n"
16744 "   int64_t vg_free_count;\n"
16745 "   int64_t max_lv;\n"
16746 "   int64_t max_pv;\n"
16747 "   int64_t pv_count;\n"
16748 "   int64_t lv_count;\n"
16749 "   int64_t snap_count;\n"
16750 "   int64_t vg_seqno;\n"
16751 "   char *vg_tags;\n"
16752 "   int64_t vg_mda_count;\n"
16753 "   uint64_t vg_mda_free;\n"
16754 " };\n"
16755 " \n"
16756 msgstr ""
16757
16758 # type: verbatim
16759 #: ../src/guestfs-structs.pod:69
16760 #, no-wrap
16761 msgid ""
16762 " struct guestfs_lvm_vg_list {\n"
16763 "   uint32_t len; /* Number of elements in list. */\n"
16764 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16765 " };\n"
16766 " \n"
16767 msgstr ""
16768
16769 # type: verbatim
16770 #: ../src/guestfs-structs.pod:74
16771 #, no-wrap
16772 msgid ""
16773 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16774 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16775 "\n"
16776 msgstr ""
16777
16778 # type: =head2
16779 #: ../src/guestfs-structs.pod:77
16780 msgid "guestfs_lvm_lv"
16781 msgstr ""
16782
16783 # type: verbatim
16784 #: ../src/guestfs-structs.pod:79
16785 #, no-wrap
16786 msgid ""
16787 " struct guestfs_lvm_lv {\n"
16788 "   char *lv_name;\n"
16789 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16790 "   char lv_uuid[32];\n"
16791 "   char *lv_attr;\n"
16792 "   int64_t lv_major;\n"
16793 "   int64_t lv_minor;\n"
16794 "   int64_t lv_kernel_major;\n"
16795 "   int64_t lv_kernel_minor;\n"
16796 "   uint64_t lv_size;\n"
16797 "   int64_t seg_count;\n"
16798 "   char *origin;\n"
16799 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16800 "   float snap_percent;\n"
16801 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16802 "   float copy_percent;\n"
16803 "   char *move_pv;\n"
16804 "   char *lv_tags;\n"
16805 "   char *mirror_log;\n"
16806 "   char *modules;\n"
16807 " };\n"
16808 " \n"
16809 msgstr ""
16810
16811 # type: verbatim
16812 #: ../src/guestfs-structs.pod:101
16813 #, no-wrap
16814 msgid ""
16815 " struct guestfs_lvm_lv_list {\n"
16816 "   uint32_t len; /* Number of elements in list. */\n"
16817 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16818 " };\n"
16819 " \n"
16820 msgstr ""
16821
16822 # type: verbatim
16823 #: ../src/guestfs-structs.pod:106
16824 #, no-wrap
16825 msgid ""
16826 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16827 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16828 "\n"
16829 msgstr ""
16830
16831 # type: verbatim
16832 #: ../src/guestfs-structs.pod:111
16833 #, no-wrap
16834 msgid ""
16835 " struct guestfs_stat {\n"
16836 "   int64_t dev;\n"
16837 "   int64_t ino;\n"
16838 "   int64_t mode;\n"
16839 "   int64_t nlink;\n"
16840 "   int64_t uid;\n"
16841 "   int64_t gid;\n"
16842 "   int64_t rdev;\n"
16843 "   int64_t size;\n"
16844 "   int64_t blksize;\n"
16845 "   int64_t blocks;\n"
16846 "   int64_t atime;\n"
16847 "   int64_t mtime;\n"
16848 "   int64_t ctime;\n"
16849 " };\n"
16850 " \n"
16851 msgstr ""
16852
16853 # type: verbatim
16854 #: ../src/guestfs-structs.pod:127
16855 #, no-wrap
16856 msgid ""
16857 " struct guestfs_stat_list {\n"
16858 "   uint32_t len; /* Number of elements in list. */\n"
16859 "   struct guestfs_stat *val; /* Elements. */\n"
16860 " };\n"
16861 " \n"
16862 msgstr ""
16863
16864 # type: verbatim
16865 #: ../src/guestfs-structs.pod:132
16866 #, no-wrap
16867 msgid ""
16868 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16869 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16870 "\n"
16871 msgstr ""
16872
16873 # type: verbatim
16874 #: ../src/guestfs-structs.pod:137
16875 #, no-wrap
16876 msgid ""
16877 " struct guestfs_statvfs {\n"
16878 "   int64_t bsize;\n"
16879 "   int64_t frsize;\n"
16880 "   int64_t blocks;\n"
16881 "   int64_t bfree;\n"
16882 "   int64_t bavail;\n"
16883 "   int64_t files;\n"
16884 "   int64_t ffree;\n"
16885 "   int64_t favail;\n"
16886 "   int64_t fsid;\n"
16887 "   int64_t flag;\n"
16888 "   int64_t namemax;\n"
16889 " };\n"
16890 " \n"
16891 msgstr ""
16892
16893 # type: verbatim
16894 #: ../src/guestfs-structs.pod:151
16895 #, no-wrap
16896 msgid ""
16897 " struct guestfs_statvfs_list {\n"
16898 "   uint32_t len; /* Number of elements in list. */\n"
16899 "   struct guestfs_statvfs *val; /* Elements. */\n"
16900 " };\n"
16901 " \n"
16902 msgstr ""
16903
16904 # type: verbatim
16905 #: ../src/guestfs-structs.pod:156
16906 #, no-wrap
16907 msgid ""
16908 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16909 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16910 "\n"
16911 msgstr ""
16912
16913 # type: =head2
16914 #: ../src/guestfs-structs.pod:159
16915 msgid "guestfs_dirent"
16916 msgstr ""
16917
16918 # type: verbatim
16919 #: ../src/guestfs-structs.pod:161
16920 #, no-wrap
16921 msgid ""
16922 " struct guestfs_dirent {\n"
16923 "   int64_t ino;\n"
16924 "   char ftyp;\n"
16925 "   char *name;\n"
16926 " };\n"
16927 " \n"
16928 msgstr ""
16929
16930 # type: verbatim
16931 #: ../src/guestfs-structs.pod:167
16932 #, no-wrap
16933 msgid ""
16934 " struct guestfs_dirent_list {\n"
16935 "   uint32_t len; /* Number of elements in list. */\n"
16936 "   struct guestfs_dirent *val; /* Elements. */\n"
16937 " };\n"
16938 " \n"
16939 msgstr ""
16940
16941 # type: verbatim
16942 #: ../src/guestfs-structs.pod:172
16943 #, no-wrap
16944 msgid ""
16945 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16946 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16947 "\n"
16948 msgstr ""
16949
16950 # type: verbatim
16951 #: ../src/guestfs-structs.pod:177
16952 #, no-wrap
16953 msgid ""
16954 " struct guestfs_version {\n"
16955 "   int64_t major;\n"
16956 "   int64_t minor;\n"
16957 "   int64_t release;\n"
16958 "   char *extra;\n"
16959 " };\n"
16960 " \n"
16961 msgstr ""
16962
16963 # type: verbatim
16964 #: ../src/guestfs-structs.pod:184
16965 #, no-wrap
16966 msgid ""
16967 " struct guestfs_version_list {\n"
16968 "   uint32_t len; /* Number of elements in list. */\n"
16969 "   struct guestfs_version *val; /* Elements. */\n"
16970 " };\n"
16971 " \n"
16972 msgstr ""
16973
16974 # type: verbatim
16975 #: ../src/guestfs-structs.pod:189
16976 #, no-wrap
16977 msgid ""
16978 " void guestfs_free_version (struct guestfs_free_version *);\n"
16979 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16980 "\n"
16981 msgstr ""
16982
16983 # type: =head2
16984 #: ../src/guestfs-structs.pod:192
16985 msgid "guestfs_xattr"
16986 msgstr ""
16987
16988 # type: verbatim
16989 #: ../src/guestfs-structs.pod:194
16990 #, no-wrap
16991 msgid ""
16992 " struct guestfs_xattr {\n"
16993 "   char *attrname;\n"
16994 "   /* The next two fields describe a byte array. */\n"
16995 "   uint32_t attrval_len;\n"
16996 "   char *attrval;\n"
16997 " };\n"
16998 " \n"
16999 msgstr ""
17000
17001 # type: verbatim
17002 #: ../src/guestfs-structs.pod:201
17003 #, no-wrap
17004 msgid ""
17005 " struct guestfs_xattr_list {\n"
17006 "   uint32_t len; /* Number of elements in list. */\n"
17007 "   struct guestfs_xattr *val; /* Elements. */\n"
17008 " };\n"
17009 " \n"
17010 msgstr ""
17011
17012 # type: verbatim
17013 #: ../src/guestfs-structs.pod:206
17014 #, no-wrap
17015 msgid ""
17016 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
17017 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
17018 "\n"
17019 msgstr ""
17020
17021 # type: =head2
17022 #: ../src/guestfs-structs.pod:209
17023 msgid "guestfs_inotify_event"
17024 msgstr ""
17025
17026 # type: verbatim
17027 #: ../src/guestfs-structs.pod:211
17028 #, no-wrap
17029 msgid ""
17030 " struct guestfs_inotify_event {\n"
17031 "   int64_t in_wd;\n"
17032 "   uint32_t in_mask;\n"
17033 "   uint32_t in_cookie;\n"
17034 "   char *in_name;\n"
17035 " };\n"
17036 " \n"
17037 msgstr ""
17038
17039 # type: verbatim
17040 #: ../src/guestfs-structs.pod:218
17041 #, no-wrap
17042 msgid ""
17043 " struct guestfs_inotify_event_list {\n"
17044 "   uint32_t len; /* Number of elements in list. */\n"
17045 "   struct guestfs_inotify_event *val; /* Elements. */\n"
17046 " };\n"
17047 " \n"
17048 msgstr ""
17049
17050 # type: verbatim
17051 #: ../src/guestfs-structs.pod:223
17052 #, no-wrap
17053 msgid ""
17054 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
17055 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
17056 "\n"
17057 msgstr ""
17058
17059 # type: =head2
17060 #: ../src/guestfs-structs.pod:226
17061 msgid "guestfs_partition"
17062 msgstr ""
17063
17064 # type: verbatim
17065 #: ../src/guestfs-structs.pod:228
17066 #, no-wrap
17067 msgid ""
17068 " struct guestfs_partition {\n"
17069 "   int32_t part_num;\n"
17070 "   uint64_t part_start;\n"
17071 "   uint64_t part_end;\n"
17072 "   uint64_t part_size;\n"
17073 " };\n"
17074 " \n"
17075 msgstr ""
17076
17077 # type: verbatim
17078 #: ../src/guestfs-structs.pod:235
17079 #, no-wrap
17080 msgid ""
17081 " struct guestfs_partition_list {\n"
17082 "   uint32_t len; /* Number of elements in list. */\n"
17083 "   struct guestfs_partition *val; /* Elements. */\n"
17084 " };\n"
17085 " \n"
17086 msgstr ""
17087
17088 # type: verbatim
17089 #: ../src/guestfs-structs.pod:240
17090 #, no-wrap
17091 msgid ""
17092 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
17093 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
17094 "\n"
17095 msgstr ""
17096
17097 # type: =head2
17098 #: ../src/guestfs-structs.pod:243
17099 msgid "guestfs_application"
17100 msgstr ""
17101
17102 # type: verbatim
17103 #: ../src/guestfs-structs.pod:245
17104 #, no-wrap
17105 msgid ""
17106 " struct guestfs_application {\n"
17107 "   char *app_name;\n"
17108 "   char *app_display_name;\n"
17109 "   int32_t app_epoch;\n"
17110 "   char *app_version;\n"
17111 "   char *app_release;\n"
17112 "   char *app_install_path;\n"
17113 "   char *app_trans_path;\n"
17114 "   char *app_publisher;\n"
17115 "   char *app_url;\n"
17116 "   char *app_source_package;\n"
17117 "   char *app_summary;\n"
17118 "   char *app_description;\n"
17119 " };\n"
17120 " \n"
17121 msgstr ""
17122
17123 # type: verbatim
17124 #: ../src/guestfs-structs.pod:260
17125 #, no-wrap
17126 msgid ""
17127 " struct guestfs_application_list {\n"
17128 "   uint32_t len; /* Number of elements in list. */\n"
17129 "   struct guestfs_application *val; /* Elements. */\n"
17130 " };\n"
17131 " \n"
17132 msgstr ""
17133
17134 # type: verbatim
17135 #: ../src/guestfs-structs.pod:265
17136 #, no-wrap
17137 msgid ""
17138 " void guestfs_free_application (struct guestfs_free_application *);\n"
17139 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
17140 "\n"
17141 msgstr ""
17142
17143 # type: textblock
17144 #: ../fish/guestfish.pod:5
17145 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17146 msgstr ""
17147
17148 # type: verbatim
17149 #: ../fish/guestfish.pod:9
17150 #, no-wrap
17151 msgid ""
17152 " guestfish [--options] [commands]\n"
17153 "\n"
17154 msgstr ""
17155
17156 # type: verbatim
17157 #: ../fish/guestfish.pod:11
17158 #, no-wrap
17159 msgid ""
17160 " guestfish\n"
17161 "\n"
17162 msgstr ""
17163
17164 # type: verbatim
17165 #: ../fish/guestfish.pod:13
17166 #, no-wrap
17167 msgid ""
17168 " guestfish [--ro|--rw] -a disk.img\n"
17169 "\n"
17170 msgstr ""
17171
17172 # type: verbatim
17173 #: ../fish/guestfish.pod:15
17174 #, no-wrap
17175 msgid ""
17176 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17177 "\n"
17178 msgstr ""
17179
17180 # type: verbatim
17181 #: ../fish/guestfish.pod:17
17182 #, no-wrap
17183 msgid ""
17184 " guestfish -d libvirt-domain\n"
17185 "\n"
17186 msgstr ""
17187
17188 # type: verbatim
17189 #: ../fish/guestfish.pod:19
17190 #, no-wrap
17191 msgid ""
17192 " guestfish [--ro|--rw] -a disk.img -i\n"
17193 "\n"
17194 msgstr ""
17195
17196 # type: verbatim
17197 #: ../fish/guestfish.pod:21
17198 #, no-wrap
17199 msgid ""
17200 " guestfish -d libvirt-domain -i\n"
17201 "\n"
17202 msgstr ""
17203
17204 # type: =head1
17205 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
17206 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
17207 msgid "WARNING"
17208 msgstr ""
17209
17210 # type: textblock
17211 #: ../fish/guestfish.pod:25
17212 msgid ""
17213 "Using guestfish in read/write mode on live virtual machines can be "
17214 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17215 "option to use guestfish safely if the disk image or virtual machine might be "
17216 "live."
17217 msgstr ""
17218
17219 # type: textblock
17220 #: ../fish/guestfish.pod:32
17221 msgid ""
17222 "Guestfish is a shell and command-line tool for examining and modifying "
17223 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17224 "functionality of the guestfs API, see L<guestfs(3)>."
17225 msgstr ""
17226
17227 # type: textblock
17228 #: ../fish/guestfish.pod:36
17229 msgid ""
17230 "Guestfish gives you structured access to the libguestfs API, from shell "
17231 "scripts or the command line or interactively.  If you want to rescue a "
17232 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17233 "command."
17234 msgstr ""
17235
17236 # type: =head1
17237 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897
17238 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
17239 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
17240 msgid "EXAMPLES"
17241 msgstr ""
17242
17243 # type: =head2
17244 #: ../fish/guestfish.pod:43
17245 msgid "As an interactive shell"
17246 msgstr ""
17247
17248 # type: verbatim
17249 #: ../fish/guestfish.pod:45
17250 #, no-wrap
17251 msgid ""
17252 " $ guestfish\n"
17253 " \n"
17254 msgstr ""
17255
17256 # type: verbatim
17257 #: ../fish/guestfish.pod:47
17258 #, no-wrap
17259 msgid ""
17260 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17261 " editing virtual machine filesystems.\n"
17262 " \n"
17263 msgstr ""
17264
17265 # type: verbatim
17266 #: ../fish/guestfish.pod:50
17267 #, no-wrap
17268 msgid ""
17269 " Type: 'help' for a list of commands\n"
17270 "       'man' to read the manual\n"
17271 "       'quit' to quit the shell\n"
17272 " \n"
17273 msgstr ""
17274
17275 # type: verbatim
17276 #: ../fish/guestfish.pod:54
17277 #, no-wrap
17278 msgid ""
17279 " ><fs> add-ro disk.img\n"
17280 " ><fs> run\n"
17281 " ><fs> list-filesystems\n"
17282 " /dev/sda1: ext4\n"
17283 " /dev/vg_guest/lv_root: ext4\n"
17284 " /dev/vg_guest/lv_swap: swap\n"
17285 " ><fs> mount /dev/vg_guest/lv_root /\n"
17286 " ><fs> cat /etc/fstab\n"
17287 " # /etc/fstab\n"
17288 " # Created by anaconda\n"
17289 " [...]\n"
17290 " ><fs> exit\n"
17291 "\n"
17292 msgstr ""
17293
17294 # type: =head2
17295 #: ../fish/guestfish.pod:67
17296 msgid "From shell scripts"
17297 msgstr ""
17298
17299 # type: textblock
17300 #: ../fish/guestfish.pod:69
17301 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17302 msgstr ""
17303
17304 # type: verbatim
17305 #: ../fish/guestfish.pod:71
17306 #, no-wrap
17307 msgid ""
17308 " guestfish <<_EOF_\n"
17309 " add disk.img\n"
17310 " run\n"
17311 " mount /dev/vg_guest/lv_root /\n"
17312 " write /etc/motd \"Welcome, new users\"\n"
17313 " _EOF_\n"
17314 "\n"
17315 msgstr ""
17316
17317 # type: textblock
17318 #: ../fish/guestfish.pod:78
17319 msgid "List the LVM logical volumes in a disk image:"
17320 msgstr ""
17321
17322 # type: verbatim
17323 #: ../fish/guestfish.pod:80
17324 #, no-wrap
17325 msgid ""
17326 " guestfish -a disk.img --ro <<_EOF_\n"
17327 " run\n"
17328 " lvs\n"
17329 " _EOF_\n"
17330 "\n"
17331 msgstr ""
17332
17333 # type: textblock
17334 #: ../fish/guestfish.pod:85
17335 msgid "List all the filesystems in a disk image:"
17336 msgstr ""
17337
17338 # type: verbatim
17339 #: ../fish/guestfish.pod:87
17340 #, no-wrap
17341 msgid ""
17342 " guestfish -a disk.img --ro <<_EOF_\n"
17343 " run\n"
17344 " list-filesystems\n"
17345 " _EOF_\n"
17346 "\n"
17347 msgstr ""
17348
17349 # type: =head2
17350 #: ../fish/guestfish.pod:92
17351 msgid "On one command line"
17352 msgstr ""
17353
17354 # type: textblock
17355 #: ../fish/guestfish.pod:94
17356 msgid "Update C</etc/resolv.conf> in a guest:"
17357 msgstr ""
17358
17359 # type: verbatim
17360 #: ../fish/guestfish.pod:96
17361 #, no-wrap
17362 msgid ""
17363 " guestfish \\\n"
17364 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17365 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17366 "\n"
17367 msgstr ""
17368
17369 # type: textblock
17370 #: ../fish/guestfish.pod:100
17371 msgid "Edit C</boot/grub/grub.conf> interactively:"
17372 msgstr ""
17373
17374 # type: verbatim
17375 #: ../fish/guestfish.pod:102
17376 #, no-wrap
17377 msgid ""
17378 " guestfish --rw --add disk.img \\\n"
17379 "   --mount /dev/vg_guest/lv_root \\\n"
17380 "   --mount /dev/sda1:/boot \\\n"
17381 "   edit /boot/grub/grub.conf\n"
17382 "\n"
17383 msgstr ""
17384
17385 # type: =head2
17386 #: ../fish/guestfish.pod:107
17387 msgid "Mount disks automatically"
17388 msgstr ""
17389
17390 # type: textblock
17391 #: ../fish/guestfish.pod:109
17392 msgid ""
17393 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17394 msgstr ""
17395
17396 # type: verbatim
17397 #: ../fish/guestfish.pod:112
17398 #, no-wrap
17399 msgid ""
17400 " guestfish --ro -a disk.img -i cat /etc/group\n"
17401 "\n"
17402 msgstr ""
17403
17404 # type: verbatim
17405 #: ../fish/guestfish.pod:114
17406 #, no-wrap
17407 msgid ""
17408 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17409 "\n"
17410 msgstr ""
17411
17412 # type: textblock
17413 #: ../fish/guestfish.pod:116
17414 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17415 msgstr ""
17416
17417 # type: verbatim
17418 #: ../fish/guestfish.pod:118
17419 #, no-wrap
17420 msgid ""
17421 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17422 "\n"
17423 msgstr ""
17424
17425 # type: =head2
17426 #: ../fish/guestfish.pod:120
17427 msgid "As a script interpreter"
17428 msgstr ""
17429
17430 # type: textblock
17431 #: ../fish/guestfish.pod:122
17432 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17433 msgstr ""
17434
17435 # type: verbatim
17436 #: ../fish/guestfish.pod:124
17437 #, no-wrap
17438 msgid ""
17439 " #!/usr/bin/guestfish -f\n"
17440 " sparse test1.img 100M\n"
17441 " run\n"
17442 " part-disk /dev/sda mbr\n"
17443 " mkfs ext2 /dev/sda1\n"
17444 "\n"
17445 msgstr ""
17446
17447 # type: =head2
17448 #: ../fish/guestfish.pod:130
17449 msgid "Start with a prepared disk"
17450 msgstr ""
17451
17452 # type: textblock
17453 #: ../fish/guestfish.pod:132
17454 msgid ""
17455 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17456 "single ext2-formatted partition:"
17457 msgstr ""
17458
17459 # type: verbatim
17460 #: ../fish/guestfish.pod:135
17461 #, no-wrap
17462 msgid ""
17463 " guestfish -N fs\n"
17464 "\n"
17465 msgstr ""
17466
17467 # type: textblock
17468 #: ../fish/guestfish.pod:137
17469 msgid "To list what is available do:"
17470 msgstr ""
17471
17472 # type: verbatim
17473 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
17474 #, no-wrap
17475 msgid ""
17476 " guestfish -N help | less\n"
17477 "\n"
17478 msgstr ""
17479
17480 # type: =head2
17481 #: ../fish/guestfish.pod:141
17482 msgid "Remote control"
17483 msgstr ""
17484
17485 # type: verbatim
17486 #: ../fish/guestfish.pod:143
17487 #, no-wrap
17488 msgid ""
17489 " eval \"`guestfish --listen`\"\n"
17490 " guestfish --remote add-ro disk.img\n"
17491 " guestfish --remote run\n"
17492 " guestfish --remote lvs\n"
17493 "\n"
17494 msgstr ""
17495
17496 # type: =head1
17497 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17498 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17499 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
17500 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98
17501 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
17502 msgid "OPTIONS"
17503 msgstr ""
17504
17505 # type: =item
17506 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17507 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
17508 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
17509 #: ../tools/virt-tar.pl:106 ../tools/virt-make-fs.pl:161
17510 #: ../tools/virt-list-partitions.pl:62
17511 msgid "B<--help>"
17512 msgstr ""
17513
17514 # type: textblock
17515 #: ../fish/guestfish.pod:154
17516 msgid "Displays general help on options."
17517 msgstr ""
17518
17519 # type: =item
17520 #: ../fish/guestfish.pod:156
17521 msgid "B<-h>"
17522 msgstr ""
17523
17524 # type: =item
17525 #: ../fish/guestfish.pod:158
17526 msgid "B<--cmd-help>"
17527 msgstr ""
17528
17529 # type: textblock
17530 #: ../fish/guestfish.pod:160
17531 msgid "Lists all available guestfish commands."
17532 msgstr ""
17533
17534 # type: =item
17535 #: ../fish/guestfish.pod:162
17536 msgid "B<-h cmd>"
17537 msgstr ""
17538
17539 # type: =item
17540 #: ../fish/guestfish.pod:164
17541 msgid "B<--cmd-help cmd>"
17542 msgstr ""
17543
17544 # type: textblock
17545 #: ../fish/guestfish.pod:166
17546 msgid "Displays detailed help on a single command C<cmd>."
17547 msgstr ""
17548
17549 # type: =item
17550 #: ../fish/guestfish.pod:168
17551 msgid "B<-a image>"
17552 msgstr ""
17553
17554 # type: =item
17555 #: ../fish/guestfish.pod:170
17556 msgid "B<--add image>"
17557 msgstr ""
17558
17559 # type: textblock
17560 #: ../fish/guestfish.pod:172
17561 msgid "Add a block device or virtual machine image to the shell."
17562 msgstr ""
17563
17564 # type: textblock
17565 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
17566 msgid ""
17567 "The format of the disk image is auto-detected.  To override this and force a "
17568 "particular format use the I<--format=..> option."
17569 msgstr ""
17570
17571 # type: textblock
17572 #: ../fish/guestfish.pod:177
17573 msgid ""
17574 "Using this flag is mostly equivalent to using the C<add> command, with "
17575 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17576 "the I<--format:...> flag was given."
17577 msgstr ""
17578
17579 # type: =item
17580 #: ../fish/guestfish.pod:181
17581 msgid "B<-c URI>"
17582 msgstr ""
17583
17584 # type: =item
17585 #: ../fish/guestfish.pod:183
17586 msgid "B<--connect URI>"
17587 msgstr ""
17588
17589 # type: textblock
17590 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
17591 msgid ""
17592 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17593 "URI to use.  The default is to use the default libvirt connection."
17594 msgstr ""
17595
17596 # type: =item
17597 #: ../fish/guestfish.pod:189
17598 msgid "B<--csh>"
17599 msgstr ""
17600
17601 # type: textblock
17602 #: ../fish/guestfish.pod:191
17603 msgid ""
17604 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17605 "section L</REMOTE CONTROL AND CSH> below."
17606 msgstr ""
17607
17608 # type: =item
17609 #: ../fish/guestfish.pod:194
17610 msgid "B<-d libvirt-domain>"
17611 msgstr ""
17612
17613 # type: =item
17614 #: ../fish/guestfish.pod:196
17615 msgid "B<--domain libvirt-domain>"
17616 msgstr ""
17617
17618 # type: textblock
17619 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
17620 msgid ""
17621 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17622 "used, then any libvirt domain can be used.  However in write mode, only "
17623 "libvirt domains which are shut down can be named here."
17624 msgstr ""
17625
17626 # type: textblock
17627 #: ../fish/guestfish.pod:202
17628 msgid ""
17629 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17630 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17631 "if the I<--format:...> flag was given."
17632 msgstr ""
17633
17634 # type: =item
17635 #: ../fish/guestfish.pod:206
17636 msgid "B<-D>"
17637 msgstr ""
17638
17639 # type: =item
17640 #: ../fish/guestfish.pod:208
17641 msgid "B<--no-dest-paths>"
17642 msgstr ""
17643
17644 # type: textblock
17645 #: ../fish/guestfish.pod:210
17646 msgid ""
17647 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17648 "to hit the tab key to complete paths on the guest filesystem, but this "
17649 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17650 "allow this feature to be disabled."
17651 msgstr ""
17652
17653 # type: =item
17654 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
17655 msgid "B<--echo-keys>"
17656 msgstr ""
17657
17658 # type: textblock
17659 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
17660 msgid ""
17661 "When prompting for keys and passphrases, guestfish normally turns echoing "
17662 "off so you cannot see what you are typing.  If you are not worried about "
17663 "Tempest attacks and there is no one else in the room you can specify this "
17664 "flag to see what you are typing."
17665 msgstr ""
17666
17667 # type: =item
17668 #: ../fish/guestfish.pod:222
17669 msgid "B<-f file>"
17670 msgstr ""
17671
17672 # type: =item
17673 #: ../fish/guestfish.pod:224
17674 msgid "B<--file file>"
17675 msgstr ""
17676
17677 # type: textblock
17678 #: ../fish/guestfish.pod:226
17679 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17680 msgstr ""
17681
17682 # type: verbatim
17683 #: ../fish/guestfish.pod:229
17684 #, no-wrap
17685 msgid ""
17686 " #!/usr/bin/guestfish -f\n"
17687 "\n"
17688 msgstr ""
17689
17690 # type: =item
17691 #: ../fish/guestfish.pod:231
17692 msgid "B<--format=raw|qcow2|..>"
17693 msgstr ""
17694
17695 # type: =item
17696 #: ../fish/guestfish.pod:233
17697 msgid "B<--format>"
17698 msgstr ""
17699
17700 # type: textblock
17701 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
17702 msgid ""
17703 "The default for the I<-a> option is to auto-detect the format of the disk "
17704 "image.  Using this forces the disk format for I<-a> options which follow on "
17705 "the command line.  Using I<--format> with no argument switches back to auto-"
17706 "detection for subsequent I<-a> options."
17707 msgstr ""
17708
17709 # type: textblock
17710 #: ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
17711 msgid "For example:"
17712 msgstr ""
17713
17714 # type: verbatim
17715 #: ../fish/guestfish.pod:242
17716 #, no-wrap
17717 msgid ""
17718 " guestfish --format=raw -a disk.img\n"
17719 "\n"
17720 msgstr ""
17721
17722 # type: textblock
17723 #: ../fish/guestfish.pod:244
17724 msgid "forces raw format (no auto-detection) for C<disk.img>."
17725 msgstr ""
17726
17727 # type: verbatim
17728 #: ../fish/guestfish.pod:246
17729 #, no-wrap
17730 msgid ""
17731 " guestfish --format=raw -a disk.img --format -a another.img\n"
17732 "\n"
17733 msgstr ""
17734
17735 # type: textblock
17736 #: ../fish/guestfish.pod:248
17737 msgid ""
17738 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17739 "detection for C<another.img>."
17740 msgstr ""
17741
17742 # type: textblock
17743 #: ../fish/guestfish.pod:251
17744 msgid ""
17745 "If you have untrusted raw-format guest disk images, you should use this "
17746 "option to specify the disk format.  This avoids a possible security problem "
17747 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17748 msgstr ""
17749
17750 # type: =item
17751 #: ../fish/guestfish.pod:256
17752 msgid "B<-i>"
17753 msgstr ""
17754
17755 # type: =item
17756 #: ../fish/guestfish.pod:258
17757 msgid "B<--inspector>"
17758 msgstr ""
17759
17760 # type: textblock
17761 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
17762 msgid ""
17763 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17764 "system and mount filesystems as they would be mounted on the real virtual "
17765 "machine."
17766 msgstr ""
17767
17768 # type: textblock
17769 #: ../fish/guestfish.pod:264
17770 msgid "Typical usage is either:"
17771 msgstr ""
17772
17773 # type: verbatim
17774 #: ../fish/guestfish.pod:266
17775 #, no-wrap
17776 msgid ""
17777 " guestfish -d myguest -i\n"
17778 "\n"
17779 msgstr ""
17780
17781 # type: textblock
17782 #: ../fish/guestfish.pod:268
17783 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17784 msgstr ""
17785
17786 # type: verbatim
17787 #: ../fish/guestfish.pod:270
17788 #, no-wrap
17789 msgid ""
17790 " guestfish --ro -d myguest -i\n"
17791 "\n"
17792 msgstr ""
17793
17794 # type: textblock
17795 #: ../fish/guestfish.pod:272
17796 msgid "(for active domains, readonly), or specify the block device directly:"
17797 msgstr ""
17798
17799 # type: verbatim
17800 #: ../fish/guestfish.pod:274
17801 #, no-wrap
17802 msgid ""
17803 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17804 "\n"
17805 msgstr ""
17806
17807 # type: textblock
17808 #: ../fish/guestfish.pod:276
17809 msgid ""
17810 "Note that the command line syntax changed slightly over older versions of "
17811 "guestfish.  You can still use the old syntax:"
17812 msgstr ""
17813
17814 # type: verbatim
17815 #: ../fish/guestfish.pod:279
17816 #, no-wrap
17817 msgid ""
17818 " guestfish [--ro] -i disk.img\n"
17819 "\n"
17820 msgstr ""
17821
17822 # type: verbatim
17823 #: ../fish/guestfish.pod:281
17824 #, no-wrap
17825 msgid ""
17826 " guestfish [--ro] -i libvirt-domain\n"
17827 "\n"
17828 msgstr ""
17829
17830 # type: textblock
17831 #: ../fish/guestfish.pod:283
17832 msgid ""
17833 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17834 "then using other commands to mount the filesystems that were found."
17835 msgstr ""
17836
17837 # type: =item
17838 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
17839 msgid "B<--keys-from-stdin>"
17840 msgstr ""
17841
17842 # type: textblock
17843 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
17844 msgid ""
17845 "Read key or passphrase parameters from stdin.  The default is to try to read "
17846 "passphrases from the user by opening C</dev/tty>."
17847 msgstr ""
17848
17849 # type: =item
17850 #: ../fish/guestfish.pod:292
17851 msgid "B<--listen>"
17852 msgstr ""
17853
17854 # type: textblock
17855 #: ../fish/guestfish.pod:294
17856 msgid ""
17857 "Fork into the background and listen for remote commands.  See section L</"
17858 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17859 msgstr ""
17860
17861 # type: =item
17862 #: ../fish/guestfish.pod:297
17863 msgid "B<-m dev[:mountpoint]>"
17864 msgstr ""
17865
17866 # type: =item
17867 #: ../fish/guestfish.pod:299
17868 msgid "B<--mount dev[:mountpoint]>"
17869 msgstr ""
17870
17871 # type: textblock
17872 #: ../fish/guestfish.pod:301
17873 msgid "Mount the named partition or logical volume on the given mountpoint."
17874 msgstr ""
17875
17876 # type: textblock
17877 #: ../fish/guestfish.pod:303
17878 msgid "If the mountpoint is omitted, it defaults to C</>."
17879 msgstr ""
17880
17881 # type: textblock
17882 #: ../fish/guestfish.pod:305
17883 msgid "You have to mount something on C</> before most commands will work."
17884 msgstr ""
17885
17886 # type: textblock
17887 #: ../fish/guestfish.pod:307
17888 msgid ""
17889 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17890 "launched."
17891 msgstr ""
17892
17893 # type: textblock
17894 #: ../fish/guestfish.pod:310
17895 msgid ""
17896 "If you don't know what filesystems a disk image contains, you can either run "
17897 "guestfish without this option, then list the partitions, filesystems and LVs "
17898 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17899 "commands), or you can use the L<virt-filesystems(1)> program."
17900 msgstr ""
17901
17902 # type: textblock
17903 #: ../fish/guestfish.pod:316
17904 msgid ""
17905 "Using this flag is mostly equivalent to using the C<mount-options> command "
17906 "or the C<mount-ro> command if the I<--ro> flag was given."
17907 msgstr ""
17908
17909 # type: =item
17910 #: ../fish/guestfish.pod:319
17911 msgid "B<-n>"
17912 msgstr ""
17913
17914 # type: =item
17915 #: ../fish/guestfish.pod:321
17916 msgid "B<--no-sync>"
17917 msgstr ""
17918
17919 # type: textblock
17920 #: ../fish/guestfish.pod:323
17921 msgid ""
17922 "Disable autosync.  This is enabled by default.  See the discussion of "
17923 "autosync in the L<guestfs(3)> manpage."
17924 msgstr ""
17925
17926 # type: =item
17927 #: ../fish/guestfish.pod:326
17928 msgid "B<-N type>"
17929 msgstr ""
17930
17931 # type: =item
17932 #: ../fish/guestfish.pod:328
17933 msgid "B<--new type>"
17934 msgstr ""
17935
17936 # type: =item
17937 #: ../fish/guestfish.pod:330
17938 msgid "B<-N help>"
17939 msgstr ""
17940
17941 # type: textblock
17942 #: ../fish/guestfish.pod:332
17943 msgid ""
17944 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17945 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17946 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17947 "IMAGES> below."
17948 msgstr ""
17949
17950 # type: =item
17951 #: ../fish/guestfish.pod:337
17952 msgid "B<--progress-bars>"
17953 msgstr ""
17954
17955 # type: textblock
17956 #: ../fish/guestfish.pod:339
17957 msgid "Enable progress bars, even when guestfish is used non-interactively."
17958 msgstr ""
17959
17960 # type: textblock
17961 #: ../fish/guestfish.pod:341
17962 msgid ""
17963 "Progress bars are enabled by default when guestfish is used as an "
17964 "interactive shell."
17965 msgstr ""
17966
17967 # type: =item
17968 #: ../fish/guestfish.pod:344
17969 msgid "B<--no-progress-bars>"
17970 msgstr ""
17971
17972 # type: textblock
17973 #: ../fish/guestfish.pod:346
17974 msgid "Disable progress bars."
17975 msgstr ""
17976
17977 # type: =item
17978 #: ../fish/guestfish.pod:348
17979 msgid "B<--remote[=pid]>"
17980 msgstr ""
17981
17982 # type: textblock
17983 #: ../fish/guestfish.pod:350
17984 msgid ""
17985 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17986 "CONTROL GUESTFISH OVER A SOCKET> below."
17987 msgstr ""
17988
17989 # type: =item
17990 #: ../fish/guestfish.pod:353
17991 msgid "B<-r>"
17992 msgstr ""
17993
17994 # type: =item
17995 #: ../fish/guestfish.pod:355
17996 msgid "B<--ro>"
17997 msgstr ""
17998
17999 # type: textblock
18000 #: ../fish/guestfish.pod:357
18001 msgid ""
18002 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18003 "mounts are done read-only."
18004 msgstr ""
18005
18006 # type: textblock
18007 #: ../fish/guestfish.pod:360
18008 msgid ""
18009 "The option must always be used if the disk image or virtual machine might be "
18010 "running, and is generally recommended in cases where you don't need write "
18011 "access to the disk."
18012 msgstr ""
18013
18014 # type: textblock
18015 #: ../fish/guestfish.pod:364
18016 msgid ""
18017 "Note that prepared disk images created with I<-N> are not affected by this "
18018 "option.  Also commands like C<add> are not affected - you have to specify "
18019 "the C<readonly:true> option explicitly if you need it."
18020 msgstr ""
18021
18022 # type: textblock
18023 #: ../fish/guestfish.pod:368
18024 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18025 msgstr ""
18026
18027 # type: =item
18028 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
18029 msgid "B<--selinux>"
18030 msgstr ""
18031
18032 # type: textblock
18033 #: ../fish/guestfish.pod:372
18034 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18035 msgstr ""
18036
18037 # type: =item
18038 #: ../fish/guestfish.pod:374
18039 msgid "B<-v>"
18040 msgstr ""
18041
18042 # type: =item
18043 #: ../fish/guestfish.pod:376
18044 msgid "B<--verbose>"
18045 msgstr ""
18046
18047 # type: textblock
18048 #: ../fish/guestfish.pod:378
18049 msgid ""
18050 "Enable very verbose messages.  This is particularly useful if you find a bug."
18051 msgstr ""
18052
18053 # type: =item
18054 #: ../fish/guestfish.pod:381
18055 msgid "B<-V>"
18056 msgstr ""
18057
18058 # type: =item
18059 #: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88
18060 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
18061 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:114
18062 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
18063 msgid "B<--version>"
18064 msgstr ""
18065
18066 # type: textblock
18067 #: ../fish/guestfish.pod:385
18068 msgid "Display the guestfish / libguestfs version number and exit."
18069 msgstr ""
18070
18071 # type: =item
18072 #: ../fish/guestfish.pod:387
18073 msgid "B<-w>"
18074 msgstr ""
18075
18076 # type: =item
18077 #: ../fish/guestfish.pod:389
18078 msgid "B<--rw>"
18079 msgstr ""
18080
18081 # type: textblock
18082 #: ../fish/guestfish.pod:391
18083 msgid ""
18084 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
18085 "WRITE> below."
18086 msgstr ""
18087
18088 # type: =item
18089 #: ../fish/guestfish.pod:394
18090 msgid "B<-x>"
18091 msgstr ""
18092
18093 # type: textblock
18094 #: ../fish/guestfish.pod:396
18095 msgid "Echo each command before executing it."
18096 msgstr ""
18097
18098 # type: =head1
18099 #: ../fish/guestfish.pod:400
18100 msgid "COMMANDS ON COMMAND LINE"
18101 msgstr ""
18102
18103 # type: textblock
18104 #: ../fish/guestfish.pod:402
18105 msgid ""
18106 "Any additional (non-option) arguments are treated as commands to execute."
18107 msgstr ""
18108
18109 # type: textblock
18110 #: ../fish/guestfish.pod:405
18111 msgid ""
18112 "Commands to execute should be separated by a colon (C<:>), where the colon "
18113 "is a separate parameter.  Thus:"
18114 msgstr ""
18115
18116 # type: verbatim
18117 #: ../fish/guestfish.pod:408
18118 #, no-wrap
18119 msgid ""
18120 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18121 "\n"
18122 msgstr ""
18123
18124 # type: textblock
18125 #: ../fish/guestfish.pod:410
18126 msgid ""
18127 "If there are no additional arguments, then we enter a shell, either an "
18128 "interactive shell with a prompt (if the input is a terminal) or a non-"
18129 "interactive shell."
18130 msgstr ""
18131
18132 # type: textblock
18133 #: ../fish/guestfish.pod:414
18134 msgid ""
18135 "In either command line mode or non-interactive shell, the first command that "
18136 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18137 "prompt) if a command fails, you can continue to enter commands."
18138 msgstr ""
18139
18140 # type: =head1
18141 #: ../fish/guestfish.pod:419
18142 msgid "USING launch (OR run)"
18143 msgstr ""
18144
18145 # type: textblock
18146 #: ../fish/guestfish.pod:421
18147 msgid ""
18148 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18149 "then launch it, then mount any disks you need, and finally issue actions/"
18150 "commands.  So the general order of the day is:"
18151 msgstr ""
18152
18153 # type: textblock
18154 #: ../fish/guestfish.pod:429
18155 msgid "add or -a/--add"
18156 msgstr ""
18157
18158 # type: textblock
18159 #: ../fish/guestfish.pod:433
18160 msgid "launch (aka run)"
18161 msgstr ""
18162
18163 # type: textblock
18164 #: ../fish/guestfish.pod:437
18165 msgid "mount or -m/--mount"
18166 msgstr ""
18167
18168 # type: textblock
18169 #: ../fish/guestfish.pod:441
18170 msgid "any other commands"
18171 msgstr ""
18172
18173 # type: textblock
18174 #: ../fish/guestfish.pod:445
18175 msgid ""
18176 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18177 "guest before mounting or performing any other commands."
18178 msgstr ""
18179
18180 # type: textblock
18181 #: ../fish/guestfish.pod:448
18182 msgid ""
18183 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18184 "I<--new> options were given then C<run> is done automatically, simply "
18185 "because guestfish can't perform the action you asked for without doing this."
18186 msgstr ""
18187
18188 # type: =head1
18189 #: ../fish/guestfish.pod:453
18190 msgid "OPENING DISKS FOR READ AND WRITE"
18191 msgstr ""
18192
18193 # type: textblock
18194 #: ../fish/guestfish.pod:455
18195 msgid ""
18196 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
18197 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
18198 "open disk images read-only or for writing."
18199 msgstr ""
18200
18201 # type: textblock
18202 #: ../fish/guestfish.pod:459
18203 msgid ""
18204 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
18205 "disk images supplied on the command line for write.  To open a disk image "
18206 "read-only you have to do I<-a image --ro>."
18207 msgstr ""
18208
18209 # type: textblock
18210 #: ../fish/guestfish.pod:463
18211 msgid ""
18212 "This matters: If you accidentally open a live VM disk image writable then "
18213 "you will cause irreversible disk corruption."
18214 msgstr ""
18215
18216 # type: textblock
18217 #: ../fish/guestfish.pod:466
18218 msgid ""
18219 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
18220 "images will be opened read-only.  You will have to either specify "
18221 "I<guestfish --rw> or change a configuration file in order to get write "
18222 "access for disk images specified by those other command line options."
18223 msgstr ""
18224
18225 # type: textblock
18226 #: ../fish/guestfish.pod:471
18227 msgid ""
18228 "This version of guestfish has a I<--rw> option which does nothing (it is "
18229 "already the default).  However it is highly recommended that you use this "
18230 "option to indicate that guestfish needs write access, and to prepare your "
18231 "scripts for the day when this option will be required for write access."
18232 msgstr ""
18233
18234 # type: textblock
18235 #: ../fish/guestfish.pod:477
18236 msgid ""
18237 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18238 "other libguestfs program apart from guestfish and guestmount."
18239 msgstr ""
18240
18241 # type: =head1
18242 #: ../fish/guestfish.pod:480
18243 msgid "QUOTING"
18244 msgstr ""
18245
18246 # type: textblock
18247 #: ../fish/guestfish.pod:482
18248 msgid ""
18249 "You can quote ordinary parameters using either single or double quotes.  For "
18250 "example:"
18251 msgstr ""
18252
18253 # type: verbatim
18254 #: ../fish/guestfish.pod:485
18255 #, no-wrap
18256 msgid ""
18257 " add \"file with a space.img\"\n"
18258 "\n"
18259 msgstr ""
18260
18261 # type: verbatim
18262 #: ../fish/guestfish.pod:487
18263 #, no-wrap
18264 msgid ""
18265 " rm '/file name'\n"
18266 "\n"
18267 msgstr ""
18268
18269 # type: verbatim
18270 #: ../fish/guestfish.pod:489
18271 #, no-wrap
18272 msgid ""
18273 " rm '/\"'\n"
18274 "\n"
18275 msgstr ""
18276
18277 # type: textblock
18278 #: ../fish/guestfish.pod:491
18279 msgid ""
18280 "A few commands require a list of strings to be passed.  For these, use a "
18281 "whitespace-separated list, enclosed in quotes.  Strings containing "
18282 "whitespace to be passed through must be enclosed in single quotes.  A "
18283 "literal single quote must be escaped with a backslash."
18284 msgstr ""
18285
18286 # type: verbatim
18287 #: ../fish/guestfish.pod:496
18288 #, no-wrap
18289 msgid ""
18290 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18291 " command \"/bin/echo 'foo      bar'\"\n"
18292 " command \"/bin/echo \\'foo\\'\"\n"
18293 "\n"
18294 msgstr ""
18295
18296 # type: =head1
18297 #: ../fish/guestfish.pod:500
18298 msgid "OPTIONAL ARGUMENTS"
18299 msgstr ""
18300
18301 # type: textblock
18302 #: ../fish/guestfish.pod:502
18303 msgid ""
18304 "Some commands take optional arguments.  These arguments appear in this "
18305 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18306 msgstr ""
18307
18308 # type: verbatim
18309 #: ../fish/guestfish.pod:506
18310 #, no-wrap
18311 msgid ""
18312 " add-drive-opts filename\n"
18313 "\n"
18314 msgstr ""
18315
18316 # type: verbatim
18317 #: ../fish/guestfish.pod:508
18318 #, no-wrap
18319 msgid ""
18320 " add-drive-opts filename readonly:true\n"
18321 "\n"
18322 msgstr ""
18323
18324 # type: verbatim
18325 #: ../fish/guestfish.pod:510
18326 #, no-wrap
18327 msgid ""
18328 " add-drive-opts filename format:qcow2 readonly:false\n"
18329 "\n"
18330 msgstr ""
18331
18332 # type: textblock
18333 #: ../fish/guestfish.pod:512
18334 msgid ""
18335 "Each optional argument can appear at most once.  All optional arguments must "
18336 "appear after the required ones."
18337 msgstr ""
18338
18339 # type: =head1
18340 #: ../fish/guestfish.pod:515
18341 msgid "NUMBERS"
18342 msgstr ""
18343
18344 # type: textblock
18345 #: ../fish/guestfish.pod:517
18346 msgid ""
18347 "This section applies to all commands which can take integers as parameters."
18348 msgstr ""
18349
18350 # type: =head2
18351 #: ../fish/guestfish.pod:520
18352 msgid "SIZE SUFFIX"
18353 msgstr ""
18354
18355 # type: textblock
18356 #: ../fish/guestfish.pod:522
18357 msgid ""
18358 "When the command takes a parameter measured in bytes, you can use one of the "
18359 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18360 msgstr ""
18361
18362 # type: =item
18363 #: ../fish/guestfish.pod:528
18364 msgid "B<k> or B<K> or B<KiB>"
18365 msgstr ""
18366
18367 # type: textblock
18368 #: ../fish/guestfish.pod:530
18369 msgid "The size in kilobytes (multiplied by 1024)."
18370 msgstr ""
18371
18372 # type: =item
18373 #: ../fish/guestfish.pod:532
18374 msgid "B<KB>"
18375 msgstr ""
18376
18377 # type: textblock
18378 #: ../fish/guestfish.pod:534
18379 msgid "The size in SI 1000 byte units."
18380 msgstr ""
18381
18382 # type: =item
18383 #: ../fish/guestfish.pod:536
18384 msgid "B<M> or B<MiB>"
18385 msgstr ""
18386
18387 # type: textblock
18388 #: ../fish/guestfish.pod:538
18389 msgid "The size in megabytes (multiplied by 1048576)."
18390 msgstr ""
18391
18392 # type: =item
18393 #: ../fish/guestfish.pod:540
18394 msgid "B<MB>"
18395 msgstr ""
18396
18397 # type: textblock
18398 #: ../fish/guestfish.pod:542
18399 msgid "The size in SI 1000000 byte units."
18400 msgstr ""
18401
18402 # type: =item
18403 #: ../fish/guestfish.pod:544
18404 msgid "B<G> or B<GiB>"
18405 msgstr ""
18406
18407 # type: textblock
18408 #: ../fish/guestfish.pod:546
18409 msgid "The size in gigabytes (multiplied by 2**30)."
18410 msgstr ""
18411
18412 # type: =item
18413 #: ../fish/guestfish.pod:548
18414 msgid "B<GB>"
18415 msgstr ""
18416
18417 # type: textblock
18418 #: ../fish/guestfish.pod:550
18419 msgid "The size in SI 10**9 byte units."
18420 msgstr ""
18421
18422 # type: =item
18423 #: ../fish/guestfish.pod:552
18424 msgid "B<T> or B<TiB>"
18425 msgstr ""
18426
18427 # type: textblock
18428 #: ../fish/guestfish.pod:554
18429 msgid "The size in terabytes (multiplied by 2**40)."
18430 msgstr ""
18431
18432 # type: =item
18433 #: ../fish/guestfish.pod:556
18434 msgid "B<TB>"
18435 msgstr ""
18436
18437 # type: textblock
18438 #: ../fish/guestfish.pod:558
18439 msgid "The size in SI 10**12 byte units."
18440 msgstr ""
18441
18442 # type: =item
18443 #: ../fish/guestfish.pod:560
18444 msgid "B<P> or B<PiB>"
18445 msgstr ""
18446
18447 # type: textblock
18448 #: ../fish/guestfish.pod:562
18449 msgid "The size in petabytes (multiplied by 2**50)."
18450 msgstr ""
18451
18452 # type: =item
18453 #: ../fish/guestfish.pod:564
18454 msgid "B<PB>"
18455 msgstr ""
18456
18457 # type: textblock
18458 #: ../fish/guestfish.pod:566
18459 msgid "The size in SI 10**15 byte units."
18460 msgstr ""
18461
18462 # type: =item
18463 #: ../fish/guestfish.pod:568
18464 msgid "B<E> or B<EiB>"
18465 msgstr ""
18466
18467 # type: textblock
18468 #: ../fish/guestfish.pod:570
18469 msgid "The size in exabytes (multiplied by 2**60)."
18470 msgstr ""
18471
18472 # type: =item
18473 #: ../fish/guestfish.pod:572
18474 msgid "B<EB>"
18475 msgstr ""
18476
18477 # type: textblock
18478 #: ../fish/guestfish.pod:574
18479 msgid "The size in SI 10**18 byte units."
18480 msgstr ""
18481
18482 # type: =item
18483 #: ../fish/guestfish.pod:576
18484 msgid "B<Z> or B<ZiB>"
18485 msgstr ""
18486
18487 # type: textblock
18488 #: ../fish/guestfish.pod:578
18489 msgid "The size in zettabytes (multiplied by 2**70)."
18490 msgstr ""
18491
18492 # type: =item
18493 #: ../fish/guestfish.pod:580
18494 msgid "B<ZB>"
18495 msgstr ""
18496
18497 # type: textblock
18498 #: ../fish/guestfish.pod:582
18499 msgid "The size in SI 10**21 byte units."
18500 msgstr ""
18501
18502 # type: =item
18503 #: ../fish/guestfish.pod:584
18504 msgid "B<Y> or B<YiB>"
18505 msgstr ""
18506
18507 # type: textblock
18508 #: ../fish/guestfish.pod:586
18509 msgid "The size in yottabytes (multiplied by 2**80)."
18510 msgstr ""
18511
18512 # type: =item
18513 #: ../fish/guestfish.pod:588
18514 msgid "B<YB>"
18515 msgstr ""
18516
18517 # type: textblock
18518 #: ../fish/guestfish.pod:590
18519 msgid "The size in SI 10**24 byte units."
18520 msgstr ""
18521
18522 # type: verbatim
18523 #: ../fish/guestfish.pod:596
18524 #, no-wrap
18525 msgid ""
18526 " truncate-size /file 1G\n"
18527 "\n"
18528 msgstr ""
18529
18530 # type: textblock
18531 #: ../fish/guestfish.pod:598
18532 msgid "would truncate the file to 1 gigabyte."
18533 msgstr ""
18534
18535 # type: textblock
18536 #: ../fish/guestfish.pod:600
18537 msgid ""
18538 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18539 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18540 "suffix will probably not do what you expect."
18541 msgstr ""
18542
18543 # type: =head2
18544 #: ../fish/guestfish.pod:604
18545 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18546 msgstr ""
18547
18548 # type: textblock
18549 #: ../fish/guestfish.pod:606
18550 msgid ""
18551 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18552 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18553 msgstr ""
18554
18555 # type: verbatim
18556 #: ../fish/guestfish.pod:609
18557 #, no-wrap
18558 msgid ""
18559 " 1234      decimal number 1234\n"
18560 " 02322     octal number, equivalent to decimal 1234\n"
18561 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18562 "\n"
18563 msgstr ""
18564
18565 # type: textblock
18566 #: ../fish/guestfish.pod:613
18567 msgid ""
18568 "When using the C<chmod> command, you almost always want to specify an octal "
18569 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18570 "L<chmod(1)> program):"
18571 msgstr ""
18572
18573 # type: verbatim
18574 #: ../fish/guestfish.pod:617
18575 #, no-wrap
18576 msgid ""
18577 " chmod 0777 /public  # OK\n"
18578 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18579 "\n"
18580 msgstr ""
18581
18582 # type: textblock
18583 #: ../fish/guestfish.pod:620
18584 msgid ""
18585 "Commands that return numbers usually print them in decimal, but some "
18586 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18587 "octal, preceeded by C<0>)."
18588 msgstr ""
18589
18590 # type: =head1
18591 #: ../fish/guestfish.pod:624
18592 msgid "WILDCARDS AND GLOBBING"
18593 msgstr ""
18594
18595 # type: textblock
18596 #: ../fish/guestfish.pod:626
18597 msgid ""
18598 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18599 "(globbing) by default.  So for example the following will not do what you "
18600 "expect:"
18601 msgstr ""
18602
18603 # type: verbatim
18604 #: ../fish/guestfish.pod:630
18605 #, no-wrap
18606 msgid ""
18607 " rm-rf /home/*\n"
18608 "\n"
18609 msgstr ""
18610
18611 # type: textblock
18612 #: ../fish/guestfish.pod:632
18613 msgid ""
18614 "Assuming you don't have a directory called literally C</home/*> then the "
18615 "above command will return an error."
18616 msgstr ""
18617
18618 # type: textblock
18619 #: ../fish/guestfish.pod:635
18620 msgid "To perform wildcard expansion, use the C<glob> command."
18621 msgstr ""
18622
18623 # type: verbatim
18624 #: ../fish/guestfish.pod:637
18625 #, no-wrap
18626 msgid ""
18627 " glob rm-rf /home/*\n"
18628 "\n"
18629 msgstr ""
18630
18631 # type: textblock
18632 #: ../fish/guestfish.pod:639
18633 msgid ""
18634 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18635 "many times), equivalent to:"
18636 msgstr ""
18637
18638 # type: verbatim
18639 #: ../fish/guestfish.pod:642
18640 #, no-wrap
18641 msgid ""
18642 " rm-rf /home/jim\n"
18643 " rm-rf /home/joe\n"
18644 " rm-rf /home/mary\n"
18645 "\n"
18646 msgstr ""
18647
18648 # type: textblock
18649 #: ../fish/guestfish.pod:646
18650 msgid "C<glob> only works on simple guest paths and not on device names."
18651 msgstr ""
18652
18653 # type: textblock
18654 #: ../fish/guestfish.pod:648
18655 msgid ""
18656 "If you have several parameters, each containing a wildcard, then glob will "
18657 "perform a Cartesian product."
18658 msgstr ""
18659
18660 # type: =head1
18661 #: ../fish/guestfish.pod:651
18662 msgid "COMMENTS"
18663 msgstr ""
18664
18665 # type: textblock
18666 #: ../fish/guestfish.pod:653
18667 msgid ""
18668 "Any line which starts with a I<#> character is treated as a comment and "
18669 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18670 "a command.  For example:"
18671 msgstr ""
18672
18673 # type: verbatim
18674 #: ../fish/guestfish.pod:657
18675 #, no-wrap
18676 msgid ""
18677 " # this is a comment\n"
18678 "         # this is a comment\n"
18679 " foo # NOT a comment\n"
18680 "\n"
18681 msgstr ""
18682
18683 # type: textblock
18684 #: ../fish/guestfish.pod:661
18685 msgid "Blank lines are also ignored."
18686 msgstr ""
18687
18688 # type: =head1
18689 #: ../fish/guestfish.pod:663
18690 msgid "RUNNING COMMANDS LOCALLY"
18691 msgstr ""
18692
18693 # type: textblock
18694 #: ../fish/guestfish.pod:665
18695 msgid ""
18696 "Any line which starts with a I<!> character is treated as a command sent to "
18697 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18698 msgstr ""
18699
18700 # type: verbatim
18701 #: ../fish/guestfish.pod:669
18702 #, no-wrap
18703 msgid ""
18704 " !mkdir local\n"
18705 " tgz-out /remote local/remote-data.tar.gz\n"
18706 "\n"
18707 msgstr ""
18708
18709 # type: textblock
18710 #: ../fish/guestfish.pod:672
18711 msgid ""
18712 "will create a directory C<local> on the host, and then export the contents "
18713 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18714 "(See C<tgz-out>)."
18715 msgstr ""
18716
18717 # type: textblock
18718 #: ../fish/guestfish.pod:676
18719 msgid ""
18720 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18721 "effect, due to the way that subprocesses work in Unix."
18722 msgstr ""
18723
18724 # type: =head1
18725 #: ../fish/guestfish.pod:679
18726 msgid "PIPES"
18727 msgstr ""
18728
18729 # type: textblock
18730 #: ../fish/guestfish.pod:681
18731 msgid ""
18732 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18733 "command (a guestfish command) to the second command (any host command).  For "
18734 "example:"
18735 msgstr ""
18736
18737 # type: verbatim
18738 #: ../fish/guestfish.pod:685
18739 #, no-wrap
18740 msgid ""
18741 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18742 "\n"
18743 msgstr ""
18744
18745 # type: textblock
18746 #: ../fish/guestfish.pod:687
18747 msgid ""
18748 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18749 "program).  The above command would list all accounts in the guest filesystem "
18750 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18751 msgstr ""
18752
18753 # type: verbatim
18754 #: ../fish/guestfish.pod:692
18755 #, no-wrap
18756 msgid ""
18757 " hexdump /bin/ls | head\n"
18758 " list-devices | tail -1\n"
18759 " tgz-out / - | tar ztf -\n"
18760 "\n"
18761 msgstr ""
18762
18763 # type: textblock
18764 #: ../fish/guestfish.pod:696
18765 msgid ""
18766 "The space before the pipe symbol is required, any space after the pipe "
18767 "symbol is optional.  Everything after the pipe symbol is just passed "
18768 "straight to the host shell, so it can contain redirections, globs and "
18769 "anything else that makes sense on the host side."
18770 msgstr ""
18771
18772 # type: textblock
18773 #: ../fish/guestfish.pod:701
18774 msgid ""
18775 "To use a literal argument which begins with a pipe symbol, you have to quote "
18776 "it, eg:"
18777 msgstr ""
18778
18779 # type: verbatim
18780 #: ../fish/guestfish.pod:704
18781 #, no-wrap
18782 msgid ""
18783 " echo \"|\"\n"
18784 "\n"
18785 msgstr ""
18786
18787 # type: =head1
18788 #: ../fish/guestfish.pod:706
18789 msgid "HOME DIRECTORIES"
18790 msgstr ""
18791
18792 # type: textblock
18793 #: ../fish/guestfish.pod:708
18794 msgid ""
18795 "If a parameter starts with the character C<~> then the tilde may be expanded "
18796 "as a home directory path (either C<~> for the current user's home directory, "
18797 "or C<~user> for another user)."
18798 msgstr ""
18799
18800 # type: textblock
18801 #: ../fish/guestfish.pod:712
18802 msgid ""
18803 "Note that home directory expansion happens for users known I<on the host>, "
18804 "not in the guest filesystem."
18805 msgstr ""
18806
18807 # type: textblock
18808 #: ../fish/guestfish.pod:715
18809 msgid ""
18810 "To use a literal argument which begins with a tilde, you have to quote it, "
18811 "eg:"
18812 msgstr ""
18813
18814 # type: verbatim
18815 #: ../fish/guestfish.pod:718
18816 #, no-wrap
18817 msgid ""
18818 " echo \"~\"\n"
18819 "\n"
18820 msgstr ""
18821
18822 # type: textblock
18823 #: ../fish/guestfish.pod:722
18824 msgid ""
18825 "Libguestfs has some support for Linux guests encrypted according to the "
18826 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18827 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18828 "LUKS is supported."
18829 msgstr ""
18830
18831 # type: textblock
18832 #: ../fish/guestfish.pod:727
18833 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18834 msgstr ""
18835
18836 # type: verbatim
18837 #: ../fish/guestfish.pod:729
18838 #, no-wrap
18839 msgid ""
18840 " ><fs> vfs-type /dev/sda2\n"
18841 " crypto_LUKS\n"
18842 "\n"
18843 msgstr ""
18844
18845 # type: textblock
18846 #: ../fish/guestfish.pod:732
18847 msgid ""
18848 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18849 "device called C</dev/mapper/luksdev>."
18850 msgstr ""
18851
18852 # type: verbatim
18853 #: ../fish/guestfish.pod:735
18854 #, no-wrap
18855 msgid ""
18856 " ><fs> luks-open /dev/sda2 luksdev\n"
18857 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18858 "\n"
18859 msgstr ""
18860
18861 # type: textblock
18862 #: ../fish/guestfish.pod:738
18863 msgid ""
18864 "Finally you have to tell LVM to scan for volume groups on the newly created "
18865 "mapper device:"
18866 msgstr ""
18867
18868 # type: verbatim
18869 #: ../fish/guestfish.pod:741
18870 #, no-wrap
18871 msgid ""
18872 " vgscan\n"
18873 " vg-activate-all true\n"
18874 "\n"
18875 msgstr ""
18876
18877 # type: textblock
18878 #: ../fish/guestfish.pod:744
18879 msgid "The logical volume(s) can now be mounted in the usual way."
18880 msgstr ""
18881
18882 # type: textblock
18883 #: ../fish/guestfish.pod:746
18884 msgid ""
18885 "Before closing a LUKS device you must unmount any logical volumes on it and "
18886 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18887 "one.  Then you can close the mapper device:"
18888 msgstr ""
18889
18890 # type: verbatim
18891 #: ../fish/guestfish.pod:750
18892 #, no-wrap
18893 msgid ""
18894 " vg-activate false /dev/VG\n"
18895 " luks-close /dev/mapper/luksdev\n"
18896 "\n"
18897 msgstr ""
18898
18899 # type: =head1
18900 #: ../fish/guestfish.pod:753
18901 msgid "WINDOWS PATHS"
18902 msgstr ""
18903
18904 # type: textblock
18905 #: ../fish/guestfish.pod:755
18906 msgid ""
18907 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18908 "(with some limitations).  The following commands are equivalent:"
18909 msgstr ""
18910
18911 # type: verbatim
18912 #: ../fish/guestfish.pod:758
18913 #, no-wrap
18914 msgid ""
18915 " file /WINDOWS/system32/config/system.LOG\n"
18916 "\n"
18917 msgstr ""
18918
18919 # type: verbatim
18920 #: ../fish/guestfish.pod:760
18921 #, no-wrap
18922 msgid ""
18923 " file win:/windows/system32/config/system.log\n"
18924 "\n"
18925 msgstr ""
18926
18927 # type: verbatim
18928 #: ../fish/guestfish.pod:762
18929 #, no-wrap
18930 msgid ""
18931 " file win:\\windows\\system32\\config\\system.log\n"
18932 "\n"
18933 msgstr ""
18934
18935 # type: verbatim
18936 #: ../fish/guestfish.pod:764
18937 #, no-wrap
18938 msgid ""
18939 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18940 "\n"
18941 msgstr ""
18942
18943 # type: textblock
18944 #: ../fish/guestfish.pod:766
18945 msgid ""
18946 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18947 "handles case insensitivity like Windows would.  This only works in argument "
18948 "positions that expect a path."
18949 msgstr ""
18950
18951 # type: =head1
18952 #: ../fish/guestfish.pod:770
18953 msgid "UPLOADING AND DOWNLOADING FILES"
18954 msgstr ""
18955
18956 # type: textblock
18957 #: ../fish/guestfish.pod:772
18958 msgid ""
18959 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18960 "others which upload from or download to a local file, you can use the "
18961 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18962 msgstr ""
18963
18964 # type: verbatim
18965 #: ../fish/guestfish.pod:776
18966 #, no-wrap
18967 msgid ""
18968 " upload - /foo\n"
18969 "\n"
18970 msgstr ""
18971
18972 # type: textblock
18973 #: ../fish/guestfish.pod:778
18974 msgid ""
18975 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18976 msgstr ""
18977
18978 # type: verbatim
18979 #: ../fish/guestfish.pod:781
18980 #, no-wrap
18981 msgid ""
18982 " tar-out /etc - | tar tf -\n"
18983 "\n"
18984 msgstr ""
18985
18986 # type: textblock
18987 #: ../fish/guestfish.pod:783
18988 msgid ""
18989 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18990 "command (see L</PIPES>)."
18991 msgstr ""
18992
18993 # type: textblock
18994 #: ../fish/guestfish.pod:786
18995 msgid ""
18996 "When using C<-> to read from stdin, the input is read up to the end of "
18997 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18998 "some arbitrary end marker:"
18999 msgstr ""
19000
19001 # type: verbatim
19002 #: ../fish/guestfish.pod:790
19003 #, no-wrap
19004 msgid ""
19005 " upload -<<END /foo\n"
19006 " input line 1\n"
19007 " input line 2\n"
19008 " input line 3\n"
19009 " END\n"
19010 "\n"
19011 msgstr ""
19012
19013 # type: textblock
19014 #: ../fish/guestfish.pod:796
19015 msgid ""
19016 "Any string of characters can be used instead of C<END>.  The end marker must "
19017 "appear on a line of its own, without any preceeding or following characters "
19018 "(not even spaces)."
19019 msgstr ""
19020
19021 # type: textblock
19022 #: ../fish/guestfish.pod:800
19023 msgid ""
19024 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19025 "upload local files (so-called \"FileIn\" parameters in the generator)."
19026 msgstr ""
19027
19028 # type: =head1
19029 #: ../fish/guestfish.pod:803
19030 msgid "EXIT ON ERROR BEHAVIOUR"
19031 msgstr ""
19032
19033 # type: textblock
19034 #: ../fish/guestfish.pod:805
19035 msgid ""
19036 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19037 "taking commands from a human over a tty), and will exit on the first error "
19038 "in non-interactive mode (scripts, commands given on the command line)."
19039 msgstr ""
19040
19041 # type: textblock
19042 #: ../fish/guestfish.pod:810
19043 msgid ""
19044 "If you prefix a command with a I<-> character, then that command will not "
19045 "cause guestfish to exit, even if that (one) command returns an error."
19046 msgstr ""
19047
19048 # type: =head1
19049 #: ../fish/guestfish.pod:814
19050 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19051 msgstr ""
19052
19053 # type: textblock
19054 #: ../fish/guestfish.pod:816
19055 msgid ""
19056 "Guestfish can be remote-controlled over a socket.  This is useful "
19057 "particularly in shell scripts where you want to make several different "
19058 "changes to a filesystem, but you don't want the overhead of starting up a "
19059 "guestfish process each time."
19060 msgstr ""
19061
19062 # type: textblock
19063 #: ../fish/guestfish.pod:821
19064 msgid "Start a guestfish server process using:"
19065 msgstr ""
19066
19067 # type: verbatim
19068 #: ../fish/guestfish.pod:823
19069 #, no-wrap
19070 msgid ""
19071 " eval \"`guestfish --listen`\"\n"
19072 "\n"
19073 msgstr ""
19074
19075 # type: textblock
19076 #: ../fish/guestfish.pod:825
19077 msgid "and then send it commands by doing:"
19078 msgstr ""
19079
19080 # type: verbatim
19081 #: ../fish/guestfish.pod:827
19082 #, no-wrap
19083 msgid ""
19084 " guestfish --remote cmd [...]\n"
19085 "\n"
19086 msgstr ""
19087
19088 # type: textblock
19089 #: ../fish/guestfish.pod:829
19090 msgid "To cause the server to exit, send it the exit command:"
19091 msgstr ""
19092
19093 # type: verbatim
19094 #: ../fish/guestfish.pod:831
19095 #, no-wrap
19096 msgid ""
19097 " guestfish --remote exit\n"
19098 "\n"
19099 msgstr ""
19100
19101 # type: textblock
19102 #: ../fish/guestfish.pod:833
19103 msgid ""
19104 "Note that the server will normally exit if there is an error in a command.  "
19105 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19106 "BEHAVIOUR>."
19107 msgstr ""
19108
19109 # type: =head2
19110 #: ../fish/guestfish.pod:837
19111 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19112 msgstr ""
19113
19114 # type: textblock
19115 #: ../fish/guestfish.pod:839
19116 msgid ""
19117 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19118 "is how the I<--remote> option knows where to send the commands.  You can "
19119 "have several guestfish listener processes running using:"
19120 msgstr ""
19121
19122 # type: verbatim
19123 #: ../fish/guestfish.pod:843
19124 #, no-wrap
19125 msgid ""
19126 " eval \"`guestfish --listen`\"\n"
19127 " pid1=$GUESTFISH_PID\n"
19128 " eval \"`guestfish --listen`\"\n"
19129 " pid2=$GUESTFISH_PID\n"
19130 " ...\n"
19131 " guestfish --remote=$pid1 cmd\n"
19132 " guestfish --remote=$pid2 cmd\n"
19133 "\n"
19134 msgstr ""
19135
19136 # type: =head2
19137 #: ../fish/guestfish.pod:851
19138 msgid "REMOTE CONTROL AND CSH"
19139 msgstr ""
19140
19141 # type: textblock
19142 #: ../fish/guestfish.pod:853
19143 msgid ""
19144 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19145 "option:"
19146 msgstr ""
19147
19148 # type: verbatim
19149 #: ../fish/guestfish.pod:856
19150 #, no-wrap
19151 msgid ""
19152 " eval \"`guestfish --listen --csh`\"\n"
19153 "\n"
19154 msgstr ""
19155
19156 # type: =head2
19157 #: ../fish/guestfish.pod:858
19158 msgid "REMOTE CONTROL DETAILS"
19159 msgstr ""
19160
19161 # type: textblock
19162 #: ../fish/guestfish.pod:860
19163 msgid ""
19164 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19165 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19166 "and C<$PID> is the process ID of the server."
19167 msgstr ""
19168
19169 # type: textblock
19170 #: ../fish/guestfish.pod:864
19171 msgid "Guestfish client and server versions must match exactly."
19172 msgstr ""
19173
19174 # type: =head1
19175 #: ../fish/guestfish.pod:866
19176 msgid "PREPARED DISK IMAGES"
19177 msgstr ""
19178
19179 # type: textblock
19180 #: ../fish/guestfish.pod:868
19181 msgid ""
19182 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19183 "preformatted disk images that guestfish can make for you to save typing.  "
19184 "This is particularly useful for testing purposes.  This option is used "
19185 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19186 "can be mixed with I<-a>)."
19187 msgstr ""
19188
19189 # type: textblock
19190 #: ../fish/guestfish.pod:874
19191 msgid ""
19192 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19193 "the second and so on.  Existing files in the current directory are "
19194 "I<overwritten>."
19195 msgstr ""
19196
19197 # type: textblock
19198 #: ../fish/guestfish.pod:878
19199 msgid ""
19200 "The type briefly describes how the disk should be sized, partitioned, how "
19201 "filesystem(s) should be created, and how content should be added.  "
19202 "Optionally the type can be followed by extra parameters, separated by C<:> "
19203 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19204 "allocated disk, containing a single partition, with the partition formatted "
19205 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19206 "disk instead."
19207 msgstr ""
19208
19209 # type: textblock
19210 #: ../fish/guestfish.pod:886
19211 msgid "To list the available types and any extra parameters they take, run:"
19212 msgstr ""
19213
19214 # type: textblock
19215 #: ../fish/guestfish.pod:890
19216 msgid ""
19217 "Note that the prepared filesystem is not mounted.  You would usually have to "
19218 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19219 msgstr ""
19220
19221 # type: textblock
19222 #: ../fish/guestfish.pod:894
19223 msgid ""
19224 "If any I<-N> or I<--new> options are given, the guest is automatically "
19225 "launched."
19226 msgstr ""
19227
19228 # type: textblock
19229 #: ../fish/guestfish.pod:899
19230 msgid "Create a 100MB disk with an ext4-formatted partition:"
19231 msgstr ""
19232
19233 # type: verbatim
19234 #: ../fish/guestfish.pod:901
19235 #, no-wrap
19236 msgid ""
19237 " guestfish -N fs:ext4\n"
19238 "\n"
19239 msgstr ""
19240
19241 # type: textblock
19242 #: ../fish/guestfish.pod:903
19243 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19244 msgstr ""
19245
19246 # type: verbatim
19247 #: ../fish/guestfish.pod:905
19248 #, no-wrap
19249 msgid ""
19250 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19251 "\n"
19252 msgstr ""
19253
19254 # type: textblock
19255 #: ../fish/guestfish.pod:907
19256 msgid "Create a blank 200MB disk:"
19257 msgstr ""
19258
19259 # type: verbatim
19260 #: ../fish/guestfish.pod:909
19261 #, no-wrap
19262 msgid ""
19263 " guestfish -N disk:200M\n"
19264 "\n"
19265 msgstr ""
19266
19267 # type: =head1
19268 #: ../fish/guestfish.pod:911
19269 msgid "PROGRESS BARS"
19270 msgstr ""
19271
19272 # type: textblock
19273 #: ../fish/guestfish.pod:913
19274 msgid ""
19275 "Some (not all) long-running commands send progress notification messages as "
19276 "they are running.  Guestfish turns these messages into progress bars."
19277 msgstr ""
19278
19279 # type: textblock
19280 #: ../fish/guestfish.pod:917
19281 msgid ""
19282 "When a command that supports progress bars takes longer than two seconds to "
19283 "run, and if progress bars are enabled, then you will see one appearing below "
19284 "the command:"
19285 msgstr ""
19286
19287 # type: verbatim
19288 #: ../fish/guestfish.pod:921
19289 #, no-wrap
19290 msgid ""
19291 " ><fs> copy-size /large-file /another-file 2048M\n"
19292 " / 10% [#####-----------------------------------------] 00:30\n"
19293 "\n"
19294 msgstr ""
19295
19296 # type: textblock
19297 #: ../fish/guestfish.pod:924
19298 msgid ""
19299 "The spinner on the left hand side moves round once for every progress "
19300 "notification received from the backend.  This is a (reasonably) golden "
19301 "assurance that the command is \"doing something\" even if the progress bar "
19302 "is not moving, because the command is able to send the progress "
19303 "notifications.  When the bar reaches 100% and the command finishes, the "
19304 "spinner disappears."
19305 msgstr ""
19306
19307 # type: textblock
19308 #: ../fish/guestfish.pod:931
19309 msgid ""
19310 "Progress bars are enabled by default when guestfish is used interactively.  "
19311 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19312 "and you can disable them completely using I<--no-progress-bars>."
19313 msgstr ""
19314
19315 # type: =head1
19316 #: ../fish/guestfish.pod:936
19317 msgid "GUESTFISH COMMANDS"
19318 msgstr ""
19319
19320 # type: textblock
19321 #: ../fish/guestfish.pod:938
19322 msgid ""
19323 "The commands in this section are guestfish convenience commands, in other "
19324 "words, they are not part of the L<guestfs(3)> API."
19325 msgstr ""
19326
19327 # type: =head2
19328 #: ../fish/guestfish.pod:941
19329 msgid "help"
19330 msgstr ""
19331
19332 # type: verbatim
19333 #: ../fish/guestfish.pod:943
19334 #, no-wrap
19335 msgid ""
19336 " help\n"
19337 " help cmd\n"
19338 "\n"
19339 msgstr ""
19340
19341 # type: textblock
19342 #: ../fish/guestfish.pod:946
19343 msgid "Without any parameter, this provides general help."
19344 msgstr ""
19345
19346 # type: textblock
19347 #: ../fish/guestfish.pod:948
19348 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19349 msgstr ""
19350
19351 # type: =head2
19352 #: ../fish/guestfish.pod:950
19353 msgid "quit | exit"
19354 msgstr ""
19355
19356 # type: textblock
19357 #: ../fish/guestfish.pod:952
19358 msgid "This exits guestfish.  You can also use C<^D> key."
19359 msgstr ""
19360
19361 # type: textblock
19362 #: ../fish/guestfish.pod:954
19363 msgid "@FISH_COMMANDS@"
19364 msgstr ""
19365
19366 # type: =head1
19367 #: ../fish/guestfish.pod:956
19368 msgid "COMMANDS"
19369 msgstr ""
19370
19371 # type: =head1
19372 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
19373 msgid "EXIT CODE"
19374 msgstr ""
19375
19376 # type: textblock
19377 #: ../fish/guestfish.pod:962
19378 msgid ""
19379 "guestfish returns 0 if the commands completed without error, or 1 if there "
19380 "was an error."
19381 msgstr ""
19382
19383 # type: =item
19384 #: ../fish/guestfish.pod:969
19385 msgid "EDITOR"
19386 msgstr ""
19387
19388 # type: textblock
19389 #: ../fish/guestfish.pod:971
19390 msgid ""
19391 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19392 "C<vi>."
19393 msgstr ""
19394
19395 # type: =item
19396 #: ../fish/guestfish.pod:974
19397 msgid "GUESTFISH_PID"
19398 msgstr ""
19399
19400 # type: textblock
19401 #: ../fish/guestfish.pod:976
19402 msgid ""
19403 "Used with the I<--remote> option to specify the remote guestfish process to "
19404 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19405 msgstr ""
19406
19407 # type: =item
19408 #: ../fish/guestfish.pod:980
19409 msgid "HEXEDITOR"
19410 msgstr ""
19411
19412 # type: textblock
19413 #: ../fish/guestfish.pod:982
19414 msgid ""
19415 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19416 "not specified, the external L<hexedit(1)> program is used."
19417 msgstr ""
19418
19419 # type: =item
19420 #: ../fish/guestfish.pod:986
19421 msgid "HOME"
19422 msgstr ""
19423
19424 # type: textblock
19425 #: ../fish/guestfish.pod:988
19426 msgid ""
19427 "If compiled with GNU readline support, various files in the home directory "
19428 "can be used.  See L</FILES>."
19429 msgstr ""
19430
19431 # type: textblock
19432 #: ../fish/guestfish.pod:997
19433 msgid ""
19434 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19435 "effect as using the B<-v> option."
19436 msgstr ""
19437
19438 # type: textblock
19439 #: ../fish/guestfish.pod:1009
19440 msgid ""
19441 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19442 "the discussion of paths in L<guestfs(3)>."
19443 msgstr ""
19444
19445 # type: textblock
19446 #: ../fish/guestfish.pod:1020
19447 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19448 msgstr ""
19449
19450 # type: =item
19451 #: ../fish/guestfish.pod:1022
19452 msgid "PAGER"
19453 msgstr ""
19454
19455 # type: textblock
19456 #: ../fish/guestfish.pod:1024
19457 msgid ""
19458 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19459 "C<more>."
19460 msgstr ""
19461
19462 # type: =head1
19463 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
19464 msgid "FILES"
19465 msgstr ""
19466
19467 # type: =item
19468 #: ../fish/guestfish.pod:1043
19469 msgid "$HOME/.guestfish"
19470 msgstr ""
19471
19472 # type: textblock
19473 #: ../fish/guestfish.pod:1045
19474 msgid ""
19475 "If compiled with GNU readline support, then the command history is saved in "
19476 "this file."
19477 msgstr ""
19478
19479 # type: =item
19480 #: ../fish/guestfish.pod:1048
19481 msgid "$HOME/.inputrc"
19482 msgstr ""
19483
19484 # type: =item
19485 #: ../fish/guestfish.pod:1050
19486 msgid "/etc/inputrc"
19487 msgstr ""
19488
19489 # type: textblock
19490 #: ../fish/guestfish.pod:1052
19491 msgid ""
19492 "If compiled with GNU readline support, then these files can be used to "
19493 "configure readline.  For further information, please see L<readline(3)/"
19494 "INITIALIZATION FILE>."
19495 msgstr ""
19496
19497 # type: textblock
19498 #: ../fish/guestfish.pod:1056
19499 msgid "To write rules which only apply to guestfish, use:"
19500 msgstr ""
19501
19502 # type: verbatim
19503 #: ../fish/guestfish.pod:1058
19504 #, no-wrap
19505 msgid ""
19506 " $if guestfish\n"
19507 " ...\n"
19508 " $endif\n"
19509 "\n"
19510 msgstr ""
19511
19512 # type: textblock
19513 #: ../fish/guestfish.pod:1062
19514 msgid ""
19515 "Variables that you can set in inputrc that change the behaviour of guestfish "
19516 "in useful ways include:"
19517 msgstr ""
19518
19519 # type: =item
19520 #: ../fish/guestfish.pod:1067
19521 msgid "completion-ignore-case (default: on)"
19522 msgstr ""
19523
19524 # type: textblock
19525 #: ../fish/guestfish.pod:1069
19526 msgid ""
19527 "By default, guestfish will ignore case when tab-completing paths on the "
19528 "disk.  Use:"
19529 msgstr ""
19530
19531 # type: verbatim
19532 #: ../fish/guestfish.pod:1072
19533 #, no-wrap
19534 msgid ""
19535 " set completion-ignore-case off\n"
19536 "\n"
19537 msgstr ""
19538
19539 # type: textblock
19540 #: ../fish/guestfish.pod:1074
19541 msgid "to make guestfish case sensitive."
19542 msgstr ""
19543
19544 # type: =item
19545 #: ../fish/guestfish.pod:1078
19546 msgid "test1.img"
19547 msgstr ""
19548
19549 # type: =item
19550 #: ../fish/guestfish.pod:1080
19551 msgid "test2.img (etc)"
19552 msgstr ""
19553
19554 # type: textblock
19555 #: ../fish/guestfish.pod:1082
19556 msgid ""
19557 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19558 "will be created in the file C<test1.img> in the current directory.  The "
19559 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19560 "the same name will be overwritten."
19561 msgstr ""
19562
19563 # type: textblock
19564 #: ../fish/guestfish.pod:1091
19565 msgid ""
19566 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19567 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19568 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19569 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19570 "L<hexedit(1)>."
19571 msgstr ""
19572
19573 # type: textblock
19574 #: ../fish/guestfish.pod:1117 ../test-tool/libguestfs-test-tool.pod:124
19575 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19576 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1512
19577 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300
19578 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
19579 msgid ""
19580 "This program is free software; you can redistribute it and/or modify it "
19581 "under the terms of the GNU General Public License as published by the Free "
19582 "Software Foundation; either version 2 of the License, or (at your option) "
19583 "any later version."
19584 msgstr ""
19585
19586 # type: textblock
19587 #: ../fish/guestfish.pod:1122 ../test-tool/libguestfs-test-tool.pod:129
19588 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19589 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1517
19590 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305
19591 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
19592 msgid ""
19593 "This program is distributed in the hope that it will be useful, but WITHOUT "
19594 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19595 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19596 "more details."
19597 msgstr ""
19598
19599 # type: textblock
19600 #: ../fish/guestfish.pod:1127 ../test-tool/libguestfs-test-tool.pod:134
19601 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19602 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1522
19603 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310
19604 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
19605 msgid ""
19606 "You should have received a copy of the GNU General Public License along with "
19607 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19608 "Ave, Cambridge, MA 02139, USA."
19609 msgstr ""
19610
19611 # type: =head2
19612 #: ../fish/guestfish-actions.pod:1
19613 msgid "add-cdrom"
19614 msgstr ""
19615
19616 # type: verbatim
19617 #: ../fish/guestfish-actions.pod:3
19618 #, no-wrap
19619 msgid ""
19620 " add-cdrom filename\n"
19621 "\n"
19622 msgstr ""
19623
19624 # type: textblock
19625 #: ../fish/guestfish-actions.pod:15
19626 msgid ""
19627 "This call checks for the existence of C<filename>.  This stops you from "
19628 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19629 "and C<http:> URLs.  To specify those, use the general L</config> call "
19630 "instead."
19631 msgstr ""
19632
19633 # type: textblock
19634 #: ../fish/guestfish-actions.pod:22
19635 msgid ""
19636 "If you just want to add an ISO file (often you use this as an efficient way "
19637 "to transfer large files into the guest), then you should probably use L</add-"
19638 "drive-ro> instead."
19639 msgstr ""
19640
19641 # type: =head2
19642 #: ../fish/guestfish-actions.pod:35
19643 msgid "add-domain"
19644 msgstr ""
19645
19646 # type: =head2
19647 #: ../fish/guestfish-actions.pod:37
19648 msgid "domain"
19649 msgstr ""
19650
19651 # type: verbatim
19652 #: ../fish/guestfish-actions.pod:39
19653 #, no-wrap
19654 msgid ""
19655 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19656 "\n"
19657 msgstr ""
19658
19659 # type: textblock
19660 #: ../fish/guestfish-actions.pod:41
19661 msgid ""
19662 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19663 "It works by connecting to libvirt, requesting the domain and domain XML from "
19664 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19665 msgstr ""
19666
19667 # type: textblock
19668 #: ../fish/guestfish-actions.pod:58
19669 msgid ""
19670 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19671 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19672 "libvirt URI (or one set through an environment variable, see the libvirt "
19673 "documentation for full details).  If you are using the C API directly then "
19674 "it is more flexible to create the libvirt connection object yourself, get "
19675 "the domain object, and call L</add-libvirt-dom>."
19676 msgstr ""
19677
19678 # type: textblock
19679 #: ../fish/guestfish-actions.pod:66
19680 msgid ""
19681 "The other optional parameters are passed directly through to L</add-drive-"
19682 "opts>."
19683 msgstr ""
19684
19685 # type: textblock
19686 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19687 #: ../fish/guestfish-actions.pod:2844
19688 msgid ""
19689 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19690 msgstr ""
19691
19692 # type: =head2
19693 #: ../fish/guestfish-actions.pod:71
19694 msgid "add-drive"
19695 msgstr ""
19696
19697 # type: verbatim
19698 #: ../fish/guestfish-actions.pod:73
19699 #, no-wrap
19700 msgid ""
19701 " add-drive filename\n"
19702 "\n"
19703 msgstr ""
19704
19705 # type: textblock
19706 #: ../fish/guestfish-actions.pod:75
19707 msgid ""
19708 "This function is the equivalent of calling L</add-drive-opts> with no "
19709 "optional parameters, so the disk is added writable, with the format being "
19710 "detected automatically."
19711 msgstr ""
19712
19713 # type: textblock
19714 #: ../fish/guestfish-actions.pod:79
19715 msgid ""
19716 "Automatic detection of the format opens you up to a potential security hole "
19717 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19718 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19719 "you should think about replacing calls to this function with calls to L</add-"
19720 "drive-opts>, and specifying the format."
19721 msgstr ""
19722
19723 # type: =head2
19724 #: ../fish/guestfish-actions.pod:86
19725 msgid "add-drive-opts"
19726 msgstr ""
19727
19728 # type: =head2
19729 #: ../fish/guestfish-actions.pod:88
19730 msgid "add"
19731 msgstr ""
19732
19733 # type: verbatim
19734 #: ../fish/guestfish-actions.pod:90
19735 #, no-wrap
19736 msgid ""
19737 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19738 "\n"
19739 msgstr ""
19740
19741 # type: textblock
19742 #: ../fish/guestfish-actions.pod:117
19743 msgid ""
19744 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19745 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19746 "include C<raw> and C<qcow2>."
19747 msgstr ""
19748
19749 # type: textblock
19750 #: ../fish/guestfish-actions.pod:128
19751 msgid ""
19752 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19753 "add-drive-with-if> call (q.v.)"
19754 msgstr ""
19755
19756 # type: =head2
19757 #: ../fish/guestfish-actions.pod:135
19758 msgid "add-drive-ro"
19759 msgstr ""
19760
19761 # type: =head2
19762 #: ../fish/guestfish-actions.pod:137
19763 msgid "add-ro"
19764 msgstr ""
19765
19766 # type: verbatim
19767 #: ../fish/guestfish-actions.pod:139
19768 #, no-wrap
19769 msgid ""
19770 " add-drive-ro filename\n"
19771 "\n"
19772 msgstr ""
19773
19774 # type: textblock
19775 #: ../fish/guestfish-actions.pod:141
19776 msgid ""
19777 "This function is the equivalent of calling L</add-drive-opts> with the "
19778 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19779 "is added read-only, with the format being detected automatically."
19780 msgstr ""
19781
19782 # type: =head2
19783 #: ../fish/guestfish-actions.pod:146
19784 msgid "add-drive-ro-with-if"
19785 msgstr ""
19786
19787 # type: verbatim
19788 #: ../fish/guestfish-actions.pod:148
19789 #, no-wrap
19790 msgid ""
19791 " add-drive-ro-with-if filename iface\n"
19792 "\n"
19793 msgstr ""
19794
19795 # type: textblock
19796 #: ../fish/guestfish-actions.pod:150
19797 msgid ""
19798 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19799 "interface emulation to use at run time."
19800 msgstr ""
19801
19802 # type: =head2
19803 #: ../fish/guestfish-actions.pod:160
19804 msgid "add-drive-with-if"
19805 msgstr ""
19806
19807 # type: verbatim
19808 #: ../fish/guestfish-actions.pod:162
19809 #, no-wrap
19810 msgid ""
19811 " add-drive-with-if filename iface\n"
19812 "\n"
19813 msgstr ""
19814
19815 # type: textblock
19816 #: ../fish/guestfish-actions.pod:164
19817 msgid ""
19818 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19819 "interface emulation to use at run time."
19820 msgstr ""
19821
19822 # type: =head2
19823 #: ../fish/guestfish-actions.pod:174
19824 msgid "aug-clear"
19825 msgstr ""
19826
19827 # type: verbatim
19828 #: ../fish/guestfish-actions.pod:176
19829 #, no-wrap
19830 msgid ""
19831 " aug-clear augpath\n"
19832 "\n"
19833 msgstr ""
19834
19835 # type: =head2
19836 #: ../fish/guestfish-actions.pod:181
19837 msgid "aug-close"
19838 msgstr ""
19839
19840 # type: verbatim
19841 #: ../fish/guestfish-actions.pod:183
19842 #, no-wrap
19843 msgid ""
19844 " aug-close\n"
19845 "\n"
19846 msgstr ""
19847
19848 # type: textblock
19849 #: ../fish/guestfish-actions.pod:185
19850 msgid ""
19851 "Close the current Augeas handle and free up any resources used by it.  After "
19852 "calling this, you have to call L</aug-init> again before you can use any "
19853 "other Augeas functions."
19854 msgstr ""
19855
19856 # type: =head2
19857 #: ../fish/guestfish-actions.pod:190
19858 msgid "aug-defnode"
19859 msgstr ""
19860
19861 # type: verbatim
19862 #: ../fish/guestfish-actions.pod:192
19863 #, no-wrap
19864 msgid ""
19865 " aug-defnode name expr val\n"
19866 "\n"
19867 msgstr ""
19868
19869 # type: textblock
19870 #: ../fish/guestfish-actions.pod:197
19871 msgid ""
19872 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19873 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19874 "containing that single node."
19875 msgstr ""
19876
19877 # type: =head2
19878 #: ../fish/guestfish-actions.pod:205
19879 msgid "aug-defvar"
19880 msgstr ""
19881
19882 # type: verbatim
19883 #: ../fish/guestfish-actions.pod:207
19884 #, no-wrap
19885 msgid ""
19886 " aug-defvar name expr\n"
19887 "\n"
19888 msgstr ""
19889
19890 # type: =head2
19891 #: ../fish/guestfish-actions.pod:216
19892 msgid "aug-get"
19893 msgstr ""
19894
19895 # type: verbatim
19896 #: ../fish/guestfish-actions.pod:218
19897 #, no-wrap
19898 msgid ""
19899 " aug-get augpath\n"
19900 "\n"
19901 msgstr ""
19902
19903 # type: =head2
19904 #: ../fish/guestfish-actions.pod:223
19905 msgid "aug-init"
19906 msgstr ""
19907
19908 # type: verbatim
19909 #: ../fish/guestfish-actions.pod:225
19910 #, no-wrap
19911 msgid ""
19912 " aug-init root flags\n"
19913 "\n"
19914 msgstr ""
19915
19916 # type: textblock
19917 #: ../fish/guestfish-actions.pod:231
19918 msgid "You must call this before using any other L</aug-*> commands."
19919 msgstr ""
19920
19921 # type: textblock
19922 #: ../fish/guestfish-actions.pod:266
19923 msgid "Do not load the tree in L</aug-init>."
19924 msgstr ""
19925
19926 # type: textblock
19927 #: ../fish/guestfish-actions.pod:270
19928 msgid "To close the handle, you can call L</aug-close>."
19929 msgstr ""
19930
19931 # type: =head2
19932 #: ../fish/guestfish-actions.pod:274
19933 msgid "aug-insert"
19934 msgstr ""
19935
19936 # type: verbatim
19937 #: ../fish/guestfish-actions.pod:276
19938 #, no-wrap
19939 msgid ""
19940 " aug-insert augpath label true|false\n"
19941 "\n"
19942 msgstr ""
19943
19944 # type: =head2
19945 #: ../fish/guestfish-actions.pod:286
19946 msgid "aug-load"
19947 msgstr ""
19948
19949 # type: verbatim
19950 #: ../fish/guestfish-actions.pod:288
19951 #, no-wrap
19952 msgid ""
19953 " aug-load\n"
19954 "\n"
19955 msgstr ""
19956
19957 # type: =head2
19958 #: ../fish/guestfish-actions.pod:295
19959 msgid "aug-ls"
19960 msgstr ""
19961
19962 # type: verbatim
19963 #: ../fish/guestfish-actions.pod:297
19964 #, no-wrap
19965 msgid ""
19966 " aug-ls augpath\n"
19967 "\n"
19968 msgstr ""
19969
19970 # type: textblock
19971 #: ../fish/guestfish-actions.pod:299
19972 msgid ""
19973 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19974 "resulting nodes into alphabetical order."
19975 msgstr ""
19976
19977 # type: =head2
19978 #: ../fish/guestfish-actions.pod:302
19979 msgid "aug-match"
19980 msgstr ""
19981
19982 # type: verbatim
19983 #: ../fish/guestfish-actions.pod:304
19984 #, no-wrap
19985 msgid ""
19986 " aug-match augpath\n"
19987 "\n"
19988 msgstr ""
19989
19990 # type: =head2
19991 #: ../fish/guestfish-actions.pod:310
19992 msgid "aug-mv"
19993 msgstr ""
19994
19995 # type: verbatim
19996 #: ../fish/guestfish-actions.pod:312
19997 #, no-wrap
19998 msgid ""
19999 " aug-mv src dest\n"
20000 "\n"
20001 msgstr ""
20002
20003 # type: =head2
20004 #: ../fish/guestfish-actions.pod:317
20005 msgid "aug-rm"
20006 msgstr ""
20007
20008 # type: verbatim
20009 #: ../fish/guestfish-actions.pod:319
20010 #, no-wrap
20011 msgid ""
20012 " aug-rm augpath\n"
20013 "\n"
20014 msgstr ""
20015
20016 # type: =head2
20017 #: ../fish/guestfish-actions.pod:325
20018 msgid "aug-save"
20019 msgstr ""
20020
20021 # type: verbatim
20022 #: ../fish/guestfish-actions.pod:327
20023 #, no-wrap
20024 msgid ""
20025 " aug-save\n"
20026 "\n"
20027 msgstr ""
20028
20029 # type: textblock
20030 #: ../fish/guestfish-actions.pod:331
20031 msgid ""
20032 "The flags which were passed to L</aug-init> affect exactly how files are "
20033 "saved."
20034 msgstr ""
20035
20036 # type: =head2
20037 #: ../fish/guestfish-actions.pod:334
20038 msgid "aug-set"
20039 msgstr ""
20040
20041 # type: verbatim
20042 #: ../fish/guestfish-actions.pod:336
20043 #, no-wrap
20044 msgid ""
20045 " aug-set augpath val\n"
20046 "\n"
20047 msgstr ""
20048
20049 # type: textblock
20050 #: ../fish/guestfish-actions.pod:340
20051 msgid ""
20052 "In the Augeas API, it is possible to clear a node by setting the value to "
20053 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
20054 "this call.  Instead you must use the L</aug-clear> call."
20055 msgstr ""
20056
20057 # type: =head2
20058 #: ../fish/guestfish-actions.pod:345
20059 msgid "available"
20060 msgstr ""
20061
20062 # type: verbatim
20063 #: ../fish/guestfish-actions.pod:347
20064 #, no-wrap
20065 msgid ""
20066 " available 'groups ...'\n"
20067 "\n"
20068 msgstr ""
20069
20070 # type: textblock
20071 #: ../fish/guestfish-actions.pod:353
20072 msgid ""
20073 "The libguestfs groups, and the functions that those groups correspond to, "
20074 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
20075 "runtime by calling L</available-all-groups>."
20076 msgstr ""
20077
20078 # type: textblock
20079 #: ../fish/guestfish-actions.pod:377
20080 msgid "You must call L</launch> before calling this function."
20081 msgstr ""
20082
20083 # type: textblock
20084 #: ../fish/guestfish-actions.pod:399
20085 msgid ""
20086 "This call was added in version C<1.0.80>.  In previous versions of "
20087 "libguestfs all you could do would be to speculatively execute a command to "
20088 "find out if the daemon implemented it.  See also L</version>."
20089 msgstr ""
20090
20091 # type: =head2
20092 #: ../fish/guestfish-actions.pod:406
20093 msgid "available-all-groups"
20094 msgstr ""
20095
20096 # type: verbatim
20097 #: ../fish/guestfish-actions.pod:408
20098 #, no-wrap
20099 msgid ""
20100 " available-all-groups\n"
20101 "\n"
20102 msgstr ""
20103
20104 # type: textblock
20105 #: ../fish/guestfish-actions.pod:410
20106 msgid ""
20107 "This command returns a list of all optional groups that this daemon knows "
20108 "about.  Note this returns both supported and unsupported groups.  To find "
20109 "out which ones the daemon can actually support you have to call L</"
20110 "available> on each member of the returned list."
20111 msgstr ""
20112
20113 # type: textblock
20114 #: ../fish/guestfish-actions.pod:416
20115 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
20116 msgstr ""
20117
20118 # type: =head2
20119 #: ../fish/guestfish-actions.pod:418
20120 msgid "base64-in"
20121 msgstr ""
20122
20123 # type: verbatim
20124 #: ../fish/guestfish-actions.pod:420
20125 #, no-wrap
20126 msgid ""
20127 " base64-in (base64file|-) filename\n"
20128 "\n"
20129 msgstr ""
20130
20131 # type: textblock
20132 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
20133 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
20134 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
20135 #: ../fish/guestfish-actions.pod:4199 ../fish/guestfish-actions.pod:4211
20136 #: ../fish/guestfish-actions.pod:4222 ../fish/guestfish-actions.pod:4233
20137 #: ../fish/guestfish-actions.pod:4285 ../fish/guestfish-actions.pod:4294
20138 #: ../fish/guestfish-actions.pod:4348 ../fish/guestfish-actions.pod:4371
20139 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
20140 msgstr ""
20141
20142 # type: =head2
20143 #: ../fish/guestfish-actions.pod:427
20144 msgid "base64-out"
20145 msgstr ""
20146
20147 # type: verbatim
20148 #: ../fish/guestfish-actions.pod:429
20149 #, no-wrap
20150 msgid ""
20151 " base64-out filename (base64file|-)\n"
20152 "\n"
20153 msgstr ""
20154
20155 # type: =head2
20156 #: ../fish/guestfish-actions.pod:436
20157 msgid "blockdev-flushbufs"
20158 msgstr ""
20159
20160 # type: verbatim
20161 #: ../fish/guestfish-actions.pod:438
20162 #, no-wrap
20163 msgid ""
20164 " blockdev-flushbufs device\n"
20165 "\n"
20166 msgstr ""
20167
20168 # type: =head2
20169 #: ../fish/guestfish-actions.pod:445
20170 msgid "blockdev-getbsz"
20171 msgstr ""
20172
20173 # type: verbatim
20174 #: ../fish/guestfish-actions.pod:447
20175 #, no-wrap
20176 msgid ""
20177 " blockdev-getbsz device\n"
20178 "\n"
20179 msgstr ""
20180
20181 # type: =head2
20182 #: ../fish/guestfish-actions.pod:456
20183 msgid "blockdev-getro"
20184 msgstr ""
20185
20186 # type: verbatim
20187 #: ../fish/guestfish-actions.pod:458
20188 #, no-wrap
20189 msgid ""
20190 " blockdev-getro device\n"
20191 "\n"
20192 msgstr ""
20193
20194 # type: =head2
20195 #: ../fish/guestfish-actions.pod:465
20196 msgid "blockdev-getsize64"
20197 msgstr ""
20198
20199 # type: verbatim
20200 #: ../fish/guestfish-actions.pod:467
20201 #, no-wrap
20202 msgid ""
20203 " blockdev-getsize64 device\n"
20204 "\n"
20205 msgstr ""
20206
20207 # type: textblock
20208 #: ../fish/guestfish-actions.pod:471
20209 msgid "See also L</blockdev-getsz>."
20210 msgstr ""
20211
20212 # type: =head2
20213 #: ../fish/guestfish-actions.pod:475
20214 msgid "blockdev-getss"
20215 msgstr ""
20216
20217 # type: verbatim
20218 #: ../fish/guestfish-actions.pod:477
20219 #, no-wrap
20220 msgid ""
20221 " blockdev-getss device\n"
20222 "\n"
20223 msgstr ""
20224
20225 # type: textblock
20226 #: ../fish/guestfish-actions.pod:482
20227 msgid ""
20228 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
20229 msgstr ""
20230
20231 # type: =head2
20232 #: ../fish/guestfish-actions.pod:487
20233 msgid "blockdev-getsz"
20234 msgstr ""
20235
20236 # type: verbatim
20237 #: ../fish/guestfish-actions.pod:489
20238 #, no-wrap
20239 msgid ""
20240 " blockdev-getsz device\n"
20241 "\n"
20242 msgstr ""
20243
20244 # type: textblock
20245 #: ../fish/guestfish-actions.pod:494
20246 msgid ""
20247 "See also L</blockdev-getss> for the real sector size of the device, and L</"
20248 "blockdev-getsize64> for the more useful I<size in bytes>."
20249 msgstr ""
20250
20251 # type: =head2
20252 #: ../fish/guestfish-actions.pod:500
20253 msgid "blockdev-rereadpt"
20254 msgstr ""
20255
20256 # type: verbatim
20257 #: ../fish/guestfish-actions.pod:502
20258 #, no-wrap
20259 msgid ""
20260 " blockdev-rereadpt device\n"
20261 "\n"
20262 msgstr ""
20263
20264 # type: =head2
20265 #: ../fish/guestfish-actions.pod:508
20266 msgid "blockdev-setbsz"
20267 msgstr ""
20268
20269 # type: verbatim
20270 #: ../fish/guestfish-actions.pod:510
20271 #, no-wrap
20272 msgid ""
20273 " blockdev-setbsz device blocksize\n"
20274 "\n"
20275 msgstr ""
20276
20277 # type: =head2
20278 #: ../fish/guestfish-actions.pod:519
20279 msgid "blockdev-setro"
20280 msgstr ""
20281
20282 # type: verbatim
20283 #: ../fish/guestfish-actions.pod:521
20284 #, no-wrap
20285 msgid ""
20286 " blockdev-setro device\n"
20287 "\n"
20288 msgstr ""
20289
20290 # type: =head2
20291 #: ../fish/guestfish-actions.pod:527
20292 msgid "blockdev-setrw"
20293 msgstr ""
20294
20295 # type: verbatim
20296 #: ../fish/guestfish-actions.pod:529
20297 #, no-wrap
20298 msgid ""
20299 " blockdev-setrw device\n"
20300 "\n"
20301 msgstr ""
20302
20303 # type: =head2
20304 #: ../fish/guestfish-actions.pod:535
20305 msgid "case-sensitive-path"
20306 msgstr ""
20307
20308 # type: verbatim
20309 #: ../fish/guestfish-actions.pod:537
20310 #, no-wrap
20311 msgid ""
20312 " case-sensitive-path path\n"
20313 "\n"
20314 msgstr ""
20315
20316 # type: textblock
20317 #: ../fish/guestfish-actions.pod:561
20318 msgid ""
20319 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
20320 "WINDOWS/system32\"> (the exact return value would depend on details of how "
20321 "the directories were originally created under Windows)."
20322 msgstr ""
20323
20324 # type: textblock
20325 #: ../fish/guestfish-actions.pod:569
20326 msgid "See also L</realpath>."
20327 msgstr ""
20328
20329 # type: =head2
20330 #: ../fish/guestfish-actions.pod:571
20331 msgid "cat"
20332 msgstr ""
20333
20334 # type: verbatim
20335 #: ../fish/guestfish-actions.pod:573
20336 #, no-wrap
20337 msgid ""
20338 " cat path\n"
20339 "\n"
20340 msgstr ""
20341
20342 # type: textblock
20343 #: ../fish/guestfish-actions.pod:577
20344 msgid ""
20345 "Note that this function cannot correctly handle binary files (specifically, "
20346 "files containing C<\\0> character which is treated as end of string).  For "
20347 "those you need to use the L</read-file> or L</download> functions which have "
20348 "a more complex interface."
20349 msgstr ""
20350
20351 # type: =head2
20352 #: ../fish/guestfish-actions.pod:585
20353 msgid "checksum"
20354 msgstr ""
20355
20356 # type: verbatim
20357 #: ../fish/guestfish-actions.pod:587
20358 #, no-wrap
20359 msgid ""
20360 " checksum csumtype path\n"
20361 "\n"
20362 msgstr ""
20363
20364 # type: textblock
20365 #: ../fish/guestfish-actions.pod:630
20366 msgid "To get the checksum for a device, use L</checksum-device>."
20367 msgstr ""
20368
20369 # type: textblock
20370 #: ../fish/guestfish-actions.pod:632
20371 msgid "To get the checksums for many files, use L</checksums-out>."
20372 msgstr ""
20373
20374 # type: =head2
20375 #: ../fish/guestfish-actions.pod:634
20376 msgid "checksum-device"
20377 msgstr ""
20378
20379 # type: verbatim
20380 #: ../fish/guestfish-actions.pod:636
20381 #, no-wrap
20382 msgid ""
20383 " checksum-device csumtype device\n"
20384 "\n"
20385 msgstr ""
20386
20387 # type: textblock
20388 #: ../fish/guestfish-actions.pod:638
20389 msgid ""
20390 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20391 "device named C<device>.  For the types of checksums supported see the L</"
20392 "checksum> command."
20393 msgstr ""
20394
20395 # type: =head2
20396 #: ../fish/guestfish-actions.pod:642
20397 msgid "checksums-out"
20398 msgstr ""
20399
20400 # type: verbatim
20401 #: ../fish/guestfish-actions.pod:644
20402 #, no-wrap
20403 msgid ""
20404 " checksums-out csumtype directory (sumsfile|-)\n"
20405 "\n"
20406 msgstr ""
20407
20408 # type: =head2
20409 #: ../fish/guestfish-actions.pod:660
20410 msgid "chmod"
20411 msgstr ""
20412
20413 # type: verbatim
20414 #: ../fish/guestfish-actions.pod:662
20415 #, no-wrap
20416 msgid ""
20417 " chmod mode path\n"
20418 "\n"
20419 msgstr ""
20420
20421 # type: =head2
20422 #: ../fish/guestfish-actions.pod:673
20423 msgid "chown"
20424 msgstr ""
20425
20426 # type: verbatim
20427 #: ../fish/guestfish-actions.pod:675
20428 #, no-wrap
20429 msgid ""
20430 " chown owner group path\n"
20431 "\n"
20432 msgstr ""
20433
20434 # type: =head2
20435 #: ../fish/guestfish-actions.pod:683
20436 msgid "command"
20437 msgstr ""
20438
20439 # type: verbatim
20440 #: ../fish/guestfish-actions.pod:685
20441 #, no-wrap
20442 msgid ""
20443 " command 'arguments ...'\n"
20444 "\n"
20445 msgstr ""
20446
20447 # type: textblock
20448 #: ../fish/guestfish-actions.pod:692
20449 msgid ""
20450 "The single parameter is an argv-style list of arguments.  The first element "
20451 "is the name of the program to run.  Subsequent elements are parameters.  The "
20452 "list must be non-empty (ie. must contain a program name).  Note that the "
20453 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20454 msgstr ""
20455
20456 # type: =head2
20457 #: ../fish/guestfish-actions.pod:720
20458 msgid "command-lines"
20459 msgstr ""
20460
20461 # type: verbatim
20462 #: ../fish/guestfish-actions.pod:722
20463 #, no-wrap
20464 msgid ""
20465 " command-lines 'arguments ...'\n"
20466 "\n"
20467 msgstr ""
20468
20469 # type: textblock
20470 #: ../fish/guestfish-actions.pod:724
20471 msgid ""
20472 "This is the same as L</command>, but splits the result into a list of lines."
20473 msgstr ""
20474
20475 # type: textblock
20476 #: ../fish/guestfish-actions.pod:727
20477 msgid "See also: L</sh-lines>"
20478 msgstr ""
20479
20480 # type: =head2
20481 #: ../fish/guestfish-actions.pod:732
20482 msgid "config"
20483 msgstr ""
20484
20485 # type: verbatim
20486 #: ../fish/guestfish-actions.pod:734
20487 #, no-wrap
20488 msgid ""
20489 " config qemuparam qemuvalue\n"
20490 "\n"
20491 msgstr ""
20492
20493 # type: =head2
20494 #: ../fish/guestfish-actions.pod:745
20495 msgid "copy-size"
20496 msgstr ""
20497
20498 # type: verbatim
20499 #: ../fish/guestfish-actions.pod:747
20500 #, no-wrap
20501 msgid ""
20502 " copy-size src dest size\n"
20503 "\n"
20504 msgstr ""
20505
20506 # type: =head2
20507 #: ../fish/guestfish-actions.pod:755
20508 msgid "cp"
20509 msgstr ""
20510
20511 # type: verbatim
20512 #: ../fish/guestfish-actions.pod:757
20513 #, no-wrap
20514 msgid ""
20515 " cp src dest\n"
20516 "\n"
20517 msgstr ""
20518
20519 # type: =head2
20520 #: ../fish/guestfish-actions.pod:762
20521 msgid "cp-a"
20522 msgstr ""
20523
20524 # type: verbatim
20525 #: ../fish/guestfish-actions.pod:764
20526 #, no-wrap
20527 msgid ""
20528 " cp-a src dest\n"
20529 "\n"
20530 msgstr ""
20531
20532 # type: =head2
20533 #: ../fish/guestfish-actions.pod:769
20534 msgid "dd"
20535 msgstr ""
20536
20537 # type: verbatim
20538 #: ../fish/guestfish-actions.pod:771
20539 #, no-wrap
20540 msgid ""
20541 " dd src dest\n"
20542 "\n"
20543 msgstr ""
20544
20545 # type: textblock
20546 #: ../fish/guestfish-actions.pod:778
20547 msgid ""
20548 "If the destination is a device, it must be as large or larger than the "
20549 "source file or device, otherwise the copy will fail.  This command cannot do "
20550 "partial copies (see L</copy-size>)."
20551 msgstr ""
20552
20553 # type: =head2
20554 #: ../fish/guestfish-actions.pod:782
20555 msgid "df"
20556 msgstr ""
20557
20558 # type: verbatim
20559 #: ../fish/guestfish-actions.pod:784
20560 #, no-wrap
20561 msgid ""
20562 " df\n"
20563 "\n"
20564 msgstr ""
20565
20566 # type: =head2
20567 #: ../fish/guestfish-actions.pod:792
20568 msgid "df-h"
20569 msgstr ""
20570
20571 # type: verbatim
20572 #: ../fish/guestfish-actions.pod:794
20573 #, no-wrap
20574 msgid ""
20575 " df-h\n"
20576 "\n"
20577 msgstr ""
20578
20579 # type: =head2
20580 #: ../fish/guestfish-actions.pod:803
20581 msgid "dmesg"
20582 msgstr ""
20583
20584 # type: verbatim
20585 #: ../fish/guestfish-actions.pod:805
20586 #, no-wrap
20587 msgid ""
20588 " dmesg\n"
20589 "\n"
20590 msgstr ""
20591
20592 # type: textblock
20593 #: ../fish/guestfish-actions.pod:811
20594 msgid ""
20595 "Another way to get the same information is to enable verbose messages with "
20596 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20597 "before running the program."
20598 msgstr ""
20599
20600 # type: =head2
20601 #: ../fish/guestfish-actions.pod:816
20602 msgid "download"
20603 msgstr ""
20604
20605 # type: verbatim
20606 #: ../fish/guestfish-actions.pod:818
20607 #, no-wrap
20608 msgid ""
20609 " download remotefilename (filename|-)\n"
20610 "\n"
20611 msgstr ""
20612
20613 # type: textblock
20614 #: ../fish/guestfish-actions.pod:825
20615 msgid "See also L</upload>, L</cat>."
20616 msgstr ""
20617
20618 # type: =head2
20619 #: ../fish/guestfish-actions.pod:829
20620 msgid "download-offset"
20621 msgstr ""
20622
20623 # type: verbatim
20624 #: ../fish/guestfish-actions.pod:831
20625 #, no-wrap
20626 msgid ""
20627 " download-offset remotefilename (filename|-) offset size\n"
20628 "\n"
20629 msgstr ""
20630
20631 # type: textblock
20632 #: ../fish/guestfish-actions.pod:839
20633 msgid ""
20634 "Note that there is no limit on the amount of data that can be downloaded "
20635 "with this call, unlike with L</pread>, and this call always reads the full "
20636 "amount unless an error occurs."
20637 msgstr ""
20638
20639 # type: textblock
20640 #: ../fish/guestfish-actions.pod:844
20641 msgid "See also L</download>, L</pread>."
20642 msgstr ""
20643
20644 # type: =head2
20645 #: ../fish/guestfish-actions.pod:848
20646 msgid "drop-caches"
20647 msgstr ""
20648
20649 # type: verbatim
20650 #: ../fish/guestfish-actions.pod:850
20651 #, no-wrap
20652 msgid ""
20653 " drop-caches whattodrop\n"
20654 "\n"
20655 msgstr ""
20656
20657 # type: =head2
20658 #: ../fish/guestfish-actions.pod:862
20659 msgid "du"
20660 msgstr ""
20661
20662 # type: verbatim
20663 #: ../fish/guestfish-actions.pod:864
20664 #, no-wrap
20665 msgid ""
20666 " du path\n"
20667 "\n"
20668 msgstr ""
20669
20670 # type: =head2
20671 #: ../fish/guestfish-actions.pod:876
20672 msgid "e2fsck-f"
20673 msgstr ""
20674
20675 # type: verbatim
20676 #: ../fish/guestfish-actions.pod:878
20677 #, no-wrap
20678 msgid ""
20679 " e2fsck-f device\n"
20680 "\n"
20681 msgstr ""
20682
20683 # type: textblock
20684 #: ../fish/guestfish-actions.pod:884
20685 msgid ""
20686 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20687 "should use L</fsck>."
20688 msgstr ""
20689
20690 # type: =head2
20691 #: ../fish/guestfish-actions.pod:887
20692 msgid "echo-daemon"
20693 msgstr ""
20694
20695 # type: verbatim
20696 #: ../fish/guestfish-actions.pod:889
20697 #, no-wrap
20698 msgid ""
20699 " echo-daemon 'words ...'\n"
20700 "\n"
20701 msgstr ""
20702
20703 # type: textblock
20704 #: ../fish/guestfish-actions.pod:896
20705 msgid "See also L</ping-daemon>."
20706 msgstr ""
20707
20708 # type: =head2
20709 #: ../fish/guestfish-actions.pod:898
20710 msgid "egrep"
20711 msgstr ""
20712
20713 # type: verbatim
20714 #: ../fish/guestfish-actions.pod:900
20715 #, no-wrap
20716 msgid ""
20717 " egrep regex path\n"
20718 "\n"
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:908
20723 msgid "egrepi"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:910
20728 #, no-wrap
20729 msgid ""
20730 " egrepi regex path\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: =head2
20735 #: ../fish/guestfish-actions.pod:918
20736 msgid "equal"
20737 msgstr ""
20738
20739 # type: verbatim
20740 #: ../fish/guestfish-actions.pod:920
20741 #, no-wrap
20742 msgid ""
20743 " equal file1 file2\n"
20744 "\n"
20745 msgstr ""
20746
20747 # type: =head2
20748 #: ../fish/guestfish-actions.pod:927
20749 msgid "exists"
20750 msgstr ""
20751
20752 # type: verbatim
20753 #: ../fish/guestfish-actions.pod:929
20754 #, no-wrap
20755 msgid ""
20756 " exists path\n"
20757 "\n"
20758 msgstr ""
20759
20760 # type: textblock
20761 #: ../fish/guestfish-actions.pod:934
20762 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20763 msgstr ""
20764
20765 # type: =head2
20766 #: ../fish/guestfish-actions.pod:936
20767 msgid "fallocate"
20768 msgstr ""
20769
20770 # type: verbatim
20771 #: ../fish/guestfish-actions.pod:938
20772 #, no-wrap
20773 msgid ""
20774 " fallocate path len\n"
20775 "\n"
20776 msgstr ""
20777
20778 # type: =head2
20779 #: ../fish/guestfish-actions.pod:955
20780 msgid "fallocate64"
20781 msgstr ""
20782
20783 # type: verbatim
20784 #: ../fish/guestfish-actions.pod:957
20785 #, no-wrap
20786 msgid ""
20787 " fallocate64 path len\n"
20788 "\n"
20789 msgstr ""
20790
20791 # type: textblock
20792 #: ../fish/guestfish-actions.pod:963
20793 msgid ""
20794 "Note that this call allocates disk blocks for the file.  To create a sparse "
20795 "file use L</truncate-size> instead."
20796 msgstr ""
20797
20798 # type: textblock
20799 #: ../fish/guestfish-actions.pod:966
20800 msgid ""
20801 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20802 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20803 "maximum size of files created through that call to 1GB."
20804 msgstr ""
20805
20806 # type: =head2
20807 #: ../fish/guestfish-actions.pod:975
20808 msgid "fgrep"
20809 msgstr ""
20810
20811 # type: verbatim
20812 #: ../fish/guestfish-actions.pod:977
20813 #, no-wrap
20814 msgid ""
20815 " fgrep pattern path\n"
20816 "\n"
20817 msgstr ""
20818
20819 # type: =head2
20820 #: ../fish/guestfish-actions.pod:985
20821 msgid "fgrepi"
20822 msgstr ""
20823
20824 # type: verbatim
20825 #: ../fish/guestfish-actions.pod:987
20826 #, no-wrap
20827 msgid ""
20828 " fgrepi pattern path\n"
20829 "\n"
20830 msgstr ""
20831
20832 # type: =head2
20833 #: ../fish/guestfish-actions.pod:995
20834 msgid "file"
20835 msgstr ""
20836
20837 # type: verbatim
20838 #: ../fish/guestfish-actions.pod:997
20839 #, no-wrap
20840 msgid ""
20841 " file path\n"
20842 "\n"
20843 msgstr ""
20844
20845 # type: textblock
20846 #: ../fish/guestfish-actions.pod:1009
20847 msgid ""
20848 "This command can also be used on C</dev/> devices (and partitions, LV "
20849 "names).  You can for example use this to determine if a device contains a "
20850 "filesystem, although it's usually better to use L</vfs-type>."
20851 msgstr ""
20852
20853 # type: =head2
20854 #: ../fish/guestfish-actions.pod:1019
20855 msgid "file-architecture"
20856 msgstr ""
20857
20858 # type: verbatim
20859 #: ../fish/guestfish-actions.pod:1021
20860 #, no-wrap
20861 msgid ""
20862 " file-architecture filename\n"
20863 "\n"
20864 msgstr ""
20865
20866 # type: =head2
20867 #: ../fish/guestfish-actions.pod:1124
20868 msgid "filesize"
20869 msgstr ""
20870
20871 # type: verbatim
20872 #: ../fish/guestfish-actions.pod:1126
20873 #, no-wrap
20874 msgid ""
20875 " filesize file\n"
20876 "\n"
20877 msgstr ""
20878
20879 # type: textblock
20880 #: ../fish/guestfish-actions.pod:1130
20881 msgid ""
20882 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20883 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20884 msgstr ""
20885
20886 # type: =head2
20887 #: ../fish/guestfish-actions.pod:1134
20888 msgid "fill"
20889 msgstr ""
20890
20891 # type: verbatim
20892 #: ../fish/guestfish-actions.pod:1136
20893 #, no-wrap
20894 msgid ""
20895 " fill c len path\n"
20896 "\n"
20897 msgstr ""
20898
20899 # type: textblock
20900 #: ../fish/guestfish-actions.pod:1142
20901 msgid ""
20902 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20903 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20904 "L</fill-pattern>."
20905 msgstr ""
20906
20907 # type: =head2
20908 #: ../fish/guestfish-actions.pod:1147
20909 msgid "fill-pattern"
20910 msgstr ""
20911
20912 # type: verbatim
20913 #: ../fish/guestfish-actions.pod:1149
20914 #, no-wrap
20915 msgid ""
20916 " fill-pattern pattern len path\n"
20917 "\n"
20918 msgstr ""
20919
20920 # type: textblock
20921 #: ../fish/guestfish-actions.pod:1151
20922 msgid ""
20923 "This function is like L</fill> except that it creates a new file of length "
20924 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20925 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20926 "bytes."
20927 msgstr ""
20928
20929 # type: =head2
20930 #: ../fish/guestfish-actions.pod:1156
20931 msgid "find"
20932 msgstr ""
20933
20934 # type: verbatim
20935 #: ../fish/guestfish-actions.pod:1158
20936 #, no-wrap
20937 msgid ""
20938 " find directory\n"
20939 "\n"
20940 msgstr ""
20941
20942 # type: textblock
20943 #: ../fish/guestfish-actions.pod:1172
20944 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20945 msgstr ""
20946
20947 # type: textblock
20948 #: ../fish/guestfish-actions.pod:1185
20949 msgid "See also L</find0>."
20950 msgstr ""
20951
20952 # type: =head2
20953 #: ../fish/guestfish-actions.pod:1190
20954 msgid "find0"
20955 msgstr ""
20956
20957 # type: verbatim
20958 #: ../fish/guestfish-actions.pod:1192
20959 #, no-wrap
20960 msgid ""
20961 " find0 directory (files|-)\n"
20962 "\n"
20963 msgstr ""
20964
20965 # type: textblock
20966 #: ../fish/guestfish-actions.pod:1198
20967 msgid ""
20968 "This command works the same way as L</find> with the following exceptions:"
20969 msgstr ""
20970
20971 # type: =head2
20972 #: ../fish/guestfish-actions.pod:1225
20973 msgid "findfs-label"
20974 msgstr ""
20975
20976 # type: verbatim
20977 #: ../fish/guestfish-actions.pod:1227
20978 #, no-wrap
20979 msgid ""
20980 " findfs-label label\n"
20981 "\n"
20982 msgstr ""
20983
20984 # type: textblock
20985 #: ../fish/guestfish-actions.pod:1233
20986 msgid "To find the label of a filesystem, use L</vfs-label>."
20987 msgstr ""
20988
20989 # type: =head2
20990 #: ../fish/guestfish-actions.pod:1235
20991 msgid "findfs-uuid"
20992 msgstr ""
20993
20994 # type: verbatim
20995 #: ../fish/guestfish-actions.pod:1237
20996 #, no-wrap
20997 msgid ""
20998 " findfs-uuid uuid\n"
20999 "\n"
21000 msgstr ""
21001
21002 # type: textblock
21003 #: ../fish/guestfish-actions.pod:1243
21004 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
21005 msgstr ""
21006
21007 # type: =head2
21008 #: ../fish/guestfish-actions.pod:1245
21009 msgid "fsck"
21010 msgstr ""
21011
21012 # type: verbatim
21013 #: ../fish/guestfish-actions.pod:1247
21014 #, no-wrap
21015 msgid ""
21016 " fsck fstype device\n"
21017 "\n"
21018 msgstr ""
21019
21020 # type: =head2
21021 #: ../fish/guestfish-actions.pod:1277
21022 msgid "get-append"
21023 msgstr ""
21024
21025 # type: verbatim
21026 #: ../fish/guestfish-actions.pod:1279
21027 #, no-wrap
21028 msgid ""
21029 " get-append\n"
21030 "\n"
21031 msgstr ""
21032
21033 # type: =head2
21034 #: ../fish/guestfish-actions.pod:1286
21035 msgid "get-autosync"
21036 msgstr ""
21037
21038 # type: verbatim
21039 #: ../fish/guestfish-actions.pod:1288
21040 #, no-wrap
21041 msgid ""
21042 " get-autosync\n"
21043 "\n"
21044 msgstr ""
21045
21046 # type: =head2
21047 #: ../fish/guestfish-actions.pod:1292
21048 msgid "get-direct"
21049 msgstr ""
21050
21051 # type: verbatim
21052 #: ../fish/guestfish-actions.pod:1294
21053 #, no-wrap
21054 msgid ""
21055 " get-direct\n"
21056 "\n"
21057 msgstr ""
21058
21059 # type: =head2
21060 #: ../fish/guestfish-actions.pod:1298
21061 msgid "get-e2label"
21062 msgstr ""
21063
21064 # type: verbatim
21065 #: ../fish/guestfish-actions.pod:1300
21066 #, no-wrap
21067 msgid ""
21068 " get-e2label device\n"
21069 "\n"
21070 msgstr ""
21071
21072 # type: =head2
21073 #: ../fish/guestfish-actions.pod:1312
21074 msgid "get-e2uuid"
21075 msgstr ""
21076
21077 # type: verbatim
21078 #: ../fish/guestfish-actions.pod:1314
21079 #, no-wrap
21080 msgid ""
21081 " get-e2uuid device\n"
21082 "\n"
21083 msgstr ""
21084
21085 # type: =head2
21086 #: ../fish/guestfish-actions.pod:1326
21087 msgid "get-memsize"
21088 msgstr ""
21089
21090 # type: verbatim
21091 #: ../fish/guestfish-actions.pod:1328
21092 #, no-wrap
21093 msgid ""
21094 " get-memsize\n"
21095 "\n"
21096 msgstr ""
21097
21098 # type: textblock
21099 #: ../fish/guestfish-actions.pod:1333
21100 msgid ""
21101 "If L</set-memsize> was not called on this handle, and if "
21102 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
21103 "value for memsize."
21104 msgstr ""
21105
21106 # type: =head2
21107 #: ../fish/guestfish-actions.pod:1340
21108 msgid "get-network"
21109 msgstr ""
21110
21111 # type: verbatim
21112 #: ../fish/guestfish-actions.pod:1342
21113 #, no-wrap
21114 msgid ""
21115 " get-network\n"
21116 "\n"
21117 msgstr ""
21118
21119 # type: =head2
21120 #: ../fish/guestfish-actions.pod:1346
21121 msgid "get-path"
21122 msgstr ""
21123
21124 # type: verbatim
21125 #: ../fish/guestfish-actions.pod:1348
21126 #, no-wrap
21127 msgid ""
21128 " get-path\n"
21129 "\n"
21130 msgstr ""
21131
21132 # type: =head2
21133 #: ../fish/guestfish-actions.pod:1355
21134 msgid "get-pid"
21135 msgstr ""
21136
21137 # type: =head2
21138 #: ../fish/guestfish-actions.pod:1357
21139 msgid "pid"
21140 msgstr ""
21141
21142 # type: verbatim
21143 #: ../fish/guestfish-actions.pod:1359
21144 #, no-wrap
21145 msgid ""
21146 " get-pid\n"
21147 "\n"
21148 msgstr ""
21149
21150 # type: =head2
21151 #: ../fish/guestfish-actions.pod:1366
21152 msgid "get-qemu"
21153 msgstr ""
21154
21155 # type: verbatim
21156 #: ../fish/guestfish-actions.pod:1368
21157 #, no-wrap
21158 msgid ""
21159 " get-qemu\n"
21160 "\n"
21161 msgstr ""
21162
21163 # type: =head2
21164 #: ../fish/guestfish-actions.pod:1375
21165 msgid "get-recovery-proc"
21166 msgstr ""
21167
21168 # type: verbatim
21169 #: ../fish/guestfish-actions.pod:1377
21170 #, no-wrap
21171 msgid ""
21172 " get-recovery-proc\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: =head2
21177 #: ../fish/guestfish-actions.pod:1381
21178 msgid "get-selinux"
21179 msgstr ""
21180
21181 # type: verbatim
21182 #: ../fish/guestfish-actions.pod:1383
21183 #, no-wrap
21184 msgid ""
21185 " get-selinux\n"
21186 "\n"
21187 msgstr ""
21188
21189 # type: textblock
21190 #: ../fish/guestfish-actions.pod:1385
21191 msgid ""
21192 "This returns the current setting of the selinux flag which is passed to the "
21193 "appliance at boot time.  See L</set-selinux>."
21194 msgstr ""
21195
21196 # type: =head2
21197 #: ../fish/guestfish-actions.pod:1391
21198 msgid "get-state"
21199 msgstr ""
21200
21201 # type: verbatim
21202 #: ../fish/guestfish-actions.pod:1393
21203 #, no-wrap
21204 msgid ""
21205 " get-state\n"
21206 "\n"
21207 msgstr ""
21208
21209 # type: =head2
21210 #: ../fish/guestfish-actions.pod:1400
21211 msgid "get-trace"
21212 msgstr ""
21213
21214 # type: verbatim
21215 #: ../fish/guestfish-actions.pod:1402
21216 #, no-wrap
21217 msgid ""
21218 " get-trace\n"
21219 "\n"
21220 msgstr ""
21221
21222 # type: =head2
21223 #: ../fish/guestfish-actions.pod:1406
21224 msgid "get-umask"
21225 msgstr ""
21226
21227 # type: verbatim
21228 #: ../fish/guestfish-actions.pod:1408
21229 #, no-wrap
21230 msgid ""
21231 " get-umask\n"
21232 "\n"
21233 msgstr ""
21234
21235 # type: textblock
21236 #: ../fish/guestfish-actions.pod:1410
21237 msgid ""
21238 "Return the current umask.  By default the umask is C<022> unless it has been "
21239 "set by calling L</umask>."
21240 msgstr ""
21241
21242 # type: =head2
21243 #: ../fish/guestfish-actions.pod:1413
21244 msgid "get-verbose"
21245 msgstr ""
21246
21247 # type: verbatim
21248 #: ../fish/guestfish-actions.pod:1415
21249 #, no-wrap
21250 msgid ""
21251 " get-verbose\n"
21252 "\n"
21253 msgstr ""
21254
21255 # type: =head2
21256 #: ../fish/guestfish-actions.pod:1419
21257 msgid "getcon"
21258 msgstr ""
21259
21260 # type: verbatim
21261 #: ../fish/guestfish-actions.pod:1421
21262 #, no-wrap
21263 msgid ""
21264 " getcon\n"
21265 "\n"
21266 msgstr ""
21267
21268 # type: textblock
21269 #: ../fish/guestfish-actions.pod:1425
21270 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
21271 msgstr ""
21272
21273 # type: =head2
21274 #: ../fish/guestfish-actions.pod:1428
21275 msgid "getxattr"
21276 msgstr ""
21277
21278 # type: verbatim
21279 #: ../fish/guestfish-actions.pod:1430
21280 #, no-wrap
21281 msgid ""
21282 " getxattr path name\n"
21283 "\n"
21284 msgstr ""
21285
21286 # type: textblock
21287 #: ../fish/guestfish-actions.pod:1432
21288 msgid ""
21289 "Get a single extended attribute from file C<path> named C<name>.  This call "
21290 "follows symlinks.  If you want to lookup an extended attribute for the "
21291 "symlink itself, use L</lgetxattr>."
21292 msgstr ""
21293
21294 # type: textblock
21295 #: ../fish/guestfish-actions.pod:1436 ../fish/guestfish-actions.pod:2263
21296 msgid ""
21297 "Normally it is better to get all extended attributes from a file in one go "
21298 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
21299 "buggy and do not provide a way to list out attributes.  For these "
21300 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
21301 "attributes you want in advance and call this function."
21302 msgstr ""
21303
21304 # type: textblock
21305 #: ../fish/guestfish-actions.pod:1446
21306 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
21307 msgstr ""
21308
21309 # type: =head2
21310 #: ../fish/guestfish-actions.pod:1448
21311 msgid "getxattrs"
21312 msgstr ""
21313
21314 # type: verbatim
21315 #: ../fish/guestfish-actions.pod:1450
21316 #, no-wrap
21317 msgid ""
21318 " getxattrs path\n"
21319 "\n"
21320 msgstr ""
21321
21322 # type: textblock
21323 #: ../fish/guestfish-actions.pod:1458
21324 msgid "See also: L</lgetxattrs>, L<attr(5)>."
21325 msgstr ""
21326
21327 # type: =head2
21328 #: ../fish/guestfish-actions.pod:1460
21329 msgid "glob-expand"
21330 msgstr ""
21331
21332 # type: verbatim
21333 #: ../fish/guestfish-actions.pod:1462
21334 #, no-wrap
21335 msgid ""
21336 " glob-expand pattern\n"
21337 "\n"
21338 msgstr ""
21339
21340 # type: =head2
21341 #: ../fish/guestfish-actions.pod:1475
21342 msgid "grep"
21343 msgstr ""
21344
21345 # type: verbatim
21346 #: ../fish/guestfish-actions.pod:1477
21347 #, no-wrap
21348 msgid ""
21349 " grep regex path\n"
21350 "\n"
21351 msgstr ""
21352
21353 # type: =head2
21354 #: ../fish/guestfish-actions.pod:1485
21355 msgid "grepi"
21356 msgstr ""
21357
21358 # type: verbatim
21359 #: ../fish/guestfish-actions.pod:1487
21360 #, no-wrap
21361 msgid ""
21362 " grepi regex path\n"
21363 "\n"
21364 msgstr ""
21365
21366 # type: =head2
21367 #: ../fish/guestfish-actions.pod:1495
21368 msgid "grub-install"
21369 msgstr ""
21370
21371 # type: verbatim
21372 #: ../fish/guestfish-actions.pod:1497
21373 #, no-wrap
21374 msgid ""
21375 " grub-install root device\n"
21376 "\n"
21377 msgstr ""
21378
21379 # type: =head2
21380 #: ../fish/guestfish-actions.pod:1513
21381 msgid "head"
21382 msgstr ""
21383
21384 # type: verbatim
21385 #: ../fish/guestfish-actions.pod:1515
21386 #, no-wrap
21387 msgid ""
21388 " head path\n"
21389 "\n"
21390 msgstr ""
21391
21392 # type: =head2
21393 #: ../fish/guestfish-actions.pod:1523
21394 msgid "head-n"
21395 msgstr ""
21396
21397 # type: verbatim
21398 #: ../fish/guestfish-actions.pod:1525
21399 #, no-wrap
21400 msgid ""
21401 " head-n nrlines path\n"
21402 "\n"
21403 msgstr ""
21404
21405 # type: =head2
21406 #: ../fish/guestfish-actions.pod:1538
21407 msgid "hexdump"
21408 msgstr ""
21409
21410 # type: verbatim
21411 #: ../fish/guestfish-actions.pod:1540
21412 #, no-wrap
21413 msgid ""
21414 " hexdump path\n"
21415 "\n"
21416 msgstr ""
21417
21418 # type: =head2
21419 #: ../fish/guestfish-actions.pod:1548
21420 msgid "initrd-cat"
21421 msgstr ""
21422
21423 # type: verbatim
21424 #: ../fish/guestfish-actions.pod:1550
21425 #, no-wrap
21426 msgid ""
21427 " initrd-cat initrdpath filename\n"
21428 "\n"
21429 msgstr ""
21430
21431 # type: textblock
21432 #: ../fish/guestfish-actions.pod:1562
21433 msgid "See also L</initrd-list>."
21434 msgstr ""
21435
21436 # type: =head2
21437 #: ../fish/guestfish-actions.pod:1567
21438 msgid "initrd-list"
21439 msgstr ""
21440
21441 # type: verbatim
21442 #: ../fish/guestfish-actions.pod:1569
21443 #, no-wrap
21444 msgid ""
21445 " initrd-list path\n"
21446 "\n"
21447 msgstr ""
21448
21449 # type: =head2
21450 #: ../fish/guestfish-actions.pod:1581
21451 msgid "inotify-add-watch"
21452 msgstr ""
21453
21454 # type: verbatim
21455 #: ../fish/guestfish-actions.pod:1583
21456 #, no-wrap
21457 msgid ""
21458 " inotify-add-watch path mask\n"
21459 "\n"
21460 msgstr ""
21461
21462 # type: =head2
21463 #: ../fish/guestfish-actions.pod:1595
21464 msgid "inotify-close"
21465 msgstr ""
21466
21467 # type: verbatim
21468 #: ../fish/guestfish-actions.pod:1597
21469 #, no-wrap
21470 msgid ""
21471 " inotify-close\n"
21472 "\n"
21473 msgstr ""
21474
21475 # type: =head2
21476 #: ../fish/guestfish-actions.pod:1603
21477 msgid "inotify-files"
21478 msgstr ""
21479
21480 # type: verbatim
21481 #: ../fish/guestfish-actions.pod:1605
21482 #, no-wrap
21483 msgid ""
21484 " inotify-files\n"
21485 "\n"
21486 msgstr ""
21487
21488 # type: textblock
21489 #: ../fish/guestfish-actions.pod:1607
21490 msgid ""
21491 "This function is a helpful wrapper around L</inotify-read> which just "
21492 "returns a list of pathnames of objects that were touched.  The returned "
21493 "pathnames are sorted and deduplicated."
21494 msgstr ""
21495
21496 # type: =head2
21497 #: ../fish/guestfish-actions.pod:1611
21498 msgid "inotify-init"
21499 msgstr ""
21500
21501 # type: verbatim
21502 #: ../fish/guestfish-actions.pod:1613
21503 #, no-wrap
21504 msgid ""
21505 " inotify-init maxevents\n"
21506 "\n"
21507 msgstr ""
21508
21509 # type: textblock
21510 #: ../fish/guestfish-actions.pod:1619
21511 msgid ""
21512 "C<maxevents> is the maximum number of events which will be queued up between "
21513 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21514 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21515 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21516 "but records the fact that it threw them away by setting a flag "
21517 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21518 msgstr ""
21519
21520 # type: textblock
21521 #: ../fish/guestfish-actions.pod:1629
21522 msgid ""
21523 "Before any events are generated, you have to add some watches to the "
21524 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21525 "L</inotify-watch-all>."
21526 msgstr ""
21527
21528 # type: textblock
21529 #: ../fish/guestfish-actions.pod:1635
21530 msgid ""
21531 "Queued up events should be read periodically by calling L</inotify-read> (or "
21532 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21533 "If you don't read the events out often enough then you risk the internal "
21534 "queue overflowing."
21535 msgstr ""
21536
21537 # type: textblock
21538 #: ../fish/guestfish-actions.pod:1642
21539 msgid ""
21540 "The handle should be closed after use by calling L</inotify-close>.  This "
21541 "also removes any watches automatically."
21542 msgstr ""
21543
21544 # type: =head2
21545 #: ../fish/guestfish-actions.pod:1651
21546 msgid "inotify-read"
21547 msgstr ""
21548
21549 # type: verbatim
21550 #: ../fish/guestfish-actions.pod:1653
21551 #, no-wrap
21552 msgid ""
21553 " inotify-read\n"
21554 "\n"
21555 msgstr ""
21556
21557 # type: =head2
21558 #: ../fish/guestfish-actions.pod:1666
21559 msgid "inotify-rm-watch"
21560 msgstr ""
21561
21562 # type: verbatim
21563 #: ../fish/guestfish-actions.pod:1668
21564 #, no-wrap
21565 msgid ""
21566 " inotify-rm-watch wd\n"
21567 "\n"
21568 msgstr ""
21569
21570 # type: textblock
21571 #: ../fish/guestfish-actions.pod:1670
21572 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21573 msgstr ""
21574
21575 # type: =head2
21576 #: ../fish/guestfish-actions.pod:1673
21577 msgid "inspect-get-arch"
21578 msgstr ""
21579
21580 # type: verbatim
21581 #: ../fish/guestfish-actions.pod:1675
21582 #, no-wrap
21583 msgid ""
21584 " inspect-get-arch root\n"
21585 "\n"
21586 msgstr ""
21587
21588 # type: textblock
21589 #: ../fish/guestfish-actions.pod:1677 ../fish/guestfish-actions.pod:1693
21590 #: ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1785
21591 #: ../fish/guestfish-actions.pod:1800 ../fish/guestfish-actions.pod:1821
21592 #: ../fish/guestfish-actions.pod:1836 ../fish/guestfish-actions.pod:1859
21593 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:1905
21594 #: ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1970
21595 #: ../fish/guestfish-actions.pod:1986
21596 msgid ""
21597 "This function should only be called with a root device string as returned by "
21598 "L</inspect-os>."
21599 msgstr ""
21600
21601 # type: textblock
21602 #: ../fish/guestfish-actions.pod:1680
21603 msgid ""
21604 "This returns the architecture of the inspected operating system.  The "
21605 "possible return values are listed under L</file-architecture>."
21606 msgstr ""
21607
21608 # type: =head2
21609 #: ../fish/guestfish-actions.pod:1689
21610 msgid "inspect-get-distro"
21611 msgstr ""
21612
21613 # type: verbatim
21614 #: ../fish/guestfish-actions.pod:1691
21615 #, no-wrap
21616 msgid ""
21617 " inspect-get-distro root\n"
21618 "\n"
21619 msgstr ""
21620
21621 # type: =head2
21622 #: ../fish/guestfish-actions.pod:1763
21623 msgid "inspect-get-filesystems"
21624 msgstr ""
21625
21626 # type: verbatim
21627 #: ../fish/guestfish-actions.pod:1765
21628 #, no-wrap
21629 msgid ""
21630 " inspect-get-filesystems root\n"
21631 "\n"
21632 msgstr ""
21633
21634 # type: textblock
21635 #: ../fish/guestfish-actions.pod:1778
21636 msgid ""
21637 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21638 "get-mountpoints>."
21639 msgstr ""
21640
21641 # type: =head2
21642 #: ../fish/guestfish-actions.pod:1781
21643 msgid "inspect-get-hostname"
21644 msgstr ""
21645
21646 # type: verbatim
21647 #: ../fish/guestfish-actions.pod:1783
21648 #, no-wrap
21649 msgid ""
21650 " inspect-get-hostname root\n"
21651 "\n"
21652 msgstr ""
21653
21654 # type: =head2
21655 #: ../fish/guestfish-actions.pod:1796
21656 msgid "inspect-get-major-version"
21657 msgstr ""
21658
21659 # type: verbatim
21660 #: ../fish/guestfish-actions.pod:1798
21661 #, no-wrap
21662 msgid ""
21663 " inspect-get-major-version root\n"
21664 "\n"
21665 msgstr ""
21666
21667 # type: =head2
21668 #: ../fish/guestfish-actions.pod:1817
21669 msgid "inspect-get-minor-version"
21670 msgstr ""
21671
21672 # type: verbatim
21673 #: ../fish/guestfish-actions.pod:1819
21674 #, no-wrap
21675 msgid ""
21676 " inspect-get-minor-version root\n"
21677 "\n"
21678 msgstr ""
21679
21680 # type: textblock
21681 #: ../fish/guestfish-actions.pod:1829
21682 msgid ""
21683 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21684 "get-major-version>."
21685 msgstr ""
21686
21687 # type: =head2
21688 #: ../fish/guestfish-actions.pod:1832
21689 msgid "inspect-get-mountpoints"
21690 msgstr ""
21691
21692 # type: verbatim
21693 #: ../fish/guestfish-actions.pod:1834
21694 #, no-wrap
21695 msgid ""
21696 " inspect-get-mountpoints root\n"
21697 "\n"
21698 msgstr ""
21699
21700 # type: textblock
21701 #: ../fish/guestfish-actions.pod:1852
21702 msgid ""
21703 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21704 "get-filesystems>."
21705 msgstr ""
21706
21707 # type: =head2
21708 #: ../fish/guestfish-actions.pod:1855
21709 msgid "inspect-get-package-format"
21710 msgstr ""
21711
21712 # type: verbatim
21713 #: ../fish/guestfish-actions.pod:1857
21714 #, no-wrap
21715 msgid ""
21716 " inspect-get-package-format root\n"
21717 "\n"
21718 msgstr ""
21719
21720 # type: textblock
21721 #: ../fish/guestfish-actions.pod:1862
21722 msgid ""
21723 "This function and L</inspect-get-package-management> return the package "
21724 "format and package management tool used by the inspected operating system.  "
21725 "For example for Fedora these functions would return C<rpm> (package format) "
21726 "and C<yum> (package management)."
21727 msgstr ""
21728
21729 # type: =head2
21730 #: ../fish/guestfish-actions.pod:1877
21731 msgid "inspect-get-package-management"
21732 msgstr ""
21733
21734 # type: verbatim
21735 #: ../fish/guestfish-actions.pod:1879
21736 #, no-wrap
21737 msgid ""
21738 " inspect-get-package-management root\n"
21739 "\n"
21740 msgstr ""
21741
21742 # type: textblock
21743 #: ../fish/guestfish-actions.pod:1884
21744 msgid ""
21745 "L</inspect-get-package-format> and this function return the package format "
21746 "and package management tool used by the inspected operating system.  For "
21747 "example for Fedora these functions would return C<rpm> (package format) and "
21748 "C<yum> (package management)."
21749 msgstr ""
21750
21751 # type: =head2
21752 #: ../fish/guestfish-actions.pod:1901
21753 msgid "inspect-get-product-name"
21754 msgstr ""
21755
21756 # type: verbatim
21757 #: ../fish/guestfish-actions.pod:1903
21758 #, no-wrap
21759 msgid ""
21760 " inspect-get-product-name root\n"
21761 "\n"
21762 msgstr ""
21763
21764 # type: =head2
21765 #: ../fish/guestfish-actions.pod:1918
21766 msgid "inspect-get-roots"
21767 msgstr ""
21768
21769 # type: verbatim
21770 #: ../fish/guestfish-actions.pod:1920
21771 #, no-wrap
21772 msgid ""
21773 " inspect-get-roots\n"
21774 "\n"
21775 msgstr ""
21776
21777 # type: textblock
21778 #: ../fish/guestfish-actions.pod:1922
21779 msgid ""
21780 "This function is a convenient way to get the list of root devices, as "
21781 "returned from a previous call to L</inspect-os>, but without redoing the "
21782 "whole inspection process."
21783 msgstr ""
21784
21785 # type: textblock
21786 #: ../fish/guestfish-actions.pod:1926
21787 msgid ""
21788 "This returns an empty list if either no root devices were found or the "
21789 "caller has not called L</inspect-os>."
21790 msgstr ""
21791
21792 # type: =head2
21793 #: ../fish/guestfish-actions.pod:1931
21794 msgid "inspect-get-type"
21795 msgstr ""
21796
21797 # type: verbatim
21798 #: ../fish/guestfish-actions.pod:1933
21799 #, no-wrap
21800 msgid ""
21801 " inspect-get-type root\n"
21802 "\n"
21803 msgstr ""
21804
21805 # type: =head2
21806 #: ../fish/guestfish-actions.pod:1966
21807 msgid "inspect-get-windows-systemroot"
21808 msgstr ""
21809
21810 # type: verbatim
21811 #: ../fish/guestfish-actions.pod:1968
21812 #, no-wrap
21813 msgid ""
21814 " inspect-get-windows-systemroot root\n"
21815 "\n"
21816 msgstr ""
21817
21818 # type: =head2
21819 #: ../fish/guestfish-actions.pod:1982
21820 msgid "inspect-list-applications"
21821 msgstr ""
21822
21823 # type: verbatim
21824 #: ../fish/guestfish-actions.pod:1984
21825 #, no-wrap
21826 msgid ""
21827 " inspect-list-applications root\n"
21828 "\n"
21829 msgstr ""
21830
21831 # type: textblock
21832 #: ../fish/guestfish-actions.pod:1991
21833 msgid ""
21834 "I<Note:> This call works differently from other parts of the inspection "
21835 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21836 "then mount up the disks, before calling this.  Listing applications is a "
21837 "significantly more difficult operation which requires access to the full "
21838 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21839 "are just returning data cached in the libguestfs handle, this call actually "
21840 "reads parts of the mounted filesystems during the call."
21841 msgstr ""
21842
21843 # type: =head2
21844 #: ../fish/guestfish-actions.pod:2081
21845 msgid "inspect-os"
21846 msgstr ""
21847
21848 # type: verbatim
21849 #: ../fish/guestfish-actions.pod:2083
21850 #, no-wrap
21851 msgid ""
21852 " inspect-os\n"
21853 "\n"
21854 msgstr ""
21855
21856 # type: textblock
21857 #: ../fish/guestfish-actions.pod:2098
21858 msgid ""
21859 "You can pass the root string(s) returned to other L</inspect-get-*> "
21860 "functions in order to query further information about each operating system, "
21861 "such as the name and version."
21862 msgstr ""
21863
21864 # type: textblock
21865 #: ../fish/guestfish-actions.pod:2103
21866 msgid ""
21867 "This function uses other libguestfs features such as L</mount-ro> and L</"
21868 "umount-all> in order to mount and unmount filesystems and look at the "
21869 "contents.  This should be called with no disks currently mounted.  The "
21870 "function may also use Augeas, so any existing Augeas handle will be closed."
21871 msgstr ""
21872
21873 # type: textblock
21874 #: ../fish/guestfish-actions.pod:2115 ../fish/guestfish-actions.pod:2291
21875 #: ../fish/guestfish-actions.pod:2337
21876 msgid "See also L</list-filesystems>."
21877 msgstr ""
21878
21879 # type: =head2
21880 #: ../fish/guestfish-actions.pod:2117
21881 msgid "is-blockdev"
21882 msgstr ""
21883
21884 # type: verbatim
21885 #: ../fish/guestfish-actions.pod:2119
21886 #, no-wrap
21887 msgid ""
21888 " is-blockdev path\n"
21889 "\n"
21890 msgstr ""
21891
21892 # type: textblock
21893 #: ../fish/guestfish-actions.pod:2124 ../fish/guestfish-actions.pod:2142
21894 #: ../fish/guestfish-actions.pod:2161 ../fish/guestfish-actions.pod:2170
21895 #: ../fish/guestfish-actions.pod:2180 ../fish/guestfish-actions.pod:2214
21896 #: ../fish/guestfish-actions.pod:2223
21897 msgid "See also L</stat>."
21898 msgstr ""
21899
21900 # type: =head2
21901 #: ../fish/guestfish-actions.pod:2126
21902 msgid "is-busy"
21903 msgstr ""
21904
21905 # type: verbatim
21906 #: ../fish/guestfish-actions.pod:2128
21907 #, no-wrap
21908 msgid ""
21909 " is-busy\n"
21910 "\n"
21911 msgstr ""
21912
21913 # type: =head2
21914 #: ../fish/guestfish-actions.pod:2135
21915 msgid "is-chardev"
21916 msgstr ""
21917
21918 # type: verbatim
21919 #: ../fish/guestfish-actions.pod:2137
21920 #, no-wrap
21921 msgid ""
21922 " is-chardev path\n"
21923 "\n"
21924 msgstr ""
21925
21926 # type: =head2
21927 #: ../fish/guestfish-actions.pod:2144
21928 msgid "is-config"
21929 msgstr ""
21930
21931 # type: verbatim
21932 #: ../fish/guestfish-actions.pod:2146
21933 #, no-wrap
21934 msgid ""
21935 " is-config\n"
21936 "\n"
21937 msgstr ""
21938
21939 # type: =head2
21940 #: ../fish/guestfish-actions.pod:2153
21941 msgid "is-dir"
21942 msgstr ""
21943
21944 # type: verbatim
21945 #: ../fish/guestfish-actions.pod:2155
21946 #, no-wrap
21947 msgid ""
21948 " is-dir path\n"
21949 "\n"
21950 msgstr ""
21951
21952 # type: =head2
21953 #: ../fish/guestfish-actions.pod:2163
21954 msgid "is-fifo"
21955 msgstr ""
21956
21957 # type: verbatim
21958 #: ../fish/guestfish-actions.pod:2165
21959 #, no-wrap
21960 msgid ""
21961 " is-fifo path\n"
21962 "\n"
21963 msgstr ""
21964
21965 # type: =head2
21966 #: ../fish/guestfish-actions.pod:2172
21967 msgid "is-file"
21968 msgstr ""
21969
21970 # type: verbatim
21971 #: ../fish/guestfish-actions.pod:2174
21972 #, no-wrap
21973 msgid ""
21974 " is-file path\n"
21975 "\n"
21976 msgstr ""
21977
21978 # type: =head2
21979 #: ../fish/guestfish-actions.pod:2182
21980 msgid "is-launching"
21981 msgstr ""
21982
21983 # type: verbatim
21984 #: ../fish/guestfish-actions.pod:2184
21985 #, no-wrap
21986 msgid ""
21987 " is-launching\n"
21988 "\n"
21989 msgstr ""
21990
21991 # type: =head2
21992 #: ../fish/guestfish-actions.pod:2191
21993 msgid "is-lv"
21994 msgstr ""
21995
21996 # type: verbatim
21997 #: ../fish/guestfish-actions.pod:2193
21998 #, no-wrap
21999 msgid ""
22000 " is-lv device\n"
22001 "\n"
22002 msgstr ""
22003
22004 # type: =head2
22005 #: ../fish/guestfish-actions.pod:2198
22006 msgid "is-ready"
22007 msgstr ""
22008
22009 # type: verbatim
22010 #: ../fish/guestfish-actions.pod:2200
22011 #, no-wrap
22012 msgid ""
22013 " is-ready\n"
22014 "\n"
22015 msgstr ""
22016
22017 # type: =head2
22018 #: ../fish/guestfish-actions.pod:2207
22019 msgid "is-socket"
22020 msgstr ""
22021
22022 # type: verbatim
22023 #: ../fish/guestfish-actions.pod:2209
22024 #, no-wrap
22025 msgid ""
22026 " is-socket path\n"
22027 "\n"
22028 msgstr ""
22029
22030 # type: =head2
22031 #: ../fish/guestfish-actions.pod:2216
22032 msgid "is-symlink"
22033 msgstr ""
22034
22035 # type: verbatim
22036 #: ../fish/guestfish-actions.pod:2218
22037 #, no-wrap
22038 msgid ""
22039 " is-symlink path\n"
22040 "\n"
22041 msgstr ""
22042
22043 # type: =head2
22044 #: ../fish/guestfish-actions.pod:2225
22045 msgid "kill-subprocess"
22046 msgstr ""
22047
22048 # type: verbatim
22049 #: ../fish/guestfish-actions.pod:2227
22050 #, no-wrap
22051 msgid ""
22052 " kill-subprocess\n"
22053 "\n"
22054 msgstr ""
22055
22056 # type: =head2
22057 #: ../fish/guestfish-actions.pod:2231
22058 msgid "launch"
22059 msgstr ""
22060
22061 # type: =head2
22062 #: ../fish/guestfish-actions.pod:2233
22063 msgid "run"
22064 msgstr ""
22065
22066 # type: verbatim
22067 #: ../fish/guestfish-actions.pod:2235
22068 #, no-wrap
22069 msgid ""
22070 " launch\n"
22071 "\n"
22072 msgstr ""
22073
22074 # type: =head2
22075 #: ../fish/guestfish-actions.pod:2243
22076 msgid "lchown"
22077 msgstr ""
22078
22079 # type: verbatim
22080 #: ../fish/guestfish-actions.pod:2245
22081 #, no-wrap
22082 msgid ""
22083 " lchown owner group path\n"
22084 "\n"
22085 msgstr ""
22086
22087 # type: textblock
22088 #: ../fish/guestfish-actions.pod:2247
22089 msgid ""
22090 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
22091 "chown> but if C<path> is a symlink then the link itself is changed, not the "
22092 "target."
22093 msgstr ""
22094
22095 # type: =head2
22096 #: ../fish/guestfish-actions.pod:2255
22097 msgid "lgetxattr"
22098 msgstr ""
22099
22100 # type: verbatim
22101 #: ../fish/guestfish-actions.pod:2257
22102 #, no-wrap
22103 msgid ""
22104 " lgetxattr path name\n"
22105 "\n"
22106 msgstr ""
22107
22108 # type: textblock
22109 #: ../fish/guestfish-actions.pod:2273
22110 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
22111 msgstr ""
22112
22113 # type: =head2
22114 #: ../fish/guestfish-actions.pod:2275
22115 msgid "lgetxattrs"
22116 msgstr ""
22117
22118 # type: verbatim
22119 #: ../fish/guestfish-actions.pod:2277
22120 #, no-wrap
22121 msgid ""
22122 " lgetxattrs path\n"
22123 "\n"
22124 msgstr ""
22125
22126 # type: textblock
22127 #: ../fish/guestfish-actions.pod:2279
22128 msgid ""
22129 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
22130 "it returns the extended attributes of the link itself."
22131 msgstr ""
22132
22133 # type: =head2
22134 #: ../fish/guestfish-actions.pod:2283
22135 msgid "list-devices"
22136 msgstr ""
22137
22138 # type: verbatim
22139 #: ../fish/guestfish-actions.pod:2285
22140 #, no-wrap
22141 msgid ""
22142 " list-devices\n"
22143 "\n"
22144 msgstr ""
22145
22146 # type: =head2
22147 #: ../fish/guestfish-actions.pod:2293
22148 msgid "list-filesystems"
22149 msgstr ""
22150
22151 # type: verbatim
22152 #: ../fish/guestfish-actions.pod:2295
22153 #, no-wrap
22154 msgid ""
22155 " list-filesystems\n"
22156 "\n"
22157 msgstr ""
22158
22159 # type: textblock
22160 #: ../fish/guestfish-actions.pod:2314
22161 msgid ""
22162 "This command runs other libguestfs commands, which might include L</mount> "
22163 "and L</umount>, and therefore you should use this soon after launch and only "
22164 "when nothing is mounted."
22165 msgstr ""
22166
22167 # type: textblock
22168 #: ../fish/guestfish-actions.pod:2318
22169 msgid ""
22170 "Not all of the filesystems returned will be mountable.  In particular, swap "
22171 "partitions are returned in the list.  Also this command does not check that "
22172 "each filesystem found is valid and mountable, and some filesystems might be "
22173 "mountable but require special options.  Filesystems may not all belong to a "
22174 "single logical operating system (use L</inspect-os> to look for OSes)."
22175 msgstr ""
22176
22177 # type: =head2
22178 #: ../fish/guestfish-actions.pod:2326
22179 msgid "list-partitions"
22180 msgstr ""
22181
22182 # type: verbatim
22183 #: ../fish/guestfish-actions.pod:2328
22184 #, no-wrap
22185 msgid ""
22186 " list-partitions\n"
22187 "\n"
22188 msgstr ""
22189
22190 # type: textblock
22191 #: ../fish/guestfish-actions.pod:2334
22192 msgid ""
22193 "This does not return logical volumes.  For that you will need to call L</"
22194 "lvs>."
22195 msgstr ""
22196
22197 # type: =head2
22198 #: ../fish/guestfish-actions.pod:2339
22199 msgid "ll"
22200 msgstr ""
22201
22202 # type: verbatim
22203 #: ../fish/guestfish-actions.pod:2341
22204 #, no-wrap
22205 msgid ""
22206 " ll directory\n"
22207 "\n"
22208 msgstr ""
22209
22210 # type: =head2
22211 #: ../fish/guestfish-actions.pod:2349
22212 msgid "ln"
22213 msgstr ""
22214
22215 # type: verbatim
22216 #: ../fish/guestfish-actions.pod:2351
22217 #, no-wrap
22218 msgid ""
22219 " ln target linkname\n"
22220 "\n"
22221 msgstr ""
22222
22223 # type: =head2
22224 #: ../fish/guestfish-actions.pod:2355
22225 msgid "ln-f"
22226 msgstr ""
22227
22228 # type: verbatim
22229 #: ../fish/guestfish-actions.pod:2357
22230 #, no-wrap
22231 msgid ""
22232 " ln-f target linkname\n"
22233 "\n"
22234 msgstr ""
22235
22236 # type: =head2
22237 #: ../fish/guestfish-actions.pod:2362
22238 msgid "ln-s"
22239 msgstr ""
22240
22241 # type: verbatim
22242 #: ../fish/guestfish-actions.pod:2364
22243 #, no-wrap
22244 msgid ""
22245 " ln-s target linkname\n"
22246 "\n"
22247 msgstr ""
22248
22249 # type: =head2
22250 #: ../fish/guestfish-actions.pod:2368
22251 msgid "ln-sf"
22252 msgstr ""
22253
22254 # type: verbatim
22255 #: ../fish/guestfish-actions.pod:2370
22256 #, no-wrap
22257 msgid ""
22258 " ln-sf target linkname\n"
22259 "\n"
22260 msgstr ""
22261
22262 # type: =head2
22263 #: ../fish/guestfish-actions.pod:2375
22264 msgid "lremovexattr"
22265 msgstr ""
22266
22267 # type: verbatim
22268 #: ../fish/guestfish-actions.pod:2377
22269 #, no-wrap
22270 msgid ""
22271 " lremovexattr xattr path\n"
22272 "\n"
22273 msgstr ""
22274
22275 # type: textblock
22276 #: ../fish/guestfish-actions.pod:2379
22277 msgid ""
22278 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
22279 "it removes an extended attribute of the link itself."
22280 msgstr ""
22281
22282 # type: =head2
22283 #: ../fish/guestfish-actions.pod:2383
22284 msgid "ls"
22285 msgstr ""
22286
22287 # type: verbatim
22288 #: ../fish/guestfish-actions.pod:2385
22289 #, no-wrap
22290 msgid ""
22291 " ls directory\n"
22292 "\n"
22293 msgstr ""
22294
22295 # type: textblock
22296 #: ../fish/guestfish-actions.pod:2391
22297 msgid ""
22298 "This command is mostly useful for interactive sessions.  Programs should "
22299 "probably use L</readdir> instead."
22300 msgstr ""
22301
22302 # type: =head2
22303 #: ../fish/guestfish-actions.pod:2394
22304 msgid "lsetxattr"
22305 msgstr ""
22306
22307 # type: verbatim
22308 #: ../fish/guestfish-actions.pod:2396
22309 #, no-wrap
22310 msgid ""
22311 " lsetxattr xattr val vallen path\n"
22312 "\n"
22313 msgstr ""
22314
22315 # type: textblock
22316 #: ../fish/guestfish-actions.pod:2398
22317 msgid ""
22318 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
22319 "sets an extended attribute of the link itself."
22320 msgstr ""
22321
22322 # type: =head2
22323 #: ../fish/guestfish-actions.pod:2402
22324 msgid "lstat"
22325 msgstr ""
22326
22327 # type: verbatim
22328 #: ../fish/guestfish-actions.pod:2404
22329 #, no-wrap
22330 msgid ""
22331 " lstat path\n"
22332 "\n"
22333 msgstr ""
22334
22335 # type: textblock
22336 #: ../fish/guestfish-actions.pod:2408
22337 msgid ""
22338 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
22339 "the link is stat-ed, not the file it refers to."
22340 msgstr ""
22341
22342 # type: =head2
22343 #: ../fish/guestfish-actions.pod:2414
22344 msgid "lstatlist"
22345 msgstr ""
22346
22347 # type: verbatim
22348 #: ../fish/guestfish-actions.pod:2416
22349 #, no-wrap
22350 msgid ""
22351 " lstatlist path 'names ...'\n"
22352 "\n"
22353 msgstr ""
22354
22355 # type: textblock
22356 #: ../fish/guestfish-actions.pod:2418
22357 msgid ""
22358 "This call allows you to perform the L</lstat> operation on multiple files, "
22359 "where all files are in the directory C<path>.  C<names> is the list of files "
22360 "from this directory."
22361 msgstr ""
22362
22363 # type: textblock
22364 #: ../fish/guestfish-actions.pod:2427
22365 msgid ""
22366 "This call is intended for programs that want to efficiently list a directory "
22367 "contents without making many round-trips.  See also L</lxattrlist> for a "
22368 "similarly efficient call for getting extended attributes.  Very long "
22369 "directory listings might cause the protocol message size to be exceeded, "
22370 "causing this call to fail.  The caller must split up such requests into "
22371 "smaller groups of names."
22372 msgstr ""
22373
22374 # type: =head2
22375 #: ../fish/guestfish-actions.pod:2435
22376 msgid "luks-add-key"
22377 msgstr ""
22378
22379 # type: verbatim
22380 #: ../fish/guestfish-actions.pod:2437
22381 #, no-wrap
22382 msgid ""
22383 " luks-add-key device keyslot\n"
22384 "\n"
22385 msgstr ""
22386
22387 # type: textblock
22388 #: ../fish/guestfish-actions.pod:2444
22389 msgid ""
22390 "Note that if C<keyslot> already contains a key, then this command will "
22391 "fail.  You have to use L</luks-kill-slot> first to remove that key."
22392 msgstr ""
22393
22394 # type: textblock
22395 #: ../fish/guestfish-actions.pod:2448 ../fish/guestfish-actions.pod:2470
22396 #: ../fish/guestfish-actions.pod:2483 ../fish/guestfish-actions.pod:2497
22397 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2530
22398 msgid ""
22399 "This command has one or more key or passphrase parameters.  Guestfish will "
22400 "prompt for these separately."
22401 msgstr ""
22402
22403 # type: =head2
22404 #: ../fish/guestfish-actions.pod:2451
22405 msgid "luks-close"
22406 msgstr ""
22407
22408 # type: verbatim
22409 #: ../fish/guestfish-actions.pod:2453
22410 #, no-wrap
22411 msgid ""
22412 " luks-close device\n"
22413 "\n"
22414 msgstr ""
22415
22416 # type: textblock
22417 #: ../fish/guestfish-actions.pod:2455
22418 msgid ""
22419 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
22420 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
22421 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
22422 "block device."
22423 msgstr ""
22424
22425 # type: =head2
22426 #: ../fish/guestfish-actions.pod:2461
22427 msgid "luks-format"
22428 msgstr ""
22429
22430 # type: verbatim
22431 #: ../fish/guestfish-actions.pod:2463
22432 #, no-wrap
22433 msgid ""
22434 " luks-format device keyslot\n"
22435 "\n"
22436 msgstr ""
22437
22438 # type: =head2
22439 #: ../fish/guestfish-actions.pod:2476
22440 msgid "luks-format-cipher"
22441 msgstr ""
22442
22443 # type: verbatim
22444 #: ../fish/guestfish-actions.pod:2478
22445 #, no-wrap
22446 msgid ""
22447 " luks-format-cipher device keyslot cipher\n"
22448 "\n"
22449 msgstr ""
22450
22451 # type: textblock
22452 #: ../fish/guestfish-actions.pod:2480
22453 msgid ""
22454 "This command is the same as L</luks-format> but it also allows you to set "
22455 "the C<cipher> used."
22456 msgstr ""
22457
22458 # type: =head2
22459 #: ../fish/guestfish-actions.pod:2489
22460 msgid "luks-kill-slot"
22461 msgstr ""
22462
22463 # type: verbatim
22464 #: ../fish/guestfish-actions.pod:2491
22465 #, no-wrap
22466 msgid ""
22467 " luks-kill-slot device keyslot\n"
22468 "\n"
22469 msgstr ""
22470
22471 # type: =head2
22472 #: ../fish/guestfish-actions.pod:2500
22473 msgid "luks-open"
22474 msgstr ""
22475
22476 # type: verbatim
22477 #: ../fish/guestfish-actions.pod:2502
22478 #, no-wrap
22479 msgid ""
22480 " luks-open device mapname\n"
22481 "\n"
22482 msgstr ""
22483
22484 # type: textblock
22485 #: ../fish/guestfish-actions.pod:2516
22486 msgid ""
22487 "If this block device contains LVM volume groups, then calling L</vgscan> "
22488 "followed by L</vg-activate-all> will make them visible."
22489 msgstr ""
22490
22491 # type: =head2
22492 #: ../fish/guestfish-actions.pod:2523
22493 msgid "luks-open-ro"
22494 msgstr ""
22495
22496 # type: verbatim
22497 #: ../fish/guestfish-actions.pod:2525
22498 #, no-wrap
22499 msgid ""
22500 " luks-open-ro device mapname\n"
22501 "\n"
22502 msgstr ""
22503
22504 # type: textblock
22505 #: ../fish/guestfish-actions.pod:2527
22506 msgid ""
22507 "This is the same as L</luks-open> except that a read-only mapping is created."
22508 msgstr ""
22509
22510 # type: =head2
22511 #: ../fish/guestfish-actions.pod:2533
22512 msgid "lvcreate"
22513 msgstr ""
22514
22515 # type: verbatim
22516 #: ../fish/guestfish-actions.pod:2535
22517 #, no-wrap
22518 msgid ""
22519 " lvcreate logvol volgroup mbytes\n"
22520 "\n"
22521 msgstr ""
22522
22523 # type: =head2
22524 #: ../fish/guestfish-actions.pod:2540
22525 msgid "lvm-canonical-lv-name"
22526 msgstr ""
22527
22528 # type: verbatim
22529 #: ../fish/guestfish-actions.pod:2542
22530 #, no-wrap
22531 msgid ""
22532 " lvm-canonical-lv-name lvname\n"
22533 "\n"
22534 msgstr ""
22535
22536 # type: textblock
22537 #: ../fish/guestfish-actions.pod:2551
22538 msgid "See also L</is-lv>."
22539 msgstr ""
22540
22541 # type: =head2
22542 #: ../fish/guestfish-actions.pod:2553
22543 msgid "lvm-clear-filter"
22544 msgstr ""
22545
22546 # type: verbatim
22547 #: ../fish/guestfish-actions.pod:2555
22548 #, no-wrap
22549 msgid ""
22550 " lvm-clear-filter\n"
22551 "\n"
22552 msgstr ""
22553
22554 # type: textblock
22555 #: ../fish/guestfish-actions.pod:2557
22556 msgid ""
22557 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22558 "block device."
22559 msgstr ""
22560
22561 # type: =head2
22562 #: ../fish/guestfish-actions.pod:2563
22563 msgid "lvm-remove-all"
22564 msgstr ""
22565
22566 # type: verbatim
22567 #: ../fish/guestfish-actions.pod:2565
22568 #, no-wrap
22569 msgid ""
22570 " lvm-remove-all\n"
22571 "\n"
22572 msgstr ""
22573
22574 # type: =head2
22575 #: ../fish/guestfish-actions.pod:2573
22576 msgid "lvm-set-filter"
22577 msgstr ""
22578
22579 # type: verbatim
22580 #: ../fish/guestfish-actions.pod:2575
22581 #, no-wrap
22582 msgid ""
22583 " lvm-set-filter 'devices ...'\n"
22584 "\n"
22585 msgstr ""
22586
22587 # type: =head2
22588 #: ../fish/guestfish-actions.pod:2600
22589 msgid "lvremove"
22590 msgstr ""
22591
22592 # type: verbatim
22593 #: ../fish/guestfish-actions.pod:2602
22594 #, no-wrap
22595 msgid ""
22596 " lvremove device\n"
22597 "\n"
22598 msgstr ""
22599
22600 # type: =head2
22601 #: ../fish/guestfish-actions.pod:2610
22602 msgid "lvrename"
22603 msgstr ""
22604
22605 # type: verbatim
22606 #: ../fish/guestfish-actions.pod:2612
22607 #, no-wrap
22608 msgid ""
22609 " lvrename logvol newlogvol\n"
22610 "\n"
22611 msgstr ""
22612
22613 # type: =head2
22614 #: ../fish/guestfish-actions.pod:2616
22615 msgid "lvresize"
22616 msgstr ""
22617
22618 # type: verbatim
22619 #: ../fish/guestfish-actions.pod:2618
22620 #, no-wrap
22621 msgid ""
22622 " lvresize device mbytes\n"
22623 "\n"
22624 msgstr ""
22625
22626 # type: =head2
22627 #: ../fish/guestfish-actions.pod:2624
22628 msgid "lvresize-free"
22629 msgstr ""
22630
22631 # type: verbatim
22632 #: ../fish/guestfish-actions.pod:2626
22633 #, no-wrap
22634 msgid ""
22635 " lvresize-free lv percent\n"
22636 "\n"
22637 msgstr ""
22638
22639 # type: =head2
22640 #: ../fish/guestfish-actions.pod:2634
22641 msgid "lvs"
22642 msgstr ""
22643
22644 # type: verbatim
22645 #: ../fish/guestfish-actions.pod:2636
22646 #, no-wrap
22647 msgid ""
22648 " lvs\n"
22649 "\n"
22650 msgstr ""
22651
22652 # type: textblock
22653 #: ../fish/guestfish-actions.pod:2644
22654 msgid "See also L</lvs-full>, L</list-filesystems>."
22655 msgstr ""
22656
22657 # type: =head2
22658 #: ../fish/guestfish-actions.pod:2646
22659 msgid "lvs-full"
22660 msgstr ""
22661
22662 # type: verbatim
22663 #: ../fish/guestfish-actions.pod:2648
22664 #, no-wrap
22665 msgid ""
22666 " lvs-full\n"
22667 "\n"
22668 msgstr ""
22669
22670 # type: =head2
22671 #: ../fish/guestfish-actions.pod:2653
22672 msgid "lvuuid"
22673 msgstr ""
22674
22675 # type: verbatim
22676 #: ../fish/guestfish-actions.pod:2655
22677 #, no-wrap
22678 msgid ""
22679 " lvuuid device\n"
22680 "\n"
22681 msgstr ""
22682
22683 # type: =head2
22684 #: ../fish/guestfish-actions.pod:2659
22685 msgid "lxattrlist"
22686 msgstr ""
22687
22688 # type: verbatim
22689 #: ../fish/guestfish-actions.pod:2661
22690 #, no-wrap
22691 msgid ""
22692 " lxattrlist path 'names ...'\n"
22693 "\n"
22694 msgstr ""
22695
22696 # type: textblock
22697 #: ../fish/guestfish-actions.pod:2677
22698 msgid ""
22699 "This call is intended for programs that want to efficiently list a directory "
22700 "contents without making many round-trips.  See also L</lstatlist> for a "
22701 "similarly efficient call for getting standard stats.  Very long directory "
22702 "listings might cause the protocol message size to be exceeded, causing this "
22703 "call to fail.  The caller must split up such requests into smaller groups of "
22704 "names."
22705 msgstr ""
22706
22707 # type: =head2
22708 #: ../fish/guestfish-actions.pod:2685
22709 msgid "mkdir"
22710 msgstr ""
22711
22712 # type: verbatim
22713 #: ../fish/guestfish-actions.pod:2687
22714 #, no-wrap
22715 msgid ""
22716 " mkdir path\n"
22717 "\n"
22718 msgstr ""
22719
22720 # type: =head2
22721 #: ../fish/guestfish-actions.pod:2691
22722 msgid "mkdir-mode"
22723 msgstr ""
22724
22725 # type: verbatim
22726 #: ../fish/guestfish-actions.pod:2693
22727 #, no-wrap
22728 msgid ""
22729 " mkdir-mode path mode\n"
22730 "\n"
22731 msgstr ""
22732
22733 # type: textblock
22734 #: ../fish/guestfish-actions.pod:2702
22735 msgid "See also L</mkdir>, L</umask>"
22736 msgstr ""
22737
22738 # type: =head2
22739 #: ../fish/guestfish-actions.pod:2704
22740 msgid "mkdir-p"
22741 msgstr ""
22742
22743 # type: verbatim
22744 #: ../fish/guestfish-actions.pod:2706
22745 #, no-wrap
22746 msgid ""
22747 " mkdir-p path\n"
22748 "\n"
22749 msgstr ""
22750
22751 # type: =head2
22752 #: ../fish/guestfish-actions.pod:2711
22753 msgid "mkdtemp"
22754 msgstr ""
22755
22756 # type: verbatim
22757 #: ../fish/guestfish-actions.pod:2713
22758 #, no-wrap
22759 msgid ""
22760 " mkdtemp template\n"
22761 "\n"
22762 msgstr ""
22763
22764 # type: =head2
22765 #: ../fish/guestfish-actions.pod:2734
22766 msgid "mke2fs-J"
22767 msgstr ""
22768
22769 # type: verbatim
22770 #: ../fish/guestfish-actions.pod:2736
22771 #, no-wrap
22772 msgid ""
22773 " mke2fs-J fstype blocksize device journal\n"
22774 "\n"
22775 msgstr ""
22776
22777 # type: textblock
22778 #: ../fish/guestfish-actions.pod:2744
22779 msgid "See also L</mke2journal>."
22780 msgstr ""
22781
22782 # type: =head2
22783 #: ../fish/guestfish-actions.pod:2746
22784 msgid "mke2fs-JL"
22785 msgstr ""
22786
22787 # type: verbatim
22788 #: ../fish/guestfish-actions.pod:2748
22789 #, no-wrap
22790 msgid ""
22791 " mke2fs-JL fstype blocksize device label\n"
22792 "\n"
22793 msgstr ""
22794
22795 # type: textblock
22796 #: ../fish/guestfish-actions.pod:2753
22797 msgid "See also L</mke2journal-L>."
22798 msgstr ""
22799
22800 # type: =head2
22801 #: ../fish/guestfish-actions.pod:2755
22802 msgid "mke2fs-JU"
22803 msgstr ""
22804
22805 # type: verbatim
22806 #: ../fish/guestfish-actions.pod:2757
22807 #, no-wrap
22808 msgid ""
22809 " mke2fs-JU fstype blocksize device uuid\n"
22810 "\n"
22811 msgstr ""
22812
22813 # type: textblock
22814 #: ../fish/guestfish-actions.pod:2762
22815 msgid "See also L</mke2journal-U>."
22816 msgstr ""
22817
22818 # type: =head2
22819 #: ../fish/guestfish-actions.pod:2764
22820 msgid "mke2journal"
22821 msgstr ""
22822
22823 # type: verbatim
22824 #: ../fish/guestfish-actions.pod:2766
22825 #, no-wrap
22826 msgid ""
22827 " mke2journal blocksize device\n"
22828 "\n"
22829 msgstr ""
22830
22831 # type: =head2
22832 #: ../fish/guestfish-actions.pod:2773
22833 msgid "mke2journal-L"
22834 msgstr ""
22835
22836 # type: verbatim
22837 #: ../fish/guestfish-actions.pod:2775
22838 #, no-wrap
22839 msgid ""
22840 " mke2journal-L blocksize label device\n"
22841 "\n"
22842 msgstr ""
22843
22844 # type: =head2
22845 #: ../fish/guestfish-actions.pod:2779
22846 msgid "mke2journal-U"
22847 msgstr ""
22848
22849 # type: verbatim
22850 #: ../fish/guestfish-actions.pod:2781
22851 #, no-wrap
22852 msgid ""
22853 " mke2journal-U blocksize uuid device\n"
22854 "\n"
22855 msgstr ""
22856
22857 # type: =head2
22858 #: ../fish/guestfish-actions.pod:2785
22859 msgid "mkfifo"
22860 msgstr ""
22861
22862 # type: verbatim
22863 #: ../fish/guestfish-actions.pod:2787
22864 #, no-wrap
22865 msgid ""
22866 " mkfifo mode path\n"
22867 "\n"
22868 msgstr ""
22869
22870 # type: textblock
22871 #: ../fish/guestfish-actions.pod:2789
22872 msgid ""
22873 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22874 "is just a convenient wrapper around L</mknod>."
22875 msgstr ""
22876
22877 # type: =head2
22878 #: ../fish/guestfish-actions.pod:2795
22879 msgid "mkfs"
22880 msgstr ""
22881
22882 # type: verbatim
22883 #: ../fish/guestfish-actions.pod:2797
22884 #, no-wrap
22885 msgid ""
22886 " mkfs fstype device\n"
22887 "\n"
22888 msgstr ""
22889
22890 # type: =head2
22891 #: ../fish/guestfish-actions.pod:2803
22892 msgid "mkfs-b"
22893 msgstr ""
22894
22895 # type: verbatim
22896 #: ../fish/guestfish-actions.pod:2805
22897 #, no-wrap
22898 msgid ""
22899 " mkfs-b fstype blocksize device\n"
22900 "\n"
22901 msgstr ""
22902
22903 # type: textblock
22904 #: ../fish/guestfish-actions.pod:2807
22905 msgid ""
22906 "This call is similar to L</mkfs>, but it allows you to control the block "
22907 "size of the resulting filesystem.  Supported block sizes depend on the "
22908 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22909 msgstr ""
22910
22911 # type: =head2
22912 #: ../fish/guestfish-actions.pod:2822
22913 msgid "mkfs-opts"
22914 msgstr ""
22915
22916 # type: verbatim
22917 #: ../fish/guestfish-actions.pod:2824
22918 #, no-wrap
22919 msgid ""
22920 " mkfs-opts fstype device [blocksize:..]\n"
22921 "\n"
22922 msgstr ""
22923
22924 # type: =head2
22925 #: ../fish/guestfish-actions.pod:2846
22926 msgid "mkmountpoint"
22927 msgstr ""
22928
22929 # type: verbatim
22930 #: ../fish/guestfish-actions.pod:2848
22931 #, no-wrap
22932 msgid ""
22933 " mkmountpoint exemptpath\n"
22934 "\n"
22935 msgstr ""
22936
22937 # type: textblock
22938 #: ../fish/guestfish-actions.pod:2850
22939 msgid ""
22940 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22941 "to create extra mountpoints before mounting the first filesystem."
22942 msgstr ""
22943
22944 # type: textblock
22945 #: ../fish/guestfish-actions.pod:2874
22946 msgid ""
22947 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22948 "unexpected errors if you try to mix these calls.  It is safest to manually "
22949 "unmount filesystems and remove mountpoints after use."
22950 msgstr ""
22951
22952 # type: textblock
22953 #: ../fish/guestfish-actions.pod:2878
22954 msgid ""
22955 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22956 "for this to work for manual mountpoints, you must ensure that the innermost "
22957 "mountpoints have the longest pathnames, as in the example code above."
22958 msgstr ""
22959
22960 # type: textblock
22961 #: ../fish/guestfish-actions.pod:2885
22962 msgid ""
22963 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22964 "that L</umount-all> is called when the handle is closed which can also "
22965 "trigger these issues."
22966 msgstr ""
22967
22968 # type: =head2
22969 #: ../fish/guestfish-actions.pod:2889
22970 msgid "mknod"
22971 msgstr ""
22972
22973 # type: verbatim
22974 #: ../fish/guestfish-actions.pod:2891
22975 #, no-wrap
22976 msgid ""
22977 " mknod mode devmajor devminor path\n"
22978 "\n"
22979 msgstr ""
22980
22981 # type: textblock
22982 #: ../fish/guestfish-actions.pod:2901
22983 msgid ""
22984 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22985 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22986 "regular file).  These constants are available in the standard Linux header "
22987 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22988 "wrappers around this command which bitwise OR in the appropriate constant "
22989 "for you."
22990 msgstr ""
22991
22992 # type: =head2
22993 #: ../fish/guestfish-actions.pod:2911
22994 msgid "mknod-b"
22995 msgstr ""
22996
22997 # type: verbatim
22998 #: ../fish/guestfish-actions.pod:2913
22999 #, no-wrap
23000 msgid ""
23001 " mknod-b mode devmajor devminor path\n"
23002 "\n"
23003 msgstr ""
23004
23005 # type: textblock
23006 #: ../fish/guestfish-actions.pod:2915
23007 msgid ""
23008 "This call creates a block device node called C<path> with mode C<mode> and "
23009 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
23010 "wrapper around L</mknod>."
23011 msgstr ""
23012
23013 # type: =head2
23014 #: ../fish/guestfish-actions.pod:2921
23015 msgid "mknod-c"
23016 msgstr ""
23017
23018 # type: verbatim
23019 #: ../fish/guestfish-actions.pod:2923
23020 #, no-wrap
23021 msgid ""
23022 " mknod-c mode devmajor devminor path\n"
23023 "\n"
23024 msgstr ""
23025
23026 # type: textblock
23027 #: ../fish/guestfish-actions.pod:2925
23028 msgid ""
23029 "This call creates a char device node called C<path> with mode C<mode> and "
23030 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
23031 "wrapper around L</mknod>."
23032 msgstr ""
23033
23034 # type: =head2
23035 #: ../fish/guestfish-actions.pod:2931
23036 msgid "mkswap"
23037 msgstr ""
23038
23039 # type: verbatim
23040 #: ../fish/guestfish-actions.pod:2933
23041 #, no-wrap
23042 msgid ""
23043 " mkswap device\n"
23044 "\n"
23045 msgstr ""
23046
23047 # type: =head2
23048 #: ../fish/guestfish-actions.pod:2937
23049 msgid "mkswap-L"
23050 msgstr ""
23051
23052 # type: verbatim
23053 #: ../fish/guestfish-actions.pod:2939
23054 #, no-wrap
23055 msgid ""
23056 " mkswap-L label device\n"
23057 "\n"
23058 msgstr ""
23059
23060 # type: =head2
23061 #: ../fish/guestfish-actions.pod:2947
23062 msgid "mkswap-U"
23063 msgstr ""
23064
23065 # type: verbatim
23066 #: ../fish/guestfish-actions.pod:2949
23067 #, no-wrap
23068 msgid ""
23069 " mkswap-U uuid device\n"
23070 "\n"
23071 msgstr ""
23072
23073 # type: =head2
23074 #: ../fish/guestfish-actions.pod:2953
23075 msgid "mkswap-file"
23076 msgstr ""
23077
23078 # type: verbatim
23079 #: ../fish/guestfish-actions.pod:2955
23080 #, no-wrap
23081 msgid ""
23082 " mkswap-file path\n"
23083 "\n"
23084 msgstr ""
23085
23086 # type: textblock
23087 #: ../fish/guestfish-actions.pod:2959
23088 msgid ""
23089 "This command just writes a swap file signature to an existing file.  To "
23090 "create the file itself, use something like L</fallocate>."
23091 msgstr ""
23092
23093 # type: =head2
23094 #: ../fish/guestfish-actions.pod:2962
23095 msgid "modprobe"
23096 msgstr ""
23097
23098 # type: verbatim
23099 #: ../fish/guestfish-actions.pod:2964
23100 #, no-wrap
23101 msgid ""
23102 " modprobe modulename\n"
23103 "\n"
23104 msgstr ""
23105
23106 # type: =head2
23107 #: ../fish/guestfish-actions.pod:2971
23108 msgid "mount"
23109 msgstr ""
23110
23111 # type: verbatim
23112 #: ../fish/guestfish-actions.pod:2973
23113 #, no-wrap
23114 msgid ""
23115 " mount device mountpoint\n"
23116 "\n"
23117 msgstr ""
23118
23119 # type: textblock
23120 #: ../fish/guestfish-actions.pod:2989
23121 msgid ""
23122 "B<Important note:> When you use this call, the filesystem options C<sync> "
23123 "and C<noatime> are set implicitly.  This was originally done because we "
23124 "thought it would improve reliability, but it turns out that I<-o sync> has a "
23125 "very large negative performance impact and negligible effect on "
23126 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
23127 "code that needs performance, and instead use L</mount-options> (use an empty "
23128 "string for the first parameter if you don't want any options)."
23129 msgstr ""
23130
23131 # type: =head2
23132 #: ../fish/guestfish-actions.pod:2999
23133 msgid "mount-loop"
23134 msgstr ""
23135
23136 # type: verbatim
23137 #: ../fish/guestfish-actions.pod:3001
23138 #, no-wrap
23139 msgid ""
23140 " mount-loop file mountpoint\n"
23141 "\n"
23142 msgstr ""
23143
23144 # type: =head2
23145 #: ../fish/guestfish-actions.pod:3007
23146 msgid "mount-options"
23147 msgstr ""
23148
23149 # type: verbatim
23150 #: ../fish/guestfish-actions.pod:3009
23151 #, no-wrap
23152 msgid ""
23153 " mount-options options device mountpoint\n"
23154 "\n"
23155 msgstr ""
23156
23157 # type: textblock
23158 #: ../fish/guestfish-actions.pod:3011
23159 msgid ""
23160 "This is the same as the L</mount> command, but it allows you to set the "
23161 "mount options as for the L<mount(8)> I<-o> flag."
23162 msgstr ""
23163
23164 # type: =head2
23165 #: ../fish/guestfish-actions.pod:3019
23166 msgid "mount-ro"
23167 msgstr ""
23168
23169 # type: verbatim
23170 #: ../fish/guestfish-actions.pod:3021
23171 #, no-wrap
23172 msgid ""
23173 " mount-ro device mountpoint\n"
23174 "\n"
23175 msgstr ""
23176
23177 # type: textblock
23178 #: ../fish/guestfish-actions.pod:3023
23179 msgid ""
23180 "This is the same as the L</mount> command, but it mounts the filesystem with "
23181 "the read-only (I<-o ro>) flag."
23182 msgstr ""
23183
23184 # type: =head2
23185 #: ../fish/guestfish-actions.pod:3026
23186 msgid "mount-vfs"
23187 msgstr ""
23188
23189 # type: verbatim
23190 #: ../fish/guestfish-actions.pod:3028
23191 #, no-wrap
23192 msgid ""
23193 " mount-vfs options vfstype device mountpoint\n"
23194 "\n"
23195 msgstr ""
23196
23197 # type: textblock
23198 #: ../fish/guestfish-actions.pod:3030
23199 msgid ""
23200 "This is the same as the L</mount> command, but it allows you to set both the "
23201 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
23202 msgstr ""
23203
23204 # type: =head2
23205 #: ../fish/guestfish-actions.pod:3034
23206 msgid "mountpoints"
23207 msgstr ""
23208
23209 # type: verbatim
23210 #: ../fish/guestfish-actions.pod:3036
23211 #, no-wrap
23212 msgid ""
23213 " mountpoints\n"
23214 "\n"
23215 msgstr ""
23216
23217 # type: textblock
23218 #: ../fish/guestfish-actions.pod:3038
23219 msgid ""
23220 "This call is similar to L</mounts>.  That call returns a list of devices.  "
23221 "This one returns a hash table (map) of device name to directory where the "
23222 "device is mounted."
23223 msgstr ""
23224
23225 # type: =head2
23226 #: ../fish/guestfish-actions.pod:3042
23227 msgid "mounts"
23228 msgstr ""
23229
23230 # type: verbatim
23231 #: ../fish/guestfish-actions.pod:3044
23232 #, no-wrap
23233 msgid ""
23234 " mounts\n"
23235 "\n"
23236 msgstr ""
23237
23238 # type: textblock
23239 #: ../fish/guestfish-actions.pod:3051
23240 msgid "See also: L</mountpoints>"
23241 msgstr ""
23242
23243 # type: =head2
23244 #: ../fish/guestfish-actions.pod:3053
23245 msgid "mv"
23246 msgstr ""
23247
23248 # type: verbatim
23249 #: ../fish/guestfish-actions.pod:3055
23250 #, no-wrap
23251 msgid ""
23252 " mv src dest\n"
23253 "\n"
23254 msgstr ""
23255
23256 # type: =head2
23257 #: ../fish/guestfish-actions.pod:3060
23258 msgid "ntfs-3g-probe"
23259 msgstr ""
23260
23261 # type: verbatim
23262 #: ../fish/guestfish-actions.pod:3062
23263 #, no-wrap
23264 msgid ""
23265 " ntfs-3g-probe true|false device\n"
23266 "\n"
23267 msgstr ""
23268
23269 # type: =head2
23270 #: ../fish/guestfish-actions.pod:3076
23271 msgid "ntfsresize"
23272 msgstr ""
23273
23274 # type: verbatim
23275 #: ../fish/guestfish-actions.pod:3078
23276 #, no-wrap
23277 msgid ""
23278 " ntfsresize device\n"
23279 "\n"
23280 msgstr ""
23281
23282 # type: =head2
23283 #: ../fish/guestfish-actions.pod:3084
23284 msgid "ntfsresize-size"
23285 msgstr ""
23286
23287 # type: verbatim
23288 #: ../fish/guestfish-actions.pod:3086
23289 #, no-wrap
23290 msgid ""
23291 " ntfsresize-size device size\n"
23292 "\n"
23293 msgstr ""
23294
23295 # type: textblock
23296 #: ../fish/guestfish-actions.pod:3088
23297 msgid ""
23298 "This command is the same as L</ntfsresize> except that it allows you to "
23299 "specify the new size (in bytes) explicitly."
23300 msgstr ""
23301
23302 # type: =head2
23303 #: ../fish/guestfish-actions.pod:3091
23304 msgid "part-add"
23305 msgstr ""
23306
23307 # type: verbatim
23308 #: ../fish/guestfish-actions.pod:3093
23309 #, no-wrap
23310 msgid ""
23311 " part-add device prlogex startsect endsect\n"
23312 "\n"
23313 msgstr ""
23314
23315 # type: textblock
23316 #: ../fish/guestfish-actions.pod:3095
23317 msgid ""
23318 "This command adds a partition to C<device>.  If there is no partition table "
23319 "on the device, call L</part-init> first."
23320 msgstr ""
23321
23322 # type: textblock
23323 #: ../fish/guestfish-actions.pod:3107
23324 msgid ""
23325 "Creating a partition which covers the whole disk is not so easy.  Use L</"
23326 "part-disk> to do that."
23327 msgstr ""
23328
23329 # type: =head2
23330 #: ../fish/guestfish-actions.pod:3110
23331 msgid "part-del"
23332 msgstr ""
23333
23334 # type: verbatim
23335 #: ../fish/guestfish-actions.pod:3112
23336 #, no-wrap
23337 msgid ""
23338 " part-del device partnum\n"
23339 "\n"
23340 msgstr ""
23341
23342 # type: =head2
23343 #: ../fish/guestfish-actions.pod:3120
23344 msgid "part-disk"
23345 msgstr ""
23346
23347 # type: verbatim
23348 #: ../fish/guestfish-actions.pod:3122
23349 #, no-wrap
23350 msgid ""
23351 " part-disk device parttype\n"
23352 "\n"
23353 msgstr ""
23354
23355 # type: textblock
23356 #: ../fish/guestfish-actions.pod:3124
23357 msgid ""
23358 "This command is simply a combination of L</part-init> followed by L</part-"
23359 "add> to create a single primary partition covering the whole disk."
23360 msgstr ""
23361
23362 # type: textblock
23363 #: ../fish/guestfish-actions.pod:3128
23364 msgid ""
23365 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
23366 "possible values are described in L</part-init>."
23367 msgstr ""
23368
23369 # type: =head2
23370 #: ../fish/guestfish-actions.pod:3134
23371 msgid "part-get-bootable"
23372 msgstr ""
23373
23374 # type: verbatim
23375 #: ../fish/guestfish-actions.pod:3136
23376 #, no-wrap
23377 msgid ""
23378 " part-get-bootable device partnum\n"
23379 "\n"
23380 msgstr ""
23381
23382 # type: textblock
23383 #: ../fish/guestfish-actions.pod:3141
23384 msgid "See also L</part-set-bootable>."
23385 msgstr ""
23386
23387 # type: =head2
23388 #: ../fish/guestfish-actions.pod:3143
23389 msgid "part-get-mbr-id"
23390 msgstr ""
23391
23392 # type: verbatim
23393 #: ../fish/guestfish-actions.pod:3145
23394 #, no-wrap
23395 msgid ""
23396 " part-get-mbr-id device partnum\n"
23397 "\n"
23398 msgstr ""
23399
23400 # type: textblock
23401 #: ../fish/guestfish-actions.pod:3150 ../fish/guestfish-actions.pod:3288
23402 msgid ""
23403 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
23404 "undefined results for other partition table types (see L</part-get-"
23405 "parttype>)."
23406 msgstr ""
23407
23408 # type: =head2
23409 #: ../fish/guestfish-actions.pod:3154
23410 msgid "part-get-parttype"
23411 msgstr ""
23412
23413 # type: verbatim
23414 #: ../fish/guestfish-actions.pod:3156
23415 #, no-wrap
23416 msgid ""
23417 " part-get-parttype device\n"
23418 "\n"
23419 msgstr ""
23420
23421 # type: textblock
23422 #: ../fish/guestfish-actions.pod:3161
23423 msgid ""
23424 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
23425 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
23426 "possible, although unusual.  See L</part-init> for a full list."
23427 msgstr ""
23428
23429 # type: =head2
23430 #: ../fish/guestfish-actions.pod:3166
23431 msgid "part-init"
23432 msgstr ""
23433
23434 # type: verbatim
23435 #: ../fish/guestfish-actions.pod:3168
23436 #, no-wrap
23437 msgid ""
23438 " part-init device parttype\n"
23439 "\n"
23440 msgstr ""
23441
23442 # type: textblock
23443 #: ../fish/guestfish-actions.pod:3174
23444 msgid ""
23445 "Initially there are no partitions.  Following this, you should call L</part-"
23446 "add> for each partition required."
23447 msgstr ""
23448
23449 # type: =head2
23450 #: ../fish/guestfish-actions.pod:3237
23451 msgid "part-list"
23452 msgstr ""
23453
23454 # type: verbatim
23455 #: ../fish/guestfish-actions.pod:3239
23456 #, no-wrap
23457 msgid ""
23458 " part-list device\n"
23459 "\n"
23460 msgstr ""
23461
23462 # type: textblock
23463 #: ../fish/guestfish-actions.pod:3254
23464 msgid ""
23465 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23466 "the device's sector size, see L</blockdev-getss>."
23467 msgstr ""
23468
23469 # type: =head2
23470 #: ../fish/guestfish-actions.pod:3267
23471 msgid "part-set-bootable"
23472 msgstr ""
23473
23474 # type: verbatim
23475 #: ../fish/guestfish-actions.pod:3269
23476 #, no-wrap
23477 msgid ""
23478 " part-set-bootable device partnum true|false\n"
23479 "\n"
23480 msgstr ""
23481
23482 # type: =head2
23483 #: ../fish/guestfish-actions.pod:3278
23484 msgid "part-set-mbr-id"
23485 msgstr ""
23486
23487 # type: verbatim
23488 #: ../fish/guestfish-actions.pod:3280
23489 #, no-wrap
23490 msgid ""
23491 " part-set-mbr-id device partnum idbyte\n"
23492 "\n"
23493 msgstr ""
23494
23495 # type: =head2
23496 #: ../fish/guestfish-actions.pod:3292
23497 msgid "part-set-name"
23498 msgstr ""
23499
23500 # type: verbatim
23501 #: ../fish/guestfish-actions.pod:3294
23502 #, no-wrap
23503 msgid ""
23504 " part-set-name device partnum name\n"
23505 "\n"
23506 msgstr ""
23507
23508 # type: =head2
23509 #: ../fish/guestfish-actions.pod:3302
23510 msgid "part-to-dev"
23511 msgstr ""
23512
23513 # type: verbatim
23514 #: ../fish/guestfish-actions.pod:3304
23515 #, no-wrap
23516 msgid ""
23517 " part-to-dev partition\n"
23518 "\n"
23519 msgstr ""
23520
23521 # type: textblock
23522 #: ../fish/guestfish-actions.pod:3310
23523 msgid ""
23524 "The named partition must exist, for example as a string returned from L</"
23525 "list-partitions>."
23526 msgstr ""
23527
23528 # type: =head2
23529 #: ../fish/guestfish-actions.pod:3313
23530 msgid "ping-daemon"
23531 msgstr ""
23532
23533 # type: verbatim
23534 #: ../fish/guestfish-actions.pod:3315
23535 #, no-wrap
23536 msgid ""
23537 " ping-daemon\n"
23538 "\n"
23539 msgstr ""
23540
23541 # type: =head2
23542 #: ../fish/guestfish-actions.pod:3322
23543 msgid "pread"
23544 msgstr ""
23545
23546 # type: verbatim
23547 #: ../fish/guestfish-actions.pod:3324
23548 #, no-wrap
23549 msgid ""
23550 " pread path count offset\n"
23551 "\n"
23552 msgstr ""
23553
23554 # type: textblock
23555 #: ../fish/guestfish-actions.pod:3332
23556 msgid "See also L</pwrite>, L</pread-device>."
23557 msgstr ""
23558
23559 # type: =head2
23560 #: ../fish/guestfish-actions.pod:3337
23561 msgid "pread-device"
23562 msgstr ""
23563
23564 # type: verbatim
23565 #: ../fish/guestfish-actions.pod:3339
23566 #, no-wrap
23567 msgid ""
23568 " pread-device device count offset\n"
23569 "\n"
23570 msgstr ""
23571
23572 # type: textblock
23573 #: ../fish/guestfish-actions.pod:3347
23574 msgid "See also L</pread>."
23575 msgstr ""
23576
23577 # type: =head2
23578 #: ../fish/guestfish-actions.pod:3352
23579 msgid "pvcreate"
23580 msgstr ""
23581
23582 # type: verbatim
23583 #: ../fish/guestfish-actions.pod:3354
23584 #, no-wrap
23585 msgid ""
23586 " pvcreate device\n"
23587 "\n"
23588 msgstr ""
23589
23590 # type: =head2
23591 #: ../fish/guestfish-actions.pod:3360
23592 msgid "pvremove"
23593 msgstr ""
23594
23595 # type: verbatim
23596 #: ../fish/guestfish-actions.pod:3362
23597 #, no-wrap
23598 msgid ""
23599 " pvremove device\n"
23600 "\n"
23601 msgstr ""
23602
23603 # type: =head2
23604 #: ../fish/guestfish-actions.pod:3371
23605 msgid "pvresize"
23606 msgstr ""
23607
23608 # type: verbatim
23609 #: ../fish/guestfish-actions.pod:3373
23610 #, no-wrap
23611 msgid ""
23612 " pvresize device\n"
23613 "\n"
23614 msgstr ""
23615
23616 # type: =head2
23617 #: ../fish/guestfish-actions.pod:3378
23618 msgid "pvresize-size"
23619 msgstr ""
23620
23621 # type: verbatim
23622 #: ../fish/guestfish-actions.pod:3380
23623 #, no-wrap
23624 msgid ""
23625 " pvresize-size device size\n"
23626 "\n"
23627 msgstr ""
23628
23629 # type: textblock
23630 #: ../fish/guestfish-actions.pod:3382
23631 msgid ""
23632 "This command is the same as L</pvresize> except that it allows you to "
23633 "specify the new size (in bytes) explicitly."
23634 msgstr ""
23635
23636 # type: =head2
23637 #: ../fish/guestfish-actions.pod:3385
23638 msgid "pvs"
23639 msgstr ""
23640
23641 # type: verbatim
23642 #: ../fish/guestfish-actions.pod:3387
23643 #, no-wrap
23644 msgid ""
23645 " pvs\n"
23646 "\n"
23647 msgstr ""
23648
23649 # type: textblock
23650 #: ../fish/guestfish-actions.pod:3395
23651 msgid "See also L</pvs-full>."
23652 msgstr ""
23653
23654 # type: =head2
23655 #: ../fish/guestfish-actions.pod:3397
23656 msgid "pvs-full"
23657 msgstr ""
23658
23659 # type: verbatim
23660 #: ../fish/guestfish-actions.pod:3399
23661 #, no-wrap
23662 msgid ""
23663 " pvs-full\n"
23664 "\n"
23665 msgstr ""
23666
23667 # type: =head2
23668 #: ../fish/guestfish-actions.pod:3404
23669 msgid "pvuuid"
23670 msgstr ""
23671
23672 # type: verbatim
23673 #: ../fish/guestfish-actions.pod:3406
23674 #, no-wrap
23675 msgid ""
23676 " pvuuid device\n"
23677 "\n"
23678 msgstr ""
23679
23680 # type: =head2
23681 #: ../fish/guestfish-actions.pod:3410
23682 msgid "pwrite"
23683 msgstr ""
23684
23685 # type: verbatim
23686 #: ../fish/guestfish-actions.pod:3412
23687 #, no-wrap
23688 msgid ""
23689 " pwrite path content offset\n"
23690 "\n"
23691 msgstr ""
23692
23693 # type: textblock
23694 #: ../fish/guestfish-actions.pod:3423
23695 msgid "See also L</pread>, L</pwrite-device>."
23696 msgstr ""
23697
23698 # type: =head2
23699 #: ../fish/guestfish-actions.pod:3428
23700 msgid "pwrite-device"
23701 msgstr ""
23702
23703 # type: verbatim
23704 #: ../fish/guestfish-actions.pod:3430
23705 #, no-wrap
23706 msgid ""
23707 " pwrite-device device content offset\n"
23708 "\n"
23709 msgstr ""
23710
23711 # type: textblock
23712 #: ../fish/guestfish-actions.pod:3440
23713 msgid "See also L</pwrite>."
23714 msgstr ""
23715
23716 # type: =head2
23717 #: ../fish/guestfish-actions.pod:3445
23718 msgid "read-file"
23719 msgstr ""
23720
23721 # type: verbatim
23722 #: ../fish/guestfish-actions.pod:3447
23723 #, no-wrap
23724 msgid ""
23725 " read-file path\n"
23726 "\n"
23727 msgstr ""
23728
23729 # type: textblock
23730 #: ../fish/guestfish-actions.pod:3452
23731 msgid ""
23732 "Unlike L</cat>, this function can correctly handle files that contain "
23733 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23734 "is limited in the total size of file that can be handled."
23735 msgstr ""
23736
23737 # type: =head2
23738 #: ../fish/guestfish-actions.pod:3460
23739 msgid "read-lines"
23740 msgstr ""
23741
23742 # type: verbatim
23743 #: ../fish/guestfish-actions.pod:3462
23744 #, no-wrap
23745 msgid ""
23746 " read-lines path\n"
23747 "\n"
23748 msgstr ""
23749
23750 # type: textblock
23751 #: ../fish/guestfish-actions.pod:3469
23752 msgid ""
23753 "Note that this function cannot correctly handle binary files (specifically, "
23754 "files containing C<\\0> character which is treated as end of line).  For "
23755 "those you need to use the L</read-file> function which has a more complex "
23756 "interface."
23757 msgstr ""
23758
23759 # type: =head2
23760 #: ../fish/guestfish-actions.pod:3474
23761 msgid "readdir"
23762 msgstr ""
23763
23764 # type: verbatim
23765 #: ../fish/guestfish-actions.pod:3476
23766 #, no-wrap
23767 msgid ""
23768 " readdir dir\n"
23769 "\n"
23770 msgstr ""
23771
23772 # type: textblock
23773 #: ../fish/guestfish-actions.pod:3528
23774 msgid ""
23775 "This function is primarily intended for use by programs.  To get a simple "
23776 "list of names, use L</ls>.  To get a printable directory for human "
23777 "consumption, use L</ll>."
23778 msgstr ""
23779
23780 # type: =head2
23781 #: ../fish/guestfish-actions.pod:3532
23782 msgid "readlink"
23783 msgstr ""
23784
23785 # type: verbatim
23786 #: ../fish/guestfish-actions.pod:3534
23787 #, no-wrap
23788 msgid ""
23789 " readlink path\n"
23790 "\n"
23791 msgstr ""
23792
23793 # type: =head2
23794 #: ../fish/guestfish-actions.pod:3538
23795 msgid "readlinklist"
23796 msgstr ""
23797
23798 # type: verbatim
23799 #: ../fish/guestfish-actions.pod:3540
23800 #, no-wrap
23801 msgid ""
23802 " readlinklist path 'names ...'\n"
23803 "\n"
23804 msgstr ""
23805
23806 # type: =head2
23807 #: ../fish/guestfish-actions.pod:3564
23808 msgid "realpath"
23809 msgstr ""
23810
23811 # type: verbatim
23812 #: ../fish/guestfish-actions.pod:3566
23813 #, no-wrap
23814 msgid ""
23815 " realpath path\n"
23816 "\n"
23817 msgstr ""
23818
23819 # type: =head2
23820 #: ../fish/guestfish-actions.pod:3571
23821 msgid "removexattr"
23822 msgstr ""
23823
23824 # type: verbatim
23825 #: ../fish/guestfish-actions.pod:3573
23826 #, no-wrap
23827 msgid ""
23828 " removexattr xattr path\n"
23829 "\n"
23830 msgstr ""
23831
23832 # type: textblock
23833 #: ../fish/guestfish-actions.pod:3578
23834 msgid "See also: L</lremovexattr>, L<attr(5)>."
23835 msgstr ""
23836
23837 # type: =head2
23838 #: ../fish/guestfish-actions.pod:3580
23839 msgid "resize2fs"
23840 msgstr ""
23841
23842 # type: verbatim
23843 #: ../fish/guestfish-actions.pod:3582
23844 #, no-wrap
23845 msgid ""
23846 " resize2fs device\n"
23847 "\n"
23848 msgstr ""
23849
23850 # type: textblock
23851 #: ../fish/guestfish-actions.pod:3587
23852 msgid ""
23853 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23854 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23855 "gives an error about this and sometimes not.  In any case, it is always safe "
23856 "to call L</e2fsck-f> before calling this function."
23857 msgstr ""
23858
23859 # type: =head2
23860 #: ../fish/guestfish-actions.pod:3593
23861 msgid "resize2fs-size"
23862 msgstr ""
23863
23864 # type: verbatim
23865 #: ../fish/guestfish-actions.pod:3595
23866 #, no-wrap
23867 msgid ""
23868 " resize2fs-size device size\n"
23869 "\n"
23870 msgstr ""
23871
23872 # type: textblock
23873 #: ../fish/guestfish-actions.pod:3597
23874 msgid ""
23875 "This command is the same as L</resize2fs> except that it allows you to "
23876 "specify the new size (in bytes) explicitly."
23877 msgstr ""
23878
23879 # type: =head2
23880 #: ../fish/guestfish-actions.pod:3600
23881 msgid "rm"
23882 msgstr ""
23883
23884 # type: verbatim
23885 #: ../fish/guestfish-actions.pod:3602
23886 #, no-wrap
23887 msgid ""
23888 " rm path\n"
23889 "\n"
23890 msgstr ""
23891
23892 # type: =head2
23893 #: ../fish/guestfish-actions.pod:3606
23894 msgid "rm-rf"
23895 msgstr ""
23896
23897 # type: verbatim
23898 #: ../fish/guestfish-actions.pod:3608
23899 #, no-wrap
23900 msgid ""
23901 " rm-rf path\n"
23902 "\n"
23903 msgstr ""
23904
23905 # type: =head2
23906 #: ../fish/guestfish-actions.pod:3614
23907 msgid "rmdir"
23908 msgstr ""
23909
23910 # type: verbatim
23911 #: ../fish/guestfish-actions.pod:3616
23912 #, no-wrap
23913 msgid ""
23914 " rmdir path\n"
23915 "\n"
23916 msgstr ""
23917
23918 # type: =head2
23919 #: ../fish/guestfish-actions.pod:3620
23920 msgid "rmmountpoint"
23921 msgstr ""
23922
23923 # type: verbatim
23924 #: ../fish/guestfish-actions.pod:3622
23925 #, no-wrap
23926 msgid ""
23927 " rmmountpoint exemptpath\n"
23928 "\n"
23929 msgstr ""
23930
23931 # type: textblock
23932 #: ../fish/guestfish-actions.pod:3624
23933 msgid ""
23934 "This calls removes a mountpoint that was previously created with L</"
23935 "mkmountpoint>.  See L</mkmountpoint> for full details."
23936 msgstr ""
23937
23938 # type: =head2
23939 #: ../fish/guestfish-actions.pod:3628
23940 msgid "scrub-device"
23941 msgstr ""
23942
23943 # type: verbatim
23944 #: ../fish/guestfish-actions.pod:3630
23945 #, no-wrap
23946 msgid ""
23947 " scrub-device device\n"
23948 "\n"
23949 msgstr ""
23950
23951 # type: =head2
23952 #: ../fish/guestfish-actions.pod:3641
23953 msgid "scrub-file"
23954 msgstr ""
23955
23956 # type: verbatim
23957 #: ../fish/guestfish-actions.pod:3643
23958 #, no-wrap
23959 msgid ""
23960 " scrub-file file\n"
23961 "\n"
23962 msgstr ""
23963
23964 # type: =head2
23965 #: ../fish/guestfish-actions.pod:3653
23966 msgid "scrub-freespace"
23967 msgstr ""
23968
23969 # type: verbatim
23970 #: ../fish/guestfish-actions.pod:3655
23971 #, no-wrap
23972 msgid ""
23973 " scrub-freespace dir\n"
23974 "\n"
23975 msgstr ""
23976
23977 # type: textblock
23978 #: ../fish/guestfish-actions.pod:3657
23979 msgid ""
23980 "This command creates the directory C<dir> and then fills it with files until "
23981 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23982 "deletes them.  The intention is to scrub any free space on the partition "
23983 "containing C<dir>."
23984 msgstr ""
23985
23986 # type: =head2
23987 #: ../fish/guestfish-actions.pod:3666
23988 msgid "set-append"
23989 msgstr ""
23990
23991 # type: =head2
23992 #: ../fish/guestfish-actions.pod:3668
23993 msgid "append"
23994 msgstr ""
23995
23996 # type: verbatim
23997 #: ../fish/guestfish-actions.pod:3670
23998 #, no-wrap
23999 msgid ""
24000 " set-append append\n"
24001 "\n"
24002 msgstr ""
24003
24004 # type: =head2
24005 #: ../fish/guestfish-actions.pod:3681
24006 msgid "set-autosync"
24007 msgstr ""
24008
24009 # type: =head2
24010 #: ../fish/guestfish-actions.pod:3683
24011 msgid "autosync"
24012 msgstr ""
24013
24014 # type: verbatim
24015 #: ../fish/guestfish-actions.pod:3685
24016 #, no-wrap
24017 msgid ""
24018 " set-autosync true|false\n"
24019 "\n"
24020 msgstr ""
24021
24022 # type: textblock
24023 #: ../fish/guestfish-actions.pod:3687
24024 msgid ""
24025 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
24026 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
24027 "closed (also if the program exits without closing handles)."
24028 msgstr ""
24029
24030 # type: =head2
24031 #: ../fish/guestfish-actions.pod:3695
24032 msgid "set-direct"
24033 msgstr ""
24034
24035 # type: =head2
24036 #: ../fish/guestfish-actions.pod:3697
24037 msgid "direct"
24038 msgstr ""
24039
24040 # type: verbatim
24041 #: ../fish/guestfish-actions.pod:3699
24042 #, no-wrap
24043 msgid ""
24044 " set-direct true|false\n"
24045 "\n"
24046 msgstr ""
24047
24048 # type: textblock
24049 #: ../fish/guestfish-actions.pod:3705
24050 msgid ""
24051 "One consequence of this is that log messages aren't caught by the library "
24052 "and handled by L</set-log-message-callback>, but go straight to stdout."
24053 msgstr ""
24054
24055 # type: =head2
24056 #: ../fish/guestfish-actions.pod:3714
24057 msgid "set-e2label"
24058 msgstr ""
24059
24060 # type: verbatim
24061 #: ../fish/guestfish-actions.pod:3716
24062 #, no-wrap
24063 msgid ""
24064 " set-e2label device label\n"
24065 "\n"
24066 msgstr ""
24067
24068 # type: textblock
24069 #: ../fish/guestfish-actions.pod:3722
24070 msgid ""
24071 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
24072 "label on a filesystem."
24073 msgstr ""
24074
24075 # type: =head2
24076 #: ../fish/guestfish-actions.pod:3725
24077 msgid "set-e2uuid"
24078 msgstr ""
24079
24080 # type: verbatim
24081 #: ../fish/guestfish-actions.pod:3727
24082 #, no-wrap
24083 msgid ""
24084 " set-e2uuid device uuid\n"
24085 "\n"
24086 msgstr ""
24087
24088 # type: textblock
24089 #: ../fish/guestfish-actions.pod:3734
24090 msgid ""
24091 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
24092 "UUID of a filesystem."
24093 msgstr ""
24094
24095 # type: =head2
24096 #: ../fish/guestfish-actions.pod:3737
24097 msgid "set-memsize"
24098 msgstr ""
24099
24100 # type: =head2
24101 #: ../fish/guestfish-actions.pod:3739
24102 msgid "memsize"
24103 msgstr ""
24104
24105 # type: verbatim
24106 #: ../fish/guestfish-actions.pod:3741
24107 #, no-wrap
24108 msgid ""
24109 " set-memsize memsize\n"
24110 "\n"
24111 msgstr ""
24112
24113 # type: textblock
24114 #: ../fish/guestfish-actions.pod:3743
24115 msgid ""
24116 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
24117 "This only has any effect if called before L</launch>."
24118 msgstr ""
24119
24120 # type: =head2
24121 #: ../fish/guestfish-actions.pod:3754
24122 msgid "set-network"
24123 msgstr ""
24124
24125 # type: =head2
24126 #: ../fish/guestfish-actions.pod:3756
24127 msgid "network"
24128 msgstr ""
24129
24130 # type: verbatim
24131 #: ../fish/guestfish-actions.pod:3758
24132 #, no-wrap
24133 msgid ""
24134 " set-network true|false\n"
24135 "\n"
24136 msgstr ""
24137
24138 # type: textblock
24139 #: ../fish/guestfish-actions.pod:3766
24140 msgid ""
24141 "You must call this before calling L</launch>, otherwise it has no effect."
24142 msgstr ""
24143
24144 # type: =head2
24145 #: ../fish/guestfish-actions.pod:3769
24146 msgid "set-path"
24147 msgstr ""
24148
24149 # type: =head2
24150 #: ../fish/guestfish-actions.pod:3771
24151 msgid "path"
24152 msgstr ""
24153
24154 # type: verbatim
24155 #: ../fish/guestfish-actions.pod:3773
24156 #, no-wrap
24157 msgid ""
24158 " set-path searchpath\n"
24159 "\n"
24160 msgstr ""
24161
24162 # type: =head2
24163 #: ../fish/guestfish-actions.pod:3782
24164 msgid "set-qemu"
24165 msgstr ""
24166
24167 # type: =head2
24168 #: ../fish/guestfish-actions.pod:3784
24169 msgid "qemu"
24170 msgstr ""
24171
24172 # type: verbatim
24173 #: ../fish/guestfish-actions.pod:3786
24174 #, no-wrap
24175 msgid ""
24176 " set-qemu qemu\n"
24177 "\n"
24178 msgstr ""
24179
24180 # type: =head2
24181 #: ../fish/guestfish-actions.pod:3806
24182 msgid "set-recovery-proc"
24183 msgstr ""
24184
24185 # type: =head2
24186 #: ../fish/guestfish-actions.pod:3808
24187 msgid "recovery-proc"
24188 msgstr ""
24189
24190 # type: verbatim
24191 #: ../fish/guestfish-actions.pod:3810
24192 #, no-wrap
24193 msgid ""
24194 " set-recovery-proc true|false\n"
24195 "\n"
24196 msgstr ""
24197
24198 # type: textblock
24199 #: ../fish/guestfish-actions.pod:3812
24200 msgid ""
24201 "If this is called with the parameter C<false> then L</launch> does not "
24202 "create a recovery process.  The purpose of the recovery process is to stop "
24203 "runaway qemu processes in the case where the main program aborts abruptly."
24204 msgstr ""
24205
24206 # type: textblock
24207 #: ../fish/guestfish-actions.pod:3817
24208 msgid ""
24209 "This only has any effect if called before L</launch>, and the default is "
24210 "true."
24211 msgstr ""
24212
24213 # type: =head2
24214 #: ../fish/guestfish-actions.pod:3826
24215 msgid "set-selinux"
24216 msgstr ""
24217
24218 # type: =head2
24219 #: ../fish/guestfish-actions.pod:3828
24220 msgid "selinux"
24221 msgstr ""
24222
24223 # type: verbatim
24224 #: ../fish/guestfish-actions.pod:3830
24225 #, no-wrap
24226 msgid ""
24227 " set-selinux true|false\n"
24228 "\n"
24229 msgstr ""
24230
24231 # type: =head2
24232 #: ../fish/guestfish-actions.pod:3841
24233 msgid "set-trace"
24234 msgstr ""
24235
24236 # type: =head2
24237 #: ../fish/guestfish-actions.pod:3843
24238 msgid "trace"
24239 msgstr ""
24240
24241 # type: verbatim
24242 #: ../fish/guestfish-actions.pod:3845
24243 #, no-wrap
24244 msgid ""
24245 " set-trace true|false\n"
24246 "\n"
24247 msgstr ""
24248
24249 # type: =head2
24250 #: ../fish/guestfish-actions.pod:3861
24251 msgid "set-verbose"
24252 msgstr ""
24253
24254 # type: =head2
24255 #: ../fish/guestfish-actions.pod:3863
24256 msgid "verbose"
24257 msgstr ""
24258
24259 # type: verbatim
24260 #: ../fish/guestfish-actions.pod:3865
24261 #, no-wrap
24262 msgid ""
24263 " set-verbose true|false\n"
24264 "\n"
24265 msgstr ""
24266
24267 # type: =head2
24268 #: ../fish/guestfish-actions.pod:3872
24269 msgid "setcon"
24270 msgstr ""
24271
24272 # type: verbatim
24273 #: ../fish/guestfish-actions.pod:3874
24274 #, no-wrap
24275 msgid ""
24276 " setcon context\n"
24277 "\n"
24278 msgstr ""
24279
24280 # type: =head2
24281 #: ../fish/guestfish-actions.pod:3881
24282 msgid "setxattr"
24283 msgstr ""
24284
24285 # type: verbatim
24286 #: ../fish/guestfish-actions.pod:3883
24287 #, no-wrap
24288 msgid ""
24289 " setxattr xattr val vallen path\n"
24290 "\n"
24291 msgstr ""
24292
24293 # type: textblock
24294 #: ../fish/guestfish-actions.pod:3889
24295 msgid "See also: L</lsetxattr>, L<attr(5)>."
24296 msgstr ""
24297
24298 # type: =head2
24299 #: ../fish/guestfish-actions.pod:3891
24300 msgid "sfdisk"
24301 msgstr ""
24302
24303 # type: verbatim
24304 #: ../fish/guestfish-actions.pod:3893
24305 #, no-wrap
24306 msgid ""
24307 " sfdisk device cyls heads sectors 'lines ...'\n"
24308 "\n"
24309 msgstr ""
24310
24311 # type: textblock
24312 #: ../fish/guestfish-actions.pod:3915
24313 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
24314 msgstr ""
24315
24316 # type: =head2
24317 #: ../fish/guestfish-actions.pod:3921
24318 msgid "sfdiskM"
24319 msgstr ""
24320
24321 # type: verbatim
24322 #: ../fish/guestfish-actions.pod:3923
24323 #, no-wrap
24324 msgid ""
24325 " sfdiskM device 'lines ...'\n"
24326 "\n"
24327 msgstr ""
24328
24329 # type: textblock
24330 #: ../fish/guestfish-actions.pod:3925
24331 msgid ""
24332 "This is a simplified interface to the L</sfdisk> command, where partition "
24333 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
24334 "you don't need to specify the cyls, heads and sectors parameters which were "
24335 "rarely if ever used anyway."
24336 msgstr ""
24337
24338 # type: textblock
24339 #: ../fish/guestfish-actions.pod:3931
24340 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
24341 msgstr ""
24342
24343 # type: =head2
24344 #: ../fish/guestfish-actions.pod:3937
24345 msgid "sfdisk-N"
24346 msgstr ""
24347
24348 # type: verbatim
24349 #: ../fish/guestfish-actions.pod:3939
24350 #, no-wrap
24351 msgid ""
24352 " sfdisk-N device partnum cyls heads sectors line\n"
24353 "\n"
24354 msgstr ""
24355
24356 # type: textblock
24357 #: ../fish/guestfish-actions.pod:3944
24358 msgid ""
24359 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
24360 "cyls/heads/sectors parameters."
24361 msgstr ""
24362
24363 # type: textblock
24364 #: ../fish/guestfish-actions.pod:3947
24365 msgid "See also: L</part-add>"
24366 msgstr ""
24367
24368 # type: =head2
24369 #: ../fish/guestfish-actions.pod:3952
24370 msgid "sfdisk-disk-geometry"
24371 msgstr ""
24372
24373 # type: verbatim
24374 #: ../fish/guestfish-actions.pod:3954
24375 #, no-wrap
24376 msgid ""
24377 " sfdisk-disk-geometry device\n"
24378 "\n"
24379 msgstr ""
24380
24381 # type: textblock
24382 #: ../fish/guestfish-actions.pod:3956
24383 msgid ""
24384 "This displays the disk geometry of C<device> read from the partition table.  "
24385 "Especially in the case where the underlying block device has been resized, "
24386 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
24387 "kernel-geometry>)."
24388 msgstr ""
24389
24390 # type: =head2
24391 #: ../fish/guestfish-actions.pod:3964
24392 msgid "sfdisk-kernel-geometry"
24393 msgstr ""
24394
24395 # type: verbatim
24396 #: ../fish/guestfish-actions.pod:3966
24397 #, no-wrap
24398 msgid ""
24399 " sfdisk-kernel-geometry device\n"
24400 "\n"
24401 msgstr ""
24402
24403 # type: =head2
24404 #: ../fish/guestfish-actions.pod:3973
24405 msgid "sfdisk-l"
24406 msgstr ""
24407
24408 # type: verbatim
24409 #: ../fish/guestfish-actions.pod:3975
24410 #, no-wrap
24411 msgid ""
24412 " sfdisk-l device\n"
24413 "\n"
24414 msgstr ""
24415
24416 # type: textblock
24417 #: ../fish/guestfish-actions.pod:3981
24418 msgid "See also: L</part-list>"
24419 msgstr ""
24420
24421 # type: =head2
24422 #: ../fish/guestfish-actions.pod:3983
24423 msgid "sh"
24424 msgstr ""
24425
24426 # type: verbatim
24427 #: ../fish/guestfish-actions.pod:3985
24428 #, no-wrap
24429 msgid ""
24430 " sh command\n"
24431 "\n"
24432 msgstr ""
24433
24434 # type: textblock
24435 #: ../fish/guestfish-actions.pod:3990
24436 msgid "This is like L</command>, but passes the command to:"
24437 msgstr ""
24438
24439 # type: textblock
24440 #: ../fish/guestfish-actions.pod:3998
24441 msgid "All the provisos about L</command> apply to this call."
24442 msgstr ""
24443
24444 # type: =head2
24445 #: ../fish/guestfish-actions.pod:4000
24446 msgid "sh-lines"
24447 msgstr ""
24448
24449 # type: verbatim
24450 #: ../fish/guestfish-actions.pod:4002
24451 #, no-wrap
24452 msgid ""
24453 " sh-lines command\n"
24454 "\n"
24455 msgstr ""
24456
24457 # type: textblock
24458 #: ../fish/guestfish-actions.pod:4004
24459 msgid "This is the same as L</sh>, but splits the result into a list of lines."
24460 msgstr ""
24461
24462 # type: textblock
24463 #: ../fish/guestfish-actions.pod:4007
24464 msgid "See also: L</command-lines>"
24465 msgstr ""
24466
24467 # type: =head2
24468 #: ../fish/guestfish-actions.pod:4009
24469 msgid "sleep"
24470 msgstr ""
24471
24472 # type: verbatim
24473 #: ../fish/guestfish-actions.pod:4011
24474 #, no-wrap
24475 msgid ""
24476 " sleep secs\n"
24477 "\n"
24478 msgstr ""
24479
24480 # type: =head2
24481 #: ../fish/guestfish-actions.pod:4015
24482 msgid "stat"
24483 msgstr ""
24484
24485 # type: verbatim
24486 #: ../fish/guestfish-actions.pod:4017
24487 #, no-wrap
24488 msgid ""
24489 " stat path\n"
24490 "\n"
24491 msgstr ""
24492
24493 # type: =head2
24494 #: ../fish/guestfish-actions.pod:4023
24495 msgid "statvfs"
24496 msgstr ""
24497
24498 # type: verbatim
24499 #: ../fish/guestfish-actions.pod:4025
24500 #, no-wrap
24501 msgid ""
24502 " statvfs path\n"
24503 "\n"
24504 msgstr ""
24505
24506 # type: =head2
24507 #: ../fish/guestfish-actions.pod:4033
24508 msgid "strings"
24509 msgstr ""
24510
24511 # type: verbatim
24512 #: ../fish/guestfish-actions.pod:4035
24513 #, no-wrap
24514 msgid ""
24515 " strings path\n"
24516 "\n"
24517 msgstr ""
24518
24519 # type: =head2
24520 #: ../fish/guestfish-actions.pod:4043
24521 msgid "strings-e"
24522 msgstr ""
24523
24524 # type: verbatim
24525 #: ../fish/guestfish-actions.pod:4045
24526 #, no-wrap
24527 msgid ""
24528 " strings-e encoding path\n"
24529 "\n"
24530 msgstr ""
24531
24532 # type: textblock
24533 #: ../fish/guestfish-actions.pod:4047
24534 msgid ""
24535 "This is like the L</strings> command, but allows you to specify the encoding "
24536 "of strings that are looked for in the source file C<path>."
24537 msgstr ""
24538
24539 # type: textblock
24540 #: ../fish/guestfish-actions.pod:4057
24541 msgid ""
24542 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24543 "ISO-8859-X (this is what L</strings> uses)."
24544 msgstr ""
24545
24546 # type: =head2
24547 #: ../fish/guestfish-actions.pod:4089
24548 msgid "swapoff-device"
24549 msgstr ""
24550
24551 # type: verbatim
24552 #: ../fish/guestfish-actions.pod:4091
24553 #, no-wrap
24554 msgid ""
24555 " swapoff-device device\n"
24556 "\n"
24557 msgstr ""
24558
24559 # type: textblock
24560 #: ../fish/guestfish-actions.pod:4093
24561 msgid ""
24562 "This command disables the libguestfs appliance swap device or partition "
24563 "named C<device>.  See L</swapon-device>."
24564 msgstr ""
24565
24566 # type: =head2
24567 #: ../fish/guestfish-actions.pod:4097
24568 msgid "swapoff-file"
24569 msgstr ""
24570
24571 # type: verbatim
24572 #: ../fish/guestfish-actions.pod:4099
24573 #, no-wrap
24574 msgid ""
24575 " swapoff-file file\n"
24576 "\n"
24577 msgstr ""
24578
24579 # type: =head2
24580 #: ../fish/guestfish-actions.pod:4103
24581 msgid "swapoff-label"
24582 msgstr ""
24583
24584 # type: verbatim
24585 #: ../fish/guestfish-actions.pod:4105
24586 #, no-wrap
24587 msgid ""
24588 " swapoff-label label\n"
24589 "\n"
24590 msgstr ""
24591
24592 # type: =head2
24593 #: ../fish/guestfish-actions.pod:4110
24594 msgid "swapoff-uuid"
24595 msgstr ""
24596
24597 # type: verbatim
24598 #: ../fish/guestfish-actions.pod:4112
24599 #, no-wrap
24600 msgid ""
24601 " swapoff-uuid uuid\n"
24602 "\n"
24603 msgstr ""
24604
24605 # type: =head2
24606 #: ../fish/guestfish-actions.pod:4117
24607 msgid "swapon-device"
24608 msgstr ""
24609
24610 # type: verbatim
24611 #: ../fish/guestfish-actions.pod:4119
24612 #, no-wrap
24613 msgid ""
24614 " swapon-device device\n"
24615 "\n"
24616 msgstr ""
24617
24618 # type: textblock
24619 #: ../fish/guestfish-actions.pod:4121
24620 msgid ""
24621 "This command enables the libguestfs appliance to use the swap device or "
24622 "partition named C<device>.  The increased memory is made available for all "
24623 "commands, for example those run using L</command> or L</sh>."
24624 msgstr ""
24625
24626 # type: =head2
24627 #: ../fish/guestfish-actions.pod:4133
24628 msgid "swapon-file"
24629 msgstr ""
24630
24631 # type: verbatim
24632 #: ../fish/guestfish-actions.pod:4135
24633 #, no-wrap
24634 msgid ""
24635 " swapon-file file\n"
24636 "\n"
24637 msgstr ""
24638
24639 # type: textblock
24640 #: ../fish/guestfish-actions.pod:4137
24641 msgid ""
24642 "This command enables swap to a file.  See L</swapon-device> for other notes."
24643 msgstr ""
24644
24645 # type: =head2
24646 #: ../fish/guestfish-actions.pod:4140
24647 msgid "swapon-label"
24648 msgstr ""
24649
24650 # type: verbatim
24651 #: ../fish/guestfish-actions.pod:4142
24652 #, no-wrap
24653 msgid ""
24654 " swapon-label label\n"
24655 "\n"
24656 msgstr ""
24657
24658 # type: textblock
24659 #: ../fish/guestfish-actions.pod:4144
24660 msgid ""
24661 "This command enables swap to a labeled swap partition.  See L</swapon-"
24662 "device> for other notes."
24663 msgstr ""
24664
24665 # type: =head2
24666 #: ../fish/guestfish-actions.pod:4147
24667 msgid "swapon-uuid"
24668 msgstr ""
24669
24670 # type: verbatim
24671 #: ../fish/guestfish-actions.pod:4149
24672 #, no-wrap
24673 msgid ""
24674 " swapon-uuid uuid\n"
24675 "\n"
24676 msgstr ""
24677
24678 # type: textblock
24679 #: ../fish/guestfish-actions.pod:4151
24680 msgid ""
24681 "This command enables swap to a swap partition with the given UUID.  See L</"
24682 "swapon-device> for other notes."
24683 msgstr ""
24684
24685 # type: =head2
24686 #: ../fish/guestfish-actions.pod:4154
24687 msgid "sync"
24688 msgstr ""
24689
24690 # type: verbatim
24691 #: ../fish/guestfish-actions.pod:4156
24692 #, no-wrap
24693 msgid ""
24694 " sync\n"
24695 "\n"
24696 msgstr ""
24697
24698 # type: =head2
24699 #: ../fish/guestfish-actions.pod:4164
24700 msgid "tail"
24701 msgstr ""
24702
24703 # type: verbatim
24704 #: ../fish/guestfish-actions.pod:4166
24705 #, no-wrap
24706 msgid ""
24707 " tail path\n"
24708 "\n"
24709 msgstr ""
24710
24711 # type: =head2
24712 #: ../fish/guestfish-actions.pod:4174
24713 msgid "tail-n"
24714 msgstr ""
24715
24716 # type: verbatim
24717 #: ../fish/guestfish-actions.pod:4176
24718 #, no-wrap
24719 msgid ""
24720 " tail-n nrlines path\n"
24721 "\n"
24722 msgstr ""
24723
24724 # type: =head2
24725 #: ../fish/guestfish-actions.pod:4189
24726 msgid "tar-in"
24727 msgstr ""
24728
24729 # type: verbatim
24730 #: ../fish/guestfish-actions.pod:4191
24731 #, no-wrap
24732 msgid ""
24733 " tar-in (tarfile|-) directory\n"
24734 "\n"
24735 msgstr ""
24736
24737 # type: textblock
24738 #: ../fish/guestfish-actions.pod:4196
24739 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24740 msgstr ""
24741
24742 # type: =head2
24743 #: ../fish/guestfish-actions.pod:4201
24744 msgid "tar-out"
24745 msgstr ""
24746
24747 # type: verbatim
24748 #: ../fish/guestfish-actions.pod:4203
24749 #, no-wrap
24750 msgid ""
24751 " tar-out directory (tarfile|-)\n"
24752 "\n"
24753 msgstr ""
24754
24755 # type: textblock
24756 #: ../fish/guestfish-actions.pod:4208
24757 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24758 msgstr ""
24759
24760 # type: =head2
24761 #: ../fish/guestfish-actions.pod:4213
24762 msgid "tgz-in"
24763 msgstr ""
24764
24765 # type: verbatim
24766 #: ../fish/guestfish-actions.pod:4215
24767 #, no-wrap
24768 msgid ""
24769 " tgz-in (tarball|-) directory\n"
24770 "\n"
24771 msgstr ""
24772
24773 # type: textblock
24774 #: ../fish/guestfish-actions.pod:4220
24775 msgid "To upload an uncompressed tarball, use L</tar-in>."
24776 msgstr ""
24777
24778 # type: =head2
24779 #: ../fish/guestfish-actions.pod:4224
24780 msgid "tgz-out"
24781 msgstr ""
24782
24783 # type: verbatim
24784 #: ../fish/guestfish-actions.pod:4226
24785 #, no-wrap
24786 msgid ""
24787 " tgz-out directory (tarball|-)\n"
24788 "\n"
24789 msgstr ""
24790
24791 # type: textblock
24792 #: ../fish/guestfish-actions.pod:4231
24793 msgid "To download an uncompressed tarball, use L</tar-out>."
24794 msgstr ""
24795
24796 # type: =head2
24797 #: ../fish/guestfish-actions.pod:4235
24798 msgid "touch"
24799 msgstr ""
24800
24801 # type: verbatim
24802 #: ../fish/guestfish-actions.pod:4237
24803 #, no-wrap
24804 msgid ""
24805 " touch path\n"
24806 "\n"
24807 msgstr ""
24808
24809 # type: =head2
24810 #: ../fish/guestfish-actions.pod:4246
24811 msgid "truncate"
24812 msgstr ""
24813
24814 # type: verbatim
24815 #: ../fish/guestfish-actions.pod:4248
24816 #, no-wrap
24817 msgid ""
24818 " truncate path\n"
24819 "\n"
24820 msgstr ""
24821
24822 # type: =head2
24823 #: ../fish/guestfish-actions.pod:4253
24824 msgid "truncate-size"
24825 msgstr ""
24826
24827 # type: verbatim
24828 #: ../fish/guestfish-actions.pod:4255
24829 #, no-wrap
24830 msgid ""
24831 " truncate-size path size\n"
24832 "\n"
24833 msgstr ""
24834
24835 # type: textblock
24836 #: ../fish/guestfish-actions.pod:4260
24837 msgid ""
24838 "If the current file size is less than C<size> then the file is extended to "
24839 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24840 "blocks are not allocated for the file until you write to it).  To create a "
24841 "non-sparse file of zeroes, use L</fallocate64> instead."
24842 msgstr ""
24843
24844 # type: =head2
24845 #: ../fish/guestfish-actions.pod:4266
24846 msgid "tune2fs-l"
24847 msgstr ""
24848
24849 # type: verbatim
24850 #: ../fish/guestfish-actions.pod:4268
24851 #, no-wrap
24852 msgid ""
24853 " tune2fs-l device\n"
24854 "\n"
24855 msgstr ""
24856
24857 # type: =head2
24858 #: ../fish/guestfish-actions.pod:4278
24859 msgid "txz-in"
24860 msgstr ""
24861
24862 # type: verbatim
24863 #: ../fish/guestfish-actions.pod:4280
24864 #, no-wrap
24865 msgid ""
24866 " txz-in (tarball|-) directory\n"
24867 "\n"
24868 msgstr ""
24869
24870 # type: =head2
24871 #: ../fish/guestfish-actions.pod:4287
24872 msgid "txz-out"
24873 msgstr ""
24874
24875 # type: verbatim
24876 #: ../fish/guestfish-actions.pod:4289
24877 #, no-wrap
24878 msgid ""
24879 " txz-out directory (tarball|-)\n"
24880 "\n"
24881 msgstr ""
24882
24883 # type: =head2
24884 #: ../fish/guestfish-actions.pod:4296
24885 msgid "umask"
24886 msgstr ""
24887
24888 # type: verbatim
24889 #: ../fish/guestfish-actions.pod:4298
24890 #, no-wrap
24891 msgid ""
24892 " umask mask\n"
24893 "\n"
24894 msgstr ""
24895
24896 # type: textblock
24897 #: ../fish/guestfish-actions.pod:4312
24898 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24899 msgstr ""
24900
24901 # type: =head2
24902 #: ../fish/guestfish-actions.pod:4317
24903 msgid "umount"
24904 msgstr ""
24905
24906 # type: =head2
24907 #: ../fish/guestfish-actions.pod:4319
24908 msgid "unmount"
24909 msgstr ""
24910
24911 # type: verbatim
24912 #: ../fish/guestfish-actions.pod:4321
24913 #, no-wrap
24914 msgid ""
24915 " umount pathordevice\n"
24916 "\n"
24917 msgstr ""
24918
24919 # type: =head2
24920 #: ../fish/guestfish-actions.pod:4327
24921 msgid "umount-all"
24922 msgstr ""
24923
24924 # type: =head2
24925 #: ../fish/guestfish-actions.pod:4329
24926 msgid "unmount-all"
24927 msgstr ""
24928
24929 # type: verbatim
24930 #: ../fish/guestfish-actions.pod:4331
24931 #, no-wrap
24932 msgid ""
24933 " umount-all\n"
24934 "\n"
24935 msgstr ""
24936
24937 # type: =head2
24938 #: ../fish/guestfish-actions.pod:4337
24939 msgid "upload"
24940 msgstr ""
24941
24942 # type: verbatim
24943 #: ../fish/guestfish-actions.pod:4339
24944 #, no-wrap
24945 msgid ""
24946 " upload (filename|-) remotefilename\n"
24947 "\n"
24948 msgstr ""
24949
24950 # type: textblock
24951 #: ../fish/guestfish-actions.pod:4346
24952 msgid "See also L</download>."
24953 msgstr ""
24954
24955 # type: =head2
24956 #: ../fish/guestfish-actions.pod:4350
24957 msgid "upload-offset"
24958 msgstr ""
24959
24960 # type: verbatim
24961 #: ../fish/guestfish-actions.pod:4352
24962 #, no-wrap
24963 msgid ""
24964 " upload-offset (filename|-) remotefilename offset\n"
24965 "\n"
24966 msgstr ""
24967
24968 # type: textblock
24969 #: ../fish/guestfish-actions.pod:4364
24970 msgid ""
24971 "Note that there is no limit on the amount of data that can be uploaded with "
24972 "this call, unlike with L</pwrite>, and this call always writes the full "
24973 "amount unless an error occurs."
24974 msgstr ""
24975
24976 # type: textblock
24977 #: ../fish/guestfish-actions.pod:4369
24978 msgid "See also L</upload>, L</pwrite>."
24979 msgstr ""
24980
24981 # type: =head2
24982 #: ../fish/guestfish-actions.pod:4373
24983 msgid "utimens"
24984 msgstr ""
24985
24986 # type: verbatim
24987 #: ../fish/guestfish-actions.pod:4375
24988 #, no-wrap
24989 msgid ""
24990 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24991 "\n"
24992 msgstr ""
24993
24994 # type: =head2
24995 #: ../fish/guestfish-actions.pod:4394
24996 msgid "version"
24997 msgstr ""
24998
24999 # type: verbatim
25000 #: ../fish/guestfish-actions.pod:4396
25001 #, no-wrap
25002 msgid ""
25003 " version\n"
25004 "\n"
25005 msgstr ""
25006
25007 # type: textblock
25008 #: ../fish/guestfish-actions.pod:4423
25009 msgid ""
25010 "I<Note:> Don't use this call to test for availability of features.  In "
25011 "enterprise distributions we backport features from later versions into "
25012 "earlier versions, making this an unreliable way to test for features.  Use "
25013 "L</available> instead."
25014 msgstr ""
25015
25016 # type: =head2
25017 #: ../fish/guestfish-actions.pod:4429
25018 msgid "vfs-label"
25019 msgstr ""
25020
25021 # type: verbatim
25022 #: ../fish/guestfish-actions.pod:4431
25023 #, no-wrap
25024 msgid ""
25025 " vfs-label device\n"
25026 "\n"
25027 msgstr ""
25028
25029 # type: textblock
25030 #: ../fish/guestfish-actions.pod:4438
25031 msgid "To find a filesystem from the label, use L</findfs-label>."
25032 msgstr ""
25033
25034 # type: =head2
25035 #: ../fish/guestfish-actions.pod:4440
25036 msgid "vfs-type"
25037 msgstr ""
25038
25039 # type: verbatim
25040 #: ../fish/guestfish-actions.pod:4442
25041 #, no-wrap
25042 msgid ""
25043 " vfs-type device\n"
25044 "\n"
25045 msgstr ""
25046
25047 # type: =head2
25048 #: ../fish/guestfish-actions.pod:4452
25049 msgid "vfs-uuid"
25050 msgstr ""
25051
25052 # type: verbatim
25053 #: ../fish/guestfish-actions.pod:4454
25054 #, no-wrap
25055 msgid ""
25056 " vfs-uuid device\n"
25057 "\n"
25058 msgstr ""
25059
25060 # type: textblock
25061 #: ../fish/guestfish-actions.pod:4461
25062 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
25063 msgstr ""
25064
25065 # type: =head2
25066 #: ../fish/guestfish-actions.pod:4463
25067 msgid "vg-activate"
25068 msgstr ""
25069
25070 # type: verbatim
25071 #: ../fish/guestfish-actions.pod:4465
25072 #, no-wrap
25073 msgid ""
25074 " vg-activate true|false 'volgroups ...'\n"
25075 "\n"
25076 msgstr ""
25077
25078 # type: =head2
25079 #: ../fish/guestfish-actions.pod:4478
25080 msgid "vg-activate-all"
25081 msgstr ""
25082
25083 # type: verbatim
25084 #: ../fish/guestfish-actions.pod:4480
25085 #, no-wrap
25086 msgid ""
25087 " vg-activate-all true|false\n"
25088 "\n"
25089 msgstr ""
25090
25091 # type: =head2
25092 #: ../fish/guestfish-actions.pod:4490
25093 msgid "vgcreate"
25094 msgstr ""
25095
25096 # type: verbatim
25097 #: ../fish/guestfish-actions.pod:4492
25098 #, no-wrap
25099 msgid ""
25100 " vgcreate volgroup 'physvols ...'\n"
25101 "\n"
25102 msgstr ""
25103
25104 # type: =head2
25105 #: ../fish/guestfish-actions.pod:4497
25106 msgid "vglvuuids"
25107 msgstr ""
25108
25109 # type: verbatim
25110 #: ../fish/guestfish-actions.pod:4499
25111 #, no-wrap
25112 msgid ""
25113 " vglvuuids vgname\n"
25114 "\n"
25115 msgstr ""
25116
25117 # type: textblock
25118 #: ../fish/guestfish-actions.pod:4504
25119 msgid ""
25120 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
25121 "logical volumes and volume groups."
25122 msgstr ""
25123
25124 # type: textblock
25125 #: ../fish/guestfish-actions.pod:4507
25126 msgid "See also L</vgpvuuids>."
25127 msgstr ""
25128
25129 # type: =head2
25130 #: ../fish/guestfish-actions.pod:4509
25131 msgid "vgpvuuids"
25132 msgstr ""
25133
25134 # type: verbatim
25135 #: ../fish/guestfish-actions.pod:4511
25136 #, no-wrap
25137 msgid ""
25138 " vgpvuuids vgname\n"
25139 "\n"
25140 msgstr ""
25141
25142 # type: textblock
25143 #: ../fish/guestfish-actions.pod:4516
25144 msgid ""
25145 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
25146 "physical volumes and volume groups."
25147 msgstr ""
25148
25149 # type: textblock
25150 #: ../fish/guestfish-actions.pod:4519
25151 msgid "See also L</vglvuuids>."
25152 msgstr ""
25153
25154 # type: =head2
25155 #: ../fish/guestfish-actions.pod:4521
25156 msgid "vgremove"
25157 msgstr ""
25158
25159 # type: verbatim
25160 #: ../fish/guestfish-actions.pod:4523
25161 #, no-wrap
25162 msgid ""
25163 " vgremove vgname\n"
25164 "\n"
25165 msgstr ""
25166
25167 # type: =head2
25168 #: ../fish/guestfish-actions.pod:4530
25169 msgid "vgrename"
25170 msgstr ""
25171
25172 # type: verbatim
25173 #: ../fish/guestfish-actions.pod:4532
25174 #, no-wrap
25175 msgid ""
25176 " vgrename volgroup newvolgroup\n"
25177 "\n"
25178 msgstr ""
25179
25180 # type: =head2
25181 #: ../fish/guestfish-actions.pod:4536
25182 msgid "vgs"
25183 msgstr ""
25184
25185 # type: verbatim
25186 #: ../fish/guestfish-actions.pod:4538
25187 #, no-wrap
25188 msgid ""
25189 " vgs\n"
25190 "\n"
25191 msgstr ""
25192
25193 # type: textblock
25194 #: ../fish/guestfish-actions.pod:4546
25195 msgid "See also L</vgs-full>."
25196 msgstr ""
25197
25198 # type: =head2
25199 #: ../fish/guestfish-actions.pod:4548
25200 msgid "vgs-full"
25201 msgstr ""
25202
25203 # type: verbatim
25204 #: ../fish/guestfish-actions.pod:4550
25205 #, no-wrap
25206 msgid ""
25207 " vgs-full\n"
25208 "\n"
25209 msgstr ""
25210
25211 # type: =head2
25212 #: ../fish/guestfish-actions.pod:4555
25213 msgid "vgscan"
25214 msgstr ""
25215
25216 # type: verbatim
25217 #: ../fish/guestfish-actions.pod:4557
25218 #, no-wrap
25219 msgid ""
25220 " vgscan\n"
25221 "\n"
25222 msgstr ""
25223
25224 # type: =head2
25225 #: ../fish/guestfish-actions.pod:4562
25226 msgid "vguuid"
25227 msgstr ""
25228
25229 # type: verbatim
25230 #: ../fish/guestfish-actions.pod:4564
25231 #, no-wrap
25232 msgid ""
25233 " vguuid vgname\n"
25234 "\n"
25235 msgstr ""
25236
25237 # type: =head2
25238 #: ../fish/guestfish-actions.pod:4568
25239 msgid "wc-c"
25240 msgstr ""
25241
25242 # type: verbatim
25243 #: ../fish/guestfish-actions.pod:4570
25244 #, no-wrap
25245 msgid ""
25246 " wc-c path\n"
25247 "\n"
25248 msgstr ""
25249
25250 # type: =head2
25251 #: ../fish/guestfish-actions.pod:4575
25252 msgid "wc-l"
25253 msgstr ""
25254
25255 # type: verbatim
25256 #: ../fish/guestfish-actions.pod:4577
25257 #, no-wrap
25258 msgid ""
25259 " wc-l path\n"
25260 "\n"
25261 msgstr ""
25262
25263 # type: =head2
25264 #: ../fish/guestfish-actions.pod:4582
25265 msgid "wc-w"
25266 msgstr ""
25267
25268 # type: verbatim
25269 #: ../fish/guestfish-actions.pod:4584
25270 #, no-wrap
25271 msgid ""
25272 " wc-w path\n"
25273 "\n"
25274 msgstr ""
25275
25276 # type: =head2
25277 #: ../fish/guestfish-actions.pod:4589
25278 msgid "write"
25279 msgstr ""
25280
25281 # type: verbatim
25282 #: ../fish/guestfish-actions.pod:4591
25283 #, no-wrap
25284 msgid ""
25285 " write path content\n"
25286 "\n"
25287 msgstr ""
25288
25289 # type: =head2
25290 #: ../fish/guestfish-actions.pod:4599
25291 msgid "write-file"
25292 msgstr ""
25293
25294 # type: verbatim
25295 #: ../fish/guestfish-actions.pod:4601
25296 #, no-wrap
25297 msgid ""
25298 " write-file path content size\n"
25299 "\n"
25300 msgstr ""
25301
25302 # type: =head2
25303 #: ../fish/guestfish-actions.pod:4624
25304 msgid "zegrep"
25305 msgstr ""
25306
25307 # type: verbatim
25308 #: ../fish/guestfish-actions.pod:4626
25309 #, no-wrap
25310 msgid ""
25311 " zegrep regex path\n"
25312 "\n"
25313 msgstr ""
25314
25315 # type: =head2
25316 #: ../fish/guestfish-actions.pod:4634
25317 msgid "zegrepi"
25318 msgstr ""
25319
25320 # type: verbatim
25321 #: ../fish/guestfish-actions.pod:4636
25322 #, no-wrap
25323 msgid ""
25324 " zegrepi regex path\n"
25325 "\n"
25326 msgstr ""
25327
25328 # type: =head2
25329 #: ../fish/guestfish-actions.pod:4644
25330 msgid "zero"
25331 msgstr ""
25332
25333 # type: verbatim
25334 #: ../fish/guestfish-actions.pod:4646
25335 #, no-wrap
25336 msgid ""
25337 " zero device\n"
25338 "\n"
25339 msgstr ""
25340
25341 # type: textblock
25342 #: ../fish/guestfish-actions.pod:4654
25343 msgid "See also: L</zero-device>, L</scrub-device>."
25344 msgstr ""
25345
25346 # type: =head2
25347 #: ../fish/guestfish-actions.pod:4656
25348 msgid "zero-device"
25349 msgstr ""
25350
25351 # type: verbatim
25352 #: ../fish/guestfish-actions.pod:4658
25353 #, no-wrap
25354 msgid ""
25355 " zero-device device\n"
25356 "\n"
25357 msgstr ""
25358
25359 # type: textblock
25360 #: ../fish/guestfish-actions.pod:4660
25361 msgid ""
25362 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
25363 "which just zeroes the first few blocks of a device."
25364 msgstr ""
25365
25366 # type: =head2
25367 #: ../fish/guestfish-actions.pod:4667
25368 msgid "zerofree"
25369 msgstr ""
25370
25371 # type: verbatim
25372 #: ../fish/guestfish-actions.pod:4669
25373 #, no-wrap
25374 msgid ""
25375 " zerofree device\n"
25376 "\n"
25377 msgstr ""
25378
25379 # type: =head2
25380 #: ../fish/guestfish-actions.pod:4682
25381 msgid "zfgrep"
25382 msgstr ""
25383
25384 # type: verbatim
25385 #: ../fish/guestfish-actions.pod:4684
25386 #, no-wrap
25387 msgid ""
25388 " zfgrep pattern path\n"
25389 "\n"
25390 msgstr ""
25391
25392 # type: =head2
25393 #: ../fish/guestfish-actions.pod:4692
25394 msgid "zfgrepi"
25395 msgstr ""
25396
25397 # type: verbatim
25398 #: ../fish/guestfish-actions.pod:4694
25399 #, no-wrap
25400 msgid ""
25401 " zfgrepi pattern path\n"
25402 "\n"
25403 msgstr ""
25404
25405 # type: =head2
25406 #: ../fish/guestfish-actions.pod:4702
25407 msgid "zfile"
25408 msgstr ""
25409
25410 # type: verbatim
25411 #: ../fish/guestfish-actions.pod:4704
25412 #, no-wrap
25413 msgid ""
25414 " zfile meth path\n"
25415 "\n"
25416 msgstr ""
25417
25418 # type: textblock
25419 #: ../fish/guestfish-actions.pod:4711
25420 msgid ""
25421 "Since 1.0.63, use L</file> instead which can now process compressed files."
25422 msgstr ""
25423
25424 # type: =head2
25425 #: ../fish/guestfish-actions.pod:4721
25426 msgid "zgrep"
25427 msgstr ""
25428
25429 # type: verbatim
25430 #: ../fish/guestfish-actions.pod:4723
25431 #, no-wrap
25432 msgid ""
25433 " zgrep regex path\n"
25434 "\n"
25435 msgstr ""
25436
25437 # type: =head2
25438 #: ../fish/guestfish-actions.pod:4731
25439 msgid "zgrepi"
25440 msgstr ""
25441
25442 # type: verbatim
25443 #: ../fish/guestfish-actions.pod:4733
25444 #, no-wrap
25445 msgid ""
25446 " zgrepi regex path\n"
25447 "\n"
25448 msgstr ""
25449
25450 # type: =head2
25451 #: ../fish/guestfish-commands.pod:1
25452 msgid "alloc"
25453 msgstr ""
25454
25455 # type: =head2
25456 #: ../fish/guestfish-commands.pod:3
25457 msgid "allocate"
25458 msgstr ""
25459
25460 # type: verbatim
25461 #: ../fish/guestfish-commands.pod:5
25462 #, no-wrap
25463 msgid ""
25464 " alloc filename size\n"
25465 "\n"
25466 msgstr ""
25467
25468 # type: textblock
25469 #: ../fish/guestfish-commands.pod:7
25470 msgid ""
25471 "This creates an empty (zeroed) file of the given size, and then adds so it "
25472 "can be further examined."
25473 msgstr ""
25474
25475 # type: textblock
25476 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25477 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25478 msgstr ""
25479
25480 # type: textblock
25481 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25482 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25483 msgstr ""
25484
25485 # type: textblock
25486 #: ../fish/guestfish-commands.pod:14
25487 msgid ""
25488 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25489 "image, see L</PREPARED DISK IMAGES>."
25490 msgstr ""
25491
25492 # type: =head2
25493 #: ../fish/guestfish-commands.pod:17
25494 msgid "copy-in"
25495 msgstr ""
25496
25497 # type: verbatim
25498 #: ../fish/guestfish-commands.pod:19
25499 #, no-wrap
25500 msgid ""
25501 " copy-in local [local ...] /remotedir\n"
25502 "\n"
25503 msgstr ""
25504
25505 # type: textblock
25506 #: ../fish/guestfish-commands.pod:21
25507 msgid ""
25508 "C<copy-in> copies local files or directories recursively into the disk "
25509 "image, placing them in the directory called C</remotedir> (which must "
25510 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25511 "other commands as necessary."
25512 msgstr ""
25513
25514 # type: textblock
25515 #: ../fish/guestfish-commands.pod:26
25516 msgid ""
25517 "Multiple local files and directories can be specified, but the last "
25518 "parameter must always be a remote directory.  Wildcards cannot be used."
25519 msgstr ""
25520
25521 # type: =head2
25522 #: ../fish/guestfish-commands.pod:30
25523 msgid "copy-out"
25524 msgstr ""
25525
25526 # type: verbatim
25527 #: ../fish/guestfish-commands.pod:32
25528 #, no-wrap
25529 msgid ""
25530 " copy-out remote [remote ...] localdir\n"
25531 "\n"
25532 msgstr ""
25533
25534 # type: textblock
25535 #: ../fish/guestfish-commands.pod:34
25536 msgid ""
25537 "C<copy-out> copies remote files or directories recursively out of the disk "
25538 "image, placing them on the host disk in a local directory called C<localdir> "
25539 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25540 "download>, L</tar-out> and other commands as necessary."
25541 msgstr ""
25542
25543 # type: textblock
25544 #: ../fish/guestfish-commands.pod:40
25545 msgid ""
25546 "Multiple remote files and directories can be specified, but the last "
25547 "parameter must always be a local directory.  To download to the current "
25548 "directory, use C<.> as in:"
25549 msgstr ""
25550
25551 # type: verbatim
25552 #: ../fish/guestfish-commands.pod:44
25553 #, no-wrap
25554 msgid ""
25555 " copy-out /home .\n"
25556 "\n"
25557 msgstr ""
25558
25559 # type: textblock
25560 #: ../fish/guestfish-commands.pod:46
25561 msgid ""
25562 "Wildcards cannot be used in the ordinary command, but you can use them with "
25563 "the help of L</glob> like this:"
25564 msgstr ""
25565
25566 # type: verbatim
25567 #: ../fish/guestfish-commands.pod:49
25568 #, no-wrap
25569 msgid ""
25570 " glob copy-out /home/* .\n"
25571 "\n"
25572 msgstr ""
25573
25574 # type: =head2
25575 #: ../fish/guestfish-commands.pod:51
25576 msgid "echo"
25577 msgstr ""
25578
25579 # type: verbatim
25580 #: ../fish/guestfish-commands.pod:53
25581 #, no-wrap
25582 msgid ""
25583 " echo [params ...]\n"
25584 "\n"
25585 msgstr ""
25586
25587 # type: textblock
25588 #: ../fish/guestfish-commands.pod:55
25589 msgid "This echos the parameters to the terminal."
25590 msgstr ""
25591
25592 # type: =head2
25593 #: ../fish/guestfish-commands.pod:57
25594 msgid "edit"
25595 msgstr ""
25596
25597 # type: =head2
25598 #: ../fish/guestfish-commands.pod:59
25599 msgid "vi"
25600 msgstr ""
25601
25602 # type: =head2
25603 #: ../fish/guestfish-commands.pod:61
25604 msgid "emacs"
25605 msgstr ""
25606
25607 # type: verbatim
25608 #: ../fish/guestfish-commands.pod:63
25609 #, no-wrap
25610 msgid ""
25611 " edit filename\n"
25612 "\n"
25613 msgstr ""
25614
25615 # type: textblock
25616 #: ../fish/guestfish-commands.pod:65
25617 msgid ""
25618 "This is used to edit a file.  It downloads the file, edits it locally using "
25619 "your editor, then uploads the result."
25620 msgstr ""
25621
25622 # type: textblock
25623 #: ../fish/guestfish-commands.pod:68
25624 msgid ""
25625 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25626 "or C<emacs> you will get those corresponding editors."
25627 msgstr ""
25628
25629 # type: =head2
25630 #: ../fish/guestfish-commands.pod:72
25631 msgid "glob"
25632 msgstr ""
25633
25634 # type: verbatim
25635 #: ../fish/guestfish-commands.pod:74
25636 #, no-wrap
25637 msgid ""
25638 " glob command args...\n"
25639 "\n"
25640 msgstr ""
25641
25642 # type: textblock
25643 #: ../fish/guestfish-commands.pod:76
25644 msgid ""
25645 "Expand wildcards in any paths in the args list, and run C<command> "
25646 "repeatedly on each matching path."
25647 msgstr ""
25648
25649 # type: textblock
25650 #: ../fish/guestfish-commands.pod:79
25651 msgid "See L</WILDCARDS AND GLOBBING>."
25652 msgstr ""
25653
25654 # type: =head2
25655 #: ../fish/guestfish-commands.pod:81
25656 msgid "hexedit"
25657 msgstr ""
25658
25659 # type: verbatim
25660 #: ../fish/guestfish-commands.pod:83
25661 #, no-wrap
25662 msgid ""
25663 " hexedit <filename|device>\n"
25664 " hexedit <filename|device> <max>\n"
25665 " hexedit <filename|device> <start> <max>\n"
25666 "\n"
25667 msgstr ""
25668
25669 # type: textblock
25670 #: ../fish/guestfish-commands.pod:87
25671 msgid ""
25672 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25673 "device."
25674 msgstr ""
25675
25676 # type: textblock
25677 #: ../fish/guestfish-commands.pod:90
25678 msgid ""
25679 "This command works by downloading potentially the whole file or device, "
25680 "editing it locally, then uploading it.  If the file or device is large, you "
25681 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25682 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25683 "usual modifiers allowed such as C<1M> (1 megabyte)."
25684 msgstr ""
25685
25686 # type: textblock
25687 #: ../fish/guestfish-commands.pod:97
25688 msgid "For example to edit the first few sectors of a disk you might do:"
25689 msgstr ""
25690
25691 # type: verbatim
25692 #: ../fish/guestfish-commands.pod:100
25693 #, no-wrap
25694 msgid ""
25695 " hexedit /dev/sda 1M\n"
25696 "\n"
25697 msgstr ""
25698
25699 # type: textblock
25700 #: ../fish/guestfish-commands.pod:102
25701 msgid ""
25702 "which would allow you to edit anywhere within the first megabyte of the disk."
25703 msgstr ""
25704
25705 # type: textblock
25706 #: ../fish/guestfish-commands.pod:105
25707 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25708 msgstr ""
25709
25710 # type: verbatim
25711 #: ../fish/guestfish-commands.pod:107
25712 #, no-wrap
25713 msgid ""
25714 " hexedit /dev/sda1 0x400 0x400\n"
25715 "\n"
25716 msgstr ""
25717
25718 # type: textblock
25719 #: ../fish/guestfish-commands.pod:109
25720 msgid "(assuming the superblock is in the standard location)."
25721 msgstr ""
25722
25723 # type: textblock
25724 #: ../fish/guestfish-commands.pod:111
25725 msgid ""
25726 "This command requires the external L<hexedit(1)> program.  You can specify "
25727 "another program to use by setting the C<HEXEDITOR> environment variable."
25728 msgstr ""
25729
25730 # type: textblock
25731 #: ../fish/guestfish-commands.pod:115
25732 msgid "See also L</hexdump>."
25733 msgstr ""
25734
25735 # type: =head2
25736 #: ../fish/guestfish-commands.pod:117
25737 msgid "lcd"
25738 msgstr ""
25739
25740 # type: verbatim
25741 #: ../fish/guestfish-commands.pod:119
25742 #, no-wrap
25743 msgid ""
25744 " lcd directory\n"
25745 "\n"
25746 msgstr ""
25747
25748 # type: textblock
25749 #: ../fish/guestfish-commands.pod:121
25750 msgid ""
25751 "Change the local directory, ie. the current directory of guestfish itself."
25752 msgstr ""
25753
25754 # type: textblock
25755 #: ../fish/guestfish-commands.pod:124
25756 msgid "Note that C<!cd> won't do what you might expect."
25757 msgstr ""
25758
25759 # type: =head2
25760 #: ../fish/guestfish-commands.pod:126
25761 msgid "man"
25762 msgstr ""
25763
25764 # type: =head2
25765 #: ../fish/guestfish-commands.pod:128
25766 msgid "manual"
25767 msgstr ""
25768
25769 # type: verbatim
25770 #: ../fish/guestfish-commands.pod:130
25771 #, no-wrap
25772 msgid ""
25773 "  man\n"
25774 "\n"
25775 msgstr ""
25776
25777 # type: textblock
25778 #: ../fish/guestfish-commands.pod:132
25779 msgid "Opens the manual page for guestfish."
25780 msgstr ""
25781
25782 # type: =head2
25783 #: ../fish/guestfish-commands.pod:134
25784 msgid "more"
25785 msgstr ""
25786
25787 # type: =head2
25788 #: ../fish/guestfish-commands.pod:136
25789 msgid "less"
25790 msgstr ""
25791
25792 # type: verbatim
25793 #: ../fish/guestfish-commands.pod:138
25794 #, no-wrap
25795 msgid ""
25796 " more filename\n"
25797 "\n"
25798 msgstr ""
25799
25800 # type: verbatim
25801 #: ../fish/guestfish-commands.pod:140
25802 #, no-wrap
25803 msgid ""
25804 " less filename\n"
25805 "\n"
25806 msgstr ""
25807
25808 # type: textblock
25809 #: ../fish/guestfish-commands.pod:142
25810 msgid "This is used to view a file."
25811 msgstr ""
25812
25813 # type: textblock
25814 #: ../fish/guestfish-commands.pod:144
25815 msgid ""
25816 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25817 "C<less> you will get the C<less> command specifically."
25818 msgstr ""
25819
25820 # type: =head2
25821 #: ../fish/guestfish-commands.pod:147
25822 msgid "reopen"
25823 msgstr ""
25824
25825 # type: verbatim
25826 #: ../fish/guestfish-commands.pod:149
25827 #, no-wrap
25828 msgid ""
25829 "  reopen\n"
25830 "\n"
25831 msgstr ""
25832
25833 # type: textblock
25834 #: ../fish/guestfish-commands.pod:151
25835 msgid ""
25836 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25837 "normally, because the handle is closed properly when guestfish exits.  "
25838 "However this is occasionally useful for testing."
25839 msgstr ""
25840
25841 # type: =head2
25842 #: ../fish/guestfish-commands.pod:155
25843 msgid "sparse"
25844 msgstr ""
25845
25846 # type: verbatim
25847 #: ../fish/guestfish-commands.pod:157
25848 #, no-wrap
25849 msgid ""
25850 " sparse filename size\n"
25851 "\n"
25852 msgstr ""
25853
25854 # type: textblock
25855 #: ../fish/guestfish-commands.pod:159
25856 msgid ""
25857 "This creates an empty sparse file of the given size, and then adds so it can "
25858 "be further examined."
25859 msgstr ""
25860
25861 # type: textblock
25862 #: ../fish/guestfish-commands.pod:162
25863 msgid ""
25864 "In all respects it works the same as the L</alloc> command, except that the "
25865 "image file is allocated sparsely, which means that disk blocks are not "
25866 "assigned to the file until they are needed.  Sparse disk files only use "
25867 "space when written to, but they are slower and there is a danger you could "
25868 "run out of real disk space during a write operation."
25869 msgstr ""
25870
25871 # type: =head2
25872 #: ../fish/guestfish-commands.pod:172
25873 msgid "supported"
25874 msgstr ""
25875
25876 # type: verbatim
25877 #: ../fish/guestfish-commands.pod:174
25878 #, no-wrap
25879 msgid ""
25880 " supported\n"
25881 "\n"
25882 msgstr ""
25883
25884 # type: textblock
25885 #: ../fish/guestfish-commands.pod:176
25886 msgid ""
25887 "This command returns a list of the optional groups known to the daemon, and "
25888 "indicates which ones are supported by this build of the libguestfs appliance."
25889 msgstr ""
25890
25891 # type: textblock
25892 #: ../fish/guestfish-commands.pod:180
25893 msgid "See also L<guestfs(3)/AVAILABILITY>."
25894 msgstr ""
25895
25896 # type: =head2
25897 #: ../fish/guestfish-commands.pod:182
25898 msgid "time"
25899 msgstr ""
25900
25901 # type: verbatim
25902 #: ../fish/guestfish-commands.pod:184
25903 #, no-wrap
25904 msgid ""
25905 " time command args...\n"
25906 "\n"
25907 msgstr ""
25908
25909 # type: textblock
25910 #: ../fish/guestfish-commands.pod:186
25911 msgid ""
25912 "Run the command as usual, but print the elapsed time afterwards.  This can "
25913 "be useful for benchmarking operations."
25914 msgstr ""
25915
25916 # type: textblock
25917 #: ../test-tool/libguestfs-test-tool.pod:5
25918 msgid "libguestfs-test-tool - End user tests for libguestfs"
25919 msgstr ""
25920
25921 # type: verbatim
25922 #: ../test-tool/libguestfs-test-tool.pod:9
25923 #, no-wrap
25924 msgid ""
25925 " libguestfs-test-tool [--options]\n"
25926 "\n"
25927 msgstr ""
25928
25929 # type: textblock
25930 #: ../test-tool/libguestfs-test-tool.pod:13
25931 msgid ""
25932 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25933 "and developers, to allow them to check basic libguestfs functionality is "
25934 "working.  This is needed because libguestfs occasionally breaks for reasons "
25935 "beyond our control: usually because of changes in the underlying qemu or "
25936 "kernel packages, or the host environment."
25937 msgstr ""
25938
25939 # type: textblock
25940 #: ../test-tool/libguestfs-test-tool.pod:20
25941 msgid "If you suspect a problem in libguestfs, then just run:"
25942 msgstr ""
25943
25944 # type: verbatim
25945 #: ../test-tool/libguestfs-test-tool.pod:22
25946 #, no-wrap
25947 msgid ""
25948 " libguestfs-test-tool\n"
25949 "\n"
25950 msgstr ""
25951
25952 # type: textblock
25953 #: ../test-tool/libguestfs-test-tool.pod:24
25954 msgid "It will print lots of diagnostic messages."
25955 msgstr ""
25956
25957 # type: textblock
25958 #: ../test-tool/libguestfs-test-tool.pod:26
25959 msgid "If it runs to completion successfully, you will see this near the end:"
25960 msgstr ""
25961
25962 # type: verbatim
25963 #: ../test-tool/libguestfs-test-tool.pod:28
25964 #, no-wrap
25965 msgid ""
25966 " ===== TEST FINISHED OK =====\n"
25967 "\n"
25968 msgstr ""
25969
25970 # type: textblock
25971 #: ../test-tool/libguestfs-test-tool.pod:30
25972 msgid "and the test tool will exit with code 0."
25973 msgstr ""
25974
25975 # type: textblock
25976 #: ../test-tool/libguestfs-test-tool.pod:32
25977 msgid ""
25978 "If it fails (and/or exits with non-zero error code), please paste the "
25979 "B<complete, unedited> output of the test tool into a bug report.  More "
25980 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25981 "> website."
25982 msgstr ""
25983
25984 # type: =item
25985 #: ../test-tool/libguestfs-test-tool.pod:41
25986 msgid "I<--help>"
25987 msgstr ""
25988
25989 # type: textblock
25990 #: ../test-tool/libguestfs-test-tool.pod:43
25991 msgid "Display short usage information and exit."
25992 msgstr ""
25993
25994 # type: =item
25995 #: ../test-tool/libguestfs-test-tool.pod:45
25996 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25997 msgstr ""
25998
25999 # type: textblock
26000 #: ../test-tool/libguestfs-test-tool.pod:47
26001 msgid ""
26002 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
26003 "normally look in the C<$libexec> directory that was configured when the tool "
26004 "was built."
26005 msgstr ""
26006
26007 # type: =item
26008 #: ../test-tool/libguestfs-test-tool.pod:51
26009 msgid "I<--qemu qemu_binary>"
26010 msgstr ""
26011
26012 # type: textblock
26013 #: ../test-tool/libguestfs-test-tool.pod:53
26014 msgid ""
26015 "If you have downloaded another qemu binary, point this option at the full "
26016 "path of the binary to try it."
26017 msgstr ""
26018
26019 # type: =item
26020 #: ../test-tool/libguestfs-test-tool.pod:56
26021 msgid "I<--qemudir qemu_source_dir>"
26022 msgstr ""
26023
26024 # type: textblock
26025 #: ../test-tool/libguestfs-test-tool.pod:58
26026 msgid ""
26027 "If you have compiled qemu from source, point this option at the source "
26028 "directory to try it."
26029 msgstr ""
26030
26031 # type: =item
26032 #: ../test-tool/libguestfs-test-tool.pod:61
26033 msgid "I<--timeout N>"
26034 msgstr ""
26035
26036 # type: textblock
26037 #: ../test-tool/libguestfs-test-tool.pod:63
26038 msgid ""
26039 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
26040 "does not usually need to be adjusted unless your machine is very slow."
26041 msgstr ""
26042
26043 # type: =head1
26044 #: ../test-tool/libguestfs-test-tool.pod:69
26045 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
26046 msgstr ""
26047
26048 # type: textblock
26049 #: ../test-tool/libguestfs-test-tool.pod:71
26050 msgid ""
26051 "If you have compiled another version of qemu from source and would like to "
26052 "try that, then you can use the I<--qemudir> option to point to the qemu "
26053 "source directory."
26054 msgstr ""
26055
26056 # type: textblock
26057 #: ../test-tool/libguestfs-test-tool.pod:75
26058 msgid ""
26059 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
26060 "option to point to the binary."
26061 msgstr ""
26062
26063 # type: textblock
26064 #: ../test-tool/libguestfs-test-tool.pod:78
26065 msgid ""
26066 "When using an alternate qemu with libguestfs, usually you would need to "
26067 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
26068 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
26069 "use either of the I<--qemudir> or I<--qemu> options."
26070 msgstr ""
26071
26072 # type: textblock
26073 #: ../test-tool/libguestfs-test-tool.pod:85
26074 msgid ""
26075 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
26076 "I<1> if there was an error."
26077 msgstr ""
26078
26079 # type: =item
26080 #: ../test-tool/libguestfs-test-tool.pod:92
26081 msgid "/usr/libexec/libguestfs-test-tool-helper"
26082 msgstr ""
26083
26084 # type: textblock
26085 #: ../test-tool/libguestfs-test-tool.pod:94
26086 msgid ""
26087 "This helper program is run inside the appliance and provides additional "
26088 "tests."
26089 msgstr ""
26090
26091 # type: =item
26092 #: ../test-tool/libguestfs-test-tool.pod:97
26093 msgid "/usr/bin/mkisofs"
26094 msgstr ""
26095
26096 # type: textblock
26097 #: ../test-tool/libguestfs-test-tool.pod:99
26098 msgid ""
26099 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
26100 "which is used as part of the tests."
26101 msgstr ""
26102
26103 # type: textblock
26104 #: ../test-tool/libguestfs-test-tool.pod:106
26105 msgid ""
26106 "For the full list of environment variables which may affect libguestfs, "
26107 "please see the L<guestfs(3)> manual page."
26108 msgstr ""
26109
26110 # type: textblock
26111 #: ../test-tool/libguestfs-test-tool.pod:111
26112 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
26113 msgstr ""
26114
26115 # type: textblock
26116 #: ../test-tool/libguestfs-test-tool.pod:121
26117 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
26118 msgstr ""
26119
26120 # type: textblock
26121 #: ../fuse/guestmount.pod:5
26122 msgid ""
26123 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
26124 msgstr ""
26125
26126 # type: verbatim
26127 #: ../fuse/guestmount.pod:9
26128 #, no-wrap
26129 msgid ""
26130 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
26131 "\n"
26132 msgstr ""
26133
26134 # type: verbatim
26135 #: ../fuse/guestmount.pod:11
26136 #, no-wrap
26137 msgid ""
26138 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
26139 "\n"
26140 msgstr ""
26141
26142 # type: verbatim
26143 #: ../fuse/guestmount.pod:13
26144 #, no-wrap
26145 msgid ""
26146 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
26147 "\n"
26148 msgstr ""
26149
26150 # type: textblock
26151 #: ../fuse/guestmount.pod:17
26152 msgid ""
26153 "You must I<not> use C<guestmount> in read-write mode on live virtual "
26154 "machines.  If you do this, you risk disk corruption in the VM."
26155 msgstr ""
26156
26157 # type: textblock
26158 #: ../fuse/guestmount.pod:22
26159 msgid ""
26160 "The guestmount program can be used to mount virtual machine filesystems and "
26161 "other disk images on the host.  It uses libguestfs for access to the guest "
26162 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
26163 "a mountable device."
26164 msgstr ""
26165
26166 # type: textblock
26167 #: ../fuse/guestmount.pod:27
26168 msgid ""
26169 "Along with other options, you have to give at least one device (I<-a> "
26170 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
26171 "option) or use the I<-i> inspection option.  How this works is better "
26172 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
26173 "below."
26174 msgstr ""
26175
26176 # type: textblock
26177 #: ../fuse/guestmount.pod:33
26178 msgid ""
26179 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
26180 "by you, and the filesystem will not be visible to any other users unless you "
26181 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
26182 "the filesystem, use the C<fusermount -u> command."
26183 msgstr ""
26184
26185 # type: textblock
26186 #: ../fuse/guestmount.pod:41
26187 msgid ""
26188 "For a typical Windows guest which has its main filesystem on the first "
26189 "partition:"
26190 msgstr ""
26191
26192 # type: verbatim
26193 #: ../fuse/guestmount.pod:44
26194 #, no-wrap
26195 msgid ""
26196 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
26197 "\n"
26198 msgstr ""
26199
26200 # type: textblock
26201 #: ../fuse/guestmount.pod:46
26202 msgid ""
26203 "For a typical Linux guest which has a /boot filesystem on the first "
26204 "partition, and the root filesystem on a logical volume:"
26205 msgstr ""
26206
26207 # type: verbatim
26208 #: ../fuse/guestmount.pod:49
26209 #, no-wrap
26210 msgid ""
26211 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
26212 "\n"
26213 msgstr ""
26214
26215 # type: textblock
26216 #: ../fuse/guestmount.pod:51
26217 msgid "To get libguestfs to detect guest mountpoints for you:"
26218 msgstr ""
26219
26220 # type: verbatim
26221 #: ../fuse/guestmount.pod:53
26222 #, no-wrap
26223 msgid ""
26224 " guestmount -a guest.img -i --ro /mnt\n"
26225 "\n"
26226 msgstr ""
26227
26228 # type: textblock
26229 #: ../fuse/guestmount.pod:55
26230 msgid "For a libvirt guest called \"Guest\" you could do:"
26231 msgstr ""
26232
26233 # type: verbatim
26234 #: ../fuse/guestmount.pod:57
26235 #, no-wrap
26236 msgid ""
26237 " guestmount -d Guest -i --ro /mnt\n"
26238 "\n"
26239 msgstr ""
26240
26241 # type: textblock
26242 #: ../fuse/guestmount.pod:59
26243 msgid ""
26244 "If you don't know what filesystems are contained in a guest or disk image, "
26245 "use L<virt-filesystems(1)> first:"
26246 msgstr ""
26247
26248 # type: verbatim
26249 #: ../fuse/guestmount.pod:62
26250 #, no-wrap
26251 msgid ""
26252 " virt-filesystems MyGuest\n"
26253 "\n"
26254 msgstr ""
26255
26256 # type: textblock
26257 #: ../fuse/guestmount.pod:64
26258 msgid ""
26259 "If you want to trace the libguestfs calls but without excessive debugging "
26260 "information, we recommend:"
26261 msgstr ""
26262
26263 # type: verbatim
26264 #: ../fuse/guestmount.pod:67
26265 #, no-wrap
26266 msgid ""
26267 " guestmount [...] --trace /mnt\n"
26268 "\n"
26269 msgstr ""
26270
26271 # type: textblock
26272 #: ../fuse/guestmount.pod:69
26273 msgid "If you want to debug the program, we recommend:"
26274 msgstr ""
26275
26276 # type: verbatim
26277 #: ../fuse/guestmount.pod:71
26278 #, no-wrap
26279 msgid ""
26280 " guestmount [...] --trace --verbose /mnt\n"
26281 "\n"
26282 msgstr ""
26283
26284 # type: =item
26285 #: ../fuse/guestmount.pod:77
26286 msgid "B<-a image> | B<--add image>"
26287 msgstr ""
26288
26289 # type: textblock
26290 #: ../fuse/guestmount.pod:79
26291 msgid "Add a block device or virtual machine image."
26292 msgstr ""
26293
26294 # type: =item
26295 #: ../fuse/guestmount.pod:84
26296 msgid "B<-c URI> | B<--connect URI>"
26297 msgstr ""
26298
26299 # type: =item
26300 #: ../fuse/guestmount.pod:90
26301 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
26302 msgstr ""
26303
26304 # type: =item
26305 #: ../fuse/guestmount.pod:96
26306 msgid "B<--dir-cache-timeout N>"
26307 msgstr ""
26308
26309 # type: textblock
26310 #: ../fuse/guestmount.pod:98
26311 msgid ""
26312 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
26313 "seconds.  The readdir cache [actually, there are several semi-independent "
26314 "caches] is populated after a readdir(2) call with the stat and extended "
26315 "attributes of the files in the directory, in anticipation that they will be "
26316 "requested soon after."
26317 msgstr ""
26318
26319 # type: textblock
26320 #: ../fuse/guestmount.pod:104
26321 msgid ""
26322 "There is also a different attribute cache implemented by FUSE (see the FUSE "
26323 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
26324 "requests, only cache existing ones."
26325 msgstr ""
26326
26327 # type: =item
26328 #: ../fuse/guestmount.pod:115
26329 msgid "B<--format=raw|qcow2|..> | B<--format>"
26330 msgstr ""
26331
26332 # type: textblock
26333 #: ../fuse/guestmount.pod:122
26334 msgid ""
26335 "If you have untrusted raw-format guest disk images, you should use this "
26336 "option to specify the disk format.  This avoids a possible security problem "
26337 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
26338 "guestfs_add_drive_opts>."
26339 msgstr ""
26340
26341 # type: =item
26342 #: ../fuse/guestmount.pod:127
26343 msgid "B<--fuse-help>"
26344 msgstr ""
26345
26346 # type: textblock
26347 #: ../fuse/guestmount.pod:129
26348 msgid "Display help on special FUSE options (see I<-o> below)."
26349 msgstr ""
26350
26351 # type: textblock
26352 #: ../fuse/guestmount.pod:133
26353 msgid "Display brief help and exit."
26354 msgstr ""
26355
26356 # type: =item
26357 #: ../fuse/guestmount.pod:135
26358 msgid "B<-i> | B<--inspector>"
26359 msgstr ""
26360
26361 # type: =item
26362 #: ../fuse/guestmount.pod:146
26363 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
26364 msgstr ""
26365
26366 # type: textblock
26367 #: ../fuse/guestmount.pod:148
26368 msgid ""
26369 "Mount the named partition or logical volume on the given mountpoint B<in the "
26370 "guest> (this has nothing to do with mountpoints in the host)."
26371 msgstr ""
26372
26373 # type: textblock
26374 #: ../fuse/guestmount.pod:151
26375 msgid ""
26376 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
26377 "something on C</>."
26378 msgstr ""
26379
26380 # type: =item
26381 #: ../fuse/guestmount.pod:154
26382 msgid "B<-n> | B<--no-sync>"
26383 msgstr ""
26384
26385 # type: textblock
26386 #: ../fuse/guestmount.pod:156
26387 msgid ""
26388 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
26389 "unmounted.  If you specify this option, then we don't attempt to sync the "
26390 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
26391 msgstr ""
26392
26393 # type: =item
26394 #: ../fuse/guestmount.pod:161
26395 msgid "B<-o option> | B<--option option>"
26396 msgstr ""
26397
26398 # type: textblock
26399 #: ../fuse/guestmount.pod:163
26400 msgid "Pass extra options to FUSE."
26401 msgstr ""
26402
26403 # type: textblock
26404 #: ../fuse/guestmount.pod:165
26405 msgid ""
26406 "To get a list of all the extra options supported by FUSE, use the command "
26407 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
26408 "of them are a good idea."
26409 msgstr ""
26410
26411 # type: verbatim
26412 #: ../fuse/guestmount.pod:169
26413 #, no-wrap
26414 msgid ""
26415 " guestmount --fuse-help\n"
26416 "\n"
26417 msgstr ""
26418
26419 # type: textblock
26420 #: ../fuse/guestmount.pod:171
26421 msgid "Some potentially useful FUSE options:"
26422 msgstr ""
26423
26424 # type: =item
26425 #: ../fuse/guestmount.pod:175
26426 msgid "B<-o allow_other>"
26427 msgstr ""
26428
26429 # type: textblock
26430 #: ../fuse/guestmount.pod:177
26431 msgid "Allow other users to see the filesystem."
26432 msgstr ""
26433
26434 # type: =item
26435 #: ../fuse/guestmount.pod:179
26436 msgid "B<-o attr_timeout=N>"
26437 msgstr ""
26438
26439 # type: textblock
26440 #: ../fuse/guestmount.pod:181
26441 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
26442 msgstr ""
26443
26444 # type: =item
26445 #: ../fuse/guestmount.pod:183
26446 msgid "B<-o kernel_cache>"
26447 msgstr ""
26448
26449 # type: textblock
26450 #: ../fuse/guestmount.pod:185
26451 msgid ""
26452 "Allow the kernel to cache files (reduces the number of reads that have to go "
26453 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
26454 "afford the extra memory usage."
26455 msgstr ""
26456
26457 # type: =item
26458 #: ../fuse/guestmount.pod:189
26459 msgid "B<-o uid=N> B<-o gid=N>"
26460 msgstr ""
26461
26462 # type: textblock
26463 #: ../fuse/guestmount.pod:191
26464 msgid ""
26465 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
26466 "the chosen values."
26467 msgstr ""
26468
26469 # type: =item
26470 #: ../fuse/guestmount.pod:196
26471 msgid "B<-r> | B<--ro>"
26472 msgstr ""
26473
26474 # type: textblock
26475 #: ../fuse/guestmount.pod:198
26476 msgid ""
26477 "Add devices and mount everything read-only.  Also disallow writes and make "
26478 "the disk appear read-only to FUSE."
26479 msgstr ""
26480
26481 # type: textblock
26482 #: ../fuse/guestmount.pod:201
26483 msgid ""
26484 "This is highly recommended if you are not going to edit the guest disk.  If "
26485 "the guest is running and this option is I<not> supplied, then there is a "
26486 "strong risk of disk corruption in the guest.  We try to prevent this from "
26487 "happening, but it is not always possible."
26488 msgstr ""
26489
26490 # type: textblock
26491 #: ../fuse/guestmount.pod:206
26492 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26493 msgstr ""
26494
26495 # type: textblock
26496 #: ../fuse/guestmount.pod:210
26497 msgid "Enable SELinux support for the guest."
26498 msgstr ""
26499
26500 # type: =item
26501 #: ../fuse/guestmount.pod:212
26502 msgid "B<-v> | B<--verbose>"
26503 msgstr ""
26504
26505 # type: textblock
26506 #: ../fuse/guestmount.pod:214
26507 msgid "Enable verbose messages from underlying libguestfs."
26508 msgstr ""
26509
26510 # type: =item
26511 #: ../fuse/guestmount.pod:216
26512 msgid "B<-V> | B<--version>"
26513 msgstr ""
26514
26515 # type: textblock
26516 #: ../fuse/guestmount.pod:218
26517 msgid "Display the program version and exit."
26518 msgstr ""
26519
26520 # type: =item
26521 #: ../fuse/guestmount.pod:220
26522 msgid "B<-w> | B<--rw>"
26523 msgstr ""
26524
26525 # type: textblock
26526 #: ../fuse/guestmount.pod:222
26527 msgid ""
26528 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26529 "FOR READ AND WRITE>."
26530 msgstr ""
26531
26532 # type: =item
26533 #: ../fuse/guestmount.pod:225
26534 msgid "B<-x> | B<--trace>"
26535 msgstr ""
26536
26537 # type: textblock
26538 #: ../fuse/guestmount.pod:227
26539 msgid "Trace libguestfs calls."
26540 msgstr ""
26541
26542 # type: textblock
26543 #: ../fuse/guestmount.pod:229
26544 msgid "This also stops the daemon from forking into the background."
26545 msgstr ""
26546
26547 # type: textblock
26548 #: ../fuse/guestmount.pod:235
26549 msgid ""
26550 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26551 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26552 "net/>."
26553 msgstr ""
26554
26555 # type: textblock
26556 #: ../tools/virt-edit.pl:34
26557 msgid "virt-edit - Edit a file in a virtual machine"
26558 msgstr ""
26559
26560 # type: verbatim
26561 #: ../tools/virt-edit.pl:38
26562 #, no-wrap
26563 msgid ""
26564 " virt-edit [--options] domname file\n"
26565 "\n"
26566 msgstr ""
26567
26568 # type: verbatim
26569 #: ../tools/virt-edit.pl:40
26570 #, no-wrap
26571 msgid ""
26572 " virt-edit [--options] disk.img [disk.img ...] file\n"
26573 "\n"
26574 msgstr ""
26575
26576 # type: verbatim
26577 #: ../tools/virt-edit.pl:42
26578 #, no-wrap
26579 msgid ""
26580 " virt-edit [domname|disk.img] file -e 'expr'\n"
26581 "\n"
26582 msgstr ""
26583
26584 # type: textblock
26585 #: ../tools/virt-edit.pl:46
26586 msgid ""
26587 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26588 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26589 "doing this, but doesn't catch all cases."
26590 msgstr ""
26591
26592 # type: textblock
26593 #: ../tools/virt-edit.pl:52
26594 msgid ""
26595 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26596 "the named virtual machine (or disk image)."
26597 msgstr ""
26598
26599 # type: textblock
26600 #: ../tools/virt-edit.pl:55
26601 msgid ""
26602 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26603 "you should look at the L<guestfish(1)> tool."
26604 msgstr ""
26605
26606 # type: textblock
26607 #: ../tools/virt-edit.pl:60
26608 msgid "Edit the named files interactively:"
26609 msgstr ""
26610
26611 # type: verbatim
26612 #: ../tools/virt-edit.pl:62
26613 #, no-wrap
26614 msgid ""
26615 " virt-edit mydomain /boot/grub/grub.conf\n"
26616 "\n"
26617 msgstr ""
26618
26619 # type: verbatim
26620 #: ../tools/virt-edit.pl:64
26621 #, no-wrap
26622 msgid ""
26623 " virt-edit mydomain /etc/passwd\n"
26624 "\n"
26625 msgstr ""
26626
26627 # type: textblock
26628 #: ../tools/virt-edit.pl:66
26629 msgid ""
26630 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26631 "below).  To change the init default level to 5:"
26632 msgstr ""
26633
26634 # type: verbatim
26635 #: ../tools/virt-edit.pl:70
26636 #, no-wrap
26637 msgid ""
26638 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26639 "\n"
26640 msgstr ""
26641
26642 # type: textblock
26643 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
26644 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108
26645 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
26646 msgid "Display brief help."
26647 msgstr ""
26648
26649 # type: textblock
26650 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
26651 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
26652 #: ../tools/virt-tar.pl:116 ../tools/virt-make-fs.pl:171
26653 #: ../tools/virt-list-partitions.pl:72
26654 msgid "Display version number and exit."
26655 msgstr ""
26656
26657 # type: =item
26658 #: ../tools/virt-edit.pl:96
26659 msgid "B<--backup extension> | B<-b extension>"
26660 msgstr ""
26661
26662 # type: textblock
26663 #: ../tools/virt-edit.pl:98
26664 msgid ""
26665 "Create a backup of the original file I<in the guest disk image>.  The backup "
26666 "has the original filename with C<extension> added."
26667 msgstr ""
26668
26669 # type: textblock
26670 #: ../tools/virt-edit.pl:101
26671 msgid ""
26672 "Usually the first character of C<extension> would be a dot C<.> so you would "
26673 "write:"
26674 msgstr ""
26675
26676 # type: verbatim
26677 #: ../tools/virt-edit.pl:104
26678 #, no-wrap
26679 msgid ""
26680 " virt-edit -b .orig [etc]\n"
26681 "\n"
26682 msgstr ""
26683
26684 # type: textblock
26685 #: ../tools/virt-edit.pl:106
26686 msgid "By default, no backup file is made."
26687 msgstr ""
26688
26689 # type: =item
26690 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
26691 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122
26692 #: ../tools/virt-list-partitions.pl:78
26693 msgid "B<--connect URI> | B<-c URI>"
26694 msgstr ""
26695
26696 # type: textblock
26697 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
26698 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124
26699 #: ../tools/virt-list-partitions.pl:80
26700 msgid ""
26701 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26702 "to the default libvirt hypervisor."
26703 msgstr ""
26704
26705 # type: textblock
26706 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
26707 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127
26708 #: ../tools/virt-list-partitions.pl:83
26709 msgid ""
26710 "If you specify guest block devices directly, then libvirt is not used at all."
26711 msgstr ""
26712
26713 # type: =item
26714 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
26715 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
26716 #: ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
26717 msgid "B<--format> raw"
26718 msgstr ""
26719
26720 # type: textblock
26721 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
26722 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136
26723 #: ../tools/virt-list-partitions.pl:92
26724 msgid ""
26725 "Specify the format of disk images given on the command line.  If this is "
26726 "omitted then the format is autodetected from the content of the disk image."
26727 msgstr ""
26728
26729 # type: textblock
26730 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
26731 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140
26732 #: ../tools/virt-list-partitions.pl:96
26733 msgid ""
26734 "If disk images are requested from libvirt, then this program asks libvirt "
26735 "for this information.  In this case, the value of the format parameter is "
26736 "ignored."
26737 msgstr ""
26738
26739 # type: textblock
26740 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
26741 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
26742 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144
26743 #: ../tools/virt-list-partitions.pl:100
26744 msgid ""
26745 "If working with untrusted raw-format guest disk images, you should ensure "
26746 "the format is always specified."
26747 msgstr ""
26748
26749 # type: =item
26750 #: ../tools/virt-edit.pl:141
26751 msgid "B<--expr EXPR> | B<-e EXPR>"
26752 msgstr ""
26753
26754 # type: textblock
26755 #: ../tools/virt-edit.pl:143
26756 msgid ""
26757 "Instead of launching the external editor, non-interactively apply the Perl "
26758 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26759 "EDITING> below."
26760 msgstr ""
26761
26762 # type: textblock
26763 #: ../tools/virt-edit.pl:147
26764 msgid ""
26765 "Be careful to properly quote the expression to prevent it from being altered "
26766 "by the shell."
26767 msgstr ""
26768
26769 # type: =head1
26770 #: ../tools/virt-edit.pl:268
26771 msgid "NON-INTERACTIVE EDITING"
26772 msgstr ""
26773
26774 # type: textblock
26775 #: ../tools/virt-edit.pl:270
26776 msgid ""
26777 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26778 "administrator can interactively edit the file."
26779 msgstr ""
26780
26781 # type: textblock
26782 #: ../tools/virt-edit.pl:273
26783 msgid ""
26784 "There are two ways also to use C<virt-edit> from scripts in order to make "
26785 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26786 "like this, it's less error-prone to write scripts directly using the "
26787 "libguestfs API and Augeas for configuration file editing.)"
26788 msgstr ""
26789
26790 # type: textblock
26791 #: ../tools/virt-edit.pl:279
26792 msgid ""
26793 "The first method is to temporarily set C<$EDITOR> to any script or program "
26794 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26795 "update C<tmpfile> in place however it likes."
26796 msgstr ""
26797
26798 # type: textblock
26799 #: ../tools/virt-edit.pl:283
26800 msgid ""
26801 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26802 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26803 "instances of C<foo> with C<bar> in a file:"
26804 msgstr ""
26805
26806 # type: verbatim
26807 #: ../tools/virt-edit.pl:287
26808 #, no-wrap
26809 msgid ""
26810 " virt-edit domname filename -e 's/foo/bar/'\n"
26811 "\n"
26812 msgstr ""
26813
26814 # type: textblock
26815 #: ../tools/virt-edit.pl:289
26816 msgid ""
26817 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26818 "For example to delete root's password you could do:"
26819 msgstr ""
26820
26821 # type: verbatim
26822 #: ../tools/virt-edit.pl:292
26823 #, no-wrap
26824 msgid ""
26825 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26826 "\n"
26827 msgstr ""
26828
26829 # type: textblock
26830 #: ../tools/virt-edit.pl:294
26831 msgid ""
26832 "What really happens is that the snippet is evaluated as a Perl expression "
26833 "for each line of the file.  The line, including the final C<\\n>, is passed "
26834 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26835 msgstr ""
26836
26837 # type: textblock
26838 #: ../tools/virt-edit.pl:299
26839 msgid ""
26840 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26841 "C<apache> user account from the password file you can do:"
26842 msgstr ""
26843
26844 # type: verbatim
26845 #: ../tools/virt-edit.pl:302
26846 #, no-wrap
26847 msgid ""
26848 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26849 "\n"
26850 msgstr ""
26851
26852 # type: textblock
26853 #: ../tools/virt-edit.pl:304
26854 msgid ""
26855 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26856 "the end of the file is rather difficult this way since there is no concept "
26857 "of \"last line of the file\" - your expression just doesn't get called "
26858 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26859 "want to do this."
26860 msgstr ""
26861
26862 # type: textblock
26863 #: ../tools/virt-edit.pl:310
26864 msgid ""
26865 "The variable C<$lineno> contains the current line number.  As is "
26866 "traditional, the first line in the file is number C<1>."
26867 msgstr ""
26868
26869 # type: textblock
26870 #: ../tools/virt-edit.pl:313
26871 msgid ""
26872 "The return value from the expression is ignored, but the expression may call "
26873 "C<die> in order to abort the whole program, leaving the original file "
26874 "untouched."
26875 msgstr ""
26876
26877 # type: textblock
26878 #: ../tools/virt-edit.pl:317
26879 msgid ""
26880 "Remember when matching the end of a line that C<$_> may contain the final C<"
26881 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26882 "newline then neither of these.  Thus to match or substitute some text at the "
26883 "end of a line, use this regular expression:"
26884 msgstr ""
26885
26886 # type: verbatim
26887 #: ../tools/virt-edit.pl:322
26888 #, no-wrap
26889 msgid ""
26890 " /some text(\\r?\\n)?$/\n"
26891 "\n"
26892 msgstr ""
26893
26894 # type: textblock
26895 #: ../tools/virt-edit.pl:324
26896 msgid ""
26897 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26898 "$_> itself (since that would remove all newlines from the file):"
26899 msgstr ""
26900
26901 # type: verbatim
26902 #: ../tools/virt-edit.pl:328
26903 #, no-wrap
26904 msgid ""
26905 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26906 "\n"
26907 msgstr ""
26908
26909 # type: =item
26910 #: ../tools/virt-edit.pl:334
26911 msgid "C<EDITOR>"
26912 msgstr ""
26913
26914 # type: textblock
26915 #: ../tools/virt-edit.pl:336
26916 msgid ""
26917 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26918 "\"emacs -nw\">"
26919 msgstr ""
26920
26921 # type: textblock
26922 #: ../tools/virt-edit.pl:339
26923 msgid "If not set, C<vi> is used."
26924 msgstr ""
26925
26926 # type: =head2
26927 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
26928 #: ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182
26929 #: ../tools/virt-tar.pl:274 ../tools/virt-make-fs.pl:527
26930 #: ../tools/virt-list-partitions.pl:250
26931 msgid "SHELL QUOTING"
26932 msgstr ""
26933
26934 # type: textblock
26935 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
26936 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
26937 #: ../tools/virt-tar.pl:276 ../tools/virt-make-fs.pl:529
26938 #: ../tools/virt-list-partitions.pl:252
26939 msgid ""
26940 "Libvirt guest names can contain arbitrary characters, some of which have "
26941 "meaning to the shell such as C<#> and space.  You may need to quote or "
26942 "escape these characters on the command line.  See the shell manual page L<sh"
26943 "(1)> for details."
26944 msgstr ""
26945
26946 # type: textblock
26947 #: ../tools/virt-edit.pl:352
26948 msgid ""
26949 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26950 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26951 "L<perlre(1)>."
26952 msgstr ""
26953
26954 # type: =head1
26955 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:598
26956 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
26957 #: ../tools/virt-tar.pl:292 ../tools/virt-make-fs.pl:559
26958 #: ../tools/virt-list-partitions.pl:269
26959 msgid "AUTHOR"
26960 msgstr ""
26961
26962 # type: textblock
26963 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:600
26964 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
26965 #: ../tools/virt-tar.pl:294 ../tools/virt-make-fs.pl:561
26966 #: ../tools/virt-list-partitions.pl:271
26967 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26968 msgstr ""
26969
26970 # type: textblock
26971 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
26972 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26973 msgstr ""
26974
26975 # type: textblock
26976 #: ../tools/virt-win-reg.pl:37
26977 msgid ""
26978 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26979 msgstr ""
26980
26981 # type: verbatim
26982 #: ../tools/virt-win-reg.pl:41
26983 #, no-wrap
26984 msgid ""
26985 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26986 "\n"
26987 msgstr ""
26988
26989 # type: verbatim
26990 #: ../tools/virt-win-reg.pl:43
26991 #, no-wrap
26992 msgid ""
26993 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26994 "\n"
26995 msgstr ""
26996
26997 # type: verbatim
26998 #: ../tools/virt-win-reg.pl:45
26999 #, no-wrap
27000 msgid ""
27001 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
27002 "\n"
27003 msgstr ""
27004
27005 # type: verbatim
27006 #: ../tools/virt-win-reg.pl:47
27007 #, no-wrap
27008 msgid ""
27009 " virt-win-reg --merge domname [input.reg ...]\n"
27010 "\n"
27011 msgstr ""
27012
27013 # type: verbatim
27014 #: ../tools/virt-win-reg.pl:49
27015 #, no-wrap
27016 msgid ""
27017 " virt-win-reg [--options] disk.img ... # instead of domname\n"
27018 "\n"
27019 msgstr ""
27020
27021 # type: textblock
27022 #: ../tools/virt-win-reg.pl:53
27023 msgid ""
27024 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
27025 "virtual machines.  If you do this, you I<will> get irreversible disk "
27026 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
27027 "but doesn't catch all cases."
27028 msgstr ""
27029
27030 # type: textblock
27031 #: ../tools/virt-win-reg.pl:58
27032 msgid ""
27033 "Modifying the Windows Registry is an inherently risky operation.  The format "
27034 "is deliberately obscure and undocumented, and Registry changes can leave the "
27035 "system unbootable.  Therefore when using the C<--merge> option, make sure "
27036 "you have a reliable backup first."
27037 msgstr ""
27038
27039 # type: textblock
27040 #: ../tools/virt-win-reg.pl:65
27041 msgid ""
27042 "This program can export and merge Windows Registry entries from a Windows "
27043 "guest."
27044 msgstr ""
27045
27046 # type: textblock
27047 #: ../tools/virt-win-reg.pl:68
27048 msgid ""
27049 "The first parameter is the libvirt guest name or the raw disk image of a "
27050 "Windows guest."
27051 msgstr ""
27052
27053 # type: textblock
27054 #: ../tools/virt-win-reg.pl:71
27055 msgid ""
27056 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
27057 "exported (recursively).  For example:"
27058 msgstr ""
27059
27060 # type: verbatim
27061 #: ../tools/virt-win-reg.pl:74
27062 #, no-wrap
27063 msgid ""
27064 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
27065 "\n"
27066 msgstr ""
27067
27068 # type: textblock
27069 #: ../tools/virt-win-reg.pl:76
27070 msgid ""
27071 "You can also display single values from within registry keys, for example:"
27072 msgstr ""
27073
27074 # type: verbatim
27075 #: ../tools/virt-win-reg.pl:79
27076 #, no-wrap
27077 msgid ""
27078 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
27079 " $ virt-win-reg Windows7 $cvkey ProductName\n"
27080 " Windows 7 Enterprise\n"
27081 "\n"
27082 msgstr ""
27083
27084 # type: textblock
27085 #: ../tools/virt-win-reg.pl:83
27086 msgid ""
27087 "With C<--merge>, you can merge a textual regedit file into the Windows "
27088 "Registry:"
27089 msgstr ""
27090
27091 # type: verbatim
27092 #: ../tools/virt-win-reg.pl:86
27093 #, no-wrap
27094 msgid ""
27095 " $ virt-win-reg --merge Windows7 changes.reg\n"
27096 "\n"
27097 msgstr ""
27098
27099 # type: =head2
27100 #: ../tools/virt-win-reg.pl:88
27101 msgid "NOTE"
27102 msgstr ""
27103
27104 # type: textblock
27105 #: ../tools/virt-win-reg.pl:90
27106 msgid ""
27107 "This program is only meant for simple access to the registry.  If you want "
27108 "to do complicated things with the registry, we suggest you download the "
27109 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
27110 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
27111 "L<hivexregedit(1)>."
27112 msgstr ""
27113
27114 # type: =item
27115 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
27116 msgid "B<--debug>"
27117 msgstr ""
27118
27119 # type: textblock
27120 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
27121 msgid "Enable debugging messages."
27122 msgstr ""
27123
27124 # type: =item
27125 #: ../tools/virt-win-reg.pl:157
27126 msgid "B<--merge>"
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-win-reg.pl:159
27131 msgid ""
27132 "In merge mode, this merges a textual regedit file into the Windows Registry "
27133 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
27134 "displays or exports Registry entries instead."
27135 msgstr ""
27136
27137 # type: textblock
27138 #: ../tools/virt-win-reg.pl:163
27139 msgid ""
27140 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
27141 "result in disk corruption.  However exporting (without this flag)  is always "
27142 "safe."
27143 msgstr ""
27144
27145 # type: =item
27146 #: ../tools/virt-win-reg.pl:171
27147 msgid "B<--encoding> UTF-16LE|ASCII"
27148 msgstr ""
27149
27150 # type: textblock
27151 #: ../tools/virt-win-reg.pl:173
27152 msgid ""
27153 "When merging (only), you may need to specify the encoding for strings to be "
27154 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
27155 "(3)/ENCODING STRINGS>."
27156 msgstr ""
27157
27158 # type: textblock
27159 #: ../tools/virt-win-reg.pl:177
27160 msgid ""
27161 "The default is to use UTF-16LE, which should work with recent versions of "
27162 "Windows."
27163 msgstr ""
27164
27165 # type: =head2
27166 #: ../tools/virt-win-reg.pl:402
27167 msgid "SUPPORTED SYSTEMS"
27168 msgstr ""
27169
27170 # type: textblock
27171 #: ../tools/virt-win-reg.pl:404
27172 msgid ""
27173 "The program currently supports Windows NT-derived guests starting with "
27174 "Windows XP through to at least Windows 7."
27175 msgstr ""
27176
27177 # type: textblock
27178 #: ../tools/virt-win-reg.pl:407
27179 msgid ""
27180 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
27181 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
27182 "and C<HKEY_USERS\\.DEFAULT>."
27183 msgstr ""
27184
27185 # type: textblock
27186 #: ../tools/virt-win-reg.pl:411
27187 msgid ""
27188 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
27189 "C<HKEY_USERS>."
27190 msgstr ""
27191
27192 # type: textblock
27193 #: ../tools/virt-win-reg.pl:414
27194 msgid ""
27195 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
27196 "time."
27197 msgstr ""
27198
27199 # type: =head2
27200 #: ../tools/virt-win-reg.pl:417
27201 msgid "ENCODING"
27202 msgstr ""
27203
27204 # type: textblock
27205 #: ../tools/virt-win-reg.pl:419
27206 msgid ""
27207 "C<virt-win-reg> expects that regedit files have already been reencoded in "
27208 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
27209 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
27210 "Windows-style line endings, you may need to reencode the whole file before "
27211 "or after processing."
27212 msgstr ""
27213
27214 # type: textblock
27215 #: ../tools/virt-win-reg.pl:425
27216 msgid ""
27217 "To reencode a file from Windows format to Linux (before processing it with "
27218 "the C<--merge> option), you would do something like this:"
27219 msgstr ""
27220
27221 # type: verbatim
27222 #: ../tools/virt-win-reg.pl:428
27223 #, no-wrap
27224 msgid ""
27225 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
27226 "\n"
27227 msgstr ""
27228
27229 # type: textblock
27230 #: ../tools/virt-win-reg.pl:430
27231 msgid ""
27232 "To go in the opposite direction, after exporting and before sending the file "
27233 "to a Windows user, do something like this:"
27234 msgstr ""
27235
27236 # type: verbatim
27237 #: ../tools/virt-win-reg.pl:433
27238 #, no-wrap
27239 msgid ""
27240 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
27241 "\n"
27242 msgstr ""
27243
27244 # type: textblock
27245 #: ../tools/virt-win-reg.pl:435
27246 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
27247 msgstr ""
27248
27249 # type: textblock
27250 #: ../tools/virt-win-reg.pl:437
27251 msgid ""
27252 "If you are unsure about the current encoding, use the L<file(1)> command.  "
27253 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
27254 "style (CRLF) line endings, like this:"
27255 msgstr ""
27256
27257 # type: verbatim
27258 #: ../tools/virt-win-reg.pl:441
27259 #, no-wrap
27260 msgid ""
27261 " $ file software.reg\n"
27262 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
27263 " with CRLF line terminators\n"
27264 "\n"
27265 msgstr ""
27266
27267 # type: textblock
27268 #: ../tools/virt-win-reg.pl:445
27269 msgid "This file would need conversion before you could C<--merge> it."
27270 msgstr ""
27271
27272 # type: =head2
27273 #: ../tools/virt-win-reg.pl:447
27274 msgid "CurrentControlSet etc."
27275 msgstr ""
27276
27277 # type: textblock
27278 #: ../tools/virt-win-reg.pl:449
27279 msgid ""
27280 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
27281 "Registry at the level of the hive file, and therefore you cannot modify "
27282 "these."
27283 msgstr ""
27284
27285 # type: textblock
27286 #: ../tools/virt-win-reg.pl:453
27287 msgid ""
27288 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
27289 "circumstances it might refer to another control set.  The way to find out is "
27290 "to look at the C<HKLM\\SYSTEM\\Select> key:"
27291 msgstr ""
27292
27293 # type: verbatim
27294 #: ../tools/virt-win-reg.pl:457
27295 #, no-wrap
27296 msgid ""
27297 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
27298 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
27299 " \"Current\"=dword:00000001\n"
27300 " \"Default\"=dword:00000001\n"
27301 " \"Failed\"=dword:00000000\n"
27302 " \"LastKnownGood\"=dword:00000002\n"
27303 "\n"
27304 msgstr ""
27305
27306 # type: textblock
27307 #: ../tools/virt-win-reg.pl:464
27308 msgid "\"Current\" is the one which Windows will choose when it boots."
27309 msgstr ""
27310
27311 # type: textblock
27312 #: ../tools/virt-win-reg.pl:466
27313 msgid ""
27314 "Similarly, other C<Current...> keys in the path may need to be replaced."
27315 msgstr ""
27316
27317 # type: =head1
27318 #: ../tools/virt-win-reg.pl:469
27319 msgid "WINDOWS TIPS"
27320 msgstr ""
27321
27322 # type: textblock
27323 #: ../tools/virt-win-reg.pl:471
27324 msgid ""
27325 "Note that some of these tips modify the guest disk image.  The guest I<must> "
27326 "be shut off, else you will get disk corruption."
27327 msgstr ""
27328
27329 # type: =head2
27330 #: ../tools/virt-win-reg.pl:474
27331 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
27332 msgstr ""
27333
27334 # type: textblock
27335 #: ../tools/virt-win-reg.pl:476
27336 msgid ""
27337 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
27338 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
27339 "is uploaded into C<C:\\>:"
27340 msgstr ""
27341
27342 # type: verbatim
27343 #: ../tools/virt-win-reg.pl:480
27344 #, no-wrap
27345 msgid ""
27346 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
27347 "\n"
27348 msgstr ""
27349
27350 # type: textblock
27351 #: ../tools/virt-win-reg.pl:482
27352 msgid "Prepare a regedit file containing the registry change:"
27353 msgstr ""
27354
27355 # type: verbatim
27356 #: ../tools/virt-win-reg.pl:484
27357 #, no-wrap
27358 msgid ""
27359 " cat > test.reg <<'EOF'\n"
27360 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
27361 " \"Test\"=\"c:\\\\test.bat\"\n"
27362 " EOF\n"
27363 "\n"
27364 msgstr ""
27365
27366 # type: textblock
27367 #: ../tools/virt-win-reg.pl:489
27368 msgid ""
27369 "In this example we use the key C<RunOnce> which means that the script will "
27370 "run precisely once when the first user logs in.  If you want it to run every "
27371 "time a user logs in, replace C<RunOnce> with C<Run>."
27372 msgstr ""
27373
27374 # type: textblock
27375 #: ../tools/virt-win-reg.pl:493
27376 msgid "Now update the registry:"
27377 msgstr ""
27378
27379 # type: verbatim
27380 #: ../tools/virt-win-reg.pl:495
27381 #, no-wrap
27382 msgid ""
27383 " virt-win-reg --merge WindowsGuest test.reg\n"
27384 "\n"
27385 msgstr ""
27386
27387 # type: =head2
27388 #: ../tools/virt-win-reg.pl:497
27389 msgid "INSTALLING A SERVICE"
27390 msgstr ""
27391
27392 # type: textblock
27393 #: ../tools/virt-win-reg.pl:499
27394 msgid ""
27395 "This section assumes you are familiar with Windows services, and you either "
27396 "have a program which handles the Windows Service Control Protocol directly "
27397 "or you want to run any program using a service wrapper like SrvAny or the "
27398 "free RHSrvAny."
27399 msgstr ""
27400
27401 # type: textblock
27402 #: ../tools/virt-win-reg.pl:504
27403 msgid ""
27404 "First upload the program and optionally the service wrapper.  In this case "
27405 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
27406 msgstr ""
27407
27408 # type: verbatim
27409 #: ../tools/virt-win-reg.pl:508
27410 #, no-wrap
27411 msgid ""
27412 " guestfish -i -d WindowsGuest <<EOF\n"
27413 "   upload rhsrvany.exe /rhsrvany.exe\n"
27414 "   upload test.exe /test.exe\n"
27415 " EOF\n"
27416 "\n"
27417 msgstr ""
27418
27419 # type: textblock
27420 #: ../tools/virt-win-reg.pl:513
27421 msgid ""
27422 "Prepare a regedit file containing the registry changes.  In this example, "
27423 "the first registry change is needed for the service itself or the service "
27424 "wrapper (if used).  The second registry change is only needed because I am "
27425 "using the RHSrvAny service wrapper."
27426 msgstr ""
27427
27428 # type: verbatim
27429 #: ../tools/virt-win-reg.pl:518
27430 #, no-wrap
27431 msgid ""
27432 " cat > service.reg <<'EOF'\n"
27433 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
27434 " \"Type\"=dword:00000010\n"
27435 " \"Start\"=dword:00000002\n"
27436 " \"ErrorControl\"=dword:00000001\n"
27437 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
27438 " \"DisplayName\"=\"RHSrvAny\"\n"
27439 " \"ObjectName\"=\"NetworkService\"\n"
27440 " \n"
27441 msgstr ""
27442
27443 # type: verbatim
27444 #: ../tools/virt-win-reg.pl:527
27445 #, no-wrap
27446 msgid ""
27447 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
27448 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
27449 " \"PWD\"=\"c:\\\\Temp\"\n"
27450 " EOF\n"
27451 "\n"
27452 msgstr ""
27453
27454 # type: textblock
27455 #: ../tools/virt-win-reg.pl:538
27456 msgid ""
27457 "For use of C<ControlSet001> see the section above in this manual page.  You "
27458 "may need to adjust this according to the control set that is in use by the "
27459 "guest."
27460 msgstr ""
27461
27462 # type: textblock
27463 #: ../tools/virt-win-reg.pl:544
27464 msgid ""
27465 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
27466 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
27467 "privileged account."
27468 msgstr ""
27469
27470 # type: textblock
27471 #: ../tools/virt-win-reg.pl:550
27472 msgid ""
27473 "For the meaning of the magic numbers, see this Microsoft KB article: "
27474 "L<http://support.microsoft.com/kb/103000>."
27475 msgstr ""
27476
27477 # type: textblock
27478 #: ../tools/virt-win-reg.pl:555
27479 msgid "Update the registry:"
27480 msgstr ""
27481
27482 # type: verbatim
27483 #: ../tools/virt-win-reg.pl:557
27484 #, no-wrap
27485 msgid ""
27486 " virt-win-reg --merge WindowsGuest service.reg\n"
27487 "\n"
27488 msgstr ""
27489
27490 # type: textblock
27491 #: ../tools/virt-win-reg.pl:561
27492 msgid ""
27493 "Be careful when passing parameters containing C<\\> (backslash) in the "
27494 "shell.  Usually you will have to use 'single quotes' or double backslashes "
27495 "(but not both) to protect them from the shell."
27496 msgstr ""
27497
27498 # type: textblock
27499 #: ../tools/virt-win-reg.pl:565
27500 msgid "Paths and value names are case-insensitive."
27501 msgstr ""
27502
27503 # type: textblock
27504 #: ../tools/virt-win-reg.pl:574
27505 msgid ""
27506 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
27507 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
27508 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27509 msgstr ""
27510
27511 # type: textblock
27512 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
27513 msgid ""
27514 "When reporting bugs, please enable debugging and capture the I<complete> "
27515 "output:"
27516 msgstr ""
27517
27518 # type: verbatim
27519 #: ../tools/virt-win-reg.pl:592
27520 #, no-wrap
27521 msgid ""
27522 " export LIBGUESTFS_DEBUG=1\n"
27523 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
27524 "\n"
27525 msgstr ""
27526
27527 # type: textblock
27528 #: ../tools/virt-win-reg.pl:595
27529 msgid ""
27530 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
27531 "redhat.com/>"
27532 msgstr ""
27533
27534 # type: textblock
27535 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510
27536 #: ../tools/virt-make-fs.pl:565
27537 msgid "Copyright (C) 2010 Red Hat Inc."
27538 msgstr ""
27539
27540 # type: textblock
27541 #: ../tools/virt-resize.pl:42
27542 msgid "virt-resize - Resize a virtual machine disk"
27543 msgstr ""
27544
27545 # type: verbatim
27546 #: ../tools/virt-resize.pl:46
27547 #, no-wrap
27548 msgid ""
27549 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27550 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27551 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27552 "\n"
27553 msgstr ""
27554
27555 # type: textblock
27556 #: ../tools/virt-resize.pl:52
27557 msgid ""
27558 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27559 "larger or smaller overall, and resizing or deleting any partitions contained "
27560 "within."
27561 msgstr ""
27562
27563 # type: textblock
27564 #: ../tools/virt-resize.pl:56
27565 msgid ""
27566 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27567 "not> be used on live virtual machines - for consistent results, shut the "
27568 "virtual machine down before resizing it."
27569 msgstr ""
27570
27571 # type: textblock
27572 #: ../tools/virt-resize.pl:60
27573 msgid ""
27574 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
27575 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
27576 msgstr ""
27577
27578 # type: textblock
27579 #: ../tools/virt-resize.pl:66
27580 msgid ""
27581 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27582 "fill the extra 5GB of space."
27583 msgstr ""
27584
27585 # type: verbatim
27586 #: ../tools/virt-resize.pl:69
27587 #, no-wrap
27588 msgid ""
27589 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27590 " virt-filesystems --long --h --all -a olddisk\n"
27591 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27592 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27593 "\n"
27594 msgstr ""
27595
27596 # type: textblock
27597 #: ../tools/virt-resize.pl:74
27598 msgid ""
27599 "As above, but make the /boot partition 200MB bigger, while giving the "
27600 "remaining space to /dev/sda2:"
27601 msgstr ""
27602
27603 # type: verbatim
27604 #: ../tools/virt-resize.pl:77
27605 #, no-wrap
27606 msgid ""
27607 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27608 "\n"
27609 msgstr ""
27610
27611 # type: textblock
27612 #: ../tools/virt-resize.pl:79
27613 msgid "As above, but the output format will be uncompressed qcow2:"
27614 msgstr ""
27615
27616 # type: verbatim
27617 #: ../tools/virt-resize.pl:81
27618 #, no-wrap
27619 msgid ""
27620 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27621 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27622 "\n"
27623 msgstr ""
27624
27625 # type: =head1
27626 #: ../tools/virt-resize.pl:84
27627 msgid "DETAILED USAGE"
27628 msgstr ""
27629
27630 # type: =head2
27631 #: ../tools/virt-resize.pl:86
27632 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27633 msgstr ""
27634
27635 # type: =item
27636 #: ../tools/virt-resize.pl:90
27637 msgid "1. Shut down the virtual machine"
27638 msgstr ""
27639
27640 # type: =item
27641 #: ../tools/virt-resize.pl:92
27642 msgid "2. Locate input disk image"
27643 msgstr ""
27644
27645 # type: textblock
27646 #: ../tools/virt-resize.pl:94
27647 msgid ""
27648 "Locate the input disk image (ie. the file or device on the host containing "
27649 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27650 "dumpxml> like this to find the disk image name:"
27651 msgstr ""
27652
27653 # type: verbatim
27654 #: ../tools/virt-resize.pl:98
27655 #, no-wrap
27656 msgid ""
27657 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27658 " Found 1 nodes:\n"
27659 " -- NODE --\n"
27660 " <source dev=\"/dev/vg/lv_guest\" />\n"
27661 "\n"
27662 msgstr ""
27663
27664 # type: =item
27665 #: ../tools/virt-resize.pl:103
27666 msgid "3. Look at current sizing"
27667 msgstr ""
27668
27669 # type: textblock
27670 #: ../tools/virt-resize.pl:105
27671 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
27672 msgstr ""
27673
27674 # type: verbatim
27675 #: ../tools/virt-resize.pl:108
27676 #, no-wrap
27677 msgid ""
27678 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27679 " Name       Type       Size  Parent\n"
27680 " /dev/sda1  partition  101M  /dev/sda\n"
27681 " /dev/sda2  partition  7.9G  /dev/sda\n"
27682 " /dev/sda   device     8.0G  -\n"
27683 "\n"
27684 msgstr ""
27685
27686 # type: textblock
27687 #: ../tools/virt-resize.pl:114
27688 msgid ""
27689 "(This example is a virtual machine with an 8 GB disk which we would like to "
27690 "expand up to 10 GB)."
27691 msgstr ""
27692
27693 # type: =item
27694 #: ../tools/virt-resize.pl:117
27695 msgid "4. Create output disk"
27696 msgstr ""
27697
27698 # type: textblock
27699 #: ../tools/virt-resize.pl:119
27700 msgid ""
27701 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27702 "to store the resized output disk."
27703 msgstr ""
27704
27705 # type: textblock
27706 #: ../tools/virt-resize.pl:122
27707 msgid ""
27708 "To store the resized disk image in a file, create a file of a suitable size:"
27709 msgstr ""
27710
27711 # type: verbatim
27712 #: ../tools/virt-resize.pl:125
27713 #, no-wrap
27714 msgid ""
27715 " # rm -f outdisk\n"
27716 " # truncate -s 10G outdisk\n"
27717 "\n"
27718 msgstr ""
27719
27720 # type: textblock
27721 #: ../tools/virt-resize.pl:128
27722 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27723 msgstr ""
27724
27725 # type: verbatim
27726 #: ../tools/virt-resize.pl:130
27727 #, no-wrap
27728 msgid ""
27729 " # lvcreate -L 10G -n lv_name vg_name\n"
27730 "\n"
27731 msgstr ""
27732
27733 # type: textblock
27734 #: ../tools/virt-resize.pl:132
27735 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27736 msgstr ""
27737
27738 # type: verbatim
27739 #: ../tools/virt-resize.pl:134
27740 #, no-wrap
27741 msgid ""
27742 " # virsh pool-list\n"
27743 " # virsh vol-create-as poolname newvol 10G\n"
27744 "\n"
27745 msgstr ""
27746
27747 # type: =item
27748 #: ../tools/virt-resize.pl:137
27749 msgid "5. Resize"
27750 msgstr ""
27751
27752 # type: textblock
27753 #: ../tools/virt-resize.pl:139
27754 msgid ""
27755 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27756 "file) and the output disk.  The output disk is the one created in the "
27757 "previous step."
27758 msgstr ""
27759
27760 # type: verbatim
27761 #: ../tools/virt-resize.pl:143
27762 #, no-wrap
27763 msgid ""
27764 " # virt-resize indisk outdisk\n"
27765 "\n"
27766 msgstr ""
27767
27768 # type: textblock
27769 #: ../tools/virt-resize.pl:145
27770 msgid ""
27771 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27772 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27773 "larger, then an extra, empty partition is created at the end of the disk "
27774 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27775 "error."
27776 msgstr ""
27777
27778 # type: textblock
27779 #: ../tools/virt-resize.pl:151
27780 msgid ""
27781 "More realistically you'd want to expand existing partitions in the disk "
27782 "image by passing extra options (for the full list see the L</OPTIONS> "
27783 "section below)."
27784 msgstr ""
27785
27786 # type: textblock
27787 #: ../tools/virt-resize.pl:155
27788 msgid ""
27789 "L</--expand> is the most useful option.  It expands the named partition "
27790 "within the disk to fill any extra space:"
27791 msgstr ""
27792
27793 # type: verbatim
27794 #: ../tools/virt-resize.pl:158
27795 #, no-wrap
27796 msgid ""
27797 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27798 "\n"
27799 msgstr ""
27800
27801 # type: textblock
27802 #: ../tools/virt-resize.pl:160
27803 msgid ""
27804 "(In this case, an extra partition is I<not> created at the end of the disk, "
27805 "because there will be no unused space)."
27806 msgstr ""
27807
27808 # type: textblock
27809 #: ../tools/virt-resize.pl:163
27810 msgid ""
27811 "L</--resize> is the other commonly used option.  The following would "
27812 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27813 "rest of the available space:"
27814 msgstr ""
27815
27816 # type: verbatim
27817 #: ../tools/virt-resize.pl:167
27818 #, no-wrap
27819 msgid ""
27820 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27821 "     indisk outdisk\n"
27822 "\n"
27823 msgstr ""
27824
27825 # type: textblock
27826 #: ../tools/virt-resize.pl:170
27827 msgid ""
27828 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27829 "if virt-resize knows how, it will resize the contents, the equivalent of "
27830 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27831 ">.  However virt-resize does not know how to resize some filesystems, so you "
27832 "would have to online resize them after booting the guest."
27833 msgstr ""
27834
27835 # type: textblock
27836 #: ../tools/virt-resize.pl:177
27837 msgid "Other options are covered below."
27838 msgstr ""
27839
27840 # type: =item
27841 #: ../tools/virt-resize.pl:179
27842 msgid "6. Test"
27843 msgstr ""
27844
27845 # type: textblock
27846 #: ../tools/virt-resize.pl:181
27847 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27848 msgstr ""
27849
27850 # type: textblock
27851 #: ../tools/virt-resize.pl:183
27852 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27853 msgstr ""
27854
27855 # type: verbatim
27856 #: ../tools/virt-resize.pl:185
27857 #, no-wrap
27858 msgid ""
27859 " # virsh edit guestname\n"
27860 "\n"
27861 msgstr ""
27862
27863 # type: textblock
27864 #: ../tools/virt-resize.pl:187
27865 msgid ""
27866 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27867 "html#elementsDisks>"
27868 msgstr ""
27869
27870 # type: textblock
27871 #: ../tools/virt-resize.pl:190
27872 msgid "Then start up the domain with the new, resized disk:"
27873 msgstr ""
27874
27875 # type: verbatim
27876 #: ../tools/virt-resize.pl:192
27877 #, no-wrap
27878 msgid ""
27879 " # virsh start guestname\n"
27880 "\n"
27881 msgstr ""
27882
27883 # type: textblock
27884 #: ../tools/virt-resize.pl:194
27885 msgid ""
27886 "and check that it still works.  See also the L</NOTES> section below for "
27887 "additional information."
27888 msgstr ""
27889
27890 # type: =item
27891 #: ../tools/virt-resize.pl:197
27892 msgid "7. Resize LVs etc inside the guest"
27893 msgstr ""
27894
27895 # type: textblock
27896 #: ../tools/virt-resize.pl:199
27897 msgid "(This can also be done offline using L<guestfish(1)>)"
27898 msgstr ""
27899
27900 # type: textblock
27901 #: ../tools/virt-resize.pl:201
27902 msgid ""
27903 "Once the guest has booted you should see the new space available, at least "
27904 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27905 "may need to resize LVs inside PVs, and also resize filesystem types that "
27906 "virt-resize does not know how to expand."
27907 msgstr ""
27908
27909 # type: =head2
27910 #: ../tools/virt-resize.pl:208
27911 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27912 msgstr ""
27913
27914 # type: textblock
27915 #: ../tools/virt-resize.pl:210
27916 msgid ""
27917 "Shrinking is somewhat more complex than expanding, and only an overview is "
27918 "given here."
27919 msgstr ""
27920
27921 # type: textblock
27922 #: ../tools/virt-resize.pl:213
27923 msgid ""
27924 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27925 "filesystems).  The user has to shrink content before passing the disk image "
27926 "to virt-resize, and virt-resize will check that the content has been shrunk "
27927 "properly."
27928 msgstr ""
27929
27930 # type: textblock
27931 #: ../tools/virt-resize.pl:218
27932 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27933 msgstr ""
27934
27935 # type: textblock
27936 #: ../tools/virt-resize.pl:220
27937 msgid ""
27938 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27939 "steps 3 and 4 above to allocate a new disk image."
27940 msgstr ""
27941
27942 # type: textblock
27943 #: ../tools/virt-resize.pl:223
27944 msgid ""
27945 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27946 msgstr ""
27947
27948 # type: =head2
27949 #: ../tools/virt-resize.pl:226
27950 msgid "IGNORING OR DELETING PARTITIONS"
27951 msgstr ""
27952
27953 # type: textblock
27954 #: ../tools/virt-resize.pl:228
27955 msgid ""
27956 "virt-resize also gives a convenient way to ignore or delete partitions when "
27957 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27958 "up the copy where you don't care about the existing contents of a "
27959 "partition.  Deleting a partition removes it completely, but note that it "
27960 "also renumbers any partitions after the one which is deleted, which can "
27961 "leave some guests unbootable."
27962 msgstr ""
27963
27964 # type: =head2
27965 #: ../tools/virt-resize.pl:235
27966 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27967 msgstr ""
27968
27969 # type: textblock
27970 #: ../tools/virt-resize.pl:237
27971 msgid ""
27972 "If the input disk is in qcow2 format, then you may prefer that the output is "
27973 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27974 "the fly.  The output format is simply determined by the format of the empty "
27975 "output container that you provide.  Thus to create qcow2 output, use:"
27976 msgstr ""
27977
27978 # type: verbatim
27979 #: ../tools/virt-resize.pl:243
27980 #, no-wrap
27981 msgid ""
27982 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27983 "\n"
27984 msgstr ""
27985
27986 # type: textblock
27987 #: ../tools/virt-resize.pl:245
27988 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27989 msgstr ""
27990
27991 # type: textblock
27992 #: ../tools/virt-resize.pl:247
27993 msgid "Similarly, to get non-sparse raw output use:"
27994 msgstr ""
27995
27996 # type: verbatim
27997 #: ../tools/virt-resize.pl:249
27998 #, no-wrap
27999 msgid ""
28000 " fallocate -l size outdisk\n"
28001 "\n"
28002 msgstr ""
28003
28004 # type: textblock
28005 #: ../tools/virt-resize.pl:251
28006 msgid ""
28007 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
28008 "dev/zero of=outdisk bs=1M count=..>)"
28009 msgstr ""
28010
28011 # type: textblock
28012 #: ../tools/virt-resize.pl:264
28013 msgid "Display help."
28014 msgstr ""
28015
28016 # type: =item
28017 #: ../tools/virt-resize.pl:278
28018 msgid "B<--resize part=size>"
28019 msgstr ""
28020
28021 # type: textblock
28022 #: ../tools/virt-resize.pl:280
28023 msgid ""
28024 "Resize the named partition (expanding or shrinking it) so that it has the "
28025 "given size."
28026 msgstr ""
28027
28028 # type: textblock
28029 #: ../tools/virt-resize.pl:283
28030 msgid ""
28031 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
28032 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
28033 "Exabytes; or as a percentage of the current size; or as a relative number or "
28034 "percentage.  For example:"
28035 msgstr ""
28036
28037 # type: verbatim
28038 #: ../tools/virt-resize.pl:288
28039 #, no-wrap
28040 msgid ""
28041 " --resize /dev/sda2=10G\n"
28042 "\n"
28043 msgstr ""
28044
28045 # type: verbatim
28046 #: ../tools/virt-resize.pl:290
28047 #, no-wrap
28048 msgid ""
28049 " --resize /dev/sda4=90%\n"
28050 "\n"
28051 msgstr ""
28052
28053 # type: verbatim
28054 #: ../tools/virt-resize.pl:292
28055 #, no-wrap
28056 msgid ""
28057 " --resize /dev/sda2=+1G\n"
28058 "\n"
28059 msgstr ""
28060
28061 # type: verbatim
28062 #: ../tools/virt-resize.pl:294
28063 #, no-wrap
28064 msgid ""
28065 " --resize /dev/sda2=-200M\n"
28066 "\n"
28067 msgstr ""
28068
28069 # type: verbatim
28070 #: ../tools/virt-resize.pl:296
28071 #, no-wrap
28072 msgid ""
28073 " --resize /dev/sda1=+128K\n"
28074 "\n"
28075 msgstr ""
28076
28077 # type: verbatim
28078 #: ../tools/virt-resize.pl:298
28079 #, no-wrap
28080 msgid ""
28081 " --resize /dev/sda1=+10%\n"
28082 "\n"
28083 msgstr ""
28084
28085 # type: verbatim
28086 #: ../tools/virt-resize.pl:300
28087 #, no-wrap
28088 msgid ""
28089 " --resize /dev/sda1=-10%\n"
28090 "\n"
28091 msgstr ""
28092
28093 # type: textblock
28094 #: ../tools/virt-resize.pl:302
28095 msgid ""
28096 "You can increase the size of any partition.  Virt-resize will expand the "
28097 "direct content of the partition if it knows how (see C<--expand> below)."
28098 msgstr ""
28099
28100 # type: textblock
28101 #: ../tools/virt-resize.pl:306
28102 msgid ""
28103 "You can only I<decrease> the size of partitions that contain filesystems or "
28104 "PVs which have already been shrunk.  Virt-resize will check this has been "
28105 "done before proceeding, or else will print an error (see also C<--resize-"
28106 "force>)."
28107 msgstr ""
28108
28109 # type: textblock
28110 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
28111 #: ../tools/virt-resize.pl:420
28112 msgid "You can give this option multiple times."
28113 msgstr ""
28114
28115 # type: =item
28116 #: ../tools/virt-resize.pl:317
28117 msgid "B<--resize-force part=size>"
28118 msgstr ""
28119
28120 # type: textblock
28121 #: ../tools/virt-resize.pl:319
28122 msgid ""
28123 "This is the same as C<--resize> except that it will let you decrease the "
28124 "size of any partition.  Generally this means you will lose any data which "
28125 "was at the end of the partition you shrink, but you may not care about that "
28126 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
28127 "as a swap partition)."
28128 msgstr ""
28129
28130 # type: textblock
28131 #: ../tools/virt-resize.pl:325
28132 msgid "See also the C<--ignore> option."
28133 msgstr ""
28134
28135 # type: =item
28136 #: ../tools/virt-resize.pl:331
28137 msgid "B<--expand part>"
28138 msgstr ""
28139
28140 # type: textblock
28141 #: ../tools/virt-resize.pl:333
28142 msgid ""
28143 "Expand the named partition so it uses up all extra space (space left over "
28144 "after any other resize changes that you request have been done)."
28145 msgstr ""
28146
28147 # type: textblock
28148 #: ../tools/virt-resize.pl:336
28149 msgid ""
28150 "If virt-resize knows how, it will expand the direct content of the "
28151 "partition.  For example, if the partition is an LVM PV, it will expand the "
28152 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
28153 "content it doesn't know about alone."
28154 msgstr ""
28155
28156 # type: textblock
28157 #: ../tools/virt-resize.pl:341
28158 msgid "Currently virt-resize can resize:"
28159 msgstr ""
28160
28161 # type: textblock
28162 #: ../tools/virt-resize.pl:347
28163 msgid ""
28164 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
28165 "partition."
28166 msgstr ""
28167
28168 # type: textblock
28169 #: ../tools/virt-resize.pl:352
28170 msgid ""
28171 "NTFS filesystems contained directly in a partition, if libguestfs was "
28172 "compiled with support for NTFS."
28173 msgstr ""
28174
28175 # type: textblock
28176 #: ../tools/virt-resize.pl:355
28177 msgid ""
28178 "The filesystem must have been shut down consistently last time it was used.  "
28179 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
28180 "consistency check, so at the first boot after resizing Windows will check "
28181 "the disk."
28182 msgstr ""
28183
28184 # type: textblock
28185 #: ../tools/virt-resize.pl:362
28186 msgid ""
28187 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
28188 "inside the PV, but see the C<--LV-expand> option.  The user could also "
28189 "resize LVs as desired after boot."
28190 msgstr ""
28191
28192 # type: textblock
28193 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
28194 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
28195 msgstr ""
28196
28197 # type: =item
28198 #: ../tools/virt-resize.pl:374
28199 msgid "B<--shrink part>"
28200 msgstr ""
28201
28202 # type: textblock
28203 #: ../tools/virt-resize.pl:376
28204 msgid ""
28205 "Shrink the named partition until the overall disk image fits in the "
28206 "destination.  The named partition B<must> contain a filesystem or PV which "
28207 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
28208 "online tools).  Virt-resize will check this and give an error if it has not "
28209 "been done."
28210 msgstr ""
28211
28212 # type: textblock
28213 #: ../tools/virt-resize.pl:382
28214 msgid ""
28215 "The amount by which the overall disk must be shrunk (after carrying out all "
28216 "other operations requested by the user) is called the \"deficit\".  For "
28217 "example, a straight copy (assume no other operations)  from a 5GB disk image "
28218 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
28219 "would give an error unless the user specified a partition to shrink and that "
28220 "partition had more than a gigabyte of free space."
28221 msgstr ""
28222
28223 # type: =item
28224 #: ../tools/virt-resize.pl:396
28225 msgid "B<--ignore part>"
28226 msgstr ""
28227
28228 # type: textblock
28229 #: ../tools/virt-resize.pl:398
28230 msgid ""
28231 "Ignore the named partition.  Effectively this means the partition is "
28232 "allocated on the destination disk, but the content is not copied across from "
28233 "the source disk.  The content of the partition will be blank (all zero "
28234 "bytes)."
28235 msgstr ""
28236
28237 # type: =item
28238 #: ../tools/virt-resize.pl:409
28239 msgid "B<--delete part>"
28240 msgstr ""
28241
28242 # type: textblock
28243 #: ../tools/virt-resize.pl:411
28244 msgid ""
28245 "Delete the named partition.  It would be more accurate to describe this as "
28246 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
28247 "the original disk image is left intact."
28248 msgstr ""
28249
28250 # type: textblock
28251 #: ../tools/virt-resize.pl:415
28252 msgid ""
28253 "Note that when you delete a partition, then anything contained in the "
28254 "partition is also deleted.  Furthermore, this causes any partitions that "
28255 "come after to be I<renumbered>, which can easily make your guest unbootable."
28256 msgstr ""
28257
28258 # type: =item
28259 #: ../tools/virt-resize.pl:426
28260 msgid "B<--LV-expand logvol>"
28261 msgstr ""
28262
28263 # type: textblock
28264 #: ../tools/virt-resize.pl:428
28265 msgid ""
28266 "This takes the logical volume and, as a final step, expands it to fill all "
28267 "the space available in its volume group.  A typical usage, assuming a Linux "
28268 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
28269 "lv_root> would be:"
28270 msgstr ""
28271
28272 # type: verbatim
28273 #: ../tools/virt-resize.pl:433
28274 #, no-wrap
28275 msgid ""
28276 " virt-resize indisk outdisk \\\n"
28277 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
28278 "\n"
28279 msgstr ""
28280
28281 # type: textblock
28282 #: ../tools/virt-resize.pl:436
28283 msgid ""
28284 "This would first expand the partition (and PV), and then expand the root "
28285 "device to fill the extra space in the PV."
28286 msgstr ""
28287
28288 # type: textblock
28289 #: ../tools/virt-resize.pl:439
28290 msgid ""
28291 "The contents of the LV are also resized if virt-resize knows how to do "
28292 "that.  You can stop virt-resize from trying to expand the content by using "
28293 "the option C<--no-expand-content>."
28294 msgstr ""
28295
28296 # type: textblock
28297 #: ../tools/virt-resize.pl:443
28298 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
28299 msgstr ""
28300
28301 # type: textblock
28302 #: ../tools/virt-resize.pl:446
28303 msgid ""
28304 "You can give this option multiple times, I<but> it doesn't make sense to do "
28305 "this unless the logical volumes you specify are all in different volume "
28306 "groups."
28307 msgstr ""
28308
28309 # type: =item
28310 #: ../tools/virt-resize.pl:454
28311 msgid "B<--no-copy-boot-loader>"
28312 msgstr ""
28313
28314 # type: textblock
28315 #: ../tools/virt-resize.pl:456
28316 msgid ""
28317 "By default, virt-resize copies over some sectors at the start of the disk "
28318 "(up to the beginning of the first partition).  Commonly these sectors "
28319 "contain the Master Boot Record (MBR) and the boot loader, and are required "
28320 "in order for the guest to boot correctly."
28321 msgstr ""
28322
28323 # type: textblock
28324 #: ../tools/virt-resize.pl:461
28325 msgid ""
28326 "If you specify this flag, then this initial copy is not done.  You may need "
28327 "to reinstall the boot loader in this case."
28328 msgstr ""
28329
28330 # type: =item
28331 #: ../tools/virt-resize.pl:469
28332 msgid "B<--no-extra-partition>"
28333 msgstr ""
28334
28335 # type: textblock
28336 #: ../tools/virt-resize.pl:471
28337 msgid ""
28338 "By default, virt-resize creates an extra partition if there is any extra, "
28339 "unused space after all resizing has happened.  Use this option to prevent "
28340 "the extra partition from being created.  If you do this then the extra space "
28341 "will be inaccessible until you run fdisk, parted, or some other partitioning "
28342 "tool in the guest."
28343 msgstr ""
28344
28345 # type: textblock
28346 #: ../tools/virt-resize.pl:477
28347 msgid ""
28348 "Note that if the surplus space is smaller than 10 MB, no extra partition "
28349 "will be created."
28350 msgstr ""
28351
28352 # type: =item
28353 #: ../tools/virt-resize.pl:484
28354 msgid "B<--no-expand-content>"
28355 msgstr ""
28356
28357 # type: textblock
28358 #: ../tools/virt-resize.pl:486
28359 msgid ""
28360 "By default, virt-resize will try to expand the direct contents of "
28361 "partitions, if it knows how (see C<--expand> option above)."
28362 msgstr ""
28363
28364 # type: textblock
28365 #: ../tools/virt-resize.pl:489
28366 msgid ""
28367 "If you give the C<--no-expand-content> option then virt-resize will not "
28368 "attempt this."
28369 msgstr ""
28370
28371 # type: =item
28372 #: ../tools/virt-resize.pl:496
28373 msgid "B<-d> | B<--debug>"
28374 msgstr ""
28375
28376 # type: =item
28377 #: ../tools/virt-resize.pl:504
28378 msgid "B<-n> | B<--dryrun>"
28379 msgstr ""
28380
28381 # type: textblock
28382 #: ../tools/virt-resize.pl:506
28383 msgid "Print a summary of what would be done, but don't do anything."
28384 msgstr ""
28385
28386 # type: =item
28387 #: ../tools/virt-resize.pl:512
28388 msgid "B<-q> | B<--quiet>"
28389 msgstr ""
28390
28391 # type: textblock
28392 #: ../tools/virt-resize.pl:514
28393 msgid "Don't print the summary."
28394 msgstr ""
28395
28396 # type: textblock
28397 #: ../tools/virt-resize.pl:522
28398 msgid ""
28399 "Specify the format of the input disk image.  If this flag is not given then "
28400 "it is auto-detected from the image itself."
28401 msgstr ""
28402
28403 # type: textblock
28404 #: ../tools/virt-resize.pl:528
28405 msgid ""
28406 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
28407 "AND NON-SPARSE RAW FORMATS>."
28408 msgstr ""
28409
28410 # type: =item
28411 #: ../tools/virt-resize.pl:535
28412 msgid "B<--output-format> raw"
28413 msgstr ""
28414
28415 # type: textblock
28416 #: ../tools/virt-resize.pl:537
28417 msgid ""
28418 "Specify the format of the output disk image.  If this flag is not given then "
28419 "it is auto-detected from the image itself."
28420 msgstr ""
28421
28422 # type: textblock
28423 #: ../tools/virt-resize.pl:543
28424 msgid ""
28425 "Note that you still need to create the output disk with the right format.  "
28426 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
28427 msgstr ""
28428
28429 # type: =head1
28430 #: ../tools/virt-resize.pl:1419
28431 msgid "NOTES"
28432 msgstr ""
28433
28434 # type: =head2
28435 #: ../tools/virt-resize.pl:1421
28436 msgid "\"Partition 1 does not end on cylinder boundary.\""
28437 msgstr ""
28438
28439 # type: textblock
28440 #: ../tools/virt-resize.pl:1423
28441 msgid ""
28442 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
28443 "means the partitions will not be aligned to the ancient CHS geometry.  "
28444 "However CHS geometry is meaningless for disks manufactured since the early "
28445 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
28446 "cylinders is not required by any modern operating system."
28447 msgstr ""
28448
28449 # type: =head2
28450 #: ../tools/virt-resize.pl:1430
28451 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
28452 msgstr ""
28453
28454 # type: textblock
28455 #: ../tools/virt-resize.pl:1432
28456 msgid ""
28457 "In Windows Vista and later versions, Microsoft switched to using a separate "
28458 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
28459 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
28460 "the boot partition.  Doing so seems to break the guest completely.  However "
28461 "expanding the second partition (ie. C: drive) should work."
28462 msgstr ""
28463
28464 # type: textblock
28465 #: ../tools/virt-resize.pl:1439
28466 msgid ""
28467 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
28468 "NTFS partitions have been expanded.  This is just a safety check and (unless "
28469 "it find errors) is nothing to worry about."
28470 msgstr ""
28471
28472 # type: =head2
28473 #: ../tools/virt-resize.pl:1443
28474 msgid "GUEST BOOT STUCK AT \"GRUB\""
28475 msgstr ""
28476
28477 # type: textblock
28478 #: ../tools/virt-resize.pl:1445
28479 msgid ""
28480 "If a Linux guest does not boot after resizing, and the boot is stuck after "
28481 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
28482 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
28483 "although we think is to do with partition alignment."
28484 msgstr ""
28485
28486 # type: verbatim
28487 #: ../tools/virt-resize.pl:1450
28488 #, no-wrap
28489 msgid ""
28490 " guestfish -i -a newdisk\n"
28491 " ><fs> cat /boot/grub/device.map\n"
28492 " # check the contents of this file are sensible or\n"
28493 " # edit the file if necessary\n"
28494 " ><fs> grub-install / /dev/vda\n"
28495 " ><fs> exit\n"
28496 "\n"
28497 msgstr ""
28498
28499 # type: textblock
28500 #: ../tools/virt-resize.pl:1457
28501 msgid ""
28502 "For more flexible guest reconfiguration, including if you need to specify "
28503 "other parameters to grub-install, use L<virt-rescue(1)>."
28504 msgstr ""
28505
28506 # type: =head1
28507 #: ../tools/virt-resize.pl:1460
28508 msgid "ALTERNATIVE TOOLS"
28509 msgstr ""
28510
28511 # type: textblock
28512 #: ../tools/virt-resize.pl:1462
28513 msgid ""
28514 "There are several proprietary tools for resizing partitions.  We won't "
28515 "mention any here."
28516 msgstr ""
28517
28518 # type: textblock
28519 #: ../tools/virt-resize.pl:1465
28520 msgid ""
28521 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
28522 "operations on disk images.  They can resize and move partitions, but I don't "
28523 "think they can do anything with the contents, and they certainly don't "
28524 "understand LVM."
28525 msgstr ""
28526
28527 # type: textblock
28528 #: ../tools/virt-resize.pl:1470
28529 msgid ""
28530 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
28531 "but at a much lower level.  You will probably end up hand-calculating sector "
28532 "offsets, which is something that virt-resize was designed to avoid.  If you "
28533 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
28534 "C<--debug> flag."
28535 msgstr ""
28536
28537 # type: textblock
28538 #: ../tools/virt-resize.pl:1485
28539 msgid ""
28540 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
28541 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
28542 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
28543 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
28544 "libguestfs.org/>."
28545 msgstr ""
28546
28547 # type: textblock
28548 #: ../tools/virt-list-filesystems.pl:32
28549 msgid ""
28550 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28551 msgstr ""
28552
28553 # type: verbatim
28554 #: ../tools/virt-list-filesystems.pl:36
28555 #, no-wrap
28556 msgid ""
28557 " virt-list-filesystems [--options] domname\n"
28558 "\n"
28559 msgstr ""
28560
28561 # type: verbatim
28562 #: ../tools/virt-list-filesystems.pl:38
28563 #, no-wrap
28564 msgid ""
28565 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28566 "\n"
28567 msgstr ""
28568
28569 # type: textblock
28570 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
28571 msgid ""
28572 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
28573 "replacement."
28574 msgstr ""
28575
28576 # type: textblock
28577 #: ../tools/virt-list-filesystems.pl:45
28578 msgid ""
28579 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28580 "are contained in a virtual machine or disk image."
28581 msgstr ""
28582
28583 # type: textblock
28584 #: ../tools/virt-list-filesystems.pl:49
28585 msgid ""
28586 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28587 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28588 "> tool."
28589 msgstr ""
28590
28591 # type: =item
28592 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
28593 msgid "B<-l> | B<--long>"
28594 msgstr ""
28595
28596 # type: textblock
28597 #: ../tools/virt-list-filesystems.pl:108
28598 msgid ""
28599 "With this option, C<virt-list-filesystems> displays the type of each "
28600 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28601 msgstr ""
28602
28603 # type: =item
28604 #: ../tools/virt-list-filesystems.pl:115
28605 msgid "B<-a> | B<--all>"
28606 msgstr ""
28607
28608 # type: textblock
28609 #: ../tools/virt-list-filesystems.pl:117
28610 msgid ""
28611 "Normally we only show mountable filesystems.  If this option is given then "
28612 "swap devices are shown too."
28613 msgstr ""
28614
28615 # type: textblock
28616 #: ../tools/virt-list-filesystems.pl:191
28617 msgid ""
28618 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
28619 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28620 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28621 msgstr ""
28622
28623 # type: textblock
28624 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
28625 msgid "Copyright (C) 2009 Red Hat Inc."
28626 msgstr ""
28627
28628 # type: textblock
28629 #: ../tools/virt-tar.pl:33
28630 msgid "virt-tar - Extract or upload files to a virtual machine"
28631 msgstr ""
28632
28633 # type: verbatim
28634 #: ../tools/virt-tar.pl:37
28635 #, no-wrap
28636 msgid ""
28637 " virt-tar [--options] -x domname directory tarball\n"
28638 "\n"
28639 msgstr ""
28640
28641 # type: verbatim
28642 #: ../tools/virt-tar.pl:39
28643 #, no-wrap
28644 msgid ""
28645 " virt-tar [--options] -u domname tarball directory\n"
28646 "\n"
28647 msgstr ""
28648
28649 # type: verbatim
28650 #: ../tools/virt-tar.pl:41
28651 #, no-wrap
28652 msgid ""
28653 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28654 "\n"
28655 msgstr ""
28656
28657 # type: verbatim
28658 #: ../tools/virt-tar.pl:43
28659 #, no-wrap
28660 msgid ""
28661 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28662 "\n"
28663 msgstr ""
28664
28665 # type: textblock
28666 #: ../tools/virt-tar.pl:47
28667 msgid "Download C</home> from the VM into a local tarball:"
28668 msgstr ""
28669
28670 # type: verbatim
28671 #: ../tools/virt-tar.pl:49
28672 #, no-wrap
28673 msgid ""
28674 " virt-tar -x domname /home home.tar\n"
28675 "\n"
28676 msgstr ""
28677
28678 # type: verbatim
28679 #: ../tools/virt-tar.pl:51
28680 #, no-wrap
28681 msgid ""
28682 " virt-tar -zx domname /home home.tar.gz\n"
28683 "\n"
28684 msgstr ""
28685
28686 # type: textblock
28687 #: ../tools/virt-tar.pl:53
28688 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28689 msgstr ""
28690
28691 # type: verbatim
28692 #: ../tools/virt-tar.pl:55
28693 #, no-wrap
28694 msgid ""
28695 " virt-tar -u domname uploadstuff.tar /tmp\n"
28696 "\n"
28697 msgstr ""
28698
28699 # type: verbatim
28700 #: ../tools/virt-tar.pl:57
28701 #, no-wrap
28702 msgid ""
28703 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28704 "\n"
28705 msgstr ""
28706
28707 # type: textblock
28708 #: ../tools/virt-tar.pl:61
28709 msgid ""
28710 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28711 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28712 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28713 msgstr ""
28714
28715 # type: textblock
28716 #: ../tools/virt-tar.pl:66
28717 msgid ""
28718 "You can use C<-x> (extract) on live virtual machines, but you might get "
28719 "inconsistent results or errors if there is filesystem activity inside the "
28720 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28721 "work, but the only way to guarantee consistent results is if the virtual "
28722 "machine is shut down."
28723 msgstr ""
28724
28725 # type: textblock
28726 #: ../tools/virt-tar.pl:74
28727 msgid ""
28728 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28729 "parts of a guest filesystem.  There are many possibilities: making backups, "
28730 "uploading data files, snooping on guest activity, fixing or customizing "
28731 "guests, etc."
28732 msgstr ""
28733
28734 # type: textblock
28735 #: ../tools/virt-tar.pl:79
28736 msgid ""
28737 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28738 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28739 "should look at the L<guestfish(1)> tool."
28740 msgstr ""
28741
28742 # type: textblock
28743 #: ../tools/virt-tar.pl:83
28744 msgid ""
28745 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28746 "its contents (recursively) from the virtual machine into a local tarball.  "
28747 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28748 "virtual machine.  You cannot use these two options together."
28749 msgstr ""
28750
28751 # type: textblock
28752 #: ../tools/virt-tar.pl:89
28753 msgid ""
28754 "In addition, you may need to use the C<-z> (gZip) option to enable "
28755 "compression.  When uploading, you have to specify C<-z> if the upload file "
28756 "is compressed because virt-tar won't detect this on its own."
28757 msgstr ""
28758
28759 # type: textblock
28760 #: ../tools/virt-tar.pl:93
28761 msgid ""
28762 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28763 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28764 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28765 "the L<libguestfs(3)> API)."
28766 msgstr ""
28767
28768 # type: =item
28769 #: ../tools/virt-tar.pl:151
28770 msgid "B<-x> | B<--extract> | B<--download>"
28771 msgstr ""
28772
28773 # type: =item
28774 #: ../tools/virt-tar.pl:153
28775 msgid "B<-u> | B<--upload>"
28776 msgstr ""
28777
28778 # type: textblock
28779 #: ../tools/virt-tar.pl:155
28780 msgid ""
28781 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28782 "local tarball."
28783 msgstr ""
28784
28785 # type: textblock
28786 #: ../tools/virt-tar.pl:158
28787 msgid ""
28788 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28789 "Please read the L</WARNING> section above before using this option."
28790 msgstr ""
28791
28792 # type: textblock
28793 #: ../tools/virt-tar.pl:162
28794 msgid "You must specify exactly one of these options."
28795 msgstr ""
28796
28797 # type: =item
28798 #: ../tools/virt-tar.pl:168
28799 msgid "B<-z> | B<--gzip>"
28800 msgstr ""
28801
28802 # type: textblock
28803 #: ../tools/virt-tar.pl:170
28804 msgid "Specify that the input or output tarball is gzip-compressed."
28805 msgstr ""
28806
28807 # type: textblock
28808 #: ../tools/virt-tar.pl:283
28809 msgid ""
28810 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28811 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28812 "org/>."
28813 msgstr ""
28814
28815 # type: textblock
28816 #: ../tools/virt-make-fs.pl:37
28817 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28818 msgstr ""
28819
28820 # type: verbatim
28821 #: ../tools/virt-make-fs.pl:41
28822 #, no-wrap
28823 msgid ""
28824 " virt-make-fs [--options] input.tar output.img\n"
28825 "\n"
28826 msgstr ""
28827
28828 # type: verbatim
28829 #: ../tools/virt-make-fs.pl:43
28830 #, no-wrap
28831 msgid ""
28832 " virt-make-fs [--options] input.tar.gz output.img\n"
28833 "\n"
28834 msgstr ""
28835
28836 # type: verbatim
28837 #: ../tools/virt-make-fs.pl:45
28838 #, no-wrap
28839 msgid ""
28840 " virt-make-fs [--options] directory output.img\n"
28841 "\n"
28842 msgstr ""
28843
28844 # type: textblock
28845 #: ../tools/virt-make-fs.pl:49
28846 msgid ""
28847 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28848 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28849 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28850 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28851 "you want to attach these filesystems to existing virtual machines (eg. to "
28852 "import large amounts of read-only data to a VM)."
28853 msgstr ""
28854
28855 # type: textblock
28856 #: ../tools/virt-make-fs.pl:57
28857 msgid "Basic usage is:"
28858 msgstr ""
28859
28860 # type: verbatim
28861 #: ../tools/virt-make-fs.pl:59
28862 #, no-wrap
28863 msgid ""
28864 " virt-make-fs input output\n"
28865 "\n"
28866 msgstr ""
28867
28868 # type: textblock
28869 #: ../tools/virt-make-fs.pl:61
28870 msgid ""
28871 "where C<input> is either a directory containing files that you want to add, "
28872 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28873 "C<output> is a disk image.  The input type is detected automatically.  The "
28874 "output disk image defaults to a raw ext2 image unless you specify extra "
28875 "flags (see L</OPTIONS> below)."
28876 msgstr ""
28877
28878 # type: =head2
28879 #: ../tools/virt-make-fs.pl:67
28880 msgid "EXTRA SPACE"
28881 msgstr ""
28882
28883 # type: textblock
28884 #: ../tools/virt-make-fs.pl:69
28885 msgid ""
28886 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28887 "the files that it contains, but might have extra space.  Depending on how "
28888 "you are going to use the output, you might think this extra space is wasted "
28889 "and want to minimize it, or you might want to leave space so that more files "
28890 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28891 "but you can use the C<--size> flag to leave space in the filesystem if you "
28892 "want it."
28893 msgstr ""
28894
28895 # type: textblock
28896 #: ../tools/virt-make-fs.pl:77
28897 msgid ""
28898 "An alternative way to leave extra space but not make the output image any "
28899 "bigger is to use an alternative disk image format (instead of the default "
28900 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28901 "image format (check your hypervisor supports this before using it).  This "
28902 "allows you to choose a large C<--size> but the extra space won't actually be "
28903 "allocated in the image until you try to store something in it."
28904 msgstr ""
28905
28906 # type: textblock
28907 #: ../tools/virt-make-fs.pl:85
28908 msgid ""
28909 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28910 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28911 "resize to build another image from scratch."
28912 msgstr ""
28913
28914 # type: =head3
28915 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28916 #: ../tools/virt-make-fs.pl:142
28917 msgid "EXAMPLE"
28918 msgstr ""
28919
28920 # type: verbatim
28921 #: ../tools/virt-make-fs.pl:91
28922 #, no-wrap
28923 msgid ""
28924 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28925 "\n"
28926 msgstr ""
28927
28928 # type: =head2
28929 #: ../tools/virt-make-fs.pl:93
28930 msgid "FILESYSTEM TYPE"
28931 msgstr ""
28932
28933 # type: textblock
28934 #: ../tools/virt-make-fs.pl:95
28935 msgid ""
28936 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28937 "libguestfs supports can be used (but I<not> read-only formats like "
28938 "ISO9660).  Here are some of the more common choices:"
28939 msgstr ""
28940
28941 # type: =item
28942 #: ../tools/virt-make-fs.pl:101
28943 msgid "I<ext3>"
28944 msgstr ""
28945
28946 # type: textblock
28947 #: ../tools/virt-make-fs.pl:103
28948 msgid ""
28949 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28950 "you are not going to use the filesystem in a way that requires the journal, "
28951 "then this is just wasted overhead."
28952 msgstr ""
28953
28954 # type: =item
28955 #: ../tools/virt-make-fs.pl:107
28956 msgid "I<ntfs> or I<vfat>"
28957 msgstr ""
28958
28959 # type: textblock
28960 #: ../tools/virt-make-fs.pl:109
28961 msgid "Useful if exporting data to a Windows guest."
28962 msgstr ""
28963
28964 # type: textblock
28965 #: ../tools/virt-make-fs.pl:111
28966 msgid ""
28967 "I<Note for vfat>: The tar archive or local directory must only contain files "
28968 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28969 "program running within libguestfs is unable to change the ownership of non-"
28970 "root files, since vfat itself does not support this."
28971 msgstr ""
28972
28973 # type: =item
28974 #: ../tools/virt-make-fs.pl:116
28975 msgid "I<minix>"
28976 msgstr ""
28977
28978 # type: textblock
28979 #: ../tools/virt-make-fs.pl:118
28980 msgid ""
28981 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28982 "total filesystem size."
28983 msgstr ""
28984
28985 # type: verbatim
28986 #: ../tools/virt-make-fs.pl:125
28987 #, no-wrap
28988 msgid ""
28989 " virt-make-fs --type=minix input minixfs.img\n"
28990 "\n"
28991 msgstr ""
28992
28993 # type: =head2
28994 #: ../tools/virt-make-fs.pl:127
28995 msgid "TO PARTITION OR NOT TO PARTITION"
28996 msgstr ""
28997
28998 # type: textblock
28999 #: ../tools/virt-make-fs.pl:129
29000 msgid "Optionally virt-make-fs can add a partition table to the output disk."
29001 msgstr ""
29002
29003 # type: textblock
29004 #: ../tools/virt-make-fs.pl:131
29005 msgid ""
29006 "Adding a partition can make the disk image more compatible with certain "
29007 "virtualized operating systems which don't expect to see a filesystem "
29008 "directly located on a block device (Linux doesn't care and will happily "
29009 "handle both types)."
29010 msgstr ""
29011
29012 # type: textblock
29013 #: ../tools/virt-make-fs.pl:136
29014 msgid ""
29015 "On the other hand, if you have a partition table then the output image is no "
29016 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
29017 "directly on a partitioned disk image.  (However libguestfs tools such as "
29018 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
29019 msgstr ""
29020
29021 # type: textblock
29022 #: ../tools/virt-make-fs.pl:144
29023 msgid "Add an MBR partition:"
29024 msgstr ""
29025
29026 # type: verbatim
29027 #: ../tools/virt-make-fs.pl:146
29028 #, no-wrap
29029 msgid ""
29030 " virt-make-fs --partition -- input disk.img\n"
29031 "\n"
29032 msgstr ""
29033
29034 # type: textblock
29035 #: ../tools/virt-make-fs.pl:148
29036 msgid ""
29037 "If the output disk image could be terabyte-sized or larger, it's better to "
29038 "use an EFI/GPT-compatible partition table:"
29039 msgstr ""
29040
29041 # type: verbatim
29042 #: ../tools/virt-make-fs.pl:151
29043 #, no-wrap
29044 msgid ""
29045 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
29046 "\n"
29047 msgstr ""
29048
29049 # type: textblock
29050 #: ../tools/virt-make-fs.pl:179
29051 msgid "Enable debugging information."
29052 msgstr ""
29053
29054 # type: =item
29055 #: ../tools/virt-make-fs.pl:185
29056 msgid "B<--size=E<lt>NE<gt>>"
29057 msgstr ""
29058
29059 # type: =item
29060 #: ../tools/virt-make-fs.pl:187
29061 msgid "B<--size=+E<lt>NE<gt>>"
29062 msgstr ""
29063
29064 # type: =item
29065 #: ../tools/virt-make-fs.pl:189
29066 msgid "B<-s E<lt>NE<gt>>"
29067 msgstr ""
29068
29069 # type: =item
29070 #: ../tools/virt-make-fs.pl:191
29071 msgid "B<-s +E<lt>NE<gt>>"
29072 msgstr ""
29073
29074 # type: textblock
29075 #: ../tools/virt-make-fs.pl:193
29076 msgid ""
29077 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
29078 msgstr ""
29079
29080 # type: textblock
29081 #: ../tools/virt-make-fs.pl:196
29082 msgid ""
29083 "If this option is I<not> given, then the output image will be just large "
29084 "enough to contain all the files, with not much wasted space."
29085 msgstr ""
29086
29087 # type: textblock
29088 #: ../tools/virt-make-fs.pl:199
29089 msgid ""
29090 "To choose a fixed size output disk, specify an absolute number followed by b/"
29091 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29092 "Petabytes or Exabytes.  This must be large enough to contain all the input "
29093 "files, else you will get an error."
29094 msgstr ""
29095
29096 # type: textblock
29097 #: ../tools/virt-make-fs.pl:204
29098 msgid ""
29099 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
29100 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29101 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
29102 "the input files, and (approximately) an extra 200 MB free space."
29103 msgstr ""
29104
29105 # type: textblock
29106 #: ../tools/virt-make-fs.pl:210
29107 msgid ""
29108 "Note that virt-make-fs estimates free space, and therefore will not produce "
29109 "filesystems containing precisely the free space requested.  (It is much more "
29110 "expensive and time-consuming to produce a filesystem which has precisely the "
29111 "desired free space)."
29112 msgstr ""
29113
29114 # type: =item
29115 #: ../tools/virt-make-fs.pl:219
29116 msgid "B<--format=E<lt>fmtE<gt>>"
29117 msgstr ""
29118
29119 # type: =item
29120 #: ../tools/virt-make-fs.pl:221
29121 msgid "B<-F E<lt>fmtE<gt>>"
29122 msgstr ""
29123
29124 # type: textblock
29125 #: ../tools/virt-make-fs.pl:223
29126 msgid "Choose the output disk image format."
29127 msgstr ""
29128
29129 # type: textblock
29130 #: ../tools/virt-make-fs.pl:225
29131 msgid "The default is C<raw> (raw disk image)."
29132 msgstr ""
29133
29134 # type: textblock
29135 #: ../tools/virt-make-fs.pl:227
29136 msgid ""
29137 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
29138 "that would really make sense here is C<qcow2>."
29139 msgstr ""
29140
29141 # type: =item
29142 #: ../tools/virt-make-fs.pl:234
29143 msgid "B<--type=E<lt>fsE<gt>>"
29144 msgstr ""
29145
29146 # type: =item
29147 #: ../tools/virt-make-fs.pl:236
29148 msgid "B<-t E<lt>fsE<gt>>"
29149 msgstr ""
29150
29151 # type: textblock
29152 #: ../tools/virt-make-fs.pl:238
29153 msgid "Choose the output filesystem type."
29154 msgstr ""
29155
29156 # type: textblock
29157 #: ../tools/virt-make-fs.pl:240
29158 msgid "The default is C<ext2>."
29159 msgstr ""
29160
29161 # type: textblock
29162 #: ../tools/virt-make-fs.pl:242
29163 msgid ""
29164 "Any filesystem which is supported read-write by libguestfs can be used here."
29165 msgstr ""
29166
29167 # type: =item
29168 #: ../tools/virt-make-fs.pl:249
29169 msgid "B<--partition>"
29170 msgstr ""
29171
29172 # type: =item
29173 #: ../tools/virt-make-fs.pl:251
29174 msgid "B<--partition=E<lt>parttypeE<gt>>"
29175 msgstr ""
29176
29177 # type: textblock
29178 #: ../tools/virt-make-fs.pl:253
29179 msgid ""
29180 "If specified, this flag adds an MBR partition table to the output disk image."
29181 msgstr ""
29182
29183 # type: textblock
29184 #: ../tools/virt-make-fs.pl:256
29185 msgid ""
29186 "You can change the partition table type, eg. C<--partition=gpt> for large "
29187 "disks."
29188 msgstr ""
29189
29190 # type: textblock
29191 #: ../tools/virt-make-fs.pl:259
29192 msgid ""
29193 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
29194 "might consider the next parameter to be the partition type.  For example:"
29195 msgstr ""
29196
29197 # type: verbatim
29198 #: ../tools/virt-make-fs.pl:263
29199 #, no-wrap
29200 msgid ""
29201 " virt-make-fs --partition input.tar ...\n"
29202 "\n"
29203 msgstr ""
29204
29205 # type: textblock
29206 #: ../tools/virt-make-fs.pl:265
29207 msgid ""
29208 "would cause virt-make-fs to think you wanted to use a partition type of "
29209 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
29210 "dash) between options and the input file argument:"
29211 msgstr ""
29212
29213 # type: verbatim
29214 #: ../tools/virt-make-fs.pl:269
29215 #, no-wrap
29216 msgid ""
29217 " virt-make-fs --partition -- input.tar ...\n"
29218 "\n"
29219 msgstr ""
29220
29221 # type: textblock
29222 #: ../tools/virt-make-fs.pl:536
29223 msgid ""
29224 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
29225 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
29226 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29227 msgstr ""
29228
29229 # type: verbatim
29230 #: ../tools/virt-make-fs.pl:553
29231 #, no-wrap
29232 msgid ""
29233 " export LIBGUESTFS_DEBUG=1\n"
29234 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29235 "\n"
29236 msgstr ""
29237
29238 # type: textblock
29239 #: ../tools/virt-make-fs.pl:556
29240 msgid ""
29241 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
29242 "redhat.com/>"
29243 msgstr ""
29244
29245 # type: textblock
29246 #: ../tools/virt-list-partitions.pl:32
29247 msgid ""
29248 "virt-list-partitions - List partitions in a virtual machine or disk image"
29249 msgstr ""
29250
29251 # type: verbatim
29252 #: ../tools/virt-list-partitions.pl:36
29253 #, no-wrap
29254 msgid ""
29255 " virt-list-partitions [--options] domname\n"
29256 "\n"
29257 msgstr ""
29258
29259 # type: verbatim
29260 #: ../tools/virt-list-partitions.pl:38
29261 #, no-wrap
29262 msgid ""
29263 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29264 "\n"
29265 msgstr ""
29266
29267 # type: textblock
29268 #: ../tools/virt-list-partitions.pl:45
29269 msgid ""
29270 "C<virt-list-partitions> is a command line tool to list the partitions that "
29271 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29272 "first step to using L<virt-resize(1)>."
29273 msgstr ""
29274
29275 # type: textblock
29276 #: ../tools/virt-list-partitions.pl:50
29277 msgid ""
29278 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
29279 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29280 "> tool."
29281 msgstr ""
29282
29283 # type: =item
29284 #: ../tools/virt-list-partitions.pl:107
29285 msgid "B<-h> | B<--human-readable>"
29286 msgstr ""
29287
29288 # type: textblock
29289 #: ../tools/virt-list-partitions.pl:109
29290 msgid "Show sizes in human-readable form (eg. \"1G\")."
29291 msgstr ""
29292
29293 # type: textblock
29294 #: ../tools/virt-list-partitions.pl:117
29295 msgid ""
29296 "With this option, C<virt-list-partitions> displays the type and size of each "
29297 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
29298 msgstr ""
29299
29300 # type: =item
29301 #: ../tools/virt-list-partitions.pl:124
29302 msgid "B<-t> | B<--total>"
29303 msgstr ""
29304
29305 # type: textblock
29306 #: ../tools/virt-list-partitions.pl:126
29307 msgid ""
29308 "Display the total size of each block device (as a separate row or rows)."
29309 msgstr ""
29310
29311 # type: textblock
29312 #: ../tools/virt-list-partitions.pl:259
29313 msgid ""
29314 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
29315 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
29316 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29317 msgstr ""