Update BUGS, PO files for 1.8.0.
[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-19 15:38+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 "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
732 msgstr ""
733
734 # type: textblock
735 #: ../src/guestfs.pod:339
736 msgid ""
737 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
738 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
739 "appears you can only upload and download to files.  However many Un*x-like "
740 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
741 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
742 "and arbitrary file descriptor N."
743 msgstr ""
744
745 # type: textblock
746 #: ../src/guestfs.pod:347
747 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
748 msgstr ""
749
750 # type: verbatim
751 #: ../src/guestfs.pod:350
752 #, no-wrap
753 msgid ""
754 " guestfs_download (filename, \"/dev/stdout\");\n"
755 "\n"
756 msgstr ""
757
758 # type: textblock
759 #: ../src/guestfs.pod:352
760 msgid "and you can write tar output to a pipe C<fd> by doing:"
761 msgstr ""
762
763 # type: verbatim
764 #: ../src/guestfs.pod:354
765 #, no-wrap
766 msgid ""
767 " char devfd[64];\n"
768 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
769 " guestfs_tar_out (\"/\", devfd);\n"
770 "\n"
771 msgstr ""
772
773 # type: =head2
774 #: ../src/guestfs.pod:358
775 msgid "LISTING FILES"
776 msgstr ""
777
778 # type: textblock
779 #: ../src/guestfs.pod:360
780 msgid ""
781 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
782 "L<guestfish(1)>-equivalent command C<ll>)."
783 msgstr ""
784
785 # type: textblock
786 #: ../src/guestfs.pod:363
787 msgid ""
788 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
789 "programs, as a flat list of strings."
790 msgstr ""
791
792 # type: textblock
793 #: ../src/guestfs.pod:366
794 msgid ""
795 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
796 "directory, plus additional information about each one.  It is more "
797 "equivalent to using the L<readdir(3)> call on a local filesystem."
798 msgstr ""
799
800 # type: textblock
801 #: ../src/guestfs.pod:370
802 msgid ""
803 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
804 msgstr ""
805
806 # type: =head2
807 #: ../src/guestfs.pod:373
808 msgid "RUNNING COMMANDS"
809 msgstr ""
810
811 # type: textblock
812 #: ../src/guestfs.pod:375
813 msgid ""
814 "Although libguestfs is primarily an API for manipulating files inside guest "
815 "images, we also provide some limited facilities for running commands inside "
816 "guests."
817 msgstr ""
818
819 # type: textblock
820 #: ../src/guestfs.pod:379
821 msgid "There are many limitations to this:"
822 msgstr ""
823
824 # type: =item
825 #: ../src/guestfs.pod:383 ../src/guestfs.pod:388 ../src/guestfs.pod:393
826 #: ../src/guestfs.pod:397 ../src/guestfs.pod:402 ../src/guestfs.pod:406
827 #: ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:1006
828 #: ../src/guestfs.pod:1010 ../src/guestfs.pod:1014 ../src/guestfs.pod:1019
829 #: ../src/guestfs.pod:1027 ../src/guestfs.pod:1046 ../src/guestfs.pod:1054
830 #: ../src/guestfs.pod:1076 ../src/guestfs.pod:1080 ../src/guestfs.pod:1084
831 #: ../src/guestfs.pod:1088 ../src/guestfs.pod:1092 ../src/guestfs.pod:1096
832 #: ../src/guestfs.pod:1578 ../src/guestfs.pod:1583 ../src/guestfs.pod:1587
833 #: ../src/guestfs.pod:1697 ../src/guestfs.pod:1702 ../src/guestfs.pod:1706
834 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2064 ../src/guestfs.pod:2069
835 #: ../src/guestfs.pod:2075 ../src/guestfs.pod:2187 ../src/guestfs.pod:2191
836 #: ../src/guestfs.pod:2195 ../src/guestfs.pod:2199
837 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
838 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:579
839 #: ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:593
840 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:1593
841 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:1601
842 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1613
843 #: ../src/guestfs-actions.pod:1617 ../src/guestfs-actions.pod:1627
844 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1635
845 #: ../src/guestfs-actions.pod:1773 ../src/guestfs-actions.pod:1777
846 #: ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1787
847 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:1852
848 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish.pod:427
849 #: ../fish/guestfish.pod:431 ../fish/guestfish.pod:435
850 #: ../fish/guestfish.pod:439 ../fish/guestfish-actions.pod:13
851 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
852 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
853 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
854 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
855 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
856 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
857 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
858 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
859 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
860 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
861 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
862 #: ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542
863 #: ../tools/virt-win-reg.pl:548 ../tools/virt-resize.pl:345
864 #: ../tools/virt-resize.pl:350 ../tools/virt-resize.pl:360
865 msgid "*"
866 msgstr ""
867
868 # type: textblock
869 #: ../src/guestfs.pod:385
870 msgid ""
871 "The kernel version that the command runs under will be different from what "
872 "it expects."
873 msgstr ""
874
875 # type: textblock
876 #: ../src/guestfs.pod:390
877 msgid ""
878 "If the command needs to communicate with daemons, then most likely they "
879 "won't be running."
880 msgstr ""
881
882 # type: textblock
883 #: ../src/guestfs.pod:395
884 msgid "The command will be running in limited memory."
885 msgstr ""
886
887 # type: textblock
888 #: ../src/guestfs.pod:399
889 msgid ""
890 "The network may not be available unless you enable it (see L</"
891 "guestfs_set_network>)."
892 msgstr ""
893
894 # type: textblock
895 #: ../src/guestfs.pod:404
896 msgid "Only supports Linux guests (not Windows, BSD, etc)."
897 msgstr ""
898
899 # type: textblock
900 #: ../src/guestfs.pod:408
901 msgid ""
902 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
903 msgstr ""
904
905 # type: textblock
906 #: ../src/guestfs.pod:413
907 msgid ""
908 "For SELinux guests, you may need to enable SELinux and load policy first.  "
909 "See L</SELINUX> in this manpage."
910 msgstr ""
911
912 # type: textblock
913 #: ../src/guestfs.pod:418
914 msgid ""
915 "I<Security:> It is not safe to run commands from untrusted, possibly "
916 "malicious guests.  These commands may attempt to exploit your program by "
917 "sending unexpected output.  They could also try to exploit the Linux kernel "
918 "or qemu provided by the libguestfs appliance.  They could use the network "
919 "provided by the libguestfs appliance to bypass ordinary network partitions "
920 "and firewalls.  They could use the elevated privileges or different SELinux "
921 "context of your program to their advantage."
922 msgstr ""
923
924 # type: textblock
925 #: ../src/guestfs.pod:427
926 msgid ""
927 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
928 "(a script which runs when the guest next boots normally), and to have this "
929 "script run the commands you want in the normal context of the running guest, "
930 "network security and so on.  For information about other security issues, "
931 "see L</SECURITY>."
932 msgstr ""
933
934 # type: textblock
935 #: ../src/guestfs.pod:435
936 msgid ""
937 "The two main API calls to run commands are L</guestfs_command> and L</"
938 "guestfs_sh> (there are also variations)."
939 msgstr ""
940
941 # type: textblock
942 #: ../src/guestfs.pod:438
943 msgid ""
944 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
945 "shell globs, redirections, etc will work."
946 msgstr ""
947
948 # type: =head2
949 #: ../src/guestfs.pod:441
950 msgid "CONFIGURATION FILES"
951 msgstr ""
952
953 # type: textblock
954 #: ../src/guestfs.pod:443
955 msgid ""
956 "To read and write configuration files in Linux guest filesystems, we "
957 "strongly recommend using Augeas.  For example, Augeas understands how to "
958 "read and write, say, a Linux shadow password file or X.org configuration "
959 "file, and so avoids you having to write that code."
960 msgstr ""
961
962 # type: textblock
963 #: ../src/guestfs.pod:448
964 msgid ""
965 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
966 "document Augeas itself here because there is excellent documentation on the "
967 "L<http://augeas.net/> website."
968 msgstr ""
969
970 # type: textblock
971 #: ../src/guestfs.pod:452
972 msgid ""
973 "If you don't want to use Augeas (you fool!) then try calling L</"
974 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
975 "over."
976 msgstr ""
977
978 # type: =head2
979 #: ../src/guestfs.pod:456
980 msgid "SELINUX"
981 msgstr ""
982
983 # type: textblock
984 #: ../src/guestfs.pod:458
985 msgid ""
986 "We support SELinux guests.  To ensure that labeling happens correctly in "
987 "SELinux guests, you need to enable SELinux and load the guest's policy:"
988 msgstr ""
989
990 # type: =item
991 #: ../src/guestfs.pod:464 ../src/guestfs.pod:1199 ../src/guestfs.pod:1330
992 msgid "1."
993 msgstr ""
994
995 # type: textblock
996 #: ../src/guestfs.pod:466
997 msgid "Before launching, do:"
998 msgstr ""
999
1000 # type: verbatim
1001 #: ../src/guestfs.pod:468
1002 #, no-wrap
1003 msgid ""
1004 " guestfs_set_selinux (g, 1);\n"
1005 "\n"
1006 msgstr ""
1007
1008 # type: =item
1009 #: ../src/guestfs.pod:470 ../src/guestfs.pod:1203 ../src/guestfs.pod:1334
1010 msgid "2."
1011 msgstr ""
1012
1013 # type: textblock
1014 #: ../src/guestfs.pod:472
1015 msgid ""
1016 "After mounting the guest's filesystem(s), load the policy.  This is best "
1017 "done by running the L<load_policy(8)> command in the guest itself:"
1018 msgstr ""
1019
1020 # type: verbatim
1021 #: ../src/guestfs.pod:476
1022 #, no-wrap
1023 msgid ""
1024 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1025 "\n"
1026 msgstr ""
1027
1028 # type: textblock
1029 #: ../src/guestfs.pod:478
1030 msgid ""
1031 "(Older versions of C<load_policy> require you to specify the name of the "
1032 "policy file)."
1033 msgstr ""
1034
1035 # type: =item
1036 #: ../src/guestfs.pod:481 ../src/guestfs.pod:1340
1037 msgid "3."
1038 msgstr ""
1039
1040 # type: textblock
1041 #: ../src/guestfs.pod:483
1042 msgid ""
1043 "Optionally, set the security context for the API.  The correct security "
1044 "context to use can only be known by inspecting the guest.  As an example:"
1045 msgstr ""
1046
1047 # type: verbatim
1048 #: ../src/guestfs.pod:487
1049 #, no-wrap
1050 msgid ""
1051 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1052 "\n"
1053 msgstr ""
1054
1055 # type: textblock
1056 #: ../src/guestfs.pod:491
1057 msgid "This will work for running commands and editing existing files."
1058 msgstr ""
1059
1060 # type: textblock
1061 #: ../src/guestfs.pod:493
1062 msgid ""
1063 "When new files are created, you may need to label them explicitly, for "
1064 "example by running the external command C<restorecon pathname>."
1065 msgstr ""
1066
1067 # type: =head2
1068 #: ../src/guestfs.pod:497
1069 msgid "UMASK"
1070 msgstr ""
1071
1072 # type: textblock
1073 #: ../src/guestfs.pod:499
1074 msgid ""
1075 "Certain calls are affected by the current file mode creation mask (the "
1076 "\"umask\").  In particular ones which create files or directories, such as "
1077 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1078 "either the default mode that the file is created with or modifies the mode "
1079 "that you supply."
1080 msgstr ""
1081
1082 # type: textblock
1083 #: ../src/guestfs.pod:505
1084 msgid ""
1085 "The default umask is C<022>, so files are created with modes such as C<0644> "
1086 "and directories with C<0755>."
1087 msgstr ""
1088
1089 # type: textblock
1090 #: ../src/guestfs.pod:508
1091 msgid ""
1092 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1093 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1094 "guestfs_chmod> after creating each file or directory."
1095 msgstr ""
1096
1097 # type: textblock
1098 #: ../src/guestfs.pod:512
1099 msgid "For more information about umask, see L<umask(2)>."
1100 msgstr ""
1101
1102 # type: =head1
1103 #: ../src/guestfs.pod:514 ../fish/guestfish.pod:720
1104 msgid "ENCRYPTED DISKS"
1105 msgstr ""
1106
1107 # type: textblock
1108 #: ../src/guestfs.pod:516
1109 msgid ""
1110 "Libguestfs allows you to access Linux guests which have been encrypted using "
1111 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1112 "standard.  This includes nearly all whole disk encryption systems used by "
1113 "modern Linux guests."
1114 msgstr ""
1115
1116 # type: textblock
1117 #: ../src/guestfs.pod:522
1118 msgid ""
1119 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1120 "returns the string C<crypto_LUKS>)."
1121 msgstr ""
1122
1123 # type: textblock
1124 #: ../src/guestfs.pod:525
1125 msgid ""
1126 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1127 "will require the passphrase!"
1128 msgstr ""
1129
1130 # type: textblock
1131 #: ../src/guestfs.pod:528
1132 msgid ""
1133 "Opening a LUKS device creates a new device mapper device called C</dev/"
1134 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1135 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1136 "from and encrypted to the underlying block device respectively."
1137 msgstr ""
1138
1139 # type: textblock
1140 #: ../src/guestfs.pod:534
1141 msgid ""
1142 "LVM volume groups on the device can be made visible by calling L</"
1143 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1144 "(s) can now be mounted in the usual way."
1145 msgstr ""
1146
1147 # type: textblock
1148 #: ../src/guestfs.pod:538
1149 msgid ""
1150 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1151 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1152 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1153 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1154 "underlying encrypted block device)."
1155 msgstr ""
1156
1157 # type: =head2
1158 #: ../src/guestfs.pod:545
1159 msgid "INSPECTION"
1160 msgstr ""
1161
1162 # type: textblock
1163 #: ../src/guestfs.pod:547
1164 msgid ""
1165 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1166 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1167 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1168 "frequently used part of this library has been rewritten in C and moved into "
1169 "the core code)."
1170 msgstr ""
1171
1172 # type: textblock
1173 #: ../src/guestfs.pod:553
1174 msgid ""
1175 "Add all disks belonging to the unknown virtual machine and call L</"
1176 "guestfs_launch> in the usual way."
1177 msgstr ""
1178
1179 # type: textblock
1180 #: ../src/guestfs.pod:556
1181 msgid ""
1182 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1183 "and certain heuristics, and returns a list of operating systems that were "
1184 "found.  An empty list means none were found.  A single element is the root "
1185 "filesystem of the operating system.  For dual- or multi-boot guests, "
1186 "multiple roots can be returned, each one corresponding to a separate "
1187 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1188 "world of virtualization, but since this scenario can happen, we have built "
1189 "libguestfs to deal with it.)"
1190 msgstr ""
1191
1192 # type: textblock
1193 #: ../src/guestfs.pod:565
1194 msgid ""
1195 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1196 "to get additional details about that operating system.  For example, call L</"
1197 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1198 "Windows and Linux-based operating systems respectively."
1199 msgstr ""
1200
1201 # type: textblock
1202 #: ../src/guestfs.pod:571
1203 msgid ""
1204 "Un*x-like and Linux-based operating systems usually consist of several "
1205 "filesystems which are mounted at boot time (for example, a separate boot "
1206 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1207 "filesystems correspond to mount points.  Call "
1208 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1209 "hash table like this example:"
1210 msgstr ""
1211
1212 # type: verbatim
1213 #: ../src/guestfs.pod:578
1214 #, no-wrap
1215 msgid ""
1216 " /boot => /dev/sda1\n"
1217 " /     => /dev/vg_guest/lv_root\n"
1218 " /usr  => /dev/vg_guest/lv_usr\n"
1219 "\n"
1220 msgstr ""
1221
1222 # type: textblock
1223 #: ../src/guestfs.pod:582
1224 msgid ""
1225 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1226 "filesystems as suggested."
1227 msgstr ""
1228
1229 # type: textblock
1230 #: ../src/guestfs.pod:585
1231 msgid ""
1232 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1233 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1234 msgstr ""
1235
1236 # type: textblock
1237 #: ../src/guestfs.pod:589
1238 msgid ""
1239 "Inspection currently only works for some common operating systems.  "
1240 "Contributors are welcome to send patches for other operating systems that we "
1241 "currently cannot detect."
1242 msgstr ""
1243
1244 # type: textblock
1245 #: ../src/guestfs.pod:593
1246 msgid ""
1247 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1248 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1249 "encrypted devices."
1250 msgstr ""
1251
1252 # type: textblock
1253 #: ../src/guestfs.pod:597
1254 msgid ""
1255 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1256 "inspection and caches the results in the guest handle.  Subsequent calls to "
1257 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1258 "read the disks.  If you change the content of the guest disks, you can redo "
1259 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1260 "guestfs_inspect_list_applications> works a little differently from the other "
1261 "calls and does read the disks.  See documentation for that function for "
1262 "details)."
1263 msgstr ""
1264
1265 # type: =head2
1266 #: ../src/guestfs.pod:606
1267 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1268 msgstr ""
1269
1270 # type: textblock
1271 #: ../src/guestfs.pod:608
1272 msgid ""
1273 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1274 "ntfs-3g.org/> driver."
1275 msgstr ""
1276
1277 # type: =head3
1278 #: ../src/guestfs.pod:611
1279 msgid "DRIVE LETTERS AND PATHS"
1280 msgstr ""
1281
1282 # type: textblock
1283 #: ../src/guestfs.pod:613
1284 msgid ""
1285 "DOS and Windows still use drive letters, and the filesystems are always "
1286 "treated as case insensitive by Windows itself, and therefore you might find "
1287 "a Windows configuration file referring to a path like C<c:\\windows"
1288 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1289 "might be referred to as C</WINDOWS/System32>."
1290 msgstr ""
1291
1292 # type: textblock
1293 #: ../src/guestfs.pod:619
1294 msgid ""
1295 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1296 "libguestfs to read the appropriate Windows Registry and configuration files, "
1297 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1298 "inspector(1)>)."
1299 msgstr ""
1300
1301 # type: textblock
1302 #: ../src/guestfs.pod:624
1303 msgid ""
1304 "Replacing backslash characters with forward slash characters is also outside "
1305 "the scope of libguestfs, but something that you can easily do."
1306 msgstr ""
1307
1308 # type: textblock
1309 #: ../src/guestfs.pod:627
1310 msgid ""
1311 "Where we can help is in resolving the case insensitivity of paths.  For "
1312 "this, call L</guestfs_case_sensitive_path>."
1313 msgstr ""
1314
1315 # type: =head3
1316 #: ../src/guestfs.pod:630
1317 msgid "ACCESSING THE WINDOWS REGISTRY"
1318 msgstr ""
1319
1320 # type: textblock
1321 #: ../src/guestfs.pod:632
1322 msgid ""
1323 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1324 "files, through the library C<hivex> which is part of the libguestfs project "
1325 "although ships as a separate tarball.  You have to locate and download the "
1326 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1327 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1328 "reg(1)> for more help on this issue."
1329 msgstr ""
1330
1331 # type: =head3
1332 #: ../src/guestfs.pod:640
1333 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1334 msgstr ""
1335
1336 # type: textblock
1337 #: ../src/guestfs.pod:642
1338 msgid ""
1339 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1340 "provide something which looks like a Linux symlink.  The way it tries to do "
1341 "the rewriting is described here:"
1342 msgstr ""
1343
1344 # type: textblock
1345 #: ../src/guestfs.pod:646
1346 msgid ""
1347 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1348 "symbolic-links/>"
1349 msgstr ""
1350
1351 # type: textblock
1352 #: ../src/guestfs.pod:648
1353 msgid ""
1354 "The essential problem is that ntfs-3g simply does not have enough "
1355 "information to do a correct job.  NTFS links can contain drive letters and "
1356 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1357 "It is almost certainly the case that libguestfs callers should ignore what "
1358 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1359 msgstr ""
1360
1361 # type: textblock
1362 #: ../src/guestfs.pod:655
1363 msgid ""
1364 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1365 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1366 "attribute, and read the raw reparse data from that (you can find the format "
1367 "documented in various places around the web)."
1368 msgstr ""
1369
1370 # type: =head3
1371 #: ../src/guestfs.pod:660
1372 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1373 msgstr ""
1374
1375 # type: textblock
1376 #: ../src/guestfs.pod:662
1377 msgid ""
1378 "There are other useful extended attributes that can be read from ntfs-3g "
1379 "filesystems (using L</guestfs_getxattr>).  See:"
1380 msgstr ""
1381
1382 # type: textblock
1383 #: ../src/guestfs.pod:665
1384 msgid ""
1385 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1386 msgstr ""
1387
1388 # type: =head2
1389 #: ../src/guestfs.pod:667
1390 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1391 msgstr ""
1392
1393 # type: textblock
1394 #: ../src/guestfs.pod:669
1395 msgid ""
1396 "Although we don't want to discourage you from using the C API, we will "
1397 "mention here that the same API is also available in other languages."
1398 msgstr ""
1399
1400 # type: textblock
1401 #: ../src/guestfs.pod:672
1402 msgid ""
1403 "The API is broadly identical in all supported languages.  This means that "
1404 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1405 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1406 "words, a straightforward, predictable isomorphism between each language."
1407 msgstr ""
1408
1409 # type: textblock
1410 #: ../src/guestfs.pod:678
1411 msgid ""
1412 "Error messages are automatically transformed into exceptions if the language "
1413 "supports it."
1414 msgstr ""
1415
1416 # type: textblock
1417 #: ../src/guestfs.pod:681
1418 msgid ""
1419 "We don't try to \"object orientify\" parts of the API in OO languages, "
1420 "although contributors are welcome to write higher level APIs above what we "
1421 "provide in their favourite languages if they wish."
1422 msgstr ""
1423
1424 # type: =item
1425 #: ../src/guestfs.pod:687
1426 msgid "B<C++>"
1427 msgstr ""
1428
1429 # type: textblock
1430 #: ../src/guestfs.pod:689
1431 msgid ""
1432 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1433 "identical to the C API.  C++ classes and exceptions are not used."
1434 msgstr ""
1435
1436 # type: =item
1437 #: ../src/guestfs.pod:693
1438 msgid "B<C#>"
1439 msgstr ""
1440
1441 # type: textblock
1442 #: ../src/guestfs.pod:695
1443 msgid ""
1444 "The C# bindings are highly experimental.  Please read the warnings at the "
1445 "top of C<csharp/Libguestfs.cs>."
1446 msgstr ""
1447
1448 # type: =item
1449 #: ../src/guestfs.pod:698
1450 msgid "B<Haskell>"
1451 msgstr ""
1452
1453 # type: textblock
1454 #: ../src/guestfs.pod:700
1455 msgid ""
1456 "This is the only language binding that is working but incomplete.  Only "
1457 "calls which return simple integers have been bound in Haskell, and we are "
1458 "looking for help to complete this binding."
1459 msgstr ""
1460
1461 # type: =item
1462 #: ../src/guestfs.pod:704
1463 msgid "B<Java>"
1464 msgstr ""
1465
1466 # type: textblock
1467 #: ../src/guestfs.pod:706
1468 msgid ""
1469 "Full documentation is contained in the Javadoc which is distributed with "
1470 "libguestfs."
1471 msgstr ""
1472
1473 # type: =item
1474 #: ../src/guestfs.pod:709
1475 msgid "B<OCaml>"
1476 msgstr ""
1477
1478 # type: textblock
1479 #: ../src/guestfs.pod:711
1480 msgid "For documentation see L<guestfs-ocaml(3)>."
1481 msgstr ""
1482
1483 # type: =item
1484 #: ../src/guestfs.pod:713
1485 msgid "B<Perl>"
1486 msgstr ""
1487
1488 # type: textblock
1489 #: ../src/guestfs.pod:715
1490 msgid "For documentation see L<Sys::Guestfs(3)>."
1491 msgstr ""
1492
1493 # type: =item
1494 #: ../src/guestfs.pod:717
1495 msgid "B<PHP>"
1496 msgstr ""
1497
1498 # type: textblock
1499 #: ../src/guestfs.pod:719
1500 msgid ""
1501 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1502 "the php-libguestfs package for your distribution."
1503 msgstr ""
1504
1505 # type: textblock
1506 #: ../src/guestfs.pod:722
1507 msgid "The PHP binding only works correctly on 64 bit machines."
1508 msgstr ""
1509
1510 # type: =item
1511 #: ../src/guestfs.pod:724
1512 msgid "B<Python>"
1513 msgstr ""
1514
1515 # type: textblock
1516 #: ../src/guestfs.pod:726
1517 msgid "For documentation see L<guestfs-python(3)>."
1518 msgstr ""
1519
1520 # type: =item
1521 #: ../src/guestfs.pod:728
1522 msgid "B<Ruby>"
1523 msgstr ""
1524
1525 # type: textblock
1526 #: ../src/guestfs.pod:730
1527 msgid "For documentation see L<guestfs-ruby(3)>."
1528 msgstr ""
1529
1530 # type: =item
1531 #: ../src/guestfs.pod:732
1532 msgid "B<shell scripts>"
1533 msgstr ""
1534
1535 # type: textblock
1536 #: ../src/guestfs.pod:734
1537 msgid "For documentation see L<guestfish(1)>."
1538 msgstr ""
1539
1540 # type: =head2
1541 #: ../src/guestfs.pod:738
1542 msgid "LIBGUESTFS GOTCHAS"
1543 msgstr ""
1544
1545 # type: textblock
1546 #: ../src/guestfs.pod:740
1547 msgid ""
1548 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1549 "system [...] that works in the way it is documented but is counterintuitive "
1550 "and almost invites mistakes.\""
1551 msgstr ""
1552
1553 # type: textblock
1554 #: ../src/guestfs.pod:744
1555 msgid ""
1556 "Since we developed libguestfs and the associated tools, there are several "
1557 "things we would have designed differently, but are now stuck with for "
1558 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1559 "release, you can expect these to change.  Beware of them."
1560 msgstr ""
1561
1562 # type: =item
1563 #: ../src/guestfs.pod:752
1564 msgid "Autosync / forgetting to sync."
1565 msgstr ""
1566
1567 # type: textblock
1568 #: ../src/guestfs.pod:754
1569 msgid ""
1570 "When modifying a filesystem from C or another language, you B<must> unmount "
1571 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1572 "libguestfs handle.  You can also call:"
1573 msgstr ""
1574
1575 # type: verbatim
1576 #: ../src/guestfs.pod:758
1577 #, no-wrap
1578 msgid ""
1579 " guestfs_set_autosync (g, 1);\n"
1580 "\n"
1581 msgstr ""
1582
1583 # type: textblock
1584 #: ../src/guestfs.pod:760
1585 msgid ""
1586 "to have the unmount/sync done automatically for you when the handle 'g' is "
1587 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1588 msgstr ""
1589
1590 # type: textblock
1591 #: ../src/guestfs.pod:764
1592 msgid ""
1593 "If you forget to do this, then it is entirely possible that your changes "
1594 "won't be written out, or will be partially written, or (very rarely) that "
1595 "you'll get disk corruption."
1596 msgstr ""
1597
1598 # type: textblock
1599 #: ../src/guestfs.pod:768
1600 msgid ""
1601 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1602 "guestfish scripts that forget to sync will work just fine, which can make "
1603 "this very puzzling if you are trying to debug a problem."
1604 msgstr ""
1605
1606 # type: textblock
1607 #: ../src/guestfs.pod:772
1608 msgid ""
1609 "Update: Autosync is enabled by default for all API users starting from "
1610 "libguestfs 1.5.24."
1611 msgstr ""
1612
1613 # type: =item
1614 #: ../src/guestfs.pod:775
1615 msgid "Mount option C<-o sync> should not be the default."
1616 msgstr ""
1617
1618 # type: textblock
1619 #: ../src/guestfs.pod:777
1620 msgid ""
1621 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1622 "However C<-o sync> does not add any reliability benefit, but does have a "
1623 "very large performance impact."
1624 msgstr ""
1625
1626 # type: textblock
1627 #: ../src/guestfs.pod:781
1628 msgid ""
1629 "The work around is to use L</guestfs_mount_options> and set the mount "
1630 "options that you actually want to use."
1631 msgstr ""
1632
1633 # type: =item
1634 #: ../src/guestfs.pod:784
1635 msgid "Read-only should be the default."
1636 msgstr ""
1637
1638 # type: textblock
1639 #: ../src/guestfs.pod:786
1640 msgid ""
1641 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1642 "specify I<--rw> if you want to make changes to the image."
1643 msgstr ""
1644
1645 # type: textblock
1646 #: ../src/guestfs.pod:789
1647 msgid "This would reduce the potential to corrupt live VM images."
1648 msgstr ""
1649
1650 # type: textblock
1651 #: ../src/guestfs.pod:791
1652 msgid ""
1653 "Note that many filesystems change the disk when you just mount and unmount, "
1654 "even if you didn't perform any writes.  You need to use L</"
1655 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1656 msgstr ""
1657
1658 # type: =item
1659 #: ../src/guestfs.pod:795
1660 msgid "guestfish command line is hard to use."
1661 msgstr ""
1662
1663 # type: textblock
1664 #: ../src/guestfs.pod:797
1665 msgid ""
1666 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1667 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1668 "exist, so it fails.  In earlier versions of guestfish the error message was "
1669 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1670 "we should have used C<guestfish -c command> to run commands."
1671 msgstr ""
1672
1673 # type: =item
1674 #: ../src/guestfs.pod:804
1675 msgid "guestfish megabyte modifiers don't work right on all commands"
1676 msgstr ""
1677
1678 # type: textblock
1679 #: ../src/guestfs.pod:806
1680 msgid ""
1681 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1682 "other modifiers).  What guestfish actually does is to multiply the number "
1683 "part by the modifier part and pass the result to the C API.  However this "
1684 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1685 "expecting some other unit (eg. megabytes)."
1686 msgstr ""
1687
1688 # type: textblock
1689 #: ../src/guestfs.pod:813
1690 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1691 msgstr ""
1692
1693 # type: verbatim
1694 #: ../src/guestfs.pod:815
1695 #, no-wrap
1696 msgid ""
1697 " lvcreate LV VG 100M\n"
1698 "\n"
1699 msgstr ""
1700
1701 # type: textblock
1702 #: ../src/guestfs.pod:817
1703 msgid ""
1704 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1705 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1706 "megabytes * megabytes) logical volume.  The error message you get from this "
1707 "is also a little obscure."
1708 msgstr ""
1709
1710 # type: textblock
1711 #: ../src/guestfs.pod:822
1712 msgid ""
1713 "This could be fixed in the generator by specially marking parameters and "
1714 "return values which take bytes or other units."
1715 msgstr ""
1716
1717 # type: =item
1718 #: ../src/guestfs.pod:825
1719 msgid "Ambiguity between devices and paths"
1720 msgstr ""
1721
1722 # type: textblock
1723 #: ../src/guestfs.pod:827
1724 msgid ""
1725 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1726 "sdb2>) and a similar pathname.  A file might just happen to be called "
1727 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1728 msgstr ""
1729
1730 # type: textblock
1731 #: ../src/guestfs.pod:832
1732 msgid ""
1733 "In the current API we usually resolve this ambiguity by having two separate "
1734 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1735 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1736 "detecting if the path supplied begins with C</dev/>."
1737 msgstr ""
1738
1739 # type: textblock
1740 #: ../src/guestfs.pod:838
1741 msgid ""
1742 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1743 "make paths/devices into structured names.  One way to do this would be to "
1744 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1745 "aspect of grub.  Another way would be to use a structured type, equivalent "
1746 "to this OCaml type:"
1747 msgstr ""
1748
1749 # type: verbatim
1750 #: ../src/guestfs.pod:844
1751 #, no-wrap
1752 msgid ""
1753 " type path = Path of string | Device of int | Partition of int * int\n"
1754 "\n"
1755 msgstr ""
1756
1757 # type: textblock
1758 #: ../src/guestfs.pod:846
1759 msgid "which would allow you to pass arguments like:"
1760 msgstr ""
1761
1762 # type: verbatim
1763 #: ../src/guestfs.pod:848
1764 #, no-wrap
1765 msgid ""
1766 " Path \"/foo/bar\"\n"
1767 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1768 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1769 " Path \"/dev/sdb2\"    (* not a device *)\n"
1770 "\n"
1771 msgstr ""
1772
1773 # type: textblock
1774 #: ../src/guestfs.pod:853
1775 msgid ""
1776 "As you can see there are still problems to resolve even with this "
1777 "representation.  Also consider how it might work in guestfish."
1778 msgstr ""
1779
1780 # type: =head2
1781 #: ../src/guestfs.pod:858
1782 msgid "PROTOCOL LIMITS"
1783 msgstr ""
1784
1785 # type: textblock
1786 #: ../src/guestfs.pod:860
1787 msgid ""
1788 "Internally libguestfs uses a message-based protocol to pass API calls and "
1789 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1790 "plenty more detail about this).  The maximum message size used by the "
1791 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1792 "aware of this limit.  The API calls which may be affected are individually "
1793 "documented, with a link back to this section of the documentation."
1794 msgstr ""
1795
1796 # type: textblock
1797 #: ../src/guestfs.pod:868
1798 msgid ""
1799 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1800 "a simple string.  Because this string is at some point internally encoded as "
1801 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1802 "the requested file is larger than this then you will get an error."
1803 msgstr ""
1804
1805 # type: textblock
1806 #: ../src/guestfs.pod:874
1807 msgid ""
1808 "In order to transfer large files into and out of the guest filesystem, you "
1809 "need to use particular calls that support this.  The sections L</UPLOADING> "
1810 "and L</DOWNLOADING> document how to do this."
1811 msgstr ""
1812
1813 # type: textblock
1814 #: ../src/guestfs.pod:878
1815 msgid ""
1816 "You might also consider mounting the disk image using our FUSE filesystem "
1817 "support (L<guestmount(1)>)."
1818 msgstr ""
1819
1820 # type: =head2
1821 #: ../src/guestfs.pod:881
1822 msgid "KEYS AND PASSPHRASES"
1823 msgstr ""
1824
1825 # type: textblock
1826 #: ../src/guestfs.pod:883
1827 msgid ""
1828 "Certain libguestfs calls take a parameter that contains sensitive key "
1829 "material, passed in as a C string."
1830 msgstr ""
1831
1832 # type: textblock
1833 #: ../src/guestfs.pod:886
1834 msgid ""
1835 "In the future we would hope to change the libguestfs implementation so that "
1836 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1837 "swap.  However this is I<not> done at the moment, because of the complexity "
1838 "of such an implementation."
1839 msgstr ""
1840
1841 # type: textblock
1842 #: ../src/guestfs.pod:891
1843 msgid ""
1844 "Therefore you should be aware that any key parameter you pass to libguestfs "
1845 "might end up being written out to the swap partition.  If this is a concern, "
1846 "scrub the swap partition or don't use libguestfs on encrypted devices."
1847 msgstr ""
1848
1849 # type: =head1
1850 #: ../src/guestfs.pod:896
1851 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1852 msgstr ""
1853
1854 # type: textblock
1855 #: ../src/guestfs.pod:898
1856 msgid ""
1857 "All high-level libguestfs actions are synchronous.  If you want to use "
1858 "libguestfs asynchronously then you must create a thread."
1859 msgstr ""
1860
1861 # type: textblock
1862 #: ../src/guestfs.pod:901
1863 msgid ""
1864 "Only use the handle from a single thread.  Either use the handle exclusively "
1865 "from one thread, or provide your own mutex so that two threads cannot issue "
1866 "calls on the same handle at the same time."
1867 msgstr ""
1868
1869 # type: textblock
1870 #: ../src/guestfs.pod:905
1871 msgid ""
1872 "See the graphical program guestfs-browser for one possible architecture for "
1873 "multithreaded programs using libvirt and libguestfs."
1874 msgstr ""
1875
1876 # type: =head1
1877 #: ../src/guestfs.pod:908
1878 msgid "PATH"
1879 msgstr ""
1880
1881 # type: textblock
1882 #: ../src/guestfs.pod:910
1883 msgid ""
1884 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1885 "internal path."
1886 msgstr ""
1887
1888 # type: textblock
1889 #: ../src/guestfs.pod:913
1890 msgid ""
1891 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1892 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1893 msgstr ""
1894
1895 # type: textblock
1896 #: ../src/guestfs.pod:916
1897 msgid ""
1898 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1899 "to change the directories that libguestfs will search in.  The value is a "
1900 "colon-separated list of paths.  The current directory is I<not> searched "
1901 "unless the path contains an empty element or C<.>.  For example "
1902 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1903 "then C</usr/lib/guestfs>."
1904 msgstr ""
1905
1906 # type: =head1
1907 #: ../src/guestfs.pod:923
1908 msgid "QEMU WRAPPERS"
1909 msgstr ""
1910
1911 # type: textblock
1912 #: ../src/guestfs.pod:925
1913 msgid ""
1914 "If you want to compile your own qemu, run qemu from a non-standard location, "
1915 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1916 "around qemu."
1917 msgstr ""
1918
1919 # type: textblock
1920 #: ../src/guestfs.pod:929
1921 msgid ""
1922 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1923 "last command in the shell script (so that qemu replaces the shell and "
1924 "becomes the direct child of the libguestfs-using program).  If you don't do "
1925 "this, then the qemu process won't be cleaned up correctly."
1926 msgstr ""
1927
1928 # type: textblock
1929 #: ../src/guestfs.pod:934
1930 msgid ""
1931 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1932 "source:"
1933 msgstr ""
1934
1935 # type: verbatim
1936 #: ../src/guestfs.pod:937
1937 #, no-wrap
1938 msgid ""
1939 " #!/bin/sh -\n"
1940 " qemudir=/home/rjones/d/qemu\n"
1941 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1942 "\n"
1943 msgstr ""
1944
1945 # type: textblock
1946 #: ../src/guestfs.pod:941
1947 msgid ""
1948 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1949 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1950 "example:"
1951 msgstr ""
1952
1953 # type: verbatim
1954 #: ../src/guestfs.pod:945
1955 #, no-wrap
1956 msgid ""
1957 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1958 "\n"
1959 msgstr ""
1960
1961 # type: textblock
1962 #: ../src/guestfs.pod:947
1963 msgid ""
1964 "Note that libguestfs also calls qemu with the -help and -version options in "
1965 "order to determine features."
1966 msgstr ""
1967
1968 # type: =head2
1969 #: ../src/guestfs.pod:950
1970 msgid "ABI GUARANTEE"
1971 msgstr ""
1972
1973 # type: textblock
1974 #: ../src/guestfs.pod:952
1975 msgid ""
1976 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1977 "actions as outlined in this section.  Although we will deprecate some "
1978 "actions, for example if they get replaced by newer calls, we will keep the "
1979 "old actions forever.  This allows you the developer to program in confidence "
1980 "against the libguestfs API."
1981 msgstr ""
1982
1983 # type: =head1
1984 #: ../src/guestfs.pod:958
1985 msgid "BLOCK DEVICE NAMING"
1986 msgstr ""
1987
1988 # type: textblock
1989 #: ../src/guestfs.pod:960
1990 msgid ""
1991 "In the kernel there is now quite a profusion of schemata for naming block "
1992 "devices (in this context, by I<block device> I mean a physical or virtual "
1993 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1994 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1995 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1996 "for the old IDE driver (particularly for SATA devices) those devices also "
1997 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1998 "paravirtualized drivers.  This has created several different naming systems, "
1999 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2000 msgstr ""
2001
2002 # type: textblock
2003 #: ../src/guestfs.pod:972
2004 msgid ""
2005 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2006 "Linux kernel to access block devices.  We can run a variety of appliances "
2007 "based on a variety of Linux kernels."
2008 msgstr ""
2009
2010 # type: textblock
2011 #: ../src/guestfs.pod:976
2012 msgid ""
2013 "This causes a problem for libguestfs because many API calls use device or "
2014 "partition names.  Working scripts and the recipe (example) scripts that we "
2015 "make available over the internet could fail if the naming scheme changes."
2016 msgstr ""
2017
2018 # type: textblock
2019 #: ../src/guestfs.pod:981
2020 msgid ""
2021 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2022 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2023 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2024 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2025 msgstr ""
2026
2027 # type: textblock
2028 #: ../src/guestfs.pod:987
2029 msgid ""
2030 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2031 "L</guestfs_list_partitions> and similar calls return the true names of the "
2032 "devices and partitions as known to the appliance."
2033 msgstr ""
2034
2035 # type: =head2
2036 #: ../src/guestfs.pod:992
2037 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2038 msgstr ""
2039
2040 # type: textblock
2041 #: ../src/guestfs.pod:994
2042 msgid ""
2043 "Usually this translation is transparent.  However in some (very rare)  cases "
2044 "you may need to know the exact algorithm.  Such cases include where you use "
2045 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2046 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2047 msgstr ""
2048
2049 # type: textblock
2050 #: ../src/guestfs.pod:1000
2051 msgid ""
2052 "The algorithm is applied only to I<parameters> which are known to be either "
2053 "device or partition names.  Return values from functions such as L</"
2054 "guestfs_list_devices> are never changed."
2055 msgstr ""
2056
2057 # type: textblock
2058 #: ../src/guestfs.pod:1008
2059 msgid "Is the string a parameter which is a device or partition name?"
2060 msgstr ""
2061
2062 # type: textblock
2063 #: ../src/guestfs.pod:1012
2064 msgid "Does the string begin with C</dev/sd>?"
2065 msgstr ""
2066
2067 # type: textblock
2068 #: ../src/guestfs.pod:1016
2069 msgid ""
2070 "Does the named device exist? If so, we use that device.  However if I<not> "
2071 "then we continue with this algorithm."
2072 msgstr ""
2073
2074 # type: textblock
2075 #: ../src/guestfs.pod:1021
2076 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2077 msgstr ""
2078
2079 # type: textblock
2080 #: ../src/guestfs.pod:1023
2081 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2082 msgstr ""
2083
2084 # type: textblock
2085 #: ../src/guestfs.pod:1025
2086 msgid "If that named device exists, use it.  If not, continue."
2087 msgstr ""
2088
2089 # type: textblock
2090 #: ../src/guestfs.pod:1029
2091 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2092 msgstr ""
2093
2094 # type: textblock
2095 #: ../src/guestfs.pod:1031
2096 msgid "If that named device exists, use it.  If not, return an error."
2097 msgstr ""
2098
2099 # type: =head3
2100 #: ../src/guestfs.pod:1035
2101 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2102 msgstr ""
2103
2104 # type: textblock
2105 #: ../src/guestfs.pod:1037
2106 msgid ""
2107 "Although the standard naming scheme and automatic translation is useful for "
2108 "simple programs and guestfish scripts, for larger programs it is best not to "
2109 "rely on this mechanism."
2110 msgstr ""
2111
2112 # type: textblock
2113 #: ../src/guestfs.pod:1041
2114 msgid ""
2115 "Where possible for maximum future portability programs using libguestfs "
2116 "should use these future-proof techniques:"
2117 msgstr ""
2118
2119 # type: textblock
2120 #: ../src/guestfs.pod:1048
2121 msgid ""
2122 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2123 "device names, and then use those names directly."
2124 msgstr ""
2125
2126 # type: textblock
2127 #: ../src/guestfs.pod:1051
2128 msgid ""
2129 "Since those device names exist by definition, they will never be translated."
2130 msgstr ""
2131
2132 # type: textblock
2133 #: ../src/guestfs.pod:1056
2134 msgid ""
2135 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2136 "filesystem labels."
2137 msgstr ""
2138
2139 # type: =head1
2140 #: ../src/guestfs.pod:1061
2141 msgid "SECURITY"
2142 msgstr ""
2143
2144 # type: textblock
2145 #: ../src/guestfs.pod:1063
2146 msgid ""
2147 "This section discusses security implications of using libguestfs, "
2148 "particularly with untrusted or malicious guests or disk images."
2149 msgstr ""
2150
2151 # type: =head2
2152 #: ../src/guestfs.pod:1066
2153 msgid "GENERAL SECURITY CONSIDERATIONS"
2154 msgstr ""
2155
2156 # type: textblock
2157 #: ../src/guestfs.pod:1068
2158 msgid ""
2159 "Be careful with any files or data that you download from a guest (by "
2160 "\"download\" we mean not just the L</guestfs_download> command but any "
2161 "command that reads files, filenames, directories or anything else from a "
2162 "disk image).  An attacker could manipulate the data to fool your program "
2163 "into doing the wrong thing.  Consider cases such as:"
2164 msgstr ""
2165
2166 # type: textblock
2167 #: ../src/guestfs.pod:1078
2168 msgid "the data (file etc) not being present"
2169 msgstr ""
2170
2171 # type: textblock
2172 #: ../src/guestfs.pod:1082
2173 msgid "being present but empty"
2174 msgstr ""
2175
2176 # type: textblock
2177 #: ../src/guestfs.pod:1086
2178 msgid "being much larger than normal"
2179 msgstr ""
2180
2181 # type: textblock
2182 #: ../src/guestfs.pod:1090
2183 msgid "containing arbitrary 8 bit data"
2184 msgstr ""
2185
2186 # type: textblock
2187 #: ../src/guestfs.pod:1094
2188 msgid "being in an unexpected character encoding"
2189 msgstr ""
2190
2191 # type: textblock
2192 #: ../src/guestfs.pod:1098
2193 msgid "containing homoglyphs."
2194 msgstr ""
2195
2196 # type: =head2
2197 #: ../src/guestfs.pod:1102
2198 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2199 msgstr ""
2200
2201 # type: textblock
2202 #: ../src/guestfs.pod:1104
2203 msgid ""
2204 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2205 "(VFS) module can sometimes be escalated into exploits by deliberately "
2206 "creating a malicious, malformed filesystem.  These exploits are very severe "
2207 "for two reasons.  Firstly there are very many filesystem drivers in the "
2208 "kernel, and many of them are infrequently used and not much developer "
2209 "attention has been paid to the code.  Linux userspace helps potential "
2210 "crackers by detecting the filesystem type and automatically choosing the "
2211 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2212 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2213 "exploit (worse in some ways), giving immediate and total access to the "
2214 "system right down to the hardware level."
2215 msgstr ""
2216
2217 # type: textblock
2218 #: ../src/guestfs.pod:1117
2219 msgid ""
2220 "That explains why you should never mount a filesystem from an untrusted "
2221 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2222 "inside a qemu virtual machine, usually running as a non-root user.  The "
2223 "attacker would need to write a filesystem which first exploited the kernel, "
2224 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2225 "the libguestfs protocol, and finally to be as serious as the host kernel "
2226 "exploit it would need to escalate its privileges to root.  This multi-step "
2227 "escalation, performed by a static piece of data, is thought to be extremely "
2228 "hard to do, although we never say 'never' about security issues."
2229 msgstr ""
2230
2231 # type: textblock
2232 #: ../src/guestfs.pod:1128
2233 msgid ""
2234 "In any case callers can reduce the attack surface by forcing the filesystem "
2235 "type when mounting (use L</guestfs_mount_vfs>)."
2236 msgstr ""
2237
2238 # type: =head2
2239 #: ../src/guestfs.pod:1131
2240 msgid "PROTOCOL SECURITY"
2241 msgstr ""
2242
2243 # type: textblock
2244 #: ../src/guestfs.pod:1133
2245 msgid ""
2246 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2247 "defined upper message size.  However a program that uses libguestfs must "
2248 "also take care - for example you can write a program that downloads a binary "
2249 "from a disk image and executes it locally, and no amount of protocol "
2250 "security will save you from the consequences."
2251 msgstr ""
2252
2253 # type: =head2
2254 #: ../src/guestfs.pod:1139
2255 msgid "INSPECTION SECURITY"
2256 msgstr ""
2257
2258 # type: textblock
2259 #: ../src/guestfs.pod:1141
2260 msgid ""
2261 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2262 "directly from the guest, and these could contain any 8 bit data.  Callers "
2263 "should be careful to escape these before printing them to a structured file "
2264 "(for example, use HTML escaping if creating a web page)."
2265 msgstr ""
2266
2267 # type: textblock
2268 #: ../src/guestfs.pod:1147
2269 msgid ""
2270 "Guest configuration may be altered in unusual ways by the administrator of "
2271 "the virtual machine, and may not reflect reality (particularly for untrusted "
2272 "or actively malicious guests).  For example we parse the hostname from "
2273 "configuration files like C</etc/sysconfig/network> that we find in the "
2274 "guest, but the guest administrator can easily manipulate these files to "
2275 "provide the wrong hostname."
2276 msgstr ""
2277
2278 # type: textblock
2279 #: ../src/guestfs.pod:1155
2280 msgid ""
2281 "The inspection API parses guest configuration using two external libraries: "
2282 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2283 "designed to be robust in the face of malicious data, although denial of "
2284 "service attacks are still possible, for example with oversized configuration "
2285 "files."
2286 msgstr ""
2287
2288 # type: =head2
2289 #: ../src/guestfs.pod:1161
2290 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2291 msgstr ""
2292
2293 # type: textblock
2294 #: ../src/guestfs.pod:1163
2295 msgid ""
2296 "Be very cautious about running commands from the guest.  By running a "
2297 "command in the guest, you are giving CPU time to a binary that you do not "
2298 "control, under the same user account as the library, albeit wrapped in qemu "
2299 "virtualization.  More information and alternatives can be found in the "
2300 "section L</RUNNING COMMANDS>."
2301 msgstr ""
2302
2303 # type: =head2
2304 #: ../src/guestfs.pod:1169
2305 msgid "CVE-2010-3851"
2306 msgstr ""
2307
2308 # type: textblock
2309 #: ../src/guestfs.pod:1171
2310 msgid "https://bugzilla.redhat.com/642934"
2311 msgstr ""
2312
2313 # type: textblock
2314 #: ../src/guestfs.pod:1173
2315 msgid ""
2316 "This security bug concerns the automatic disk format detection that qemu "
2317 "does on disk images."
2318 msgstr ""
2319
2320 # type: textblock
2321 #: ../src/guestfs.pod:1176
2322 msgid ""
2323 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2324 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2325 "for one of the known headers, and if none is found then assuming the disk "
2326 "image must be raw."
2327 msgstr ""
2328
2329 # type: textblock
2330 #: ../src/guestfs.pod:1181
2331 msgid ""
2332 "This allows a guest which has been given a raw disk image to write some "
2333 "other header.  At next boot (or when the disk image is accessed by "
2334 "libguestfs) qemu would do autodetection and think the disk image format was, "
2335 "say, qcow2 based on the header written by the guest."
2336 msgstr ""
2337
2338 # type: textblock
2339 #: ../src/guestfs.pod:1186
2340 msgid ""
2341 "This in itself would not be a problem, but qcow2 offers many features, one "
2342 "of which is to allow a disk image to refer to another image (called the "
2343 "\"backing disk\").  It does this by placing the path to the backing disk "
2344 "into the qcow2 header.  This path is not validated and could point to any "
2345 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2346 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2347 "control of the attacker."
2348 msgstr ""
2349
2350 # type: textblock
2351 #: ../src/guestfs.pod:1194
2352 msgid ""
2353 "In libguestfs this is rather hard to exploit except under two circumstances:"
2354 msgstr ""
2355
2356 # type: textblock
2357 #: ../src/guestfs.pod:1201
2358 msgid "You have enabled the network or have opened the disk in write mode."
2359 msgstr ""
2360
2361 # type: textblock
2362 #: ../src/guestfs.pod:1205
2363 msgid ""
2364 "You are also running untrusted code from the guest (see L</RUNNING "
2365 "COMMANDS>)."
2366 msgstr ""
2367
2368 # type: textblock
2369 #: ../src/guestfs.pod:1210
2370 msgid ""
2371 "The way to avoid this is to specify the expected disk format when adding "
2372 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2373 "should always do this if the disk is raw format, and it's a good idea for "
2374 "other cases too."
2375 msgstr ""
2376
2377 # type: textblock
2378 #: ../src/guestfs.pod:1215
2379 msgid ""
2380 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2381 "format is fetched from libvirt and passed through."
2382 msgstr ""
2383
2384 # type: textblock
2385 #: ../src/guestfs.pod:1218
2386 msgid ""
2387 "For libguestfs tools, use the I<--format> command line parameter as "
2388 "appropriate."
2389 msgstr ""
2390
2391 # type: =head1
2392 #: ../src/guestfs.pod:1221
2393 msgid "CONNECTION MANAGEMENT"
2394 msgstr ""
2395
2396 # type: =head2
2397 #: ../src/guestfs.pod:1223
2398 msgid "guestfs_h *"
2399 msgstr ""
2400
2401 # type: textblock
2402 #: ../src/guestfs.pod:1225
2403 msgid ""
2404 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2405 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2406 "handle and release all resources used."
2407 msgstr ""
2408
2409 # type: textblock
2410 #: ../src/guestfs.pod:1229
2411 msgid ""
2412 "For information on using multiple handles and threads, see the section L</"
2413 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2414 msgstr ""
2415
2416 # type: =head2
2417 #: ../src/guestfs.pod:1232
2418 msgid "guestfs_create"
2419 msgstr ""
2420
2421 # type: verbatim
2422 #: ../src/guestfs.pod:1234
2423 #, no-wrap
2424 msgid ""
2425 " guestfs_h *guestfs_create (void);\n"
2426 "\n"
2427 msgstr ""
2428
2429 # type: textblock
2430 #: ../src/guestfs.pod:1236
2431 msgid "Create a connection handle."
2432 msgstr ""
2433
2434 # type: textblock
2435 #: ../src/guestfs.pod:1238
2436 msgid ""
2437 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2438 "on the handle at least once."
2439 msgstr ""
2440
2441 # type: textblock
2442 #: ../src/guestfs.pod:1241
2443 msgid ""
2444 "This function returns a non-NULL pointer to a handle on success or NULL on "
2445 "error."
2446 msgstr ""
2447
2448 # type: textblock
2449 #: ../src/guestfs.pod:1244
2450 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2451 msgstr ""
2452
2453 # type: textblock
2454 #: ../src/guestfs.pod:1246
2455 msgid ""
2456 "You may also want to configure error handling for the handle.  See L</ERROR "
2457 "HANDLING> section below."
2458 msgstr ""
2459
2460 # type: =head2
2461 #: ../src/guestfs.pod:1249
2462 msgid "guestfs_close"
2463 msgstr ""
2464
2465 # type: verbatim
2466 #: ../src/guestfs.pod:1251
2467 #, no-wrap
2468 msgid ""
2469 " void guestfs_close (guestfs_h *g);\n"
2470 "\n"
2471 msgstr ""
2472
2473 # type: textblock
2474 #: ../src/guestfs.pod:1253
2475 msgid "This closes the connection handle and frees up all resources used."
2476 msgstr ""
2477
2478 # type: =head1
2479 #: ../src/guestfs.pod:1255
2480 msgid "ERROR HANDLING"
2481 msgstr ""
2482
2483 # type: textblock
2484 #: ../src/guestfs.pod:1257
2485 msgid ""
2486 "API functions can return errors.  For example, almost all functions that "
2487 "return C<int> will return C<-1> to indicate an error."
2488 msgstr ""
2489
2490 # type: textblock
2491 #: ../src/guestfs.pod:1260
2492 msgid ""
2493 "Additional information is available for errors: an error message string and "
2494 "optionally an error number (errno) if the thing that failed was a system "
2495 "call."
2496 msgstr ""
2497
2498 # type: textblock
2499 #: ../src/guestfs.pod:1264
2500 msgid ""
2501 "You can get at the additional information about the last error on the handle "
2502 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2503 "up an error handler with L</guestfs_set_error_handler>."
2504 msgstr ""
2505
2506 # type: textblock
2507 #: ../src/guestfs.pod:1269
2508 msgid ""
2509 "When the handle is created, a default error handler is installed which "
2510 "prints the error message string to C<stderr>.  For small short-running "
2511 "command line programs it is sufficient to do:"
2512 msgstr ""
2513
2514 # type: verbatim
2515 #: ../src/guestfs.pod:1273
2516 #, no-wrap
2517 msgid ""
2518 " if (guestfs_launch (g) == -1)\n"
2519 "   exit (EXIT_FAILURE);\n"
2520 "\n"
2521 msgstr ""
2522
2523 # type: textblock
2524 #: ../src/guestfs.pod:1276
2525 msgid ""
2526 "since the default error handler will ensure that an error message has been "
2527 "printed to C<stderr> before the program exits."
2528 msgstr ""
2529
2530 # type: textblock
2531 #: ../src/guestfs.pod:1279
2532 msgid ""
2533 "For other programs the caller will almost certainly want to install an "
2534 "alternate error handler or do error handling in-line like this:"
2535 msgstr ""
2536
2537 # type: verbatim
2538 #: ../src/guestfs.pod:1282
2539 #, no-wrap
2540 msgid ""
2541 " g = guestfs_create ();\n"
2542 " \n"
2543 msgstr ""
2544
2545 # type: verbatim
2546 #: ../src/guestfs.pod:1284
2547 #, no-wrap
2548 msgid ""
2549 " /* This disables the default behaviour of printing errors\n"
2550 "    on stderr. */\n"
2551 " guestfs_set_error_handler (g, NULL, NULL);\n"
2552 " \n"
2553 msgstr ""
2554
2555 # type: verbatim
2556 #: ../src/guestfs.pod:1288
2557 #, no-wrap
2558 msgid ""
2559 " if (guestfs_launch (g) == -1) {\n"
2560 "   /* Examine the error message and print it etc. */\n"
2561 "   char *msg = guestfs_last_error (g);\n"
2562 "   int errnum = guestfs_last_errno (g);\n"
2563 "   fprintf (stderr, \"%s\\n\", msg);\n"
2564 "   /* ... */\n"
2565 "  }\n"
2566 "\n"
2567 msgstr ""
2568
2569 # type: textblock
2570 #: ../src/guestfs.pod:1296
2571 msgid ""
2572 "Out of memory errors are handled differently.  The default action is to call "
2573 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2574 "guestfs_set_out_of_memory_handler>."
2575 msgstr ""
2576
2577 # type: textblock
2578 #: ../src/guestfs.pod:1300
2579 msgid ""
2580 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2581 "because there is no handle if this happens there is no way to get additional "
2582 "error information.  However L</guestfs_create> is supposed to be a "
2583 "lightweight operation which can only fail because of insufficient memory (it "
2584 "returns NULL in this case)."
2585 msgstr ""
2586
2587 # type: =head2
2588 #: ../src/guestfs.pod:1306
2589 msgid "guestfs_last_error"
2590 msgstr ""
2591
2592 # type: verbatim
2593 #: ../src/guestfs.pod:1308
2594 #, no-wrap
2595 msgid ""
2596 " const char *guestfs_last_error (guestfs_h *g);\n"
2597 "\n"
2598 msgstr ""
2599
2600 # type: textblock
2601 #: ../src/guestfs.pod:1310
2602 msgid ""
2603 "This returns the last error message that happened on C<g>.  If there has not "
2604 "been an error since the handle was created, then this returns C<NULL>."
2605 msgstr ""
2606
2607 # type: textblock
2608 #: ../src/guestfs.pod:1314
2609 msgid ""
2610 "The lifetime of the returned string is until the next error occurs, or L</"
2611 "guestfs_close> is called."
2612 msgstr ""
2613
2614 # type: =head2
2615 #: ../src/guestfs.pod:1317
2616 msgid "guestfs_last_errno"
2617 msgstr ""
2618
2619 # type: verbatim
2620 #: ../src/guestfs.pod:1319
2621 #, no-wrap
2622 msgid ""
2623 " int guestfs_last_errno (guestfs_h *g);\n"
2624 "\n"
2625 msgstr ""
2626
2627 # type: textblock
2628 #: ../src/guestfs.pod:1321
2629 msgid "This returns the last error number (errno) that happened on C<g>."
2630 msgstr ""
2631
2632 # type: textblock
2633 #: ../src/guestfs.pod:1323
2634 msgid "If successful, an errno integer not equal to zero is returned."
2635 msgstr ""
2636
2637 # type: textblock
2638 #: ../src/guestfs.pod:1325
2639 msgid ""
2640 "If no error, this returns 0.  This call can return 0 in three situations:"
2641 msgstr ""
2642
2643 # type: textblock
2644 #: ../src/guestfs.pod:1332
2645 msgid "There has not been any error on the handle."
2646 msgstr ""
2647
2648 # type: textblock
2649 #: ../src/guestfs.pod:1336
2650 msgid ""
2651 "There has been an error but the errno was meaningless.  This corresponds to "
2652 "the case where the error did not come from a failed system call, but for "
2653 "some other reason."
2654 msgstr ""
2655
2656 # type: textblock
2657 #: ../src/guestfs.pod:1342
2658 msgid ""
2659 "There was an error from a failed system call, but for some reason the errno "
2660 "was not captured and returned.  This usually indicates a bug in libguestfs."
2661 msgstr ""
2662
2663 # type: textblock
2664 #: ../src/guestfs.pod:1348
2665 msgid ""
2666 "Libguestfs tries to convert the errno from inside the applicance into a "
2667 "corresponding errno for the caller (not entirely trivial: the appliance "
2668 "might be running a completely different operating system from the library "
2669 "and error numbers are not standardized across Un*xen).  If this could not be "
2670 "done, then the error is translated to C<EINVAL>.  In practice this should "
2671 "only happen in very rare circumstances."
2672 msgstr ""
2673
2674 # type: =head2
2675 #: ../src/guestfs.pod:1356
2676 msgid "guestfs_set_error_handler"
2677 msgstr ""
2678
2679 # type: verbatim
2680 #: ../src/guestfs.pod:1358
2681 #, no-wrap
2682 msgid ""
2683 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2684 "                                           void *opaque,\n"
2685 "                                           const char *msg);\n"
2686 " void guestfs_set_error_handler (guestfs_h *g,\n"
2687 "                                 guestfs_error_handler_cb cb,\n"
2688 "                                 void *opaque);\n"
2689 "\n"
2690 msgstr ""
2691
2692 # type: textblock
2693 #: ../src/guestfs.pod:1365
2694 msgid ""
2695 "The callback C<cb> will be called if there is an error.  The parameters "
2696 "passed to the callback are an opaque data pointer and the error message "
2697 "string."
2698 msgstr ""
2699
2700 # type: textblock
2701 #: ../src/guestfs.pod:1369
2702 msgid ""
2703 "C<errno> is not passed to the callback.  To get that the callback must call "
2704 "L</guestfs_last_errno>."
2705 msgstr ""
2706
2707 # type: textblock
2708 #: ../src/guestfs.pod:1372
2709 msgid ""
2710 "Note that the message string C<msg> is freed as soon as the callback "
2711 "function returns, so if you want to stash it somewhere you must make your "
2712 "own copy."
2713 msgstr ""
2714
2715 # type: textblock
2716 #: ../src/guestfs.pod:1376
2717 msgid "The default handler prints messages on C<stderr>."
2718 msgstr ""
2719
2720 # type: textblock
2721 #: ../src/guestfs.pod:1378
2722 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2723 msgstr ""
2724
2725 # type: =head2
2726 #: ../src/guestfs.pod:1380
2727 msgid "guestfs_get_error_handler"
2728 msgstr ""
2729
2730 # type: verbatim
2731 #: ../src/guestfs.pod:1382
2732 #, no-wrap
2733 msgid ""
2734 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2735 "                                                     void **opaque_rtn);\n"
2736 "\n"
2737 msgstr ""
2738
2739 # type: textblock
2740 #: ../src/guestfs.pod:1385
2741 msgid "Returns the current error handler callback."
2742 msgstr ""
2743
2744 # type: =head2
2745 #: ../src/guestfs.pod:1387
2746 msgid "guestfs_set_out_of_memory_handler"
2747 msgstr ""
2748
2749 # type: verbatim
2750 #: ../src/guestfs.pod:1389
2751 #, no-wrap
2752 msgid ""
2753 " typedef void (*guestfs_abort_cb) (void);\n"
2754 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2755 "                                        guestfs_abort_cb);\n"
2756 "\n"
2757 msgstr ""
2758
2759 # type: textblock
2760 #: ../src/guestfs.pod:1393
2761 msgid ""
2762 "The callback C<cb> will be called if there is an out of memory situation.  "
2763 "I<Note this callback must not return>."
2764 msgstr ""
2765
2766 # type: textblock
2767 #: ../src/guestfs.pod:1396
2768 msgid "The default is to call L<abort(3)>."
2769 msgstr ""
2770
2771 # type: textblock
2772 #: ../src/guestfs.pod:1398
2773 msgid ""
2774 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2775 msgstr ""
2776
2777 # type: =head2
2778 #: ../src/guestfs.pod:1401
2779 msgid "guestfs_get_out_of_memory_handler"
2780 msgstr ""
2781
2782 # type: verbatim
2783 #: ../src/guestfs.pod:1403
2784 #, no-wrap
2785 msgid ""
2786 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2787 "\n"
2788 msgstr ""
2789
2790 # type: textblock
2791 #: ../src/guestfs.pod:1405
2792 msgid "This returns the current out of memory handler."
2793 msgstr ""
2794
2795 # type: =head1
2796 #: ../src/guestfs.pod:1407
2797 msgid "API CALLS"
2798 msgstr ""
2799
2800 # type: textblock
2801 #: ../src/guestfs.pod:1409 ../fish/guestfish.pod:958
2802 msgid "@ACTIONS@"
2803 msgstr ""
2804
2805 # type: =head1
2806 #: ../src/guestfs.pod:1411
2807 msgid "STRUCTURES"
2808 msgstr ""
2809
2810 # type: textblock
2811 #: ../src/guestfs.pod:1413
2812 msgid "@STRUCTS@"
2813 msgstr ""
2814
2815 # type: =head1
2816 #: ../src/guestfs.pod:1415
2817 msgid "AVAILABILITY"
2818 msgstr ""
2819
2820 # type: =head2
2821 #: ../src/guestfs.pod:1417
2822 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2823 msgstr ""
2824
2825 # type: textblock
2826 #: ../src/guestfs.pod:1419
2827 msgid ""
2828 "Using L</guestfs_available> you can test availability of the following "
2829 "groups of functions.  This test queries the appliance to see if the "
2830 "appliance you are currently using supports the functionality."
2831 msgstr ""
2832
2833 # type: textblock
2834 #: ../src/guestfs.pod:1424
2835 msgid "@AVAILABILITY@"
2836 msgstr ""
2837
2838 # type: =head2
2839 #: ../src/guestfs.pod:1426
2840 msgid "GUESTFISH supported COMMAND"
2841 msgstr ""
2842
2843 # type: textblock
2844 #: ../src/guestfs.pod:1428
2845 msgid ""
2846 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2847 "prints out the available groups and whether they are supported by this build "
2848 "of libguestfs.  Note however that you have to do C<run> first."
2849 msgstr ""
2850
2851 # type: =head2
2852 #: ../src/guestfs.pod:1433
2853 msgid "SINGLE CALLS AT COMPILE TIME"
2854 msgstr ""
2855
2856 # type: textblock
2857 #: ../src/guestfs.pod:1435
2858 msgid ""
2859 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2860 "function, such as:"
2861 msgstr ""
2862
2863 # type: verbatim
2864 #: ../src/guestfs.pod:1438
2865 #, no-wrap
2866 msgid ""
2867 " #define LIBGUESTFS_HAVE_DD 1\n"
2868 "\n"
2869 msgstr ""
2870
2871 # type: textblock
2872 #: ../src/guestfs.pod:1440
2873 msgid "if L</guestfs_dd> is available."
2874 msgstr ""
2875
2876 # type: textblock
2877 #: ../src/guestfs.pod:1442
2878 msgid ""
2879 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2880 "function is available at compile time, we recommended using build tools such "
2881 "as autoconf or cmake.  For example in autotools you could use:"
2882 msgstr ""
2883
2884 # type: verbatim
2885 #: ../src/guestfs.pod:1447
2886 #, no-wrap
2887 msgid ""
2888 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2889 " AC_CHECK_FUNCS([guestfs_dd])\n"
2890 "\n"
2891 msgstr ""
2892
2893 # type: textblock
2894 #: ../src/guestfs.pod:1450
2895 msgid ""
2896 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2897 "in your program."
2898 msgstr ""
2899
2900 # type: =head2
2901 #: ../src/guestfs.pod:1453
2902 msgid "SINGLE CALLS AT RUN TIME"
2903 msgstr ""
2904
2905 # type: textblock
2906 #: ../src/guestfs.pod:1455
2907 msgid ""
2908 "Testing at compile time doesn't guarantee that a function really exists in "
2909 "the library.  The reason is that you might be dynamically linked against a "
2910 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2911 "This situation unfortunately results in a segmentation fault, which is a "
2912 "shortcoming of the C dynamic linking system itself."
2913 msgstr ""
2914
2915 # type: textblock
2916 #: ../src/guestfs.pod:1462
2917 msgid ""
2918 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2919 "in this example program (note that you still need the compile time check as "
2920 "well):"
2921 msgstr ""
2922
2923 # type: verbatim
2924 #: ../src/guestfs.pod:1466
2925 #, no-wrap
2926 msgid ""
2927 " #include <stdio.h>\n"
2928 " #include <stdlib.h>\n"
2929 " #include <unistd.h>\n"
2930 " #include <dlfcn.h>\n"
2931 " #include <guestfs.h>\n"
2932 " \n"
2933 msgstr ""
2934
2935 # type: verbatim
2936 #: ../src/guestfs.pod:1472
2937 #, no-wrap
2938 msgid ""
2939 " main ()\n"
2940 " {\n"
2941 " #ifdef LIBGUESTFS_HAVE_DD\n"
2942 "   void *dl;\n"
2943 "   int has_function;\n"
2944 " \n"
2945 msgstr ""
2946
2947 # type: verbatim
2948 #: ../src/guestfs.pod:1478
2949 #, no-wrap
2950 msgid ""
2951 "   /* Test if the function guestfs_dd is really available. */\n"
2952 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2953 "   if (!dl) {\n"
2954 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2955 "     exit (EXIT_FAILURE);\n"
2956 "   }\n"
2957 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2958 "   dlclose (dl);\n"
2959 " \n"
2960 msgstr ""
2961
2962 # type: verbatim
2963 #: ../src/guestfs.pod:1487
2964 #, no-wrap
2965 msgid ""
2966 "   if (!has_function)\n"
2967 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2968 "   else {\n"
2969 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2970 "     /* Now it's safe to call\n"
2971 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2972 "     */\n"
2973 "   }\n"
2974 " #else\n"
2975 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2976 " #endif\n"
2977 "  }\n"
2978 "\n"
2979 msgstr ""
2980
2981 # type: textblock
2982 #: ../src/guestfs.pod:1500
2983 msgid ""
2984 "You may think the above is an awful lot of hassle, and it is.  There are "
2985 "other ways outside of the C linking system to ensure that this kind of "
2986 "incompatibility never arises, such as using package versioning:"
2987 msgstr ""
2988
2989 # type: verbatim
2990 #: ../src/guestfs.pod:1505
2991 #, no-wrap
2992 msgid ""
2993 " Requires: libguestfs >= 1.0.80\n"
2994 "\n"
2995 msgstr ""
2996
2997 # type: =head1
2998 #: ../src/guestfs.pod:1507
2999 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3000 msgstr ""
3001
3002 # type: textblock
3003 #: ../src/guestfs.pod:1509
3004 msgid ""
3005 "A recent feature of the API is the introduction of calls which take optional "
3006 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3007 "takes variable arguments (ie. C<...>), as in this example:"
3008 msgstr ""
3009
3010 # type: verbatim
3011 #: ../src/guestfs.pod:1514
3012 #, no-wrap
3013 msgid ""
3014 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3015 "\n"
3016 msgstr ""
3017
3018 # type: textblock
3019 #: ../src/guestfs.pod:1516
3020 msgid ""
3021 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3022 "call with no optional arguments specified:"
3023 msgstr ""
3024
3025 # type: verbatim
3026 #: ../src/guestfs.pod:1519
3027 #, no-wrap
3028 msgid ""
3029 " guestfs_add_drive_opts (g, filename, -1);\n"
3030 "\n"
3031 msgstr ""
3032
3033 # type: textblock
3034 #: ../src/guestfs.pod:1521
3035 msgid "With a single optional argument:"
3036 msgstr ""
3037
3038 # type: verbatim
3039 #: ../src/guestfs.pod:1523
3040 #, no-wrap
3041 msgid ""
3042 " guestfs_add_drive_opts (g, filename,\n"
3043 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3044 "                         -1);\n"
3045 "\n"
3046 msgstr ""
3047
3048 # type: textblock
3049 #: ../src/guestfs.pod:1527
3050 msgid "With two:"
3051 msgstr ""
3052
3053 # type: verbatim
3054 #: ../src/guestfs.pod:1529
3055 #, no-wrap
3056 msgid ""
3057 " guestfs_add_drive_opts (g, filename,\n"
3058 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3059 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3060 "                         -1);\n"
3061 "\n"
3062 msgstr ""
3063
3064 # type: textblock
3065 #: ../src/guestfs.pod:1534
3066 msgid ""
3067 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3068 "happen!"
3069 msgstr ""
3070
3071 # type: =head2
3072 #: ../src/guestfs.pod:1537
3073 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3074 msgstr ""
3075
3076 # type: textblock
3077 #: ../src/guestfs.pod:1539
3078 msgid ""
3079 "The second variant has the same name with the suffix C<_va>, which works the "
3080 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3081 "example function, this is declared:"
3082 msgstr ""
3083
3084 # type: verbatim
3085 #: ../src/guestfs.pod:1543
3086 #, no-wrap
3087 msgid ""
3088 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3089 "                                va_list args);\n"
3090 "\n"
3091 msgstr ""
3092
3093 # type: =head2
3094 #: ../src/guestfs.pod:1546
3095 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3096 msgstr ""
3097
3098 # type: textblock
3099 #: ../src/guestfs.pod:1548
3100 msgid ""
3101 "The third variant is useful where you need to construct these calls.  You "
3102 "pass in a structure where you fill in the optional fields.  The structure "
3103 "has a bitmask as the first element which you must set to indicate which "
3104 "fields you have filled in.  For our example function the structure and call "
3105 "are declared:"
3106 msgstr ""
3107
3108 # type: verbatim
3109 #: ../src/guestfs.pod:1554
3110 #, no-wrap
3111 msgid ""
3112 " struct guestfs_add_drive_opts_argv {\n"
3113 "   uint64_t bitmask;\n"
3114 "   int readonly;\n"
3115 "   const char *format;\n"
3116 "   /* ... */\n"
3117 " };\n"
3118 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3119 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3120 "\n"
3121 msgstr ""
3122
3123 # type: textblock
3124 #: ../src/guestfs.pod:1563
3125 msgid "You could call it like this:"
3126 msgstr ""
3127
3128 # type: verbatim
3129 #: ../src/guestfs.pod:1565
3130 #, no-wrap
3131 msgid ""
3132 " struct guestfs_add_drive_opts_argv optargs = {\n"
3133 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3134 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3135 "   .readonly = 1,\n"
3136 "   .format = \"qcow2\"\n"
3137 " };\n"
3138 " \n"
3139 msgstr ""
3140
3141 # type: verbatim
3142 #: ../src/guestfs.pod:1572
3143 #, no-wrap
3144 msgid ""
3145 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3146 "\n"
3147 msgstr ""
3148
3149 # type: textblock
3150 #: ../src/guestfs.pod:1574 ../src/guestfs-actions.pod:11
3151 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:9
3152 #: ../fish/guestfish-actions.pod:1255 ../tools/virt-win-reg.pl:532
3153 msgid "Notes:"
3154 msgstr ""
3155
3156 # type: textblock
3157 #: ../src/guestfs.pod:1580
3158 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3159 msgstr ""
3160
3161 # type: textblock
3162 #: ../src/guestfs.pod:1585
3163 msgid "You do not need to fill in all fields of the structure."
3164 msgstr ""
3165
3166 # type: textblock
3167 #: ../src/guestfs.pod:1589
3168 msgid ""
3169 "There must be a one-to-one correspondence between fields of the structure "
3170 "that are filled in, and bits set in the bitmask."
3171 msgstr ""
3172
3173 # type: =head2
3174 #: ../src/guestfs.pod:1594
3175 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3176 msgstr ""
3177
3178 # type: textblock
3179 #: ../src/guestfs.pod:1596
3180 msgid ""
3181 "In other languages, optional arguments are expressed in the way that is "
3182 "natural for that language.  We refer you to the language-specific "
3183 "documentation for more details on that."
3184 msgstr ""
3185
3186 # type: textblock
3187 #: ../src/guestfs.pod:1600
3188 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3189 msgstr ""
3190
3191 # type: =head2
3192 #: ../src/guestfs.pod:1602
3193 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3194 msgstr ""
3195
3196 # type: textblock
3197 #: ../src/guestfs.pod:1604
3198 msgid ""
3199 "The child process generates events in some situations.  Current events "
3200 "include: receiving a log message, the child process exits."
3201 msgstr ""
3202
3203 # type: textblock
3204 #: ../src/guestfs.pod:1607
3205 msgid ""
3206 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3207 "types of events."
3208 msgstr ""
3209
3210 # type: textblock
3211 #: ../src/guestfs.pod:1610
3212 msgid ""
3213 "Only I<one callback of each type> can be registered for each handle.  "
3214 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3215 "that type.  Cancel all callbacks of this type by calling this function with "
3216 "C<cb> set to C<NULL>."
3217 msgstr ""
3218
3219 # type: =head2
3220 #: ../src/guestfs.pod:1615
3221 msgid "guestfs_set_log_message_callback"
3222 msgstr ""
3223
3224 # type: verbatim
3225 #: ../src/guestfs.pod:1617
3226 #, no-wrap
3227 msgid ""
3228 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3229 "                                         char *buf, int len);\n"
3230 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3231 "                                        guestfs_log_message_cb cb,\n"
3232 "                                        void *opaque);\n"
3233 "\n"
3234 msgstr ""
3235
3236 # type: textblock
3237 #: ../src/guestfs.pod:1623
3238 msgid ""
3239 "The callback function C<cb> will be called whenever qemu or the guest writes "
3240 "anything to the console."
3241 msgstr ""
3242
3243 # type: textblock
3244 #: ../src/guestfs.pod:1626
3245 msgid "Use this function to capture kernel messages and similar."
3246 msgstr ""
3247
3248 # type: textblock
3249 #: ../src/guestfs.pod:1628
3250 msgid ""
3251 "Normally there is no log message handler, and log messages are just "
3252 "discarded."
3253 msgstr ""
3254
3255 # type: =head2
3256 #: ../src/guestfs.pod:1631
3257 msgid "guestfs_set_subprocess_quit_callback"
3258 msgstr ""
3259
3260 # type: verbatim
3261 #: ../src/guestfs.pod:1633
3262 #, no-wrap
3263 msgid ""
3264 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3265 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3266 "                                            guestfs_subprocess_quit_cb cb,\n"
3267 "                                            void *opaque);\n"
3268 "\n"
3269 msgstr ""
3270
3271 # type: textblock
3272 #: ../src/guestfs.pod:1638
3273 msgid ""
3274 "The callback function C<cb> will be called when the child process quits, "
3275 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3276 "corresponds to a transition from any state to the CONFIG state)."
3277 msgstr ""
3278
3279 # type: =head2
3280 #: ../src/guestfs.pod:1643
3281 msgid "guestfs_set_launch_done_callback"
3282 msgstr ""
3283
3284 # type: verbatim
3285 #: ../src/guestfs.pod:1645
3286 #, no-wrap
3287 msgid ""
3288 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3289 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3290 "                                        guestfs_launch_done_cb cb,\n"
3291 "                                        void *opaque);\n"
3292 "\n"
3293 msgstr ""
3294
3295 # type: textblock
3296 #: ../src/guestfs.pod:1650
3297 msgid ""
3298 "The callback function C<cb> will be called when the child process becomes "
3299 "ready first time after it has been launched.  (This corresponds to a "
3300 "transition from LAUNCHING to the READY state)."
3301 msgstr ""
3302
3303 # type: =head2
3304 #: ../src/guestfs.pod:1654
3305 msgid "guestfs_set_close_callback"
3306 msgstr ""
3307
3308 # type: verbatim
3309 #: ../src/guestfs.pod:1656
3310 #, no-wrap
3311 msgid ""
3312 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3313 " void guestfs_set_close_callback (guestfs_h *g,\n"
3314 "                                  guestfs_close_cb cb,\n"
3315 "                                  void *opaque);\n"
3316 "\n"
3317 msgstr ""
3318
3319 # type: textblock
3320 #: ../src/guestfs.pod:1661
3321 msgid ""
3322 "The callback function C<cb> will be called while the handle is being closed "
3323 "(synchronously from L</guestfs_close>)."
3324 msgstr ""
3325
3326 # type: textblock
3327 #: ../src/guestfs.pod:1664
3328 msgid ""
3329 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3330 "handles that are open when the program exits.  This means that this callback "
3331 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3332 "problems in higher-level languages (eg. if your HLL interpreter has already "
3333 "been cleaned up by the time this is called, and if your callback then jumps "
3334 "into some HLL function)."
3335 msgstr ""
3336
3337 # type: =head2
3338 #: ../src/guestfs.pod:1672
3339 msgid "guestfs_set_progress_callback"
3340 msgstr ""
3341
3342 # type: verbatim
3343 #: ../src/guestfs.pod:1674
3344 #, no-wrap
3345 msgid ""
3346 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3347 "                                      int proc_nr, int serial,\n"
3348 "                                      uint64_t position, uint64_t total);\n"
3349 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3350 "                                     guestfs_progress_cb cb,\n"
3351 "                                     void *opaque);\n"
3352 "\n"
3353 msgstr ""
3354
3355 # type: textblock
3356 #: ../src/guestfs.pod:1681
3357 msgid ""
3358 "Some long-running operations can generate progress messages.  If this "
3359 "callback is registered, then it will be called each time a progress message "
3360 "is generated (usually two seconds after the operation started, and three "
3361 "times per second thereafter until it completes, although the frequency may "
3362 "change in future versions)."
3363 msgstr ""
3364
3365 # type: textblock
3366 #: ../src/guestfs.pod:1687
3367 msgid ""
3368 "The callback receives two numbers: C<position> and C<total>.  The units of "
3369 "C<total> are not defined, although for some operations C<total> may relate "
3370 "in some way to the amount of data to be transferred (eg. in bytes or "
3371 "megabytes), and C<position> may be the portion which has been transferred."
3372 msgstr ""
3373
3374 # type: textblock
3375 #: ../src/guestfs.pod:1693
3376 msgid "The only defined and stable parts of the API are:"
3377 msgstr ""
3378
3379 # type: textblock
3380 #: ../src/guestfs.pod:1699
3381 msgid ""
3382 "The callback can display to the user some type of progress bar or indicator "
3383 "which shows the ratio of C<position>:C<total>."
3384 msgstr ""
3385
3386 # type: textblock
3387 #: ../src/guestfs.pod:1704
3388 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3389 msgstr ""
3390
3391 # type: textblock
3392 #: ../src/guestfs.pod:1708
3393 msgid ""
3394 "If any progress notification is sent during a call, then a final progress "
3395 "notification is always sent when C<position> = C<total>."
3396 msgstr ""
3397
3398 # type: textblock
3399 #: ../src/guestfs.pod:1711
3400 msgid ""
3401 "This is to simplify caller code, so callers can easily set the progress "
3402 "indicator to \"100%\" at the end of the operation, without requiring special "
3403 "code to detect this case."
3404 msgstr ""
3405
3406 # type: textblock
3407 #: ../src/guestfs.pod:1717
3408 msgid ""
3409 "The callback also receives the procedure number and serial number of the "
3410 "call.  These are only useful for debugging protocol issues, and the callback "
3411 "can normally ignore them.  The callback may want to print these numbers in "
3412 "error messages or debugging messages."
3413 msgstr ""
3414
3415 # type: =head1
3416 #: ../src/guestfs.pod:1722
3417 msgid "PRIVATE DATA AREA"
3418 msgstr ""
3419
3420 # type: textblock
3421 #: ../src/guestfs.pod:1724
3422 msgid ""
3423 "You can attach named pieces of private data to the libguestfs handle, and "
3424 "fetch them by name for the lifetime of the handle.  This is called the "
3425 "private data area and is only available from the C API."
3426 msgstr ""
3427
3428 # type: textblock
3429 #: ../src/guestfs.pod:1728
3430 msgid "To attach a named piece of data, use the following call:"
3431 msgstr ""
3432
3433 # type: verbatim
3434 #: ../src/guestfs.pod:1730
3435 #, no-wrap
3436 msgid ""
3437 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3438 "\n"
3439 msgstr ""
3440
3441 # type: textblock
3442 #: ../src/guestfs.pod:1732
3443 msgid ""
3444 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3445 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3446 "overwritten."
3447 msgstr ""
3448
3449 # type: textblock
3450 #: ../src/guestfs.pod:1736
3451 msgid ""
3452 "You can use any C<key> you want, but names beginning with an underscore "
3453 "character are reserved for internal libguestfs purposes (for implementing "
3454 "language bindings).  It is recommended to prefix the name with some unique "
3455 "string to avoid collisions with other users."
3456 msgstr ""
3457
3458 # type: textblock
3459 #: ../src/guestfs.pod:1741
3460 msgid "To retrieve the pointer, use:"
3461 msgstr ""
3462
3463 # type: verbatim
3464 #: ../src/guestfs.pod:1743
3465 #, no-wrap
3466 msgid ""
3467 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3468 "\n"
3469 msgstr ""
3470
3471 # type: textblock
3472 #: ../src/guestfs.pod:1745
3473 msgid ""
3474 "This function returns C<NULL> if either no data is found associated with "
3475 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3476 "C<NULL>."
3477 msgstr ""
3478
3479 # type: textblock
3480 #: ../src/guestfs.pod:1749
3481 msgid ""
3482 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3483 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3484 "all.  In particular, libguestfs does I<not> try to free the data when the "
3485 "handle is closed.  If the data must be freed, then the caller must either "
3486 "free it before calling L</guestfs_close> or must set up a close callback to "
3487 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3488 "can be registered for a handle)."
3489 msgstr ""
3490
3491 # type: textblock
3492 #: ../src/guestfs.pod:1757
3493 msgid ""
3494 "The private data area is implemented using a hash table, and should be "
3495 "reasonably efficient for moderate numbers of keys."
3496 msgstr ""
3497
3498 # type: =end
3499 #: ../src/guestfs.pod:1760 ../src/guestfs.pod:1765
3500 msgid "html"
3501 msgstr ""
3502
3503 # type: textblock
3504 #: ../src/guestfs.pod:1762
3505 msgid ""
3506 "<!-- old anchor for the next section --> <a name="
3507 "\"state_machine_and_low_level_event_api\"/>"
3508 msgstr ""
3509
3510 # type: =head1
3511 #: ../src/guestfs.pod:1767
3512 msgid "ARCHITECTURE"
3513 msgstr ""
3514
3515 # type: textblock
3516 #: ../src/guestfs.pod:1769
3517 msgid ""
3518 "Internally, libguestfs is implemented by running an appliance (a special "
3519 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3520 "process of the main program."
3521 msgstr ""
3522
3523 # type: verbatim
3524 #: ../src/guestfs.pod:1773
3525 #, no-wrap
3526 msgid ""
3527 "  ___________________\n"
3528 " /                   \\\n"
3529 " | main program      |\n"
3530 " |                   |\n"
3531 " |                   |           child process / appliance\n"
3532 " |                   |           __________________________\n"
3533 " |                   |          / qemu                     \\\n"
3534 " +-------------------+   RPC    |      +-----------------+ |\n"
3535 " | libguestfs     <--------------------> guestfsd        | |\n"
3536 " |                   |          |      +-----------------+ |\n"
3537 " \\___________________/          |      | Linux kernel    | |\n"
3538 "                                |      +--^--------------+ |\n"
3539 "                                \\_________|________________/\n"
3540 "                                          |\n"
3541 "                                   _______v______\n"
3542 "                                  /              \\\n"
3543 "                                  | Device or    |\n"
3544 "                                  | disk image   |\n"
3545 "                                  \\______________/\n"
3546 "\n"
3547 msgstr ""
3548
3549 # type: textblock
3550 #: ../src/guestfs.pod:1793
3551 msgid ""
3552 "The library, linked to the main program, creates the child process and hence "
3553 "the appliance in the L</guestfs_launch> function."
3554 msgstr ""
3555
3556 # type: textblock
3557 #: ../src/guestfs.pod:1796
3558 msgid ""
3559 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3560 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3561 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3562 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3563 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3564 "attached to the qemu process which translates device access by the "
3565 "appliance's Linux kernel into accesses to the image."
3566 msgstr ""
3567
3568 # type: textblock
3569 #: ../src/guestfs.pod:1805
3570 msgid ""
3571 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3572 "Although the disk image you are attached to might also be used by some "
3573 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3574 "care if both libguestfs's qemu process and your virtual machine are trying "
3575 "to update the disk image at the same time, since these usually results in "
3576 "massive disk corruption)."
3577 msgstr ""
3578
3579 # type: =head1
3580 #: ../src/guestfs.pod:1812
3581 msgid "STATE MACHINE"
3582 msgstr ""
3583
3584 # type: textblock
3585 #: ../src/guestfs.pod:1814
3586 msgid "libguestfs uses a state machine to model the child process:"
3587 msgstr ""
3588
3589 # type: verbatim
3590 #: ../src/guestfs.pod:1816
3591 #, no-wrap
3592 msgid ""
3593 "                         |\n"
3594 "                    guestfs_create\n"
3595 "                         |\n"
3596 "                         |\n"
3597 "                     ____V_____\n"
3598 "                    /          \\\n"
3599 "                    |  CONFIG  |\n"
3600 "                    \\__________/\n"
3601 "                     ^ ^   ^  \\\n"
3602 "                    /  |    \\  \\ guestfs_launch\n"
3603 "                   /   |    _\\__V______\n"
3604 "                  /    |   /           \\\n"
3605 "                 /     |   | LAUNCHING |\n"
3606 "                /      |   \\___________/\n"
3607 "               /       |       /\n"
3608 "              /        |  guestfs_launch\n"
3609 "             /         |     /\n"
3610 "    ______  /        __|____V\n"
3611 "   /      \\ ------> /        \\\n"
3612 "   | BUSY |         | READY  |\n"
3613 "   \\______/ <------ \\________/\n"
3614 "\n"
3615 msgstr ""
3616
3617 # type: textblock
3618 #: ../src/guestfs.pod:1838
3619 msgid ""
3620 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3621 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3622 "(3) alternating between READY and BUSY as commands are issued to, and "
3623 "carried out by, the child process."
3624 msgstr ""
3625
3626 # type: textblock
3627 #: ../src/guestfs.pod:1843
3628 msgid ""
3629 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3630 "asynchronously at any time (eg. due to some internal error), and that causes "
3631 "the state to transition back to CONFIG."
3632 msgstr ""
3633
3634 # type: textblock
3635 #: ../src/guestfs.pod:1847
3636 msgid ""
3637 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3638 "issued when in the CONFIG state."
3639 msgstr ""
3640
3641 # type: textblock
3642 #: ../src/guestfs.pod:1850
3643 msgid ""
3644 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3645 "L</guestfs_launch> blocks until the child process is READY to accept "
3646 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3647 "moves the state from CONFIG to LAUNCHING while it is running."
3648 msgstr ""
3649
3650 # type: textblock
3651 #: ../src/guestfs.pod:1856
3652 msgid ""
3653 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3654 "state.  These API calls block waiting for the command to be carried out (ie. "
3655 "the state to transition to BUSY and then back to READY).  There are no non-"
3656 "blocking versions, and no way to issue more than one command per handle at "
3657 "the same time."
3658 msgstr ""
3659
3660 # type: textblock
3661 #: ../src/guestfs.pod:1862
3662 msgid ""
3663 "Finally, the child process sends asynchronous messages back to the main "
3664 "program, such as kernel log messages.  You can register a callback to "
3665 "receive these messages."
3666 msgstr ""
3667
3668 # type: =head1
3669 #: ../src/guestfs.pod:1866
3670 msgid "INTERNALS"
3671 msgstr ""
3672
3673 # type: =head2
3674 #: ../src/guestfs.pod:1868
3675 msgid "COMMUNICATION PROTOCOL"
3676 msgstr ""
3677
3678 # type: textblock
3679 #: ../src/guestfs.pod:1870
3680 msgid ""
3681 "Don't rely on using this protocol directly.  This section documents how it "
3682 "currently works, but it may change at any time."
3683 msgstr ""
3684
3685 # type: textblock
3686 #: ../src/guestfs.pod:1873
3687 msgid ""
3688 "The protocol used to talk between the library and the daemon running inside "
3689 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3690 "1014, RFC 1832, RFC 4506)."
3691 msgstr ""
3692
3693 # type: textblock
3694 #: ../src/guestfs.pod:1877
3695 msgid ""
3696 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3697 "this file is automatically generated)."
3698 msgstr ""
3699
3700 # type: textblock
3701 #: ../src/guestfs.pod:1880
3702 msgid ""
3703 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3704 "and C<FileOut> parameters, which are handled with very simple request/reply "
3705 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3706 "parameters, which use the same request and reply messages, but they may also "
3707 "be followed by files sent using a chunked encoding."
3708 msgstr ""
3709
3710 # type: =head3
3711 #: ../src/guestfs.pod:1887
3712 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3713 msgstr ""
3714
3715 # type: textblock
3716 #: ../src/guestfs.pod:1889
3717 msgid "For ordinary functions, the request message is:"
3718 msgstr ""
3719
3720 # type: verbatim
3721 #: ../src/guestfs.pod:1891
3722 #, no-wrap
3723 msgid ""
3724 " total length (header + arguments,\n"
3725 "      but not including the length word itself)\n"
3726 " struct guestfs_message_header (encoded as XDR)\n"
3727 " struct guestfs_<foo>_args (encoded as XDR)\n"
3728 "\n"
3729 msgstr ""
3730
3731 # type: textblock
3732 #: ../src/guestfs.pod:1896
3733 msgid ""
3734 "The total length field allows the daemon to allocate a fixed size buffer "
3735 "into which it slurps the rest of the message.  As a result, the total length "
3736 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3737 "effective size of any request is limited to somewhere under this size."
3738 msgstr ""
3739
3740 # type: textblock
3741 #: ../src/guestfs.pod:1902
3742 msgid ""
3743 "Note also that many functions don't take any arguments, in which case the "
3744 "C<guestfs_I<foo>_args> is completely omitted."
3745 msgstr ""
3746
3747 # type: textblock
3748 #: ../src/guestfs.pod:1905
3749 msgid ""
3750 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3751 "receiver knows what type of args structure to expect, or none at all."
3752 msgstr ""
3753
3754 # type: textblock
3755 #: ../src/guestfs.pod:1909
3756 msgid ""
3757 "For functions that take optional arguments, the optional arguments are "
3758 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3759 "arguments.  A bitmask in the header indicates which optional arguments are "
3760 "meaningful.  The bitmask is also checked to see if it contains bits set "
3761 "which the daemon does not know about (eg. if more optional arguments were "
3762 "added in a later version of the library), and this causes the call to be "
3763 "rejected."
3764 msgstr ""
3765
3766 # type: textblock
3767 #: ../src/guestfs.pod:1917
3768 msgid "The reply message for ordinary functions is:"
3769 msgstr ""
3770
3771 # type: verbatim
3772 #: ../src/guestfs.pod:1919
3773 #, no-wrap
3774 msgid ""
3775 " total length (header + ret,\n"
3776 "      but not including the length word itself)\n"
3777 " struct guestfs_message_header (encoded as XDR)\n"
3778 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3779 "\n"
3780 msgstr ""
3781
3782 # type: textblock
3783 #: ../src/guestfs.pod:1924
3784 msgid ""
3785 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3786 "functions that return no formal return values."
3787 msgstr ""
3788
3789 # type: textblock
3790 #: ../src/guestfs.pod:1927
3791 msgid ""
3792 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3793 msgstr ""
3794
3795 # type: textblock
3796 #: ../src/guestfs.pod:1930
3797 msgid ""
3798 "In the case of an error, a flag is set in the header, and the reply message "
3799 "is slightly changed:"
3800 msgstr ""
3801
3802 # type: verbatim
3803 #: ../src/guestfs.pod:1933
3804 #, no-wrap
3805 msgid ""
3806 " total length (header + error,\n"
3807 "      but not including the length word itself)\n"
3808 " struct guestfs_message_header (encoded as XDR)\n"
3809 " struct guestfs_message_error (encoded as XDR)\n"
3810 "\n"
3811 msgstr ""
3812
3813 # type: textblock
3814 #: ../src/guestfs.pod:1938
3815 msgid ""
3816 "The C<guestfs_message_error> structure contains the error message as a "
3817 "string."
3818 msgstr ""
3819
3820 # type: =head3
3821 #: ../src/guestfs.pod:1941
3822 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3823 msgstr ""
3824
3825 # type: textblock
3826 #: ../src/guestfs.pod:1943
3827 msgid ""
3828 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3829 "The normal request message is sent (see above).  However this is followed by "
3830 "a sequence of file chunks."
3831 msgstr ""
3832
3833 # type: verbatim
3834 #: ../src/guestfs.pod:1947
3835 #, no-wrap
3836 msgid ""
3837 " total length (header + arguments,\n"
3838 "      but not including the length word itself,\n"
3839 "      and not including the chunks)\n"
3840 " struct guestfs_message_header (encoded as XDR)\n"
3841 " struct guestfs_<foo>_args (encoded as XDR)\n"
3842 " sequence of chunks for FileIn param #0\n"
3843 " sequence of chunks for FileIn param #1 etc.\n"
3844 "\n"
3845 msgstr ""
3846
3847 # type: textblock
3848 #: ../src/guestfs.pod:1955
3849 msgid "The \"sequence of chunks\" is:"
3850 msgstr ""
3851
3852 # type: verbatim
3853 #: ../src/guestfs.pod:1957
3854 #, no-wrap
3855 msgid ""
3856 " length of chunk (not including length word itself)\n"
3857 " struct guestfs_chunk (encoded as XDR)\n"
3858 " length of chunk\n"
3859 " struct guestfs_chunk (encoded as XDR)\n"
3860 "   ...\n"
3861 " length of chunk\n"
3862 " struct guestfs_chunk (with data.data_len == 0)\n"
3863 "\n"
3864 msgstr ""
3865
3866 # type: textblock
3867 #: ../src/guestfs.pod:1965
3868 msgid ""
3869 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3870 "is set in the final chunk to indicate either successful completion or early "
3871 "cancellation."
3872 msgstr ""
3873
3874 # type: textblock
3875 #: ../src/guestfs.pod:1969
3876 msgid ""
3877 "At time of writing there are no functions that have more than one FileIn "
3878 "parameter.  However this is (theoretically) supported, by sending the "
3879 "sequence of chunks for each FileIn parameter one after another (from left to "
3880 "right)."
3881 msgstr ""
3882
3883 # type: textblock
3884 #: ../src/guestfs.pod:1974
3885 msgid ""
3886 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3887 "transfer.  The library does this by sending a chunk with a special flag set "
3888 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3889 "RPC, does I<not> send any reply, and goes back to reading the next request."
3890 msgstr ""
3891
3892 # type: textblock
3893 #: ../src/guestfs.pod:1980
3894 msgid ""
3895 "The daemon may also cancel.  It does this by writing a special word "
3896 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3897 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3898 "cancel chunk).  The special word is chosen so that even if cancellation "
3899 "happens right at the end of the transfer (after the library has finished "
3900 "writing and has started listening for the reply), the \"spurious\" cancel "
3901 "flag will not be confused with the reply message."
3902 msgstr ""
3903
3904 # type: textblock
3905 #: ../src/guestfs.pod:1989
3906 msgid ""
3907 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3908 "limit), and also files where the size is not known in advance (eg. from "
3909 "pipes or sockets).  However the chunks are rather small "
3910 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3911 "to keep much in memory."
3912 msgstr ""
3913
3914 # type: =head3
3915 #: ../src/guestfs.pod:1995
3916 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3917 msgstr ""
3918
3919 # type: textblock
3920 #: ../src/guestfs.pod:1997
3921 msgid ""
3922 "The protocol for FileOut parameters is exactly the same as for FileIn "
3923 "parameters, but with the roles of daemon and library reversed."
3924 msgstr ""
3925
3926 # type: verbatim
3927 #: ../src/guestfs.pod:2000
3928 #, no-wrap
3929 msgid ""
3930 " total length (header + ret,\n"
3931 "      but not including the length word itself,\n"
3932 "      and not including the chunks)\n"
3933 " struct guestfs_message_header (encoded as XDR)\n"
3934 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3935 " sequence of chunks for FileOut param #0\n"
3936 " sequence of chunks for FileOut param #1 etc.\n"
3937 "\n"
3938 msgstr ""
3939
3940 # type: =head3
3941 #: ../src/guestfs.pod:2008
3942 msgid "INITIAL MESSAGE"
3943 msgstr ""
3944
3945 # type: textblock
3946 #: ../src/guestfs.pod:2010
3947 msgid ""
3948 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3949 "which indicates that the guest and daemon is alive.  This is what L</"
3950 "guestfs_launch> waits for."
3951 msgstr ""
3952
3953 # type: =head3
3954 #: ../src/guestfs.pod:2014
3955 msgid "PROGRESS NOTIFICATION MESSAGES"
3956 msgstr ""
3957
3958 # type: textblock
3959 #: ../src/guestfs.pod:2016
3960 msgid ""
3961 "The daemon may send progress notification messages at any time.  These are "
3962 "distinguished by the normal length word being replaced by "
3963 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3964 msgstr ""
3965
3966 # type: textblock
3967 #: ../src/guestfs.pod:2020
3968 msgid ""
3969 "The library turns them into progress callbacks (see "
3970 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3971 "discards them if not."
3972 msgstr ""
3973
3974 # type: textblock
3975 #: ../src/guestfs.pod:2024
3976 msgid ""
3977 "The daemon self-limits the frequency of progress messages it sends (see "
3978 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3979 "messages."
3980 msgstr ""
3981
3982 # type: =head1
3983 #: ../src/guestfs.pod:2028
3984 msgid "LIBGUESTFS VERSION NUMBERS"
3985 msgstr ""
3986
3987 # type: textblock
3988 #: ../src/guestfs.pod:2030
3989 msgid ""
3990 "Since April 2010, libguestfs has started to make separate development and "
3991 "stable releases, along with corresponding branches in our git repository.  "
3992 "These separate releases can be identified by version number:"
3993 msgstr ""
3994
3995 # type: verbatim
3996 #: ../src/guestfs.pod:2035
3997 #, no-wrap
3998 msgid ""
3999 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4000 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4001 "       |\n"
4002 "       v\n"
4003 " 1  .  3  .  5\n"
4004 " ^           ^\n"
4005 " |           |\n"
4006 " |           `-------- sub-version\n"
4007 " |\n"
4008 " `------ always '1' because we don't change the ABI\n"
4009 "\n"
4010 msgstr ""
4011
4012 # type: textblock
4013 #: ../src/guestfs.pod:2046
4014 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4015 msgstr ""
4016
4017 # type: textblock
4018 #: ../src/guestfs.pod:2048
4019 msgid ""
4020 "As time passes we cherry pick fixes from the development branch and backport "
4021 "those into the stable branch, the effect being that the stable branch should "
4022 "get more stable and less buggy over time.  So the stable releases are ideal "
4023 "for people who don't need new features but would just like the software to "
4024 "work."
4025 msgstr ""
4026
4027 # type: textblock
4028 #: ../src/guestfs.pod:2054
4029 msgid "Our criteria for backporting changes are:"
4030 msgstr ""
4031
4032 # type: textblock
4033 #: ../src/guestfs.pod:2060
4034 msgid ""
4035 "Documentation changes which don't affect any code are backported unless the "
4036 "documentation refers to a future feature which is not in stable."
4037 msgstr ""
4038
4039 # type: textblock
4040 #: ../src/guestfs.pod:2066
4041 msgid ""
4042 "Bug fixes which are not controversial, fix obvious problems, and have been "
4043 "well tested are backported."
4044 msgstr ""
4045
4046 # type: textblock
4047 #: ../src/guestfs.pod:2071
4048 msgid ""
4049 "Simple rearrangements of code which shouldn't affect how it works get "
4050 "backported.  This is so that the code in the two branches doesn't get too "
4051 "far out of step, allowing us to backport future fixes more easily."
4052 msgstr ""
4053
4054 # type: textblock
4055 #: ../src/guestfs.pod:2077
4056 msgid ""
4057 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4058 "exceptional case: the new feature is required in order to implement an "
4059 "important bug fix."
4060 msgstr ""
4061
4062 # type: textblock
4063 #: ../src/guestfs.pod:2083
4064 msgid ""
4065 "A new stable branch starts when we think the new features in development are "
4066 "substantial and compelling enough over the current stable branch to warrant "
4067 "it.  When that happens we create new stable and development versions 1.N.0 "
4068 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4069 "stable at this point, but by backporting fixes from development, that branch "
4070 "will stabilize over time."
4071 msgstr ""
4072
4073 # type: =head1
4074 #: ../src/guestfs.pod:2091 ../fish/guestfish.pod:965
4075 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
4076 msgid "ENVIRONMENT VARIABLES"
4077 msgstr ""
4078
4079 # type: =item
4080 #: ../src/guestfs.pod:2095 ../fish/guestfish.pod:991
4081 msgid "LIBGUESTFS_APPEND"
4082 msgstr ""
4083
4084 # type: textblock
4085 #: ../src/guestfs.pod:2097 ../fish/guestfish.pod:993
4086 msgid "Pass additional options to the guest kernel."
4087 msgstr ""
4088
4089 # type: =item
4090 #: ../src/guestfs.pod:2099 ../fish/guestfish.pod:995
4091 msgid "LIBGUESTFS_DEBUG"
4092 msgstr ""
4093
4094 # type: textblock
4095 #: ../src/guestfs.pod:2101
4096 msgid ""
4097 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
4098 "effect as calling C<guestfs_set_verbose (g, 1)>."
4099 msgstr ""
4100
4101 # type: =item
4102 #: ../src/guestfs.pod:2104 ../fish/guestfish.pod:1000
4103 msgid "LIBGUESTFS_MEMSIZE"
4104 msgstr ""
4105
4106 # type: textblock
4107 #: ../src/guestfs.pod:2106 ../fish/guestfish.pod:1002
4108 msgid ""
4109 "Set the memory allocated to the qemu process, in megabytes.  For example:"
4110 msgstr ""
4111
4112 # type: verbatim
4113 #: ../src/guestfs.pod:2109 ../fish/guestfish.pod:1005
4114 #, no-wrap
4115 msgid ""
4116 " LIBGUESTFS_MEMSIZE=700\n"
4117 "\n"
4118 msgstr ""
4119
4120 # type: =item
4121 #: ../src/guestfs.pod:2111 ../fish/guestfish.pod:1007
4122 msgid "LIBGUESTFS_PATH"
4123 msgstr ""
4124
4125 # type: textblock
4126 #: ../src/guestfs.pod:2113
4127 msgid ""
4128 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4129 "the discussion of paths in section PATH above."
4130 msgstr ""
4131
4132 # type: =item
4133 #: ../src/guestfs.pod:2116 ../fish/guestfish.pod:1012
4134 msgid "LIBGUESTFS_QEMU"
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs.pod:2118 ../fish/guestfish.pod:1014
4139 msgid ""
4140 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4141 "which was found at compile time by the configure script is used."
4142 msgstr ""
4143
4144 # type: textblock
4145 #: ../src/guestfs.pod:2122
4146 msgid "See also L</QEMU WRAPPERS> above."
4147 msgstr ""
4148
4149 # type: =item
4150 #: ../src/guestfs.pod:2124 ../fish/guestfish.pod:1018
4151 msgid "LIBGUESTFS_TRACE"
4152 msgstr ""
4153
4154 # type: textblock
4155 #: ../src/guestfs.pod:2126
4156 msgid ""
4157 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4158 "effect as calling C<guestfs_set_trace (g, 1)>."
4159 msgstr ""
4160
4161 # type: =item
4162 #: ../src/guestfs.pod:2129 ../fish/guestfish.pod:1027
4163 msgid "TMPDIR"
4164 msgstr ""
4165
4166 # type: textblock
4167 #: ../src/guestfs.pod:2131 ../fish/guestfish.pod:1029
4168 msgid "Location of temporary directory, defaults to C</tmp>."
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../src/guestfs.pod:2133 ../fish/guestfish.pod:1031
4173 msgid ""
4174 "If libguestfs was compiled to use the supermin appliance then the real "
4175 "appliance is cached in this directory, shared between all handles belonging "
4176 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4177 "use in case C</tmp> is not large enough."
4178 msgstr ""
4179
4180 # type: =head1
4181 #: ../src/guestfs.pod:2141 ../fish/guestfish.pod:1089
4182 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4183 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
4184 #: ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189
4185 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
4186 #: ../tools/virt-list-partitions.pl:257
4187 msgid "SEE ALSO"
4188 msgstr ""
4189
4190 # type: textblock
4191 #: ../src/guestfs.pod:2143
4192 msgid ""
4193 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
4194 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4195 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
4196 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
4197 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4198 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4199 msgstr ""
4200
4201 # type: textblock
4202 #: ../src/guestfs.pod:2166
4203 msgid ""
4204 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4205 "(8)>, L<disktype(1)>."
4206 msgstr ""
4207
4208 # type: =head1
4209 #: ../src/guestfs.pod:2173 ../tools/virt-win-reg.pl:587
4210 #: ../tools/virt-make-fs.pl:548
4211 msgid "BUGS"
4212 msgstr ""
4213
4214 # type: textblock
4215 #: ../src/guestfs.pod:2175
4216 msgid "To get a list of bugs against libguestfs use this link:"
4217 msgstr ""
4218
4219 # type: textblock
4220 #: ../src/guestfs.pod:2177
4221 msgid ""
4222 "L<https://bugzilla.redhat.com/buglist.cgi?"
4223 "component=libguestfs&product=Virtualization+Tools>"
4224 msgstr ""
4225
4226 # type: textblock
4227 #: ../src/guestfs.pod:2179
4228 msgid "To report a new bug against libguestfs use this link:"
4229 msgstr ""
4230
4231 # type: textblock
4232 #: ../src/guestfs.pod:2181
4233 msgid ""
4234 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4235 "component=libguestfs&product=Virtualization+Tools>"
4236 msgstr ""
4237
4238 # type: textblock
4239 #: ../src/guestfs.pod:2183
4240 msgid "When reporting a bug, please check:"
4241 msgstr ""
4242
4243 # type: textblock
4244 #: ../src/guestfs.pod:2189
4245 msgid "That the bug hasn't been reported already."
4246 msgstr ""
4247
4248 # type: textblock
4249 #: ../src/guestfs.pod:2193
4250 msgid "That you are testing a recent version."
4251 msgstr ""
4252
4253 # type: textblock
4254 #: ../src/guestfs.pod:2197
4255 msgid "Describe the bug accurately, and give a way to reproduce it."
4256 msgstr ""
4257
4258 # type: textblock
4259 #: ../src/guestfs.pod:2201
4260 msgid ""
4261 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4262 "bug report."
4263 msgstr ""
4264
4265 # type: =head1
4266 #: ../src/guestfs.pod:2206 ../fish/guestfish.pod:1108
4267 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4268 msgid "AUTHORS"
4269 msgstr ""
4270
4271 # type: textblock
4272 #: ../src/guestfs.pod:2208 ../fish/guestfish.pod:1110
4273 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4274 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4275 msgstr ""
4276
4277 # type: =head1
4278 #: ../src/guestfs.pod:2210 ../fish/guestfish.pod:1112
4279 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4280 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:602
4281 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206
4282 #: ../tools/virt-tar.pl:296 ../tools/virt-make-fs.pl:563
4283 #: ../tools/virt-list-partitions.pl:273
4284 msgid "COPYRIGHT"
4285 msgstr ""
4286
4287 # type: textblock
4288 #: ../src/guestfs.pod:2212 ../fish/guestfish.pod:1114
4289 #: ../fuse/guestmount.pod:250
4290 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4291 msgstr ""
4292
4293 # type: textblock
4294 #: ../src/guestfs.pod:2215
4295 msgid ""
4296 "This library is free software; you can redistribute it and/or modify it "
4297 "under the terms of the GNU Lesser General Public License as published by the "
4298 "Free Software Foundation; either version 2 of the License, or (at your "
4299 "option) any later version."
4300 msgstr ""
4301
4302 # type: textblock
4303 #: ../src/guestfs.pod:2220
4304 msgid ""
4305 "This library is distributed in the hope that it will be useful, but WITHOUT "
4306 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4307 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4308 "for more details."
4309 msgstr ""
4310
4311 # type: textblock
4312 #: ../src/guestfs.pod:2225
4313 msgid ""
4314 "You should have received a copy of the GNU Lesser General Public License "
4315 "along with this library; if not, write to the Free Software Foundation, "
4316 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4317 msgstr ""
4318
4319 # type: =head2
4320 #: ../src/guestfs-actions.pod:1
4321 msgid "guestfs_add_cdrom"
4322 msgstr ""
4323
4324 # type: verbatim
4325 #: ../src/guestfs-actions.pod:3
4326 #, no-wrap
4327 msgid ""
4328 " int\n"
4329 " guestfs_add_cdrom (guestfs_h *g,\n"
4330 "                    const char *filename);\n"
4331 "\n"
4332 msgstr ""
4333
4334 # type: textblock
4335 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4336 msgid "This function adds a virtual CD-ROM disk image to the guest."
4337 msgstr ""
4338
4339 # type: textblock
4340 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4341 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4342 msgstr ""
4343
4344 # type: textblock
4345 #: ../src/guestfs-actions.pod:17
4346 msgid ""
4347 "This call checks for the existence of C<filename>.  This stops you from "
4348 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4349 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4350 "instead."
4351 msgstr ""
4352
4353 # type: textblock
4354 #: ../src/guestfs-actions.pod:24
4355 msgid ""
4356 "If you just want to add an ISO file (often you use this as an efficient way "
4357 "to transfer large files into the guest), then you should probably use "
4358 "C<guestfs_add_drive_ro> instead."
4359 msgstr ""
4360
4361 # type: textblock
4362 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:128
4363 #: ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:226
4364 #: ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261
4365 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:295
4366 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4367 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:489
4368 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4369 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:635
4370 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:664
4371 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
4372 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
4373 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:990
4374 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1092
4375 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1129
4376 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1163
4377 #: ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264
4378 #: ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1326
4379 #: ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1466
4380 #: ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706
4381 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:2243
4382 #: ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2448
4383 #: ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:3222
4384 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3257
4385 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3424
4386 #: ../src/guestfs-actions.pod:3437 ../src/guestfs-actions.pod:3451
4387 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3502
4388 #: ../src/guestfs-actions.pod:3574 ../src/guestfs-actions.pod:3594
4389 #: ../src/guestfs-actions.pod:3611 ../src/guestfs-actions.pod:3634
4390 #: ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3689
4391 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:3727
4392 #: ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:3774
4393 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:3826
4394 #: ../src/guestfs-actions.pod:3839 ../src/guestfs-actions.pod:3854
4395 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3964
4396 #: ../src/guestfs-actions.pod:3984 ../src/guestfs-actions.pod:3997
4397 #: ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4066
4398 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4100
4399 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4128
4400 #: ../src/guestfs-actions.pod:4145 ../src/guestfs-actions.pod:4160
4401 #: ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4224
4402 #: ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4326
4403 #: ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4364
4404 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4393
4405 #: ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4421
4406 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4471
4407 #: ../src/guestfs-actions.pod:4486 ../src/guestfs-actions.pod:4506
4408 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4537
4409 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4623
4410 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4665
4411 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4700
4412 #: ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:4891
4413 #: ../src/guestfs-actions.pod:4913 ../src/guestfs-actions.pod:4931
4414 #: ../src/guestfs-actions.pod:4963 ../src/guestfs-actions.pod:5029
4415 #: ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5059
4416 #: ../src/guestfs-actions.pod:5073 ../src/guestfs-actions.pod:5362
4417 #: ../src/guestfs-actions.pod:5381 ../src/guestfs-actions.pod:5395
4418 #: ../src/guestfs-actions.pod:5407 ../src/guestfs-actions.pod:5421
4419 #: ../src/guestfs-actions.pod:5433 ../src/guestfs-actions.pod:5447
4420 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5484
4421 #: ../src/guestfs-actions.pod:5503 ../src/guestfs-actions.pod:5522
4422 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5563
4423 #: ../src/guestfs-actions.pod:5581 ../src/guestfs-actions.pod:5600
4424 #: ../src/guestfs-actions.pod:5621 ../src/guestfs-actions.pod:5640
4425 #: ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:5685
4426 #: ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:5728
4427 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5767
4428 #: ../src/guestfs-actions.pod:5782 ../src/guestfs-actions.pod:5801
4429 #: ../src/guestfs-actions.pod:5838 ../src/guestfs-actions.pod:5861
4430 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:5995
4431 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6128
4432 #: ../src/guestfs-actions.pod:6141 ../src/guestfs-actions.pod:6154
4433 #: ../src/guestfs-actions.pod:6176 ../src/guestfs-actions.pod:6189
4434 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6215
4435 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6289
4436 #: ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6322
4437 #: ../src/guestfs-actions.pod:6338 ../src/guestfs-actions.pod:6355
4438 #: ../src/guestfs-actions.pod:6368 ../src/guestfs-actions.pod:6388
4439 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6438
4440 #: ../src/guestfs-actions.pod:6479 ../src/guestfs-actions.pod:6492
4441 #: ../src/guestfs-actions.pod:6510 ../src/guestfs-actions.pod:6544
4442 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6699
4443 #: ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:6731
4444 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:6799
4445 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6877
4446 #: ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6957
4447 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7042
4448 #: ../src/guestfs-actions.pod:7071
4449 msgid "This function returns 0 on success or -1 on error."
4450 msgstr ""
4451
4452 # type: textblock
4453 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:242
4454 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:28
4455 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4456 msgid ""
4457 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4458 "instead."
4459 msgstr ""
4460
4461 # type: textblock
4462 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:245
4463 #: ../src/guestfs-actions.pod:266 ../src/guestfs-actions.pod:1437
4464 #: ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1944
4465 #: ../src/guestfs-actions.pod:4185 ../src/guestfs-actions.pod:6965
4466 #: ../src/guestfs-actions.pod:7134 ../fish/guestfish-actions.pod:31
4467 #: ../fish/guestfish-actions.pod:156 ../fish/guestfish-actions.pod:170
4468 #: ../fish/guestfish-actions.pod:951 ../fish/guestfish-actions.pod:1308
4469 #: ../fish/guestfish-actions.pod:1322 ../fish/guestfish-actions.pod:2818
4470 #: ../fish/guestfish-actions.pod:4620 ../fish/guestfish-actions.pod:4717
4471 msgid ""
4472 "Deprecated functions will not be removed from the API, but the fact that "
4473 "they are deprecated indicates that there are problems with correct use of "
4474 "these functions."
4475 msgstr ""
4476
4477 # type: textblock
4478 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:130
4479 #: ../src/guestfs-actions.pod:1094 ../src/guestfs-actions.pod:1895
4480 #: ../src/guestfs-actions.pod:1993 ../src/guestfs-actions.pod:2096
4481 #: ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3239
4482 #: ../src/guestfs-actions.pod:4473 ../src/guestfs-actions.pod:5542
4483 #: ../src/guestfs-actions.pod:5659 ../src/guestfs-actions.pod:5769
4484 #: ../src/guestfs-actions.pod:6232 ../src/guestfs-actions.pod:6357
4485 #: ../src/guestfs-actions.pod:6879
4486 msgid "(Added in 0.3)"
4487 msgstr ""
4488
4489 # type: =head2
4490 #: ../src/guestfs-actions.pod:41
4491 msgid "guestfs_add_domain"
4492 msgstr ""
4493
4494 # type: verbatim
4495 #: ../src/guestfs-actions.pod:43
4496 #, no-wrap
4497 msgid ""
4498 " int\n"
4499 " guestfs_add_domain (guestfs_h *g,\n"
4500 "                     const char *dom,\n"
4501 "                     ...);\n"
4502 "\n"
4503 msgstr ""
4504
4505 # type: textblock
4506 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139
4507 #: ../src/guestfs-actions.pod:4199
4508 msgid ""
4509 "You may supply a list of optional arguments to this call.  Use zero or more "
4510 "of the following pairs of parameters, and terminate the list with C<-1> on "
4511 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4512 msgstr ""
4513
4514 # type: verbatim
4515 #: ../src/guestfs-actions.pod:53
4516 #, no-wrap
4517 msgid ""
4518 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4519 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4520 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4521 "\n"
4522 msgstr ""
4523
4524 # type: textblock
4525 #: ../src/guestfs-actions.pod:57
4526 msgid ""
4527 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4528 "It works by connecting to libvirt, requesting the domain and domain XML from "
4529 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4530 "one."
4531 msgstr ""
4532
4533 # type: textblock
4534 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4535 msgid ""
4536 "The number of disks added is returned.  This operation is atomic: if an "
4537 "error is returned, then no disks are added."
4538 msgstr ""
4539
4540 # type: textblock
4541 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4542 msgid ""
4543 "This function does some minimal checks to make sure the libvirt domain is "
4544 "not running (unless C<readonly> is true).  In a future version we will try "
4545 "to acquire the libvirt lock on each disk."
4546 msgstr ""
4547
4548 # type: textblock
4549 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4550 msgid ""
4551 "Disks must be accessible locally.  This often means that adding disks from a "
4552 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4553 "unless those disks are accessible via the same device path locally too."
4554 msgstr ""
4555
4556 # type: textblock
4557 #: ../src/guestfs-actions.pod:74
4558 msgid ""
4559 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4560 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4561 "libvirt URI (or one set through an environment variable, see the libvirt "
4562 "documentation for full details).  If you are using the C API directly then "
4563 "it is more flexible to create the libvirt connection object yourself, get "
4564 "the domain object, and call C<guestfs_add_libvirt_dom>."
4565 msgstr ""
4566
4567 # type: textblock
4568 #: ../src/guestfs-actions.pod:82
4569 msgid ""
4570 "The other optional parameters are passed directly through to "
4571 "C<guestfs_add_drive_opts>."
4572 msgstr ""
4573
4574 # type: textblock
4575 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:338
4576 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:681
4577 #: ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730
4578 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:1309
4579 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1866
4580 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2005
4581 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2083
4582 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2662
4583 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:4609
4584 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:5143
4585 #: ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:6465
4586 #: ../src/guestfs-actions.pod:6890 ../src/guestfs-actions.pod:6903
4587 #: ../src/guestfs-actions.pod:6916
4588 msgid "On error this function returns -1."
4589 msgstr ""
4590
4591 # type: textblock
4592 #: ../src/guestfs-actions.pod:87
4593 msgid "(Added in 1.7.4)"
4594 msgstr ""
4595
4596 # type: =head2
4597 #: ../src/guestfs-actions.pod:89
4598 msgid "guestfs_add_domain_va"
4599 msgstr ""
4600
4601 # type: verbatim
4602 #: ../src/guestfs-actions.pod:91
4603 #, no-wrap
4604 msgid ""
4605 " int\n"
4606 " guestfs_add_domain_va (guestfs_h *g,\n"
4607 "                        const char *dom,\n"
4608 "                        va_list args);\n"
4609 "\n"
4610 msgstr ""
4611
4612 # type: textblock
4613 #: ../src/guestfs-actions.pod:96
4614 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4615 msgstr ""
4616
4617 # type: textblock
4618 #: ../src/guestfs-actions.pod:98 ../src/guestfs-actions.pod:109
4619 #: ../src/guestfs-actions.pod:202 ../src/guestfs-actions.pod:213
4620 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4248
4621 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4622 msgstr ""
4623
4624 # type: =head2
4625 #: ../src/guestfs-actions.pod:100
4626 msgid "guestfs_add_domain_argv"
4627 msgstr ""
4628
4629 # type: verbatim
4630 #: ../src/guestfs-actions.pod:102
4631 #, no-wrap
4632 msgid ""
4633 " int\n"
4634 " guestfs_add_domain_argv (guestfs_h *g,\n"
4635 "                          const char *dom,\n"
4636 "                          const struct guestfs_add_domain_argv *optargs);\n"
4637 "\n"
4638 msgstr ""
4639
4640 # type: textblock
4641 #: ../src/guestfs-actions.pod:107
4642 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4643 msgstr ""
4644
4645 # type: =head2
4646 #: ../src/guestfs-actions.pod:111
4647 msgid "guestfs_add_drive"
4648 msgstr ""
4649
4650 # type: verbatim
4651 #: ../src/guestfs-actions.pod:113
4652 #, no-wrap
4653 msgid ""
4654 " int\n"
4655 " guestfs_add_drive (guestfs_h *g,\n"
4656 "                    const char *filename);\n"
4657 "\n"
4658 msgstr ""
4659
4660 # type: textblock
4661 #: ../src/guestfs-actions.pod:117
4662 msgid ""
4663 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4664 "optional parameters, so the disk is added writable, with the format being "
4665 "detected automatically."
4666 msgstr ""
4667
4668 # type: textblock
4669 #: ../src/guestfs-actions.pod:121
4670 msgid ""
4671 "Automatic detection of the format opens you up to a potential security hole "
4672 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4673 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4674 "you should think about replacing calls to this function with calls to "
4675 "C<guestfs_add_drive_opts>, and specifying the format."
4676 msgstr ""
4677
4678 # type: =head2
4679 #: ../src/guestfs-actions.pod:132
4680 msgid "guestfs_add_drive_opts"
4681 msgstr ""
4682
4683 # type: verbatim
4684 #: ../src/guestfs-actions.pod:134
4685 #, no-wrap
4686 msgid ""
4687 " int\n"
4688 " guestfs_add_drive_opts (guestfs_h *g,\n"
4689 "                         const char *filename,\n"
4690 "                         ...);\n"
4691 "\n"
4692 msgstr ""
4693
4694 # type: verbatim
4695 #: ../src/guestfs-actions.pod:144
4696 #, no-wrap
4697 msgid ""
4698 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4699 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4700 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4701 "\n"
4702 msgstr ""
4703
4704 # type: textblock
4705 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4706 msgid ""
4707 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4708 "The first time you call this function, the disk appears as C</dev/sda>, the "
4709 "second time as C</dev/sdb>, and so on."
4710 msgstr ""
4711
4712 # type: textblock
4713 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4714 msgid ""
4715 "You don't necessarily need to be root when using libguestfs.  However you "
4716 "obviously do need sufficient permissions to access the filename for whatever "
4717 "operations you want to perform (ie. read access if you just want to read the "
4718 "image or write access if you want to modify the image)."
4719 msgstr ""
4720
4721 # type: textblock
4722 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4723 msgid "This call checks that C<filename> exists."
4724 msgstr ""
4725
4726 # type: textblock
4727 #: ../src/guestfs-actions.pod:161 ../src/guestfs-actions.pod:4209
4728 #: ../fish/guestfish-actions.pod:105 ../fish/guestfish-actions.pod:2829
4729 msgid "The optional arguments are:"
4730 msgstr ""
4731
4732 # type: =item
4733 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4734 msgid "C<readonly>"
4735 msgstr ""
4736
4737 # type: textblock
4738 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4739 msgid ""
4740 "If true then the image is treated as read-only.  Writes are still allowed, "
4741 "but they are stored in a temporary snapshot overlay which is discarded at "
4742 "the end.  The disk that you add is not modified."
4743 msgstr ""
4744
4745 # type: =item
4746 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4747 msgid "C<format>"
4748 msgstr ""
4749
4750 # type: textblock
4751 #: ../src/guestfs-actions.pod:173
4752 msgid ""
4753 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4754 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4755 "Possible formats include C<raw> and C<qcow2>."
4756 msgstr ""
4757
4758 # type: textblock
4759 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4760 msgid ""
4761 "Automatic detection of the format opens you up to a potential security hole "
4762 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4763 "RHBZ#642934.  Specifying the format closes this security hole."
4764 msgstr ""
4765
4766 # type: =item
4767 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4768 msgid "C<iface>"
4769 msgstr ""
4770
4771 # type: textblock
4772 #: ../src/guestfs-actions.pod:184
4773 msgid ""
4774 "This rarely-used option lets you emulate the behaviour of the deprecated "
4775 "C<guestfs_add_drive_with_if> call (q.v.)"
4776 msgstr ""
4777
4778 # type: textblock
4779 #: ../src/guestfs-actions.pod:191
4780 msgid "(Added in 1.5.23)"
4781 msgstr ""
4782
4783 # type: =head2
4784 #: ../src/guestfs-actions.pod:193
4785 msgid "guestfs_add_drive_opts_va"
4786 msgstr ""
4787
4788 # type: verbatim
4789 #: ../src/guestfs-actions.pod:195
4790 #, no-wrap
4791 msgid ""
4792 " int\n"
4793 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4794 "                            const char *filename,\n"
4795 "                            va_list args);\n"
4796 "\n"
4797 msgstr ""
4798
4799 # type: textblock
4800 #: ../src/guestfs-actions.pod:200
4801 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4802 msgstr ""
4803
4804 # type: =head2
4805 #: ../src/guestfs-actions.pod:204
4806 msgid "guestfs_add_drive_opts_argv"
4807 msgstr ""
4808
4809 # type: verbatim
4810 #: ../src/guestfs-actions.pod:206
4811 #, no-wrap
4812 msgid ""
4813 " int\n"
4814 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4815 "                              const char *filename,\n"
4816 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4817 "\n"
4818 msgstr ""
4819
4820 # type: textblock
4821 #: ../src/guestfs-actions.pod:211
4822 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4823 msgstr ""
4824
4825 # type: =head2
4826 #: ../src/guestfs-actions.pod:215
4827 msgid "guestfs_add_drive_ro"
4828 msgstr ""
4829
4830 # type: verbatim
4831 #: ../src/guestfs-actions.pod:217
4832 #, no-wrap
4833 msgid ""
4834 " int\n"
4835 " guestfs_add_drive_ro (guestfs_h *g,\n"
4836 "                       const char *filename);\n"
4837 "\n"
4838 msgstr ""
4839
4840 # type: textblock
4841 #: ../src/guestfs-actions.pod:221
4842 msgid ""
4843 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4844 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4845 "disk is added read-only, with the format being detected automatically."
4846 msgstr ""
4847
4848 # type: textblock
4849 #: ../src/guestfs-actions.pod:228
4850 msgid "(Added in 1.0.38)"
4851 msgstr ""
4852
4853 # type: =head2
4854 #: ../src/guestfs-actions.pod:230
4855 msgid "guestfs_add_drive_ro_with_if"
4856 msgstr ""
4857
4858 # type: verbatim
4859 #: ../src/guestfs-actions.pod:232
4860 #, no-wrap
4861 msgid ""
4862 " int\n"
4863 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4864 "                               const char *filename,\n"
4865 "                               const char *iface);\n"
4866 "\n"
4867 msgstr ""
4868
4869 # type: textblock
4870 #: ../src/guestfs-actions.pod:237
4871 msgid ""
4872 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4873 "QEMU interface emulation to use at run time."
4874 msgstr ""
4875
4876 # type: textblock
4877 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
4878 #: ../src/guestfs-actions.pod:2333
4879 msgid "(Added in 1.0.84)"
4880 msgstr ""
4881
4882 # type: =head2
4883 #: ../src/guestfs-actions.pod:251
4884 msgid "guestfs_add_drive_with_if"
4885 msgstr ""
4886
4887 # type: verbatim
4888 #: ../src/guestfs-actions.pod:253
4889 #, no-wrap
4890 msgid ""
4891 " int\n"
4892 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4893 "                            const char *filename,\n"
4894 "                            const char *iface);\n"
4895 "\n"
4896 msgstr ""
4897
4898 # type: textblock
4899 #: ../src/guestfs-actions.pod:258
4900 msgid ""
4901 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4902 "QEMU interface emulation to use at run time."
4903 msgstr ""
4904
4905 # type: =head2
4906 #: ../src/guestfs-actions.pod:272
4907 msgid "guestfs_aug_clear"
4908 msgstr ""
4909
4910 # type: verbatim
4911 #: ../src/guestfs-actions.pod:274
4912 #, no-wrap
4913 msgid ""
4914 " int\n"
4915 " guestfs_aug_clear (guestfs_h *g,\n"
4916 "                    const char *augpath);\n"
4917 "\n"
4918 msgstr ""
4919
4920 # type: textblock
4921 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4922 msgid ""
4923 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4924 "L<augtool(1)> C<clear> command."
4925 msgstr ""
4926
4927 # type: textblock
4928 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4929 msgid "(Added in 1.3.4)"
4930 msgstr ""
4931
4932 # type: =head2
4933 #: ../src/guestfs-actions.pod:285
4934 msgid "guestfs_aug_close"
4935 msgstr ""
4936
4937 # type: verbatim
4938 #: ../src/guestfs-actions.pod:287
4939 #, no-wrap
4940 msgid ""
4941 " int\n"
4942 " guestfs_aug_close (guestfs_h *g);\n"
4943 "\n"
4944 msgstr ""
4945
4946 # type: textblock
4947 #: ../src/guestfs-actions.pod:290
4948 msgid ""
4949 "Close the current Augeas handle and free up any resources used by it.  After "
4950 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4951 "any other Augeas functions."
4952 msgstr ""
4953
4954 # type: textblock
4955 #: ../src/guestfs-actions.pod:297 ../src/guestfs-actions.pod:322
4956 #: ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:354
4957 #: ../src/guestfs-actions.pod:412 ../src/guestfs-actions.pod:432
4958 #: ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:477
4959 #: ../src/guestfs-actions.pod:491 ../src/guestfs-actions.pod:505
4960 #: ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:537
4961 #: ../src/guestfs-actions.pod:5220
4962 msgid "(Added in 0.7)"
4963 msgstr ""
4964
4965 # type: =head2
4966 #: ../src/guestfs-actions.pod:299
4967 msgid "guestfs_aug_defnode"
4968 msgstr ""
4969
4970 # type: verbatim
4971 #: ../src/guestfs-actions.pod:301
4972 #, no-wrap
4973 msgid ""
4974 " struct guestfs_int_bool *\n"
4975 " guestfs_aug_defnode (guestfs_h *g,\n"
4976 "                      const char *name,\n"
4977 "                      const char *expr,\n"
4978 "                      const char *val);\n"
4979 "\n"
4980 msgstr ""
4981
4982 # type: textblock
4983 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4984 msgid ""
4985 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4986 msgstr ""
4987
4988 # type: textblock
4989 #: ../src/guestfs-actions.pod:310
4990 msgid ""
4991 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4992 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4993 "containing that single node."
4994 msgstr ""
4995
4996 # type: textblock
4997 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4998 msgid ""
4999 "On success this returns a pair containing the number of nodes in the "
5000 "nodeset, and a boolean flag if a node was created."
5001 msgstr ""
5002
5003 # type: textblock
5004 #: ../src/guestfs-actions.pod:318
5005 msgid ""
5006 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
5007 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
5008 msgstr ""
5009
5010 # type: =head2
5011 #: ../src/guestfs-actions.pod:324
5012 msgid "guestfs_aug_defvar"
5013 msgstr ""
5014
5015 # type: verbatim
5016 #: ../src/guestfs-actions.pod:326
5017 #, no-wrap
5018 msgid ""
5019 " int\n"
5020 " guestfs_aug_defvar (guestfs_h *g,\n"
5021 "                     const char *name,\n"
5022 "                     const char *expr);\n"
5023 "\n"
5024 msgstr ""
5025
5026 # type: textblock
5027 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
5028 msgid ""
5029 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5030 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5031 msgstr ""
5032
5033 # type: textblock
5034 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
5035 msgid ""
5036 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5037 "evaluates to something which is not a nodeset."
5038 msgstr ""
5039
5040 # type: =head2
5041 #: ../src/guestfs-actions.pod:342
5042 msgid "guestfs_aug_get"
5043 msgstr ""
5044
5045 # type: verbatim
5046 #: ../src/guestfs-actions.pod:344
5047 #, no-wrap
5048 msgid ""
5049 " char *\n"
5050 " guestfs_aug_get (guestfs_h *g,\n"
5051 "                  const char *augpath);\n"
5052 "\n"
5053 msgstr ""
5054
5055 # type: textblock
5056 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
5057 msgid ""
5058 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5059 "node, the C<value> is returned."
5060 msgstr ""
5061
5062 # type: textblock
5063 #: ../src/guestfs-actions.pod:351 ../src/guestfs-actions.pod:851
5064 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:929
5065 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1048
5066 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1195
5067 #: ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1343
5068 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1646
5069 #: ../src/guestfs-actions.pod:1809 ../src/guestfs-actions.pod:1826
5070 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:1938
5071 #: ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2298
5072 #: ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2586
5073 #: ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2744
5074 #: ../src/guestfs-actions.pod:2775 ../src/guestfs-actions.pod:2799
5075 #: ../src/guestfs-actions.pod:2861 ../src/guestfs-actions.pod:2884
5076 #: ../src/guestfs-actions.pod:3396 ../src/guestfs-actions.pod:3746
5077 #: ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:4026
5078 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4948
5079 #: ../src/guestfs-actions.pod:5118 ../src/guestfs-actions.pod:5296
5080 #: ../src/guestfs-actions.pod:5345 ../src/guestfs-actions.pod:5908
5081 #: ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:5941
5082 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6639
5083 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6676
5084 #: ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:7128
5085 msgid ""
5086 "This function returns a string, or NULL on error.  I<The caller must free "
5087 "the returned string after use>."
5088 msgstr ""
5089
5090 # type: =head2
5091 #: ../src/guestfs-actions.pod:356
5092 msgid "guestfs_aug_init"
5093 msgstr ""
5094
5095 # type: verbatim
5096 #: ../src/guestfs-actions.pod:358
5097 #, no-wrap
5098 msgid ""
5099 " int\n"
5100 " guestfs_aug_init (guestfs_h *g,\n"
5101 "                   const char *root,\n"
5102 "                   int flags);\n"
5103 "\n"
5104 msgstr ""
5105
5106 # type: textblock
5107 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
5108 msgid ""
5109 "Create a new Augeas handle for editing configuration files.  If there was "
5110 "any previous Augeas handle associated with this guestfs session, then it is "
5111 "closed."
5112 msgstr ""
5113
5114 # type: textblock
5115 #: ../src/guestfs-actions.pod:367
5116 msgid "You must call this before using any other C<guestfs_aug_*> commands."
5117 msgstr ""
5118
5119 # type: textblock
5120 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
5121 msgid ""
5122 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5123 msgstr ""
5124
5125 # type: textblock
5126 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
5127 msgid ""
5128 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5129 "logical I<or> of the following integers:"
5130 msgstr ""
5131
5132 # type: =item
5133 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
5134 msgid "C<AUG_SAVE_BACKUP> = 1"
5135 msgstr ""
5136
5137 # type: textblock
5138 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
5139 msgid "Keep the original file with a C<.augsave> extension."
5140 msgstr ""
5141
5142 # type: =item
5143 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
5144 msgid "C<AUG_SAVE_NEWFILE> = 2"
5145 msgstr ""
5146
5147 # type: textblock
5148 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
5149 msgid ""
5150 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5151 "original.  Overrides C<AUG_SAVE_BACKUP>."
5152 msgstr ""
5153
5154 # type: =item
5155 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
5156 msgid "C<AUG_TYPE_CHECK> = 4"
5157 msgstr ""
5158
5159 # type: textblock
5160 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
5161 msgid "Typecheck lenses (can be expensive)."
5162 msgstr ""
5163
5164 # type: =item
5165 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
5166 msgid "C<AUG_NO_STDINC> = 8"
5167 msgstr ""
5168
5169 # type: textblock
5170 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
5171 msgid "Do not use standard load path for modules."
5172 msgstr ""
5173
5174 # type: =item
5175 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
5176 msgid "C<AUG_SAVE_NOOP> = 16"
5177 msgstr ""
5178
5179 # type: textblock
5180 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
5181 msgid "Make save a no-op, just record what would have been changed."
5182 msgstr ""
5183
5184 # type: =item
5185 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
5186 msgid "C<AUG_NO_LOAD> = 32"
5187 msgstr ""
5188
5189 # type: textblock
5190 #: ../src/guestfs-actions.pod:402
5191 msgid "Do not load the tree in C<guestfs_aug_init>."
5192 msgstr ""
5193
5194 # type: textblock
5195 #: ../src/guestfs-actions.pod:406
5196 msgid "To close the handle, you can call C<guestfs_aug_close>."
5197 msgstr ""
5198
5199 # type: textblock
5200 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
5201 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5202 msgstr ""
5203
5204 # type: =head2
5205 #: ../src/guestfs-actions.pod:414
5206 msgid "guestfs_aug_insert"
5207 msgstr ""
5208
5209 # type: verbatim
5210 #: ../src/guestfs-actions.pod:416
5211 #, no-wrap
5212 msgid ""
5213 " int\n"
5214 " guestfs_aug_insert (guestfs_h *g,\n"
5215 "                     const char *augpath,\n"
5216 "                     const char *label,\n"
5217 "                     int before);\n"
5218 "\n"
5219 msgstr ""
5220
5221 # type: textblock
5222 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
5223 msgid ""
5224 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5225 "or after C<path> (depending on the boolean flag C<before>)."
5226 msgstr ""
5227
5228 # type: textblock
5229 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
5230 msgid ""
5231 "C<path> must match exactly one existing node in the tree, and C<label> must "
5232 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5233 msgstr ""
5234
5235 # type: =head2
5236 #: ../src/guestfs-actions.pod:434
5237 msgid "guestfs_aug_load"
5238 msgstr ""
5239
5240 # type: verbatim
5241 #: ../src/guestfs-actions.pod:436
5242 #, no-wrap
5243 msgid ""
5244 " int\n"
5245 " guestfs_aug_load (guestfs_h *g);\n"
5246 "\n"
5247 msgstr ""
5248
5249 # type: textblock
5250 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
5251 msgid "Load files into the tree."
5252 msgstr ""
5253
5254 # type: textblock
5255 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
5256 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5257 msgstr ""
5258
5259 # type: =head2
5260 #: ../src/guestfs-actions.pod:448
5261 msgid "guestfs_aug_ls"
5262 msgstr ""
5263
5264 # type: verbatim
5265 #: ../src/guestfs-actions.pod:450
5266 #, no-wrap
5267 msgid ""
5268 " char **\n"
5269 " guestfs_aug_ls (guestfs_h *g,\n"
5270 "                 const char *augpath);\n"
5271 "\n"
5272 msgstr ""
5273
5274 # type: textblock
5275 #: ../src/guestfs-actions.pod:454
5276 msgid ""
5277 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5278 "sorting the resulting nodes into alphabetical order."
5279 msgstr ""
5280
5281 # type: textblock
5282 #: ../src/guestfs-actions.pod:457 ../src/guestfs-actions.pod:473
5283 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:1067
5284 #: ../src/guestfs-actions.pod:1358 ../src/guestfs-actions.pod:1377
5285 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1499
5286 #: ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:2178
5287 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2213
5288 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2280
5289 #: ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2400
5290 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2818
5291 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3316
5292 #: ../src/guestfs-actions.pod:3378 ../src/guestfs-actions.pod:3483
5293 #: ../src/guestfs-actions.pod:3888 ../src/guestfs-actions.pod:4570
5294 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5216
5295 #: ../src/guestfs-actions.pod:5330 ../src/guestfs-actions.pod:5981
5296 #: ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:6097
5297 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6267
5298 #: ../src/guestfs-actions.pod:6749 ../src/guestfs-actions.pod:6769
5299 #: ../src/guestfs-actions.pod:6816 ../src/guestfs-actions.pod:6981
5300 #: ../src/guestfs-actions.pod:7000 ../src/guestfs-actions.pod:7085
5301 #: ../src/guestfs-actions.pod:7104 ../src/guestfs-actions.pod:7150
5302 #: ../src/guestfs-actions.pod:7169
5303 msgid ""
5304 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5305 ">), or NULL if there was an error.  I<The caller must free the strings and "
5306 "the array after use>."
5307 msgstr ""
5308
5309 # type: textblock
5310 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:992
5311 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:1415
5312 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3142
5313 #: ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:3779
5314 #: ../src/guestfs-actions.pod:3966 ../src/guestfs-actions.pod:3999
5315 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4574
5316 #: ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5409
5317 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5435
5318 #: ../src/guestfs-actions.pod:5843 ../src/guestfs-actions.pod:6481
5319 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6733
5320 #: ../src/guestfs-actions.pod:6936 ../src/guestfs-actions.pod:6969
5321 msgid "(Added in 0.8)"
5322 msgstr ""
5323
5324 # type: =head2
5325 #: ../src/guestfs-actions.pod:463
5326 msgid "guestfs_aug_match"
5327 msgstr ""
5328
5329 # type: verbatim
5330 #: ../src/guestfs-actions.pod:465
5331 #, no-wrap
5332 msgid ""
5333 " char **\n"
5334 " guestfs_aug_match (guestfs_h *g,\n"
5335 "                    const char *augpath);\n"
5336 "\n"
5337 msgstr ""
5338
5339 # type: textblock
5340 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
5341 msgid ""
5342 "Returns a list of paths which match the path expression C<path>.  The "
5343 "returned paths are sufficiently qualified so that they match exactly one "
5344 "node in the current tree."
5345 msgstr ""
5346
5347 # type: =head2
5348 #: ../src/guestfs-actions.pod:479
5349 msgid "guestfs_aug_mv"
5350 msgstr ""
5351
5352 # type: verbatim
5353 #: ../src/guestfs-actions.pod:481
5354 #, no-wrap
5355 msgid ""
5356 " int\n"
5357 " guestfs_aug_mv (guestfs_h *g,\n"
5358 "                 const char *src,\n"
5359 "                 const char *dest);\n"
5360 "\n"
5361 msgstr ""
5362
5363 # type: textblock
5364 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
5365 msgid ""
5366 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5367 "C<dest> is overwritten if it exists."
5368 msgstr ""
5369
5370 # type: =head2
5371 #: ../src/guestfs-actions.pod:493
5372 msgid "guestfs_aug_rm"
5373 msgstr ""
5374
5375 # type: verbatim
5376 #: ../src/guestfs-actions.pod:495
5377 #, no-wrap
5378 msgid ""
5379 " int\n"
5380 " guestfs_aug_rm (guestfs_h *g,\n"
5381 "                 const char *augpath);\n"
5382 "\n"
5383 msgstr ""
5384
5385 # type: textblock
5386 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5387 msgid "Remove C<path> and all of its children."
5388 msgstr ""
5389
5390 # type: textblock
5391 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5392 msgid "On success this returns the number of entries which were removed."
5393 msgstr ""
5394
5395 # type: =head2
5396 #: ../src/guestfs-actions.pod:507
5397 msgid "guestfs_aug_save"
5398 msgstr ""
5399
5400 # type: verbatim
5401 #: ../src/guestfs-actions.pod:509
5402 #, no-wrap
5403 msgid ""
5404 " int\n"
5405 " guestfs_aug_save (guestfs_h *g);\n"
5406 "\n"
5407 msgstr ""
5408
5409 # type: textblock
5410 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5411 msgid "This writes all pending changes to disk."
5412 msgstr ""
5413
5414 # type: textblock
5415 #: ../src/guestfs-actions.pod:514
5416 msgid ""
5417 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5418 "are saved."
5419 msgstr ""
5420
5421 # type: =head2
5422 #: ../src/guestfs-actions.pod:521
5423 msgid "guestfs_aug_set"
5424 msgstr ""
5425
5426 # type: verbatim
5427 #: ../src/guestfs-actions.pod:523
5428 #, no-wrap
5429 msgid ""
5430 " int\n"
5431 " guestfs_aug_set (guestfs_h *g,\n"
5432 "                  const char *augpath,\n"
5433 "                  const char *val);\n"
5434 "\n"
5435 msgstr ""
5436
5437 # type: textblock
5438 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5439 msgid "Set the value associated with C<path> to C<val>."
5440 msgstr ""
5441
5442 # type: textblock
5443 #: ../src/guestfs-actions.pod:530
5444 msgid ""
5445 "In the Augeas API, it is possible to clear a node by setting the value to "
5446 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5447 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5448 msgstr ""
5449
5450 # type: =head2
5451 #: ../src/guestfs-actions.pod:539
5452 msgid "guestfs_available"
5453 msgstr ""
5454
5455 # type: verbatim
5456 #: ../src/guestfs-actions.pod:541
5457 #, no-wrap
5458 msgid ""
5459 " int\n"
5460 " guestfs_available (guestfs_h *g,\n"
5461 "                    char *const *groups);\n"
5462 "\n"
5463 msgstr ""
5464
5465 # type: textblock
5466 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5467 msgid ""
5468 "This command is used to check the availability of some groups of "
5469 "functionality in the appliance, which not all builds of the libguestfs "
5470 "appliance will be able to provide."
5471 msgstr ""
5472
5473 # type: textblock
5474 #: ../src/guestfs-actions.pod:549
5475 msgid ""
5476 "The libguestfs groups, and the functions that those groups correspond to, "
5477 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5478 "runtime by calling C<guestfs_available_all_groups>."
5479 msgstr ""
5480
5481 # type: textblock
5482 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5483 msgid ""
5484 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5485 "\"]> would check for the availability of the Linux inotify functions and "
5486 "Augeas (configuration file editing) functions."
5487 msgstr ""
5488
5489 # type: textblock
5490 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5491 msgid "The command returns no error if I<all> requested groups are available."
5492 msgstr ""
5493
5494 # type: textblock
5495 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5496 msgid ""
5497 "It fails with an error if one or more of the requested groups is unavailable "
5498 "in the appliance."
5499 msgstr ""
5500
5501 # type: textblock
5502 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5503 msgid ""
5504 "If an unknown group name is included in the list of groups then an error is "
5505 "always returned."
5506 msgstr ""
5507
5508 # type: textblock
5509 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5510 msgid "I<Notes:>"
5511 msgstr ""
5512
5513 # type: textblock
5514 #: ../src/guestfs-actions.pod:573
5515 msgid "You must call C<guestfs_launch> before calling this function."
5516 msgstr ""
5517
5518 # type: textblock
5519 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5520 msgid ""
5521 "The reason is because we don't know what groups are supported by the "
5522 "appliance/daemon until it is running and can be queried."
5523 msgstr ""
5524
5525 # type: textblock
5526 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5527 msgid ""
5528 "If a group of functions is available, this does not necessarily mean that "
5529 "they will work.  You still have to check for errors when calling individual "
5530 "API functions even if they are available."
5531 msgstr ""
5532
5533 # type: textblock
5534 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5535 msgid ""
5536 "It is usually the job of distro packagers to build complete functionality "
5537 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5538 "with all requirements satisfied, will support everything."
5539 msgstr ""
5540
5541 # type: textblock
5542 #: ../src/guestfs-actions.pod:595
5543 msgid ""
5544 "This call was added in version C<1.0.80>.  In previous versions of "
5545 "libguestfs all you could do would be to speculatively execute a command to "
5546 "find out if the daemon implemented it.  See also C<guestfs_version>."
5547 msgstr ""
5548
5549 # type: textblock
5550 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5551 msgid "(Added in 1.0.80)"
5552 msgstr ""
5553
5554 # type: =head2
5555 #: ../src/guestfs-actions.pod:606
5556 msgid "guestfs_available_all_groups"
5557 msgstr ""
5558
5559 # type: verbatim
5560 #: ../src/guestfs-actions.pod:608
5561 #, no-wrap
5562 msgid ""
5563 " char **\n"
5564 " guestfs_available_all_groups (guestfs_h *g);\n"
5565 "\n"
5566 msgstr ""
5567
5568 # type: textblock
5569 #: ../src/guestfs-actions.pod:611
5570 msgid ""
5571 "This command returns a list of all optional groups that this daemon knows "
5572 "about.  Note this returns both supported and unsupported groups.  To find "
5573 "out which ones the daemon can actually support you have to call "
5574 "C<guestfs_available> on each member of the returned list."
5575 msgstr ""
5576
5577 # type: textblock
5578 #: ../src/guestfs-actions.pod:617
5579 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5580 msgstr ""
5581
5582 # type: textblock
5583 #: ../src/guestfs-actions.pod:623
5584 msgid "(Added in 1.3.15)"
5585 msgstr ""
5586
5587 # type: =head2
5588 #: ../src/guestfs-actions.pod:625
5589 msgid "guestfs_base64_in"
5590 msgstr ""
5591
5592 # type: verbatim
5593 #: ../src/guestfs-actions.pod:627
5594 #, no-wrap
5595 msgid ""
5596 " int\n"
5597 " guestfs_base64_in (guestfs_h *g,\n"
5598 "                    const char *base64file,\n"
5599 "                    const char *filename);\n"
5600 "\n"
5601 msgstr ""
5602
5603 # type: textblock
5604 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5605 msgid ""
5606 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5607 msgstr ""
5608
5609 # type: textblock
5610 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5611 msgid "(Added in 1.3.5)"
5612 msgstr ""
5613
5614 # type: =head2
5615 #: ../src/guestfs-actions.pod:639
5616 msgid "guestfs_base64_out"
5617 msgstr ""
5618
5619 # type: verbatim
5620 #: ../src/guestfs-actions.pod:641
5621 #, no-wrap
5622 msgid ""
5623 " int\n"
5624 " guestfs_base64_out (guestfs_h *g,\n"
5625 "                     const char *filename,\n"
5626 "                     const char *base64file);\n"
5627 "\n"
5628 msgstr ""
5629
5630 # type: textblock
5631 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5632 msgid ""
5633 "This command downloads the contents of C<filename>, writing it out to local "
5634 "file C<base64file> encoded as base64."
5635 msgstr ""
5636
5637 # type: =head2
5638 #: ../src/guestfs-actions.pod:653
5639 msgid "guestfs_blockdev_flushbufs"
5640 msgstr ""
5641
5642 # type: verbatim
5643 #: ../src/guestfs-actions.pod:655
5644 #, no-wrap
5645 msgid ""
5646 " int\n"
5647 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5648 "                             const char *device);\n"
5649 "\n"
5650 msgstr ""
5651
5652 # type: textblock
5653 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5654 msgid ""
5655 "This tells the kernel to flush internal buffers associated with C<device>."
5656 msgstr ""
5657
5658 # type: textblock
5659 #: ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:679
5660 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:710
5661 #: ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747
5662 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5663 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5664 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5665 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5666 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5667 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5668 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5669 msgid "This uses the L<blockdev(8)> command."
5670 msgstr ""
5671
5672 # type: textblock
5673 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:683
5674 #: ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:714
5675 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:751
5676 #: ../src/guestfs-actions.pod:765 ../src/guestfs-actions.pod:783
5677 #: ../src/guestfs-actions.pod:797 ../src/guestfs-actions.pod:811
5678 msgid "(Added in 0.9.3)"
5679 msgstr ""
5680
5681 # type: =head2
5682 #: ../src/guestfs-actions.pod:668
5683 msgid "guestfs_blockdev_getbsz"
5684 msgstr ""
5685
5686 # type: verbatim
5687 #: ../src/guestfs-actions.pod:670
5688 #, no-wrap
5689 msgid ""
5690 " int\n"
5691 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5692 "                          const char *device);\n"
5693 "\n"
5694 msgstr ""
5695
5696 # type: textblock
5697 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5698 msgid "This returns the block size of a device."
5699 msgstr ""
5700
5701 # type: textblock
5702 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776
5703 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5704 msgid ""
5705 "(Note this is different from both I<size in blocks> and I<filesystem block "
5706 "size>)."
5707 msgstr ""
5708
5709 # type: =head2
5710 #: ../src/guestfs-actions.pod:685
5711 msgid "guestfs_blockdev_getro"
5712 msgstr ""
5713
5714 # type: verbatim
5715 #: ../src/guestfs-actions.pod:687
5716 #, no-wrap
5717 msgid ""
5718 " int\n"
5719 " guestfs_blockdev_getro (guestfs_h *g,\n"
5720 "                         const char *device);\n"
5721 "\n"
5722 msgstr ""
5723
5724 # type: textblock
5725 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5726 msgid ""
5727 "Returns a boolean indicating if the block device is read-only (true if read-"
5728 "only, false if not)."
5729 msgstr ""
5730
5731 # type: textblock
5732 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:1398
5733 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1893
5734 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1976
5735 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2046
5736 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2094
5737 #: ../src/guestfs-actions.pod:3050 ../src/guestfs-actions.pod:3064
5738 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3093
5739 #: ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3124
5740 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3154
5741 #: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3181
5742 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3211
5743 #: ../src/guestfs-actions.pod:4719
5744 msgid "This function returns a C truth value on success or -1 on error."
5745 msgstr ""
5746
5747 # type: =head2
5748 #: ../src/guestfs-actions.pod:700
5749 msgid "guestfs_blockdev_getsize64"
5750 msgstr ""
5751
5752 # type: verbatim
5753 #: ../src/guestfs-actions.pod:702
5754 #, no-wrap
5755 msgid ""
5756 " int64_t\n"
5757 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5758 "                             const char *device);\n"
5759 "\n"
5760 msgstr ""
5761
5762 # type: textblock
5763 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5764 msgid "This returns the size of the device in bytes."
5765 msgstr ""
5766
5767 # type: textblock
5768 #: ../src/guestfs-actions.pod:708
5769 msgid "See also C<guestfs_blockdev_getsz>."
5770 msgstr ""
5771
5772 # type: =head2
5773 #: ../src/guestfs-actions.pod:716
5774 msgid "guestfs_blockdev_getss"
5775 msgstr ""
5776
5777 # type: verbatim
5778 #: ../src/guestfs-actions.pod:718
5779 #, no-wrap
5780 msgid ""
5781 " int\n"
5782 " guestfs_blockdev_getss (guestfs_h *g,\n"
5783 "                         const char *device);\n"
5784 "\n"
5785 msgstr ""
5786
5787 # type: textblock
5788 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5789 msgid ""
5790 "This returns the size of sectors on a block device.  Usually 512, but can be "
5791 "larger for modern devices."
5792 msgstr ""
5793
5794 # type: textblock
5795 #: ../src/guestfs-actions.pod:725
5796 msgid ""
5797 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5798 "that)."
5799 msgstr ""
5800
5801 # type: =head2
5802 #: ../src/guestfs-actions.pod:734
5803 msgid "guestfs_blockdev_getsz"
5804 msgstr ""
5805
5806 # type: verbatim
5807 #: ../src/guestfs-actions.pod:736
5808 #, no-wrap
5809 msgid ""
5810 " int64_t\n"
5811 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5812 "                         const char *device);\n"
5813 "\n"
5814 msgstr ""
5815
5816 # type: textblock
5817 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5818 msgid ""
5819 "This returns the size of the device in units of 512-byte sectors (even if "
5820 "the sectorsize isn't 512 bytes ... weird)."
5821 msgstr ""
5822
5823 # type: textblock
5824 #: ../src/guestfs-actions.pod:743
5825 msgid ""
5826 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5827 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5828 msgstr ""
5829
5830 # type: =head2
5831 #: ../src/guestfs-actions.pod:753
5832 msgid "guestfs_blockdev_rereadpt"
5833 msgstr ""
5834
5835 # type: verbatim
5836 #: ../src/guestfs-actions.pod:755
5837 #, no-wrap
5838 msgid ""
5839 " int\n"
5840 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5841 "                            const char *device);\n"
5842 "\n"
5843 msgstr ""
5844
5845 # type: textblock
5846 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5847 msgid "Reread the partition table on C<device>."
5848 msgstr ""
5849
5850 # type: =head2
5851 #: ../src/guestfs-actions.pod:767
5852 msgid "guestfs_blockdev_setbsz"
5853 msgstr ""
5854
5855 # type: verbatim
5856 #: ../src/guestfs-actions.pod:769
5857 #, no-wrap
5858 msgid ""
5859 " int\n"
5860 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5861 "                          const char *device,\n"
5862 "                          int blocksize);\n"
5863 "\n"
5864 msgstr ""
5865
5866 # type: textblock
5867 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5868 msgid "This sets the block size of a device."
5869 msgstr ""
5870
5871 # type: =head2
5872 #: ../src/guestfs-actions.pod:785
5873 msgid "guestfs_blockdev_setro"
5874 msgstr ""
5875
5876 # type: verbatim
5877 #: ../src/guestfs-actions.pod:787
5878 #, no-wrap
5879 msgid ""
5880 " int\n"
5881 " guestfs_blockdev_setro (guestfs_h *g,\n"
5882 "                         const char *device);\n"
5883 "\n"
5884 msgstr ""
5885
5886 # type: textblock
5887 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5888 msgid "Sets the block device named C<device> to read-only."
5889 msgstr ""
5890
5891 # type: =head2
5892 #: ../src/guestfs-actions.pod:799
5893 msgid "guestfs_blockdev_setrw"
5894 msgstr ""
5895
5896 # type: verbatim
5897 #: ../src/guestfs-actions.pod:801
5898 #, no-wrap
5899 msgid ""
5900 " int\n"
5901 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5902 "                         const char *device);\n"
5903 "\n"
5904 msgstr ""
5905
5906 # type: textblock
5907 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5908 msgid "Sets the block device named C<device> to read-write."
5909 msgstr ""
5910
5911 # type: =head2
5912 #: ../src/guestfs-actions.pod:813
5913 msgid "guestfs_case_sensitive_path"
5914 msgstr ""
5915
5916 # type: verbatim
5917 #: ../src/guestfs-actions.pod:815
5918 #, no-wrap
5919 msgid ""
5920 " char *\n"
5921 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5922 "                              const char *path);\n"
5923 "\n"
5924 msgstr ""
5925
5926 # type: textblock
5927 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5928 msgid ""
5929 "This can be used to resolve case insensitive paths on a filesystem which is "
5930 "case sensitive.  The use case is to resolve paths which you have read from "
5931 "Windows configuration files or the Windows Registry, to the true path."
5932 msgstr ""
5933
5934 # type: textblock
5935 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5936 msgid ""
5937 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5938 "(and probably others), which is that although the underlying filesystem is "
5939 "case-insensitive, the driver exports the filesystem to Linux as case-"
5940 "sensitive."
5941 msgstr ""
5942
5943 # type: textblock
5944 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5945 msgid ""
5946 "One consequence of this is that special directories such as C<c:\\windows> "
5947 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5948 "precise details of how they were created.  In Windows itself this would not "
5949 "be a problem."
5950 msgstr ""
5951
5952 # type: textblock
5953 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5954 msgid ""
5955 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5956 "#posixfilenames1>"
5957 msgstr ""
5958
5959 # type: textblock
5960 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5961 msgid ""
5962 "This function resolves the true case of each element in the path and returns "
5963 "the case-sensitive path."
5964 msgstr ""
5965
5966 # type: textblock
5967 #: ../src/guestfs-actions.pod:841
5968 msgid ""
5969 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5970 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5971 "how the directories were originally created under Windows)."
5972 msgstr ""
5973
5974 # type: textblock
5975 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5976 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5977 msgstr ""
5978
5979 # type: textblock
5980 #: ../src/guestfs-actions.pod:849
5981 msgid "See also C<guestfs_realpath>."
5982 msgstr ""
5983
5984 # type: textblock
5985 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6661
5986 msgid "(Added in 1.0.75)"
5987 msgstr ""
5988
5989 # type: =head2
5990 #: ../src/guestfs-actions.pod:856
5991 msgid "guestfs_cat"
5992 msgstr ""
5993
5994 # type: verbatim
5995 #: ../src/guestfs-actions.pod:858
5996 #, no-wrap
5997 msgid ""
5998 " char *\n"
5999 " guestfs_cat (guestfs_h *g,\n"
6000 "              const char *path);\n"
6001 "\n"
6002 msgstr ""
6003
6004 # type: textblock
6005 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5206
6006 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3464
6007 msgid "Return the contents of the file named C<path>."
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:864
6012 msgid ""
6013 "Note that this function cannot correctly handle binary files (specifically, "
6014 "files containing C<\\0> character which is treated as end of string).  For "
6015 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
6016 "functions which have a more complex interface."
6017 msgstr ""
6018
6019 # type: textblock
6020 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1051
6021 #: ../src/guestfs-actions.pod:1071 ../src/guestfs-actions.pod:1362
6022 #: ../src/guestfs-actions.pod:1381 ../src/guestfs-actions.pod:1484
6023 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1752
6024 #: ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2217
6025 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2284
6026 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2330
6027 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5014
6028 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5171
6029 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:6046
6030 #: ../src/guestfs-actions.pod:6101 ../src/guestfs-actions.pod:6247
6031 #: ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6933
6032 #: ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6985
6033 #: ../src/guestfs-actions.pod:7004 ../src/guestfs-actions.pod:7089
6034 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7154
6035 #: ../src/guestfs-actions.pod:7173 ../fish/guestfish-actions.pod:582
6036 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
6037 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
6038 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
6039 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1482
6040 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:1520
6041 #: ../fish/guestfish-actions.pod:1535 ../fish/guestfish-actions.pod:1545
6042 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:3334
6043 #: ../fish/guestfish-actions.pod:3349 ../fish/guestfish-actions.pod:3425
6044 #: ../fish/guestfish-actions.pod:3442 ../fish/guestfish-actions.pod:3457
6045 #: ../fish/guestfish-actions.pod:4040 ../fish/guestfish-actions.pod:4086
6046 #: ../fish/guestfish-actions.pod:4171 ../fish/guestfish-actions.pod:4186
6047 #: ../fish/guestfish-actions.pod:4596 ../fish/guestfish-actions.pod:4614
6048 #: ../fish/guestfish-actions.pod:4631 ../fish/guestfish-actions.pod:4641
6049 #: ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4699
6050 #: ../fish/guestfish-actions.pod:4728 ../fish/guestfish-actions.pod:4738
6051 msgid ""
6052 "Because of the message protocol, there is a transfer limit of somewhere "
6053 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6054 msgstr ""
6055
6056 # type: textblock
6057 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:3320
6058 #: ../src/guestfs-actions.pod:3382 ../src/guestfs-actions.pod:3399
6059 #: ../src/guestfs-actions.pod:3487 ../src/guestfs-actions.pod:3892
6060 #: ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:5094
6061 #: ../src/guestfs-actions.pod:5108 ../src/guestfs-actions.pod:6820
6062 #: ../src/guestfs-actions.pod:6834
6063 msgid "(Added in 0.4)"
6064 msgstr ""
6065
6066 # type: =head2
6067 #: ../src/guestfs-actions.pod:877
6068 msgid "guestfs_checksum"
6069 msgstr ""
6070
6071 # type: verbatim
6072 #: ../src/guestfs-actions.pod:879
6073 #, no-wrap
6074 msgid ""
6075 " char *\n"
6076 " guestfs_checksum (guestfs_h *g,\n"
6077 "                   const char *csumtype,\n"
6078 "                   const char *path);\n"
6079 "\n"
6080 msgstr ""
6081
6082 # type: textblock
6083 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
6084 msgid ""
6085 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6086 msgstr ""
6087
6088 # type: textblock
6089 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
6090 msgid ""
6091 "The type of checksum to compute is given by the C<csumtype> parameter which "
6092 "must have one of the following values:"
6093 msgstr ""
6094
6095 # type: =item
6096 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
6097 msgid "C<crc>"
6098 msgstr ""
6099
6100 # type: textblock
6101 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
6102 msgid ""
6103 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6104 "C<cksum> command."
6105 msgstr ""
6106
6107 # type: =item
6108 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
6109 msgid "C<md5>"
6110 msgstr ""
6111
6112 # type: textblock
6113 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
6114 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6115 msgstr ""
6116
6117 # type: =item
6118 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
6119 msgid "C<sha1>"
6120 msgstr ""
6121
6122 # type: textblock
6123 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
6124 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6125 msgstr ""
6126
6127 # type: =item
6128 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
6129 msgid "C<sha224>"
6130 msgstr ""
6131
6132 # type: textblock
6133 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
6134 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6135 msgstr ""
6136
6137 # type: =item
6138 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
6139 msgid "C<sha256>"
6140 msgstr ""
6141
6142 # type: textblock
6143 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
6144 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6145 msgstr ""
6146
6147 # type: =item
6148 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
6149 msgid "C<sha384>"
6150 msgstr ""
6151
6152 # type: textblock
6153 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
6154 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6155 msgstr ""
6156
6157 # type: =item
6158 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
6159 msgid "C<sha512>"
6160 msgstr ""
6161
6162 # type: textblock
6163 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
6164 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6165 msgstr ""
6166
6167 # type: textblock
6168 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
6169 msgid "The checksum is returned as a printable string."
6170 msgstr ""
6171
6172 # type: textblock
6173 #: ../src/guestfs-actions.pod:925
6174 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6175 msgstr ""
6176
6177 # type: textblock
6178 #: ../src/guestfs-actions.pod:927
6179 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6180 msgstr ""
6181
6182 # type: textblock
6183 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:1240
6184 #: ../src/guestfs-actions.pod:2062 ../src/guestfs-actions.pod:3066
6185 #: ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3156
6186 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:6517
6187 msgid "(Added in 1.0.2)"
6188 msgstr ""
6189
6190 # type: =head2
6191 #: ../src/guestfs-actions.pod:934
6192 msgid "guestfs_checksum_device"
6193 msgstr ""
6194
6195 # type: verbatim
6196 #: ../src/guestfs-actions.pod:936
6197 #, no-wrap
6198 msgid ""
6199 " char *\n"
6200 " guestfs_checksum_device (guestfs_h *g,\n"
6201 "                          const char *csumtype,\n"
6202 "                          const char *device);\n"
6203 "\n"
6204 msgstr ""
6205
6206 # type: textblock
6207 #: ../src/guestfs-actions.pod:941
6208 msgid ""
6209 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6210 "device named C<device>.  For the types of checksums supported see the "
6211 "C<guestfs_checksum> command."
6212 msgstr ""
6213
6214 # type: textblock
6215 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:4625
6216 #: ../src/guestfs-actions.pod:4684 ../src/guestfs-actions.pod:4721
6217 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4915
6218 #: ../src/guestfs-actions.pod:6426 ../src/guestfs-actions.pod:6440
6219 #: ../src/guestfs-actions.pod:6846
6220 msgid "(Added in 1.3.2)"
6221 msgstr ""
6222
6223 # type: =head2
6224 #: ../src/guestfs-actions.pod:950
6225 msgid "guestfs_checksums_out"
6226 msgstr ""
6227
6228 # type: verbatim
6229 #: ../src/guestfs-actions.pod:952
6230 #, no-wrap
6231 msgid ""
6232 " int\n"
6233 " guestfs_checksums_out (guestfs_h *g,\n"
6234 "                        const char *csumtype,\n"
6235 "                        const char *directory,\n"
6236 "                        const char *sumsfile);\n"
6237 "\n"
6238 msgstr ""
6239
6240 # type: textblock
6241 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
6242 msgid ""
6243 "This command computes the checksums of all regular files in C<directory> and "
6244 "then emits a list of those checksums to the local output file C<sumsfile>."
6245 msgstr ""
6246
6247 # type: textblock
6248 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
6249 msgid ""
6250 "This can be used for verifying the integrity of a virtual machine.  However "
6251 "to be properly secure you should pay attention to the output of the checksum "
6252 "command (it uses the ones from GNU coreutils).  In particular when the "
6253 "filename is not printable, coreutils uses a special backslash syntax.  For "
6254 "more information, see the GNU coreutils info file."
6255 msgstr ""
6256
6257 # type: textblock
6258 #: ../src/guestfs-actions.pod:972
6259 msgid "(Added in 1.3.7)"
6260 msgstr ""
6261
6262 # type: =head2
6263 #: ../src/guestfs-actions.pod:974
6264 msgid "guestfs_chmod"
6265 msgstr ""
6266
6267 # type: verbatim
6268 #: ../src/guestfs-actions.pod:976
6269 #, no-wrap
6270 msgid ""
6271 " int\n"
6272 " guestfs_chmod (guestfs_h *g,\n"
6273 "                int mode,\n"
6274 "                const char *path);\n"
6275 "\n"
6276 msgstr ""
6277
6278 # type: textblock
6279 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
6280 msgid ""
6281 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6282 "supported."
6283 msgstr ""
6284
6285 # type: textblock
6286 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
6287 msgid ""
6288 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6289 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6290 "C<700>."
6291 msgstr ""
6292
6293 # type: textblock
6294 #: ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:4143
6295 #: ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4343
6296 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:671
6297 #: ../fish/guestfish-actions.pod:2793 ../fish/guestfish-actions.pod:2909
6298 #: ../fish/guestfish-actions.pod:2919 ../fish/guestfish-actions.pod:2929
6299 msgid "The mode actually set is affected by the umask."
6300 msgstr ""
6301
6302 # type: =head2
6303 #: ../src/guestfs-actions.pod:994
6304 msgid "guestfs_chown"
6305 msgstr ""
6306
6307 # type: verbatim
6308 #: ../src/guestfs-actions.pod:996
6309 #, no-wrap
6310 msgid ""
6311 " int\n"
6312 " guestfs_chown (guestfs_h *g,\n"
6313 "                int owner,\n"
6314 "                int group,\n"
6315 "                const char *path);\n"
6316 "\n"
6317 msgstr ""
6318
6319 # type: textblock
6320 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
6321 msgid "Change the file owner to C<owner> and group to C<group>."
6322 msgstr ""
6323
6324 # type: textblock
6325 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3253
6326 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2251
6327 msgid ""
6328 "Only numeric uid and gid are supported.  If you want to use names, you will "
6329 "need to locate and parse the password file yourself (Augeas support makes "
6330 "this relatively easy)."
6331 msgstr ""
6332
6333 # type: =head2
6334 #: ../src/guestfs-actions.pod:1012
6335 msgid "guestfs_command"
6336 msgstr ""
6337
6338 # type: verbatim
6339 #: ../src/guestfs-actions.pod:1014
6340 #, no-wrap
6341 msgid ""
6342 " char *\n"
6343 " guestfs_command (guestfs_h *g,\n"
6344 "                  char *const *arguments);\n"
6345 "\n"
6346 msgstr ""
6347
6348 # type: textblock
6349 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
6350 msgid ""
6351 "This call runs a command from the guest filesystem.  The filesystem must be "
6352 "mounted, and must contain a compatible operating system (ie. something "
6353 "Linux, with the same or compatible processor architecture)."
6354 msgstr ""
6355
6356 # type: textblock
6357 #: ../src/guestfs-actions.pod:1023
6358 msgid ""
6359 "The single parameter is an argv-style list of arguments.  The first element "
6360 "is the name of the program to run.  Subsequent elements are parameters.  The "
6361 "list must be non-empty (ie. must contain a program name).  Note that the "
6362 "command runs directly, and is I<not> invoked via the shell (see "
6363 "C<guestfs_sh>)."
6364 msgstr ""
6365
6366 # type: textblock
6367 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
6368 msgid "The return value is anything printed to I<stdout> by the command."
6369 msgstr ""
6370
6371 # type: textblock
6372 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
6373 msgid ""
6374 "If the command returns a non-zero exit status, then this function returns an "
6375 "error message.  The error message string is the content of I<stderr> from "
6376 "the command."
6377 msgstr ""
6378
6379 # type: textblock
6380 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
6381 msgid ""
6382 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6383 "bin>.  If you require a program from another location, you should provide "
6384 "the full path in the first parameter."
6385 msgstr ""
6386
6387 # type: textblock
6388 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
6389 msgid ""
6390 "Shared libraries and data files required by the program must be available on "
6391 "filesystems which are mounted in the correct places.  It is the caller's "
6392 "responsibility to ensure all filesystems that are needed are mounted at the "
6393 "right locations."
6394 msgstr ""
6395
6396 # type: textblock
6397 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074
6398 #: ../src/guestfs-actions.pod:1537
6399 msgid "(Added in 0.9.1)"
6400 msgstr ""
6401
6402 # type: =head2
6403 #: ../src/guestfs-actions.pod:1056
6404 msgid "guestfs_command_lines"
6405 msgstr ""
6406
6407 # type: verbatim
6408 #: ../src/guestfs-actions.pod:1058
6409 #, no-wrap
6410 msgid ""
6411 " char **\n"
6412 " guestfs_command_lines (guestfs_h *g,\n"
6413 "                        char *const *arguments);\n"
6414 "\n"
6415 msgstr ""
6416
6417 # type: textblock
6418 #: ../src/guestfs-actions.pod:1062
6419 msgid ""
6420 "This is the same as C<guestfs_command>, but splits the result into a list of "
6421 "lines."
6422 msgstr ""
6423
6424 # type: textblock
6425 #: ../src/guestfs-actions.pod:1065
6426 msgid "See also: C<guestfs_sh_lines>"
6427 msgstr ""
6428
6429 # type: =head2
6430 #: ../src/guestfs-actions.pod:1076
6431 msgid "guestfs_config"
6432 msgstr ""
6433
6434 # type: verbatim
6435 #: ../src/guestfs-actions.pod:1078
6436 #, no-wrap
6437 msgid ""
6438 " int\n"
6439 " guestfs_config (guestfs_h *g,\n"
6440 "                 const char *qemuparam,\n"
6441 "                 const char *qemuvalue);\n"
6442 "\n"
6443 msgstr ""
6444
6445 # type: textblock
6446 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6447 msgid ""
6448 "This can be used to add arbitrary qemu command line parameters of the form "
6449 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6450 "setting some parameters which would interfere with parameters that we use."
6451 msgstr ""
6452
6453 # type: textblock
6454 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6455 msgid "The first character of C<param> string must be a C<-> (dash)."
6456 msgstr ""
6457
6458 # type: textblock
6459 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6460 msgid "C<value> can be NULL."
6461 msgstr ""
6462
6463 # type: =head2
6464 #: ../src/guestfs-actions.pod:1096
6465 msgid "guestfs_copy_size"
6466 msgstr ""
6467
6468 # type: verbatim
6469 #: ../src/guestfs-actions.pod:1098
6470 #, no-wrap
6471 msgid ""
6472 " int\n"
6473 " guestfs_copy_size (guestfs_h *g,\n"
6474 "                    const char *src,\n"
6475 "                    const char *dest,\n"
6476 "                    int64_t size);\n"
6477 "\n"
6478 msgstr ""
6479
6480 # type: textblock
6481 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6482 msgid ""
6483 "This command copies exactly C<size> bytes from one source device or file "
6484 "C<src> to another destination device or file C<dest>."
6485 msgstr ""
6486
6487 # type: textblock
6488 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6489 msgid ""
6490 "Note this will fail if the source is too short or if the destination is not "
6491 "large enough."
6492 msgstr ""
6493
6494 # type: textblock
6495 #: ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1235
6496 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1686
6497 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:6512
6498 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:7025
6499 #: ../src/guestfs-actions.pod:7044
6500 msgid ""
6501 "This long-running command can generate progress notification messages so "
6502 "that the caller can display a progress bar or indicator.  To receive these "
6503 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6504 "guestfs_set_progress_callback>."
6505 msgstr ""
6506
6507 # type: textblock
6508 #: ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:3919
6509 #: ../src/guestfs-actions.pod:5121 ../src/guestfs-actions.pod:6753
6510 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6859
6511 msgid "(Added in 1.0.87)"
6512 msgstr ""
6513
6514 # type: =head2
6515 #: ../src/guestfs-actions.pod:1119
6516 msgid "guestfs_cp"
6517 msgstr ""
6518
6519 # type: verbatim
6520 #: ../src/guestfs-actions.pod:1121
6521 #, no-wrap
6522 msgid ""
6523 " int\n"
6524 " guestfs_cp (guestfs_h *g,\n"
6525 "             const char *src,\n"
6526 "             const char *dest);\n"
6527 "\n"
6528 msgstr ""
6529
6530 # type: textblock
6531 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6532 msgid ""
6533 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6534 "destination filename or destination directory."
6535 msgstr ""
6536
6537 # type: textblock
6538 #: ../src/guestfs-actions.pod:1131 ../src/guestfs-actions.pod:1145
6539 #: ../src/guestfs-actions.pod:1217 ../src/guestfs-actions.pod:1291
6540 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:4588
6541 #: ../src/guestfs-actions.pod:4965
6542 msgid "(Added in 1.0.18)"
6543 msgstr ""
6544
6545 # type: =head2
6546 #: ../src/guestfs-actions.pod:1133
6547 msgid "guestfs_cp_a"
6548 msgstr ""
6549
6550 # type: verbatim
6551 #: ../src/guestfs-actions.pod:1135
6552 #, no-wrap
6553 msgid ""
6554 " int\n"
6555 " guestfs_cp_a (guestfs_h *g,\n"
6556 "               const char *src,\n"
6557 "               const char *dest);\n"
6558 "\n"
6559 msgstr ""
6560
6561 # type: textblock
6562 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6563 msgid ""
6564 "This copies a file or directory from C<src> to C<dest> recursively using the "
6565 "C<cp -a> command."
6566 msgstr ""
6567
6568 # type: =head2
6569 #: ../src/guestfs-actions.pod:1147
6570 msgid "guestfs_dd"
6571 msgstr ""
6572
6573 # type: verbatim
6574 #: ../src/guestfs-actions.pod:1149
6575 #, no-wrap
6576 msgid ""
6577 " int\n"
6578 " guestfs_dd (guestfs_h *g,\n"
6579 "             const char *src,\n"
6580 "             const char *dest);\n"
6581 "\n"
6582 msgstr ""
6583
6584 # type: textblock
6585 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6586 msgid ""
6587 "This command copies from one source device or file C<src> to another "
6588 "destination device or file C<dest>.  Normally you would use this to copy to "
6589 "or from a device or partition, for example to duplicate a filesystem."
6590 msgstr ""
6591
6592 # type: textblock
6593 #: ../src/guestfs-actions.pod:1159
6594 msgid ""
6595 "If the destination is a device, it must be as large or larger than the "
6596 "source file or device, otherwise the copy will fail.  This command cannot do "
6597 "partial copies (see C<guestfs_copy_size>)."
6598 msgstr ""
6599
6600 # type: =head2
6601 #: ../src/guestfs-actions.pod:1167
6602 msgid "guestfs_df"
6603 msgstr ""
6604
6605 # type: verbatim
6606 #: ../src/guestfs-actions.pod:1169
6607 #, no-wrap
6608 msgid ""
6609 " char *\n"
6610 " guestfs_df (guestfs_h *g);\n"
6611 "\n"
6612 msgstr ""
6613
6614 # type: textblock
6615 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6616 msgid "This command runs the C<df> command to report disk space used."
6617 msgstr ""
6618
6619 # type: textblock
6620 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191
6621 msgid ""
6622 "This command is mostly useful for interactive sessions.  It is I<not> "
6623 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
6624 "from programs."
6625 msgstr ""
6626
6627 # type: textblock
6628 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1198
6629 #: ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2263
6630 #: ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2355
6631 #: ../src/guestfs-actions.pod:4029 ../src/guestfs-actions.pod:4488
6632 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6274
6633 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6905
6634 #: ../src/guestfs-actions.pod:6918
6635 msgid "(Added in 1.0.54)"
6636 msgstr ""
6637
6638 # type: =head2
6639 #: ../src/guestfs-actions.pod:1183
6640 msgid "guestfs_df_h"
6641 msgstr ""
6642
6643 # type: verbatim
6644 #: ../src/guestfs-actions.pod:1185
6645 #, no-wrap
6646 msgid ""
6647 " char *\n"
6648 " guestfs_df_h (guestfs_h *g);\n"
6649 "\n"
6650 msgstr ""
6651
6652 # type: textblock
6653 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6654 msgid ""
6655 "This command runs the C<df -h> command to report disk space used in human-"
6656 "readable format."
6657 msgstr ""
6658
6659 # type: =head2
6660 #: ../src/guestfs-actions.pod:1200
6661 msgid "guestfs_dmesg"
6662 msgstr ""
6663
6664 # type: verbatim
6665 #: ../src/guestfs-actions.pod:1202
6666 #, no-wrap
6667 msgid ""
6668 " char *\n"
6669 " guestfs_dmesg (guestfs_h *g);\n"
6670 "\n"
6671 msgstr ""
6672
6673 # type: textblock
6674 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6675 msgid ""
6676 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6677 "This is sometimes useful for extended debugging of problems."
6678 msgstr ""
6679
6680 # type: textblock
6681 #: ../src/guestfs-actions.pod:1209
6682 msgid ""
6683 "Another way to get the same information is to enable verbose messages with "
6684 "C<guestfs_set_verbose> or by setting the environment variable "
6685 "C<LIBGUESTFS_DEBUG=1> before running the program."
6686 msgstr ""
6687
6688 # type: =head2
6689 #: ../src/guestfs-actions.pod:1219
6690 msgid "guestfs_download"
6691 msgstr ""
6692
6693 # type: verbatim
6694 #: ../src/guestfs-actions.pod:1221
6695 #, no-wrap
6696 msgid ""
6697 " int\n"
6698 " guestfs_download (guestfs_h *g,\n"
6699 "                   const char *remotefilename,\n"
6700 "                   const char *filename);\n"
6701 "\n"
6702 msgstr ""
6703
6704 # type: textblock
6705 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251
6706 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6707 msgid ""
6708 "Download file C<remotefilename> and save it as C<filename> on the local "
6709 "machine."
6710 msgstr ""
6711
6712 # type: textblock
6713 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6506
6714 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4344
6715 msgid "C<filename> can also be a named pipe."
6716 msgstr ""
6717
6718 # type: textblock
6719 #: ../src/guestfs-actions.pod:1231
6720 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6721 msgstr ""
6722
6723 # type: =head2
6724 #: ../src/guestfs-actions.pod:1242
6725 msgid "guestfs_download_offset"
6726 msgstr ""
6727
6728 # type: verbatim
6729 #: ../src/guestfs-actions.pod:1244
6730 #, no-wrap
6731 msgid ""
6732 " int\n"
6733 " guestfs_download_offset (guestfs_h *g,\n"
6734 "                          const char *remotefilename,\n"
6735 "                          const char *filename,\n"
6736 "                          int64_t offset,\n"
6737 "                          int64_t size);\n"
6738 "\n"
6739 msgstr ""
6740
6741 # type: textblock
6742 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6743 msgid ""
6744 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6745 "region must be within the file or device)."
6746 msgstr ""
6747
6748 # type: textblock
6749 #: ../src/guestfs-actions.pod:1257
6750 msgid ""
6751 "Note that there is no limit on the amount of data that can be downloaded "
6752 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6753 "full amount unless an error occurs."
6754 msgstr ""
6755
6756 # type: textblock
6757 #: ../src/guestfs-actions.pod:1262
6758 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6759 msgstr ""
6760
6761 # type: textblock
6762 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6551
6763 msgid "(Added in 1.5.17)"
6764 msgstr ""
6765
6766 # type: =head2
6767 #: ../src/guestfs-actions.pod:1273
6768 msgid "guestfs_drop_caches"
6769 msgstr ""
6770
6771 # type: verbatim
6772 #: ../src/guestfs-actions.pod:1275
6773 #, no-wrap
6774 msgid ""
6775 " int\n"
6776 " guestfs_drop_caches (guestfs_h *g,\n"
6777 "                      int whattodrop);\n"
6778 "\n"
6779 msgstr ""
6780
6781 # type: textblock
6782 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6783 msgid ""
6784 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6785 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6786 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6787 msgstr ""
6788
6789 # type: textblock
6790 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6791 msgid "Setting C<whattodrop> to 3 should drop everything."
6792 msgstr ""
6793
6794 # type: textblock
6795 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6796 msgid ""
6797 "This automatically calls L<sync(2)> before the operation, so that the "
6798 "maximum guest memory is freed."
6799 msgstr ""
6800
6801 # type: =head2
6802 #: ../src/guestfs-actions.pod:1293
6803 msgid "guestfs_du"
6804 msgstr ""
6805
6806 # type: verbatim
6807 #: ../src/guestfs-actions.pod:1295
6808 #, no-wrap
6809 msgid ""
6810 " int64_t\n"
6811 " guestfs_du (guestfs_h *g,\n"
6812 "             const char *path);\n"
6813 "\n"
6814 msgstr ""
6815
6816 # type: textblock
6817 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6818 msgid ""
6819 "This command runs the C<du -s> command to estimate file space usage for "
6820 "C<path>."
6821 msgstr ""
6822
6823 # type: textblock
6824 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6825 msgid ""
6826 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6827 "estimate includes the contents of the directory and all subdirectories "
6828 "(recursively)."
6829 msgstr ""
6830
6831 # type: textblock
6832 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6833 msgid ""
6834 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6835 msgstr ""
6836
6837 # type: =head2
6838 #: ../src/guestfs-actions.pod:1313
6839 msgid "guestfs_e2fsck_f"
6840 msgstr ""
6841
6842 # type: verbatim
6843 #: ../src/guestfs-actions.pod:1315
6844 #, no-wrap
6845 msgid ""
6846 " int\n"
6847 " guestfs_e2fsck_f (guestfs_h *g,\n"
6848 "                   const char *device);\n"
6849 "\n"
6850 msgstr ""
6851
6852 # type: textblock
6853 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6854 msgid ""
6855 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6856 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6857 "clean (C<-f>)."
6858 msgstr ""
6859
6860 # type: textblock
6861 #: ../src/guestfs-actions.pod:1323
6862 msgid ""
6863 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6864 "Normally you should use C<guestfs_fsck>."
6865 msgstr ""
6866
6867 # type: textblock
6868 #: ../src/guestfs-actions.pod:1328
6869 msgid "(Added in 1.0.29)"
6870 msgstr ""
6871
6872 # type: =head2
6873 #: ../src/guestfs-actions.pod:1330
6874 msgid "guestfs_echo_daemon"
6875 msgstr ""
6876
6877 # type: verbatim
6878 #: ../src/guestfs-actions.pod:1332
6879 #, no-wrap
6880 msgid ""
6881 " char *\n"
6882 " guestfs_echo_daemon (guestfs_h *g,\n"
6883 "                      char *const *words);\n"
6884 "\n"
6885 msgstr ""
6886
6887 # type: textblock
6888 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6889 msgid ""
6890 "This command concatenates the list of C<words> passed with single spaces "
6891 "between them and returns the resulting string."
6892 msgstr ""
6893
6894 # type: textblock
6895 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6896 msgid "You can use this command to test the connection through to the daemon."
6897 msgstr ""
6898
6899 # type: textblock
6900 #: ../src/guestfs-actions.pod:1341
6901 msgid "See also C<guestfs_ping_daemon>."
6902 msgstr ""
6903
6904 # type: textblock
6905 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073
6906 #: ../src/guestfs-actions.pod:5754
6907 msgid "(Added in 1.0.69)"
6908 msgstr ""
6909
6910 # type: =head2
6911 #: ../src/guestfs-actions.pod:1348
6912 msgid "guestfs_egrep"
6913 msgstr ""
6914
6915 # type: verbatim
6916 #: ../src/guestfs-actions.pod:1350
6917 #, no-wrap
6918 msgid ""
6919 " char **\n"
6920 " guestfs_egrep (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:1355 ../fish/guestfish-actions.pod:902
6928 msgid ""
6929 "This calls the external C<egrep> program and returns the matching lines."
6930 msgstr ""
6931
6932 # type: textblock
6933 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1384
6934 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1487
6935 #: ../src/guestfs-actions.pod:1506 ../src/guestfs-actions.pod:2201
6936 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2376
6937 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2404
6938 #: ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2472
6939 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:3412
6940 #: ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3439
6941 #: ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:4423
6942 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5348
6943 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6130
6944 #: ../src/guestfs-actions.pod:6143 ../src/guestfs-actions.pod:6156
6945 #: ../src/guestfs-actions.pod:6178 ../src/guestfs-actions.pod:6191
6946 #: ../src/guestfs-actions.pod:6204 ../src/guestfs-actions.pod:6217
6947 #: ../src/guestfs-actions.pod:6988 ../src/guestfs-actions.pod:7007
6948 #: ../src/guestfs-actions.pod:7092 ../src/guestfs-actions.pod:7111
6949 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7176
6950 msgid "(Added in 1.0.66)"
6951 msgstr ""
6952
6953 # type: =head2
6954 #: ../src/guestfs-actions.pod:1367
6955 msgid "guestfs_egrepi"
6956 msgstr ""
6957
6958 # type: verbatim
6959 #: ../src/guestfs-actions.pod:1369
6960 #, no-wrap
6961 msgid ""
6962 " char **\n"
6963 " guestfs_egrepi (guestfs_h *g,\n"
6964 "                 const char *regex,\n"
6965 "                 const char *path);\n"
6966 "\n"
6967 msgstr ""
6968
6969 # type: textblock
6970 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6971 msgid ""
6972 "This calls the external C<egrep -i> program and returns the matching lines."
6973 msgstr ""
6974
6975 # type: =head2
6976 #: ../src/guestfs-actions.pod:1386
6977 msgid "guestfs_equal"
6978 msgstr ""
6979
6980 # type: verbatim
6981 #: ../src/guestfs-actions.pod:1388
6982 #, no-wrap
6983 msgid ""
6984 " int\n"
6985 " guestfs_equal (guestfs_h *g,\n"
6986 "                const char *file1,\n"
6987 "                const char *file2);\n"
6988 "\n"
6989 msgstr ""
6990
6991 # type: textblock
6992 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6993 msgid ""
6994 "This compares the two files C<file1> and C<file2> and returns true if their "
6995 "content is exactly equal, or false otherwise."
6996 msgstr ""
6997
6998 # type: textblock
6999 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
7000 msgid "The external L<cmp(1)> program is used for the comparison."
7001 msgstr ""
7002
7003 # type: =head2
7004 #: ../src/guestfs-actions.pod:1402
7005 msgid "guestfs_exists"
7006 msgstr ""
7007
7008 # type: verbatim
7009 #: ../src/guestfs-actions.pod:1404
7010 #, no-wrap
7011 msgid ""
7012 " int\n"
7013 " guestfs_exists (guestfs_h *g,\n"
7014 "                 const char *path);\n"
7015 "\n"
7016 msgstr ""
7017
7018 # type: textblock
7019 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
7020 msgid ""
7021 "This returns C<true> if and only if there is a file, directory (or anything) "
7022 "with the given C<path> name."
7023 msgstr ""
7024
7025 # type: textblock
7026 #: ../src/guestfs-actions.pod:1411
7027 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
7028 msgstr ""
7029
7030 # type: =head2
7031 #: ../src/guestfs-actions.pod:1417
7032 msgid "guestfs_fallocate"
7033 msgstr ""
7034
7035 # type: verbatim
7036 #: ../src/guestfs-actions.pod:1419
7037 #, no-wrap
7038 msgid ""
7039 " int\n"
7040 " guestfs_fallocate (guestfs_h *g,\n"
7041 "                    const char *path,\n"
7042 "                    int len);\n"
7043 "\n"
7044 msgstr ""
7045
7046 # type: textblock
7047 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450
7048 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
7049 msgid ""
7050 "This command preallocates a file (containing zero bytes) named C<path> of "
7051 "size C<len> bytes.  If the file exists already, it is overwritten."
7052 msgstr ""
7053
7054 # type: textblock
7055 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
7056 msgid ""
7057 "Do not confuse this with the guestfish-specific C<alloc> command which "
7058 "allocates a file in the host and attaches it as a device."
7059 msgstr ""
7060
7061 # type: textblock
7062 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
7063 msgid ""
7064 "This function is deprecated.  In new code, use the C<fallocate64> call "
7065 "instead."
7066 msgstr ""
7067
7068 # type: =head2
7069 #: ../src/guestfs-actions.pod:1443
7070 msgid "guestfs_fallocate64"
7071 msgstr ""
7072
7073 # type: verbatim
7074 #: ../src/guestfs-actions.pod:1445
7075 #, no-wrap
7076 msgid ""
7077 " int\n"
7078 " guestfs_fallocate64 (guestfs_h *g,\n"
7079 "                      const char *path,\n"
7080 "                      int64_t len);\n"
7081 "\n"
7082 msgstr ""
7083
7084 # type: textblock
7085 #: ../src/guestfs-actions.pod:1454
7086 msgid ""
7087 "Note that this call allocates disk blocks for the file.  To create a sparse "
7088 "file use C<guestfs_truncate_size> instead."
7089 msgstr ""
7090
7091 # type: textblock
7092 #: ../src/guestfs-actions.pod:1457
7093 msgid ""
7094 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
7095 "oversight it only allowed 30 bit lengths to be specified, effectively "
7096 "limiting the maximum size of files created through that call to 1GB."
7097 msgstr ""
7098
7099 # type: textblock
7100 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
7101 msgid ""
7102 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7103 "commands which create a file in the host and attach it as a device."
7104 msgstr ""
7105
7106 # type: textblock
7107 #: ../src/guestfs-actions.pod:1468
7108 msgid "(Added in 1.3.17)"
7109 msgstr ""
7110
7111 # type: =head2
7112 #: ../src/guestfs-actions.pod:1470
7113 msgid "guestfs_fgrep"
7114 msgstr ""
7115
7116 # type: verbatim
7117 #: ../src/guestfs-actions.pod:1472
7118 #, no-wrap
7119 msgid ""
7120 " char **\n"
7121 " guestfs_fgrep (guestfs_h *g,\n"
7122 "                const char *pattern,\n"
7123 "                const char *path);\n"
7124 "\n"
7125 msgstr ""
7126
7127 # type: textblock
7128 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
7129 msgid ""
7130 "This calls the external C<fgrep> program and returns the matching lines."
7131 msgstr ""
7132
7133 # type: =head2
7134 #: ../src/guestfs-actions.pod:1489
7135 msgid "guestfs_fgrepi"
7136 msgstr ""
7137
7138 # type: verbatim
7139 #: ../src/guestfs-actions.pod:1491
7140 #, no-wrap
7141 msgid ""
7142 " char **\n"
7143 " guestfs_fgrepi (guestfs_h *g,\n"
7144 "                 const char *pattern,\n"
7145 "                 const char *path);\n"
7146 "\n"
7147 msgstr ""
7148
7149 # type: textblock
7150 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
7151 msgid ""
7152 "This calls the external C<fgrep -i> program and returns the matching lines."
7153 msgstr ""
7154
7155 # type: =head2
7156 #: ../src/guestfs-actions.pod:1508
7157 msgid "guestfs_file"
7158 msgstr ""
7159
7160 # type: verbatim
7161 #: ../src/guestfs-actions.pod:1510
7162 #, no-wrap
7163 msgid ""
7164 " char *\n"
7165 " guestfs_file (guestfs_h *g,\n"
7166 "               const char *path);\n"
7167 "\n"
7168 msgstr ""
7169
7170 # type: textblock
7171 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
7172 msgid ""
7173 "This call uses the standard L<file(1)> command to determine the type or "
7174 "contents of the file."
7175 msgstr ""
7176
7177 # type: textblock
7178 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
7179 msgid ""
7180 "This call will also transparently look inside various types of compressed "
7181 "file."
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
7186 msgid ""
7187 "The exact command which runs is C<file -zb path>.  Note in particular that "
7188 "the filename is not prepended to the output (the C<-b> option)."
7189 msgstr ""
7190
7191 # type: textblock
7192 #: ../src/guestfs-actions.pod:1524
7193 msgid ""
7194 "This command can also be used on C</dev/> devices (and partitions, LV "
7195 "names).  You can for example use this to determine if a device contains a "
7196 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7197 msgstr ""
7198
7199 # type: textblock
7200 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
7201 msgid ""
7202 "If the C<path> does not begin with C</dev/> then this command only works for "
7203 "the content of regular files.  For other file types (directory, symbolic "
7204 "link etc) it will just return the string C<directory> etc."
7205 msgstr ""
7206
7207 # type: =head2
7208 #: ../src/guestfs-actions.pod:1539
7209 msgid "guestfs_file_architecture"
7210 msgstr ""
7211
7212 # type: verbatim
7213 #: ../src/guestfs-actions.pod:1541
7214 #, no-wrap
7215 msgid ""
7216 " char *\n"
7217 " guestfs_file_architecture (guestfs_h *g,\n"
7218 "                            const char *filename);\n"
7219 "\n"
7220 msgstr ""
7221
7222 # type: textblock
7223 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
7224 msgid ""
7225 "This detects the architecture of the binary C<filename>, and returns it if "
7226 "known."
7227 msgstr ""
7228
7229 # type: textblock
7230 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
7231 msgid "Currently defined architectures are:"
7232 msgstr ""
7233
7234 # type: =item
7235 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
7236 msgid "\"i386\""
7237 msgstr ""
7238
7239 # type: textblock
7240 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
7241 msgid ""
7242 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7243 "irrespective of the precise processor requirements of the binary."
7244 msgstr ""
7245
7246 # type: =item
7247 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
7248 msgid "\"x86_64\""
7249 msgstr ""
7250
7251 # type: textblock
7252 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
7253 msgid "64 bit x86-64."
7254 msgstr ""
7255
7256 # type: =item
7257 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
7258 msgid "\"sparc\""
7259 msgstr ""
7260
7261 # type: textblock
7262 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
7263 msgid "32 bit SPARC."
7264 msgstr ""
7265
7266 # type: =item
7267 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
7268 msgid "\"sparc64\""
7269 msgstr ""
7270
7271 # type: textblock
7272 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
7273 msgid "64 bit SPARC V9 and above."
7274 msgstr ""
7275
7276 # type: =item
7277 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
7278 msgid "\"ia64\""
7279 msgstr ""
7280
7281 # type: textblock
7282 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
7283 msgid "Intel Itanium."
7284 msgstr ""
7285
7286 # type: =item
7287 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
7288 msgid "\"ppc\""
7289 msgstr ""
7290
7291 # type: textblock
7292 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
7293 msgid "32 bit Power PC."
7294 msgstr ""
7295
7296 # type: =item
7297 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
7298 msgid "\"ppc64\""
7299 msgstr ""
7300
7301 # type: textblock
7302 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
7303 msgid "64 bit Power PC."
7304 msgstr ""
7305
7306 # type: textblock
7307 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
7308 msgid "Libguestfs may return other architecture strings in future."
7309 msgstr ""
7310
7311 # type: textblock
7312 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
7313 msgid "The function works on at least the following types of files:"
7314 msgstr ""
7315
7316 # type: textblock
7317 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
7318 msgid "many types of Un*x and Linux binary"
7319 msgstr ""
7320
7321 # type: textblock
7322 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
7323 msgid "many types of Un*x and Linux shared library"
7324 msgstr ""
7325
7326 # type: textblock
7327 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
7328 msgid "Windows Win32 and Win64 binaries"
7329 msgstr ""
7330
7331 # type: textblock
7332 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
7333 msgid "Windows Win32 and Win64 DLLs"
7334 msgstr ""
7335
7336 # type: textblock
7337 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
7338 msgid "Win32 binaries and DLLs return C<i386>."
7339 msgstr ""
7340
7341 # type: textblock
7342 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
7343 msgid "Win64 binaries and DLLs return C<x86_64>."
7344 msgstr ""
7345
7346 # type: textblock
7347 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
7348 msgid "Linux kernel modules"
7349 msgstr ""
7350
7351 # type: textblock
7352 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
7353 msgid "Linux new-style initrd images"
7354 msgstr ""
7355
7356 # type: textblock
7357 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
7358 msgid "some non-x86 Linux vmlinuz kernels"
7359 msgstr ""
7360
7361 # type: textblock
7362 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
7363 msgid "What it can't do currently:"
7364 msgstr ""
7365
7366 # type: textblock
7367 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
7368 msgid "static libraries (libfoo.a)"
7369 msgstr ""
7370
7371 # type: textblock
7372 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
7373 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7374 msgstr ""
7375
7376 # type: textblock
7377 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
7378 msgid "x86 Linux vmlinuz kernels"
7379 msgstr ""
7380
7381 # type: textblock
7382 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
7383 msgid ""
7384 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7385 "compressed code, and are horribly hard to unpack.  If you want to find the "
7386 "architecture of a kernel, use the architecture of the associated initrd or "
7387 "kernel module(s) instead."
7388 msgstr ""
7389
7390 # type: textblock
7391 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1812
7392 #: ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:2508
7393 #: ../src/guestfs-actions.pod:2589 ../src/guestfs-actions.pod:2615
7394 #: ../src/guestfs-actions.pod:2664 ../src/guestfs-actions.pod:2685
7395 #: ../src/guestfs-actions.pod:2718 ../src/guestfs-actions.pod:2802
7396 #: ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:3037
7397 #: ../src/guestfs-actions.pod:3169
7398 msgid "(Added in 1.5.3)"
7399 msgstr ""
7400
7401 # type: =head2
7402 #: ../src/guestfs-actions.pod:1651
7403 msgid "guestfs_filesize"
7404 msgstr ""
7405
7406 # type: verbatim
7407 #: ../src/guestfs-actions.pod:1653
7408 #, no-wrap
7409 msgid ""
7410 " int64_t\n"
7411 " guestfs_filesize (guestfs_h *g,\n"
7412 "                   const char *file);\n"
7413 "\n"
7414 msgstr ""
7415
7416 # type: textblock
7417 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
7418 msgid "This command returns the size of C<file> in bytes."
7419 msgstr ""
7420
7421 # type: textblock
7422 #: ../src/guestfs-actions.pod:1659
7423 msgid ""
7424 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7425 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7426 "devices, use C<guestfs_blockdev_getsize64>."
7427 msgstr ""
7428
7429 # type: textblock
7430 #: ../src/guestfs-actions.pod:1665
7431 msgid "(Added in 1.0.82)"
7432 msgstr ""
7433
7434 # type: =head2
7435 #: ../src/guestfs-actions.pod:1667
7436 msgid "guestfs_fill"
7437 msgstr ""
7438
7439 # type: verbatim
7440 #: ../src/guestfs-actions.pod:1669
7441 #, no-wrap
7442 msgid ""
7443 " int\n"
7444 " guestfs_fill (guestfs_h *g,\n"
7445 "               int c,\n"
7446 "               int len,\n"
7447 "               const char *path);\n"
7448 "\n"
7449 msgstr ""
7450
7451 # type: textblock
7452 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
7453 msgid ""
7454 "This command creates a new file called C<path>.  The initial content of the "
7455 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7456 "[0..255]>."
7457 msgstr ""
7458
7459 # type: textblock
7460 #: ../src/guestfs-actions.pod:1679
7461 msgid ""
7462 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7463 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7464 "bytes use C<guestfs_fill_pattern>."
7465 msgstr ""
7466
7467 # type: textblock
7468 #: ../src/guestfs-actions.pod:1691
7469 msgid "(Added in 1.0.79)"
7470 msgstr ""
7471
7472 # type: =head2
7473 #: ../src/guestfs-actions.pod:1693
7474 msgid "guestfs_fill_pattern"
7475 msgstr ""
7476
7477 # type: verbatim
7478 #: ../src/guestfs-actions.pod:1695
7479 #, no-wrap
7480 msgid ""
7481 " int\n"
7482 " guestfs_fill_pattern (guestfs_h *g,\n"
7483 "                       const char *pattern,\n"
7484 "                       int len,\n"
7485 "                       const char *path);\n"
7486 "\n"
7487 msgstr ""
7488
7489 # type: textblock
7490 #: ../src/guestfs-actions.pod:1701
7491 msgid ""
7492 "This function is like C<guestfs_fill> except that it creates a new file of "
7493 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7494 "pattern is truncated if necessary to ensure the length of the file is "
7495 "exactly C<len> bytes."
7496 msgstr ""
7497
7498 # type: textblock
7499 #: ../src/guestfs-actions.pod:1713
7500 msgid "(Added in 1.3.12)"
7501 msgstr ""
7502
7503 # type: =head2
7504 #: ../src/guestfs-actions.pod:1715
7505 msgid "guestfs_find"
7506 msgstr ""
7507
7508 # type: verbatim
7509 #: ../src/guestfs-actions.pod:1717
7510 #, no-wrap
7511 msgid ""
7512 " char **\n"
7513 " guestfs_find (guestfs_h *g,\n"
7514 "               const char *directory);\n"
7515 "\n"
7516 msgstr ""
7517
7518 # type: textblock
7519 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7520 msgid ""
7521 "This command lists out all files and directories, recursively, starting at "
7522 "C<directory>.  It is essentially equivalent to running the shell command "
7523 "C<find directory -print> but some post-processing happens on the output, "
7524 "described below."
7525 msgstr ""
7526
7527 # type: textblock
7528 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7529 msgid ""
7530 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7531 "structure was:"
7532 msgstr ""
7533
7534 # type: verbatim
7535 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7536 #, no-wrap
7537 msgid ""
7538 " /tmp/a\n"
7539 " /tmp/b\n"
7540 " /tmp/c/d\n"
7541 "\n"
7542 msgstr ""
7543
7544 # type: textblock
7545 #: ../src/guestfs-actions.pod:1733
7546 msgid ""
7547 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7548 msgstr ""
7549
7550 # type: verbatim
7551 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7552 #, no-wrap
7553 msgid ""
7554 " a\n"
7555 " b\n"
7556 " c\n"
7557 " c/d\n"
7558 "\n"
7559 msgstr ""
7560
7561 # type: textblock
7562 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7563 msgid "If C<directory> is not a directory, then this command returns an error."
7564 msgstr ""
7565
7566 # type: textblock
7567 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7568 msgid "The returned list is sorted."
7569 msgstr ""
7570
7571 # type: textblock
7572 #: ../src/guestfs-actions.pod:1746
7573 msgid "See also C<guestfs_find0>."
7574 msgstr ""
7575
7576 # type: textblock
7577 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3856
7578 #: ../src/guestfs-actions.pod:5383
7579 msgid "(Added in 1.0.27)"
7580 msgstr ""
7581
7582 # type: =head2
7583 #: ../src/guestfs-actions.pod:1757
7584 msgid "guestfs_find0"
7585 msgstr ""
7586
7587 # type: verbatim
7588 #: ../src/guestfs-actions.pod:1759
7589 #, no-wrap
7590 msgid ""
7591 " int\n"
7592 " guestfs_find0 (guestfs_h *g,\n"
7593 "                const char *directory,\n"
7594 "                const char *files);\n"
7595 "\n"
7596 msgstr ""
7597
7598 # type: textblock
7599 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7600 msgid ""
7601 "This command lists out all files and directories, recursively, starting at "
7602 "C<directory>, placing the resulting list in the external file called "
7603 "C<files>."
7604 msgstr ""
7605
7606 # type: textblock
7607 #: ../src/guestfs-actions.pod:1768
7608 msgid ""
7609 "This command works the same way as C<guestfs_find> with the following "
7610 "exceptions:"
7611 msgstr ""
7612
7613 # type: textblock
7614 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7615 msgid "The resulting list is written to an external file."
7616 msgstr ""
7617
7618 # type: textblock
7619 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7620 msgid ""
7621 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7622 "L<find(1)> option I<-print0>."
7623 msgstr ""
7624
7625 # type: textblock
7626 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7627 msgid "This command is not limited in the number of names that it can return."
7628 msgstr ""
7629
7630 # type: textblock
7631 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7632 msgid "The result list is not sorted."
7633 msgstr ""
7634
7635 # type: textblock
7636 #: ../src/guestfs-actions.pod:1795
7637 msgid "(Added in 1.0.74)"
7638 msgstr ""
7639
7640 # type: =head2
7641 #: ../src/guestfs-actions.pod:1797
7642 msgid "guestfs_findfs_label"
7643 msgstr ""
7644
7645 # type: verbatim
7646 #: ../src/guestfs-actions.pod:1799
7647 #, no-wrap
7648 msgid ""
7649 " char *\n"
7650 " guestfs_findfs_label (guestfs_h *g,\n"
7651 "                       const char *label);\n"
7652 "\n"
7653 msgstr ""
7654
7655 # type: textblock
7656 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7657 msgid ""
7658 "This command searches the filesystems and returns the one which has the "
7659 "given label.  An error is returned if no such filesystem can be found."
7660 msgstr ""
7661
7662 # type: textblock
7663 #: ../src/guestfs-actions.pod:1807
7664 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7665 msgstr ""
7666
7667 # type: =head2
7668 #: ../src/guestfs-actions.pod:1814
7669 msgid "guestfs_findfs_uuid"
7670 msgstr ""
7671
7672 # type: verbatim
7673 #: ../src/guestfs-actions.pod:1816
7674 #, no-wrap
7675 msgid ""
7676 " char *\n"
7677 " guestfs_findfs_uuid (guestfs_h *g,\n"
7678 "                      const char *uuid);\n"
7679 "\n"
7680 msgstr ""
7681
7682 # type: textblock
7683 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7684 msgid ""
7685 "This command searches the filesystems and returns the one which has the "
7686 "given UUID.  An error is returned if no such filesystem can be found."
7687 msgstr ""
7688
7689 # type: textblock
7690 #: ../src/guestfs-actions.pod:1824
7691 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7692 msgstr ""
7693
7694 # type: =head2
7695 #: ../src/guestfs-actions.pod:1831
7696 msgid "guestfs_fsck"
7697 msgstr ""
7698
7699 # type: verbatim
7700 #: ../src/guestfs-actions.pod:1833
7701 #, no-wrap
7702 msgid ""
7703 " int\n"
7704 " guestfs_fsck (guestfs_h *g,\n"
7705 "               const char *fstype,\n"
7706 "               const char *device);\n"
7707 "\n"
7708 msgstr ""
7709
7710 # type: textblock
7711 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7712 msgid ""
7713 "This runs the filesystem checker (fsck) on C<device> which should have "
7714 "filesystem type C<fstype>."
7715 msgstr ""
7716
7717 # type: textblock
7718 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7719 msgid ""
7720 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7721 "codes from C<fsck>."
7722 msgstr ""
7723
7724 # type: textblock
7725 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7726 msgid "Multiple status codes can be summed together."
7727 msgstr ""
7728
7729 # type: textblock
7730 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7731 msgid ""
7732 "A non-zero return code can mean \"success\", for example if errors have been "
7733 "corrected on the filesystem."
7734 msgstr ""
7735
7736 # type: textblock
7737 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7738 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7739 msgstr ""
7740
7741 # type: textblock
7742 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7743 msgid ""
7744 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7745 msgstr ""
7746
7747 # type: textblock
7748 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:7030
7749 msgid "(Added in 1.0.16)"
7750 msgstr ""
7751
7752 # type: =head2
7753 #: ../src/guestfs-actions.pod:1870
7754 msgid "guestfs_get_append"
7755 msgstr ""
7756
7757 # type: verbatim
7758 #: ../src/guestfs-actions.pod:1872
7759 #, no-wrap
7760 msgid ""
7761 " const char *\n"
7762 " guestfs_get_append (guestfs_h *g);\n"
7763 "\n"
7764 msgstr ""
7765
7766 # type: textblock
7767 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7768 msgid ""
7769 "Return the additional kernel options which are added to the guest kernel "
7770 "command line."
7771 msgstr ""
7772
7773 # type: textblock
7774 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7775 msgid "If C<NULL> then no options are added."
7776 msgstr ""
7777
7778 # type: textblock
7779 #: ../src/guestfs-actions.pod:1880
7780 msgid ""
7781 "This function returns a string which may be NULL.  There is no way to return "
7782 "an error from this function.  The string is owned by the guest handle and "
7783 "must I<not> be freed."
7784 msgstr ""
7785
7786 # type: textblock
7787 #: ../src/guestfs-actions.pod:1884 ../src/guestfs-actions.pod:5061
7788 #: ../src/guestfs-actions.pod:5524 ../src/guestfs-actions.pod:5892
7789 #: ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:5927
7790 #: ../src/guestfs-actions.pod:5944 ../src/guestfs-actions.pod:6701
7791 #: ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:7073
7792 msgid "(Added in 1.0.26)"
7793 msgstr ""
7794
7795 # type: =head2
7796 #: ../src/guestfs-actions.pod:1886
7797 msgid "guestfs_get_autosync"
7798 msgstr ""
7799
7800 # type: verbatim
7801 #: ../src/guestfs-actions.pod:1888
7802 #, no-wrap
7803 msgid ""
7804 " int\n"
7805 " guestfs_get_autosync (guestfs_h *g);\n"
7806 "\n"
7807 msgstr ""
7808
7809 # type: textblock
7810 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7811 msgid "Get the autosync flag."
7812 msgstr ""
7813
7814 # type: =head2
7815 #: ../src/guestfs-actions.pod:1897
7816 msgid "guestfs_get_direct"
7817 msgstr ""
7818
7819 # type: verbatim
7820 #: ../src/guestfs-actions.pod:1899
7821 #, no-wrap
7822 msgid ""
7823 " int\n"
7824 " guestfs_get_direct (guestfs_h *g);\n"
7825 "\n"
7826 msgstr ""
7827
7828 # type: textblock
7829 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7830 msgid "Return the direct appliance mode flag."
7831 msgstr ""
7832
7833 # type: textblock
7834 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5565
7835 msgid "(Added in 1.0.72)"
7836 msgstr ""
7837
7838 # type: =head2
7839 #: ../src/guestfs-actions.pod:1908
7840 msgid "guestfs_get_e2label"
7841 msgstr ""
7842
7843 # type: verbatim
7844 #: ../src/guestfs-actions.pod:1910
7845 #, no-wrap
7846 msgid ""
7847 " char *\n"
7848 " guestfs_get_e2label (guestfs_h *g,\n"
7849 "                      const char *device);\n"
7850 "\n"
7851 msgstr ""
7852
7853 # type: textblock
7854 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7855 msgid ""
7856 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7857 msgstr ""
7858
7859 # type: textblock
7860 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7861 msgid ""
7862 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7863 msgstr ""
7864
7865 # type: textblock
7866 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948
7867 #: ../src/guestfs-actions.pod:5583 ../src/guestfs-actions.pod:5602
7868 msgid "(Added in 1.0.15)"
7869 msgstr ""
7870
7871 # type: =head2
7872 #: ../src/guestfs-actions.pod:1929
7873 msgid "guestfs_get_e2uuid"
7874 msgstr ""
7875
7876 # type: verbatim
7877 #: ../src/guestfs-actions.pod:1931
7878 #, no-wrap
7879 msgid ""
7880 " char *\n"
7881 " guestfs_get_e2uuid (guestfs_h *g,\n"
7882 "                     const char *device);\n"
7883 "\n"
7884 msgstr ""
7885
7886 # type: textblock
7887 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7888 msgid ""
7889 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7890 msgstr ""
7891
7892 # type: textblock
7893 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7894 msgid ""
7895 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7896 msgstr ""
7897
7898 # type: =head2
7899 #: ../src/guestfs-actions.pod:1950
7900 msgid "guestfs_get_memsize"
7901 msgstr ""
7902
7903 # type: verbatim
7904 #: ../src/guestfs-actions.pod:1952
7905 #, no-wrap
7906 msgid ""
7907 " int\n"
7908 " guestfs_get_memsize (guestfs_h *g);\n"
7909 "\n"
7910 msgstr ""
7911
7912 # type: textblock
7913 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7914 msgid ""
7915 "This gets the memory size in megabytes allocated to the qemu subprocess."
7916 msgstr ""
7917
7918 # type: textblock
7919 #: ../src/guestfs-actions.pod:1958
7920 msgid ""
7921 "If C<guestfs_set_memsize> was not called on this handle, and if "
7922 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7923 "value for memsize."
7924 msgstr ""
7925
7926 # type: textblock
7927 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2043
7928 #: ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:5725
7929 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7930 #: ../fish/guestfish-actions.pod:3751 ../fish/guestfish-actions.pod:3838
7931 msgid ""
7932 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7933 msgstr ""
7934
7935 # type: textblock
7936 #: ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:4147
7937 #: ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4347
7938 #: ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:4378
7939 #: ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4408
7940 #: ../src/guestfs-actions.pod:5286 ../src/guestfs-actions.pod:5623
7941 #: ../src/guestfs-actions.pod:5866 ../src/guestfs-actions.pod:6467
7942 msgid "(Added in 1.0.55)"
7943 msgstr ""
7944
7945 # type: =head2
7946 #: ../src/guestfs-actions.pod:1969
7947 msgid "guestfs_get_network"
7948 msgstr ""
7949
7950 # type: verbatim
7951 #: ../src/guestfs-actions.pod:1971
7952 #, no-wrap
7953 msgid ""
7954 " int\n"
7955 " guestfs_get_network (guestfs_h *g);\n"
7956 "\n"
7957 msgstr ""
7958
7959 # type: textblock
7960 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7961 msgid "This returns the enable network flag."
7962 msgstr ""
7963
7964 # type: textblock
7965 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5642
7966 msgid "(Added in 1.5.4)"
7967 msgstr ""
7968
7969 # type: =head2
7970 #: ../src/guestfs-actions.pod:1980
7971 msgid "guestfs_get_path"
7972 msgstr ""
7973
7974 # type: verbatim
7975 #: ../src/guestfs-actions.pod:1982
7976 #, no-wrap
7977 msgid ""
7978 " const char *\n"
7979 " guestfs_get_path (guestfs_h *g);\n"
7980 "\n"
7981 msgstr ""
7982
7983 # type: textblock
7984 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7985 msgid "Return the current search path."
7986 msgstr ""
7987
7988 # type: textblock
7989 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7990 msgid ""
7991 "This is always non-NULL.  If it wasn't set already, then this will return "
7992 "the default path."
7993 msgstr ""
7994
7995 # type: textblock
7996 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7997 msgid ""
7998 "This function returns a string, or NULL on error.  The string is owned by "
7999 "the guest handle and must I<not> be freed."
8000 msgstr ""
8001
8002 # type: =head2
8003 #: ../src/guestfs-actions.pod:1995
8004 msgid "guestfs_get_pid"
8005 msgstr ""
8006
8007 # type: verbatim
8008 #: ../src/guestfs-actions.pod:1997
8009 #, no-wrap
8010 msgid ""
8011 " int\n"
8012 " guestfs_get_pid (guestfs_h *g);\n"
8013 "\n"
8014 msgstr ""
8015
8016 # type: textblock
8017 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
8018 msgid ""
8019 "Return the process ID of the qemu subprocess.  If there is no qemu "
8020 "subprocess, then this will return an error."
8021 msgstr ""
8022
8023 # type: textblock
8024 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
8025 msgid "This is an internal call used for debugging and testing."
8026 msgstr ""
8027
8028 # type: textblock
8029 #: ../src/guestfs-actions.pod:2007
8030 msgid "(Added in 1.0.56)"
8031 msgstr ""
8032
8033 # type: =head2
8034 #: ../src/guestfs-actions.pod:2009
8035 msgid "guestfs_get_qemu"
8036 msgstr ""
8037
8038 # type: verbatim
8039 #: ../src/guestfs-actions.pod:2011
8040 #, no-wrap
8041 msgid ""
8042 " const char *\n"
8043 " guestfs_get_qemu (guestfs_h *g);\n"
8044 "\n"
8045 msgstr ""
8046
8047 # type: textblock
8048 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
8049 msgid "Return the current qemu binary."
8050 msgstr ""
8051
8052 # type: textblock
8053 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
8054 msgid ""
8055 "This is always non-NULL.  If it wasn't set already, then this will return "
8056 "the default qemu binary name."
8057 msgstr ""
8058
8059 # type: textblock
8060 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5687
8061 msgid "(Added in 1.0.6)"
8062 msgstr ""
8063
8064 # type: =head2
8065 #: ../src/guestfs-actions.pod:2024
8066 msgid "guestfs_get_recovery_proc"
8067 msgstr ""
8068
8069 # type: verbatim
8070 #: ../src/guestfs-actions.pod:2026
8071 #, no-wrap
8072 msgid ""
8073 " int\n"
8074 " guestfs_get_recovery_proc (guestfs_h *g);\n"
8075 "\n"
8076 msgstr ""
8077
8078 # type: textblock
8079 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
8080 msgid "Return the recovery process enabled flag."
8081 msgstr ""
8082
8083 # type: textblock
8084 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:3259
8085 #: ../src/guestfs-actions.pod:3554 ../src/guestfs-actions.pod:3954
8086 #: ../src/guestfs-actions.pod:3986 ../src/guestfs-actions.pod:4991
8087 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5711
8088 #: ../src/guestfs-actions.pod:6370 ../src/guestfs-actions.pod:6390
8089 #: ../src/guestfs-actions.pod:6582
8090 msgid "(Added in 1.0.77)"
8091 msgstr ""
8092
8093 # type: =head2
8094 #: ../src/guestfs-actions.pod:2035
8095 msgid "guestfs_get_selinux"
8096 msgstr ""
8097
8098 # type: verbatim
8099 #: ../src/guestfs-actions.pod:2037
8100 #, no-wrap
8101 msgid ""
8102 " int\n"
8103 " guestfs_get_selinux (guestfs_h *g);\n"
8104 "\n"
8105 msgstr ""
8106
8107 # type: textblock
8108 #: ../src/guestfs-actions.pod:2040
8109 msgid ""
8110 "This returns the current setting of the selinux flag which is passed to the "
8111 "appliance at boot time.  See C<guestfs_set_selinux>."
8112 msgstr ""
8113
8114 # type: textblock
8115 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111
8116 #: ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:5784
8117 msgid "(Added in 1.0.67)"
8118 msgstr ""
8119
8120 # type: =head2
8121 #: ../src/guestfs-actions.pod:2050
8122 msgid "guestfs_get_state"
8123 msgstr ""
8124
8125 # type: verbatim
8126 #: ../src/guestfs-actions.pod:2052
8127 #, no-wrap
8128 msgid ""
8129 " int\n"
8130 " guestfs_get_state (guestfs_h *g);\n"
8131 "\n"
8132 msgstr ""
8133
8134 # type: textblock
8135 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
8136 msgid ""
8137 "This returns the current state as an opaque integer.  This is only useful "
8138 "for printing debug and internal error messages."
8139 msgstr ""
8140
8141 # type: textblock
8142 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:3062
8143 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3152
8144 #: ../src/guestfs-actions.pod:3179 ../fish/guestfish-actions.pod:1398
8145 #: ../fish/guestfish-actions.pod:2133 ../fish/guestfish-actions.pod:2151
8146 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2205
8147 msgid "For more information on states, see L<guestfs(3)>."
8148 msgstr ""
8149
8150 # type: =head2
8151 #: ../src/guestfs-actions.pod:2064
8152 msgid "guestfs_get_trace"
8153 msgstr ""
8154
8155 # type: verbatim
8156 #: ../src/guestfs-actions.pod:2066
8157 #, no-wrap
8158 msgid ""
8159 " int\n"
8160 " guestfs_get_trace (guestfs_h *g);\n"
8161 "\n"
8162 msgstr ""
8163
8164 # type: textblock
8165 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
8166 msgid "Return the command trace flag."
8167 msgstr ""
8168
8169 # type: =head2
8170 #: ../src/guestfs-actions.pod:2075
8171 msgid "guestfs_get_umask"
8172 msgstr ""
8173
8174 # type: verbatim
8175 #: ../src/guestfs-actions.pod:2077
8176 #, no-wrap
8177 msgid ""
8178 " int\n"
8179 " guestfs_get_umask (guestfs_h *g);\n"
8180 "\n"
8181 msgstr ""
8182
8183 # type: textblock
8184 #: ../src/guestfs-actions.pod:2080
8185 msgid ""
8186 "Return the current umask.  By default the umask is C<022> unless it has been "
8187 "set by calling C<guestfs_umask>."
8188 msgstr ""
8189
8190 # type: =head2
8191 #: ../src/guestfs-actions.pod:2087
8192 msgid "guestfs_get_verbose"
8193 msgstr ""
8194
8195 # type: verbatim
8196 #: ../src/guestfs-actions.pod:2089
8197 #, no-wrap
8198 msgid ""
8199 " int\n"
8200 " guestfs_get_verbose (guestfs_h *g);\n"
8201 "\n"
8202 msgstr ""
8203
8204 # type: textblock
8205 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
8206 msgid "This returns the verbose messages flag."
8207 msgstr ""
8208
8209 # type: =head2
8210 #: ../src/guestfs-actions.pod:2098
8211 msgid "guestfs_getcon"
8212 msgstr ""
8213
8214 # type: verbatim
8215 #: ../src/guestfs-actions.pod:2100
8216 #, no-wrap
8217 msgid ""
8218 " char *\n"
8219 " guestfs_getcon (guestfs_h *g);\n"
8220 "\n"
8221 msgstr ""
8222
8223 # type: textblock
8224 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
8225 msgid "This gets the SELinux security context of the daemon."
8226 msgstr ""
8227
8228 # type: textblock
8229 #: ../src/guestfs-actions.pod:2105
8230 msgid ""
8231 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8232 msgstr ""
8233
8234 # type: =head2
8235 #: ../src/guestfs-actions.pod:2113
8236 msgid "guestfs_getxattr"
8237 msgstr ""
8238
8239 # type: verbatim
8240 #: ../src/guestfs-actions.pod:2115
8241 #, no-wrap
8242 msgid ""
8243 " char *\n"
8244 " guestfs_getxattr (guestfs_h *g,\n"
8245 "                   const char *path,\n"
8246 "                   const char *name,\n"
8247 "                   size_t *size_r);\n"
8248 "\n"
8249 msgstr ""
8250
8251 # type: textblock
8252 #: ../src/guestfs-actions.pod:2121
8253 msgid ""
8254 "Get a single extended attribute from file C<path> named C<name>.  This call "
8255 "follows symlinks.  If you want to lookup an extended attribute for the "
8256 "symlink itself, use C<guestfs_lgetxattr>."
8257 msgstr ""
8258
8259 # type: textblock
8260 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3273
8261 msgid ""
8262 "Normally it is better to get all extended attributes from a file in one go "
8263 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
8264 "implementations are buggy and do not provide a way to list out attributes.  "
8265 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
8266 "extended attributes you want in advance and call this function."
8267 msgstr ""
8268
8269 # type: textblock
8270 #: ../src/guestfs-actions.pod:2132 ../src/guestfs-actions.pod:3280
8271 #: ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:2270
8272 msgid ""
8273 "Extended attribute values are blobs of binary data.  If there is no extended "
8274 "attribute named C<name>, this returns an error."
8275 msgstr ""
8276
8277 # type: textblock
8278 #: ../src/guestfs-actions.pod:2135
8279 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
8280 msgstr ""
8281
8282 # type: textblock
8283 #: ../src/guestfs-actions.pod:2137 ../src/guestfs-actions.pod:2326
8284 #: ../src/guestfs-actions.pod:3285 ../src/guestfs-actions.pod:4984
8285 #: ../src/guestfs-actions.pod:5010 ../src/guestfs-actions.pod:5191
8286 msgid ""
8287 "This function returns a buffer, or NULL on error.  The size of the returned "
8288 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8289 "after use>."
8290 msgstr ""
8291
8292 # type: =head2
8293 #: ../src/guestfs-actions.pod:2141
8294 msgid "guestfs_getxattrs"
8295 msgstr ""
8296
8297 # type: verbatim
8298 #: ../src/guestfs-actions.pod:2143
8299 #, no-wrap
8300 msgid ""
8301 " struct guestfs_xattr_list *\n"
8302 " guestfs_getxattrs (guestfs_h *g,\n"
8303 "                    const char *path);\n"
8304 "\n"
8305 msgstr ""
8306
8307 # type: textblock
8308 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1452
8309 msgid ""
8310 "This call lists the extended attributes of the file or directory C<path>."
8311 msgstr ""
8312
8313 # type: textblock
8314 #: ../src/guestfs-actions.pod:2150 ../fish/guestfish-actions.pod:1455
8315 msgid ""
8316 "At the system call level, this is a combination of the L<listxattr(2)> and "
8317 "L<getxattr(2)> calls."
8318 msgstr ""
8319
8320 # type: textblock
8321 #: ../src/guestfs-actions.pod:2153
8322 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8323 msgstr ""
8324
8325 # type: textblock
8326 #: ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:3299
8327 #: ../src/guestfs-actions.pod:3950
8328 msgid ""
8329 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8330 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8331 msgstr ""
8332
8333 # type: textblock
8334 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3303
8335 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:3504
8336 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5803
8337 #: ../src/guestfs-actions.pod:7138
8338 msgid "(Added in 1.0.59)"
8339 msgstr ""
8340
8341 # type: =head2
8342 #: ../src/guestfs-actions.pod:2161
8343 msgid "guestfs_glob_expand"
8344 msgstr ""
8345
8346 # type: verbatim
8347 #: ../src/guestfs-actions.pod:2163
8348 #, no-wrap
8349 msgid ""
8350 " char **\n"
8351 " guestfs_glob_expand (guestfs_h *g,\n"
8352 "                      const char *pattern);\n"
8353 "\n"
8354 msgstr ""
8355
8356 # type: textblock
8357 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1464
8358 msgid ""
8359 "This command searches for all the pathnames matching C<pattern> according to "
8360 "the wildcard expansion rules used by the shell."
8361 msgstr ""
8362
8363 # type: textblock
8364 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1468
8365 msgid ""
8366 "If no paths match, then this returns an empty list (note: not an error)."
8367 msgstr ""
8368
8369 # type: textblock
8370 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1471
8371 msgid ""
8372 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8373 "GLOB_BRACE>.  See that manual page for more details."
8374 msgstr ""
8375
8376 # type: textblock
8377 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:5968
8378 #: ../src/guestfs-actions.pod:5985
8379 msgid "(Added in 1.0.50)"
8380 msgstr ""
8381
8382 # type: =head2
8383 #: ../src/guestfs-actions.pod:2184
8384 msgid "guestfs_grep"
8385 msgstr ""
8386
8387 # type: verbatim
8388 #: ../src/guestfs-actions.pod:2186
8389 #, no-wrap
8390 msgid ""
8391 " char **\n"
8392 " guestfs_grep (guestfs_h *g,\n"
8393 "               const char *regex,\n"
8394 "               const char *path);\n"
8395 "\n"
8396 msgstr ""
8397
8398 # type: textblock
8399 #: ../src/guestfs-actions.pod:2191 ../fish/guestfish-actions.pod:1479
8400 msgid "This calls the external C<grep> program and returns the matching lines."
8401 msgstr ""
8402
8403 # type: =head2
8404 #: ../src/guestfs-actions.pod:2203
8405 msgid "guestfs_grepi"
8406 msgstr ""
8407
8408 # type: verbatim
8409 #: ../src/guestfs-actions.pod:2205
8410 #, no-wrap
8411 msgid ""
8412 " char **\n"
8413 " guestfs_grepi (guestfs_h *g,\n"
8414 "                const char *regex,\n"
8415 "                const char *path);\n"
8416 "\n"
8417 msgstr ""
8418
8419 # type: textblock
8420 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1489
8421 msgid ""
8422 "This calls the external C<grep -i> program and returns the matching lines."
8423 msgstr ""
8424
8425 # type: =head2
8426 #: ../src/guestfs-actions.pod:2222
8427 msgid "guestfs_grub_install"
8428 msgstr ""
8429
8430 # type: verbatim
8431 #: ../src/guestfs-actions.pod:2224
8432 #, no-wrap
8433 msgid ""
8434 " int\n"
8435 " guestfs_grub_install (guestfs_h *g,\n"
8436 "                       const char *root,\n"
8437 "                       const char *device);\n"
8438 "\n"
8439 msgstr ""
8440
8441 # type: textblock
8442 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1499
8443 msgid ""
8444 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8445 "the root directory being C<root>."
8446 msgstr ""
8447
8448 # type: textblock
8449 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1502
8450 msgid ""
8451 "Note: If grub-install reports the error \"No suitable drive was found in the "
8452 "generated device map.\" it may be that you need to create a C</boot/grub/"
8453 "device.map> file first that contains the mapping between grub device names "
8454 "and Linux device names.  It is usually sufficient to create a file "
8455 "containing:"
8456 msgstr ""
8457
8458 # type: verbatim
8459 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1509
8460 #, no-wrap
8461 msgid ""
8462 " (hd0) /dev/vda\n"
8463 "\n"
8464 msgstr ""
8465
8466 # type: textblock
8467 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1511
8468 msgid "replacing C</dev/vda> with the name of the installation device."
8469 msgstr ""
8470
8471 # type: textblock
8472 #: ../src/guestfs-actions.pod:2245
8473 msgid "(Added in 1.0.17)"
8474 msgstr ""
8475
8476 # type: =head2
8477 #: ../src/guestfs-actions.pod:2247
8478 msgid "guestfs_head"
8479 msgstr ""
8480
8481 # type: verbatim
8482 #: ../src/guestfs-actions.pod:2249
8483 #, no-wrap
8484 msgid ""
8485 " char **\n"
8486 " guestfs_head (guestfs_h *g,\n"
8487 "               const char *path);\n"
8488 "\n"
8489 msgstr ""
8490
8491 # type: textblock
8492 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1517
8493 msgid ""
8494 "This command returns up to the first 10 lines of a file as a list of strings."
8495 msgstr ""
8496
8497 # type: =head2
8498 #: ../src/guestfs-actions.pod:2265
8499 msgid "guestfs_head_n"
8500 msgstr ""
8501
8502 # type: verbatim
8503 #: ../src/guestfs-actions.pod:2267
8504 #, no-wrap
8505 msgid ""
8506 " char **\n"
8507 " guestfs_head_n (guestfs_h *g,\n"
8508 "                 int nrlines,\n"
8509 "                 const char *path);\n"
8510 "\n"
8511 msgstr ""
8512
8513 # type: textblock
8514 #: ../src/guestfs-actions.pod:2272 ../fish/guestfish-actions.pod:1527
8515 msgid ""
8516 "If the parameter C<nrlines> is a positive number, this returns the first "
8517 "C<nrlines> lines of the file C<path>."
8518 msgstr ""
8519
8520 # type: textblock
8521 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1530
8522 msgid ""
8523 "If the parameter C<nrlines> is a negative number, this returns lines from "
8524 "the file C<path>, excluding the last C<nrlines> lines."
8525 msgstr ""
8526
8527 # type: textblock
8528 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6265
8529 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:4184
8530 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8531 msgstr ""
8532
8533 # type: =head2
8534 #: ../src/guestfs-actions.pod:2289
8535 msgid "guestfs_hexdump"
8536 msgstr ""
8537
8538 # type: verbatim
8539 #: ../src/guestfs-actions.pod:2291
8540 #, no-wrap
8541 msgid ""
8542 " char *\n"
8543 " guestfs_hexdump (guestfs_h *g,\n"
8544 "                  const char *path);\n"
8545 "\n"
8546 msgstr ""
8547
8548 # type: textblock
8549 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1542
8550 msgid ""
8551 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8552 "readable, canonical hex dump of the file."
8553 msgstr ""
8554
8555 # type: textblock
8556 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6049
8557 #: ../src/guestfs-actions.pod:6104
8558 msgid "(Added in 1.0.22)"
8559 msgstr ""
8560
8561 # type: =head2
8562 #: ../src/guestfs-actions.pod:2306
8563 msgid "guestfs_initrd_cat"
8564 msgstr ""
8565
8566 # type: verbatim
8567 #: ../src/guestfs-actions.pod:2308
8568 #, no-wrap
8569 msgid ""
8570 " char *\n"
8571 " guestfs_initrd_cat (guestfs_h *g,\n"
8572 "                     const char *initrdpath,\n"
8573 "                     const char *filename,\n"
8574 "                     size_t *size_r);\n"
8575 "\n"
8576 msgstr ""
8577
8578 # type: textblock
8579 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1552
8580 msgid ""
8581 "This command unpacks the file C<filename> from the initrd file called "
8582 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8583 "character."
8584 msgstr ""
8585
8586 # type: textblock
8587 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1556
8588 msgid ""
8589 "For example, in guestfish you could use the following command to examine the "
8590 "boot script (usually called C</init>)  contained in a Linux initrd or "
8591 "initramfs image:"
8592 msgstr ""
8593
8594 # type: verbatim
8595 #: ../src/guestfs-actions.pod:2322 ../fish/guestfish-actions.pod:1560
8596 #, no-wrap
8597 msgid ""
8598 " initrd-cat /boot/initrd-<version>.img init\n"
8599 "\n"
8600 msgstr ""
8601
8602 # type: textblock
8603 #: ../src/guestfs-actions.pod:2324
8604 msgid "See also C<guestfs_initrd_list>."
8605 msgstr ""
8606
8607 # type: =head2
8608 #: ../src/guestfs-actions.pod:2335
8609 msgid "guestfs_initrd_list"
8610 msgstr ""
8611
8612 # type: verbatim
8613 #: ../src/guestfs-actions.pod:2337
8614 #, no-wrap
8615 msgid ""
8616 " char **\n"
8617 " guestfs_initrd_list (guestfs_h *g,\n"
8618 "                      const char *path);\n"
8619 "\n"
8620 msgstr ""
8621
8622 # type: textblock
8623 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1571
8624 msgid "This command lists out files contained in an initrd."
8625 msgstr ""
8626
8627 # type: textblock
8628 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1573
8629 msgid ""
8630 "The files are listed without any initial C</> character.  The files are "
8631 "listed in the order they appear (not necessarily alphabetical).  Directory "
8632 "names are listed as separate items."
8633 msgstr ""
8634
8635 # type: textblock
8636 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1577
8637 msgid ""
8638 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8639 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8640 "files)."
8641 msgstr ""
8642
8643 # type: =head2
8644 #: ../src/guestfs-actions.pod:2357
8645 msgid "guestfs_inotify_add_watch"
8646 msgstr ""
8647
8648 # type: verbatim
8649 #: ../src/guestfs-actions.pod:2359
8650 #, no-wrap
8651 msgid ""
8652 " int64_t\n"
8653 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8654 "                            const char *path,\n"
8655 "                            int mask);\n"
8656 "\n"
8657 msgstr ""
8658
8659 # type: textblock
8660 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1585
8661 msgid "Watch C<path> for the events listed in C<mask>."
8662 msgstr ""
8663
8664 # type: textblock
8665 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1587
8666 msgid ""
8667 "Note that if C<path> is a directory then events within that directory are "
8668 "watched, but this does I<not> happen recursively (in subdirectories)."
8669 msgstr ""
8670
8671 # type: textblock
8672 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1591
8673 msgid ""
8674 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8675 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8676 msgstr ""
8677
8678 # type: =head2
8679 #: ../src/guestfs-actions.pod:2378
8680 msgid "guestfs_inotify_close"
8681 msgstr ""
8682
8683 # type: verbatim
8684 #: ../src/guestfs-actions.pod:2380
8685 #, no-wrap
8686 msgid ""
8687 " int\n"
8688 " guestfs_inotify_close (guestfs_h *g);\n"
8689 "\n"
8690 msgstr ""
8691
8692 # type: textblock
8693 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1599
8694 msgid ""
8695 "This closes the inotify handle which was previously opened by inotify_init.  "
8696 "It removes all watches, throws away any pending events, and deallocates all "
8697 "resources."
8698 msgstr ""
8699
8700 # type: =head2
8701 #: ../src/guestfs-actions.pod:2391
8702 msgid "guestfs_inotify_files"
8703 msgstr ""
8704
8705 # type: verbatim
8706 #: ../src/guestfs-actions.pod:2393
8707 #, no-wrap
8708 msgid ""
8709 " char **\n"
8710 " guestfs_inotify_files (guestfs_h *g);\n"
8711 "\n"
8712 msgstr ""
8713
8714 # type: textblock
8715 #: ../src/guestfs-actions.pod:2396
8716 msgid ""
8717 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8718 "returns a list of pathnames of objects that were touched.  The returned "
8719 "pathnames are sorted and deduplicated."
8720 msgstr ""
8721
8722 # type: =head2
8723 #: ../src/guestfs-actions.pod:2406
8724 msgid "guestfs_inotify_init"
8725 msgstr ""
8726
8727 # type: verbatim
8728 #: ../src/guestfs-actions.pod:2408
8729 #, no-wrap
8730 msgid ""
8731 " int\n"
8732 " guestfs_inotify_init (guestfs_h *g,\n"
8733 "                       int maxevents);\n"
8734 "\n"
8735 msgstr ""
8736
8737 # type: textblock
8738 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1615
8739 msgid ""
8740 "This command creates a new inotify handle.  The inotify subsystem can be "
8741 "used to notify events which happen to objects in the guest filesystem."
8742 msgstr ""
8743
8744 # type: textblock
8745 #: ../src/guestfs-actions.pod:2416
8746 msgid ""
8747 "C<maxevents> is the maximum number of events which will be queued up between "
8748 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8749 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8750 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8751 "throws away events, but records the fact that it threw them away by setting "
8752 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8753 "C<guestfs_inotify_read>)."
8754 msgstr ""
8755
8756 # type: textblock
8757 #: ../src/guestfs-actions.pod:2426
8758 msgid ""
8759 "Before any events are generated, you have to add some watches to the "
8760 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8761 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8762 msgstr ""
8763
8764 # type: textblock
8765 #: ../src/guestfs-actions.pod:2432
8766 msgid ""
8767 "Queued up events should be read periodically by calling "
8768 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8769 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8770 "often enough then you risk the internal queue overflowing."
8771 msgstr ""
8772
8773 # type: textblock
8774 #: ../src/guestfs-actions.pod:2439
8775 msgid ""
8776 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8777 "This also removes any watches automatically."
8778 msgstr ""
8779
8780 # type: textblock
8781 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1646
8782 msgid ""
8783 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8784 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8785 "that there is one global inotify handle per libguestfs instance."
8786 msgstr ""
8787
8788 # type: =head2
8789 #: ../src/guestfs-actions.pod:2452
8790 msgid "guestfs_inotify_read"
8791 msgstr ""
8792
8793 # type: verbatim
8794 #: ../src/guestfs-actions.pod:2454
8795 #, no-wrap
8796 msgid ""
8797 " struct guestfs_inotify_event_list *\n"
8798 " guestfs_inotify_read (guestfs_h *g);\n"
8799 "\n"
8800 msgstr ""
8801
8802 # type: textblock
8803 #: ../src/guestfs-actions.pod:2457 ../fish/guestfish-actions.pod:1655
8804 msgid ""
8805 "Return the complete queue of events that have happened since the previous "
8806 "read call."
8807 msgstr ""
8808
8809 # type: textblock
8810 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1658
8811 msgid "If no events have happened, this returns an empty list."
8812 msgstr ""
8813
8814 # type: textblock
8815 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1660
8816 msgid ""
8817 "I<Note>: In order to make sure that all events have been read, you must call "
8818 "this function repeatedly until it returns an empty list.  The reason is that "
8819 "the call will read events up to the maximum appliance-to-host message size "
8820 "and leave remaining events in the queue."
8821 msgstr ""
8822
8823 # type: textblock
8824 #: ../src/guestfs-actions.pod:2468
8825 msgid ""
8826 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8827 "there was an error.  I<The caller must call "
8828 "C<guestfs_free_inotify_event_list> after use>."
8829 msgstr ""
8830
8831 # type: =head2
8832 #: ../src/guestfs-actions.pod:2474
8833 msgid "guestfs_inotify_rm_watch"
8834 msgstr ""
8835
8836 # type: verbatim
8837 #: ../src/guestfs-actions.pod:2476
8838 #, no-wrap
8839 msgid ""
8840 " int\n"
8841 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8842 "                           int wd);\n"
8843 "\n"
8844 msgstr ""
8845
8846 # type: textblock
8847 #: ../src/guestfs-actions.pod:2480
8848 msgid ""
8849 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8850 msgstr ""
8851
8852 # type: =head2
8853 #: ../src/guestfs-actions.pod:2487
8854 msgid "guestfs_inspect_get_arch"
8855 msgstr ""
8856
8857 # type: verbatim
8858 #: ../src/guestfs-actions.pod:2489
8859 #, no-wrap
8860 msgid ""
8861 " char *\n"
8862 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8863 "                           const char *root);\n"
8864 "\n"
8865 msgstr ""
8866
8867 # type: textblock
8868 #: ../src/guestfs-actions.pod:2493 ../src/guestfs-actions.pod:2516
8869 #: ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2623
8870 #: ../src/guestfs-actions.pod:2645 ../src/guestfs-actions.pod:2672
8871 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2726
8872 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:2786
8873 #: ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2872
8874 #: ../src/guestfs-actions.pod:2895
8875 msgid ""
8876 "This function should only be called with a root device string as returned by "
8877 "C<guestfs_inspect_os>."
8878 msgstr ""
8879
8880 # type: textblock
8881 #: ../src/guestfs-actions.pod:2496
8882 msgid ""
8883 "This returns the architecture of the inspected operating system.  The "
8884 "possible return values are listed under C<guestfs_file_architecture>."
8885 msgstr ""
8886
8887 # type: textblock
8888 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1684
8889 msgid ""
8890 "If the architecture could not be determined, then the string C<unknown> is "
8891 "returned."
8892 msgstr ""
8893
8894 # type: textblock
8895 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2584
8896 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2660
8897 #: ../src/guestfs-actions.pod:2742 ../src/guestfs-actions.pod:2773
8898 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2816
8899 #: ../src/guestfs-actions.pod:2859 ../src/guestfs-actions.pod:2882
8900 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3029
8901 #: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:1761
8902 #: ../fish/guestfish-actions.pod:1794 ../fish/guestfish-actions.pod:1815
8903 #: ../fish/guestfish-actions.pod:1875 ../fish/guestfish-actions.pod:1899
8904 #: ../fish/guestfish-actions.pod:1916 ../fish/guestfish-actions.pod:1929
8905 #: ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1980
8906 #: ../fish/guestfish-actions.pod:2079 ../fish/guestfish-actions.pod:2113
8907 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8908 msgstr ""
8909
8910 # type: =head2
8911 #: ../src/guestfs-actions.pod:2510
8912 msgid "guestfs_inspect_get_distro"
8913 msgstr ""
8914
8915 # type: verbatim
8916 #: ../src/guestfs-actions.pod:2512
8917 #, no-wrap
8918 msgid ""
8919 " char *\n"
8920 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8921 "                             const char *root);\n"
8922 "\n"
8923 msgstr ""
8924
8925 # type: textblock
8926 #: ../src/guestfs-actions.pod:2519 ../fish/guestfish-actions.pod:1696
8927 msgid ""
8928 "This returns the distro (distribution) of the inspected operating system."
8929 msgstr ""
8930
8931 # type: textblock
8932 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1699
8933 msgid "Currently defined distros are:"
8934 msgstr ""
8935
8936 # type: =item
8937 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1703
8938 msgid "\"archlinux\""
8939 msgstr ""
8940
8941 # type: textblock
8942 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1705
8943 msgid "Arch Linux."
8944 msgstr ""
8945
8946 # type: =item
8947 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1707
8948 msgid "\"debian\""
8949 msgstr ""
8950
8951 # type: textblock
8952 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1709
8953 msgid "Debian."
8954 msgstr ""
8955
8956 # type: =item
8957 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1711
8958 msgid "\"fedora\""
8959 msgstr ""
8960
8961 # type: textblock
8962 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1713
8963 msgid "Fedora."
8964 msgstr ""
8965
8966 # type: =item
8967 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1715
8968 msgid "\"gentoo\""
8969 msgstr ""
8970
8971 # type: textblock
8972 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1717
8973 msgid "Gentoo."
8974 msgstr ""
8975
8976 # type: =item
8977 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1719
8978 msgid "\"linuxmint\""
8979 msgstr ""
8980
8981 # type: textblock
8982 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1721
8983 msgid "Linux Mint."
8984 msgstr ""
8985
8986 # type: =item
8987 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1723
8988 msgid "\"mandriva\""
8989 msgstr ""
8990
8991 # type: textblock
8992 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1725
8993 msgid "Mandriva."
8994 msgstr ""
8995
8996 # type: =item
8997 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1727
8998 msgid "\"meego\""
8999 msgstr ""
9000
9001 # type: textblock
9002 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1729
9003 msgid "MeeGo."
9004 msgstr ""
9005
9006 # type: =item
9007 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1731
9008 msgid "\"pardus\""
9009 msgstr ""
9010
9011 # type: textblock
9012 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1733
9013 msgid "Pardus."
9014 msgstr ""
9015
9016 # type: =item
9017 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1735
9018 msgid "\"redhat-based\""
9019 msgstr ""
9020
9021 # type: textblock
9022 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1737
9023 msgid "Some Red Hat-derived distro."
9024 msgstr ""
9025
9026 # type: =item
9027 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1739
9028 msgid "\"rhel\""
9029 msgstr ""
9030
9031 # type: textblock
9032 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1741
9033 msgid "Red Hat Enterprise Linux and some derivatives."
9034 msgstr ""
9035
9036 # type: =item
9037 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1743
9038 msgid "\"ubuntu\""
9039 msgstr ""
9040
9041 # type: textblock
9042 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1745
9043 msgid "Ubuntu."
9044 msgstr ""
9045
9046 # type: =item
9047 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2850
9048 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1955
9049 msgid "\"unknown\""
9050 msgstr ""
9051
9052 # type: textblock
9053 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1749
9054 msgid "The distro could not be determined."
9055 msgstr ""
9056
9057 # type: =item
9058 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2842
9059 #: ../fish/guestfish-actions.pod:1751 ../fish/guestfish-actions.pod:1947
9060 msgid "\"windows\""
9061 msgstr ""
9062
9063 # type: textblock
9064 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1753
9065 msgid ""
9066 "Windows does not have distributions.  This string is returned if the OS type "
9067 "is Windows."
9068 msgstr ""
9069
9070 # type: textblock
9071 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2856
9072 #: ../fish/guestfish-actions.pod:1758 ../fish/guestfish-actions.pod:1961
9073 msgid ""
9074 "Future versions of libguestfs may return other strings here.  The caller "
9075 "should be prepared to handle any string."
9076 msgstr ""
9077
9078 # type: =head2
9079 #: ../src/guestfs-actions.pod:2591
9080 msgid "guestfs_inspect_get_filesystems"
9081 msgstr ""
9082
9083 # type: verbatim
9084 #: ../src/guestfs-actions.pod:2593
9085 #, no-wrap
9086 msgid ""
9087 " char **\n"
9088 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
9089 "                                  const char *root);\n"
9090 "\n"
9091 msgstr ""
9092
9093 # type: textblock
9094 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1770
9095 msgid ""
9096 "This returns a list of all the filesystems that we think are associated with "
9097 "this operating system.  This includes the root filesystem, other ordinary "
9098 "filesystems, and non-mounted devices like swap partitions."
9099 msgstr ""
9100
9101 # type: textblock
9102 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1775
9103 msgid ""
9104 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9105 "to be shared between operating systems."
9106 msgstr ""
9107
9108 # type: textblock
9109 #: ../src/guestfs-actions.pod:2608
9110 msgid ""
9111 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9112 "C<guestfs_inspect_get_mountpoints>."
9113 msgstr ""
9114
9115 # type: =head2
9116 #: ../src/guestfs-actions.pod:2617
9117 msgid "guestfs_inspect_get_hostname"
9118 msgstr ""
9119
9120 # type: verbatim
9121 #: ../src/guestfs-actions.pod:2619
9122 #, no-wrap
9123 msgid ""
9124 " char *\n"
9125 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
9126 "                               const char *root);\n"
9127 "\n"
9128 msgstr ""
9129
9130 # type: textblock
9131 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1788
9132 msgid ""
9133 "This function returns the hostname of the operating system as found by "
9134 "inspection of the guest's configuration files."
9135 msgstr ""
9136
9137 # type: textblock
9138 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1791
9139 msgid ""
9140 "If the hostname could not be determined, then the string C<unknown> is "
9141 "returned."
9142 msgstr ""
9143
9144 # type: textblock
9145 #: ../src/guestfs-actions.pod:2637
9146 msgid "(Added in 1.7.9)"
9147 msgstr ""
9148
9149 # type: =head2
9150 #: ../src/guestfs-actions.pod:2639
9151 msgid "guestfs_inspect_get_major_version"
9152 msgstr ""
9153
9154 # type: verbatim
9155 #: ../src/guestfs-actions.pod:2641
9156 #, no-wrap
9157 msgid ""
9158 " int\n"
9159 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
9160 "                                    const char *root);\n"
9161 "\n"
9162 msgstr ""
9163
9164 # type: textblock
9165 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1803
9166 msgid ""
9167 "This returns the major version number of the inspected operating system."
9168 msgstr ""
9169
9170 # type: textblock
9171 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1806
9172 msgid ""
9173 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9174 "popular public names used by the operating system.  Notably the operating "
9175 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9176 "1).  You can find out the real versions corresponding to releases of Windows "
9177 "by consulting Wikipedia or MSDN."
9178 msgstr ""
9179
9180 # type: textblock
9181 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2678
9182 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1827
9183 msgid "If the version could not be determined, then C<0> is returned."
9184 msgstr ""
9185
9186 # type: =head2
9187 #: ../src/guestfs-actions.pod:2666
9188 msgid "guestfs_inspect_get_minor_version"
9189 msgstr ""
9190
9191 # type: verbatim
9192 #: ../src/guestfs-actions.pod:2668
9193 #, no-wrap
9194 msgid ""
9195 " int\n"
9196 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9197 "                                    const char *root);\n"
9198 "\n"
9199 msgstr ""
9200
9201 # type: textblock
9202 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1824
9203 msgid ""
9204 "This returns the minor version number of the inspected operating system."
9205 msgstr ""
9206
9207 # type: textblock
9208 #: ../src/guestfs-actions.pod:2680
9209 msgid ""
9210 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9211 "C<guestfs_inspect_get_major_version>."
9212 msgstr ""
9213
9214 # type: =head2
9215 #: ../src/guestfs-actions.pod:2687
9216 msgid "guestfs_inspect_get_mountpoints"
9217 msgstr ""
9218
9219 # type: verbatim
9220 #: ../src/guestfs-actions.pod:2689
9221 #, no-wrap
9222 msgid ""
9223 " char **\n"
9224 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9225 "                                  const char *root);\n"
9226 "\n"
9227 msgstr ""
9228
9229 # type: textblock
9230 #: ../src/guestfs-actions.pod:2696 ../fish/guestfish-actions.pod:1839
9231 msgid ""
9232 "This returns a hash of where we think the filesystems associated with this "
9233 "operating system should be mounted.  Callers should note that this is at "
9234 "best an educated guess made by reading configuration files such as C</etc/"
9235 "fstab>."
9236 msgstr ""
9237
9238 # type: textblock
9239 #: ../src/guestfs-actions.pod:2701 ../fish/guestfish-actions.pod:1844
9240 msgid ""
9241 "Each element in the returned hashtable has a key which is the path of the "
9242 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9243 "mounted there (eg. C</dev/sda1>)."
9244 msgstr ""
9245
9246 # type: textblock
9247 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1849
9248 msgid ""
9249 "Non-mounted devices such as swap devices are I<not> returned in this list."
9250 msgstr ""
9251
9252 # type: textblock
9253 #: ../src/guestfs-actions.pod:2709
9254 msgid ""
9255 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9256 "C<guestfs_inspect_get_filesystems>."
9257 msgstr ""
9258
9259 # type: textblock
9260 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:3356
9261 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:6406
9262 msgid ""
9263 "This function returns a NULL-terminated array of strings, or NULL if there "
9264 "was an error.  The array of strings will always have length C<2n+1>, where "
9265 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9266 "caller must free the strings and the array after use>."
9267 msgstr ""
9268
9269 # type: =head2
9270 #: ../src/guestfs-actions.pod:2720
9271 msgid "guestfs_inspect_get_package_format"
9272 msgstr ""
9273
9274 # type: verbatim
9275 #: ../src/guestfs-actions.pod:2722
9276 #, no-wrap
9277 msgid ""
9278 " char *\n"
9279 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9280 "                                     const char *root);\n"
9281 "\n"
9282 msgstr ""
9283
9284 # type: textblock
9285 #: ../src/guestfs-actions.pod:2729
9286 msgid ""
9287 "This function and C<guestfs_inspect_get_package_management> return the "
9288 "package format and package management tool used by the inspected operating "
9289 "system.  For example for Fedora these functions would return C<rpm> (package "
9290 "format) and C<yum> (package management)."
9291 msgstr ""
9292
9293 # type: textblock
9294 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1868
9295 msgid ""
9296 "This returns the string C<unknown> if we could not determine the package "
9297 "format I<or> if the operating system does not have a real packaging system "
9298 "(eg. Windows)."
9299 msgstr ""
9300
9301 # type: textblock
9302 #: ../src/guestfs-actions.pod:2739 ../fish/guestfish-actions.pod:1872
9303 msgid ""
9304 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9305 "Future versions of libguestfs may return other strings."
9306 msgstr ""
9307
9308 # type: textblock
9309 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2778
9310 msgid "(Added in 1.7.5)"
9311 msgstr ""
9312
9313 # type: =head2
9314 #: ../src/guestfs-actions.pod:2749
9315 msgid "guestfs_inspect_get_package_management"
9316 msgstr ""
9317
9318 # type: verbatim
9319 #: ../src/guestfs-actions.pod:2751
9320 #, no-wrap
9321 msgid ""
9322 " char *\n"
9323 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9324 "                                         const char *root);\n"
9325 "\n"
9326 msgstr ""
9327
9328 # type: textblock
9329 #: ../src/guestfs-actions.pod:2758
9330 msgid ""
9331 "C<guestfs_inspect_get_package_format> and this function return the package "
9332 "format and package management tool used by the inspected operating system.  "
9333 "For example for Fedora these functions would return C<rpm> (package format) "
9334 "and C<yum> (package management)."
9335 msgstr ""
9336
9337 # type: textblock
9338 #: ../src/guestfs-actions.pod:2764 ../fish/guestfish-actions.pod:1890
9339 msgid ""
9340 "This returns the string C<unknown> if we could not determine the package "
9341 "management tool I<or> if the operating system does not have a real packaging "
9342 "system (eg. Windows)."
9343 msgstr ""
9344
9345 # type: textblock
9346 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1894
9347 msgid ""
9348 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9349 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9350 "libguestfs may return other strings."
9351 msgstr ""
9352
9353 # type: =head2
9354 #: ../src/guestfs-actions.pod:2780
9355 msgid "guestfs_inspect_get_product_name"
9356 msgstr ""
9357
9358 # type: verbatim
9359 #: ../src/guestfs-actions.pod:2782
9360 #, no-wrap
9361 msgid ""
9362 " char *\n"
9363 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9364 "                                   const char *root);\n"
9365 "\n"
9366 msgstr ""
9367
9368 # type: textblock
9369 #: ../src/guestfs-actions.pod:2789 ../fish/guestfish-actions.pod:1908
9370 msgid ""
9371 "This returns the product name of the inspected operating system.  The "
9372 "product name is generally some freeform string which can be displayed to the "
9373 "user, but should not be parsed by programs."
9374 msgstr ""
9375
9376 # type: textblock
9377 #: ../src/guestfs-actions.pod:2794 ../fish/guestfish-actions.pod:1913
9378 msgid ""
9379 "If the product name could not be determined, then the string C<unknown> is "
9380 "returned."
9381 msgstr ""
9382
9383 # type: =head2
9384 #: ../src/guestfs-actions.pod:2804
9385 msgid "guestfs_inspect_get_roots"
9386 msgstr ""
9387
9388 # type: verbatim
9389 #: ../src/guestfs-actions.pod:2806
9390 #, no-wrap
9391 msgid ""
9392 " char **\n"
9393 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9394 "\n"
9395 msgstr ""
9396
9397 # type: textblock
9398 #: ../src/guestfs-actions.pod:2809
9399 msgid ""
9400 "This function is a convenient way to get the list of root devices, as "
9401 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9402 "the whole inspection process."
9403 msgstr ""
9404
9405 # type: textblock
9406 #: ../src/guestfs-actions.pod:2813
9407 msgid ""
9408 "This returns an empty list if either no root devices were found or the "
9409 "caller has not called C<guestfs_inspect_os>."
9410 msgstr ""
9411
9412 # type: textblock
9413 #: ../src/guestfs-actions.pod:2822
9414 msgid "(Added in 1.7.3)"
9415 msgstr ""
9416
9417 # type: =head2
9418 #: ../src/guestfs-actions.pod:2824
9419 msgid "guestfs_inspect_get_type"
9420 msgstr ""
9421
9422 # type: verbatim
9423 #: ../src/guestfs-actions.pod:2826
9424 #, no-wrap
9425 msgid ""
9426 " char *\n"
9427 " guestfs_inspect_get_type (guestfs_h *g,\n"
9428 "                           const char *root);\n"
9429 "\n"
9430 msgstr ""
9431
9432 # type: textblock
9433 #: ../src/guestfs-actions.pod:2833 ../fish/guestfish-actions.pod:1938
9434 msgid ""
9435 "This returns the type of the inspected operating system.  Currently defined "
9436 "types are:"
9437 msgstr ""
9438
9439 # type: =item
9440 #: ../src/guestfs-actions.pod:2838 ../fish/guestfish-actions.pod:1943
9441 msgid "\"linux\""
9442 msgstr ""
9443
9444 # type: textblock
9445 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1945
9446 msgid "Any Linux-based operating system."
9447 msgstr ""
9448
9449 # type: textblock
9450 #: ../src/guestfs-actions.pod:2844 ../fish/guestfish-actions.pod:1949
9451 msgid "Any Microsoft Windows operating system."
9452 msgstr ""
9453
9454 # type: =item
9455 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:1951
9456 msgid "\"freebsd\""
9457 msgstr ""
9458
9459 # type: textblock
9460 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1953
9461 msgid "FreeBSD."
9462 msgstr ""
9463
9464 # type: textblock
9465 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1957
9466 msgid "The operating system type could not be determined."
9467 msgstr ""
9468
9469 # type: =head2
9470 #: ../src/guestfs-actions.pod:2866
9471 msgid "guestfs_inspect_get_windows_systemroot"
9472 msgstr ""
9473
9474 # type: verbatim
9475 #: ../src/guestfs-actions.pod:2868
9476 #, no-wrap
9477 msgid ""
9478 " char *\n"
9479 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9480 "                                         const char *root);\n"
9481 "\n"
9482 msgstr ""
9483
9484 # type: textblock
9485 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1973
9486 msgid ""
9487 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9488 "is a directory path such as C</WINDOWS>."
9489 msgstr ""
9490
9491 # type: textblock
9492 #: ../src/guestfs-actions.pod:2878 ../fish/guestfish-actions.pod:1976
9493 msgid ""
9494 "This call assumes that the guest is Windows and that the systemroot could be "
9495 "determined by inspection.  If this is not the case then an error is returned."
9496 msgstr ""
9497
9498 # type: textblock
9499 #: ../src/guestfs-actions.pod:2887
9500 msgid "(Added in 1.5.25)"
9501 msgstr ""
9502
9503 # type: =head2
9504 #: ../src/guestfs-actions.pod:2889
9505 msgid "guestfs_inspect_list_applications"
9506 msgstr ""
9507
9508 # type: verbatim
9509 #: ../src/guestfs-actions.pod:2891
9510 #, no-wrap
9511 msgid ""
9512 " struct guestfs_application_list *\n"
9513 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9514 "                                    const char *root);\n"
9515 "\n"
9516 msgstr ""
9517
9518 # type: textblock
9519 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1989
9520 msgid "Return the list of applications installed in the operating system."
9521 msgstr ""
9522
9523 # type: textblock
9524 #: ../src/guestfs-actions.pod:2900
9525 msgid ""
9526 "I<Note:> This call works differently from other parts of the inspection "
9527 "API.  You have to call C<guestfs_inspect_os>, then "
9528 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9529 "this.  Listing applications is a significantly more difficult operation "
9530 "which requires access to the full filesystem.  Also note that unlike the "
9531 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9532 "the libguestfs handle, this call actually reads parts of the mounted "
9533 "filesystems during the call."
9534 msgstr ""
9535
9536 # type: textblock
9537 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2001
9538 msgid ""
9539 "This returns an empty list if the inspection code was not able to determine "
9540 "the list of applications."
9541 msgstr ""
9542
9543 # type: textblock
9544 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:2004
9545 msgid "The application structure contains the following fields:"
9546 msgstr ""
9547
9548 # type: =item
9549 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2008
9550 msgid "C<app_name>"
9551 msgstr ""
9552
9553 # type: textblock
9554 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2010
9555 msgid ""
9556 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9557 "guests, this is the package name."
9558 msgstr ""
9559
9560 # type: =item
9561 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2013
9562 msgid "C<app_display_name>"
9563 msgstr ""
9564
9565 # type: textblock
9566 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2015
9567 msgid ""
9568 "The display name of the application, sometimes localized to the install "
9569 "language of the guest operating system."
9570 msgstr ""
9571
9572 # type: textblock
9573 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2018
9574 msgid ""
9575 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9576 "to display something can use C<app_name> instead."
9577 msgstr ""
9578
9579 # type: =item
9580 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2021
9581 msgid "C<app_epoch>"
9582 msgstr ""
9583
9584 # type: textblock
9585 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2023
9586 msgid ""
9587 "For package managers which use epochs, this contains the epoch of the "
9588 "package (an integer).  If unavailable, this is returned as C<0>."
9589 msgstr ""
9590
9591 # type: =item
9592 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2026
9593 msgid "C<app_version>"
9594 msgstr ""
9595
9596 # type: textblock
9597 #: ../src/guestfs-actions.pod:2937 ../fish/guestfish-actions.pod:2028
9598 msgid ""
9599 "The version string of the application or package.  If unavailable this is "
9600 "returned as an empty string C<\"\">."
9601 msgstr ""
9602
9603 # type: =item
9604 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2031
9605 msgid "C<app_release>"
9606 msgstr ""
9607
9608 # type: textblock
9609 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2033
9610 msgid ""
9611 "The release string of the application or package, for package managers that "
9612 "use this.  If unavailable this is returned as an empty string C<\"\">."
9613 msgstr ""
9614
9615 # type: =item
9616 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2037
9617 msgid "C<app_install_path>"
9618 msgstr ""
9619
9620 # type: textblock
9621 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2039
9622 msgid ""
9623 "The installation path of the application (on operating systems such as "
9624 "Windows which use installation paths).  This path is in the format used by "
9625 "the guest operating system, it is not a libguestfs path."
9626 msgstr ""
9627
9628 # type: textblock
9629 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2044
9630 msgid "If unavailable this is returned as an empty string C<\"\">."
9631 msgstr ""
9632
9633 # type: =item
9634 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2046
9635 msgid "C<app_trans_path>"
9636 msgstr ""
9637
9638 # type: textblock
9639 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2048
9640 msgid ""
9641 "The install path translated into a libguestfs path.  If unavailable this is "
9642 "returned as an empty string C<\"\">."
9643 msgstr ""
9644
9645 # type: =item
9646 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2051
9647 msgid "C<app_publisher>"
9648 msgstr ""
9649
9650 # type: textblock
9651 #: ../src/guestfs-actions.pod:2962 ../fish/guestfish-actions.pod:2053
9652 msgid ""
9653 "The name of the publisher of the application, for package managers that use "
9654 "this.  If unavailable this is returned as an empty string C<\"\">."
9655 msgstr ""
9656
9657 # type: =item
9658 #: ../src/guestfs-actions.pod:2966 ../fish/guestfish-actions.pod:2057
9659 msgid "C<app_url>"
9660 msgstr ""
9661
9662 # type: textblock
9663 #: ../src/guestfs-actions.pod:2968 ../fish/guestfish-actions.pod:2059
9664 msgid ""
9665 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9666 "returned as an empty string C<\"\">."
9667 msgstr ""
9668
9669 # type: =item
9670 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2062
9671 msgid "C<app_source_package>"
9672 msgstr ""
9673
9674 # type: textblock
9675 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2064
9676 msgid ""
9677 "For packaging systems which support this, the name of the source package.  "
9678 "If unavailable this is returned as an empty string C<\"\">."
9679 msgstr ""
9680
9681 # type: =item
9682 #: ../src/guestfs-actions.pod:2976 ../fish/guestfish-actions.pod:2067
9683 msgid "C<app_summary>"
9684 msgstr ""
9685
9686 # type: textblock
9687 #: ../src/guestfs-actions.pod:2978 ../fish/guestfish-actions.pod:2069
9688 msgid ""
9689 "A short (usually one line) description of the application or package.  If "
9690 "unavailable this is returned as an empty string C<\"\">."
9691 msgstr ""
9692
9693 # type: =item
9694 #: ../src/guestfs-actions.pod:2981 ../fish/guestfish-actions.pod:2072
9695 msgid "C<app_description>"
9696 msgstr ""
9697
9698 # type: textblock
9699 #: ../src/guestfs-actions.pod:2983 ../fish/guestfish-actions.pod:2074
9700 msgid ""
9701 "A longer description of the application or package.  If unavailable this is "
9702 "returned as an empty string C<\"\">."
9703 msgstr ""
9704
9705 # type: textblock
9706 #: ../src/guestfs-actions.pod:2990
9707 msgid ""
9708 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9709 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9710 "after use>."
9711 msgstr ""
9712
9713 # type: textblock
9714 #: ../src/guestfs-actions.pod:2994
9715 msgid "(Added in 1.7.8)"
9716 msgstr ""
9717
9718 # type: =head2
9719 #: ../src/guestfs-actions.pod:2996
9720 msgid "guestfs_inspect_os"
9721 msgstr ""
9722
9723 # type: verbatim
9724 #: ../src/guestfs-actions.pod:2998
9725 #, no-wrap
9726 msgid ""
9727 " char **\n"
9728 " guestfs_inspect_os (guestfs_h *g);\n"
9729 "\n"
9730 msgstr ""
9731
9732 # type: textblock
9733 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2085
9734 msgid ""
9735 "This function uses other libguestfs functions and certain heuristics to "
9736 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9737 "for operating systems."
9738 msgstr ""
9739
9740 # type: textblock
9741 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2089
9742 msgid "The list returned is empty if no operating systems were found."
9743 msgstr ""
9744
9745 # type: textblock
9746 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2091
9747 msgid ""
9748 "If one operating system was found, then this returns a list with a single "
9749 "element, which is the name of the root filesystem of this operating system.  "
9750 "It is also possible for this function to return a list containing more than "
9751 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9752 "element being the root filesystem of one of the operating systems."
9753 msgstr ""
9754
9755 # type: textblock
9756 #: ../src/guestfs-actions.pod:3014
9757 msgid ""
9758 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9759 "functions in order to query further information about each operating system, "
9760 "such as the name and version."
9761 msgstr ""
9762
9763 # type: textblock
9764 #: ../src/guestfs-actions.pod:3019
9765 msgid ""
9766 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9767 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9768 "the contents.  This should be called with no disks currently mounted.  The "
9769 "function may also use Augeas, so any existing Augeas handle will be closed."
9770 msgstr ""
9771
9772 # type: textblock
9773 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2109
9774 msgid ""
9775 "This function cannot decrypt encrypted disks.  The caller must do that first "
9776 "(supplying the necessary keys) if the disk is encrypted."
9777 msgstr ""
9778
9779 # type: textblock
9780 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3314
9781 #: ../src/guestfs-actions.pod:3376
9782 msgid "See also C<guestfs_list_filesystems>."
9783 msgstr ""
9784
9785 # type: =head2
9786 #: ../src/guestfs-actions.pod:3039
9787 msgid "guestfs_is_blockdev"
9788 msgstr ""
9789
9790 # type: verbatim
9791 #: ../src/guestfs-actions.pod:3041
9792 #, no-wrap
9793 msgid ""
9794 " int\n"
9795 " guestfs_is_blockdev (guestfs_h *g,\n"
9796 "                      const char *path);\n"
9797 "\n"
9798 msgstr ""
9799
9800 # type: textblock
9801 #: ../src/guestfs-actions.pod:3045 ../fish/guestfish-actions.pod:2121
9802 msgid ""
9803 "This returns C<true> if and only if there is a block device with the given "
9804 "C<path> name."
9805 msgstr ""
9806
9807 # type: textblock
9808 #: ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:3077
9809 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3122
9810 #: ../src/guestfs-actions.pod:3138 ../src/guestfs-actions.pod:3194
9811 #: ../src/guestfs-actions.pod:3209
9812 msgid "See also C<guestfs_stat>."
9813 msgstr ""
9814
9815 # type: textblock
9816 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3081
9817 #: ../src/guestfs-actions.pod:3126 ../src/guestfs-actions.pod:3198
9818 #: ../src/guestfs-actions.pod:3213
9819 msgid "(Added in 1.5.10)"
9820 msgstr ""
9821
9822 # type: =head2
9823 #: ../src/guestfs-actions.pod:3054
9824 msgid "guestfs_is_busy"
9825 msgstr ""
9826
9827 # type: verbatim
9828 #: ../src/guestfs-actions.pod:3056
9829 #, no-wrap
9830 msgid ""
9831 " int\n"
9832 " guestfs_is_busy (guestfs_h *g);\n"
9833 "\n"
9834 msgstr ""
9835
9836 # type: textblock
9837 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2130
9838 msgid ""
9839 "This returns true iff this handle is busy processing a command (in the "
9840 "C<BUSY> state)."
9841 msgstr ""
9842
9843 # type: =head2
9844 #: ../src/guestfs-actions.pod:3068
9845 msgid "guestfs_is_chardev"
9846 msgstr ""
9847
9848 # type: verbatim
9849 #: ../src/guestfs-actions.pod:3070
9850 #, no-wrap
9851 msgid ""
9852 " int\n"
9853 " guestfs_is_chardev (guestfs_h *g,\n"
9854 "                     const char *path);\n"
9855 "\n"
9856 msgstr ""
9857
9858 # type: textblock
9859 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2139
9860 msgid ""
9861 "This returns C<true> if and only if there is a character device with the "
9862 "given C<path> name."
9863 msgstr ""
9864
9865 # type: =head2
9866 #: ../src/guestfs-actions.pod:3083
9867 msgid "guestfs_is_config"
9868 msgstr ""
9869
9870 # type: verbatim
9871 #: ../src/guestfs-actions.pod:3085
9872 #, no-wrap
9873 msgid ""
9874 " int\n"
9875 " guestfs_is_config (guestfs_h *g);\n"
9876 "\n"
9877 msgstr ""
9878
9879 # type: textblock
9880 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2148
9881 msgid ""
9882 "This returns true iff this handle is being configured (in the C<CONFIG> "
9883 "state)."
9884 msgstr ""
9885
9886 # type: =head2
9887 #: ../src/guestfs-actions.pod:3097
9888 msgid "guestfs_is_dir"
9889 msgstr ""
9890
9891 # type: verbatim
9892 #: ../src/guestfs-actions.pod:3099
9893 #, no-wrap
9894 msgid ""
9895 " int\n"
9896 " guestfs_is_dir (guestfs_h *g,\n"
9897 "                 const char *path);\n"
9898 "\n"
9899 msgstr ""
9900
9901 # type: textblock
9902 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2157
9903 msgid ""
9904 "This returns C<true> if and only if there is a directory with the given "
9905 "C<path> name.  Note that it returns false for other objects like files."
9906 msgstr ""
9907
9908 # type: =head2
9909 #: ../src/guestfs-actions.pod:3113
9910 msgid "guestfs_is_fifo"
9911 msgstr ""
9912
9913 # type: verbatim
9914 #: ../src/guestfs-actions.pod:3115
9915 #, no-wrap
9916 msgid ""
9917 " int\n"
9918 " guestfs_is_fifo (guestfs_h *g,\n"
9919 "                  const char *path);\n"
9920 "\n"
9921 msgstr ""
9922
9923 # type: textblock
9924 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2167
9925 msgid ""
9926 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9927 "given C<path> name."
9928 msgstr ""
9929
9930 # type: =head2
9931 #: ../src/guestfs-actions.pod:3128
9932 msgid "guestfs_is_file"
9933 msgstr ""
9934
9935 # type: verbatim
9936 #: ../src/guestfs-actions.pod:3130
9937 #, no-wrap
9938 msgid ""
9939 " int\n"
9940 " guestfs_is_file (guestfs_h *g,\n"
9941 "                  const char *path);\n"
9942 "\n"
9943 msgstr ""
9944
9945 # type: textblock
9946 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2176
9947 msgid ""
9948 "This returns C<true> if and only if there is a regular file with the given "
9949 "C<path> name.  Note that it returns false for other objects like directories."
9950 msgstr ""
9951
9952 # type: =head2
9953 #: ../src/guestfs-actions.pod:3144
9954 msgid "guestfs_is_launching"
9955 msgstr ""
9956
9957 # type: verbatim
9958 #: ../src/guestfs-actions.pod:3146
9959 #, no-wrap
9960 msgid ""
9961 " int\n"
9962 " guestfs_is_launching (guestfs_h *g);\n"
9963 "\n"
9964 msgstr ""
9965
9966 # type: textblock
9967 #: ../src/guestfs-actions.pod:3149 ../fish/guestfish-actions.pod:2186
9968 msgid ""
9969 "This returns true iff this handle is launching the subprocess (in the "
9970 "C<LAUNCHING> state)."
9971 msgstr ""
9972
9973 # type: =head2
9974 #: ../src/guestfs-actions.pod:3158
9975 msgid "guestfs_is_lv"
9976 msgstr ""
9977
9978 # type: verbatim
9979 #: ../src/guestfs-actions.pod:3160
9980 #, no-wrap
9981 msgid ""
9982 " int\n"
9983 " guestfs_is_lv (guestfs_h *g,\n"
9984 "                const char *device);\n"
9985 "\n"
9986 msgstr ""
9987
9988 # type: textblock
9989 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2195
9990 msgid ""
9991 "This command tests whether C<device> is a logical volume, and returns true "
9992 "iff this is the case."
9993 msgstr ""
9994
9995 # type: =head2
9996 #: ../src/guestfs-actions.pod:3171
9997 msgid "guestfs_is_ready"
9998 msgstr ""
9999
10000 # type: verbatim
10001 #: ../src/guestfs-actions.pod:3173
10002 #, no-wrap
10003 msgid ""
10004 " int\n"
10005 " guestfs_is_ready (guestfs_h *g);\n"
10006 "\n"
10007 msgstr ""
10008
10009 # type: textblock
10010 #: ../src/guestfs-actions.pod:3176 ../fish/guestfish-actions.pod:2202
10011 msgid ""
10012 "This returns true iff this handle is ready to accept commands (in the "
10013 "C<READY> state)."
10014 msgstr ""
10015
10016 # type: =head2
10017 #: ../src/guestfs-actions.pod:3185
10018 msgid "guestfs_is_socket"
10019 msgstr ""
10020
10021 # type: verbatim
10022 #: ../src/guestfs-actions.pod:3187
10023 #, no-wrap
10024 msgid ""
10025 " int\n"
10026 " guestfs_is_socket (guestfs_h *g,\n"
10027 "                    const char *path);\n"
10028 "\n"
10029 msgstr ""
10030
10031 # type: textblock
10032 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2211
10033 msgid ""
10034 "This returns C<true> if and only if there is a Unix domain socket with the "
10035 "given C<path> name."
10036 msgstr ""
10037
10038 # type: =head2
10039 #: ../src/guestfs-actions.pod:3200
10040 msgid "guestfs_is_symlink"
10041 msgstr ""
10042
10043 # type: verbatim
10044 #: ../src/guestfs-actions.pod:3202
10045 #, no-wrap
10046 msgid ""
10047 " int\n"
10048 " guestfs_is_symlink (guestfs_h *g,\n"
10049 "                     const char *path);\n"
10050 "\n"
10051 msgstr ""
10052
10053 # type: textblock
10054 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
10055 msgid ""
10056 "This returns C<true> if and only if there is a symbolic link with the given "
10057 "C<path> name."
10058 msgstr ""
10059
10060 # type: =head2
10061 #: ../src/guestfs-actions.pod:3215
10062 msgid "guestfs_kill_subprocess"
10063 msgstr ""
10064
10065 # type: verbatim
10066 #: ../src/guestfs-actions.pod:3217
10067 #, no-wrap
10068 msgid ""
10069 " int\n"
10070 " guestfs_kill_subprocess (guestfs_h *g);\n"
10071 "\n"
10072 msgstr ""
10073
10074 # type: textblock
10075 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2229
10076 msgid "This kills the qemu subprocess.  You should never need to call this."
10077 msgstr ""
10078
10079 # type: =head2
10080 #: ../src/guestfs-actions.pod:3226
10081 msgid "guestfs_launch"
10082 msgstr ""
10083
10084 # type: verbatim
10085 #: ../src/guestfs-actions.pod:3228
10086 #, no-wrap
10087 msgid ""
10088 " int\n"
10089 " guestfs_launch (guestfs_h *g);\n"
10090 "\n"
10091 msgstr ""
10092
10093 # type: textblock
10094 #: ../src/guestfs-actions.pod:3231 ../fish/guestfish-actions.pod:2237
10095 msgid ""
10096 "Internally libguestfs is implemented by running a virtual machine using "
10097 "L<qemu(1)>."
10098 msgstr ""
10099
10100 # type: textblock
10101 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2240
10102 msgid ""
10103 "You should call this after configuring the handle (eg. adding drives) but "
10104 "before performing any actions."
10105 msgstr ""
10106
10107 # type: =head2
10108 #: ../src/guestfs-actions.pod:3241
10109 msgid "guestfs_lchown"
10110 msgstr ""
10111
10112 # type: verbatim
10113 #: ../src/guestfs-actions.pod:3243
10114 #, no-wrap
10115 msgid ""
10116 " int\n"
10117 " guestfs_lchown (guestfs_h *g,\n"
10118 "                 int owner,\n"
10119 "                 int group,\n"
10120 "                 const char *path);\n"
10121 "\n"
10122 msgstr ""
10123
10124 # type: textblock
10125 #: ../src/guestfs-actions.pod:3249
10126 msgid ""
10127 "Change the file owner to C<owner> and group to C<group>.  This is like "
10128 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
10129 "changed, not the target."
10130 msgstr ""
10131
10132 # type: =head2
10133 #: ../src/guestfs-actions.pod:3261
10134 msgid "guestfs_lgetxattr"
10135 msgstr ""
10136
10137 # type: verbatim
10138 #: ../src/guestfs-actions.pod:3263
10139 #, no-wrap
10140 msgid ""
10141 " char *\n"
10142 " guestfs_lgetxattr (guestfs_h *g,\n"
10143 "                    const char *path,\n"
10144 "                    const char *name,\n"
10145 "                    size_t *size_r);\n"
10146 "\n"
10147 msgstr ""
10148
10149 # type: textblock
10150 #: ../src/guestfs-actions.pod:3269 ../fish/guestfish-actions.pod:2259
10151 msgid ""
10152 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10153 "is a symlink, then this call returns an extended attribute from the symlink."
10154 msgstr ""
10155
10156 # type: textblock
10157 #: ../src/guestfs-actions.pod:3283
10158 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
10159 msgstr ""
10160
10161 # type: =head2
10162 #: ../src/guestfs-actions.pod:3289
10163 msgid "guestfs_lgetxattrs"
10164 msgstr ""
10165
10166 # type: verbatim
10167 #: ../src/guestfs-actions.pod:3291
10168 #, no-wrap
10169 msgid ""
10170 " struct guestfs_xattr_list *\n"
10171 " guestfs_lgetxattrs (guestfs_h *g,\n"
10172 "                     const char *path);\n"
10173 "\n"
10174 msgstr ""
10175
10176 # type: textblock
10177 #: ../src/guestfs-actions.pod:3295
10178 msgid ""
10179 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
10180 "then it returns the extended attributes of the link itself."
10181 msgstr ""
10182
10183 # type: =head2
10184 #: ../src/guestfs-actions.pod:3305
10185 msgid "guestfs_list_devices"
10186 msgstr ""
10187
10188 # type: verbatim
10189 #: ../src/guestfs-actions.pod:3307
10190 #, no-wrap
10191 msgid ""
10192 " char **\n"
10193 " guestfs_list_devices (guestfs_h *g);\n"
10194 "\n"
10195 msgstr ""
10196
10197 # type: textblock
10198 #: ../src/guestfs-actions.pod:3310 ../fish/guestfish-actions.pod:2287
10199 msgid "List all the block devices."
10200 msgstr ""
10201
10202 # type: textblock
10203 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2289
10204 msgid "The full block device names are returned, eg. C</dev/sda>."
10205 msgstr ""
10206
10207 # type: =head2
10208 #: ../src/guestfs-actions.pod:3322
10209 msgid "guestfs_list_filesystems"
10210 msgstr ""
10211
10212 # type: verbatim
10213 #: ../src/guestfs-actions.pod:3324
10214 #, no-wrap
10215 msgid ""
10216 " char **\n"
10217 " guestfs_list_filesystems (guestfs_h *g);\n"
10218 "\n"
10219 msgstr ""
10220
10221 # type: textblock
10222 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2297
10223 msgid ""
10224 "This inspection command looks for filesystems on partitions, block devices "
10225 "and logical volumes, returning a list of devices containing filesystems and "
10226 "their type."
10227 msgstr ""
10228
10229 # type: textblock
10230 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:2301
10231 msgid ""
10232 "The return value is a hash, where the keys are the devices containing "
10233 "filesystems, and the values are the filesystem types.  For example:"
10234 msgstr ""
10235
10236 # type: verbatim
10237 #: ../src/guestfs-actions.pod:3335 ../fish/guestfish-actions.pod:2305
10238 #, no-wrap
10239 msgid ""
10240 " \"/dev/sda1\" => \"ntfs\"\n"
10241 " \"/dev/sda2\" => \"ext2\"\n"
10242 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10243 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10244 "\n"
10245 msgstr ""
10246
10247 # type: textblock
10248 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2310
10249 msgid ""
10250 "The value can have the special value \"unknown\", meaning the content of the "
10251 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10252 msgstr ""
10253
10254 # type: textblock
10255 #: ../src/guestfs-actions.pod:3344
10256 msgid ""
10257 "This command runs other libguestfs commands, which might include "
10258 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10259 "soon after launch and only when nothing is mounted."
10260 msgstr ""
10261
10262 # type: textblock
10263 #: ../src/guestfs-actions.pod:3348
10264 msgid ""
10265 "Not all of the filesystems returned will be mountable.  In particular, swap "
10266 "partitions are returned in the list.  Also this command does not check that "
10267 "each filesystem found is valid and mountable, and some filesystems might be "
10268 "mountable but require special options.  Filesystems may not all belong to a "
10269 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10270 msgstr ""
10271
10272 # type: textblock
10273 #: ../src/guestfs-actions.pod:3362 ../src/guestfs-actions.pod:4951
10274 msgid "(Added in 1.5.15)"
10275 msgstr ""
10276
10277 # type: =head2
10278 #: ../src/guestfs-actions.pod:3364
10279 msgid "guestfs_list_partitions"
10280 msgstr ""
10281
10282 # type: verbatim
10283 #: ../src/guestfs-actions.pod:3366
10284 #, no-wrap
10285 msgid ""
10286 " char **\n"
10287 " guestfs_list_partitions (guestfs_h *g);\n"
10288 "\n"
10289 msgstr ""
10290
10291 # type: textblock
10292 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2330
10293 msgid "List all the partitions detected on all block devices."
10294 msgstr ""
10295
10296 # type: textblock
10297 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2332
10298 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10299 msgstr ""
10300
10301 # type: textblock
10302 #: ../src/guestfs-actions.pod:3373
10303 msgid ""
10304 "This does not return logical volumes.  For that you will need to call "
10305 "C<guestfs_lvs>."
10306 msgstr ""
10307
10308 # type: =head2
10309 #: ../src/guestfs-actions.pod:3384
10310 msgid "guestfs_ll"
10311 msgstr ""
10312
10313 # type: verbatim
10314 #: ../src/guestfs-actions.pod:3386
10315 #, no-wrap
10316 msgid ""
10317 " char *\n"
10318 " guestfs_ll (guestfs_h *g,\n"
10319 "             const char *directory);\n"
10320 "\n"
10321 msgstr ""
10322
10323 # type: textblock
10324 #: ../src/guestfs-actions.pod:3390 ../fish/guestfish-actions.pod:2343
10325 msgid ""
10326 "List the files in C<directory> (relative to the root directory, there is no "
10327 "cwd) in the format of 'ls -la'."
10328 msgstr ""
10329
10330 # type: textblock
10331 #: ../src/guestfs-actions.pod:3393 ../fish/guestfish-actions.pod:2346
10332 msgid ""
10333 "This command is mostly useful for interactive sessions.  It is I<not> "
10334 "intended that you try to parse the output string."
10335 msgstr ""
10336
10337 # type: =head2
10338 #: ../src/guestfs-actions.pod:3401
10339 msgid "guestfs_ln"
10340 msgstr ""
10341
10342 # type: verbatim
10343 #: ../src/guestfs-actions.pod:3403
10344 #, no-wrap
10345 msgid ""
10346 " int\n"
10347 " guestfs_ln (guestfs_h *g,\n"
10348 "             const char *target,\n"
10349 "             const char *linkname);\n"
10350 "\n"
10351 msgstr ""
10352
10353 # type: textblock
10354 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2353
10355 msgid "This command creates a hard link using the C<ln> command."
10356 msgstr ""
10357
10358 # type: =head2
10359 #: ../src/guestfs-actions.pod:3414
10360 msgid "guestfs_ln_f"
10361 msgstr ""
10362
10363 # type: verbatim
10364 #: ../src/guestfs-actions.pod:3416
10365 #, no-wrap
10366 msgid ""
10367 " int\n"
10368 " guestfs_ln_f (guestfs_h *g,\n"
10369 "               const char *target,\n"
10370 "               const char *linkname);\n"
10371 "\n"
10372 msgstr ""
10373
10374 # type: textblock
10375 #: ../src/guestfs-actions.pod:3421 ../fish/guestfish-actions.pod:2359
10376 msgid ""
10377 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10378 "option removes the link (C<linkname>) if it exists already."
10379 msgstr ""
10380
10381 # type: =head2
10382 #: ../src/guestfs-actions.pod:3428
10383 msgid "guestfs_ln_s"
10384 msgstr ""
10385
10386 # type: verbatim
10387 #: ../src/guestfs-actions.pod:3430
10388 #, no-wrap
10389 msgid ""
10390 " int\n"
10391 " guestfs_ln_s (guestfs_h *g,\n"
10392 "               const char *target,\n"
10393 "               const char *linkname);\n"
10394 "\n"
10395 msgstr ""
10396
10397 # type: textblock
10398 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2366
10399 msgid "This command creates a symbolic link using the C<ln -s> command."
10400 msgstr ""
10401
10402 # type: =head2
10403 #: ../src/guestfs-actions.pod:3441
10404 msgid "guestfs_ln_sf"
10405 msgstr ""
10406
10407 # type: verbatim
10408 #: ../src/guestfs-actions.pod:3443
10409 #, no-wrap
10410 msgid ""
10411 " int\n"
10412 " guestfs_ln_sf (guestfs_h *g,\n"
10413 "                const char *target,\n"
10414 "                const char *linkname);\n"
10415 "\n"
10416 msgstr ""
10417
10418 # type: textblock
10419 #: ../src/guestfs-actions.pod:3448 ../fish/guestfish-actions.pod:2372
10420 msgid ""
10421 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10422 "option removes the link (C<linkname>) if it exists already."
10423 msgstr ""
10424
10425 # type: =head2
10426 #: ../src/guestfs-actions.pod:3455
10427 msgid "guestfs_lremovexattr"
10428 msgstr ""
10429
10430 # type: verbatim
10431 #: ../src/guestfs-actions.pod:3457
10432 #, no-wrap
10433 msgid ""
10434 " int\n"
10435 " guestfs_lremovexattr (guestfs_h *g,\n"
10436 "                       const char *xattr,\n"
10437 "                       const char *path);\n"
10438 "\n"
10439 msgstr ""
10440
10441 # type: textblock
10442 #: ../src/guestfs-actions.pod:3462
10443 msgid ""
10444 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10445 "link, then it removes an extended attribute of the link itself."
10446 msgstr ""
10447
10448 # type: =head2
10449 #: ../src/guestfs-actions.pod:3470
10450 msgid "guestfs_ls"
10451 msgstr ""
10452
10453 # type: verbatim
10454 #: ../src/guestfs-actions.pod:3472
10455 #, no-wrap
10456 msgid ""
10457 " char **\n"
10458 " guestfs_ls (guestfs_h *g,\n"
10459 "             const char *directory);\n"
10460 "\n"
10461 msgstr ""
10462
10463 # type: textblock
10464 #: ../src/guestfs-actions.pod:3476 ../fish/guestfish-actions.pod:2387
10465 msgid ""
10466 "List the files in C<directory> (relative to the root directory, there is no "
10467 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10468 msgstr ""
10469
10470 # type: textblock
10471 #: ../src/guestfs-actions.pod:3480
10472 msgid ""
10473 "This command is mostly useful for interactive sessions.  Programs should "
10474 "probably use C<guestfs_readdir> instead."
10475 msgstr ""
10476
10477 # type: =head2
10478 #: ../src/guestfs-actions.pod:3489
10479 msgid "guestfs_lsetxattr"
10480 msgstr ""
10481
10482 # type: verbatim
10483 #: ../src/guestfs-actions.pod:3491
10484 #, no-wrap
10485 msgid ""
10486 " int\n"
10487 " guestfs_lsetxattr (guestfs_h *g,\n"
10488 "                    const char *xattr,\n"
10489 "                    const char *val,\n"
10490 "                    int vallen,\n"
10491 "                    const char *path);\n"
10492 "\n"
10493 msgstr ""
10494
10495 # type: textblock
10496 #: ../src/guestfs-actions.pod:3498
10497 msgid ""
10498 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10499 "then it sets an extended attribute of the link itself."
10500 msgstr ""
10501
10502 # type: =head2
10503 #: ../src/guestfs-actions.pod:3506
10504 msgid "guestfs_lstat"
10505 msgstr ""
10506
10507 # type: verbatim
10508 #: ../src/guestfs-actions.pod:3508
10509 #, no-wrap
10510 msgid ""
10511 " struct guestfs_stat *\n"
10512 " guestfs_lstat (guestfs_h *g,\n"
10513 "                const char *path);\n"
10514 "\n"
10515 msgstr ""
10516
10517 # type: textblock
10518 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:6005
10519 #: ../fish/guestfish-actions.pod:2406 ../fish/guestfish-actions.pod:4019
10520 msgid "Returns file information for the given C<path>."
10521 msgstr ""
10522
10523 # type: textblock
10524 #: ../src/guestfs-actions.pod:3514
10525 msgid ""
10526 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10527 "link, then the link is stat-ed, not the file it refers to."
10528 msgstr ""
10529
10530 # type: textblock
10531 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2412
10532 msgid "This is the same as the C<lstat(2)> system call."
10533 msgstr ""
10534
10535 # type: textblock
10536 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:6009
10537 msgid ""
10538 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10539 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10540 msgstr ""
10541
10542 # type: textblock
10543 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:6013
10544 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6412
10545 msgid "(Added in 0.9.2)"
10546 msgstr ""
10547
10548 # type: =head2
10549 #: ../src/guestfs-actions.pod:3526
10550 msgid "guestfs_lstatlist"
10551 msgstr ""
10552
10553 # type: verbatim
10554 #: ../src/guestfs-actions.pod:3528
10555 #, no-wrap
10556 msgid ""
10557 " struct guestfs_stat_list *\n"
10558 " guestfs_lstatlist (guestfs_h *g,\n"
10559 "                    const char *path,\n"
10560 "                    char *const *names);\n"
10561 "\n"
10562 msgstr ""
10563
10564 # type: textblock
10565 #: ../src/guestfs-actions.pod:3533
10566 msgid ""
10567 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10568 "files, where all files are in the directory C<path>.  C<names> is the list "
10569 "of files from this directory."
10570 msgstr ""
10571
10572 # type: textblock
10573 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2422
10574 msgid ""
10575 "On return you get a list of stat structs, with a one-to-one correspondence "
10576 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10577 "then the C<ino> field of that structure is set to C<-1>."
10578 msgstr ""
10579
10580 # type: textblock
10581 #: ../src/guestfs-actions.pod:3542
10582 msgid ""
10583 "This call is intended for programs that want to efficiently list a directory "
10584 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10585 "for a similarly efficient call for getting extended attributes.  Very long "
10586 "directory listings might cause the protocol message size to be exceeded, "
10587 "causing this call to fail.  The caller must split up such requests into "
10588 "smaller groups of names."
10589 msgstr ""
10590
10591 # type: textblock
10592 #: ../src/guestfs-actions.pod:3550
10593 msgid ""
10594 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10595 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10596 msgstr ""
10597
10598 # type: =head2
10599 #: ../src/guestfs-actions.pod:3556
10600 msgid "guestfs_luks_add_key"
10601 msgstr ""
10602
10603 # type: verbatim
10604 #: ../src/guestfs-actions.pod:3558
10605 #, no-wrap
10606 msgid ""
10607 " int\n"
10608 " guestfs_luks_add_key (guestfs_h *g,\n"
10609 "                       const char *device,\n"
10610 "                       const char *key,\n"
10611 "                       const char *newkey,\n"
10612 "                       int keyslot);\n"
10613 "\n"
10614 msgstr ""
10615
10616 # type: textblock
10617 #: ../src/guestfs-actions.pod:3565 ../fish/guestfish-actions.pod:2439
10618 msgid ""
10619 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10620 "existing key, and is used to access the device.  C<newkey> is the new key to "
10621 "add.  C<keyslot> is the key slot that will be replaced."
10622 msgstr ""
10623
10624 # type: textblock
10625 #: ../src/guestfs-actions.pod:3570
10626 msgid ""
10627 "Note that if C<keyslot> already contains a key, then this command will "
10628 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10629 msgstr ""
10630
10631 # type: textblock
10632 #: ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3616
10633 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3659
10634 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3710
10635 msgid ""
10636 "This function takes a key or passphrase parameter which could contain "
10637 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10638 "information."
10639 msgstr ""
10640
10641 # type: textblock
10642 #: ../src/guestfs-actions.pod:3580 ../src/guestfs-actions.pod:3620
10643 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3663
10644 msgid "(Added in 1.5.2)"
10645 msgstr ""
10646
10647 # type: =head2
10648 #: ../src/guestfs-actions.pod:3582
10649 msgid "guestfs_luks_close"
10650 msgstr ""
10651
10652 # type: verbatim
10653 #: ../src/guestfs-actions.pod:3584
10654 #, no-wrap
10655 msgid ""
10656 " int\n"
10657 " guestfs_luks_close (guestfs_h *g,\n"
10658 "                     const char *device);\n"
10659 "\n"
10660 msgstr ""
10661
10662 # type: textblock
10663 #: ../src/guestfs-actions.pod:3588
10664 msgid ""
10665 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10666 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10667 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10668 "underlying block device."
10669 msgstr ""
10670
10671 # type: textblock
10672 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3695
10673 #: ../src/guestfs-actions.pod:3714 ../src/guestfs-actions.pod:3764
10674 #: ../src/guestfs-actions.pod:3812
10675 msgid "(Added in 1.5.1)"
10676 msgstr ""
10677
10678 # type: =head2
10679 #: ../src/guestfs-actions.pod:3598
10680 msgid "guestfs_luks_format"
10681 msgstr ""
10682
10683 # type: verbatim
10684 #: ../src/guestfs-actions.pod:3600
10685 #, no-wrap
10686 msgid ""
10687 " int\n"
10688 " guestfs_luks_format (guestfs_h *g,\n"
10689 "                      const char *device,\n"
10690 "                      const char *key,\n"
10691 "                      int keyslot);\n"
10692 "\n"
10693 msgstr ""
10694
10695 # type: textblock
10696 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2465
10697 msgid ""
10698 "This command erases existing data on C<device> and formats the device as a "
10699 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10700 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10701 msgstr ""
10702
10703 # type: textblock
10704 #: ../src/guestfs-actions.pod:3613 ../src/guestfs-actions.pod:3636
10705 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:4702
10706 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5840
10707 #: ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5889
10708 #: ../src/guestfs-actions.pod:7049 ../fish/guestfish-actions.pod:2473
10709 #: ../fish/guestfish-actions.pod:2486 ../fish/guestfish-actions.pod:2570
10710 #: ../fish/guestfish-actions.pod:3131 ../fish/guestfish-actions.pod:3638
10711 #: ../fish/guestfish-actions.pod:3918 ../fish/guestfish-actions.pod:3934
10712 #: ../fish/guestfish-actions.pod:3949 ../fish/guestfish-actions.pod:4664
10713 msgid ""
10714 "B<This command is dangerous.  Without careful use you can easily destroy all "
10715 "your data>."
10716 msgstr ""
10717
10718 # type: =head2
10719 #: ../src/guestfs-actions.pod:3622
10720 msgid "guestfs_luks_format_cipher"
10721 msgstr ""
10722
10723 # type: verbatim
10724 #: ../src/guestfs-actions.pod:3624
10725 #, no-wrap
10726 msgid ""
10727 " int\n"
10728 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10729 "                             const char *device,\n"
10730 "                             const char *key,\n"
10731 "                             int keyslot,\n"
10732 "                             const char *cipher);\n"
10733 "\n"
10734 msgstr ""
10735
10736 # type: textblock
10737 #: ../src/guestfs-actions.pod:3631
10738 msgid ""
10739 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10740 "set the C<cipher> used."
10741 msgstr ""
10742
10743 # type: =head2
10744 #: ../src/guestfs-actions.pod:3645
10745 msgid "guestfs_luks_kill_slot"
10746 msgstr ""
10747
10748 # type: verbatim
10749 #: ../src/guestfs-actions.pod:3647
10750 #, no-wrap
10751 msgid ""
10752 " int\n"
10753 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10754 "                         const char *device,\n"
10755 "                         const char *key,\n"
10756 "                         int keyslot);\n"
10757 "\n"
10758 msgstr ""
10759
10760 # type: textblock
10761 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2493
10762 msgid ""
10763 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10764 "device C<device>.  C<key> must be one of the I<other> keys."
10765 msgstr ""
10766
10767 # type: =head2
10768 #: ../src/guestfs-actions.pod:3665
10769 msgid "guestfs_luks_open"
10770 msgstr ""
10771
10772 # type: verbatim
10773 #: ../src/guestfs-actions.pod:3667
10774 #, no-wrap
10775 msgid ""
10776 " int\n"
10777 " guestfs_luks_open (guestfs_h *g,\n"
10778 "                    const char *device,\n"
10779 "                    const char *key,\n"
10780 "                    const char *mapname);\n"
10781 "\n"
10782 msgstr ""
10783
10784 # type: textblock
10785 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2504
10786 msgid ""
10787 "This command opens a block device which has been encrypted according to the "
10788 "Linux Unified Key Setup (LUKS) standard."
10789 msgstr ""
10790
10791 # type: textblock
10792 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2507
10793 msgid "C<device> is the encrypted block device or partition."
10794 msgstr ""
10795
10796 # type: textblock
10797 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2509
10798 msgid ""
10799 "The caller must supply one of the keys associated with the LUKS block "
10800 "device, in the C<key> parameter."
10801 msgstr ""
10802
10803 # type: textblock
10804 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2512
10805 msgid ""
10806 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10807 "writes to this block device are decrypted from and encrypted to the "
10808 "underlying C<device> respectively."
10809 msgstr ""
10810
10811 # type: textblock
10812 #: ../src/guestfs-actions.pod:3685
10813 msgid ""
10814 "If this block device contains LVM volume groups, then calling "
10815 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10816 "visible."
10817 msgstr ""
10818
10819 # type: =head2
10820 #: ../src/guestfs-actions.pod:3697
10821 msgid "guestfs_luks_open_ro"
10822 msgstr ""
10823
10824 # type: verbatim
10825 #: ../src/guestfs-actions.pod:3699
10826 #, no-wrap
10827 msgid ""
10828 " int\n"
10829 " guestfs_luks_open_ro (guestfs_h *g,\n"
10830 "                       const char *device,\n"
10831 "                       const char *key,\n"
10832 "                       const char *mapname);\n"
10833 "\n"
10834 msgstr ""
10835
10836 # type: textblock
10837 #: ../src/guestfs-actions.pod:3705
10838 msgid ""
10839 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10840 "created."
10841 msgstr ""
10842
10843 # type: =head2
10844 #: ../src/guestfs-actions.pod:3716
10845 msgid "guestfs_lvcreate"
10846 msgstr ""
10847
10848 # type: verbatim
10849 #: ../src/guestfs-actions.pod:3718
10850 #, no-wrap
10851 msgid ""
10852 " int\n"
10853 " guestfs_lvcreate (guestfs_h *g,\n"
10854 "                   const char *logvol,\n"
10855 "                   const char *volgroup,\n"
10856 "                   int mbytes);\n"
10857 "\n"
10858 msgstr ""
10859
10860 # type: textblock
10861 #: ../src/guestfs-actions.pod:3724 ../fish/guestfish-actions.pod:2537
10862 msgid ""
10863 "This creates an LVM logical volume called C<logvol> on the volume group "
10864 "C<volgroup>, with C<size> megabytes."
10865 msgstr ""
10866
10867 # type: =head2
10868 #: ../src/guestfs-actions.pod:3731
10869 msgid "guestfs_lvm_canonical_lv_name"
10870 msgstr ""
10871
10872 # type: verbatim
10873 #: ../src/guestfs-actions.pod:3733
10874 #, no-wrap
10875 msgid ""
10876 " char *\n"
10877 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10878 "                                const char *lvname);\n"
10879 "\n"
10880 msgstr ""
10881
10882 # type: textblock
10883 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2544
10884 msgid ""
10885 "This converts alternative naming schemes for LVs that you might find to the "
10886 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10887 "LV>."
10888 msgstr ""
10889
10890 # type: textblock
10891 #: ../src/guestfs-actions.pod:3741 ../fish/guestfish-actions.pod:2548
10892 msgid ""
10893 "This command returns an error if the C<lvname> parameter does not refer to a "
10894 "logical volume."
10895 msgstr ""
10896
10897 # type: textblock
10898 #: ../src/guestfs-actions.pod:3744
10899 msgid "See also C<guestfs_is_lv>."
10900 msgstr ""
10901
10902 # type: textblock
10903 #: ../src/guestfs-actions.pod:3749
10904 msgid "(Added in 1.5.24)"
10905 msgstr ""
10906
10907 # type: =head2
10908 #: ../src/guestfs-actions.pod:3751
10909 msgid "guestfs_lvm_clear_filter"
10910 msgstr ""
10911
10912 # type: verbatim
10913 #: ../src/guestfs-actions.pod:3753
10914 #, no-wrap
10915 msgid ""
10916 " int\n"
10917 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10918 "\n"
10919 msgstr ""
10920
10921 # type: textblock
10922 #: ../src/guestfs-actions.pod:3756
10923 msgid ""
10924 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10925 "see every block device."
10926 msgstr ""
10927
10928 # type: textblock
10929 #: ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3801
10930 #: ../fish/guestfish-actions.pod:2560 ../fish/guestfish-actions.pod:2591
10931 msgid ""
10932 "This command also clears the LVM cache and performs a volume group scan."
10933 msgstr ""
10934
10935 # type: =head2
10936 #: ../src/guestfs-actions.pod:3766
10937 msgid "guestfs_lvm_remove_all"
10938 msgstr ""
10939
10940 # type: verbatim
10941 #: ../src/guestfs-actions.pod:3768
10942 #, no-wrap
10943 msgid ""
10944 " int\n"
10945 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10946 "\n"
10947 msgstr ""
10948
10949 # type: textblock
10950 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2567
10951 msgid ""
10952 "This command removes all LVM logical volumes, volume groups and physical "
10953 "volumes."
10954 msgstr ""
10955
10956 # type: =head2
10957 #: ../src/guestfs-actions.pod:3781
10958 msgid "guestfs_lvm_set_filter"
10959 msgstr ""
10960
10961 # type: verbatim
10962 #: ../src/guestfs-actions.pod:3783
10963 #, no-wrap
10964 msgid ""
10965 " int\n"
10966 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10967 "                         char *const *devices);\n"
10968 "\n"
10969 msgstr ""
10970
10971 # type: textblock
10972 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2577
10973 msgid ""
10974 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10975 "block devices in the list C<devices>, and will ignore all other attached "
10976 "block devices."
10977 msgstr ""
10978
10979 # type: textblock
10980 #: ../src/guestfs-actions.pod:3791 ../fish/guestfish-actions.pod:2581
10981 msgid ""
10982 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10983 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10984 "there are two types of duplication possible: either cloned PVs/VGs which "
10985 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10986 "same name.  In normal operation you cannot create this situation, but you "
10987 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10988 "inside the LVM metadata."
10989 msgstr ""
10990
10991 # type: textblock
10992 #: ../src/guestfs-actions.pod:3804 ../fish/guestfish-actions.pod:2594
10993 msgid "You can filter whole block devices or individual partitions."
10994 msgstr ""
10995
10996 # type: textblock
10997 #: ../src/guestfs-actions.pod:3806 ../fish/guestfish-actions.pod:2596
10998 msgid ""
10999 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11000 "filesystem), even if you are not filtering out that VG."
11001 msgstr ""
11002
11003 # type: =head2
11004 #: ../src/guestfs-actions.pod:3814
11005 msgid "guestfs_lvremove"
11006 msgstr ""
11007
11008 # type: verbatim
11009 #: ../src/guestfs-actions.pod:3816
11010 #, no-wrap
11011 msgid ""
11012 " int\n"
11013 " guestfs_lvremove (guestfs_h *g,\n"
11014 "                   const char *device);\n"
11015 "\n"
11016 msgstr ""
11017
11018 # type: textblock
11019 #: ../src/guestfs-actions.pod:3820 ../fish/guestfish-actions.pod:2604
11020 msgid ""
11021 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11022 "LV, such as C</dev/VG/LV>."
11023 msgstr ""
11024
11025 # type: textblock
11026 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2607
11027 msgid ""
11028 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11029 "dev/VG>."
11030 msgstr ""
11031
11032 # type: textblock
11033 #: ../src/guestfs-actions.pod:3828 ../src/guestfs-actions.pod:5048
11034 #: ../src/guestfs-actions.pod:6788
11035 msgid "(Added in 1.0.13)"
11036 msgstr ""
11037
11038 # type: =head2
11039 #: ../src/guestfs-actions.pod:3830
11040 msgid "guestfs_lvrename"
11041 msgstr ""
11042
11043 # type: verbatim
11044 #: ../src/guestfs-actions.pod:3832
11045 #, no-wrap
11046 msgid ""
11047 " int\n"
11048 " guestfs_lvrename (guestfs_h *g,\n"
11049 "                   const char *logvol,\n"
11050 "                   const char *newlogvol);\n"
11051 "\n"
11052 msgstr ""
11053
11054 # type: textblock
11055 #: ../src/guestfs-actions.pod:3837 ../fish/guestfish-actions.pod:2614
11056 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11057 msgstr ""
11058
11059 # type: textblock
11060 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:6801
11061 msgid "(Added in 1.0.83)"
11062 msgstr ""
11063
11064 # type: =head2
11065 #: ../src/guestfs-actions.pod:3843
11066 msgid "guestfs_lvresize"
11067 msgstr ""
11068
11069 # type: verbatim
11070 #: ../src/guestfs-actions.pod:3845
11071 #, no-wrap
11072 msgid ""
11073 " int\n"
11074 " guestfs_lvresize (guestfs_h *g,\n"
11075 "                   const char *device,\n"
11076 "                   int mbytes);\n"
11077 "\n"
11078 msgstr ""
11079
11080 # type: textblock
11081 #: ../src/guestfs-actions.pod:3850 ../fish/guestfish-actions.pod:2620
11082 msgid ""
11083 "This resizes (expands or shrinks) an existing LVM logical volume to "
11084 "C<mbytes>.  When reducing, data in the reduced part is lost."
11085 msgstr ""
11086
11087 # type: =head2
11088 #: ../src/guestfs-actions.pod:3858
11089 msgid "guestfs_lvresize_free"
11090 msgstr ""
11091
11092 # type: verbatim
11093 #: ../src/guestfs-actions.pod:3860
11094 #, no-wrap
11095 msgid ""
11096 " int\n"
11097 " guestfs_lvresize_free (guestfs_h *g,\n"
11098 "                        const char *lv,\n"
11099 "                        int percent);\n"
11100 "\n"
11101 msgstr ""
11102
11103 # type: textblock
11104 #: ../src/guestfs-actions.pod:3865 ../fish/guestfish-actions.pod:2628
11105 msgid ""
11106 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11107 "remaining free space in the volume group.  Commonly you would call this with "
11108 "pc = 100 which expands the logical volume as much as possible, using all "
11109 "remaining free space in the volume group."
11110 msgstr ""
11111
11112 # type: textblock
11113 #: ../src/guestfs-actions.pod:3873
11114 msgid "(Added in 1.3.3)"
11115 msgstr ""
11116
11117 # type: =head2
11118 #: ../src/guestfs-actions.pod:3875
11119 msgid "guestfs_lvs"
11120 msgstr ""
11121
11122 # type: verbatim
11123 #: ../src/guestfs-actions.pod:3877
11124 #, no-wrap
11125 msgid ""
11126 " char **\n"
11127 " guestfs_lvs (guestfs_h *g);\n"
11128 "\n"
11129 msgstr ""
11130
11131 # type: textblock
11132 #: ../src/guestfs-actions.pod:3880 ../fish/guestfish-actions.pod:2638
11133 msgid ""
11134 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11135 "(8)> command."
11136 msgstr ""
11137
11138 # type: textblock
11139 #: ../src/guestfs-actions.pod:3883 ../fish/guestfish-actions.pod:2641
11140 msgid ""
11141 "This returns a list of the logical volume device names (eg. C</dev/"
11142 "VolGroup00/LogVol00>)."
11143 msgstr ""
11144
11145 # type: textblock
11146 #: ../src/guestfs-actions.pod:3886
11147 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
11148 msgstr ""
11149
11150 # type: =head2
11151 #: ../src/guestfs-actions.pod:3894
11152 msgid "guestfs_lvs_full"
11153 msgstr ""
11154
11155 # type: verbatim
11156 #: ../src/guestfs-actions.pod:3896
11157 #, no-wrap
11158 msgid ""
11159 " struct guestfs_lvm_lv_list *\n"
11160 " guestfs_lvs_full (guestfs_h *g);\n"
11161 "\n"
11162 msgstr ""
11163
11164 # type: textblock
11165 #: ../src/guestfs-actions.pod:3899 ../fish/guestfish-actions.pod:2650
11166 msgid ""
11167 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11168 "(8)> command.  The \"full\" version includes all fields."
11169 msgstr ""
11170
11171 # type: textblock
11172 #: ../src/guestfs-actions.pod:3902
11173 msgid ""
11174 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
11175 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
11176 msgstr ""
11177
11178 # type: =head2
11179 #: ../src/guestfs-actions.pod:3908
11180 msgid "guestfs_lvuuid"
11181 msgstr ""
11182
11183 # type: verbatim
11184 #: ../src/guestfs-actions.pod:3910
11185 #, no-wrap
11186 msgid ""
11187 " char *\n"
11188 " guestfs_lvuuid (guestfs_h *g,\n"
11189 "                 const char *device);\n"
11190 "\n"
11191 msgstr ""
11192
11193 # type: textblock
11194 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2657
11195 msgid "This command returns the UUID of the LVM LV C<device>."
11196 msgstr ""
11197
11198 # type: =head2
11199 #: ../src/guestfs-actions.pod:3921
11200 msgid "guestfs_lxattrlist"
11201 msgstr ""
11202
11203 # type: verbatim
11204 #: ../src/guestfs-actions.pod:3923
11205 #, no-wrap
11206 msgid ""
11207 " struct guestfs_xattr_list *\n"
11208 " guestfs_lxattrlist (guestfs_h *g,\n"
11209 "                     const char *path,\n"
11210 "                     char *const *names);\n"
11211 "\n"
11212 msgstr ""
11213
11214 # type: textblock
11215 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:2663
11216 msgid ""
11217 "This call allows you to get the extended attributes of multiple files, where "
11218 "all files are in the directory C<path>.  C<names> is the list of files from "
11219 "this directory."
11220 msgstr ""
11221
11222 # type: textblock
11223 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:2667
11224 msgid ""
11225 "On return you get a flat list of xattr structs which must be interpreted "
11226 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11227 "C<attrval> in this struct is zero-length to indicate there was an error "
11228 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11229 "number (the number of following attributes for this file, which could be C<"
11230 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11231 "for the first named file.  This repeats for the second and subsequent files."
11232 msgstr ""
11233
11234 # type: textblock
11235 #: ../src/guestfs-actions.pod:3942
11236 msgid ""
11237 "This call is intended for programs that want to efficiently list a directory "
11238 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11239 "a similarly efficient call for getting standard stats.  Very long directory "
11240 "listings might cause the protocol message size to be exceeded, causing this "
11241 "call to fail.  The caller must split up such requests into smaller groups of "
11242 "names."
11243 msgstr ""
11244
11245 # type: =head2
11246 #: ../src/guestfs-actions.pod:3956
11247 msgid "guestfs_mkdir"
11248 msgstr ""
11249
11250 # type: verbatim
11251 #: ../src/guestfs-actions.pod:3958
11252 #, no-wrap
11253 msgid ""
11254 " int\n"
11255 " guestfs_mkdir (guestfs_h *g,\n"
11256 "                const char *path);\n"
11257 "\n"
11258 msgstr ""
11259
11260 # type: textblock
11261 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2689
11262 msgid "Create a directory named C<path>."
11263 msgstr ""
11264
11265 # type: =head2
11266 #: ../src/guestfs-actions.pod:3968
11267 msgid "guestfs_mkdir_mode"
11268 msgstr ""
11269
11270 # type: verbatim
11271 #: ../src/guestfs-actions.pod:3970
11272 #, no-wrap
11273 msgid ""
11274 " int\n"
11275 " guestfs_mkdir_mode (guestfs_h *g,\n"
11276 "                     const char *path,\n"
11277 "                     int mode);\n"
11278 "\n"
11279 msgstr ""
11280
11281 # type: textblock
11282 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:2695
11283 msgid ""
11284 "This command creates a directory, setting the initial permissions of the "
11285 "directory to C<mode>."
11286 msgstr ""
11287
11288 # type: textblock
11289 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:2698
11290 msgid ""
11291 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11292 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11293 "other ways."
11294 msgstr ""
11295
11296 # type: textblock
11297 #: ../src/guestfs-actions.pod:3982
11298 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11299 msgstr ""
11300
11301 # type: =head2
11302 #: ../src/guestfs-actions.pod:3988
11303 msgid "guestfs_mkdir_p"
11304 msgstr ""
11305
11306 # type: verbatim
11307 #: ../src/guestfs-actions.pod:3990
11308 #, no-wrap
11309 msgid ""
11310 " int\n"
11311 " guestfs_mkdir_p (guestfs_h *g,\n"
11312 "                  const char *path);\n"
11313 "\n"
11314 msgstr ""
11315
11316 # type: textblock
11317 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:2708
11318 msgid ""
11319 "Create a directory named C<path>, creating any parent directories as "
11320 "necessary.  This is like the C<mkdir -p> shell command."
11321 msgstr ""
11322
11323 # type: =head2
11324 #: ../src/guestfs-actions.pod:4001
11325 msgid "guestfs_mkdtemp"
11326 msgstr ""
11327
11328 # type: verbatim
11329 #: ../src/guestfs-actions.pod:4003
11330 #, no-wrap
11331 msgid ""
11332 " char *\n"
11333 " guestfs_mkdtemp (guestfs_h *g,\n"
11334 "                  const char *template);\n"
11335 "\n"
11336 msgstr ""
11337
11338 # type: textblock
11339 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2715
11340 msgid ""
11341 "This command creates a temporary directory.  The C<template> parameter "
11342 "should be a full pathname for the temporary directory name with the final "
11343 "six characters being \"XXXXXX\"."
11344 msgstr ""
11345
11346 # type: textblock
11347 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:2720
11348 msgid ""
11349 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11350 "being suitable for Windows filesystems."
11351 msgstr ""
11352
11353 # type: textblock
11354 #: ../src/guestfs-actions.pod:4015 ../fish/guestfish-actions.pod:2723
11355 msgid "The name of the temporary directory that was created is returned."
11356 msgstr ""
11357
11358 # type: textblock
11359 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2726
11360 msgid "The temporary directory is created with mode 0700 and is owned by root."
11361 msgstr ""
11362
11363 # type: textblock
11364 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2729
11365 msgid ""
11366 "The caller is responsible for deleting the temporary directory and its "
11367 "contents after use."
11368 msgstr ""
11369
11370 # type: textblock
11371 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2732
11372 msgid "See also: L<mkdtemp(3)>"
11373 msgstr ""
11374
11375 # type: =head2
11376 #: ../src/guestfs-actions.pod:4031
11377 msgid "guestfs_mke2fs_J"
11378 msgstr ""
11379
11380 # type: verbatim
11381 #: ../src/guestfs-actions.pod:4033
11382 #, no-wrap
11383 msgid ""
11384 " int\n"
11385 " guestfs_mke2fs_J (guestfs_h *g,\n"
11386 "                   const char *fstype,\n"
11387 "                   int blocksize,\n"
11388 "                   const char *device,\n"
11389 "                   const char *journal);\n"
11390 "\n"
11391 msgstr ""
11392
11393 # type: textblock
11394 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2738
11395 msgid ""
11396 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11397 "C<journal>.  It is equivalent to the command:"
11398 msgstr ""
11399
11400 # type: verbatim
11401 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2742
11402 #, no-wrap
11403 msgid ""
11404 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11405 "\n"
11406 msgstr ""
11407
11408 # type: textblock
11409 #: ../src/guestfs-actions.pod:4046
11410 msgid "See also C<guestfs_mke2journal>."
11411 msgstr ""
11412
11413 # type: textblock
11414 #: ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4068
11415 #: ../src/guestfs-actions.pod:4086 ../src/guestfs-actions.pod:4102
11416 #: ../src/guestfs-actions.pod:4116 ../src/guestfs-actions.pod:4130
11417 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4438
11418 msgid "(Added in 1.0.68)"
11419 msgstr ""
11420
11421 # type: =head2
11422 #: ../src/guestfs-actions.pod:4052
11423 msgid "guestfs_mke2fs_JL"
11424 msgstr ""
11425
11426 # type: verbatim
11427 #: ../src/guestfs-actions.pod:4054
11428 #, no-wrap
11429 msgid ""
11430 " int\n"
11431 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11432 "                    const char *fstype,\n"
11433 "                    int blocksize,\n"
11434 "                    const char *device,\n"
11435 "                    const char *label);\n"
11436 "\n"
11437 msgstr ""
11438
11439 # type: textblock
11440 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:2750
11441 msgid ""
11442 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11443 "the journal labeled C<label>."
11444 msgstr ""
11445
11446 # type: textblock
11447 #: ../src/guestfs-actions.pod:4064
11448 msgid "See also C<guestfs_mke2journal_L>."
11449 msgstr ""
11450
11451 # type: =head2
11452 #: ../src/guestfs-actions.pod:4070
11453 msgid "guestfs_mke2fs_JU"
11454 msgstr ""
11455
11456 # type: verbatim
11457 #: ../src/guestfs-actions.pod:4072
11458 #, no-wrap
11459 msgid ""
11460 " int\n"
11461 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11462 "                    const char *fstype,\n"
11463 "                    int blocksize,\n"
11464 "                    const char *device,\n"
11465 "                    const char *uuid);\n"
11466 "\n"
11467 msgstr ""
11468
11469 # type: textblock
11470 #: ../src/guestfs-actions.pod:4079 ../fish/guestfish-actions.pod:2759
11471 msgid ""
11472 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11473 "the journal with UUID C<uuid>."
11474 msgstr ""
11475
11476 # type: textblock
11477 #: ../src/guestfs-actions.pod:4082
11478 msgid "See also C<guestfs_mke2journal_U>."
11479 msgstr ""
11480
11481 # type: =head2
11482 #: ../src/guestfs-actions.pod:4088
11483 msgid "guestfs_mke2journal"
11484 msgstr ""
11485
11486 # type: verbatim
11487 #: ../src/guestfs-actions.pod:4090
11488 #, no-wrap
11489 msgid ""
11490 " int\n"
11491 " guestfs_mke2journal (guestfs_h *g,\n"
11492 "                      int blocksize,\n"
11493 "                      const char *device);\n"
11494 "\n"
11495 msgstr ""
11496
11497 # type: textblock
11498 #: ../src/guestfs-actions.pod:4095 ../fish/guestfish-actions.pod:2768
11499 msgid ""
11500 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11501 "command:"
11502 msgstr ""
11503
11504 # type: verbatim
11505 #: ../src/guestfs-actions.pod:4098 ../fish/guestfish-actions.pod:2771
11506 #, no-wrap
11507 msgid ""
11508 " mke2fs -O journal_dev -b blocksize device\n"
11509 "\n"
11510 msgstr ""
11511
11512 # type: =head2
11513 #: ../src/guestfs-actions.pod:4104
11514 msgid "guestfs_mke2journal_L"
11515 msgstr ""
11516
11517 # type: verbatim
11518 #: ../src/guestfs-actions.pod:4106
11519 #, no-wrap
11520 msgid ""
11521 " int\n"
11522 " guestfs_mke2journal_L (guestfs_h *g,\n"
11523 "                        int blocksize,\n"
11524 "                        const char *label,\n"
11525 "                        const char *device);\n"
11526 "\n"
11527 msgstr ""
11528
11529 # type: textblock
11530 #: ../src/guestfs-actions.pod:4112 ../fish/guestfish-actions.pod:2777
11531 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11532 msgstr ""
11533
11534 # type: =head2
11535 #: ../src/guestfs-actions.pod:4118
11536 msgid "guestfs_mke2journal_U"
11537 msgstr ""
11538
11539 # type: verbatim
11540 #: ../src/guestfs-actions.pod:4120
11541 #, no-wrap
11542 msgid ""
11543 " int\n"
11544 " guestfs_mke2journal_U (guestfs_h *g,\n"
11545 "                        int blocksize,\n"
11546 "                        const char *uuid,\n"
11547 "                        const char *device);\n"
11548 "\n"
11549 msgstr ""
11550
11551 # type: textblock
11552 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11553 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11554 msgstr ""
11555
11556 # type: =head2
11557 #: ../src/guestfs-actions.pod:4132
11558 msgid "guestfs_mkfifo"
11559 msgstr ""
11560
11561 # type: verbatim
11562 #: ../src/guestfs-actions.pod:4134
11563 #, no-wrap
11564 msgid ""
11565 " int\n"
11566 " guestfs_mkfifo (guestfs_h *g,\n"
11567 "                 int mode,\n"
11568 "                 const char *path);\n"
11569 "\n"
11570 msgstr ""
11571
11572 # type: textblock
11573 #: ../src/guestfs-actions.pod:4139
11574 msgid ""
11575 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11576 "is just a convenient wrapper around C<guestfs_mknod>."
11577 msgstr ""
11578
11579 # type: =head2
11580 #: ../src/guestfs-actions.pod:4149
11581 msgid "guestfs_mkfs"
11582 msgstr ""
11583
11584 # type: verbatim
11585 #: ../src/guestfs-actions.pod:4151
11586 #, no-wrap
11587 msgid ""
11588 " int\n"
11589 " guestfs_mkfs (guestfs_h *g,\n"
11590 "               const char *fstype,\n"
11591 "               const char *device);\n"
11592 "\n"
11593 msgstr ""
11594
11595 # type: textblock
11596 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2799
11597 msgid ""
11598 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11599 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11600 msgstr ""
11601
11602 # type: =head2
11603 #: ../src/guestfs-actions.pod:4164
11604 msgid "guestfs_mkfs_b"
11605 msgstr ""
11606
11607 # type: verbatim
11608 #: ../src/guestfs-actions.pod:4166
11609 #, no-wrap
11610 msgid ""
11611 " int\n"
11612 " guestfs_mkfs_b (guestfs_h *g,\n"
11613 "                 const char *fstype,\n"
11614 "                 int blocksize,\n"
11615 "                 const char *device);\n"
11616 "\n"
11617 msgstr ""
11618
11619 # type: textblock
11620 #: ../src/guestfs-actions.pod:4172
11621 msgid ""
11622 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11623 "block size of the resulting filesystem.  Supported block sizes depend on the "
11624 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11625 msgstr ""
11626
11627 # type: textblock
11628 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4219
11629 #: ../fish/guestfish-actions.pod:2812 ../fish/guestfish-actions.pod:2839
11630 msgid ""
11631 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11632 "cluster size."
11633 msgstr ""
11634
11635 # type: textblock
11636 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2815
11637 msgid ""
11638 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
11639 msgstr ""
11640
11641 # type: =head2
11642 #: ../src/guestfs-actions.pod:4191
11643 msgid "guestfs_mkfs_opts"
11644 msgstr ""
11645
11646 # type: verbatim
11647 #: ../src/guestfs-actions.pod:4193
11648 #, no-wrap
11649 msgid ""
11650 " int\n"
11651 " guestfs_mkfs_opts (guestfs_h *g,\n"
11652 "                    const char *fstype,\n"
11653 "                    const char *device,\n"
11654 "                    ...);\n"
11655 "\n"
11656 msgstr ""
11657
11658 # type: verbatim
11659 #: ../src/guestfs-actions.pod:4204
11660 #, no-wrap
11661 msgid ""
11662 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
11663 "\n"
11664 msgstr ""
11665
11666 # type: textblock
11667 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:2826
11668 msgid ""
11669 "This function creates a filesystem on C<device>.  The filesystem type is "
11670 "C<fstype>, for example C<ext3>."
11671 msgstr ""
11672
11673 # type: =item
11674 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2833
11675 msgid "C<blocksize>"
11676 msgstr ""
11677
11678 # type: textblock
11679 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2835
11680 msgid ""
11681 "The filesystem block size.  Supported block sizes depend on the filesystem "
11682 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11683 "filesystems."
11684 msgstr ""
11685
11686 # type: =head2
11687 #: ../src/guestfs-actions.pod:4226
11688 msgid "guestfs_mkfs_opts_va"
11689 msgstr ""
11690
11691 # type: verbatim
11692 #: ../src/guestfs-actions.pod:4228
11693 #, no-wrap
11694 msgid ""
11695 " int\n"
11696 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
11697 "                       const char *fstype,\n"
11698 "                       const char *device,\n"
11699 "                       va_list args);\n"
11700 "\n"
11701 msgstr ""
11702
11703 # type: textblock
11704 #: ../src/guestfs-actions.pod:4234
11705 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
11706 msgstr ""
11707
11708 # type: =head2
11709 #: ../src/guestfs-actions.pod:4238
11710 msgid "guestfs_mkfs_opts_argv"
11711 msgstr ""
11712
11713 # type: verbatim
11714 #: ../src/guestfs-actions.pod:4240
11715 #, no-wrap
11716 msgid ""
11717 " int\n"
11718 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
11719 "                         const char *fstype,\n"
11720 "                         const char *device,\n"
11721 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
11722 "\n"
11723 msgstr ""
11724
11725 # type: textblock
11726 #: ../src/guestfs-actions.pod:4246
11727 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
11728 msgstr ""
11729
11730 # type: =head2
11731 #: ../src/guestfs-actions.pod:4250
11732 msgid "guestfs_mkmountpoint"
11733 msgstr ""
11734
11735 # type: verbatim
11736 #: ../src/guestfs-actions.pod:4252
11737 #, no-wrap
11738 msgid ""
11739 " int\n"
11740 " guestfs_mkmountpoint (guestfs_h *g,\n"
11741 "                       const char *exemptpath);\n"
11742 "\n"
11743 msgstr ""
11744
11745 # type: textblock
11746 #: ../src/guestfs-actions.pod:4256
11747 msgid ""
11748 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11749 "that can be used to create extra mountpoints before mounting the first "
11750 "filesystem."
11751 msgstr ""
11752
11753 # type: textblock
11754 #: ../src/guestfs-actions.pod:4260 ../fish/guestfish-actions.pod:2854
11755 msgid ""
11756 "These calls are I<only> necessary in some very limited circumstances, mainly "
11757 "the case where you want to mount a mix of unrelated and/or read-only "
11758 "filesystems together."
11759 msgstr ""
11760
11761 # type: textblock
11762 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2858
11763 msgid ""
11764 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11765 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11766 "inside that.  You can unpack this as follows in guestfish:"
11767 msgstr ""
11768
11769 # type: verbatim
11770 #: ../src/guestfs-actions.pod:4269 ../fish/guestfish-actions.pod:2863
11771 #, no-wrap
11772 msgid ""
11773 " add-ro Fedora-11-i686-Live.iso\n"
11774 " run\n"
11775 " mkmountpoint /cd\n"
11776 " mkmountpoint /sqsh\n"
11777 " mkmountpoint /ext3fs\n"
11778 " mount /dev/sda /cd\n"
11779 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11780 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11781 "\n"
11782 msgstr ""
11783
11784 # type: textblock
11785 #: ../src/guestfs-actions.pod:4278 ../fish/guestfish-actions.pod:2872
11786 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11787 msgstr ""
11788
11789 # type: textblock
11790 #: ../src/guestfs-actions.pod:4280
11791 msgid ""
11792 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11793 "may get unexpected errors if you try to mix these calls.  It is safest to "
11794 "manually unmount filesystems and remove mountpoints after use."
11795 msgstr ""
11796
11797 # type: textblock
11798 #: ../src/guestfs-actions.pod:4284
11799 msgid ""
11800 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11801 "first, so for this to work for manual mountpoints, you must ensure that the "
11802 "innermost mountpoints have the longest pathnames, as in the example code "
11803 "above."
11804 msgstr ""
11805
11806 # type: textblock
11807 #: ../src/guestfs-actions.pod:4289 ../fish/guestfish-actions.pod:2883
11808 msgid ""
11809 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11810 msgstr ""
11811
11812 # type: textblock
11813 #: ../src/guestfs-actions.pod:4291
11814 msgid ""
11815 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11816 "means that C<guestfs_umount_all> is called when the handle is closed which "
11817 "can also trigger these issues."
11818 msgstr ""
11819
11820 # type: textblock
11821 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4556
11822 #: ../src/guestfs-actions.pod:5449
11823 msgid "(Added in 1.0.62)"
11824 msgstr ""
11825
11826 # type: =head2
11827 #: ../src/guestfs-actions.pod:4299
11828 msgid "guestfs_mknod"
11829 msgstr ""
11830
11831 # type: verbatim
11832 #: ../src/guestfs-actions.pod:4301
11833 #, no-wrap
11834 msgid ""
11835 " int\n"
11836 " guestfs_mknod (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:4308 ../fish/guestfish-actions.pod:2893
11846 msgid ""
11847 "This call creates block or character special devices, or named pipes (FIFOs)."
11848 msgstr ""
11849
11850 # type: textblock
11851 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2896
11852 msgid ""
11853 "The C<mode> parameter should be the mode, using the standard constants.  "
11854 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11855 "used when creating block and character special devices."
11856 msgstr ""
11857
11858 # type: textblock
11859 #: ../src/guestfs-actions.pod:4316
11860 msgid ""
11861 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11862 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11863 "regular file).  These constants are available in the standard Linux header "
11864 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11865 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11866 "the appropriate constant for you."
11867 msgstr ""
11868
11869 # type: =head2
11870 #: ../src/guestfs-actions.pod:4330
11871 msgid "guestfs_mknod_b"
11872 msgstr ""
11873
11874 # type: verbatim
11875 #: ../src/guestfs-actions.pod:4332
11876 #, no-wrap
11877 msgid ""
11878 " int\n"
11879 " guestfs_mknod_b (guestfs_h *g,\n"
11880 "                  int mode,\n"
11881 "                  int devmajor,\n"
11882 "                  int devminor,\n"
11883 "                  const char *path);\n"
11884 "\n"
11885 msgstr ""
11886
11887 # type: textblock
11888 #: ../src/guestfs-actions.pod:4339
11889 msgid ""
11890 "This call creates a block device node called C<path> with mode C<mode> and "
11891 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11892 "wrapper around C<guestfs_mknod>."
11893 msgstr ""
11894
11895 # type: =head2
11896 #: ../src/guestfs-actions.pod:4349
11897 msgid "guestfs_mknod_c"
11898 msgstr ""
11899
11900 # type: verbatim
11901 #: ../src/guestfs-actions.pod:4351
11902 #, no-wrap
11903 msgid ""
11904 " int\n"
11905 " guestfs_mknod_c (guestfs_h *g,\n"
11906 "                  int mode,\n"
11907 "                  int devmajor,\n"
11908 "                  int devminor,\n"
11909 "                  const char *path);\n"
11910 "\n"
11911 msgstr ""
11912
11913 # type: textblock
11914 #: ../src/guestfs-actions.pod:4358
11915 msgid ""
11916 "This call creates a char device node called C<path> with mode C<mode> and "
11917 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11918 "wrapper around C<guestfs_mknod>."
11919 msgstr ""
11920
11921 # type: =head2
11922 #: ../src/guestfs-actions.pod:4368
11923 msgid "guestfs_mkswap"
11924 msgstr ""
11925
11926 # type: verbatim
11927 #: ../src/guestfs-actions.pod:4370
11928 #, no-wrap
11929 msgid ""
11930 " int\n"
11931 " guestfs_mkswap (guestfs_h *g,\n"
11932 "                 const char *device);\n"
11933 "\n"
11934 msgstr ""
11935
11936 # type: textblock
11937 #: ../src/guestfs-actions.pod:4374 ../fish/guestfish-actions.pod:2935
11938 msgid "Create a swap partition on C<device>."
11939 msgstr ""
11940
11941 # type: =head2
11942 #: ../src/guestfs-actions.pod:4380
11943 msgid "guestfs_mkswap_L"
11944 msgstr ""
11945
11946 # type: verbatim
11947 #: ../src/guestfs-actions.pod:4382
11948 #, no-wrap
11949 msgid ""
11950 " int\n"
11951 " guestfs_mkswap_L (guestfs_h *g,\n"
11952 "                   const char *label,\n"
11953 "                   const char *device);\n"
11954 "\n"
11955 msgstr ""
11956
11957 # type: textblock
11958 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:2941
11959 msgid "Create a swap partition on C<device> with label C<label>."
11960 msgstr ""
11961
11962 # type: textblock
11963 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:2943
11964 msgid ""
11965 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11966 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11967 "or swap tools."
11968 msgstr ""
11969
11970 # type: =head2
11971 #: ../src/guestfs-actions.pod:4397
11972 msgid "guestfs_mkswap_U"
11973 msgstr ""
11974
11975 # type: verbatim
11976 #: ../src/guestfs-actions.pod:4399
11977 #, no-wrap
11978 msgid ""
11979 " int\n"
11980 " guestfs_mkswap_U (guestfs_h *g,\n"
11981 "                   const char *uuid,\n"
11982 "                   const char *device);\n"
11983 "\n"
11984 msgstr ""
11985
11986 # type: textblock
11987 #: ../src/guestfs-actions.pod:4404 ../fish/guestfish-actions.pod:2951
11988 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11989 msgstr ""
11990
11991 # type: =head2
11992 #: ../src/guestfs-actions.pod:4410
11993 msgid "guestfs_mkswap_file"
11994 msgstr ""
11995
11996 # type: verbatim
11997 #: ../src/guestfs-actions.pod:4412
11998 #, no-wrap
11999 msgid ""
12000 " int\n"
12001 " guestfs_mkswap_file (guestfs_h *g,\n"
12002 "                      const char *path);\n"
12003 "\n"
12004 msgstr ""
12005
12006 # type: textblock
12007 #: ../src/guestfs-actions.pod:4416 ../fish/guestfish-actions.pod:2957
12008 msgid "Create a swap file."
12009 msgstr ""
12010
12011 # type: textblock
12012 #: ../src/guestfs-actions.pod:4418
12013 msgid ""
12014 "This command just writes a swap file signature to an existing file.  To "
12015 "create the file itself, use something like C<guestfs_fallocate>."
12016 msgstr ""
12017
12018 # type: =head2
12019 #: ../src/guestfs-actions.pod:4425
12020 msgid "guestfs_modprobe"
12021 msgstr ""
12022
12023 # type: verbatim
12024 #: ../src/guestfs-actions.pod:4427
12025 #, no-wrap
12026 msgid ""
12027 " int\n"
12028 " guestfs_modprobe (guestfs_h *g,\n"
12029 "                   const char *modulename);\n"
12030 "\n"
12031 msgstr ""
12032
12033 # type: textblock
12034 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:2966
12035 msgid "This loads a kernel module in the appliance."
12036 msgstr ""
12037
12038 # type: textblock
12039 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:2968
12040 msgid ""
12041 "The kernel module must have been whitelisted when libguestfs was built (see "
12042 "C<appliance/kmod.whitelist.in> in the source)."
12043 msgstr ""
12044
12045 # type: =head2
12046 #: ../src/guestfs-actions.pod:4440
12047 msgid "guestfs_mount"
12048 msgstr ""
12049
12050 # type: verbatim
12051 #: ../src/guestfs-actions.pod:4442
12052 #, no-wrap
12053 msgid ""
12054 " int\n"
12055 " guestfs_mount (guestfs_h *g,\n"
12056 "                const char *device,\n"
12057 "                const char *mountpoint);\n"
12058 "\n"
12059 msgstr ""
12060
12061 # type: textblock
12062 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:2975
12063 msgid ""
12064 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12065 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12066 "those block devices contain partitions, they will have the usual names (eg. "
12067 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12068 msgstr ""
12069
12070 # type: textblock
12071 #: ../src/guestfs-actions.pod:4453 ../fish/guestfish-actions.pod:2981
12072 msgid ""
12073 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12074 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12075 "mounted on directories which already exist."
12076 msgstr ""
12077
12078 # type: textblock
12079 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:2986
12080 msgid ""
12081 "The mounted filesystem is writable, if we have sufficient permissions on the "
12082 "underlying device."
12083 msgstr ""
12084
12085 # type: textblock
12086 #: ../src/guestfs-actions.pod:4461
12087 msgid ""
12088 "B<Important note:> When you use this call, the filesystem options C<sync> "
12089 "and C<noatime> are set implicitly.  This was originally done because we "
12090 "thought it would improve reliability, but it turns out that I<-o sync> has a "
12091 "very large negative performance impact and negligible effect on "
12092 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
12093 "in any code that needs performance, and instead use C<guestfs_mount_options> "
12094 "(use an empty string for the first parameter if you don't want any options)."
12095 msgstr ""
12096
12097 # type: =head2
12098 #: ../src/guestfs-actions.pod:4475
12099 msgid "guestfs_mount_loop"
12100 msgstr ""
12101
12102 # type: verbatim
12103 #: ../src/guestfs-actions.pod:4477
12104 #, no-wrap
12105 msgid ""
12106 " int\n"
12107 " guestfs_mount_loop (guestfs_h *g,\n"
12108 "                     const char *file,\n"
12109 "                     const char *mountpoint);\n"
12110 "\n"
12111 msgstr ""
12112
12113 # type: textblock
12114 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3003
12115 msgid ""
12116 "This command lets you mount C<file> (a filesystem image in a file) on a "
12117 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12118 "mountpoint>."
12119 msgstr ""
12120
12121 # type: =head2
12122 #: ../src/guestfs-actions.pod:4490
12123 msgid "guestfs_mount_options"
12124 msgstr ""
12125
12126 # type: verbatim
12127 #: ../src/guestfs-actions.pod:4492
12128 #, no-wrap
12129 msgid ""
12130 " int\n"
12131 " guestfs_mount_options (guestfs_h *g,\n"
12132 "                        const char *options,\n"
12133 "                        const char *device,\n"
12134 "                        const char *mountpoint);\n"
12135 "\n"
12136 msgstr ""
12137
12138 # type: textblock
12139 #: ../src/guestfs-actions.pod:4498
12140 msgid ""
12141 "This is the same as the C<guestfs_mount> command, but it allows you to set "
12142 "the mount options as for the L<mount(8)> I<-o> flag."
12143 msgstr ""
12144
12145 # type: textblock
12146 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3015
12147 msgid ""
12148 "If the C<options> parameter is an empty string, then no options are passed "
12149 "(all options default to whatever the filesystem uses)."
12150 msgstr ""
12151
12152 # type: textblock
12153 #: ../src/guestfs-actions.pod:4508 ../src/guestfs-actions.pod:4522
12154 #: ../src/guestfs-actions.pod:4539
12155 msgid "(Added in 1.0.10)"
12156 msgstr ""
12157
12158 # type: =head2
12159 #: ../src/guestfs-actions.pod:4510
12160 msgid "guestfs_mount_ro"
12161 msgstr ""
12162
12163 # type: verbatim
12164 #: ../src/guestfs-actions.pod:4512
12165 #, no-wrap
12166 msgid ""
12167 " int\n"
12168 " guestfs_mount_ro (guestfs_h *g,\n"
12169 "                   const char *device,\n"
12170 "                   const char *mountpoint);\n"
12171 "\n"
12172 msgstr ""
12173
12174 # type: textblock
12175 #: ../src/guestfs-actions.pod:4517
12176 msgid ""
12177 "This is the same as the C<guestfs_mount> command, but it mounts the "
12178 "filesystem with the read-only (I<-o ro>) flag."
12179 msgstr ""
12180
12181 # type: =head2
12182 #: ../src/guestfs-actions.pod:4524
12183 msgid "guestfs_mount_vfs"
12184 msgstr ""
12185
12186 # type: verbatim
12187 #: ../src/guestfs-actions.pod:4526
12188 #, no-wrap
12189 msgid ""
12190 " int\n"
12191 " guestfs_mount_vfs (guestfs_h *g,\n"
12192 "                    const char *options,\n"
12193 "                    const char *vfstype,\n"
12194 "                    const char *device,\n"
12195 "                    const char *mountpoint);\n"
12196 "\n"
12197 msgstr ""
12198
12199 # type: textblock
12200 #: ../src/guestfs-actions.pod:4533
12201 msgid ""
12202 "This is the same as the C<guestfs_mount> command, but it allows you to set "
12203 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
12204 "t> flags."
12205 msgstr ""
12206
12207 # type: =head2
12208 #: ../src/guestfs-actions.pod:4541
12209 msgid "guestfs_mountpoints"
12210 msgstr ""
12211
12212 # type: verbatim
12213 #: ../src/guestfs-actions.pod:4543
12214 #, no-wrap
12215 msgid ""
12216 " char **\n"
12217 " guestfs_mountpoints (guestfs_h *g);\n"
12218 "\n"
12219 msgstr ""
12220
12221 # type: textblock
12222 #: ../src/guestfs-actions.pod:4546
12223 msgid ""
12224 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
12225 "devices.  This one returns a hash table (map) of device name to directory "
12226 "where the device is mounted."
12227 msgstr ""
12228
12229 # type: =head2
12230 #: ../src/guestfs-actions.pod:4558
12231 msgid "guestfs_mounts"
12232 msgstr ""
12233
12234 # type: verbatim
12235 #: ../src/guestfs-actions.pod:4560
12236 #, no-wrap
12237 msgid ""
12238 " char **\n"
12239 " guestfs_mounts (guestfs_h *g);\n"
12240 "\n"
12241 msgstr ""
12242
12243 # type: textblock
12244 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3046
12245 msgid ""
12246 "This returns the list of currently mounted filesystems.  It returns the list "
12247 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12248 msgstr ""
12249
12250 # type: textblock
12251 #: ../src/guestfs-actions.pod:4566 ../fish/guestfish-actions.pod:3049
12252 msgid "Some internal mounts are not shown."
12253 msgstr ""
12254
12255 # type: textblock
12256 #: ../src/guestfs-actions.pod:4568
12257 msgid "See also: C<guestfs_mountpoints>"
12258 msgstr ""
12259
12260 # type: =head2
12261 #: ../src/guestfs-actions.pod:4576
12262 msgid "guestfs_mv"
12263 msgstr ""
12264
12265 # type: verbatim
12266 #: ../src/guestfs-actions.pod:4578
12267 #, no-wrap
12268 msgid ""
12269 " int\n"
12270 " guestfs_mv (guestfs_h *g,\n"
12271 "             const char *src,\n"
12272 "             const char *dest);\n"
12273 "\n"
12274 msgstr ""
12275
12276 # type: textblock
12277 #: ../src/guestfs-actions.pod:4583 ../fish/guestfish-actions.pod:3057
12278 msgid ""
12279 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12280 "destination filename or destination directory."
12281 msgstr ""
12282
12283 # type: =head2
12284 #: ../src/guestfs-actions.pod:4590
12285 msgid "guestfs_ntfs_3g_probe"
12286 msgstr ""
12287
12288 # type: verbatim
12289 #: ../src/guestfs-actions.pod:4592
12290 #, no-wrap
12291 msgid ""
12292 " int\n"
12293 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
12294 "                        int rw,\n"
12295 "                        const char *device);\n"
12296 "\n"
12297 msgstr ""
12298
12299 # type: textblock
12300 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3064
12301 msgid ""
12302 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12303 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12304 "write, and some cannot be mounted at all)."
12305 msgstr ""
12306
12307 # type: textblock
12308 #: ../src/guestfs-actions.pod:4601 ../fish/guestfish-actions.pod:3068
12309 msgid ""
12310 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12311 "can be mounted read-write.  Set it to false if you want to test if the "
12312 "volume can be mounted read-only."
12313 msgstr ""
12314
12315 # type: textblock
12316 #: ../src/guestfs-actions.pod:4605 ../fish/guestfish-actions.pod:3072
12317 msgid ""
12318 "The return value is an integer which C<0> if the operation would succeed, or "
12319 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12320 msgstr ""
12321
12322 # type: textblock
12323 #: ../src/guestfs-actions.pod:4611
12324 msgid "(Added in 1.0.43)"
12325 msgstr ""
12326
12327 # type: =head2
12328 #: ../src/guestfs-actions.pod:4613
12329 msgid "guestfs_ntfsresize"
12330 msgstr ""
12331
12332 # type: verbatim
12333 #: ../src/guestfs-actions.pod:4615
12334 #, no-wrap
12335 msgid ""
12336 " int\n"
12337 " guestfs_ntfsresize (guestfs_h *g,\n"
12338 "                     const char *device);\n"
12339 "\n"
12340 msgstr ""
12341
12342 # type: textblock
12343 #: ../src/guestfs-actions.pod:4619 ../fish/guestfish-actions.pod:3080
12344 msgid ""
12345 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12346 "size of the underlying device.  See also L<ntfsresize(8)>."
12347 msgstr ""
12348
12349 # type: =head2
12350 #: ../src/guestfs-actions.pod:4627
12351 msgid "guestfs_ntfsresize_size"
12352 msgstr ""
12353
12354 # type: verbatim
12355 #: ../src/guestfs-actions.pod:4629
12356 #, no-wrap
12357 msgid ""
12358 " int\n"
12359 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12360 "                          const char *device,\n"
12361 "                          int64_t size);\n"
12362 "\n"
12363 msgstr ""
12364
12365 # type: textblock
12366 #: ../src/guestfs-actions.pod:4634
12367 msgid ""
12368 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12369 "to specify the new size (in bytes) explicitly."
12370 msgstr ""
12371
12372 # type: textblock
12373 #: ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:5075
12374 #: ../src/guestfs-actions.pod:5148 ../src/guestfs-actions.pod:5397
12375 msgid "(Added in 1.3.14)"
12376 msgstr ""
12377
12378 # type: =head2
12379 #: ../src/guestfs-actions.pod:4641
12380 msgid "guestfs_part_add"
12381 msgstr ""
12382
12383 # type: verbatim
12384 #: ../src/guestfs-actions.pod:4643
12385 #, no-wrap
12386 msgid ""
12387 " int\n"
12388 " guestfs_part_add (guestfs_h *g,\n"
12389 "                   const char *device,\n"
12390 "                   const char *prlogex,\n"
12391 "                   int64_t startsect,\n"
12392 "                   int64_t endsect);\n"
12393 "\n"
12394 msgstr ""
12395
12396 # type: textblock
12397 #: ../src/guestfs-actions.pod:4650
12398 msgid ""
12399 "This command adds a partition to C<device>.  If there is no partition table "
12400 "on the device, call C<guestfs_part_init> first."
12401 msgstr ""
12402
12403 # type: textblock
12404 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3098
12405 msgid ""
12406 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12407 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12408 "C<logical>) and C<e> (or C<extended>) partition types."
12409 msgstr ""
12410
12411 # type: textblock
12412 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3103
12413 msgid ""
12414 "C<startsect> and C<endsect> are the start and end of the partition in "
12415 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12416 "from the end of the disk (C<-1> is the last sector)."
12417 msgstr ""
12418
12419 # type: textblock
12420 #: ../src/guestfs-actions.pod:4662
12421 msgid ""
12422 "Creating a partition which covers the whole disk is not so easy.  Use "
12423 "C<guestfs_part_disk> to do that."
12424 msgstr ""
12425
12426 # type: textblock
12427 #: ../src/guestfs-actions.pod:4667 ../src/guestfs-actions.pod:4705
12428 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4836
12429 #: ../src/guestfs-actions.pod:4874 ../src/guestfs-actions.pod:4893
12430 #: ../src/guestfs-actions.pod:4933
12431 msgid "(Added in 1.0.78)"
12432 msgstr ""
12433
12434 # type: =head2
12435 #: ../src/guestfs-actions.pod:4669
12436 msgid "guestfs_part_del"
12437 msgstr ""
12438
12439 # type: verbatim
12440 #: ../src/guestfs-actions.pod:4671
12441 #, no-wrap
12442 msgid ""
12443 " int\n"
12444 " guestfs_part_del (guestfs_h *g,\n"
12445 "                   const char *device,\n"
12446 "                   int partnum);\n"
12447 "\n"
12448 msgstr ""
12449
12450 # type: textblock
12451 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3114
12452 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12453 msgstr ""
12454
12455 # type: textblock
12456 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3116
12457 msgid ""
12458 "Note that in the case of MBR partitioning, deleting an extended partition "
12459 "also deletes any logical partitions it contains."
12460 msgstr ""
12461
12462 # type: =head2
12463 #: ../src/guestfs-actions.pod:4686
12464 msgid "guestfs_part_disk"
12465 msgstr ""
12466
12467 # type: verbatim
12468 #: ../src/guestfs-actions.pod:4688
12469 #, no-wrap
12470 msgid ""
12471 " int\n"
12472 " guestfs_part_disk (guestfs_h *g,\n"
12473 "                    const char *device,\n"
12474 "                    const char *parttype);\n"
12475 "\n"
12476 msgstr ""
12477
12478 # type: textblock
12479 #: ../src/guestfs-actions.pod:4693
12480 msgid ""
12481 "This command is simply a combination of C<guestfs_part_init> followed by "
12482 "C<guestfs_part_add> to create a single primary partition covering the whole "
12483 "disk."
12484 msgstr ""
12485
12486 # type: textblock
12487 #: ../src/guestfs-actions.pod:4697
12488 msgid ""
12489 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12490 "possible values are described in C<guestfs_part_init>."
12491 msgstr ""
12492
12493 # type: =head2
12494 #: ../src/guestfs-actions.pod:4707
12495 msgid "guestfs_part_get_bootable"
12496 msgstr ""
12497
12498 # type: verbatim
12499 #: ../src/guestfs-actions.pod:4709
12500 #, no-wrap
12501 msgid ""
12502 " int\n"
12503 " guestfs_part_get_bootable (guestfs_h *g,\n"
12504 "                            const char *device,\n"
12505 "                            int partnum);\n"
12506 "\n"
12507 msgstr ""
12508
12509 # type: textblock
12510 #: ../src/guestfs-actions.pod:4714 ../fish/guestfish-actions.pod:3138
12511 msgid ""
12512 "This command returns true if the partition C<partnum> on C<device> has the "
12513 "bootable flag set."
12514 msgstr ""
12515
12516 # type: textblock
12517 #: ../src/guestfs-actions.pod:4717
12518 msgid "See also C<guestfs_part_set_bootable>."
12519 msgstr ""
12520
12521 # type: =head2
12522 #: ../src/guestfs-actions.pod:4723
12523 msgid "guestfs_part_get_mbr_id"
12524 msgstr ""
12525
12526 # type: verbatim
12527 #: ../src/guestfs-actions.pod:4725
12528 #, no-wrap
12529 msgid ""
12530 " int\n"
12531 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12532 "                          const char *device,\n"
12533 "                          int partnum);\n"
12534 "\n"
12535 msgstr ""
12536
12537 # type: textblock
12538 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3147
12539 msgid ""
12540 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12541 "partition C<partnum>."
12542 msgstr ""
12543
12544 # type: textblock
12545 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4909
12546 msgid ""
12547 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12548 "undefined results for other partition table types (see "
12549 "C<guestfs_part_get_parttype>)."
12550 msgstr ""
12551
12552 # type: =head2
12553 #: ../src/guestfs-actions.pod:4741
12554 msgid "guestfs_part_get_parttype"
12555 msgstr ""
12556
12557 # type: verbatim
12558 #: ../src/guestfs-actions.pod:4743
12559 #, no-wrap
12560 msgid ""
12561 " char *\n"
12562 " guestfs_part_get_parttype (guestfs_h *g,\n"
12563 "                            const char *device);\n"
12564 "\n"
12565 msgstr ""
12566
12567 # type: textblock
12568 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3158
12569 msgid ""
12570 "This command examines the partition table on C<device> and returns the "
12571 "partition table type (format) being used."
12572 msgstr ""
12573
12574 # type: textblock
12575 #: ../src/guestfs-actions.pod:4750
12576 msgid ""
12577 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12578 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12579 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12580 msgstr ""
12581
12582 # type: =head2
12583 #: ../src/guestfs-actions.pod:4760
12584 msgid "guestfs_part_init"
12585 msgstr ""
12586
12587 # type: verbatim
12588 #: ../src/guestfs-actions.pod:4762
12589 #, no-wrap
12590 msgid ""
12591 " int\n"
12592 " guestfs_part_init (guestfs_h *g,\n"
12593 "                    const char *device,\n"
12594 "                    const char *parttype);\n"
12595 "\n"
12596 msgstr ""
12597
12598 # type: textblock
12599 #: ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:3170
12600 msgid ""
12601 "This creates an empty partition table on C<device> of one of the partition "
12602 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12603 "(for large disks)."
12604 msgstr ""
12605
12606 # type: textblock
12607 #: ../src/guestfs-actions.pod:4771
12608 msgid ""
12609 "Initially there are no partitions.  Following this, you should call "
12610 "C<guestfs_part_add> for each partition required."
12611 msgstr ""
12612
12613 # type: textblock
12614 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3177
12615 msgid "Possible values for C<parttype> are:"
12616 msgstr ""
12617
12618 # type: =item
12619 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3181
12620 msgid "B<efi> | B<gpt>"
12621 msgstr ""
12622
12623 # type: textblock
12624 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3183
12625 msgid "Intel EFI / GPT partition table."
12626 msgstr ""
12627
12628 # type: textblock
12629 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3185
12630 msgid ""
12631 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12632 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12633 "the C<mbr> format."
12634 msgstr ""
12635
12636 # type: =item
12637 #: ../src/guestfs-actions.pod:4786 ../fish/guestfish-actions.pod:3189
12638 msgid "B<mbr> | B<msdos>"
12639 msgstr ""
12640
12641 # type: textblock
12642 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3191
12643 msgid ""
12644 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12645 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12646 "TB.  For large disks we recommend using C<gpt>."
12647 msgstr ""
12648
12649 # type: textblock
12650 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3198
12651 msgid ""
12652 "Other partition table types that may work but are not supported include:"
12653 msgstr ""
12654
12655 # type: =item
12656 #: ../src/guestfs-actions.pod:4800 ../fish/guestfish-actions.pod:3203
12657 msgid "B<aix>"
12658 msgstr ""
12659
12660 # type: textblock
12661 #: ../src/guestfs-actions.pod:4802 ../fish/guestfish-actions.pod:3205
12662 msgid "AIX disk labels."
12663 msgstr ""
12664
12665 # type: =item
12666 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3207
12667 msgid "B<amiga> | B<rdb>"
12668 msgstr ""
12669
12670 # type: textblock
12671 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3209
12672 msgid "Amiga \"Rigid Disk Block\" format."
12673 msgstr ""
12674
12675 # type: =item
12676 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3211
12677 msgid "B<bsd>"
12678 msgstr ""
12679
12680 # type: textblock
12681 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3213
12682 msgid "BSD disk labels."
12683 msgstr ""
12684
12685 # type: =item
12686 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3215
12687 msgid "B<dasd>"
12688 msgstr ""
12689
12690 # type: textblock
12691 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3217
12692 msgid "DASD, used on IBM mainframes."
12693 msgstr ""
12694
12695 # type: =item
12696 #: ../src/guestfs-actions.pod:4816 ../fish/guestfish-actions.pod:3219
12697 msgid "B<dvh>"
12698 msgstr ""
12699
12700 # type: textblock
12701 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3221
12702 msgid "MIPS/SGI volumes."
12703 msgstr ""
12704
12705 # type: =item
12706 #: ../src/guestfs-actions.pod:4820 ../fish/guestfish-actions.pod:3223
12707 msgid "B<mac>"
12708 msgstr ""
12709
12710 # type: textblock
12711 #: ../src/guestfs-actions.pod:4822 ../fish/guestfish-actions.pod:3225
12712 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12713 msgstr ""
12714
12715 # type: =item
12716 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3227
12717 msgid "B<pc98>"
12718 msgstr ""
12719
12720 # type: textblock
12721 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3229
12722 msgid "NEC PC-98 format, common in Japan apparently."
12723 msgstr ""
12724
12725 # type: =item
12726 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3231
12727 msgid "B<sun>"
12728 msgstr ""
12729
12730 # type: textblock
12731 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3233
12732 msgid "Sun disk labels."
12733 msgstr ""
12734
12735 # type: =head2
12736 #: ../src/guestfs-actions.pod:4838
12737 msgid "guestfs_part_list"
12738 msgstr ""
12739
12740 # type: verbatim
12741 #: ../src/guestfs-actions.pod:4840
12742 #, no-wrap
12743 msgid ""
12744 " struct guestfs_partition_list *\n"
12745 " guestfs_part_list (guestfs_h *g,\n"
12746 "                    const char *device);\n"
12747 "\n"
12748 msgstr ""
12749
12750 # type: textblock
12751 #: ../src/guestfs-actions.pod:4844 ../fish/guestfish-actions.pod:3241
12752 msgid ""
12753 "This command parses the partition table on C<device> and returns the list of "
12754 "partitions found."
12755 msgstr ""
12756
12757 # type: textblock
12758 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3244
12759 msgid "The fields in the returned structure are:"
12760 msgstr ""
12761
12762 # type: =item
12763 #: ../src/guestfs-actions.pod:4851 ../fish/guestfish-actions.pod:3248
12764 msgid "B<part_num>"
12765 msgstr ""
12766
12767 # type: textblock
12768 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3250
12769 msgid "Partition number, counting from 1."
12770 msgstr ""
12771
12772 # type: =item
12773 #: ../src/guestfs-actions.pod:4855 ../fish/guestfish-actions.pod:3252
12774 msgid "B<part_start>"
12775 msgstr ""
12776
12777 # type: textblock
12778 #: ../src/guestfs-actions.pod:4857
12779 msgid ""
12780 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12781 "the device's sector size, see C<guestfs_blockdev_getss>."
12782 msgstr ""
12783
12784 # type: =item
12785 #: ../src/guestfs-actions.pod:4860 ../fish/guestfish-actions.pod:3257
12786 msgid "B<part_end>"
12787 msgstr ""
12788
12789 # type: textblock
12790 #: ../src/guestfs-actions.pod:4862 ../fish/guestfish-actions.pod:3259
12791 msgid "End of the partition in bytes."
12792 msgstr ""
12793
12794 # type: =item
12795 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3261
12796 msgid "B<part_size>"
12797 msgstr ""
12798
12799 # type: textblock
12800 #: ../src/guestfs-actions.pod:4866 ../fish/guestfish-actions.pod:3263
12801 msgid "Size of the partition in bytes."
12802 msgstr ""
12803
12804 # type: textblock
12805 #: ../src/guestfs-actions.pod:4870
12806 msgid ""
12807 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12808 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12809 "use>."
12810 msgstr ""
12811
12812 # type: =head2
12813 #: ../src/guestfs-actions.pod:4876
12814 msgid "guestfs_part_set_bootable"
12815 msgstr ""
12816
12817 # type: verbatim
12818 #: ../src/guestfs-actions.pod:4878
12819 #, no-wrap
12820 msgid ""
12821 " int\n"
12822 " guestfs_part_set_bootable (guestfs_h *g,\n"
12823 "                            const char *device,\n"
12824 "                            int partnum,\n"
12825 "                            int bootable);\n"
12826 "\n"
12827 msgstr ""
12828
12829 # type: textblock
12830 #: ../src/guestfs-actions.pod:4884 ../fish/guestfish-actions.pod:3271
12831 msgid ""
12832 "This sets the bootable flag on partition numbered C<partnum> on device "
12833 "C<device>.  Note that partitions are numbered from 1."
12834 msgstr ""
12835
12836 # type: textblock
12837 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3274
12838 msgid ""
12839 "The bootable flag is used by some operating systems (notably Windows) to "
12840 "determine which partition to boot from.  It is by no means universally "
12841 "recognized."
12842 msgstr ""
12843
12844 # type: =head2
12845 #: ../src/guestfs-actions.pod:4895
12846 msgid "guestfs_part_set_mbr_id"
12847 msgstr ""
12848
12849 # type: verbatim
12850 #: ../src/guestfs-actions.pod:4897
12851 #, no-wrap
12852 msgid ""
12853 " int\n"
12854 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12855 "                          const char *device,\n"
12856 "                          int partnum,\n"
12857 "                          int idbyte);\n"
12858 "\n"
12859 msgstr ""
12860
12861 # type: textblock
12862 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3282
12863 msgid ""
12864 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12865 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12866 "documentation are in fact hexadecimal numbers, but usually documented "
12867 "without any leading \"0x\" which might be confusing."
12868 msgstr ""
12869
12870 # type: =head2
12871 #: ../src/guestfs-actions.pod:4917
12872 msgid "guestfs_part_set_name"
12873 msgstr ""
12874
12875 # type: verbatim
12876 #: ../src/guestfs-actions.pod:4919
12877 #, no-wrap
12878 msgid ""
12879 " int\n"
12880 " guestfs_part_set_name (guestfs_h *g,\n"
12881 "                        const char *device,\n"
12882 "                        int partnum,\n"
12883 "                        const char *name);\n"
12884 "\n"
12885 msgstr ""
12886
12887 # type: textblock
12888 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3296
12889 msgid ""
12890 "This sets the partition name on partition numbered C<partnum> on device "
12891 "C<device>.  Note that partitions are numbered from 1."
12892 msgstr ""
12893
12894 # type: textblock
12895 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3299
12896 msgid ""
12897 "The partition name can only be set on certain types of partition table.  "
12898 "This works on C<gpt> but not on C<mbr> partitions."
12899 msgstr ""
12900
12901 # type: =head2
12902 #: ../src/guestfs-actions.pod:4935
12903 msgid "guestfs_part_to_dev"
12904 msgstr ""
12905
12906 # type: verbatim
12907 #: ../src/guestfs-actions.pod:4937
12908 #, no-wrap
12909 msgid ""
12910 " char *\n"
12911 " guestfs_part_to_dev (guestfs_h *g,\n"
12912 "                      const char *partition);\n"
12913 "\n"
12914 msgstr ""
12915
12916 # type: textblock
12917 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3306
12918 msgid ""
12919 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12920 "partition number, returning the device name (eg. \"/dev/sdb\")."
12921 msgstr ""
12922
12923 # type: textblock
12924 #: ../src/guestfs-actions.pod:4945
12925 msgid ""
12926 "The named partition must exist, for example as a string returned from "
12927 "C<guestfs_list_partitions>."
12928 msgstr ""
12929
12930 # type: =head2
12931 #: ../src/guestfs-actions.pod:4953
12932 msgid "guestfs_ping_daemon"
12933 msgstr ""
12934
12935 # type: verbatim
12936 #: ../src/guestfs-actions.pod:4955
12937 #, no-wrap
12938 msgid ""
12939 " int\n"
12940 " guestfs_ping_daemon (guestfs_h *g);\n"
12941 "\n"
12942 msgstr ""
12943
12944 # type: textblock
12945 #: ../src/guestfs-actions.pod:4958 ../fish/guestfish-actions.pod:3317
12946 msgid ""
12947 "This is a test probe into the guestfs daemon running inside the qemu "
12948 "subprocess.  Calling this function checks that the daemon responds to the "
12949 "ping message, without affecting the daemon or attached block device(s) in "
12950 "any other way."
12951 msgstr ""
12952
12953 # type: =head2
12954 #: ../src/guestfs-actions.pod:4967
12955 msgid "guestfs_pread"
12956 msgstr ""
12957
12958 # type: verbatim
12959 #: ../src/guestfs-actions.pod:4969
12960 #, no-wrap
12961 msgid ""
12962 " char *\n"
12963 " guestfs_pread (guestfs_h *g,\n"
12964 "                const char *path,\n"
12965 "                int count,\n"
12966 "                int64_t offset,\n"
12967 "                size_t *size_r);\n"
12968 "\n"
12969 msgstr ""
12970
12971 # type: textblock
12972 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3326
12973 msgid ""
12974 "This command lets you read part of a file.  It reads C<count> bytes of the "
12975 "file, starting at C<offset>, from file C<path>."
12976 msgstr ""
12977
12978 # type: textblock
12979 #: ../src/guestfs-actions.pod:4979 ../src/guestfs-actions.pod:5005
12980 #: ../fish/guestfish-actions.pod:3329 ../fish/guestfish-actions.pod:3344
12981 msgid ""
12982 "This may read fewer bytes than requested.  For further details see the "
12983 "L<pread(2)> system call."
12984 msgstr ""
12985
12986 # type: textblock
12987 #: ../src/guestfs-actions.pod:4982
12988 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12989 msgstr ""
12990
12991 # type: =head2
12992 #: ../src/guestfs-actions.pod:4993
12993 msgid "guestfs_pread_device"
12994 msgstr ""
12995
12996 # type: verbatim
12997 #: ../src/guestfs-actions.pod:4995
12998 #, no-wrap
12999 msgid ""
13000 " char *\n"
13001 " guestfs_pread_device (guestfs_h *g,\n"
13002 "                       const char *device,\n"
13003 "                       int count,\n"
13004 "                       int64_t offset,\n"
13005 "                       size_t *size_r);\n"
13006 "\n"
13007 msgstr ""
13008
13009 # type: textblock
13010 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3341
13011 msgid ""
13012 "This command lets you read part of a file.  It reads C<count> bytes of "
13013 "C<device>, starting at C<offset>."
13014 msgstr ""
13015
13016 # type: textblock
13017 #: ../src/guestfs-actions.pod:5008
13018 msgid "See also C<guestfs_pread>."
13019 msgstr ""
13020
13021 # type: textblock
13022 #: ../src/guestfs-actions.pod:5017
13023 msgid "(Added in 1.5.21)"
13024 msgstr ""
13025
13026 # type: =head2
13027 #: ../src/guestfs-actions.pod:5019
13028 msgid "guestfs_pvcreate"
13029 msgstr ""
13030
13031 # type: verbatim
13032 #: ../src/guestfs-actions.pod:5021
13033 #, no-wrap
13034 msgid ""
13035 " int\n"
13036 " guestfs_pvcreate (guestfs_h *g,\n"
13037 "                   const char *device);\n"
13038 "\n"
13039 msgstr ""
13040
13041 # type: textblock
13042 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3356
13043 msgid ""
13044 "This creates an LVM physical volume on the named C<device>, where C<device> "
13045 "should usually be a partition name such as C</dev/sda1>."
13046 msgstr ""
13047
13048 # type: =head2
13049 #: ../src/guestfs-actions.pod:5033
13050 msgid "guestfs_pvremove"
13051 msgstr ""
13052
13053 # type: verbatim
13054 #: ../src/guestfs-actions.pod:5035
13055 #, no-wrap
13056 msgid ""
13057 " int\n"
13058 " guestfs_pvremove (guestfs_h *g,\n"
13059 "                   const char *device);\n"
13060 "\n"
13061 msgstr ""
13062
13063 # type: textblock
13064 #: ../src/guestfs-actions.pod:5039 ../fish/guestfish-actions.pod:3364
13065 msgid ""
13066 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13067 "it."
13068 msgstr ""
13069
13070 # type: textblock
13071 #: ../src/guestfs-actions.pod:5042 ../fish/guestfish-actions.pod:3367
13072 msgid ""
13073 "The implementation uses the C<pvremove> command which refuses to wipe "
13074 "physical volumes that contain any volume groups, so you have to remove those "
13075 "first."
13076 msgstr ""
13077
13078 # type: =head2
13079 #: ../src/guestfs-actions.pod:5050
13080 msgid "guestfs_pvresize"
13081 msgstr ""
13082
13083 # type: verbatim
13084 #: ../src/guestfs-actions.pod:5052
13085 #, no-wrap
13086 msgid ""
13087 " int\n"
13088 " guestfs_pvresize (guestfs_h *g,\n"
13089 "                   const char *device);\n"
13090 "\n"
13091 msgstr ""
13092
13093 # type: textblock
13094 #: ../src/guestfs-actions.pod:5056 ../fish/guestfish-actions.pod:3375
13095 msgid ""
13096 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13097 "the new size of the underlying device."
13098 msgstr ""
13099
13100 # type: =head2
13101 #: ../src/guestfs-actions.pod:5063
13102 msgid "guestfs_pvresize_size"
13103 msgstr ""
13104
13105 # type: verbatim
13106 #: ../src/guestfs-actions.pod:5065
13107 #, no-wrap
13108 msgid ""
13109 " int\n"
13110 " guestfs_pvresize_size (guestfs_h *g,\n"
13111 "                        const char *device,\n"
13112 "                        int64_t size);\n"
13113 "\n"
13114 msgstr ""
13115
13116 # type: textblock
13117 #: ../src/guestfs-actions.pod:5070
13118 msgid ""
13119 "This command is the same as C<guestfs_pvresize> except that it allows you to "
13120 "specify the new size (in bytes) explicitly."
13121 msgstr ""
13122
13123 # type: =head2
13124 #: ../src/guestfs-actions.pod:5077
13125 msgid "guestfs_pvs"
13126 msgstr ""
13127
13128 # type: verbatim
13129 #: ../src/guestfs-actions.pod:5079
13130 #, no-wrap
13131 msgid ""
13132 " char **\n"
13133 " guestfs_pvs (guestfs_h *g);\n"
13134 "\n"
13135 msgstr ""
13136
13137 # type: textblock
13138 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3389
13139 msgid ""
13140 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13141 "(8)> command."
13142 msgstr ""
13143
13144 # type: textblock
13145 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3392
13146 msgid ""
13147 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13148 "sda2>)."
13149 msgstr ""
13150
13151 # type: textblock
13152 #: ../src/guestfs-actions.pod:5088
13153 msgid "See also C<guestfs_pvs_full>."
13154 msgstr ""
13155
13156 # type: =head2
13157 #: ../src/guestfs-actions.pod:5096
13158 msgid "guestfs_pvs_full"
13159 msgstr ""
13160
13161 # type: verbatim
13162 #: ../src/guestfs-actions.pod:5098
13163 #, no-wrap
13164 msgid ""
13165 " struct guestfs_lvm_pv_list *\n"
13166 " guestfs_pvs_full (guestfs_h *g);\n"
13167 "\n"
13168 msgstr ""
13169
13170 # type: textblock
13171 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3401
13172 msgid ""
13173 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13174 "(8)> command.  The \"full\" version includes all fields."
13175 msgstr ""
13176
13177 # type: textblock
13178 #: ../src/guestfs-actions.pod:5104
13179 msgid ""
13180 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
13181 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
13182 msgstr ""
13183
13184 # type: =head2
13185 #: ../src/guestfs-actions.pod:5110
13186 msgid "guestfs_pvuuid"
13187 msgstr ""
13188
13189 # type: verbatim
13190 #: ../src/guestfs-actions.pod:5112
13191 #, no-wrap
13192 msgid ""
13193 " char *\n"
13194 " guestfs_pvuuid (guestfs_h *g,\n"
13195 "                 const char *device);\n"
13196 "\n"
13197 msgstr ""
13198
13199 # type: textblock
13200 #: ../src/guestfs-actions.pod:5116 ../fish/guestfish-actions.pod:3408
13201 msgid "This command returns the UUID of the LVM PV C<device>."
13202 msgstr ""
13203
13204 # type: =head2
13205 #: ../src/guestfs-actions.pod:5123
13206 msgid "guestfs_pwrite"
13207 msgstr ""
13208
13209 # type: verbatim
13210 #: ../src/guestfs-actions.pod:5125
13211 #, no-wrap
13212 msgid ""
13213 " int\n"
13214 " guestfs_pwrite (guestfs_h *g,\n"
13215 "                 const char *path,\n"
13216 "                 const char *content,\n"
13217 "                 size_t content_size,\n"
13218 "                 int64_t offset);\n"
13219 "\n"
13220 msgstr ""
13221
13222 # type: textblock
13223 #: ../src/guestfs-actions.pod:5132 ../fish/guestfish-actions.pod:3414
13224 msgid ""
13225 "This command writes to part of a file.  It writes the data buffer C<content> "
13226 "to the file C<path> starting at offset C<offset>."
13227 msgstr ""
13228
13229 # type: textblock
13230 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3417
13231 msgid ""
13232 "This command implements the L<pwrite(2)> system call, and like that system "
13233 "call it may not write the full data requested.  The return value is the "
13234 "number of bytes that were actually written to the file.  This could even be "
13235 "0, although short writes are unlikely for regular files in ordinary "
13236 "circumstances."
13237 msgstr ""
13238
13239 # type: textblock
13240 #: ../src/guestfs-actions.pod:5141
13241 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
13242 msgstr ""
13243
13244 # type: =head2
13245 #: ../src/guestfs-actions.pod:5150
13246 msgid "guestfs_pwrite_device"
13247 msgstr ""
13248
13249 # type: verbatim
13250 #: ../src/guestfs-actions.pod:5152
13251 #, no-wrap
13252 msgid ""
13253 " int\n"
13254 " guestfs_pwrite_device (guestfs_h *g,\n"
13255 "                        const char *device,\n"
13256 "                        const char *content,\n"
13257 "                        size_t content_size,\n"
13258 "                        int64_t offset);\n"
13259 "\n"
13260 msgstr ""
13261
13262 # type: textblock
13263 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3432
13264 msgid ""
13265 "This command writes to part of a device.  It writes the data buffer "
13266 "C<content> to C<device> starting at offset C<offset>."
13267 msgstr ""
13268
13269 # type: textblock
13270 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:3435
13271 msgid ""
13272 "This command implements the L<pwrite(2)> system call, and like that system "
13273 "call it may not write the full data requested (although short writes to disk "
13274 "devices and partitions are probably impossible with standard Linux kernels)."
13275 msgstr ""
13276
13277 # type: textblock
13278 #: ../src/guestfs-actions.pod:5167
13279 msgid "See also C<guestfs_pwrite>."
13280 msgstr ""
13281
13282 # type: textblock
13283 #: ../src/guestfs-actions.pod:5174
13284 msgid "(Added in 1.5.20)"
13285 msgstr ""
13286
13287 # type: =head2
13288 #: ../src/guestfs-actions.pod:5176
13289 msgid "guestfs_read_file"
13290 msgstr ""
13291
13292 # type: verbatim
13293 #: ../src/guestfs-actions.pod:5178
13294 #, no-wrap
13295 msgid ""
13296 " char *\n"
13297 " guestfs_read_file (guestfs_h *g,\n"
13298 "                    const char *path,\n"
13299 "                    size_t *size_r);\n"
13300 "\n"
13301 msgstr ""
13302
13303 # type: textblock
13304 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3449
13305 msgid "This calls returns the contents of the file C<path> as a buffer."
13306 msgstr ""
13307
13308 # type: textblock
13309 #: ../src/guestfs-actions.pod:5186
13310 msgid ""
13311 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
13312 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
13313 "function is limited in the total size of file that can be handled."
13314 msgstr ""
13315
13316 # type: textblock
13317 #: ../src/guestfs-actions.pod:5198
13318 msgid "(Added in 1.0.63)"
13319 msgstr ""
13320
13321 # type: =head2
13322 #: ../src/guestfs-actions.pod:5200
13323 msgid "guestfs_read_lines"
13324 msgstr ""
13325
13326 # type: verbatim
13327 #: ../src/guestfs-actions.pod:5202
13328 #, no-wrap
13329 msgid ""
13330 " char **\n"
13331 " guestfs_read_lines (guestfs_h *g,\n"
13332 "                     const char *path);\n"
13333 "\n"
13334 msgstr ""
13335
13336 # type: textblock
13337 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3466
13338 msgid ""
13339 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13340 "C<CRLF> character sequences are I<not> returned."
13341 msgstr ""
13342
13343 # type: textblock
13344 #: ../src/guestfs-actions.pod:5211
13345 msgid ""
13346 "Note that this function cannot correctly handle binary files (specifically, "
13347 "files containing C<\\0> character which is treated as end of line).  For "
13348 "those you need to use the C<guestfs_read_file> function which has a more "
13349 "complex interface."
13350 msgstr ""
13351
13352 # type: =head2
13353 #: ../src/guestfs-actions.pod:5222
13354 msgid "guestfs_readdir"
13355 msgstr ""
13356
13357 # type: verbatim
13358 #: ../src/guestfs-actions.pod:5224
13359 #, no-wrap
13360 msgid ""
13361 " struct guestfs_dirent_list *\n"
13362 " guestfs_readdir (guestfs_h *g,\n"
13363 "                  const char *dir);\n"
13364 "\n"
13365 msgstr ""
13366
13367 # type: textblock
13368 #: ../src/guestfs-actions.pod:5228 ../fish/guestfish-actions.pod:3478
13369 msgid "This returns the list of directory entries in directory C<dir>."
13370 msgstr ""
13371
13372 # type: textblock
13373 #: ../src/guestfs-actions.pod:5230 ../fish/guestfish-actions.pod:3480
13374 msgid ""
13375 "All entries in the directory are returned, including C<.> and C<..>.  The "
13376 "entries are I<not> sorted, but returned in the same order as the underlying "
13377 "filesystem."
13378 msgstr ""
13379
13380 # type: textblock
13381 #: ../src/guestfs-actions.pod:5234 ../fish/guestfish-actions.pod:3484
13382 msgid ""
13383 "Also this call returns basic file type information about each file.  The "
13384 "C<ftyp> field will contain one of the following characters:"
13385 msgstr ""
13386
13387 # type: =item
13388 #: ../src/guestfs-actions.pod:5239 ../fish/guestfish-actions.pod:3489
13389 msgid "'b'"
13390 msgstr ""
13391
13392 # type: textblock
13393 #: ../src/guestfs-actions.pod:5241 ../fish/guestfish-actions.pod:3491
13394 msgid "Block special"
13395 msgstr ""
13396
13397 # type: =item
13398 #: ../src/guestfs-actions.pod:5243 ../fish/guestfish-actions.pod:3493
13399 msgid "'c'"
13400 msgstr ""
13401
13402 # type: textblock
13403 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3495
13404 msgid "Char special"
13405 msgstr ""
13406
13407 # type: =item
13408 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:3497
13409 msgid "'d'"
13410 msgstr ""
13411
13412 # type: textblock
13413 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3499
13414 msgid "Directory"
13415 msgstr ""
13416
13417 # type: =item
13418 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3501
13419 msgid "'f'"
13420 msgstr ""
13421
13422 # type: textblock
13423 #: ../src/guestfs-actions.pod:5253 ../fish/guestfish-actions.pod:3503
13424 msgid "FIFO (named pipe)"
13425 msgstr ""
13426
13427 # type: =item
13428 #: ../src/guestfs-actions.pod:5255 ../fish/guestfish-actions.pod:3505
13429 msgid "'l'"
13430 msgstr ""
13431
13432 # type: textblock
13433 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:3507
13434 msgid "Symbolic link"
13435 msgstr ""
13436
13437 # type: =item
13438 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3509
13439 msgid "'r'"
13440 msgstr ""
13441
13442 # type: textblock
13443 #: ../src/guestfs-actions.pod:5261 ../fish/guestfish-actions.pod:3511
13444 msgid "Regular file"
13445 msgstr ""
13446
13447 # type: =item
13448 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3513
13449 msgid "'s'"
13450 msgstr ""
13451
13452 # type: textblock
13453 #: ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3515
13454 msgid "Socket"
13455 msgstr ""
13456
13457 # type: =item
13458 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3517
13459 msgid "'u'"
13460 msgstr ""
13461
13462 # type: textblock
13463 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:3519
13464 msgid "Unknown file type"
13465 msgstr ""
13466
13467 # type: =item
13468 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3521
13469 msgid "'?'"
13470 msgstr ""
13471
13472 # type: textblock
13473 #: ../src/guestfs-actions.pod:5273 ../fish/guestfish-actions.pod:3523
13474 msgid ""
13475 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13476 msgstr ""
13477
13478 # type: textblock
13479 #: ../src/guestfs-actions.pod:5278
13480 msgid ""
13481 "This function is primarily intended for use by programs.  To get a simple "
13482 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13483 "consumption, use C<guestfs_ll>."
13484 msgstr ""
13485
13486 # type: textblock
13487 #: ../src/guestfs-actions.pod:5282
13488 msgid ""
13489 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13490 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13491 msgstr ""
13492
13493 # type: =head2
13494 #: ../src/guestfs-actions.pod:5288
13495 msgid "guestfs_readlink"
13496 msgstr ""
13497
13498 # type: verbatim
13499 #: ../src/guestfs-actions.pod:5290
13500 #, no-wrap
13501 msgid ""
13502 " char *\n"
13503 " guestfs_readlink (guestfs_h *g,\n"
13504 "                   const char *path);\n"
13505 "\n"
13506 msgstr ""
13507
13508 # type: textblock
13509 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3536
13510 msgid "This command reads the target of a symbolic link."
13511 msgstr ""
13512
13513 # type: =head2
13514 #: ../src/guestfs-actions.pod:5301
13515 msgid "guestfs_readlinklist"
13516 msgstr ""
13517
13518 # type: verbatim
13519 #: ../src/guestfs-actions.pod:5303
13520 #, no-wrap
13521 msgid ""
13522 " char **\n"
13523 " guestfs_readlinklist (guestfs_h *g,\n"
13524 "                       const char *path,\n"
13525 "                       char *const *names);\n"
13526 "\n"
13527 msgstr ""
13528
13529 # type: textblock
13530 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3542
13531 msgid ""
13532 "This call allows you to do a C<readlink> operation on multiple files, where "
13533 "all files are in the directory C<path>.  C<names> is the list of files from "
13534 "this directory."
13535 msgstr ""
13536
13537 # type: textblock
13538 #: ../src/guestfs-actions.pod:5312 ../fish/guestfish-actions.pod:3546
13539 msgid ""
13540 "On return you get a list of strings, with a one-to-one correspondence to the "
13541 "C<names> list.  Each string is the value of the symbolic link."
13542 msgstr ""
13543
13544 # type: textblock
13545 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3550
13546 msgid ""
13547 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13548 "result string is the empty string C<\"\">.  However the whole operation is "
13549 "completed even if there were C<readlink(2)> errors, and so you can call this "
13550 "function with names where you don't know if they are symbolic links already "
13551 "(albeit slightly less efficient)."
13552 msgstr ""
13553
13554 # type: textblock
13555 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3557
13556 msgid ""
13557 "This call is intended for programs that want to efficiently list a directory "
13558 "contents without making many round-trips.  Very long directory listings "
13559 "might cause the protocol message size to be exceeded, causing this call to "
13560 "fail.  The caller must split up such requests into smaller groups of names."
13561 msgstr ""
13562
13563 # type: =head2
13564 #: ../src/guestfs-actions.pod:5336
13565 msgid "guestfs_realpath"
13566 msgstr ""
13567
13568 # type: verbatim
13569 #: ../src/guestfs-actions.pod:5338
13570 #, no-wrap
13571 msgid ""
13572 " char *\n"
13573 " guestfs_realpath (guestfs_h *g,\n"
13574 "                   const char *path);\n"
13575 "\n"
13576 msgstr ""
13577
13578 # type: textblock
13579 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3568
13580 msgid ""
13581 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13582 "has no C<.>, C<..> or symbolic link path elements."
13583 msgstr ""
13584
13585 # type: =head2
13586 #: ../src/guestfs-actions.pod:5350
13587 msgid "guestfs_removexattr"
13588 msgstr ""
13589
13590 # type: verbatim
13591 #: ../src/guestfs-actions.pod:5352
13592 #, no-wrap
13593 msgid ""
13594 " int\n"
13595 " guestfs_removexattr (guestfs_h *g,\n"
13596 "                      const char *xattr,\n"
13597 "                      const char *path);\n"
13598 "\n"
13599 msgstr ""
13600
13601 # type: textblock
13602 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3575
13603 msgid ""
13604 "This call removes the extended attribute named C<xattr> of the file C<path>."
13605 msgstr ""
13606
13607 # type: textblock
13608 #: ../src/guestfs-actions.pod:5360
13609 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13610 msgstr ""
13611
13612 # type: =head2
13613 #: ../src/guestfs-actions.pod:5366
13614 msgid "guestfs_resize2fs"
13615 msgstr ""
13616
13617 # type: verbatim
13618 #: ../src/guestfs-actions.pod:5368
13619 #, no-wrap
13620 msgid ""
13621 " int\n"
13622 " guestfs_resize2fs (guestfs_h *g,\n"
13623 "                    const char *device);\n"
13624 "\n"
13625 msgstr ""
13626
13627 # type: textblock
13628 #: ../src/guestfs-actions.pod:5372 ../fish/guestfish-actions.pod:3584
13629 msgid ""
13630 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13631 "underlying device."
13632 msgstr ""
13633
13634 # type: textblock
13635 #: ../src/guestfs-actions.pod:5375
13636 msgid ""
13637 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13638 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13639 "sometimes gives an error about this and sometimes not.  In any case, it is "
13640 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13641 msgstr ""
13642
13643 # type: =head2
13644 #: ../src/guestfs-actions.pod:5385
13645 msgid "guestfs_resize2fs_size"
13646 msgstr ""
13647
13648 # type: verbatim
13649 #: ../src/guestfs-actions.pod:5387
13650 #, no-wrap
13651 msgid ""
13652 " int\n"
13653 " guestfs_resize2fs_size (guestfs_h *g,\n"
13654 "                         const char *device,\n"
13655 "                         int64_t size);\n"
13656 "\n"
13657 msgstr ""
13658
13659 # type: textblock
13660 #: ../src/guestfs-actions.pod:5392
13661 msgid ""
13662 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13663 "to specify the new size (in bytes) explicitly."
13664 msgstr ""
13665
13666 # type: =head2
13667 #: ../src/guestfs-actions.pod:5399
13668 msgid "guestfs_rm"
13669 msgstr ""
13670
13671 # type: verbatim
13672 #: ../src/guestfs-actions.pod:5401
13673 #, no-wrap
13674 msgid ""
13675 " int\n"
13676 " guestfs_rm (guestfs_h *g,\n"
13677 "             const char *path);\n"
13678 "\n"
13679 msgstr ""
13680
13681 # type: textblock
13682 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3604
13683 msgid "Remove the single file C<path>."
13684 msgstr ""
13685
13686 # type: =head2
13687 #: ../src/guestfs-actions.pod:5411
13688 msgid "guestfs_rm_rf"
13689 msgstr ""
13690
13691 # type: verbatim
13692 #: ../src/guestfs-actions.pod:5413
13693 #, no-wrap
13694 msgid ""
13695 " int\n"
13696 " guestfs_rm_rf (guestfs_h *g,\n"
13697 "                const char *path);\n"
13698 "\n"
13699 msgstr ""
13700
13701 # type: textblock
13702 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3610
13703 msgid ""
13704 "Remove the file or directory C<path>, recursively removing the contents if "
13705 "its a directory.  This is like the C<rm -rf> shell command."
13706 msgstr ""
13707
13708 # type: =head2
13709 #: ../src/guestfs-actions.pod:5425
13710 msgid "guestfs_rmdir"
13711 msgstr ""
13712
13713 # type: verbatim
13714 #: ../src/guestfs-actions.pod:5427
13715 #, no-wrap
13716 msgid ""
13717 " int\n"
13718 " guestfs_rmdir (guestfs_h *g,\n"
13719 "                const char *path);\n"
13720 "\n"
13721 msgstr ""
13722
13723 # type: textblock
13724 #: ../src/guestfs-actions.pod:5431 ../fish/guestfish-actions.pod:3618
13725 msgid "Remove the single directory C<path>."
13726 msgstr ""
13727
13728 # type: =head2
13729 #: ../src/guestfs-actions.pod:5437
13730 msgid "guestfs_rmmountpoint"
13731 msgstr ""
13732
13733 # type: verbatim
13734 #: ../src/guestfs-actions.pod:5439
13735 #, no-wrap
13736 msgid ""
13737 " int\n"
13738 " guestfs_rmmountpoint (guestfs_h *g,\n"
13739 "                       const char *exemptpath);\n"
13740 "\n"
13741 msgstr ""
13742
13743 # type: textblock
13744 #: ../src/guestfs-actions.pod:5443
13745 msgid ""
13746 "This calls removes a mountpoint that was previously created with "
13747 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13748 msgstr ""
13749
13750 # type: =head2
13751 #: ../src/guestfs-actions.pod:5451
13752 msgid "guestfs_scrub_device"
13753 msgstr ""
13754
13755 # type: verbatim
13756 #: ../src/guestfs-actions.pod:5453
13757 #, no-wrap
13758 msgid ""
13759 " int\n"
13760 " guestfs_scrub_device (guestfs_h *g,\n"
13761 "                       const char *device);\n"
13762 "\n"
13763 msgstr ""
13764
13765 # type: textblock
13766 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3632
13767 msgid ""
13768 "This command writes patterns over C<device> to make data retrieval more "
13769 "difficult."
13770 msgstr ""
13771
13772 # type: textblock
13773 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5481
13774 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3635
13775 #: ../fish/guestfish-actions.pod:3650 ../fish/guestfish-actions.pod:3663
13776 msgid ""
13777 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13778 "more details."
13779 msgstr ""
13780
13781 # type: textblock
13782 #: ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5486
13783 #: ../src/guestfs-actions.pod:5505
13784 msgid "(Added in 1.0.52)"
13785 msgstr ""
13786
13787 # type: =head2
13788 #: ../src/guestfs-actions.pod:5470
13789 msgid "guestfs_scrub_file"
13790 msgstr ""
13791
13792 # type: verbatim
13793 #: ../src/guestfs-actions.pod:5472
13794 #, no-wrap
13795 msgid ""
13796 " int\n"
13797 " guestfs_scrub_file (guestfs_h *g,\n"
13798 "                     const char *file);\n"
13799 "\n"
13800 msgstr ""
13801
13802 # type: textblock
13803 #: ../src/guestfs-actions.pod:5476 ../fish/guestfish-actions.pod:3645
13804 msgid ""
13805 "This command writes patterns over a file to make data retrieval more "
13806 "difficult."
13807 msgstr ""
13808
13809 # type: textblock
13810 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:3648
13811 msgid "The file is I<removed> after scrubbing."
13812 msgstr ""
13813
13814 # type: =head2
13815 #: ../src/guestfs-actions.pod:5488
13816 msgid "guestfs_scrub_freespace"
13817 msgstr ""
13818
13819 # type: verbatim
13820 #: ../src/guestfs-actions.pod:5490
13821 #, no-wrap
13822 msgid ""
13823 " int\n"
13824 " guestfs_scrub_freespace (guestfs_h *g,\n"
13825 "                          const char *dir);\n"
13826 "\n"
13827 msgstr ""
13828
13829 # type: textblock
13830 #: ../src/guestfs-actions.pod:5494
13831 msgid ""
13832 "This command creates the directory C<dir> and then fills it with files until "
13833 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13834 "and deletes them.  The intention is to scrub any free space on the partition "
13835 "containing C<dir>."
13836 msgstr ""
13837
13838 # type: =head2
13839 #: ../src/guestfs-actions.pod:5507
13840 msgid "guestfs_set_append"
13841 msgstr ""
13842
13843 # type: verbatim
13844 #: ../src/guestfs-actions.pod:5509
13845 #, no-wrap
13846 msgid ""
13847 " int\n"
13848 " guestfs_set_append (guestfs_h *g,\n"
13849 "                     const char *append);\n"
13850 "\n"
13851 msgstr ""
13852
13853 # type: textblock
13854 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3672
13855 msgid ""
13856 "This function is used to add additional options to the guest kernel command "
13857 "line."
13858 msgstr ""
13859
13860 # type: textblock
13861 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3675
13862 msgid ""
13863 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13864 "environment variable."
13865 msgstr ""
13866
13867 # type: textblock
13868 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3678
13869 msgid ""
13870 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13871 "(libguestfs always adds a few of its own)."
13872 msgstr ""
13873
13874 # type: =head2
13875 #: ../src/guestfs-actions.pod:5526
13876 msgid "guestfs_set_autosync"
13877 msgstr ""
13878
13879 # type: verbatim
13880 #: ../src/guestfs-actions.pod:5528
13881 #, no-wrap
13882 msgid ""
13883 " int\n"
13884 " guestfs_set_autosync (guestfs_h *g,\n"
13885 "                       int autosync);\n"
13886 "\n"
13887 msgstr ""
13888
13889 # type: textblock
13890 #: ../src/guestfs-actions.pod:5532
13891 msgid ""
13892 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13893 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13894 "the handle is closed (also if the program exits without closing handles)."
13895 msgstr ""
13896
13897 # type: textblock
13898 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:3692
13899 msgid ""
13900 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13901 "disabled by default)."
13902 msgstr ""
13903
13904 # type: =head2
13905 #: ../src/guestfs-actions.pod:5544
13906 msgid "guestfs_set_direct"
13907 msgstr ""
13908
13909 # type: verbatim
13910 #: ../src/guestfs-actions.pod:5546
13911 #, no-wrap
13912 msgid ""
13913 " int\n"
13914 " guestfs_set_direct (guestfs_h *g,\n"
13915 "                     int direct);\n"
13916 "\n"
13917 msgstr ""
13918
13919 # type: textblock
13920 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:3701
13921 msgid ""
13922 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13923 "passed directly through to the appliance once it is launched."
13924 msgstr ""
13925
13926 # type: textblock
13927 #: ../src/guestfs-actions.pod:5554
13928 msgid ""
13929 "One consequence of this is that log messages aren't caught by the library "
13930 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13931 "stdout."
13932 msgstr ""
13933
13934 # type: textblock
13935 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3709
13936 msgid "You probably don't want to use this unless you know what you are doing."
13937 msgstr ""
13938
13939 # type: textblock
13940 #: ../src/guestfs-actions.pod:5561 ../fish/guestfish-actions.pod:3712
13941 msgid "The default is disabled."
13942 msgstr ""
13943
13944 # type: =head2
13945 #: ../src/guestfs-actions.pod:5567
13946 msgid "guestfs_set_e2label"
13947 msgstr ""
13948
13949 # type: verbatim
13950 #: ../src/guestfs-actions.pod:5569
13951 #, no-wrap
13952 msgid ""
13953 " int\n"
13954 " guestfs_set_e2label (guestfs_h *g,\n"
13955 "                      const char *device,\n"
13956 "                      const char *label);\n"
13957 "\n"
13958 msgstr ""
13959
13960 # type: textblock
13961 #: ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3718
13962 msgid ""
13963 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13964 "C<label>.  Filesystem labels are limited to 16 characters."
13965 msgstr ""
13966
13967 # type: textblock
13968 #: ../src/guestfs-actions.pod:5578
13969 msgid ""
13970 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13971 "the existing label on a filesystem."
13972 msgstr ""
13973
13974 # type: =head2
13975 #: ../src/guestfs-actions.pod:5585
13976 msgid "guestfs_set_e2uuid"
13977 msgstr ""
13978
13979 # type: verbatim
13980 #: ../src/guestfs-actions.pod:5587
13981 #, no-wrap
13982 msgid ""
13983 " int\n"
13984 " guestfs_set_e2uuid (guestfs_h *g,\n"
13985 "                     const char *device,\n"
13986 "                     const char *uuid);\n"
13987 "\n"
13988 msgstr ""
13989
13990 # type: textblock
13991 #: ../src/guestfs-actions.pod:5592 ../fish/guestfish-actions.pod:3729
13992 msgid ""
13993 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13994 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13995 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13996 msgstr ""
13997
13998 # type: textblock
13999 #: ../src/guestfs-actions.pod:5597
14000 msgid ""
14001 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
14002 "the existing UUID of a filesystem."
14003 msgstr ""
14004
14005 # type: =head2
14006 #: ../src/guestfs-actions.pod:5604
14007 msgid "guestfs_set_memsize"
14008 msgstr ""
14009
14010 # type: verbatim
14011 #: ../src/guestfs-actions.pod:5606
14012 #, no-wrap
14013 msgid ""
14014 " int\n"
14015 " guestfs_set_memsize (guestfs_h *g,\n"
14016 "                      int memsize);\n"
14017 "\n"
14018 msgstr ""
14019
14020 # type: textblock
14021 #: ../src/guestfs-actions.pod:5610
14022 msgid ""
14023 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14024 "This only has any effect if called before C<guestfs_launch>."
14025 msgstr ""
14026
14027 # type: textblock
14028 #: ../src/guestfs-actions.pod:5614 ../fish/guestfish-actions.pod:3747
14029 msgid ""
14030 "You can also change this by setting the environment variable "
14031 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14032 msgstr ""
14033
14034 # type: =head2
14035 #: ../src/guestfs-actions.pod:5625
14036 msgid "guestfs_set_network"
14037 msgstr ""
14038
14039 # type: verbatim
14040 #: ../src/guestfs-actions.pod:5627
14041 #, no-wrap
14042 msgid ""
14043 " int\n"
14044 " guestfs_set_network (guestfs_h *g,\n"
14045 "                      int network);\n"
14046 "\n"
14047 msgstr ""
14048
14049 # type: textblock
14050 #: ../src/guestfs-actions.pod:5631 ../fish/guestfish-actions.pod:3760
14051 msgid ""
14052 "If C<network> is true, then the network is enabled in the libguestfs "
14053 "appliance.  The default is false."
14054 msgstr ""
14055
14056 # type: textblock
14057 #: ../src/guestfs-actions.pod:5634 ../fish/guestfish-actions.pod:3763
14058 msgid ""
14059 "This affects whether commands are able to access the network (see L<guestfs"
14060 "(3)/RUNNING COMMANDS>)."
14061 msgstr ""
14062
14063 # type: textblock
14064 #: ../src/guestfs-actions.pod:5637
14065 msgid ""
14066 "You must call this before calling C<guestfs_launch>, otherwise it has no "
14067 "effect."
14068 msgstr ""
14069
14070 # type: =head2
14071 #: ../src/guestfs-actions.pod:5644
14072 msgid "guestfs_set_path"
14073 msgstr ""
14074
14075 # type: verbatim
14076 #: ../src/guestfs-actions.pod:5646
14077 #, no-wrap
14078 msgid ""
14079 " int\n"
14080 " guestfs_set_path (guestfs_h *g,\n"
14081 "                   const char *searchpath);\n"
14082 "\n"
14083 msgstr ""
14084
14085 # type: textblock
14086 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:3775
14087 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14088 msgstr ""
14089
14090 # type: textblock
14091 #: ../src/guestfs-actions.pod:5652 ../fish/guestfish-actions.pod:3777
14092 msgid ""
14093 "The default is C<$libdir/guestfs> unless overridden by setting "
14094 "C<LIBGUESTFS_PATH> environment variable."
14095 msgstr ""
14096
14097 # type: textblock
14098 #: ../src/guestfs-actions.pod:5655 ../fish/guestfish-actions.pod:3780
14099 msgid "Setting C<path> to C<NULL> restores the default path."
14100 msgstr ""
14101
14102 # type: =head2
14103 #: ../src/guestfs-actions.pod:5661
14104 msgid "guestfs_set_qemu"
14105 msgstr ""
14106
14107 # type: verbatim
14108 #: ../src/guestfs-actions.pod:5663
14109 #, no-wrap
14110 msgid ""
14111 " int\n"
14112 " guestfs_set_qemu (guestfs_h *g,\n"
14113 "                   const char *qemu);\n"
14114 "\n"
14115 msgstr ""
14116
14117 # type: textblock
14118 #: ../src/guestfs-actions.pod:5667 ../fish/guestfish-actions.pod:3788
14119 msgid "Set the qemu binary that we will use."
14120 msgstr ""
14121
14122 # type: textblock
14123 #: ../src/guestfs-actions.pod:5669 ../fish/guestfish-actions.pod:3790
14124 msgid ""
14125 "The default is chosen when the library was compiled by the configure script."
14126 msgstr ""
14127
14128 # type: textblock
14129 #: ../src/guestfs-actions.pod:5672 ../fish/guestfish-actions.pod:3793
14130 msgid ""
14131 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14132 "variable."
14133 msgstr ""
14134
14135 # type: textblock
14136 #: ../src/guestfs-actions.pod:5675 ../fish/guestfish-actions.pod:3796
14137 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14138 msgstr ""
14139
14140 # type: textblock
14141 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:3798
14142 msgid ""
14143 "Note that you should call this function as early as possible after creating "
14144 "the handle.  This is because some pre-launch operations depend on testing "
14145 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14146 "don't retest features, and so you might see inconsistent results.  Using the "
14147 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14148 "the qemu binary at the same time as the handle is created."
14149 msgstr ""
14150
14151 # type: =head2
14152 #: ../src/guestfs-actions.pod:5689
14153 msgid "guestfs_set_recovery_proc"
14154 msgstr ""
14155
14156 # type: verbatim
14157 #: ../src/guestfs-actions.pod:5691
14158 #, no-wrap
14159 msgid ""
14160 " int\n"
14161 " guestfs_set_recovery_proc (guestfs_h *g,\n"
14162 "                            int recoveryproc);\n"
14163 "\n"
14164 msgstr ""
14165
14166 # type: textblock
14167 #: ../src/guestfs-actions.pod:5695
14168 msgid ""
14169 "If this is called with the parameter C<false> then C<guestfs_launch> does "
14170 "not create a recovery process.  The purpose of the recovery process is to "
14171 "stop runaway qemu processes in the case where the main program aborts "
14172 "abruptly."
14173 msgstr ""
14174
14175 # type: textblock
14176 #: ../src/guestfs-actions.pod:5700
14177 msgid ""
14178 "This only has any effect if called before C<guestfs_launch>, and the default "
14179 "is true."
14180 msgstr ""
14181
14182 # type: textblock
14183 #: ../src/guestfs-actions.pod:5703 ../fish/guestfish-actions.pod:3820
14184 msgid ""
14185 "About the only time when you would want to disable this is if the main "
14186 "process will fork itself into the background (\"daemonize\" itself).  In "
14187 "this case the recovery process thinks that the main program has disappeared "
14188 "and so kills qemu, which is not very helpful."
14189 msgstr ""
14190
14191 # type: =head2
14192 #: ../src/guestfs-actions.pod:5713
14193 msgid "guestfs_set_selinux"
14194 msgstr ""
14195
14196 # type: verbatim
14197 #: ../src/guestfs-actions.pod:5715
14198 #, no-wrap
14199 msgid ""
14200 " int\n"
14201 " guestfs_set_selinux (guestfs_h *g,\n"
14202 "                      int selinux);\n"
14203 "\n"
14204 msgstr ""
14205
14206 # type: textblock
14207 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3832
14208 msgid ""
14209 "This sets the selinux flag that is passed to the appliance at boot time.  "
14210 "The default is C<selinux=0> (disabled)."
14211 msgstr ""
14212
14213 # type: textblock
14214 #: ../src/guestfs-actions.pod:5722 ../fish/guestfish-actions.pod:3835
14215 msgid ""
14216 "Note that if SELinux is enabled, it is always in Permissive mode "
14217 "(C<enforcing=0>)."
14218 msgstr ""
14219
14220 # type: =head2
14221 #: ../src/guestfs-actions.pod:5732
14222 msgid "guestfs_set_trace"
14223 msgstr ""
14224
14225 # type: verbatim
14226 #: ../src/guestfs-actions.pod:5734
14227 #, no-wrap
14228 msgid ""
14229 " int\n"
14230 " guestfs_set_trace (guestfs_h *g,\n"
14231 "                    int trace);\n"
14232 "\n"
14233 msgstr ""
14234
14235 # type: textblock
14236 #: ../src/guestfs-actions.pod:5738 ../fish/guestfish-actions.pod:3847
14237 msgid ""
14238 "If the command trace flag is set to 1, then commands are printed on stderr "
14239 "before they are executed in a format which is very similar to the one used "
14240 "by guestfish.  In other words, you can run a program with this enabled, and "
14241 "you will get out a script which you can feed to guestfish to perform the "
14242 "same set of actions."
14243 msgstr ""
14244
14245 # type: textblock
14246 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3854
14247 msgid ""
14248 "If you want to trace C API calls into libguestfs (and other libraries) then "
14249 "possibly a better way is to use the external ltrace(1) command."
14250 msgstr ""
14251
14252 # type: textblock
14253 #: ../src/guestfs-actions.pod:5749 ../fish/guestfish-actions.pod:3858
14254 msgid ""
14255 "Command traces are disabled unless the environment variable "
14256 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14257 msgstr ""
14258
14259 # type: =head2
14260 #: ../src/guestfs-actions.pod:5756
14261 msgid "guestfs_set_verbose"
14262 msgstr ""
14263
14264 # type: verbatim
14265 #: ../src/guestfs-actions.pod:5758
14266 #, no-wrap
14267 msgid ""
14268 " int\n"
14269 " guestfs_set_verbose (guestfs_h *g,\n"
14270 "                      int verbose);\n"
14271 "\n"
14272 msgstr ""
14273
14274 # type: textblock
14275 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3867
14276 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
14277 msgstr ""
14278
14279 # type: textblock
14280 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:3869
14281 msgid ""
14282 "Verbose messages are disabled unless the environment variable "
14283 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14284 msgstr ""
14285
14286 # type: =head2
14287 #: ../src/guestfs-actions.pod:5771
14288 msgid "guestfs_setcon"
14289 msgstr ""
14290
14291 # type: verbatim
14292 #: ../src/guestfs-actions.pod:5773
14293 #, no-wrap
14294 msgid ""
14295 " int\n"
14296 " guestfs_setcon (guestfs_h *g,\n"
14297 "                 const char *context);\n"
14298 "\n"
14299 msgstr ""
14300
14301 # type: textblock
14302 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3876
14303 msgid ""
14304 "This sets the SELinux security context of the daemon to the string "
14305 "C<context>."
14306 msgstr ""
14307
14308 # type: textblock
14309 #: ../src/guestfs-actions.pod:5780 ../fish/guestfish-actions.pod:3879
14310 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14311 msgstr ""
14312
14313 # type: =head2
14314 #: ../src/guestfs-actions.pod:5786
14315 msgid "guestfs_setxattr"
14316 msgstr ""
14317
14318 # type: verbatim
14319 #: ../src/guestfs-actions.pod:5788
14320 #, no-wrap
14321 msgid ""
14322 " int\n"
14323 " guestfs_setxattr (guestfs_h *g,\n"
14324 "                   const char *xattr,\n"
14325 "                   const char *val,\n"
14326 "                   int vallen,\n"
14327 "                   const char *path);\n"
14328 "\n"
14329 msgstr ""
14330
14331 # type: textblock
14332 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:3885
14333 msgid ""
14334 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14335 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14336 msgstr ""
14337
14338 # type: textblock
14339 #: ../src/guestfs-actions.pod:5799
14340 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14341 msgstr ""
14342
14343 # type: =head2
14344 #: ../src/guestfs-actions.pod:5805
14345 msgid "guestfs_sfdisk"
14346 msgstr ""
14347
14348 # type: verbatim
14349 #: ../src/guestfs-actions.pod:5807
14350 #, no-wrap
14351 msgid ""
14352 " int\n"
14353 " guestfs_sfdisk (guestfs_h *g,\n"
14354 "                 const char *device,\n"
14355 "                 int cyls,\n"
14356 "                 int heads,\n"
14357 "                 int sectors,\n"
14358 "                 char *const *lines);\n"
14359 "\n"
14360 msgstr ""
14361
14362 # type: textblock
14363 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3895
14364 msgid ""
14365 "This is a direct interface to the L<sfdisk(8)> program for creating "
14366 "partitions on block devices."
14367 msgstr ""
14368
14369 # type: textblock
14370 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3898
14371 msgid "C<device> should be a block device, for example C</dev/sda>."
14372 msgstr ""
14373
14374 # type: textblock
14375 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3900
14376 msgid ""
14377 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14378 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14379 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14380 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14381 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14382 "the kernel) cannot work out the right geometry and you will need to tell it."
14383 msgstr ""
14384
14385 # type: textblock
14386 #: ../src/guestfs-actions.pod:5828 ../fish/guestfish-actions.pod:3908
14387 msgid ""
14388 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14389 "refer to the L<sfdisk(8)> manpage."
14390 msgstr ""
14391
14392 # type: textblock
14393 #: ../src/guestfs-actions.pod:5831 ../fish/guestfish-actions.pod:3911
14394 msgid ""
14395 "To create a single partition occupying the whole disk, you would pass "
14396 "C<lines> as a single element list, when the single element being the string "
14397 "C<,> (comma)."
14398 msgstr ""
14399
14400 # type: textblock
14401 #: ../src/guestfs-actions.pod:5835
14402 msgid ""
14403 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14404 msgstr ""
14405
14406 # type: =head2
14407 #: ../src/guestfs-actions.pod:5845
14408 msgid "guestfs_sfdiskM"
14409 msgstr ""
14410
14411 # type: verbatim
14412 #: ../src/guestfs-actions.pod:5847
14413 #, no-wrap
14414 msgid ""
14415 " int\n"
14416 " guestfs_sfdiskM (guestfs_h *g,\n"
14417 "                  const char *device,\n"
14418 "                  char *const *lines);\n"
14419 "\n"
14420 msgstr ""
14421
14422 # type: textblock
14423 #: ../src/guestfs-actions.pod:5852
14424 msgid ""
14425 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14426 "partition sizes are specified in megabytes only (rounded to the nearest "
14427 "cylinder) and you don't need to specify the cyls, heads and sectors "
14428 "parameters which were rarely if ever used anyway."
14429 msgstr ""
14430
14431 # type: textblock
14432 #: ../src/guestfs-actions.pod:5858
14433 msgid ""
14434 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14435 "C<guestfs_part_disk>"
14436 msgstr ""
14437
14438 # type: =head2
14439 #: ../src/guestfs-actions.pod:5868
14440 msgid "guestfs_sfdisk_N"
14441 msgstr ""
14442
14443 # type: verbatim
14444 #: ../src/guestfs-actions.pod:5870
14445 #, no-wrap
14446 msgid ""
14447 " int\n"
14448 " guestfs_sfdisk_N (guestfs_h *g,\n"
14449 "                   const char *device,\n"
14450 "                   int partnum,\n"
14451 "                   int cyls,\n"
14452 "                   int heads,\n"
14453 "                   int sectors,\n"
14454 "                   const char *line);\n"
14455 "\n"
14456 msgstr ""
14457
14458 # type: textblock
14459 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3941
14460 msgid ""
14461 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14462 "(note: C<n> counts from 1)."
14463 msgstr ""
14464
14465 # type: textblock
14466 #: ../src/guestfs-actions.pod:5882
14467 msgid ""
14468 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14469 "for the cyls/heads/sectors parameters."
14470 msgstr ""
14471
14472 # type: textblock
14473 #: ../src/guestfs-actions.pod:5885
14474 msgid "See also: C<guestfs_part_add>"
14475 msgstr ""
14476
14477 # type: =head2
14478 #: ../src/guestfs-actions.pod:5894
14479 msgid "guestfs_sfdisk_disk_geometry"
14480 msgstr ""
14481
14482 # type: verbatim
14483 #: ../src/guestfs-actions.pod:5896
14484 #, no-wrap
14485 msgid ""
14486 " char *\n"
14487 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14488 "                               const char *device);\n"
14489 "\n"
14490 msgstr ""
14491
14492 # type: textblock
14493 #: ../src/guestfs-actions.pod:5900
14494 msgid ""
14495 "This displays the disk geometry of C<device> read from the partition table.  "
14496 "Especially in the case where the underlying block device has been resized, "
14497 "this can be different from the kernel's idea of the geometry (see "
14498 "C<guestfs_sfdisk_kernel_geometry>)."
14499 msgstr ""
14500
14501 # type: textblock
14502 #: ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5921
14503 #: ../fish/guestfish-actions.pod:3961 ../fish/guestfish-actions.pod:3970
14504 msgid "The result is in human-readable format, and not designed to be parsed."
14505 msgstr ""
14506
14507 # type: =head2
14508 #: ../src/guestfs-actions.pod:5913
14509 msgid "guestfs_sfdisk_kernel_geometry"
14510 msgstr ""
14511
14512 # type: verbatim
14513 #: ../src/guestfs-actions.pod:5915
14514 #, no-wrap
14515 msgid ""
14516 " char *\n"
14517 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14518 "                                 const char *device);\n"
14519 "\n"
14520 msgstr ""
14521
14522 # type: textblock
14523 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3968
14524 msgid "This displays the kernel's idea of the geometry of C<device>."
14525 msgstr ""
14526
14527 # type: =head2
14528 #: ../src/guestfs-actions.pod:5929
14529 msgid "guestfs_sfdisk_l"
14530 msgstr ""
14531
14532 # type: verbatim
14533 #: ../src/guestfs-actions.pod:5931
14534 #, no-wrap
14535 msgid ""
14536 " char *\n"
14537 " guestfs_sfdisk_l (guestfs_h *g,\n"
14538 "                   const char *device);\n"
14539 "\n"
14540 msgstr ""
14541
14542 # type: textblock
14543 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3977
14544 msgid ""
14545 "This displays the partition table on C<device>, in the human-readable output "
14546 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14547 msgstr ""
14548
14549 # type: textblock
14550 #: ../src/guestfs-actions.pod:5939
14551 msgid "See also: C<guestfs_part_list>"
14552 msgstr ""
14553
14554 # type: =head2
14555 #: ../src/guestfs-actions.pod:5946
14556 msgid "guestfs_sh"
14557 msgstr ""
14558
14559 # type: verbatim
14560 #: ../src/guestfs-actions.pod:5948
14561 #, no-wrap
14562 msgid ""
14563 " char *\n"
14564 " guestfs_sh (guestfs_h *g,\n"
14565 "             const char *command);\n"
14566 "\n"
14567 msgstr ""
14568
14569 # type: textblock
14570 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:3987
14571 msgid ""
14572 "This call runs a command from the guest filesystem via the guest's C</bin/"
14573 "sh>."
14574 msgstr ""
14575
14576 # type: textblock
14577 #: ../src/guestfs-actions.pod:5955
14578 msgid "This is like C<guestfs_command>, but passes the command to:"
14579 msgstr ""
14580
14581 # type: verbatim
14582 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:3992
14583 #, no-wrap
14584 msgid ""
14585 " /bin/sh -c \"command\"\n"
14586 "\n"
14587 msgstr ""
14588
14589 # type: textblock
14590 #: ../src/guestfs-actions.pod:5959 ../fish/guestfish-actions.pod:3994
14591 msgid ""
14592 "Depending on the guest's shell, this usually results in wildcards being "
14593 "expanded, shell expressions being interpolated and so on."
14594 msgstr ""
14595
14596 # type: textblock
14597 #: ../src/guestfs-actions.pod:5963
14598 msgid "All the provisos about C<guestfs_command> apply to this call."
14599 msgstr ""
14600
14601 # type: =head2
14602 #: ../src/guestfs-actions.pod:5970
14603 msgid "guestfs_sh_lines"
14604 msgstr ""
14605
14606 # type: verbatim
14607 #: ../src/guestfs-actions.pod:5972
14608 #, no-wrap
14609 msgid ""
14610 " char **\n"
14611 " guestfs_sh_lines (guestfs_h *g,\n"
14612 "                   const char *command);\n"
14613 "\n"
14614 msgstr ""
14615
14616 # type: textblock
14617 #: ../src/guestfs-actions.pod:5976
14618 msgid ""
14619 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14620 "lines."
14621 msgstr ""
14622
14623 # type: textblock
14624 #: ../src/guestfs-actions.pod:5979
14625 msgid "See also: C<guestfs_command_lines>"
14626 msgstr ""
14627
14628 # type: =head2
14629 #: ../src/guestfs-actions.pod:5987
14630 msgid "guestfs_sleep"
14631 msgstr ""
14632
14633 # type: verbatim
14634 #: ../src/guestfs-actions.pod:5989
14635 #, no-wrap
14636 msgid ""
14637 " int\n"
14638 " guestfs_sleep (guestfs_h *g,\n"
14639 "                int secs);\n"
14640 "\n"
14641 msgstr ""
14642
14643 # type: textblock
14644 #: ../src/guestfs-actions.pod:5993 ../fish/guestfish-actions.pod:4013
14645 msgid "Sleep for C<secs> seconds."
14646 msgstr ""
14647
14648 # type: textblock
14649 #: ../src/guestfs-actions.pod:5997
14650 msgid "(Added in 1.0.41)"
14651 msgstr ""
14652
14653 # type: =head2
14654 #: ../src/guestfs-actions.pod:5999 ../src/guestfs-structs.pod:109
14655 msgid "guestfs_stat"
14656 msgstr ""
14657
14658 # type: verbatim
14659 #: ../src/guestfs-actions.pod:6001
14660 #, no-wrap
14661 msgid ""
14662 " struct guestfs_stat *\n"
14663 " guestfs_stat (guestfs_h *g,\n"
14664 "               const char *path);\n"
14665 "\n"
14666 msgstr ""
14667
14668 # type: textblock
14669 #: ../src/guestfs-actions.pod:6007 ../fish/guestfish-actions.pod:4021
14670 msgid "This is the same as the C<stat(2)> system call."
14671 msgstr ""
14672
14673 # type: =head2
14674 #: ../src/guestfs-actions.pod:6015 ../src/guestfs-structs.pod:135
14675 msgid "guestfs_statvfs"
14676 msgstr ""
14677
14678 # type: verbatim
14679 #: ../src/guestfs-actions.pod:6017
14680 #, no-wrap
14681 msgid ""
14682 " struct guestfs_statvfs *\n"
14683 " guestfs_statvfs (guestfs_h *g,\n"
14684 "                  const char *path);\n"
14685 "\n"
14686 msgstr ""
14687
14688 # type: textblock
14689 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:4027
14690 msgid ""
14691 "Returns file system statistics for any mounted file system.  C<path> should "
14692 "be a file or directory in the mounted file system (typically it is the mount "
14693 "point itself, but it doesn't need to be)."
14694 msgstr ""
14695
14696 # type: textblock
14697 #: ../src/guestfs-actions.pod:6025 ../fish/guestfish-actions.pod:4031
14698 msgid "This is the same as the C<statvfs(2)> system call."
14699 msgstr ""
14700
14701 # type: textblock
14702 #: ../src/guestfs-actions.pod:6027
14703 msgid ""
14704 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14705 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14706 msgstr ""
14707
14708 # type: =head2
14709 #: ../src/guestfs-actions.pod:6033
14710 msgid "guestfs_strings"
14711 msgstr ""
14712
14713 # type: verbatim
14714 #: ../src/guestfs-actions.pod:6035
14715 #, no-wrap
14716 msgid ""
14717 " char **\n"
14718 " guestfs_strings (guestfs_h *g,\n"
14719 "                  const char *path);\n"
14720 "\n"
14721 msgstr ""
14722
14723 # type: textblock
14724 #: ../src/guestfs-actions.pod:6039 ../fish/guestfish-actions.pod:4037
14725 msgid ""
14726 "This runs the L<strings(1)> command on a file and returns the list of "
14727 "printable strings found."
14728 msgstr ""
14729
14730 # type: =head2
14731 #: ../src/guestfs-actions.pod:6051
14732 msgid "guestfs_strings_e"
14733 msgstr ""
14734
14735 # type: verbatim
14736 #: ../src/guestfs-actions.pod:6053
14737 #, no-wrap
14738 msgid ""
14739 " char **\n"
14740 " guestfs_strings_e (guestfs_h *g,\n"
14741 "                    const char *encoding,\n"
14742 "                    const char *path);\n"
14743 "\n"
14744 msgstr ""
14745
14746 # type: textblock
14747 #: ../src/guestfs-actions.pod:6058
14748 msgid ""
14749 "This is like the C<guestfs_strings> command, but allows you to specify the "
14750 "encoding of strings that are looked for in the source file C<path>."
14751 msgstr ""
14752
14753 # type: textblock
14754 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4051
14755 msgid "Allowed encodings are:"
14756 msgstr ""
14757
14758 # type: =item
14759 #: ../src/guestfs-actions.pod:6066 ../fish/guestfish-actions.pod:4055
14760 msgid "s"
14761 msgstr ""
14762
14763 # type: textblock
14764 #: ../src/guestfs-actions.pod:6068
14765 msgid ""
14766 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14767 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14768 msgstr ""
14769
14770 # type: =item
14771 #: ../src/guestfs-actions.pod:6071 ../fish/guestfish-actions.pod:4060
14772 msgid "S"
14773 msgstr ""
14774
14775 # type: textblock
14776 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4062
14777 msgid "Single 8-bit-byte characters."
14778 msgstr ""
14779
14780 # type: =item
14781 #: ../src/guestfs-actions.pod:6075 ../fish/guestfish-actions.pod:4064
14782 msgid "b"
14783 msgstr ""
14784
14785 # type: textblock
14786 #: ../src/guestfs-actions.pod:6077 ../fish/guestfish-actions.pod:4066
14787 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14788 msgstr ""
14789
14790 # type: =item
14791 #: ../src/guestfs-actions.pod:6080 ../fish/guestfish-actions.pod:4069
14792 msgid "l (lower case letter L)"
14793 msgstr ""
14794
14795 # type: textblock
14796 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4071
14797 msgid ""
14798 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14799 "examining binaries in Windows guests."
14800 msgstr ""
14801
14802 # type: =item
14803 #: ../src/guestfs-actions.pod:6085 ../fish/guestfish-actions.pod:4074
14804 msgid "B"
14805 msgstr ""
14806
14807 # type: textblock
14808 #: ../src/guestfs-actions.pod:6087 ../fish/guestfish-actions.pod:4076
14809 msgid "32-bit big endian such as UCS-4BE."
14810 msgstr ""
14811
14812 # type: =item
14813 #: ../src/guestfs-actions.pod:6089 ../fish/guestfish-actions.pod:4078
14814 msgid "L"
14815 msgstr ""
14816
14817 # type: textblock
14818 #: ../src/guestfs-actions.pod:6091 ../fish/guestfish-actions.pod:4080
14819 msgid "32-bit little endian such as UCS-4LE."
14820 msgstr ""
14821
14822 # type: textblock
14823 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4084
14824 msgid "The returned strings are transcoded to UTF-8."
14825 msgstr ""
14826
14827 # type: =head2
14828 #: ../src/guestfs-actions.pod:6106
14829 msgid "guestfs_swapoff_device"
14830 msgstr ""
14831
14832 # type: verbatim
14833 #: ../src/guestfs-actions.pod:6108
14834 #, no-wrap
14835 msgid ""
14836 " int\n"
14837 " guestfs_swapoff_device (guestfs_h *g,\n"
14838 "                         const char *device);\n"
14839 "\n"
14840 msgstr ""
14841
14842 # type: textblock
14843 #: ../src/guestfs-actions.pod:6112
14844 msgid ""
14845 "This command disables the libguestfs appliance swap device or partition "
14846 "named C<device>.  See C<guestfs_swapon_device>."
14847 msgstr ""
14848
14849 # type: =head2
14850 #: ../src/guestfs-actions.pod:6120
14851 msgid "guestfs_swapoff_file"
14852 msgstr ""
14853
14854 # type: verbatim
14855 #: ../src/guestfs-actions.pod:6122
14856 #, no-wrap
14857 msgid ""
14858 " int\n"
14859 " guestfs_swapoff_file (guestfs_h *g,\n"
14860 "                       const char *file);\n"
14861 "\n"
14862 msgstr ""
14863
14864 # type: textblock
14865 #: ../src/guestfs-actions.pod:6126 ../fish/guestfish-actions.pod:4101
14866 msgid "This command disables the libguestfs appliance swap on file."
14867 msgstr ""
14868
14869 # type: =head2
14870 #: ../src/guestfs-actions.pod:6132
14871 msgid "guestfs_swapoff_label"
14872 msgstr ""
14873
14874 # type: verbatim
14875 #: ../src/guestfs-actions.pod:6134
14876 #, no-wrap
14877 msgid ""
14878 " int\n"
14879 " guestfs_swapoff_label (guestfs_h *g,\n"
14880 "                        const char *label);\n"
14881 "\n"
14882 msgstr ""
14883
14884 # type: textblock
14885 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4107
14886 msgid ""
14887 "This command disables the libguestfs appliance swap on labeled swap "
14888 "partition."
14889 msgstr ""
14890
14891 # type: =head2
14892 #: ../src/guestfs-actions.pod:6145
14893 msgid "guestfs_swapoff_uuid"
14894 msgstr ""
14895
14896 # type: verbatim
14897 #: ../src/guestfs-actions.pod:6147
14898 #, no-wrap
14899 msgid ""
14900 " int\n"
14901 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14902 "                       const char *uuid);\n"
14903 "\n"
14904 msgstr ""
14905
14906 # type: textblock
14907 #: ../src/guestfs-actions.pod:6151 ../fish/guestfish-actions.pod:4114
14908 msgid ""
14909 "This command disables the libguestfs appliance swap partition with the given "
14910 "UUID."
14911 msgstr ""
14912
14913 # type: =head2
14914 #: ../src/guestfs-actions.pod:6158
14915 msgid "guestfs_swapon_device"
14916 msgstr ""
14917
14918 # type: verbatim
14919 #: ../src/guestfs-actions.pod:6160
14920 #, no-wrap
14921 msgid ""
14922 " int\n"
14923 " guestfs_swapon_device (guestfs_h *g,\n"
14924 "                        const char *device);\n"
14925 "\n"
14926 msgstr ""
14927
14928 # type: textblock
14929 #: ../src/guestfs-actions.pod:6164
14930 msgid ""
14931 "This command enables the libguestfs appliance to use the swap device or "
14932 "partition named C<device>.  The increased memory is made available for all "
14933 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14934 msgstr ""
14935
14936 # type: textblock
14937 #: ../src/guestfs-actions.pod:6169 ../fish/guestfish-actions.pod:4126
14938 msgid ""
14939 "Note that you should not swap to existing guest swap partitions unless you "
14940 "know what you are doing.  They may contain hibernation information, or other "
14941 "information that the guest doesn't want you to trash.  You also risk leaking "
14942 "information about the host to the guest this way.  Instead, attach a new "
14943 "host device to the guest and swap on that."
14944 msgstr ""
14945
14946 # type: =head2
14947 #: ../src/guestfs-actions.pod:6180
14948 msgid "guestfs_swapon_file"
14949 msgstr ""
14950
14951 # type: verbatim
14952 #: ../src/guestfs-actions.pod:6182
14953 #, no-wrap
14954 msgid ""
14955 " int\n"
14956 " guestfs_swapon_file (guestfs_h *g,\n"
14957 "                      const char *file);\n"
14958 "\n"
14959 msgstr ""
14960
14961 # type: textblock
14962 #: ../src/guestfs-actions.pod:6186
14963 msgid ""
14964 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14965 "notes."
14966 msgstr ""
14967
14968 # type: =head2
14969 #: ../src/guestfs-actions.pod:6193
14970 msgid "guestfs_swapon_label"
14971 msgstr ""
14972
14973 # type: verbatim
14974 #: ../src/guestfs-actions.pod:6195
14975 #, no-wrap
14976 msgid ""
14977 " int\n"
14978 " guestfs_swapon_label (guestfs_h *g,\n"
14979 "                       const char *label);\n"
14980 "\n"
14981 msgstr ""
14982
14983 # type: textblock
14984 #: ../src/guestfs-actions.pod:6199
14985 msgid ""
14986 "This command enables swap to a labeled swap partition.  See "
14987 "C<guestfs_swapon_device> for other notes."
14988 msgstr ""
14989
14990 # type: =head2
14991 #: ../src/guestfs-actions.pod:6206
14992 msgid "guestfs_swapon_uuid"
14993 msgstr ""
14994
14995 # type: verbatim
14996 #: ../src/guestfs-actions.pod:6208
14997 #, no-wrap
14998 msgid ""
14999 " int\n"
15000 " guestfs_swapon_uuid (guestfs_h *g,\n"
15001 "                      const char *uuid);\n"
15002 "\n"
15003 msgstr ""
15004
15005 # type: textblock
15006 #: ../src/guestfs-actions.pod:6212
15007 msgid ""
15008 "This command enables swap to a swap partition with the given UUID.  See "
15009 "C<guestfs_swapon_device> for other notes."
15010 msgstr ""
15011
15012 # type: =head2
15013 #: ../src/guestfs-actions.pod:6219
15014 msgid "guestfs_sync"
15015 msgstr ""
15016
15017 # type: verbatim
15018 #: ../src/guestfs-actions.pod:6221
15019 #, no-wrap
15020 msgid ""
15021 " int\n"
15022 " guestfs_sync (guestfs_h *g);\n"
15023 "\n"
15024 msgstr ""
15025
15026 # type: textblock
15027 #: ../src/guestfs-actions.pod:6224 ../fish/guestfish-actions.pod:4158
15028 msgid ""
15029 "This syncs the disk, so that any writes are flushed through to the "
15030 "underlying disk image."
15031 msgstr ""
15032
15033 # type: textblock
15034 #: ../src/guestfs-actions.pod:6227 ../fish/guestfish-actions.pod:4161
15035 msgid ""
15036 "You should always call this if you have modified a disk image, before "
15037 "closing the handle."
15038 msgstr ""
15039
15040 # type: =head2
15041 #: ../src/guestfs-actions.pod:6234
15042 msgid "guestfs_tail"
15043 msgstr ""
15044
15045 # type: verbatim
15046 #: ../src/guestfs-actions.pod:6236
15047 #, no-wrap
15048 msgid ""
15049 " char **\n"
15050 " guestfs_tail (guestfs_h *g,\n"
15051 "               const char *path);\n"
15052 "\n"
15053 msgstr ""
15054
15055 # type: textblock
15056 #: ../src/guestfs-actions.pod:6240 ../fish/guestfish-actions.pod:4168
15057 msgid ""
15058 "This command returns up to the last 10 lines of a file as a list of strings."
15059 msgstr ""
15060
15061 # type: =head2
15062 #: ../src/guestfs-actions.pod:6252
15063 msgid "guestfs_tail_n"
15064 msgstr ""
15065
15066 # type: verbatim
15067 #: ../src/guestfs-actions.pod:6254
15068 #, no-wrap
15069 msgid ""
15070 " char **\n"
15071 " guestfs_tail_n (guestfs_h *g,\n"
15072 "                 int nrlines,\n"
15073 "                 const char *path);\n"
15074 "\n"
15075 msgstr ""
15076
15077 # type: textblock
15078 #: ../src/guestfs-actions.pod:6259 ../fish/guestfish-actions.pod:4178
15079 msgid ""
15080 "If the parameter C<nrlines> is a positive number, this returns the last "
15081 "C<nrlines> lines of the file C<path>."
15082 msgstr ""
15083
15084 # type: textblock
15085 #: ../src/guestfs-actions.pod:6262 ../fish/guestfish-actions.pod:4181
15086 msgid ""
15087 "If the parameter C<nrlines> is a negative number, this returns lines from "
15088 "the file C<path>, starting with the C<-nrlines>th line."
15089 msgstr ""
15090
15091 # type: =head2
15092 #: ../src/guestfs-actions.pod:6276
15093 msgid "guestfs_tar_in"
15094 msgstr ""
15095
15096 # type: verbatim
15097 #: ../src/guestfs-actions.pod:6278
15098 #, no-wrap
15099 msgid ""
15100 " int\n"
15101 " guestfs_tar_in (guestfs_h *g,\n"
15102 "                 const char *tarfile,\n"
15103 "                 const char *directory);\n"
15104 "\n"
15105 msgstr ""
15106
15107 # type: textblock
15108 #: ../src/guestfs-actions.pod:6283 ../fish/guestfish-actions.pod:4193
15109 msgid ""
15110 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15111 "tar file) into C<directory>."
15112 msgstr ""
15113
15114 # type: textblock
15115 #: ../src/guestfs-actions.pod:6286
15116 msgid ""
15117 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
15118 msgstr ""
15119
15120 # type: textblock
15121 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6308
15122 #: ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6340
15123 msgid "(Added in 1.0.3)"
15124 msgstr ""
15125
15126 # type: =head2
15127 #: ../src/guestfs-actions.pod:6293
15128 msgid "guestfs_tar_out"
15129 msgstr ""
15130
15131 # type: verbatim
15132 #: ../src/guestfs-actions.pod:6295
15133 #, no-wrap
15134 msgid ""
15135 " int\n"
15136 " guestfs_tar_out (guestfs_h *g,\n"
15137 "                  const char *directory,\n"
15138 "                  const char *tarfile);\n"
15139 "\n"
15140 msgstr ""
15141
15142 # type: textblock
15143 #: ../src/guestfs-actions.pod:6300 ../fish/guestfish-actions.pod:4205
15144 msgid ""
15145 "This command packs the contents of C<directory> and downloads it to local "
15146 "file C<tarfile>."
15147 msgstr ""
15148
15149 # type: textblock
15150 #: ../src/guestfs-actions.pod:6303
15151 msgid ""
15152 "To download a compressed tarball, use C<guestfs_tgz_out> or "
15153 "C<guestfs_txz_out>."
15154 msgstr ""
15155
15156 # type: =head2
15157 #: ../src/guestfs-actions.pod:6310
15158 msgid "guestfs_tgz_in"
15159 msgstr ""
15160
15161 # type: verbatim
15162 #: ../src/guestfs-actions.pod:6312
15163 #, no-wrap
15164 msgid ""
15165 " int\n"
15166 " guestfs_tgz_in (guestfs_h *g,\n"
15167 "                 const char *tarball,\n"
15168 "                 const char *directory);\n"
15169 "\n"
15170 msgstr ""
15171
15172 # type: textblock
15173 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4217
15174 msgid ""
15175 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15176 "tar file) into C<directory>."
15177 msgstr ""
15178
15179 # type: textblock
15180 #: ../src/guestfs-actions.pod:6320
15181 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
15182 msgstr ""
15183
15184 # type: =head2
15185 #: ../src/guestfs-actions.pod:6326
15186 msgid "guestfs_tgz_out"
15187 msgstr ""
15188
15189 # type: verbatim
15190 #: ../src/guestfs-actions.pod:6328
15191 #, no-wrap
15192 msgid ""
15193 " int\n"
15194 " guestfs_tgz_out (guestfs_h *g,\n"
15195 "                  const char *directory,\n"
15196 "                  const char *tarball);\n"
15197 "\n"
15198 msgstr ""
15199
15200 # type: textblock
15201 #: ../src/guestfs-actions.pod:6333 ../fish/guestfish-actions.pod:4228
15202 msgid ""
15203 "This command packs the contents of C<directory> and downloads it to local "
15204 "file C<tarball>."
15205 msgstr ""
15206
15207 # type: textblock
15208 #: ../src/guestfs-actions.pod:6336
15209 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
15210 msgstr ""
15211
15212 # type: =head2
15213 #: ../src/guestfs-actions.pod:6342
15214 msgid "guestfs_touch"
15215 msgstr ""
15216
15217 # type: verbatim
15218 #: ../src/guestfs-actions.pod:6344
15219 #, no-wrap
15220 msgid ""
15221 " int\n"
15222 " guestfs_touch (guestfs_h *g,\n"
15223 "                const char *path);\n"
15224 "\n"
15225 msgstr ""
15226
15227 # type: textblock
15228 #: ../src/guestfs-actions.pod:6348 ../fish/guestfish-actions.pod:4239
15229 msgid ""
15230 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15231 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15232 "length file."
15233 msgstr ""
15234
15235 # type: textblock
15236 #: ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:4243
15237 msgid ""
15238 "This command only works on regular files, and will fail on other file types "
15239 "such as directories, symbolic links, block special etc."
15240 msgstr ""
15241
15242 # type: =head2
15243 #: ../src/guestfs-actions.pod:6359
15244 msgid "guestfs_truncate"
15245 msgstr ""
15246
15247 # type: verbatim
15248 #: ../src/guestfs-actions.pod:6361
15249 #, no-wrap
15250 msgid ""
15251 " int\n"
15252 " guestfs_truncate (guestfs_h *g,\n"
15253 "                   const char *path);\n"
15254 "\n"
15255 msgstr ""
15256
15257 # type: textblock
15258 #: ../src/guestfs-actions.pod:6365 ../fish/guestfish-actions.pod:4250
15259 msgid ""
15260 "This command truncates C<path> to a zero-length file.  The file must exist "
15261 "already."
15262 msgstr ""
15263
15264 # type: =head2
15265 #: ../src/guestfs-actions.pod:6372
15266 msgid "guestfs_truncate_size"
15267 msgstr ""
15268
15269 # type: verbatim
15270 #: ../src/guestfs-actions.pod:6374
15271 #, no-wrap
15272 msgid ""
15273 " int\n"
15274 " guestfs_truncate_size (guestfs_h *g,\n"
15275 "                        const char *path,\n"
15276 "                        int64_t size);\n"
15277 "\n"
15278 msgstr ""
15279
15280 # type: textblock
15281 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4257
15282 msgid ""
15283 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15284 "already."
15285 msgstr ""
15286
15287 # type: textblock
15288 #: ../src/guestfs-actions.pod:6382
15289 msgid ""
15290 "If the current file size is less than C<size> then the file is extended to "
15291 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15292 "blocks are not allocated for the file until you write to it).  To create a "
15293 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
15294 msgstr ""
15295
15296 # type: =head2
15297 #: ../src/guestfs-actions.pod:6392
15298 msgid "guestfs_tune2fs_l"
15299 msgstr ""
15300
15301 # type: verbatim
15302 #: ../src/guestfs-actions.pod:6394
15303 #, no-wrap
15304 msgid ""
15305 " char **\n"
15306 " guestfs_tune2fs_l (guestfs_h *g,\n"
15307 "                    const char *device);\n"
15308 "\n"
15309 msgstr ""
15310
15311 # type: textblock
15312 #: ../src/guestfs-actions.pod:6398 ../fish/guestfish-actions.pod:4270
15313 msgid ""
15314 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15315 "C<device>."
15316 msgstr ""
15317
15318 # type: textblock
15319 #: ../src/guestfs-actions.pod:6401 ../fish/guestfish-actions.pod:4273
15320 msgid ""
15321 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15322 "for more details.  The list of fields returned isn't clearly defined, and "
15323 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15324 "and the filesystem itself."
15325 msgstr ""
15326
15327 # type: =head2
15328 #: ../src/guestfs-actions.pod:6414
15329 msgid "guestfs_txz_in"
15330 msgstr ""
15331
15332 # type: verbatim
15333 #: ../src/guestfs-actions.pod:6416
15334 #, no-wrap
15335 msgid ""
15336 " int\n"
15337 " guestfs_txz_in (guestfs_h *g,\n"
15338 "                 const char *tarball,\n"
15339 "                 const char *directory);\n"
15340 "\n"
15341 msgstr ""
15342
15343 # type: textblock
15344 #: ../src/guestfs-actions.pod:6421 ../fish/guestfish-actions.pod:4282
15345 msgid ""
15346 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15347 "tar file) into C<directory>."
15348 msgstr ""
15349
15350 # type: =head2
15351 #: ../src/guestfs-actions.pod:6428
15352 msgid "guestfs_txz_out"
15353 msgstr ""
15354
15355 # type: verbatim
15356 #: ../src/guestfs-actions.pod:6430
15357 #, no-wrap
15358 msgid ""
15359 " int\n"
15360 " guestfs_txz_out (guestfs_h *g,\n"
15361 "                  const char *directory,\n"
15362 "                  const char *tarball);\n"
15363 "\n"
15364 msgstr ""
15365
15366 # type: textblock
15367 #: ../src/guestfs-actions.pod:6435 ../fish/guestfish-actions.pod:4291
15368 msgid ""
15369 "This command packs the contents of C<directory> and downloads it to local "
15370 "file C<tarball> (as an xz compressed tar archive)."
15371 msgstr ""
15372
15373 # type: =head2
15374 #: ../src/guestfs-actions.pod:6442
15375 msgid "guestfs_umask"
15376 msgstr ""
15377
15378 # type: verbatim
15379 #: ../src/guestfs-actions.pod:6444
15380 #, no-wrap
15381 msgid ""
15382 " int\n"
15383 " guestfs_umask (guestfs_h *g,\n"
15384 "                int mask);\n"
15385 "\n"
15386 msgstr ""
15387
15388 # type: textblock
15389 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4300
15390 msgid ""
15391 "This function sets the mask used for creating new files and device nodes to "
15392 "C<mask & 0777>."
15393 msgstr ""
15394
15395 # type: textblock
15396 #: ../src/guestfs-actions.pod:6451 ../fish/guestfish-actions.pod:4303
15397 msgid ""
15398 "Typical umask values would be C<022> which creates new files with "
15399 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15400 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15401 msgstr ""
15402
15403 # type: textblock
15404 #: ../src/guestfs-actions.pod:6456 ../fish/guestfish-actions.pod:4308
15405 msgid ""
15406 "The default umask is C<022>.  This is important because it means that "
15407 "directories and device nodes will be created with C<0644> or C<0755> mode "
15408 "even if you specify C<0777>."
15409 msgstr ""
15410
15411 # type: textblock
15412 #: ../src/guestfs-actions.pod:6460
15413 msgid ""
15414 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15415 "C<guestfs_mkdir>."
15416 msgstr ""
15417
15418 # type: textblock
15419 #: ../src/guestfs-actions.pod:6463 ../fish/guestfish-actions.pod:4315
15420 msgid "This call returns the previous umask."
15421 msgstr ""
15422
15423 # type: =head2
15424 #: ../src/guestfs-actions.pod:6469
15425 msgid "guestfs_umount"
15426 msgstr ""
15427
15428 # type: verbatim
15429 #: ../src/guestfs-actions.pod:6471
15430 #, no-wrap
15431 msgid ""
15432 " int\n"
15433 " guestfs_umount (guestfs_h *g,\n"
15434 "                 const char *pathordevice);\n"
15435 "\n"
15436 msgstr ""
15437
15438 # type: textblock
15439 #: ../src/guestfs-actions.pod:6475 ../fish/guestfish-actions.pod:4323
15440 msgid ""
15441 "This unmounts the given filesystem.  The filesystem may be specified either "
15442 "by its mountpoint (path) or the device which contains the filesystem."
15443 msgstr ""
15444
15445 # type: =head2
15446 #: ../src/guestfs-actions.pod:6483
15447 msgid "guestfs_umount_all"
15448 msgstr ""
15449
15450 # type: verbatim
15451 #: ../src/guestfs-actions.pod:6485
15452 #, no-wrap
15453 msgid ""
15454 " int\n"
15455 " guestfs_umount_all (guestfs_h *g);\n"
15456 "\n"
15457 msgstr ""
15458
15459 # type: textblock
15460 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4333
15461 msgid "This unmounts all mounted filesystems."
15462 msgstr ""
15463
15464 # type: textblock
15465 #: ../src/guestfs-actions.pod:6490 ../fish/guestfish-actions.pod:4335
15466 msgid "Some internal mounts are not unmounted by this call."
15467 msgstr ""
15468
15469 # type: =head2
15470 #: ../src/guestfs-actions.pod:6496
15471 msgid "guestfs_upload"
15472 msgstr ""
15473
15474 # type: verbatim
15475 #: ../src/guestfs-actions.pod:6498
15476 #, no-wrap
15477 msgid ""
15478 " int\n"
15479 " guestfs_upload (guestfs_h *g,\n"
15480 "                 const char *filename,\n"
15481 "                 const char *remotefilename);\n"
15482 "\n"
15483 msgstr ""
15484
15485 # type: textblock
15486 #: ../src/guestfs-actions.pod:6503 ../src/guestfs-actions.pod:6527
15487 #: ../fish/guestfish-actions.pod:4341 ../fish/guestfish-actions.pod:4354
15488 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15489 msgstr ""
15490
15491 # type: textblock
15492 #: ../src/guestfs-actions.pod:6508
15493 msgid "See also C<guestfs_download>."
15494 msgstr ""
15495
15496 # type: =head2
15497 #: ../src/guestfs-actions.pod:6519
15498 msgid "guestfs_upload_offset"
15499 msgstr ""
15500
15501 # type: verbatim
15502 #: ../src/guestfs-actions.pod:6521
15503 #, no-wrap
15504 msgid ""
15505 " int\n"
15506 " guestfs_upload_offset (guestfs_h *g,\n"
15507 "                        const char *filename,\n"
15508 "                        const char *remotefilename,\n"
15509 "                        int64_t offset);\n"
15510 "\n"
15511 msgstr ""
15512
15513 # type: textblock
15514 #: ../src/guestfs-actions.pod:6530 ../fish/guestfish-actions.pod:4357
15515 msgid ""
15516 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15517 "The intention is to overwrite parts of existing files or devices, although "
15518 "if a non-existant file is specified then it is created with a \"hole\" "
15519 "before C<offset>.  The size of the data written is implicit in the size of "
15520 "the source C<filename>."
15521 msgstr ""
15522
15523 # type: textblock
15524 #: ../src/guestfs-actions.pod:6537
15525 msgid ""
15526 "Note that there is no limit on the amount of data that can be uploaded with "
15527 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15528 "full amount unless an error occurs."
15529 msgstr ""
15530
15531 # type: textblock
15532 #: ../src/guestfs-actions.pod:6542
15533 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15534 msgstr ""
15535
15536 # type: =head2
15537 #: ../src/guestfs-actions.pod:6553
15538 msgid "guestfs_utimens"
15539 msgstr ""
15540
15541 # type: verbatim
15542 #: ../src/guestfs-actions.pod:6555
15543 #, no-wrap
15544 msgid ""
15545 " int\n"
15546 " guestfs_utimens (guestfs_h *g,\n"
15547 "                  const char *path,\n"
15548 "                  int64_t atsecs,\n"
15549 "                  int64_t atnsecs,\n"
15550 "                  int64_t mtsecs,\n"
15551 "                  int64_t mtnsecs);\n"
15552 "\n"
15553 msgstr ""
15554
15555 # type: textblock
15556 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4377
15557 msgid "This command sets the timestamps of a file with nanosecond precision."
15558 msgstr ""
15559
15560 # type: textblock
15561 #: ../src/guestfs-actions.pod:6566 ../fish/guestfish-actions.pod:4380
15562 msgid ""
15563 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15564 "from the epoch."
15565 msgstr ""
15566
15567 # type: textblock
15568 #: ../src/guestfs-actions.pod:6569 ../fish/guestfish-actions.pod:4383
15569 msgid ""
15570 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15571 "nanoseconds from the epoch."
15572 msgstr ""
15573
15574 # type: textblock
15575 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4386
15576 msgid ""
15577 "If the C<*nsecs> field contains the special value C<-1> then the "
15578 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15579 "ignored in this case)."
15580 msgstr ""
15581
15582 # type: textblock
15583 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4390
15584 msgid ""
15585 "If the C<*nsecs> field contains the special value C<-2> then the "
15586 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15587 "in this case)."
15588 msgstr ""
15589
15590 # type: =head2
15591 #: ../src/guestfs-actions.pod:6584 ../src/guestfs-structs.pod:175
15592 msgid "guestfs_version"
15593 msgstr ""
15594
15595 # type: verbatim
15596 #: ../src/guestfs-actions.pod:6586
15597 #, no-wrap
15598 msgid ""
15599 " struct guestfs_version *\n"
15600 " guestfs_version (guestfs_h *g);\n"
15601 "\n"
15602 msgstr ""
15603
15604 # type: textblock
15605 #: ../src/guestfs-actions.pod:6589 ../fish/guestfish-actions.pod:4398
15606 msgid ""
15607 "Return the libguestfs version number that the program is linked against."
15608 msgstr ""
15609
15610 # type: textblock
15611 #: ../src/guestfs-actions.pod:6592 ../fish/guestfish-actions.pod:4401
15612 msgid ""
15613 "Note that because of dynamic linking this is not necessarily the version of "
15614 "libguestfs that you compiled against.  You can compile the program, and then "
15615 "at runtime dynamically link against a completely different C<libguestfs.so> "
15616 "library."
15617 msgstr ""
15618
15619 # type: textblock
15620 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4406
15621 msgid ""
15622 "This call was added in version C<1.0.58>.  In previous versions of "
15623 "libguestfs there was no way to get the version number.  From C code you can "
15624 "use dynamic linker functions to find out if this symbol exists (if it "
15625 "doesn't, then it's an earlier version)."
15626 msgstr ""
15627
15628 # type: textblock
15629 #: ../src/guestfs-actions.pod:6603 ../fish/guestfish-actions.pod:4412
15630 msgid ""
15631 "The call returns a structure with four elements.  The first three (C<major>, "
15632 "C<minor> and C<release>) are numbers and correspond to the usual version "
15633 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15634 "but may be used for distro-specific information."
15635 msgstr ""
15636
15637 # type: textblock
15638 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4418
15639 msgid ""
15640 "To construct the original version string: C<$major.$minor.$release$extra>"
15641 msgstr ""
15642
15643 # type: textblock
15644 #: ../src/guestfs-actions.pod:6612 ../fish/guestfish-actions.pod:4421
15645 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15646 msgstr ""
15647
15648 # type: textblock
15649 #: ../src/guestfs-actions.pod:6614
15650 msgid ""
15651 "I<Note:> Don't use this call to test for availability of features.  In "
15652 "enterprise distributions we backport features from later versions into "
15653 "earlier versions, making this an unreliable way to test for features.  Use "
15654 "C<guestfs_available> instead."
15655 msgstr ""
15656
15657 # type: textblock
15658 #: ../src/guestfs-actions.pod:6620
15659 msgid ""
15660 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15661 "error.  I<The caller must call C<guestfs_free_version> after use>."
15662 msgstr ""
15663
15664 # type: textblock
15665 #: ../src/guestfs-actions.pod:6624
15666 msgid "(Added in 1.0.58)"
15667 msgstr ""
15668
15669 # type: =head2
15670 #: ../src/guestfs-actions.pod:6626
15671 msgid "guestfs_vfs_label"
15672 msgstr ""
15673
15674 # type: verbatim
15675 #: ../src/guestfs-actions.pod:6628
15676 #, no-wrap
15677 msgid ""
15678 " char *\n"
15679 " guestfs_vfs_label (guestfs_h *g,\n"
15680 "                    const char *device);\n"
15681 "\n"
15682 msgstr ""
15683
15684 # type: textblock
15685 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4433
15686 msgid "This returns the filesystem label of the filesystem on C<device>."
15687 msgstr ""
15688
15689 # type: textblock
15690 #: ../src/guestfs-actions.pod:6635 ../fish/guestfish-actions.pod:4436
15691 msgid "If the filesystem is unlabeled, this returns the empty string."
15692 msgstr ""
15693
15694 # type: textblock
15695 #: ../src/guestfs-actions.pod:6637
15696 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15697 msgstr ""
15698
15699 # type: textblock
15700 #: ../src/guestfs-actions.pod:6642 ../src/guestfs-actions.pod:6679
15701 msgid "(Added in 1.3.18)"
15702 msgstr ""
15703
15704 # type: =head2
15705 #: ../src/guestfs-actions.pod:6644
15706 msgid "guestfs_vfs_type"
15707 msgstr ""
15708
15709 # type: verbatim
15710 #: ../src/guestfs-actions.pod:6646
15711 #, no-wrap
15712 msgid ""
15713 " char *\n"
15714 " guestfs_vfs_type (guestfs_h *g,\n"
15715 "                   const char *device);\n"
15716 "\n"
15717 msgstr ""
15718
15719 # type: textblock
15720 #: ../src/guestfs-actions.pod:6650 ../fish/guestfish-actions.pod:4444
15721 msgid ""
15722 "This command gets the filesystem type corresponding to the filesystem on "
15723 "C<device>."
15724 msgstr ""
15725
15726 # type: textblock
15727 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4447
15728 msgid ""
15729 "For most filesystems, the result is the name of the Linux VFS module which "
15730 "would be used to mount this filesystem if you mounted it without specifying "
15731 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15732 msgstr ""
15733
15734 # type: =head2
15735 #: ../src/guestfs-actions.pod:6663
15736 msgid "guestfs_vfs_uuid"
15737 msgstr ""
15738
15739 # type: verbatim
15740 #: ../src/guestfs-actions.pod:6665
15741 #, no-wrap
15742 msgid ""
15743 " char *\n"
15744 " guestfs_vfs_uuid (guestfs_h *g,\n"
15745 "                   const char *device);\n"
15746 "\n"
15747 msgstr ""
15748
15749 # type: textblock
15750 #: ../src/guestfs-actions.pod:6669 ../fish/guestfish-actions.pod:4456
15751 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15752 msgstr ""
15753
15754 # type: textblock
15755 #: ../src/guestfs-actions.pod:6672 ../fish/guestfish-actions.pod:4459
15756 msgid "If the filesystem does not have a UUID, this returns the empty string."
15757 msgstr ""
15758
15759 # type: textblock
15760 #: ../src/guestfs-actions.pod:6674
15761 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15762 msgstr ""
15763
15764 # type: =head2
15765 #: ../src/guestfs-actions.pod:6681
15766 msgid "guestfs_vg_activate"
15767 msgstr ""
15768
15769 # type: verbatim
15770 #: ../src/guestfs-actions.pod:6683
15771 #, no-wrap
15772 msgid ""
15773 " int\n"
15774 " guestfs_vg_activate (guestfs_h *g,\n"
15775 "                      int activate,\n"
15776 "                      char *const *volgroups);\n"
15777 "\n"
15778 msgstr ""
15779
15780 # type: textblock
15781 #: ../src/guestfs-actions.pod:6688 ../fish/guestfish-actions.pod:4467
15782 msgid ""
15783 "This command activates or (if C<activate> is false) deactivates all logical "
15784 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15785 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15786 "deactivated, then those devices disappear."
15787 msgstr ""
15788
15789 # type: textblock
15790 #: ../src/guestfs-actions.pod:6694 ../fish/guestfish-actions.pod:4473
15791 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15792 msgstr ""
15793
15794 # type: textblock
15795 #: ../src/guestfs-actions.pod:6696 ../fish/guestfish-actions.pod:4475
15796 msgid ""
15797 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15798 "activated or deactivated."
15799 msgstr ""
15800
15801 # type: =head2
15802 #: ../src/guestfs-actions.pod:6703
15803 msgid "guestfs_vg_activate_all"
15804 msgstr ""
15805
15806 # type: verbatim
15807 #: ../src/guestfs-actions.pod:6705
15808 #, no-wrap
15809 msgid ""
15810 " int\n"
15811 " guestfs_vg_activate_all (guestfs_h *g,\n"
15812 "                          int activate);\n"
15813 "\n"
15814 msgstr ""
15815
15816 # type: textblock
15817 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4482
15818 msgid ""
15819 "This command activates or (if C<activate> is false) deactivates all logical "
15820 "volumes in all volume groups.  If activated, then they are made known to the "
15821 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15822 "those devices disappear."
15823 msgstr ""
15824
15825 # type: textblock
15826 #: ../src/guestfs-actions.pod:6715 ../fish/guestfish-actions.pod:4488
15827 msgid "This command is the same as running C<vgchange -a y|n>"
15828 msgstr ""
15829
15830 # type: =head2
15831 #: ../src/guestfs-actions.pod:6721
15832 msgid "guestfs_vgcreate"
15833 msgstr ""
15834
15835 # type: verbatim
15836 #: ../src/guestfs-actions.pod:6723
15837 #, no-wrap
15838 msgid ""
15839 " int\n"
15840 " guestfs_vgcreate (guestfs_h *g,\n"
15841 "                   const char *volgroup,\n"
15842 "                   char *const *physvols);\n"
15843 "\n"
15844 msgstr ""
15845
15846 # type: textblock
15847 #: ../src/guestfs-actions.pod:6728 ../fish/guestfish-actions.pod:4494
15848 msgid ""
15849 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15850 "of physical volumes C<physvols>."
15851 msgstr ""
15852
15853 # type: =head2
15854 #: ../src/guestfs-actions.pod:6735
15855 msgid "guestfs_vglvuuids"
15856 msgstr ""
15857
15858 # type: verbatim
15859 #: ../src/guestfs-actions.pod:6737
15860 #, no-wrap
15861 msgid ""
15862 " char **\n"
15863 " guestfs_vglvuuids (guestfs_h *g,\n"
15864 "                    const char *vgname);\n"
15865 "\n"
15866 msgstr ""
15867
15868 # type: textblock
15869 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4501
15870 msgid ""
15871 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15872 "volumes created in this volume group."
15873 msgstr ""
15874
15875 # type: textblock
15876 #: ../src/guestfs-actions.pod:6744
15877 msgid ""
15878 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15879 "associate logical volumes and volume groups."
15880 msgstr ""
15881
15882 # type: textblock
15883 #: ../src/guestfs-actions.pod:6747
15884 msgid "See also C<guestfs_vgpvuuids>."
15885 msgstr ""
15886
15887 # type: =head2
15888 #: ../src/guestfs-actions.pod:6755
15889 msgid "guestfs_vgpvuuids"
15890 msgstr ""
15891
15892 # type: verbatim
15893 #: ../src/guestfs-actions.pod:6757
15894 #, no-wrap
15895 msgid ""
15896 " char **\n"
15897 " guestfs_vgpvuuids (guestfs_h *g,\n"
15898 "                    const char *vgname);\n"
15899 "\n"
15900 msgstr ""
15901
15902 # type: textblock
15903 #: ../src/guestfs-actions.pod:6761 ../fish/guestfish-actions.pod:4513
15904 msgid ""
15905 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15906 "volumes that this volume group resides on."
15907 msgstr ""
15908
15909 # type: textblock
15910 #: ../src/guestfs-actions.pod:6764
15911 msgid ""
15912 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15913 "associate physical volumes and volume groups."
15914 msgstr ""
15915
15916 # type: textblock
15917 #: ../src/guestfs-actions.pod:6767
15918 msgid "See also C<guestfs_vglvuuids>."
15919 msgstr ""
15920
15921 # type: =head2
15922 #: ../src/guestfs-actions.pod:6775
15923 msgid "guestfs_vgremove"
15924 msgstr ""
15925
15926 # type: verbatim
15927 #: ../src/guestfs-actions.pod:6777
15928 #, no-wrap
15929 msgid ""
15930 " int\n"
15931 " guestfs_vgremove (guestfs_h *g,\n"
15932 "                   const char *vgname);\n"
15933 "\n"
15934 msgstr ""
15935
15936 # type: textblock
15937 #: ../src/guestfs-actions.pod:6781 ../fish/guestfish-actions.pod:4525
15938 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15939 msgstr ""
15940
15941 # type: textblock
15942 #: ../src/guestfs-actions.pod:6783 ../fish/guestfish-actions.pod:4527
15943 msgid ""
15944 "This also forcibly removes all logical volumes in the volume group (if any)."
15945 msgstr ""
15946
15947 # type: =head2
15948 #: ../src/guestfs-actions.pod:6790
15949 msgid "guestfs_vgrename"
15950 msgstr ""
15951
15952 # type: verbatim
15953 #: ../src/guestfs-actions.pod:6792
15954 #, no-wrap
15955 msgid ""
15956 " int\n"
15957 " guestfs_vgrename (guestfs_h *g,\n"
15958 "                   const char *volgroup,\n"
15959 "                   const char *newvolgroup);\n"
15960 "\n"
15961 msgstr ""
15962
15963 # type: textblock
15964 #: ../src/guestfs-actions.pod:6797 ../fish/guestfish-actions.pod:4534
15965 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15966 msgstr ""
15967
15968 # type: =head2
15969 #: ../src/guestfs-actions.pod:6803
15970 msgid "guestfs_vgs"
15971 msgstr ""
15972
15973 # type: verbatim
15974 #: ../src/guestfs-actions.pod:6805
15975 #, no-wrap
15976 msgid ""
15977 " char **\n"
15978 " guestfs_vgs (guestfs_h *g);\n"
15979 "\n"
15980 msgstr ""
15981
15982 # type: textblock
15983 #: ../src/guestfs-actions.pod:6808 ../fish/guestfish-actions.pod:4540
15984 msgid ""
15985 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15986 "> command."
15987 msgstr ""
15988
15989 # type: textblock
15990 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4543
15991 msgid ""
15992 "This returns a list of just the volume group names that were detected (eg. "
15993 "C<VolGroup00>)."
15994 msgstr ""
15995
15996 # type: textblock
15997 #: ../src/guestfs-actions.pod:6814
15998 msgid "See also C<guestfs_vgs_full>."
15999 msgstr ""
16000
16001 # type: =head2
16002 #: ../src/guestfs-actions.pod:6822
16003 msgid "guestfs_vgs_full"
16004 msgstr ""
16005
16006 # type: verbatim
16007 #: ../src/guestfs-actions.pod:6824
16008 #, no-wrap
16009 msgid ""
16010 " struct guestfs_lvm_vg_list *\n"
16011 " guestfs_vgs_full (guestfs_h *g);\n"
16012 "\n"
16013 msgstr ""
16014
16015 # type: textblock
16016 #: ../src/guestfs-actions.pod:6827 ../fish/guestfish-actions.pod:4552
16017 msgid ""
16018 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16019 "> command.  The \"full\" version includes all fields."
16020 msgstr ""
16021
16022 # type: textblock
16023 #: ../src/guestfs-actions.pod:6830
16024 msgid ""
16025 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
16026 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
16027 msgstr ""
16028
16029 # type: =head2
16030 #: ../src/guestfs-actions.pod:6836
16031 msgid "guestfs_vgscan"
16032 msgstr ""
16033
16034 # type: verbatim
16035 #: ../src/guestfs-actions.pod:6838
16036 #, no-wrap
16037 msgid ""
16038 " int\n"
16039 " guestfs_vgscan (guestfs_h *g);\n"
16040 "\n"
16041 msgstr ""
16042
16043 # type: textblock
16044 #: ../src/guestfs-actions.pod:6841 ../fish/guestfish-actions.pod:4559
16045 msgid ""
16046 "This rescans all block devices and rebuilds the list of LVM physical "
16047 "volumes, volume groups and logical volumes."
16048 msgstr ""
16049
16050 # type: =head2
16051 #: ../src/guestfs-actions.pod:6848
16052 msgid "guestfs_vguuid"
16053 msgstr ""
16054
16055 # type: verbatim
16056 #: ../src/guestfs-actions.pod:6850
16057 #, no-wrap
16058 msgid ""
16059 " char *\n"
16060 " guestfs_vguuid (guestfs_h *g,\n"
16061 "                 const char *vgname);\n"
16062 "\n"
16063 msgstr ""
16064
16065 # type: textblock
16066 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4566
16067 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16068 msgstr ""
16069
16070 # type: =head2
16071 #: ../src/guestfs-actions.pod:6861
16072 msgid "guestfs_wait_ready"
16073 msgstr ""
16074
16075 # type: verbatim
16076 #: ../src/guestfs-actions.pod:6863
16077 #, no-wrap
16078 msgid ""
16079 " int\n"
16080 " guestfs_wait_ready (guestfs_h *g);\n"
16081 "\n"
16082 msgstr ""
16083
16084 # type: textblock
16085 #: ../src/guestfs-actions.pod:6866
16086 msgid "This function is a no op."
16087 msgstr ""
16088
16089 # type: textblock
16090 #: ../src/guestfs-actions.pod:6868
16091 msgid ""
16092 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
16093 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
16094 "is no longer necessary because C<guestfs_launch> now does the waiting."
16095 msgstr ""
16096
16097 # type: textblock
16098 #: ../src/guestfs-actions.pod:6873
16099 msgid ""
16100 "If you see any calls to this function in code then you can just remove them, "
16101 "unless you want to retain compatibility with older versions of the API."
16102 msgstr ""
16103
16104 # type: =head2
16105 #: ../src/guestfs-actions.pod:6881
16106 msgid "guestfs_wc_c"
16107 msgstr ""
16108
16109 # type: verbatim
16110 #: ../src/guestfs-actions.pod:6883
16111 #, no-wrap
16112 msgid ""
16113 " int\n"
16114 " guestfs_wc_c (guestfs_h *g,\n"
16115 "               const char *path);\n"
16116 "\n"
16117 msgstr ""
16118
16119 # type: textblock
16120 #: ../src/guestfs-actions.pod:6887 ../fish/guestfish-actions.pod:4572
16121 msgid ""
16122 "This command counts the characters in a file, using the C<wc -c> external "
16123 "command."
16124 msgstr ""
16125
16126 # type: =head2
16127 #: ../src/guestfs-actions.pod:6894
16128 msgid "guestfs_wc_l"
16129 msgstr ""
16130
16131 # type: verbatim
16132 #: ../src/guestfs-actions.pod:6896
16133 #, no-wrap
16134 msgid ""
16135 " int\n"
16136 " guestfs_wc_l (guestfs_h *g,\n"
16137 "               const char *path);\n"
16138 "\n"
16139 msgstr ""
16140
16141 # type: textblock
16142 #: ../src/guestfs-actions.pod:6900 ../fish/guestfish-actions.pod:4579
16143 msgid ""
16144 "This command counts the lines in a file, using the C<wc -l> external command."
16145 msgstr ""
16146
16147 # type: =head2
16148 #: ../src/guestfs-actions.pod:6907
16149 msgid "guestfs_wc_w"
16150 msgstr ""
16151
16152 # type: verbatim
16153 #: ../src/guestfs-actions.pod:6909
16154 #, no-wrap
16155 msgid ""
16156 " int\n"
16157 " guestfs_wc_w (guestfs_h *g,\n"
16158 "               const char *path);\n"
16159 "\n"
16160 msgstr ""
16161
16162 # type: textblock
16163 #: ../src/guestfs-actions.pod:6913 ../fish/guestfish-actions.pod:4586
16164 msgid ""
16165 "This command counts the words in a file, using the C<wc -w> external command."
16166 msgstr ""
16167
16168 # type: =head2
16169 #: ../src/guestfs-actions.pod:6920
16170 msgid "guestfs_write"
16171 msgstr ""
16172
16173 # type: verbatim
16174 #: ../src/guestfs-actions.pod:6922
16175 #, no-wrap
16176 msgid ""
16177 " int\n"
16178 " guestfs_write (guestfs_h *g,\n"
16179 "                const char *path,\n"
16180 "                const char *content,\n"
16181 "                size_t content_size);\n"
16182 "\n"
16183 msgstr ""
16184
16185 # type: textblock
16186 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4593
16187 msgid ""
16188 "This call creates a file called C<path>.  The content of the file is the "
16189 "string C<content> (which can contain any 8 bit data)."
16190 msgstr ""
16191
16192 # type: =head2
16193 #: ../src/guestfs-actions.pod:6938
16194 msgid "guestfs_write_file"
16195 msgstr ""
16196
16197 # type: verbatim
16198 #: ../src/guestfs-actions.pod:6940
16199 #, no-wrap
16200 msgid ""
16201 " int\n"
16202 " guestfs_write_file (guestfs_h *g,\n"
16203 "                     const char *path,\n"
16204 "                     const char *content,\n"
16205 "                     int size);\n"
16206 "\n"
16207 msgstr ""
16208
16209 # type: textblock
16210 #: ../src/guestfs-actions.pod:6946 ../fish/guestfish-actions.pod:4603
16211 msgid ""
16212 "This call creates a file called C<path>.  The contents of the file is the "
16213 "string C<content> (which can contain any 8 bit data), with length C<size>."
16214 msgstr ""
16215
16216 # type: textblock
16217 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4607
16218 msgid ""
16219 "As a special case, if C<size> is C<0> then the length is calculated using "
16220 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16221 msgstr ""
16222
16223 # type: textblock
16224 #: ../src/guestfs-actions.pod:6954 ../fish/guestfish-actions.pod:4611
16225 msgid ""
16226 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16227 "I<not> work, even if the length is specified."
16228 msgstr ""
16229
16230 # type: textblock
16231 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4617
16232 msgid ""
16233 "This function is deprecated.  In new code, use the C<write> call instead."
16234 msgstr ""
16235
16236 # type: =head2
16237 #: ../src/guestfs-actions.pod:6971
16238 msgid "guestfs_zegrep"
16239 msgstr ""
16240
16241 # type: verbatim
16242 #: ../src/guestfs-actions.pod:6973
16243 #, no-wrap
16244 msgid ""
16245 " char **\n"
16246 " guestfs_zegrep (guestfs_h *g,\n"
16247 "                 const char *regex,\n"
16248 "                 const char *path);\n"
16249 "\n"
16250 msgstr ""
16251
16252 # type: textblock
16253 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4628
16254 msgid ""
16255 "This calls the external C<zegrep> program and returns the matching lines."
16256 msgstr ""
16257
16258 # type: =head2
16259 #: ../src/guestfs-actions.pod:6990
16260 msgid "guestfs_zegrepi"
16261 msgstr ""
16262
16263 # type: verbatim
16264 #: ../src/guestfs-actions.pod:6992
16265 #, no-wrap
16266 msgid ""
16267 " char **\n"
16268 " guestfs_zegrepi (guestfs_h *g,\n"
16269 "                  const char *regex,\n"
16270 "                  const char *path);\n"
16271 "\n"
16272 msgstr ""
16273
16274 # type: textblock
16275 #: ../src/guestfs-actions.pod:6997 ../fish/guestfish-actions.pod:4638
16276 msgid ""
16277 "This calls the external C<zegrep -i> program and returns the matching lines."
16278 msgstr ""
16279
16280 # type: =head2
16281 #: ../src/guestfs-actions.pod:7009
16282 msgid "guestfs_zero"
16283 msgstr ""
16284
16285 # type: verbatim
16286 #: ../src/guestfs-actions.pod:7011
16287 #, no-wrap
16288 msgid ""
16289 " int\n"
16290 " guestfs_zero (guestfs_h *g,\n"
16291 "               const char *device);\n"
16292 "\n"
16293 msgstr ""
16294
16295 # type: textblock
16296 #: ../src/guestfs-actions.pod:7015 ../fish/guestfish-actions.pod:4648
16297 msgid "This command writes zeroes over the first few blocks of C<device>."
16298 msgstr ""
16299
16300 # type: textblock
16301 #: ../src/guestfs-actions.pod:7017 ../fish/guestfish-actions.pod:4650
16302 msgid ""
16303 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16304 "securely wipe the device).  It should be sufficient to remove any partition "
16305 "tables, filesystem superblocks and so on."
16306 msgstr ""
16307
16308 # type: textblock
16309 #: ../src/guestfs-actions.pod:7021
16310 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
16311 msgstr ""
16312
16313 # type: =head2
16314 #: ../src/guestfs-actions.pod:7032
16315 msgid "guestfs_zero_device"
16316 msgstr ""
16317
16318 # type: verbatim
16319 #: ../src/guestfs-actions.pod:7034
16320 #, no-wrap
16321 msgid ""
16322 " int\n"
16323 " guestfs_zero_device (guestfs_h *g,\n"
16324 "                      const char *device);\n"
16325 "\n"
16326 msgstr ""
16327
16328 # type: textblock
16329 #: ../src/guestfs-actions.pod:7038
16330 msgid ""
16331 "This command writes zeroes over the entire C<device>.  Compare with "
16332 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16333 msgstr ""
16334
16335 # type: textblock
16336 #: ../src/guestfs-actions.pod:7052
16337 msgid "(Added in 1.3.1)"
16338 msgstr ""
16339
16340 # type: =head2
16341 #: ../src/guestfs-actions.pod:7054
16342 msgid "guestfs_zerofree"
16343 msgstr ""
16344
16345 # type: verbatim
16346 #: ../src/guestfs-actions.pod:7056
16347 #, no-wrap
16348 msgid ""
16349 " int\n"
16350 " guestfs_zerofree (guestfs_h *g,\n"
16351 "                   const char *device);\n"
16352 "\n"
16353 msgstr ""
16354
16355 # type: textblock
16356 #: ../src/guestfs-actions.pod:7060 ../fish/guestfish-actions.pod:4671
16357 msgid ""
16358 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16359 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16360 "possible to compress the filesystem more effectively."
16361 msgstr ""
16362
16363 # type: textblock
16364 #: ../src/guestfs-actions.pod:7065 ../fish/guestfish-actions.pod:4676
16365 msgid "You should B<not> run this program if the filesystem is mounted."
16366 msgstr ""
16367
16368 # type: textblock
16369 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4679
16370 msgid ""
16371 "It is possible that using this program can damage the filesystem or data on "
16372 "the filesystem."
16373 msgstr ""
16374
16375 # type: =head2
16376 #: ../src/guestfs-actions.pod:7075
16377 msgid "guestfs_zfgrep"
16378 msgstr ""
16379
16380 # type: verbatim
16381 #: ../src/guestfs-actions.pod:7077
16382 #, no-wrap
16383 msgid ""
16384 " char **\n"
16385 " guestfs_zfgrep (guestfs_h *g,\n"
16386 "                 const char *pattern,\n"
16387 "                 const char *path);\n"
16388 "\n"
16389 msgstr ""
16390
16391 # type: textblock
16392 #: ../src/guestfs-actions.pod:7082 ../fish/guestfish-actions.pod:4686
16393 msgid ""
16394 "This calls the external C<zfgrep> program and returns the matching lines."
16395 msgstr ""
16396
16397 # type: =head2
16398 #: ../src/guestfs-actions.pod:7094
16399 msgid "guestfs_zfgrepi"
16400 msgstr ""
16401
16402 # type: verbatim
16403 #: ../src/guestfs-actions.pod:7096
16404 #, no-wrap
16405 msgid ""
16406 " char **\n"
16407 " guestfs_zfgrepi (guestfs_h *g,\n"
16408 "                  const char *pattern,\n"
16409 "                  const char *path);\n"
16410 "\n"
16411 msgstr ""
16412
16413 # type: textblock
16414 #: ../src/guestfs-actions.pod:7101 ../fish/guestfish-actions.pod:4696
16415 msgid ""
16416 "This calls the external C<zfgrep -i> program and returns the matching lines."
16417 msgstr ""
16418
16419 # type: =head2
16420 #: ../src/guestfs-actions.pod:7113
16421 msgid "guestfs_zfile"
16422 msgstr ""
16423
16424 # type: verbatim
16425 #: ../src/guestfs-actions.pod:7115
16426 #, no-wrap
16427 msgid ""
16428 " char *\n"
16429 " guestfs_zfile (guestfs_h *g,\n"
16430 "                const char *meth,\n"
16431 "                const char *path);\n"
16432 "\n"
16433 msgstr ""
16434
16435 # type: textblock
16436 #: ../src/guestfs-actions.pod:7120 ../fish/guestfish-actions.pod:4706
16437 msgid ""
16438 "This command runs C<file> after first decompressing C<path> using C<method>."
16439 msgstr ""
16440
16441 # type: textblock
16442 #: ../src/guestfs-actions.pod:7123 ../fish/guestfish-actions.pod:4709
16443 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16444 msgstr ""
16445
16446 # type: textblock
16447 #: ../src/guestfs-actions.pod:7125
16448 msgid ""
16449 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16450 "files."
16451 msgstr ""
16452
16453 # type: textblock
16454 #: ../src/guestfs-actions.pod:7131 ../fish/guestfish-actions.pod:4714
16455 msgid ""
16456 "This function is deprecated.  In new code, use the C<file> call instead."
16457 msgstr ""
16458
16459 # type: =head2
16460 #: ../src/guestfs-actions.pod:7140
16461 msgid "guestfs_zgrep"
16462 msgstr ""
16463
16464 # type: verbatim
16465 #: ../src/guestfs-actions.pod:7142
16466 #, no-wrap
16467 msgid ""
16468 " char **\n"
16469 " guestfs_zgrep (guestfs_h *g,\n"
16470 "                const char *regex,\n"
16471 "                const char *path);\n"
16472 "\n"
16473 msgstr ""
16474
16475 # type: textblock
16476 #: ../src/guestfs-actions.pod:7147 ../fish/guestfish-actions.pod:4725
16477 msgid ""
16478 "This calls the external C<zgrep> program and returns the matching lines."
16479 msgstr ""
16480
16481 # type: =head2
16482 #: ../src/guestfs-actions.pod:7159
16483 msgid "guestfs_zgrepi"
16484 msgstr ""
16485
16486 # type: verbatim
16487 #: ../src/guestfs-actions.pod:7161
16488 #, no-wrap
16489 msgid ""
16490 " char **\n"
16491 " guestfs_zgrepi (guestfs_h *g,\n"
16492 "                 const char *regex,\n"
16493 "                 const char *path);\n"
16494 "\n"
16495 msgstr ""
16496
16497 # type: textblock
16498 #: ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:4735
16499 msgid ""
16500 "This calls the external C<zgrep -i> program and returns the matching lines."
16501 msgstr ""
16502
16503 # type: =item
16504 #: ../src/guestfs-availability.pod:3
16505 msgid "B<augeas>"
16506 msgstr ""
16507
16508 # type: textblock
16509 #: ../src/guestfs-availability.pod:5
16510 msgid ""
16511 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16512 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16513 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16514 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16515 "L</guestfs_aug_save> L</guestfs_aug_set>"
16516 msgstr ""
16517
16518 # type: =item
16519 #: ../src/guestfs-availability.pod:21
16520 msgid "B<inotify>"
16521 msgstr ""
16522
16523 # type: textblock
16524 #: ../src/guestfs-availability.pod:23
16525 msgid ""
16526 "The following functions: L</guestfs_inotify_add_watch> L</"
16527 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16528 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16529 msgstr ""
16530
16531 # type: =item
16532 #: ../src/guestfs-availability.pod:31
16533 msgid "B<linuxfsuuid>"
16534 msgstr ""
16535
16536 # type: textblock
16537 #: ../src/guestfs-availability.pod:33
16538 msgid ""
16539 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16540 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16541 msgstr ""
16542
16543 # type: =item
16544 #: ../src/guestfs-availability.pod:40
16545 msgid "B<linuxmodules>"
16546 msgstr ""
16547
16548 # type: textblock
16549 #: ../src/guestfs-availability.pod:42
16550 msgid "The following functions: L</guestfs_modprobe>"
16551 msgstr ""
16552
16553 # type: =item
16554 #: ../src/guestfs-availability.pod:45
16555 msgid "B<linuxxattrs>"
16556 msgstr ""
16557
16558 # type: textblock
16559 #: ../src/guestfs-availability.pod:47
16560 msgid ""
16561 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
16562 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
16563 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
16564 "guestfs_setxattr>"
16565 msgstr ""
16566
16567 # type: =item
16568 #: ../src/guestfs-availability.pod:58
16569 msgid "B<luks>"
16570 msgstr ""
16571
16572 # type: textblock
16573 #: ../src/guestfs-availability.pod:60
16574 msgid ""
16575 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16576 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16577 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16578 msgstr ""
16579
16580 # type: =item
16581 #: ../src/guestfs-availability.pod:69
16582 msgid "B<lvm2>"
16583 msgstr ""
16584
16585 # type: textblock
16586 #: ../src/guestfs-availability.pod:71
16587 msgid ""
16588 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16589 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16590 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16591 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16592 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16593 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16594 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16595 msgstr ""
16596
16597 # type: =item
16598 #: ../src/guestfs-availability.pod:94
16599 msgid "B<mknod>"
16600 msgstr ""
16601
16602 # type: textblock
16603 #: ../src/guestfs-availability.pod:96
16604 msgid ""
16605 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16606 "guestfs_mknod_b> L</guestfs_mknod_c>"
16607 msgstr ""
16608
16609 # type: =item
16610 #: ../src/guestfs-availability.pod:102
16611 msgid "B<ntfs3g>"
16612 msgstr ""
16613
16614 # type: textblock
16615 #: ../src/guestfs-availability.pod:104
16616 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16617 msgstr ""
16618
16619 # type: =item
16620 #: ../src/guestfs-availability.pod:107
16621 msgid "B<ntfsprogs>"
16622 msgstr ""
16623
16624 # type: textblock
16625 #: ../src/guestfs-availability.pod:109
16626 msgid ""
16627 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16628 msgstr ""
16629
16630 # type: =item
16631 #: ../src/guestfs-availability.pod:113
16632 msgid "B<realpath>"
16633 msgstr ""
16634
16635 # type: textblock
16636 #: ../src/guestfs-availability.pod:115
16637 msgid "The following functions: L</guestfs_realpath>"
16638 msgstr ""
16639
16640 # type: =item
16641 #: ../src/guestfs-availability.pod:118
16642 msgid "B<scrub>"
16643 msgstr ""
16644
16645 # type: textblock
16646 #: ../src/guestfs-availability.pod:120
16647 msgid ""
16648 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16649 "guestfs_scrub_freespace>"
16650 msgstr ""
16651
16652 # type: =item
16653 #: ../src/guestfs-availability.pod:125
16654 msgid "B<selinux>"
16655 msgstr ""
16656
16657 # type: textblock
16658 #: ../src/guestfs-availability.pod:127
16659 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16660 msgstr ""
16661
16662 # type: =item
16663 #: ../src/guestfs-availability.pod:131
16664 msgid "B<xz>"
16665 msgstr ""
16666
16667 # type: textblock
16668 #: ../src/guestfs-availability.pod:133
16669 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16670 msgstr ""
16671
16672 # type: =item
16673 #: ../src/guestfs-availability.pod:137
16674 msgid "B<zerofree>"
16675 msgstr ""
16676
16677 # type: textblock
16678 #: ../src/guestfs-availability.pod:139
16679 msgid "The following functions: L</guestfs_zerofree>"
16680 msgstr ""
16681
16682 # type: =head2
16683 #: ../src/guestfs-structs.pod:1
16684 msgid "guestfs_int_bool"
16685 msgstr ""
16686
16687 # type: verbatim
16688 #: ../src/guestfs-structs.pod:3
16689 #, no-wrap
16690 msgid ""
16691 " struct guestfs_int_bool {\n"
16692 "   int32_t i;\n"
16693 "   int32_t b;\n"
16694 " };\n"
16695 " \n"
16696 msgstr ""
16697
16698 # type: verbatim
16699 #: ../src/guestfs-structs.pod:8
16700 #, no-wrap
16701 msgid ""
16702 " struct guestfs_int_bool_list {\n"
16703 "   uint32_t len; /* Number of elements in list. */\n"
16704 "   struct guestfs_int_bool *val; /* Elements. */\n"
16705 " };\n"
16706 " \n"
16707 msgstr ""
16708
16709 # type: verbatim
16710 #: ../src/guestfs-structs.pod:13
16711 #, no-wrap
16712 msgid ""
16713 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16714 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16715 "\n"
16716 msgstr ""
16717
16718 # type: =head2
16719 #: ../src/guestfs-structs.pod:16
16720 msgid "guestfs_lvm_pv"
16721 msgstr ""
16722
16723 # type: verbatim
16724 #: ../src/guestfs-structs.pod:18
16725 #, no-wrap
16726 msgid ""
16727 " struct guestfs_lvm_pv {\n"
16728 "   char *pv_name;\n"
16729 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16730 "   char pv_uuid[32];\n"
16731 "   char *pv_fmt;\n"
16732 "   uint64_t pv_size;\n"
16733 "   uint64_t dev_size;\n"
16734 "   uint64_t pv_free;\n"
16735 "   uint64_t pv_used;\n"
16736 "   char *pv_attr;\n"
16737 "   int64_t pv_pe_count;\n"
16738 "   int64_t pv_pe_alloc_count;\n"
16739 "   char *pv_tags;\n"
16740 "   uint64_t pe_start;\n"
16741 "   int64_t pv_mda_count;\n"
16742 "   uint64_t pv_mda_free;\n"
16743 " };\n"
16744 " \n"
16745 msgstr ""
16746
16747 # type: verbatim
16748 #: ../src/guestfs-structs.pod:36
16749 #, no-wrap
16750 msgid ""
16751 " struct guestfs_lvm_pv_list {\n"
16752 "   uint32_t len; /* Number of elements in list. */\n"
16753 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16754 " };\n"
16755 " \n"
16756 msgstr ""
16757
16758 # type: verbatim
16759 #: ../src/guestfs-structs.pod:41
16760 #, no-wrap
16761 msgid ""
16762 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16763 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16764 "\n"
16765 msgstr ""
16766
16767 # type: =head2
16768 #: ../src/guestfs-structs.pod:44
16769 msgid "guestfs_lvm_vg"
16770 msgstr ""
16771
16772 # type: verbatim
16773 #: ../src/guestfs-structs.pod:46
16774 #, no-wrap
16775 msgid ""
16776 " struct guestfs_lvm_vg {\n"
16777 "   char *vg_name;\n"
16778 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16779 "   char vg_uuid[32];\n"
16780 "   char *vg_fmt;\n"
16781 "   char *vg_attr;\n"
16782 "   uint64_t vg_size;\n"
16783 "   uint64_t vg_free;\n"
16784 "   char *vg_sysid;\n"
16785 "   uint64_t vg_extent_size;\n"
16786 "   int64_t vg_extent_count;\n"
16787 "   int64_t vg_free_count;\n"
16788 "   int64_t max_lv;\n"
16789 "   int64_t max_pv;\n"
16790 "   int64_t pv_count;\n"
16791 "   int64_t lv_count;\n"
16792 "   int64_t snap_count;\n"
16793 "   int64_t vg_seqno;\n"
16794 "   char *vg_tags;\n"
16795 "   int64_t vg_mda_count;\n"
16796 "   uint64_t vg_mda_free;\n"
16797 " };\n"
16798 " \n"
16799 msgstr ""
16800
16801 # type: verbatim
16802 #: ../src/guestfs-structs.pod:69
16803 #, no-wrap
16804 msgid ""
16805 " struct guestfs_lvm_vg_list {\n"
16806 "   uint32_t len; /* Number of elements in list. */\n"
16807 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16808 " };\n"
16809 " \n"
16810 msgstr ""
16811
16812 # type: verbatim
16813 #: ../src/guestfs-structs.pod:74
16814 #, no-wrap
16815 msgid ""
16816 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16817 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16818 "\n"
16819 msgstr ""
16820
16821 # type: =head2
16822 #: ../src/guestfs-structs.pod:77
16823 msgid "guestfs_lvm_lv"
16824 msgstr ""
16825
16826 # type: verbatim
16827 #: ../src/guestfs-structs.pod:79
16828 #, no-wrap
16829 msgid ""
16830 " struct guestfs_lvm_lv {\n"
16831 "   char *lv_name;\n"
16832 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16833 "   char lv_uuid[32];\n"
16834 "   char *lv_attr;\n"
16835 "   int64_t lv_major;\n"
16836 "   int64_t lv_minor;\n"
16837 "   int64_t lv_kernel_major;\n"
16838 "   int64_t lv_kernel_minor;\n"
16839 "   uint64_t lv_size;\n"
16840 "   int64_t seg_count;\n"
16841 "   char *origin;\n"
16842 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16843 "   float snap_percent;\n"
16844 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16845 "   float copy_percent;\n"
16846 "   char *move_pv;\n"
16847 "   char *lv_tags;\n"
16848 "   char *mirror_log;\n"
16849 "   char *modules;\n"
16850 " };\n"
16851 " \n"
16852 msgstr ""
16853
16854 # type: verbatim
16855 #: ../src/guestfs-structs.pod:101
16856 #, no-wrap
16857 msgid ""
16858 " struct guestfs_lvm_lv_list {\n"
16859 "   uint32_t len; /* Number of elements in list. */\n"
16860 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16861 " };\n"
16862 " \n"
16863 msgstr ""
16864
16865 # type: verbatim
16866 #: ../src/guestfs-structs.pod:106
16867 #, no-wrap
16868 msgid ""
16869 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16870 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16871 "\n"
16872 msgstr ""
16873
16874 # type: verbatim
16875 #: ../src/guestfs-structs.pod:111
16876 #, no-wrap
16877 msgid ""
16878 " struct guestfs_stat {\n"
16879 "   int64_t dev;\n"
16880 "   int64_t ino;\n"
16881 "   int64_t mode;\n"
16882 "   int64_t nlink;\n"
16883 "   int64_t uid;\n"
16884 "   int64_t gid;\n"
16885 "   int64_t rdev;\n"
16886 "   int64_t size;\n"
16887 "   int64_t blksize;\n"
16888 "   int64_t blocks;\n"
16889 "   int64_t atime;\n"
16890 "   int64_t mtime;\n"
16891 "   int64_t ctime;\n"
16892 " };\n"
16893 " \n"
16894 msgstr ""
16895
16896 # type: verbatim
16897 #: ../src/guestfs-structs.pod:127
16898 #, no-wrap
16899 msgid ""
16900 " struct guestfs_stat_list {\n"
16901 "   uint32_t len; /* Number of elements in list. */\n"
16902 "   struct guestfs_stat *val; /* Elements. */\n"
16903 " };\n"
16904 " \n"
16905 msgstr ""
16906
16907 # type: verbatim
16908 #: ../src/guestfs-structs.pod:132
16909 #, no-wrap
16910 msgid ""
16911 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16912 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16913 "\n"
16914 msgstr ""
16915
16916 # type: verbatim
16917 #: ../src/guestfs-structs.pod:137
16918 #, no-wrap
16919 msgid ""
16920 " struct guestfs_statvfs {\n"
16921 "   int64_t bsize;\n"
16922 "   int64_t frsize;\n"
16923 "   int64_t blocks;\n"
16924 "   int64_t bfree;\n"
16925 "   int64_t bavail;\n"
16926 "   int64_t files;\n"
16927 "   int64_t ffree;\n"
16928 "   int64_t favail;\n"
16929 "   int64_t fsid;\n"
16930 "   int64_t flag;\n"
16931 "   int64_t namemax;\n"
16932 " };\n"
16933 " \n"
16934 msgstr ""
16935
16936 # type: verbatim
16937 #: ../src/guestfs-structs.pod:151
16938 #, no-wrap
16939 msgid ""
16940 " struct guestfs_statvfs_list {\n"
16941 "   uint32_t len; /* Number of elements in list. */\n"
16942 "   struct guestfs_statvfs *val; /* Elements. */\n"
16943 " };\n"
16944 " \n"
16945 msgstr ""
16946
16947 # type: verbatim
16948 #: ../src/guestfs-structs.pod:156
16949 #, no-wrap
16950 msgid ""
16951 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16952 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16953 "\n"
16954 msgstr ""
16955
16956 # type: =head2
16957 #: ../src/guestfs-structs.pod:159
16958 msgid "guestfs_dirent"
16959 msgstr ""
16960
16961 # type: verbatim
16962 #: ../src/guestfs-structs.pod:161
16963 #, no-wrap
16964 msgid ""
16965 " struct guestfs_dirent {\n"
16966 "   int64_t ino;\n"
16967 "   char ftyp;\n"
16968 "   char *name;\n"
16969 " };\n"
16970 " \n"
16971 msgstr ""
16972
16973 # type: verbatim
16974 #: ../src/guestfs-structs.pod:167
16975 #, no-wrap
16976 msgid ""
16977 " struct guestfs_dirent_list {\n"
16978 "   uint32_t len; /* Number of elements in list. */\n"
16979 "   struct guestfs_dirent *val; /* Elements. */\n"
16980 " };\n"
16981 " \n"
16982 msgstr ""
16983
16984 # type: verbatim
16985 #: ../src/guestfs-structs.pod:172
16986 #, no-wrap
16987 msgid ""
16988 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16989 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16990 "\n"
16991 msgstr ""
16992
16993 # type: verbatim
16994 #: ../src/guestfs-structs.pod:177
16995 #, no-wrap
16996 msgid ""
16997 " struct guestfs_version {\n"
16998 "   int64_t major;\n"
16999 "   int64_t minor;\n"
17000 "   int64_t release;\n"
17001 "   char *extra;\n"
17002 " };\n"
17003 " \n"
17004 msgstr ""
17005
17006 # type: verbatim
17007 #: ../src/guestfs-structs.pod:184
17008 #, no-wrap
17009 msgid ""
17010 " struct guestfs_version_list {\n"
17011 "   uint32_t len; /* Number of elements in list. */\n"
17012 "   struct guestfs_version *val; /* Elements. */\n"
17013 " };\n"
17014 " \n"
17015 msgstr ""
17016
17017 # type: verbatim
17018 #: ../src/guestfs-structs.pod:189
17019 #, no-wrap
17020 msgid ""
17021 " void guestfs_free_version (struct guestfs_free_version *);\n"
17022 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
17023 "\n"
17024 msgstr ""
17025
17026 # type: =head2
17027 #: ../src/guestfs-structs.pod:192
17028 msgid "guestfs_xattr"
17029 msgstr ""
17030
17031 # type: verbatim
17032 #: ../src/guestfs-structs.pod:194
17033 #, no-wrap
17034 msgid ""
17035 " struct guestfs_xattr {\n"
17036 "   char *attrname;\n"
17037 "   /* The next two fields describe a byte array. */\n"
17038 "   uint32_t attrval_len;\n"
17039 "   char *attrval;\n"
17040 " };\n"
17041 " \n"
17042 msgstr ""
17043
17044 # type: verbatim
17045 #: ../src/guestfs-structs.pod:201
17046 #, no-wrap
17047 msgid ""
17048 " struct guestfs_xattr_list {\n"
17049 "   uint32_t len; /* Number of elements in list. */\n"
17050 "   struct guestfs_xattr *val; /* Elements. */\n"
17051 " };\n"
17052 " \n"
17053 msgstr ""
17054
17055 # type: verbatim
17056 #: ../src/guestfs-structs.pod:206
17057 #, no-wrap
17058 msgid ""
17059 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
17060 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
17061 "\n"
17062 msgstr ""
17063
17064 # type: =head2
17065 #: ../src/guestfs-structs.pod:209
17066 msgid "guestfs_inotify_event"
17067 msgstr ""
17068
17069 # type: verbatim
17070 #: ../src/guestfs-structs.pod:211
17071 #, no-wrap
17072 msgid ""
17073 " struct guestfs_inotify_event {\n"
17074 "   int64_t in_wd;\n"
17075 "   uint32_t in_mask;\n"
17076 "   uint32_t in_cookie;\n"
17077 "   char *in_name;\n"
17078 " };\n"
17079 " \n"
17080 msgstr ""
17081
17082 # type: verbatim
17083 #: ../src/guestfs-structs.pod:218
17084 #, no-wrap
17085 msgid ""
17086 " struct guestfs_inotify_event_list {\n"
17087 "   uint32_t len; /* Number of elements in list. */\n"
17088 "   struct guestfs_inotify_event *val; /* Elements. */\n"
17089 " };\n"
17090 " \n"
17091 msgstr ""
17092
17093 # type: verbatim
17094 #: ../src/guestfs-structs.pod:223
17095 #, no-wrap
17096 msgid ""
17097 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
17098 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
17099 "\n"
17100 msgstr ""
17101
17102 # type: =head2
17103 #: ../src/guestfs-structs.pod:226
17104 msgid "guestfs_partition"
17105 msgstr ""
17106
17107 # type: verbatim
17108 #: ../src/guestfs-structs.pod:228
17109 #, no-wrap
17110 msgid ""
17111 " struct guestfs_partition {\n"
17112 "   int32_t part_num;\n"
17113 "   uint64_t part_start;\n"
17114 "   uint64_t part_end;\n"
17115 "   uint64_t part_size;\n"
17116 " };\n"
17117 " \n"
17118 msgstr ""
17119
17120 # type: verbatim
17121 #: ../src/guestfs-structs.pod:235
17122 #, no-wrap
17123 msgid ""
17124 " struct guestfs_partition_list {\n"
17125 "   uint32_t len; /* Number of elements in list. */\n"
17126 "   struct guestfs_partition *val; /* Elements. */\n"
17127 " };\n"
17128 " \n"
17129 msgstr ""
17130
17131 # type: verbatim
17132 #: ../src/guestfs-structs.pod:240
17133 #, no-wrap
17134 msgid ""
17135 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
17136 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
17137 "\n"
17138 msgstr ""
17139
17140 # type: =head2
17141 #: ../src/guestfs-structs.pod:243
17142 msgid "guestfs_application"
17143 msgstr ""
17144
17145 # type: verbatim
17146 #: ../src/guestfs-structs.pod:245
17147 #, no-wrap
17148 msgid ""
17149 " struct guestfs_application {\n"
17150 "   char *app_name;\n"
17151 "   char *app_display_name;\n"
17152 "   int32_t app_epoch;\n"
17153 "   char *app_version;\n"
17154 "   char *app_release;\n"
17155 "   char *app_install_path;\n"
17156 "   char *app_trans_path;\n"
17157 "   char *app_publisher;\n"
17158 "   char *app_url;\n"
17159 "   char *app_source_package;\n"
17160 "   char *app_summary;\n"
17161 "   char *app_description;\n"
17162 " };\n"
17163 " \n"
17164 msgstr ""
17165
17166 # type: verbatim
17167 #: ../src/guestfs-structs.pod:260
17168 #, no-wrap
17169 msgid ""
17170 " struct guestfs_application_list {\n"
17171 "   uint32_t len; /* Number of elements in list. */\n"
17172 "   struct guestfs_application *val; /* Elements. */\n"
17173 " };\n"
17174 " \n"
17175 msgstr ""
17176
17177 # type: verbatim
17178 #: ../src/guestfs-structs.pod:265
17179 #, no-wrap
17180 msgid ""
17181 " void guestfs_free_application (struct guestfs_free_application *);\n"
17182 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
17183 "\n"
17184 msgstr ""
17185
17186 # type: textblock
17187 #: ../fish/guestfish.pod:5
17188 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17189 msgstr ""
17190
17191 # type: verbatim
17192 #: ../fish/guestfish.pod:9
17193 #, no-wrap
17194 msgid ""
17195 " guestfish [--options] [commands]\n"
17196 "\n"
17197 msgstr ""
17198
17199 # type: verbatim
17200 #: ../fish/guestfish.pod:11
17201 #, no-wrap
17202 msgid ""
17203 " guestfish\n"
17204 "\n"
17205 msgstr ""
17206
17207 # type: verbatim
17208 #: ../fish/guestfish.pod:13
17209 #, no-wrap
17210 msgid ""
17211 " guestfish [--ro|--rw] -a disk.img\n"
17212 "\n"
17213 msgstr ""
17214
17215 # type: verbatim
17216 #: ../fish/guestfish.pod:15
17217 #, no-wrap
17218 msgid ""
17219 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17220 "\n"
17221 msgstr ""
17222
17223 # type: verbatim
17224 #: ../fish/guestfish.pod:17
17225 #, no-wrap
17226 msgid ""
17227 " guestfish -d libvirt-domain\n"
17228 "\n"
17229 msgstr ""
17230
17231 # type: verbatim
17232 #: ../fish/guestfish.pod:19
17233 #, no-wrap
17234 msgid ""
17235 " guestfish [--ro|--rw] -a disk.img -i\n"
17236 "\n"
17237 msgstr ""
17238
17239 # type: verbatim
17240 #: ../fish/guestfish.pod:21
17241 #, no-wrap
17242 msgid ""
17243 " guestfish -d libvirt-domain -i\n"
17244 "\n"
17245 msgstr ""
17246
17247 # type: =head1
17248 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
17249 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
17250 msgid "WARNING"
17251 msgstr ""
17252
17253 # type: textblock
17254 #: ../fish/guestfish.pod:25
17255 msgid ""
17256 "Using guestfish in read/write mode on live virtual machines can be "
17257 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17258 "option to use guestfish safely if the disk image or virtual machine might be "
17259 "live."
17260 msgstr ""
17261
17262 # type: textblock
17263 #: ../fish/guestfish.pod:32
17264 msgid ""
17265 "Guestfish is a shell and command-line tool for examining and modifying "
17266 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17267 "functionality of the guestfs API, see L<guestfs(3)>."
17268 msgstr ""
17269
17270 # type: textblock
17271 #: ../fish/guestfish.pod:36
17272 msgid ""
17273 "Guestfish gives you structured access to the libguestfs API, from shell "
17274 "scripts or the command line or interactively.  If you want to rescue a "
17275 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17276 "command."
17277 msgstr ""
17278
17279 # type: =head1
17280 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897
17281 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
17282 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
17283 msgid "EXAMPLES"
17284 msgstr ""
17285
17286 # type: =head2
17287 #: ../fish/guestfish.pod:43
17288 msgid "As an interactive shell"
17289 msgstr ""
17290
17291 # type: verbatim
17292 #: ../fish/guestfish.pod:45
17293 #, no-wrap
17294 msgid ""
17295 " $ guestfish\n"
17296 " \n"
17297 msgstr ""
17298
17299 # type: verbatim
17300 #: ../fish/guestfish.pod:47
17301 #, no-wrap
17302 msgid ""
17303 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17304 " editing virtual machine filesystems.\n"
17305 " \n"
17306 msgstr ""
17307
17308 # type: verbatim
17309 #: ../fish/guestfish.pod:50
17310 #, no-wrap
17311 msgid ""
17312 " Type: 'help' for a list of commands\n"
17313 "       'man' to read the manual\n"
17314 "       'quit' to quit the shell\n"
17315 " \n"
17316 msgstr ""
17317
17318 # type: verbatim
17319 #: ../fish/guestfish.pod:54
17320 #, no-wrap
17321 msgid ""
17322 " ><fs> add-ro disk.img\n"
17323 " ><fs> run\n"
17324 " ><fs> list-filesystems\n"
17325 " /dev/sda1: ext4\n"
17326 " /dev/vg_guest/lv_root: ext4\n"
17327 " /dev/vg_guest/lv_swap: swap\n"
17328 " ><fs> mount /dev/vg_guest/lv_root /\n"
17329 " ><fs> cat /etc/fstab\n"
17330 " # /etc/fstab\n"
17331 " # Created by anaconda\n"
17332 " [...]\n"
17333 " ><fs> exit\n"
17334 "\n"
17335 msgstr ""
17336
17337 # type: =head2
17338 #: ../fish/guestfish.pod:67
17339 msgid "From shell scripts"
17340 msgstr ""
17341
17342 # type: textblock
17343 #: ../fish/guestfish.pod:69
17344 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17345 msgstr ""
17346
17347 # type: verbatim
17348 #: ../fish/guestfish.pod:71
17349 #, no-wrap
17350 msgid ""
17351 " guestfish <<_EOF_\n"
17352 " add disk.img\n"
17353 " run\n"
17354 " mount /dev/vg_guest/lv_root /\n"
17355 " write /etc/motd \"Welcome, new users\"\n"
17356 " _EOF_\n"
17357 "\n"
17358 msgstr ""
17359
17360 # type: textblock
17361 #: ../fish/guestfish.pod:78
17362 msgid "List the LVM logical volumes in a disk image:"
17363 msgstr ""
17364
17365 # type: verbatim
17366 #: ../fish/guestfish.pod:80
17367 #, no-wrap
17368 msgid ""
17369 " guestfish -a disk.img --ro <<_EOF_\n"
17370 " run\n"
17371 " lvs\n"
17372 " _EOF_\n"
17373 "\n"
17374 msgstr ""
17375
17376 # type: textblock
17377 #: ../fish/guestfish.pod:85
17378 msgid "List all the filesystems in a disk image:"
17379 msgstr ""
17380
17381 # type: verbatim
17382 #: ../fish/guestfish.pod:87
17383 #, no-wrap
17384 msgid ""
17385 " guestfish -a disk.img --ro <<_EOF_\n"
17386 " run\n"
17387 " list-filesystems\n"
17388 " _EOF_\n"
17389 "\n"
17390 msgstr ""
17391
17392 # type: =head2
17393 #: ../fish/guestfish.pod:92
17394 msgid "On one command line"
17395 msgstr ""
17396
17397 # type: textblock
17398 #: ../fish/guestfish.pod:94
17399 msgid "Update C</etc/resolv.conf> in a guest:"
17400 msgstr ""
17401
17402 # type: verbatim
17403 #: ../fish/guestfish.pod:96
17404 #, no-wrap
17405 msgid ""
17406 " guestfish \\\n"
17407 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17408 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17409 "\n"
17410 msgstr ""
17411
17412 # type: textblock
17413 #: ../fish/guestfish.pod:100
17414 msgid "Edit C</boot/grub/grub.conf> interactively:"
17415 msgstr ""
17416
17417 # type: verbatim
17418 #: ../fish/guestfish.pod:102
17419 #, no-wrap
17420 msgid ""
17421 " guestfish --rw --add disk.img \\\n"
17422 "   --mount /dev/vg_guest/lv_root \\\n"
17423 "   --mount /dev/sda1:/boot \\\n"
17424 "   edit /boot/grub/grub.conf\n"
17425 "\n"
17426 msgstr ""
17427
17428 # type: =head2
17429 #: ../fish/guestfish.pod:107
17430 msgid "Mount disks automatically"
17431 msgstr ""
17432
17433 # type: textblock
17434 #: ../fish/guestfish.pod:109
17435 msgid ""
17436 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17437 msgstr ""
17438
17439 # type: verbatim
17440 #: ../fish/guestfish.pod:112
17441 #, no-wrap
17442 msgid ""
17443 " guestfish --ro -a disk.img -i cat /etc/group\n"
17444 "\n"
17445 msgstr ""
17446
17447 # type: verbatim
17448 #: ../fish/guestfish.pod:114
17449 #, no-wrap
17450 msgid ""
17451 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17452 "\n"
17453 msgstr ""
17454
17455 # type: textblock
17456 #: ../fish/guestfish.pod:116
17457 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17458 msgstr ""
17459
17460 # type: verbatim
17461 #: ../fish/guestfish.pod:118
17462 #, no-wrap
17463 msgid ""
17464 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17465 "\n"
17466 msgstr ""
17467
17468 # type: =head2
17469 #: ../fish/guestfish.pod:120
17470 msgid "As a script interpreter"
17471 msgstr ""
17472
17473 # type: textblock
17474 #: ../fish/guestfish.pod:122
17475 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17476 msgstr ""
17477
17478 # type: verbatim
17479 #: ../fish/guestfish.pod:124
17480 #, no-wrap
17481 msgid ""
17482 " #!/usr/bin/guestfish -f\n"
17483 " sparse test1.img 100M\n"
17484 " run\n"
17485 " part-disk /dev/sda mbr\n"
17486 " mkfs ext2 /dev/sda1\n"
17487 "\n"
17488 msgstr ""
17489
17490 # type: =head2
17491 #: ../fish/guestfish.pod:130
17492 msgid "Start with a prepared disk"
17493 msgstr ""
17494
17495 # type: textblock
17496 #: ../fish/guestfish.pod:132
17497 msgid ""
17498 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17499 "single ext2-formatted partition:"
17500 msgstr ""
17501
17502 # type: verbatim
17503 #: ../fish/guestfish.pod:135
17504 #, no-wrap
17505 msgid ""
17506 " guestfish -N fs\n"
17507 "\n"
17508 msgstr ""
17509
17510 # type: textblock
17511 #: ../fish/guestfish.pod:137
17512 msgid "To list what is available do:"
17513 msgstr ""
17514
17515 # type: verbatim
17516 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
17517 #, no-wrap
17518 msgid ""
17519 " guestfish -N help | less\n"
17520 "\n"
17521 msgstr ""
17522
17523 # type: =head2
17524 #: ../fish/guestfish.pod:141
17525 msgid "Remote control"
17526 msgstr ""
17527
17528 # type: verbatim
17529 #: ../fish/guestfish.pod:143
17530 #, no-wrap
17531 msgid ""
17532 " eval \"`guestfish --listen`\"\n"
17533 " guestfish --remote add-ro disk.img\n"
17534 " guestfish --remote run\n"
17535 " guestfish --remote lvs\n"
17536 "\n"
17537 msgstr ""
17538
17539 # type: =head1
17540 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17541 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17542 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
17543 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98
17544 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
17545 msgid "OPTIONS"
17546 msgstr ""
17547
17548 # type: =item
17549 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17550 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
17551 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
17552 #: ../tools/virt-tar.pl:106 ../tools/virt-make-fs.pl:161
17553 #: ../tools/virt-list-partitions.pl:62
17554 msgid "B<--help>"
17555 msgstr ""
17556
17557 # type: textblock
17558 #: ../fish/guestfish.pod:154
17559 msgid "Displays general help on options."
17560 msgstr ""
17561
17562 # type: =item
17563 #: ../fish/guestfish.pod:156
17564 msgid "B<-h>"
17565 msgstr ""
17566
17567 # type: =item
17568 #: ../fish/guestfish.pod:158
17569 msgid "B<--cmd-help>"
17570 msgstr ""
17571
17572 # type: textblock
17573 #: ../fish/guestfish.pod:160
17574 msgid "Lists all available guestfish commands."
17575 msgstr ""
17576
17577 # type: =item
17578 #: ../fish/guestfish.pod:162
17579 msgid "B<-h cmd>"
17580 msgstr ""
17581
17582 # type: =item
17583 #: ../fish/guestfish.pod:164
17584 msgid "B<--cmd-help cmd>"
17585 msgstr ""
17586
17587 # type: textblock
17588 #: ../fish/guestfish.pod:166
17589 msgid "Displays detailed help on a single command C<cmd>."
17590 msgstr ""
17591
17592 # type: =item
17593 #: ../fish/guestfish.pod:168
17594 msgid "B<-a image>"
17595 msgstr ""
17596
17597 # type: =item
17598 #: ../fish/guestfish.pod:170
17599 msgid "B<--add image>"
17600 msgstr ""
17601
17602 # type: textblock
17603 #: ../fish/guestfish.pod:172
17604 msgid "Add a block device or virtual machine image to the shell."
17605 msgstr ""
17606
17607 # type: textblock
17608 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
17609 msgid ""
17610 "The format of the disk image is auto-detected.  To override this and force a "
17611 "particular format use the I<--format=..> option."
17612 msgstr ""
17613
17614 # type: textblock
17615 #: ../fish/guestfish.pod:177
17616 msgid ""
17617 "Using this flag is mostly equivalent to using the C<add> command, with "
17618 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17619 "the I<--format:...> flag was given."
17620 msgstr ""
17621
17622 # type: =item
17623 #: ../fish/guestfish.pod:181
17624 msgid "B<-c URI>"
17625 msgstr ""
17626
17627 # type: =item
17628 #: ../fish/guestfish.pod:183
17629 msgid "B<--connect URI>"
17630 msgstr ""
17631
17632 # type: textblock
17633 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
17634 msgid ""
17635 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17636 "URI to use.  The default is to use the default libvirt connection."
17637 msgstr ""
17638
17639 # type: =item
17640 #: ../fish/guestfish.pod:189
17641 msgid "B<--csh>"
17642 msgstr ""
17643
17644 # type: textblock
17645 #: ../fish/guestfish.pod:191
17646 msgid ""
17647 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17648 "section L</REMOTE CONTROL AND CSH> below."
17649 msgstr ""
17650
17651 # type: =item
17652 #: ../fish/guestfish.pod:194
17653 msgid "B<-d libvirt-domain>"
17654 msgstr ""
17655
17656 # type: =item
17657 #: ../fish/guestfish.pod:196
17658 msgid "B<--domain libvirt-domain>"
17659 msgstr ""
17660
17661 # type: textblock
17662 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
17663 msgid ""
17664 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17665 "used, then any libvirt domain can be used.  However in write mode, only "
17666 "libvirt domains which are shut down can be named here."
17667 msgstr ""
17668
17669 # type: textblock
17670 #: ../fish/guestfish.pod:202
17671 msgid ""
17672 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17673 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17674 "if the I<--format:...> flag was given."
17675 msgstr ""
17676
17677 # type: =item
17678 #: ../fish/guestfish.pod:206
17679 msgid "B<-D>"
17680 msgstr ""
17681
17682 # type: =item
17683 #: ../fish/guestfish.pod:208
17684 msgid "B<--no-dest-paths>"
17685 msgstr ""
17686
17687 # type: textblock
17688 #: ../fish/guestfish.pod:210
17689 msgid ""
17690 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17691 "to hit the tab key to complete paths on the guest filesystem, but this "
17692 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17693 "allow this feature to be disabled."
17694 msgstr ""
17695
17696 # type: =item
17697 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
17698 msgid "B<--echo-keys>"
17699 msgstr ""
17700
17701 # type: textblock
17702 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
17703 msgid ""
17704 "When prompting for keys and passphrases, guestfish normally turns echoing "
17705 "off so you cannot see what you are typing.  If you are not worried about "
17706 "Tempest attacks and there is no one else in the room you can specify this "
17707 "flag to see what you are typing."
17708 msgstr ""
17709
17710 # type: =item
17711 #: ../fish/guestfish.pod:222
17712 msgid "B<-f file>"
17713 msgstr ""
17714
17715 # type: =item
17716 #: ../fish/guestfish.pod:224
17717 msgid "B<--file file>"
17718 msgstr ""
17719
17720 # type: textblock
17721 #: ../fish/guestfish.pod:226
17722 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17723 msgstr ""
17724
17725 # type: verbatim
17726 #: ../fish/guestfish.pod:229
17727 #, no-wrap
17728 msgid ""
17729 " #!/usr/bin/guestfish -f\n"
17730 "\n"
17731 msgstr ""
17732
17733 # type: =item
17734 #: ../fish/guestfish.pod:231
17735 msgid "B<--format=raw|qcow2|..>"
17736 msgstr ""
17737
17738 # type: =item
17739 #: ../fish/guestfish.pod:233
17740 msgid "B<--format>"
17741 msgstr ""
17742
17743 # type: textblock
17744 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
17745 msgid ""
17746 "The default for the I<-a> option is to auto-detect the format of the disk "
17747 "image.  Using this forces the disk format for I<-a> options which follow on "
17748 "the command line.  Using I<--format> with no argument switches back to auto-"
17749 "detection for subsequent I<-a> options."
17750 msgstr ""
17751
17752 # type: textblock
17753 #: ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
17754 msgid "For example:"
17755 msgstr ""
17756
17757 # type: verbatim
17758 #: ../fish/guestfish.pod:242
17759 #, no-wrap
17760 msgid ""
17761 " guestfish --format=raw -a disk.img\n"
17762 "\n"
17763 msgstr ""
17764
17765 # type: textblock
17766 #: ../fish/guestfish.pod:244
17767 msgid "forces raw format (no auto-detection) for C<disk.img>."
17768 msgstr ""
17769
17770 # type: verbatim
17771 #: ../fish/guestfish.pod:246
17772 #, no-wrap
17773 msgid ""
17774 " guestfish --format=raw -a disk.img --format -a another.img\n"
17775 "\n"
17776 msgstr ""
17777
17778 # type: textblock
17779 #: ../fish/guestfish.pod:248
17780 msgid ""
17781 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17782 "detection for C<another.img>."
17783 msgstr ""
17784
17785 # type: textblock
17786 #: ../fish/guestfish.pod:251
17787 msgid ""
17788 "If you have untrusted raw-format guest disk images, you should use this "
17789 "option to specify the disk format.  This avoids a possible security problem "
17790 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17791 msgstr ""
17792
17793 # type: =item
17794 #: ../fish/guestfish.pod:256
17795 msgid "B<-i>"
17796 msgstr ""
17797
17798 # type: =item
17799 #: ../fish/guestfish.pod:258
17800 msgid "B<--inspector>"
17801 msgstr ""
17802
17803 # type: textblock
17804 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
17805 msgid ""
17806 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17807 "system and mount filesystems as they would be mounted on the real virtual "
17808 "machine."
17809 msgstr ""
17810
17811 # type: textblock
17812 #: ../fish/guestfish.pod:264
17813 msgid "Typical usage is either:"
17814 msgstr ""
17815
17816 # type: verbatim
17817 #: ../fish/guestfish.pod:266
17818 #, no-wrap
17819 msgid ""
17820 " guestfish -d myguest -i\n"
17821 "\n"
17822 msgstr ""
17823
17824 # type: textblock
17825 #: ../fish/guestfish.pod:268
17826 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17827 msgstr ""
17828
17829 # type: verbatim
17830 #: ../fish/guestfish.pod:270
17831 #, no-wrap
17832 msgid ""
17833 " guestfish --ro -d myguest -i\n"
17834 "\n"
17835 msgstr ""
17836
17837 # type: textblock
17838 #: ../fish/guestfish.pod:272
17839 msgid "(for active domains, readonly), or specify the block device directly:"
17840 msgstr ""
17841
17842 # type: verbatim
17843 #: ../fish/guestfish.pod:274
17844 #, no-wrap
17845 msgid ""
17846 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17847 "\n"
17848 msgstr ""
17849
17850 # type: textblock
17851 #: ../fish/guestfish.pod:276
17852 msgid ""
17853 "Note that the command line syntax changed slightly over older versions of "
17854 "guestfish.  You can still use the old syntax:"
17855 msgstr ""
17856
17857 # type: verbatim
17858 #: ../fish/guestfish.pod:279
17859 #, no-wrap
17860 msgid ""
17861 " guestfish [--ro] -i disk.img\n"
17862 "\n"
17863 msgstr ""
17864
17865 # type: verbatim
17866 #: ../fish/guestfish.pod:281
17867 #, no-wrap
17868 msgid ""
17869 " guestfish [--ro] -i libvirt-domain\n"
17870 "\n"
17871 msgstr ""
17872
17873 # type: textblock
17874 #: ../fish/guestfish.pod:283
17875 msgid ""
17876 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17877 "then using other commands to mount the filesystems that were found."
17878 msgstr ""
17879
17880 # type: =item
17881 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
17882 msgid "B<--keys-from-stdin>"
17883 msgstr ""
17884
17885 # type: textblock
17886 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
17887 msgid ""
17888 "Read key or passphrase parameters from stdin.  The default is to try to read "
17889 "passphrases from the user by opening C</dev/tty>."
17890 msgstr ""
17891
17892 # type: =item
17893 #: ../fish/guestfish.pod:292
17894 msgid "B<--listen>"
17895 msgstr ""
17896
17897 # type: textblock
17898 #: ../fish/guestfish.pod:294
17899 msgid ""
17900 "Fork into the background and listen for remote commands.  See section L</"
17901 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17902 msgstr ""
17903
17904 # type: =item
17905 #: ../fish/guestfish.pod:297
17906 msgid "B<-m dev[:mountpoint]>"
17907 msgstr ""
17908
17909 # type: =item
17910 #: ../fish/guestfish.pod:299
17911 msgid "B<--mount dev[:mountpoint]>"
17912 msgstr ""
17913
17914 # type: textblock
17915 #: ../fish/guestfish.pod:301
17916 msgid "Mount the named partition or logical volume on the given mountpoint."
17917 msgstr ""
17918
17919 # type: textblock
17920 #: ../fish/guestfish.pod:303
17921 msgid "If the mountpoint is omitted, it defaults to C</>."
17922 msgstr ""
17923
17924 # type: textblock
17925 #: ../fish/guestfish.pod:305
17926 msgid "You have to mount something on C</> before most commands will work."
17927 msgstr ""
17928
17929 # type: textblock
17930 #: ../fish/guestfish.pod:307
17931 msgid ""
17932 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17933 "launched."
17934 msgstr ""
17935
17936 # type: textblock
17937 #: ../fish/guestfish.pod:310
17938 msgid ""
17939 "If you don't know what filesystems a disk image contains, you can either run "
17940 "guestfish without this option, then list the partitions, filesystems and LVs "
17941 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17942 "commands), or you can use the L<virt-filesystems(1)> program."
17943 msgstr ""
17944
17945 # type: textblock
17946 #: ../fish/guestfish.pod:316
17947 msgid ""
17948 "Using this flag is mostly equivalent to using the C<mount-options> command "
17949 "or the C<mount-ro> command if the I<--ro> flag was given."
17950 msgstr ""
17951
17952 # type: =item
17953 #: ../fish/guestfish.pod:319
17954 msgid "B<-n>"
17955 msgstr ""
17956
17957 # type: =item
17958 #: ../fish/guestfish.pod:321
17959 msgid "B<--no-sync>"
17960 msgstr ""
17961
17962 # type: textblock
17963 #: ../fish/guestfish.pod:323
17964 msgid ""
17965 "Disable autosync.  This is enabled by default.  See the discussion of "
17966 "autosync in the L<guestfs(3)> manpage."
17967 msgstr ""
17968
17969 # type: =item
17970 #: ../fish/guestfish.pod:326
17971 msgid "B<-N type>"
17972 msgstr ""
17973
17974 # type: =item
17975 #: ../fish/guestfish.pod:328
17976 msgid "B<--new type>"
17977 msgstr ""
17978
17979 # type: =item
17980 #: ../fish/guestfish.pod:330
17981 msgid "B<-N help>"
17982 msgstr ""
17983
17984 # type: textblock
17985 #: ../fish/guestfish.pod:332
17986 msgid ""
17987 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17988 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17989 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17990 "IMAGES> below."
17991 msgstr ""
17992
17993 # type: =item
17994 #: ../fish/guestfish.pod:337
17995 msgid "B<--progress-bars>"
17996 msgstr ""
17997
17998 # type: textblock
17999 #: ../fish/guestfish.pod:339
18000 msgid "Enable progress bars, even when guestfish is used non-interactively."
18001 msgstr ""
18002
18003 # type: textblock
18004 #: ../fish/guestfish.pod:341
18005 msgid ""
18006 "Progress bars are enabled by default when guestfish is used as an "
18007 "interactive shell."
18008 msgstr ""
18009
18010 # type: =item
18011 #: ../fish/guestfish.pod:344
18012 msgid "B<--no-progress-bars>"
18013 msgstr ""
18014
18015 # type: textblock
18016 #: ../fish/guestfish.pod:346
18017 msgid "Disable progress bars."
18018 msgstr ""
18019
18020 # type: =item
18021 #: ../fish/guestfish.pod:348
18022 msgid "B<--remote[=pid]>"
18023 msgstr ""
18024
18025 # type: textblock
18026 #: ../fish/guestfish.pod:350
18027 msgid ""
18028 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18029 "CONTROL GUESTFISH OVER A SOCKET> below."
18030 msgstr ""
18031
18032 # type: =item
18033 #: ../fish/guestfish.pod:353
18034 msgid "B<-r>"
18035 msgstr ""
18036
18037 # type: =item
18038 #: ../fish/guestfish.pod:355
18039 msgid "B<--ro>"
18040 msgstr ""
18041
18042 # type: textblock
18043 #: ../fish/guestfish.pod:357
18044 msgid ""
18045 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18046 "mounts are done read-only."
18047 msgstr ""
18048
18049 # type: textblock
18050 #: ../fish/guestfish.pod:360
18051 msgid ""
18052 "The option must always be used if the disk image or virtual machine might be "
18053 "running, and is generally recommended in cases where you don't need write "
18054 "access to the disk."
18055 msgstr ""
18056
18057 # type: textblock
18058 #: ../fish/guestfish.pod:364
18059 msgid ""
18060 "Note that prepared disk images created with I<-N> are not affected by this "
18061 "option.  Also commands like C<add> are not affected - you have to specify "
18062 "the C<readonly:true> option explicitly if you need it."
18063 msgstr ""
18064
18065 # type: textblock
18066 #: ../fish/guestfish.pod:368
18067 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18068 msgstr ""
18069
18070 # type: =item
18071 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
18072 msgid "B<--selinux>"
18073 msgstr ""
18074
18075 # type: textblock
18076 #: ../fish/guestfish.pod:372
18077 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18078 msgstr ""
18079
18080 # type: =item
18081 #: ../fish/guestfish.pod:374
18082 msgid "B<-v>"
18083 msgstr ""
18084
18085 # type: =item
18086 #: ../fish/guestfish.pod:376
18087 msgid "B<--verbose>"
18088 msgstr ""
18089
18090 # type: textblock
18091 #: ../fish/guestfish.pod:378
18092 msgid ""
18093 "Enable very verbose messages.  This is particularly useful if you find a bug."
18094 msgstr ""
18095
18096 # type: =item
18097 #: ../fish/guestfish.pod:381
18098 msgid "B<-V>"
18099 msgstr ""
18100
18101 # type: =item
18102 #: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88
18103 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
18104 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:114
18105 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
18106 msgid "B<--version>"
18107 msgstr ""
18108
18109 # type: textblock
18110 #: ../fish/guestfish.pod:385
18111 msgid "Display the guestfish / libguestfs version number and exit."
18112 msgstr ""
18113
18114 # type: =item
18115 #: ../fish/guestfish.pod:387
18116 msgid "B<-w>"
18117 msgstr ""
18118
18119 # type: =item
18120 #: ../fish/guestfish.pod:389
18121 msgid "B<--rw>"
18122 msgstr ""
18123
18124 # type: textblock
18125 #: ../fish/guestfish.pod:391
18126 msgid ""
18127 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
18128 "WRITE> below."
18129 msgstr ""
18130
18131 # type: =item
18132 #: ../fish/guestfish.pod:394
18133 msgid "B<-x>"
18134 msgstr ""
18135
18136 # type: textblock
18137 #: ../fish/guestfish.pod:396
18138 msgid "Echo each command before executing it."
18139 msgstr ""
18140
18141 # type: =head1
18142 #: ../fish/guestfish.pod:400
18143 msgid "COMMANDS ON COMMAND LINE"
18144 msgstr ""
18145
18146 # type: textblock
18147 #: ../fish/guestfish.pod:402
18148 msgid ""
18149 "Any additional (non-option) arguments are treated as commands to execute."
18150 msgstr ""
18151
18152 # type: textblock
18153 #: ../fish/guestfish.pod:405
18154 msgid ""
18155 "Commands to execute should be separated by a colon (C<:>), where the colon "
18156 "is a separate parameter.  Thus:"
18157 msgstr ""
18158
18159 # type: verbatim
18160 #: ../fish/guestfish.pod:408
18161 #, no-wrap
18162 msgid ""
18163 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18164 "\n"
18165 msgstr ""
18166
18167 # type: textblock
18168 #: ../fish/guestfish.pod:410
18169 msgid ""
18170 "If there are no additional arguments, then we enter a shell, either an "
18171 "interactive shell with a prompt (if the input is a terminal) or a non-"
18172 "interactive shell."
18173 msgstr ""
18174
18175 # type: textblock
18176 #: ../fish/guestfish.pod:414
18177 msgid ""
18178 "In either command line mode or non-interactive shell, the first command that "
18179 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18180 "prompt) if a command fails, you can continue to enter commands."
18181 msgstr ""
18182
18183 # type: =head1
18184 #: ../fish/guestfish.pod:419
18185 msgid "USING launch (OR run)"
18186 msgstr ""
18187
18188 # type: textblock
18189 #: ../fish/guestfish.pod:421
18190 msgid ""
18191 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18192 "then launch it, then mount any disks you need, and finally issue actions/"
18193 "commands.  So the general order of the day is:"
18194 msgstr ""
18195
18196 # type: textblock
18197 #: ../fish/guestfish.pod:429
18198 msgid "add or -a/--add"
18199 msgstr ""
18200
18201 # type: textblock
18202 #: ../fish/guestfish.pod:433
18203 msgid "launch (aka run)"
18204 msgstr ""
18205
18206 # type: textblock
18207 #: ../fish/guestfish.pod:437
18208 msgid "mount or -m/--mount"
18209 msgstr ""
18210
18211 # type: textblock
18212 #: ../fish/guestfish.pod:441
18213 msgid "any other commands"
18214 msgstr ""
18215
18216 # type: textblock
18217 #: ../fish/guestfish.pod:445
18218 msgid ""
18219 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18220 "guest before mounting or performing any other commands."
18221 msgstr ""
18222
18223 # type: textblock
18224 #: ../fish/guestfish.pod:448
18225 msgid ""
18226 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18227 "I<--new> options were given then C<run> is done automatically, simply "
18228 "because guestfish can't perform the action you asked for without doing this."
18229 msgstr ""
18230
18231 # type: =head1
18232 #: ../fish/guestfish.pod:453
18233 msgid "OPENING DISKS FOR READ AND WRITE"
18234 msgstr ""
18235
18236 # type: textblock
18237 #: ../fish/guestfish.pod:455
18238 msgid ""
18239 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
18240 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
18241 "open disk images read-only or for writing."
18242 msgstr ""
18243
18244 # type: textblock
18245 #: ../fish/guestfish.pod:459
18246 msgid ""
18247 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
18248 "disk images supplied on the command line for write.  To open a disk image "
18249 "read-only you have to do I<-a image --ro>."
18250 msgstr ""
18251
18252 # type: textblock
18253 #: ../fish/guestfish.pod:463
18254 msgid ""
18255 "This matters: If you accidentally open a live VM disk image writable then "
18256 "you will cause irreversible disk corruption."
18257 msgstr ""
18258
18259 # type: textblock
18260 #: ../fish/guestfish.pod:466
18261 msgid ""
18262 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
18263 "images will be opened read-only.  You will have to either specify "
18264 "I<guestfish --rw> or change a configuration file in order to get write "
18265 "access for disk images specified by those other command line options."
18266 msgstr ""
18267
18268 # type: textblock
18269 #: ../fish/guestfish.pod:471
18270 msgid ""
18271 "This version of guestfish has a I<--rw> option which does nothing (it is "
18272 "already the default).  However it is highly recommended that you use this "
18273 "option to indicate that guestfish needs write access, and to prepare your "
18274 "scripts for the day when this option will be required for write access."
18275 msgstr ""
18276
18277 # type: textblock
18278 #: ../fish/guestfish.pod:477
18279 msgid ""
18280 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18281 "other libguestfs program apart from guestfish and guestmount."
18282 msgstr ""
18283
18284 # type: =head1
18285 #: ../fish/guestfish.pod:480
18286 msgid "QUOTING"
18287 msgstr ""
18288
18289 # type: textblock
18290 #: ../fish/guestfish.pod:482
18291 msgid ""
18292 "You can quote ordinary parameters using either single or double quotes.  For "
18293 "example:"
18294 msgstr ""
18295
18296 # type: verbatim
18297 #: ../fish/guestfish.pod:485
18298 #, no-wrap
18299 msgid ""
18300 " add \"file with a space.img\"\n"
18301 "\n"
18302 msgstr ""
18303
18304 # type: verbatim
18305 #: ../fish/guestfish.pod:487
18306 #, no-wrap
18307 msgid ""
18308 " rm '/file name'\n"
18309 "\n"
18310 msgstr ""
18311
18312 # type: verbatim
18313 #: ../fish/guestfish.pod:489
18314 #, no-wrap
18315 msgid ""
18316 " rm '/\"'\n"
18317 "\n"
18318 msgstr ""
18319
18320 # type: textblock
18321 #: ../fish/guestfish.pod:491
18322 msgid ""
18323 "A few commands require a list of strings to be passed.  For these, use a "
18324 "whitespace-separated list, enclosed in quotes.  Strings containing "
18325 "whitespace to be passed through must be enclosed in single quotes.  A "
18326 "literal single quote must be escaped with a backslash."
18327 msgstr ""
18328
18329 # type: verbatim
18330 #: ../fish/guestfish.pod:496
18331 #, no-wrap
18332 msgid ""
18333 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18334 " command \"/bin/echo 'foo      bar'\"\n"
18335 " command \"/bin/echo \\'foo\\'\"\n"
18336 "\n"
18337 msgstr ""
18338
18339 # type: =head1
18340 #: ../fish/guestfish.pod:500
18341 msgid "OPTIONAL ARGUMENTS"
18342 msgstr ""
18343
18344 # type: textblock
18345 #: ../fish/guestfish.pod:502
18346 msgid ""
18347 "Some commands take optional arguments.  These arguments appear in this "
18348 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18349 msgstr ""
18350
18351 # type: verbatim
18352 #: ../fish/guestfish.pod:506
18353 #, no-wrap
18354 msgid ""
18355 " add-drive-opts filename\n"
18356 "\n"
18357 msgstr ""
18358
18359 # type: verbatim
18360 #: ../fish/guestfish.pod:508
18361 #, no-wrap
18362 msgid ""
18363 " add-drive-opts filename readonly:true\n"
18364 "\n"
18365 msgstr ""
18366
18367 # type: verbatim
18368 #: ../fish/guestfish.pod:510
18369 #, no-wrap
18370 msgid ""
18371 " add-drive-opts filename format:qcow2 readonly:false\n"
18372 "\n"
18373 msgstr ""
18374
18375 # type: textblock
18376 #: ../fish/guestfish.pod:512
18377 msgid ""
18378 "Each optional argument can appear at most once.  All optional arguments must "
18379 "appear after the required ones."
18380 msgstr ""
18381
18382 # type: =head1
18383 #: ../fish/guestfish.pod:515
18384 msgid "NUMBERS"
18385 msgstr ""
18386
18387 # type: textblock
18388 #: ../fish/guestfish.pod:517
18389 msgid ""
18390 "This section applies to all commands which can take integers as parameters."
18391 msgstr ""
18392
18393 # type: =head2
18394 #: ../fish/guestfish.pod:520
18395 msgid "SIZE SUFFIX"
18396 msgstr ""
18397
18398 # type: textblock
18399 #: ../fish/guestfish.pod:522
18400 msgid ""
18401 "When the command takes a parameter measured in bytes, you can use one of the "
18402 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18403 msgstr ""
18404
18405 # type: =item
18406 #: ../fish/guestfish.pod:528
18407 msgid "B<k> or B<K> or B<KiB>"
18408 msgstr ""
18409
18410 # type: textblock
18411 #: ../fish/guestfish.pod:530
18412 msgid "The size in kilobytes (multiplied by 1024)."
18413 msgstr ""
18414
18415 # type: =item
18416 #: ../fish/guestfish.pod:532
18417 msgid "B<KB>"
18418 msgstr ""
18419
18420 # type: textblock
18421 #: ../fish/guestfish.pod:534
18422 msgid "The size in SI 1000 byte units."
18423 msgstr ""
18424
18425 # type: =item
18426 #: ../fish/guestfish.pod:536
18427 msgid "B<M> or B<MiB>"
18428 msgstr ""
18429
18430 # type: textblock
18431 #: ../fish/guestfish.pod:538
18432 msgid "The size in megabytes (multiplied by 1048576)."
18433 msgstr ""
18434
18435 # type: =item
18436 #: ../fish/guestfish.pod:540
18437 msgid "B<MB>"
18438 msgstr ""
18439
18440 # type: textblock
18441 #: ../fish/guestfish.pod:542
18442 msgid "The size in SI 1000000 byte units."
18443 msgstr ""
18444
18445 # type: =item
18446 #: ../fish/guestfish.pod:544
18447 msgid "B<G> or B<GiB>"
18448 msgstr ""
18449
18450 # type: textblock
18451 #: ../fish/guestfish.pod:546
18452 msgid "The size in gigabytes (multiplied by 2**30)."
18453 msgstr ""
18454
18455 # type: =item
18456 #: ../fish/guestfish.pod:548
18457 msgid "B<GB>"
18458 msgstr ""
18459
18460 # type: textblock
18461 #: ../fish/guestfish.pod:550
18462 msgid "The size in SI 10**9 byte units."
18463 msgstr ""
18464
18465 # type: =item
18466 #: ../fish/guestfish.pod:552
18467 msgid "B<T> or B<TiB>"
18468 msgstr ""
18469
18470 # type: textblock
18471 #: ../fish/guestfish.pod:554
18472 msgid "The size in terabytes (multiplied by 2**40)."
18473 msgstr ""
18474
18475 # type: =item
18476 #: ../fish/guestfish.pod:556
18477 msgid "B<TB>"
18478 msgstr ""
18479
18480 # type: textblock
18481 #: ../fish/guestfish.pod:558
18482 msgid "The size in SI 10**12 byte units."
18483 msgstr ""
18484
18485 # type: =item
18486 #: ../fish/guestfish.pod:560
18487 msgid "B<P> or B<PiB>"
18488 msgstr ""
18489
18490 # type: textblock
18491 #: ../fish/guestfish.pod:562
18492 msgid "The size in petabytes (multiplied by 2**50)."
18493 msgstr ""
18494
18495 # type: =item
18496 #: ../fish/guestfish.pod:564
18497 msgid "B<PB>"
18498 msgstr ""
18499
18500 # type: textblock
18501 #: ../fish/guestfish.pod:566
18502 msgid "The size in SI 10**15 byte units."
18503 msgstr ""
18504
18505 # type: =item
18506 #: ../fish/guestfish.pod:568
18507 msgid "B<E> or B<EiB>"
18508 msgstr ""
18509
18510 # type: textblock
18511 #: ../fish/guestfish.pod:570
18512 msgid "The size in exabytes (multiplied by 2**60)."
18513 msgstr ""
18514
18515 # type: =item
18516 #: ../fish/guestfish.pod:572
18517 msgid "B<EB>"
18518 msgstr ""
18519
18520 # type: textblock
18521 #: ../fish/guestfish.pod:574
18522 msgid "The size in SI 10**18 byte units."
18523 msgstr ""
18524
18525 # type: =item
18526 #: ../fish/guestfish.pod:576
18527 msgid "B<Z> or B<ZiB>"
18528 msgstr ""
18529
18530 # type: textblock
18531 #: ../fish/guestfish.pod:578
18532 msgid "The size in zettabytes (multiplied by 2**70)."
18533 msgstr ""
18534
18535 # type: =item
18536 #: ../fish/guestfish.pod:580
18537 msgid "B<ZB>"
18538 msgstr ""
18539
18540 # type: textblock
18541 #: ../fish/guestfish.pod:582
18542 msgid "The size in SI 10**21 byte units."
18543 msgstr ""
18544
18545 # type: =item
18546 #: ../fish/guestfish.pod:584
18547 msgid "B<Y> or B<YiB>"
18548 msgstr ""
18549
18550 # type: textblock
18551 #: ../fish/guestfish.pod:586
18552 msgid "The size in yottabytes (multiplied by 2**80)."
18553 msgstr ""
18554
18555 # type: =item
18556 #: ../fish/guestfish.pod:588
18557 msgid "B<YB>"
18558 msgstr ""
18559
18560 # type: textblock
18561 #: ../fish/guestfish.pod:590
18562 msgid "The size in SI 10**24 byte units."
18563 msgstr ""
18564
18565 # type: verbatim
18566 #: ../fish/guestfish.pod:596
18567 #, no-wrap
18568 msgid ""
18569 " truncate-size /file 1G\n"
18570 "\n"
18571 msgstr ""
18572
18573 # type: textblock
18574 #: ../fish/guestfish.pod:598
18575 msgid "would truncate the file to 1 gigabyte."
18576 msgstr ""
18577
18578 # type: textblock
18579 #: ../fish/guestfish.pod:600
18580 msgid ""
18581 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18582 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18583 "suffix will probably not do what you expect."
18584 msgstr ""
18585
18586 # type: =head2
18587 #: ../fish/guestfish.pod:604
18588 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18589 msgstr ""
18590
18591 # type: textblock
18592 #: ../fish/guestfish.pod:606
18593 msgid ""
18594 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18595 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18596 msgstr ""
18597
18598 # type: verbatim
18599 #: ../fish/guestfish.pod:609
18600 #, no-wrap
18601 msgid ""
18602 " 1234      decimal number 1234\n"
18603 " 02322     octal number, equivalent to decimal 1234\n"
18604 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18605 "\n"
18606 msgstr ""
18607
18608 # type: textblock
18609 #: ../fish/guestfish.pod:613
18610 msgid ""
18611 "When using the C<chmod> command, you almost always want to specify an octal "
18612 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18613 "L<chmod(1)> program):"
18614 msgstr ""
18615
18616 # type: verbatim
18617 #: ../fish/guestfish.pod:617
18618 #, no-wrap
18619 msgid ""
18620 " chmod 0777 /public  # OK\n"
18621 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18622 "\n"
18623 msgstr ""
18624
18625 # type: textblock
18626 #: ../fish/guestfish.pod:620
18627 msgid ""
18628 "Commands that return numbers usually print them in decimal, but some "
18629 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18630 "octal, preceeded by C<0>)."
18631 msgstr ""
18632
18633 # type: =head1
18634 #: ../fish/guestfish.pod:624
18635 msgid "WILDCARDS AND GLOBBING"
18636 msgstr ""
18637
18638 # type: textblock
18639 #: ../fish/guestfish.pod:626
18640 msgid ""
18641 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18642 "(globbing) by default.  So for example the following will not do what you "
18643 "expect:"
18644 msgstr ""
18645
18646 # type: verbatim
18647 #: ../fish/guestfish.pod:630
18648 #, no-wrap
18649 msgid ""
18650 " rm-rf /home/*\n"
18651 "\n"
18652 msgstr ""
18653
18654 # type: textblock
18655 #: ../fish/guestfish.pod:632
18656 msgid ""
18657 "Assuming you don't have a directory called literally C</home/*> then the "
18658 "above command will return an error."
18659 msgstr ""
18660
18661 # type: textblock
18662 #: ../fish/guestfish.pod:635
18663 msgid "To perform wildcard expansion, use the C<glob> command."
18664 msgstr ""
18665
18666 # type: verbatim
18667 #: ../fish/guestfish.pod:637
18668 #, no-wrap
18669 msgid ""
18670 " glob rm-rf /home/*\n"
18671 "\n"
18672 msgstr ""
18673
18674 # type: textblock
18675 #: ../fish/guestfish.pod:639
18676 msgid ""
18677 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18678 "many times), equivalent to:"
18679 msgstr ""
18680
18681 # type: verbatim
18682 #: ../fish/guestfish.pod:642
18683 #, no-wrap
18684 msgid ""
18685 " rm-rf /home/jim\n"
18686 " rm-rf /home/joe\n"
18687 " rm-rf /home/mary\n"
18688 "\n"
18689 msgstr ""
18690
18691 # type: textblock
18692 #: ../fish/guestfish.pod:646
18693 msgid "C<glob> only works on simple guest paths and not on device names."
18694 msgstr ""
18695
18696 # type: textblock
18697 #: ../fish/guestfish.pod:648
18698 msgid ""
18699 "If you have several parameters, each containing a wildcard, then glob will "
18700 "perform a Cartesian product."
18701 msgstr ""
18702
18703 # type: =head1
18704 #: ../fish/guestfish.pod:651
18705 msgid "COMMENTS"
18706 msgstr ""
18707
18708 # type: textblock
18709 #: ../fish/guestfish.pod:653
18710 msgid ""
18711 "Any line which starts with a I<#> character is treated as a comment and "
18712 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18713 "a command.  For example:"
18714 msgstr ""
18715
18716 # type: verbatim
18717 #: ../fish/guestfish.pod:657
18718 #, no-wrap
18719 msgid ""
18720 " # this is a comment\n"
18721 "         # this is a comment\n"
18722 " foo # NOT a comment\n"
18723 "\n"
18724 msgstr ""
18725
18726 # type: textblock
18727 #: ../fish/guestfish.pod:661
18728 msgid "Blank lines are also ignored."
18729 msgstr ""
18730
18731 # type: =head1
18732 #: ../fish/guestfish.pod:663
18733 msgid "RUNNING COMMANDS LOCALLY"
18734 msgstr ""
18735
18736 # type: textblock
18737 #: ../fish/guestfish.pod:665
18738 msgid ""
18739 "Any line which starts with a I<!> character is treated as a command sent to "
18740 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18741 msgstr ""
18742
18743 # type: verbatim
18744 #: ../fish/guestfish.pod:669
18745 #, no-wrap
18746 msgid ""
18747 " !mkdir local\n"
18748 " tgz-out /remote local/remote-data.tar.gz\n"
18749 "\n"
18750 msgstr ""
18751
18752 # type: textblock
18753 #: ../fish/guestfish.pod:672
18754 msgid ""
18755 "will create a directory C<local> on the host, and then export the contents "
18756 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18757 "(See C<tgz-out>)."
18758 msgstr ""
18759
18760 # type: textblock
18761 #: ../fish/guestfish.pod:676
18762 msgid ""
18763 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18764 "effect, due to the way that subprocesses work in Unix."
18765 msgstr ""
18766
18767 # type: =head1
18768 #: ../fish/guestfish.pod:679
18769 msgid "PIPES"
18770 msgstr ""
18771
18772 # type: textblock
18773 #: ../fish/guestfish.pod:681
18774 msgid ""
18775 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18776 "command (a guestfish command) to the second command (any host command).  For "
18777 "example:"
18778 msgstr ""
18779
18780 # type: verbatim
18781 #: ../fish/guestfish.pod:685
18782 #, no-wrap
18783 msgid ""
18784 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18785 "\n"
18786 msgstr ""
18787
18788 # type: textblock
18789 #: ../fish/guestfish.pod:687
18790 msgid ""
18791 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18792 "program).  The above command would list all accounts in the guest filesystem "
18793 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18794 msgstr ""
18795
18796 # type: verbatim
18797 #: ../fish/guestfish.pod:692
18798 #, no-wrap
18799 msgid ""
18800 " hexdump /bin/ls | head\n"
18801 " list-devices | tail -1\n"
18802 " tgz-out / - | tar ztf -\n"
18803 "\n"
18804 msgstr ""
18805
18806 # type: textblock
18807 #: ../fish/guestfish.pod:696
18808 msgid ""
18809 "The space before the pipe symbol is required, any space after the pipe "
18810 "symbol is optional.  Everything after the pipe symbol is just passed "
18811 "straight to the host shell, so it can contain redirections, globs and "
18812 "anything else that makes sense on the host side."
18813 msgstr ""
18814
18815 # type: textblock
18816 #: ../fish/guestfish.pod:701
18817 msgid ""
18818 "To use a literal argument which begins with a pipe symbol, you have to quote "
18819 "it, eg:"
18820 msgstr ""
18821
18822 # type: verbatim
18823 #: ../fish/guestfish.pod:704
18824 #, no-wrap
18825 msgid ""
18826 " echo \"|\"\n"
18827 "\n"
18828 msgstr ""
18829
18830 # type: =head1
18831 #: ../fish/guestfish.pod:706
18832 msgid "HOME DIRECTORIES"
18833 msgstr ""
18834
18835 # type: textblock
18836 #: ../fish/guestfish.pod:708
18837 msgid ""
18838 "If a parameter starts with the character C<~> then the tilde may be expanded "
18839 "as a home directory path (either C<~> for the current user's home directory, "
18840 "or C<~user> for another user)."
18841 msgstr ""
18842
18843 # type: textblock
18844 #: ../fish/guestfish.pod:712
18845 msgid ""
18846 "Note that home directory expansion happens for users known I<on the host>, "
18847 "not in the guest filesystem."
18848 msgstr ""
18849
18850 # type: textblock
18851 #: ../fish/guestfish.pod:715
18852 msgid ""
18853 "To use a literal argument which begins with a tilde, you have to quote it, "
18854 "eg:"
18855 msgstr ""
18856
18857 # type: verbatim
18858 #: ../fish/guestfish.pod:718
18859 #, no-wrap
18860 msgid ""
18861 " echo \"~\"\n"
18862 "\n"
18863 msgstr ""
18864
18865 # type: textblock
18866 #: ../fish/guestfish.pod:722
18867 msgid ""
18868 "Libguestfs has some support for Linux guests encrypted according to the "
18869 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18870 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18871 "LUKS is supported."
18872 msgstr ""
18873
18874 # type: textblock
18875 #: ../fish/guestfish.pod:727
18876 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18877 msgstr ""
18878
18879 # type: verbatim
18880 #: ../fish/guestfish.pod:729
18881 #, no-wrap
18882 msgid ""
18883 " ><fs> vfs-type /dev/sda2\n"
18884 " crypto_LUKS\n"
18885 "\n"
18886 msgstr ""
18887
18888 # type: textblock
18889 #: ../fish/guestfish.pod:732
18890 msgid ""
18891 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18892 "device called C</dev/mapper/luksdev>."
18893 msgstr ""
18894
18895 # type: verbatim
18896 #: ../fish/guestfish.pod:735
18897 #, no-wrap
18898 msgid ""
18899 " ><fs> luks-open /dev/sda2 luksdev\n"
18900 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18901 "\n"
18902 msgstr ""
18903
18904 # type: textblock
18905 #: ../fish/guestfish.pod:738
18906 msgid ""
18907 "Finally you have to tell LVM to scan for volume groups on the newly created "
18908 "mapper device:"
18909 msgstr ""
18910
18911 # type: verbatim
18912 #: ../fish/guestfish.pod:741
18913 #, no-wrap
18914 msgid ""
18915 " vgscan\n"
18916 " vg-activate-all true\n"
18917 "\n"
18918 msgstr ""
18919
18920 # type: textblock
18921 #: ../fish/guestfish.pod:744
18922 msgid "The logical volume(s) can now be mounted in the usual way."
18923 msgstr ""
18924
18925 # type: textblock
18926 #: ../fish/guestfish.pod:746
18927 msgid ""
18928 "Before closing a LUKS device you must unmount any logical volumes on it and "
18929 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18930 "one.  Then you can close the mapper device:"
18931 msgstr ""
18932
18933 # type: verbatim
18934 #: ../fish/guestfish.pod:750
18935 #, no-wrap
18936 msgid ""
18937 " vg-activate false /dev/VG\n"
18938 " luks-close /dev/mapper/luksdev\n"
18939 "\n"
18940 msgstr ""
18941
18942 # type: =head1
18943 #: ../fish/guestfish.pod:753
18944 msgid "WINDOWS PATHS"
18945 msgstr ""
18946
18947 # type: textblock
18948 #: ../fish/guestfish.pod:755
18949 msgid ""
18950 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18951 "(with some limitations).  The following commands are equivalent:"
18952 msgstr ""
18953
18954 # type: verbatim
18955 #: ../fish/guestfish.pod:758
18956 #, no-wrap
18957 msgid ""
18958 " file /WINDOWS/system32/config/system.LOG\n"
18959 "\n"
18960 msgstr ""
18961
18962 # type: verbatim
18963 #: ../fish/guestfish.pod:760
18964 #, no-wrap
18965 msgid ""
18966 " file win:/windows/system32/config/system.log\n"
18967 "\n"
18968 msgstr ""
18969
18970 # type: verbatim
18971 #: ../fish/guestfish.pod:762
18972 #, no-wrap
18973 msgid ""
18974 " file win:\\windows\\system32\\config\\system.log\n"
18975 "\n"
18976 msgstr ""
18977
18978 # type: verbatim
18979 #: ../fish/guestfish.pod:764
18980 #, no-wrap
18981 msgid ""
18982 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18983 "\n"
18984 msgstr ""
18985
18986 # type: textblock
18987 #: ../fish/guestfish.pod:766
18988 msgid ""
18989 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18990 "handles case insensitivity like Windows would.  This only works in argument "
18991 "positions that expect a path."
18992 msgstr ""
18993
18994 # type: =head1
18995 #: ../fish/guestfish.pod:770
18996 msgid "UPLOADING AND DOWNLOADING FILES"
18997 msgstr ""
18998
18999 # type: textblock
19000 #: ../fish/guestfish.pod:772
19001 msgid ""
19002 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19003 "others which upload from or download to a local file, you can use the "
19004 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19005 msgstr ""
19006
19007 # type: verbatim
19008 #: ../fish/guestfish.pod:776
19009 #, no-wrap
19010 msgid ""
19011 " upload - /foo\n"
19012 "\n"
19013 msgstr ""
19014
19015 # type: textblock
19016 #: ../fish/guestfish.pod:778
19017 msgid ""
19018 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19019 msgstr ""
19020
19021 # type: verbatim
19022 #: ../fish/guestfish.pod:781
19023 #, no-wrap
19024 msgid ""
19025 " tar-out /etc - | tar tf -\n"
19026 "\n"
19027 msgstr ""
19028
19029 # type: textblock
19030 #: ../fish/guestfish.pod:783
19031 msgid ""
19032 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19033 "command (see L</PIPES>)."
19034 msgstr ""
19035
19036 # type: textblock
19037 #: ../fish/guestfish.pod:786
19038 msgid ""
19039 "When using C<-> to read from stdin, the input is read up to the end of "
19040 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19041 "some arbitrary end marker:"
19042 msgstr ""
19043
19044 # type: verbatim
19045 #: ../fish/guestfish.pod:790
19046 #, no-wrap
19047 msgid ""
19048 " upload -<<END /foo\n"
19049 " input line 1\n"
19050 " input line 2\n"
19051 " input line 3\n"
19052 " END\n"
19053 "\n"
19054 msgstr ""
19055
19056 # type: textblock
19057 #: ../fish/guestfish.pod:796
19058 msgid ""
19059 "Any string of characters can be used instead of C<END>.  The end marker must "
19060 "appear on a line of its own, without any preceeding or following characters "
19061 "(not even spaces)."
19062 msgstr ""
19063
19064 # type: textblock
19065 #: ../fish/guestfish.pod:800
19066 msgid ""
19067 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19068 "upload local files (so-called \"FileIn\" parameters in the generator)."
19069 msgstr ""
19070
19071 # type: =head1
19072 #: ../fish/guestfish.pod:803
19073 msgid "EXIT ON ERROR BEHAVIOUR"
19074 msgstr ""
19075
19076 # type: textblock
19077 #: ../fish/guestfish.pod:805
19078 msgid ""
19079 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19080 "taking commands from a human over a tty), and will exit on the first error "
19081 "in non-interactive mode (scripts, commands given on the command line)."
19082 msgstr ""
19083
19084 # type: textblock
19085 #: ../fish/guestfish.pod:810
19086 msgid ""
19087 "If you prefix a command with a I<-> character, then that command will not "
19088 "cause guestfish to exit, even if that (one) command returns an error."
19089 msgstr ""
19090
19091 # type: =head1
19092 #: ../fish/guestfish.pod:814
19093 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19094 msgstr ""
19095
19096 # type: textblock
19097 #: ../fish/guestfish.pod:816
19098 msgid ""
19099 "Guestfish can be remote-controlled over a socket.  This is useful "
19100 "particularly in shell scripts where you want to make several different "
19101 "changes to a filesystem, but you don't want the overhead of starting up a "
19102 "guestfish process each time."
19103 msgstr ""
19104
19105 # type: textblock
19106 #: ../fish/guestfish.pod:821
19107 msgid "Start a guestfish server process using:"
19108 msgstr ""
19109
19110 # type: verbatim
19111 #: ../fish/guestfish.pod:823
19112 #, no-wrap
19113 msgid ""
19114 " eval \"`guestfish --listen`\"\n"
19115 "\n"
19116 msgstr ""
19117
19118 # type: textblock
19119 #: ../fish/guestfish.pod:825
19120 msgid "and then send it commands by doing:"
19121 msgstr ""
19122
19123 # type: verbatim
19124 #: ../fish/guestfish.pod:827
19125 #, no-wrap
19126 msgid ""
19127 " guestfish --remote cmd [...]\n"
19128 "\n"
19129 msgstr ""
19130
19131 # type: textblock
19132 #: ../fish/guestfish.pod:829
19133 msgid "To cause the server to exit, send it the exit command:"
19134 msgstr ""
19135
19136 # type: verbatim
19137 #: ../fish/guestfish.pod:831
19138 #, no-wrap
19139 msgid ""
19140 " guestfish --remote exit\n"
19141 "\n"
19142 msgstr ""
19143
19144 # type: textblock
19145 #: ../fish/guestfish.pod:833
19146 msgid ""
19147 "Note that the server will normally exit if there is an error in a command.  "
19148 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19149 "BEHAVIOUR>."
19150 msgstr ""
19151
19152 # type: =head2
19153 #: ../fish/guestfish.pod:837
19154 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19155 msgstr ""
19156
19157 # type: textblock
19158 #: ../fish/guestfish.pod:839
19159 msgid ""
19160 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19161 "is how the I<--remote> option knows where to send the commands.  You can "
19162 "have several guestfish listener processes running using:"
19163 msgstr ""
19164
19165 # type: verbatim
19166 #: ../fish/guestfish.pod:843
19167 #, no-wrap
19168 msgid ""
19169 " eval \"`guestfish --listen`\"\n"
19170 " pid1=$GUESTFISH_PID\n"
19171 " eval \"`guestfish --listen`\"\n"
19172 " pid2=$GUESTFISH_PID\n"
19173 " ...\n"
19174 " guestfish --remote=$pid1 cmd\n"
19175 " guestfish --remote=$pid2 cmd\n"
19176 "\n"
19177 msgstr ""
19178
19179 # type: =head2
19180 #: ../fish/guestfish.pod:851
19181 msgid "REMOTE CONTROL AND CSH"
19182 msgstr ""
19183
19184 # type: textblock
19185 #: ../fish/guestfish.pod:853
19186 msgid ""
19187 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19188 "option:"
19189 msgstr ""
19190
19191 # type: verbatim
19192 #: ../fish/guestfish.pod:856
19193 #, no-wrap
19194 msgid ""
19195 " eval \"`guestfish --listen --csh`\"\n"
19196 "\n"
19197 msgstr ""
19198
19199 # type: =head2
19200 #: ../fish/guestfish.pod:858
19201 msgid "REMOTE CONTROL DETAILS"
19202 msgstr ""
19203
19204 # type: textblock
19205 #: ../fish/guestfish.pod:860
19206 msgid ""
19207 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19208 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19209 "and C<$PID> is the process ID of the server."
19210 msgstr ""
19211
19212 # type: textblock
19213 #: ../fish/guestfish.pod:864
19214 msgid "Guestfish client and server versions must match exactly."
19215 msgstr ""
19216
19217 # type: =head1
19218 #: ../fish/guestfish.pod:866
19219 msgid "PREPARED DISK IMAGES"
19220 msgstr ""
19221
19222 # type: textblock
19223 #: ../fish/guestfish.pod:868
19224 msgid ""
19225 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19226 "preformatted disk images that guestfish can make for you to save typing.  "
19227 "This is particularly useful for testing purposes.  This option is used "
19228 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19229 "can be mixed with I<-a>)."
19230 msgstr ""
19231
19232 # type: textblock
19233 #: ../fish/guestfish.pod:874
19234 msgid ""
19235 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19236 "the second and so on.  Existing files in the current directory are "
19237 "I<overwritten>."
19238 msgstr ""
19239
19240 # type: textblock
19241 #: ../fish/guestfish.pod:878
19242 msgid ""
19243 "The type briefly describes how the disk should be sized, partitioned, how "
19244 "filesystem(s) should be created, and how content should be added.  "
19245 "Optionally the type can be followed by extra parameters, separated by C<:> "
19246 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19247 "allocated disk, containing a single partition, with the partition formatted "
19248 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19249 "disk instead."
19250 msgstr ""
19251
19252 # type: textblock
19253 #: ../fish/guestfish.pod:886
19254 msgid "To list the available types and any extra parameters they take, run:"
19255 msgstr ""
19256
19257 # type: textblock
19258 #: ../fish/guestfish.pod:890
19259 msgid ""
19260 "Note that the prepared filesystem is not mounted.  You would usually have to "
19261 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19262 msgstr ""
19263
19264 # type: textblock
19265 #: ../fish/guestfish.pod:894
19266 msgid ""
19267 "If any I<-N> or I<--new> options are given, the guest is automatically "
19268 "launched."
19269 msgstr ""
19270
19271 # type: textblock
19272 #: ../fish/guestfish.pod:899
19273 msgid "Create a 100MB disk with an ext4-formatted partition:"
19274 msgstr ""
19275
19276 # type: verbatim
19277 #: ../fish/guestfish.pod:901
19278 #, no-wrap
19279 msgid ""
19280 " guestfish -N fs:ext4\n"
19281 "\n"
19282 msgstr ""
19283
19284 # type: textblock
19285 #: ../fish/guestfish.pod:903
19286 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19287 msgstr ""
19288
19289 # type: verbatim
19290 #: ../fish/guestfish.pod:905
19291 #, no-wrap
19292 msgid ""
19293 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19294 "\n"
19295 msgstr ""
19296
19297 # type: textblock
19298 #: ../fish/guestfish.pod:907
19299 msgid "Create a blank 200MB disk:"
19300 msgstr ""
19301
19302 # type: verbatim
19303 #: ../fish/guestfish.pod:909
19304 #, no-wrap
19305 msgid ""
19306 " guestfish -N disk:200M\n"
19307 "\n"
19308 msgstr ""
19309
19310 # type: =head1
19311 #: ../fish/guestfish.pod:911
19312 msgid "PROGRESS BARS"
19313 msgstr ""
19314
19315 # type: textblock
19316 #: ../fish/guestfish.pod:913
19317 msgid ""
19318 "Some (not all) long-running commands send progress notification messages as "
19319 "they are running.  Guestfish turns these messages into progress bars."
19320 msgstr ""
19321
19322 # type: textblock
19323 #: ../fish/guestfish.pod:917
19324 msgid ""
19325 "When a command that supports progress bars takes longer than two seconds to "
19326 "run, and if progress bars are enabled, then you will see one appearing below "
19327 "the command:"
19328 msgstr ""
19329
19330 # type: verbatim
19331 #: ../fish/guestfish.pod:921
19332 #, no-wrap
19333 msgid ""
19334 " ><fs> copy-size /large-file /another-file 2048M\n"
19335 " / 10% [#####-----------------------------------------] 00:30\n"
19336 "\n"
19337 msgstr ""
19338
19339 # type: textblock
19340 #: ../fish/guestfish.pod:924
19341 msgid ""
19342 "The spinner on the left hand side moves round once for every progress "
19343 "notification received from the backend.  This is a (reasonably) golden "
19344 "assurance that the command is \"doing something\" even if the progress bar "
19345 "is not moving, because the command is able to send the progress "
19346 "notifications.  When the bar reaches 100% and the command finishes, the "
19347 "spinner disappears."
19348 msgstr ""
19349
19350 # type: textblock
19351 #: ../fish/guestfish.pod:931
19352 msgid ""
19353 "Progress bars are enabled by default when guestfish is used interactively.  "
19354 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19355 "and you can disable them completely using I<--no-progress-bars>."
19356 msgstr ""
19357
19358 # type: =head1
19359 #: ../fish/guestfish.pod:936
19360 msgid "GUESTFISH COMMANDS"
19361 msgstr ""
19362
19363 # type: textblock
19364 #: ../fish/guestfish.pod:938
19365 msgid ""
19366 "The commands in this section are guestfish convenience commands, in other "
19367 "words, they are not part of the L<guestfs(3)> API."
19368 msgstr ""
19369
19370 # type: =head2
19371 #: ../fish/guestfish.pod:941
19372 msgid "help"
19373 msgstr ""
19374
19375 # type: verbatim
19376 #: ../fish/guestfish.pod:943
19377 #, no-wrap
19378 msgid ""
19379 " help\n"
19380 " help cmd\n"
19381 "\n"
19382 msgstr ""
19383
19384 # type: textblock
19385 #: ../fish/guestfish.pod:946
19386 msgid "Without any parameter, this provides general help."
19387 msgstr ""
19388
19389 # type: textblock
19390 #: ../fish/guestfish.pod:948
19391 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19392 msgstr ""
19393
19394 # type: =head2
19395 #: ../fish/guestfish.pod:950
19396 msgid "quit | exit"
19397 msgstr ""
19398
19399 # type: textblock
19400 #: ../fish/guestfish.pod:952
19401 msgid "This exits guestfish.  You can also use C<^D> key."
19402 msgstr ""
19403
19404 # type: textblock
19405 #: ../fish/guestfish.pod:954
19406 msgid "@FISH_COMMANDS@"
19407 msgstr ""
19408
19409 # type: =head1
19410 #: ../fish/guestfish.pod:956
19411 msgid "COMMANDS"
19412 msgstr ""
19413
19414 # type: =head1
19415 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
19416 msgid "EXIT CODE"
19417 msgstr ""
19418
19419 # type: textblock
19420 #: ../fish/guestfish.pod:962
19421 msgid ""
19422 "guestfish returns 0 if the commands completed without error, or 1 if there "
19423 "was an error."
19424 msgstr ""
19425
19426 # type: =item
19427 #: ../fish/guestfish.pod:969
19428 msgid "EDITOR"
19429 msgstr ""
19430
19431 # type: textblock
19432 #: ../fish/guestfish.pod:971
19433 msgid ""
19434 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19435 "C<vi>."
19436 msgstr ""
19437
19438 # type: =item
19439 #: ../fish/guestfish.pod:974
19440 msgid "GUESTFISH_PID"
19441 msgstr ""
19442
19443 # type: textblock
19444 #: ../fish/guestfish.pod:976
19445 msgid ""
19446 "Used with the I<--remote> option to specify the remote guestfish process to "
19447 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19448 msgstr ""
19449
19450 # type: =item
19451 #: ../fish/guestfish.pod:980
19452 msgid "HEXEDITOR"
19453 msgstr ""
19454
19455 # type: textblock
19456 #: ../fish/guestfish.pod:982
19457 msgid ""
19458 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19459 "not specified, the external L<hexedit(1)> program is used."
19460 msgstr ""
19461
19462 # type: =item
19463 #: ../fish/guestfish.pod:986
19464 msgid "HOME"
19465 msgstr ""
19466
19467 # type: textblock
19468 #: ../fish/guestfish.pod:988
19469 msgid ""
19470 "If compiled with GNU readline support, various files in the home directory "
19471 "can be used.  See L</FILES>."
19472 msgstr ""
19473
19474 # type: textblock
19475 #: ../fish/guestfish.pod:997
19476 msgid ""
19477 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19478 "effect as using the B<-v> option."
19479 msgstr ""
19480
19481 # type: textblock
19482 #: ../fish/guestfish.pod:1009
19483 msgid ""
19484 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19485 "the discussion of paths in L<guestfs(3)>."
19486 msgstr ""
19487
19488 # type: textblock
19489 #: ../fish/guestfish.pod:1020
19490 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19491 msgstr ""
19492
19493 # type: =item
19494 #: ../fish/guestfish.pod:1022
19495 msgid "PAGER"
19496 msgstr ""
19497
19498 # type: textblock
19499 #: ../fish/guestfish.pod:1024
19500 msgid ""
19501 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19502 "C<more>."
19503 msgstr ""
19504
19505 # type: =head1
19506 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
19507 msgid "FILES"
19508 msgstr ""
19509
19510 # type: =item
19511 #: ../fish/guestfish.pod:1043
19512 msgid "$HOME/.guestfish"
19513 msgstr ""
19514
19515 # type: textblock
19516 #: ../fish/guestfish.pod:1045
19517 msgid ""
19518 "If compiled with GNU readline support, then the command history is saved in "
19519 "this file."
19520 msgstr ""
19521
19522 # type: =item
19523 #: ../fish/guestfish.pod:1048
19524 msgid "$HOME/.inputrc"
19525 msgstr ""
19526
19527 # type: =item
19528 #: ../fish/guestfish.pod:1050
19529 msgid "/etc/inputrc"
19530 msgstr ""
19531
19532 # type: textblock
19533 #: ../fish/guestfish.pod:1052
19534 msgid ""
19535 "If compiled with GNU readline support, then these files can be used to "
19536 "configure readline.  For further information, please see L<readline(3)/"
19537 "INITIALIZATION FILE>."
19538 msgstr ""
19539
19540 # type: textblock
19541 #: ../fish/guestfish.pod:1056
19542 msgid "To write rules which only apply to guestfish, use:"
19543 msgstr ""
19544
19545 # type: verbatim
19546 #: ../fish/guestfish.pod:1058
19547 #, no-wrap
19548 msgid ""
19549 " $if guestfish\n"
19550 " ...\n"
19551 " $endif\n"
19552 "\n"
19553 msgstr ""
19554
19555 # type: textblock
19556 #: ../fish/guestfish.pod:1062
19557 msgid ""
19558 "Variables that you can set in inputrc that change the behaviour of guestfish "
19559 "in useful ways include:"
19560 msgstr ""
19561
19562 # type: =item
19563 #: ../fish/guestfish.pod:1067
19564 msgid "completion-ignore-case (default: on)"
19565 msgstr ""
19566
19567 # type: textblock
19568 #: ../fish/guestfish.pod:1069
19569 msgid ""
19570 "By default, guestfish will ignore case when tab-completing paths on the "
19571 "disk.  Use:"
19572 msgstr ""
19573
19574 # type: verbatim
19575 #: ../fish/guestfish.pod:1072
19576 #, no-wrap
19577 msgid ""
19578 " set completion-ignore-case off\n"
19579 "\n"
19580 msgstr ""
19581
19582 # type: textblock
19583 #: ../fish/guestfish.pod:1074
19584 msgid "to make guestfish case sensitive."
19585 msgstr ""
19586
19587 # type: =item
19588 #: ../fish/guestfish.pod:1078
19589 msgid "test1.img"
19590 msgstr ""
19591
19592 # type: =item
19593 #: ../fish/guestfish.pod:1080
19594 msgid "test2.img (etc)"
19595 msgstr ""
19596
19597 # type: textblock
19598 #: ../fish/guestfish.pod:1082
19599 msgid ""
19600 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19601 "will be created in the file C<test1.img> in the current directory.  The "
19602 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19603 "the same name will be overwritten."
19604 msgstr ""
19605
19606 # type: textblock
19607 #: ../fish/guestfish.pod:1091
19608 msgid ""
19609 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19610 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19611 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19612 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19613 "L<hexedit(1)>."
19614 msgstr ""
19615
19616 # type: textblock
19617 #: ../fish/guestfish.pod:1117 ../test-tool/libguestfs-test-tool.pod:124
19618 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19619 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1512
19620 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300
19621 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
19622 msgid ""
19623 "This program is free software; you can redistribute it and/or modify it "
19624 "under the terms of the GNU General Public License as published by the Free "
19625 "Software Foundation; either version 2 of the License, or (at your option) "
19626 "any later version."
19627 msgstr ""
19628
19629 # type: textblock
19630 #: ../fish/guestfish.pod:1122 ../test-tool/libguestfs-test-tool.pod:129
19631 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19632 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1517
19633 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305
19634 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
19635 msgid ""
19636 "This program is distributed in the hope that it will be useful, but WITHOUT "
19637 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19638 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19639 "more details."
19640 msgstr ""
19641
19642 # type: textblock
19643 #: ../fish/guestfish.pod:1127 ../test-tool/libguestfs-test-tool.pod:134
19644 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19645 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1522
19646 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310
19647 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
19648 msgid ""
19649 "You should have received a copy of the GNU General Public License along with "
19650 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19651 "Ave, Cambridge, MA 02139, USA."
19652 msgstr ""
19653
19654 # type: =head2
19655 #: ../fish/guestfish-actions.pod:1
19656 msgid "add-cdrom"
19657 msgstr ""
19658
19659 # type: verbatim
19660 #: ../fish/guestfish-actions.pod:3
19661 #, no-wrap
19662 msgid ""
19663 " add-cdrom filename\n"
19664 "\n"
19665 msgstr ""
19666
19667 # type: textblock
19668 #: ../fish/guestfish-actions.pod:15
19669 msgid ""
19670 "This call checks for the existence of C<filename>.  This stops you from "
19671 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19672 "and C<http:> URLs.  To specify those, use the general L</config> call "
19673 "instead."
19674 msgstr ""
19675
19676 # type: textblock
19677 #: ../fish/guestfish-actions.pod:22
19678 msgid ""
19679 "If you just want to add an ISO file (often you use this as an efficient way "
19680 "to transfer large files into the guest), then you should probably use L</add-"
19681 "drive-ro> instead."
19682 msgstr ""
19683
19684 # type: =head2
19685 #: ../fish/guestfish-actions.pod:35
19686 msgid "add-domain"
19687 msgstr ""
19688
19689 # type: =head2
19690 #: ../fish/guestfish-actions.pod:37
19691 msgid "domain"
19692 msgstr ""
19693
19694 # type: verbatim
19695 #: ../fish/guestfish-actions.pod:39
19696 #, no-wrap
19697 msgid ""
19698 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19699 "\n"
19700 msgstr ""
19701
19702 # type: textblock
19703 #: ../fish/guestfish-actions.pod:41
19704 msgid ""
19705 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19706 "It works by connecting to libvirt, requesting the domain and domain XML from "
19707 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19708 msgstr ""
19709
19710 # type: textblock
19711 #: ../fish/guestfish-actions.pod:58
19712 msgid ""
19713 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19714 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19715 "libvirt URI (or one set through an environment variable, see the libvirt "
19716 "documentation for full details).  If you are using the C API directly then "
19717 "it is more flexible to create the libvirt connection object yourself, get "
19718 "the domain object, and call L</add-libvirt-dom>."
19719 msgstr ""
19720
19721 # type: textblock
19722 #: ../fish/guestfish-actions.pod:66
19723 msgid ""
19724 "The other optional parameters are passed directly through to L</add-drive-"
19725 "opts>."
19726 msgstr ""
19727
19728 # type: textblock
19729 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19730 #: ../fish/guestfish-actions.pod:2844
19731 msgid ""
19732 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19733 msgstr ""
19734
19735 # type: =head2
19736 #: ../fish/guestfish-actions.pod:71
19737 msgid "add-drive"
19738 msgstr ""
19739
19740 # type: verbatim
19741 #: ../fish/guestfish-actions.pod:73
19742 #, no-wrap
19743 msgid ""
19744 " add-drive filename\n"
19745 "\n"
19746 msgstr ""
19747
19748 # type: textblock
19749 #: ../fish/guestfish-actions.pod:75
19750 msgid ""
19751 "This function is the equivalent of calling L</add-drive-opts> with no "
19752 "optional parameters, so the disk is added writable, with the format being "
19753 "detected automatically."
19754 msgstr ""
19755
19756 # type: textblock
19757 #: ../fish/guestfish-actions.pod:79
19758 msgid ""
19759 "Automatic detection of the format opens you up to a potential security hole "
19760 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19761 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19762 "you should think about replacing calls to this function with calls to L</add-"
19763 "drive-opts>, and specifying the format."
19764 msgstr ""
19765
19766 # type: =head2
19767 #: ../fish/guestfish-actions.pod:86
19768 msgid "add-drive-opts"
19769 msgstr ""
19770
19771 # type: =head2
19772 #: ../fish/guestfish-actions.pod:88
19773 msgid "add"
19774 msgstr ""
19775
19776 # type: verbatim
19777 #: ../fish/guestfish-actions.pod:90
19778 #, no-wrap
19779 msgid ""
19780 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19781 "\n"
19782 msgstr ""
19783
19784 # type: textblock
19785 #: ../fish/guestfish-actions.pod:117
19786 msgid ""
19787 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19788 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19789 "include C<raw> and C<qcow2>."
19790 msgstr ""
19791
19792 # type: textblock
19793 #: ../fish/guestfish-actions.pod:128
19794 msgid ""
19795 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19796 "add-drive-with-if> call (q.v.)"
19797 msgstr ""
19798
19799 # type: =head2
19800 #: ../fish/guestfish-actions.pod:135
19801 msgid "add-drive-ro"
19802 msgstr ""
19803
19804 # type: =head2
19805 #: ../fish/guestfish-actions.pod:137
19806 msgid "add-ro"
19807 msgstr ""
19808
19809 # type: verbatim
19810 #: ../fish/guestfish-actions.pod:139
19811 #, no-wrap
19812 msgid ""
19813 " add-drive-ro filename\n"
19814 "\n"
19815 msgstr ""
19816
19817 # type: textblock
19818 #: ../fish/guestfish-actions.pod:141
19819 msgid ""
19820 "This function is the equivalent of calling L</add-drive-opts> with the "
19821 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19822 "is added read-only, with the format being detected automatically."
19823 msgstr ""
19824
19825 # type: =head2
19826 #: ../fish/guestfish-actions.pod:146
19827 msgid "add-drive-ro-with-if"
19828 msgstr ""
19829
19830 # type: verbatim
19831 #: ../fish/guestfish-actions.pod:148
19832 #, no-wrap
19833 msgid ""
19834 " add-drive-ro-with-if filename iface\n"
19835 "\n"
19836 msgstr ""
19837
19838 # type: textblock
19839 #: ../fish/guestfish-actions.pod:150
19840 msgid ""
19841 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19842 "interface emulation to use at run time."
19843 msgstr ""
19844
19845 # type: =head2
19846 #: ../fish/guestfish-actions.pod:160
19847 msgid "add-drive-with-if"
19848 msgstr ""
19849
19850 # type: verbatim
19851 #: ../fish/guestfish-actions.pod:162
19852 #, no-wrap
19853 msgid ""
19854 " add-drive-with-if filename iface\n"
19855 "\n"
19856 msgstr ""
19857
19858 # type: textblock
19859 #: ../fish/guestfish-actions.pod:164
19860 msgid ""
19861 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19862 "interface emulation to use at run time."
19863 msgstr ""
19864
19865 # type: =head2
19866 #: ../fish/guestfish-actions.pod:174
19867 msgid "aug-clear"
19868 msgstr ""
19869
19870 # type: verbatim
19871 #: ../fish/guestfish-actions.pod:176
19872 #, no-wrap
19873 msgid ""
19874 " aug-clear augpath\n"
19875 "\n"
19876 msgstr ""
19877
19878 # type: =head2
19879 #: ../fish/guestfish-actions.pod:181
19880 msgid "aug-close"
19881 msgstr ""
19882
19883 # type: verbatim
19884 #: ../fish/guestfish-actions.pod:183
19885 #, no-wrap
19886 msgid ""
19887 " aug-close\n"
19888 "\n"
19889 msgstr ""
19890
19891 # type: textblock
19892 #: ../fish/guestfish-actions.pod:185
19893 msgid ""
19894 "Close the current Augeas handle and free up any resources used by it.  After "
19895 "calling this, you have to call L</aug-init> again before you can use any "
19896 "other Augeas functions."
19897 msgstr ""
19898
19899 # type: =head2
19900 #: ../fish/guestfish-actions.pod:190
19901 msgid "aug-defnode"
19902 msgstr ""
19903
19904 # type: verbatim
19905 #: ../fish/guestfish-actions.pod:192
19906 #, no-wrap
19907 msgid ""
19908 " aug-defnode name expr val\n"
19909 "\n"
19910 msgstr ""
19911
19912 # type: textblock
19913 #: ../fish/guestfish-actions.pod:197
19914 msgid ""
19915 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19916 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19917 "containing that single node."
19918 msgstr ""
19919
19920 # type: =head2
19921 #: ../fish/guestfish-actions.pod:205
19922 msgid "aug-defvar"
19923 msgstr ""
19924
19925 # type: verbatim
19926 #: ../fish/guestfish-actions.pod:207
19927 #, no-wrap
19928 msgid ""
19929 " aug-defvar name expr\n"
19930 "\n"
19931 msgstr ""
19932
19933 # type: =head2
19934 #: ../fish/guestfish-actions.pod:216
19935 msgid "aug-get"
19936 msgstr ""
19937
19938 # type: verbatim
19939 #: ../fish/guestfish-actions.pod:218
19940 #, no-wrap
19941 msgid ""
19942 " aug-get augpath\n"
19943 "\n"
19944 msgstr ""
19945
19946 # type: =head2
19947 #: ../fish/guestfish-actions.pod:223
19948 msgid "aug-init"
19949 msgstr ""
19950
19951 # type: verbatim
19952 #: ../fish/guestfish-actions.pod:225
19953 #, no-wrap
19954 msgid ""
19955 " aug-init root flags\n"
19956 "\n"
19957 msgstr ""
19958
19959 # type: textblock
19960 #: ../fish/guestfish-actions.pod:231
19961 msgid "You must call this before using any other L</aug-*> commands."
19962 msgstr ""
19963
19964 # type: textblock
19965 #: ../fish/guestfish-actions.pod:266
19966 msgid "Do not load the tree in L</aug-init>."
19967 msgstr ""
19968
19969 # type: textblock
19970 #: ../fish/guestfish-actions.pod:270
19971 msgid "To close the handle, you can call L</aug-close>."
19972 msgstr ""
19973
19974 # type: =head2
19975 #: ../fish/guestfish-actions.pod:274
19976 msgid "aug-insert"
19977 msgstr ""
19978
19979 # type: verbatim
19980 #: ../fish/guestfish-actions.pod:276
19981 #, no-wrap
19982 msgid ""
19983 " aug-insert augpath label true|false\n"
19984 "\n"
19985 msgstr ""
19986
19987 # type: =head2
19988 #: ../fish/guestfish-actions.pod:286
19989 msgid "aug-load"
19990 msgstr ""
19991
19992 # type: verbatim
19993 #: ../fish/guestfish-actions.pod:288
19994 #, no-wrap
19995 msgid ""
19996 " aug-load\n"
19997 "\n"
19998 msgstr ""
19999
20000 # type: =head2
20001 #: ../fish/guestfish-actions.pod:295
20002 msgid "aug-ls"
20003 msgstr ""
20004
20005 # type: verbatim
20006 #: ../fish/guestfish-actions.pod:297
20007 #, no-wrap
20008 msgid ""
20009 " aug-ls augpath\n"
20010 "\n"
20011 msgstr ""
20012
20013 # type: textblock
20014 #: ../fish/guestfish-actions.pod:299
20015 msgid ""
20016 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
20017 "resulting nodes into alphabetical order."
20018 msgstr ""
20019
20020 # type: =head2
20021 #: ../fish/guestfish-actions.pod:302
20022 msgid "aug-match"
20023 msgstr ""
20024
20025 # type: verbatim
20026 #: ../fish/guestfish-actions.pod:304
20027 #, no-wrap
20028 msgid ""
20029 " aug-match augpath\n"
20030 "\n"
20031 msgstr ""
20032
20033 # type: =head2
20034 #: ../fish/guestfish-actions.pod:310
20035 msgid "aug-mv"
20036 msgstr ""
20037
20038 # type: verbatim
20039 #: ../fish/guestfish-actions.pod:312
20040 #, no-wrap
20041 msgid ""
20042 " aug-mv src dest\n"
20043 "\n"
20044 msgstr ""
20045
20046 # type: =head2
20047 #: ../fish/guestfish-actions.pod:317
20048 msgid "aug-rm"
20049 msgstr ""
20050
20051 # type: verbatim
20052 #: ../fish/guestfish-actions.pod:319
20053 #, no-wrap
20054 msgid ""
20055 " aug-rm augpath\n"
20056 "\n"
20057 msgstr ""
20058
20059 # type: =head2
20060 #: ../fish/guestfish-actions.pod:325
20061 msgid "aug-save"
20062 msgstr ""
20063
20064 # type: verbatim
20065 #: ../fish/guestfish-actions.pod:327
20066 #, no-wrap
20067 msgid ""
20068 " aug-save\n"
20069 "\n"
20070 msgstr ""
20071
20072 # type: textblock
20073 #: ../fish/guestfish-actions.pod:331
20074 msgid ""
20075 "The flags which were passed to L</aug-init> affect exactly how files are "
20076 "saved."
20077 msgstr ""
20078
20079 # type: =head2
20080 #: ../fish/guestfish-actions.pod:334
20081 msgid "aug-set"
20082 msgstr ""
20083
20084 # type: verbatim
20085 #: ../fish/guestfish-actions.pod:336
20086 #, no-wrap
20087 msgid ""
20088 " aug-set augpath val\n"
20089 "\n"
20090 msgstr ""
20091
20092 # type: textblock
20093 #: ../fish/guestfish-actions.pod:340
20094 msgid ""
20095 "In the Augeas API, it is possible to clear a node by setting the value to "
20096 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
20097 "this call.  Instead you must use the L</aug-clear> call."
20098 msgstr ""
20099
20100 # type: =head2
20101 #: ../fish/guestfish-actions.pod:345
20102 msgid "available"
20103 msgstr ""
20104
20105 # type: verbatim
20106 #: ../fish/guestfish-actions.pod:347
20107 #, no-wrap
20108 msgid ""
20109 " available 'groups ...'\n"
20110 "\n"
20111 msgstr ""
20112
20113 # type: textblock
20114 #: ../fish/guestfish-actions.pod:353
20115 msgid ""
20116 "The libguestfs groups, and the functions that those groups correspond to, "
20117 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
20118 "runtime by calling L</available-all-groups>."
20119 msgstr ""
20120
20121 # type: textblock
20122 #: ../fish/guestfish-actions.pod:377
20123 msgid "You must call L</launch> before calling this function."
20124 msgstr ""
20125
20126 # type: textblock
20127 #: ../fish/guestfish-actions.pod:399
20128 msgid ""
20129 "This call was added in version C<1.0.80>.  In previous versions of "
20130 "libguestfs all you could do would be to speculatively execute a command to "
20131 "find out if the daemon implemented it.  See also L</version>."
20132 msgstr ""
20133
20134 # type: =head2
20135 #: ../fish/guestfish-actions.pod:406
20136 msgid "available-all-groups"
20137 msgstr ""
20138
20139 # type: verbatim
20140 #: ../fish/guestfish-actions.pod:408
20141 #, no-wrap
20142 msgid ""
20143 " available-all-groups\n"
20144 "\n"
20145 msgstr ""
20146
20147 # type: textblock
20148 #: ../fish/guestfish-actions.pod:410
20149 msgid ""
20150 "This command returns a list of all optional groups that this daemon knows "
20151 "about.  Note this returns both supported and unsupported groups.  To find "
20152 "out which ones the daemon can actually support you have to call L</"
20153 "available> on each member of the returned list."
20154 msgstr ""
20155
20156 # type: textblock
20157 #: ../fish/guestfish-actions.pod:416
20158 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
20159 msgstr ""
20160
20161 # type: =head2
20162 #: ../fish/guestfish-actions.pod:418
20163 msgid "base64-in"
20164 msgstr ""
20165
20166 # type: verbatim
20167 #: ../fish/guestfish-actions.pod:420
20168 #, no-wrap
20169 msgid ""
20170 " base64-in (base64file|-) filename\n"
20171 "\n"
20172 msgstr ""
20173
20174 # type: textblock
20175 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
20176 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
20177 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
20178 #: ../fish/guestfish-actions.pod:4199 ../fish/guestfish-actions.pod:4211
20179 #: ../fish/guestfish-actions.pod:4222 ../fish/guestfish-actions.pod:4233
20180 #: ../fish/guestfish-actions.pod:4285 ../fish/guestfish-actions.pod:4294
20181 #: ../fish/guestfish-actions.pod:4348 ../fish/guestfish-actions.pod:4371
20182 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
20183 msgstr ""
20184
20185 # type: =head2
20186 #: ../fish/guestfish-actions.pod:427
20187 msgid "base64-out"
20188 msgstr ""
20189
20190 # type: verbatim
20191 #: ../fish/guestfish-actions.pod:429
20192 #, no-wrap
20193 msgid ""
20194 " base64-out filename (base64file|-)\n"
20195 "\n"
20196 msgstr ""
20197
20198 # type: =head2
20199 #: ../fish/guestfish-actions.pod:436
20200 msgid "blockdev-flushbufs"
20201 msgstr ""
20202
20203 # type: verbatim
20204 #: ../fish/guestfish-actions.pod:438
20205 #, no-wrap
20206 msgid ""
20207 " blockdev-flushbufs device\n"
20208 "\n"
20209 msgstr ""
20210
20211 # type: =head2
20212 #: ../fish/guestfish-actions.pod:445
20213 msgid "blockdev-getbsz"
20214 msgstr ""
20215
20216 # type: verbatim
20217 #: ../fish/guestfish-actions.pod:447
20218 #, no-wrap
20219 msgid ""
20220 " blockdev-getbsz device\n"
20221 "\n"
20222 msgstr ""
20223
20224 # type: =head2
20225 #: ../fish/guestfish-actions.pod:456
20226 msgid "blockdev-getro"
20227 msgstr ""
20228
20229 # type: verbatim
20230 #: ../fish/guestfish-actions.pod:458
20231 #, no-wrap
20232 msgid ""
20233 " blockdev-getro device\n"
20234 "\n"
20235 msgstr ""
20236
20237 # type: =head2
20238 #: ../fish/guestfish-actions.pod:465
20239 msgid "blockdev-getsize64"
20240 msgstr ""
20241
20242 # type: verbatim
20243 #: ../fish/guestfish-actions.pod:467
20244 #, no-wrap
20245 msgid ""
20246 " blockdev-getsize64 device\n"
20247 "\n"
20248 msgstr ""
20249
20250 # type: textblock
20251 #: ../fish/guestfish-actions.pod:471
20252 msgid "See also L</blockdev-getsz>."
20253 msgstr ""
20254
20255 # type: =head2
20256 #: ../fish/guestfish-actions.pod:475
20257 msgid "blockdev-getss"
20258 msgstr ""
20259
20260 # type: verbatim
20261 #: ../fish/guestfish-actions.pod:477
20262 #, no-wrap
20263 msgid ""
20264 " blockdev-getss device\n"
20265 "\n"
20266 msgstr ""
20267
20268 # type: textblock
20269 #: ../fish/guestfish-actions.pod:482
20270 msgid ""
20271 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
20272 msgstr ""
20273
20274 # type: =head2
20275 #: ../fish/guestfish-actions.pod:487
20276 msgid "blockdev-getsz"
20277 msgstr ""
20278
20279 # type: verbatim
20280 #: ../fish/guestfish-actions.pod:489
20281 #, no-wrap
20282 msgid ""
20283 " blockdev-getsz device\n"
20284 "\n"
20285 msgstr ""
20286
20287 # type: textblock
20288 #: ../fish/guestfish-actions.pod:494
20289 msgid ""
20290 "See also L</blockdev-getss> for the real sector size of the device, and L</"
20291 "blockdev-getsize64> for the more useful I<size in bytes>."
20292 msgstr ""
20293
20294 # type: =head2
20295 #: ../fish/guestfish-actions.pod:500
20296 msgid "blockdev-rereadpt"
20297 msgstr ""
20298
20299 # type: verbatim
20300 #: ../fish/guestfish-actions.pod:502
20301 #, no-wrap
20302 msgid ""
20303 " blockdev-rereadpt device\n"
20304 "\n"
20305 msgstr ""
20306
20307 # type: =head2
20308 #: ../fish/guestfish-actions.pod:508
20309 msgid "blockdev-setbsz"
20310 msgstr ""
20311
20312 # type: verbatim
20313 #: ../fish/guestfish-actions.pod:510
20314 #, no-wrap
20315 msgid ""
20316 " blockdev-setbsz device blocksize\n"
20317 "\n"
20318 msgstr ""
20319
20320 # type: =head2
20321 #: ../fish/guestfish-actions.pod:519
20322 msgid "blockdev-setro"
20323 msgstr ""
20324
20325 # type: verbatim
20326 #: ../fish/guestfish-actions.pod:521
20327 #, no-wrap
20328 msgid ""
20329 " blockdev-setro device\n"
20330 "\n"
20331 msgstr ""
20332
20333 # type: =head2
20334 #: ../fish/guestfish-actions.pod:527
20335 msgid "blockdev-setrw"
20336 msgstr ""
20337
20338 # type: verbatim
20339 #: ../fish/guestfish-actions.pod:529
20340 #, no-wrap
20341 msgid ""
20342 " blockdev-setrw device\n"
20343 "\n"
20344 msgstr ""
20345
20346 # type: =head2
20347 #: ../fish/guestfish-actions.pod:535
20348 msgid "case-sensitive-path"
20349 msgstr ""
20350
20351 # type: verbatim
20352 #: ../fish/guestfish-actions.pod:537
20353 #, no-wrap
20354 msgid ""
20355 " case-sensitive-path path\n"
20356 "\n"
20357 msgstr ""
20358
20359 # type: textblock
20360 #: ../fish/guestfish-actions.pod:561
20361 msgid ""
20362 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
20363 "WINDOWS/system32\"> (the exact return value would depend on details of how "
20364 "the directories were originally created under Windows)."
20365 msgstr ""
20366
20367 # type: textblock
20368 #: ../fish/guestfish-actions.pod:569
20369 msgid "See also L</realpath>."
20370 msgstr ""
20371
20372 # type: =head2
20373 #: ../fish/guestfish-actions.pod:571
20374 msgid "cat"
20375 msgstr ""
20376
20377 # type: verbatim
20378 #: ../fish/guestfish-actions.pod:573
20379 #, no-wrap
20380 msgid ""
20381 " cat path\n"
20382 "\n"
20383 msgstr ""
20384
20385 # type: textblock
20386 #: ../fish/guestfish-actions.pod:577
20387 msgid ""
20388 "Note that this function cannot correctly handle binary files (specifically, "
20389 "files containing C<\\0> character which is treated as end of string).  For "
20390 "those you need to use the L</read-file> or L</download> functions which have "
20391 "a more complex interface."
20392 msgstr ""
20393
20394 # type: =head2
20395 #: ../fish/guestfish-actions.pod:585
20396 msgid "checksum"
20397 msgstr ""
20398
20399 # type: verbatim
20400 #: ../fish/guestfish-actions.pod:587
20401 #, no-wrap
20402 msgid ""
20403 " checksum csumtype path\n"
20404 "\n"
20405 msgstr ""
20406
20407 # type: textblock
20408 #: ../fish/guestfish-actions.pod:630
20409 msgid "To get the checksum for a device, use L</checksum-device>."
20410 msgstr ""
20411
20412 # type: textblock
20413 #: ../fish/guestfish-actions.pod:632
20414 msgid "To get the checksums for many files, use L</checksums-out>."
20415 msgstr ""
20416
20417 # type: =head2
20418 #: ../fish/guestfish-actions.pod:634
20419 msgid "checksum-device"
20420 msgstr ""
20421
20422 # type: verbatim
20423 #: ../fish/guestfish-actions.pod:636
20424 #, no-wrap
20425 msgid ""
20426 " checksum-device csumtype device\n"
20427 "\n"
20428 msgstr ""
20429
20430 # type: textblock
20431 #: ../fish/guestfish-actions.pod:638
20432 msgid ""
20433 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20434 "device named C<device>.  For the types of checksums supported see the L</"
20435 "checksum> command."
20436 msgstr ""
20437
20438 # type: =head2
20439 #: ../fish/guestfish-actions.pod:642
20440 msgid "checksums-out"
20441 msgstr ""
20442
20443 # type: verbatim
20444 #: ../fish/guestfish-actions.pod:644
20445 #, no-wrap
20446 msgid ""
20447 " checksums-out csumtype directory (sumsfile|-)\n"
20448 "\n"
20449 msgstr ""
20450
20451 # type: =head2
20452 #: ../fish/guestfish-actions.pod:660
20453 msgid "chmod"
20454 msgstr ""
20455
20456 # type: verbatim
20457 #: ../fish/guestfish-actions.pod:662
20458 #, no-wrap
20459 msgid ""
20460 " chmod mode path\n"
20461 "\n"
20462 msgstr ""
20463
20464 # type: =head2
20465 #: ../fish/guestfish-actions.pod:673
20466 msgid "chown"
20467 msgstr ""
20468
20469 # type: verbatim
20470 #: ../fish/guestfish-actions.pod:675
20471 #, no-wrap
20472 msgid ""
20473 " chown owner group path\n"
20474 "\n"
20475 msgstr ""
20476
20477 # type: =head2
20478 #: ../fish/guestfish-actions.pod:683
20479 msgid "command"
20480 msgstr ""
20481
20482 # type: verbatim
20483 #: ../fish/guestfish-actions.pod:685
20484 #, no-wrap
20485 msgid ""
20486 " command 'arguments ...'\n"
20487 "\n"
20488 msgstr ""
20489
20490 # type: textblock
20491 #: ../fish/guestfish-actions.pod:692
20492 msgid ""
20493 "The single parameter is an argv-style list of arguments.  The first element "
20494 "is the name of the program to run.  Subsequent elements are parameters.  The "
20495 "list must be non-empty (ie. must contain a program name).  Note that the "
20496 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20497 msgstr ""
20498
20499 # type: =head2
20500 #: ../fish/guestfish-actions.pod:720
20501 msgid "command-lines"
20502 msgstr ""
20503
20504 # type: verbatim
20505 #: ../fish/guestfish-actions.pod:722
20506 #, no-wrap
20507 msgid ""
20508 " command-lines 'arguments ...'\n"
20509 "\n"
20510 msgstr ""
20511
20512 # type: textblock
20513 #: ../fish/guestfish-actions.pod:724
20514 msgid ""
20515 "This is the same as L</command>, but splits the result into a list of lines."
20516 msgstr ""
20517
20518 # type: textblock
20519 #: ../fish/guestfish-actions.pod:727
20520 msgid "See also: L</sh-lines>"
20521 msgstr ""
20522
20523 # type: =head2
20524 #: ../fish/guestfish-actions.pod:732
20525 msgid "config"
20526 msgstr ""
20527
20528 # type: verbatim
20529 #: ../fish/guestfish-actions.pod:734
20530 #, no-wrap
20531 msgid ""
20532 " config qemuparam qemuvalue\n"
20533 "\n"
20534 msgstr ""
20535
20536 # type: =head2
20537 #: ../fish/guestfish-actions.pod:745
20538 msgid "copy-size"
20539 msgstr ""
20540
20541 # type: verbatim
20542 #: ../fish/guestfish-actions.pod:747
20543 #, no-wrap
20544 msgid ""
20545 " copy-size src dest size\n"
20546 "\n"
20547 msgstr ""
20548
20549 # type: =head2
20550 #: ../fish/guestfish-actions.pod:755
20551 msgid "cp"
20552 msgstr ""
20553
20554 # type: verbatim
20555 #: ../fish/guestfish-actions.pod:757
20556 #, no-wrap
20557 msgid ""
20558 " cp src dest\n"
20559 "\n"
20560 msgstr ""
20561
20562 # type: =head2
20563 #: ../fish/guestfish-actions.pod:762
20564 msgid "cp-a"
20565 msgstr ""
20566
20567 # type: verbatim
20568 #: ../fish/guestfish-actions.pod:764
20569 #, no-wrap
20570 msgid ""
20571 " cp-a src dest\n"
20572 "\n"
20573 msgstr ""
20574
20575 # type: =head2
20576 #: ../fish/guestfish-actions.pod:769
20577 msgid "dd"
20578 msgstr ""
20579
20580 # type: verbatim
20581 #: ../fish/guestfish-actions.pod:771
20582 #, no-wrap
20583 msgid ""
20584 " dd src dest\n"
20585 "\n"
20586 msgstr ""
20587
20588 # type: textblock
20589 #: ../fish/guestfish-actions.pod:778
20590 msgid ""
20591 "If the destination is a device, it must be as large or larger than the "
20592 "source file or device, otherwise the copy will fail.  This command cannot do "
20593 "partial copies (see L</copy-size>)."
20594 msgstr ""
20595
20596 # type: =head2
20597 #: ../fish/guestfish-actions.pod:782
20598 msgid "df"
20599 msgstr ""
20600
20601 # type: verbatim
20602 #: ../fish/guestfish-actions.pod:784
20603 #, no-wrap
20604 msgid ""
20605 " df\n"
20606 "\n"
20607 msgstr ""
20608
20609 # type: textblock
20610 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
20611 msgid ""
20612 "This command is mostly useful for interactive sessions.  It is I<not> "
20613 "intended that you try to parse the output string.  Use L</statvfs> from "
20614 "programs."
20615 msgstr ""
20616
20617 # type: =head2
20618 #: ../fish/guestfish-actions.pod:792
20619 msgid "df-h"
20620 msgstr ""
20621
20622 # type: verbatim
20623 #: ../fish/guestfish-actions.pod:794
20624 #, no-wrap
20625 msgid ""
20626 " df-h\n"
20627 "\n"
20628 msgstr ""
20629
20630 # type: =head2
20631 #: ../fish/guestfish-actions.pod:803
20632 msgid "dmesg"
20633 msgstr ""
20634
20635 # type: verbatim
20636 #: ../fish/guestfish-actions.pod:805
20637 #, no-wrap
20638 msgid ""
20639 " dmesg\n"
20640 "\n"
20641 msgstr ""
20642
20643 # type: textblock
20644 #: ../fish/guestfish-actions.pod:811
20645 msgid ""
20646 "Another way to get the same information is to enable verbose messages with "
20647 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20648 "before running the program."
20649 msgstr ""
20650
20651 # type: =head2
20652 #: ../fish/guestfish-actions.pod:816
20653 msgid "download"
20654 msgstr ""
20655
20656 # type: verbatim
20657 #: ../fish/guestfish-actions.pod:818
20658 #, no-wrap
20659 msgid ""
20660 " download remotefilename (filename|-)\n"
20661 "\n"
20662 msgstr ""
20663
20664 # type: textblock
20665 #: ../fish/guestfish-actions.pod:825
20666 msgid "See also L</upload>, L</cat>."
20667 msgstr ""
20668
20669 # type: =head2
20670 #: ../fish/guestfish-actions.pod:829
20671 msgid "download-offset"
20672 msgstr ""
20673
20674 # type: verbatim
20675 #: ../fish/guestfish-actions.pod:831
20676 #, no-wrap
20677 msgid ""
20678 " download-offset remotefilename (filename|-) offset size\n"
20679 "\n"
20680 msgstr ""
20681
20682 # type: textblock
20683 #: ../fish/guestfish-actions.pod:839
20684 msgid ""
20685 "Note that there is no limit on the amount of data that can be downloaded "
20686 "with this call, unlike with L</pread>, and this call always reads the full "
20687 "amount unless an error occurs."
20688 msgstr ""
20689
20690 # type: textblock
20691 #: ../fish/guestfish-actions.pod:844
20692 msgid "See also L</download>, L</pread>."
20693 msgstr ""
20694
20695 # type: =head2
20696 #: ../fish/guestfish-actions.pod:848
20697 msgid "drop-caches"
20698 msgstr ""
20699
20700 # type: verbatim
20701 #: ../fish/guestfish-actions.pod:850
20702 #, no-wrap
20703 msgid ""
20704 " drop-caches whattodrop\n"
20705 "\n"
20706 msgstr ""
20707
20708 # type: =head2
20709 #: ../fish/guestfish-actions.pod:862
20710 msgid "du"
20711 msgstr ""
20712
20713 # type: verbatim
20714 #: ../fish/guestfish-actions.pod:864
20715 #, no-wrap
20716 msgid ""
20717 " du path\n"
20718 "\n"
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:876
20723 msgid "e2fsck-f"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:878
20728 #, no-wrap
20729 msgid ""
20730 " e2fsck-f device\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: textblock
20735 #: ../fish/guestfish-actions.pod:884
20736 msgid ""
20737 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20738 "should use L</fsck>."
20739 msgstr ""
20740
20741 # type: =head2
20742 #: ../fish/guestfish-actions.pod:887
20743 msgid "echo-daemon"
20744 msgstr ""
20745
20746 # type: verbatim
20747 #: ../fish/guestfish-actions.pod:889
20748 #, no-wrap
20749 msgid ""
20750 " echo-daemon 'words ...'\n"
20751 "\n"
20752 msgstr ""
20753
20754 # type: textblock
20755 #: ../fish/guestfish-actions.pod:896
20756 msgid "See also L</ping-daemon>."
20757 msgstr ""
20758
20759 # type: =head2
20760 #: ../fish/guestfish-actions.pod:898
20761 msgid "egrep"
20762 msgstr ""
20763
20764 # type: verbatim
20765 #: ../fish/guestfish-actions.pod:900
20766 #, no-wrap
20767 msgid ""
20768 " egrep regex path\n"
20769 "\n"
20770 msgstr ""
20771
20772 # type: =head2
20773 #: ../fish/guestfish-actions.pod:908
20774 msgid "egrepi"
20775 msgstr ""
20776
20777 # type: verbatim
20778 #: ../fish/guestfish-actions.pod:910
20779 #, no-wrap
20780 msgid ""
20781 " egrepi regex path\n"
20782 "\n"
20783 msgstr ""
20784
20785 # type: =head2
20786 #: ../fish/guestfish-actions.pod:918
20787 msgid "equal"
20788 msgstr ""
20789
20790 # type: verbatim
20791 #: ../fish/guestfish-actions.pod:920
20792 #, no-wrap
20793 msgid ""
20794 " equal file1 file2\n"
20795 "\n"
20796 msgstr ""
20797
20798 # type: =head2
20799 #: ../fish/guestfish-actions.pod:927
20800 msgid "exists"
20801 msgstr ""
20802
20803 # type: verbatim
20804 #: ../fish/guestfish-actions.pod:929
20805 #, no-wrap
20806 msgid ""
20807 " exists path\n"
20808 "\n"
20809 msgstr ""
20810
20811 # type: textblock
20812 #: ../fish/guestfish-actions.pod:934
20813 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20814 msgstr ""
20815
20816 # type: =head2
20817 #: ../fish/guestfish-actions.pod:936
20818 msgid "fallocate"
20819 msgstr ""
20820
20821 # type: verbatim
20822 #: ../fish/guestfish-actions.pod:938
20823 #, no-wrap
20824 msgid ""
20825 " fallocate path len\n"
20826 "\n"
20827 msgstr ""
20828
20829 # type: =head2
20830 #: ../fish/guestfish-actions.pod:955
20831 msgid "fallocate64"
20832 msgstr ""
20833
20834 # type: verbatim
20835 #: ../fish/guestfish-actions.pod:957
20836 #, no-wrap
20837 msgid ""
20838 " fallocate64 path len\n"
20839 "\n"
20840 msgstr ""
20841
20842 # type: textblock
20843 #: ../fish/guestfish-actions.pod:963
20844 msgid ""
20845 "Note that this call allocates disk blocks for the file.  To create a sparse "
20846 "file use L</truncate-size> instead."
20847 msgstr ""
20848
20849 # type: textblock
20850 #: ../fish/guestfish-actions.pod:966
20851 msgid ""
20852 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20853 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20854 "maximum size of files created through that call to 1GB."
20855 msgstr ""
20856
20857 # type: =head2
20858 #: ../fish/guestfish-actions.pod:975
20859 msgid "fgrep"
20860 msgstr ""
20861
20862 # type: verbatim
20863 #: ../fish/guestfish-actions.pod:977
20864 #, no-wrap
20865 msgid ""
20866 " fgrep pattern path\n"
20867 "\n"
20868 msgstr ""
20869
20870 # type: =head2
20871 #: ../fish/guestfish-actions.pod:985
20872 msgid "fgrepi"
20873 msgstr ""
20874
20875 # type: verbatim
20876 #: ../fish/guestfish-actions.pod:987
20877 #, no-wrap
20878 msgid ""
20879 " fgrepi pattern path\n"
20880 "\n"
20881 msgstr ""
20882
20883 # type: =head2
20884 #: ../fish/guestfish-actions.pod:995
20885 msgid "file"
20886 msgstr ""
20887
20888 # type: verbatim
20889 #: ../fish/guestfish-actions.pod:997
20890 #, no-wrap
20891 msgid ""
20892 " file path\n"
20893 "\n"
20894 msgstr ""
20895
20896 # type: textblock
20897 #: ../fish/guestfish-actions.pod:1009
20898 msgid ""
20899 "This command can also be used on C</dev/> devices (and partitions, LV "
20900 "names).  You can for example use this to determine if a device contains a "
20901 "filesystem, although it's usually better to use L</vfs-type>."
20902 msgstr ""
20903
20904 # type: =head2
20905 #: ../fish/guestfish-actions.pod:1019
20906 msgid "file-architecture"
20907 msgstr ""
20908
20909 # type: verbatim
20910 #: ../fish/guestfish-actions.pod:1021
20911 #, no-wrap
20912 msgid ""
20913 " file-architecture filename\n"
20914 "\n"
20915 msgstr ""
20916
20917 # type: =head2
20918 #: ../fish/guestfish-actions.pod:1124
20919 msgid "filesize"
20920 msgstr ""
20921
20922 # type: verbatim
20923 #: ../fish/guestfish-actions.pod:1126
20924 #, no-wrap
20925 msgid ""
20926 " filesize file\n"
20927 "\n"
20928 msgstr ""
20929
20930 # type: textblock
20931 #: ../fish/guestfish-actions.pod:1130
20932 msgid ""
20933 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20934 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20935 msgstr ""
20936
20937 # type: =head2
20938 #: ../fish/guestfish-actions.pod:1134
20939 msgid "fill"
20940 msgstr ""
20941
20942 # type: verbatim
20943 #: ../fish/guestfish-actions.pod:1136
20944 #, no-wrap
20945 msgid ""
20946 " fill c len path\n"
20947 "\n"
20948 msgstr ""
20949
20950 # type: textblock
20951 #: ../fish/guestfish-actions.pod:1142
20952 msgid ""
20953 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20954 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20955 "L</fill-pattern>."
20956 msgstr ""
20957
20958 # type: =head2
20959 #: ../fish/guestfish-actions.pod:1147
20960 msgid "fill-pattern"
20961 msgstr ""
20962
20963 # type: verbatim
20964 #: ../fish/guestfish-actions.pod:1149
20965 #, no-wrap
20966 msgid ""
20967 " fill-pattern pattern len path\n"
20968 "\n"
20969 msgstr ""
20970
20971 # type: textblock
20972 #: ../fish/guestfish-actions.pod:1151
20973 msgid ""
20974 "This function is like L</fill> except that it creates a new file of length "
20975 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20976 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20977 "bytes."
20978 msgstr ""
20979
20980 # type: =head2
20981 #: ../fish/guestfish-actions.pod:1156
20982 msgid "find"
20983 msgstr ""
20984
20985 # type: verbatim
20986 #: ../fish/guestfish-actions.pod:1158
20987 #, no-wrap
20988 msgid ""
20989 " find directory\n"
20990 "\n"
20991 msgstr ""
20992
20993 # type: textblock
20994 #: ../fish/guestfish-actions.pod:1172
20995 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20996 msgstr ""
20997
20998 # type: textblock
20999 #: ../fish/guestfish-actions.pod:1185
21000 msgid "See also L</find0>."
21001 msgstr ""
21002
21003 # type: =head2
21004 #: ../fish/guestfish-actions.pod:1190
21005 msgid "find0"
21006 msgstr ""
21007
21008 # type: verbatim
21009 #: ../fish/guestfish-actions.pod:1192
21010 #, no-wrap
21011 msgid ""
21012 " find0 directory (files|-)\n"
21013 "\n"
21014 msgstr ""
21015
21016 # type: textblock
21017 #: ../fish/guestfish-actions.pod:1198
21018 msgid ""
21019 "This command works the same way as L</find> with the following exceptions:"
21020 msgstr ""
21021
21022 # type: =head2
21023 #: ../fish/guestfish-actions.pod:1225
21024 msgid "findfs-label"
21025 msgstr ""
21026
21027 # type: verbatim
21028 #: ../fish/guestfish-actions.pod:1227
21029 #, no-wrap
21030 msgid ""
21031 " findfs-label label\n"
21032 "\n"
21033 msgstr ""
21034
21035 # type: textblock
21036 #: ../fish/guestfish-actions.pod:1233
21037 msgid "To find the label of a filesystem, use L</vfs-label>."
21038 msgstr ""
21039
21040 # type: =head2
21041 #: ../fish/guestfish-actions.pod:1235
21042 msgid "findfs-uuid"
21043 msgstr ""
21044
21045 # type: verbatim
21046 #: ../fish/guestfish-actions.pod:1237
21047 #, no-wrap
21048 msgid ""
21049 " findfs-uuid uuid\n"
21050 "\n"
21051 msgstr ""
21052
21053 # type: textblock
21054 #: ../fish/guestfish-actions.pod:1243
21055 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
21056 msgstr ""
21057
21058 # type: =head2
21059 #: ../fish/guestfish-actions.pod:1245
21060 msgid "fsck"
21061 msgstr ""
21062
21063 # type: verbatim
21064 #: ../fish/guestfish-actions.pod:1247
21065 #, no-wrap
21066 msgid ""
21067 " fsck fstype device\n"
21068 "\n"
21069 msgstr ""
21070
21071 # type: =head2
21072 #: ../fish/guestfish-actions.pod:1277
21073 msgid "get-append"
21074 msgstr ""
21075
21076 # type: verbatim
21077 #: ../fish/guestfish-actions.pod:1279
21078 #, no-wrap
21079 msgid ""
21080 " get-append\n"
21081 "\n"
21082 msgstr ""
21083
21084 # type: =head2
21085 #: ../fish/guestfish-actions.pod:1286
21086 msgid "get-autosync"
21087 msgstr ""
21088
21089 # type: verbatim
21090 #: ../fish/guestfish-actions.pod:1288
21091 #, no-wrap
21092 msgid ""
21093 " get-autosync\n"
21094 "\n"
21095 msgstr ""
21096
21097 # type: =head2
21098 #: ../fish/guestfish-actions.pod:1292
21099 msgid "get-direct"
21100 msgstr ""
21101
21102 # type: verbatim
21103 #: ../fish/guestfish-actions.pod:1294
21104 #, no-wrap
21105 msgid ""
21106 " get-direct\n"
21107 "\n"
21108 msgstr ""
21109
21110 # type: =head2
21111 #: ../fish/guestfish-actions.pod:1298
21112 msgid "get-e2label"
21113 msgstr ""
21114
21115 # type: verbatim
21116 #: ../fish/guestfish-actions.pod:1300
21117 #, no-wrap
21118 msgid ""
21119 " get-e2label device\n"
21120 "\n"
21121 msgstr ""
21122
21123 # type: =head2
21124 #: ../fish/guestfish-actions.pod:1312
21125 msgid "get-e2uuid"
21126 msgstr ""
21127
21128 # type: verbatim
21129 #: ../fish/guestfish-actions.pod:1314
21130 #, no-wrap
21131 msgid ""
21132 " get-e2uuid device\n"
21133 "\n"
21134 msgstr ""
21135
21136 # type: =head2
21137 #: ../fish/guestfish-actions.pod:1326
21138 msgid "get-memsize"
21139 msgstr ""
21140
21141 # type: verbatim
21142 #: ../fish/guestfish-actions.pod:1328
21143 #, no-wrap
21144 msgid ""
21145 " get-memsize\n"
21146 "\n"
21147 msgstr ""
21148
21149 # type: textblock
21150 #: ../fish/guestfish-actions.pod:1333
21151 msgid ""
21152 "If L</set-memsize> was not called on this handle, and if "
21153 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
21154 "value for memsize."
21155 msgstr ""
21156
21157 # type: =head2
21158 #: ../fish/guestfish-actions.pod:1340
21159 msgid "get-network"
21160 msgstr ""
21161
21162 # type: verbatim
21163 #: ../fish/guestfish-actions.pod:1342
21164 #, no-wrap
21165 msgid ""
21166 " get-network\n"
21167 "\n"
21168 msgstr ""
21169
21170 # type: =head2
21171 #: ../fish/guestfish-actions.pod:1346
21172 msgid "get-path"
21173 msgstr ""
21174
21175 # type: verbatim
21176 #: ../fish/guestfish-actions.pod:1348
21177 #, no-wrap
21178 msgid ""
21179 " get-path\n"
21180 "\n"
21181 msgstr ""
21182
21183 # type: =head2
21184 #: ../fish/guestfish-actions.pod:1355
21185 msgid "get-pid"
21186 msgstr ""
21187
21188 # type: =head2
21189 #: ../fish/guestfish-actions.pod:1357
21190 msgid "pid"
21191 msgstr ""
21192
21193 # type: verbatim
21194 #: ../fish/guestfish-actions.pod:1359
21195 #, no-wrap
21196 msgid ""
21197 " get-pid\n"
21198 "\n"
21199 msgstr ""
21200
21201 # type: =head2
21202 #: ../fish/guestfish-actions.pod:1366
21203 msgid "get-qemu"
21204 msgstr ""
21205
21206 # type: verbatim
21207 #: ../fish/guestfish-actions.pod:1368
21208 #, no-wrap
21209 msgid ""
21210 " get-qemu\n"
21211 "\n"
21212 msgstr ""
21213
21214 # type: =head2
21215 #: ../fish/guestfish-actions.pod:1375
21216 msgid "get-recovery-proc"
21217 msgstr ""
21218
21219 # type: verbatim
21220 #: ../fish/guestfish-actions.pod:1377
21221 #, no-wrap
21222 msgid ""
21223 " get-recovery-proc\n"
21224 "\n"
21225 msgstr ""
21226
21227 # type: =head2
21228 #: ../fish/guestfish-actions.pod:1381
21229 msgid "get-selinux"
21230 msgstr ""
21231
21232 # type: verbatim
21233 #: ../fish/guestfish-actions.pod:1383
21234 #, no-wrap
21235 msgid ""
21236 " get-selinux\n"
21237 "\n"
21238 msgstr ""
21239
21240 # type: textblock
21241 #: ../fish/guestfish-actions.pod:1385
21242 msgid ""
21243 "This returns the current setting of the selinux flag which is passed to the "
21244 "appliance at boot time.  See L</set-selinux>."
21245 msgstr ""
21246
21247 # type: =head2
21248 #: ../fish/guestfish-actions.pod:1391
21249 msgid "get-state"
21250 msgstr ""
21251
21252 # type: verbatim
21253 #: ../fish/guestfish-actions.pod:1393
21254 #, no-wrap
21255 msgid ""
21256 " get-state\n"
21257 "\n"
21258 msgstr ""
21259
21260 # type: =head2
21261 #: ../fish/guestfish-actions.pod:1400
21262 msgid "get-trace"
21263 msgstr ""
21264
21265 # type: verbatim
21266 #: ../fish/guestfish-actions.pod:1402
21267 #, no-wrap
21268 msgid ""
21269 " get-trace\n"
21270 "\n"
21271 msgstr ""
21272
21273 # type: =head2
21274 #: ../fish/guestfish-actions.pod:1406
21275 msgid "get-umask"
21276 msgstr ""
21277
21278 # type: verbatim
21279 #: ../fish/guestfish-actions.pod:1408
21280 #, no-wrap
21281 msgid ""
21282 " get-umask\n"
21283 "\n"
21284 msgstr ""
21285
21286 # type: textblock
21287 #: ../fish/guestfish-actions.pod:1410
21288 msgid ""
21289 "Return the current umask.  By default the umask is C<022> unless it has been "
21290 "set by calling L</umask>."
21291 msgstr ""
21292
21293 # type: =head2
21294 #: ../fish/guestfish-actions.pod:1413
21295 msgid "get-verbose"
21296 msgstr ""
21297
21298 # type: verbatim
21299 #: ../fish/guestfish-actions.pod:1415
21300 #, no-wrap
21301 msgid ""
21302 " get-verbose\n"
21303 "\n"
21304 msgstr ""
21305
21306 # type: =head2
21307 #: ../fish/guestfish-actions.pod:1419
21308 msgid "getcon"
21309 msgstr ""
21310
21311 # type: verbatim
21312 #: ../fish/guestfish-actions.pod:1421
21313 #, no-wrap
21314 msgid ""
21315 " getcon\n"
21316 "\n"
21317 msgstr ""
21318
21319 # type: textblock
21320 #: ../fish/guestfish-actions.pod:1425
21321 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
21322 msgstr ""
21323
21324 # type: =head2
21325 #: ../fish/guestfish-actions.pod:1428
21326 msgid "getxattr"
21327 msgstr ""
21328
21329 # type: verbatim
21330 #: ../fish/guestfish-actions.pod:1430
21331 #, no-wrap
21332 msgid ""
21333 " getxattr path name\n"
21334 "\n"
21335 msgstr ""
21336
21337 # type: textblock
21338 #: ../fish/guestfish-actions.pod:1432
21339 msgid ""
21340 "Get a single extended attribute from file C<path> named C<name>.  This call "
21341 "follows symlinks.  If you want to lookup an extended attribute for the "
21342 "symlink itself, use L</lgetxattr>."
21343 msgstr ""
21344
21345 # type: textblock
21346 #: ../fish/guestfish-actions.pod:1436 ../fish/guestfish-actions.pod:2263
21347 msgid ""
21348 "Normally it is better to get all extended attributes from a file in one go "
21349 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
21350 "buggy and do not provide a way to list out attributes.  For these "
21351 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
21352 "attributes you want in advance and call this function."
21353 msgstr ""
21354
21355 # type: textblock
21356 #: ../fish/guestfish-actions.pod:1446
21357 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
21358 msgstr ""
21359
21360 # type: =head2
21361 #: ../fish/guestfish-actions.pod:1448
21362 msgid "getxattrs"
21363 msgstr ""
21364
21365 # type: verbatim
21366 #: ../fish/guestfish-actions.pod:1450
21367 #, no-wrap
21368 msgid ""
21369 " getxattrs path\n"
21370 "\n"
21371 msgstr ""
21372
21373 # type: textblock
21374 #: ../fish/guestfish-actions.pod:1458
21375 msgid "See also: L</lgetxattrs>, L<attr(5)>."
21376 msgstr ""
21377
21378 # type: =head2
21379 #: ../fish/guestfish-actions.pod:1460
21380 msgid "glob-expand"
21381 msgstr ""
21382
21383 # type: verbatim
21384 #: ../fish/guestfish-actions.pod:1462
21385 #, no-wrap
21386 msgid ""
21387 " glob-expand pattern\n"
21388 "\n"
21389 msgstr ""
21390
21391 # type: =head2
21392 #: ../fish/guestfish-actions.pod:1475
21393 msgid "grep"
21394 msgstr ""
21395
21396 # type: verbatim
21397 #: ../fish/guestfish-actions.pod:1477
21398 #, no-wrap
21399 msgid ""
21400 " grep regex path\n"
21401 "\n"
21402 msgstr ""
21403
21404 # type: =head2
21405 #: ../fish/guestfish-actions.pod:1485
21406 msgid "grepi"
21407 msgstr ""
21408
21409 # type: verbatim
21410 #: ../fish/guestfish-actions.pod:1487
21411 #, no-wrap
21412 msgid ""
21413 " grepi regex path\n"
21414 "\n"
21415 msgstr ""
21416
21417 # type: =head2
21418 #: ../fish/guestfish-actions.pod:1495
21419 msgid "grub-install"
21420 msgstr ""
21421
21422 # type: verbatim
21423 #: ../fish/guestfish-actions.pod:1497
21424 #, no-wrap
21425 msgid ""
21426 " grub-install root device\n"
21427 "\n"
21428 msgstr ""
21429
21430 # type: =head2
21431 #: ../fish/guestfish-actions.pod:1513
21432 msgid "head"
21433 msgstr ""
21434
21435 # type: verbatim
21436 #: ../fish/guestfish-actions.pod:1515
21437 #, no-wrap
21438 msgid ""
21439 " head path\n"
21440 "\n"
21441 msgstr ""
21442
21443 # type: =head2
21444 #: ../fish/guestfish-actions.pod:1523
21445 msgid "head-n"
21446 msgstr ""
21447
21448 # type: verbatim
21449 #: ../fish/guestfish-actions.pod:1525
21450 #, no-wrap
21451 msgid ""
21452 " head-n nrlines path\n"
21453 "\n"
21454 msgstr ""
21455
21456 # type: =head2
21457 #: ../fish/guestfish-actions.pod:1538
21458 msgid "hexdump"
21459 msgstr ""
21460
21461 # type: verbatim
21462 #: ../fish/guestfish-actions.pod:1540
21463 #, no-wrap
21464 msgid ""
21465 " hexdump path\n"
21466 "\n"
21467 msgstr ""
21468
21469 # type: =head2
21470 #: ../fish/guestfish-actions.pod:1548
21471 msgid "initrd-cat"
21472 msgstr ""
21473
21474 # type: verbatim
21475 #: ../fish/guestfish-actions.pod:1550
21476 #, no-wrap
21477 msgid ""
21478 " initrd-cat initrdpath filename\n"
21479 "\n"
21480 msgstr ""
21481
21482 # type: textblock
21483 #: ../fish/guestfish-actions.pod:1562
21484 msgid "See also L</initrd-list>."
21485 msgstr ""
21486
21487 # type: =head2
21488 #: ../fish/guestfish-actions.pod:1567
21489 msgid "initrd-list"
21490 msgstr ""
21491
21492 # type: verbatim
21493 #: ../fish/guestfish-actions.pod:1569
21494 #, no-wrap
21495 msgid ""
21496 " initrd-list path\n"
21497 "\n"
21498 msgstr ""
21499
21500 # type: =head2
21501 #: ../fish/guestfish-actions.pod:1581
21502 msgid "inotify-add-watch"
21503 msgstr ""
21504
21505 # type: verbatim
21506 #: ../fish/guestfish-actions.pod:1583
21507 #, no-wrap
21508 msgid ""
21509 " inotify-add-watch path mask\n"
21510 "\n"
21511 msgstr ""
21512
21513 # type: =head2
21514 #: ../fish/guestfish-actions.pod:1595
21515 msgid "inotify-close"
21516 msgstr ""
21517
21518 # type: verbatim
21519 #: ../fish/guestfish-actions.pod:1597
21520 #, no-wrap
21521 msgid ""
21522 " inotify-close\n"
21523 "\n"
21524 msgstr ""
21525
21526 # type: =head2
21527 #: ../fish/guestfish-actions.pod:1603
21528 msgid "inotify-files"
21529 msgstr ""
21530
21531 # type: verbatim
21532 #: ../fish/guestfish-actions.pod:1605
21533 #, no-wrap
21534 msgid ""
21535 " inotify-files\n"
21536 "\n"
21537 msgstr ""
21538
21539 # type: textblock
21540 #: ../fish/guestfish-actions.pod:1607
21541 msgid ""
21542 "This function is a helpful wrapper around L</inotify-read> which just "
21543 "returns a list of pathnames of objects that were touched.  The returned "
21544 "pathnames are sorted and deduplicated."
21545 msgstr ""
21546
21547 # type: =head2
21548 #: ../fish/guestfish-actions.pod:1611
21549 msgid "inotify-init"
21550 msgstr ""
21551
21552 # type: verbatim
21553 #: ../fish/guestfish-actions.pod:1613
21554 #, no-wrap
21555 msgid ""
21556 " inotify-init maxevents\n"
21557 "\n"
21558 msgstr ""
21559
21560 # type: textblock
21561 #: ../fish/guestfish-actions.pod:1619
21562 msgid ""
21563 "C<maxevents> is the maximum number of events which will be queued up between "
21564 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21565 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21566 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21567 "but records the fact that it threw them away by setting a flag "
21568 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21569 msgstr ""
21570
21571 # type: textblock
21572 #: ../fish/guestfish-actions.pod:1629
21573 msgid ""
21574 "Before any events are generated, you have to add some watches to the "
21575 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21576 "L</inotify-watch-all>."
21577 msgstr ""
21578
21579 # type: textblock
21580 #: ../fish/guestfish-actions.pod:1635
21581 msgid ""
21582 "Queued up events should be read periodically by calling L</inotify-read> (or "
21583 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21584 "If you don't read the events out often enough then you risk the internal "
21585 "queue overflowing."
21586 msgstr ""
21587
21588 # type: textblock
21589 #: ../fish/guestfish-actions.pod:1642
21590 msgid ""
21591 "The handle should be closed after use by calling L</inotify-close>.  This "
21592 "also removes any watches automatically."
21593 msgstr ""
21594
21595 # type: =head2
21596 #: ../fish/guestfish-actions.pod:1651
21597 msgid "inotify-read"
21598 msgstr ""
21599
21600 # type: verbatim
21601 #: ../fish/guestfish-actions.pod:1653
21602 #, no-wrap
21603 msgid ""
21604 " inotify-read\n"
21605 "\n"
21606 msgstr ""
21607
21608 # type: =head2
21609 #: ../fish/guestfish-actions.pod:1666
21610 msgid "inotify-rm-watch"
21611 msgstr ""
21612
21613 # type: verbatim
21614 #: ../fish/guestfish-actions.pod:1668
21615 #, no-wrap
21616 msgid ""
21617 " inotify-rm-watch wd\n"
21618 "\n"
21619 msgstr ""
21620
21621 # type: textblock
21622 #: ../fish/guestfish-actions.pod:1670
21623 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21624 msgstr ""
21625
21626 # type: =head2
21627 #: ../fish/guestfish-actions.pod:1673
21628 msgid "inspect-get-arch"
21629 msgstr ""
21630
21631 # type: verbatim
21632 #: ../fish/guestfish-actions.pod:1675
21633 #, no-wrap
21634 msgid ""
21635 " inspect-get-arch root\n"
21636 "\n"
21637 msgstr ""
21638
21639 # type: textblock
21640 #: ../fish/guestfish-actions.pod:1677 ../fish/guestfish-actions.pod:1693
21641 #: ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1785
21642 #: ../fish/guestfish-actions.pod:1800 ../fish/guestfish-actions.pod:1821
21643 #: ../fish/guestfish-actions.pod:1836 ../fish/guestfish-actions.pod:1859
21644 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:1905
21645 #: ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1970
21646 #: ../fish/guestfish-actions.pod:1986
21647 msgid ""
21648 "This function should only be called with a root device string as returned by "
21649 "L</inspect-os>."
21650 msgstr ""
21651
21652 # type: textblock
21653 #: ../fish/guestfish-actions.pod:1680
21654 msgid ""
21655 "This returns the architecture of the inspected operating system.  The "
21656 "possible return values are listed under L</file-architecture>."
21657 msgstr ""
21658
21659 # type: =head2
21660 #: ../fish/guestfish-actions.pod:1689
21661 msgid "inspect-get-distro"
21662 msgstr ""
21663
21664 # type: verbatim
21665 #: ../fish/guestfish-actions.pod:1691
21666 #, no-wrap
21667 msgid ""
21668 " inspect-get-distro root\n"
21669 "\n"
21670 msgstr ""
21671
21672 # type: =head2
21673 #: ../fish/guestfish-actions.pod:1763
21674 msgid "inspect-get-filesystems"
21675 msgstr ""
21676
21677 # type: verbatim
21678 #: ../fish/guestfish-actions.pod:1765
21679 #, no-wrap
21680 msgid ""
21681 " inspect-get-filesystems root\n"
21682 "\n"
21683 msgstr ""
21684
21685 # type: textblock
21686 #: ../fish/guestfish-actions.pod:1778
21687 msgid ""
21688 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21689 "get-mountpoints>."
21690 msgstr ""
21691
21692 # type: =head2
21693 #: ../fish/guestfish-actions.pod:1781
21694 msgid "inspect-get-hostname"
21695 msgstr ""
21696
21697 # type: verbatim
21698 #: ../fish/guestfish-actions.pod:1783
21699 #, no-wrap
21700 msgid ""
21701 " inspect-get-hostname root\n"
21702 "\n"
21703 msgstr ""
21704
21705 # type: =head2
21706 #: ../fish/guestfish-actions.pod:1796
21707 msgid "inspect-get-major-version"
21708 msgstr ""
21709
21710 # type: verbatim
21711 #: ../fish/guestfish-actions.pod:1798
21712 #, no-wrap
21713 msgid ""
21714 " inspect-get-major-version root\n"
21715 "\n"
21716 msgstr ""
21717
21718 # type: =head2
21719 #: ../fish/guestfish-actions.pod:1817
21720 msgid "inspect-get-minor-version"
21721 msgstr ""
21722
21723 # type: verbatim
21724 #: ../fish/guestfish-actions.pod:1819
21725 #, no-wrap
21726 msgid ""
21727 " inspect-get-minor-version root\n"
21728 "\n"
21729 msgstr ""
21730
21731 # type: textblock
21732 #: ../fish/guestfish-actions.pod:1829
21733 msgid ""
21734 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21735 "get-major-version>."
21736 msgstr ""
21737
21738 # type: =head2
21739 #: ../fish/guestfish-actions.pod:1832
21740 msgid "inspect-get-mountpoints"
21741 msgstr ""
21742
21743 # type: verbatim
21744 #: ../fish/guestfish-actions.pod:1834
21745 #, no-wrap
21746 msgid ""
21747 " inspect-get-mountpoints root\n"
21748 "\n"
21749 msgstr ""
21750
21751 # type: textblock
21752 #: ../fish/guestfish-actions.pod:1852
21753 msgid ""
21754 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21755 "get-filesystems>."
21756 msgstr ""
21757
21758 # type: =head2
21759 #: ../fish/guestfish-actions.pod:1855
21760 msgid "inspect-get-package-format"
21761 msgstr ""
21762
21763 # type: verbatim
21764 #: ../fish/guestfish-actions.pod:1857
21765 #, no-wrap
21766 msgid ""
21767 " inspect-get-package-format root\n"
21768 "\n"
21769 msgstr ""
21770
21771 # type: textblock
21772 #: ../fish/guestfish-actions.pod:1862
21773 msgid ""
21774 "This function and L</inspect-get-package-management> return the package "
21775 "format and package management tool used by the inspected operating system.  "
21776 "For example for Fedora these functions would return C<rpm> (package format) "
21777 "and C<yum> (package management)."
21778 msgstr ""
21779
21780 # type: =head2
21781 #: ../fish/guestfish-actions.pod:1877
21782 msgid "inspect-get-package-management"
21783 msgstr ""
21784
21785 # type: verbatim
21786 #: ../fish/guestfish-actions.pod:1879
21787 #, no-wrap
21788 msgid ""
21789 " inspect-get-package-management root\n"
21790 "\n"
21791 msgstr ""
21792
21793 # type: textblock
21794 #: ../fish/guestfish-actions.pod:1884
21795 msgid ""
21796 "L</inspect-get-package-format> and this function return the package format "
21797 "and package management tool used by the inspected operating system.  For "
21798 "example for Fedora these functions would return C<rpm> (package format) and "
21799 "C<yum> (package management)."
21800 msgstr ""
21801
21802 # type: =head2
21803 #: ../fish/guestfish-actions.pod:1901
21804 msgid "inspect-get-product-name"
21805 msgstr ""
21806
21807 # type: verbatim
21808 #: ../fish/guestfish-actions.pod:1903
21809 #, no-wrap
21810 msgid ""
21811 " inspect-get-product-name root\n"
21812 "\n"
21813 msgstr ""
21814
21815 # type: =head2
21816 #: ../fish/guestfish-actions.pod:1918
21817 msgid "inspect-get-roots"
21818 msgstr ""
21819
21820 # type: verbatim
21821 #: ../fish/guestfish-actions.pod:1920
21822 #, no-wrap
21823 msgid ""
21824 " inspect-get-roots\n"
21825 "\n"
21826 msgstr ""
21827
21828 # type: textblock
21829 #: ../fish/guestfish-actions.pod:1922
21830 msgid ""
21831 "This function is a convenient way to get the list of root devices, as "
21832 "returned from a previous call to L</inspect-os>, but without redoing the "
21833 "whole inspection process."
21834 msgstr ""
21835
21836 # type: textblock
21837 #: ../fish/guestfish-actions.pod:1926
21838 msgid ""
21839 "This returns an empty list if either no root devices were found or the "
21840 "caller has not called L</inspect-os>."
21841 msgstr ""
21842
21843 # type: =head2
21844 #: ../fish/guestfish-actions.pod:1931
21845 msgid "inspect-get-type"
21846 msgstr ""
21847
21848 # type: verbatim
21849 #: ../fish/guestfish-actions.pod:1933
21850 #, no-wrap
21851 msgid ""
21852 " inspect-get-type root\n"
21853 "\n"
21854 msgstr ""
21855
21856 # type: =head2
21857 #: ../fish/guestfish-actions.pod:1966
21858 msgid "inspect-get-windows-systemroot"
21859 msgstr ""
21860
21861 # type: verbatim
21862 #: ../fish/guestfish-actions.pod:1968
21863 #, no-wrap
21864 msgid ""
21865 " inspect-get-windows-systemroot root\n"
21866 "\n"
21867 msgstr ""
21868
21869 # type: =head2
21870 #: ../fish/guestfish-actions.pod:1982
21871 msgid "inspect-list-applications"
21872 msgstr ""
21873
21874 # type: verbatim
21875 #: ../fish/guestfish-actions.pod:1984
21876 #, no-wrap
21877 msgid ""
21878 " inspect-list-applications root\n"
21879 "\n"
21880 msgstr ""
21881
21882 # type: textblock
21883 #: ../fish/guestfish-actions.pod:1991
21884 msgid ""
21885 "I<Note:> This call works differently from other parts of the inspection "
21886 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21887 "then mount up the disks, before calling this.  Listing applications is a "
21888 "significantly more difficult operation which requires access to the full "
21889 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21890 "are just returning data cached in the libguestfs handle, this call actually "
21891 "reads parts of the mounted filesystems during the call."
21892 msgstr ""
21893
21894 # type: =head2
21895 #: ../fish/guestfish-actions.pod:2081
21896 msgid "inspect-os"
21897 msgstr ""
21898
21899 # type: verbatim
21900 #: ../fish/guestfish-actions.pod:2083
21901 #, no-wrap
21902 msgid ""
21903 " inspect-os\n"
21904 "\n"
21905 msgstr ""
21906
21907 # type: textblock
21908 #: ../fish/guestfish-actions.pod:2098
21909 msgid ""
21910 "You can pass the root string(s) returned to other L</inspect-get-*> "
21911 "functions in order to query further information about each operating system, "
21912 "such as the name and version."
21913 msgstr ""
21914
21915 # type: textblock
21916 #: ../fish/guestfish-actions.pod:2103
21917 msgid ""
21918 "This function uses other libguestfs features such as L</mount-ro> and L</"
21919 "umount-all> in order to mount and unmount filesystems and look at the "
21920 "contents.  This should be called with no disks currently mounted.  The "
21921 "function may also use Augeas, so any existing Augeas handle will be closed."
21922 msgstr ""
21923
21924 # type: textblock
21925 #: ../fish/guestfish-actions.pod:2115 ../fish/guestfish-actions.pod:2291
21926 #: ../fish/guestfish-actions.pod:2337
21927 msgid "See also L</list-filesystems>."
21928 msgstr ""
21929
21930 # type: =head2
21931 #: ../fish/guestfish-actions.pod:2117
21932 msgid "is-blockdev"
21933 msgstr ""
21934
21935 # type: verbatim
21936 #: ../fish/guestfish-actions.pod:2119
21937 #, no-wrap
21938 msgid ""
21939 " is-blockdev path\n"
21940 "\n"
21941 msgstr ""
21942
21943 # type: textblock
21944 #: ../fish/guestfish-actions.pod:2124 ../fish/guestfish-actions.pod:2142
21945 #: ../fish/guestfish-actions.pod:2161 ../fish/guestfish-actions.pod:2170
21946 #: ../fish/guestfish-actions.pod:2180 ../fish/guestfish-actions.pod:2214
21947 #: ../fish/guestfish-actions.pod:2223
21948 msgid "See also L</stat>."
21949 msgstr ""
21950
21951 # type: =head2
21952 #: ../fish/guestfish-actions.pod:2126
21953 msgid "is-busy"
21954 msgstr ""
21955
21956 # type: verbatim
21957 #: ../fish/guestfish-actions.pod:2128
21958 #, no-wrap
21959 msgid ""
21960 " is-busy\n"
21961 "\n"
21962 msgstr ""
21963
21964 # type: =head2
21965 #: ../fish/guestfish-actions.pod:2135
21966 msgid "is-chardev"
21967 msgstr ""
21968
21969 # type: verbatim
21970 #: ../fish/guestfish-actions.pod:2137
21971 #, no-wrap
21972 msgid ""
21973 " is-chardev path\n"
21974 "\n"
21975 msgstr ""
21976
21977 # type: =head2
21978 #: ../fish/guestfish-actions.pod:2144
21979 msgid "is-config"
21980 msgstr ""
21981
21982 # type: verbatim
21983 #: ../fish/guestfish-actions.pod:2146
21984 #, no-wrap
21985 msgid ""
21986 " is-config\n"
21987 "\n"
21988 msgstr ""
21989
21990 # type: =head2
21991 #: ../fish/guestfish-actions.pod:2153
21992 msgid "is-dir"
21993 msgstr ""
21994
21995 # type: verbatim
21996 #: ../fish/guestfish-actions.pod:2155
21997 #, no-wrap
21998 msgid ""
21999 " is-dir path\n"
22000 "\n"
22001 msgstr ""
22002
22003 # type: =head2
22004 #: ../fish/guestfish-actions.pod:2163
22005 msgid "is-fifo"
22006 msgstr ""
22007
22008 # type: verbatim
22009 #: ../fish/guestfish-actions.pod:2165
22010 #, no-wrap
22011 msgid ""
22012 " is-fifo path\n"
22013 "\n"
22014 msgstr ""
22015
22016 # type: =head2
22017 #: ../fish/guestfish-actions.pod:2172
22018 msgid "is-file"
22019 msgstr ""
22020
22021 # type: verbatim
22022 #: ../fish/guestfish-actions.pod:2174
22023 #, no-wrap
22024 msgid ""
22025 " is-file path\n"
22026 "\n"
22027 msgstr ""
22028
22029 # type: =head2
22030 #: ../fish/guestfish-actions.pod:2182
22031 msgid "is-launching"
22032 msgstr ""
22033
22034 # type: verbatim
22035 #: ../fish/guestfish-actions.pod:2184
22036 #, no-wrap
22037 msgid ""
22038 " is-launching\n"
22039 "\n"
22040 msgstr ""
22041
22042 # type: =head2
22043 #: ../fish/guestfish-actions.pod:2191
22044 msgid "is-lv"
22045 msgstr ""
22046
22047 # type: verbatim
22048 #: ../fish/guestfish-actions.pod:2193
22049 #, no-wrap
22050 msgid ""
22051 " is-lv device\n"
22052 "\n"
22053 msgstr ""
22054
22055 # type: =head2
22056 #: ../fish/guestfish-actions.pod:2198
22057 msgid "is-ready"
22058 msgstr ""
22059
22060 # type: verbatim
22061 #: ../fish/guestfish-actions.pod:2200
22062 #, no-wrap
22063 msgid ""
22064 " is-ready\n"
22065 "\n"
22066 msgstr ""
22067
22068 # type: =head2
22069 #: ../fish/guestfish-actions.pod:2207
22070 msgid "is-socket"
22071 msgstr ""
22072
22073 # type: verbatim
22074 #: ../fish/guestfish-actions.pod:2209
22075 #, no-wrap
22076 msgid ""
22077 " is-socket path\n"
22078 "\n"
22079 msgstr ""
22080
22081 # type: =head2
22082 #: ../fish/guestfish-actions.pod:2216
22083 msgid "is-symlink"
22084 msgstr ""
22085
22086 # type: verbatim
22087 #: ../fish/guestfish-actions.pod:2218
22088 #, no-wrap
22089 msgid ""
22090 " is-symlink path\n"
22091 "\n"
22092 msgstr ""
22093
22094 # type: =head2
22095 #: ../fish/guestfish-actions.pod:2225
22096 msgid "kill-subprocess"
22097 msgstr ""
22098
22099 # type: verbatim
22100 #: ../fish/guestfish-actions.pod:2227
22101 #, no-wrap
22102 msgid ""
22103 " kill-subprocess\n"
22104 "\n"
22105 msgstr ""
22106
22107 # type: =head2
22108 #: ../fish/guestfish-actions.pod:2231
22109 msgid "launch"
22110 msgstr ""
22111
22112 # type: =head2
22113 #: ../fish/guestfish-actions.pod:2233
22114 msgid "run"
22115 msgstr ""
22116
22117 # type: verbatim
22118 #: ../fish/guestfish-actions.pod:2235
22119 #, no-wrap
22120 msgid ""
22121 " launch\n"
22122 "\n"
22123 msgstr ""
22124
22125 # type: =head2
22126 #: ../fish/guestfish-actions.pod:2243
22127 msgid "lchown"
22128 msgstr ""
22129
22130 # type: verbatim
22131 #: ../fish/guestfish-actions.pod:2245
22132 #, no-wrap
22133 msgid ""
22134 " lchown owner group path\n"
22135 "\n"
22136 msgstr ""
22137
22138 # type: textblock
22139 #: ../fish/guestfish-actions.pod:2247
22140 msgid ""
22141 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
22142 "chown> but if C<path> is a symlink then the link itself is changed, not the "
22143 "target."
22144 msgstr ""
22145
22146 # type: =head2
22147 #: ../fish/guestfish-actions.pod:2255
22148 msgid "lgetxattr"
22149 msgstr ""
22150
22151 # type: verbatim
22152 #: ../fish/guestfish-actions.pod:2257
22153 #, no-wrap
22154 msgid ""
22155 " lgetxattr path name\n"
22156 "\n"
22157 msgstr ""
22158
22159 # type: textblock
22160 #: ../fish/guestfish-actions.pod:2273
22161 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
22162 msgstr ""
22163
22164 # type: =head2
22165 #: ../fish/guestfish-actions.pod:2275
22166 msgid "lgetxattrs"
22167 msgstr ""
22168
22169 # type: verbatim
22170 #: ../fish/guestfish-actions.pod:2277
22171 #, no-wrap
22172 msgid ""
22173 " lgetxattrs path\n"
22174 "\n"
22175 msgstr ""
22176
22177 # type: textblock
22178 #: ../fish/guestfish-actions.pod:2279
22179 msgid ""
22180 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
22181 "it returns the extended attributes of the link itself."
22182 msgstr ""
22183
22184 # type: =head2
22185 #: ../fish/guestfish-actions.pod:2283
22186 msgid "list-devices"
22187 msgstr ""
22188
22189 # type: verbatim
22190 #: ../fish/guestfish-actions.pod:2285
22191 #, no-wrap
22192 msgid ""
22193 " list-devices\n"
22194 "\n"
22195 msgstr ""
22196
22197 # type: =head2
22198 #: ../fish/guestfish-actions.pod:2293
22199 msgid "list-filesystems"
22200 msgstr ""
22201
22202 # type: verbatim
22203 #: ../fish/guestfish-actions.pod:2295
22204 #, no-wrap
22205 msgid ""
22206 " list-filesystems\n"
22207 "\n"
22208 msgstr ""
22209
22210 # type: textblock
22211 #: ../fish/guestfish-actions.pod:2314
22212 msgid ""
22213 "This command runs other libguestfs commands, which might include L</mount> "
22214 "and L</umount>, and therefore you should use this soon after launch and only "
22215 "when nothing is mounted."
22216 msgstr ""
22217
22218 # type: textblock
22219 #: ../fish/guestfish-actions.pod:2318
22220 msgid ""
22221 "Not all of the filesystems returned will be mountable.  In particular, swap "
22222 "partitions are returned in the list.  Also this command does not check that "
22223 "each filesystem found is valid and mountable, and some filesystems might be "
22224 "mountable but require special options.  Filesystems may not all belong to a "
22225 "single logical operating system (use L</inspect-os> to look for OSes)."
22226 msgstr ""
22227
22228 # type: =head2
22229 #: ../fish/guestfish-actions.pod:2326
22230 msgid "list-partitions"
22231 msgstr ""
22232
22233 # type: verbatim
22234 #: ../fish/guestfish-actions.pod:2328
22235 #, no-wrap
22236 msgid ""
22237 " list-partitions\n"
22238 "\n"
22239 msgstr ""
22240
22241 # type: textblock
22242 #: ../fish/guestfish-actions.pod:2334
22243 msgid ""
22244 "This does not return logical volumes.  For that you will need to call L</"
22245 "lvs>."
22246 msgstr ""
22247
22248 # type: =head2
22249 #: ../fish/guestfish-actions.pod:2339
22250 msgid "ll"
22251 msgstr ""
22252
22253 # type: verbatim
22254 #: ../fish/guestfish-actions.pod:2341
22255 #, no-wrap
22256 msgid ""
22257 " ll directory\n"
22258 "\n"
22259 msgstr ""
22260
22261 # type: =head2
22262 #: ../fish/guestfish-actions.pod:2349
22263 msgid "ln"
22264 msgstr ""
22265
22266 # type: verbatim
22267 #: ../fish/guestfish-actions.pod:2351
22268 #, no-wrap
22269 msgid ""
22270 " ln target linkname\n"
22271 "\n"
22272 msgstr ""
22273
22274 # type: =head2
22275 #: ../fish/guestfish-actions.pod:2355
22276 msgid "ln-f"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #: ../fish/guestfish-actions.pod:2357
22281 #, no-wrap
22282 msgid ""
22283 " ln-f target linkname\n"
22284 "\n"
22285 msgstr ""
22286
22287 # type: =head2
22288 #: ../fish/guestfish-actions.pod:2362
22289 msgid "ln-s"
22290 msgstr ""
22291
22292 # type: verbatim
22293 #: ../fish/guestfish-actions.pod:2364
22294 #, no-wrap
22295 msgid ""
22296 " ln-s target linkname\n"
22297 "\n"
22298 msgstr ""
22299
22300 # type: =head2
22301 #: ../fish/guestfish-actions.pod:2368
22302 msgid "ln-sf"
22303 msgstr ""
22304
22305 # type: verbatim
22306 #: ../fish/guestfish-actions.pod:2370
22307 #, no-wrap
22308 msgid ""
22309 " ln-sf target linkname\n"
22310 "\n"
22311 msgstr ""
22312
22313 # type: =head2
22314 #: ../fish/guestfish-actions.pod:2375
22315 msgid "lremovexattr"
22316 msgstr ""
22317
22318 # type: verbatim
22319 #: ../fish/guestfish-actions.pod:2377
22320 #, no-wrap
22321 msgid ""
22322 " lremovexattr xattr path\n"
22323 "\n"
22324 msgstr ""
22325
22326 # type: textblock
22327 #: ../fish/guestfish-actions.pod:2379
22328 msgid ""
22329 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
22330 "it removes an extended attribute of the link itself."
22331 msgstr ""
22332
22333 # type: =head2
22334 #: ../fish/guestfish-actions.pod:2383
22335 msgid "ls"
22336 msgstr ""
22337
22338 # type: verbatim
22339 #: ../fish/guestfish-actions.pod:2385
22340 #, no-wrap
22341 msgid ""
22342 " ls directory\n"
22343 "\n"
22344 msgstr ""
22345
22346 # type: textblock
22347 #: ../fish/guestfish-actions.pod:2391
22348 msgid ""
22349 "This command is mostly useful for interactive sessions.  Programs should "
22350 "probably use L</readdir> instead."
22351 msgstr ""
22352
22353 # type: =head2
22354 #: ../fish/guestfish-actions.pod:2394
22355 msgid "lsetxattr"
22356 msgstr ""
22357
22358 # type: verbatim
22359 #: ../fish/guestfish-actions.pod:2396
22360 #, no-wrap
22361 msgid ""
22362 " lsetxattr xattr val vallen path\n"
22363 "\n"
22364 msgstr ""
22365
22366 # type: textblock
22367 #: ../fish/guestfish-actions.pod:2398
22368 msgid ""
22369 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
22370 "sets an extended attribute of the link itself."
22371 msgstr ""
22372
22373 # type: =head2
22374 #: ../fish/guestfish-actions.pod:2402
22375 msgid "lstat"
22376 msgstr ""
22377
22378 # type: verbatim
22379 #: ../fish/guestfish-actions.pod:2404
22380 #, no-wrap
22381 msgid ""
22382 " lstat path\n"
22383 "\n"
22384 msgstr ""
22385
22386 # type: textblock
22387 #: ../fish/guestfish-actions.pod:2408
22388 msgid ""
22389 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
22390 "the link is stat-ed, not the file it refers to."
22391 msgstr ""
22392
22393 # type: =head2
22394 #: ../fish/guestfish-actions.pod:2414
22395 msgid "lstatlist"
22396 msgstr ""
22397
22398 # type: verbatim
22399 #: ../fish/guestfish-actions.pod:2416
22400 #, no-wrap
22401 msgid ""
22402 " lstatlist path 'names ...'\n"
22403 "\n"
22404 msgstr ""
22405
22406 # type: textblock
22407 #: ../fish/guestfish-actions.pod:2418
22408 msgid ""
22409 "This call allows you to perform the L</lstat> operation on multiple files, "
22410 "where all files are in the directory C<path>.  C<names> is the list of files "
22411 "from this directory."
22412 msgstr ""
22413
22414 # type: textblock
22415 #: ../fish/guestfish-actions.pod:2427
22416 msgid ""
22417 "This call is intended for programs that want to efficiently list a directory "
22418 "contents without making many round-trips.  See also L</lxattrlist> for a "
22419 "similarly efficient call for getting extended attributes.  Very long "
22420 "directory listings might cause the protocol message size to be exceeded, "
22421 "causing this call to fail.  The caller must split up such requests into "
22422 "smaller groups of names."
22423 msgstr ""
22424
22425 # type: =head2
22426 #: ../fish/guestfish-actions.pod:2435
22427 msgid "luks-add-key"
22428 msgstr ""
22429
22430 # type: verbatim
22431 #: ../fish/guestfish-actions.pod:2437
22432 #, no-wrap
22433 msgid ""
22434 " luks-add-key device keyslot\n"
22435 "\n"
22436 msgstr ""
22437
22438 # type: textblock
22439 #: ../fish/guestfish-actions.pod:2444
22440 msgid ""
22441 "Note that if C<keyslot> already contains a key, then this command will "
22442 "fail.  You have to use L</luks-kill-slot> first to remove that key."
22443 msgstr ""
22444
22445 # type: textblock
22446 #: ../fish/guestfish-actions.pod:2448 ../fish/guestfish-actions.pod:2470
22447 #: ../fish/guestfish-actions.pod:2483 ../fish/guestfish-actions.pod:2497
22448 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2530
22449 msgid ""
22450 "This command has one or more key or passphrase parameters.  Guestfish will "
22451 "prompt for these separately."
22452 msgstr ""
22453
22454 # type: =head2
22455 #: ../fish/guestfish-actions.pod:2451
22456 msgid "luks-close"
22457 msgstr ""
22458
22459 # type: verbatim
22460 #: ../fish/guestfish-actions.pod:2453
22461 #, no-wrap
22462 msgid ""
22463 " luks-close device\n"
22464 "\n"
22465 msgstr ""
22466
22467 # type: textblock
22468 #: ../fish/guestfish-actions.pod:2455
22469 msgid ""
22470 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
22471 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
22472 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
22473 "block device."
22474 msgstr ""
22475
22476 # type: =head2
22477 #: ../fish/guestfish-actions.pod:2461
22478 msgid "luks-format"
22479 msgstr ""
22480
22481 # type: verbatim
22482 #: ../fish/guestfish-actions.pod:2463
22483 #, no-wrap
22484 msgid ""
22485 " luks-format device keyslot\n"
22486 "\n"
22487 msgstr ""
22488
22489 # type: =head2
22490 #: ../fish/guestfish-actions.pod:2476
22491 msgid "luks-format-cipher"
22492 msgstr ""
22493
22494 # type: verbatim
22495 #: ../fish/guestfish-actions.pod:2478
22496 #, no-wrap
22497 msgid ""
22498 " luks-format-cipher device keyslot cipher\n"
22499 "\n"
22500 msgstr ""
22501
22502 # type: textblock
22503 #: ../fish/guestfish-actions.pod:2480
22504 msgid ""
22505 "This command is the same as L</luks-format> but it also allows you to set "
22506 "the C<cipher> used."
22507 msgstr ""
22508
22509 # type: =head2
22510 #: ../fish/guestfish-actions.pod:2489
22511 msgid "luks-kill-slot"
22512 msgstr ""
22513
22514 # type: verbatim
22515 #: ../fish/guestfish-actions.pod:2491
22516 #, no-wrap
22517 msgid ""
22518 " luks-kill-slot device keyslot\n"
22519 "\n"
22520 msgstr ""
22521
22522 # type: =head2
22523 #: ../fish/guestfish-actions.pod:2500
22524 msgid "luks-open"
22525 msgstr ""
22526
22527 # type: verbatim
22528 #: ../fish/guestfish-actions.pod:2502
22529 #, no-wrap
22530 msgid ""
22531 " luks-open device mapname\n"
22532 "\n"
22533 msgstr ""
22534
22535 # type: textblock
22536 #: ../fish/guestfish-actions.pod:2516
22537 msgid ""
22538 "If this block device contains LVM volume groups, then calling L</vgscan> "
22539 "followed by L</vg-activate-all> will make them visible."
22540 msgstr ""
22541
22542 # type: =head2
22543 #: ../fish/guestfish-actions.pod:2523
22544 msgid "luks-open-ro"
22545 msgstr ""
22546
22547 # type: verbatim
22548 #: ../fish/guestfish-actions.pod:2525
22549 #, no-wrap
22550 msgid ""
22551 " luks-open-ro device mapname\n"
22552 "\n"
22553 msgstr ""
22554
22555 # type: textblock
22556 #: ../fish/guestfish-actions.pod:2527
22557 msgid ""
22558 "This is the same as L</luks-open> except that a read-only mapping is created."
22559 msgstr ""
22560
22561 # type: =head2
22562 #: ../fish/guestfish-actions.pod:2533
22563 msgid "lvcreate"
22564 msgstr ""
22565
22566 # type: verbatim
22567 #: ../fish/guestfish-actions.pod:2535
22568 #, no-wrap
22569 msgid ""
22570 " lvcreate logvol volgroup mbytes\n"
22571 "\n"
22572 msgstr ""
22573
22574 # type: =head2
22575 #: ../fish/guestfish-actions.pod:2540
22576 msgid "lvm-canonical-lv-name"
22577 msgstr ""
22578
22579 # type: verbatim
22580 #: ../fish/guestfish-actions.pod:2542
22581 #, no-wrap
22582 msgid ""
22583 " lvm-canonical-lv-name lvname\n"
22584 "\n"
22585 msgstr ""
22586
22587 # type: textblock
22588 #: ../fish/guestfish-actions.pod:2551
22589 msgid "See also L</is-lv>."
22590 msgstr ""
22591
22592 # type: =head2
22593 #: ../fish/guestfish-actions.pod:2553
22594 msgid "lvm-clear-filter"
22595 msgstr ""
22596
22597 # type: verbatim
22598 #: ../fish/guestfish-actions.pod:2555
22599 #, no-wrap
22600 msgid ""
22601 " lvm-clear-filter\n"
22602 "\n"
22603 msgstr ""
22604
22605 # type: textblock
22606 #: ../fish/guestfish-actions.pod:2557
22607 msgid ""
22608 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22609 "block device."
22610 msgstr ""
22611
22612 # type: =head2
22613 #: ../fish/guestfish-actions.pod:2563
22614 msgid "lvm-remove-all"
22615 msgstr ""
22616
22617 # type: verbatim
22618 #: ../fish/guestfish-actions.pod:2565
22619 #, no-wrap
22620 msgid ""
22621 " lvm-remove-all\n"
22622 "\n"
22623 msgstr ""
22624
22625 # type: =head2
22626 #: ../fish/guestfish-actions.pod:2573
22627 msgid "lvm-set-filter"
22628 msgstr ""
22629
22630 # type: verbatim
22631 #: ../fish/guestfish-actions.pod:2575
22632 #, no-wrap
22633 msgid ""
22634 " lvm-set-filter 'devices ...'\n"
22635 "\n"
22636 msgstr ""
22637
22638 # type: =head2
22639 #: ../fish/guestfish-actions.pod:2600
22640 msgid "lvremove"
22641 msgstr ""
22642
22643 # type: verbatim
22644 #: ../fish/guestfish-actions.pod:2602
22645 #, no-wrap
22646 msgid ""
22647 " lvremove device\n"
22648 "\n"
22649 msgstr ""
22650
22651 # type: =head2
22652 #: ../fish/guestfish-actions.pod:2610
22653 msgid "lvrename"
22654 msgstr ""
22655
22656 # type: verbatim
22657 #: ../fish/guestfish-actions.pod:2612
22658 #, no-wrap
22659 msgid ""
22660 " lvrename logvol newlogvol\n"
22661 "\n"
22662 msgstr ""
22663
22664 # type: =head2
22665 #: ../fish/guestfish-actions.pod:2616
22666 msgid "lvresize"
22667 msgstr ""
22668
22669 # type: verbatim
22670 #: ../fish/guestfish-actions.pod:2618
22671 #, no-wrap
22672 msgid ""
22673 " lvresize device mbytes\n"
22674 "\n"
22675 msgstr ""
22676
22677 # type: =head2
22678 #: ../fish/guestfish-actions.pod:2624
22679 msgid "lvresize-free"
22680 msgstr ""
22681
22682 # type: verbatim
22683 #: ../fish/guestfish-actions.pod:2626
22684 #, no-wrap
22685 msgid ""
22686 " lvresize-free lv percent\n"
22687 "\n"
22688 msgstr ""
22689
22690 # type: =head2
22691 #: ../fish/guestfish-actions.pod:2634
22692 msgid "lvs"
22693 msgstr ""
22694
22695 # type: verbatim
22696 #: ../fish/guestfish-actions.pod:2636
22697 #, no-wrap
22698 msgid ""
22699 " lvs\n"
22700 "\n"
22701 msgstr ""
22702
22703 # type: textblock
22704 #: ../fish/guestfish-actions.pod:2644
22705 msgid "See also L</lvs-full>, L</list-filesystems>."
22706 msgstr ""
22707
22708 # type: =head2
22709 #: ../fish/guestfish-actions.pod:2646
22710 msgid "lvs-full"
22711 msgstr ""
22712
22713 # type: verbatim
22714 #: ../fish/guestfish-actions.pod:2648
22715 #, no-wrap
22716 msgid ""
22717 " lvs-full\n"
22718 "\n"
22719 msgstr ""
22720
22721 # type: =head2
22722 #: ../fish/guestfish-actions.pod:2653
22723 msgid "lvuuid"
22724 msgstr ""
22725
22726 # type: verbatim
22727 #: ../fish/guestfish-actions.pod:2655
22728 #, no-wrap
22729 msgid ""
22730 " lvuuid device\n"
22731 "\n"
22732 msgstr ""
22733
22734 # type: =head2
22735 #: ../fish/guestfish-actions.pod:2659
22736 msgid "lxattrlist"
22737 msgstr ""
22738
22739 # type: verbatim
22740 #: ../fish/guestfish-actions.pod:2661
22741 #, no-wrap
22742 msgid ""
22743 " lxattrlist path 'names ...'\n"
22744 "\n"
22745 msgstr ""
22746
22747 # type: textblock
22748 #: ../fish/guestfish-actions.pod:2677
22749 msgid ""
22750 "This call is intended for programs that want to efficiently list a directory "
22751 "contents without making many round-trips.  See also L</lstatlist> for a "
22752 "similarly efficient call for getting standard stats.  Very long directory "
22753 "listings might cause the protocol message size to be exceeded, causing this "
22754 "call to fail.  The caller must split up such requests into smaller groups of "
22755 "names."
22756 msgstr ""
22757
22758 # type: =head2
22759 #: ../fish/guestfish-actions.pod:2685
22760 msgid "mkdir"
22761 msgstr ""
22762
22763 # type: verbatim
22764 #: ../fish/guestfish-actions.pod:2687
22765 #, no-wrap
22766 msgid ""
22767 " mkdir path\n"
22768 "\n"
22769 msgstr ""
22770
22771 # type: =head2
22772 #: ../fish/guestfish-actions.pod:2691
22773 msgid "mkdir-mode"
22774 msgstr ""
22775
22776 # type: verbatim
22777 #: ../fish/guestfish-actions.pod:2693
22778 #, no-wrap
22779 msgid ""
22780 " mkdir-mode path mode\n"
22781 "\n"
22782 msgstr ""
22783
22784 # type: textblock
22785 #: ../fish/guestfish-actions.pod:2702
22786 msgid "See also L</mkdir>, L</umask>"
22787 msgstr ""
22788
22789 # type: =head2
22790 #: ../fish/guestfish-actions.pod:2704
22791 msgid "mkdir-p"
22792 msgstr ""
22793
22794 # type: verbatim
22795 #: ../fish/guestfish-actions.pod:2706
22796 #, no-wrap
22797 msgid ""
22798 " mkdir-p path\n"
22799 "\n"
22800 msgstr ""
22801
22802 # type: =head2
22803 #: ../fish/guestfish-actions.pod:2711
22804 msgid "mkdtemp"
22805 msgstr ""
22806
22807 # type: verbatim
22808 #: ../fish/guestfish-actions.pod:2713
22809 #, no-wrap
22810 msgid ""
22811 " mkdtemp template\n"
22812 "\n"
22813 msgstr ""
22814
22815 # type: =head2
22816 #: ../fish/guestfish-actions.pod:2734
22817 msgid "mke2fs-J"
22818 msgstr ""
22819
22820 # type: verbatim
22821 #: ../fish/guestfish-actions.pod:2736
22822 #, no-wrap
22823 msgid ""
22824 " mke2fs-J fstype blocksize device journal\n"
22825 "\n"
22826 msgstr ""
22827
22828 # type: textblock
22829 #: ../fish/guestfish-actions.pod:2744
22830 msgid "See also L</mke2journal>."
22831 msgstr ""
22832
22833 # type: =head2
22834 #: ../fish/guestfish-actions.pod:2746
22835 msgid "mke2fs-JL"
22836 msgstr ""
22837
22838 # type: verbatim
22839 #: ../fish/guestfish-actions.pod:2748
22840 #, no-wrap
22841 msgid ""
22842 " mke2fs-JL fstype blocksize device label\n"
22843 "\n"
22844 msgstr ""
22845
22846 # type: textblock
22847 #: ../fish/guestfish-actions.pod:2753
22848 msgid "See also L</mke2journal-L>."
22849 msgstr ""
22850
22851 # type: =head2
22852 #: ../fish/guestfish-actions.pod:2755
22853 msgid "mke2fs-JU"
22854 msgstr ""
22855
22856 # type: verbatim
22857 #: ../fish/guestfish-actions.pod:2757
22858 #, no-wrap
22859 msgid ""
22860 " mke2fs-JU fstype blocksize device uuid\n"
22861 "\n"
22862 msgstr ""
22863
22864 # type: textblock
22865 #: ../fish/guestfish-actions.pod:2762
22866 msgid "See also L</mke2journal-U>."
22867 msgstr ""
22868
22869 # type: =head2
22870 #: ../fish/guestfish-actions.pod:2764
22871 msgid "mke2journal"
22872 msgstr ""
22873
22874 # type: verbatim
22875 #: ../fish/guestfish-actions.pod:2766
22876 #, no-wrap
22877 msgid ""
22878 " mke2journal blocksize device\n"
22879 "\n"
22880 msgstr ""
22881
22882 # type: =head2
22883 #: ../fish/guestfish-actions.pod:2773
22884 msgid "mke2journal-L"
22885 msgstr ""
22886
22887 # type: verbatim
22888 #: ../fish/guestfish-actions.pod:2775
22889 #, no-wrap
22890 msgid ""
22891 " mke2journal-L blocksize label device\n"
22892 "\n"
22893 msgstr ""
22894
22895 # type: =head2
22896 #: ../fish/guestfish-actions.pod:2779
22897 msgid "mke2journal-U"
22898 msgstr ""
22899
22900 # type: verbatim
22901 #: ../fish/guestfish-actions.pod:2781
22902 #, no-wrap
22903 msgid ""
22904 " mke2journal-U blocksize uuid device\n"
22905 "\n"
22906 msgstr ""
22907
22908 # type: =head2
22909 #: ../fish/guestfish-actions.pod:2785
22910 msgid "mkfifo"
22911 msgstr ""
22912
22913 # type: verbatim
22914 #: ../fish/guestfish-actions.pod:2787
22915 #, no-wrap
22916 msgid ""
22917 " mkfifo mode path\n"
22918 "\n"
22919 msgstr ""
22920
22921 # type: textblock
22922 #: ../fish/guestfish-actions.pod:2789
22923 msgid ""
22924 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22925 "is just a convenient wrapper around L</mknod>."
22926 msgstr ""
22927
22928 # type: =head2
22929 #: ../fish/guestfish-actions.pod:2795
22930 msgid "mkfs"
22931 msgstr ""
22932
22933 # type: verbatim
22934 #: ../fish/guestfish-actions.pod:2797
22935 #, no-wrap
22936 msgid ""
22937 " mkfs fstype device\n"
22938 "\n"
22939 msgstr ""
22940
22941 # type: =head2
22942 #: ../fish/guestfish-actions.pod:2803
22943 msgid "mkfs-b"
22944 msgstr ""
22945
22946 # type: verbatim
22947 #: ../fish/guestfish-actions.pod:2805
22948 #, no-wrap
22949 msgid ""
22950 " mkfs-b fstype blocksize device\n"
22951 "\n"
22952 msgstr ""
22953
22954 # type: textblock
22955 #: ../fish/guestfish-actions.pod:2807
22956 msgid ""
22957 "This call is similar to L</mkfs>, but it allows you to control the block "
22958 "size of the resulting filesystem.  Supported block sizes depend on the "
22959 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22960 msgstr ""
22961
22962 # type: =head2
22963 #: ../fish/guestfish-actions.pod:2822
22964 msgid "mkfs-opts"
22965 msgstr ""
22966
22967 # type: verbatim
22968 #: ../fish/guestfish-actions.pod:2824
22969 #, no-wrap
22970 msgid ""
22971 " mkfs-opts fstype device [blocksize:..]\n"
22972 "\n"
22973 msgstr ""
22974
22975 # type: =head2
22976 #: ../fish/guestfish-actions.pod:2846
22977 msgid "mkmountpoint"
22978 msgstr ""
22979
22980 # type: verbatim
22981 #: ../fish/guestfish-actions.pod:2848
22982 #, no-wrap
22983 msgid ""
22984 " mkmountpoint exemptpath\n"
22985 "\n"
22986 msgstr ""
22987
22988 # type: textblock
22989 #: ../fish/guestfish-actions.pod:2850
22990 msgid ""
22991 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22992 "to create extra mountpoints before mounting the first filesystem."
22993 msgstr ""
22994
22995 # type: textblock
22996 #: ../fish/guestfish-actions.pod:2874
22997 msgid ""
22998 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22999 "unexpected errors if you try to mix these calls.  It is safest to manually "
23000 "unmount filesystems and remove mountpoints after use."
23001 msgstr ""
23002
23003 # type: textblock
23004 #: ../fish/guestfish-actions.pod:2878
23005 msgid ""
23006 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
23007 "for this to work for manual mountpoints, you must ensure that the innermost "
23008 "mountpoints have the longest pathnames, as in the example code above."
23009 msgstr ""
23010
23011 # type: textblock
23012 #: ../fish/guestfish-actions.pod:2885
23013 msgid ""
23014 "Autosync [see L</set-autosync>, this is set by default on handles] means "
23015 "that L</umount-all> is called when the handle is closed which can also "
23016 "trigger these issues."
23017 msgstr ""
23018
23019 # type: =head2
23020 #: ../fish/guestfish-actions.pod:2889
23021 msgid "mknod"
23022 msgstr ""
23023
23024 # type: verbatim
23025 #: ../fish/guestfish-actions.pod:2891
23026 #, no-wrap
23027 msgid ""
23028 " mknod mode devmajor devminor path\n"
23029 "\n"
23030 msgstr ""
23031
23032 # type: textblock
23033 #: ../fish/guestfish-actions.pod:2901
23034 msgid ""
23035 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
23036 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
23037 "regular file).  These constants are available in the standard Linux header "
23038 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
23039 "wrappers around this command which bitwise OR in the appropriate constant "
23040 "for you."
23041 msgstr ""
23042
23043 # type: =head2
23044 #: ../fish/guestfish-actions.pod:2911
23045 msgid "mknod-b"
23046 msgstr ""
23047
23048 # type: verbatim
23049 #: ../fish/guestfish-actions.pod:2913
23050 #, no-wrap
23051 msgid ""
23052 " mknod-b mode devmajor devminor path\n"
23053 "\n"
23054 msgstr ""
23055
23056 # type: textblock
23057 #: ../fish/guestfish-actions.pod:2915
23058 msgid ""
23059 "This call creates a block device node called C<path> with mode C<mode> and "
23060 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
23061 "wrapper around L</mknod>."
23062 msgstr ""
23063
23064 # type: =head2
23065 #: ../fish/guestfish-actions.pod:2921
23066 msgid "mknod-c"
23067 msgstr ""
23068
23069 # type: verbatim
23070 #: ../fish/guestfish-actions.pod:2923
23071 #, no-wrap
23072 msgid ""
23073 " mknod-c mode devmajor devminor path\n"
23074 "\n"
23075 msgstr ""
23076
23077 # type: textblock
23078 #: ../fish/guestfish-actions.pod:2925
23079 msgid ""
23080 "This call creates a char device node called C<path> with mode C<mode> and "
23081 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
23082 "wrapper around L</mknod>."
23083 msgstr ""
23084
23085 # type: =head2
23086 #: ../fish/guestfish-actions.pod:2931
23087 msgid "mkswap"
23088 msgstr ""
23089
23090 # type: verbatim
23091 #: ../fish/guestfish-actions.pod:2933
23092 #, no-wrap
23093 msgid ""
23094 " mkswap device\n"
23095 "\n"
23096 msgstr ""
23097
23098 # type: =head2
23099 #: ../fish/guestfish-actions.pod:2937
23100 msgid "mkswap-L"
23101 msgstr ""
23102
23103 # type: verbatim
23104 #: ../fish/guestfish-actions.pod:2939
23105 #, no-wrap
23106 msgid ""
23107 " mkswap-L label device\n"
23108 "\n"
23109 msgstr ""
23110
23111 # type: =head2
23112 #: ../fish/guestfish-actions.pod:2947
23113 msgid "mkswap-U"
23114 msgstr ""
23115
23116 # type: verbatim
23117 #: ../fish/guestfish-actions.pod:2949
23118 #, no-wrap
23119 msgid ""
23120 " mkswap-U uuid device\n"
23121 "\n"
23122 msgstr ""
23123
23124 # type: =head2
23125 #: ../fish/guestfish-actions.pod:2953
23126 msgid "mkswap-file"
23127 msgstr ""
23128
23129 # type: verbatim
23130 #: ../fish/guestfish-actions.pod:2955
23131 #, no-wrap
23132 msgid ""
23133 " mkswap-file path\n"
23134 "\n"
23135 msgstr ""
23136
23137 # type: textblock
23138 #: ../fish/guestfish-actions.pod:2959
23139 msgid ""
23140 "This command just writes a swap file signature to an existing file.  To "
23141 "create the file itself, use something like L</fallocate>."
23142 msgstr ""
23143
23144 # type: =head2
23145 #: ../fish/guestfish-actions.pod:2962
23146 msgid "modprobe"
23147 msgstr ""
23148
23149 # type: verbatim
23150 #: ../fish/guestfish-actions.pod:2964
23151 #, no-wrap
23152 msgid ""
23153 " modprobe modulename\n"
23154 "\n"
23155 msgstr ""
23156
23157 # type: =head2
23158 #: ../fish/guestfish-actions.pod:2971
23159 msgid "mount"
23160 msgstr ""
23161
23162 # type: verbatim
23163 #: ../fish/guestfish-actions.pod:2973
23164 #, no-wrap
23165 msgid ""
23166 " mount device mountpoint\n"
23167 "\n"
23168 msgstr ""
23169
23170 # type: textblock
23171 #: ../fish/guestfish-actions.pod:2989
23172 msgid ""
23173 "B<Important note:> When you use this call, the filesystem options C<sync> "
23174 "and C<noatime> are set implicitly.  This was originally done because we "
23175 "thought it would improve reliability, but it turns out that I<-o sync> has a "
23176 "very large negative performance impact and negligible effect on "
23177 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
23178 "code that needs performance, and instead use L</mount-options> (use an empty "
23179 "string for the first parameter if you don't want any options)."
23180 msgstr ""
23181
23182 # type: =head2
23183 #: ../fish/guestfish-actions.pod:2999
23184 msgid "mount-loop"
23185 msgstr ""
23186
23187 # type: verbatim
23188 #: ../fish/guestfish-actions.pod:3001
23189 #, no-wrap
23190 msgid ""
23191 " mount-loop file mountpoint\n"
23192 "\n"
23193 msgstr ""
23194
23195 # type: =head2
23196 #: ../fish/guestfish-actions.pod:3007
23197 msgid "mount-options"
23198 msgstr ""
23199
23200 # type: verbatim
23201 #: ../fish/guestfish-actions.pod:3009
23202 #, no-wrap
23203 msgid ""
23204 " mount-options options device mountpoint\n"
23205 "\n"
23206 msgstr ""
23207
23208 # type: textblock
23209 #: ../fish/guestfish-actions.pod:3011
23210 msgid ""
23211 "This is the same as the L</mount> command, but it allows you to set the "
23212 "mount options as for the L<mount(8)> I<-o> flag."
23213 msgstr ""
23214
23215 # type: =head2
23216 #: ../fish/guestfish-actions.pod:3019
23217 msgid "mount-ro"
23218 msgstr ""
23219
23220 # type: verbatim
23221 #: ../fish/guestfish-actions.pod:3021
23222 #, no-wrap
23223 msgid ""
23224 " mount-ro device mountpoint\n"
23225 "\n"
23226 msgstr ""
23227
23228 # type: textblock
23229 #: ../fish/guestfish-actions.pod:3023
23230 msgid ""
23231 "This is the same as the L</mount> command, but it mounts the filesystem with "
23232 "the read-only (I<-o ro>) flag."
23233 msgstr ""
23234
23235 # type: =head2
23236 #: ../fish/guestfish-actions.pod:3026
23237 msgid "mount-vfs"
23238 msgstr ""
23239
23240 # type: verbatim
23241 #: ../fish/guestfish-actions.pod:3028
23242 #, no-wrap
23243 msgid ""
23244 " mount-vfs options vfstype device mountpoint\n"
23245 "\n"
23246 msgstr ""
23247
23248 # type: textblock
23249 #: ../fish/guestfish-actions.pod:3030
23250 msgid ""
23251 "This is the same as the L</mount> command, but it allows you to set both the "
23252 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
23253 msgstr ""
23254
23255 # type: =head2
23256 #: ../fish/guestfish-actions.pod:3034
23257 msgid "mountpoints"
23258 msgstr ""
23259
23260 # type: verbatim
23261 #: ../fish/guestfish-actions.pod:3036
23262 #, no-wrap
23263 msgid ""
23264 " mountpoints\n"
23265 "\n"
23266 msgstr ""
23267
23268 # type: textblock
23269 #: ../fish/guestfish-actions.pod:3038
23270 msgid ""
23271 "This call is similar to L</mounts>.  That call returns a list of devices.  "
23272 "This one returns a hash table (map) of device name to directory where the "
23273 "device is mounted."
23274 msgstr ""
23275
23276 # type: =head2
23277 #: ../fish/guestfish-actions.pod:3042
23278 msgid "mounts"
23279 msgstr ""
23280
23281 # type: verbatim
23282 #: ../fish/guestfish-actions.pod:3044
23283 #, no-wrap
23284 msgid ""
23285 " mounts\n"
23286 "\n"
23287 msgstr ""
23288
23289 # type: textblock
23290 #: ../fish/guestfish-actions.pod:3051
23291 msgid "See also: L</mountpoints>"
23292 msgstr ""
23293
23294 # type: =head2
23295 #: ../fish/guestfish-actions.pod:3053
23296 msgid "mv"
23297 msgstr ""
23298
23299 # type: verbatim
23300 #: ../fish/guestfish-actions.pod:3055
23301 #, no-wrap
23302 msgid ""
23303 " mv src dest\n"
23304 "\n"
23305 msgstr ""
23306
23307 # type: =head2
23308 #: ../fish/guestfish-actions.pod:3060
23309 msgid "ntfs-3g-probe"
23310 msgstr ""
23311
23312 # type: verbatim
23313 #: ../fish/guestfish-actions.pod:3062
23314 #, no-wrap
23315 msgid ""
23316 " ntfs-3g-probe true|false device\n"
23317 "\n"
23318 msgstr ""
23319
23320 # type: =head2
23321 #: ../fish/guestfish-actions.pod:3076
23322 msgid "ntfsresize"
23323 msgstr ""
23324
23325 # type: verbatim
23326 #: ../fish/guestfish-actions.pod:3078
23327 #, no-wrap
23328 msgid ""
23329 " ntfsresize device\n"
23330 "\n"
23331 msgstr ""
23332
23333 # type: =head2
23334 #: ../fish/guestfish-actions.pod:3084
23335 msgid "ntfsresize-size"
23336 msgstr ""
23337
23338 # type: verbatim
23339 #: ../fish/guestfish-actions.pod:3086
23340 #, no-wrap
23341 msgid ""
23342 " ntfsresize-size device size\n"
23343 "\n"
23344 msgstr ""
23345
23346 # type: textblock
23347 #: ../fish/guestfish-actions.pod:3088
23348 msgid ""
23349 "This command is the same as L</ntfsresize> except that it allows you to "
23350 "specify the new size (in bytes) explicitly."
23351 msgstr ""
23352
23353 # type: =head2
23354 #: ../fish/guestfish-actions.pod:3091
23355 msgid "part-add"
23356 msgstr ""
23357
23358 # type: verbatim
23359 #: ../fish/guestfish-actions.pod:3093
23360 #, no-wrap
23361 msgid ""
23362 " part-add device prlogex startsect endsect\n"
23363 "\n"
23364 msgstr ""
23365
23366 # type: textblock
23367 #: ../fish/guestfish-actions.pod:3095
23368 msgid ""
23369 "This command adds a partition to C<device>.  If there is no partition table "
23370 "on the device, call L</part-init> first."
23371 msgstr ""
23372
23373 # type: textblock
23374 #: ../fish/guestfish-actions.pod:3107
23375 msgid ""
23376 "Creating a partition which covers the whole disk is not so easy.  Use L</"
23377 "part-disk> to do that."
23378 msgstr ""
23379
23380 # type: =head2
23381 #: ../fish/guestfish-actions.pod:3110
23382 msgid "part-del"
23383 msgstr ""
23384
23385 # type: verbatim
23386 #: ../fish/guestfish-actions.pod:3112
23387 #, no-wrap
23388 msgid ""
23389 " part-del device partnum\n"
23390 "\n"
23391 msgstr ""
23392
23393 # type: =head2
23394 #: ../fish/guestfish-actions.pod:3120
23395 msgid "part-disk"
23396 msgstr ""
23397
23398 # type: verbatim
23399 #: ../fish/guestfish-actions.pod:3122
23400 #, no-wrap
23401 msgid ""
23402 " part-disk device parttype\n"
23403 "\n"
23404 msgstr ""
23405
23406 # type: textblock
23407 #: ../fish/guestfish-actions.pod:3124
23408 msgid ""
23409 "This command is simply a combination of L</part-init> followed by L</part-"
23410 "add> to create a single primary partition covering the whole disk."
23411 msgstr ""
23412
23413 # type: textblock
23414 #: ../fish/guestfish-actions.pod:3128
23415 msgid ""
23416 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
23417 "possible values are described in L</part-init>."
23418 msgstr ""
23419
23420 # type: =head2
23421 #: ../fish/guestfish-actions.pod:3134
23422 msgid "part-get-bootable"
23423 msgstr ""
23424
23425 # type: verbatim
23426 #: ../fish/guestfish-actions.pod:3136
23427 #, no-wrap
23428 msgid ""
23429 " part-get-bootable device partnum\n"
23430 "\n"
23431 msgstr ""
23432
23433 # type: textblock
23434 #: ../fish/guestfish-actions.pod:3141
23435 msgid "See also L</part-set-bootable>."
23436 msgstr ""
23437
23438 # type: =head2
23439 #: ../fish/guestfish-actions.pod:3143
23440 msgid "part-get-mbr-id"
23441 msgstr ""
23442
23443 # type: verbatim
23444 #: ../fish/guestfish-actions.pod:3145
23445 #, no-wrap
23446 msgid ""
23447 " part-get-mbr-id device partnum\n"
23448 "\n"
23449 msgstr ""
23450
23451 # type: textblock
23452 #: ../fish/guestfish-actions.pod:3150 ../fish/guestfish-actions.pod:3288
23453 msgid ""
23454 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
23455 "undefined results for other partition table types (see L</part-get-"
23456 "parttype>)."
23457 msgstr ""
23458
23459 # type: =head2
23460 #: ../fish/guestfish-actions.pod:3154
23461 msgid "part-get-parttype"
23462 msgstr ""
23463
23464 # type: verbatim
23465 #: ../fish/guestfish-actions.pod:3156
23466 #, no-wrap
23467 msgid ""
23468 " part-get-parttype device\n"
23469 "\n"
23470 msgstr ""
23471
23472 # type: textblock
23473 #: ../fish/guestfish-actions.pod:3161
23474 msgid ""
23475 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
23476 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
23477 "possible, although unusual.  See L</part-init> for a full list."
23478 msgstr ""
23479
23480 # type: =head2
23481 #: ../fish/guestfish-actions.pod:3166
23482 msgid "part-init"
23483 msgstr ""
23484
23485 # type: verbatim
23486 #: ../fish/guestfish-actions.pod:3168
23487 #, no-wrap
23488 msgid ""
23489 " part-init device parttype\n"
23490 "\n"
23491 msgstr ""
23492
23493 # type: textblock
23494 #: ../fish/guestfish-actions.pod:3174
23495 msgid ""
23496 "Initially there are no partitions.  Following this, you should call L</part-"
23497 "add> for each partition required."
23498 msgstr ""
23499
23500 # type: =head2
23501 #: ../fish/guestfish-actions.pod:3237
23502 msgid "part-list"
23503 msgstr ""
23504
23505 # type: verbatim
23506 #: ../fish/guestfish-actions.pod:3239
23507 #, no-wrap
23508 msgid ""
23509 " part-list device\n"
23510 "\n"
23511 msgstr ""
23512
23513 # type: textblock
23514 #: ../fish/guestfish-actions.pod:3254
23515 msgid ""
23516 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23517 "the device's sector size, see L</blockdev-getss>."
23518 msgstr ""
23519
23520 # type: =head2
23521 #: ../fish/guestfish-actions.pod:3267
23522 msgid "part-set-bootable"
23523 msgstr ""
23524
23525 # type: verbatim
23526 #: ../fish/guestfish-actions.pod:3269
23527 #, no-wrap
23528 msgid ""
23529 " part-set-bootable device partnum true|false\n"
23530 "\n"
23531 msgstr ""
23532
23533 # type: =head2
23534 #: ../fish/guestfish-actions.pod:3278
23535 msgid "part-set-mbr-id"
23536 msgstr ""
23537
23538 # type: verbatim
23539 #: ../fish/guestfish-actions.pod:3280
23540 #, no-wrap
23541 msgid ""
23542 " part-set-mbr-id device partnum idbyte\n"
23543 "\n"
23544 msgstr ""
23545
23546 # type: =head2
23547 #: ../fish/guestfish-actions.pod:3292
23548 msgid "part-set-name"
23549 msgstr ""
23550
23551 # type: verbatim
23552 #: ../fish/guestfish-actions.pod:3294
23553 #, no-wrap
23554 msgid ""
23555 " part-set-name device partnum name\n"
23556 "\n"
23557 msgstr ""
23558
23559 # type: =head2
23560 #: ../fish/guestfish-actions.pod:3302
23561 msgid "part-to-dev"
23562 msgstr ""
23563
23564 # type: verbatim
23565 #: ../fish/guestfish-actions.pod:3304
23566 #, no-wrap
23567 msgid ""
23568 " part-to-dev partition\n"
23569 "\n"
23570 msgstr ""
23571
23572 # type: textblock
23573 #: ../fish/guestfish-actions.pod:3310
23574 msgid ""
23575 "The named partition must exist, for example as a string returned from L</"
23576 "list-partitions>."
23577 msgstr ""
23578
23579 # type: =head2
23580 #: ../fish/guestfish-actions.pod:3313
23581 msgid "ping-daemon"
23582 msgstr ""
23583
23584 # type: verbatim
23585 #: ../fish/guestfish-actions.pod:3315
23586 #, no-wrap
23587 msgid ""
23588 " ping-daemon\n"
23589 "\n"
23590 msgstr ""
23591
23592 # type: =head2
23593 #: ../fish/guestfish-actions.pod:3322
23594 msgid "pread"
23595 msgstr ""
23596
23597 # type: verbatim
23598 #: ../fish/guestfish-actions.pod:3324
23599 #, no-wrap
23600 msgid ""
23601 " pread path count offset\n"
23602 "\n"
23603 msgstr ""
23604
23605 # type: textblock
23606 #: ../fish/guestfish-actions.pod:3332
23607 msgid "See also L</pwrite>, L</pread-device>."
23608 msgstr ""
23609
23610 # type: =head2
23611 #: ../fish/guestfish-actions.pod:3337
23612 msgid "pread-device"
23613 msgstr ""
23614
23615 # type: verbatim
23616 #: ../fish/guestfish-actions.pod:3339
23617 #, no-wrap
23618 msgid ""
23619 " pread-device device count offset\n"
23620 "\n"
23621 msgstr ""
23622
23623 # type: textblock
23624 #: ../fish/guestfish-actions.pod:3347
23625 msgid "See also L</pread>."
23626 msgstr ""
23627
23628 # type: =head2
23629 #: ../fish/guestfish-actions.pod:3352
23630 msgid "pvcreate"
23631 msgstr ""
23632
23633 # type: verbatim
23634 #: ../fish/guestfish-actions.pod:3354
23635 #, no-wrap
23636 msgid ""
23637 " pvcreate device\n"
23638 "\n"
23639 msgstr ""
23640
23641 # type: =head2
23642 #: ../fish/guestfish-actions.pod:3360
23643 msgid "pvremove"
23644 msgstr ""
23645
23646 # type: verbatim
23647 #: ../fish/guestfish-actions.pod:3362
23648 #, no-wrap
23649 msgid ""
23650 " pvremove device\n"
23651 "\n"
23652 msgstr ""
23653
23654 # type: =head2
23655 #: ../fish/guestfish-actions.pod:3371
23656 msgid "pvresize"
23657 msgstr ""
23658
23659 # type: verbatim
23660 #: ../fish/guestfish-actions.pod:3373
23661 #, no-wrap
23662 msgid ""
23663 " pvresize device\n"
23664 "\n"
23665 msgstr ""
23666
23667 # type: =head2
23668 #: ../fish/guestfish-actions.pod:3378
23669 msgid "pvresize-size"
23670 msgstr ""
23671
23672 # type: verbatim
23673 #: ../fish/guestfish-actions.pod:3380
23674 #, no-wrap
23675 msgid ""
23676 " pvresize-size device size\n"
23677 "\n"
23678 msgstr ""
23679
23680 # type: textblock
23681 #: ../fish/guestfish-actions.pod:3382
23682 msgid ""
23683 "This command is the same as L</pvresize> except that it allows you to "
23684 "specify the new size (in bytes) explicitly."
23685 msgstr ""
23686
23687 # type: =head2
23688 #: ../fish/guestfish-actions.pod:3385
23689 msgid "pvs"
23690 msgstr ""
23691
23692 # type: verbatim
23693 #: ../fish/guestfish-actions.pod:3387
23694 #, no-wrap
23695 msgid ""
23696 " pvs\n"
23697 "\n"
23698 msgstr ""
23699
23700 # type: textblock
23701 #: ../fish/guestfish-actions.pod:3395
23702 msgid "See also L</pvs-full>."
23703 msgstr ""
23704
23705 # type: =head2
23706 #: ../fish/guestfish-actions.pod:3397
23707 msgid "pvs-full"
23708 msgstr ""
23709
23710 # type: verbatim
23711 #: ../fish/guestfish-actions.pod:3399
23712 #, no-wrap
23713 msgid ""
23714 " pvs-full\n"
23715 "\n"
23716 msgstr ""
23717
23718 # type: =head2
23719 #: ../fish/guestfish-actions.pod:3404
23720 msgid "pvuuid"
23721 msgstr ""
23722
23723 # type: verbatim
23724 #: ../fish/guestfish-actions.pod:3406
23725 #, no-wrap
23726 msgid ""
23727 " pvuuid device\n"
23728 "\n"
23729 msgstr ""
23730
23731 # type: =head2
23732 #: ../fish/guestfish-actions.pod:3410
23733 msgid "pwrite"
23734 msgstr ""
23735
23736 # type: verbatim
23737 #: ../fish/guestfish-actions.pod:3412
23738 #, no-wrap
23739 msgid ""
23740 " pwrite path content offset\n"
23741 "\n"
23742 msgstr ""
23743
23744 # type: textblock
23745 #: ../fish/guestfish-actions.pod:3423
23746 msgid "See also L</pread>, L</pwrite-device>."
23747 msgstr ""
23748
23749 # type: =head2
23750 #: ../fish/guestfish-actions.pod:3428
23751 msgid "pwrite-device"
23752 msgstr ""
23753
23754 # type: verbatim
23755 #: ../fish/guestfish-actions.pod:3430
23756 #, no-wrap
23757 msgid ""
23758 " pwrite-device device content offset\n"
23759 "\n"
23760 msgstr ""
23761
23762 # type: textblock
23763 #: ../fish/guestfish-actions.pod:3440
23764 msgid "See also L</pwrite>."
23765 msgstr ""
23766
23767 # type: =head2
23768 #: ../fish/guestfish-actions.pod:3445
23769 msgid "read-file"
23770 msgstr ""
23771
23772 # type: verbatim
23773 #: ../fish/guestfish-actions.pod:3447
23774 #, no-wrap
23775 msgid ""
23776 " read-file path\n"
23777 "\n"
23778 msgstr ""
23779
23780 # type: textblock
23781 #: ../fish/guestfish-actions.pod:3452
23782 msgid ""
23783 "Unlike L</cat>, this function can correctly handle files that contain "
23784 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23785 "is limited in the total size of file that can be handled."
23786 msgstr ""
23787
23788 # type: =head2
23789 #: ../fish/guestfish-actions.pod:3460
23790 msgid "read-lines"
23791 msgstr ""
23792
23793 # type: verbatim
23794 #: ../fish/guestfish-actions.pod:3462
23795 #, no-wrap
23796 msgid ""
23797 " read-lines path\n"
23798 "\n"
23799 msgstr ""
23800
23801 # type: textblock
23802 #: ../fish/guestfish-actions.pod:3469
23803 msgid ""
23804 "Note that this function cannot correctly handle binary files (specifically, "
23805 "files containing C<\\0> character which is treated as end of line).  For "
23806 "those you need to use the L</read-file> function which has a more complex "
23807 "interface."
23808 msgstr ""
23809
23810 # type: =head2
23811 #: ../fish/guestfish-actions.pod:3474
23812 msgid "readdir"
23813 msgstr ""
23814
23815 # type: verbatim
23816 #: ../fish/guestfish-actions.pod:3476
23817 #, no-wrap
23818 msgid ""
23819 " readdir dir\n"
23820 "\n"
23821 msgstr ""
23822
23823 # type: textblock
23824 #: ../fish/guestfish-actions.pod:3528
23825 msgid ""
23826 "This function is primarily intended for use by programs.  To get a simple "
23827 "list of names, use L</ls>.  To get a printable directory for human "
23828 "consumption, use L</ll>."
23829 msgstr ""
23830
23831 # type: =head2
23832 #: ../fish/guestfish-actions.pod:3532
23833 msgid "readlink"
23834 msgstr ""
23835
23836 # type: verbatim
23837 #: ../fish/guestfish-actions.pod:3534
23838 #, no-wrap
23839 msgid ""
23840 " readlink path\n"
23841 "\n"
23842 msgstr ""
23843
23844 # type: =head2
23845 #: ../fish/guestfish-actions.pod:3538
23846 msgid "readlinklist"
23847 msgstr ""
23848
23849 # type: verbatim
23850 #: ../fish/guestfish-actions.pod:3540
23851 #, no-wrap
23852 msgid ""
23853 " readlinklist path 'names ...'\n"
23854 "\n"
23855 msgstr ""
23856
23857 # type: =head2
23858 #: ../fish/guestfish-actions.pod:3564
23859 msgid "realpath"
23860 msgstr ""
23861
23862 # type: verbatim
23863 #: ../fish/guestfish-actions.pod:3566
23864 #, no-wrap
23865 msgid ""
23866 " realpath path\n"
23867 "\n"
23868 msgstr ""
23869
23870 # type: =head2
23871 #: ../fish/guestfish-actions.pod:3571
23872 msgid "removexattr"
23873 msgstr ""
23874
23875 # type: verbatim
23876 #: ../fish/guestfish-actions.pod:3573
23877 #, no-wrap
23878 msgid ""
23879 " removexattr xattr path\n"
23880 "\n"
23881 msgstr ""
23882
23883 # type: textblock
23884 #: ../fish/guestfish-actions.pod:3578
23885 msgid "See also: L</lremovexattr>, L<attr(5)>."
23886 msgstr ""
23887
23888 # type: =head2
23889 #: ../fish/guestfish-actions.pod:3580
23890 msgid "resize2fs"
23891 msgstr ""
23892
23893 # type: verbatim
23894 #: ../fish/guestfish-actions.pod:3582
23895 #, no-wrap
23896 msgid ""
23897 " resize2fs device\n"
23898 "\n"
23899 msgstr ""
23900
23901 # type: textblock
23902 #: ../fish/guestfish-actions.pod:3587
23903 msgid ""
23904 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23905 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23906 "gives an error about this and sometimes not.  In any case, it is always safe "
23907 "to call L</e2fsck-f> before calling this function."
23908 msgstr ""
23909
23910 # type: =head2
23911 #: ../fish/guestfish-actions.pod:3593
23912 msgid "resize2fs-size"
23913 msgstr ""
23914
23915 # type: verbatim
23916 #: ../fish/guestfish-actions.pod:3595
23917 #, no-wrap
23918 msgid ""
23919 " resize2fs-size device size\n"
23920 "\n"
23921 msgstr ""
23922
23923 # type: textblock
23924 #: ../fish/guestfish-actions.pod:3597
23925 msgid ""
23926 "This command is the same as L</resize2fs> except that it allows you to "
23927 "specify the new size (in bytes) explicitly."
23928 msgstr ""
23929
23930 # type: =head2
23931 #: ../fish/guestfish-actions.pod:3600
23932 msgid "rm"
23933 msgstr ""
23934
23935 # type: verbatim
23936 #: ../fish/guestfish-actions.pod:3602
23937 #, no-wrap
23938 msgid ""
23939 " rm path\n"
23940 "\n"
23941 msgstr ""
23942
23943 # type: =head2
23944 #: ../fish/guestfish-actions.pod:3606
23945 msgid "rm-rf"
23946 msgstr ""
23947
23948 # type: verbatim
23949 #: ../fish/guestfish-actions.pod:3608
23950 #, no-wrap
23951 msgid ""
23952 " rm-rf path\n"
23953 "\n"
23954 msgstr ""
23955
23956 # type: =head2
23957 #: ../fish/guestfish-actions.pod:3614
23958 msgid "rmdir"
23959 msgstr ""
23960
23961 # type: verbatim
23962 #: ../fish/guestfish-actions.pod:3616
23963 #, no-wrap
23964 msgid ""
23965 " rmdir path\n"
23966 "\n"
23967 msgstr ""
23968
23969 # type: =head2
23970 #: ../fish/guestfish-actions.pod:3620
23971 msgid "rmmountpoint"
23972 msgstr ""
23973
23974 # type: verbatim
23975 #: ../fish/guestfish-actions.pod:3622
23976 #, no-wrap
23977 msgid ""
23978 " rmmountpoint exemptpath\n"
23979 "\n"
23980 msgstr ""
23981
23982 # type: textblock
23983 #: ../fish/guestfish-actions.pod:3624
23984 msgid ""
23985 "This calls removes a mountpoint that was previously created with L</"
23986 "mkmountpoint>.  See L</mkmountpoint> for full details."
23987 msgstr ""
23988
23989 # type: =head2
23990 #: ../fish/guestfish-actions.pod:3628
23991 msgid "scrub-device"
23992 msgstr ""
23993
23994 # type: verbatim
23995 #: ../fish/guestfish-actions.pod:3630
23996 #, no-wrap
23997 msgid ""
23998 " scrub-device device\n"
23999 "\n"
24000 msgstr ""
24001
24002 # type: =head2
24003 #: ../fish/guestfish-actions.pod:3641
24004 msgid "scrub-file"
24005 msgstr ""
24006
24007 # type: verbatim
24008 #: ../fish/guestfish-actions.pod:3643
24009 #, no-wrap
24010 msgid ""
24011 " scrub-file file\n"
24012 "\n"
24013 msgstr ""
24014
24015 # type: =head2
24016 #: ../fish/guestfish-actions.pod:3653
24017 msgid "scrub-freespace"
24018 msgstr ""
24019
24020 # type: verbatim
24021 #: ../fish/guestfish-actions.pod:3655
24022 #, no-wrap
24023 msgid ""
24024 " scrub-freespace dir\n"
24025 "\n"
24026 msgstr ""
24027
24028 # type: textblock
24029 #: ../fish/guestfish-actions.pod:3657
24030 msgid ""
24031 "This command creates the directory C<dir> and then fills it with files until "
24032 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
24033 "deletes them.  The intention is to scrub any free space on the partition "
24034 "containing C<dir>."
24035 msgstr ""
24036
24037 # type: =head2
24038 #: ../fish/guestfish-actions.pod:3666
24039 msgid "set-append"
24040 msgstr ""
24041
24042 # type: =head2
24043 #: ../fish/guestfish-actions.pod:3668
24044 msgid "append"
24045 msgstr ""
24046
24047 # type: verbatim
24048 #: ../fish/guestfish-actions.pod:3670
24049 #, no-wrap
24050 msgid ""
24051 " set-append append\n"
24052 "\n"
24053 msgstr ""
24054
24055 # type: =head2
24056 #: ../fish/guestfish-actions.pod:3681
24057 msgid "set-autosync"
24058 msgstr ""
24059
24060 # type: =head2
24061 #: ../fish/guestfish-actions.pod:3683
24062 msgid "autosync"
24063 msgstr ""
24064
24065 # type: verbatim
24066 #: ../fish/guestfish-actions.pod:3685
24067 #, no-wrap
24068 msgid ""
24069 " set-autosync true|false\n"
24070 "\n"
24071 msgstr ""
24072
24073 # type: textblock
24074 #: ../fish/guestfish-actions.pod:3687
24075 msgid ""
24076 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
24077 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
24078 "closed (also if the program exits without closing handles)."
24079 msgstr ""
24080
24081 # type: =head2
24082 #: ../fish/guestfish-actions.pod:3695
24083 msgid "set-direct"
24084 msgstr ""
24085
24086 # type: =head2
24087 #: ../fish/guestfish-actions.pod:3697
24088 msgid "direct"
24089 msgstr ""
24090
24091 # type: verbatim
24092 #: ../fish/guestfish-actions.pod:3699
24093 #, no-wrap
24094 msgid ""
24095 " set-direct true|false\n"
24096 "\n"
24097 msgstr ""
24098
24099 # type: textblock
24100 #: ../fish/guestfish-actions.pod:3705
24101 msgid ""
24102 "One consequence of this is that log messages aren't caught by the library "
24103 "and handled by L</set-log-message-callback>, but go straight to stdout."
24104 msgstr ""
24105
24106 # type: =head2
24107 #: ../fish/guestfish-actions.pod:3714
24108 msgid "set-e2label"
24109 msgstr ""
24110
24111 # type: verbatim
24112 #: ../fish/guestfish-actions.pod:3716
24113 #, no-wrap
24114 msgid ""
24115 " set-e2label device label\n"
24116 "\n"
24117 msgstr ""
24118
24119 # type: textblock
24120 #: ../fish/guestfish-actions.pod:3722
24121 msgid ""
24122 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
24123 "label on a filesystem."
24124 msgstr ""
24125
24126 # type: =head2
24127 #: ../fish/guestfish-actions.pod:3725
24128 msgid "set-e2uuid"
24129 msgstr ""
24130
24131 # type: verbatim
24132 #: ../fish/guestfish-actions.pod:3727
24133 #, no-wrap
24134 msgid ""
24135 " set-e2uuid device uuid\n"
24136 "\n"
24137 msgstr ""
24138
24139 # type: textblock
24140 #: ../fish/guestfish-actions.pod:3734
24141 msgid ""
24142 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
24143 "UUID of a filesystem."
24144 msgstr ""
24145
24146 # type: =head2
24147 #: ../fish/guestfish-actions.pod:3737
24148 msgid "set-memsize"
24149 msgstr ""
24150
24151 # type: =head2
24152 #: ../fish/guestfish-actions.pod:3739
24153 msgid "memsize"
24154 msgstr ""
24155
24156 # type: verbatim
24157 #: ../fish/guestfish-actions.pod:3741
24158 #, no-wrap
24159 msgid ""
24160 " set-memsize memsize\n"
24161 "\n"
24162 msgstr ""
24163
24164 # type: textblock
24165 #: ../fish/guestfish-actions.pod:3743
24166 msgid ""
24167 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
24168 "This only has any effect if called before L</launch>."
24169 msgstr ""
24170
24171 # type: =head2
24172 #: ../fish/guestfish-actions.pod:3754
24173 msgid "set-network"
24174 msgstr ""
24175
24176 # type: =head2
24177 #: ../fish/guestfish-actions.pod:3756
24178 msgid "network"
24179 msgstr ""
24180
24181 # type: verbatim
24182 #: ../fish/guestfish-actions.pod:3758
24183 #, no-wrap
24184 msgid ""
24185 " set-network true|false\n"
24186 "\n"
24187 msgstr ""
24188
24189 # type: textblock
24190 #: ../fish/guestfish-actions.pod:3766
24191 msgid ""
24192 "You must call this before calling L</launch>, otherwise it has no effect."
24193 msgstr ""
24194
24195 # type: =head2
24196 #: ../fish/guestfish-actions.pod:3769
24197 msgid "set-path"
24198 msgstr ""
24199
24200 # type: =head2
24201 #: ../fish/guestfish-actions.pod:3771
24202 msgid "path"
24203 msgstr ""
24204
24205 # type: verbatim
24206 #: ../fish/guestfish-actions.pod:3773
24207 #, no-wrap
24208 msgid ""
24209 " set-path searchpath\n"
24210 "\n"
24211 msgstr ""
24212
24213 # type: =head2
24214 #: ../fish/guestfish-actions.pod:3782
24215 msgid "set-qemu"
24216 msgstr ""
24217
24218 # type: =head2
24219 #: ../fish/guestfish-actions.pod:3784
24220 msgid "qemu"
24221 msgstr ""
24222
24223 # type: verbatim
24224 #: ../fish/guestfish-actions.pod:3786
24225 #, no-wrap
24226 msgid ""
24227 " set-qemu qemu\n"
24228 "\n"
24229 msgstr ""
24230
24231 # type: =head2
24232 #: ../fish/guestfish-actions.pod:3806
24233 msgid "set-recovery-proc"
24234 msgstr ""
24235
24236 # type: =head2
24237 #: ../fish/guestfish-actions.pod:3808
24238 msgid "recovery-proc"
24239 msgstr ""
24240
24241 # type: verbatim
24242 #: ../fish/guestfish-actions.pod:3810
24243 #, no-wrap
24244 msgid ""
24245 " set-recovery-proc true|false\n"
24246 "\n"
24247 msgstr ""
24248
24249 # type: textblock
24250 #: ../fish/guestfish-actions.pod:3812
24251 msgid ""
24252 "If this is called with the parameter C<false> then L</launch> does not "
24253 "create a recovery process.  The purpose of the recovery process is to stop "
24254 "runaway qemu processes in the case where the main program aborts abruptly."
24255 msgstr ""
24256
24257 # type: textblock
24258 #: ../fish/guestfish-actions.pod:3817
24259 msgid ""
24260 "This only has any effect if called before L</launch>, and the default is "
24261 "true."
24262 msgstr ""
24263
24264 # type: =head2
24265 #: ../fish/guestfish-actions.pod:3826
24266 msgid "set-selinux"
24267 msgstr ""
24268
24269 # type: =head2
24270 #: ../fish/guestfish-actions.pod:3828
24271 msgid "selinux"
24272 msgstr ""
24273
24274 # type: verbatim
24275 #: ../fish/guestfish-actions.pod:3830
24276 #, no-wrap
24277 msgid ""
24278 " set-selinux true|false\n"
24279 "\n"
24280 msgstr ""
24281
24282 # type: =head2
24283 #: ../fish/guestfish-actions.pod:3841
24284 msgid "set-trace"
24285 msgstr ""
24286
24287 # type: =head2
24288 #: ../fish/guestfish-actions.pod:3843
24289 msgid "trace"
24290 msgstr ""
24291
24292 # type: verbatim
24293 #: ../fish/guestfish-actions.pod:3845
24294 #, no-wrap
24295 msgid ""
24296 " set-trace true|false\n"
24297 "\n"
24298 msgstr ""
24299
24300 # type: =head2
24301 #: ../fish/guestfish-actions.pod:3861
24302 msgid "set-verbose"
24303 msgstr ""
24304
24305 # type: =head2
24306 #: ../fish/guestfish-actions.pod:3863
24307 msgid "verbose"
24308 msgstr ""
24309
24310 # type: verbatim
24311 #: ../fish/guestfish-actions.pod:3865
24312 #, no-wrap
24313 msgid ""
24314 " set-verbose true|false\n"
24315 "\n"
24316 msgstr ""
24317
24318 # type: =head2
24319 #: ../fish/guestfish-actions.pod:3872
24320 msgid "setcon"
24321 msgstr ""
24322
24323 # type: verbatim
24324 #: ../fish/guestfish-actions.pod:3874
24325 #, no-wrap
24326 msgid ""
24327 " setcon context\n"
24328 "\n"
24329 msgstr ""
24330
24331 # type: =head2
24332 #: ../fish/guestfish-actions.pod:3881
24333 msgid "setxattr"
24334 msgstr ""
24335
24336 # type: verbatim
24337 #: ../fish/guestfish-actions.pod:3883
24338 #, no-wrap
24339 msgid ""
24340 " setxattr xattr val vallen path\n"
24341 "\n"
24342 msgstr ""
24343
24344 # type: textblock
24345 #: ../fish/guestfish-actions.pod:3889
24346 msgid "See also: L</lsetxattr>, L<attr(5)>."
24347 msgstr ""
24348
24349 # type: =head2
24350 #: ../fish/guestfish-actions.pod:3891
24351 msgid "sfdisk"
24352 msgstr ""
24353
24354 # type: verbatim
24355 #: ../fish/guestfish-actions.pod:3893
24356 #, no-wrap
24357 msgid ""
24358 " sfdisk device cyls heads sectors 'lines ...'\n"
24359 "\n"
24360 msgstr ""
24361
24362 # type: textblock
24363 #: ../fish/guestfish-actions.pod:3915
24364 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
24365 msgstr ""
24366
24367 # type: =head2
24368 #: ../fish/guestfish-actions.pod:3921
24369 msgid "sfdiskM"
24370 msgstr ""
24371
24372 # type: verbatim
24373 #: ../fish/guestfish-actions.pod:3923
24374 #, no-wrap
24375 msgid ""
24376 " sfdiskM device 'lines ...'\n"
24377 "\n"
24378 msgstr ""
24379
24380 # type: textblock
24381 #: ../fish/guestfish-actions.pod:3925
24382 msgid ""
24383 "This is a simplified interface to the L</sfdisk> command, where partition "
24384 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
24385 "you don't need to specify the cyls, heads and sectors parameters which were "
24386 "rarely if ever used anyway."
24387 msgstr ""
24388
24389 # type: textblock
24390 #: ../fish/guestfish-actions.pod:3931
24391 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
24392 msgstr ""
24393
24394 # type: =head2
24395 #: ../fish/guestfish-actions.pod:3937
24396 msgid "sfdisk-N"
24397 msgstr ""
24398
24399 # type: verbatim
24400 #: ../fish/guestfish-actions.pod:3939
24401 #, no-wrap
24402 msgid ""
24403 " sfdisk-N device partnum cyls heads sectors line\n"
24404 "\n"
24405 msgstr ""
24406
24407 # type: textblock
24408 #: ../fish/guestfish-actions.pod:3944
24409 msgid ""
24410 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
24411 "cyls/heads/sectors parameters."
24412 msgstr ""
24413
24414 # type: textblock
24415 #: ../fish/guestfish-actions.pod:3947
24416 msgid "See also: L</part-add>"
24417 msgstr ""
24418
24419 # type: =head2
24420 #: ../fish/guestfish-actions.pod:3952
24421 msgid "sfdisk-disk-geometry"
24422 msgstr ""
24423
24424 # type: verbatim
24425 #: ../fish/guestfish-actions.pod:3954
24426 #, no-wrap
24427 msgid ""
24428 " sfdisk-disk-geometry device\n"
24429 "\n"
24430 msgstr ""
24431
24432 # type: textblock
24433 #: ../fish/guestfish-actions.pod:3956
24434 msgid ""
24435 "This displays the disk geometry of C<device> read from the partition table.  "
24436 "Especially in the case where the underlying block device has been resized, "
24437 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
24438 "kernel-geometry>)."
24439 msgstr ""
24440
24441 # type: =head2
24442 #: ../fish/guestfish-actions.pod:3964
24443 msgid "sfdisk-kernel-geometry"
24444 msgstr ""
24445
24446 # type: verbatim
24447 #: ../fish/guestfish-actions.pod:3966
24448 #, no-wrap
24449 msgid ""
24450 " sfdisk-kernel-geometry device\n"
24451 "\n"
24452 msgstr ""
24453
24454 # type: =head2
24455 #: ../fish/guestfish-actions.pod:3973
24456 msgid "sfdisk-l"
24457 msgstr ""
24458
24459 # type: verbatim
24460 #: ../fish/guestfish-actions.pod:3975
24461 #, no-wrap
24462 msgid ""
24463 " sfdisk-l device\n"
24464 "\n"
24465 msgstr ""
24466
24467 # type: textblock
24468 #: ../fish/guestfish-actions.pod:3981
24469 msgid "See also: L</part-list>"
24470 msgstr ""
24471
24472 # type: =head2
24473 #: ../fish/guestfish-actions.pod:3983
24474 msgid "sh"
24475 msgstr ""
24476
24477 # type: verbatim
24478 #: ../fish/guestfish-actions.pod:3985
24479 #, no-wrap
24480 msgid ""
24481 " sh command\n"
24482 "\n"
24483 msgstr ""
24484
24485 # type: textblock
24486 #: ../fish/guestfish-actions.pod:3990
24487 msgid "This is like L</command>, but passes the command to:"
24488 msgstr ""
24489
24490 # type: textblock
24491 #: ../fish/guestfish-actions.pod:3998
24492 msgid "All the provisos about L</command> apply to this call."
24493 msgstr ""
24494
24495 # type: =head2
24496 #: ../fish/guestfish-actions.pod:4000
24497 msgid "sh-lines"
24498 msgstr ""
24499
24500 # type: verbatim
24501 #: ../fish/guestfish-actions.pod:4002
24502 #, no-wrap
24503 msgid ""
24504 " sh-lines command\n"
24505 "\n"
24506 msgstr ""
24507
24508 # type: textblock
24509 #: ../fish/guestfish-actions.pod:4004
24510 msgid "This is the same as L</sh>, but splits the result into a list of lines."
24511 msgstr ""
24512
24513 # type: textblock
24514 #: ../fish/guestfish-actions.pod:4007
24515 msgid "See also: L</command-lines>"
24516 msgstr ""
24517
24518 # type: =head2
24519 #: ../fish/guestfish-actions.pod:4009
24520 msgid "sleep"
24521 msgstr ""
24522
24523 # type: verbatim
24524 #: ../fish/guestfish-actions.pod:4011
24525 #, no-wrap
24526 msgid ""
24527 " sleep secs\n"
24528 "\n"
24529 msgstr ""
24530
24531 # type: =head2
24532 #: ../fish/guestfish-actions.pod:4015
24533 msgid "stat"
24534 msgstr ""
24535
24536 # type: verbatim
24537 #: ../fish/guestfish-actions.pod:4017
24538 #, no-wrap
24539 msgid ""
24540 " stat path\n"
24541 "\n"
24542 msgstr ""
24543
24544 # type: =head2
24545 #: ../fish/guestfish-actions.pod:4023
24546 msgid "statvfs"
24547 msgstr ""
24548
24549 # type: verbatim
24550 #: ../fish/guestfish-actions.pod:4025
24551 #, no-wrap
24552 msgid ""
24553 " statvfs path\n"
24554 "\n"
24555 msgstr ""
24556
24557 # type: =head2
24558 #: ../fish/guestfish-actions.pod:4033
24559 msgid "strings"
24560 msgstr ""
24561
24562 # type: verbatim
24563 #: ../fish/guestfish-actions.pod:4035
24564 #, no-wrap
24565 msgid ""
24566 " strings path\n"
24567 "\n"
24568 msgstr ""
24569
24570 # type: =head2
24571 #: ../fish/guestfish-actions.pod:4043
24572 msgid "strings-e"
24573 msgstr ""
24574
24575 # type: verbatim
24576 #: ../fish/guestfish-actions.pod:4045
24577 #, no-wrap
24578 msgid ""
24579 " strings-e encoding path\n"
24580 "\n"
24581 msgstr ""
24582
24583 # type: textblock
24584 #: ../fish/guestfish-actions.pod:4047
24585 msgid ""
24586 "This is like the L</strings> command, but allows you to specify the encoding "
24587 "of strings that are looked for in the source file C<path>."
24588 msgstr ""
24589
24590 # type: textblock
24591 #: ../fish/guestfish-actions.pod:4057
24592 msgid ""
24593 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24594 "ISO-8859-X (this is what L</strings> uses)."
24595 msgstr ""
24596
24597 # type: =head2
24598 #: ../fish/guestfish-actions.pod:4089
24599 msgid "swapoff-device"
24600 msgstr ""
24601
24602 # type: verbatim
24603 #: ../fish/guestfish-actions.pod:4091
24604 #, no-wrap
24605 msgid ""
24606 " swapoff-device device\n"
24607 "\n"
24608 msgstr ""
24609
24610 # type: textblock
24611 #: ../fish/guestfish-actions.pod:4093
24612 msgid ""
24613 "This command disables the libguestfs appliance swap device or partition "
24614 "named C<device>.  See L</swapon-device>."
24615 msgstr ""
24616
24617 # type: =head2
24618 #: ../fish/guestfish-actions.pod:4097
24619 msgid "swapoff-file"
24620 msgstr ""
24621
24622 # type: verbatim
24623 #: ../fish/guestfish-actions.pod:4099
24624 #, no-wrap
24625 msgid ""
24626 " swapoff-file file\n"
24627 "\n"
24628 msgstr ""
24629
24630 # type: =head2
24631 #: ../fish/guestfish-actions.pod:4103
24632 msgid "swapoff-label"
24633 msgstr ""
24634
24635 # type: verbatim
24636 #: ../fish/guestfish-actions.pod:4105
24637 #, no-wrap
24638 msgid ""
24639 " swapoff-label label\n"
24640 "\n"
24641 msgstr ""
24642
24643 # type: =head2
24644 #: ../fish/guestfish-actions.pod:4110
24645 msgid "swapoff-uuid"
24646 msgstr ""
24647
24648 # type: verbatim
24649 #: ../fish/guestfish-actions.pod:4112
24650 #, no-wrap
24651 msgid ""
24652 " swapoff-uuid uuid\n"
24653 "\n"
24654 msgstr ""
24655
24656 # type: =head2
24657 #: ../fish/guestfish-actions.pod:4117
24658 msgid "swapon-device"
24659 msgstr ""
24660
24661 # type: verbatim
24662 #: ../fish/guestfish-actions.pod:4119
24663 #, no-wrap
24664 msgid ""
24665 " swapon-device device\n"
24666 "\n"
24667 msgstr ""
24668
24669 # type: textblock
24670 #: ../fish/guestfish-actions.pod:4121
24671 msgid ""
24672 "This command enables the libguestfs appliance to use the swap device or "
24673 "partition named C<device>.  The increased memory is made available for all "
24674 "commands, for example those run using L</command> or L</sh>."
24675 msgstr ""
24676
24677 # type: =head2
24678 #: ../fish/guestfish-actions.pod:4133
24679 msgid "swapon-file"
24680 msgstr ""
24681
24682 # type: verbatim
24683 #: ../fish/guestfish-actions.pod:4135
24684 #, no-wrap
24685 msgid ""
24686 " swapon-file file\n"
24687 "\n"
24688 msgstr ""
24689
24690 # type: textblock
24691 #: ../fish/guestfish-actions.pod:4137
24692 msgid ""
24693 "This command enables swap to a file.  See L</swapon-device> for other notes."
24694 msgstr ""
24695
24696 # type: =head2
24697 #: ../fish/guestfish-actions.pod:4140
24698 msgid "swapon-label"
24699 msgstr ""
24700
24701 # type: verbatim
24702 #: ../fish/guestfish-actions.pod:4142
24703 #, no-wrap
24704 msgid ""
24705 " swapon-label label\n"
24706 "\n"
24707 msgstr ""
24708
24709 # type: textblock
24710 #: ../fish/guestfish-actions.pod:4144
24711 msgid ""
24712 "This command enables swap to a labeled swap partition.  See L</swapon-"
24713 "device> for other notes."
24714 msgstr ""
24715
24716 # type: =head2
24717 #: ../fish/guestfish-actions.pod:4147
24718 msgid "swapon-uuid"
24719 msgstr ""
24720
24721 # type: verbatim
24722 #: ../fish/guestfish-actions.pod:4149
24723 #, no-wrap
24724 msgid ""
24725 " swapon-uuid uuid\n"
24726 "\n"
24727 msgstr ""
24728
24729 # type: textblock
24730 #: ../fish/guestfish-actions.pod:4151
24731 msgid ""
24732 "This command enables swap to a swap partition with the given UUID.  See L</"
24733 "swapon-device> for other notes."
24734 msgstr ""
24735
24736 # type: =head2
24737 #: ../fish/guestfish-actions.pod:4154
24738 msgid "sync"
24739 msgstr ""
24740
24741 # type: verbatim
24742 #: ../fish/guestfish-actions.pod:4156
24743 #, no-wrap
24744 msgid ""
24745 " sync\n"
24746 "\n"
24747 msgstr ""
24748
24749 # type: =head2
24750 #: ../fish/guestfish-actions.pod:4164
24751 msgid "tail"
24752 msgstr ""
24753
24754 # type: verbatim
24755 #: ../fish/guestfish-actions.pod:4166
24756 #, no-wrap
24757 msgid ""
24758 " tail path\n"
24759 "\n"
24760 msgstr ""
24761
24762 # type: =head2
24763 #: ../fish/guestfish-actions.pod:4174
24764 msgid "tail-n"
24765 msgstr ""
24766
24767 # type: verbatim
24768 #: ../fish/guestfish-actions.pod:4176
24769 #, no-wrap
24770 msgid ""
24771 " tail-n nrlines path\n"
24772 "\n"
24773 msgstr ""
24774
24775 # type: =head2
24776 #: ../fish/guestfish-actions.pod:4189
24777 msgid "tar-in"
24778 msgstr ""
24779
24780 # type: verbatim
24781 #: ../fish/guestfish-actions.pod:4191
24782 #, no-wrap
24783 msgid ""
24784 " tar-in (tarfile|-) directory\n"
24785 "\n"
24786 msgstr ""
24787
24788 # type: textblock
24789 #: ../fish/guestfish-actions.pod:4196
24790 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24791 msgstr ""
24792
24793 # type: =head2
24794 #: ../fish/guestfish-actions.pod:4201
24795 msgid "tar-out"
24796 msgstr ""
24797
24798 # type: verbatim
24799 #: ../fish/guestfish-actions.pod:4203
24800 #, no-wrap
24801 msgid ""
24802 " tar-out directory (tarfile|-)\n"
24803 "\n"
24804 msgstr ""
24805
24806 # type: textblock
24807 #: ../fish/guestfish-actions.pod:4208
24808 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24809 msgstr ""
24810
24811 # type: =head2
24812 #: ../fish/guestfish-actions.pod:4213
24813 msgid "tgz-in"
24814 msgstr ""
24815
24816 # type: verbatim
24817 #: ../fish/guestfish-actions.pod:4215
24818 #, no-wrap
24819 msgid ""
24820 " tgz-in (tarball|-) directory\n"
24821 "\n"
24822 msgstr ""
24823
24824 # type: textblock
24825 #: ../fish/guestfish-actions.pod:4220
24826 msgid "To upload an uncompressed tarball, use L</tar-in>."
24827 msgstr ""
24828
24829 # type: =head2
24830 #: ../fish/guestfish-actions.pod:4224
24831 msgid "tgz-out"
24832 msgstr ""
24833
24834 # type: verbatim
24835 #: ../fish/guestfish-actions.pod:4226
24836 #, no-wrap
24837 msgid ""
24838 " tgz-out directory (tarball|-)\n"
24839 "\n"
24840 msgstr ""
24841
24842 # type: textblock
24843 #: ../fish/guestfish-actions.pod:4231
24844 msgid "To download an uncompressed tarball, use L</tar-out>."
24845 msgstr ""
24846
24847 # type: =head2
24848 #: ../fish/guestfish-actions.pod:4235
24849 msgid "touch"
24850 msgstr ""
24851
24852 # type: verbatim
24853 #: ../fish/guestfish-actions.pod:4237
24854 #, no-wrap
24855 msgid ""
24856 " touch path\n"
24857 "\n"
24858 msgstr ""
24859
24860 # type: =head2
24861 #: ../fish/guestfish-actions.pod:4246
24862 msgid "truncate"
24863 msgstr ""
24864
24865 # type: verbatim
24866 #: ../fish/guestfish-actions.pod:4248
24867 #, no-wrap
24868 msgid ""
24869 " truncate path\n"
24870 "\n"
24871 msgstr ""
24872
24873 # type: =head2
24874 #: ../fish/guestfish-actions.pod:4253
24875 msgid "truncate-size"
24876 msgstr ""
24877
24878 # type: verbatim
24879 #: ../fish/guestfish-actions.pod:4255
24880 #, no-wrap
24881 msgid ""
24882 " truncate-size path size\n"
24883 "\n"
24884 msgstr ""
24885
24886 # type: textblock
24887 #: ../fish/guestfish-actions.pod:4260
24888 msgid ""
24889 "If the current file size is less than C<size> then the file is extended to "
24890 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24891 "blocks are not allocated for the file until you write to it).  To create a "
24892 "non-sparse file of zeroes, use L</fallocate64> instead."
24893 msgstr ""
24894
24895 # type: =head2
24896 #: ../fish/guestfish-actions.pod:4266
24897 msgid "tune2fs-l"
24898 msgstr ""
24899
24900 # type: verbatim
24901 #: ../fish/guestfish-actions.pod:4268
24902 #, no-wrap
24903 msgid ""
24904 " tune2fs-l device\n"
24905 "\n"
24906 msgstr ""
24907
24908 # type: =head2
24909 #: ../fish/guestfish-actions.pod:4278
24910 msgid "txz-in"
24911 msgstr ""
24912
24913 # type: verbatim
24914 #: ../fish/guestfish-actions.pod:4280
24915 #, no-wrap
24916 msgid ""
24917 " txz-in (tarball|-) directory\n"
24918 "\n"
24919 msgstr ""
24920
24921 # type: =head2
24922 #: ../fish/guestfish-actions.pod:4287
24923 msgid "txz-out"
24924 msgstr ""
24925
24926 # type: verbatim
24927 #: ../fish/guestfish-actions.pod:4289
24928 #, no-wrap
24929 msgid ""
24930 " txz-out directory (tarball|-)\n"
24931 "\n"
24932 msgstr ""
24933
24934 # type: =head2
24935 #: ../fish/guestfish-actions.pod:4296
24936 msgid "umask"
24937 msgstr ""
24938
24939 # type: verbatim
24940 #: ../fish/guestfish-actions.pod:4298
24941 #, no-wrap
24942 msgid ""
24943 " umask mask\n"
24944 "\n"
24945 msgstr ""
24946
24947 # type: textblock
24948 #: ../fish/guestfish-actions.pod:4312
24949 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24950 msgstr ""
24951
24952 # type: =head2
24953 #: ../fish/guestfish-actions.pod:4317
24954 msgid "umount"
24955 msgstr ""
24956
24957 # type: =head2
24958 #: ../fish/guestfish-actions.pod:4319
24959 msgid "unmount"
24960 msgstr ""
24961
24962 # type: verbatim
24963 #: ../fish/guestfish-actions.pod:4321
24964 #, no-wrap
24965 msgid ""
24966 " umount pathordevice\n"
24967 "\n"
24968 msgstr ""
24969
24970 # type: =head2
24971 #: ../fish/guestfish-actions.pod:4327
24972 msgid "umount-all"
24973 msgstr ""
24974
24975 # type: =head2
24976 #: ../fish/guestfish-actions.pod:4329
24977 msgid "unmount-all"
24978 msgstr ""
24979
24980 # type: verbatim
24981 #: ../fish/guestfish-actions.pod:4331
24982 #, no-wrap
24983 msgid ""
24984 " umount-all\n"
24985 "\n"
24986 msgstr ""
24987
24988 # type: =head2
24989 #: ../fish/guestfish-actions.pod:4337
24990 msgid "upload"
24991 msgstr ""
24992
24993 # type: verbatim
24994 #: ../fish/guestfish-actions.pod:4339
24995 #, no-wrap
24996 msgid ""
24997 " upload (filename|-) remotefilename\n"
24998 "\n"
24999 msgstr ""
25000
25001 # type: textblock
25002 #: ../fish/guestfish-actions.pod:4346
25003 msgid "See also L</download>."
25004 msgstr ""
25005
25006 # type: =head2
25007 #: ../fish/guestfish-actions.pod:4350
25008 msgid "upload-offset"
25009 msgstr ""
25010
25011 # type: verbatim
25012 #: ../fish/guestfish-actions.pod:4352
25013 #, no-wrap
25014 msgid ""
25015 " upload-offset (filename|-) remotefilename offset\n"
25016 "\n"
25017 msgstr ""
25018
25019 # type: textblock
25020 #: ../fish/guestfish-actions.pod:4364
25021 msgid ""
25022 "Note that there is no limit on the amount of data that can be uploaded with "
25023 "this call, unlike with L</pwrite>, and this call always writes the full "
25024 "amount unless an error occurs."
25025 msgstr ""
25026
25027 # type: textblock
25028 #: ../fish/guestfish-actions.pod:4369
25029 msgid "See also L</upload>, L</pwrite>."
25030 msgstr ""
25031
25032 # type: =head2
25033 #: ../fish/guestfish-actions.pod:4373
25034 msgid "utimens"
25035 msgstr ""
25036
25037 # type: verbatim
25038 #: ../fish/guestfish-actions.pod:4375
25039 #, no-wrap
25040 msgid ""
25041 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
25042 "\n"
25043 msgstr ""
25044
25045 # type: =head2
25046 #: ../fish/guestfish-actions.pod:4394
25047 msgid "version"
25048 msgstr ""
25049
25050 # type: verbatim
25051 #: ../fish/guestfish-actions.pod:4396
25052 #, no-wrap
25053 msgid ""
25054 " version\n"
25055 "\n"
25056 msgstr ""
25057
25058 # type: textblock
25059 #: ../fish/guestfish-actions.pod:4423
25060 msgid ""
25061 "I<Note:> Don't use this call to test for availability of features.  In "
25062 "enterprise distributions we backport features from later versions into "
25063 "earlier versions, making this an unreliable way to test for features.  Use "
25064 "L</available> instead."
25065 msgstr ""
25066
25067 # type: =head2
25068 #: ../fish/guestfish-actions.pod:4429
25069 msgid "vfs-label"
25070 msgstr ""
25071
25072 # type: verbatim
25073 #: ../fish/guestfish-actions.pod:4431
25074 #, no-wrap
25075 msgid ""
25076 " vfs-label device\n"
25077 "\n"
25078 msgstr ""
25079
25080 # type: textblock
25081 #: ../fish/guestfish-actions.pod:4438
25082 msgid "To find a filesystem from the label, use L</findfs-label>."
25083 msgstr ""
25084
25085 # type: =head2
25086 #: ../fish/guestfish-actions.pod:4440
25087 msgid "vfs-type"
25088 msgstr ""
25089
25090 # type: verbatim
25091 #: ../fish/guestfish-actions.pod:4442
25092 #, no-wrap
25093 msgid ""
25094 " vfs-type device\n"
25095 "\n"
25096 msgstr ""
25097
25098 # type: =head2
25099 #: ../fish/guestfish-actions.pod:4452
25100 msgid "vfs-uuid"
25101 msgstr ""
25102
25103 # type: verbatim
25104 #: ../fish/guestfish-actions.pod:4454
25105 #, no-wrap
25106 msgid ""
25107 " vfs-uuid device\n"
25108 "\n"
25109 msgstr ""
25110
25111 # type: textblock
25112 #: ../fish/guestfish-actions.pod:4461
25113 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
25114 msgstr ""
25115
25116 # type: =head2
25117 #: ../fish/guestfish-actions.pod:4463
25118 msgid "vg-activate"
25119 msgstr ""
25120
25121 # type: verbatim
25122 #: ../fish/guestfish-actions.pod:4465
25123 #, no-wrap
25124 msgid ""
25125 " vg-activate true|false 'volgroups ...'\n"
25126 "\n"
25127 msgstr ""
25128
25129 # type: =head2
25130 #: ../fish/guestfish-actions.pod:4478
25131 msgid "vg-activate-all"
25132 msgstr ""
25133
25134 # type: verbatim
25135 #: ../fish/guestfish-actions.pod:4480
25136 #, no-wrap
25137 msgid ""
25138 " vg-activate-all true|false\n"
25139 "\n"
25140 msgstr ""
25141
25142 # type: =head2
25143 #: ../fish/guestfish-actions.pod:4490
25144 msgid "vgcreate"
25145 msgstr ""
25146
25147 # type: verbatim
25148 #: ../fish/guestfish-actions.pod:4492
25149 #, no-wrap
25150 msgid ""
25151 " vgcreate volgroup 'physvols ...'\n"
25152 "\n"
25153 msgstr ""
25154
25155 # type: =head2
25156 #: ../fish/guestfish-actions.pod:4497
25157 msgid "vglvuuids"
25158 msgstr ""
25159
25160 # type: verbatim
25161 #: ../fish/guestfish-actions.pod:4499
25162 #, no-wrap
25163 msgid ""
25164 " vglvuuids vgname\n"
25165 "\n"
25166 msgstr ""
25167
25168 # type: textblock
25169 #: ../fish/guestfish-actions.pod:4504
25170 msgid ""
25171 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
25172 "logical volumes and volume groups."
25173 msgstr ""
25174
25175 # type: textblock
25176 #: ../fish/guestfish-actions.pod:4507
25177 msgid "See also L</vgpvuuids>."
25178 msgstr ""
25179
25180 # type: =head2
25181 #: ../fish/guestfish-actions.pod:4509
25182 msgid "vgpvuuids"
25183 msgstr ""
25184
25185 # type: verbatim
25186 #: ../fish/guestfish-actions.pod:4511
25187 #, no-wrap
25188 msgid ""
25189 " vgpvuuids vgname\n"
25190 "\n"
25191 msgstr ""
25192
25193 # type: textblock
25194 #: ../fish/guestfish-actions.pod:4516
25195 msgid ""
25196 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
25197 "physical volumes and volume groups."
25198 msgstr ""
25199
25200 # type: textblock
25201 #: ../fish/guestfish-actions.pod:4519
25202 msgid "See also L</vglvuuids>."
25203 msgstr ""
25204
25205 # type: =head2
25206 #: ../fish/guestfish-actions.pod:4521
25207 msgid "vgremove"
25208 msgstr ""
25209
25210 # type: verbatim
25211 #: ../fish/guestfish-actions.pod:4523
25212 #, no-wrap
25213 msgid ""
25214 " vgremove vgname\n"
25215 "\n"
25216 msgstr ""
25217
25218 # type: =head2
25219 #: ../fish/guestfish-actions.pod:4530
25220 msgid "vgrename"
25221 msgstr ""
25222
25223 # type: verbatim
25224 #: ../fish/guestfish-actions.pod:4532
25225 #, no-wrap
25226 msgid ""
25227 " vgrename volgroup newvolgroup\n"
25228 "\n"
25229 msgstr ""
25230
25231 # type: =head2
25232 #: ../fish/guestfish-actions.pod:4536
25233 msgid "vgs"
25234 msgstr ""
25235
25236 # type: verbatim
25237 #: ../fish/guestfish-actions.pod:4538
25238 #, no-wrap
25239 msgid ""
25240 " vgs\n"
25241 "\n"
25242 msgstr ""
25243
25244 # type: textblock
25245 #: ../fish/guestfish-actions.pod:4546
25246 msgid "See also L</vgs-full>."
25247 msgstr ""
25248
25249 # type: =head2
25250 #: ../fish/guestfish-actions.pod:4548
25251 msgid "vgs-full"
25252 msgstr ""
25253
25254 # type: verbatim
25255 #: ../fish/guestfish-actions.pod:4550
25256 #, no-wrap
25257 msgid ""
25258 " vgs-full\n"
25259 "\n"
25260 msgstr ""
25261
25262 # type: =head2
25263 #: ../fish/guestfish-actions.pod:4555
25264 msgid "vgscan"
25265 msgstr ""
25266
25267 # type: verbatim
25268 #: ../fish/guestfish-actions.pod:4557
25269 #, no-wrap
25270 msgid ""
25271 " vgscan\n"
25272 "\n"
25273 msgstr ""
25274
25275 # type: =head2
25276 #: ../fish/guestfish-actions.pod:4562
25277 msgid "vguuid"
25278 msgstr ""
25279
25280 # type: verbatim
25281 #: ../fish/guestfish-actions.pod:4564
25282 #, no-wrap
25283 msgid ""
25284 " vguuid vgname\n"
25285 "\n"
25286 msgstr ""
25287
25288 # type: =head2
25289 #: ../fish/guestfish-actions.pod:4568
25290 msgid "wc-c"
25291 msgstr ""
25292
25293 # type: verbatim
25294 #: ../fish/guestfish-actions.pod:4570
25295 #, no-wrap
25296 msgid ""
25297 " wc-c path\n"
25298 "\n"
25299 msgstr ""
25300
25301 # type: =head2
25302 #: ../fish/guestfish-actions.pod:4575
25303 msgid "wc-l"
25304 msgstr ""
25305
25306 # type: verbatim
25307 #: ../fish/guestfish-actions.pod:4577
25308 #, no-wrap
25309 msgid ""
25310 " wc-l path\n"
25311 "\n"
25312 msgstr ""
25313
25314 # type: =head2
25315 #: ../fish/guestfish-actions.pod:4582
25316 msgid "wc-w"
25317 msgstr ""
25318
25319 # type: verbatim
25320 #: ../fish/guestfish-actions.pod:4584
25321 #, no-wrap
25322 msgid ""
25323 " wc-w path\n"
25324 "\n"
25325 msgstr ""
25326
25327 # type: =head2
25328 #: ../fish/guestfish-actions.pod:4589
25329 msgid "write"
25330 msgstr ""
25331
25332 # type: verbatim
25333 #: ../fish/guestfish-actions.pod:4591
25334 #, no-wrap
25335 msgid ""
25336 " write path content\n"
25337 "\n"
25338 msgstr ""
25339
25340 # type: =head2
25341 #: ../fish/guestfish-actions.pod:4599
25342 msgid "write-file"
25343 msgstr ""
25344
25345 # type: verbatim
25346 #: ../fish/guestfish-actions.pod:4601
25347 #, no-wrap
25348 msgid ""
25349 " write-file path content size\n"
25350 "\n"
25351 msgstr ""
25352
25353 # type: =head2
25354 #: ../fish/guestfish-actions.pod:4624
25355 msgid "zegrep"
25356 msgstr ""
25357
25358 # type: verbatim
25359 #: ../fish/guestfish-actions.pod:4626
25360 #, no-wrap
25361 msgid ""
25362 " zegrep regex path\n"
25363 "\n"
25364 msgstr ""
25365
25366 # type: =head2
25367 #: ../fish/guestfish-actions.pod:4634
25368 msgid "zegrepi"
25369 msgstr ""
25370
25371 # type: verbatim
25372 #: ../fish/guestfish-actions.pod:4636
25373 #, no-wrap
25374 msgid ""
25375 " zegrepi regex path\n"
25376 "\n"
25377 msgstr ""
25378
25379 # type: =head2
25380 #: ../fish/guestfish-actions.pod:4644
25381 msgid "zero"
25382 msgstr ""
25383
25384 # type: verbatim
25385 #: ../fish/guestfish-actions.pod:4646
25386 #, no-wrap
25387 msgid ""
25388 " zero device\n"
25389 "\n"
25390 msgstr ""
25391
25392 # type: textblock
25393 #: ../fish/guestfish-actions.pod:4654
25394 msgid "See also: L</zero-device>, L</scrub-device>."
25395 msgstr ""
25396
25397 # type: =head2
25398 #: ../fish/guestfish-actions.pod:4656
25399 msgid "zero-device"
25400 msgstr ""
25401
25402 # type: verbatim
25403 #: ../fish/guestfish-actions.pod:4658
25404 #, no-wrap
25405 msgid ""
25406 " zero-device device\n"
25407 "\n"
25408 msgstr ""
25409
25410 # type: textblock
25411 #: ../fish/guestfish-actions.pod:4660
25412 msgid ""
25413 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
25414 "which just zeroes the first few blocks of a device."
25415 msgstr ""
25416
25417 # type: =head2
25418 #: ../fish/guestfish-actions.pod:4667
25419 msgid "zerofree"
25420 msgstr ""
25421
25422 # type: verbatim
25423 #: ../fish/guestfish-actions.pod:4669
25424 #, no-wrap
25425 msgid ""
25426 " zerofree device\n"
25427 "\n"
25428 msgstr ""
25429
25430 # type: =head2
25431 #: ../fish/guestfish-actions.pod:4682
25432 msgid "zfgrep"
25433 msgstr ""
25434
25435 # type: verbatim
25436 #: ../fish/guestfish-actions.pod:4684
25437 #, no-wrap
25438 msgid ""
25439 " zfgrep pattern path\n"
25440 "\n"
25441 msgstr ""
25442
25443 # type: =head2
25444 #: ../fish/guestfish-actions.pod:4692
25445 msgid "zfgrepi"
25446 msgstr ""
25447
25448 # type: verbatim
25449 #: ../fish/guestfish-actions.pod:4694
25450 #, no-wrap
25451 msgid ""
25452 " zfgrepi pattern path\n"
25453 "\n"
25454 msgstr ""
25455
25456 # type: =head2
25457 #: ../fish/guestfish-actions.pod:4702
25458 msgid "zfile"
25459 msgstr ""
25460
25461 # type: verbatim
25462 #: ../fish/guestfish-actions.pod:4704
25463 #, no-wrap
25464 msgid ""
25465 " zfile meth path\n"
25466 "\n"
25467 msgstr ""
25468
25469 # type: textblock
25470 #: ../fish/guestfish-actions.pod:4711
25471 msgid ""
25472 "Since 1.0.63, use L</file> instead which can now process compressed files."
25473 msgstr ""
25474
25475 # type: =head2
25476 #: ../fish/guestfish-actions.pod:4721
25477 msgid "zgrep"
25478 msgstr ""
25479
25480 # type: verbatim
25481 #: ../fish/guestfish-actions.pod:4723
25482 #, no-wrap
25483 msgid ""
25484 " zgrep regex path\n"
25485 "\n"
25486 msgstr ""
25487
25488 # type: =head2
25489 #: ../fish/guestfish-actions.pod:4731
25490 msgid "zgrepi"
25491 msgstr ""
25492
25493 # type: verbatim
25494 #: ../fish/guestfish-actions.pod:4733
25495 #, no-wrap
25496 msgid ""
25497 " zgrepi regex path\n"
25498 "\n"
25499 msgstr ""
25500
25501 # type: =head2
25502 #: ../fish/guestfish-commands.pod:1
25503 msgid "alloc"
25504 msgstr ""
25505
25506 # type: =head2
25507 #: ../fish/guestfish-commands.pod:3
25508 msgid "allocate"
25509 msgstr ""
25510
25511 # type: verbatim
25512 #: ../fish/guestfish-commands.pod:5
25513 #, no-wrap
25514 msgid ""
25515 " alloc filename size\n"
25516 "\n"
25517 msgstr ""
25518
25519 # type: textblock
25520 #: ../fish/guestfish-commands.pod:7
25521 msgid ""
25522 "This creates an empty (zeroed) file of the given size, and then adds so it "
25523 "can be further examined."
25524 msgstr ""
25525
25526 # type: textblock
25527 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25528 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25529 msgstr ""
25530
25531 # type: textblock
25532 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25533 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25534 msgstr ""
25535
25536 # type: textblock
25537 #: ../fish/guestfish-commands.pod:14
25538 msgid ""
25539 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25540 "image, see L</PREPARED DISK IMAGES>."
25541 msgstr ""
25542
25543 # type: =head2
25544 #: ../fish/guestfish-commands.pod:17
25545 msgid "copy-in"
25546 msgstr ""
25547
25548 # type: verbatim
25549 #: ../fish/guestfish-commands.pod:19
25550 #, no-wrap
25551 msgid ""
25552 " copy-in local [local ...] /remotedir\n"
25553 "\n"
25554 msgstr ""
25555
25556 # type: textblock
25557 #: ../fish/guestfish-commands.pod:21
25558 msgid ""
25559 "C<copy-in> copies local files or directories recursively into the disk "
25560 "image, placing them in the directory called C</remotedir> (which must "
25561 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25562 "other commands as necessary."
25563 msgstr ""
25564
25565 # type: textblock
25566 #: ../fish/guestfish-commands.pod:26
25567 msgid ""
25568 "Multiple local files and directories can be specified, but the last "
25569 "parameter must always be a remote directory.  Wildcards cannot be used."
25570 msgstr ""
25571
25572 # type: =head2
25573 #: ../fish/guestfish-commands.pod:30
25574 msgid "copy-out"
25575 msgstr ""
25576
25577 # type: verbatim
25578 #: ../fish/guestfish-commands.pod:32
25579 #, no-wrap
25580 msgid ""
25581 " copy-out remote [remote ...] localdir\n"
25582 "\n"
25583 msgstr ""
25584
25585 # type: textblock
25586 #: ../fish/guestfish-commands.pod:34
25587 msgid ""
25588 "C<copy-out> copies remote files or directories recursively out of the disk "
25589 "image, placing them on the host disk in a local directory called C<localdir> "
25590 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25591 "download>, L</tar-out> and other commands as necessary."
25592 msgstr ""
25593
25594 # type: textblock
25595 #: ../fish/guestfish-commands.pod:40
25596 msgid ""
25597 "Multiple remote files and directories can be specified, but the last "
25598 "parameter must always be a local directory.  To download to the current "
25599 "directory, use C<.> as in:"
25600 msgstr ""
25601
25602 # type: verbatim
25603 #: ../fish/guestfish-commands.pod:44
25604 #, no-wrap
25605 msgid ""
25606 " copy-out /home .\n"
25607 "\n"
25608 msgstr ""
25609
25610 # type: textblock
25611 #: ../fish/guestfish-commands.pod:46
25612 msgid ""
25613 "Wildcards cannot be used in the ordinary command, but you can use them with "
25614 "the help of L</glob> like this:"
25615 msgstr ""
25616
25617 # type: verbatim
25618 #: ../fish/guestfish-commands.pod:49
25619 #, no-wrap
25620 msgid ""
25621 " glob copy-out /home/* .\n"
25622 "\n"
25623 msgstr ""
25624
25625 # type: =head2
25626 #: ../fish/guestfish-commands.pod:51
25627 msgid "echo"
25628 msgstr ""
25629
25630 # type: verbatim
25631 #: ../fish/guestfish-commands.pod:53
25632 #, no-wrap
25633 msgid ""
25634 " echo [params ...]\n"
25635 "\n"
25636 msgstr ""
25637
25638 # type: textblock
25639 #: ../fish/guestfish-commands.pod:55
25640 msgid "This echos the parameters to the terminal."
25641 msgstr ""
25642
25643 # type: =head2
25644 #: ../fish/guestfish-commands.pod:57
25645 msgid "edit"
25646 msgstr ""
25647
25648 # type: =head2
25649 #: ../fish/guestfish-commands.pod:59
25650 msgid "vi"
25651 msgstr ""
25652
25653 # type: =head2
25654 #: ../fish/guestfish-commands.pod:61
25655 msgid "emacs"
25656 msgstr ""
25657
25658 # type: verbatim
25659 #: ../fish/guestfish-commands.pod:63
25660 #, no-wrap
25661 msgid ""
25662 " edit filename\n"
25663 "\n"
25664 msgstr ""
25665
25666 # type: textblock
25667 #: ../fish/guestfish-commands.pod:65
25668 msgid ""
25669 "This is used to edit a file.  It downloads the file, edits it locally using "
25670 "your editor, then uploads the result."
25671 msgstr ""
25672
25673 # type: textblock
25674 #: ../fish/guestfish-commands.pod:68
25675 msgid ""
25676 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25677 "or C<emacs> you will get those corresponding editors."
25678 msgstr ""
25679
25680 # type: =head2
25681 #: ../fish/guestfish-commands.pod:72
25682 msgid "glob"
25683 msgstr ""
25684
25685 # type: verbatim
25686 #: ../fish/guestfish-commands.pod:74
25687 #, no-wrap
25688 msgid ""
25689 " glob command args...\n"
25690 "\n"
25691 msgstr ""
25692
25693 # type: textblock
25694 #: ../fish/guestfish-commands.pod:76
25695 msgid ""
25696 "Expand wildcards in any paths in the args list, and run C<command> "
25697 "repeatedly on each matching path."
25698 msgstr ""
25699
25700 # type: textblock
25701 #: ../fish/guestfish-commands.pod:79
25702 msgid "See L</WILDCARDS AND GLOBBING>."
25703 msgstr ""
25704
25705 # type: =head2
25706 #: ../fish/guestfish-commands.pod:81
25707 msgid "hexedit"
25708 msgstr ""
25709
25710 # type: verbatim
25711 #: ../fish/guestfish-commands.pod:83
25712 #, no-wrap
25713 msgid ""
25714 " hexedit <filename|device>\n"
25715 " hexedit <filename|device> <max>\n"
25716 " hexedit <filename|device> <start> <max>\n"
25717 "\n"
25718 msgstr ""
25719
25720 # type: textblock
25721 #: ../fish/guestfish-commands.pod:87
25722 msgid ""
25723 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25724 "device."
25725 msgstr ""
25726
25727 # type: textblock
25728 #: ../fish/guestfish-commands.pod:90
25729 msgid ""
25730 "This command works by downloading potentially the whole file or device, "
25731 "editing it locally, then uploading it.  If the file or device is large, you "
25732 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25733 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25734 "usual modifiers allowed such as C<1M> (1 megabyte)."
25735 msgstr ""
25736
25737 # type: textblock
25738 #: ../fish/guestfish-commands.pod:97
25739 msgid "For example to edit the first few sectors of a disk you might do:"
25740 msgstr ""
25741
25742 # type: verbatim
25743 #: ../fish/guestfish-commands.pod:100
25744 #, no-wrap
25745 msgid ""
25746 " hexedit /dev/sda 1M\n"
25747 "\n"
25748 msgstr ""
25749
25750 # type: textblock
25751 #: ../fish/guestfish-commands.pod:102
25752 msgid ""
25753 "which would allow you to edit anywhere within the first megabyte of the disk."
25754 msgstr ""
25755
25756 # type: textblock
25757 #: ../fish/guestfish-commands.pod:105
25758 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25759 msgstr ""
25760
25761 # type: verbatim
25762 #: ../fish/guestfish-commands.pod:107
25763 #, no-wrap
25764 msgid ""
25765 " hexedit /dev/sda1 0x400 0x400\n"
25766 "\n"
25767 msgstr ""
25768
25769 # type: textblock
25770 #: ../fish/guestfish-commands.pod:109
25771 msgid "(assuming the superblock is in the standard location)."
25772 msgstr ""
25773
25774 # type: textblock
25775 #: ../fish/guestfish-commands.pod:111
25776 msgid ""
25777 "This command requires the external L<hexedit(1)> program.  You can specify "
25778 "another program to use by setting the C<HEXEDITOR> environment variable."
25779 msgstr ""
25780
25781 # type: textblock
25782 #: ../fish/guestfish-commands.pod:115
25783 msgid "See also L</hexdump>."
25784 msgstr ""
25785
25786 # type: =head2
25787 #: ../fish/guestfish-commands.pod:117
25788 msgid "lcd"
25789 msgstr ""
25790
25791 # type: verbatim
25792 #: ../fish/guestfish-commands.pod:119
25793 #, no-wrap
25794 msgid ""
25795 " lcd directory\n"
25796 "\n"
25797 msgstr ""
25798
25799 # type: textblock
25800 #: ../fish/guestfish-commands.pod:121
25801 msgid ""
25802 "Change the local directory, ie. the current directory of guestfish itself."
25803 msgstr ""
25804
25805 # type: textblock
25806 #: ../fish/guestfish-commands.pod:124
25807 msgid "Note that C<!cd> won't do what you might expect."
25808 msgstr ""
25809
25810 # type: =head2
25811 #: ../fish/guestfish-commands.pod:126
25812 msgid "man"
25813 msgstr ""
25814
25815 # type: =head2
25816 #: ../fish/guestfish-commands.pod:128
25817 msgid "manual"
25818 msgstr ""
25819
25820 # type: verbatim
25821 #: ../fish/guestfish-commands.pod:130
25822 #, no-wrap
25823 msgid ""
25824 "  man\n"
25825 "\n"
25826 msgstr ""
25827
25828 # type: textblock
25829 #: ../fish/guestfish-commands.pod:132
25830 msgid "Opens the manual page for guestfish."
25831 msgstr ""
25832
25833 # type: =head2
25834 #: ../fish/guestfish-commands.pod:134
25835 msgid "more"
25836 msgstr ""
25837
25838 # type: =head2
25839 #: ../fish/guestfish-commands.pod:136
25840 msgid "less"
25841 msgstr ""
25842
25843 # type: verbatim
25844 #: ../fish/guestfish-commands.pod:138
25845 #, no-wrap
25846 msgid ""
25847 " more filename\n"
25848 "\n"
25849 msgstr ""
25850
25851 # type: verbatim
25852 #: ../fish/guestfish-commands.pod:140
25853 #, no-wrap
25854 msgid ""
25855 " less filename\n"
25856 "\n"
25857 msgstr ""
25858
25859 # type: textblock
25860 #: ../fish/guestfish-commands.pod:142
25861 msgid "This is used to view a file."
25862 msgstr ""
25863
25864 # type: textblock
25865 #: ../fish/guestfish-commands.pod:144
25866 msgid ""
25867 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25868 "C<less> you will get the C<less> command specifically."
25869 msgstr ""
25870
25871 # type: =head2
25872 #: ../fish/guestfish-commands.pod:147
25873 msgid "reopen"
25874 msgstr ""
25875
25876 # type: verbatim
25877 #: ../fish/guestfish-commands.pod:149
25878 #, no-wrap
25879 msgid ""
25880 "  reopen\n"
25881 "\n"
25882 msgstr ""
25883
25884 # type: textblock
25885 #: ../fish/guestfish-commands.pod:151
25886 msgid ""
25887 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25888 "normally, because the handle is closed properly when guestfish exits.  "
25889 "However this is occasionally useful for testing."
25890 msgstr ""
25891
25892 # type: =head2
25893 #: ../fish/guestfish-commands.pod:155
25894 msgid "sparse"
25895 msgstr ""
25896
25897 # type: verbatim
25898 #: ../fish/guestfish-commands.pod:157
25899 #, no-wrap
25900 msgid ""
25901 " sparse filename size\n"
25902 "\n"
25903 msgstr ""
25904
25905 # type: textblock
25906 #: ../fish/guestfish-commands.pod:159
25907 msgid ""
25908 "This creates an empty sparse file of the given size, and then adds so it can "
25909 "be further examined."
25910 msgstr ""
25911
25912 # type: textblock
25913 #: ../fish/guestfish-commands.pod:162
25914 msgid ""
25915 "In all respects it works the same as the L</alloc> command, except that the "
25916 "image file is allocated sparsely, which means that disk blocks are not "
25917 "assigned to the file until they are needed.  Sparse disk files only use "
25918 "space when written to, but they are slower and there is a danger you could "
25919 "run out of real disk space during a write operation."
25920 msgstr ""
25921
25922 # type: =head2
25923 #: ../fish/guestfish-commands.pod:172
25924 msgid "supported"
25925 msgstr ""
25926
25927 # type: verbatim
25928 #: ../fish/guestfish-commands.pod:174
25929 #, no-wrap
25930 msgid ""
25931 " supported\n"
25932 "\n"
25933 msgstr ""
25934
25935 # type: textblock
25936 #: ../fish/guestfish-commands.pod:176
25937 msgid ""
25938 "This command returns a list of the optional groups known to the daemon, and "
25939 "indicates which ones are supported by this build of the libguestfs appliance."
25940 msgstr ""
25941
25942 # type: textblock
25943 #: ../fish/guestfish-commands.pod:180
25944 msgid "See also L<guestfs(3)/AVAILABILITY>."
25945 msgstr ""
25946
25947 # type: =head2
25948 #: ../fish/guestfish-commands.pod:182
25949 msgid "time"
25950 msgstr ""
25951
25952 # type: verbatim
25953 #: ../fish/guestfish-commands.pod:184
25954 #, no-wrap
25955 msgid ""
25956 " time command args...\n"
25957 "\n"
25958 msgstr ""
25959
25960 # type: textblock
25961 #: ../fish/guestfish-commands.pod:186
25962 msgid ""
25963 "Run the command as usual, but print the elapsed time afterwards.  This can "
25964 "be useful for benchmarking operations."
25965 msgstr ""
25966
25967 # type: textblock
25968 #: ../test-tool/libguestfs-test-tool.pod:5
25969 msgid "libguestfs-test-tool - End user tests for libguestfs"
25970 msgstr ""
25971
25972 # type: verbatim
25973 #: ../test-tool/libguestfs-test-tool.pod:9
25974 #, no-wrap
25975 msgid ""
25976 " libguestfs-test-tool [--options]\n"
25977 "\n"
25978 msgstr ""
25979
25980 # type: textblock
25981 #: ../test-tool/libguestfs-test-tool.pod:13
25982 msgid ""
25983 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25984 "and developers, to allow them to check basic libguestfs functionality is "
25985 "working.  This is needed because libguestfs occasionally breaks for reasons "
25986 "beyond our control: usually because of changes in the underlying qemu or "
25987 "kernel packages, or the host environment."
25988 msgstr ""
25989
25990 # type: textblock
25991 #: ../test-tool/libguestfs-test-tool.pod:20
25992 msgid "If you suspect a problem in libguestfs, then just run:"
25993 msgstr ""
25994
25995 # type: verbatim
25996 #: ../test-tool/libguestfs-test-tool.pod:22
25997 #, no-wrap
25998 msgid ""
25999 " libguestfs-test-tool\n"
26000 "\n"
26001 msgstr ""
26002
26003 # type: textblock
26004 #: ../test-tool/libguestfs-test-tool.pod:24
26005 msgid "It will print lots of diagnostic messages."
26006 msgstr ""
26007
26008 # type: textblock
26009 #: ../test-tool/libguestfs-test-tool.pod:26
26010 msgid "If it runs to completion successfully, you will see this near the end:"
26011 msgstr ""
26012
26013 # type: verbatim
26014 #: ../test-tool/libguestfs-test-tool.pod:28
26015 #, no-wrap
26016 msgid ""
26017 " ===== TEST FINISHED OK =====\n"
26018 "\n"
26019 msgstr ""
26020
26021 # type: textblock
26022 #: ../test-tool/libguestfs-test-tool.pod:30
26023 msgid "and the test tool will exit with code 0."
26024 msgstr ""
26025
26026 # type: textblock
26027 #: ../test-tool/libguestfs-test-tool.pod:32
26028 msgid ""
26029 "If it fails (and/or exits with non-zero error code), please paste the "
26030 "B<complete, unedited> output of the test tool into a bug report.  More "
26031 "information about reporting bugs can be found on the L<http://libguestfs.org/"
26032 "> website."
26033 msgstr ""
26034
26035 # type: =item
26036 #: ../test-tool/libguestfs-test-tool.pod:41
26037 msgid "I<--help>"
26038 msgstr ""
26039
26040 # type: textblock
26041 #: ../test-tool/libguestfs-test-tool.pod:43
26042 msgid "Display short usage information and exit."
26043 msgstr ""
26044
26045 # type: =item
26046 #: ../test-tool/libguestfs-test-tool.pod:45
26047 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
26048 msgstr ""
26049
26050 # type: textblock
26051 #: ../test-tool/libguestfs-test-tool.pod:47
26052 msgid ""
26053 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
26054 "normally look in the C<$libexec> directory that was configured when the tool "
26055 "was built."
26056 msgstr ""
26057
26058 # type: =item
26059 #: ../test-tool/libguestfs-test-tool.pod:51
26060 msgid "I<--qemu qemu_binary>"
26061 msgstr ""
26062
26063 # type: textblock
26064 #: ../test-tool/libguestfs-test-tool.pod:53
26065 msgid ""
26066 "If you have downloaded another qemu binary, point this option at the full "
26067 "path of the binary to try it."
26068 msgstr ""
26069
26070 # type: =item
26071 #: ../test-tool/libguestfs-test-tool.pod:56
26072 msgid "I<--qemudir qemu_source_dir>"
26073 msgstr ""
26074
26075 # type: textblock
26076 #: ../test-tool/libguestfs-test-tool.pod:58
26077 msgid ""
26078 "If you have compiled qemu from source, point this option at the source "
26079 "directory to try it."
26080 msgstr ""
26081
26082 # type: =item
26083 #: ../test-tool/libguestfs-test-tool.pod:61
26084 msgid "I<--timeout N>"
26085 msgstr ""
26086
26087 # type: textblock
26088 #: ../test-tool/libguestfs-test-tool.pod:63
26089 msgid ""
26090 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
26091 "does not usually need to be adjusted unless your machine is very slow."
26092 msgstr ""
26093
26094 # type: =head1
26095 #: ../test-tool/libguestfs-test-tool.pod:69
26096 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
26097 msgstr ""
26098
26099 # type: textblock
26100 #: ../test-tool/libguestfs-test-tool.pod:71
26101 msgid ""
26102 "If you have compiled another version of qemu from source and would like to "
26103 "try that, then you can use the I<--qemudir> option to point to the qemu "
26104 "source directory."
26105 msgstr ""
26106
26107 # type: textblock
26108 #: ../test-tool/libguestfs-test-tool.pod:75
26109 msgid ""
26110 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
26111 "option to point to the binary."
26112 msgstr ""
26113
26114 # type: textblock
26115 #: ../test-tool/libguestfs-test-tool.pod:78
26116 msgid ""
26117 "When using an alternate qemu with libguestfs, usually you would need to "
26118 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
26119 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
26120 "use either of the I<--qemudir> or I<--qemu> options."
26121 msgstr ""
26122
26123 # type: textblock
26124 #: ../test-tool/libguestfs-test-tool.pod:85
26125 msgid ""
26126 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
26127 "I<1> if there was an error."
26128 msgstr ""
26129
26130 # type: =item
26131 #: ../test-tool/libguestfs-test-tool.pod:92
26132 msgid "/usr/libexec/libguestfs-test-tool-helper"
26133 msgstr ""
26134
26135 # type: textblock
26136 #: ../test-tool/libguestfs-test-tool.pod:94
26137 msgid ""
26138 "This helper program is run inside the appliance and provides additional "
26139 "tests."
26140 msgstr ""
26141
26142 # type: =item
26143 #: ../test-tool/libguestfs-test-tool.pod:97
26144 msgid "/usr/bin/mkisofs"
26145 msgstr ""
26146
26147 # type: textblock
26148 #: ../test-tool/libguestfs-test-tool.pod:99
26149 msgid ""
26150 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
26151 "which is used as part of the tests."
26152 msgstr ""
26153
26154 # type: textblock
26155 #: ../test-tool/libguestfs-test-tool.pod:106
26156 msgid ""
26157 "For the full list of environment variables which may affect libguestfs, "
26158 "please see the L<guestfs(3)> manual page."
26159 msgstr ""
26160
26161 # type: textblock
26162 #: ../test-tool/libguestfs-test-tool.pod:111
26163 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
26164 msgstr ""
26165
26166 # type: textblock
26167 #: ../test-tool/libguestfs-test-tool.pod:121
26168 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
26169 msgstr ""
26170
26171 # type: textblock
26172 #: ../fuse/guestmount.pod:5
26173 msgid ""
26174 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
26175 msgstr ""
26176
26177 # type: verbatim
26178 #: ../fuse/guestmount.pod:9
26179 #, no-wrap
26180 msgid ""
26181 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
26182 "\n"
26183 msgstr ""
26184
26185 # type: verbatim
26186 #: ../fuse/guestmount.pod:11
26187 #, no-wrap
26188 msgid ""
26189 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
26190 "\n"
26191 msgstr ""
26192
26193 # type: verbatim
26194 #: ../fuse/guestmount.pod:13
26195 #, no-wrap
26196 msgid ""
26197 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
26198 "\n"
26199 msgstr ""
26200
26201 # type: textblock
26202 #: ../fuse/guestmount.pod:17
26203 msgid ""
26204 "You must I<not> use C<guestmount> in read-write mode on live virtual "
26205 "machines.  If you do this, you risk disk corruption in the VM."
26206 msgstr ""
26207
26208 # type: textblock
26209 #: ../fuse/guestmount.pod:22
26210 msgid ""
26211 "The guestmount program can be used to mount virtual machine filesystems and "
26212 "other disk images on the host.  It uses libguestfs for access to the guest "
26213 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
26214 "a mountable device."
26215 msgstr ""
26216
26217 # type: textblock
26218 #: ../fuse/guestmount.pod:27
26219 msgid ""
26220 "Along with other options, you have to give at least one device (I<-a> "
26221 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
26222 "option) or use the I<-i> inspection option.  How this works is better "
26223 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
26224 "below."
26225 msgstr ""
26226
26227 # type: textblock
26228 #: ../fuse/guestmount.pod:33
26229 msgid ""
26230 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
26231 "by you, and the filesystem will not be visible to any other users unless you "
26232 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
26233 "the filesystem, use the C<fusermount -u> command."
26234 msgstr ""
26235
26236 # type: textblock
26237 #: ../fuse/guestmount.pod:41
26238 msgid ""
26239 "For a typical Windows guest which has its main filesystem on the first "
26240 "partition:"
26241 msgstr ""
26242
26243 # type: verbatim
26244 #: ../fuse/guestmount.pod:44
26245 #, no-wrap
26246 msgid ""
26247 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
26248 "\n"
26249 msgstr ""
26250
26251 # type: textblock
26252 #: ../fuse/guestmount.pod:46
26253 msgid ""
26254 "For a typical Linux guest which has a /boot filesystem on the first "
26255 "partition, and the root filesystem on a logical volume:"
26256 msgstr ""
26257
26258 # type: verbatim
26259 #: ../fuse/guestmount.pod:49
26260 #, no-wrap
26261 msgid ""
26262 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
26263 "\n"
26264 msgstr ""
26265
26266 # type: textblock
26267 #: ../fuse/guestmount.pod:51
26268 msgid "To get libguestfs to detect guest mountpoints for you:"
26269 msgstr ""
26270
26271 # type: verbatim
26272 #: ../fuse/guestmount.pod:53
26273 #, no-wrap
26274 msgid ""
26275 " guestmount -a guest.img -i --ro /mnt\n"
26276 "\n"
26277 msgstr ""
26278
26279 # type: textblock
26280 #: ../fuse/guestmount.pod:55
26281 msgid "For a libvirt guest called \"Guest\" you could do:"
26282 msgstr ""
26283
26284 # type: verbatim
26285 #: ../fuse/guestmount.pod:57
26286 #, no-wrap
26287 msgid ""
26288 " guestmount -d Guest -i --ro /mnt\n"
26289 "\n"
26290 msgstr ""
26291
26292 # type: textblock
26293 #: ../fuse/guestmount.pod:59
26294 msgid ""
26295 "If you don't know what filesystems are contained in a guest or disk image, "
26296 "use L<virt-filesystems(1)> first:"
26297 msgstr ""
26298
26299 # type: verbatim
26300 #: ../fuse/guestmount.pod:62
26301 #, no-wrap
26302 msgid ""
26303 " virt-filesystems MyGuest\n"
26304 "\n"
26305 msgstr ""
26306
26307 # type: textblock
26308 #: ../fuse/guestmount.pod:64
26309 msgid ""
26310 "If you want to trace the libguestfs calls but without excessive debugging "
26311 "information, we recommend:"
26312 msgstr ""
26313
26314 # type: verbatim
26315 #: ../fuse/guestmount.pod:67
26316 #, no-wrap
26317 msgid ""
26318 " guestmount [...] --trace /mnt\n"
26319 "\n"
26320 msgstr ""
26321
26322 # type: textblock
26323 #: ../fuse/guestmount.pod:69
26324 msgid "If you want to debug the program, we recommend:"
26325 msgstr ""
26326
26327 # type: verbatim
26328 #: ../fuse/guestmount.pod:71
26329 #, no-wrap
26330 msgid ""
26331 " guestmount [...] --trace --verbose /mnt\n"
26332 "\n"
26333 msgstr ""
26334
26335 # type: =item
26336 #: ../fuse/guestmount.pod:77
26337 msgid "B<-a image> | B<--add image>"
26338 msgstr ""
26339
26340 # type: textblock
26341 #: ../fuse/guestmount.pod:79
26342 msgid "Add a block device or virtual machine image."
26343 msgstr ""
26344
26345 # type: =item
26346 #: ../fuse/guestmount.pod:84
26347 msgid "B<-c URI> | B<--connect URI>"
26348 msgstr ""
26349
26350 # type: =item
26351 #: ../fuse/guestmount.pod:90
26352 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
26353 msgstr ""
26354
26355 # type: =item
26356 #: ../fuse/guestmount.pod:96
26357 msgid "B<--dir-cache-timeout N>"
26358 msgstr ""
26359
26360 # type: textblock
26361 #: ../fuse/guestmount.pod:98
26362 msgid ""
26363 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
26364 "seconds.  The readdir cache [actually, there are several semi-independent "
26365 "caches] is populated after a readdir(2) call with the stat and extended "
26366 "attributes of the files in the directory, in anticipation that they will be "
26367 "requested soon after."
26368 msgstr ""
26369
26370 # type: textblock
26371 #: ../fuse/guestmount.pod:104
26372 msgid ""
26373 "There is also a different attribute cache implemented by FUSE (see the FUSE "
26374 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
26375 "requests, only cache existing ones."
26376 msgstr ""
26377
26378 # type: =item
26379 #: ../fuse/guestmount.pod:115
26380 msgid "B<--format=raw|qcow2|..> | B<--format>"
26381 msgstr ""
26382
26383 # type: textblock
26384 #: ../fuse/guestmount.pod:122
26385 msgid ""
26386 "If you have untrusted raw-format guest disk images, you should use this "
26387 "option to specify the disk format.  This avoids a possible security problem "
26388 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
26389 "guestfs_add_drive_opts>."
26390 msgstr ""
26391
26392 # type: =item
26393 #: ../fuse/guestmount.pod:127
26394 msgid "B<--fuse-help>"
26395 msgstr ""
26396
26397 # type: textblock
26398 #: ../fuse/guestmount.pod:129
26399 msgid "Display help on special FUSE options (see I<-o> below)."
26400 msgstr ""
26401
26402 # type: textblock
26403 #: ../fuse/guestmount.pod:133
26404 msgid "Display brief help and exit."
26405 msgstr ""
26406
26407 # type: =item
26408 #: ../fuse/guestmount.pod:135
26409 msgid "B<-i> | B<--inspector>"
26410 msgstr ""
26411
26412 # type: =item
26413 #: ../fuse/guestmount.pod:146
26414 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
26415 msgstr ""
26416
26417 # type: textblock
26418 #: ../fuse/guestmount.pod:148
26419 msgid ""
26420 "Mount the named partition or logical volume on the given mountpoint B<in the "
26421 "guest> (this has nothing to do with mountpoints in the host)."
26422 msgstr ""
26423
26424 # type: textblock
26425 #: ../fuse/guestmount.pod:151
26426 msgid ""
26427 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
26428 "something on C</>."
26429 msgstr ""
26430
26431 # type: =item
26432 #: ../fuse/guestmount.pod:154
26433 msgid "B<-n> | B<--no-sync>"
26434 msgstr ""
26435
26436 # type: textblock
26437 #: ../fuse/guestmount.pod:156
26438 msgid ""
26439 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
26440 "unmounted.  If you specify this option, then we don't attempt to sync the "
26441 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
26442 msgstr ""
26443
26444 # type: =item
26445 #: ../fuse/guestmount.pod:161
26446 msgid "B<-o option> | B<--option option>"
26447 msgstr ""
26448
26449 # type: textblock
26450 #: ../fuse/guestmount.pod:163
26451 msgid "Pass extra options to FUSE."
26452 msgstr ""
26453
26454 # type: textblock
26455 #: ../fuse/guestmount.pod:165
26456 msgid ""
26457 "To get a list of all the extra options supported by FUSE, use the command "
26458 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
26459 "of them are a good idea."
26460 msgstr ""
26461
26462 # type: verbatim
26463 #: ../fuse/guestmount.pod:169
26464 #, no-wrap
26465 msgid ""
26466 " guestmount --fuse-help\n"
26467 "\n"
26468 msgstr ""
26469
26470 # type: textblock
26471 #: ../fuse/guestmount.pod:171
26472 msgid "Some potentially useful FUSE options:"
26473 msgstr ""
26474
26475 # type: =item
26476 #: ../fuse/guestmount.pod:175
26477 msgid "B<-o allow_other>"
26478 msgstr ""
26479
26480 # type: textblock
26481 #: ../fuse/guestmount.pod:177
26482 msgid "Allow other users to see the filesystem."
26483 msgstr ""
26484
26485 # type: =item
26486 #: ../fuse/guestmount.pod:179
26487 msgid "B<-o attr_timeout=N>"
26488 msgstr ""
26489
26490 # type: textblock
26491 #: ../fuse/guestmount.pod:181
26492 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
26493 msgstr ""
26494
26495 # type: =item
26496 #: ../fuse/guestmount.pod:183
26497 msgid "B<-o kernel_cache>"
26498 msgstr ""
26499
26500 # type: textblock
26501 #: ../fuse/guestmount.pod:185
26502 msgid ""
26503 "Allow the kernel to cache files (reduces the number of reads that have to go "
26504 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
26505 "afford the extra memory usage."
26506 msgstr ""
26507
26508 # type: =item
26509 #: ../fuse/guestmount.pod:189
26510 msgid "B<-o uid=N> B<-o gid=N>"
26511 msgstr ""
26512
26513 # type: textblock
26514 #: ../fuse/guestmount.pod:191
26515 msgid ""
26516 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
26517 "the chosen values."
26518 msgstr ""
26519
26520 # type: =item
26521 #: ../fuse/guestmount.pod:196
26522 msgid "B<-r> | B<--ro>"
26523 msgstr ""
26524
26525 # type: textblock
26526 #: ../fuse/guestmount.pod:198
26527 msgid ""
26528 "Add devices and mount everything read-only.  Also disallow writes and make "
26529 "the disk appear read-only to FUSE."
26530 msgstr ""
26531
26532 # type: textblock
26533 #: ../fuse/guestmount.pod:201
26534 msgid ""
26535 "This is highly recommended if you are not going to edit the guest disk.  If "
26536 "the guest is running and this option is I<not> supplied, then there is a "
26537 "strong risk of disk corruption in the guest.  We try to prevent this from "
26538 "happening, but it is not always possible."
26539 msgstr ""
26540
26541 # type: textblock
26542 #: ../fuse/guestmount.pod:206
26543 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26544 msgstr ""
26545
26546 # type: textblock
26547 #: ../fuse/guestmount.pod:210
26548 msgid "Enable SELinux support for the guest."
26549 msgstr ""
26550
26551 # type: =item
26552 #: ../fuse/guestmount.pod:212
26553 msgid "B<-v> | B<--verbose>"
26554 msgstr ""
26555
26556 # type: textblock
26557 #: ../fuse/guestmount.pod:214
26558 msgid "Enable verbose messages from underlying libguestfs."
26559 msgstr ""
26560
26561 # type: =item
26562 #: ../fuse/guestmount.pod:216
26563 msgid "B<-V> | B<--version>"
26564 msgstr ""
26565
26566 # type: textblock
26567 #: ../fuse/guestmount.pod:218
26568 msgid "Display the program version and exit."
26569 msgstr ""
26570
26571 # type: =item
26572 #: ../fuse/guestmount.pod:220
26573 msgid "B<-w> | B<--rw>"
26574 msgstr ""
26575
26576 # type: textblock
26577 #: ../fuse/guestmount.pod:222
26578 msgid ""
26579 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26580 "FOR READ AND WRITE>."
26581 msgstr ""
26582
26583 # type: =item
26584 #: ../fuse/guestmount.pod:225
26585 msgid "B<-x> | B<--trace>"
26586 msgstr ""
26587
26588 # type: textblock
26589 #: ../fuse/guestmount.pod:227
26590 msgid "Trace libguestfs calls and entry into each FUSE function."
26591 msgstr ""
26592
26593 # type: textblock
26594 #: ../fuse/guestmount.pod:229
26595 msgid "This also stops the daemon from forking into the background."
26596 msgstr ""
26597
26598 # type: textblock
26599 #: ../fuse/guestmount.pod:235
26600 msgid ""
26601 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26602 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26603 "net/>."
26604 msgstr ""
26605
26606 # type: textblock
26607 #: ../tools/virt-edit.pl:34
26608 msgid "virt-edit - Edit a file in a virtual machine"
26609 msgstr ""
26610
26611 # type: verbatim
26612 #: ../tools/virt-edit.pl:38
26613 #, no-wrap
26614 msgid ""
26615 " virt-edit [--options] domname file\n"
26616 "\n"
26617 msgstr ""
26618
26619 # type: verbatim
26620 #: ../tools/virt-edit.pl:40
26621 #, no-wrap
26622 msgid ""
26623 " virt-edit [--options] disk.img [disk.img ...] file\n"
26624 "\n"
26625 msgstr ""
26626
26627 # type: verbatim
26628 #: ../tools/virt-edit.pl:42
26629 #, no-wrap
26630 msgid ""
26631 " virt-edit [domname|disk.img] file -e 'expr'\n"
26632 "\n"
26633 msgstr ""
26634
26635 # type: textblock
26636 #: ../tools/virt-edit.pl:46
26637 msgid ""
26638 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26639 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26640 "doing this, but doesn't catch all cases."
26641 msgstr ""
26642
26643 # type: textblock
26644 #: ../tools/virt-edit.pl:52
26645 msgid ""
26646 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26647 "the named virtual machine (or disk image)."
26648 msgstr ""
26649
26650 # type: textblock
26651 #: ../tools/virt-edit.pl:55
26652 msgid ""
26653 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26654 "you should look at the L<guestfish(1)> tool."
26655 msgstr ""
26656
26657 # type: textblock
26658 #: ../tools/virt-edit.pl:60
26659 msgid "Edit the named files interactively:"
26660 msgstr ""
26661
26662 # type: verbatim
26663 #: ../tools/virt-edit.pl:62
26664 #, no-wrap
26665 msgid ""
26666 " virt-edit mydomain /boot/grub/grub.conf\n"
26667 "\n"
26668 msgstr ""
26669
26670 # type: verbatim
26671 #: ../tools/virt-edit.pl:64
26672 #, no-wrap
26673 msgid ""
26674 " virt-edit mydomain /etc/passwd\n"
26675 "\n"
26676 msgstr ""
26677
26678 # type: textblock
26679 #: ../tools/virt-edit.pl:66
26680 msgid ""
26681 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26682 "below).  To change the init default level to 5:"
26683 msgstr ""
26684
26685 # type: verbatim
26686 #: ../tools/virt-edit.pl:70
26687 #, no-wrap
26688 msgid ""
26689 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26690 "\n"
26691 msgstr ""
26692
26693 # type: textblock
26694 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
26695 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108
26696 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
26697 msgid "Display brief help."
26698 msgstr ""
26699
26700 # type: textblock
26701 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
26702 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
26703 #: ../tools/virt-tar.pl:116 ../tools/virt-make-fs.pl:171
26704 #: ../tools/virt-list-partitions.pl:72
26705 msgid "Display version number and exit."
26706 msgstr ""
26707
26708 # type: =item
26709 #: ../tools/virt-edit.pl:96
26710 msgid "B<--backup extension> | B<-b extension>"
26711 msgstr ""
26712
26713 # type: textblock
26714 #: ../tools/virt-edit.pl:98
26715 msgid ""
26716 "Create a backup of the original file I<in the guest disk image>.  The backup "
26717 "has the original filename with C<extension> added."
26718 msgstr ""
26719
26720 # type: textblock
26721 #: ../tools/virt-edit.pl:101
26722 msgid ""
26723 "Usually the first character of C<extension> would be a dot C<.> so you would "
26724 "write:"
26725 msgstr ""
26726
26727 # type: verbatim
26728 #: ../tools/virt-edit.pl:104
26729 #, no-wrap
26730 msgid ""
26731 " virt-edit -b .orig [etc]\n"
26732 "\n"
26733 msgstr ""
26734
26735 # type: textblock
26736 #: ../tools/virt-edit.pl:106
26737 msgid "By default, no backup file is made."
26738 msgstr ""
26739
26740 # type: =item
26741 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
26742 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122
26743 #: ../tools/virt-list-partitions.pl:78
26744 msgid "B<--connect URI> | B<-c URI>"
26745 msgstr ""
26746
26747 # type: textblock
26748 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
26749 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124
26750 #: ../tools/virt-list-partitions.pl:80
26751 msgid ""
26752 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26753 "to the default libvirt hypervisor."
26754 msgstr ""
26755
26756 # type: textblock
26757 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
26758 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127
26759 #: ../tools/virt-list-partitions.pl:83
26760 msgid ""
26761 "If you specify guest block devices directly, then libvirt is not used at all."
26762 msgstr ""
26763
26764 # type: =item
26765 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
26766 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
26767 #: ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
26768 msgid "B<--format> raw"
26769 msgstr ""
26770
26771 # type: textblock
26772 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
26773 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136
26774 #: ../tools/virt-list-partitions.pl:92
26775 msgid ""
26776 "Specify the format of disk images given on the command line.  If this is "
26777 "omitted then the format is autodetected from the content of the disk image."
26778 msgstr ""
26779
26780 # type: textblock
26781 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
26782 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140
26783 #: ../tools/virt-list-partitions.pl:96
26784 msgid ""
26785 "If disk images are requested from libvirt, then this program asks libvirt "
26786 "for this information.  In this case, the value of the format parameter is "
26787 "ignored."
26788 msgstr ""
26789
26790 # type: textblock
26791 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
26792 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
26793 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144
26794 #: ../tools/virt-list-partitions.pl:100
26795 msgid ""
26796 "If working with untrusted raw-format guest disk images, you should ensure "
26797 "the format is always specified."
26798 msgstr ""
26799
26800 # type: =item
26801 #: ../tools/virt-edit.pl:141
26802 msgid "B<--expr EXPR> | B<-e EXPR>"
26803 msgstr ""
26804
26805 # type: textblock
26806 #: ../tools/virt-edit.pl:143
26807 msgid ""
26808 "Instead of launching the external editor, non-interactively apply the Perl "
26809 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26810 "EDITING> below."
26811 msgstr ""
26812
26813 # type: textblock
26814 #: ../tools/virt-edit.pl:147
26815 msgid ""
26816 "Be careful to properly quote the expression to prevent it from being altered "
26817 "by the shell."
26818 msgstr ""
26819
26820 # type: =head1
26821 #: ../tools/virt-edit.pl:268
26822 msgid "NON-INTERACTIVE EDITING"
26823 msgstr ""
26824
26825 # type: textblock
26826 #: ../tools/virt-edit.pl:270
26827 msgid ""
26828 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26829 "administrator can interactively edit the file."
26830 msgstr ""
26831
26832 # type: textblock
26833 #: ../tools/virt-edit.pl:273
26834 msgid ""
26835 "There are two ways also to use C<virt-edit> from scripts in order to make "
26836 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26837 "like this, it's less error-prone to write scripts directly using the "
26838 "libguestfs API and Augeas for configuration file editing.)"
26839 msgstr ""
26840
26841 # type: textblock
26842 #: ../tools/virt-edit.pl:279
26843 msgid ""
26844 "The first method is to temporarily set C<$EDITOR> to any script or program "
26845 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26846 "update C<tmpfile> in place however it likes."
26847 msgstr ""
26848
26849 # type: textblock
26850 #: ../tools/virt-edit.pl:283
26851 msgid ""
26852 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26853 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26854 "instances of C<foo> with C<bar> in a file:"
26855 msgstr ""
26856
26857 # type: verbatim
26858 #: ../tools/virt-edit.pl:287
26859 #, no-wrap
26860 msgid ""
26861 " virt-edit domname filename -e 's/foo/bar/'\n"
26862 "\n"
26863 msgstr ""
26864
26865 # type: textblock
26866 #: ../tools/virt-edit.pl:289
26867 msgid ""
26868 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26869 "For example to delete root's password you could do:"
26870 msgstr ""
26871
26872 # type: verbatim
26873 #: ../tools/virt-edit.pl:292
26874 #, no-wrap
26875 msgid ""
26876 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26877 "\n"
26878 msgstr ""
26879
26880 # type: textblock
26881 #: ../tools/virt-edit.pl:294
26882 msgid ""
26883 "What really happens is that the snippet is evaluated as a Perl expression "
26884 "for each line of the file.  The line, including the final C<\\n>, is passed "
26885 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26886 msgstr ""
26887
26888 # type: textblock
26889 #: ../tools/virt-edit.pl:299
26890 msgid ""
26891 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26892 "C<apache> user account from the password file you can do:"
26893 msgstr ""
26894
26895 # type: verbatim
26896 #: ../tools/virt-edit.pl:302
26897 #, no-wrap
26898 msgid ""
26899 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26900 "\n"
26901 msgstr ""
26902
26903 # type: textblock
26904 #: ../tools/virt-edit.pl:304
26905 msgid ""
26906 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26907 "the end of the file is rather difficult this way since there is no concept "
26908 "of \"last line of the file\" - your expression just doesn't get called "
26909 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26910 "want to do this."
26911 msgstr ""
26912
26913 # type: textblock
26914 #: ../tools/virt-edit.pl:310
26915 msgid ""
26916 "The variable C<$lineno> contains the current line number.  As is "
26917 "traditional, the first line in the file is number C<1>."
26918 msgstr ""
26919
26920 # type: textblock
26921 #: ../tools/virt-edit.pl:313
26922 msgid ""
26923 "The return value from the expression is ignored, but the expression may call "
26924 "C<die> in order to abort the whole program, leaving the original file "
26925 "untouched."
26926 msgstr ""
26927
26928 # type: textblock
26929 #: ../tools/virt-edit.pl:317
26930 msgid ""
26931 "Remember when matching the end of a line that C<$_> may contain the final C<"
26932 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26933 "newline then neither of these.  Thus to match or substitute some text at the "
26934 "end of a line, use this regular expression:"
26935 msgstr ""
26936
26937 # type: verbatim
26938 #: ../tools/virt-edit.pl:322
26939 #, no-wrap
26940 msgid ""
26941 " /some text(\\r?\\n)?$/\n"
26942 "\n"
26943 msgstr ""
26944
26945 # type: textblock
26946 #: ../tools/virt-edit.pl:324
26947 msgid ""
26948 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26949 "$_> itself (since that would remove all newlines from the file):"
26950 msgstr ""
26951
26952 # type: verbatim
26953 #: ../tools/virt-edit.pl:328
26954 #, no-wrap
26955 msgid ""
26956 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26957 "\n"
26958 msgstr ""
26959
26960 # type: =item
26961 #: ../tools/virt-edit.pl:334
26962 msgid "C<EDITOR>"
26963 msgstr ""
26964
26965 # type: textblock
26966 #: ../tools/virt-edit.pl:336
26967 msgid ""
26968 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26969 "\"emacs -nw\">"
26970 msgstr ""
26971
26972 # type: textblock
26973 #: ../tools/virt-edit.pl:339
26974 msgid "If not set, C<vi> is used."
26975 msgstr ""
26976
26977 # type: =head2
26978 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
26979 #: ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182
26980 #: ../tools/virt-tar.pl:274 ../tools/virt-make-fs.pl:527
26981 #: ../tools/virt-list-partitions.pl:250
26982 msgid "SHELL QUOTING"
26983 msgstr ""
26984
26985 # type: textblock
26986 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
26987 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
26988 #: ../tools/virt-tar.pl:276 ../tools/virt-make-fs.pl:529
26989 #: ../tools/virt-list-partitions.pl:252
26990 msgid ""
26991 "Libvirt guest names can contain arbitrary characters, some of which have "
26992 "meaning to the shell such as C<#> and space.  You may need to quote or "
26993 "escape these characters on the command line.  See the shell manual page L<sh"
26994 "(1)> for details."
26995 msgstr ""
26996
26997 # type: textblock
26998 #: ../tools/virt-edit.pl:352
26999 msgid ""
27000 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
27001 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
27002 "L<perlre(1)>."
27003 msgstr ""
27004
27005 # type: =head1
27006 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:598
27007 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
27008 #: ../tools/virt-tar.pl:292 ../tools/virt-make-fs.pl:559
27009 #: ../tools/virt-list-partitions.pl:269
27010 msgid "AUTHOR"
27011 msgstr ""
27012
27013 # type: textblock
27014 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:600
27015 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
27016 #: ../tools/virt-tar.pl:294 ../tools/virt-make-fs.pl:561
27017 #: ../tools/virt-list-partitions.pl:271
27018 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
27019 msgstr ""
27020
27021 # type: textblock
27022 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
27023 msgid "Copyright (C) 2009-2010 Red Hat Inc."
27024 msgstr ""
27025
27026 # type: textblock
27027 #: ../tools/virt-win-reg.pl:37
27028 msgid ""
27029 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
27030 msgstr ""
27031
27032 # type: verbatim
27033 #: ../tools/virt-win-reg.pl:41
27034 #, no-wrap
27035 msgid ""
27036 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
27037 "\n"
27038 msgstr ""
27039
27040 # type: verbatim
27041 #: ../tools/virt-win-reg.pl:43
27042 #, no-wrap
27043 msgid ""
27044 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
27045 "\n"
27046 msgstr ""
27047
27048 # type: verbatim
27049 #: ../tools/virt-win-reg.pl:45
27050 #, no-wrap
27051 msgid ""
27052 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
27053 "\n"
27054 msgstr ""
27055
27056 # type: verbatim
27057 #: ../tools/virt-win-reg.pl:47
27058 #, no-wrap
27059 msgid ""
27060 " virt-win-reg --merge domname [input.reg ...]\n"
27061 "\n"
27062 msgstr ""
27063
27064 # type: verbatim
27065 #: ../tools/virt-win-reg.pl:49
27066 #, no-wrap
27067 msgid ""
27068 " virt-win-reg [--options] disk.img ... # instead of domname\n"
27069 "\n"
27070 msgstr ""
27071
27072 # type: textblock
27073 #: ../tools/virt-win-reg.pl:53
27074 msgid ""
27075 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
27076 "virtual machines.  If you do this, you I<will> get irreversible disk "
27077 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
27078 "but doesn't catch all cases."
27079 msgstr ""
27080
27081 # type: textblock
27082 #: ../tools/virt-win-reg.pl:58
27083 msgid ""
27084 "Modifying the Windows Registry is an inherently risky operation.  The format "
27085 "is deliberately obscure and undocumented, and Registry changes can leave the "
27086 "system unbootable.  Therefore when using the C<--merge> option, make sure "
27087 "you have a reliable backup first."
27088 msgstr ""
27089
27090 # type: textblock
27091 #: ../tools/virt-win-reg.pl:65
27092 msgid ""
27093 "This program can export and merge Windows Registry entries from a Windows "
27094 "guest."
27095 msgstr ""
27096
27097 # type: textblock
27098 #: ../tools/virt-win-reg.pl:68
27099 msgid ""
27100 "The first parameter is the libvirt guest name or the raw disk image of a "
27101 "Windows guest."
27102 msgstr ""
27103
27104 # type: textblock
27105 #: ../tools/virt-win-reg.pl:71
27106 msgid ""
27107 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
27108 "exported (recursively).  For example:"
27109 msgstr ""
27110
27111 # type: verbatim
27112 #: ../tools/virt-win-reg.pl:74
27113 #, no-wrap
27114 msgid ""
27115 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
27116 "\n"
27117 msgstr ""
27118
27119 # type: textblock
27120 #: ../tools/virt-win-reg.pl:76
27121 msgid ""
27122 "You can also display single values from within registry keys, for example:"
27123 msgstr ""
27124
27125 # type: verbatim
27126 #: ../tools/virt-win-reg.pl:79
27127 #, no-wrap
27128 msgid ""
27129 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
27130 " $ virt-win-reg Windows7 $cvkey ProductName\n"
27131 " Windows 7 Enterprise\n"
27132 "\n"
27133 msgstr ""
27134
27135 # type: textblock
27136 #: ../tools/virt-win-reg.pl:83
27137 msgid ""
27138 "With C<--merge>, you can merge a textual regedit file into the Windows "
27139 "Registry:"
27140 msgstr ""
27141
27142 # type: verbatim
27143 #: ../tools/virt-win-reg.pl:86
27144 #, no-wrap
27145 msgid ""
27146 " $ virt-win-reg --merge Windows7 changes.reg\n"
27147 "\n"
27148 msgstr ""
27149
27150 # type: =head2
27151 #: ../tools/virt-win-reg.pl:88
27152 msgid "NOTE"
27153 msgstr ""
27154
27155 # type: textblock
27156 #: ../tools/virt-win-reg.pl:90
27157 msgid ""
27158 "This program is only meant for simple access to the registry.  If you want "
27159 "to do complicated things with the registry, we suggest you download the "
27160 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
27161 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
27162 "L<hivexregedit(1)>."
27163 msgstr ""
27164
27165 # type: =item
27166 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
27167 msgid "B<--debug>"
27168 msgstr ""
27169
27170 # type: textblock
27171 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
27172 msgid "Enable debugging messages."
27173 msgstr ""
27174
27175 # type: =item
27176 #: ../tools/virt-win-reg.pl:157
27177 msgid "B<--merge>"
27178 msgstr ""
27179
27180 # type: textblock
27181 #: ../tools/virt-win-reg.pl:159
27182 msgid ""
27183 "In merge mode, this merges a textual regedit file into the Windows Registry "
27184 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
27185 "displays or exports Registry entries instead."
27186 msgstr ""
27187
27188 # type: textblock
27189 #: ../tools/virt-win-reg.pl:163
27190 msgid ""
27191 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
27192 "result in disk corruption.  However exporting (without this flag)  is always "
27193 "safe."
27194 msgstr ""
27195
27196 # type: =item
27197 #: ../tools/virt-win-reg.pl:171
27198 msgid "B<--encoding> UTF-16LE|ASCII"
27199 msgstr ""
27200
27201 # type: textblock
27202 #: ../tools/virt-win-reg.pl:173
27203 msgid ""
27204 "When merging (only), you may need to specify the encoding for strings to be "
27205 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
27206 "(3)/ENCODING STRINGS>."
27207 msgstr ""
27208
27209 # type: textblock
27210 #: ../tools/virt-win-reg.pl:177
27211 msgid ""
27212 "The default is to use UTF-16LE, which should work with recent versions of "
27213 "Windows."
27214 msgstr ""
27215
27216 # type: =head2
27217 #: ../tools/virt-win-reg.pl:402
27218 msgid "SUPPORTED SYSTEMS"
27219 msgstr ""
27220
27221 # type: textblock
27222 #: ../tools/virt-win-reg.pl:404
27223 msgid ""
27224 "The program currently supports Windows NT-derived guests starting with "
27225 "Windows XP through to at least Windows 7."
27226 msgstr ""
27227
27228 # type: textblock
27229 #: ../tools/virt-win-reg.pl:407
27230 msgid ""
27231 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
27232 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
27233 "and C<HKEY_USERS\\.DEFAULT>."
27234 msgstr ""
27235
27236 # type: textblock
27237 #: ../tools/virt-win-reg.pl:411
27238 msgid ""
27239 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
27240 "C<HKEY_USERS>."
27241 msgstr ""
27242
27243 # type: textblock
27244 #: ../tools/virt-win-reg.pl:414
27245 msgid ""
27246 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
27247 "time."
27248 msgstr ""
27249
27250 # type: =head2
27251 #: ../tools/virt-win-reg.pl:417
27252 msgid "ENCODING"
27253 msgstr ""
27254
27255 # type: textblock
27256 #: ../tools/virt-win-reg.pl:419
27257 msgid ""
27258 "C<virt-win-reg> expects that regedit files have already been reencoded in "
27259 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
27260 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
27261 "Windows-style line endings, you may need to reencode the whole file before "
27262 "or after processing."
27263 msgstr ""
27264
27265 # type: textblock
27266 #: ../tools/virt-win-reg.pl:425
27267 msgid ""
27268 "To reencode a file from Windows format to Linux (before processing it with "
27269 "the C<--merge> option), you would do something like this:"
27270 msgstr ""
27271
27272 # type: verbatim
27273 #: ../tools/virt-win-reg.pl:428
27274 #, no-wrap
27275 msgid ""
27276 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
27277 "\n"
27278 msgstr ""
27279
27280 # type: textblock
27281 #: ../tools/virt-win-reg.pl:430
27282 msgid ""
27283 "To go in the opposite direction, after exporting and before sending the file "
27284 "to a Windows user, do something like this:"
27285 msgstr ""
27286
27287 # type: verbatim
27288 #: ../tools/virt-win-reg.pl:433
27289 #, no-wrap
27290 msgid ""
27291 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
27292 "\n"
27293 msgstr ""
27294
27295 # type: textblock
27296 #: ../tools/virt-win-reg.pl:435
27297 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
27298 msgstr ""
27299
27300 # type: textblock
27301 #: ../tools/virt-win-reg.pl:437
27302 msgid ""
27303 "If you are unsure about the current encoding, use the L<file(1)> command.  "
27304 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
27305 "style (CRLF) line endings, like this:"
27306 msgstr ""
27307
27308 # type: verbatim
27309 #: ../tools/virt-win-reg.pl:441
27310 #, no-wrap
27311 msgid ""
27312 " $ file software.reg\n"
27313 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
27314 " with CRLF line terminators\n"
27315 "\n"
27316 msgstr ""
27317
27318 # type: textblock
27319 #: ../tools/virt-win-reg.pl:445
27320 msgid "This file would need conversion before you could C<--merge> it."
27321 msgstr ""
27322
27323 # type: =head2
27324 #: ../tools/virt-win-reg.pl:447
27325 msgid "CurrentControlSet etc."
27326 msgstr ""
27327
27328 # type: textblock
27329 #: ../tools/virt-win-reg.pl:449
27330 msgid ""
27331 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
27332 "Registry at the level of the hive file, and therefore you cannot modify "
27333 "these."
27334 msgstr ""
27335
27336 # type: textblock
27337 #: ../tools/virt-win-reg.pl:453
27338 msgid ""
27339 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
27340 "circumstances it might refer to another control set.  The way to find out is "
27341 "to look at the C<HKLM\\SYSTEM\\Select> key:"
27342 msgstr ""
27343
27344 # type: verbatim
27345 #: ../tools/virt-win-reg.pl:457
27346 #, no-wrap
27347 msgid ""
27348 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
27349 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
27350 " \"Current\"=dword:00000001\n"
27351 " \"Default\"=dword:00000001\n"
27352 " \"Failed\"=dword:00000000\n"
27353 " \"LastKnownGood\"=dword:00000002\n"
27354 "\n"
27355 msgstr ""
27356
27357 # type: textblock
27358 #: ../tools/virt-win-reg.pl:464
27359 msgid "\"Current\" is the one which Windows will choose when it boots."
27360 msgstr ""
27361
27362 # type: textblock
27363 #: ../tools/virt-win-reg.pl:466
27364 msgid ""
27365 "Similarly, other C<Current...> keys in the path may need to be replaced."
27366 msgstr ""
27367
27368 # type: =head1
27369 #: ../tools/virt-win-reg.pl:469
27370 msgid "WINDOWS TIPS"
27371 msgstr ""
27372
27373 # type: textblock
27374 #: ../tools/virt-win-reg.pl:471
27375 msgid ""
27376 "Note that some of these tips modify the guest disk image.  The guest I<must> "
27377 "be shut off, else you will get disk corruption."
27378 msgstr ""
27379
27380 # type: =head2
27381 #: ../tools/virt-win-reg.pl:474
27382 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
27383 msgstr ""
27384
27385 # type: textblock
27386 #: ../tools/virt-win-reg.pl:476
27387 msgid ""
27388 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
27389 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
27390 "is uploaded into C<C:\\>:"
27391 msgstr ""
27392
27393 # type: verbatim
27394 #: ../tools/virt-win-reg.pl:480
27395 #, no-wrap
27396 msgid ""
27397 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
27398 "\n"
27399 msgstr ""
27400
27401 # type: textblock
27402 #: ../tools/virt-win-reg.pl:482
27403 msgid "Prepare a regedit file containing the registry change:"
27404 msgstr ""
27405
27406 # type: verbatim
27407 #: ../tools/virt-win-reg.pl:484
27408 #, no-wrap
27409 msgid ""
27410 " cat > test.reg <<'EOF'\n"
27411 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
27412 " \"Test\"=\"c:\\\\test.bat\"\n"
27413 " EOF\n"
27414 "\n"
27415 msgstr ""
27416
27417 # type: textblock
27418 #: ../tools/virt-win-reg.pl:489
27419 msgid ""
27420 "In this example we use the key C<RunOnce> which means that the script will "
27421 "run precisely once when the first user logs in.  If you want it to run every "
27422 "time a user logs in, replace C<RunOnce> with C<Run>."
27423 msgstr ""
27424
27425 # type: textblock
27426 #: ../tools/virt-win-reg.pl:493
27427 msgid "Now update the registry:"
27428 msgstr ""
27429
27430 # type: verbatim
27431 #: ../tools/virt-win-reg.pl:495
27432 #, no-wrap
27433 msgid ""
27434 " virt-win-reg --merge WindowsGuest test.reg\n"
27435 "\n"
27436 msgstr ""
27437
27438 # type: =head2
27439 #: ../tools/virt-win-reg.pl:497
27440 msgid "INSTALLING A SERVICE"
27441 msgstr ""
27442
27443 # type: textblock
27444 #: ../tools/virt-win-reg.pl:499
27445 msgid ""
27446 "This section assumes you are familiar with Windows services, and you either "
27447 "have a program which handles the Windows Service Control Protocol directly "
27448 "or you want to run any program using a service wrapper like SrvAny or the "
27449 "free RHSrvAny."
27450 msgstr ""
27451
27452 # type: textblock
27453 #: ../tools/virt-win-reg.pl:504
27454 msgid ""
27455 "First upload the program and optionally the service wrapper.  In this case "
27456 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
27457 msgstr ""
27458
27459 # type: verbatim
27460 #: ../tools/virt-win-reg.pl:508
27461 #, no-wrap
27462 msgid ""
27463 " guestfish -i -d WindowsGuest <<EOF\n"
27464 "   upload rhsrvany.exe /rhsrvany.exe\n"
27465 "   upload test.exe /test.exe\n"
27466 " EOF\n"
27467 "\n"
27468 msgstr ""
27469
27470 # type: textblock
27471 #: ../tools/virt-win-reg.pl:513
27472 msgid ""
27473 "Prepare a regedit file containing the registry changes.  In this example, "
27474 "the first registry change is needed for the service itself or the service "
27475 "wrapper (if used).  The second registry change is only needed because I am "
27476 "using the RHSrvAny service wrapper."
27477 msgstr ""
27478
27479 # type: verbatim
27480 #: ../tools/virt-win-reg.pl:518
27481 #, no-wrap
27482 msgid ""
27483 " cat > service.reg <<'EOF'\n"
27484 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
27485 " \"Type\"=dword:00000010\n"
27486 " \"Start\"=dword:00000002\n"
27487 " \"ErrorControl\"=dword:00000001\n"
27488 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
27489 " \"DisplayName\"=\"RHSrvAny\"\n"
27490 " \"ObjectName\"=\"NetworkService\"\n"
27491 " \n"
27492 msgstr ""
27493
27494 # type: verbatim
27495 #: ../tools/virt-win-reg.pl:527
27496 #, no-wrap
27497 msgid ""
27498 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
27499 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
27500 " \"PWD\"=\"c:\\\\Temp\"\n"
27501 " EOF\n"
27502 "\n"
27503 msgstr ""
27504
27505 # type: textblock
27506 #: ../tools/virt-win-reg.pl:538
27507 msgid ""
27508 "For use of C<ControlSet001> see the section above in this manual page.  You "
27509 "may need to adjust this according to the control set that is in use by the "
27510 "guest."
27511 msgstr ""
27512
27513 # type: textblock
27514 #: ../tools/virt-win-reg.pl:544
27515 msgid ""
27516 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
27517 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
27518 "privileged account."
27519 msgstr ""
27520
27521 # type: textblock
27522 #: ../tools/virt-win-reg.pl:550
27523 msgid ""
27524 "For the meaning of the magic numbers, see this Microsoft KB article: "
27525 "L<http://support.microsoft.com/kb/103000>."
27526 msgstr ""
27527
27528 # type: textblock
27529 #: ../tools/virt-win-reg.pl:555
27530 msgid "Update the registry:"
27531 msgstr ""
27532
27533 # type: verbatim
27534 #: ../tools/virt-win-reg.pl:557
27535 #, no-wrap
27536 msgid ""
27537 " virt-win-reg --merge WindowsGuest service.reg\n"
27538 "\n"
27539 msgstr ""
27540
27541 # type: textblock
27542 #: ../tools/virt-win-reg.pl:561
27543 msgid ""
27544 "Be careful when passing parameters containing C<\\> (backslash) in the "
27545 "shell.  Usually you will have to use 'single quotes' or double backslashes "
27546 "(but not both) to protect them from the shell."
27547 msgstr ""
27548
27549 # type: textblock
27550 #: ../tools/virt-win-reg.pl:565
27551 msgid "Paths and value names are case-insensitive."
27552 msgstr ""
27553
27554 # type: textblock
27555 #: ../tools/virt-win-reg.pl:574
27556 msgid ""
27557 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
27558 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
27559 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27560 msgstr ""
27561
27562 # type: textblock
27563 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
27564 msgid ""
27565 "When reporting bugs, please enable debugging and capture the I<complete> "
27566 "output:"
27567 msgstr ""
27568
27569 # type: verbatim
27570 #: ../tools/virt-win-reg.pl:592
27571 #, no-wrap
27572 msgid ""
27573 " export LIBGUESTFS_DEBUG=1\n"
27574 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
27575 "\n"
27576 msgstr ""
27577
27578 # type: textblock
27579 #: ../tools/virt-win-reg.pl:595
27580 msgid ""
27581 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
27582 "redhat.com/>"
27583 msgstr ""
27584
27585 # type: textblock
27586 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510
27587 #: ../tools/virt-make-fs.pl:565
27588 msgid "Copyright (C) 2010 Red Hat Inc."
27589 msgstr ""
27590
27591 # type: textblock
27592 #: ../tools/virt-resize.pl:42
27593 msgid "virt-resize - Resize a virtual machine disk"
27594 msgstr ""
27595
27596 # type: verbatim
27597 #: ../tools/virt-resize.pl:46
27598 #, no-wrap
27599 msgid ""
27600 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27601 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27602 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27603 "\n"
27604 msgstr ""
27605
27606 # type: textblock
27607 #: ../tools/virt-resize.pl:52
27608 msgid ""
27609 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27610 "larger or smaller overall, and resizing or deleting any partitions contained "
27611 "within."
27612 msgstr ""
27613
27614 # type: textblock
27615 #: ../tools/virt-resize.pl:56
27616 msgid ""
27617 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27618 "not> be used on live virtual machines - for consistent results, shut the "
27619 "virtual machine down before resizing it."
27620 msgstr ""
27621
27622 # type: textblock
27623 #: ../tools/virt-resize.pl:60
27624 msgid ""
27625 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
27626 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
27627 msgstr ""
27628
27629 # type: textblock
27630 #: ../tools/virt-resize.pl:66
27631 msgid ""
27632 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27633 "fill the extra 5GB of space."
27634 msgstr ""
27635
27636 # type: verbatim
27637 #: ../tools/virt-resize.pl:69
27638 #, no-wrap
27639 msgid ""
27640 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27641 " virt-filesystems --long --h --all -a olddisk\n"
27642 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27643 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27644 "\n"
27645 msgstr ""
27646
27647 # type: textblock
27648 #: ../tools/virt-resize.pl:74
27649 msgid ""
27650 "As above, but make the /boot partition 200MB bigger, while giving the "
27651 "remaining space to /dev/sda2:"
27652 msgstr ""
27653
27654 # type: verbatim
27655 #: ../tools/virt-resize.pl:77
27656 #, no-wrap
27657 msgid ""
27658 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27659 "\n"
27660 msgstr ""
27661
27662 # type: textblock
27663 #: ../tools/virt-resize.pl:79
27664 msgid "As above, but the output format will be uncompressed qcow2:"
27665 msgstr ""
27666
27667 # type: verbatim
27668 #: ../tools/virt-resize.pl:81
27669 #, no-wrap
27670 msgid ""
27671 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27672 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27673 "\n"
27674 msgstr ""
27675
27676 # type: =head1
27677 #: ../tools/virt-resize.pl:84
27678 msgid "DETAILED USAGE"
27679 msgstr ""
27680
27681 # type: =head2
27682 #: ../tools/virt-resize.pl:86
27683 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27684 msgstr ""
27685
27686 # type: =item
27687 #: ../tools/virt-resize.pl:90
27688 msgid "1. Shut down the virtual machine"
27689 msgstr ""
27690
27691 # type: =item
27692 #: ../tools/virt-resize.pl:92
27693 msgid "2. Locate input disk image"
27694 msgstr ""
27695
27696 # type: textblock
27697 #: ../tools/virt-resize.pl:94
27698 msgid ""
27699 "Locate the input disk image (ie. the file or device on the host containing "
27700 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27701 "dumpxml> like this to find the disk image name:"
27702 msgstr ""
27703
27704 # type: verbatim
27705 #: ../tools/virt-resize.pl:98
27706 #, no-wrap
27707 msgid ""
27708 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27709 " Found 1 nodes:\n"
27710 " -- NODE --\n"
27711 " <source dev=\"/dev/vg/lv_guest\" />\n"
27712 "\n"
27713 msgstr ""
27714
27715 # type: =item
27716 #: ../tools/virt-resize.pl:103
27717 msgid "3. Look at current sizing"
27718 msgstr ""
27719
27720 # type: textblock
27721 #: ../tools/virt-resize.pl:105
27722 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
27723 msgstr ""
27724
27725 # type: verbatim
27726 #: ../tools/virt-resize.pl:108
27727 #, no-wrap
27728 msgid ""
27729 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27730 " Name       Type       Size  Parent\n"
27731 " /dev/sda1  partition  101M  /dev/sda\n"
27732 " /dev/sda2  partition  7.9G  /dev/sda\n"
27733 " /dev/sda   device     8.0G  -\n"
27734 "\n"
27735 msgstr ""
27736
27737 # type: textblock
27738 #: ../tools/virt-resize.pl:114
27739 msgid ""
27740 "(This example is a virtual machine with an 8 GB disk which we would like to "
27741 "expand up to 10 GB)."
27742 msgstr ""
27743
27744 # type: =item
27745 #: ../tools/virt-resize.pl:117
27746 msgid "4. Create output disk"
27747 msgstr ""
27748
27749 # type: textblock
27750 #: ../tools/virt-resize.pl:119
27751 msgid ""
27752 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27753 "to store the resized output disk."
27754 msgstr ""
27755
27756 # type: textblock
27757 #: ../tools/virt-resize.pl:122
27758 msgid ""
27759 "To store the resized disk image in a file, create a file of a suitable size:"
27760 msgstr ""
27761
27762 # type: verbatim
27763 #: ../tools/virt-resize.pl:125
27764 #, no-wrap
27765 msgid ""
27766 " # rm -f outdisk\n"
27767 " # truncate -s 10G outdisk\n"
27768 "\n"
27769 msgstr ""
27770
27771 # type: textblock
27772 #: ../tools/virt-resize.pl:128
27773 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27774 msgstr ""
27775
27776 # type: verbatim
27777 #: ../tools/virt-resize.pl:130
27778 #, no-wrap
27779 msgid ""
27780 " # lvcreate -L 10G -n lv_name vg_name\n"
27781 "\n"
27782 msgstr ""
27783
27784 # type: textblock
27785 #: ../tools/virt-resize.pl:132
27786 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27787 msgstr ""
27788
27789 # type: verbatim
27790 #: ../tools/virt-resize.pl:134
27791 #, no-wrap
27792 msgid ""
27793 " # virsh pool-list\n"
27794 " # virsh vol-create-as poolname newvol 10G\n"
27795 "\n"
27796 msgstr ""
27797
27798 # type: =item
27799 #: ../tools/virt-resize.pl:137
27800 msgid "5. Resize"
27801 msgstr ""
27802
27803 # type: textblock
27804 #: ../tools/virt-resize.pl:139
27805 msgid ""
27806 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27807 "file) and the output disk.  The output disk is the one created in the "
27808 "previous step."
27809 msgstr ""
27810
27811 # type: verbatim
27812 #: ../tools/virt-resize.pl:143
27813 #, no-wrap
27814 msgid ""
27815 " # virt-resize indisk outdisk\n"
27816 "\n"
27817 msgstr ""
27818
27819 # type: textblock
27820 #: ../tools/virt-resize.pl:145
27821 msgid ""
27822 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27823 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27824 "larger, then an extra, empty partition is created at the end of the disk "
27825 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27826 "error."
27827 msgstr ""
27828
27829 # type: textblock
27830 #: ../tools/virt-resize.pl:151
27831 msgid ""
27832 "More realistically you'd want to expand existing partitions in the disk "
27833 "image by passing extra options (for the full list see the L</OPTIONS> "
27834 "section below)."
27835 msgstr ""
27836
27837 # type: textblock
27838 #: ../tools/virt-resize.pl:155
27839 msgid ""
27840 "L</--expand> is the most useful option.  It expands the named partition "
27841 "within the disk to fill any extra space:"
27842 msgstr ""
27843
27844 # type: verbatim
27845 #: ../tools/virt-resize.pl:158
27846 #, no-wrap
27847 msgid ""
27848 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27849 "\n"
27850 msgstr ""
27851
27852 # type: textblock
27853 #: ../tools/virt-resize.pl:160
27854 msgid ""
27855 "(In this case, an extra partition is I<not> created at the end of the disk, "
27856 "because there will be no unused space)."
27857 msgstr ""
27858
27859 # type: textblock
27860 #: ../tools/virt-resize.pl:163
27861 msgid ""
27862 "L</--resize> is the other commonly used option.  The following would "
27863 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27864 "rest of the available space:"
27865 msgstr ""
27866
27867 # type: verbatim
27868 #: ../tools/virt-resize.pl:167
27869 #, no-wrap
27870 msgid ""
27871 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27872 "     indisk outdisk\n"
27873 "\n"
27874 msgstr ""
27875
27876 # type: textblock
27877 #: ../tools/virt-resize.pl:170
27878 msgid ""
27879 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27880 "if virt-resize knows how, it will resize the contents, the equivalent of "
27881 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27882 ">.  However virt-resize does not know how to resize some filesystems, so you "
27883 "would have to online resize them after booting the guest."
27884 msgstr ""
27885
27886 # type: textblock
27887 #: ../tools/virt-resize.pl:177
27888 msgid "Other options are covered below."
27889 msgstr ""
27890
27891 # type: =item
27892 #: ../tools/virt-resize.pl:179
27893 msgid "6. Test"
27894 msgstr ""
27895
27896 # type: textblock
27897 #: ../tools/virt-resize.pl:181
27898 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27899 msgstr ""
27900
27901 # type: textblock
27902 #: ../tools/virt-resize.pl:183
27903 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27904 msgstr ""
27905
27906 # type: verbatim
27907 #: ../tools/virt-resize.pl:185
27908 #, no-wrap
27909 msgid ""
27910 " # virsh edit guestname\n"
27911 "\n"
27912 msgstr ""
27913
27914 # type: textblock
27915 #: ../tools/virt-resize.pl:187
27916 msgid ""
27917 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27918 "html#elementsDisks>"
27919 msgstr ""
27920
27921 # type: textblock
27922 #: ../tools/virt-resize.pl:190
27923 msgid "Then start up the domain with the new, resized disk:"
27924 msgstr ""
27925
27926 # type: verbatim
27927 #: ../tools/virt-resize.pl:192
27928 #, no-wrap
27929 msgid ""
27930 " # virsh start guestname\n"
27931 "\n"
27932 msgstr ""
27933
27934 # type: textblock
27935 #: ../tools/virt-resize.pl:194
27936 msgid ""
27937 "and check that it still works.  See also the L</NOTES> section below for "
27938 "additional information."
27939 msgstr ""
27940
27941 # type: =item
27942 #: ../tools/virt-resize.pl:197
27943 msgid "7. Resize LVs etc inside the guest"
27944 msgstr ""
27945
27946 # type: textblock
27947 #: ../tools/virt-resize.pl:199
27948 msgid "(This can also be done offline using L<guestfish(1)>)"
27949 msgstr ""
27950
27951 # type: textblock
27952 #: ../tools/virt-resize.pl:201
27953 msgid ""
27954 "Once the guest has booted you should see the new space available, at least "
27955 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27956 "may need to resize LVs inside PVs, and also resize filesystem types that "
27957 "virt-resize does not know how to expand."
27958 msgstr ""
27959
27960 # type: =head2
27961 #: ../tools/virt-resize.pl:208
27962 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27963 msgstr ""
27964
27965 # type: textblock
27966 #: ../tools/virt-resize.pl:210
27967 msgid ""
27968 "Shrinking is somewhat more complex than expanding, and only an overview is "
27969 "given here."
27970 msgstr ""
27971
27972 # type: textblock
27973 #: ../tools/virt-resize.pl:213
27974 msgid ""
27975 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27976 "filesystems).  The user has to shrink content before passing the disk image "
27977 "to virt-resize, and virt-resize will check that the content has been shrunk "
27978 "properly."
27979 msgstr ""
27980
27981 # type: textblock
27982 #: ../tools/virt-resize.pl:218
27983 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27984 msgstr ""
27985
27986 # type: textblock
27987 #: ../tools/virt-resize.pl:220
27988 msgid ""
27989 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27990 "steps 3 and 4 above to allocate a new disk image."
27991 msgstr ""
27992
27993 # type: textblock
27994 #: ../tools/virt-resize.pl:223
27995 msgid ""
27996 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27997 msgstr ""
27998
27999 # type: =head2
28000 #: ../tools/virt-resize.pl:226
28001 msgid "IGNORING OR DELETING PARTITIONS"
28002 msgstr ""
28003
28004 # type: textblock
28005 #: ../tools/virt-resize.pl:228
28006 msgid ""
28007 "virt-resize also gives a convenient way to ignore or delete partitions when "
28008 "copying from the input disk to the output disk.  Ignoring a partition speeds "
28009 "up the copy where you don't care about the existing contents of a "
28010 "partition.  Deleting a partition removes it completely, but note that it "
28011 "also renumbers any partitions after the one which is deleted, which can "
28012 "leave some guests unbootable."
28013 msgstr ""
28014
28015 # type: =head2
28016 #: ../tools/virt-resize.pl:235
28017 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
28018 msgstr ""
28019
28020 # type: textblock
28021 #: ../tools/virt-resize.pl:237
28022 msgid ""
28023 "If the input disk is in qcow2 format, then you may prefer that the output is "
28024 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
28025 "the fly.  The output format is simply determined by the format of the empty "
28026 "output container that you provide.  Thus to create qcow2 output, use:"
28027 msgstr ""
28028
28029 # type: verbatim
28030 #: ../tools/virt-resize.pl:243
28031 #, no-wrap
28032 msgid ""
28033 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
28034 "\n"
28035 msgstr ""
28036
28037 # type: textblock
28038 #: ../tools/virt-resize.pl:245
28039 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
28040 msgstr ""
28041
28042 # type: textblock
28043 #: ../tools/virt-resize.pl:247
28044 msgid "Similarly, to get non-sparse raw output use:"
28045 msgstr ""
28046
28047 # type: verbatim
28048 #: ../tools/virt-resize.pl:249
28049 #, no-wrap
28050 msgid ""
28051 " fallocate -l size outdisk\n"
28052 "\n"
28053 msgstr ""
28054
28055 # type: textblock
28056 #: ../tools/virt-resize.pl:251
28057 msgid ""
28058 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
28059 "dev/zero of=outdisk bs=1M count=..>)"
28060 msgstr ""
28061
28062 # type: textblock
28063 #: ../tools/virt-resize.pl:264
28064 msgid "Display help."
28065 msgstr ""
28066
28067 # type: =item
28068 #: ../tools/virt-resize.pl:278
28069 msgid "B<--resize part=size>"
28070 msgstr ""
28071
28072 # type: textblock
28073 #: ../tools/virt-resize.pl:280
28074 msgid ""
28075 "Resize the named partition (expanding or shrinking it) so that it has the "
28076 "given size."
28077 msgstr ""
28078
28079 # type: textblock
28080 #: ../tools/virt-resize.pl:283
28081 msgid ""
28082 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
28083 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
28084 "Exabytes; or as a percentage of the current size; or as a relative number or "
28085 "percentage.  For example:"
28086 msgstr ""
28087
28088 # type: verbatim
28089 #: ../tools/virt-resize.pl:288
28090 #, no-wrap
28091 msgid ""
28092 " --resize /dev/sda2=10G\n"
28093 "\n"
28094 msgstr ""
28095
28096 # type: verbatim
28097 #: ../tools/virt-resize.pl:290
28098 #, no-wrap
28099 msgid ""
28100 " --resize /dev/sda4=90%\n"
28101 "\n"
28102 msgstr ""
28103
28104 # type: verbatim
28105 #: ../tools/virt-resize.pl:292
28106 #, no-wrap
28107 msgid ""
28108 " --resize /dev/sda2=+1G\n"
28109 "\n"
28110 msgstr ""
28111
28112 # type: verbatim
28113 #: ../tools/virt-resize.pl:294
28114 #, no-wrap
28115 msgid ""
28116 " --resize /dev/sda2=-200M\n"
28117 "\n"
28118 msgstr ""
28119
28120 # type: verbatim
28121 #: ../tools/virt-resize.pl:296
28122 #, no-wrap
28123 msgid ""
28124 " --resize /dev/sda1=+128K\n"
28125 "\n"
28126 msgstr ""
28127
28128 # type: verbatim
28129 #: ../tools/virt-resize.pl:298
28130 #, no-wrap
28131 msgid ""
28132 " --resize /dev/sda1=+10%\n"
28133 "\n"
28134 msgstr ""
28135
28136 # type: verbatim
28137 #: ../tools/virt-resize.pl:300
28138 #, no-wrap
28139 msgid ""
28140 " --resize /dev/sda1=-10%\n"
28141 "\n"
28142 msgstr ""
28143
28144 # type: textblock
28145 #: ../tools/virt-resize.pl:302
28146 msgid ""
28147 "You can increase the size of any partition.  Virt-resize will expand the "
28148 "direct content of the partition if it knows how (see C<--expand> below)."
28149 msgstr ""
28150
28151 # type: textblock
28152 #: ../tools/virt-resize.pl:306
28153 msgid ""
28154 "You can only I<decrease> the size of partitions that contain filesystems or "
28155 "PVs which have already been shrunk.  Virt-resize will check this has been "
28156 "done before proceeding, or else will print an error (see also C<--resize-"
28157 "force>)."
28158 msgstr ""
28159
28160 # type: textblock
28161 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
28162 #: ../tools/virt-resize.pl:420
28163 msgid "You can give this option multiple times."
28164 msgstr ""
28165
28166 # type: =item
28167 #: ../tools/virt-resize.pl:317
28168 msgid "B<--resize-force part=size>"
28169 msgstr ""
28170
28171 # type: textblock
28172 #: ../tools/virt-resize.pl:319
28173 msgid ""
28174 "This is the same as C<--resize> except that it will let you decrease the "
28175 "size of any partition.  Generally this means you will lose any data which "
28176 "was at the end of the partition you shrink, but you may not care about that "
28177 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
28178 "as a swap partition)."
28179 msgstr ""
28180
28181 # type: textblock
28182 #: ../tools/virt-resize.pl:325
28183 msgid "See also the C<--ignore> option."
28184 msgstr ""
28185
28186 # type: =item
28187 #: ../tools/virt-resize.pl:331
28188 msgid "B<--expand part>"
28189 msgstr ""
28190
28191 # type: textblock
28192 #: ../tools/virt-resize.pl:333
28193 msgid ""
28194 "Expand the named partition so it uses up all extra space (space left over "
28195 "after any other resize changes that you request have been done)."
28196 msgstr ""
28197
28198 # type: textblock
28199 #: ../tools/virt-resize.pl:336
28200 msgid ""
28201 "If virt-resize knows how, it will expand the direct content of the "
28202 "partition.  For example, if the partition is an LVM PV, it will expand the "
28203 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
28204 "content it doesn't know about alone."
28205 msgstr ""
28206
28207 # type: textblock
28208 #: ../tools/virt-resize.pl:341
28209 msgid "Currently virt-resize can resize:"
28210 msgstr ""
28211
28212 # type: textblock
28213 #: ../tools/virt-resize.pl:347
28214 msgid ""
28215 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
28216 "partition."
28217 msgstr ""
28218
28219 # type: textblock
28220 #: ../tools/virt-resize.pl:352
28221 msgid ""
28222 "NTFS filesystems contained directly in a partition, if libguestfs was "
28223 "compiled with support for NTFS."
28224 msgstr ""
28225
28226 # type: textblock
28227 #: ../tools/virt-resize.pl:355
28228 msgid ""
28229 "The filesystem must have been shut down consistently last time it was used.  "
28230 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
28231 "consistency check, so at the first boot after resizing Windows will check "
28232 "the disk."
28233 msgstr ""
28234
28235 # type: textblock
28236 #: ../tools/virt-resize.pl:362
28237 msgid ""
28238 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
28239 "inside the PV, but see the C<--LV-expand> option.  The user could also "
28240 "resize LVs as desired after boot."
28241 msgstr ""
28242
28243 # type: textblock
28244 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
28245 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
28246 msgstr ""
28247
28248 # type: =item
28249 #: ../tools/virt-resize.pl:374
28250 msgid "B<--shrink part>"
28251 msgstr ""
28252
28253 # type: textblock
28254 #: ../tools/virt-resize.pl:376
28255 msgid ""
28256 "Shrink the named partition until the overall disk image fits in the "
28257 "destination.  The named partition B<must> contain a filesystem or PV which "
28258 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
28259 "online tools).  Virt-resize will check this and give an error if it has not "
28260 "been done."
28261 msgstr ""
28262
28263 # type: textblock
28264 #: ../tools/virt-resize.pl:382
28265 msgid ""
28266 "The amount by which the overall disk must be shrunk (after carrying out all "
28267 "other operations requested by the user) is called the \"deficit\".  For "
28268 "example, a straight copy (assume no other operations)  from a 5GB disk image "
28269 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
28270 "would give an error unless the user specified a partition to shrink and that "
28271 "partition had more than a gigabyte of free space."
28272 msgstr ""
28273
28274 # type: =item
28275 #: ../tools/virt-resize.pl:396
28276 msgid "B<--ignore part>"
28277 msgstr ""
28278
28279 # type: textblock
28280 #: ../tools/virt-resize.pl:398
28281 msgid ""
28282 "Ignore the named partition.  Effectively this means the partition is "
28283 "allocated on the destination disk, but the content is not copied across from "
28284 "the source disk.  The content of the partition will be blank (all zero "
28285 "bytes)."
28286 msgstr ""
28287
28288 # type: =item
28289 #: ../tools/virt-resize.pl:409
28290 msgid "B<--delete part>"
28291 msgstr ""
28292
28293 # type: textblock
28294 #: ../tools/virt-resize.pl:411
28295 msgid ""
28296 "Delete the named partition.  It would be more accurate to describe this as "
28297 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
28298 "the original disk image is left intact."
28299 msgstr ""
28300
28301 # type: textblock
28302 #: ../tools/virt-resize.pl:415
28303 msgid ""
28304 "Note that when you delete a partition, then anything contained in the "
28305 "partition is also deleted.  Furthermore, this causes any partitions that "
28306 "come after to be I<renumbered>, which can easily make your guest unbootable."
28307 msgstr ""
28308
28309 # type: =item
28310 #: ../tools/virt-resize.pl:426
28311 msgid "B<--LV-expand logvol>"
28312 msgstr ""
28313
28314 # type: textblock
28315 #: ../tools/virt-resize.pl:428
28316 msgid ""
28317 "This takes the logical volume and, as a final step, expands it to fill all "
28318 "the space available in its volume group.  A typical usage, assuming a Linux "
28319 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
28320 "lv_root> would be:"
28321 msgstr ""
28322
28323 # type: verbatim
28324 #: ../tools/virt-resize.pl:433
28325 #, no-wrap
28326 msgid ""
28327 " virt-resize indisk outdisk \\\n"
28328 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
28329 "\n"
28330 msgstr ""
28331
28332 # type: textblock
28333 #: ../tools/virt-resize.pl:436
28334 msgid ""
28335 "This would first expand the partition (and PV), and then expand the root "
28336 "device to fill the extra space in the PV."
28337 msgstr ""
28338
28339 # type: textblock
28340 #: ../tools/virt-resize.pl:439
28341 msgid ""
28342 "The contents of the LV are also resized if virt-resize knows how to do "
28343 "that.  You can stop virt-resize from trying to expand the content by using "
28344 "the option C<--no-expand-content>."
28345 msgstr ""
28346
28347 # type: textblock
28348 #: ../tools/virt-resize.pl:443
28349 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
28350 msgstr ""
28351
28352 # type: textblock
28353 #: ../tools/virt-resize.pl:446
28354 msgid ""
28355 "You can give this option multiple times, I<but> it doesn't make sense to do "
28356 "this unless the logical volumes you specify are all in different volume "
28357 "groups."
28358 msgstr ""
28359
28360 # type: =item
28361 #: ../tools/virt-resize.pl:454
28362 msgid "B<--no-copy-boot-loader>"
28363 msgstr ""
28364
28365 # type: textblock
28366 #: ../tools/virt-resize.pl:456
28367 msgid ""
28368 "By default, virt-resize copies over some sectors at the start of the disk "
28369 "(up to the beginning of the first partition).  Commonly these sectors "
28370 "contain the Master Boot Record (MBR) and the boot loader, and are required "
28371 "in order for the guest to boot correctly."
28372 msgstr ""
28373
28374 # type: textblock
28375 #: ../tools/virt-resize.pl:461
28376 msgid ""
28377 "If you specify this flag, then this initial copy is not done.  You may need "
28378 "to reinstall the boot loader in this case."
28379 msgstr ""
28380
28381 # type: =item
28382 #: ../tools/virt-resize.pl:469
28383 msgid "B<--no-extra-partition>"
28384 msgstr ""
28385
28386 # type: textblock
28387 #: ../tools/virt-resize.pl:471
28388 msgid ""
28389 "By default, virt-resize creates an extra partition if there is any extra, "
28390 "unused space after all resizing has happened.  Use this option to prevent "
28391 "the extra partition from being created.  If you do this then the extra space "
28392 "will be inaccessible until you run fdisk, parted, or some other partitioning "
28393 "tool in the guest."
28394 msgstr ""
28395
28396 # type: textblock
28397 #: ../tools/virt-resize.pl:477
28398 msgid ""
28399 "Note that if the surplus space is smaller than 10 MB, no extra partition "
28400 "will be created."
28401 msgstr ""
28402
28403 # type: =item
28404 #: ../tools/virt-resize.pl:484
28405 msgid "B<--no-expand-content>"
28406 msgstr ""
28407
28408 # type: textblock
28409 #: ../tools/virt-resize.pl:486
28410 msgid ""
28411 "By default, virt-resize will try to expand the direct contents of "
28412 "partitions, if it knows how (see C<--expand> option above)."
28413 msgstr ""
28414
28415 # type: textblock
28416 #: ../tools/virt-resize.pl:489
28417 msgid ""
28418 "If you give the C<--no-expand-content> option then virt-resize will not "
28419 "attempt this."
28420 msgstr ""
28421
28422 # type: =item
28423 #: ../tools/virt-resize.pl:496
28424 msgid "B<-d> | B<--debug>"
28425 msgstr ""
28426
28427 # type: =item
28428 #: ../tools/virt-resize.pl:504
28429 msgid "B<-n> | B<--dryrun>"
28430 msgstr ""
28431
28432 # type: textblock
28433 #: ../tools/virt-resize.pl:506
28434 msgid "Print a summary of what would be done, but don't do anything."
28435 msgstr ""
28436
28437 # type: =item
28438 #: ../tools/virt-resize.pl:512
28439 msgid "B<-q> | B<--quiet>"
28440 msgstr ""
28441
28442 # type: textblock
28443 #: ../tools/virt-resize.pl:514
28444 msgid "Don't print the summary."
28445 msgstr ""
28446
28447 # type: textblock
28448 #: ../tools/virt-resize.pl:522
28449 msgid ""
28450 "Specify the format of the input disk image.  If this flag is not given then "
28451 "it is auto-detected from the image itself."
28452 msgstr ""
28453
28454 # type: textblock
28455 #: ../tools/virt-resize.pl:528
28456 msgid ""
28457 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
28458 "AND NON-SPARSE RAW FORMATS>."
28459 msgstr ""
28460
28461 # type: =item
28462 #: ../tools/virt-resize.pl:535
28463 msgid "B<--output-format> raw"
28464 msgstr ""
28465
28466 # type: textblock
28467 #: ../tools/virt-resize.pl:537
28468 msgid ""
28469 "Specify the format of the output disk image.  If this flag is not given then "
28470 "it is auto-detected from the image itself."
28471 msgstr ""
28472
28473 # type: textblock
28474 #: ../tools/virt-resize.pl:543
28475 msgid ""
28476 "Note that you still need to create the output disk with the right format.  "
28477 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
28478 msgstr ""
28479
28480 # type: =head1
28481 #: ../tools/virt-resize.pl:1419
28482 msgid "NOTES"
28483 msgstr ""
28484
28485 # type: =head2
28486 #: ../tools/virt-resize.pl:1421
28487 msgid "\"Partition 1 does not end on cylinder boundary.\""
28488 msgstr ""
28489
28490 # type: textblock
28491 #: ../tools/virt-resize.pl:1423
28492 msgid ""
28493 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
28494 "means the partitions will not be aligned to the ancient CHS geometry.  "
28495 "However CHS geometry is meaningless for disks manufactured since the early "
28496 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
28497 "cylinders is not required by any modern operating system."
28498 msgstr ""
28499
28500 # type: =head2
28501 #: ../tools/virt-resize.pl:1430
28502 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
28503 msgstr ""
28504
28505 # type: textblock
28506 #: ../tools/virt-resize.pl:1432
28507 msgid ""
28508 "In Windows Vista and later versions, Microsoft switched to using a separate "
28509 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
28510 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
28511 "the boot partition.  Doing so seems to break the guest completely.  However "
28512 "expanding the second partition (ie. C: drive) should work."
28513 msgstr ""
28514
28515 # type: textblock
28516 #: ../tools/virt-resize.pl:1439
28517 msgid ""
28518 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
28519 "NTFS partitions have been expanded.  This is just a safety check and (unless "
28520 "it find errors) is nothing to worry about."
28521 msgstr ""
28522
28523 # type: =head2
28524 #: ../tools/virt-resize.pl:1443
28525 msgid "GUEST BOOT STUCK AT \"GRUB\""
28526 msgstr ""
28527
28528 # type: textblock
28529 #: ../tools/virt-resize.pl:1445
28530 msgid ""
28531 "If a Linux guest does not boot after resizing, and the boot is stuck after "
28532 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
28533 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
28534 "although we think is to do with partition alignment."
28535 msgstr ""
28536
28537 # type: verbatim
28538 #: ../tools/virt-resize.pl:1450
28539 #, no-wrap
28540 msgid ""
28541 " guestfish -i -a newdisk\n"
28542 " ><fs> cat /boot/grub/device.map\n"
28543 " # check the contents of this file are sensible or\n"
28544 " # edit the file if necessary\n"
28545 " ><fs> grub-install / /dev/vda\n"
28546 " ><fs> exit\n"
28547 "\n"
28548 msgstr ""
28549
28550 # type: textblock
28551 #: ../tools/virt-resize.pl:1457
28552 msgid ""
28553 "For more flexible guest reconfiguration, including if you need to specify "
28554 "other parameters to grub-install, use L<virt-rescue(1)>."
28555 msgstr ""
28556
28557 # type: =head1
28558 #: ../tools/virt-resize.pl:1460
28559 msgid "ALTERNATIVE TOOLS"
28560 msgstr ""
28561
28562 # type: textblock
28563 #: ../tools/virt-resize.pl:1462
28564 msgid ""
28565 "There are several proprietary tools for resizing partitions.  We won't "
28566 "mention any here."
28567 msgstr ""
28568
28569 # type: textblock
28570 #: ../tools/virt-resize.pl:1465
28571 msgid ""
28572 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
28573 "operations on disk images.  They can resize and move partitions, but I don't "
28574 "think they can do anything with the contents, and they certainly don't "
28575 "understand LVM."
28576 msgstr ""
28577
28578 # type: textblock
28579 #: ../tools/virt-resize.pl:1470
28580 msgid ""
28581 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
28582 "but at a much lower level.  You will probably end up hand-calculating sector "
28583 "offsets, which is something that virt-resize was designed to avoid.  If you "
28584 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
28585 "C<--debug> flag."
28586 msgstr ""
28587
28588 # type: textblock
28589 #: ../tools/virt-resize.pl:1485
28590 msgid ""
28591 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
28592 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
28593 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
28594 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
28595 "libguestfs.org/>."
28596 msgstr ""
28597
28598 # type: textblock
28599 #: ../tools/virt-list-filesystems.pl:32
28600 msgid ""
28601 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28602 msgstr ""
28603
28604 # type: verbatim
28605 #: ../tools/virt-list-filesystems.pl:36
28606 #, no-wrap
28607 msgid ""
28608 " virt-list-filesystems [--options] domname\n"
28609 "\n"
28610 msgstr ""
28611
28612 # type: verbatim
28613 #: ../tools/virt-list-filesystems.pl:38
28614 #, no-wrap
28615 msgid ""
28616 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28617 "\n"
28618 msgstr ""
28619
28620 # type: textblock
28621 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
28622 msgid ""
28623 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
28624 "replacement."
28625 msgstr ""
28626
28627 # type: textblock
28628 #: ../tools/virt-list-filesystems.pl:45
28629 msgid ""
28630 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28631 "are contained in a virtual machine or disk image."
28632 msgstr ""
28633
28634 # type: textblock
28635 #: ../tools/virt-list-filesystems.pl:49
28636 msgid ""
28637 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28638 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28639 "> tool."
28640 msgstr ""
28641
28642 # type: =item
28643 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
28644 msgid "B<-l> | B<--long>"
28645 msgstr ""
28646
28647 # type: textblock
28648 #: ../tools/virt-list-filesystems.pl:108
28649 msgid ""
28650 "With this option, C<virt-list-filesystems> displays the type of each "
28651 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28652 msgstr ""
28653
28654 # type: =item
28655 #: ../tools/virt-list-filesystems.pl:115
28656 msgid "B<-a> | B<--all>"
28657 msgstr ""
28658
28659 # type: textblock
28660 #: ../tools/virt-list-filesystems.pl:117
28661 msgid ""
28662 "Normally we only show mountable filesystems.  If this option is given then "
28663 "swap devices are shown too."
28664 msgstr ""
28665
28666 # type: textblock
28667 #: ../tools/virt-list-filesystems.pl:191
28668 msgid ""
28669 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
28670 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28671 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28672 msgstr ""
28673
28674 # type: textblock
28675 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
28676 msgid "Copyright (C) 2009 Red Hat Inc."
28677 msgstr ""
28678
28679 # type: textblock
28680 #: ../tools/virt-tar.pl:33
28681 msgid "virt-tar - Extract or upload files to a virtual machine"
28682 msgstr ""
28683
28684 # type: verbatim
28685 #: ../tools/virt-tar.pl:37
28686 #, no-wrap
28687 msgid ""
28688 " virt-tar [--options] -x domname directory tarball\n"
28689 "\n"
28690 msgstr ""
28691
28692 # type: verbatim
28693 #: ../tools/virt-tar.pl:39
28694 #, no-wrap
28695 msgid ""
28696 " virt-tar [--options] -u domname tarball directory\n"
28697 "\n"
28698 msgstr ""
28699
28700 # type: verbatim
28701 #: ../tools/virt-tar.pl:41
28702 #, no-wrap
28703 msgid ""
28704 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28705 "\n"
28706 msgstr ""
28707
28708 # type: verbatim
28709 #: ../tools/virt-tar.pl:43
28710 #, no-wrap
28711 msgid ""
28712 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28713 "\n"
28714 msgstr ""
28715
28716 # type: textblock
28717 #: ../tools/virt-tar.pl:47
28718 msgid "Download C</home> from the VM into a local tarball:"
28719 msgstr ""
28720
28721 # type: verbatim
28722 #: ../tools/virt-tar.pl:49
28723 #, no-wrap
28724 msgid ""
28725 " virt-tar -x domname /home home.tar\n"
28726 "\n"
28727 msgstr ""
28728
28729 # type: verbatim
28730 #: ../tools/virt-tar.pl:51
28731 #, no-wrap
28732 msgid ""
28733 " virt-tar -zx domname /home home.tar.gz\n"
28734 "\n"
28735 msgstr ""
28736
28737 # type: textblock
28738 #: ../tools/virt-tar.pl:53
28739 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28740 msgstr ""
28741
28742 # type: verbatim
28743 #: ../tools/virt-tar.pl:55
28744 #, no-wrap
28745 msgid ""
28746 " virt-tar -u domname uploadstuff.tar /tmp\n"
28747 "\n"
28748 msgstr ""
28749
28750 # type: verbatim
28751 #: ../tools/virt-tar.pl:57
28752 #, no-wrap
28753 msgid ""
28754 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28755 "\n"
28756 msgstr ""
28757
28758 # type: textblock
28759 #: ../tools/virt-tar.pl:61
28760 msgid ""
28761 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28762 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28763 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28764 msgstr ""
28765
28766 # type: textblock
28767 #: ../tools/virt-tar.pl:66
28768 msgid ""
28769 "You can use C<-x> (extract) on live virtual machines, but you might get "
28770 "inconsistent results or errors if there is filesystem activity inside the "
28771 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28772 "work, but the only way to guarantee consistent results is if the virtual "
28773 "machine is shut down."
28774 msgstr ""
28775
28776 # type: textblock
28777 #: ../tools/virt-tar.pl:74
28778 msgid ""
28779 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28780 "parts of a guest filesystem.  There are many possibilities: making backups, "
28781 "uploading data files, snooping on guest activity, fixing or customizing "
28782 "guests, etc."
28783 msgstr ""
28784
28785 # type: textblock
28786 #: ../tools/virt-tar.pl:79
28787 msgid ""
28788 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28789 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28790 "should look at the L<guestfish(1)> tool."
28791 msgstr ""
28792
28793 # type: textblock
28794 #: ../tools/virt-tar.pl:83
28795 msgid ""
28796 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28797 "its contents (recursively) from the virtual machine into a local tarball.  "
28798 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28799 "virtual machine.  You cannot use these two options together."
28800 msgstr ""
28801
28802 # type: textblock
28803 #: ../tools/virt-tar.pl:89
28804 msgid ""
28805 "In addition, you may need to use the C<-z> (gZip) option to enable "
28806 "compression.  When uploading, you have to specify C<-z> if the upload file "
28807 "is compressed because virt-tar won't detect this on its own."
28808 msgstr ""
28809
28810 # type: textblock
28811 #: ../tools/virt-tar.pl:93
28812 msgid ""
28813 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28814 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28815 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28816 "the L<libguestfs(3)> API)."
28817 msgstr ""
28818
28819 # type: =item
28820 #: ../tools/virt-tar.pl:151
28821 msgid "B<-x> | B<--extract> | B<--download>"
28822 msgstr ""
28823
28824 # type: =item
28825 #: ../tools/virt-tar.pl:153
28826 msgid "B<-u> | B<--upload>"
28827 msgstr ""
28828
28829 # type: textblock
28830 #: ../tools/virt-tar.pl:155
28831 msgid ""
28832 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28833 "local tarball."
28834 msgstr ""
28835
28836 # type: textblock
28837 #: ../tools/virt-tar.pl:158
28838 msgid ""
28839 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28840 "Please read the L</WARNING> section above before using this option."
28841 msgstr ""
28842
28843 # type: textblock
28844 #: ../tools/virt-tar.pl:162
28845 msgid "You must specify exactly one of these options."
28846 msgstr ""
28847
28848 # type: =item
28849 #: ../tools/virt-tar.pl:168
28850 msgid "B<-z> | B<--gzip>"
28851 msgstr ""
28852
28853 # type: textblock
28854 #: ../tools/virt-tar.pl:170
28855 msgid "Specify that the input or output tarball is gzip-compressed."
28856 msgstr ""
28857
28858 # type: textblock
28859 #: ../tools/virt-tar.pl:283
28860 msgid ""
28861 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28862 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28863 "org/>."
28864 msgstr ""
28865
28866 # type: textblock
28867 #: ../tools/virt-make-fs.pl:37
28868 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28869 msgstr ""
28870
28871 # type: verbatim
28872 #: ../tools/virt-make-fs.pl:41
28873 #, no-wrap
28874 msgid ""
28875 " virt-make-fs [--options] input.tar output.img\n"
28876 "\n"
28877 msgstr ""
28878
28879 # type: verbatim
28880 #: ../tools/virt-make-fs.pl:43
28881 #, no-wrap
28882 msgid ""
28883 " virt-make-fs [--options] input.tar.gz output.img\n"
28884 "\n"
28885 msgstr ""
28886
28887 # type: verbatim
28888 #: ../tools/virt-make-fs.pl:45
28889 #, no-wrap
28890 msgid ""
28891 " virt-make-fs [--options] directory output.img\n"
28892 "\n"
28893 msgstr ""
28894
28895 # type: textblock
28896 #: ../tools/virt-make-fs.pl:49
28897 msgid ""
28898 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28899 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28900 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28901 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28902 "you want to attach these filesystems to existing virtual machines (eg. to "
28903 "import large amounts of read-only data to a VM)."
28904 msgstr ""
28905
28906 # type: textblock
28907 #: ../tools/virt-make-fs.pl:57
28908 msgid "Basic usage is:"
28909 msgstr ""
28910
28911 # type: verbatim
28912 #: ../tools/virt-make-fs.pl:59
28913 #, no-wrap
28914 msgid ""
28915 " virt-make-fs input output\n"
28916 "\n"
28917 msgstr ""
28918
28919 # type: textblock
28920 #: ../tools/virt-make-fs.pl:61
28921 msgid ""
28922 "where C<input> is either a directory containing files that you want to add, "
28923 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28924 "C<output> is a disk image.  The input type is detected automatically.  The "
28925 "output disk image defaults to a raw ext2 image unless you specify extra "
28926 "flags (see L</OPTIONS> below)."
28927 msgstr ""
28928
28929 # type: =head2
28930 #: ../tools/virt-make-fs.pl:67
28931 msgid "EXTRA SPACE"
28932 msgstr ""
28933
28934 # type: textblock
28935 #: ../tools/virt-make-fs.pl:69
28936 msgid ""
28937 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28938 "the files that it contains, but might have extra space.  Depending on how "
28939 "you are going to use the output, you might think this extra space is wasted "
28940 "and want to minimize it, or you might want to leave space so that more files "
28941 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28942 "but you can use the C<--size> flag to leave space in the filesystem if you "
28943 "want it."
28944 msgstr ""
28945
28946 # type: textblock
28947 #: ../tools/virt-make-fs.pl:77
28948 msgid ""
28949 "An alternative way to leave extra space but not make the output image any "
28950 "bigger is to use an alternative disk image format (instead of the default "
28951 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28952 "image format (check your hypervisor supports this before using it).  This "
28953 "allows you to choose a large C<--size> but the extra space won't actually be "
28954 "allocated in the image until you try to store something in it."
28955 msgstr ""
28956
28957 # type: textblock
28958 #: ../tools/virt-make-fs.pl:85
28959 msgid ""
28960 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28961 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28962 "resize to build another image from scratch."
28963 msgstr ""
28964
28965 # type: =head3
28966 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28967 #: ../tools/virt-make-fs.pl:142
28968 msgid "EXAMPLE"
28969 msgstr ""
28970
28971 # type: verbatim
28972 #: ../tools/virt-make-fs.pl:91
28973 #, no-wrap
28974 msgid ""
28975 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28976 "\n"
28977 msgstr ""
28978
28979 # type: =head2
28980 #: ../tools/virt-make-fs.pl:93
28981 msgid "FILESYSTEM TYPE"
28982 msgstr ""
28983
28984 # type: textblock
28985 #: ../tools/virt-make-fs.pl:95
28986 msgid ""
28987 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28988 "libguestfs supports can be used (but I<not> read-only formats like "
28989 "ISO9660).  Here are some of the more common choices:"
28990 msgstr ""
28991
28992 # type: =item
28993 #: ../tools/virt-make-fs.pl:101
28994 msgid "I<ext3>"
28995 msgstr ""
28996
28997 # type: textblock
28998 #: ../tools/virt-make-fs.pl:103
28999 msgid ""
29000 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
29001 "you are not going to use the filesystem in a way that requires the journal, "
29002 "then this is just wasted overhead."
29003 msgstr ""
29004
29005 # type: =item
29006 #: ../tools/virt-make-fs.pl:107
29007 msgid "I<ntfs> or I<vfat>"
29008 msgstr ""
29009
29010 # type: textblock
29011 #: ../tools/virt-make-fs.pl:109
29012 msgid "Useful if exporting data to a Windows guest."
29013 msgstr ""
29014
29015 # type: textblock
29016 #: ../tools/virt-make-fs.pl:111
29017 msgid ""
29018 "I<Note for vfat>: The tar archive or local directory must only contain files "
29019 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
29020 "program running within libguestfs is unable to change the ownership of non-"
29021 "root files, since vfat itself does not support this."
29022 msgstr ""
29023
29024 # type: =item
29025 #: ../tools/virt-make-fs.pl:116
29026 msgid "I<minix>"
29027 msgstr ""
29028
29029 # type: textblock
29030 #: ../tools/virt-make-fs.pl:118
29031 msgid ""
29032 "Lower overhead than C<ext2>, but certain limitations on filename length and "
29033 "total filesystem size."
29034 msgstr ""
29035
29036 # type: verbatim
29037 #: ../tools/virt-make-fs.pl:125
29038 #, no-wrap
29039 msgid ""
29040 " virt-make-fs --type=minix input minixfs.img\n"
29041 "\n"
29042 msgstr ""
29043
29044 # type: =head2
29045 #: ../tools/virt-make-fs.pl:127
29046 msgid "TO PARTITION OR NOT TO PARTITION"
29047 msgstr ""
29048
29049 # type: textblock
29050 #: ../tools/virt-make-fs.pl:129
29051 msgid "Optionally virt-make-fs can add a partition table to the output disk."
29052 msgstr ""
29053
29054 # type: textblock
29055 #: ../tools/virt-make-fs.pl:131
29056 msgid ""
29057 "Adding a partition can make the disk image more compatible with certain "
29058 "virtualized operating systems which don't expect to see a filesystem "
29059 "directly located on a block device (Linux doesn't care and will happily "
29060 "handle both types)."
29061 msgstr ""
29062
29063 # type: textblock
29064 #: ../tools/virt-make-fs.pl:136
29065 msgid ""
29066 "On the other hand, if you have a partition table then the output image is no "
29067 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
29068 "directly on a partitioned disk image.  (However libguestfs tools such as "
29069 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
29070 msgstr ""
29071
29072 # type: textblock
29073 #: ../tools/virt-make-fs.pl:144
29074 msgid "Add an MBR partition:"
29075 msgstr ""
29076
29077 # type: verbatim
29078 #: ../tools/virt-make-fs.pl:146
29079 #, no-wrap
29080 msgid ""
29081 " virt-make-fs --partition -- input disk.img\n"
29082 "\n"
29083 msgstr ""
29084
29085 # type: textblock
29086 #: ../tools/virt-make-fs.pl:148
29087 msgid ""
29088 "If the output disk image could be terabyte-sized or larger, it's better to "
29089 "use an EFI/GPT-compatible partition table:"
29090 msgstr ""
29091
29092 # type: verbatim
29093 #: ../tools/virt-make-fs.pl:151
29094 #, no-wrap
29095 msgid ""
29096 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
29097 "\n"
29098 msgstr ""
29099
29100 # type: textblock
29101 #: ../tools/virt-make-fs.pl:179
29102 msgid "Enable debugging information."
29103 msgstr ""
29104
29105 # type: =item
29106 #: ../tools/virt-make-fs.pl:185
29107 msgid "B<--size=E<lt>NE<gt>>"
29108 msgstr ""
29109
29110 # type: =item
29111 #: ../tools/virt-make-fs.pl:187
29112 msgid "B<--size=+E<lt>NE<gt>>"
29113 msgstr ""
29114
29115 # type: =item
29116 #: ../tools/virt-make-fs.pl:189
29117 msgid "B<-s E<lt>NE<gt>>"
29118 msgstr ""
29119
29120 # type: =item
29121 #: ../tools/virt-make-fs.pl:191
29122 msgid "B<-s +E<lt>NE<gt>>"
29123 msgstr ""
29124
29125 # type: textblock
29126 #: ../tools/virt-make-fs.pl:193
29127 msgid ""
29128 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
29129 msgstr ""
29130
29131 # type: textblock
29132 #: ../tools/virt-make-fs.pl:196
29133 msgid ""
29134 "If this option is I<not> given, then the output image will be just large "
29135 "enough to contain all the files, with not much wasted space."
29136 msgstr ""
29137
29138 # type: textblock
29139 #: ../tools/virt-make-fs.pl:199
29140 msgid ""
29141 "To choose a fixed size output disk, specify an absolute number followed by b/"
29142 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29143 "Petabytes or Exabytes.  This must be large enough to contain all the input "
29144 "files, else you will get an error."
29145 msgstr ""
29146
29147 # type: textblock
29148 #: ../tools/virt-make-fs.pl:204
29149 msgid ""
29150 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
29151 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29152 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
29153 "the input files, and (approximately) an extra 200 MB free space."
29154 msgstr ""
29155
29156 # type: textblock
29157 #: ../tools/virt-make-fs.pl:210
29158 msgid ""
29159 "Note that virt-make-fs estimates free space, and therefore will not produce "
29160 "filesystems containing precisely the free space requested.  (It is much more "
29161 "expensive and time-consuming to produce a filesystem which has precisely the "
29162 "desired free space)."
29163 msgstr ""
29164
29165 # type: =item
29166 #: ../tools/virt-make-fs.pl:219
29167 msgid "B<--format=E<lt>fmtE<gt>>"
29168 msgstr ""
29169
29170 # type: =item
29171 #: ../tools/virt-make-fs.pl:221
29172 msgid "B<-F E<lt>fmtE<gt>>"
29173 msgstr ""
29174
29175 # type: textblock
29176 #: ../tools/virt-make-fs.pl:223
29177 msgid "Choose the output disk image format."
29178 msgstr ""
29179
29180 # type: textblock
29181 #: ../tools/virt-make-fs.pl:225
29182 msgid "The default is C<raw> (raw disk image)."
29183 msgstr ""
29184
29185 # type: textblock
29186 #: ../tools/virt-make-fs.pl:227
29187 msgid ""
29188 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
29189 "that would really make sense here is C<qcow2>."
29190 msgstr ""
29191
29192 # type: =item
29193 #: ../tools/virt-make-fs.pl:234
29194 msgid "B<--type=E<lt>fsE<gt>>"
29195 msgstr ""
29196
29197 # type: =item
29198 #: ../tools/virt-make-fs.pl:236
29199 msgid "B<-t E<lt>fsE<gt>>"
29200 msgstr ""
29201
29202 # type: textblock
29203 #: ../tools/virt-make-fs.pl:238
29204 msgid "Choose the output filesystem type."
29205 msgstr ""
29206
29207 # type: textblock
29208 #: ../tools/virt-make-fs.pl:240
29209 msgid "The default is C<ext2>."
29210 msgstr ""
29211
29212 # type: textblock
29213 #: ../tools/virt-make-fs.pl:242
29214 msgid ""
29215 "Any filesystem which is supported read-write by libguestfs can be used here."
29216 msgstr ""
29217
29218 # type: =item
29219 #: ../tools/virt-make-fs.pl:249
29220 msgid "B<--partition>"
29221 msgstr ""
29222
29223 # type: =item
29224 #: ../tools/virt-make-fs.pl:251
29225 msgid "B<--partition=E<lt>parttypeE<gt>>"
29226 msgstr ""
29227
29228 # type: textblock
29229 #: ../tools/virt-make-fs.pl:253
29230 msgid ""
29231 "If specified, this flag adds an MBR partition table to the output disk image."
29232 msgstr ""
29233
29234 # type: textblock
29235 #: ../tools/virt-make-fs.pl:256
29236 msgid ""
29237 "You can change the partition table type, eg. C<--partition=gpt> for large "
29238 "disks."
29239 msgstr ""
29240
29241 # type: textblock
29242 #: ../tools/virt-make-fs.pl:259
29243 msgid ""
29244 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
29245 "might consider the next parameter to be the partition type.  For example:"
29246 msgstr ""
29247
29248 # type: verbatim
29249 #: ../tools/virt-make-fs.pl:263
29250 #, no-wrap
29251 msgid ""
29252 " virt-make-fs --partition input.tar ...\n"
29253 "\n"
29254 msgstr ""
29255
29256 # type: textblock
29257 #: ../tools/virt-make-fs.pl:265
29258 msgid ""
29259 "would cause virt-make-fs to think you wanted to use a partition type of "
29260 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
29261 "dash) between options and the input file argument:"
29262 msgstr ""
29263
29264 # type: verbatim
29265 #: ../tools/virt-make-fs.pl:269
29266 #, no-wrap
29267 msgid ""
29268 " virt-make-fs --partition -- input.tar ...\n"
29269 "\n"
29270 msgstr ""
29271
29272 # type: textblock
29273 #: ../tools/virt-make-fs.pl:536
29274 msgid ""
29275 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
29276 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
29277 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29278 msgstr ""
29279
29280 # type: verbatim
29281 #: ../tools/virt-make-fs.pl:553
29282 #, no-wrap
29283 msgid ""
29284 " export LIBGUESTFS_DEBUG=1\n"
29285 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29286 "\n"
29287 msgstr ""
29288
29289 # type: textblock
29290 #: ../tools/virt-make-fs.pl:556
29291 msgid ""
29292 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
29293 "redhat.com/>"
29294 msgstr ""
29295
29296 # type: textblock
29297 #: ../tools/virt-list-partitions.pl:32
29298 msgid ""
29299 "virt-list-partitions - List partitions in a virtual machine or disk image"
29300 msgstr ""
29301
29302 # type: verbatim
29303 #: ../tools/virt-list-partitions.pl:36
29304 #, no-wrap
29305 msgid ""
29306 " virt-list-partitions [--options] domname\n"
29307 "\n"
29308 msgstr ""
29309
29310 # type: verbatim
29311 #: ../tools/virt-list-partitions.pl:38
29312 #, no-wrap
29313 msgid ""
29314 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29315 "\n"
29316 msgstr ""
29317
29318 # type: textblock
29319 #: ../tools/virt-list-partitions.pl:45
29320 msgid ""
29321 "C<virt-list-partitions> is a command line tool to list the partitions that "
29322 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29323 "first step to using L<virt-resize(1)>."
29324 msgstr ""
29325
29326 # type: textblock
29327 #: ../tools/virt-list-partitions.pl:50
29328 msgid ""
29329 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
29330 "functionality.  For more complex cases you should look at the L<guestfish(1)"
29331 "> tool."
29332 msgstr ""
29333
29334 # type: =item
29335 #: ../tools/virt-list-partitions.pl:107
29336 msgid "B<-h> | B<--human-readable>"
29337 msgstr ""
29338
29339 # type: textblock
29340 #: ../tools/virt-list-partitions.pl:109
29341 msgid "Show sizes in human-readable form (eg. \"1G\")."
29342 msgstr ""
29343
29344 # type: textblock
29345 #: ../tools/virt-list-partitions.pl:117
29346 msgid ""
29347 "With this option, C<virt-list-partitions> displays the type and size of each "
29348 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
29349 msgstr ""
29350
29351 # type: =item
29352 #: ../tools/virt-list-partitions.pl:124
29353 msgid "B<-t> | B<--total>"
29354 msgstr ""
29355
29356 # type: textblock
29357 #: ../tools/virt-list-partitions.pl:126
29358 msgid ""
29359 "Display the total size of each block device (as a separate row or rows)."
29360 msgstr ""
29361
29362 # type: textblock
29363 #: ../tools/virt-list-partitions.pl:259
29364 msgid ""
29365 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
29366 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
29367 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29368 msgstr ""