8bb62092c03dcca83f662ce5687a88cae66537d8
[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-10 13:42+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 #: ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33
23 #: ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28
24 #: ../tools/virt-tar.pl:29 ../tools/virt-make-fs.pl:33
25 #: ../tools/virt-list-partitions.pl:28
26 msgid "utf8"
27 msgstr ""
28
29 # type: =head1
30 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
31 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
32 #: ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35
33 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
34 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
35 #: ../tools/virt-list-partitions.pl:30
36 msgid "NAME"
37 msgstr "名前"
38
39 # type: textblock
40 #: ../src/guestfs.pod:5
41 msgid "guestfs - Library for accessing and modifying virtual machine images"
42 msgstr ""
43
44 # type: =head1
45 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
46 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
47 #: ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39
48 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
49 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
50 #: ../tools/virt-list-partitions.pl:34
51 msgid "SYNOPSIS"
52 msgstr ""
53
54 # type: verbatim
55 #: ../src/guestfs.pod:9
56 #, no-wrap
57 msgid ""
58 " #include <guestfs.h>\n"
59 " \n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:11
64 #, no-wrap
65 msgid ""
66 " guestfs_h *g = guestfs_create ();\n"
67 " guestfs_add_drive (g, \"guest.img\");\n"
68 " guestfs_launch (g);\n"
69 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
70 " guestfs_touch (g, \"/hello\");\n"
71 " guestfs_umount (g, \"/\");\n"
72 " guestfs_close (g);\n"
73 "\n"
74 msgstr ""
75
76 # type: verbatim
77 #: ../src/guestfs.pod:19
78 #, no-wrap
79 msgid ""
80 " cc prog.c -o prog -lguestfs\n"
81 "or:\n"
82 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
83 "\n"
84 msgstr ""
85
86 # type: =head1
87 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
88 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
89 #: ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63
90 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
91 #: ../tools/virt-tar.pl:72 ../tools/virt-make-fs.pl:47
92 #: ../tools/virt-list-partitions.pl:40
93 msgid "DESCRIPTION"
94 msgstr ""
95
96 # type: textblock
97 #: ../src/guestfs.pod:25
98 msgid ""
99 "Libguestfs is a library for accessing and modifying guest disk images.  "
100 "Amongst the things this is good for: making batch configuration changes to "
101 "guests, getting disk used/free statistics (see also: virt-df), migrating "
102 "between virtualization systems (see also: virt-p2v), performing partial "
103 "backups, performing partial guest clones, cloning guests and changing "
104 "registry/UUID/hostname info, and much else besides."
105 msgstr ""
106
107 # type: textblock
108 #: ../src/guestfs.pod:33
109 msgid ""
110 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
111 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
112 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
113 "qcow2, vmdk."
114 msgstr ""
115
116 # type: textblock
117 #: ../src/guestfs.pod:38
118 msgid ""
119 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
120 "what filesystem is in each LV, etc.).  It can also run commands in the "
121 "context of the guest.  Also you can access filesystems over FUSE."
122 msgstr ""
123
124 # type: textblock
125 #: ../src/guestfs.pod:43
126 msgid ""
127 "Libguestfs is a library that can be linked with C and C++ management "
128 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
129 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
130 "line."
131 msgstr ""
132
133 # type: textblock
134 #: ../src/guestfs.pod:48
135 msgid ""
136 "You don't need to be root to use libguestfs, although obviously you do need "
137 "enough permissions to access the disk images."
138 msgstr ""
139
140 # type: textblock
141 #: ../src/guestfs.pod:51
142 msgid ""
143 "Libguestfs is a large API because it can do many things.  For a gentle "
144 "introduction, please read the L</API OVERVIEW> section next."
145 msgstr ""
146
147 # type: textblock
148 #: ../src/guestfs.pod:54
149 msgid ""
150 "There are also some example programs in the L<guestfs-examples(3)> manual "
151 "page."
152 msgstr ""
153
154 # type: =head1
155 #: ../src/guestfs.pod:57
156 msgid "API OVERVIEW"
157 msgstr ""
158
159 # type: textblock
160 #: ../src/guestfs.pod:59
161 msgid ""
162 "This section provides a gentler overview of the libguestfs API.  We also try "
163 "to group API calls together, where that may not be obvious from reading "
164 "about the individual calls in the main section of this manual."
165 msgstr ""
166
167 # type: =head2
168 #: ../src/guestfs.pod:64
169 msgid "HANDLES"
170 msgstr ""
171
172 # type: textblock
173 #: ../src/guestfs.pod:66
174 msgid ""
175 "Before you can use libguestfs calls, you have to create a handle.  Then you "
176 "must add at least one disk image to the handle, followed by launching the "
177 "handle, then performing whatever operations you want, and finally closing "
178 "the handle.  By convention we use the single letter C<g> for the name of the "
179 "handle variable, although of course you can use any name you want."
180 msgstr ""
181
182 # type: textblock
183 #: ../src/guestfs.pod:73
184 msgid "The general structure of all libguestfs-using programs looks like this:"
185 msgstr ""
186
187 # type: verbatim
188 #: ../src/guestfs.pod:76
189 #, no-wrap
190 msgid ""
191 " guestfs_h *g = guestfs_create ();\n"
192 " \n"
193 msgstr ""
194
195 # type: verbatim
196 #: ../src/guestfs.pod:78
197 #, no-wrap
198 msgid ""
199 " /* Call guestfs_add_drive additional times if there are\n"
200 "  * multiple disk images.\n"
201 "  */\n"
202 " guestfs_add_drive (g, \"guest.img\");\n"
203 " \n"
204 msgstr ""
205
206 # type: verbatim
207 #: ../src/guestfs.pod:83
208 #, no-wrap
209 msgid ""
210 " /* Most manipulation calls won't work until you've launched\n"
211 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
212 "  * and _before_ other commands.\n"
213 "  */\n"
214 " guestfs_launch (g);\n"
215 " \n"
216 msgstr ""
217
218 # type: verbatim
219 #: ../src/guestfs.pod:89
220 #, no-wrap
221 msgid ""
222 " /* Now you can examine what partitions, LVs etc are available.\n"
223 "  */\n"
224 " char **partitions = guestfs_list_partitions (g);\n"
225 " char **logvols = guestfs_lvs (g);\n"
226 " \n"
227 msgstr ""
228
229 # type: verbatim
230 #: ../src/guestfs.pod:94
231 #, no-wrap
232 msgid ""
233 " /* To access a filesystem in the image, you must mount it.\n"
234 "  */\n"
235 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
236 " \n"
237 msgstr ""
238
239 # type: verbatim
240 #: ../src/guestfs.pod:98
241 #, no-wrap
242 msgid ""
243 " /* Now you can perform filesystem actions on the guest\n"
244 "  * disk image.\n"
245 "  */\n"
246 " guestfs_touch (g, \"/hello\");\n"
247 "\n"
248 msgstr ""
249
250 # type: verbatim
251 #: ../src/guestfs.pod:103
252 #, no-wrap
253 msgid ""
254 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
255 "  * it is done automatically when you close the handle.  See\n"
256 "  * discussion of autosync in this page.\n"
257 "  */\n"
258 " guestfs_sync (g);\n"
259 " \n"
260 msgstr ""
261
262 # type: verbatim
263 #: ../src/guestfs.pod:109
264 #, no-wrap
265 msgid ""
266 " /* Close the handle 'g'. */\n"
267 " guestfs_close (g);\n"
268 "\n"
269 msgstr ""
270
271 # type: textblock
272 #: ../src/guestfs.pod:112
273 msgid ""
274 "The code above doesn't include any error checking.  In real code you should "
275 "check return values carefully for errors.  In general all functions that "
276 "return integers return C<-1> on error, and all functions that return "
277 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
278 "how to handle errors, and consult the documentation for each function call "
279 "below to see precisely how they return error indications.  See L<guestfs-"
280 "examples(3)> for fully worked examples."
281 msgstr ""
282
283 # type: =head2
284 #: ../src/guestfs.pod:121
285 msgid "DISK IMAGES"
286 msgstr ""
287
288 # type: textblock
289 #: ../src/guestfs.pod:123
290 msgid ""
291 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
292 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
293 "actual block device, or simply an empty file of zeroes that you have created "
294 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
295 "of these."
296 msgstr ""
297
298 # type: textblock
299 #: ../src/guestfs.pod:129
300 msgid ""
301 "The call you should use in modern code for adding drives is L</"
302 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
303 "specifying that the format is raw, do:"
304 msgstr ""
305
306 # type: verbatim
307 #: ../src/guestfs.pod:133
308 #, no-wrap
309 msgid ""
310 " guestfs_add_drive_opts (g, filename,\n"
311 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
312 "                         -1);\n"
313 "\n"
314 msgstr ""
315
316 # type: textblock
317 #: ../src/guestfs.pod:137
318 msgid "You can add a disk read-only using:"
319 msgstr ""
320
321 # type: verbatim
322 #: ../src/guestfs.pod:139
323 #, no-wrap
324 msgid ""
325 " guestfs_add_drive_opts (g, filename,\n"
326 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
327 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
328 "                         -1);\n"
329 "\n"
330 msgstr ""
331
332 # type: textblock
333 #: ../src/guestfs.pod:144
334 msgid ""
335 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
336 "libguestfs won't modify the file."
337 msgstr ""
338
339 # type: textblock
340 #: ../src/guestfs.pod:147
341 msgid ""
342 "Be extremely cautious if the disk image is in use, eg. if it is being used "
343 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
344 "corruption, but adding it read-only is safe."
345 msgstr ""
346
347 # type: textblock
348 #: ../src/guestfs.pod:151
349 msgid ""
350 "You must add at least one disk image, and you may add multiple disk images.  "
351 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
352 "first one you added), C</dev/sdb> (for the second one you added), etc."
353 msgstr ""
354
355 # type: textblock
356 #: ../src/guestfs.pod:156
357 msgid ""
358 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
359 "can call L</guestfs_list_devices> to get a list of the device names, in the "
360 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
361 msgstr ""
362
363 # type: =head2
364 #: ../src/guestfs.pod:161
365 msgid "MOUNTING"
366 msgstr ""
367
368 # type: textblock
369 #: ../src/guestfs.pod:163
370 msgid ""
371 "Before you can read or write files, create directories and so on in a disk "
372 "image that contains filesystems, you have to mount those filesystems using "
373 "L</guestfs_mount>.  If you already know that a disk image contains (for "
374 "example) one partition with a filesystem on that partition, then you can "
375 "mount it directly:"
376 msgstr ""
377
378 # type: verbatim
379 #: ../src/guestfs.pod:169
380 #, no-wrap
381 msgid ""
382 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
383 "\n"
384 msgstr ""
385
386 # type: textblock
387 #: ../src/guestfs.pod:171
388 msgid ""
389 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
390 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
391 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
392 msgstr ""
393
394 # type: textblock
395 #: ../src/guestfs.pod:175
396 msgid ""
397 "If you are given a disk image and you don't know what it contains then you "
398 "have to find out.  Libguestfs can do that too: use L</"
399 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
400 "LVs, and either try mounting each to see what is mountable, or else examine "
401 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
402 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
403 "you might find it easier to look at higher level programs built on top of "
404 "libguestfs, in particular L<virt-inspector(1)>."
405 msgstr ""
406
407 # type: textblock
408 #: ../src/guestfs.pod:185
409 msgid ""
410 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
411 "several other variations of the C<guestfs_mount_*> call."
412 msgstr ""
413
414 # type: =head2
415 #: ../src/guestfs.pod:188
416 msgid "FILESYSTEM ACCESS AND MODIFICATION"
417 msgstr ""
418
419 # type: textblock
420 #: ../src/guestfs.pod:190
421 msgid ""
422 "The majority of the libguestfs API consists of fairly low-level calls for "
423 "accessing and modifying the files, directories, symlinks etc on mounted "
424 "filesystems.  There are over a hundred such calls which you can find listed "
425 "in detail below in this man page, and we don't even pretend to cover them "
426 "all in this overview."
427 msgstr ""
428
429 # type: textblock
430 #: ../src/guestfs.pod:196
431 msgid ""
432 "Specify filenames as full paths, starting with C<\"/\"> and including the "
433 "mount point."
434 msgstr ""
435
436 # type: textblock
437 #: ../src/guestfs.pod:199
438 msgid ""
439 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
440 "the file called C<\"etc/passwd\"> then you could do:"
441 msgstr ""
442
443 # type: verbatim
444 #: ../src/guestfs.pod:202
445 #, no-wrap
446 msgid ""
447 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
448 "\n"
449 msgstr ""
450
451 # type: textblock
452 #: ../src/guestfs.pod:204
453 msgid ""
454 "This would return C<data> as a newly allocated buffer containing the full "
455 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
456 "or C<NULL> if there was an error."
457 msgstr ""
458
459 # type: textblock
460 #: ../src/guestfs.pod:208
461 msgid ""
462 "As another example, to create a top-level directory on that filesystem "
463 "called C<\"var\"> you would do:"
464 msgstr ""
465
466 # type: verbatim
467 #: ../src/guestfs.pod:211
468 #, no-wrap
469 msgid ""
470 " guestfs_mkdir (g, \"/var\");\n"
471 "\n"
472 msgstr ""
473
474 # type: textblock
475 #: ../src/guestfs.pod:213
476 msgid "To create a symlink you could do:"
477 msgstr ""
478
479 # type: verbatim
480 #: ../src/guestfs.pod:215
481 #, no-wrap
482 msgid ""
483 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
484 "               \"/etc/rc3.d/S30portmap\");\n"
485 "\n"
486 msgstr ""
487
488 # type: textblock
489 #: ../src/guestfs.pod:218
490 msgid ""
491 "Libguestfs will reject attempts to use relative paths and there is no "
492 "concept of a current working directory."
493 msgstr ""
494
495 # type: textblock
496 #: ../src/guestfs.pod:221
497 msgid ""
498 "Libguestfs can return errors in many situations: for example if the "
499 "filesystem isn't writable, or if a file or directory that you requested "
500 "doesn't exist.  If you are using the C API (documented here)  you have to "
501 "check for those error conditions after each call.  (Other language bindings "
502 "turn these errors into exceptions)."
503 msgstr ""
504
505 # type: textblock
506 #: ../src/guestfs.pod:227
507 msgid ""
508 "File writes are affected by the per-handle umask, set by calling L</"
509 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
510 msgstr ""
511
512 # type: =head2
513 #: ../src/guestfs.pod:230
514 msgid "PARTITIONING"
515 msgstr ""
516
517 # type: textblock
518 #: ../src/guestfs.pod:232
519 msgid ""
520 "Libguestfs contains API calls to read, create and modify partition tables on "
521 "disk images."
522 msgstr ""
523
524 # type: textblock
525 #: ../src/guestfs.pod:235
526 msgid ""
527 "In the common case where you want to create a single partition covering the "
528 "whole disk, you should use the L</guestfs_part_disk> call:"
529 msgstr ""
530
531 # type: verbatim
532 #: ../src/guestfs.pod:239
533 #, no-wrap
534 msgid ""
535 " const char *parttype = \"mbr\";\n"
536 " if (disk_is_larger_than_2TB)\n"
537 "   parttype = \"gpt\";\n"
538 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
539 "\n"
540 msgstr ""
541
542 # type: textblock
543 #: ../src/guestfs.pod:244
544 msgid ""
545 "Obviously this effectively wipes anything that was on that disk image before."
546 msgstr ""
547
548 # type: =head2
549 #: ../src/guestfs.pod:247
550 msgid "LVM2"
551 msgstr ""
552
553 # type: textblock
554 #: ../src/guestfs.pod:249
555 msgid ""
556 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
557 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
558 "you familiarize yourself with the concepts of physical volumes, volume "
559 "groups and logical volumes."
560 msgstr ""
561
562 # type: textblock
563 #: ../src/guestfs.pod:254
564 msgid ""
565 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
566 "tldp.org/HOWTO/LVM-HOWTO/>."
567 msgstr ""
568
569 # type: =head2
570 #: ../src/guestfs.pod:257
571 msgid "DOWNLOADING"
572 msgstr ""
573
574 # type: textblock
575 #: ../src/guestfs.pod:259
576 msgid ""
577 "Use L</guestfs_cat> to download small, text only files.  This call is "
578 "limited to files which are less than 2 MB and which cannot contain any ASCII "
579 "NUL (C<\\0>) characters.  However it has a very simple to use API."
580 msgstr ""
581
582 # type: textblock
583 #: ../src/guestfs.pod:264
584 msgid ""
585 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
586 "bit data, since it returns a (pointer, size) pair.  However it is still "
587 "limited to \"small\" files, less than 2 MB."
588 msgstr ""
589
590 # type: textblock
591 #: ../src/guestfs.pod:268
592 msgid ""
593 "L</guestfs_download> can be used to download any file, with no limits on "
594 "content or size (even files larger than 4 GB)."
595 msgstr ""
596
597 # type: textblock
598 #: ../src/guestfs.pod:271
599 msgid ""
600 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
601 msgstr ""
602
603 # type: =head2
604 #: ../src/guestfs.pod:274
605 msgid "UPLOADING"
606 msgstr ""
607
608 # type: textblock
609 #: ../src/guestfs.pod:276
610 msgid ""
611 "It's often the case that you want to write a file or files to the disk image."
612 msgstr ""
613
614 # type: textblock
615 #: ../src/guestfs.pod:279
616 msgid ""
617 "To write a small file with fixed content, use L</guestfs_write>.  To create "
618 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
619 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
620 "of other functions for creating test files, for example L</guestfs_fill> and "
621 "L</guestfs_fill_pattern>."
622 msgstr ""
623
624 # type: textblock
625 #: ../src/guestfs.pod:285
626 msgid ""
627 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
628 "file content or size (even files larger than 4 GB)."
629 msgstr ""
630
631 # type: textblock
632 #: ../src/guestfs.pod:288
633 msgid ""
634 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
635 msgstr ""
636
637 # type: textblock
638 #: ../src/guestfs.pod:290
639 msgid ""
640 "However the fastest way to upload I<large numbers of arbitrary files> is to "
641 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
642 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
643 "in a predictable way (eg. adding it last after all other drives) then you "
644 "can get the device name from L</guestfs_list_devices> and mount it directly "
645 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
646 "portable between kernel versions, and they don't support labels or UUIDs.  "
647 "If you want to pre-build an image or you need to mount it using a label or "
648 "UUID, use an ISO image instead."
649 msgstr ""
650
651 # type: =head2
652 #: ../src/guestfs.pod:301
653 msgid "COPYING"
654 msgstr ""
655
656 # type: textblock
657 #: ../src/guestfs.pod:303
658 msgid ""
659 "There are various different commands for copying between files and devices "
660 "and in and out of the guest filesystem.  These are summarised in the table "
661 "below."
662 msgstr ""
663
664 # type: =item
665 #: ../src/guestfs.pod:309
666 msgid "B<file> to B<file>"
667 msgstr ""
668
669 # type: textblock
670 #: ../src/guestfs.pod:311
671 msgid ""
672 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
673 "directories recursively."
674 msgstr ""
675
676 # type: =item
677 #: ../src/guestfs.pod:314
678 msgid "B<file or device> to B<file or device>"
679 msgstr ""
680
681 # type: textblock
682 #: ../src/guestfs.pod:316
683 msgid ""
684 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
685 "devices in the guest."
686 msgstr ""
687
688 # type: textblock
689 #: ../src/guestfs.pod:319
690 msgid "Example: duplicate the contents of an LV:"
691 msgstr ""
692
693 # type: verbatim
694 #: ../src/guestfs.pod:321
695 #, no-wrap
696 msgid ""
697 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
698 "\n"
699 msgstr ""
700
701 # type: textblock
702 #: ../src/guestfs.pod:323
703 msgid ""
704 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
705 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
706 "guestfs_copy_size>."
707 msgstr ""
708
709 # type: =item
710 #: ../src/guestfs.pod:327
711 msgid "B<file on the host> to B<file or device>"
712 msgstr ""
713
714 # type: textblock
715 #: ../src/guestfs.pod:329
716 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
717 msgstr ""
718
719 # type: =item
720 #: ../src/guestfs.pod:331
721 msgid "B<file or device> to B<file on the host>"
722 msgstr ""
723
724 # type: textblock
725 #: ../src/guestfs.pod:333
726 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
727 msgstr ""
728
729 # type: =head2
730 #: ../src/guestfs.pod:337
731 msgid "LISTING FILES"
732 msgstr ""
733
734 # type: textblock
735 #: ../src/guestfs.pod:339
736 msgid ""
737 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
738 "L<guestfish(1)>-equivalent command C<ll>)."
739 msgstr ""
740
741 # type: textblock
742 #: ../src/guestfs.pod:342
743 msgid ""
744 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
745 "programs, as a flat list of strings."
746 msgstr ""
747
748 # type: textblock
749 #: ../src/guestfs.pod:345
750 msgid ""
751 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
752 "directory, plus additional information about each one.  It is more "
753 "equivalent to using the L<readdir(3)> call on a local filesystem."
754 msgstr ""
755
756 # type: textblock
757 #: ../src/guestfs.pod:349
758 msgid ""
759 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
760 msgstr ""
761
762 # type: =head2
763 #: ../src/guestfs.pod:352
764 msgid "RUNNING COMMANDS"
765 msgstr ""
766
767 # type: textblock
768 #: ../src/guestfs.pod:354
769 msgid ""
770 "Although libguestfs is primarily an API for manipulating files inside guest "
771 "images, we also provide some limited facilities for running commands inside "
772 "guests."
773 msgstr ""
774
775 # type: textblock
776 #: ../src/guestfs.pod:358
777 msgid "There are many limitations to this:"
778 msgstr ""
779
780 # type: =item
781 #: ../src/guestfs.pod:362 ../src/guestfs.pod:367 ../src/guestfs.pod:372
782 #: ../src/guestfs.pod:376 ../src/guestfs.pod:381 ../src/guestfs.pod:385
783 #: ../src/guestfs.pod:390 ../src/guestfs.pod:395 ../src/guestfs.pod:954
784 #: ../src/guestfs.pod:958 ../src/guestfs.pod:962 ../src/guestfs.pod:967
785 #: ../src/guestfs.pod:975 ../src/guestfs.pod:994 ../src/guestfs.pod:1002
786 #: ../src/guestfs.pod:1024 ../src/guestfs.pod:1028 ../src/guestfs.pod:1032
787 #: ../src/guestfs.pod:1036 ../src/guestfs.pod:1040 ../src/guestfs.pod:1044
788 #: ../src/guestfs.pod:1526 ../src/guestfs.pod:1531 ../src/guestfs.pod:1535
789 #: ../src/guestfs.pod:1645 ../src/guestfs.pod:1650 ../src/guestfs.pod:1654
790 #: ../src/guestfs.pod:2006 ../src/guestfs.pod:2012 ../src/guestfs.pod:2017
791 #: ../src/guestfs.pod:2023 ../src/guestfs.pod:2135 ../src/guestfs.pod:2139
792 #: ../src/guestfs.pod:2143 ../src/guestfs.pod:2147
793 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
794 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:579
795 #: ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:593
796 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:1593
797 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:1601
798 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1613
799 #: ../src/guestfs-actions.pod:1617 ../src/guestfs-actions.pod:1627
800 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1635
801 #: ../src/guestfs-actions.pod:1773 ../src/guestfs-actions.pod:1777
802 #: ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1787
803 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:1852
804 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish.pod:377
805 #: ../fish/guestfish.pod:381 ../fish/guestfish.pod:385
806 #: ../fish/guestfish.pod:389 ../fish/guestfish-actions.pod:13
807 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
808 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
809 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
810 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
811 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
812 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
813 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
814 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
815 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
816 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
817 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
818 #: ../tools/virt-resize.pl:345 ../tools/virt-resize.pl:350
819 #: ../tools/virt-resize.pl:360
820 msgid "*"
821 msgstr ""
822
823 # type: textblock
824 #: ../src/guestfs.pod:364
825 msgid ""
826 "The kernel version that the command runs under will be different from what "
827 "it expects."
828 msgstr ""
829
830 # type: textblock
831 #: ../src/guestfs.pod:369
832 msgid ""
833 "If the command needs to communicate with daemons, then most likely they "
834 "won't be running."
835 msgstr ""
836
837 # type: textblock
838 #: ../src/guestfs.pod:374
839 msgid "The command will be running in limited memory."
840 msgstr ""
841
842 # type: textblock
843 #: ../src/guestfs.pod:378
844 msgid ""
845 "The network may not be available unless you enable it (see L</"
846 "guestfs_set_network>)."
847 msgstr ""
848
849 # type: textblock
850 #: ../src/guestfs.pod:383
851 msgid "Only supports Linux guests (not Windows, BSD, etc)."
852 msgstr ""
853
854 # type: textblock
855 #: ../src/guestfs.pod:387
856 msgid ""
857 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
858 msgstr ""
859
860 # type: textblock
861 #: ../src/guestfs.pod:392
862 msgid ""
863 "For SELinux guests, you may need to enable SELinux and load policy first.  "
864 "See L</SELINUX> in this manpage."
865 msgstr ""
866
867 # type: textblock
868 #: ../src/guestfs.pod:397
869 msgid ""
870 "I<Security:> It is not safe to run commands from untrusted, possibly "
871 "malicious guests.  These commands may attempt to exploit your program by "
872 "sending unexpected output.  They could also try to exploit the Linux kernel "
873 "or qemu provided by the libguestfs appliance.  They could use the network "
874 "provided by the libguestfs appliance to bypass ordinary network partitions "
875 "and firewalls.  They could use the elevated privileges or different SELinux "
876 "context of your program to their advantage."
877 msgstr ""
878
879 # type: textblock
880 #: ../src/guestfs.pod:406
881 msgid ""
882 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
883 "(a script which runs when the guest next boots normally), and to have this "
884 "script run the commands you want in the normal context of the running guest, "
885 "network security and so on.  For information about other security issues, "
886 "see L</SECURITY>."
887 msgstr ""
888
889 # type: textblock
890 #: ../src/guestfs.pod:414
891 msgid ""
892 "The two main API calls to run commands are L</guestfs_command> and L</"
893 "guestfs_sh> (there are also variations)."
894 msgstr ""
895
896 # type: textblock
897 #: ../src/guestfs.pod:417
898 msgid ""
899 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
900 "shell globs, redirections, etc will work."
901 msgstr ""
902
903 # type: =head2
904 #: ../src/guestfs.pod:420
905 msgid "CONFIGURATION FILES"
906 msgstr ""
907
908 # type: textblock
909 #: ../src/guestfs.pod:422
910 msgid ""
911 "To read and write configuration files in Linux guest filesystems, we "
912 "strongly recommend using Augeas.  For example, Augeas understands how to "
913 "read and write, say, a Linux shadow password file or X.org configuration "
914 "file, and so avoids you having to write that code."
915 msgstr ""
916
917 # type: textblock
918 #: ../src/guestfs.pod:427
919 msgid ""
920 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
921 "document Augeas itself here because there is excellent documentation on the "
922 "L<http://augeas.net/> website."
923 msgstr ""
924
925 # type: textblock
926 #: ../src/guestfs.pod:431
927 msgid ""
928 "If you don't want to use Augeas (you fool!) then try calling L</"
929 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
930 "over."
931 msgstr ""
932
933 # type: =head2
934 #: ../src/guestfs.pod:435
935 msgid "SELINUX"
936 msgstr ""
937
938 # type: textblock
939 #: ../src/guestfs.pod:437
940 msgid ""
941 "We support SELinux guests.  To ensure that labeling happens correctly in "
942 "SELinux guests, you need to enable SELinux and load the guest's policy:"
943 msgstr ""
944
945 # type: =item
946 #: ../src/guestfs.pod:443 ../src/guestfs.pod:1147 ../src/guestfs.pod:1278
947 msgid "1."
948 msgstr ""
949
950 # type: textblock
951 #: ../src/guestfs.pod:445
952 msgid "Before launching, do:"
953 msgstr ""
954
955 # type: verbatim
956 #: ../src/guestfs.pod:447
957 #, no-wrap
958 msgid ""
959 " guestfs_set_selinux (g, 1);\n"
960 "\n"
961 msgstr ""
962
963 # type: =item
964 #: ../src/guestfs.pod:449 ../src/guestfs.pod:1151 ../src/guestfs.pod:1282
965 msgid "2."
966 msgstr ""
967
968 # type: textblock
969 #: ../src/guestfs.pod:451
970 msgid ""
971 "After mounting the guest's filesystem(s), load the policy.  This is best "
972 "done by running the L<load_policy(8)> command in the guest itself:"
973 msgstr ""
974
975 # type: verbatim
976 #: ../src/guestfs.pod:455
977 #, no-wrap
978 msgid ""
979 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
980 "\n"
981 msgstr ""
982
983 # type: textblock
984 #: ../src/guestfs.pod:457
985 msgid ""
986 "(Older versions of C<load_policy> require you to specify the name of the "
987 "policy file)."
988 msgstr ""
989
990 # type: =item
991 #: ../src/guestfs.pod:460 ../src/guestfs.pod:1288
992 msgid "3."
993 msgstr ""
994
995 # type: textblock
996 #: ../src/guestfs.pod:462
997 msgid ""
998 "Optionally, set the security context for the API.  The correct security "
999 "context to use can only be known by inspecting the guest.  As an example:"
1000 msgstr ""
1001
1002 # type: verbatim
1003 #: ../src/guestfs.pod:466
1004 #, no-wrap
1005 msgid ""
1006 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1007 "\n"
1008 msgstr ""
1009
1010 # type: textblock
1011 #: ../src/guestfs.pod:470
1012 msgid "This will work for running commands and editing existing files."
1013 msgstr ""
1014
1015 # type: textblock
1016 #: ../src/guestfs.pod:472
1017 msgid ""
1018 "When new files are created, you may need to label them explicitly, for "
1019 "example by running the external command C<restorecon pathname>."
1020 msgstr ""
1021
1022 # type: =head2
1023 #: ../src/guestfs.pod:476
1024 msgid "UMASK"
1025 msgstr ""
1026
1027 # type: textblock
1028 #: ../src/guestfs.pod:478
1029 msgid ""
1030 "Certain calls are affected by the current file mode creation mask (the "
1031 "\"umask\").  In particular ones which create files or directories, such as "
1032 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1033 "either the default mode that the file is created with or modifies the mode "
1034 "that you supply."
1035 msgstr ""
1036
1037 # type: textblock
1038 #: ../src/guestfs.pod:484
1039 msgid ""
1040 "The default umask is C<022>, so files are created with modes such as C<0644> "
1041 "and directories with C<0755>."
1042 msgstr ""
1043
1044 # type: textblock
1045 #: ../src/guestfs.pod:487
1046 msgid ""
1047 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1048 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1049 "guestfs_chmod> after creating each file or directory."
1050 msgstr ""
1051
1052 # type: textblock
1053 #: ../src/guestfs.pod:491
1054 msgid "For more information about umask, see L<umask(2)>."
1055 msgstr ""
1056
1057 # type: =head1
1058 #: ../src/guestfs.pod:493 ../fish/guestfish.pod:670
1059 msgid "ENCRYPTED DISKS"
1060 msgstr ""
1061
1062 # type: textblock
1063 #: ../src/guestfs.pod:495
1064 msgid ""
1065 "Libguestfs allows you to access Linux guests which have been encrypted using "
1066 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1067 "standard.  This includes nearly all whole disk encryption systems used by "
1068 "modern Linux guests."
1069 msgstr ""
1070
1071 # type: textblock
1072 #: ../src/guestfs.pod:501
1073 msgid ""
1074 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1075 "returns the string C<crypto_LUKS>)."
1076 msgstr ""
1077
1078 # type: textblock
1079 #: ../src/guestfs.pod:504
1080 msgid ""
1081 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1082 "will require the passphrase!"
1083 msgstr ""
1084
1085 # type: textblock
1086 #: ../src/guestfs.pod:507
1087 msgid ""
1088 "Opening a LUKS device creates a new device mapper device called C</dev/"
1089 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1090 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1091 "from and encrypted to the underlying block device respectively."
1092 msgstr ""
1093
1094 # type: textblock
1095 #: ../src/guestfs.pod:513
1096 msgid ""
1097 "LVM volume groups on the device can be made visible by calling L</"
1098 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1099 "(s) can now be mounted in the usual way."
1100 msgstr ""
1101
1102 # type: textblock
1103 #: ../src/guestfs.pod:517
1104 msgid ""
1105 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1106 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1107 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1108 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1109 "underlying encrypted block device)."
1110 msgstr ""
1111
1112 # type: =head2
1113 #: ../src/guestfs.pod:524
1114 msgid "INSPECTION"
1115 msgstr ""
1116
1117 # type: textblock
1118 #: ../src/guestfs.pod:526
1119 msgid ""
1120 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1121 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1122 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1123 "frequently used part of this library has been rewritten in C and moved into "
1124 "the core code)."
1125 msgstr ""
1126
1127 # type: textblock
1128 #: ../src/guestfs.pod:532
1129 msgid ""
1130 "Add all disks belonging to the unknown virtual machine and call L</"
1131 "guestfs_launch> in the usual way."
1132 msgstr ""
1133
1134 # type: textblock
1135 #: ../src/guestfs.pod:535
1136 msgid ""
1137 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1138 "and certain heuristics, and returns a list of operating systems that were "
1139 "found.  An empty list means none were found.  A single element is the root "
1140 "filesystem of the operating system.  For dual- or multi-boot guests, "
1141 "multiple roots can be returned, each one corresponding to a separate "
1142 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1143 "world of virtualization, but since this scenario can happen, we have built "
1144 "libguestfs to deal with it.)"
1145 msgstr ""
1146
1147 # type: textblock
1148 #: ../src/guestfs.pod:544
1149 msgid ""
1150 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1151 "to get additional details about that operating system.  For example, call L</"
1152 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1153 "Windows and Linux-based operating systems respectively."
1154 msgstr ""
1155
1156 # type: textblock
1157 #: ../src/guestfs.pod:550
1158 msgid ""
1159 "Un*x-like and Linux-based operating systems usually consist of several "
1160 "filesystems which are mounted at boot time (for example, a separate boot "
1161 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1162 "filesystems correspond to mount points.  Call "
1163 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1164 "hash table like this example:"
1165 msgstr ""
1166
1167 # type: verbatim
1168 #: ../src/guestfs.pod:557
1169 #, no-wrap
1170 msgid ""
1171 " /boot => /dev/sda1\n"
1172 " /     => /dev/vg_guest/lv_root\n"
1173 " /usr  => /dev/vg_guest/lv_usr\n"
1174 "\n"
1175 msgstr ""
1176
1177 # type: textblock
1178 #: ../src/guestfs.pod:561
1179 msgid ""
1180 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1181 "filesystems as suggested."
1182 msgstr ""
1183
1184 # type: textblock
1185 #: ../src/guestfs.pod:564
1186 msgid ""
1187 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1188 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1189 msgstr ""
1190
1191 # type: textblock
1192 #: ../src/guestfs.pod:568
1193 msgid ""
1194 "Inspection currently only works for some common operating systems.  "
1195 "Contributors are welcome to send patches for other operating systems that we "
1196 "currently cannot detect."
1197 msgstr ""
1198
1199 # type: textblock
1200 #: ../src/guestfs.pod:572
1201 msgid ""
1202 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1203 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1204 "encrypted devices."
1205 msgstr ""
1206
1207 # type: textblock
1208 #: ../src/guestfs.pod:576
1209 msgid ""
1210 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1211 "inspection and caches the results in the guest handle.  Subsequent calls to "
1212 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1213 "read the disks.  If you change the content of the guest disks, you can redo "
1214 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1215 "guestfs_inspect_list_applications> works a little differently from the other "
1216 "calls and does read the disks.  See documentation for that function for "
1217 "details)."
1218 msgstr ""
1219
1220 # type: =head2
1221 #: ../src/guestfs.pod:585
1222 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1223 msgstr ""
1224
1225 # type: textblock
1226 #: ../src/guestfs.pod:587
1227 msgid ""
1228 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1229 "ntfs-3g.org/> driver."
1230 msgstr ""
1231
1232 # type: textblock
1233 #: ../src/guestfs.pod:590
1234 msgid ""
1235 "DOS and Windows still use drive letters, and the filesystems are always "
1236 "treated as case insensitive by Windows itself, and therefore you might find "
1237 "a Windows configuration file referring to a path like C<c:\\windows"
1238 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1239 "might be referred to as C</WINDOWS/System32>."
1240 msgstr ""
1241
1242 # type: textblock
1243 #: ../src/guestfs.pod:596
1244 msgid ""
1245 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1246 "libguestfs to read the appropriate Windows Registry and configuration files, "
1247 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1248 "inspector(1)>)."
1249 msgstr ""
1250
1251 # type: textblock
1252 #: ../src/guestfs.pod:601
1253 msgid ""
1254 "Replacing backslash characters with forward slash characters is also outside "
1255 "the scope of libguestfs, but something that you can easily do."
1256 msgstr ""
1257
1258 # type: textblock
1259 #: ../src/guestfs.pod:604
1260 msgid ""
1261 "Where we can help is in resolving the case insensitivity of paths.  For "
1262 "this, call L</guestfs_case_sensitive_path>."
1263 msgstr ""
1264
1265 # type: textblock
1266 #: ../src/guestfs.pod:607
1267 msgid ""
1268 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1269 "files, through the library C<hivex> which is part of the libguestfs project "
1270 "although ships as a separate tarball.  You have to locate and download the "
1271 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1272 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1273 "reg(1)> for more help on this issue."
1274 msgstr ""
1275
1276 # type: =head2
1277 #: ../src/guestfs.pod:615
1278 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1279 msgstr ""
1280
1281 # type: textblock
1282 #: ../src/guestfs.pod:617
1283 msgid ""
1284 "Although we don't want to discourage you from using the C API, we will "
1285 "mention here that the same API is also available in other languages."
1286 msgstr ""
1287
1288 # type: textblock
1289 #: ../src/guestfs.pod:620
1290 msgid ""
1291 "The API is broadly identical in all supported languages.  This means that "
1292 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1293 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1294 "words, a straightforward, predictable isomorphism between each language."
1295 msgstr ""
1296
1297 # type: textblock
1298 #: ../src/guestfs.pod:626
1299 msgid ""
1300 "Error messages are automatically transformed into exceptions if the language "
1301 "supports it."
1302 msgstr ""
1303
1304 # type: textblock
1305 #: ../src/guestfs.pod:629
1306 msgid ""
1307 "We don't try to \"object orientify\" parts of the API in OO languages, "
1308 "although contributors are welcome to write higher level APIs above what we "
1309 "provide in their favourite languages if they wish."
1310 msgstr ""
1311
1312 # type: =item
1313 #: ../src/guestfs.pod:635
1314 msgid "B<C++>"
1315 msgstr ""
1316
1317 # type: textblock
1318 #: ../src/guestfs.pod:637
1319 msgid ""
1320 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1321 "identical to the C API.  C++ classes and exceptions are not used."
1322 msgstr ""
1323
1324 # type: =item
1325 #: ../src/guestfs.pod:641
1326 msgid "B<C#>"
1327 msgstr ""
1328
1329 # type: textblock
1330 #: ../src/guestfs.pod:643
1331 msgid ""
1332 "The C# bindings are highly experimental.  Please read the warnings at the "
1333 "top of C<csharp/Libguestfs.cs>."
1334 msgstr ""
1335
1336 # type: =item
1337 #: ../src/guestfs.pod:646
1338 msgid "B<Haskell>"
1339 msgstr ""
1340
1341 # type: textblock
1342 #: ../src/guestfs.pod:648
1343 msgid ""
1344 "This is the only language binding that is working but incomplete.  Only "
1345 "calls which return simple integers have been bound in Haskell, and we are "
1346 "looking for help to complete this binding."
1347 msgstr ""
1348
1349 # type: =item
1350 #: ../src/guestfs.pod:652
1351 msgid "B<Java>"
1352 msgstr ""
1353
1354 # type: textblock
1355 #: ../src/guestfs.pod:654
1356 msgid ""
1357 "Full documentation is contained in the Javadoc which is distributed with "
1358 "libguestfs."
1359 msgstr ""
1360
1361 # type: =item
1362 #: ../src/guestfs.pod:657
1363 msgid "B<OCaml>"
1364 msgstr ""
1365
1366 # type: textblock
1367 #: ../src/guestfs.pod:659
1368 msgid "For documentation see L<guestfs-ocaml(3)>."
1369 msgstr ""
1370
1371 # type: =item
1372 #: ../src/guestfs.pod:661
1373 msgid "B<Perl>"
1374 msgstr ""
1375
1376 # type: textblock
1377 #: ../src/guestfs.pod:663
1378 msgid "For documentation see L<Sys::Guestfs(3)>."
1379 msgstr ""
1380
1381 # type: =item
1382 #: ../src/guestfs.pod:665
1383 msgid "B<PHP>"
1384 msgstr ""
1385
1386 # type: textblock
1387 #: ../src/guestfs.pod:667
1388 msgid ""
1389 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1390 "the php-libguestfs package for your distribution."
1391 msgstr ""
1392
1393 # type: textblock
1394 #: ../src/guestfs.pod:670
1395 msgid "The PHP binding only works correctly on 64 bit machines."
1396 msgstr ""
1397
1398 # type: =item
1399 #: ../src/guestfs.pod:672
1400 msgid "B<Python>"
1401 msgstr ""
1402
1403 # type: textblock
1404 #: ../src/guestfs.pod:674
1405 msgid "For documentation see L<guestfs-python(3)>."
1406 msgstr ""
1407
1408 # type: =item
1409 #: ../src/guestfs.pod:676
1410 msgid "B<Ruby>"
1411 msgstr ""
1412
1413 # type: textblock
1414 #: ../src/guestfs.pod:678
1415 msgid "For documentation see L<guestfs-ruby(3)>."
1416 msgstr ""
1417
1418 # type: =item
1419 #: ../src/guestfs.pod:680
1420 msgid "B<shell scripts>"
1421 msgstr ""
1422
1423 # type: textblock
1424 #: ../src/guestfs.pod:682
1425 msgid "For documentation see L<guestfish(1)>."
1426 msgstr ""
1427
1428 # type: =head2
1429 #: ../src/guestfs.pod:686
1430 msgid "LIBGUESTFS GOTCHAS"
1431 msgstr ""
1432
1433 # type: textblock
1434 #: ../src/guestfs.pod:688
1435 msgid ""
1436 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1437 "system [...] that works in the way it is documented but is counterintuitive "
1438 "and almost invites mistakes.\""
1439 msgstr ""
1440
1441 # type: textblock
1442 #: ../src/guestfs.pod:692
1443 msgid ""
1444 "Since we developed libguestfs and the associated tools, there are several "
1445 "things we would have designed differently, but are now stuck with for "
1446 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1447 "release, you can expect these to change.  Beware of them."
1448 msgstr ""
1449
1450 # type: =item
1451 #: ../src/guestfs.pod:700
1452 msgid "Autosync / forgetting to sync."
1453 msgstr ""
1454
1455 # type: textblock
1456 #: ../src/guestfs.pod:702
1457 msgid ""
1458 "When modifying a filesystem from C or another language, you B<must> unmount "
1459 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1460 "libguestfs handle.  You can also call:"
1461 msgstr ""
1462
1463 # type: verbatim
1464 #: ../src/guestfs.pod:706
1465 #, no-wrap
1466 msgid ""
1467 " guestfs_set_autosync (g, 1);\n"
1468 "\n"
1469 msgstr ""
1470
1471 # type: textblock
1472 #: ../src/guestfs.pod:708
1473 msgid ""
1474 "to have the unmount/sync done automatically for you when the handle 'g' is "
1475 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1476 msgstr ""
1477
1478 # type: textblock
1479 #: ../src/guestfs.pod:712
1480 msgid ""
1481 "If you forget to do this, then it is entirely possible that your changes "
1482 "won't be written out, or will be partially written, or (very rarely) that "
1483 "you'll get disk corruption."
1484 msgstr ""
1485
1486 # type: textblock
1487 #: ../src/guestfs.pod:716
1488 msgid ""
1489 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1490 "guestfish scripts that forget to sync will work just fine, which can make "
1491 "this very puzzling if you are trying to debug a problem."
1492 msgstr ""
1493
1494 # type: textblock
1495 #: ../src/guestfs.pod:720
1496 msgid ""
1497 "Update: Autosync is enabled by default for all API users starting from "
1498 "libguestfs 1.5.24."
1499 msgstr ""
1500
1501 # type: =item
1502 #: ../src/guestfs.pod:723
1503 msgid "Mount option C<-o sync> should not be the default."
1504 msgstr ""
1505
1506 # type: textblock
1507 #: ../src/guestfs.pod:725
1508 msgid ""
1509 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1510 "However C<-o sync> does not add any reliability benefit, but does have a "
1511 "very large performance impact."
1512 msgstr ""
1513
1514 # type: textblock
1515 #: ../src/guestfs.pod:729
1516 msgid ""
1517 "The work around is to use L</guestfs_mount_options> and set the mount "
1518 "options that you actually want to use."
1519 msgstr ""
1520
1521 # type: =item
1522 #: ../src/guestfs.pod:732
1523 msgid "Read-only should be the default."
1524 msgstr ""
1525
1526 # type: textblock
1527 #: ../src/guestfs.pod:734
1528 msgid ""
1529 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1530 "specify I<--rw> if you want to make changes to the image."
1531 msgstr ""
1532
1533 # type: textblock
1534 #: ../src/guestfs.pod:737
1535 msgid "This would reduce the potential to corrupt live VM images."
1536 msgstr ""
1537
1538 # type: textblock
1539 #: ../src/guestfs.pod:739
1540 msgid ""
1541 "Note that many filesystems change the disk when you just mount and unmount, "
1542 "even if you didn't perform any writes.  You need to use L</"
1543 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1544 msgstr ""
1545
1546 # type: =item
1547 #: ../src/guestfs.pod:743
1548 msgid "guestfish command line is hard to use."
1549 msgstr ""
1550
1551 # type: textblock
1552 #: ../src/guestfs.pod:745
1553 msgid ""
1554 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1555 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1556 "exist, so it fails.  In earlier versions of guestfish the error message was "
1557 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1558 "we should have used C<guestfish -c command> to run commands."
1559 msgstr ""
1560
1561 # type: =item
1562 #: ../src/guestfs.pod:752
1563 msgid "guestfish megabyte modifiers don't work right on all commands"
1564 msgstr ""
1565
1566 # type: textblock
1567 #: ../src/guestfs.pod:754
1568 msgid ""
1569 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1570 "other modifiers).  What guestfish actually does is to multiply the number "
1571 "part by the modifier part and pass the result to the C API.  However this "
1572 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1573 "expecting some other unit (eg. megabytes)."
1574 msgstr ""
1575
1576 # type: textblock
1577 #: ../src/guestfs.pod:761
1578 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1579 msgstr ""
1580
1581 # type: verbatim
1582 #: ../src/guestfs.pod:763
1583 #, no-wrap
1584 msgid ""
1585 " lvcreate LV VG 100M\n"
1586 "\n"
1587 msgstr ""
1588
1589 # type: textblock
1590 #: ../src/guestfs.pod:765
1591 msgid ""
1592 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1593 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1594 "megabytes * megabytes) logical volume.  The error message you get from this "
1595 "is also a little obscure."
1596 msgstr ""
1597
1598 # type: textblock
1599 #: ../src/guestfs.pod:770
1600 msgid ""
1601 "This could be fixed in the generator by specially marking parameters and "
1602 "return values which take bytes or other units."
1603 msgstr ""
1604
1605 # type: =item
1606 #: ../src/guestfs.pod:773
1607 msgid "Ambiguity between devices and paths"
1608 msgstr ""
1609
1610 # type: textblock
1611 #: ../src/guestfs.pod:775
1612 msgid ""
1613 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1614 "sdb2>) and a similar pathname.  A file might just happen to be called "
1615 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1616 msgstr ""
1617
1618 # type: textblock
1619 #: ../src/guestfs.pod:780
1620 msgid ""
1621 "In the current API we usually resolve this ambiguity by having two separate "
1622 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1623 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1624 "detecting if the path supplied begins with C</dev/>."
1625 msgstr ""
1626
1627 # type: textblock
1628 #: ../src/guestfs.pod:786
1629 msgid ""
1630 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1631 "make paths/devices into structured names.  One way to do this would be to "
1632 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1633 "aspect of grub.  Another way would be to use a structured type, equivalent "
1634 "to this OCaml type:"
1635 msgstr ""
1636
1637 # type: verbatim
1638 #: ../src/guestfs.pod:792
1639 #, no-wrap
1640 msgid ""
1641 " type path = Path of string | Device of int | Partition of int * int\n"
1642 "\n"
1643 msgstr ""
1644
1645 # type: textblock
1646 #: ../src/guestfs.pod:794
1647 msgid "which would allow you to pass arguments like:"
1648 msgstr ""
1649
1650 # type: verbatim
1651 #: ../src/guestfs.pod:796
1652 #, no-wrap
1653 msgid ""
1654 " Path \"/foo/bar\"\n"
1655 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1656 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1657 " Path \"/dev/sdb2\"    (* not a device *)\n"
1658 "\n"
1659 msgstr ""
1660
1661 # type: textblock
1662 #: ../src/guestfs.pod:801
1663 msgid ""
1664 "As you can see there are still problems to resolve even with this "
1665 "representation.  Also consider how it might work in guestfish."
1666 msgstr ""
1667
1668 # type: =head2
1669 #: ../src/guestfs.pod:806
1670 msgid "PROTOCOL LIMITS"
1671 msgstr ""
1672
1673 # type: textblock
1674 #: ../src/guestfs.pod:808
1675 msgid ""
1676 "Internally libguestfs uses a message-based protocol to pass API calls and "
1677 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1678 "plenty more detail about this).  The maximum message size used by the "
1679 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1680 "aware of this limit.  The API calls which may be affected are individually "
1681 "documented, with a link back to this section of the documentation."
1682 msgstr ""
1683
1684 # type: textblock
1685 #: ../src/guestfs.pod:816
1686 msgid ""
1687 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1688 "a simple string.  Because this string is at some point internally encoded as "
1689 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1690 "the requested file is larger than this then you will get an error."
1691 msgstr ""
1692
1693 # type: textblock
1694 #: ../src/guestfs.pod:822
1695 msgid ""
1696 "In order to transfer large files into and out of the guest filesystem, you "
1697 "need to use particular calls that support this.  The sections L</UPLOADING> "
1698 "and L</DOWNLOADING> document how to do this."
1699 msgstr ""
1700
1701 # type: textblock
1702 #: ../src/guestfs.pod:826
1703 msgid ""
1704 "You might also consider mounting the disk image using our FUSE filesystem "
1705 "support (L<guestmount(1)>)."
1706 msgstr ""
1707
1708 # type: =head2
1709 #: ../src/guestfs.pod:829
1710 msgid "KEYS AND PASSPHRASES"
1711 msgstr ""
1712
1713 # type: textblock
1714 #: ../src/guestfs.pod:831
1715 msgid ""
1716 "Certain libguestfs calls take a parameter that contains sensitive key "
1717 "material, passed in as a C string."
1718 msgstr ""
1719
1720 # type: textblock
1721 #: ../src/guestfs.pod:834
1722 msgid ""
1723 "In the future we would hope to change the libguestfs implementation so that "
1724 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1725 "swap.  However this is I<not> done at the moment, because of the complexity "
1726 "of such an implementation."
1727 msgstr ""
1728
1729 # type: textblock
1730 #: ../src/guestfs.pod:839
1731 msgid ""
1732 "Therefore you should be aware that any key parameter you pass to libguestfs "
1733 "might end up being written out to the swap partition.  If this is a concern, "
1734 "scrub the swap partition or don't use libguestfs on encrypted devices."
1735 msgstr ""
1736
1737 # type: =head1
1738 #: ../src/guestfs.pod:844
1739 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1740 msgstr ""
1741
1742 # type: textblock
1743 #: ../src/guestfs.pod:846
1744 msgid ""
1745 "All high-level libguestfs actions are synchronous.  If you want to use "
1746 "libguestfs asynchronously then you must create a thread."
1747 msgstr ""
1748
1749 # type: textblock
1750 #: ../src/guestfs.pod:849
1751 msgid ""
1752 "Only use the handle from a single thread.  Either use the handle exclusively "
1753 "from one thread, or provide your own mutex so that two threads cannot issue "
1754 "calls on the same handle at the same time."
1755 msgstr ""
1756
1757 # type: textblock
1758 #: ../src/guestfs.pod:853
1759 msgid ""
1760 "See the graphical program guestfs-browser for one possible architecture for "
1761 "multithreaded programs using libvirt and libguestfs."
1762 msgstr ""
1763
1764 # type: =head1
1765 #: ../src/guestfs.pod:856
1766 msgid "PATH"
1767 msgstr ""
1768
1769 # type: textblock
1770 #: ../src/guestfs.pod:858
1771 msgid ""
1772 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1773 "internal path."
1774 msgstr ""
1775
1776 # type: textblock
1777 #: ../src/guestfs.pod:861
1778 msgid ""
1779 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1780 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1781 msgstr ""
1782
1783 # type: textblock
1784 #: ../src/guestfs.pod:864
1785 msgid ""
1786 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1787 "to change the directories that libguestfs will search in.  The value is a "
1788 "colon-separated list of paths.  The current directory is I<not> searched "
1789 "unless the path contains an empty element or C<.>.  For example "
1790 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1791 "then C</usr/lib/guestfs>."
1792 msgstr ""
1793
1794 # type: =head1
1795 #: ../src/guestfs.pod:871
1796 msgid "QEMU WRAPPERS"
1797 msgstr ""
1798
1799 # type: textblock
1800 #: ../src/guestfs.pod:873
1801 msgid ""
1802 "If you want to compile your own qemu, run qemu from a non-standard location, "
1803 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1804 "around qemu."
1805 msgstr ""
1806
1807 # type: textblock
1808 #: ../src/guestfs.pod:877
1809 msgid ""
1810 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1811 "last command in the shell script (so that qemu replaces the shell and "
1812 "becomes the direct child of the libguestfs-using program).  If you don't do "
1813 "this, then the qemu process won't be cleaned up correctly."
1814 msgstr ""
1815
1816 # type: textblock
1817 #: ../src/guestfs.pod:882
1818 msgid ""
1819 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1820 "source:"
1821 msgstr ""
1822
1823 # type: verbatim
1824 #: ../src/guestfs.pod:885
1825 #, no-wrap
1826 msgid ""
1827 " #!/bin/sh -\n"
1828 " qemudir=/home/rjones/d/qemu\n"
1829 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1830 "\n"
1831 msgstr ""
1832
1833 # type: textblock
1834 #: ../src/guestfs.pod:889
1835 msgid ""
1836 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1837 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1838 "example:"
1839 msgstr ""
1840
1841 # type: verbatim
1842 #: ../src/guestfs.pod:893
1843 #, no-wrap
1844 msgid ""
1845 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1846 "\n"
1847 msgstr ""
1848
1849 # type: textblock
1850 #: ../src/guestfs.pod:895
1851 msgid ""
1852 "Note that libguestfs also calls qemu with the -help and -version options in "
1853 "order to determine features."
1854 msgstr ""
1855
1856 # type: =head2
1857 #: ../src/guestfs.pod:898
1858 msgid "ABI GUARANTEE"
1859 msgstr ""
1860
1861 # type: textblock
1862 #: ../src/guestfs.pod:900
1863 msgid ""
1864 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1865 "actions as outlined in this section.  Although we will deprecate some "
1866 "actions, for example if they get replaced by newer calls, we will keep the "
1867 "old actions forever.  This allows you the developer to program in confidence "
1868 "against the libguestfs API."
1869 msgstr ""
1870
1871 # type: =head1
1872 #: ../src/guestfs.pod:906
1873 msgid "BLOCK DEVICE NAMING"
1874 msgstr ""
1875
1876 # type: textblock
1877 #: ../src/guestfs.pod:908
1878 msgid ""
1879 "In the kernel there is now quite a profusion of schemata for naming block "
1880 "devices (in this context, by I<block device> I mean a physical or virtual "
1881 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1882 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1883 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1884 "for the old IDE driver (particularly for SATA devices) those devices also "
1885 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1886 "paravirtualized drivers.  This has created several different naming systems, "
1887 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1888 msgstr ""
1889
1890 # type: textblock
1891 #: ../src/guestfs.pod:920
1892 msgid ""
1893 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1894 "Linux kernel to access block devices.  We can run a variety of appliances "
1895 "based on a variety of Linux kernels."
1896 msgstr ""
1897
1898 # type: textblock
1899 #: ../src/guestfs.pod:924
1900 msgid ""
1901 "This causes a problem for libguestfs because many API calls use device or "
1902 "partition names.  Working scripts and the recipe (example) scripts that we "
1903 "make available over the internet could fail if the naming scheme changes."
1904 msgstr ""
1905
1906 # type: textblock
1907 #: ../src/guestfs.pod:929
1908 msgid ""
1909 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1910 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1911 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1912 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1913 msgstr ""
1914
1915 # type: textblock
1916 #: ../src/guestfs.pod:935
1917 msgid ""
1918 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1919 "L</guestfs_list_partitions> and similar calls return the true names of the "
1920 "devices and partitions as known to the appliance."
1921 msgstr ""
1922
1923 # type: =head2
1924 #: ../src/guestfs.pod:940
1925 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1926 msgstr ""
1927
1928 # type: textblock
1929 #: ../src/guestfs.pod:942
1930 msgid ""
1931 "Usually this translation is transparent.  However in some (very rare)  cases "
1932 "you may need to know the exact algorithm.  Such cases include where you use "
1933 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
1934 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
1935 msgstr ""
1936
1937 # type: textblock
1938 #: ../src/guestfs.pod:948
1939 msgid ""
1940 "The algorithm is applied only to I<parameters> which are known to be either "
1941 "device or partition names.  Return values from functions such as L</"
1942 "guestfs_list_devices> are never changed."
1943 msgstr ""
1944
1945 # type: textblock
1946 #: ../src/guestfs.pod:956
1947 msgid "Is the string a parameter which is a device or partition name?"
1948 msgstr ""
1949
1950 # type: textblock
1951 #: ../src/guestfs.pod:960
1952 msgid "Does the string begin with C</dev/sd>?"
1953 msgstr ""
1954
1955 # type: textblock
1956 #: ../src/guestfs.pod:964
1957 msgid ""
1958 "Does the named device exist? If so, we use that device.  However if I<not> "
1959 "then we continue with this algorithm."
1960 msgstr ""
1961
1962 # type: textblock
1963 #: ../src/guestfs.pod:969
1964 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1965 msgstr ""
1966
1967 # type: textblock
1968 #: ../src/guestfs.pod:971
1969 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1970 msgstr ""
1971
1972 # type: textblock
1973 #: ../src/guestfs.pod:973
1974 msgid "If that named device exists, use it.  If not, continue."
1975 msgstr ""
1976
1977 # type: textblock
1978 #: ../src/guestfs.pod:977
1979 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1980 msgstr ""
1981
1982 # type: textblock
1983 #: ../src/guestfs.pod:979
1984 msgid "If that named device exists, use it.  If not, return an error."
1985 msgstr ""
1986
1987 # type: =head3
1988 #: ../src/guestfs.pod:983
1989 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1990 msgstr ""
1991
1992 # type: textblock
1993 #: ../src/guestfs.pod:985
1994 msgid ""
1995 "Although the standard naming scheme and automatic translation is useful for "
1996 "simple programs and guestfish scripts, for larger programs it is best not to "
1997 "rely on this mechanism."
1998 msgstr ""
1999
2000 # type: textblock
2001 #: ../src/guestfs.pod:989
2002 msgid ""
2003 "Where possible for maximum future portability programs using libguestfs "
2004 "should use these future-proof techniques:"
2005 msgstr ""
2006
2007 # type: textblock
2008 #: ../src/guestfs.pod:996
2009 msgid ""
2010 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2011 "device names, and then use those names directly."
2012 msgstr ""
2013
2014 # type: textblock
2015 #: ../src/guestfs.pod:999
2016 msgid ""
2017 "Since those device names exist by definition, they will never be translated."
2018 msgstr ""
2019
2020 # type: textblock
2021 #: ../src/guestfs.pod:1004
2022 msgid ""
2023 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2024 "filesystem labels."
2025 msgstr ""
2026
2027 # type: =head1
2028 #: ../src/guestfs.pod:1009
2029 msgid "SECURITY"
2030 msgstr ""
2031
2032 # type: textblock
2033 #: ../src/guestfs.pod:1011
2034 msgid ""
2035 "This section discusses security implications of using libguestfs, "
2036 "particularly with untrusted or malicious guests or disk images."
2037 msgstr ""
2038
2039 # type: =head2
2040 #: ../src/guestfs.pod:1014
2041 msgid "GENERAL SECURITY CONSIDERATIONS"
2042 msgstr ""
2043
2044 # type: textblock
2045 #: ../src/guestfs.pod:1016
2046 msgid ""
2047 "Be careful with any files or data that you download from a guest (by "
2048 "\"download\" we mean not just the L</guestfs_download> command but any "
2049 "command that reads files, filenames, directories or anything else from a "
2050 "disk image).  An attacker could manipulate the data to fool your program "
2051 "into doing the wrong thing.  Consider cases such as:"
2052 msgstr ""
2053
2054 # type: textblock
2055 #: ../src/guestfs.pod:1026
2056 msgid "the data (file etc) not being present"
2057 msgstr ""
2058
2059 # type: textblock
2060 #: ../src/guestfs.pod:1030
2061 msgid "being present but empty"
2062 msgstr ""
2063
2064 # type: textblock
2065 #: ../src/guestfs.pod:1034
2066 msgid "being much larger than normal"
2067 msgstr ""
2068
2069 # type: textblock
2070 #: ../src/guestfs.pod:1038
2071 msgid "containing arbitrary 8 bit data"
2072 msgstr ""
2073
2074 # type: textblock
2075 #: ../src/guestfs.pod:1042
2076 msgid "being in an unexpected character encoding"
2077 msgstr ""
2078
2079 # type: textblock
2080 #: ../src/guestfs.pod:1046
2081 msgid "containing homoglyphs."
2082 msgstr ""
2083
2084 # type: =head2
2085 #: ../src/guestfs.pod:1050
2086 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2087 msgstr ""
2088
2089 # type: textblock
2090 #: ../src/guestfs.pod:1052
2091 msgid ""
2092 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2093 "(VFS) module can sometimes be escalated into exploits by deliberately "
2094 "creating a malicious, malformed filesystem.  These exploits are very severe "
2095 "for two reasons.  Firstly there are very many filesystem drivers in the "
2096 "kernel, and many of them are infrequently used and not much developer "
2097 "attention has been paid to the code.  Linux userspace helps potential "
2098 "crackers by detecting the filesystem type and automatically choosing the "
2099 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2100 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2101 "exploit (worse in some ways), giving immediate and total access to the "
2102 "system right down to the hardware level."
2103 msgstr ""
2104
2105 # type: textblock
2106 #: ../src/guestfs.pod:1065
2107 msgid ""
2108 "That explains why you should never mount a filesystem from an untrusted "
2109 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2110 "inside a qemu virtual machine, usually running as a non-root user.  The "
2111 "attacker would need to write a filesystem which first exploited the kernel, "
2112 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2113 "the libguestfs protocol, and finally to be as serious as the host kernel "
2114 "exploit it would need to escalate its privileges to root.  This multi-step "
2115 "escalation, performed by a static piece of data, is thought to be extremely "
2116 "hard to do, although we never say 'never' about security issues."
2117 msgstr ""
2118
2119 # type: textblock
2120 #: ../src/guestfs.pod:1076
2121 msgid ""
2122 "In any case callers can reduce the attack surface by forcing the filesystem "
2123 "type when mounting (use L</guestfs_mount_vfs>)."
2124 msgstr ""
2125
2126 # type: =head2
2127 #: ../src/guestfs.pod:1079
2128 msgid "PROTOCOL SECURITY"
2129 msgstr ""
2130
2131 # type: textblock
2132 #: ../src/guestfs.pod:1081
2133 msgid ""
2134 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2135 "defined upper message size.  However a program that uses libguestfs must "
2136 "also take care - for example you can write a program that downloads a binary "
2137 "from a disk image and executes it locally, and no amount of protocol "
2138 "security will save you from the consequences."
2139 msgstr ""
2140
2141 # type: =head2
2142 #: ../src/guestfs.pod:1087
2143 msgid "INSPECTION SECURITY"
2144 msgstr ""
2145
2146 # type: textblock
2147 #: ../src/guestfs.pod:1089
2148 msgid ""
2149 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2150 "directly from the guest, and these could contain any 8 bit data.  Callers "
2151 "should be careful to escape these before printing them to a structured file "
2152 "(for example, use HTML escaping if creating a web page)."
2153 msgstr ""
2154
2155 # type: textblock
2156 #: ../src/guestfs.pod:1095
2157 msgid ""
2158 "Guest configuration may be altered in unusual ways by the administrator of "
2159 "the virtual machine, and may not reflect reality (particularly for untrusted "
2160 "or actively malicious guests).  For example we parse the hostname from "
2161 "configuration files like C</etc/sysconfig/network> that we find in the "
2162 "guest, but the guest administrator can easily manipulate these files to "
2163 "provide the wrong hostname."
2164 msgstr ""
2165
2166 # type: textblock
2167 #: ../src/guestfs.pod:1103
2168 msgid ""
2169 "The inspection API parses guest configuration using two external libraries: "
2170 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2171 "designed to be robust in the face of malicious data, although denial of "
2172 "service attacks are still possible, for example with oversized configuration "
2173 "files."
2174 msgstr ""
2175
2176 # type: =head2
2177 #: ../src/guestfs.pod:1109
2178 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2179 msgstr ""
2180
2181 # type: textblock
2182 #: ../src/guestfs.pod:1111
2183 msgid ""
2184 "Be very cautious about running commands from the guest.  By running a "
2185 "command in the guest, you are giving CPU time to a binary that you do not "
2186 "control, under the same user account as the library, albeit wrapped in qemu "
2187 "virtualization.  More information and alternatives can be found in the "
2188 "section L</RUNNING COMMANDS>."
2189 msgstr ""
2190
2191 # type: =head2
2192 #: ../src/guestfs.pod:1117
2193 msgid "CVE-2010-3851"
2194 msgstr ""
2195
2196 # type: textblock
2197 #: ../src/guestfs.pod:1119
2198 msgid "https://bugzilla.redhat.com/642934"
2199 msgstr ""
2200
2201 # type: textblock
2202 #: ../src/guestfs.pod:1121
2203 msgid ""
2204 "This security bug concerns the automatic disk format detection that qemu "
2205 "does on disk images."
2206 msgstr ""
2207
2208 # type: textblock
2209 #: ../src/guestfs.pod:1124
2210 msgid ""
2211 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2212 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2213 "for one of the known headers, and if none is found then assuming the disk "
2214 "image must be raw."
2215 msgstr ""
2216
2217 # type: textblock
2218 #: ../src/guestfs.pod:1129
2219 msgid ""
2220 "This allows a guest which has been given a raw disk image to write some "
2221 "other header.  At next boot (or when the disk image is accessed by "
2222 "libguestfs) qemu would do autodetection and think the disk image format was, "
2223 "say, qcow2 based on the header written by the guest."
2224 msgstr ""
2225
2226 # type: textblock
2227 #: ../src/guestfs.pod:1134
2228 msgid ""
2229 "This in itself would not be a problem, but qcow2 offers many features, one "
2230 "of which is to allow a disk image to refer to another image (called the "
2231 "\"backing disk\").  It does this by placing the path to the backing disk "
2232 "into the qcow2 header.  This path is not validated and could point to any "
2233 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2234 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2235 "control of the attacker."
2236 msgstr ""
2237
2238 # type: textblock
2239 #: ../src/guestfs.pod:1142
2240 msgid ""
2241 "In libguestfs this is rather hard to exploit except under two circumstances:"
2242 msgstr ""
2243
2244 # type: textblock
2245 #: ../src/guestfs.pod:1149
2246 msgid "You have enabled the network or have opened the disk in write mode."
2247 msgstr ""
2248
2249 # type: textblock
2250 #: ../src/guestfs.pod:1153
2251 msgid ""
2252 "You are also running untrusted code from the guest (see L</RUNNING "
2253 "COMMANDS>)."
2254 msgstr ""
2255
2256 # type: textblock
2257 #: ../src/guestfs.pod:1158
2258 msgid ""
2259 "The way to avoid this is to specify the expected disk format when adding "
2260 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2261 "should always do this if the disk is raw format, and it's a good idea for "
2262 "other cases too."
2263 msgstr ""
2264
2265 # type: textblock
2266 #: ../src/guestfs.pod:1163
2267 msgid ""
2268 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2269 "format is fetched from libvirt and passed through."
2270 msgstr ""
2271
2272 # type: textblock
2273 #: ../src/guestfs.pod:1166
2274 msgid ""
2275 "For libguestfs tools, use the I<--format> command line parameter as "
2276 "appropriate."
2277 msgstr ""
2278
2279 # type: =head1
2280 #: ../src/guestfs.pod:1169
2281 msgid "CONNECTION MANAGEMENT"
2282 msgstr ""
2283
2284 # type: =head2
2285 #: ../src/guestfs.pod:1171
2286 msgid "guestfs_h *"
2287 msgstr ""
2288
2289 # type: textblock
2290 #: ../src/guestfs.pod:1173
2291 msgid ""
2292 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2293 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2294 "handle and release all resources used."
2295 msgstr ""
2296
2297 # type: textblock
2298 #: ../src/guestfs.pod:1177
2299 msgid ""
2300 "For information on using multiple handles and threads, see the section L</"
2301 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2302 msgstr ""
2303
2304 # type: =head2
2305 #: ../src/guestfs.pod:1180
2306 msgid "guestfs_create"
2307 msgstr ""
2308
2309 # type: verbatim
2310 #: ../src/guestfs.pod:1182
2311 #, no-wrap
2312 msgid ""
2313 " guestfs_h *guestfs_create (void);\n"
2314 "\n"
2315 msgstr ""
2316
2317 # type: textblock
2318 #: ../src/guestfs.pod:1184
2319 msgid "Create a connection handle."
2320 msgstr ""
2321
2322 # type: textblock
2323 #: ../src/guestfs.pod:1186
2324 msgid ""
2325 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2326 "on the handle at least once."
2327 msgstr ""
2328
2329 # type: textblock
2330 #: ../src/guestfs.pod:1189
2331 msgid ""
2332 "This function returns a non-NULL pointer to a handle on success or NULL on "
2333 "error."
2334 msgstr ""
2335
2336 # type: textblock
2337 #: ../src/guestfs.pod:1192
2338 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2339 msgstr ""
2340
2341 # type: textblock
2342 #: ../src/guestfs.pod:1194
2343 msgid ""
2344 "You may also want to configure error handling for the handle.  See L</ERROR "
2345 "HANDLING> section below."
2346 msgstr ""
2347
2348 # type: =head2
2349 #: ../src/guestfs.pod:1197
2350 msgid "guestfs_close"
2351 msgstr ""
2352
2353 # type: verbatim
2354 #: ../src/guestfs.pod:1199
2355 #, no-wrap
2356 msgid ""
2357 " void guestfs_close (guestfs_h *g);\n"
2358 "\n"
2359 msgstr ""
2360
2361 # type: textblock
2362 #: ../src/guestfs.pod:1201
2363 msgid "This closes the connection handle and frees up all resources used."
2364 msgstr ""
2365
2366 # type: =head1
2367 #: ../src/guestfs.pod:1203
2368 msgid "ERROR HANDLING"
2369 msgstr ""
2370
2371 # type: textblock
2372 #: ../src/guestfs.pod:1205
2373 msgid ""
2374 "API functions can return errors.  For example, almost all functions that "
2375 "return C<int> will return C<-1> to indicate an error."
2376 msgstr ""
2377
2378 # type: textblock
2379 #: ../src/guestfs.pod:1208
2380 msgid ""
2381 "Additional information is available for errors: an error message string and "
2382 "optionally an error number (errno) if the thing that failed was a system "
2383 "call."
2384 msgstr ""
2385
2386 # type: textblock
2387 #: ../src/guestfs.pod:1212
2388 msgid ""
2389 "You can get at the additional information about the last error on the handle "
2390 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2391 "up an error handler with L</guestfs_set_error_handler>."
2392 msgstr ""
2393
2394 # type: textblock
2395 #: ../src/guestfs.pod:1217
2396 msgid ""
2397 "When the handle is created, a default error handler is installed which "
2398 "prints the error message string to C<stderr>.  For small short-running "
2399 "command line programs it is sufficient to do:"
2400 msgstr ""
2401
2402 # type: verbatim
2403 #: ../src/guestfs.pod:1221
2404 #, no-wrap
2405 msgid ""
2406 " if (guestfs_launch (g) == -1)\n"
2407 "   exit (EXIT_FAILURE);\n"
2408 "\n"
2409 msgstr ""
2410
2411 # type: textblock
2412 #: ../src/guestfs.pod:1224
2413 msgid ""
2414 "since the default error handler will ensure that an error message has been "
2415 "printed to C<stderr> before the program exits."
2416 msgstr ""
2417
2418 # type: textblock
2419 #: ../src/guestfs.pod:1227
2420 msgid ""
2421 "For other programs the caller will almost certainly want to install an "
2422 "alternate error handler or do error handling in-line like this:"
2423 msgstr ""
2424
2425 # type: verbatim
2426 #: ../src/guestfs.pod:1230
2427 #, no-wrap
2428 msgid ""
2429 " g = guestfs_create ();\n"
2430 " \n"
2431 msgstr ""
2432
2433 # type: verbatim
2434 #: ../src/guestfs.pod:1232
2435 #, no-wrap
2436 msgid ""
2437 " /* This disables the default behaviour of printing errors\n"
2438 "    on stderr. */\n"
2439 " guestfs_set_error_handler (g, NULL, NULL);\n"
2440 " \n"
2441 msgstr ""
2442
2443 # type: verbatim
2444 #: ../src/guestfs.pod:1236
2445 #, no-wrap
2446 msgid ""
2447 " if (guestfs_launch (g) == -1) {\n"
2448 "   /* Examine the error message and print it etc. */\n"
2449 "   char *msg = guestfs_last_error (g);\n"
2450 "   int errnum = guestfs_last_errno (g);\n"
2451 "   fprintf (stderr, \"%s\\n\", msg);\n"
2452 "   /* ... */\n"
2453 "  }\n"
2454 "\n"
2455 msgstr ""
2456
2457 # type: textblock
2458 #: ../src/guestfs.pod:1244
2459 msgid ""
2460 "Out of memory errors are handled differently.  The default action is to call "
2461 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2462 "guestfs_set_out_of_memory_handler>."
2463 msgstr ""
2464
2465 # type: textblock
2466 #: ../src/guestfs.pod:1248
2467 msgid ""
2468 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2469 "because there is no handle if this happens there is no way to get additional "
2470 "error information.  However L</guestfs_create> is supposed to be a "
2471 "lightweight operation which can only fail because of insufficient memory (it "
2472 "returns NULL in this case)."
2473 msgstr ""
2474
2475 # type: =head2
2476 #: ../src/guestfs.pod:1254
2477 msgid "guestfs_last_error"
2478 msgstr ""
2479
2480 # type: verbatim
2481 #: ../src/guestfs.pod:1256
2482 #, no-wrap
2483 msgid ""
2484 " const char *guestfs_last_error (guestfs_h *g);\n"
2485 "\n"
2486 msgstr ""
2487
2488 # type: textblock
2489 #: ../src/guestfs.pod:1258
2490 msgid ""
2491 "This returns the last error message that happened on C<g>.  If there has not "
2492 "been an error since the handle was created, then this returns C<NULL>."
2493 msgstr ""
2494
2495 # type: textblock
2496 #: ../src/guestfs.pod:1262
2497 msgid ""
2498 "The lifetime of the returned string is until the next error occurs, or L</"
2499 "guestfs_close> is called."
2500 msgstr ""
2501
2502 # type: =head2
2503 #: ../src/guestfs.pod:1265
2504 msgid "guestfs_last_errno"
2505 msgstr ""
2506
2507 # type: verbatim
2508 #: ../src/guestfs.pod:1267
2509 #, no-wrap
2510 msgid ""
2511 " int guestfs_last_errno (guestfs_h *g);\n"
2512 "\n"
2513 msgstr ""
2514
2515 # type: textblock
2516 #: ../src/guestfs.pod:1269
2517 msgid "This returns the last error number (errno) that happened on C<g>."
2518 msgstr ""
2519
2520 # type: textblock
2521 #: ../src/guestfs.pod:1271
2522 msgid "If successful, an errno integer not equal to zero is returned."
2523 msgstr ""
2524
2525 # type: textblock
2526 #: ../src/guestfs.pod:1273
2527 msgid ""
2528 "If no error, this returns 0.  This call can return 0 in three situations:"
2529 msgstr ""
2530
2531 # type: textblock
2532 #: ../src/guestfs.pod:1280
2533 msgid "There has not been any error on the handle."
2534 msgstr ""
2535
2536 # type: textblock
2537 #: ../src/guestfs.pod:1284
2538 msgid ""
2539 "There has been an error but the errno was meaningless.  This corresponds to "
2540 "the case where the error did not come from a failed system call, but for "
2541 "some other reason."
2542 msgstr ""
2543
2544 # type: textblock
2545 #: ../src/guestfs.pod:1290
2546 msgid ""
2547 "There was an error from a failed system call, but for some reason the errno "
2548 "was not captured and returned.  This usually indicates a bug in libguestfs."
2549 msgstr ""
2550
2551 # type: textblock
2552 #: ../src/guestfs.pod:1296
2553 msgid ""
2554 "Libguestfs tries to convert the errno from inside the applicance into a "
2555 "corresponding errno for the caller (not entirely trivial: the appliance "
2556 "might be running a completely different operating system from the library "
2557 "and error numbers are not standardized across Un*xen).  If this could not be "
2558 "done, then the error is translated to C<EINVAL>.  In practice this should "
2559 "only happen in very rare circumstances."
2560 msgstr ""
2561
2562 # type: =head2
2563 #: ../src/guestfs.pod:1304
2564 msgid "guestfs_set_error_handler"
2565 msgstr ""
2566
2567 # type: verbatim
2568 #: ../src/guestfs.pod:1306
2569 #, no-wrap
2570 msgid ""
2571 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2572 "                                           void *opaque,\n"
2573 "                                           const char *msg);\n"
2574 " void guestfs_set_error_handler (guestfs_h *g,\n"
2575 "                                 guestfs_error_handler_cb cb,\n"
2576 "                                 void *opaque);\n"
2577 "\n"
2578 msgstr ""
2579
2580 # type: textblock
2581 #: ../src/guestfs.pod:1313
2582 msgid ""
2583 "The callback C<cb> will be called if there is an error.  The parameters "
2584 "passed to the callback are an opaque data pointer and the error message "
2585 "string."
2586 msgstr ""
2587
2588 # type: textblock
2589 #: ../src/guestfs.pod:1317
2590 msgid ""
2591 "C<errno> is not passed to the callback.  To get that the callback must call "
2592 "L</guestfs_last_errno>."
2593 msgstr ""
2594
2595 # type: textblock
2596 #: ../src/guestfs.pod:1320
2597 msgid ""
2598 "Note that the message string C<msg> is freed as soon as the callback "
2599 "function returns, so if you want to stash it somewhere you must make your "
2600 "own copy."
2601 msgstr ""
2602
2603 # type: textblock
2604 #: ../src/guestfs.pod:1324
2605 msgid "The default handler prints messages on C<stderr>."
2606 msgstr ""
2607
2608 # type: textblock
2609 #: ../src/guestfs.pod:1326
2610 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2611 msgstr ""
2612
2613 # type: =head2
2614 #: ../src/guestfs.pod:1328
2615 msgid "guestfs_get_error_handler"
2616 msgstr ""
2617
2618 # type: verbatim
2619 #: ../src/guestfs.pod:1330
2620 #, no-wrap
2621 msgid ""
2622 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2623 "                                                     void **opaque_rtn);\n"
2624 "\n"
2625 msgstr ""
2626
2627 # type: textblock
2628 #: ../src/guestfs.pod:1333
2629 msgid "Returns the current error handler callback."
2630 msgstr ""
2631
2632 # type: =head2
2633 #: ../src/guestfs.pod:1335
2634 msgid "guestfs_set_out_of_memory_handler"
2635 msgstr ""
2636
2637 # type: verbatim
2638 #: ../src/guestfs.pod:1337
2639 #, no-wrap
2640 msgid ""
2641 " typedef void (*guestfs_abort_cb) (void);\n"
2642 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2643 "                                        guestfs_abort_cb);\n"
2644 "\n"
2645 msgstr ""
2646
2647 # type: textblock
2648 #: ../src/guestfs.pod:1341
2649 msgid ""
2650 "The callback C<cb> will be called if there is an out of memory situation.  "
2651 "I<Note this callback must not return>."
2652 msgstr ""
2653
2654 # type: textblock
2655 #: ../src/guestfs.pod:1344
2656 msgid "The default is to call L<abort(3)>."
2657 msgstr ""
2658
2659 # type: textblock
2660 #: ../src/guestfs.pod:1346
2661 msgid ""
2662 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2663 msgstr ""
2664
2665 # type: =head2
2666 #: ../src/guestfs.pod:1349
2667 msgid "guestfs_get_out_of_memory_handler"
2668 msgstr ""
2669
2670 # type: verbatim
2671 #: ../src/guestfs.pod:1351
2672 #, no-wrap
2673 msgid ""
2674 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2675 "\n"
2676 msgstr ""
2677
2678 # type: textblock
2679 #: ../src/guestfs.pod:1353
2680 msgid "This returns the current out of memory handler."
2681 msgstr ""
2682
2683 # type: =head1
2684 #: ../src/guestfs.pod:1355
2685 msgid "API CALLS"
2686 msgstr ""
2687
2688 # type: textblock
2689 #: ../src/guestfs.pod:1357 ../fish/guestfish.pod:908
2690 msgid "@ACTIONS@"
2691 msgstr ""
2692
2693 # type: =head1
2694 #: ../src/guestfs.pod:1359
2695 msgid "STRUCTURES"
2696 msgstr ""
2697
2698 # type: textblock
2699 #: ../src/guestfs.pod:1361
2700 msgid "@STRUCTS@"
2701 msgstr ""
2702
2703 # type: =head1
2704 #: ../src/guestfs.pod:1363
2705 msgid "AVAILABILITY"
2706 msgstr ""
2707
2708 # type: =head2
2709 #: ../src/guestfs.pod:1365
2710 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2711 msgstr ""
2712
2713 # type: textblock
2714 #: ../src/guestfs.pod:1367
2715 msgid ""
2716 "Using L</guestfs_available> you can test availability of the following "
2717 "groups of functions.  This test queries the appliance to see if the "
2718 "appliance you are currently using supports the functionality."
2719 msgstr ""
2720
2721 # type: textblock
2722 #: ../src/guestfs.pod:1372
2723 msgid "@AVAILABILITY@"
2724 msgstr ""
2725
2726 # type: =head2
2727 #: ../src/guestfs.pod:1374
2728 msgid "GUESTFISH supported COMMAND"
2729 msgstr ""
2730
2731 # type: textblock
2732 #: ../src/guestfs.pod:1376
2733 msgid ""
2734 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2735 "prints out the available groups and whether they are supported by this build "
2736 "of libguestfs.  Note however that you have to do C<run> first."
2737 msgstr ""
2738
2739 # type: =head2
2740 #: ../src/guestfs.pod:1381
2741 msgid "SINGLE CALLS AT COMPILE TIME"
2742 msgstr ""
2743
2744 # type: textblock
2745 #: ../src/guestfs.pod:1383
2746 msgid ""
2747 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2748 "function, such as:"
2749 msgstr ""
2750
2751 # type: verbatim
2752 #: ../src/guestfs.pod:1386
2753 #, no-wrap
2754 msgid ""
2755 " #define LIBGUESTFS_HAVE_DD 1\n"
2756 "\n"
2757 msgstr ""
2758
2759 # type: textblock
2760 #: ../src/guestfs.pod:1388
2761 msgid "if L</guestfs_dd> is available."
2762 msgstr ""
2763
2764 # type: textblock
2765 #: ../src/guestfs.pod:1390
2766 msgid ""
2767 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2768 "function is available at compile time, we recommended using build tools such "
2769 "as autoconf or cmake.  For example in autotools you could use:"
2770 msgstr ""
2771
2772 # type: verbatim
2773 #: ../src/guestfs.pod:1395
2774 #, no-wrap
2775 msgid ""
2776 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2777 " AC_CHECK_FUNCS([guestfs_dd])\n"
2778 "\n"
2779 msgstr ""
2780
2781 # type: textblock
2782 #: ../src/guestfs.pod:1398
2783 msgid ""
2784 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2785 "in your program."
2786 msgstr ""
2787
2788 # type: =head2
2789 #: ../src/guestfs.pod:1401
2790 msgid "SINGLE CALLS AT RUN TIME"
2791 msgstr ""
2792
2793 # type: textblock
2794 #: ../src/guestfs.pod:1403
2795 msgid ""
2796 "Testing at compile time doesn't guarantee that a function really exists in "
2797 "the library.  The reason is that you might be dynamically linked against a "
2798 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2799 "This situation unfortunately results in a segmentation fault, which is a "
2800 "shortcoming of the C dynamic linking system itself."
2801 msgstr ""
2802
2803 # type: textblock
2804 #: ../src/guestfs.pod:1410
2805 msgid ""
2806 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2807 "in this example program (note that you still need the compile time check as "
2808 "well):"
2809 msgstr ""
2810
2811 # type: verbatim
2812 #: ../src/guestfs.pod:1414
2813 #, no-wrap
2814 msgid ""
2815 " #include <stdio.h>\n"
2816 " #include <stdlib.h>\n"
2817 " #include <unistd.h>\n"
2818 " #include <dlfcn.h>\n"
2819 " #include <guestfs.h>\n"
2820 " \n"
2821 msgstr ""
2822
2823 # type: verbatim
2824 #: ../src/guestfs.pod:1420
2825 #, no-wrap
2826 msgid ""
2827 " main ()\n"
2828 " {\n"
2829 " #ifdef LIBGUESTFS_HAVE_DD\n"
2830 "   void *dl;\n"
2831 "   int has_function;\n"
2832 " \n"
2833 msgstr ""
2834
2835 # type: verbatim
2836 #: ../src/guestfs.pod:1426
2837 #, no-wrap
2838 msgid ""
2839 "   /* Test if the function guestfs_dd is really available. */\n"
2840 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2841 "   if (!dl) {\n"
2842 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2843 "     exit (EXIT_FAILURE);\n"
2844 "   }\n"
2845 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2846 "   dlclose (dl);\n"
2847 " \n"
2848 msgstr ""
2849
2850 # type: verbatim
2851 #: ../src/guestfs.pod:1435
2852 #, no-wrap
2853 msgid ""
2854 "   if (!has_function)\n"
2855 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2856 "   else {\n"
2857 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2858 "     /* Now it's safe to call\n"
2859 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2860 "     */\n"
2861 "   }\n"
2862 " #else\n"
2863 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2864 " #endif\n"
2865 "  }\n"
2866 "\n"
2867 msgstr ""
2868
2869 # type: textblock
2870 #: ../src/guestfs.pod:1448
2871 msgid ""
2872 "You may think the above is an awful lot of hassle, and it is.  There are "
2873 "other ways outside of the C linking system to ensure that this kind of "
2874 "incompatibility never arises, such as using package versioning:"
2875 msgstr ""
2876
2877 # type: verbatim
2878 #: ../src/guestfs.pod:1453
2879 #, no-wrap
2880 msgid ""
2881 " Requires: libguestfs >= 1.0.80\n"
2882 "\n"
2883 msgstr ""
2884
2885 # type: =head1
2886 #: ../src/guestfs.pod:1455
2887 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2888 msgstr ""
2889
2890 # type: textblock
2891 #: ../src/guestfs.pod:1457
2892 msgid ""
2893 "A recent feature of the API is the introduction of calls which take optional "
2894 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2895 "takes variable arguments (ie. C<...>), as in this example:"
2896 msgstr ""
2897
2898 # type: verbatim
2899 #: ../src/guestfs.pod:1462
2900 #, no-wrap
2901 msgid ""
2902 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2903 "\n"
2904 msgstr ""
2905
2906 # type: textblock
2907 #: ../src/guestfs.pod:1464
2908 msgid ""
2909 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2910 "call with no optional arguments specified:"
2911 msgstr ""
2912
2913 # type: verbatim
2914 #: ../src/guestfs.pod:1467
2915 #, no-wrap
2916 msgid ""
2917 " guestfs_add_drive_opts (g, filename, -1);\n"
2918 "\n"
2919 msgstr ""
2920
2921 # type: textblock
2922 #: ../src/guestfs.pod:1469
2923 msgid "With a single optional argument:"
2924 msgstr ""
2925
2926 # type: verbatim
2927 #: ../src/guestfs.pod:1471
2928 #, no-wrap
2929 msgid ""
2930 " guestfs_add_drive_opts (g, filename,\n"
2931 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2932 "                         -1);\n"
2933 "\n"
2934 msgstr ""
2935
2936 # type: textblock
2937 #: ../src/guestfs.pod:1475
2938 msgid "With two:"
2939 msgstr ""
2940
2941 # type: verbatim
2942 #: ../src/guestfs.pod:1477
2943 #, no-wrap
2944 msgid ""
2945 " guestfs_add_drive_opts (g, filename,\n"
2946 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2947 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2948 "                         -1);\n"
2949 "\n"
2950 msgstr ""
2951
2952 # type: textblock
2953 #: ../src/guestfs.pod:1482
2954 msgid ""
2955 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2956 "happen!"
2957 msgstr ""
2958
2959 # type: =head2
2960 #: ../src/guestfs.pod:1485
2961 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2962 msgstr ""
2963
2964 # type: textblock
2965 #: ../src/guestfs.pod:1487
2966 msgid ""
2967 "The second variant has the same name with the suffix C<_va>, which works the "
2968 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2969 "example function, this is declared:"
2970 msgstr ""
2971
2972 # type: verbatim
2973 #: ../src/guestfs.pod:1491
2974 #, no-wrap
2975 msgid ""
2976 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2977 "                                va_list args);\n"
2978 "\n"
2979 msgstr ""
2980
2981 # type: =head2
2982 #: ../src/guestfs.pod:1494
2983 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2984 msgstr ""
2985
2986 # type: textblock
2987 #: ../src/guestfs.pod:1496
2988 msgid ""
2989 "The third variant is useful where you need to construct these calls.  You "
2990 "pass in a structure where you fill in the optional fields.  The structure "
2991 "has a bitmask as the first element which you must set to indicate which "
2992 "fields you have filled in.  For our example function the structure and call "
2993 "are declared:"
2994 msgstr ""
2995
2996 # type: verbatim
2997 #: ../src/guestfs.pod:1502
2998 #, no-wrap
2999 msgid ""
3000 " struct guestfs_add_drive_opts_argv {\n"
3001 "   uint64_t bitmask;\n"
3002 "   int readonly;\n"
3003 "   const char *format;\n"
3004 "   /* ... */\n"
3005 " };\n"
3006 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3007 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3008 "\n"
3009 msgstr ""
3010
3011 # type: textblock
3012 #: ../src/guestfs.pod:1511
3013 msgid "You could call it like this:"
3014 msgstr ""
3015
3016 # type: verbatim
3017 #: ../src/guestfs.pod:1513
3018 #, no-wrap
3019 msgid ""
3020 " struct guestfs_add_drive_opts_argv optargs = {\n"
3021 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3022 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3023 "   .readonly = 1,\n"
3024 "   .format = \"qcow2\"\n"
3025 " };\n"
3026 " \n"
3027 msgstr ""
3028
3029 # type: verbatim
3030 #: ../src/guestfs.pod:1520
3031 #, no-wrap
3032 msgid ""
3033 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3034 "\n"
3035 msgstr ""
3036
3037 # type: textblock
3038 #: ../src/guestfs.pod:1522 ../src/guestfs-actions.pod:11
3039 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:9
3040 #: ../fish/guestfish-actions.pod:1255
3041 msgid "Notes:"
3042 msgstr ""
3043
3044 # type: textblock
3045 #: ../src/guestfs.pod:1528
3046 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3047 msgstr ""
3048
3049 # type: textblock
3050 #: ../src/guestfs.pod:1533
3051 msgid "You do not need to fill in all fields of the structure."
3052 msgstr ""
3053
3054 # type: textblock
3055 #: ../src/guestfs.pod:1537
3056 msgid ""
3057 "There must be a one-to-one correspondence between fields of the structure "
3058 "that are filled in, and bits set in the bitmask."
3059 msgstr ""
3060
3061 # type: =head2
3062 #: ../src/guestfs.pod:1542
3063 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3064 msgstr ""
3065
3066 # type: textblock
3067 #: ../src/guestfs.pod:1544
3068 msgid ""
3069 "In other languages, optional arguments are expressed in the way that is "
3070 "natural for that language.  We refer you to the language-specific "
3071 "documentation for more details on that."
3072 msgstr ""
3073
3074 # type: textblock
3075 #: ../src/guestfs.pod:1548
3076 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3077 msgstr ""
3078
3079 # type: =head2
3080 #: ../src/guestfs.pod:1550
3081 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3082 msgstr ""
3083
3084 # type: textblock
3085 #: ../src/guestfs.pod:1552
3086 msgid ""
3087 "The child process generates events in some situations.  Current events "
3088 "include: receiving a log message, the child process exits."
3089 msgstr ""
3090
3091 # type: textblock
3092 #: ../src/guestfs.pod:1555
3093 msgid ""
3094 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3095 "types of events."
3096 msgstr ""
3097
3098 # type: textblock
3099 #: ../src/guestfs.pod:1558
3100 msgid ""
3101 "Only I<one callback of each type> can be registered for each handle.  "
3102 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3103 "that type.  Cancel all callbacks of this type by calling this function with "
3104 "C<cb> set to C<NULL>."
3105 msgstr ""
3106
3107 # type: =head2
3108 #: ../src/guestfs.pod:1563
3109 msgid "guestfs_set_log_message_callback"
3110 msgstr ""
3111
3112 # type: verbatim
3113 #: ../src/guestfs.pod:1565
3114 #, no-wrap
3115 msgid ""
3116 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3117 "                                         char *buf, int len);\n"
3118 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3119 "                                        guestfs_log_message_cb cb,\n"
3120 "                                        void *opaque);\n"
3121 "\n"
3122 msgstr ""
3123
3124 # type: textblock
3125 #: ../src/guestfs.pod:1571
3126 msgid ""
3127 "The callback function C<cb> will be called whenever qemu or the guest writes "
3128 "anything to the console."
3129 msgstr ""
3130
3131 # type: textblock
3132 #: ../src/guestfs.pod:1574
3133 msgid "Use this function to capture kernel messages and similar."
3134 msgstr ""
3135
3136 # type: textblock
3137 #: ../src/guestfs.pod:1576
3138 msgid ""
3139 "Normally there is no log message handler, and log messages are just "
3140 "discarded."
3141 msgstr ""
3142
3143 # type: =head2
3144 #: ../src/guestfs.pod:1579
3145 msgid "guestfs_set_subprocess_quit_callback"
3146 msgstr ""
3147
3148 # type: verbatim
3149 #: ../src/guestfs.pod:1581
3150 #, no-wrap
3151 msgid ""
3152 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3153 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3154 "                                            guestfs_subprocess_quit_cb cb,\n"
3155 "                                            void *opaque);\n"
3156 "\n"
3157 msgstr ""
3158
3159 # type: textblock
3160 #: ../src/guestfs.pod:1586
3161 msgid ""
3162 "The callback function C<cb> will be called when the child process quits, "
3163 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3164 "corresponds to a transition from any state to the CONFIG state)."
3165 msgstr ""
3166
3167 # type: =head2
3168 #: ../src/guestfs.pod:1591
3169 msgid "guestfs_set_launch_done_callback"
3170 msgstr ""
3171
3172 # type: verbatim
3173 #: ../src/guestfs.pod:1593
3174 #, no-wrap
3175 msgid ""
3176 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3177 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3178 "                                        guestfs_launch_done_cb cb,\n"
3179 "                                        void *opaque);\n"
3180 "\n"
3181 msgstr ""
3182
3183 # type: textblock
3184 #: ../src/guestfs.pod:1598
3185 msgid ""
3186 "The callback function C<cb> will be called when the child process becomes "
3187 "ready first time after it has been launched.  (This corresponds to a "
3188 "transition from LAUNCHING to the READY state)."
3189 msgstr ""
3190
3191 # type: =head2
3192 #: ../src/guestfs.pod:1602
3193 msgid "guestfs_set_close_callback"
3194 msgstr ""
3195
3196 # type: verbatim
3197 #: ../src/guestfs.pod:1604
3198 #, no-wrap
3199 msgid ""
3200 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3201 " void guestfs_set_close_callback (guestfs_h *g,\n"
3202 "                                  guestfs_close_cb cb,\n"
3203 "                                  void *opaque);\n"
3204 "\n"
3205 msgstr ""
3206
3207 # type: textblock
3208 #: ../src/guestfs.pod:1609
3209 msgid ""
3210 "The callback function C<cb> will be called while the handle is being closed "
3211 "(synchronously from L</guestfs_close>)."
3212 msgstr ""
3213
3214 # type: textblock
3215 #: ../src/guestfs.pod:1612
3216 msgid ""
3217 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3218 "handles that are open when the program exits.  This means that this callback "
3219 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3220 "problems in higher-level languages (eg. if your HLL interpreter has already "
3221 "been cleaned up by the time this is called, and if your callback then jumps "
3222 "into some HLL function)."
3223 msgstr ""
3224
3225 # type: =head2
3226 #: ../src/guestfs.pod:1620
3227 msgid "guestfs_set_progress_callback"
3228 msgstr ""
3229
3230 # type: verbatim
3231 #: ../src/guestfs.pod:1622
3232 #, no-wrap
3233 msgid ""
3234 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3235 "                                      int proc_nr, int serial,\n"
3236 "                                      uint64_t position, uint64_t total);\n"
3237 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3238 "                                     guestfs_progress_cb cb,\n"
3239 "                                     void *opaque);\n"
3240 "\n"
3241 msgstr ""
3242
3243 # type: textblock
3244 #: ../src/guestfs.pod:1629
3245 msgid ""
3246 "Some long-running operations can generate progress messages.  If this "
3247 "callback is registered, then it will be called each time a progress message "
3248 "is generated (usually two seconds after the operation started, and three "
3249 "times per second thereafter until it completes, although the frequency may "
3250 "change in future versions)."
3251 msgstr ""
3252
3253 # type: textblock
3254 #: ../src/guestfs.pod:1635
3255 msgid ""
3256 "The callback receives two numbers: C<position> and C<total>.  The units of "
3257 "C<total> are not defined, although for some operations C<total> may relate "
3258 "in some way to the amount of data to be transferred (eg. in bytes or "
3259 "megabytes), and C<position> may be the portion which has been transferred."
3260 msgstr ""
3261
3262 # type: textblock
3263 #: ../src/guestfs.pod:1641
3264 msgid "The only defined and stable parts of the API are:"
3265 msgstr ""
3266
3267 # type: textblock
3268 #: ../src/guestfs.pod:1647
3269 msgid ""
3270 "The callback can display to the user some type of progress bar or indicator "
3271 "which shows the ratio of C<position>:C<total>."
3272 msgstr ""
3273
3274 # type: textblock
3275 #: ../src/guestfs.pod:1652
3276 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3277 msgstr ""
3278
3279 # type: textblock
3280 #: ../src/guestfs.pod:1656
3281 msgid ""
3282 "If any progress notification is sent during a call, then a final progress "
3283 "notification is always sent when C<position> = C<total>."
3284 msgstr ""
3285
3286 # type: textblock
3287 #: ../src/guestfs.pod:1659
3288 msgid ""
3289 "This is to simplify caller code, so callers can easily set the progress "
3290 "indicator to \"100%\" at the end of the operation, without requiring special "
3291 "code to detect this case."
3292 msgstr ""
3293
3294 # type: textblock
3295 #: ../src/guestfs.pod:1665
3296 msgid ""
3297 "The callback also receives the procedure number and serial number of the "
3298 "call.  These are only useful for debugging protocol issues, and the callback "
3299 "can normally ignore them.  The callback may want to print these numbers in "
3300 "error messages or debugging messages."
3301 msgstr ""
3302
3303 # type: =head1
3304 #: ../src/guestfs.pod:1670
3305 msgid "PRIVATE DATA AREA"
3306 msgstr ""
3307
3308 # type: textblock
3309 #: ../src/guestfs.pod:1672
3310 msgid ""
3311 "You can attach named pieces of private data to the libguestfs handle, and "
3312 "fetch them by name for the lifetime of the handle.  This is called the "
3313 "private data area and is only available from the C API."
3314 msgstr ""
3315
3316 # type: textblock
3317 #: ../src/guestfs.pod:1676
3318 msgid "To attach a named piece of data, use the following call:"
3319 msgstr ""
3320
3321 # type: verbatim
3322 #: ../src/guestfs.pod:1678
3323 #, no-wrap
3324 msgid ""
3325 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3326 "\n"
3327 msgstr ""
3328
3329 # type: textblock
3330 #: ../src/guestfs.pod:1680
3331 msgid ""
3332 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3333 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3334 "overwritten."
3335 msgstr ""
3336
3337 # type: textblock
3338 #: ../src/guestfs.pod:1684
3339 msgid ""
3340 "You can use any C<key> you want, but names beginning with an underscore "
3341 "character are reserved for internal libguestfs purposes (for implementing "
3342 "language bindings).  It is recommended to prefix the name with some unique "
3343 "string to avoid collisions with other users."
3344 msgstr ""
3345
3346 # type: textblock
3347 #: ../src/guestfs.pod:1689
3348 msgid "To retrieve the pointer, use:"
3349 msgstr ""
3350
3351 # type: verbatim
3352 #: ../src/guestfs.pod:1691
3353 #, no-wrap
3354 msgid ""
3355 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3356 "\n"
3357 msgstr ""
3358
3359 # type: textblock
3360 #: ../src/guestfs.pod:1693
3361 msgid ""
3362 "This function returns C<NULL> if either no data is found associated with "
3363 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3364 "C<NULL>."
3365 msgstr ""
3366
3367 # type: textblock
3368 #: ../src/guestfs.pod:1697
3369 msgid ""
3370 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3371 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3372 "all.  In particular, libguestfs does I<not> try to free the data when the "
3373 "handle is closed.  If the data must be freed, then the caller must either "
3374 "free it before calling L</guestfs_close> or must set up a close callback to "
3375 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3376 "can be registered for a handle)."
3377 msgstr ""
3378
3379 # type: textblock
3380 #: ../src/guestfs.pod:1705
3381 msgid ""
3382 "The private data area is implemented using a hash table, and should be "
3383 "reasonably efficient for moderate numbers of keys."
3384 msgstr ""
3385
3386 # type: =end
3387 #: ../src/guestfs.pod:1708 ../src/guestfs.pod:1713
3388 msgid "html"
3389 msgstr ""
3390
3391 # type: textblock
3392 #: ../src/guestfs.pod:1710
3393 msgid ""
3394 "<!-- old anchor for the next section --> <a name="
3395 "\"state_machine_and_low_level_event_api\"/>"
3396 msgstr ""
3397
3398 # type: =head1
3399 #: ../src/guestfs.pod:1715
3400 msgid "ARCHITECTURE"
3401 msgstr ""
3402
3403 # type: textblock
3404 #: ../src/guestfs.pod:1717
3405 msgid ""
3406 "Internally, libguestfs is implemented by running an appliance (a special "
3407 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3408 "process of the main program."
3409 msgstr ""
3410
3411 # type: verbatim
3412 #: ../src/guestfs.pod:1721
3413 #, no-wrap
3414 msgid ""
3415 "  ___________________\n"
3416 " /                   \\\n"
3417 " | main program      |\n"
3418 " |                   |\n"
3419 " |                   |           child process / appliance\n"
3420 " |                   |           __________________________\n"
3421 " |                   |          / qemu                     \\\n"
3422 " +-------------------+   RPC    |      +-----------------+ |\n"
3423 " | libguestfs     <--------------------> guestfsd        | |\n"
3424 " |                   |          |      +-----------------+ |\n"
3425 " \\___________________/          |      | Linux kernel    | |\n"
3426 "                                |      +--^--------------+ |\n"
3427 "                                \\_________|________________/\n"
3428 "                                          |\n"
3429 "                                   _______v______\n"
3430 "                                  /              \\\n"
3431 "                                  | Device or    |\n"
3432 "                                  | disk image   |\n"
3433 "                                  \\______________/\n"
3434 "\n"
3435 msgstr ""
3436
3437 # type: textblock
3438 #: ../src/guestfs.pod:1741
3439 msgid ""
3440 "The library, linked to the main program, creates the child process and hence "
3441 "the appliance in the L</guestfs_launch> function."
3442 msgstr ""
3443
3444 # type: textblock
3445 #: ../src/guestfs.pod:1744
3446 msgid ""
3447 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3448 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3449 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3450 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3451 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3452 "attached to the qemu process which translates device access by the "
3453 "appliance's Linux kernel into accesses to the image."
3454 msgstr ""
3455
3456 # type: textblock
3457 #: ../src/guestfs.pod:1753
3458 msgid ""
3459 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3460 "Although the disk image you are attached to might also be used by some "
3461 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3462 "care if both libguestfs's qemu process and your virtual machine are trying "
3463 "to update the disk image at the same time, since these usually results in "
3464 "massive disk corruption)."
3465 msgstr ""
3466
3467 # type: =head1
3468 #: ../src/guestfs.pod:1760
3469 msgid "STATE MACHINE"
3470 msgstr ""
3471
3472 # type: textblock
3473 #: ../src/guestfs.pod:1762
3474 msgid "libguestfs uses a state machine to model the child process:"
3475 msgstr ""
3476
3477 # type: verbatim
3478 #: ../src/guestfs.pod:1764
3479 #, no-wrap
3480 msgid ""
3481 "                         |\n"
3482 "                    guestfs_create\n"
3483 "                         |\n"
3484 "                         |\n"
3485 "                     ____V_____\n"
3486 "                    /          \\\n"
3487 "                    |  CONFIG  |\n"
3488 "                    \\__________/\n"
3489 "                     ^ ^   ^  \\\n"
3490 "                    /  |    \\  \\ guestfs_launch\n"
3491 "                   /   |    _\\__V______\n"
3492 "                  /    |   /           \\\n"
3493 "                 /     |   | LAUNCHING |\n"
3494 "                /      |   \\___________/\n"
3495 "               /       |       /\n"
3496 "              /        |  guestfs_launch\n"
3497 "             /         |     /\n"
3498 "    ______  /        __|____V\n"
3499 "   /      \\ ------> /        \\\n"
3500 "   | BUSY |         | READY  |\n"
3501 "   \\______/ <------ \\________/\n"
3502 "\n"
3503 msgstr ""
3504
3505 # type: textblock
3506 #: ../src/guestfs.pod:1786
3507 msgid ""
3508 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3509 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3510 "(3) alternating between READY and BUSY as commands are issued to, and "
3511 "carried out by, the child process."
3512 msgstr ""
3513
3514 # type: textblock
3515 #: ../src/guestfs.pod:1791
3516 msgid ""
3517 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3518 "asynchronously at any time (eg. due to some internal error), and that causes "
3519 "the state to transition back to CONFIG."
3520 msgstr ""
3521
3522 # type: textblock
3523 #: ../src/guestfs.pod:1795
3524 msgid ""
3525 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3526 "issued when in the CONFIG state."
3527 msgstr ""
3528
3529 # type: textblock
3530 #: ../src/guestfs.pod:1798
3531 msgid ""
3532 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3533 "L</guestfs_launch> blocks until the child process is READY to accept "
3534 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3535 "moves the state from CONFIG to LAUNCHING while it is running."
3536 msgstr ""
3537
3538 # type: textblock
3539 #: ../src/guestfs.pod:1804
3540 msgid ""
3541 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3542 "state.  These API calls block waiting for the command to be carried out (ie. "
3543 "the state to transition to BUSY and then back to READY).  There are no non-"
3544 "blocking versions, and no way to issue more than one command per handle at "
3545 "the same time."
3546 msgstr ""
3547
3548 # type: textblock
3549 #: ../src/guestfs.pod:1810
3550 msgid ""
3551 "Finally, the child process sends asynchronous messages back to the main "
3552 "program, such as kernel log messages.  You can register a callback to "
3553 "receive these messages."
3554 msgstr ""
3555
3556 # type: =head1
3557 #: ../src/guestfs.pod:1814
3558 msgid "INTERNALS"
3559 msgstr ""
3560
3561 # type: =head2
3562 #: ../src/guestfs.pod:1816
3563 msgid "COMMUNICATION PROTOCOL"
3564 msgstr ""
3565
3566 # type: textblock
3567 #: ../src/guestfs.pod:1818
3568 msgid ""
3569 "Don't rely on using this protocol directly.  This section documents how it "
3570 "currently works, but it may change at any time."
3571 msgstr ""
3572
3573 # type: textblock
3574 #: ../src/guestfs.pod:1821
3575 msgid ""
3576 "The protocol used to talk between the library and the daemon running inside "
3577 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3578 "1014, RFC 1832, RFC 4506)."
3579 msgstr ""
3580
3581 # type: textblock
3582 #: ../src/guestfs.pod:1825
3583 msgid ""
3584 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3585 "this file is automatically generated)."
3586 msgstr ""
3587
3588 # type: textblock
3589 #: ../src/guestfs.pod:1828
3590 msgid ""
3591 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3592 "and C<FileOut> parameters, which are handled with very simple request/reply "
3593 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3594 "parameters, which use the same request and reply messages, but they may also "
3595 "be followed by files sent using a chunked encoding."
3596 msgstr ""
3597
3598 # type: =head3
3599 #: ../src/guestfs.pod:1835
3600 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3601 msgstr ""
3602
3603 # type: textblock
3604 #: ../src/guestfs.pod:1837
3605 msgid "For ordinary functions, the request message is:"
3606 msgstr ""
3607
3608 # type: verbatim
3609 #: ../src/guestfs.pod:1839
3610 #, no-wrap
3611 msgid ""
3612 " total length (header + arguments,\n"
3613 "      but not including the length word itself)\n"
3614 " struct guestfs_message_header (encoded as XDR)\n"
3615 " struct guestfs_<foo>_args (encoded as XDR)\n"
3616 "\n"
3617 msgstr ""
3618
3619 # type: textblock
3620 #: ../src/guestfs.pod:1844
3621 msgid ""
3622 "The total length field allows the daemon to allocate a fixed size buffer "
3623 "into which it slurps the rest of the message.  As a result, the total length "
3624 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3625 "effective size of any request is limited to somewhere under this size."
3626 msgstr ""
3627
3628 # type: textblock
3629 #: ../src/guestfs.pod:1850
3630 msgid ""
3631 "Note also that many functions don't take any arguments, in which case the "
3632 "C<guestfs_I<foo>_args> is completely omitted."
3633 msgstr ""
3634
3635 # type: textblock
3636 #: ../src/guestfs.pod:1853
3637 msgid ""
3638 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3639 "receiver knows what type of args structure to expect, or none at all."
3640 msgstr ""
3641
3642 # type: textblock
3643 #: ../src/guestfs.pod:1857
3644 msgid ""
3645 "For functions that take optional arguments, the optional arguments are "
3646 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3647 "arguments.  A bitmask in the header indicates which optional arguments are "
3648 "meaningful.  The bitmask is also checked to see if it contains bits set "
3649 "which the daemon does not know about (eg. if more optional arguments were "
3650 "added in a later version of the library), and this causes the call to be "
3651 "rejected."
3652 msgstr ""
3653
3654 # type: textblock
3655 #: ../src/guestfs.pod:1865
3656 msgid "The reply message for ordinary functions is:"
3657 msgstr ""
3658
3659 # type: verbatim
3660 #: ../src/guestfs.pod:1867
3661 #, no-wrap
3662 msgid ""
3663 " total length (header + ret,\n"
3664 "      but not including the length word itself)\n"
3665 " struct guestfs_message_header (encoded as XDR)\n"
3666 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3667 "\n"
3668 msgstr ""
3669
3670 # type: textblock
3671 #: ../src/guestfs.pod:1872
3672 msgid ""
3673 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3674 "functions that return no formal return values."
3675 msgstr ""
3676
3677 # type: textblock
3678 #: ../src/guestfs.pod:1875
3679 msgid ""
3680 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3681 msgstr ""
3682
3683 # type: textblock
3684 #: ../src/guestfs.pod:1878
3685 msgid ""
3686 "In the case of an error, a flag is set in the header, and the reply message "
3687 "is slightly changed:"
3688 msgstr ""
3689
3690 # type: verbatim
3691 #: ../src/guestfs.pod:1881
3692 #, no-wrap
3693 msgid ""
3694 " total length (header + error,\n"
3695 "      but not including the length word itself)\n"
3696 " struct guestfs_message_header (encoded as XDR)\n"
3697 " struct guestfs_message_error (encoded as XDR)\n"
3698 "\n"
3699 msgstr ""
3700
3701 # type: textblock
3702 #: ../src/guestfs.pod:1886
3703 msgid ""
3704 "The C<guestfs_message_error> structure contains the error message as a "
3705 "string."
3706 msgstr ""
3707
3708 # type: =head3
3709 #: ../src/guestfs.pod:1889
3710 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3711 msgstr ""
3712
3713 # type: textblock
3714 #: ../src/guestfs.pod:1891
3715 msgid ""
3716 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3717 "The normal request message is sent (see above).  However this is followed by "
3718 "a sequence of file chunks."
3719 msgstr ""
3720
3721 # type: verbatim
3722 #: ../src/guestfs.pod:1895
3723 #, no-wrap
3724 msgid ""
3725 " total length (header + arguments,\n"
3726 "      but not including the length word itself,\n"
3727 "      and not including the chunks)\n"
3728 " struct guestfs_message_header (encoded as XDR)\n"
3729 " struct guestfs_<foo>_args (encoded as XDR)\n"
3730 " sequence of chunks for FileIn param #0\n"
3731 " sequence of chunks for FileIn param #1 etc.\n"
3732 "\n"
3733 msgstr ""
3734
3735 # type: textblock
3736 #: ../src/guestfs.pod:1903
3737 msgid "The \"sequence of chunks\" is:"
3738 msgstr ""
3739
3740 # type: verbatim
3741 #: ../src/guestfs.pod:1905
3742 #, no-wrap
3743 msgid ""
3744 " length of chunk (not including length word itself)\n"
3745 " struct guestfs_chunk (encoded as XDR)\n"
3746 " length of chunk\n"
3747 " struct guestfs_chunk (encoded as XDR)\n"
3748 "   ...\n"
3749 " length of chunk\n"
3750 " struct guestfs_chunk (with data.data_len == 0)\n"
3751 "\n"
3752 msgstr ""
3753
3754 # type: textblock
3755 #: ../src/guestfs.pod:1913
3756 msgid ""
3757 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3758 "is set in the final chunk to indicate either successful completion or early "
3759 "cancellation."
3760 msgstr ""
3761
3762 # type: textblock
3763 #: ../src/guestfs.pod:1917
3764 msgid ""
3765 "At time of writing there are no functions that have more than one FileIn "
3766 "parameter.  However this is (theoretically) supported, by sending the "
3767 "sequence of chunks for each FileIn parameter one after another (from left to "
3768 "right)."
3769 msgstr ""
3770
3771 # type: textblock
3772 #: ../src/guestfs.pod:1922
3773 msgid ""
3774 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3775 "transfer.  The library does this by sending a chunk with a special flag set "
3776 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3777 "RPC, does I<not> send any reply, and goes back to reading the next request."
3778 msgstr ""
3779
3780 # type: textblock
3781 #: ../src/guestfs.pod:1928
3782 msgid ""
3783 "The daemon may also cancel.  It does this by writing a special word "
3784 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3785 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3786 "cancel chunk).  The special word is chosen so that even if cancellation "
3787 "happens right at the end of the transfer (after the library has finished "
3788 "writing and has started listening for the reply), the \"spurious\" cancel "
3789 "flag will not be confused with the reply message."
3790 msgstr ""
3791
3792 # type: textblock
3793 #: ../src/guestfs.pod:1937
3794 msgid ""
3795 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3796 "limit), and also files where the size is not known in advance (eg. from "
3797 "pipes or sockets).  However the chunks are rather small "
3798 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3799 "to keep much in memory."
3800 msgstr ""
3801
3802 # type: =head3
3803 #: ../src/guestfs.pod:1943
3804 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3805 msgstr ""
3806
3807 # type: textblock
3808 #: ../src/guestfs.pod:1945
3809 msgid ""
3810 "The protocol for FileOut parameters is exactly the same as for FileIn "
3811 "parameters, but with the roles of daemon and library reversed."
3812 msgstr ""
3813
3814 # type: verbatim
3815 #: ../src/guestfs.pod:1948
3816 #, no-wrap
3817 msgid ""
3818 " total length (header + ret,\n"
3819 "      but not including the length word itself,\n"
3820 "      and not including the chunks)\n"
3821 " struct guestfs_message_header (encoded as XDR)\n"
3822 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3823 " sequence of chunks for FileOut param #0\n"
3824 " sequence of chunks for FileOut param #1 etc.\n"
3825 "\n"
3826 msgstr ""
3827
3828 # type: =head3
3829 #: ../src/guestfs.pod:1956
3830 msgid "INITIAL MESSAGE"
3831 msgstr ""
3832
3833 # type: textblock
3834 #: ../src/guestfs.pod:1958
3835 msgid ""
3836 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3837 "which indicates that the guest and daemon is alive.  This is what L</"
3838 "guestfs_launch> waits for."
3839 msgstr ""
3840
3841 # type: =head3
3842 #: ../src/guestfs.pod:1962
3843 msgid "PROGRESS NOTIFICATION MESSAGES"
3844 msgstr ""
3845
3846 # type: textblock
3847 #: ../src/guestfs.pod:1964
3848 msgid ""
3849 "The daemon may send progress notification messages at any time.  These are "
3850 "distinguished by the normal length word being replaced by "
3851 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3852 msgstr ""
3853
3854 # type: textblock
3855 #: ../src/guestfs.pod:1968
3856 msgid ""
3857 "The library turns them into progress callbacks (see "
3858 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3859 "discards them if not."
3860 msgstr ""
3861
3862 # type: textblock
3863 #: ../src/guestfs.pod:1972
3864 msgid ""
3865 "The daemon self-limits the frequency of progress messages it sends (see "
3866 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3867 "messages."
3868 msgstr ""
3869
3870 # type: =head1
3871 #: ../src/guestfs.pod:1976
3872 msgid "LIBGUESTFS VERSION NUMBERS"
3873 msgstr ""
3874
3875 # type: textblock
3876 #: ../src/guestfs.pod:1978
3877 msgid ""
3878 "Since April 2010, libguestfs has started to make separate development and "
3879 "stable releases, along with corresponding branches in our git repository.  "
3880 "These separate releases can be identified by version number:"
3881 msgstr ""
3882
3883 # type: verbatim
3884 #: ../src/guestfs.pod:1983
3885 #, no-wrap
3886 msgid ""
3887 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3888 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3889 "       |\n"
3890 "       v\n"
3891 " 1  .  3  .  5\n"
3892 " ^           ^\n"
3893 " |           |\n"
3894 " |           `-------- sub-version\n"
3895 " |\n"
3896 " `------ always '1' because we don't change the ABI\n"
3897 "\n"
3898 msgstr ""
3899
3900 # type: textblock
3901 #: ../src/guestfs.pod:1994
3902 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3903 msgstr ""
3904
3905 # type: textblock
3906 #: ../src/guestfs.pod:1996
3907 msgid ""
3908 "As time passes we cherry pick fixes from the development branch and backport "
3909 "those into the stable branch, the effect being that the stable branch should "
3910 "get more stable and less buggy over time.  So the stable releases are ideal "
3911 "for people who don't need new features but would just like the software to "
3912 "work."
3913 msgstr ""
3914
3915 # type: textblock
3916 #: ../src/guestfs.pod:2002
3917 msgid "Our criteria for backporting changes are:"
3918 msgstr ""
3919
3920 # type: textblock
3921 #: ../src/guestfs.pod:2008
3922 msgid ""
3923 "Documentation changes which don't affect any code are backported unless the "
3924 "documentation refers to a future feature which is not in stable."
3925 msgstr ""
3926
3927 # type: textblock
3928 #: ../src/guestfs.pod:2014
3929 msgid ""
3930 "Bug fixes which are not controversial, fix obvious problems, and have been "
3931 "well tested are backported."
3932 msgstr ""
3933
3934 # type: textblock
3935 #: ../src/guestfs.pod:2019
3936 msgid ""
3937 "Simple rearrangements of code which shouldn't affect how it works get "
3938 "backported.  This is so that the code in the two branches doesn't get too "
3939 "far out of step, allowing us to backport future fixes more easily."
3940 msgstr ""
3941
3942 # type: textblock
3943 #: ../src/guestfs.pod:2025
3944 msgid ""
3945 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3946 "exceptional case: the new feature is required in order to implement an "
3947 "important bug fix."
3948 msgstr ""
3949
3950 # type: textblock
3951 #: ../src/guestfs.pod:2031
3952 msgid ""
3953 "A new stable branch starts when we think the new features in development are "
3954 "substantial and compelling enough over the current stable branch to warrant "
3955 "it.  When that happens we create new stable and development versions 1.N.0 "
3956 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3957 "stable at this point, but by backporting fixes from development, that branch "
3958 "will stabilize over time."
3959 msgstr ""
3960
3961 # type: =head1
3962 #: ../src/guestfs.pod:2039 ../fish/guestfish.pod:915
3963 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3964 msgid "ENVIRONMENT VARIABLES"
3965 msgstr ""
3966
3967 # type: =item
3968 #: ../src/guestfs.pod:2043 ../fish/guestfish.pod:941
3969 msgid "LIBGUESTFS_APPEND"
3970 msgstr ""
3971
3972 # type: textblock
3973 #: ../src/guestfs.pod:2045 ../fish/guestfish.pod:943
3974 msgid "Pass additional options to the guest kernel."
3975 msgstr ""
3976
3977 # type: =item
3978 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:945
3979 msgid "LIBGUESTFS_DEBUG"
3980 msgstr ""
3981
3982 # type: textblock
3983 #: ../src/guestfs.pod:2049
3984 msgid ""
3985 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3986 "effect as calling C<guestfs_set_verbose (g, 1)>."
3987 msgstr ""
3988
3989 # type: =item
3990 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:950
3991 msgid "LIBGUESTFS_MEMSIZE"
3992 msgstr ""
3993
3994 # type: textblock
3995 #: ../src/guestfs.pod:2054 ../fish/guestfish.pod:952
3996 msgid ""
3997 "Set the memory allocated to the qemu process, in megabytes.  For example:"
3998 msgstr ""
3999
4000 # type: verbatim
4001 #: ../src/guestfs.pod:2057 ../fish/guestfish.pod:955
4002 #, no-wrap
4003 msgid ""
4004 " LIBGUESTFS_MEMSIZE=700\n"
4005 "\n"
4006 msgstr ""
4007
4008 # type: =item
4009 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:957
4010 msgid "LIBGUESTFS_PATH"
4011 msgstr ""
4012
4013 # type: textblock
4014 #: ../src/guestfs.pod:2061
4015 msgid ""
4016 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4017 "the discussion of paths in section PATH above."
4018 msgstr ""
4019
4020 # type: =item
4021 #: ../src/guestfs.pod:2064 ../fish/guestfish.pod:962
4022 msgid "LIBGUESTFS_QEMU"
4023 msgstr ""
4024
4025 # type: textblock
4026 #: ../src/guestfs.pod:2066 ../fish/guestfish.pod:964
4027 msgid ""
4028 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4029 "which was found at compile time by the configure script is used."
4030 msgstr ""
4031
4032 # type: textblock
4033 #: ../src/guestfs.pod:2070
4034 msgid "See also L</QEMU WRAPPERS> above."
4035 msgstr ""
4036
4037 # type: =item
4038 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:968
4039 msgid "LIBGUESTFS_TRACE"
4040 msgstr ""
4041
4042 # type: textblock
4043 #: ../src/guestfs.pod:2074
4044 msgid ""
4045 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4046 "effect as calling C<guestfs_set_trace (g, 1)>."
4047 msgstr ""
4048
4049 # type: =item
4050 #: ../src/guestfs.pod:2077 ../fish/guestfish.pod:977
4051 msgid "TMPDIR"
4052 msgstr ""
4053
4054 # type: textblock
4055 #: ../src/guestfs.pod:2079 ../fish/guestfish.pod:979
4056 msgid "Location of temporary directory, defaults to C</tmp>."
4057 msgstr ""
4058
4059 # type: textblock
4060 #: ../src/guestfs.pod:2081 ../fish/guestfish.pod:981
4061 msgid ""
4062 "If libguestfs was compiled to use the supermin appliance then the real "
4063 "appliance is cached in this directory, shared between all handles belonging "
4064 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4065 "use in case C</tmp> is not large enough."
4066 msgstr ""
4067
4068 # type: =head1
4069 #: ../src/guestfs.pod:2089 ../fish/guestfish.pod:1039
4070 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4071 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484
4072 #: ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189
4073 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
4074 #: ../tools/virt-list-partitions.pl:257
4075 msgid "SEE ALSO"
4076 msgstr ""
4077
4078 # type: textblock
4079 #: ../src/guestfs.pod:2091
4080 msgid ""
4081 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
4082 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4083 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
4084 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
4085 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4086 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4087 msgstr ""
4088
4089 # type: textblock
4090 #: ../src/guestfs.pod:2114
4091 msgid ""
4092 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4093 "(8)>, L<disktype(1)>."
4094 msgstr ""
4095
4096 # type: =head1
4097 #: ../src/guestfs.pod:2121 ../tools/virt-win-reg.pl:499
4098 #: ../tools/virt-make-fs.pl:548
4099 msgid "BUGS"
4100 msgstr ""
4101
4102 # type: textblock
4103 #: ../src/guestfs.pod:2123
4104 msgid "To get a list of bugs against libguestfs use this link:"
4105 msgstr ""
4106
4107 # type: textblock
4108 #: ../src/guestfs.pod:2125
4109 msgid ""
4110 "L<https://bugzilla.redhat.com/buglist.cgi?"
4111 "component=libguestfs&product=Virtualization+Tools>"
4112 msgstr ""
4113
4114 # type: textblock
4115 #: ../src/guestfs.pod:2127
4116 msgid "To report a new bug against libguestfs use this link:"
4117 msgstr ""
4118
4119 # type: textblock
4120 #: ../src/guestfs.pod:2129
4121 msgid ""
4122 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4123 "component=libguestfs&product=Virtualization+Tools>"
4124 msgstr ""
4125
4126 # type: textblock
4127 #: ../src/guestfs.pod:2131
4128 msgid "When reporting a bug, please check:"
4129 msgstr ""
4130
4131 # type: textblock
4132 #: ../src/guestfs.pod:2137
4133 msgid "That the bug hasn't been reported already."
4134 msgstr ""
4135
4136 # type: textblock
4137 #: ../src/guestfs.pod:2141
4138 msgid "That you are testing a recent version."
4139 msgstr ""
4140
4141 # type: textblock
4142 #: ../src/guestfs.pod:2145
4143 msgid "Describe the bug accurately, and give a way to reproduce it."
4144 msgstr ""
4145
4146 # type: textblock
4147 #: ../src/guestfs.pod:2149
4148 msgid ""
4149 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4150 "bug report."
4151 msgstr ""
4152
4153 # type: =head1
4154 #: ../src/guestfs.pod:2154 ../fish/guestfish.pod:1058
4155 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4156 msgid "AUTHORS"
4157 msgstr ""
4158
4159 # type: textblock
4160 #: ../src/guestfs.pod:2156 ../fish/guestfish.pod:1060
4161 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4162 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4163 msgstr ""
4164
4165 # type: =head1
4166 #: ../src/guestfs.pod:2158 ../fish/guestfish.pod:1062
4167 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4168 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514
4169 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206
4170 #: ../tools/virt-tar.pl:296 ../tools/virt-make-fs.pl:563
4171 #: ../tools/virt-list-partitions.pl:273
4172 msgid "COPYRIGHT"
4173 msgstr ""
4174
4175 # type: textblock
4176 #: ../src/guestfs.pod:2160 ../fish/guestfish.pod:1064
4177 #: ../fuse/guestmount.pod:250
4178 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4179 msgstr ""
4180
4181 # type: textblock
4182 #: ../src/guestfs.pod:2163
4183 msgid ""
4184 "This library is free software; you can redistribute it and/or modify it "
4185 "under the terms of the GNU Lesser General Public License as published by the "
4186 "Free Software Foundation; either version 2 of the License, or (at your "
4187 "option) any later version."
4188 msgstr ""
4189
4190 # type: textblock
4191 #: ../src/guestfs.pod:2168
4192 msgid ""
4193 "This library is distributed in the hope that it will be useful, but WITHOUT "
4194 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4195 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4196 "for more details."
4197 msgstr ""
4198
4199 # type: textblock
4200 #: ../src/guestfs.pod:2173
4201 msgid ""
4202 "You should have received a copy of the GNU Lesser General Public License "
4203 "along with this library; if not, write to the Free Software Foundation, "
4204 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4205 msgstr ""
4206
4207 # type: =head2
4208 #: ../src/guestfs-actions.pod:1
4209 msgid "guestfs_add_cdrom"
4210 msgstr ""
4211
4212 # type: verbatim
4213 #: ../src/guestfs-actions.pod:3
4214 #, no-wrap
4215 msgid ""
4216 " int\n"
4217 " guestfs_add_cdrom (guestfs_h *g,\n"
4218 "                    const char *filename);\n"
4219 "\n"
4220 msgstr ""
4221
4222 # type: textblock
4223 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4224 msgid "This function adds a virtual CD-ROM disk image to the guest."
4225 msgstr ""
4226
4227 # type: textblock
4228 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4229 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4230 msgstr ""
4231
4232 # type: textblock
4233 #: ../src/guestfs-actions.pod:17
4234 msgid ""
4235 "This call checks for the existence of C<filename>.  This stops you from "
4236 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4237 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4238 "instead."
4239 msgstr ""
4240
4241 # type: textblock
4242 #: ../src/guestfs-actions.pod:24
4243 msgid ""
4244 "If you just want to add an ISO file (often you use this as an efficient way "
4245 "to transfer large files into the guest), then you should probably use "
4246 "C<guestfs_add_drive_ro> instead."
4247 msgstr ""
4248
4249 # type: textblock
4250 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:128
4251 #: ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:226
4252 #: ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261
4253 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:295
4254 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4255 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:489
4256 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4257 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:635
4258 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:664
4259 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
4260 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
4261 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:990
4262 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1092
4263 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1129
4264 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1163
4265 #: ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264
4266 #: ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1326
4267 #: ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1466
4268 #: ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706
4269 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:2215
4270 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2420
4271 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3194
4272 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3229
4273 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3368
4274 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3395
4275 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3446
4276 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3538
4277 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3578
4278 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3633
4279 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3671
4280 #: ../src/guestfs-actions.pod:3706 ../src/guestfs-actions.pod:3718
4281 #: ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3770
4282 #: ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3798
4283 #: ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:3908
4284 #: ../src/guestfs-actions.pod:3928 ../src/guestfs-actions.pod:3941
4285 #: ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4010
4286 #: ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4044
4287 #: ../src/guestfs-actions.pod:4058 ../src/guestfs-actions.pod:4072
4288 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4104
4289 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4168
4290 #: ../src/guestfs-actions.pod:4239 ../src/guestfs-actions.pod:4270
4291 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4308
4292 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4337
4293 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4365
4294 #: ../src/guestfs-actions.pod:4380 ../src/guestfs-actions.pod:4415
4295 #: ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:4450
4296 #: ../src/guestfs-actions.pod:4464 ../src/guestfs-actions.pod:4481
4297 #: ../src/guestfs-actions.pod:4530 ../src/guestfs-actions.pod:4567
4298 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4609
4299 #: ../src/guestfs-actions.pod:4626 ../src/guestfs-actions.pod:4644
4300 #: ../src/guestfs-actions.pod:4778 ../src/guestfs-actions.pod:4835
4301 #: ../src/guestfs-actions.pod:4857 ../src/guestfs-actions.pod:4875
4302 #: ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4973
4303 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5003
4304 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5306
4305 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5339
4306 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5365
4307 #: ../src/guestfs-actions.pod:5377 ../src/guestfs-actions.pod:5391
4308 #: ../src/guestfs-actions.pod:5407 ../src/guestfs-actions.pod:5428
4309 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5466
4310 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5507
4311 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5544
4312 #: ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:5584
4313 #: ../src/guestfs-actions.pod:5601 ../src/guestfs-actions.pod:5629
4314 #: ../src/guestfs-actions.pod:5653 ../src/guestfs-actions.pod:5672
4315 #: ../src/guestfs-actions.pod:5696 ../src/guestfs-actions.pod:5711
4316 #: ../src/guestfs-actions.pod:5726 ../src/guestfs-actions.pod:5745
4317 #: ../src/guestfs-actions.pod:5782 ../src/guestfs-actions.pod:5805
4318 #: ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:5939
4319 #: ../src/guestfs-actions.pod:6060 ../src/guestfs-actions.pod:6072
4320 #: ../src/guestfs-actions.pod:6085 ../src/guestfs-actions.pod:6098
4321 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6133
4322 #: ../src/guestfs-actions.pod:6146 ../src/guestfs-actions.pod:6159
4323 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6233
4324 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6266
4325 #: ../src/guestfs-actions.pod:6282 ../src/guestfs-actions.pod:6299
4326 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6332
4327 #: ../src/guestfs-actions.pod:6368 ../src/guestfs-actions.pod:6382
4328 #: ../src/guestfs-actions.pod:6423 ../src/guestfs-actions.pod:6436
4329 #: ../src/guestfs-actions.pod:6454 ../src/guestfs-actions.pod:6488
4330 #: ../src/guestfs-actions.pod:6524 ../src/guestfs-actions.pod:6643
4331 #: ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6675
4332 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-actions.pod:6743
4333 #: ../src/guestfs-actions.pod:6788 ../src/guestfs-actions.pod:6821
4334 #: ../src/guestfs-actions.pod:6875 ../src/guestfs-actions.pod:6901
4335 #: ../src/guestfs-actions.pod:6967 ../src/guestfs-actions.pod:6986
4336 #: ../src/guestfs-actions.pod:7015
4337 msgid "This function returns 0 on success or -1 on error."
4338 msgstr ""
4339
4340 # type: textblock
4341 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:242
4342 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:28
4343 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4344 msgid ""
4345 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4346 "instead."
4347 msgstr ""
4348
4349 # type: textblock
4350 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:245
4351 #: ../src/guestfs-actions.pod:266 ../src/guestfs-actions.pod:1437
4352 #: ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1944
4353 #: ../src/guestfs-actions.pod:4129 ../src/guestfs-actions.pod:6909
4354 #: ../src/guestfs-actions.pod:7078 ../fish/guestfish-actions.pod:31
4355 #: ../fish/guestfish-actions.pod:156 ../fish/guestfish-actions.pod:170
4356 #: ../fish/guestfish-actions.pod:951 ../fish/guestfish-actions.pod:1308
4357 #: ../fish/guestfish-actions.pod:1322 ../fish/guestfish-actions.pod:2778
4358 #: ../fish/guestfish-actions.pod:4580 ../fish/guestfish-actions.pod:4677
4359 msgid ""
4360 "Deprecated functions will not be removed from the API, but the fact that "
4361 "they are deprecated indicates that there are problems with correct use of "
4362 "these functions."
4363 msgstr ""
4364
4365 # type: textblock
4366 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:130
4367 #: ../src/guestfs-actions.pod:1094 ../src/guestfs-actions.pod:1895
4368 #: ../src/guestfs-actions.pod:1993 ../src/guestfs-actions.pod:2096
4369 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3211
4370 #: ../src/guestfs-actions.pod:4417 ../src/guestfs-actions.pod:5486
4371 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5713
4372 #: ../src/guestfs-actions.pod:6176 ../src/guestfs-actions.pod:6301
4373 #: ../src/guestfs-actions.pod:6823
4374 msgid "(Added in 0.3)"
4375 msgstr ""
4376
4377 # type: =head2
4378 #: ../src/guestfs-actions.pod:41
4379 msgid "guestfs_add_domain"
4380 msgstr ""
4381
4382 # type: verbatim
4383 #: ../src/guestfs-actions.pod:43
4384 #, no-wrap
4385 msgid ""
4386 " int\n"
4387 " guestfs_add_domain (guestfs_h *g,\n"
4388 "                     const char *dom,\n"
4389 "                     ...);\n"
4390 "\n"
4391 msgstr ""
4392
4393 # type: textblock
4394 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139
4395 #: ../src/guestfs-actions.pod:4143
4396 msgid ""
4397 "You may supply a list of optional arguments to this call.  Use zero or more "
4398 "of the following pairs of parameters, and terminate the list with C<-1> on "
4399 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4400 msgstr ""
4401
4402 # type: verbatim
4403 #: ../src/guestfs-actions.pod:53
4404 #, no-wrap
4405 msgid ""
4406 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4407 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4408 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4409 "\n"
4410 msgstr ""
4411
4412 # type: textblock
4413 #: ../src/guestfs-actions.pod:57
4414 msgid ""
4415 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4416 "It works by connecting to libvirt, requesting the domain and domain XML from "
4417 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4418 "one."
4419 msgstr ""
4420
4421 # type: textblock
4422 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4423 msgid ""
4424 "The number of disks added is returned.  This operation is atomic: if an "
4425 "error is returned, then no disks are added."
4426 msgstr ""
4427
4428 # type: textblock
4429 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4430 msgid ""
4431 "This function does some minimal checks to make sure the libvirt domain is "
4432 "not running (unless C<readonly> is true).  In a future version we will try "
4433 "to acquire the libvirt lock on each disk."
4434 msgstr ""
4435
4436 # type: textblock
4437 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4438 msgid ""
4439 "Disks must be accessible locally.  This often means that adding disks from a "
4440 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4441 "unless those disks are accessible via the same device path locally too."
4442 msgstr ""
4443
4444 # type: textblock
4445 #: ../src/guestfs-actions.pod:74
4446 msgid ""
4447 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4448 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4449 "libvirt URI (or one set through an environment variable, see the libvirt "
4450 "documentation for full details).  If you are using the C API directly then "
4451 "it is more flexible to create the libvirt connection object yourself, get "
4452 "the domain object, and call C<guestfs_add_libvirt_dom>."
4453 msgstr ""
4454
4455 # type: textblock
4456 #: ../src/guestfs-actions.pod:82
4457 msgid ""
4458 "The other optional parameters are passed directly through to "
4459 "C<guestfs_add_drive_opts>."
4460 msgstr ""
4461
4462 # type: textblock
4463 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:338
4464 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:681
4465 #: ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730
4466 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:1309
4467 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1866
4468 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2005
4469 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2083
4470 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2634
4471 #: ../src/guestfs-actions.pod:2655 ../src/guestfs-actions.pod:4553
4472 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:5087
4473 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6409
4474 #: ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6847
4475 #: ../src/guestfs-actions.pod:6860
4476 msgid "On error this function returns -1."
4477 msgstr ""
4478
4479 # type: textblock
4480 #: ../src/guestfs-actions.pod:87
4481 msgid "(Added in 1.7.4)"
4482 msgstr ""
4483
4484 # type: =head2
4485 #: ../src/guestfs-actions.pod:89
4486 msgid "guestfs_add_domain_va"
4487 msgstr ""
4488
4489 # type: verbatim
4490 #: ../src/guestfs-actions.pod:91
4491 #, no-wrap
4492 msgid ""
4493 " int\n"
4494 " guestfs_add_domain_va (guestfs_h *g,\n"
4495 "                        const char *dom,\n"
4496 "                        va_list args);\n"
4497 "\n"
4498 msgstr ""
4499
4500 # type: textblock
4501 #: ../src/guestfs-actions.pod:96
4502 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4503 msgstr ""
4504
4505 # type: textblock
4506 #: ../src/guestfs-actions.pod:98 ../src/guestfs-actions.pod:109
4507 #: ../src/guestfs-actions.pod:202 ../src/guestfs-actions.pod:213
4508 #: ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4192
4509 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4510 msgstr ""
4511
4512 # type: =head2
4513 #: ../src/guestfs-actions.pod:100
4514 msgid "guestfs_add_domain_argv"
4515 msgstr ""
4516
4517 # type: verbatim
4518 #: ../src/guestfs-actions.pod:102
4519 #, no-wrap
4520 msgid ""
4521 " int\n"
4522 " guestfs_add_domain_argv (guestfs_h *g,\n"
4523 "                          const char *dom,\n"
4524 "                          const struct guestfs_add_domain_argv *optargs);\n"
4525 "\n"
4526 msgstr ""
4527
4528 # type: textblock
4529 #: ../src/guestfs-actions.pod:107
4530 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4531 msgstr ""
4532
4533 # type: =head2
4534 #: ../src/guestfs-actions.pod:111
4535 msgid "guestfs_add_drive"
4536 msgstr ""
4537
4538 # type: verbatim
4539 #: ../src/guestfs-actions.pod:113
4540 #, no-wrap
4541 msgid ""
4542 " int\n"
4543 " guestfs_add_drive (guestfs_h *g,\n"
4544 "                    const char *filename);\n"
4545 "\n"
4546 msgstr ""
4547
4548 # type: textblock
4549 #: ../src/guestfs-actions.pod:117
4550 msgid ""
4551 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4552 "optional parameters, so the disk is added writable, with the format being "
4553 "detected automatically."
4554 msgstr ""
4555
4556 # type: textblock
4557 #: ../src/guestfs-actions.pod:121
4558 msgid ""
4559 "Automatic detection of the format opens you up to a potential security hole "
4560 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4561 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4562 "you should think about replacing calls to this function with calls to "
4563 "C<guestfs_add_drive_opts>, and specifying the format."
4564 msgstr ""
4565
4566 # type: =head2
4567 #: ../src/guestfs-actions.pod:132
4568 msgid "guestfs_add_drive_opts"
4569 msgstr ""
4570
4571 # type: verbatim
4572 #: ../src/guestfs-actions.pod:134
4573 #, no-wrap
4574 msgid ""
4575 " int\n"
4576 " guestfs_add_drive_opts (guestfs_h *g,\n"
4577 "                         const char *filename,\n"
4578 "                         ...);\n"
4579 "\n"
4580 msgstr ""
4581
4582 # type: verbatim
4583 #: ../src/guestfs-actions.pod:144
4584 #, no-wrap
4585 msgid ""
4586 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4587 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4588 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4589 "\n"
4590 msgstr ""
4591
4592 # type: textblock
4593 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4594 msgid ""
4595 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4596 "The first time you call this function, the disk appears as C</dev/sda>, the "
4597 "second time as C</dev/sdb>, and so on."
4598 msgstr ""
4599
4600 # type: textblock
4601 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4602 msgid ""
4603 "You don't necessarily need to be root when using libguestfs.  However you "
4604 "obviously do need sufficient permissions to access the filename for whatever "
4605 "operations you want to perform (ie. read access if you just want to read the "
4606 "image or write access if you want to modify the image)."
4607 msgstr ""
4608
4609 # type: textblock
4610 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4611 msgid "This call checks that C<filename> exists."
4612 msgstr ""
4613
4614 # type: textblock
4615 #: ../src/guestfs-actions.pod:161 ../src/guestfs-actions.pod:4153
4616 #: ../fish/guestfish-actions.pod:105 ../fish/guestfish-actions.pod:2789
4617 msgid "The optional arguments are:"
4618 msgstr ""
4619
4620 # type: =item
4621 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4622 msgid "C<readonly>"
4623 msgstr ""
4624
4625 # type: textblock
4626 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4627 msgid ""
4628 "If true then the image is treated as read-only.  Writes are still allowed, "
4629 "but they are stored in a temporary snapshot overlay which is discarded at "
4630 "the end.  The disk that you add is not modified."
4631 msgstr ""
4632
4633 # type: =item
4634 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4635 msgid "C<format>"
4636 msgstr ""
4637
4638 # type: textblock
4639 #: ../src/guestfs-actions.pod:173
4640 msgid ""
4641 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4642 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4643 "Possible formats include C<raw> and C<qcow2>."
4644 msgstr ""
4645
4646 # type: textblock
4647 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4648 msgid ""
4649 "Automatic detection of the format opens you up to a potential security hole "
4650 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4651 "RHBZ#642934.  Specifying the format closes this security hole."
4652 msgstr ""
4653
4654 # type: =item
4655 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4656 msgid "C<iface>"
4657 msgstr ""
4658
4659 # type: textblock
4660 #: ../src/guestfs-actions.pod:184
4661 msgid ""
4662 "This rarely-used option lets you emulate the behaviour of the deprecated "
4663 "C<guestfs_add_drive_with_if> call (q.v.)"
4664 msgstr ""
4665
4666 # type: textblock
4667 #: ../src/guestfs-actions.pod:191
4668 msgid "(Added in 1.5.23)"
4669 msgstr ""
4670
4671 # type: =head2
4672 #: ../src/guestfs-actions.pod:193
4673 msgid "guestfs_add_drive_opts_va"
4674 msgstr ""
4675
4676 # type: verbatim
4677 #: ../src/guestfs-actions.pod:195
4678 #, no-wrap
4679 msgid ""
4680 " int\n"
4681 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4682 "                            const char *filename,\n"
4683 "                            va_list args);\n"
4684 "\n"
4685 msgstr ""
4686
4687 # type: textblock
4688 #: ../src/guestfs-actions.pod:200
4689 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4690 msgstr ""
4691
4692 # type: =head2
4693 #: ../src/guestfs-actions.pod:204
4694 msgid "guestfs_add_drive_opts_argv"
4695 msgstr ""
4696
4697 # type: verbatim
4698 #: ../src/guestfs-actions.pod:206
4699 #, no-wrap
4700 msgid ""
4701 " int\n"
4702 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4703 "                              const char *filename,\n"
4704 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4705 "\n"
4706 msgstr ""
4707
4708 # type: textblock
4709 #: ../src/guestfs-actions.pod:211
4710 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4711 msgstr ""
4712
4713 # type: =head2
4714 #: ../src/guestfs-actions.pod:215
4715 msgid "guestfs_add_drive_ro"
4716 msgstr ""
4717
4718 # type: verbatim
4719 #: ../src/guestfs-actions.pod:217
4720 #, no-wrap
4721 msgid ""
4722 " int\n"
4723 " guestfs_add_drive_ro (guestfs_h *g,\n"
4724 "                       const char *filename);\n"
4725 "\n"
4726 msgstr ""
4727
4728 # type: textblock
4729 #: ../src/guestfs-actions.pod:221
4730 msgid ""
4731 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4732 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4733 "disk is added read-only, with the format being detected automatically."
4734 msgstr ""
4735
4736 # type: textblock
4737 #: ../src/guestfs-actions.pod:228
4738 msgid "(Added in 1.0.38)"
4739 msgstr ""
4740
4741 # type: =head2
4742 #: ../src/guestfs-actions.pod:230
4743 msgid "guestfs_add_drive_ro_with_if"
4744 msgstr ""
4745
4746 # type: verbatim
4747 #: ../src/guestfs-actions.pod:232
4748 #, no-wrap
4749 msgid ""
4750 " int\n"
4751 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4752 "                               const char *filename,\n"
4753 "                               const char *iface);\n"
4754 "\n"
4755 msgstr ""
4756
4757 # type: textblock
4758 #: ../src/guestfs-actions.pod:237
4759 msgid ""
4760 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4761 "QEMU interface emulation to use at run time."
4762 msgstr ""
4763
4764 # type: textblock
4765 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
4766 #: ../src/guestfs-actions.pod:2305
4767 msgid "(Added in 1.0.84)"
4768 msgstr ""
4769
4770 # type: =head2
4771 #: ../src/guestfs-actions.pod:251
4772 msgid "guestfs_add_drive_with_if"
4773 msgstr ""
4774
4775 # type: verbatim
4776 #: ../src/guestfs-actions.pod:253
4777 #, no-wrap
4778 msgid ""
4779 " int\n"
4780 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4781 "                            const char *filename,\n"
4782 "                            const char *iface);\n"
4783 "\n"
4784 msgstr ""
4785
4786 # type: textblock
4787 #: ../src/guestfs-actions.pod:258
4788 msgid ""
4789 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4790 "QEMU interface emulation to use at run time."
4791 msgstr ""
4792
4793 # type: =head2
4794 #: ../src/guestfs-actions.pod:272
4795 msgid "guestfs_aug_clear"
4796 msgstr ""
4797
4798 # type: verbatim
4799 #: ../src/guestfs-actions.pod:274
4800 #, no-wrap
4801 msgid ""
4802 " int\n"
4803 " guestfs_aug_clear (guestfs_h *g,\n"
4804 "                    const char *augpath);\n"
4805 "\n"
4806 msgstr ""
4807
4808 # type: textblock
4809 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4810 msgid ""
4811 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4812 "L<augtool(1)> C<clear> command."
4813 msgstr ""
4814
4815 # type: textblock
4816 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4817 msgid "(Added in 1.3.4)"
4818 msgstr ""
4819
4820 # type: =head2
4821 #: ../src/guestfs-actions.pod:285
4822 msgid "guestfs_aug_close"
4823 msgstr ""
4824
4825 # type: verbatim
4826 #: ../src/guestfs-actions.pod:287
4827 #, no-wrap
4828 msgid ""
4829 " int\n"
4830 " guestfs_aug_close (guestfs_h *g);\n"
4831 "\n"
4832 msgstr ""
4833
4834 # type: textblock
4835 #: ../src/guestfs-actions.pod:290
4836 msgid ""
4837 "Close the current Augeas handle and free up any resources used by it.  After "
4838 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4839 "any other Augeas functions."
4840 msgstr ""
4841
4842 # type: textblock
4843 #: ../src/guestfs-actions.pod:297 ../src/guestfs-actions.pod:322
4844 #: ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:354
4845 #: ../src/guestfs-actions.pod:412 ../src/guestfs-actions.pod:432
4846 #: ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:477
4847 #: ../src/guestfs-actions.pod:491 ../src/guestfs-actions.pod:505
4848 #: ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:537
4849 #: ../src/guestfs-actions.pod:5164
4850 msgid "(Added in 0.7)"
4851 msgstr ""
4852
4853 # type: =head2
4854 #: ../src/guestfs-actions.pod:299
4855 msgid "guestfs_aug_defnode"
4856 msgstr ""
4857
4858 # type: verbatim
4859 #: ../src/guestfs-actions.pod:301
4860 #, no-wrap
4861 msgid ""
4862 " struct guestfs_int_bool *\n"
4863 " guestfs_aug_defnode (guestfs_h *g,\n"
4864 "                      const char *name,\n"
4865 "                      const char *expr,\n"
4866 "                      const char *val);\n"
4867 "\n"
4868 msgstr ""
4869
4870 # type: textblock
4871 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4872 msgid ""
4873 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4874 msgstr ""
4875
4876 # type: textblock
4877 #: ../src/guestfs-actions.pod:310
4878 msgid ""
4879 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4880 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4881 "containing that single node."
4882 msgstr ""
4883
4884 # type: textblock
4885 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4886 msgid ""
4887 "On success this returns a pair containing the number of nodes in the "
4888 "nodeset, and a boolean flag if a node was created."
4889 msgstr ""
4890
4891 # type: textblock
4892 #: ../src/guestfs-actions.pod:318
4893 msgid ""
4894 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4895 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4896 msgstr ""
4897
4898 # type: =head2
4899 #: ../src/guestfs-actions.pod:324
4900 msgid "guestfs_aug_defvar"
4901 msgstr ""
4902
4903 # type: verbatim
4904 #: ../src/guestfs-actions.pod:326
4905 #, no-wrap
4906 msgid ""
4907 " int\n"
4908 " guestfs_aug_defvar (guestfs_h *g,\n"
4909 "                     const char *name,\n"
4910 "                     const char *expr);\n"
4911 "\n"
4912 msgstr ""
4913
4914 # type: textblock
4915 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
4916 msgid ""
4917 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4918 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4919 msgstr ""
4920
4921 # type: textblock
4922 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
4923 msgid ""
4924 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4925 "evaluates to something which is not a nodeset."
4926 msgstr ""
4927
4928 # type: =head2
4929 #: ../src/guestfs-actions.pod:342
4930 msgid "guestfs_aug_get"
4931 msgstr ""
4932
4933 # type: verbatim
4934 #: ../src/guestfs-actions.pod:344
4935 #, no-wrap
4936 msgid ""
4937 " char *\n"
4938 " guestfs_aug_get (guestfs_h *g,\n"
4939 "                  const char *augpath);\n"
4940 "\n"
4941 msgstr ""
4942
4943 # type: textblock
4944 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
4945 msgid ""
4946 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4947 "node, the C<value> is returned."
4948 msgstr ""
4949
4950 # type: textblock
4951 #: ../src/guestfs-actions.pod:351 ../src/guestfs-actions.pod:851
4952 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:929
4953 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1048
4954 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1195
4955 #: ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1343
4956 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1646
4957 #: ../src/guestfs-actions.pod:1809 ../src/guestfs-actions.pod:1826
4958 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:1938
4959 #: ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2270
4960 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2558
4961 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2716
4962 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2771
4963 #: ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2856
4964 #: ../src/guestfs-actions.pod:3340 ../src/guestfs-actions.pod:3690
4965 #: ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:3970
4966 #: ../src/guestfs-actions.pod:4699 ../src/guestfs-actions.pod:4892
4967 #: ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5240
4968 #: ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5852
4969 #: ../src/guestfs-actions.pod:5868 ../src/guestfs-actions.pod:5885
4970 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:6583
4971 #: ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:6620
4972 #: ../src/guestfs-actions.pod:6800 ../src/guestfs-actions.pod:7072
4973 msgid ""
4974 "This function returns a string, or NULL on error.  I<The caller must free "
4975 "the returned string after use>."
4976 msgstr ""
4977
4978 # type: =head2
4979 #: ../src/guestfs-actions.pod:356
4980 msgid "guestfs_aug_init"
4981 msgstr ""
4982
4983 # type: verbatim
4984 #: ../src/guestfs-actions.pod:358
4985 #, no-wrap
4986 msgid ""
4987 " int\n"
4988 " guestfs_aug_init (guestfs_h *g,\n"
4989 "                   const char *root,\n"
4990 "                   int flags);\n"
4991 "\n"
4992 msgstr ""
4993
4994 # type: textblock
4995 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
4996 msgid ""
4997 "Create a new Augeas handle for editing configuration files.  If there was "
4998 "any previous Augeas handle associated with this guestfs session, then it is "
4999 "closed."
5000 msgstr ""
5001
5002 # type: textblock
5003 #: ../src/guestfs-actions.pod:367
5004 msgid "You must call this before using any other C<guestfs_aug_*> commands."
5005 msgstr ""
5006
5007 # type: textblock
5008 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
5009 msgid ""
5010 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5011 msgstr ""
5012
5013 # type: textblock
5014 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
5015 msgid ""
5016 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5017 "logical I<or> of the following integers:"
5018 msgstr ""
5019
5020 # type: =item
5021 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
5022 msgid "C<AUG_SAVE_BACKUP> = 1"
5023 msgstr ""
5024
5025 # type: textblock
5026 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
5027 msgid "Keep the original file with a C<.augsave> extension."
5028 msgstr ""
5029
5030 # type: =item
5031 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
5032 msgid "C<AUG_SAVE_NEWFILE> = 2"
5033 msgstr ""
5034
5035 # type: textblock
5036 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
5037 msgid ""
5038 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5039 "original.  Overrides C<AUG_SAVE_BACKUP>."
5040 msgstr ""
5041
5042 # type: =item
5043 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
5044 msgid "C<AUG_TYPE_CHECK> = 4"
5045 msgstr ""
5046
5047 # type: textblock
5048 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
5049 msgid "Typecheck lenses (can be expensive)."
5050 msgstr ""
5051
5052 # type: =item
5053 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
5054 msgid "C<AUG_NO_STDINC> = 8"
5055 msgstr ""
5056
5057 # type: textblock
5058 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
5059 msgid "Do not use standard load path for modules."
5060 msgstr ""
5061
5062 # type: =item
5063 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
5064 msgid "C<AUG_SAVE_NOOP> = 16"
5065 msgstr ""
5066
5067 # type: textblock
5068 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
5069 msgid "Make save a no-op, just record what would have been changed."
5070 msgstr ""
5071
5072 # type: =item
5073 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
5074 msgid "C<AUG_NO_LOAD> = 32"
5075 msgstr ""
5076
5077 # type: textblock
5078 #: ../src/guestfs-actions.pod:402
5079 msgid "Do not load the tree in C<guestfs_aug_init>."
5080 msgstr ""
5081
5082 # type: textblock
5083 #: ../src/guestfs-actions.pod:406
5084 msgid "To close the handle, you can call C<guestfs_aug_close>."
5085 msgstr ""
5086
5087 # type: textblock
5088 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
5089 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5090 msgstr ""
5091
5092 # type: =head2
5093 #: ../src/guestfs-actions.pod:414
5094 msgid "guestfs_aug_insert"
5095 msgstr ""
5096
5097 # type: verbatim
5098 #: ../src/guestfs-actions.pod:416
5099 #, no-wrap
5100 msgid ""
5101 " int\n"
5102 " guestfs_aug_insert (guestfs_h *g,\n"
5103 "                     const char *augpath,\n"
5104 "                     const char *label,\n"
5105 "                     int before);\n"
5106 "\n"
5107 msgstr ""
5108
5109 # type: textblock
5110 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
5111 msgid ""
5112 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5113 "or after C<path> (depending on the boolean flag C<before>)."
5114 msgstr ""
5115
5116 # type: textblock
5117 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
5118 msgid ""
5119 "C<path> must match exactly one existing node in the tree, and C<label> must "
5120 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5121 msgstr ""
5122
5123 # type: =head2
5124 #: ../src/guestfs-actions.pod:434
5125 msgid "guestfs_aug_load"
5126 msgstr ""
5127
5128 # type: verbatim
5129 #: ../src/guestfs-actions.pod:436
5130 #, no-wrap
5131 msgid ""
5132 " int\n"
5133 " guestfs_aug_load (guestfs_h *g);\n"
5134 "\n"
5135 msgstr ""
5136
5137 # type: textblock
5138 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
5139 msgid "Load files into the tree."
5140 msgstr ""
5141
5142 # type: textblock
5143 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
5144 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5145 msgstr ""
5146
5147 # type: =head2
5148 #: ../src/guestfs-actions.pod:448
5149 msgid "guestfs_aug_ls"
5150 msgstr ""
5151
5152 # type: verbatim
5153 #: ../src/guestfs-actions.pod:450
5154 #, no-wrap
5155 msgid ""
5156 " char **\n"
5157 " guestfs_aug_ls (guestfs_h *g,\n"
5158 "                 const char *augpath);\n"
5159 "\n"
5160 msgstr ""
5161
5162 # type: textblock
5163 #: ../src/guestfs-actions.pod:454
5164 msgid ""
5165 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5166 "sorting the resulting nodes into alphabetical order."
5167 msgstr ""
5168
5169 # type: textblock
5170 #: ../src/guestfs-actions.pod:457 ../src/guestfs-actions.pod:473
5171 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:1067
5172 #: ../src/guestfs-actions.pod:1358 ../src/guestfs-actions.pod:1377
5173 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1499
5174 #: ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:2150
5175 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2185
5176 #: ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:2252
5177 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2372
5178 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2790
5179 #: ../src/guestfs-actions.pod:3005 ../src/guestfs-actions.pod:3260
5180 #: ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3427
5181 #: ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:4514
5182 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5160
5183 #: ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5925
5184 #: ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:6041
5185 #: ../src/guestfs-actions.pod:6187 ../src/guestfs-actions.pod:6211
5186 #: ../src/guestfs-actions.pod:6693 ../src/guestfs-actions.pod:6713
5187 #: ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6925
5188 #: ../src/guestfs-actions.pod:6944 ../src/guestfs-actions.pod:7029
5189 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7094
5190 #: ../src/guestfs-actions.pod:7113
5191 msgid ""
5192 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5193 ">), or NULL if there was an error.  I<The caller must free the strings and "
5194 "the array after use>."
5195 msgstr ""
5196
5197 # type: textblock
5198 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:992
5199 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:1415
5200 #: ../src/guestfs-actions.pod:3083 ../src/guestfs-actions.pod:3114
5201 #: ../src/guestfs-actions.pod:3673 ../src/guestfs-actions.pod:3723
5202 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3943
5203 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4518
5204 #: ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5353
5205 #: ../src/guestfs-actions.pod:5367 ../src/guestfs-actions.pod:5379
5206 #: ../src/guestfs-actions.pod:5787 ../src/guestfs-actions.pod:6425
5207 #: ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:6677
5208 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:6913
5209 msgid "(Added in 0.8)"
5210 msgstr ""
5211
5212 # type: =head2
5213 #: ../src/guestfs-actions.pod:463
5214 msgid "guestfs_aug_match"
5215 msgstr ""
5216
5217 # type: verbatim
5218 #: ../src/guestfs-actions.pod:465
5219 #, no-wrap
5220 msgid ""
5221 " char **\n"
5222 " guestfs_aug_match (guestfs_h *g,\n"
5223 "                    const char *augpath);\n"
5224 "\n"
5225 msgstr ""
5226
5227 # type: textblock
5228 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
5229 msgid ""
5230 "Returns a list of paths which match the path expression C<path>.  The "
5231 "returned paths are sufficiently qualified so that they match exactly one "
5232 "node in the current tree."
5233 msgstr ""
5234
5235 # type: =head2
5236 #: ../src/guestfs-actions.pod:479
5237 msgid "guestfs_aug_mv"
5238 msgstr ""
5239
5240 # type: verbatim
5241 #: ../src/guestfs-actions.pod:481
5242 #, no-wrap
5243 msgid ""
5244 " int\n"
5245 " guestfs_aug_mv (guestfs_h *g,\n"
5246 "                 const char *src,\n"
5247 "                 const char *dest);\n"
5248 "\n"
5249 msgstr ""
5250
5251 # type: textblock
5252 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
5253 msgid ""
5254 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5255 "C<dest> is overwritten if it exists."
5256 msgstr ""
5257
5258 # type: =head2
5259 #: ../src/guestfs-actions.pod:493
5260 msgid "guestfs_aug_rm"
5261 msgstr ""
5262
5263 # type: verbatim
5264 #: ../src/guestfs-actions.pod:495
5265 #, no-wrap
5266 msgid ""
5267 " int\n"
5268 " guestfs_aug_rm (guestfs_h *g,\n"
5269 "                 const char *augpath);\n"
5270 "\n"
5271 msgstr ""
5272
5273 # type: textblock
5274 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5275 msgid "Remove C<path> and all of its children."
5276 msgstr ""
5277
5278 # type: textblock
5279 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5280 msgid "On success this returns the number of entries which were removed."
5281 msgstr ""
5282
5283 # type: =head2
5284 #: ../src/guestfs-actions.pod:507
5285 msgid "guestfs_aug_save"
5286 msgstr ""
5287
5288 # type: verbatim
5289 #: ../src/guestfs-actions.pod:509
5290 #, no-wrap
5291 msgid ""
5292 " int\n"
5293 " guestfs_aug_save (guestfs_h *g);\n"
5294 "\n"
5295 msgstr ""
5296
5297 # type: textblock
5298 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5299 msgid "This writes all pending changes to disk."
5300 msgstr ""
5301
5302 # type: textblock
5303 #: ../src/guestfs-actions.pod:514
5304 msgid ""
5305 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5306 "are saved."
5307 msgstr ""
5308
5309 # type: =head2
5310 #: ../src/guestfs-actions.pod:521
5311 msgid "guestfs_aug_set"
5312 msgstr ""
5313
5314 # type: verbatim
5315 #: ../src/guestfs-actions.pod:523
5316 #, no-wrap
5317 msgid ""
5318 " int\n"
5319 " guestfs_aug_set (guestfs_h *g,\n"
5320 "                  const char *augpath,\n"
5321 "                  const char *val);\n"
5322 "\n"
5323 msgstr ""
5324
5325 # type: textblock
5326 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5327 msgid "Set the value associated with C<path> to C<val>."
5328 msgstr ""
5329
5330 # type: textblock
5331 #: ../src/guestfs-actions.pod:530
5332 msgid ""
5333 "In the Augeas API, it is possible to clear a node by setting the value to "
5334 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5335 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5336 msgstr ""
5337
5338 # type: =head2
5339 #: ../src/guestfs-actions.pod:539
5340 msgid "guestfs_available"
5341 msgstr ""
5342
5343 # type: verbatim
5344 #: ../src/guestfs-actions.pod:541
5345 #, no-wrap
5346 msgid ""
5347 " int\n"
5348 " guestfs_available (guestfs_h *g,\n"
5349 "                    char *const *groups);\n"
5350 "\n"
5351 msgstr ""
5352
5353 # type: textblock
5354 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5355 msgid ""
5356 "This command is used to check the availability of some groups of "
5357 "functionality in the appliance, which not all builds of the libguestfs "
5358 "appliance will be able to provide."
5359 msgstr ""
5360
5361 # type: textblock
5362 #: ../src/guestfs-actions.pod:549
5363 msgid ""
5364 "The libguestfs groups, and the functions that those groups correspond to, "
5365 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5366 "runtime by calling C<guestfs_available_all_groups>."
5367 msgstr ""
5368
5369 # type: textblock
5370 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5371 msgid ""
5372 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5373 "\"]> would check for the availability of the Linux inotify functions and "
5374 "Augeas (configuration file editing) functions."
5375 msgstr ""
5376
5377 # type: textblock
5378 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5379 msgid "The command returns no error if I<all> requested groups are available."
5380 msgstr ""
5381
5382 # type: textblock
5383 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5384 msgid ""
5385 "It fails with an error if one or more of the requested groups is unavailable "
5386 "in the appliance."
5387 msgstr ""
5388
5389 # type: textblock
5390 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5391 msgid ""
5392 "If an unknown group name is included in the list of groups then an error is "
5393 "always returned."
5394 msgstr ""
5395
5396 # type: textblock
5397 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5398 msgid "I<Notes:>"
5399 msgstr ""
5400
5401 # type: textblock
5402 #: ../src/guestfs-actions.pod:573
5403 msgid "You must call C<guestfs_launch> before calling this function."
5404 msgstr ""
5405
5406 # type: textblock
5407 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5408 msgid ""
5409 "The reason is because we don't know what groups are supported by the "
5410 "appliance/daemon until it is running and can be queried."
5411 msgstr ""
5412
5413 # type: textblock
5414 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5415 msgid ""
5416 "If a group of functions is available, this does not necessarily mean that "
5417 "they will work.  You still have to check for errors when calling individual "
5418 "API functions even if they are available."
5419 msgstr ""
5420
5421 # type: textblock
5422 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5423 msgid ""
5424 "It is usually the job of distro packagers to build complete functionality "
5425 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5426 "with all requirements satisfied, will support everything."
5427 msgstr ""
5428
5429 # type: textblock
5430 #: ../src/guestfs-actions.pod:595
5431 msgid ""
5432 "This call was added in version C<1.0.80>.  In previous versions of "
5433 "libguestfs all you could do would be to speculatively execute a command to "
5434 "find out if the daemon implemented it.  See also C<guestfs_version>."
5435 msgstr ""
5436
5437 # type: textblock
5438 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5439 msgid "(Added in 1.0.80)"
5440 msgstr ""
5441
5442 # type: =head2
5443 #: ../src/guestfs-actions.pod:606
5444 msgid "guestfs_available_all_groups"
5445 msgstr ""
5446
5447 # type: verbatim
5448 #: ../src/guestfs-actions.pod:608
5449 #, no-wrap
5450 msgid ""
5451 " char **\n"
5452 " guestfs_available_all_groups (guestfs_h *g);\n"
5453 "\n"
5454 msgstr ""
5455
5456 # type: textblock
5457 #: ../src/guestfs-actions.pod:611
5458 msgid ""
5459 "This command returns a list of all optional groups that this daemon knows "
5460 "about.  Note this returns both supported and unsupported groups.  To find "
5461 "out which ones the daemon can actually support you have to call "
5462 "C<guestfs_available> on each member of the returned list."
5463 msgstr ""
5464
5465 # type: textblock
5466 #: ../src/guestfs-actions.pod:617
5467 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5468 msgstr ""
5469
5470 # type: textblock
5471 #: ../src/guestfs-actions.pod:623
5472 msgid "(Added in 1.3.15)"
5473 msgstr ""
5474
5475 # type: =head2
5476 #: ../src/guestfs-actions.pod:625
5477 msgid "guestfs_base64_in"
5478 msgstr ""
5479
5480 # type: verbatim
5481 #: ../src/guestfs-actions.pod:627
5482 #, no-wrap
5483 msgid ""
5484 " int\n"
5485 " guestfs_base64_in (guestfs_h *g,\n"
5486 "                    const char *base64file,\n"
5487 "                    const char *filename);\n"
5488 "\n"
5489 msgstr ""
5490
5491 # type: textblock
5492 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5493 msgid ""
5494 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5495 msgstr ""
5496
5497 # type: textblock
5498 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5499 msgid "(Added in 1.3.5)"
5500 msgstr ""
5501
5502 # type: =head2
5503 #: ../src/guestfs-actions.pod:639
5504 msgid "guestfs_base64_out"
5505 msgstr ""
5506
5507 # type: verbatim
5508 #: ../src/guestfs-actions.pod:641
5509 #, no-wrap
5510 msgid ""
5511 " int\n"
5512 " guestfs_base64_out (guestfs_h *g,\n"
5513 "                     const char *filename,\n"
5514 "                     const char *base64file);\n"
5515 "\n"
5516 msgstr ""
5517
5518 # type: textblock
5519 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5520 msgid ""
5521 "This command downloads the contents of C<filename>, writing it out to local "
5522 "file C<base64file> encoded as base64."
5523 msgstr ""
5524
5525 # type: =head2
5526 #: ../src/guestfs-actions.pod:653
5527 msgid "guestfs_blockdev_flushbufs"
5528 msgstr ""
5529
5530 # type: verbatim
5531 #: ../src/guestfs-actions.pod:655
5532 #, no-wrap
5533 msgid ""
5534 " int\n"
5535 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5536 "                             const char *device);\n"
5537 "\n"
5538 msgstr ""
5539
5540 # type: textblock
5541 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5542 msgid ""
5543 "This tells the kernel to flush internal buffers associated with C<device>."
5544 msgstr ""
5545
5546 # type: textblock
5547 #: ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:679
5548 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:710
5549 #: ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747
5550 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5551 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5552 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5553 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5554 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5555 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5556 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5557 msgid "This uses the L<blockdev(8)> command."
5558 msgstr ""
5559
5560 # type: textblock
5561 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:683
5562 #: ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:714
5563 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:751
5564 #: ../src/guestfs-actions.pod:765 ../src/guestfs-actions.pod:783
5565 #: ../src/guestfs-actions.pod:797 ../src/guestfs-actions.pod:811
5566 msgid "(Added in 0.9.3)"
5567 msgstr ""
5568
5569 # type: =head2
5570 #: ../src/guestfs-actions.pod:668
5571 msgid "guestfs_blockdev_getbsz"
5572 msgstr ""
5573
5574 # type: verbatim
5575 #: ../src/guestfs-actions.pod:670
5576 #, no-wrap
5577 msgid ""
5578 " int\n"
5579 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5580 "                          const char *device);\n"
5581 "\n"
5582 msgstr ""
5583
5584 # type: textblock
5585 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5586 msgid "This returns the block size of a device."
5587 msgstr ""
5588
5589 # type: textblock
5590 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776
5591 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5592 msgid ""
5593 "(Note this is different from both I<size in blocks> and I<filesystem block "
5594 "size>)."
5595 msgstr ""
5596
5597 # type: =head2
5598 #: ../src/guestfs-actions.pod:685
5599 msgid "guestfs_blockdev_getro"
5600 msgstr ""
5601
5602 # type: verbatim
5603 #: ../src/guestfs-actions.pod:687
5604 #, no-wrap
5605 msgid ""
5606 " int\n"
5607 " guestfs_blockdev_getro (guestfs_h *g,\n"
5608 "                         const char *device);\n"
5609 "\n"
5610 msgstr ""
5611
5612 # type: textblock
5613 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5614 msgid ""
5615 "Returns a boolean indicating if the block device is read-only (true if read-"
5616 "only, false if not)."
5617 msgstr ""
5618
5619 # type: textblock
5620 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:1398
5621 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1893
5622 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1976
5623 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2046
5624 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2094
5625 #: ../src/guestfs-actions.pod:3022 ../src/guestfs-actions.pod:3036
5626 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3065
5627 #: ../src/guestfs-actions.pod:3081 ../src/guestfs-actions.pod:3096
5628 #: ../src/guestfs-actions.pod:3112 ../src/guestfs-actions.pod:3126
5629 #: ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3153
5630 #: ../src/guestfs-actions.pod:3168 ../src/guestfs-actions.pod:3183
5631 #: ../src/guestfs-actions.pod:4663
5632 msgid "This function returns a C truth value on success or -1 on error."
5633 msgstr ""
5634
5635 # type: =head2
5636 #: ../src/guestfs-actions.pod:700
5637 msgid "guestfs_blockdev_getsize64"
5638 msgstr ""
5639
5640 # type: verbatim
5641 #: ../src/guestfs-actions.pod:702
5642 #, no-wrap
5643 msgid ""
5644 " int64_t\n"
5645 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5646 "                             const char *device);\n"
5647 "\n"
5648 msgstr ""
5649
5650 # type: textblock
5651 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5652 msgid "This returns the size of the device in bytes."
5653 msgstr ""
5654
5655 # type: textblock
5656 #: ../src/guestfs-actions.pod:708
5657 msgid "See also C<guestfs_blockdev_getsz>."
5658 msgstr ""
5659
5660 # type: =head2
5661 #: ../src/guestfs-actions.pod:716
5662 msgid "guestfs_blockdev_getss"
5663 msgstr ""
5664
5665 # type: verbatim
5666 #: ../src/guestfs-actions.pod:718
5667 #, no-wrap
5668 msgid ""
5669 " int\n"
5670 " guestfs_blockdev_getss (guestfs_h *g,\n"
5671 "                         const char *device);\n"
5672 "\n"
5673 msgstr ""
5674
5675 # type: textblock
5676 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5677 msgid ""
5678 "This returns the size of sectors on a block device.  Usually 512, but can be "
5679 "larger for modern devices."
5680 msgstr ""
5681
5682 # type: textblock
5683 #: ../src/guestfs-actions.pod:725
5684 msgid ""
5685 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5686 "that)."
5687 msgstr ""
5688
5689 # type: =head2
5690 #: ../src/guestfs-actions.pod:734
5691 msgid "guestfs_blockdev_getsz"
5692 msgstr ""
5693
5694 # type: verbatim
5695 #: ../src/guestfs-actions.pod:736
5696 #, no-wrap
5697 msgid ""
5698 " int64_t\n"
5699 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5700 "                         const char *device);\n"
5701 "\n"
5702 msgstr ""
5703
5704 # type: textblock
5705 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5706 msgid ""
5707 "This returns the size of the device in units of 512-byte sectors (even if "
5708 "the sectorsize isn't 512 bytes ... weird)."
5709 msgstr ""
5710
5711 # type: textblock
5712 #: ../src/guestfs-actions.pod:743
5713 msgid ""
5714 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5715 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5716 msgstr ""
5717
5718 # type: =head2
5719 #: ../src/guestfs-actions.pod:753
5720 msgid "guestfs_blockdev_rereadpt"
5721 msgstr ""
5722
5723 # type: verbatim
5724 #: ../src/guestfs-actions.pod:755
5725 #, no-wrap
5726 msgid ""
5727 " int\n"
5728 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5729 "                            const char *device);\n"
5730 "\n"
5731 msgstr ""
5732
5733 # type: textblock
5734 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5735 msgid "Reread the partition table on C<device>."
5736 msgstr ""
5737
5738 # type: =head2
5739 #: ../src/guestfs-actions.pod:767
5740 msgid "guestfs_blockdev_setbsz"
5741 msgstr ""
5742
5743 # type: verbatim
5744 #: ../src/guestfs-actions.pod:769
5745 #, no-wrap
5746 msgid ""
5747 " int\n"
5748 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5749 "                          const char *device,\n"
5750 "                          int blocksize);\n"
5751 "\n"
5752 msgstr ""
5753
5754 # type: textblock
5755 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5756 msgid "This sets the block size of a device."
5757 msgstr ""
5758
5759 # type: =head2
5760 #: ../src/guestfs-actions.pod:785
5761 msgid "guestfs_blockdev_setro"
5762 msgstr ""
5763
5764 # type: verbatim
5765 #: ../src/guestfs-actions.pod:787
5766 #, no-wrap
5767 msgid ""
5768 " int\n"
5769 " guestfs_blockdev_setro (guestfs_h *g,\n"
5770 "                         const char *device);\n"
5771 "\n"
5772 msgstr ""
5773
5774 # type: textblock
5775 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5776 msgid "Sets the block device named C<device> to read-only."
5777 msgstr ""
5778
5779 # type: =head2
5780 #: ../src/guestfs-actions.pod:799
5781 msgid "guestfs_blockdev_setrw"
5782 msgstr ""
5783
5784 # type: verbatim
5785 #: ../src/guestfs-actions.pod:801
5786 #, no-wrap
5787 msgid ""
5788 " int\n"
5789 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5790 "                         const char *device);\n"
5791 "\n"
5792 msgstr ""
5793
5794 # type: textblock
5795 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5796 msgid "Sets the block device named C<device> to read-write."
5797 msgstr ""
5798
5799 # type: =head2
5800 #: ../src/guestfs-actions.pod:813
5801 msgid "guestfs_case_sensitive_path"
5802 msgstr ""
5803
5804 # type: verbatim
5805 #: ../src/guestfs-actions.pod:815
5806 #, no-wrap
5807 msgid ""
5808 " char *\n"
5809 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5810 "                              const char *path);\n"
5811 "\n"
5812 msgstr ""
5813
5814 # type: textblock
5815 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5816 msgid ""
5817 "This can be used to resolve case insensitive paths on a filesystem which is "
5818 "case sensitive.  The use case is to resolve paths which you have read from "
5819 "Windows configuration files or the Windows Registry, to the true path."
5820 msgstr ""
5821
5822 # type: textblock
5823 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5824 msgid ""
5825 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5826 "(and probably others), which is that although the underlying filesystem is "
5827 "case-insensitive, the driver exports the filesystem to Linux as case-"
5828 "sensitive."
5829 msgstr ""
5830
5831 # type: textblock
5832 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5833 msgid ""
5834 "One consequence of this is that special directories such as C<c:\\windows> "
5835 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5836 "precise details of how they were created.  In Windows itself this would not "
5837 "be a problem."
5838 msgstr ""
5839
5840 # type: textblock
5841 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5842 msgid ""
5843 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5844 "#posixfilenames1>"
5845 msgstr ""
5846
5847 # type: textblock
5848 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5849 msgid ""
5850 "This function resolves the true case of each element in the path and returns "
5851 "the case-sensitive path."
5852 msgstr ""
5853
5854 # type: textblock
5855 #: ../src/guestfs-actions.pod:841
5856 msgid ""
5857 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5858 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5859 "how the directories were originally created under Windows)."
5860 msgstr ""
5861
5862 # type: textblock
5863 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5864 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5865 msgstr ""
5866
5867 # type: textblock
5868 #: ../src/guestfs-actions.pod:849
5869 msgid "See also C<guestfs_realpath>."
5870 msgstr ""
5871
5872 # type: textblock
5873 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6605
5874 msgid "(Added in 1.0.75)"
5875 msgstr ""
5876
5877 # type: =head2
5878 #: ../src/guestfs-actions.pod:856
5879 msgid "guestfs_cat"
5880 msgstr ""
5881
5882 # type: verbatim
5883 #: ../src/guestfs-actions.pod:858
5884 #, no-wrap
5885 msgid ""
5886 " char *\n"
5887 " guestfs_cat (guestfs_h *g,\n"
5888 "              const char *path);\n"
5889 "\n"
5890 msgstr ""
5891
5892 # type: textblock
5893 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5150
5894 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3424
5895 msgid "Return the contents of the file named C<path>."
5896 msgstr ""
5897
5898 # type: textblock
5899 #: ../src/guestfs-actions.pod:864
5900 msgid ""
5901 "Note that this function cannot correctly handle binary files (specifically, "
5902 "files containing C<\\0> character which is treated as end of string).  For "
5903 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5904 "functions which have a more complex interface."
5905 msgstr ""
5906
5907 # type: textblock
5908 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1051
5909 #: ../src/guestfs-actions.pod:1071 ../src/guestfs-actions.pod:1362
5910 #: ../src/guestfs-actions.pod:1381 ../src/guestfs-actions.pod:1484
5911 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1752
5912 #: ../src/guestfs-actions.pod:2170 ../src/guestfs-actions.pod:2189
5913 #: ../src/guestfs-actions.pod:2232 ../src/guestfs-actions.pod:2256
5914 #: ../src/guestfs-actions.pod:2273 ../src/guestfs-actions.pod:2302
5915 #: ../src/guestfs-actions.pod:4932 ../src/guestfs-actions.pod:4958
5916 #: ../src/guestfs-actions.pod:5089 ../src/guestfs-actions.pod:5115
5917 #: ../src/guestfs-actions.pod:5139 ../src/guestfs-actions.pod:5990
5918 #: ../src/guestfs-actions.pod:6045 ../src/guestfs-actions.pod:6191
5919 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6877
5920 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6929
5921 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:7033
5922 #: ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7098
5923 #: ../src/guestfs-actions.pod:7117 ../fish/guestfish-actions.pod:582
5924 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
5925 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
5926 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
5927 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462
5928 #: ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500
5929 #: ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525
5930 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3294
5931 #: ../fish/guestfish-actions.pod:3309 ../fish/guestfish-actions.pod:3385
5932 #: ../fish/guestfish-actions.pod:3402 ../fish/guestfish-actions.pod:3417
5933 #: ../fish/guestfish-actions.pod:4000 ../fish/guestfish-actions.pod:4046
5934 #: ../fish/guestfish-actions.pod:4131 ../fish/guestfish-actions.pod:4146
5935 #: ../fish/guestfish-actions.pod:4556 ../fish/guestfish-actions.pod:4574
5936 #: ../fish/guestfish-actions.pod:4591 ../fish/guestfish-actions.pod:4601
5937 #: ../fish/guestfish-actions.pod:4649 ../fish/guestfish-actions.pod:4659
5938 #: ../fish/guestfish-actions.pod:4688 ../fish/guestfish-actions.pod:4698
5939 msgid ""
5940 "Because of the message protocol, there is a transfer limit of somewhere "
5941 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5942 msgstr ""
5943
5944 # type: textblock
5945 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:3264
5946 #: ../src/guestfs-actions.pod:3326 ../src/guestfs-actions.pod:3343
5947 #: ../src/guestfs-actions.pod:3431 ../src/guestfs-actions.pod:3836
5948 #: ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:5038
5949 #: ../src/guestfs-actions.pod:5052 ../src/guestfs-actions.pod:6764
5950 #: ../src/guestfs-actions.pod:6778
5951 msgid "(Added in 0.4)"
5952 msgstr ""
5953
5954 # type: =head2
5955 #: ../src/guestfs-actions.pod:877
5956 msgid "guestfs_checksum"
5957 msgstr ""
5958
5959 # type: verbatim
5960 #: ../src/guestfs-actions.pod:879
5961 #, no-wrap
5962 msgid ""
5963 " char *\n"
5964 " guestfs_checksum (guestfs_h *g,\n"
5965 "                   const char *csumtype,\n"
5966 "                   const char *path);\n"
5967 "\n"
5968 msgstr ""
5969
5970 # type: textblock
5971 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
5972 msgid ""
5973 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5974 msgstr ""
5975
5976 # type: textblock
5977 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
5978 msgid ""
5979 "The type of checksum to compute is given by the C<csumtype> parameter which "
5980 "must have one of the following values:"
5981 msgstr ""
5982
5983 # type: =item
5984 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
5985 msgid "C<crc>"
5986 msgstr ""
5987
5988 # type: textblock
5989 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
5990 msgid ""
5991 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5992 "C<cksum> command."
5993 msgstr ""
5994
5995 # type: =item
5996 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
5997 msgid "C<md5>"
5998 msgstr ""
5999
6000 # type: textblock
6001 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
6002 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6003 msgstr ""
6004
6005 # type: =item
6006 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
6007 msgid "C<sha1>"
6008 msgstr ""
6009
6010 # type: textblock
6011 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
6012 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6013 msgstr ""
6014
6015 # type: =item
6016 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
6017 msgid "C<sha224>"
6018 msgstr ""
6019
6020 # type: textblock
6021 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
6022 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6023 msgstr ""
6024
6025 # type: =item
6026 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
6027 msgid "C<sha256>"
6028 msgstr ""
6029
6030 # type: textblock
6031 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
6032 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6033 msgstr ""
6034
6035 # type: =item
6036 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
6037 msgid "C<sha384>"
6038 msgstr ""
6039
6040 # type: textblock
6041 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
6042 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6043 msgstr ""
6044
6045 # type: =item
6046 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
6047 msgid "C<sha512>"
6048 msgstr ""
6049
6050 # type: textblock
6051 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
6052 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6053 msgstr ""
6054
6055 # type: textblock
6056 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
6057 msgid "The checksum is returned as a printable string."
6058 msgstr ""
6059
6060 # type: textblock
6061 #: ../src/guestfs-actions.pod:925
6062 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6063 msgstr ""
6064
6065 # type: textblock
6066 #: ../src/guestfs-actions.pod:927
6067 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6068 msgstr ""
6069
6070 # type: textblock
6071 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:1240
6072 #: ../src/guestfs-actions.pod:2062 ../src/guestfs-actions.pod:3038
6073 #: ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3128
6074 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:6461
6075 msgid "(Added in 1.0.2)"
6076 msgstr ""
6077
6078 # type: =head2
6079 #: ../src/guestfs-actions.pod:934
6080 msgid "guestfs_checksum_device"
6081 msgstr ""
6082
6083 # type: verbatim
6084 #: ../src/guestfs-actions.pod:936
6085 #, no-wrap
6086 msgid ""
6087 " char *\n"
6088 " guestfs_checksum_device (guestfs_h *g,\n"
6089 "                          const char *csumtype,\n"
6090 "                          const char *device);\n"
6091 "\n"
6092 msgstr ""
6093
6094 # type: textblock
6095 #: ../src/guestfs-actions.pod:941
6096 msgid ""
6097 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6098 "device named C<device>.  For the types of checksums supported see the "
6099 "C<guestfs_checksum> command."
6100 msgstr ""
6101
6102 # type: textblock
6103 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:4569
6104 #: ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4665
6105 #: ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:4859
6106 #: ../src/guestfs-actions.pod:6370 ../src/guestfs-actions.pod:6384
6107 #: ../src/guestfs-actions.pod:6790
6108 msgid "(Added in 1.3.2)"
6109 msgstr ""
6110
6111 # type: =head2
6112 #: ../src/guestfs-actions.pod:950
6113 msgid "guestfs_checksums_out"
6114 msgstr ""
6115
6116 # type: verbatim
6117 #: ../src/guestfs-actions.pod:952
6118 #, no-wrap
6119 msgid ""
6120 " int\n"
6121 " guestfs_checksums_out (guestfs_h *g,\n"
6122 "                        const char *csumtype,\n"
6123 "                        const char *directory,\n"
6124 "                        const char *sumsfile);\n"
6125 "\n"
6126 msgstr ""
6127
6128 # type: textblock
6129 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
6130 msgid ""
6131 "This command computes the checksums of all regular files in C<directory> and "
6132 "then emits a list of those checksums to the local output file C<sumsfile>."
6133 msgstr ""
6134
6135 # type: textblock
6136 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
6137 msgid ""
6138 "This can be used for verifying the integrity of a virtual machine.  However "
6139 "to be properly secure you should pay attention to the output of the checksum "
6140 "command (it uses the ones from GNU coreutils).  In particular when the "
6141 "filename is not printable, coreutils uses a special backslash syntax.  For "
6142 "more information, see the GNU coreutils info file."
6143 msgstr ""
6144
6145 # type: textblock
6146 #: ../src/guestfs-actions.pod:972
6147 msgid "(Added in 1.3.7)"
6148 msgstr ""
6149
6150 # type: =head2
6151 #: ../src/guestfs-actions.pod:974
6152 msgid "guestfs_chmod"
6153 msgstr ""
6154
6155 # type: verbatim
6156 #: ../src/guestfs-actions.pod:976
6157 #, no-wrap
6158 msgid ""
6159 " int\n"
6160 " guestfs_chmod (guestfs_h *g,\n"
6161 "                int mode,\n"
6162 "                const char *path);\n"
6163 "\n"
6164 msgstr ""
6165
6166 # type: textblock
6167 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
6168 msgid ""
6169 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6170 "supported."
6171 msgstr ""
6172
6173 # type: textblock
6174 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
6175 msgid ""
6176 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6177 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6178 "C<700>."
6179 msgstr ""
6180
6181 # type: textblock
6182 #: ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:4087
6183 #: ../src/guestfs-actions.pod:4268 ../src/guestfs-actions.pod:4287
6184 #: ../src/guestfs-actions.pod:4306 ../fish/guestfish-actions.pod:671
6185 #: ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2869
6186 #: ../fish/guestfish-actions.pod:2879 ../fish/guestfish-actions.pod:2889
6187 msgid "The mode actually set is affected by the umask."
6188 msgstr ""
6189
6190 # type: =head2
6191 #: ../src/guestfs-actions.pod:994
6192 msgid "guestfs_chown"
6193 msgstr ""
6194
6195 # type: verbatim
6196 #: ../src/guestfs-actions.pod:996
6197 #, no-wrap
6198 msgid ""
6199 " int\n"
6200 " guestfs_chown (guestfs_h *g,\n"
6201 "                int owner,\n"
6202 "                int group,\n"
6203 "                const char *path);\n"
6204 "\n"
6205 msgstr ""
6206
6207 # type: textblock
6208 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
6209 msgid "Change the file owner to C<owner> and group to C<group>."
6210 msgstr ""
6211
6212 # type: textblock
6213 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3225
6214 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
6215 msgid ""
6216 "Only numeric uid and gid are supported.  If you want to use names, you will "
6217 "need to locate and parse the password file yourself (Augeas support makes "
6218 "this relatively easy)."
6219 msgstr ""
6220
6221 # type: =head2
6222 #: ../src/guestfs-actions.pod:1012
6223 msgid "guestfs_command"
6224 msgstr ""
6225
6226 # type: verbatim
6227 #: ../src/guestfs-actions.pod:1014
6228 #, no-wrap
6229 msgid ""
6230 " char *\n"
6231 " guestfs_command (guestfs_h *g,\n"
6232 "                  char *const *arguments);\n"
6233 "\n"
6234 msgstr ""
6235
6236 # type: textblock
6237 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
6238 msgid ""
6239 "This call runs a command from the guest filesystem.  The filesystem must be "
6240 "mounted, and must contain a compatible operating system (ie. something "
6241 "Linux, with the same or compatible processor architecture)."
6242 msgstr ""
6243
6244 # type: textblock
6245 #: ../src/guestfs-actions.pod:1023
6246 msgid ""
6247 "The single parameter is an argv-style list of arguments.  The first element "
6248 "is the name of the program to run.  Subsequent elements are parameters.  The "
6249 "list must be non-empty (ie. must contain a program name).  Note that the "
6250 "command runs directly, and is I<not> invoked via the shell (see "
6251 "C<guestfs_sh>)."
6252 msgstr ""
6253
6254 # type: textblock
6255 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
6256 msgid "The return value is anything printed to I<stdout> by the command."
6257 msgstr ""
6258
6259 # type: textblock
6260 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
6261 msgid ""
6262 "If the command returns a non-zero exit status, then this function returns an "
6263 "error message.  The error message string is the content of I<stderr> from "
6264 "the command."
6265 msgstr ""
6266
6267 # type: textblock
6268 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
6269 msgid ""
6270 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6271 "bin>.  If you require a program from another location, you should provide "
6272 "the full path in the first parameter."
6273 msgstr ""
6274
6275 # type: textblock
6276 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
6277 msgid ""
6278 "Shared libraries and data files required by the program must be available on "
6279 "filesystems which are mounted in the correct places.  It is the caller's "
6280 "responsibility to ensure all filesystems that are needed are mounted at the "
6281 "right locations."
6282 msgstr ""
6283
6284 # type: textblock
6285 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074
6286 #: ../src/guestfs-actions.pod:1537
6287 msgid "(Added in 0.9.1)"
6288 msgstr ""
6289
6290 # type: =head2
6291 #: ../src/guestfs-actions.pod:1056
6292 msgid "guestfs_command_lines"
6293 msgstr ""
6294
6295 # type: verbatim
6296 #: ../src/guestfs-actions.pod:1058
6297 #, no-wrap
6298 msgid ""
6299 " char **\n"
6300 " guestfs_command_lines (guestfs_h *g,\n"
6301 "                        char *const *arguments);\n"
6302 "\n"
6303 msgstr ""
6304
6305 # type: textblock
6306 #: ../src/guestfs-actions.pod:1062
6307 msgid ""
6308 "This is the same as C<guestfs_command>, but splits the result into a list of "
6309 "lines."
6310 msgstr ""
6311
6312 # type: textblock
6313 #: ../src/guestfs-actions.pod:1065
6314 msgid "See also: C<guestfs_sh_lines>"
6315 msgstr ""
6316
6317 # type: =head2
6318 #: ../src/guestfs-actions.pod:1076
6319 msgid "guestfs_config"
6320 msgstr ""
6321
6322 # type: verbatim
6323 #: ../src/guestfs-actions.pod:1078
6324 #, no-wrap
6325 msgid ""
6326 " int\n"
6327 " guestfs_config (guestfs_h *g,\n"
6328 "                 const char *qemuparam,\n"
6329 "                 const char *qemuvalue);\n"
6330 "\n"
6331 msgstr ""
6332
6333 # type: textblock
6334 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6335 msgid ""
6336 "This can be used to add arbitrary qemu command line parameters of the form "
6337 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6338 "setting some parameters which would interfere with parameters that we use."
6339 msgstr ""
6340
6341 # type: textblock
6342 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6343 msgid "The first character of C<param> string must be a C<-> (dash)."
6344 msgstr ""
6345
6346 # type: textblock
6347 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6348 msgid "C<value> can be NULL."
6349 msgstr ""
6350
6351 # type: =head2
6352 #: ../src/guestfs-actions.pod:1096
6353 msgid "guestfs_copy_size"
6354 msgstr ""
6355
6356 # type: verbatim
6357 #: ../src/guestfs-actions.pod:1098
6358 #, no-wrap
6359 msgid ""
6360 " int\n"
6361 " guestfs_copy_size (guestfs_h *g,\n"
6362 "                    const char *src,\n"
6363 "                    const char *dest,\n"
6364 "                    int64_t size);\n"
6365 "\n"
6366 msgstr ""
6367
6368 # type: textblock
6369 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6370 msgid ""
6371 "This command copies exactly C<size> bytes from one source device or file "
6372 "C<src> to another destination device or file C<dest>."
6373 msgstr ""
6374
6375 # type: textblock
6376 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6377 msgid ""
6378 "Note this will fail if the source is too short or if the destination is not "
6379 "large enough."
6380 msgstr ""
6381
6382 # type: textblock
6383 #: ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1235
6384 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1686
6385 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:6456
6386 #: ../src/guestfs-actions.pod:6490 ../src/guestfs-actions.pod:6969
6387 #: ../src/guestfs-actions.pod:6988
6388 msgid ""
6389 "This long-running command can generate progress notification messages so "
6390 "that the caller can display a progress bar or indicator.  To receive these "
6391 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6392 "guestfs_set_progress_callback>."
6393 msgstr ""
6394
6395 # type: textblock
6396 #: ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:3863
6397 #: ../src/guestfs-actions.pod:5065 ../src/guestfs-actions.pod:6697
6398 #: ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:6803
6399 msgid "(Added in 1.0.87)"
6400 msgstr ""
6401
6402 # type: =head2
6403 #: ../src/guestfs-actions.pod:1119
6404 msgid "guestfs_cp"
6405 msgstr ""
6406
6407 # type: verbatim
6408 #: ../src/guestfs-actions.pod:1121
6409 #, no-wrap
6410 msgid ""
6411 " int\n"
6412 " guestfs_cp (guestfs_h *g,\n"
6413 "             const char *src,\n"
6414 "             const char *dest);\n"
6415 "\n"
6416 msgstr ""
6417
6418 # type: textblock
6419 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6420 msgid ""
6421 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6422 "destination filename or destination directory."
6423 msgstr ""
6424
6425 # type: textblock
6426 #: ../src/guestfs-actions.pod:1131 ../src/guestfs-actions.pod:1145
6427 #: ../src/guestfs-actions.pod:1217 ../src/guestfs-actions.pod:1291
6428 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:4532
6429 #: ../src/guestfs-actions.pod:4909
6430 msgid "(Added in 1.0.18)"
6431 msgstr ""
6432
6433 # type: =head2
6434 #: ../src/guestfs-actions.pod:1133
6435 msgid "guestfs_cp_a"
6436 msgstr ""
6437
6438 # type: verbatim
6439 #: ../src/guestfs-actions.pod:1135
6440 #, no-wrap
6441 msgid ""
6442 " int\n"
6443 " guestfs_cp_a (guestfs_h *g,\n"
6444 "               const char *src,\n"
6445 "               const char *dest);\n"
6446 "\n"
6447 msgstr ""
6448
6449 # type: textblock
6450 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6451 msgid ""
6452 "This copies a file or directory from C<src> to C<dest> recursively using the "
6453 "C<cp -a> command."
6454 msgstr ""
6455
6456 # type: =head2
6457 #: ../src/guestfs-actions.pod:1147
6458 msgid "guestfs_dd"
6459 msgstr ""
6460
6461 # type: verbatim
6462 #: ../src/guestfs-actions.pod:1149
6463 #, no-wrap
6464 msgid ""
6465 " int\n"
6466 " guestfs_dd (guestfs_h *g,\n"
6467 "             const char *src,\n"
6468 "             const char *dest);\n"
6469 "\n"
6470 msgstr ""
6471
6472 # type: textblock
6473 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6474 msgid ""
6475 "This command copies from one source device or file C<src> to another "
6476 "destination device or file C<dest>.  Normally you would use this to copy to "
6477 "or from a device or partition, for example to duplicate a filesystem."
6478 msgstr ""
6479
6480 # type: textblock
6481 #: ../src/guestfs-actions.pod:1159
6482 msgid ""
6483 "If the destination is a device, it must be as large or larger than the "
6484 "source file or device, otherwise the copy will fail.  This command cannot do "
6485 "partial copies (see C<guestfs_copy_size>)."
6486 msgstr ""
6487
6488 # type: =head2
6489 #: ../src/guestfs-actions.pod:1167
6490 msgid "guestfs_df"
6491 msgstr ""
6492
6493 # type: verbatim
6494 #: ../src/guestfs-actions.pod:1169
6495 #, no-wrap
6496 msgid ""
6497 " char *\n"
6498 " guestfs_df (guestfs_h *g);\n"
6499 "\n"
6500 msgstr ""
6501
6502 # type: textblock
6503 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6504 msgid "This command runs the C<df> command to report disk space used."
6505 msgstr ""
6506
6507 # type: textblock
6508 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191
6509 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6510 msgid ""
6511 "This command is mostly useful for interactive sessions.  It is I<not> "
6512 "intended that you try to parse the output string.  Use C<statvfs> from "
6513 "programs."
6514 msgstr ""
6515
6516 # type: textblock
6517 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1198
6518 #: ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2235
6519 #: ../src/guestfs-actions.pod:2259 ../src/guestfs-actions.pod:2327
6520 #: ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4432
6521 #: ../src/guestfs-actions.pod:6194 ../src/guestfs-actions.pod:6218
6522 #: ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:6849
6523 #: ../src/guestfs-actions.pod:6862
6524 msgid "(Added in 1.0.54)"
6525 msgstr ""
6526
6527 # type: =head2
6528 #: ../src/guestfs-actions.pod:1183
6529 msgid "guestfs_df_h"
6530 msgstr ""
6531
6532 # type: verbatim
6533 #: ../src/guestfs-actions.pod:1185
6534 #, no-wrap
6535 msgid ""
6536 " char *\n"
6537 " guestfs_df_h (guestfs_h *g);\n"
6538 "\n"
6539 msgstr ""
6540
6541 # type: textblock
6542 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6543 msgid ""
6544 "This command runs the C<df -h> command to report disk space used in human-"
6545 "readable format."
6546 msgstr ""
6547
6548 # type: =head2
6549 #: ../src/guestfs-actions.pod:1200
6550 msgid "guestfs_dmesg"
6551 msgstr ""
6552
6553 # type: verbatim
6554 #: ../src/guestfs-actions.pod:1202
6555 #, no-wrap
6556 msgid ""
6557 " char *\n"
6558 " guestfs_dmesg (guestfs_h *g);\n"
6559 "\n"
6560 msgstr ""
6561
6562 # type: textblock
6563 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6564 msgid ""
6565 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6566 "This is sometimes useful for extended debugging of problems."
6567 msgstr ""
6568
6569 # type: textblock
6570 #: ../src/guestfs-actions.pod:1209
6571 msgid ""
6572 "Another way to get the same information is to enable verbose messages with "
6573 "C<guestfs_set_verbose> or by setting the environment variable "
6574 "C<LIBGUESTFS_DEBUG=1> before running the program."
6575 msgstr ""
6576
6577 # type: =head2
6578 #: ../src/guestfs-actions.pod:1219
6579 msgid "guestfs_download"
6580 msgstr ""
6581
6582 # type: verbatim
6583 #: ../src/guestfs-actions.pod:1221
6584 #, no-wrap
6585 msgid ""
6586 " int\n"
6587 " guestfs_download (guestfs_h *g,\n"
6588 "                   const char *remotefilename,\n"
6589 "                   const char *filename);\n"
6590 "\n"
6591 msgstr ""
6592
6593 # type: textblock
6594 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251
6595 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6596 msgid ""
6597 "Download file C<remotefilename> and save it as C<filename> on the local "
6598 "machine."
6599 msgstr ""
6600
6601 # type: textblock
6602 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6450
6603 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4304
6604 msgid "C<filename> can also be a named pipe."
6605 msgstr ""
6606
6607 # type: textblock
6608 #: ../src/guestfs-actions.pod:1231
6609 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6610 msgstr ""
6611
6612 # type: =head2
6613 #: ../src/guestfs-actions.pod:1242
6614 msgid "guestfs_download_offset"
6615 msgstr ""
6616
6617 # type: verbatim
6618 #: ../src/guestfs-actions.pod:1244
6619 #, no-wrap
6620 msgid ""
6621 " int\n"
6622 " guestfs_download_offset (guestfs_h *g,\n"
6623 "                          const char *remotefilename,\n"
6624 "                          const char *filename,\n"
6625 "                          int64_t offset,\n"
6626 "                          int64_t size);\n"
6627 "\n"
6628 msgstr ""
6629
6630 # type: textblock
6631 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6632 msgid ""
6633 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6634 "region must be within the file or device)."
6635 msgstr ""
6636
6637 # type: textblock
6638 #: ../src/guestfs-actions.pod:1257
6639 msgid ""
6640 "Note that there is no limit on the amount of data that can be downloaded "
6641 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6642 "full amount unless an error occurs."
6643 msgstr ""
6644
6645 # type: textblock
6646 #: ../src/guestfs-actions.pod:1262
6647 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6648 msgstr ""
6649
6650 # type: textblock
6651 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6495
6652 msgid "(Added in 1.5.17)"
6653 msgstr ""
6654
6655 # type: =head2
6656 #: ../src/guestfs-actions.pod:1273
6657 msgid "guestfs_drop_caches"
6658 msgstr ""
6659
6660 # type: verbatim
6661 #: ../src/guestfs-actions.pod:1275
6662 #, no-wrap
6663 msgid ""
6664 " int\n"
6665 " guestfs_drop_caches (guestfs_h *g,\n"
6666 "                      int whattodrop);\n"
6667 "\n"
6668 msgstr ""
6669
6670 # type: textblock
6671 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6672 msgid ""
6673 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6674 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6675 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6676 msgstr ""
6677
6678 # type: textblock
6679 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6680 msgid "Setting C<whattodrop> to 3 should drop everything."
6681 msgstr ""
6682
6683 # type: textblock
6684 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6685 msgid ""
6686 "This automatically calls L<sync(2)> before the operation, so that the "
6687 "maximum guest memory is freed."
6688 msgstr ""
6689
6690 # type: =head2
6691 #: ../src/guestfs-actions.pod:1293
6692 msgid "guestfs_du"
6693 msgstr ""
6694
6695 # type: verbatim
6696 #: ../src/guestfs-actions.pod:1295
6697 #, no-wrap
6698 msgid ""
6699 " int64_t\n"
6700 " guestfs_du (guestfs_h *g,\n"
6701 "             const char *path);\n"
6702 "\n"
6703 msgstr ""
6704
6705 # type: textblock
6706 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6707 msgid ""
6708 "This command runs the C<du -s> command to estimate file space usage for "
6709 "C<path>."
6710 msgstr ""
6711
6712 # type: textblock
6713 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6714 msgid ""
6715 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6716 "estimate includes the contents of the directory and all subdirectories "
6717 "(recursively)."
6718 msgstr ""
6719
6720 # type: textblock
6721 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6722 msgid ""
6723 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6724 msgstr ""
6725
6726 # type: =head2
6727 #: ../src/guestfs-actions.pod:1313
6728 msgid "guestfs_e2fsck_f"
6729 msgstr ""
6730
6731 # type: verbatim
6732 #: ../src/guestfs-actions.pod:1315
6733 #, no-wrap
6734 msgid ""
6735 " int\n"
6736 " guestfs_e2fsck_f (guestfs_h *g,\n"
6737 "                   const char *device);\n"
6738 "\n"
6739 msgstr ""
6740
6741 # type: textblock
6742 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6743 msgid ""
6744 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6745 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6746 "clean (C<-f>)."
6747 msgstr ""
6748
6749 # type: textblock
6750 #: ../src/guestfs-actions.pod:1323
6751 msgid ""
6752 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6753 "Normally you should use C<guestfs_fsck>."
6754 msgstr ""
6755
6756 # type: textblock
6757 #: ../src/guestfs-actions.pod:1328
6758 msgid "(Added in 1.0.29)"
6759 msgstr ""
6760
6761 # type: =head2
6762 #: ../src/guestfs-actions.pod:1330
6763 msgid "guestfs_echo_daemon"
6764 msgstr ""
6765
6766 # type: verbatim
6767 #: ../src/guestfs-actions.pod:1332
6768 #, no-wrap
6769 msgid ""
6770 " char *\n"
6771 " guestfs_echo_daemon (guestfs_h *g,\n"
6772 "                      char *const *words);\n"
6773 "\n"
6774 msgstr ""
6775
6776 # type: textblock
6777 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6778 msgid ""
6779 "This command concatenates the list of C<words> passed with single spaces "
6780 "between them and returns the resulting string."
6781 msgstr ""
6782
6783 # type: textblock
6784 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6785 msgid "You can use this command to test the connection through to the daemon."
6786 msgstr ""
6787
6788 # type: textblock
6789 #: ../src/guestfs-actions.pod:1341
6790 msgid "See also C<guestfs_ping_daemon>."
6791 msgstr ""
6792
6793 # type: textblock
6794 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073
6795 #: ../src/guestfs-actions.pod:5698
6796 msgid "(Added in 1.0.69)"
6797 msgstr ""
6798
6799 # type: =head2
6800 #: ../src/guestfs-actions.pod:1348
6801 msgid "guestfs_egrep"
6802 msgstr ""
6803
6804 # type: verbatim
6805 #: ../src/guestfs-actions.pod:1350
6806 #, no-wrap
6807 msgid ""
6808 " char **\n"
6809 " guestfs_egrep (guestfs_h *g,\n"
6810 "                const char *regex,\n"
6811 "                const char *path);\n"
6812 "\n"
6813 msgstr ""
6814
6815 # type: textblock
6816 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6817 msgid ""
6818 "This calls the external C<egrep> program and returns the matching lines."
6819 msgstr ""
6820
6821 # type: textblock
6822 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1384
6823 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1487
6824 #: ../src/guestfs-actions.pod:1506 ../src/guestfs-actions.pod:2173
6825 #: ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2348
6826 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:2376
6827 #: ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2444
6828 #: ../src/guestfs-actions.pod:2457 ../src/guestfs-actions.pod:3356
6829 #: ../src/guestfs-actions.pod:3370 ../src/guestfs-actions.pod:3383
6830 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:4367
6831 #: ../src/guestfs-actions.pod:5243 ../src/guestfs-actions.pod:5292
6832 #: ../src/guestfs-actions.pod:6062 ../src/guestfs-actions.pod:6074
6833 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6100
6834 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6135
6835 #: ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6161
6836 #: ../src/guestfs-actions.pod:6932 ../src/guestfs-actions.pod:6951
6837 #: ../src/guestfs-actions.pod:7036 ../src/guestfs-actions.pod:7055
6838 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7120
6839 msgid "(Added in 1.0.66)"
6840 msgstr ""
6841
6842 # type: =head2
6843 #: ../src/guestfs-actions.pod:1367
6844 msgid "guestfs_egrepi"
6845 msgstr ""
6846
6847 # type: verbatim
6848 #: ../src/guestfs-actions.pod:1369
6849 #, no-wrap
6850 msgid ""
6851 " char **\n"
6852 " guestfs_egrepi (guestfs_h *g,\n"
6853 "                 const char *regex,\n"
6854 "                 const char *path);\n"
6855 "\n"
6856 msgstr ""
6857
6858 # type: textblock
6859 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6860 msgid ""
6861 "This calls the external C<egrep -i> program and returns the matching lines."
6862 msgstr ""
6863
6864 # type: =head2
6865 #: ../src/guestfs-actions.pod:1386
6866 msgid "guestfs_equal"
6867 msgstr ""
6868
6869 # type: verbatim
6870 #: ../src/guestfs-actions.pod:1388
6871 #, no-wrap
6872 msgid ""
6873 " int\n"
6874 " guestfs_equal (guestfs_h *g,\n"
6875 "                const char *file1,\n"
6876 "                const char *file2);\n"
6877 "\n"
6878 msgstr ""
6879
6880 # type: textblock
6881 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6882 msgid ""
6883 "This compares the two files C<file1> and C<file2> and returns true if their "
6884 "content is exactly equal, or false otherwise."
6885 msgstr ""
6886
6887 # type: textblock
6888 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6889 msgid "The external L<cmp(1)> program is used for the comparison."
6890 msgstr ""
6891
6892 # type: =head2
6893 #: ../src/guestfs-actions.pod:1402
6894 msgid "guestfs_exists"
6895 msgstr ""
6896
6897 # type: verbatim
6898 #: ../src/guestfs-actions.pod:1404
6899 #, no-wrap
6900 msgid ""
6901 " int\n"
6902 " guestfs_exists (guestfs_h *g,\n"
6903 "                 const char *path);\n"
6904 "\n"
6905 msgstr ""
6906
6907 # type: textblock
6908 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6909 msgid ""
6910 "This returns C<true> if and only if there is a file, directory (or anything) "
6911 "with the given C<path> name."
6912 msgstr ""
6913
6914 # type: textblock
6915 #: ../src/guestfs-actions.pod:1411
6916 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6917 msgstr ""
6918
6919 # type: =head2
6920 #: ../src/guestfs-actions.pod:1417
6921 msgid "guestfs_fallocate"
6922 msgstr ""
6923
6924 # type: verbatim
6925 #: ../src/guestfs-actions.pod:1419
6926 #, no-wrap
6927 msgid ""
6928 " int\n"
6929 " guestfs_fallocate (guestfs_h *g,\n"
6930 "                    const char *path,\n"
6931 "                    int len);\n"
6932 "\n"
6933 msgstr ""
6934
6935 # type: textblock
6936 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450
6937 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6938 msgid ""
6939 "This command preallocates a file (containing zero bytes) named C<path> of "
6940 "size C<len> bytes.  If the file exists already, it is overwritten."
6941 msgstr ""
6942
6943 # type: textblock
6944 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
6945 msgid ""
6946 "Do not confuse this with the guestfish-specific C<alloc> command which "
6947 "allocates a file in the host and attaches it as a device."
6948 msgstr ""
6949
6950 # type: textblock
6951 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
6952 msgid ""
6953 "This function is deprecated.  In new code, use the C<fallocate64> call "
6954 "instead."
6955 msgstr ""
6956
6957 # type: =head2
6958 #: ../src/guestfs-actions.pod:1443
6959 msgid "guestfs_fallocate64"
6960 msgstr ""
6961
6962 # type: verbatim
6963 #: ../src/guestfs-actions.pod:1445
6964 #, no-wrap
6965 msgid ""
6966 " int\n"
6967 " guestfs_fallocate64 (guestfs_h *g,\n"
6968 "                      const char *path,\n"
6969 "                      int64_t len);\n"
6970 "\n"
6971 msgstr ""
6972
6973 # type: textblock
6974 #: ../src/guestfs-actions.pod:1454
6975 msgid ""
6976 "Note that this call allocates disk blocks for the file.  To create a sparse "
6977 "file use C<guestfs_truncate_size> instead."
6978 msgstr ""
6979
6980 # type: textblock
6981 #: ../src/guestfs-actions.pod:1457
6982 msgid ""
6983 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6984 "oversight it only allowed 30 bit lengths to be specified, effectively "
6985 "limiting the maximum size of files created through that call to 1GB."
6986 msgstr ""
6987
6988 # type: textblock
6989 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
6990 msgid ""
6991 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6992 "commands which create a file in the host and attach it as a device."
6993 msgstr ""
6994
6995 # type: textblock
6996 #: ../src/guestfs-actions.pod:1468
6997 msgid "(Added in 1.3.17)"
6998 msgstr ""
6999
7000 # type: =head2
7001 #: ../src/guestfs-actions.pod:1470
7002 msgid "guestfs_fgrep"
7003 msgstr ""
7004
7005 # type: verbatim
7006 #: ../src/guestfs-actions.pod:1472
7007 #, no-wrap
7008 msgid ""
7009 " char **\n"
7010 " guestfs_fgrep (guestfs_h *g,\n"
7011 "                const char *pattern,\n"
7012 "                const char *path);\n"
7013 "\n"
7014 msgstr ""
7015
7016 # type: textblock
7017 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
7018 msgid ""
7019 "This calls the external C<fgrep> program and returns the matching lines."
7020 msgstr ""
7021
7022 # type: =head2
7023 #: ../src/guestfs-actions.pod:1489
7024 msgid "guestfs_fgrepi"
7025 msgstr ""
7026
7027 # type: verbatim
7028 #: ../src/guestfs-actions.pod:1491
7029 #, no-wrap
7030 msgid ""
7031 " char **\n"
7032 " guestfs_fgrepi (guestfs_h *g,\n"
7033 "                 const char *pattern,\n"
7034 "                 const char *path);\n"
7035 "\n"
7036 msgstr ""
7037
7038 # type: textblock
7039 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
7040 msgid ""
7041 "This calls the external C<fgrep -i> program and returns the matching lines."
7042 msgstr ""
7043
7044 # type: =head2
7045 #: ../src/guestfs-actions.pod:1508
7046 msgid "guestfs_file"
7047 msgstr ""
7048
7049 # type: verbatim
7050 #: ../src/guestfs-actions.pod:1510
7051 #, no-wrap
7052 msgid ""
7053 " char *\n"
7054 " guestfs_file (guestfs_h *g,\n"
7055 "               const char *path);\n"
7056 "\n"
7057 msgstr ""
7058
7059 # type: textblock
7060 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
7061 msgid ""
7062 "This call uses the standard L<file(1)> command to determine the type or "
7063 "contents of the file."
7064 msgstr ""
7065
7066 # type: textblock
7067 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
7068 msgid ""
7069 "This call will also transparently look inside various types of compressed "
7070 "file."
7071 msgstr ""
7072
7073 # type: textblock
7074 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
7075 msgid ""
7076 "The exact command which runs is C<file -zb path>.  Note in particular that "
7077 "the filename is not prepended to the output (the C<-b> option)."
7078 msgstr ""
7079
7080 # type: textblock
7081 #: ../src/guestfs-actions.pod:1524
7082 msgid ""
7083 "This command can also be used on C</dev/> devices (and partitions, LV "
7084 "names).  You can for example use this to determine if a device contains a "
7085 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7086 msgstr ""
7087
7088 # type: textblock
7089 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
7090 msgid ""
7091 "If the C<path> does not begin with C</dev/> then this command only works for "
7092 "the content of regular files.  For other file types (directory, symbolic "
7093 "link etc) it will just return the string C<directory> etc."
7094 msgstr ""
7095
7096 # type: =head2
7097 #: ../src/guestfs-actions.pod:1539
7098 msgid "guestfs_file_architecture"
7099 msgstr ""
7100
7101 # type: verbatim
7102 #: ../src/guestfs-actions.pod:1541
7103 #, no-wrap
7104 msgid ""
7105 " char *\n"
7106 " guestfs_file_architecture (guestfs_h *g,\n"
7107 "                            const char *filename);\n"
7108 "\n"
7109 msgstr ""
7110
7111 # type: textblock
7112 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
7113 msgid ""
7114 "This detects the architecture of the binary C<filename>, and returns it if "
7115 "known."
7116 msgstr ""
7117
7118 # type: textblock
7119 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
7120 msgid "Currently defined architectures are:"
7121 msgstr ""
7122
7123 # type: =item
7124 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
7125 msgid "\"i386\""
7126 msgstr ""
7127
7128 # type: textblock
7129 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
7130 msgid ""
7131 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7132 "irrespective of the precise processor requirements of the binary."
7133 msgstr ""
7134
7135 # type: =item
7136 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
7137 msgid "\"x86_64\""
7138 msgstr ""
7139
7140 # type: textblock
7141 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
7142 msgid "64 bit x86-64."
7143 msgstr ""
7144
7145 # type: =item
7146 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
7147 msgid "\"sparc\""
7148 msgstr ""
7149
7150 # type: textblock
7151 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
7152 msgid "32 bit SPARC."
7153 msgstr ""
7154
7155 # type: =item
7156 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
7157 msgid "\"sparc64\""
7158 msgstr ""
7159
7160 # type: textblock
7161 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
7162 msgid "64 bit SPARC V9 and above."
7163 msgstr ""
7164
7165 # type: =item
7166 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
7167 msgid "\"ia64\""
7168 msgstr ""
7169
7170 # type: textblock
7171 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
7172 msgid "Intel Itanium."
7173 msgstr ""
7174
7175 # type: =item
7176 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
7177 msgid "\"ppc\""
7178 msgstr ""
7179
7180 # type: textblock
7181 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
7182 msgid "32 bit Power PC."
7183 msgstr ""
7184
7185 # type: =item
7186 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
7187 msgid "\"ppc64\""
7188 msgstr ""
7189
7190 # type: textblock
7191 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
7192 msgid "64 bit Power PC."
7193 msgstr ""
7194
7195 # type: textblock
7196 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
7197 msgid "Libguestfs may return other architecture strings in future."
7198 msgstr ""
7199
7200 # type: textblock
7201 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
7202 msgid "The function works on at least the following types of files:"
7203 msgstr ""
7204
7205 # type: textblock
7206 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
7207 msgid "many types of Un*x and Linux binary"
7208 msgstr ""
7209
7210 # type: textblock
7211 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
7212 msgid "many types of Un*x and Linux shared library"
7213 msgstr ""
7214
7215 # type: textblock
7216 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
7217 msgid "Windows Win32 and Win64 binaries"
7218 msgstr ""
7219
7220 # type: textblock
7221 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
7222 msgid "Windows Win32 and Win64 DLLs"
7223 msgstr ""
7224
7225 # type: textblock
7226 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
7227 msgid "Win32 binaries and DLLs return C<i386>."
7228 msgstr ""
7229
7230 # type: textblock
7231 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
7232 msgid "Win64 binaries and DLLs return C<x86_64>."
7233 msgstr ""
7234
7235 # type: textblock
7236 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
7237 msgid "Linux kernel modules"
7238 msgstr ""
7239
7240 # type: textblock
7241 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
7242 msgid "Linux new-style initrd images"
7243 msgstr ""
7244
7245 # type: textblock
7246 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
7247 msgid "some non-x86 Linux vmlinuz kernels"
7248 msgstr ""
7249
7250 # type: textblock
7251 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
7252 msgid "What it can't do currently:"
7253 msgstr ""
7254
7255 # type: textblock
7256 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
7257 msgid "static libraries (libfoo.a)"
7258 msgstr ""
7259
7260 # type: textblock
7261 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
7262 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7263 msgstr ""
7264
7265 # type: textblock
7266 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
7267 msgid "x86 Linux vmlinuz kernels"
7268 msgstr ""
7269
7270 # type: textblock
7271 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
7272 msgid ""
7273 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7274 "compressed code, and are horribly hard to unpack.  If you want to find the "
7275 "architecture of a kernel, use the architecture of the associated initrd or "
7276 "kernel module(s) instead."
7277 msgstr ""
7278
7279 # type: textblock
7280 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1812
7281 #: ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:2480
7282 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2587
7283 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2657
7284 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2774
7285 #: ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:3009
7286 #: ../src/guestfs-actions.pod:3141
7287 msgid "(Added in 1.5.3)"
7288 msgstr ""
7289
7290 # type: =head2
7291 #: ../src/guestfs-actions.pod:1651
7292 msgid "guestfs_filesize"
7293 msgstr ""
7294
7295 # type: verbatim
7296 #: ../src/guestfs-actions.pod:1653
7297 #, no-wrap
7298 msgid ""
7299 " int64_t\n"
7300 " guestfs_filesize (guestfs_h *g,\n"
7301 "                   const char *file);\n"
7302 "\n"
7303 msgstr ""
7304
7305 # type: textblock
7306 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
7307 msgid "This command returns the size of C<file> in bytes."
7308 msgstr ""
7309
7310 # type: textblock
7311 #: ../src/guestfs-actions.pod:1659
7312 msgid ""
7313 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7314 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7315 "devices, use C<guestfs_blockdev_getsize64>."
7316 msgstr ""
7317
7318 # type: textblock
7319 #: ../src/guestfs-actions.pod:1665
7320 msgid "(Added in 1.0.82)"
7321 msgstr ""
7322
7323 # type: =head2
7324 #: ../src/guestfs-actions.pod:1667
7325 msgid "guestfs_fill"
7326 msgstr ""
7327
7328 # type: verbatim
7329 #: ../src/guestfs-actions.pod:1669
7330 #, no-wrap
7331 msgid ""
7332 " int\n"
7333 " guestfs_fill (guestfs_h *g,\n"
7334 "               int c,\n"
7335 "               int len,\n"
7336 "               const char *path);\n"
7337 "\n"
7338 msgstr ""
7339
7340 # type: textblock
7341 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
7342 msgid ""
7343 "This command creates a new file called C<path>.  The initial content of the "
7344 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7345 "[0..255]>."
7346 msgstr ""
7347
7348 # type: textblock
7349 #: ../src/guestfs-actions.pod:1679
7350 msgid ""
7351 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7352 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7353 "bytes use C<guestfs_fill_pattern>."
7354 msgstr ""
7355
7356 # type: textblock
7357 #: ../src/guestfs-actions.pod:1691
7358 msgid "(Added in 1.0.79)"
7359 msgstr ""
7360
7361 # type: =head2
7362 #: ../src/guestfs-actions.pod:1693
7363 msgid "guestfs_fill_pattern"
7364 msgstr ""
7365
7366 # type: verbatim
7367 #: ../src/guestfs-actions.pod:1695
7368 #, no-wrap
7369 msgid ""
7370 " int\n"
7371 " guestfs_fill_pattern (guestfs_h *g,\n"
7372 "                       const char *pattern,\n"
7373 "                       int len,\n"
7374 "                       const char *path);\n"
7375 "\n"
7376 msgstr ""
7377
7378 # type: textblock
7379 #: ../src/guestfs-actions.pod:1701
7380 msgid ""
7381 "This function is like C<guestfs_fill> except that it creates a new file of "
7382 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7383 "pattern is truncated if necessary to ensure the length of the file is "
7384 "exactly C<len> bytes."
7385 msgstr ""
7386
7387 # type: textblock
7388 #: ../src/guestfs-actions.pod:1713
7389 msgid "(Added in 1.3.12)"
7390 msgstr ""
7391
7392 # type: =head2
7393 #: ../src/guestfs-actions.pod:1715
7394 msgid "guestfs_find"
7395 msgstr ""
7396
7397 # type: verbatim
7398 #: ../src/guestfs-actions.pod:1717
7399 #, no-wrap
7400 msgid ""
7401 " char **\n"
7402 " guestfs_find (guestfs_h *g,\n"
7403 "               const char *directory);\n"
7404 "\n"
7405 msgstr ""
7406
7407 # type: textblock
7408 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7409 msgid ""
7410 "This command lists out all files and directories, recursively, starting at "
7411 "C<directory>.  It is essentially equivalent to running the shell command "
7412 "C<find directory -print> but some post-processing happens on the output, "
7413 "described below."
7414 msgstr ""
7415
7416 # type: textblock
7417 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7418 msgid ""
7419 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7420 "structure was:"
7421 msgstr ""
7422
7423 # type: verbatim
7424 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7425 #, no-wrap
7426 msgid ""
7427 " /tmp/a\n"
7428 " /tmp/b\n"
7429 " /tmp/c/d\n"
7430 "\n"
7431 msgstr ""
7432
7433 # type: textblock
7434 #: ../src/guestfs-actions.pod:1733
7435 msgid ""
7436 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7437 msgstr ""
7438
7439 # type: verbatim
7440 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7441 #, no-wrap
7442 msgid ""
7443 " a\n"
7444 " b\n"
7445 " c\n"
7446 " c/d\n"
7447 "\n"
7448 msgstr ""
7449
7450 # type: textblock
7451 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7452 msgid "If C<directory> is not a directory, then this command returns an error."
7453 msgstr ""
7454
7455 # type: textblock
7456 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7457 msgid "The returned list is sorted."
7458 msgstr ""
7459
7460 # type: textblock
7461 #: ../src/guestfs-actions.pod:1746
7462 msgid "See also C<guestfs_find0>."
7463 msgstr ""
7464
7465 # type: textblock
7466 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3800
7467 #: ../src/guestfs-actions.pod:5327
7468 msgid "(Added in 1.0.27)"
7469 msgstr ""
7470
7471 # type: =head2
7472 #: ../src/guestfs-actions.pod:1757
7473 msgid "guestfs_find0"
7474 msgstr ""
7475
7476 # type: verbatim
7477 #: ../src/guestfs-actions.pod:1759
7478 #, no-wrap
7479 msgid ""
7480 " int\n"
7481 " guestfs_find0 (guestfs_h *g,\n"
7482 "                const char *directory,\n"
7483 "                const char *files);\n"
7484 "\n"
7485 msgstr ""
7486
7487 # type: textblock
7488 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7489 msgid ""
7490 "This command lists out all files and directories, recursively, starting at "
7491 "C<directory>, placing the resulting list in the external file called "
7492 "C<files>."
7493 msgstr ""
7494
7495 # type: textblock
7496 #: ../src/guestfs-actions.pod:1768
7497 msgid ""
7498 "This command works the same way as C<guestfs_find> with the following "
7499 "exceptions:"
7500 msgstr ""
7501
7502 # type: textblock
7503 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7504 msgid "The resulting list is written to an external file."
7505 msgstr ""
7506
7507 # type: textblock
7508 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7509 msgid ""
7510 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7511 "L<find(1)> option I<-print0>."
7512 msgstr ""
7513
7514 # type: textblock
7515 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7516 msgid "This command is not limited in the number of names that it can return."
7517 msgstr ""
7518
7519 # type: textblock
7520 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7521 msgid "The result list is not sorted."
7522 msgstr ""
7523
7524 # type: textblock
7525 #: ../src/guestfs-actions.pod:1795
7526 msgid "(Added in 1.0.74)"
7527 msgstr ""
7528
7529 # type: =head2
7530 #: ../src/guestfs-actions.pod:1797
7531 msgid "guestfs_findfs_label"
7532 msgstr ""
7533
7534 # type: verbatim
7535 #: ../src/guestfs-actions.pod:1799
7536 #, no-wrap
7537 msgid ""
7538 " char *\n"
7539 " guestfs_findfs_label (guestfs_h *g,\n"
7540 "                       const char *label);\n"
7541 "\n"
7542 msgstr ""
7543
7544 # type: textblock
7545 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7546 msgid ""
7547 "This command searches the filesystems and returns the one which has the "
7548 "given label.  An error is returned if no such filesystem can be found."
7549 msgstr ""
7550
7551 # type: textblock
7552 #: ../src/guestfs-actions.pod:1807
7553 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7554 msgstr ""
7555
7556 # type: =head2
7557 #: ../src/guestfs-actions.pod:1814
7558 msgid "guestfs_findfs_uuid"
7559 msgstr ""
7560
7561 # type: verbatim
7562 #: ../src/guestfs-actions.pod:1816
7563 #, no-wrap
7564 msgid ""
7565 " char *\n"
7566 " guestfs_findfs_uuid (guestfs_h *g,\n"
7567 "                      const char *uuid);\n"
7568 "\n"
7569 msgstr ""
7570
7571 # type: textblock
7572 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7573 msgid ""
7574 "This command searches the filesystems and returns the one which has the "
7575 "given UUID.  An error is returned if no such filesystem can be found."
7576 msgstr ""
7577
7578 # type: textblock
7579 #: ../src/guestfs-actions.pod:1824
7580 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7581 msgstr ""
7582
7583 # type: =head2
7584 #: ../src/guestfs-actions.pod:1831
7585 msgid "guestfs_fsck"
7586 msgstr ""
7587
7588 # type: verbatim
7589 #: ../src/guestfs-actions.pod:1833
7590 #, no-wrap
7591 msgid ""
7592 " int\n"
7593 " guestfs_fsck (guestfs_h *g,\n"
7594 "               const char *fstype,\n"
7595 "               const char *device);\n"
7596 "\n"
7597 msgstr ""
7598
7599 # type: textblock
7600 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7601 msgid ""
7602 "This runs the filesystem checker (fsck) on C<device> which should have "
7603 "filesystem type C<fstype>."
7604 msgstr ""
7605
7606 # type: textblock
7607 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7608 msgid ""
7609 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7610 "codes from C<fsck>."
7611 msgstr ""
7612
7613 # type: textblock
7614 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7615 msgid "Multiple status codes can be summed together."
7616 msgstr ""
7617
7618 # type: textblock
7619 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7620 msgid ""
7621 "A non-zero return code can mean \"success\", for example if errors have been "
7622 "corrected on the filesystem."
7623 msgstr ""
7624
7625 # type: textblock
7626 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7627 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7628 msgstr ""
7629
7630 # type: textblock
7631 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7632 msgid ""
7633 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7634 msgstr ""
7635
7636 # type: textblock
7637 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:6974
7638 msgid "(Added in 1.0.16)"
7639 msgstr ""
7640
7641 # type: =head2
7642 #: ../src/guestfs-actions.pod:1870
7643 msgid "guestfs_get_append"
7644 msgstr ""
7645
7646 # type: verbatim
7647 #: ../src/guestfs-actions.pod:1872
7648 #, no-wrap
7649 msgid ""
7650 " const char *\n"
7651 " guestfs_get_append (guestfs_h *g);\n"
7652 "\n"
7653 msgstr ""
7654
7655 # type: textblock
7656 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7657 msgid ""
7658 "Return the additional kernel options which are added to the guest kernel "
7659 "command line."
7660 msgstr ""
7661
7662 # type: textblock
7663 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7664 msgid "If C<NULL> then no options are added."
7665 msgstr ""
7666
7667 # type: textblock
7668 #: ../src/guestfs-actions.pod:1880
7669 msgid ""
7670 "This function returns a string which may be NULL.  There is no way to return "
7671 "an error from this function.  The string is owned by the guest handle and "
7672 "must I<not> be freed."
7673 msgstr ""
7674
7675 # type: textblock
7676 #: ../src/guestfs-actions.pod:1884 ../src/guestfs-actions.pod:5005
7677 #: ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5836
7678 #: ../src/guestfs-actions.pod:5855 ../src/guestfs-actions.pod:5871
7679 #: ../src/guestfs-actions.pod:5888 ../src/guestfs-actions.pod:6645
7680 #: ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:7017
7681 msgid "(Added in 1.0.26)"
7682 msgstr ""
7683
7684 # type: =head2
7685 #: ../src/guestfs-actions.pod:1886
7686 msgid "guestfs_get_autosync"
7687 msgstr ""
7688
7689 # type: verbatim
7690 #: ../src/guestfs-actions.pod:1888
7691 #, no-wrap
7692 msgid ""
7693 " int\n"
7694 " guestfs_get_autosync (guestfs_h *g);\n"
7695 "\n"
7696 msgstr ""
7697
7698 # type: textblock
7699 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7700 msgid "Get the autosync flag."
7701 msgstr ""
7702
7703 # type: =head2
7704 #: ../src/guestfs-actions.pod:1897
7705 msgid "guestfs_get_direct"
7706 msgstr ""
7707
7708 # type: verbatim
7709 #: ../src/guestfs-actions.pod:1899
7710 #, no-wrap
7711 msgid ""
7712 " int\n"
7713 " guestfs_get_direct (guestfs_h *g);\n"
7714 "\n"
7715 msgstr ""
7716
7717 # type: textblock
7718 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7719 msgid "Return the direct appliance mode flag."
7720 msgstr ""
7721
7722 # type: textblock
7723 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5509
7724 msgid "(Added in 1.0.72)"
7725 msgstr ""
7726
7727 # type: =head2
7728 #: ../src/guestfs-actions.pod:1908
7729 msgid "guestfs_get_e2label"
7730 msgstr ""
7731
7732 # type: verbatim
7733 #: ../src/guestfs-actions.pod:1910
7734 #, no-wrap
7735 msgid ""
7736 " char *\n"
7737 " guestfs_get_e2label (guestfs_h *g,\n"
7738 "                      const char *device);\n"
7739 "\n"
7740 msgstr ""
7741
7742 # type: textblock
7743 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7744 msgid ""
7745 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7746 msgstr ""
7747
7748 # type: textblock
7749 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7750 msgid ""
7751 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7752 msgstr ""
7753
7754 # type: textblock
7755 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948
7756 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5546
7757 msgid "(Added in 1.0.15)"
7758 msgstr ""
7759
7760 # type: =head2
7761 #: ../src/guestfs-actions.pod:1929
7762 msgid "guestfs_get_e2uuid"
7763 msgstr ""
7764
7765 # type: verbatim
7766 #: ../src/guestfs-actions.pod:1931
7767 #, no-wrap
7768 msgid ""
7769 " char *\n"
7770 " guestfs_get_e2uuid (guestfs_h *g,\n"
7771 "                     const char *device);\n"
7772 "\n"
7773 msgstr ""
7774
7775 # type: textblock
7776 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7777 msgid ""
7778 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7779 msgstr ""
7780
7781 # type: textblock
7782 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7783 msgid ""
7784 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7785 msgstr ""
7786
7787 # type: =head2
7788 #: ../src/guestfs-actions.pod:1950
7789 msgid "guestfs_get_memsize"
7790 msgstr ""
7791
7792 # type: verbatim
7793 #: ../src/guestfs-actions.pod:1952
7794 #, no-wrap
7795 msgid ""
7796 " int\n"
7797 " guestfs_get_memsize (guestfs_h *g);\n"
7798 "\n"
7799 msgstr ""
7800
7801 # type: textblock
7802 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7803 msgid ""
7804 "This gets the memory size in megabytes allocated to the qemu subprocess."
7805 msgstr ""
7806
7807 # type: textblock
7808 #: ../src/guestfs-actions.pod:1958
7809 msgid ""
7810 "If C<guestfs_set_memsize> was not called on this handle, and if "
7811 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7812 "value for memsize."
7813 msgstr ""
7814
7815 # type: textblock
7816 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2043
7817 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5669
7818 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7819 #: ../fish/guestfish-actions.pod:3711 ../fish/guestfish-actions.pod:3798
7820 msgid ""
7821 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7822 msgstr ""
7823
7824 # type: textblock
7825 #: ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:4091
7826 #: ../src/guestfs-actions.pod:4272 ../src/guestfs-actions.pod:4291
7827 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4322
7828 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:4352
7829 #: ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5567
7830 #: ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6411
7831 msgid "(Added in 1.0.55)"
7832 msgstr ""
7833
7834 # type: =head2
7835 #: ../src/guestfs-actions.pod:1969
7836 msgid "guestfs_get_network"
7837 msgstr ""
7838
7839 # type: verbatim
7840 #: ../src/guestfs-actions.pod:1971
7841 #, no-wrap
7842 msgid ""
7843 " int\n"
7844 " guestfs_get_network (guestfs_h *g);\n"
7845 "\n"
7846 msgstr ""
7847
7848 # type: textblock
7849 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7850 msgid "This returns the enable network flag."
7851 msgstr ""
7852
7853 # type: textblock
7854 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5586
7855 msgid "(Added in 1.5.4)"
7856 msgstr ""
7857
7858 # type: =head2
7859 #: ../src/guestfs-actions.pod:1980
7860 msgid "guestfs_get_path"
7861 msgstr ""
7862
7863 # type: verbatim
7864 #: ../src/guestfs-actions.pod:1982
7865 #, no-wrap
7866 msgid ""
7867 " const char *\n"
7868 " guestfs_get_path (guestfs_h *g);\n"
7869 "\n"
7870 msgstr ""
7871
7872 # type: textblock
7873 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7874 msgid "Return the current search path."
7875 msgstr ""
7876
7877 # type: textblock
7878 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7879 msgid ""
7880 "This is always non-NULL.  If it wasn't set already, then this will return "
7881 "the default path."
7882 msgstr ""
7883
7884 # type: textblock
7885 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7886 msgid ""
7887 "This function returns a string, or NULL on error.  The string is owned by "
7888 "the guest handle and must I<not> be freed."
7889 msgstr ""
7890
7891 # type: =head2
7892 #: ../src/guestfs-actions.pod:1995
7893 msgid "guestfs_get_pid"
7894 msgstr ""
7895
7896 # type: verbatim
7897 #: ../src/guestfs-actions.pod:1997
7898 #, no-wrap
7899 msgid ""
7900 " int\n"
7901 " guestfs_get_pid (guestfs_h *g);\n"
7902 "\n"
7903 msgstr ""
7904
7905 # type: textblock
7906 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7907 msgid ""
7908 "Return the process ID of the qemu subprocess.  If there is no qemu "
7909 "subprocess, then this will return an error."
7910 msgstr ""
7911
7912 # type: textblock
7913 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7914 msgid "This is an internal call used for debugging and testing."
7915 msgstr ""
7916
7917 # type: textblock
7918 #: ../src/guestfs-actions.pod:2007
7919 msgid "(Added in 1.0.56)"
7920 msgstr ""
7921
7922 # type: =head2
7923 #: ../src/guestfs-actions.pod:2009
7924 msgid "guestfs_get_qemu"
7925 msgstr ""
7926
7927 # type: verbatim
7928 #: ../src/guestfs-actions.pod:2011
7929 #, no-wrap
7930 msgid ""
7931 " const char *\n"
7932 " guestfs_get_qemu (guestfs_h *g);\n"
7933 "\n"
7934 msgstr ""
7935
7936 # type: textblock
7937 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
7938 msgid "Return the current qemu binary."
7939 msgstr ""
7940
7941 # type: textblock
7942 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
7943 msgid ""
7944 "This is always non-NULL.  If it wasn't set already, then this will return "
7945 "the default qemu binary name."
7946 msgstr ""
7947
7948 # type: textblock
7949 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5631
7950 msgid "(Added in 1.0.6)"
7951 msgstr ""
7952
7953 # type: =head2
7954 #: ../src/guestfs-actions.pod:2024
7955 msgid "guestfs_get_recovery_proc"
7956 msgstr ""
7957
7958 # type: verbatim
7959 #: ../src/guestfs-actions.pod:2026
7960 #, no-wrap
7961 msgid ""
7962 " int\n"
7963 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7964 "\n"
7965 msgstr ""
7966
7967 # type: textblock
7968 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
7969 msgid "Return the recovery process enabled flag."
7970 msgstr ""
7971
7972 # type: textblock
7973 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:3231
7974 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3898
7975 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:4935
7976 #: ../src/guestfs-actions.pod:5278 ../src/guestfs-actions.pod:5655
7977 #: ../src/guestfs-actions.pod:6314 ../src/guestfs-actions.pod:6334
7978 #: ../src/guestfs-actions.pod:6526
7979 msgid "(Added in 1.0.77)"
7980 msgstr ""
7981
7982 # type: =head2
7983 #: ../src/guestfs-actions.pod:2035
7984 msgid "guestfs_get_selinux"
7985 msgstr ""
7986
7987 # type: verbatim
7988 #: ../src/guestfs-actions.pod:2037
7989 #, no-wrap
7990 msgid ""
7991 " int\n"
7992 " guestfs_get_selinux (guestfs_h *g);\n"
7993 "\n"
7994 msgstr ""
7995
7996 # type: textblock
7997 #: ../src/guestfs-actions.pod:2040
7998 msgid ""
7999 "This returns the current setting of the selinux flag which is passed to the "
8000 "appliance at boot time.  See C<guestfs_set_selinux>."
8001 msgstr ""
8002
8003 # type: textblock
8004 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111
8005 #: ../src/guestfs-actions.pod:5674 ../src/guestfs-actions.pod:5728
8006 msgid "(Added in 1.0.67)"
8007 msgstr ""
8008
8009 # type: =head2
8010 #: ../src/guestfs-actions.pod:2050
8011 msgid "guestfs_get_state"
8012 msgstr ""
8013
8014 # type: verbatim
8015 #: ../src/guestfs-actions.pod:2052
8016 #, no-wrap
8017 msgid ""
8018 " int\n"
8019 " guestfs_get_state (guestfs_h *g);\n"
8020 "\n"
8021 msgstr ""
8022
8023 # type: textblock
8024 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
8025 msgid ""
8026 "This returns the current state as an opaque integer.  This is only useful "
8027 "for printing debug and internal error messages."
8028 msgstr ""
8029
8030 # type: textblock
8031 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:3034
8032 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3124
8033 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:1398
8034 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131
8035 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
8036 msgid "For more information on states, see L<guestfs(3)>."
8037 msgstr ""
8038
8039 # type: =head2
8040 #: ../src/guestfs-actions.pod:2064
8041 msgid "guestfs_get_trace"
8042 msgstr ""
8043
8044 # type: verbatim
8045 #: ../src/guestfs-actions.pod:2066
8046 #, no-wrap
8047 msgid ""
8048 " int\n"
8049 " guestfs_get_trace (guestfs_h *g);\n"
8050 "\n"
8051 msgstr ""
8052
8053 # type: textblock
8054 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
8055 msgid "Return the command trace flag."
8056 msgstr ""
8057
8058 # type: =head2
8059 #: ../src/guestfs-actions.pod:2075
8060 msgid "guestfs_get_umask"
8061 msgstr ""
8062
8063 # type: verbatim
8064 #: ../src/guestfs-actions.pod:2077
8065 #, no-wrap
8066 msgid ""
8067 " int\n"
8068 " guestfs_get_umask (guestfs_h *g);\n"
8069 "\n"
8070 msgstr ""
8071
8072 # type: textblock
8073 #: ../src/guestfs-actions.pod:2080
8074 msgid ""
8075 "Return the current umask.  By default the umask is C<022> unless it has been "
8076 "set by calling C<guestfs_umask>."
8077 msgstr ""
8078
8079 # type: =head2
8080 #: ../src/guestfs-actions.pod:2087
8081 msgid "guestfs_get_verbose"
8082 msgstr ""
8083
8084 # type: verbatim
8085 #: ../src/guestfs-actions.pod:2089
8086 #, no-wrap
8087 msgid ""
8088 " int\n"
8089 " guestfs_get_verbose (guestfs_h *g);\n"
8090 "\n"
8091 msgstr ""
8092
8093 # type: textblock
8094 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
8095 msgid "This returns the verbose messages flag."
8096 msgstr ""
8097
8098 # type: =head2
8099 #: ../src/guestfs-actions.pod:2098
8100 msgid "guestfs_getcon"
8101 msgstr ""
8102
8103 # type: verbatim
8104 #: ../src/guestfs-actions.pod:2100
8105 #, no-wrap
8106 msgid ""
8107 " char *\n"
8108 " guestfs_getcon (guestfs_h *g);\n"
8109 "\n"
8110 msgstr ""
8111
8112 # type: textblock
8113 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
8114 msgid "This gets the SELinux security context of the daemon."
8115 msgstr ""
8116
8117 # type: textblock
8118 #: ../src/guestfs-actions.pod:2105
8119 msgid ""
8120 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8121 msgstr ""
8122
8123 # type: =head2
8124 #: ../src/guestfs-actions.pod:2113
8125 msgid "guestfs_getxattrs"
8126 msgstr ""
8127
8128 # type: verbatim
8129 #: ../src/guestfs-actions.pod:2115
8130 #, no-wrap
8131 msgid ""
8132 " struct guestfs_xattr_list *\n"
8133 " guestfs_getxattrs (guestfs_h *g,\n"
8134 "                    const char *path);\n"
8135 "\n"
8136 msgstr ""
8137
8138 # type: textblock
8139 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1432
8140 msgid ""
8141 "This call lists the extended attributes of the file or directory C<path>."
8142 msgstr ""
8143
8144 # type: textblock
8145 #: ../src/guestfs-actions.pod:2122 ../fish/guestfish-actions.pod:1435
8146 msgid ""
8147 "At the system call level, this is a combination of the L<listxattr(2)> and "
8148 "L<getxattr(2)> calls."
8149 msgstr ""
8150
8151 # type: textblock
8152 #: ../src/guestfs-actions.pod:2125
8153 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8154 msgstr ""
8155
8156 # type: textblock
8157 #: ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:3243
8158 #: ../src/guestfs-actions.pod:3894
8159 msgid ""
8160 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8161 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8162 msgstr ""
8163
8164 # type: textblock
8165 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:3247
8166 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3448
8167 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5747
8168 #: ../src/guestfs-actions.pod:7082
8169 msgid "(Added in 1.0.59)"
8170 msgstr ""
8171
8172 # type: =head2
8173 #: ../src/guestfs-actions.pod:2133
8174 msgid "guestfs_glob_expand"
8175 msgstr ""
8176
8177 # type: verbatim
8178 #: ../src/guestfs-actions.pod:2135
8179 #, no-wrap
8180 msgid ""
8181 " char **\n"
8182 " guestfs_glob_expand (guestfs_h *g,\n"
8183 "                      const char *pattern);\n"
8184 "\n"
8185 msgstr ""
8186
8187 # type: textblock
8188 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1444
8189 msgid ""
8190 "This command searches for all the pathnames matching C<pattern> according to "
8191 "the wildcard expansion rules used by the shell."
8192 msgstr ""
8193
8194 # type: textblock
8195 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1448
8196 msgid ""
8197 "If no paths match, then this returns an empty list (note: not an error)."
8198 msgstr ""
8199
8200 # type: textblock
8201 #: ../src/guestfs-actions.pod:2146 ../fish/guestfish-actions.pod:1451
8202 msgid ""
8203 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8204 "GLOB_BRACE>.  See that manual page for more details."
8205 msgstr ""
8206
8207 # type: textblock
8208 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:5912
8209 #: ../src/guestfs-actions.pod:5929
8210 msgid "(Added in 1.0.50)"
8211 msgstr ""
8212
8213 # type: =head2
8214 #: ../src/guestfs-actions.pod:2156
8215 msgid "guestfs_grep"
8216 msgstr ""
8217
8218 # type: verbatim
8219 #: ../src/guestfs-actions.pod:2158
8220 #, no-wrap
8221 msgid ""
8222 " char **\n"
8223 " guestfs_grep (guestfs_h *g,\n"
8224 "               const char *regex,\n"
8225 "               const char *path);\n"
8226 "\n"
8227 msgstr ""
8228
8229 # type: textblock
8230 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1459
8231 msgid "This calls the external C<grep> program and returns the matching lines."
8232 msgstr ""
8233
8234 # type: =head2
8235 #: ../src/guestfs-actions.pod:2175
8236 msgid "guestfs_grepi"
8237 msgstr ""
8238
8239 # type: verbatim
8240 #: ../src/guestfs-actions.pod:2177
8241 #, no-wrap
8242 msgid ""
8243 " char **\n"
8244 " guestfs_grepi (guestfs_h *g,\n"
8245 "                const char *regex,\n"
8246 "                const char *path);\n"
8247 "\n"
8248 msgstr ""
8249
8250 # type: textblock
8251 #: ../src/guestfs-actions.pod:2182 ../fish/guestfish-actions.pod:1469
8252 msgid ""
8253 "This calls the external C<grep -i> program and returns the matching lines."
8254 msgstr ""
8255
8256 # type: =head2
8257 #: ../src/guestfs-actions.pod:2194
8258 msgid "guestfs_grub_install"
8259 msgstr ""
8260
8261 # type: verbatim
8262 #: ../src/guestfs-actions.pod:2196
8263 #, no-wrap
8264 msgid ""
8265 " int\n"
8266 " guestfs_grub_install (guestfs_h *g,\n"
8267 "                       const char *root,\n"
8268 "                       const char *device);\n"
8269 "\n"
8270 msgstr ""
8271
8272 # type: textblock
8273 #: ../src/guestfs-actions.pod:2201 ../fish/guestfish-actions.pod:1479
8274 msgid ""
8275 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8276 "the root directory being C<root>."
8277 msgstr ""
8278
8279 # type: textblock
8280 #: ../src/guestfs-actions.pod:2204 ../fish/guestfish-actions.pod:1482
8281 msgid ""
8282 "Note: If grub-install reports the error \"No suitable drive was found in the "
8283 "generated device map.\" it may be that you need to create a C</boot/grub/"
8284 "device.map> file first that contains the mapping between grub device names "
8285 "and Linux device names.  It is usually sufficient to create a file "
8286 "containing:"
8287 msgstr ""
8288
8289 # type: verbatim
8290 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1489
8291 #, no-wrap
8292 msgid ""
8293 " (hd0) /dev/vda\n"
8294 "\n"
8295 msgstr ""
8296
8297 # type: textblock
8298 #: ../src/guestfs-actions.pod:2213 ../fish/guestfish-actions.pod:1491
8299 msgid "replacing C</dev/vda> with the name of the installation device."
8300 msgstr ""
8301
8302 # type: textblock
8303 #: ../src/guestfs-actions.pod:2217
8304 msgid "(Added in 1.0.17)"
8305 msgstr ""
8306
8307 # type: =head2
8308 #: ../src/guestfs-actions.pod:2219
8309 msgid "guestfs_head"
8310 msgstr ""
8311
8312 # type: verbatim
8313 #: ../src/guestfs-actions.pod:2221
8314 #, no-wrap
8315 msgid ""
8316 " char **\n"
8317 " guestfs_head (guestfs_h *g,\n"
8318 "               const char *path);\n"
8319 "\n"
8320 msgstr ""
8321
8322 # type: textblock
8323 #: ../src/guestfs-actions.pod:2225 ../fish/guestfish-actions.pod:1497
8324 msgid ""
8325 "This command returns up to the first 10 lines of a file as a list of strings."
8326 msgstr ""
8327
8328 # type: =head2
8329 #: ../src/guestfs-actions.pod:2237
8330 msgid "guestfs_head_n"
8331 msgstr ""
8332
8333 # type: verbatim
8334 #: ../src/guestfs-actions.pod:2239
8335 #, no-wrap
8336 msgid ""
8337 " char **\n"
8338 " guestfs_head_n (guestfs_h *g,\n"
8339 "                 int nrlines,\n"
8340 "                 const char *path);\n"
8341 "\n"
8342 msgstr ""
8343
8344 # type: textblock
8345 #: ../src/guestfs-actions.pod:2244 ../fish/guestfish-actions.pod:1507
8346 msgid ""
8347 "If the parameter C<nrlines> is a positive number, this returns the first "
8348 "C<nrlines> lines of the file C<path>."
8349 msgstr ""
8350
8351 # type: textblock
8352 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1510
8353 msgid ""
8354 "If the parameter C<nrlines> is a negative number, this returns lines from "
8355 "the file C<path>, excluding the last C<nrlines> lines."
8356 msgstr ""
8357
8358 # type: textblock
8359 #: ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:6209
8360 #: ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4144
8361 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8362 msgstr ""
8363
8364 # type: =head2
8365 #: ../src/guestfs-actions.pod:2261
8366 msgid "guestfs_hexdump"
8367 msgstr ""
8368
8369 # type: verbatim
8370 #: ../src/guestfs-actions.pod:2263
8371 #, no-wrap
8372 msgid ""
8373 " char *\n"
8374 " guestfs_hexdump (guestfs_h *g,\n"
8375 "                  const char *path);\n"
8376 "\n"
8377 msgstr ""
8378
8379 # type: textblock
8380 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1522
8381 msgid ""
8382 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8383 "readable, canonical hex dump of the file."
8384 msgstr ""
8385
8386 # type: textblock
8387 #: ../src/guestfs-actions.pod:2276 ../src/guestfs-actions.pod:5993
8388 #: ../src/guestfs-actions.pod:6048
8389 msgid "(Added in 1.0.22)"
8390 msgstr ""
8391
8392 # type: =head2
8393 #: ../src/guestfs-actions.pod:2278
8394 msgid "guestfs_initrd_cat"
8395 msgstr ""
8396
8397 # type: verbatim
8398 #: ../src/guestfs-actions.pod:2280
8399 #, no-wrap
8400 msgid ""
8401 " char *\n"
8402 " guestfs_initrd_cat (guestfs_h *g,\n"
8403 "                     const char *initrdpath,\n"
8404 "                     const char *filename,\n"
8405 "                     size_t *size_r);\n"
8406 "\n"
8407 msgstr ""
8408
8409 # type: textblock
8410 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1532
8411 msgid ""
8412 "This command unpacks the file C<filename> from the initrd file called "
8413 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8414 "character."
8415 msgstr ""
8416
8417 # type: textblock
8418 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1536
8419 msgid ""
8420 "For example, in guestfish you could use the following command to examine the "
8421 "boot script (usually called C</init>)  contained in a Linux initrd or "
8422 "initramfs image:"
8423 msgstr ""
8424
8425 # type: verbatim
8426 #: ../src/guestfs-actions.pod:2294 ../fish/guestfish-actions.pod:1540
8427 #, no-wrap
8428 msgid ""
8429 " initrd-cat /boot/initrd-<version>.img init\n"
8430 "\n"
8431 msgstr ""
8432
8433 # type: textblock
8434 #: ../src/guestfs-actions.pod:2296
8435 msgid "See also C<guestfs_initrd_list>."
8436 msgstr ""
8437
8438 # type: textblock
8439 #: ../src/guestfs-actions.pod:2298 ../src/guestfs-actions.pod:4928
8440 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:5135
8441 msgid ""
8442 "This function returns a buffer, or NULL on error.  The size of the returned "
8443 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8444 "after use>."
8445 msgstr ""
8446
8447 # type: =head2
8448 #: ../src/guestfs-actions.pod:2307
8449 msgid "guestfs_initrd_list"
8450 msgstr ""
8451
8452 # type: verbatim
8453 #: ../src/guestfs-actions.pod:2309
8454 #, no-wrap
8455 msgid ""
8456 " char **\n"
8457 " guestfs_initrd_list (guestfs_h *g,\n"
8458 "                      const char *path);\n"
8459 "\n"
8460 msgstr ""
8461
8462 # type: textblock
8463 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1551
8464 msgid "This command lists out files contained in an initrd."
8465 msgstr ""
8466
8467 # type: textblock
8468 #: ../src/guestfs-actions.pod:2315 ../fish/guestfish-actions.pod:1553
8469 msgid ""
8470 "The files are listed without any initial C</> character.  The files are "
8471 "listed in the order they appear (not necessarily alphabetical).  Directory "
8472 "names are listed as separate items."
8473 msgstr ""
8474
8475 # type: textblock
8476 #: ../src/guestfs-actions.pod:2319 ../fish/guestfish-actions.pod:1557
8477 msgid ""
8478 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8479 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8480 "files)."
8481 msgstr ""
8482
8483 # type: =head2
8484 #: ../src/guestfs-actions.pod:2329
8485 msgid "guestfs_inotify_add_watch"
8486 msgstr ""
8487
8488 # type: verbatim
8489 #: ../src/guestfs-actions.pod:2331
8490 #, no-wrap
8491 msgid ""
8492 " int64_t\n"
8493 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8494 "                            const char *path,\n"
8495 "                            int mask);\n"
8496 "\n"
8497 msgstr ""
8498
8499 # type: textblock
8500 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1565
8501 msgid "Watch C<path> for the events listed in C<mask>."
8502 msgstr ""
8503
8504 # type: textblock
8505 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1567
8506 msgid ""
8507 "Note that if C<path> is a directory then events within that directory are "
8508 "watched, but this does I<not> happen recursively (in subdirectories)."
8509 msgstr ""
8510
8511 # type: textblock
8512 #: ../src/guestfs-actions.pod:2342 ../fish/guestfish-actions.pod:1571
8513 msgid ""
8514 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8515 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8516 msgstr ""
8517
8518 # type: =head2
8519 #: ../src/guestfs-actions.pod:2350
8520 msgid "guestfs_inotify_close"
8521 msgstr ""
8522
8523 # type: verbatim
8524 #: ../src/guestfs-actions.pod:2352
8525 #, no-wrap
8526 msgid ""
8527 " int\n"
8528 " guestfs_inotify_close (guestfs_h *g);\n"
8529 "\n"
8530 msgstr ""
8531
8532 # type: textblock
8533 #: ../src/guestfs-actions.pod:2355 ../fish/guestfish-actions.pod:1579
8534 msgid ""
8535 "This closes the inotify handle which was previously opened by inotify_init.  "
8536 "It removes all watches, throws away any pending events, and deallocates all "
8537 "resources."
8538 msgstr ""
8539
8540 # type: =head2
8541 #: ../src/guestfs-actions.pod:2363
8542 msgid "guestfs_inotify_files"
8543 msgstr ""
8544
8545 # type: verbatim
8546 #: ../src/guestfs-actions.pod:2365
8547 #, no-wrap
8548 msgid ""
8549 " char **\n"
8550 " guestfs_inotify_files (guestfs_h *g);\n"
8551 "\n"
8552 msgstr ""
8553
8554 # type: textblock
8555 #: ../src/guestfs-actions.pod:2368
8556 msgid ""
8557 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8558 "returns a list of pathnames of objects that were touched.  The returned "
8559 "pathnames are sorted and deduplicated."
8560 msgstr ""
8561
8562 # type: =head2
8563 #: ../src/guestfs-actions.pod:2378
8564 msgid "guestfs_inotify_init"
8565 msgstr ""
8566
8567 # type: verbatim
8568 #: ../src/guestfs-actions.pod:2380
8569 #, no-wrap
8570 msgid ""
8571 " int\n"
8572 " guestfs_inotify_init (guestfs_h *g,\n"
8573 "                       int maxevents);\n"
8574 "\n"
8575 msgstr ""
8576
8577 # type: textblock
8578 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1595
8579 msgid ""
8580 "This command creates a new inotify handle.  The inotify subsystem can be "
8581 "used to notify events which happen to objects in the guest filesystem."
8582 msgstr ""
8583
8584 # type: textblock
8585 #: ../src/guestfs-actions.pod:2388
8586 msgid ""
8587 "C<maxevents> is the maximum number of events which will be queued up between "
8588 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8589 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8590 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8591 "throws away events, but records the fact that it threw them away by setting "
8592 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8593 "C<guestfs_inotify_read>)."
8594 msgstr ""
8595
8596 # type: textblock
8597 #: ../src/guestfs-actions.pod:2398
8598 msgid ""
8599 "Before any events are generated, you have to add some watches to the "
8600 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8601 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8602 msgstr ""
8603
8604 # type: textblock
8605 #: ../src/guestfs-actions.pod:2404
8606 msgid ""
8607 "Queued up events should be read periodically by calling "
8608 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8609 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8610 "often enough then you risk the internal queue overflowing."
8611 msgstr ""
8612
8613 # type: textblock
8614 #: ../src/guestfs-actions.pod:2411
8615 msgid ""
8616 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8617 "This also removes any watches automatically."
8618 msgstr ""
8619
8620 # type: textblock
8621 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1626
8622 msgid ""
8623 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8624 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8625 "that there is one global inotify handle per libguestfs instance."
8626 msgstr ""
8627
8628 # type: =head2
8629 #: ../src/guestfs-actions.pod:2424
8630 msgid "guestfs_inotify_read"
8631 msgstr ""
8632
8633 # type: verbatim
8634 #: ../src/guestfs-actions.pod:2426
8635 #, no-wrap
8636 msgid ""
8637 " struct guestfs_inotify_event_list *\n"
8638 " guestfs_inotify_read (guestfs_h *g);\n"
8639 "\n"
8640 msgstr ""
8641
8642 # type: textblock
8643 #: ../src/guestfs-actions.pod:2429 ../fish/guestfish-actions.pod:1635
8644 msgid ""
8645 "Return the complete queue of events that have happened since the previous "
8646 "read call."
8647 msgstr ""
8648
8649 # type: textblock
8650 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1638
8651 msgid "If no events have happened, this returns an empty list."
8652 msgstr ""
8653
8654 # type: textblock
8655 #: ../src/guestfs-actions.pod:2434 ../fish/guestfish-actions.pod:1640
8656 msgid ""
8657 "I<Note>: In order to make sure that all events have been read, you must call "
8658 "this function repeatedly until it returns an empty list.  The reason is that "
8659 "the call will read events up to the maximum appliance-to-host message size "
8660 "and leave remaining events in the queue."
8661 msgstr ""
8662
8663 # type: textblock
8664 #: ../src/guestfs-actions.pod:2440
8665 msgid ""
8666 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8667 "there was an error.  I<The caller must call "
8668 "C<guestfs_free_inotify_event_list> after use>."
8669 msgstr ""
8670
8671 # type: =head2
8672 #: ../src/guestfs-actions.pod:2446
8673 msgid "guestfs_inotify_rm_watch"
8674 msgstr ""
8675
8676 # type: verbatim
8677 #: ../src/guestfs-actions.pod:2448
8678 #, no-wrap
8679 msgid ""
8680 " int\n"
8681 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8682 "                           int wd);\n"
8683 "\n"
8684 msgstr ""
8685
8686 # type: textblock
8687 #: ../src/guestfs-actions.pod:2452
8688 msgid ""
8689 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8690 msgstr ""
8691
8692 # type: =head2
8693 #: ../src/guestfs-actions.pod:2459
8694 msgid "guestfs_inspect_get_arch"
8695 msgstr ""
8696
8697 # type: verbatim
8698 #: ../src/guestfs-actions.pod:2461
8699 #, no-wrap
8700 msgid ""
8701 " char *\n"
8702 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8703 "                           const char *root);\n"
8704 "\n"
8705 msgstr ""
8706
8707 # type: textblock
8708 #: ../src/guestfs-actions.pod:2465 ../src/guestfs-actions.pod:2488
8709 #: ../src/guestfs-actions.pod:2569 ../src/guestfs-actions.pod:2595
8710 #: ../src/guestfs-actions.pod:2617 ../src/guestfs-actions.pod:2644
8711 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:2698
8712 #: ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:2758
8713 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:2844
8714 #: ../src/guestfs-actions.pod:2867
8715 msgid ""
8716 "This function should only be called with a root device string as returned by "
8717 "C<guestfs_inspect_os>."
8718 msgstr ""
8719
8720 # type: textblock
8721 #: ../src/guestfs-actions.pod:2468
8722 msgid ""
8723 "This returns the architecture of the inspected operating system.  The "
8724 "possible return values are listed under C<guestfs_file_architecture>."
8725 msgstr ""
8726
8727 # type: textblock
8728 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1664
8729 msgid ""
8730 "If the architecture could not be determined, then the string C<unknown> is "
8731 "returned."
8732 msgstr ""
8733
8734 # type: textblock
8735 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556
8736 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2632
8737 #: ../src/guestfs-actions.pod:2714 ../src/guestfs-actions.pod:2745
8738 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2788
8739 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2854
8740 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3001
8741 #: ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741
8742 #: ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795
8743 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879
8744 #: ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909
8745 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960
8746 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8747 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8748 msgstr ""
8749
8750 # type: =head2
8751 #: ../src/guestfs-actions.pod:2482
8752 msgid "guestfs_inspect_get_distro"
8753 msgstr ""
8754
8755 # type: verbatim
8756 #: ../src/guestfs-actions.pod:2484
8757 #, no-wrap
8758 msgid ""
8759 " char *\n"
8760 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8761 "                             const char *root);\n"
8762 "\n"
8763 msgstr ""
8764
8765 # type: textblock
8766 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1676
8767 msgid ""
8768 "This returns the distro (distribution) of the inspected operating system."
8769 msgstr ""
8770
8771 # type: textblock
8772 #: ../src/guestfs-actions.pod:2494 ../fish/guestfish-actions.pod:1679
8773 msgid "Currently defined distros are:"
8774 msgstr ""
8775
8776 # type: =item
8777 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1683
8778 msgid "\"archlinux\""
8779 msgstr ""
8780
8781 # type: textblock
8782 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1685
8783 msgid "Arch Linux."
8784 msgstr ""
8785
8786 # type: =item
8787 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1687
8788 msgid "\"debian\""
8789 msgstr ""
8790
8791 # type: textblock
8792 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1689
8793 msgid "Debian."
8794 msgstr ""
8795
8796 # type: =item
8797 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1691
8798 msgid "\"fedora\""
8799 msgstr ""
8800
8801 # type: textblock
8802 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1693
8803 msgid "Fedora."
8804 msgstr ""
8805
8806 # type: =item
8807 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1695
8808 msgid "\"gentoo\""
8809 msgstr ""
8810
8811 # type: textblock
8812 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1697
8813 msgid "Gentoo."
8814 msgstr ""
8815
8816 # type: =item
8817 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1699
8818 msgid "\"linuxmint\""
8819 msgstr ""
8820
8821 # type: textblock
8822 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1701
8823 msgid "Linux Mint."
8824 msgstr ""
8825
8826 # type: =item
8827 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1703
8828 msgid "\"mandriva\""
8829 msgstr ""
8830
8831 # type: textblock
8832 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1705
8833 msgid "Mandriva."
8834 msgstr ""
8835
8836 # type: =item
8837 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1707
8838 msgid "\"meego\""
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1709
8843 msgid "MeeGo."
8844 msgstr ""
8845
8846 # type: =item
8847 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1711
8848 msgid "\"pardus\""
8849 msgstr ""
8850
8851 # type: textblock
8852 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1713
8853 msgid "Pardus."
8854 msgstr ""
8855
8856 # type: =item
8857 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1715
8858 msgid "\"redhat-based\""
8859 msgstr ""
8860
8861 # type: textblock
8862 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1717
8863 msgid "Some Red Hat-derived distro."
8864 msgstr ""
8865
8866 # type: =item
8867 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1719
8868 msgid "\"rhel\""
8869 msgstr ""
8870
8871 # type: textblock
8872 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1721
8873 msgid "Red Hat Enterprise Linux and some derivatives."
8874 msgstr ""
8875
8876 # type: =item
8877 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1723
8878 msgid "\"ubuntu\""
8879 msgstr ""
8880
8881 # type: textblock
8882 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1725
8883 msgid "Ubuntu."
8884 msgstr ""
8885
8886 # type: =item
8887 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2822
8888 #: ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8889 msgid "\"unknown\""
8890 msgstr ""
8891
8892 # type: textblock
8893 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1729
8894 msgid "The distro could not be determined."
8895 msgstr ""
8896
8897 # type: =item
8898 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2814
8899 #: ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8900 msgid "\"windows\""
8901 msgstr ""
8902
8903 # type: textblock
8904 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1733
8905 msgid ""
8906 "Windows does not have distributions.  This string is returned if the OS type "
8907 "is Windows."
8908 msgstr ""
8909
8910 # type: textblock
8911 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2828
8912 #: ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8913 msgid ""
8914 "Future versions of libguestfs may return other strings here.  The caller "
8915 "should be prepared to handle any string."
8916 msgstr ""
8917
8918 # type: =head2
8919 #: ../src/guestfs-actions.pod:2563
8920 msgid "guestfs_inspect_get_filesystems"
8921 msgstr ""
8922
8923 # type: verbatim
8924 #: ../src/guestfs-actions.pod:2565
8925 #, no-wrap
8926 msgid ""
8927 " char **\n"
8928 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8929 "                                  const char *root);\n"
8930 "\n"
8931 msgstr ""
8932
8933 # type: textblock
8934 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1750
8935 msgid ""
8936 "This returns a list of all the filesystems that we think are associated with "
8937 "this operating system.  This includes the root filesystem, other ordinary "
8938 "filesystems, and non-mounted devices like swap partitions."
8939 msgstr ""
8940
8941 # type: textblock
8942 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1755
8943 msgid ""
8944 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8945 "to be shared between operating systems."
8946 msgstr ""
8947
8948 # type: textblock
8949 #: ../src/guestfs-actions.pod:2580
8950 msgid ""
8951 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8952 "C<guestfs_inspect_get_mountpoints>."
8953 msgstr ""
8954
8955 # type: =head2
8956 #: ../src/guestfs-actions.pod:2589
8957 msgid "guestfs_inspect_get_hostname"
8958 msgstr ""
8959
8960 # type: verbatim
8961 #: ../src/guestfs-actions.pod:2591
8962 #, no-wrap
8963 msgid ""
8964 " char *\n"
8965 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8966 "                               const char *root);\n"
8967 "\n"
8968 msgstr ""
8969
8970 # type: textblock
8971 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1768
8972 msgid ""
8973 "This function returns the hostname of the operating system as found by "
8974 "inspection of the guest's configuration files."
8975 msgstr ""
8976
8977 # type: textblock
8978 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1771
8979 msgid ""
8980 "If the hostname could not be determined, then the string C<unknown> is "
8981 "returned."
8982 msgstr ""
8983
8984 # type: textblock
8985 #: ../src/guestfs-actions.pod:2609
8986 msgid "(Added in 1.7.9)"
8987 msgstr ""
8988
8989 # type: =head2
8990 #: ../src/guestfs-actions.pod:2611
8991 msgid "guestfs_inspect_get_major_version"
8992 msgstr ""
8993
8994 # type: verbatim
8995 #: ../src/guestfs-actions.pod:2613
8996 #, no-wrap
8997 msgid ""
8998 " int\n"
8999 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
9000 "                                    const char *root);\n"
9001 "\n"
9002 msgstr ""
9003
9004 # type: textblock
9005 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1783
9006 msgid ""
9007 "This returns the major version number of the inspected operating system."
9008 msgstr ""
9009
9010 # type: textblock
9011 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1786
9012 msgid ""
9013 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9014 "popular public names used by the operating system.  Notably the operating "
9015 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9016 "1).  You can find out the real versions corresponding to releases of Windows "
9017 "by consulting Wikipedia or MSDN."
9018 msgstr ""
9019
9020 # type: textblock
9021 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2650
9022 #: ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
9023 msgid "If the version could not be determined, then C<0> is returned."
9024 msgstr ""
9025
9026 # type: =head2
9027 #: ../src/guestfs-actions.pod:2638
9028 msgid "guestfs_inspect_get_minor_version"
9029 msgstr ""
9030
9031 # type: verbatim
9032 #: ../src/guestfs-actions.pod:2640
9033 #, no-wrap
9034 msgid ""
9035 " int\n"
9036 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9037 "                                    const char *root);\n"
9038 "\n"
9039 msgstr ""
9040
9041 # type: textblock
9042 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1804
9043 msgid ""
9044 "This returns the minor version number of the inspected operating system."
9045 msgstr ""
9046
9047 # type: textblock
9048 #: ../src/guestfs-actions.pod:2652
9049 msgid ""
9050 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9051 "C<guestfs_inspect_get_major_version>."
9052 msgstr ""
9053
9054 # type: =head2
9055 #: ../src/guestfs-actions.pod:2659
9056 msgid "guestfs_inspect_get_mountpoints"
9057 msgstr ""
9058
9059 # type: verbatim
9060 #: ../src/guestfs-actions.pod:2661
9061 #, no-wrap
9062 msgid ""
9063 " char **\n"
9064 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9065 "                                  const char *root);\n"
9066 "\n"
9067 msgstr ""
9068
9069 # type: textblock
9070 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1819
9071 msgid ""
9072 "This returns a hash of where we think the filesystems associated with this "
9073 "operating system should be mounted.  Callers should note that this is at "
9074 "best an educated guess made by reading configuration files such as C</etc/"
9075 "fstab>."
9076 msgstr ""
9077
9078 # type: textblock
9079 #: ../src/guestfs-actions.pod:2673 ../fish/guestfish-actions.pod:1824
9080 msgid ""
9081 "Each element in the returned hashtable has a key which is the path of the "
9082 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9083 "mounted there (eg. C</dev/sda1>)."
9084 msgstr ""
9085
9086 # type: textblock
9087 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1829
9088 msgid ""
9089 "Non-mounted devices such as swap devices are I<not> returned in this list."
9090 msgstr ""
9091
9092 # type: textblock
9093 #: ../src/guestfs-actions.pod:2681
9094 msgid ""
9095 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9096 "C<guestfs_inspect_get_filesystems>."
9097 msgstr ""
9098
9099 # type: textblock
9100 #: ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:3300
9101 #: ../src/guestfs-actions.pod:4494 ../src/guestfs-actions.pod:6350
9102 msgid ""
9103 "This function returns a NULL-terminated array of strings, or NULL if there "
9104 "was an error.  The array of strings will always have length C<2n+1>, where "
9105 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9106 "caller must free the strings and the array after use>."
9107 msgstr ""
9108
9109 # type: =head2
9110 #: ../src/guestfs-actions.pod:2692
9111 msgid "guestfs_inspect_get_package_format"
9112 msgstr ""
9113
9114 # type: verbatim
9115 #: ../src/guestfs-actions.pod:2694
9116 #, no-wrap
9117 msgid ""
9118 " char *\n"
9119 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9120 "                                     const char *root);\n"
9121 "\n"
9122 msgstr ""
9123
9124 # type: textblock
9125 #: ../src/guestfs-actions.pod:2701
9126 msgid ""
9127 "This function and C<guestfs_inspect_get_package_management> return the "
9128 "package format and package management tool used by the inspected operating "
9129 "system.  For example for Fedora these functions would return C<rpm> (package "
9130 "format) and C<yum> (package management)."
9131 msgstr ""
9132
9133 # type: textblock
9134 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1848
9135 msgid ""
9136 "This returns the string C<unknown> if we could not determine the package "
9137 "format I<or> if the operating system does not have a real packaging system "
9138 "(eg. Windows)."
9139 msgstr ""
9140
9141 # type: textblock
9142 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
9143 msgid ""
9144 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9145 "Future versions of libguestfs may return other strings."
9146 msgstr ""
9147
9148 # type: textblock
9149 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2750
9150 msgid "(Added in 1.7.5)"
9151 msgstr ""
9152
9153 # type: =head2
9154 #: ../src/guestfs-actions.pod:2721
9155 msgid "guestfs_inspect_get_package_management"
9156 msgstr ""
9157
9158 # type: verbatim
9159 #: ../src/guestfs-actions.pod:2723
9160 #, no-wrap
9161 msgid ""
9162 " char *\n"
9163 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9164 "                                         const char *root);\n"
9165 "\n"
9166 msgstr ""
9167
9168 # type: textblock
9169 #: ../src/guestfs-actions.pod:2730
9170 msgid ""
9171 "C<guestfs_inspect_get_package_format> and this function return the package "
9172 "format and package management tool used by the inspected operating system.  "
9173 "For example for Fedora these functions would return C<rpm> (package format) "
9174 "and C<yum> (package management)."
9175 msgstr ""
9176
9177 # type: textblock
9178 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1870
9179 msgid ""
9180 "This returns the string C<unknown> if we could not determine the package "
9181 "management tool I<or> if the operating system does not have a real packaging "
9182 "system (eg. Windows)."
9183 msgstr ""
9184
9185 # type: textblock
9186 #: ../src/guestfs-actions.pod:2740 ../fish/guestfish-actions.pod:1874
9187 msgid ""
9188 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9189 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9190 "libguestfs may return other strings."
9191 msgstr ""
9192
9193 # type: =head2
9194 #: ../src/guestfs-actions.pod:2752
9195 msgid "guestfs_inspect_get_product_name"
9196 msgstr ""
9197
9198 # type: verbatim
9199 #: ../src/guestfs-actions.pod:2754
9200 #, no-wrap
9201 msgid ""
9202 " char *\n"
9203 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9204 "                                   const char *root);\n"
9205 "\n"
9206 msgstr ""
9207
9208 # type: textblock
9209 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:1888
9210 msgid ""
9211 "This returns the product name of the inspected operating system.  The "
9212 "product name is generally some freeform string which can be displayed to the "
9213 "user, but should not be parsed by programs."
9214 msgstr ""
9215
9216 # type: textblock
9217 #: ../src/guestfs-actions.pod:2766 ../fish/guestfish-actions.pod:1893
9218 msgid ""
9219 "If the product name could not be determined, then the string C<unknown> is "
9220 "returned."
9221 msgstr ""
9222
9223 # type: =head2
9224 #: ../src/guestfs-actions.pod:2776
9225 msgid "guestfs_inspect_get_roots"
9226 msgstr ""
9227
9228 # type: verbatim
9229 #: ../src/guestfs-actions.pod:2778
9230 #, no-wrap
9231 msgid ""
9232 " char **\n"
9233 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9234 "\n"
9235 msgstr ""
9236
9237 # type: textblock
9238 #: ../src/guestfs-actions.pod:2781
9239 msgid ""
9240 "This function is a convenient way to get the list of root devices, as "
9241 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9242 "the whole inspection process."
9243 msgstr ""
9244
9245 # type: textblock
9246 #: ../src/guestfs-actions.pod:2785
9247 msgid ""
9248 "This returns an empty list if either no root devices were found or the "
9249 "caller has not called C<guestfs_inspect_os>."
9250 msgstr ""
9251
9252 # type: textblock
9253 #: ../src/guestfs-actions.pod:2794
9254 msgid "(Added in 1.7.3)"
9255 msgstr ""
9256
9257 # type: =head2
9258 #: ../src/guestfs-actions.pod:2796
9259 msgid "guestfs_inspect_get_type"
9260 msgstr ""
9261
9262 # type: verbatim
9263 #: ../src/guestfs-actions.pod:2798
9264 #, no-wrap
9265 msgid ""
9266 " char *\n"
9267 " guestfs_inspect_get_type (guestfs_h *g,\n"
9268 "                           const char *root);\n"
9269 "\n"
9270 msgstr ""
9271
9272 # type: textblock
9273 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1918
9274 msgid ""
9275 "This returns the type of the inspected operating system.  Currently defined "
9276 "types are:"
9277 msgstr ""
9278
9279 # type: =item
9280 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1923
9281 msgid "\"linux\""
9282 msgstr ""
9283
9284 # type: textblock
9285 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1925
9286 msgid "Any Linux-based operating system."
9287 msgstr ""
9288
9289 # type: textblock
9290 #: ../src/guestfs-actions.pod:2816 ../fish/guestfish-actions.pod:1929
9291 msgid "Any Microsoft Windows operating system."
9292 msgstr ""
9293
9294 # type: =item
9295 #: ../src/guestfs-actions.pod:2818 ../fish/guestfish-actions.pod:1931
9296 msgid "\"freebsd\""
9297 msgstr ""
9298
9299 # type: textblock
9300 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1933
9301 msgid "FreeBSD."
9302 msgstr ""
9303
9304 # type: textblock
9305 #: ../src/guestfs-actions.pod:2824 ../fish/guestfish-actions.pod:1937
9306 msgid "The operating system type could not be determined."
9307 msgstr ""
9308
9309 # type: =head2
9310 #: ../src/guestfs-actions.pod:2838
9311 msgid "guestfs_inspect_get_windows_systemroot"
9312 msgstr ""
9313
9314 # type: verbatim
9315 #: ../src/guestfs-actions.pod:2840
9316 #, no-wrap
9317 msgid ""
9318 " char *\n"
9319 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9320 "                                         const char *root);\n"
9321 "\n"
9322 msgstr ""
9323
9324 # type: textblock
9325 #: ../src/guestfs-actions.pod:2847 ../fish/guestfish-actions.pod:1953
9326 msgid ""
9327 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9328 "is a directory path such as C</WINDOWS>."
9329 msgstr ""
9330
9331 # type: textblock
9332 #: ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1956
9333 msgid ""
9334 "This call assumes that the guest is Windows and that the systemroot could be "
9335 "determined by inspection.  If this is not the case then an error is returned."
9336 msgstr ""
9337
9338 # type: textblock
9339 #: ../src/guestfs-actions.pod:2859
9340 msgid "(Added in 1.5.25)"
9341 msgstr ""
9342
9343 # type: =head2
9344 #: ../src/guestfs-actions.pod:2861
9345 msgid "guestfs_inspect_list_applications"
9346 msgstr ""
9347
9348 # type: verbatim
9349 #: ../src/guestfs-actions.pod:2863
9350 #, no-wrap
9351 msgid ""
9352 " struct guestfs_application_list *\n"
9353 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9354 "                                    const char *root);\n"
9355 "\n"
9356 msgstr ""
9357
9358 # type: textblock
9359 #: ../src/guestfs-actions.pod:2870 ../fish/guestfish-actions.pod:1969
9360 msgid "Return the list of applications installed in the operating system."
9361 msgstr ""
9362
9363 # type: textblock
9364 #: ../src/guestfs-actions.pod:2872
9365 msgid ""
9366 "I<Note:> This call works differently from other parts of the inspection "
9367 "API.  You have to call C<guestfs_inspect_os>, then "
9368 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9369 "this.  Listing applications is a significantly more difficult operation "
9370 "which requires access to the full filesystem.  Also note that unlike the "
9371 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9372 "the libguestfs handle, this call actually reads parts of the mounted "
9373 "filesystems during the call."
9374 msgstr ""
9375
9376 # type: textblock
9377 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1981
9378 msgid ""
9379 "This returns an empty list if the inspection code was not able to determine "
9380 "the list of applications."
9381 msgstr ""
9382
9383 # type: textblock
9384 #: ../src/guestfs-actions.pod:2885 ../fish/guestfish-actions.pod:1984
9385 msgid "The application structure contains the following fields:"
9386 msgstr ""
9387
9388 # type: =item
9389 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1988
9390 msgid "C<app_name>"
9391 msgstr ""
9392
9393 # type: textblock
9394 #: ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:1990
9395 msgid ""
9396 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9397 "guests, this is the package name."
9398 msgstr ""
9399
9400 # type: =item
9401 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1993
9402 msgid "C<app_display_name>"
9403 msgstr ""
9404
9405 # type: textblock
9406 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:1995
9407 msgid ""
9408 "The display name of the application, sometimes localized to the install "
9409 "language of the guest operating system."
9410 msgstr ""
9411
9412 # type: textblock
9413 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1998
9414 msgid ""
9415 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9416 "to display something can use C<app_name> instead."
9417 msgstr ""
9418
9419 # type: =item
9420 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2001
9421 msgid "C<app_epoch>"
9422 msgstr ""
9423
9424 # type: textblock
9425 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2003
9426 msgid ""
9427 "For package managers which use epochs, this contains the epoch of the "
9428 "package (an integer).  If unavailable, this is returned as C<0>."
9429 msgstr ""
9430
9431 # type: =item
9432 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2006
9433 msgid "C<app_version>"
9434 msgstr ""
9435
9436 # type: textblock
9437 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2008
9438 msgid ""
9439 "The version string of the application or package.  If unavailable this is "
9440 "returned as an empty string C<\"\">."
9441 msgstr ""
9442
9443 # type: =item
9444 #: ../src/guestfs-actions.pod:2912 ../fish/guestfish-actions.pod:2011
9445 msgid "C<app_release>"
9446 msgstr ""
9447
9448 # type: textblock
9449 #: ../src/guestfs-actions.pod:2914 ../fish/guestfish-actions.pod:2013
9450 msgid ""
9451 "The release string of the application or package, for package managers that "
9452 "use this.  If unavailable this is returned as an empty string C<\"\">."
9453 msgstr ""
9454
9455 # type: =item
9456 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2017
9457 msgid "C<app_install_path>"
9458 msgstr ""
9459
9460 # type: textblock
9461 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:2019
9462 msgid ""
9463 "The installation path of the application (on operating systems such as "
9464 "Windows which use installation paths).  This path is in the format used by "
9465 "the guest operating system, it is not a libguestfs path."
9466 msgstr ""
9467
9468 # type: textblock
9469 #: ../src/guestfs-actions.pod:2925 ../fish/guestfish-actions.pod:2024
9470 msgid "If unavailable this is returned as an empty string C<\"\">."
9471 msgstr ""
9472
9473 # type: =item
9474 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2026
9475 msgid "C<app_trans_path>"
9476 msgstr ""
9477
9478 # type: textblock
9479 #: ../src/guestfs-actions.pod:2929 ../fish/guestfish-actions.pod:2028
9480 msgid ""
9481 "The install path translated into a libguestfs path.  If unavailable this is "
9482 "returned as an empty string C<\"\">."
9483 msgstr ""
9484
9485 # type: =item
9486 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2031
9487 msgid "C<app_publisher>"
9488 msgstr ""
9489
9490 # type: textblock
9491 #: ../src/guestfs-actions.pod:2934 ../fish/guestfish-actions.pod:2033
9492 msgid ""
9493 "The name of the publisher of the application, for package managers that use "
9494 "this.  If unavailable this is returned as an empty string C<\"\">."
9495 msgstr ""
9496
9497 # type: =item
9498 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2037
9499 msgid "C<app_url>"
9500 msgstr ""
9501
9502 # type: textblock
9503 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2039
9504 msgid ""
9505 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9506 "returned as an empty string C<\"\">."
9507 msgstr ""
9508
9509 # type: =item
9510 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2042
9511 msgid "C<app_source_package>"
9512 msgstr ""
9513
9514 # type: textblock
9515 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2044
9516 msgid ""
9517 "For packaging systems which support this, the name of the source package.  "
9518 "If unavailable this is returned as an empty string C<\"\">."
9519 msgstr ""
9520
9521 # type: =item
9522 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2047
9523 msgid "C<app_summary>"
9524 msgstr ""
9525
9526 # type: textblock
9527 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2049
9528 msgid ""
9529 "A short (usually one line) description of the application or package.  If "
9530 "unavailable this is returned as an empty string C<\"\">."
9531 msgstr ""
9532
9533 # type: =item
9534 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2052
9535 msgid "C<app_description>"
9536 msgstr ""
9537
9538 # type: textblock
9539 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2054
9540 msgid ""
9541 "A longer description of the application or package.  If unavailable this is "
9542 "returned as an empty string C<\"\">."
9543 msgstr ""
9544
9545 # type: textblock
9546 #: ../src/guestfs-actions.pod:2962
9547 msgid ""
9548 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9549 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9550 "after use>."
9551 msgstr ""
9552
9553 # type: textblock
9554 #: ../src/guestfs-actions.pod:2966
9555 msgid "(Added in 1.7.8)"
9556 msgstr ""
9557
9558 # type: =head2
9559 #: ../src/guestfs-actions.pod:2968
9560 msgid "guestfs_inspect_os"
9561 msgstr ""
9562
9563 # type: verbatim
9564 #: ../src/guestfs-actions.pod:2970
9565 #, no-wrap
9566 msgid ""
9567 " char **\n"
9568 " guestfs_inspect_os (guestfs_h *g);\n"
9569 "\n"
9570 msgstr ""
9571
9572 # type: textblock
9573 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2065
9574 msgid ""
9575 "This function uses other libguestfs functions and certain heuristics to "
9576 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9577 "for operating systems."
9578 msgstr ""
9579
9580 # type: textblock
9581 #: ../src/guestfs-actions.pod:2977 ../fish/guestfish-actions.pod:2069
9582 msgid "The list returned is empty if no operating systems were found."
9583 msgstr ""
9584
9585 # type: textblock
9586 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2071
9587 msgid ""
9588 "If one operating system was found, then this returns a list with a single "
9589 "element, which is the name of the root filesystem of this operating system.  "
9590 "It is also possible for this function to return a list containing more than "
9591 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9592 "element being the root filesystem of one of the operating systems."
9593 msgstr ""
9594
9595 # type: textblock
9596 #: ../src/guestfs-actions.pod:2986
9597 msgid ""
9598 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9599 "functions in order to query further information about each operating system, "
9600 "such as the name and version."
9601 msgstr ""
9602
9603 # type: textblock
9604 #: ../src/guestfs-actions.pod:2991
9605 msgid ""
9606 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9607 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9608 "the contents.  This should be called with no disks currently mounted.  The "
9609 "function may also use Augeas, so any existing Augeas handle will be closed."
9610 msgstr ""
9611
9612 # type: textblock
9613 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2089
9614 msgid ""
9615 "This function cannot decrypt encrypted disks.  The caller must do that first "
9616 "(supplying the necessary keys) if the disk is encrypted."
9617 msgstr ""
9618
9619 # type: textblock
9620 #: ../src/guestfs-actions.pod:3003 ../src/guestfs-actions.pod:3258
9621 #: ../src/guestfs-actions.pod:3320
9622 msgid "See also C<guestfs_list_filesystems>."
9623 msgstr ""
9624
9625 # type: =head2
9626 #: ../src/guestfs-actions.pod:3011
9627 msgid "guestfs_is_blockdev"
9628 msgstr ""
9629
9630 # type: verbatim
9631 #: ../src/guestfs-actions.pod:3013
9632 #, no-wrap
9633 msgid ""
9634 " int\n"
9635 " guestfs_is_blockdev (guestfs_h *g,\n"
9636 "                      const char *path);\n"
9637 "\n"
9638 msgstr ""
9639
9640 # type: textblock
9641 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2101
9642 msgid ""
9643 "This returns C<true> if and only if there is a block device with the given "
9644 "C<path> name."
9645 msgstr ""
9646
9647 # type: textblock
9648 #: ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3049
9649 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3094
9650 #: ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3166
9651 #: ../src/guestfs-actions.pod:3181
9652 msgid "See also C<guestfs_stat>."
9653 msgstr ""
9654
9655 # type: textblock
9656 #: ../src/guestfs-actions.pod:3024 ../src/guestfs-actions.pod:3053
9657 #: ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3170
9658 #: ../src/guestfs-actions.pod:3185
9659 msgid "(Added in 1.5.10)"
9660 msgstr ""
9661
9662 # type: =head2
9663 #: ../src/guestfs-actions.pod:3026
9664 msgid "guestfs_is_busy"
9665 msgstr ""
9666
9667 # type: verbatim
9668 #: ../src/guestfs-actions.pod:3028
9669 #, no-wrap
9670 msgid ""
9671 " int\n"
9672 " guestfs_is_busy (guestfs_h *g);\n"
9673 "\n"
9674 msgstr ""
9675
9676 # type: textblock
9677 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2110
9678 msgid ""
9679 "This returns true iff this handle is busy processing a command (in the "
9680 "C<BUSY> state)."
9681 msgstr ""
9682
9683 # type: =head2
9684 #: ../src/guestfs-actions.pod:3040
9685 msgid "guestfs_is_chardev"
9686 msgstr ""
9687
9688 # type: verbatim
9689 #: ../src/guestfs-actions.pod:3042
9690 #, no-wrap
9691 msgid ""
9692 " int\n"
9693 " guestfs_is_chardev (guestfs_h *g,\n"
9694 "                     const char *path);\n"
9695 "\n"
9696 msgstr ""
9697
9698 # type: textblock
9699 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2119
9700 msgid ""
9701 "This returns C<true> if and only if there is a character device with the "
9702 "given C<path> name."
9703 msgstr ""
9704
9705 # type: =head2
9706 #: ../src/guestfs-actions.pod:3055
9707 msgid "guestfs_is_config"
9708 msgstr ""
9709
9710 # type: verbatim
9711 #: ../src/guestfs-actions.pod:3057
9712 #, no-wrap
9713 msgid ""
9714 " int\n"
9715 " guestfs_is_config (guestfs_h *g);\n"
9716 "\n"
9717 msgstr ""
9718
9719 # type: textblock
9720 #: ../src/guestfs-actions.pod:3060 ../fish/guestfish-actions.pod:2128
9721 msgid ""
9722 "This returns true iff this handle is being configured (in the C<CONFIG> "
9723 "state)."
9724 msgstr ""
9725
9726 # type: =head2
9727 #: ../src/guestfs-actions.pod:3069
9728 msgid "guestfs_is_dir"
9729 msgstr ""
9730
9731 # type: verbatim
9732 #: ../src/guestfs-actions.pod:3071
9733 #, no-wrap
9734 msgid ""
9735 " int\n"
9736 " guestfs_is_dir (guestfs_h *g,\n"
9737 "                 const char *path);\n"
9738 "\n"
9739 msgstr ""
9740
9741 # type: textblock
9742 #: ../src/guestfs-actions.pod:3075 ../fish/guestfish-actions.pod:2137
9743 msgid ""
9744 "This returns C<true> if and only if there is a directory with the given "
9745 "C<path> name.  Note that it returns false for other objects like files."
9746 msgstr ""
9747
9748 # type: =head2
9749 #: ../src/guestfs-actions.pod:3085
9750 msgid "guestfs_is_fifo"
9751 msgstr ""
9752
9753 # type: verbatim
9754 #: ../src/guestfs-actions.pod:3087
9755 #, no-wrap
9756 msgid ""
9757 " int\n"
9758 " guestfs_is_fifo (guestfs_h *g,\n"
9759 "                  const char *path);\n"
9760 "\n"
9761 msgstr ""
9762
9763 # type: textblock
9764 #: ../src/guestfs-actions.pod:3091 ../fish/guestfish-actions.pod:2147
9765 msgid ""
9766 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9767 "given C<path> name."
9768 msgstr ""
9769
9770 # type: =head2
9771 #: ../src/guestfs-actions.pod:3100
9772 msgid "guestfs_is_file"
9773 msgstr ""
9774
9775 # type: verbatim
9776 #: ../src/guestfs-actions.pod:3102
9777 #, no-wrap
9778 msgid ""
9779 " int\n"
9780 " guestfs_is_file (guestfs_h *g,\n"
9781 "                  const char *path);\n"
9782 "\n"
9783 msgstr ""
9784
9785 # type: textblock
9786 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2156
9787 msgid ""
9788 "This returns C<true> if and only if there is a regular file with the given "
9789 "C<path> name.  Note that it returns false for other objects like directories."
9790 msgstr ""
9791
9792 # type: =head2
9793 #: ../src/guestfs-actions.pod:3116
9794 msgid "guestfs_is_launching"
9795 msgstr ""
9796
9797 # type: verbatim
9798 #: ../src/guestfs-actions.pod:3118
9799 #, no-wrap
9800 msgid ""
9801 " int\n"
9802 " guestfs_is_launching (guestfs_h *g);\n"
9803 "\n"
9804 msgstr ""
9805
9806 # type: textblock
9807 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2166
9808 msgid ""
9809 "This returns true iff this handle is launching the subprocess (in the "
9810 "C<LAUNCHING> state)."
9811 msgstr ""
9812
9813 # type: =head2
9814 #: ../src/guestfs-actions.pod:3130
9815 msgid "guestfs_is_lv"
9816 msgstr ""
9817
9818 # type: verbatim
9819 #: ../src/guestfs-actions.pod:3132
9820 #, no-wrap
9821 msgid ""
9822 " int\n"
9823 " guestfs_is_lv (guestfs_h *g,\n"
9824 "                const char *device);\n"
9825 "\n"
9826 msgstr ""
9827
9828 # type: textblock
9829 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2175
9830 msgid ""
9831 "This command tests whether C<device> is a logical volume, and returns true "
9832 "iff this is the case."
9833 msgstr ""
9834
9835 # type: =head2
9836 #: ../src/guestfs-actions.pod:3143
9837 msgid "guestfs_is_ready"
9838 msgstr ""
9839
9840 # type: verbatim
9841 #: ../src/guestfs-actions.pod:3145
9842 #, no-wrap
9843 msgid ""
9844 " int\n"
9845 " guestfs_is_ready (guestfs_h *g);\n"
9846 "\n"
9847 msgstr ""
9848
9849 # type: textblock
9850 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2182
9851 msgid ""
9852 "This returns true iff this handle is ready to accept commands (in the "
9853 "C<READY> state)."
9854 msgstr ""
9855
9856 # type: =head2
9857 #: ../src/guestfs-actions.pod:3157
9858 msgid "guestfs_is_socket"
9859 msgstr ""
9860
9861 # type: verbatim
9862 #: ../src/guestfs-actions.pod:3159
9863 #, no-wrap
9864 msgid ""
9865 " int\n"
9866 " guestfs_is_socket (guestfs_h *g,\n"
9867 "                    const char *path);\n"
9868 "\n"
9869 msgstr ""
9870
9871 # type: textblock
9872 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2191
9873 msgid ""
9874 "This returns C<true> if and only if there is a Unix domain socket with the "
9875 "given C<path> name."
9876 msgstr ""
9877
9878 # type: =head2
9879 #: ../src/guestfs-actions.pod:3172
9880 msgid "guestfs_is_symlink"
9881 msgstr ""
9882
9883 # type: verbatim
9884 #: ../src/guestfs-actions.pod:3174
9885 #, no-wrap
9886 msgid ""
9887 " int\n"
9888 " guestfs_is_symlink (guestfs_h *g,\n"
9889 "                     const char *path);\n"
9890 "\n"
9891 msgstr ""
9892
9893 # type: textblock
9894 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2200
9895 msgid ""
9896 "This returns C<true> if and only if there is a symbolic link with the given "
9897 "C<path> name."
9898 msgstr ""
9899
9900 # type: =head2
9901 #: ../src/guestfs-actions.pod:3187
9902 msgid "guestfs_kill_subprocess"
9903 msgstr ""
9904
9905 # type: verbatim
9906 #: ../src/guestfs-actions.pod:3189
9907 #, no-wrap
9908 msgid ""
9909 " int\n"
9910 " guestfs_kill_subprocess (guestfs_h *g);\n"
9911 "\n"
9912 msgstr ""
9913
9914 # type: textblock
9915 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2209
9916 msgid "This kills the qemu subprocess.  You should never need to call this."
9917 msgstr ""
9918
9919 # type: =head2
9920 #: ../src/guestfs-actions.pod:3198
9921 msgid "guestfs_launch"
9922 msgstr ""
9923
9924 # type: verbatim
9925 #: ../src/guestfs-actions.pod:3200
9926 #, no-wrap
9927 msgid ""
9928 " int\n"
9929 " guestfs_launch (guestfs_h *g);\n"
9930 "\n"
9931 msgstr ""
9932
9933 # type: textblock
9934 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2217
9935 msgid ""
9936 "Internally libguestfs is implemented by running a virtual machine using "
9937 "L<qemu(1)>."
9938 msgstr ""
9939
9940 # type: textblock
9941 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
9942 msgid ""
9943 "You should call this after configuring the handle (eg. adding drives) but "
9944 "before performing any actions."
9945 msgstr ""
9946
9947 # type: =head2
9948 #: ../src/guestfs-actions.pod:3213
9949 msgid "guestfs_lchown"
9950 msgstr ""
9951
9952 # type: verbatim
9953 #: ../src/guestfs-actions.pod:3215
9954 #, no-wrap
9955 msgid ""
9956 " int\n"
9957 " guestfs_lchown (guestfs_h *g,\n"
9958 "                 int owner,\n"
9959 "                 int group,\n"
9960 "                 const char *path);\n"
9961 "\n"
9962 msgstr ""
9963
9964 # type: textblock
9965 #: ../src/guestfs-actions.pod:3221
9966 msgid ""
9967 "Change the file owner to C<owner> and group to C<group>.  This is like "
9968 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9969 "changed, not the target."
9970 msgstr ""
9971
9972 # type: =head2
9973 #: ../src/guestfs-actions.pod:3233
9974 msgid "guestfs_lgetxattrs"
9975 msgstr ""
9976
9977 # type: verbatim
9978 #: ../src/guestfs-actions.pod:3235
9979 #, no-wrap
9980 msgid ""
9981 " struct guestfs_xattr_list *\n"
9982 " guestfs_lgetxattrs (guestfs_h *g,\n"
9983 "                     const char *path);\n"
9984 "\n"
9985 msgstr ""
9986
9987 # type: textblock
9988 #: ../src/guestfs-actions.pod:3239
9989 msgid ""
9990 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9991 "then it returns the extended attributes of the link itself."
9992 msgstr ""
9993
9994 # type: =head2
9995 #: ../src/guestfs-actions.pod:3249
9996 msgid "guestfs_list_devices"
9997 msgstr ""
9998
9999 # type: verbatim
10000 #: ../src/guestfs-actions.pod:3251
10001 #, no-wrap
10002 msgid ""
10003 " char **\n"
10004 " guestfs_list_devices (guestfs_h *g);\n"
10005 "\n"
10006 msgstr ""
10007
10008 # type: textblock
10009 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2247
10010 msgid "List all the block devices."
10011 msgstr ""
10012
10013 # type: textblock
10014 #: ../src/guestfs-actions.pod:3256 ../fish/guestfish-actions.pod:2249
10015 msgid "The full block device names are returned, eg. C</dev/sda>."
10016 msgstr ""
10017
10018 # type: =head2
10019 #: ../src/guestfs-actions.pod:3266
10020 msgid "guestfs_list_filesystems"
10021 msgstr ""
10022
10023 # type: verbatim
10024 #: ../src/guestfs-actions.pod:3268
10025 #, no-wrap
10026 msgid ""
10027 " char **\n"
10028 " guestfs_list_filesystems (guestfs_h *g);\n"
10029 "\n"
10030 msgstr ""
10031
10032 # type: textblock
10033 #: ../src/guestfs-actions.pod:3271 ../fish/guestfish-actions.pod:2257
10034 msgid ""
10035 "This inspection command looks for filesystems on partitions, block devices "
10036 "and logical volumes, returning a list of devices containing filesystems and "
10037 "their type."
10038 msgstr ""
10039
10040 # type: textblock
10041 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2261
10042 msgid ""
10043 "The return value is a hash, where the keys are the devices containing "
10044 "filesystems, and the values are the filesystem types.  For example:"
10045 msgstr ""
10046
10047 # type: verbatim
10048 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2265
10049 #, no-wrap
10050 msgid ""
10051 " \"/dev/sda1\" => \"ntfs\"\n"
10052 " \"/dev/sda2\" => \"ext2\"\n"
10053 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10054 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10055 "\n"
10056 msgstr ""
10057
10058 # type: textblock
10059 #: ../src/guestfs-actions.pod:3284 ../fish/guestfish-actions.pod:2270
10060 msgid ""
10061 "The value can have the special value \"unknown\", meaning the content of the "
10062 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10063 msgstr ""
10064
10065 # type: textblock
10066 #: ../src/guestfs-actions.pod:3288
10067 msgid ""
10068 "This command runs other libguestfs commands, which might include "
10069 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10070 "soon after launch and only when nothing is mounted."
10071 msgstr ""
10072
10073 # type: textblock
10074 #: ../src/guestfs-actions.pod:3292
10075 msgid ""
10076 "Not all of the filesystems returned will be mountable.  In particular, swap "
10077 "partitions are returned in the list.  Also this command does not check that "
10078 "each filesystem found is valid and mountable, and some filesystems might be "
10079 "mountable but require special options.  Filesystems may not all belong to a "
10080 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10081 msgstr ""
10082
10083 # type: textblock
10084 #: ../src/guestfs-actions.pod:3306 ../src/guestfs-actions.pod:4895
10085 msgid "(Added in 1.5.15)"
10086 msgstr ""
10087
10088 # type: =head2
10089 #: ../src/guestfs-actions.pod:3308
10090 msgid "guestfs_list_partitions"
10091 msgstr ""
10092
10093 # type: verbatim
10094 #: ../src/guestfs-actions.pod:3310
10095 #, no-wrap
10096 msgid ""
10097 " char **\n"
10098 " guestfs_list_partitions (guestfs_h *g);\n"
10099 "\n"
10100 msgstr ""
10101
10102 # type: textblock
10103 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:2290
10104 msgid "List all the partitions detected on all block devices."
10105 msgstr ""
10106
10107 # type: textblock
10108 #: ../src/guestfs-actions.pod:3315 ../fish/guestfish-actions.pod:2292
10109 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10110 msgstr ""
10111
10112 # type: textblock
10113 #: ../src/guestfs-actions.pod:3317
10114 msgid ""
10115 "This does not return logical volumes.  For that you will need to call "
10116 "C<guestfs_lvs>."
10117 msgstr ""
10118
10119 # type: =head2
10120 #: ../src/guestfs-actions.pod:3328
10121 msgid "guestfs_ll"
10122 msgstr ""
10123
10124 # type: verbatim
10125 #: ../src/guestfs-actions.pod:3330
10126 #, no-wrap
10127 msgid ""
10128 " char *\n"
10129 " guestfs_ll (guestfs_h *g,\n"
10130 "             const char *directory);\n"
10131 "\n"
10132 msgstr ""
10133
10134 # type: textblock
10135 #: ../src/guestfs-actions.pod:3334 ../fish/guestfish-actions.pod:2303
10136 msgid ""
10137 "List the files in C<directory> (relative to the root directory, there is no "
10138 "cwd) in the format of 'ls -la'."
10139 msgstr ""
10140
10141 # type: textblock
10142 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2306
10143 msgid ""
10144 "This command is mostly useful for interactive sessions.  It is I<not> "
10145 "intended that you try to parse the output string."
10146 msgstr ""
10147
10148 # type: =head2
10149 #: ../src/guestfs-actions.pod:3345
10150 msgid "guestfs_ln"
10151 msgstr ""
10152
10153 # type: verbatim
10154 #: ../src/guestfs-actions.pod:3347
10155 #, no-wrap
10156 msgid ""
10157 " int\n"
10158 " guestfs_ln (guestfs_h *g,\n"
10159 "             const char *target,\n"
10160 "             const char *linkname);\n"
10161 "\n"
10162 msgstr ""
10163
10164 # type: textblock
10165 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2313
10166 msgid "This command creates a hard link using the C<ln> command."
10167 msgstr ""
10168
10169 # type: =head2
10170 #: ../src/guestfs-actions.pod:3358
10171 msgid "guestfs_ln_f"
10172 msgstr ""
10173
10174 # type: verbatim
10175 #: ../src/guestfs-actions.pod:3360
10176 #, no-wrap
10177 msgid ""
10178 " int\n"
10179 " guestfs_ln_f (guestfs_h *g,\n"
10180 "               const char *target,\n"
10181 "               const char *linkname);\n"
10182 "\n"
10183 msgstr ""
10184
10185 # type: textblock
10186 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2319
10187 msgid ""
10188 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10189 "option removes the link (C<linkname>) if it exists already."
10190 msgstr ""
10191
10192 # type: =head2
10193 #: ../src/guestfs-actions.pod:3372
10194 msgid "guestfs_ln_s"
10195 msgstr ""
10196
10197 # type: verbatim
10198 #: ../src/guestfs-actions.pod:3374
10199 #, no-wrap
10200 msgid ""
10201 " int\n"
10202 " guestfs_ln_s (guestfs_h *g,\n"
10203 "               const char *target,\n"
10204 "               const char *linkname);\n"
10205 "\n"
10206 msgstr ""
10207
10208 # type: textblock
10209 #: ../src/guestfs-actions.pod:3379 ../fish/guestfish-actions.pod:2326
10210 msgid "This command creates a symbolic link using the C<ln -s> command."
10211 msgstr ""
10212
10213 # type: =head2
10214 #: ../src/guestfs-actions.pod:3385
10215 msgid "guestfs_ln_sf"
10216 msgstr ""
10217
10218 # type: verbatim
10219 #: ../src/guestfs-actions.pod:3387
10220 #, no-wrap
10221 msgid ""
10222 " int\n"
10223 " guestfs_ln_sf (guestfs_h *g,\n"
10224 "                const char *target,\n"
10225 "                const char *linkname);\n"
10226 "\n"
10227 msgstr ""
10228
10229 # type: textblock
10230 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2332
10231 msgid ""
10232 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10233 "option removes the link (C<linkname>) if it exists already."
10234 msgstr ""
10235
10236 # type: =head2
10237 #: ../src/guestfs-actions.pod:3399
10238 msgid "guestfs_lremovexattr"
10239 msgstr ""
10240
10241 # type: verbatim
10242 #: ../src/guestfs-actions.pod:3401
10243 #, no-wrap
10244 msgid ""
10245 " int\n"
10246 " guestfs_lremovexattr (guestfs_h *g,\n"
10247 "                       const char *xattr,\n"
10248 "                       const char *path);\n"
10249 "\n"
10250 msgstr ""
10251
10252 # type: textblock
10253 #: ../src/guestfs-actions.pod:3406
10254 msgid ""
10255 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10256 "link, then it removes an extended attribute of the link itself."
10257 msgstr ""
10258
10259 # type: =head2
10260 #: ../src/guestfs-actions.pod:3414
10261 msgid "guestfs_ls"
10262 msgstr ""
10263
10264 # type: verbatim
10265 #: ../src/guestfs-actions.pod:3416
10266 #, no-wrap
10267 msgid ""
10268 " char **\n"
10269 " guestfs_ls (guestfs_h *g,\n"
10270 "             const char *directory);\n"
10271 "\n"
10272 msgstr ""
10273
10274 # type: textblock
10275 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2347
10276 msgid ""
10277 "List the files in C<directory> (relative to the root directory, there is no "
10278 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10279 msgstr ""
10280
10281 # type: textblock
10282 #: ../src/guestfs-actions.pod:3424
10283 msgid ""
10284 "This command is mostly useful for interactive sessions.  Programs should "
10285 "probably use C<guestfs_readdir> instead."
10286 msgstr ""
10287
10288 # type: =head2
10289 #: ../src/guestfs-actions.pod:3433
10290 msgid "guestfs_lsetxattr"
10291 msgstr ""
10292
10293 # type: verbatim
10294 #: ../src/guestfs-actions.pod:3435
10295 #, no-wrap
10296 msgid ""
10297 " int\n"
10298 " guestfs_lsetxattr (guestfs_h *g,\n"
10299 "                    const char *xattr,\n"
10300 "                    const char *val,\n"
10301 "                    int vallen,\n"
10302 "                    const char *path);\n"
10303 "\n"
10304 msgstr ""
10305
10306 # type: textblock
10307 #: ../src/guestfs-actions.pod:3442
10308 msgid ""
10309 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10310 "then it sets an extended attribute of the link itself."
10311 msgstr ""
10312
10313 # type: =head2
10314 #: ../src/guestfs-actions.pod:3450
10315 msgid "guestfs_lstat"
10316 msgstr ""
10317
10318 # type: verbatim
10319 #: ../src/guestfs-actions.pod:3452
10320 #, no-wrap
10321 msgid ""
10322 " struct guestfs_stat *\n"
10323 " guestfs_lstat (guestfs_h *g,\n"
10324 "                const char *path);\n"
10325 "\n"
10326 msgstr ""
10327
10328 # type: textblock
10329 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5949
10330 #: ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3979
10331 msgid "Returns file information for the given C<path>."
10332 msgstr ""
10333
10334 # type: textblock
10335 #: ../src/guestfs-actions.pod:3458
10336 msgid ""
10337 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10338 "link, then the link is stat-ed, not the file it refers to."
10339 msgstr ""
10340
10341 # type: textblock
10342 #: ../src/guestfs-actions.pod:3462 ../fish/guestfish-actions.pod:2372
10343 msgid "This is the same as the C<lstat(2)> system call."
10344 msgstr ""
10345
10346 # type: textblock
10347 #: ../src/guestfs-actions.pod:3464 ../src/guestfs-actions.pod:5953
10348 msgid ""
10349 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10350 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10351 msgstr ""
10352
10353 # type: textblock
10354 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:5957
10355 #: ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:6356
10356 msgid "(Added in 0.9.2)"
10357 msgstr ""
10358
10359 # type: =head2
10360 #: ../src/guestfs-actions.pod:3470
10361 msgid "guestfs_lstatlist"
10362 msgstr ""
10363
10364 # type: verbatim
10365 #: ../src/guestfs-actions.pod:3472
10366 #, no-wrap
10367 msgid ""
10368 " struct guestfs_stat_list *\n"
10369 " guestfs_lstatlist (guestfs_h *g,\n"
10370 "                    const char *path,\n"
10371 "                    char *const *names);\n"
10372 "\n"
10373 msgstr ""
10374
10375 # type: textblock
10376 #: ../src/guestfs-actions.pod:3477
10377 msgid ""
10378 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10379 "files, where all files are in the directory C<path>.  C<names> is the list "
10380 "of files from this directory."
10381 msgstr ""
10382
10383 # type: textblock
10384 #: ../src/guestfs-actions.pod:3481 ../fish/guestfish-actions.pod:2382
10385 msgid ""
10386 "On return you get a list of stat structs, with a one-to-one correspondence "
10387 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10388 "then the C<ino> field of that structure is set to C<-1>."
10389 msgstr ""
10390
10391 # type: textblock
10392 #: ../src/guestfs-actions.pod:3486
10393 msgid ""
10394 "This call is intended for programs that want to efficiently list a directory "
10395 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10396 "for a similarly efficient call for getting extended attributes.  Very long "
10397 "directory listings might cause the protocol message size to be exceeded, "
10398 "causing this call to fail.  The caller must split up such requests into "
10399 "smaller groups of names."
10400 msgstr ""
10401
10402 # type: textblock
10403 #: ../src/guestfs-actions.pod:3494
10404 msgid ""
10405 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10406 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10407 msgstr ""
10408
10409 # type: =head2
10410 #: ../src/guestfs-actions.pod:3500
10411 msgid "guestfs_luks_add_key"
10412 msgstr ""
10413
10414 # type: verbatim
10415 #: ../src/guestfs-actions.pod:3502
10416 #, no-wrap
10417 msgid ""
10418 " int\n"
10419 " guestfs_luks_add_key (guestfs_h *g,\n"
10420 "                       const char *device,\n"
10421 "                       const char *key,\n"
10422 "                       const char *newkey,\n"
10423 "                       int keyslot);\n"
10424 "\n"
10425 msgstr ""
10426
10427 # type: textblock
10428 #: ../src/guestfs-actions.pod:3509 ../fish/guestfish-actions.pod:2399
10429 msgid ""
10430 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10431 "existing key, and is used to access the device.  C<newkey> is the new key to "
10432 "add.  C<keyslot> is the key slot that will be replaced."
10433 msgstr ""
10434
10435 # type: textblock
10436 #: ../src/guestfs-actions.pod:3514
10437 msgid ""
10438 "Note that if C<keyslot> already contains a key, then this command will "
10439 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10440 msgstr ""
10441
10442 # type: textblock
10443 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:3560
10444 #: ../src/guestfs-actions.pod:3583 ../src/guestfs-actions.pod:3603
10445 #: ../src/guestfs-actions.pod:3635 ../src/guestfs-actions.pod:3654
10446 msgid ""
10447 "This function takes a key or passphrase parameter which could contain "
10448 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10449 "information."
10450 msgstr ""
10451
10452 # type: textblock
10453 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3564
10454 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3607
10455 msgid "(Added in 1.5.2)"
10456 msgstr ""
10457
10458 # type: =head2
10459 #: ../src/guestfs-actions.pod:3526
10460 msgid "guestfs_luks_close"
10461 msgstr ""
10462
10463 # type: verbatim
10464 #: ../src/guestfs-actions.pod:3528
10465 #, no-wrap
10466 msgid ""
10467 " int\n"
10468 " guestfs_luks_close (guestfs_h *g,\n"
10469 "                     const char *device);\n"
10470 "\n"
10471 msgstr ""
10472
10473 # type: textblock
10474 #: ../src/guestfs-actions.pod:3532
10475 msgid ""
10476 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10477 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10478 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10479 "underlying block device."
10480 msgstr ""
10481
10482 # type: textblock
10483 #: ../src/guestfs-actions.pod:3540 ../src/guestfs-actions.pod:3639
10484 #: ../src/guestfs-actions.pod:3658 ../src/guestfs-actions.pod:3708
10485 #: ../src/guestfs-actions.pod:3756
10486 msgid "(Added in 1.5.1)"
10487 msgstr ""
10488
10489 # type: =head2
10490 #: ../src/guestfs-actions.pod:3542
10491 msgid "guestfs_luks_format"
10492 msgstr ""
10493
10494 # type: verbatim
10495 #: ../src/guestfs-actions.pod:3544
10496 #, no-wrap
10497 msgid ""
10498 " int\n"
10499 " guestfs_luks_format (guestfs_h *g,\n"
10500 "                      const char *device,\n"
10501 "                      const char *key,\n"
10502 "                      int keyslot);\n"
10503 "\n"
10504 msgstr ""
10505
10506 # type: textblock
10507 #: ../src/guestfs-actions.pod:3550 ../fish/guestfish-actions.pod:2425
10508 msgid ""
10509 "This command erases existing data on C<device> and formats the device as a "
10510 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10511 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10512 msgstr ""
10513
10514 # type: textblock
10515 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3580
10516 #: ../src/guestfs-actions.pod:3720 ../src/guestfs-actions.pod:4646
10517 #: ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5784
10518 #: ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5833
10519 #: ../src/guestfs-actions.pod:6993 ../fish/guestfish-actions.pod:2433
10520 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530
10521 #: ../fish/guestfish-actions.pod:3091 ../fish/guestfish-actions.pod:3598
10522 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3894
10523 #: ../fish/guestfish-actions.pod:3909 ../fish/guestfish-actions.pod:4624
10524 msgid ""
10525 "B<This command is dangerous.  Without careful use you can easily destroy all "
10526 "your data>."
10527 msgstr ""
10528
10529 # type: =head2
10530 #: ../src/guestfs-actions.pod:3566
10531 msgid "guestfs_luks_format_cipher"
10532 msgstr ""
10533
10534 # type: verbatim
10535 #: ../src/guestfs-actions.pod:3568
10536 #, no-wrap
10537 msgid ""
10538 " int\n"
10539 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10540 "                             const char *device,\n"
10541 "                             const char *key,\n"
10542 "                             int keyslot,\n"
10543 "                             const char *cipher);\n"
10544 "\n"
10545 msgstr ""
10546
10547 # type: textblock
10548 #: ../src/guestfs-actions.pod:3575
10549 msgid ""
10550 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10551 "set the C<cipher> used."
10552 msgstr ""
10553
10554 # type: =head2
10555 #: ../src/guestfs-actions.pod:3589
10556 msgid "guestfs_luks_kill_slot"
10557 msgstr ""
10558
10559 # type: verbatim
10560 #: ../src/guestfs-actions.pod:3591
10561 #, no-wrap
10562 msgid ""
10563 " int\n"
10564 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10565 "                         const char *device,\n"
10566 "                         const char *key,\n"
10567 "                         int keyslot);\n"
10568 "\n"
10569 msgstr ""
10570
10571 # type: textblock
10572 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2453
10573 msgid ""
10574 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10575 "device C<device>.  C<key> must be one of the I<other> keys."
10576 msgstr ""
10577
10578 # type: =head2
10579 #: ../src/guestfs-actions.pod:3609
10580 msgid "guestfs_luks_open"
10581 msgstr ""
10582
10583 # type: verbatim
10584 #: ../src/guestfs-actions.pod:3611
10585 #, no-wrap
10586 msgid ""
10587 " int\n"
10588 " guestfs_luks_open (guestfs_h *g,\n"
10589 "                    const char *device,\n"
10590 "                    const char *key,\n"
10591 "                    const char *mapname);\n"
10592 "\n"
10593 msgstr ""
10594
10595 # type: textblock
10596 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2464
10597 msgid ""
10598 "This command opens a block device which has been encrypted according to the "
10599 "Linux Unified Key Setup (LUKS) standard."
10600 msgstr ""
10601
10602 # type: textblock
10603 #: ../src/guestfs-actions.pod:3620 ../fish/guestfish-actions.pod:2467
10604 msgid "C<device> is the encrypted block device or partition."
10605 msgstr ""
10606
10607 # type: textblock
10608 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2469
10609 msgid ""
10610 "The caller must supply one of the keys associated with the LUKS block "
10611 "device, in the C<key> parameter."
10612 msgstr ""
10613
10614 # type: textblock
10615 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2472
10616 msgid ""
10617 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10618 "writes to this block device are decrypted from and encrypted to the "
10619 "underlying C<device> respectively."
10620 msgstr ""
10621
10622 # type: textblock
10623 #: ../src/guestfs-actions.pod:3629
10624 msgid ""
10625 "If this block device contains LVM volume groups, then calling "
10626 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10627 "visible."
10628 msgstr ""
10629
10630 # type: =head2
10631 #: ../src/guestfs-actions.pod:3641
10632 msgid "guestfs_luks_open_ro"
10633 msgstr ""
10634
10635 # type: verbatim
10636 #: ../src/guestfs-actions.pod:3643
10637 #, no-wrap
10638 msgid ""
10639 " int\n"
10640 " guestfs_luks_open_ro (guestfs_h *g,\n"
10641 "                       const char *device,\n"
10642 "                       const char *key,\n"
10643 "                       const char *mapname);\n"
10644 "\n"
10645 msgstr ""
10646
10647 # type: textblock
10648 #: ../src/guestfs-actions.pod:3649
10649 msgid ""
10650 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10651 "created."
10652 msgstr ""
10653
10654 # type: =head2
10655 #: ../src/guestfs-actions.pod:3660
10656 msgid "guestfs_lvcreate"
10657 msgstr ""
10658
10659 # type: verbatim
10660 #: ../src/guestfs-actions.pod:3662
10661 #, no-wrap
10662 msgid ""
10663 " int\n"
10664 " guestfs_lvcreate (guestfs_h *g,\n"
10665 "                   const char *logvol,\n"
10666 "                   const char *volgroup,\n"
10667 "                   int mbytes);\n"
10668 "\n"
10669 msgstr ""
10670
10671 # type: textblock
10672 #: ../src/guestfs-actions.pod:3668 ../fish/guestfish-actions.pod:2497
10673 msgid ""
10674 "This creates an LVM logical volume called C<logvol> on the volume group "
10675 "C<volgroup>, with C<size> megabytes."
10676 msgstr ""
10677
10678 # type: =head2
10679 #: ../src/guestfs-actions.pod:3675
10680 msgid "guestfs_lvm_canonical_lv_name"
10681 msgstr ""
10682
10683 # type: verbatim
10684 #: ../src/guestfs-actions.pod:3677
10685 #, no-wrap
10686 msgid ""
10687 " char *\n"
10688 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10689 "                                const char *lvname);\n"
10690 "\n"
10691 msgstr ""
10692
10693 # type: textblock
10694 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2504
10695 msgid ""
10696 "This converts alternative naming schemes for LVs that you might find to the "
10697 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10698 "LV>."
10699 msgstr ""
10700
10701 # type: textblock
10702 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2508
10703 msgid ""
10704 "This command returns an error if the C<lvname> parameter does not refer to a "
10705 "logical volume."
10706 msgstr ""
10707
10708 # type: textblock
10709 #: ../src/guestfs-actions.pod:3688
10710 msgid "See also C<guestfs_is_lv>."
10711 msgstr ""
10712
10713 # type: textblock
10714 #: ../src/guestfs-actions.pod:3693
10715 msgid "(Added in 1.5.24)"
10716 msgstr ""
10717
10718 # type: =head2
10719 #: ../src/guestfs-actions.pod:3695
10720 msgid "guestfs_lvm_clear_filter"
10721 msgstr ""
10722
10723 # type: verbatim
10724 #: ../src/guestfs-actions.pod:3697
10725 #, no-wrap
10726 msgid ""
10727 " int\n"
10728 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10729 "\n"
10730 msgstr ""
10731
10732 # type: textblock
10733 #: ../src/guestfs-actions.pod:3700
10734 msgid ""
10735 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10736 "see every block device."
10737 msgstr ""
10738
10739 # type: textblock
10740 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3745
10741 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10742 msgid ""
10743 "This command also clears the LVM cache and performs a volume group scan."
10744 msgstr ""
10745
10746 # type: =head2
10747 #: ../src/guestfs-actions.pod:3710
10748 msgid "guestfs_lvm_remove_all"
10749 msgstr ""
10750
10751 # type: verbatim
10752 #: ../src/guestfs-actions.pod:3712
10753 #, no-wrap
10754 msgid ""
10755 " int\n"
10756 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10757 "\n"
10758 msgstr ""
10759
10760 # type: textblock
10761 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2527
10762 msgid ""
10763 "This command removes all LVM logical volumes, volume groups and physical "
10764 "volumes."
10765 msgstr ""
10766
10767 # type: =head2
10768 #: ../src/guestfs-actions.pod:3725
10769 msgid "guestfs_lvm_set_filter"
10770 msgstr ""
10771
10772 # type: verbatim
10773 #: ../src/guestfs-actions.pod:3727
10774 #, no-wrap
10775 msgid ""
10776 " int\n"
10777 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10778 "                         char *const *devices);\n"
10779 "\n"
10780 msgstr ""
10781
10782 # type: textblock
10783 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2537
10784 msgid ""
10785 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10786 "block devices in the list C<devices>, and will ignore all other attached "
10787 "block devices."
10788 msgstr ""
10789
10790 # type: textblock
10791 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2541
10792 msgid ""
10793 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10794 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10795 "there are two types of duplication possible: either cloned PVs/VGs which "
10796 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10797 "same name.  In normal operation you cannot create this situation, but you "
10798 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10799 "inside the LVM metadata."
10800 msgstr ""
10801
10802 # type: textblock
10803 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2554
10804 msgid "You can filter whole block devices or individual partitions."
10805 msgstr ""
10806
10807 # type: textblock
10808 #: ../src/guestfs-actions.pod:3750 ../fish/guestfish-actions.pod:2556
10809 msgid ""
10810 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10811 "filesystem), even if you are not filtering out that VG."
10812 msgstr ""
10813
10814 # type: =head2
10815 #: ../src/guestfs-actions.pod:3758
10816 msgid "guestfs_lvremove"
10817 msgstr ""
10818
10819 # type: verbatim
10820 #: ../src/guestfs-actions.pod:3760
10821 #, no-wrap
10822 msgid ""
10823 " int\n"
10824 " guestfs_lvremove (guestfs_h *g,\n"
10825 "                   const char *device);\n"
10826 "\n"
10827 msgstr ""
10828
10829 # type: textblock
10830 #: ../src/guestfs-actions.pod:3764 ../fish/guestfish-actions.pod:2564
10831 msgid ""
10832 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10833 "LV, such as C</dev/VG/LV>."
10834 msgstr ""
10835
10836 # type: textblock
10837 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2567
10838 msgid ""
10839 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10840 "dev/VG>."
10841 msgstr ""
10842
10843 # type: textblock
10844 #: ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:4992
10845 #: ../src/guestfs-actions.pod:6732
10846 msgid "(Added in 1.0.13)"
10847 msgstr ""
10848
10849 # type: =head2
10850 #: ../src/guestfs-actions.pod:3774
10851 msgid "guestfs_lvrename"
10852 msgstr ""
10853
10854 # type: verbatim
10855 #: ../src/guestfs-actions.pod:3776
10856 #, no-wrap
10857 msgid ""
10858 " int\n"
10859 " guestfs_lvrename (guestfs_h *g,\n"
10860 "                   const char *logvol,\n"
10861 "                   const char *newlogvol);\n"
10862 "\n"
10863 msgstr ""
10864
10865 # type: textblock
10866 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2574
10867 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10868 msgstr ""
10869
10870 # type: textblock
10871 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:6745
10872 msgid "(Added in 1.0.83)"
10873 msgstr ""
10874
10875 # type: =head2
10876 #: ../src/guestfs-actions.pod:3787
10877 msgid "guestfs_lvresize"
10878 msgstr ""
10879
10880 # type: verbatim
10881 #: ../src/guestfs-actions.pod:3789
10882 #, no-wrap
10883 msgid ""
10884 " int\n"
10885 " guestfs_lvresize (guestfs_h *g,\n"
10886 "                   const char *device,\n"
10887 "                   int mbytes);\n"
10888 "\n"
10889 msgstr ""
10890
10891 # type: textblock
10892 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2580
10893 msgid ""
10894 "This resizes (expands or shrinks) an existing LVM logical volume to "
10895 "C<mbytes>.  When reducing, data in the reduced part is lost."
10896 msgstr ""
10897
10898 # type: =head2
10899 #: ../src/guestfs-actions.pod:3802
10900 msgid "guestfs_lvresize_free"
10901 msgstr ""
10902
10903 # type: verbatim
10904 #: ../src/guestfs-actions.pod:3804
10905 #, no-wrap
10906 msgid ""
10907 " int\n"
10908 " guestfs_lvresize_free (guestfs_h *g,\n"
10909 "                        const char *lv,\n"
10910 "                        int percent);\n"
10911 "\n"
10912 msgstr ""
10913
10914 # type: textblock
10915 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2588
10916 msgid ""
10917 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10918 "remaining free space in the volume group.  Commonly you would call this with "
10919 "pc = 100 which expands the logical volume as much as possible, using all "
10920 "remaining free space in the volume group."
10921 msgstr ""
10922
10923 # type: textblock
10924 #: ../src/guestfs-actions.pod:3817
10925 msgid "(Added in 1.3.3)"
10926 msgstr ""
10927
10928 # type: =head2
10929 #: ../src/guestfs-actions.pod:3819
10930 msgid "guestfs_lvs"
10931 msgstr ""
10932
10933 # type: verbatim
10934 #: ../src/guestfs-actions.pod:3821
10935 #, no-wrap
10936 msgid ""
10937 " char **\n"
10938 " guestfs_lvs (guestfs_h *g);\n"
10939 "\n"
10940 msgstr ""
10941
10942 # type: textblock
10943 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2598
10944 msgid ""
10945 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10946 "(8)> command."
10947 msgstr ""
10948
10949 # type: textblock
10950 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2601
10951 msgid ""
10952 "This returns a list of the logical volume device names (eg. C</dev/"
10953 "VolGroup00/LogVol00>)."
10954 msgstr ""
10955
10956 # type: textblock
10957 #: ../src/guestfs-actions.pod:3830
10958 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10959 msgstr ""
10960
10961 # type: =head2
10962 #: ../src/guestfs-actions.pod:3838
10963 msgid "guestfs_lvs_full"
10964 msgstr ""
10965
10966 # type: verbatim
10967 #: ../src/guestfs-actions.pod:3840
10968 #, no-wrap
10969 msgid ""
10970 " struct guestfs_lvm_lv_list *\n"
10971 " guestfs_lvs_full (guestfs_h *g);\n"
10972 "\n"
10973 msgstr ""
10974
10975 # type: textblock
10976 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2610
10977 msgid ""
10978 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10979 "(8)> command.  The \"full\" version includes all fields."
10980 msgstr ""
10981
10982 # type: textblock
10983 #: ../src/guestfs-actions.pod:3846
10984 msgid ""
10985 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10986 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
10987 msgstr ""
10988
10989 # type: =head2
10990 #: ../src/guestfs-actions.pod:3852
10991 msgid "guestfs_lvuuid"
10992 msgstr ""
10993
10994 # type: verbatim
10995 #: ../src/guestfs-actions.pod:3854
10996 #, no-wrap
10997 msgid ""
10998 " char *\n"
10999 " guestfs_lvuuid (guestfs_h *g,\n"
11000 "                 const char *device);\n"
11001 "\n"
11002 msgstr ""
11003
11004 # type: textblock
11005 #: ../src/guestfs-actions.pod:3858 ../fish/guestfish-actions.pod:2617
11006 msgid "This command returns the UUID of the LVM LV C<device>."
11007 msgstr ""
11008
11009 # type: =head2
11010 #: ../src/guestfs-actions.pod:3865
11011 msgid "guestfs_lxattrlist"
11012 msgstr ""
11013
11014 # type: verbatim
11015 #: ../src/guestfs-actions.pod:3867
11016 #, no-wrap
11017 msgid ""
11018 " struct guestfs_xattr_list *\n"
11019 " guestfs_lxattrlist (guestfs_h *g,\n"
11020 "                     const char *path,\n"
11021 "                     char *const *names);\n"
11022 "\n"
11023 msgstr ""
11024
11025 # type: textblock
11026 #: ../src/guestfs-actions.pod:3872 ../fish/guestfish-actions.pod:2623
11027 msgid ""
11028 "This call allows you to get the extended attributes of multiple files, where "
11029 "all files are in the directory C<path>.  C<names> is the list of files from "
11030 "this directory."
11031 msgstr ""
11032
11033 # type: textblock
11034 #: ../src/guestfs-actions.pod:3876 ../fish/guestfish-actions.pod:2627
11035 msgid ""
11036 "On return you get a flat list of xattr structs which must be interpreted "
11037 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11038 "C<attrval> in this struct is zero-length to indicate there was an error "
11039 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11040 "number (the number of following attributes for this file, which could be C<"
11041 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11042 "for the first named file.  This repeats for the second and subsequent files."
11043 msgstr ""
11044
11045 # type: textblock
11046 #: ../src/guestfs-actions.pod:3886
11047 msgid ""
11048 "This call is intended for programs that want to efficiently list a directory "
11049 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11050 "a similarly efficient call for getting standard stats.  Very long directory "
11051 "listings might cause the protocol message size to be exceeded, causing this "
11052 "call to fail.  The caller must split up such requests into smaller groups of "
11053 "names."
11054 msgstr ""
11055
11056 # type: =head2
11057 #: ../src/guestfs-actions.pod:3900
11058 msgid "guestfs_mkdir"
11059 msgstr ""
11060
11061 # type: verbatim
11062 #: ../src/guestfs-actions.pod:3902
11063 #, no-wrap
11064 msgid ""
11065 " int\n"
11066 " guestfs_mkdir (guestfs_h *g,\n"
11067 "                const char *path);\n"
11068 "\n"
11069 msgstr ""
11070
11071 # type: textblock
11072 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:2649
11073 msgid "Create a directory named C<path>."
11074 msgstr ""
11075
11076 # type: =head2
11077 #: ../src/guestfs-actions.pod:3912
11078 msgid "guestfs_mkdir_mode"
11079 msgstr ""
11080
11081 # type: verbatim
11082 #: ../src/guestfs-actions.pod:3914
11083 #, no-wrap
11084 msgid ""
11085 " int\n"
11086 " guestfs_mkdir_mode (guestfs_h *g,\n"
11087 "                     const char *path,\n"
11088 "                     int mode);\n"
11089 "\n"
11090 msgstr ""
11091
11092 # type: textblock
11093 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2655
11094 msgid ""
11095 "This command creates a directory, setting the initial permissions of the "
11096 "directory to C<mode>."
11097 msgstr ""
11098
11099 # type: textblock
11100 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2658
11101 msgid ""
11102 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11103 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11104 "other ways."
11105 msgstr ""
11106
11107 # type: textblock
11108 #: ../src/guestfs-actions.pod:3926
11109 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11110 msgstr ""
11111
11112 # type: =head2
11113 #: ../src/guestfs-actions.pod:3932
11114 msgid "guestfs_mkdir_p"
11115 msgstr ""
11116
11117 # type: verbatim
11118 #: ../src/guestfs-actions.pod:3934
11119 #, no-wrap
11120 msgid ""
11121 " int\n"
11122 " guestfs_mkdir_p (guestfs_h *g,\n"
11123 "                  const char *path);\n"
11124 "\n"
11125 msgstr ""
11126
11127 # type: textblock
11128 #: ../src/guestfs-actions.pod:3938 ../fish/guestfish-actions.pod:2668
11129 msgid ""
11130 "Create a directory named C<path>, creating any parent directories as "
11131 "necessary.  This is like the C<mkdir -p> shell command."
11132 msgstr ""
11133
11134 # type: =head2
11135 #: ../src/guestfs-actions.pod:3945
11136 msgid "guestfs_mkdtemp"
11137 msgstr ""
11138
11139 # type: verbatim
11140 #: ../src/guestfs-actions.pod:3947
11141 #, no-wrap
11142 msgid ""
11143 " char *\n"
11144 " guestfs_mkdtemp (guestfs_h *g,\n"
11145 "                  const char *template);\n"
11146 "\n"
11147 msgstr ""
11148
11149 # type: textblock
11150 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2675
11151 msgid ""
11152 "This command creates a temporary directory.  The C<template> parameter "
11153 "should be a full pathname for the temporary directory name with the final "
11154 "six characters being \"XXXXXX\"."
11155 msgstr ""
11156
11157 # type: textblock
11158 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2680
11159 msgid ""
11160 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11161 "being suitable for Windows filesystems."
11162 msgstr ""
11163
11164 # type: textblock
11165 #: ../src/guestfs-actions.pod:3959 ../fish/guestfish-actions.pod:2683
11166 msgid "The name of the temporary directory that was created is returned."
11167 msgstr ""
11168
11169 # type: textblock
11170 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2686
11171 msgid "The temporary directory is created with mode 0700 and is owned by root."
11172 msgstr ""
11173
11174 # type: textblock
11175 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2689
11176 msgid ""
11177 "The caller is responsible for deleting the temporary directory and its "
11178 "contents after use."
11179 msgstr ""
11180
11181 # type: textblock
11182 #: ../src/guestfs-actions.pod:3968 ../fish/guestfish-actions.pod:2692
11183 msgid "See also: L<mkdtemp(3)>"
11184 msgstr ""
11185
11186 # type: =head2
11187 #: ../src/guestfs-actions.pod:3975
11188 msgid "guestfs_mke2fs_J"
11189 msgstr ""
11190
11191 # type: verbatim
11192 #: ../src/guestfs-actions.pod:3977
11193 #, no-wrap
11194 msgid ""
11195 " int\n"
11196 " guestfs_mke2fs_J (guestfs_h *g,\n"
11197 "                   const char *fstype,\n"
11198 "                   int blocksize,\n"
11199 "                   const char *device,\n"
11200 "                   const char *journal);\n"
11201 "\n"
11202 msgstr ""
11203
11204 # type: textblock
11205 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:2698
11206 msgid ""
11207 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11208 "C<journal>.  It is equivalent to the command:"
11209 msgstr ""
11210
11211 # type: verbatim
11212 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:2702
11213 #, no-wrap
11214 msgid ""
11215 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11216 "\n"
11217 msgstr ""
11218
11219 # type: textblock
11220 #: ../src/guestfs-actions.pod:3990
11221 msgid "See also C<guestfs_mke2journal>."
11222 msgstr ""
11223
11224 # type: textblock
11225 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4012
11226 #: ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4046
11227 #: ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4074
11228 #: ../src/guestfs-actions.pod:4133 ../src/guestfs-actions.pod:4382
11229 msgid "(Added in 1.0.68)"
11230 msgstr ""
11231
11232 # type: =head2
11233 #: ../src/guestfs-actions.pod:3996
11234 msgid "guestfs_mke2fs_JL"
11235 msgstr ""
11236
11237 # type: verbatim
11238 #: ../src/guestfs-actions.pod:3998
11239 #, no-wrap
11240 msgid ""
11241 " int\n"
11242 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11243 "                    const char *fstype,\n"
11244 "                    int blocksize,\n"
11245 "                    const char *device,\n"
11246 "                    const char *label);\n"
11247 "\n"
11248 msgstr ""
11249
11250 # type: textblock
11251 #: ../src/guestfs-actions.pod:4005 ../fish/guestfish-actions.pod:2710
11252 msgid ""
11253 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11254 "the journal labeled C<label>."
11255 msgstr ""
11256
11257 # type: textblock
11258 #: ../src/guestfs-actions.pod:4008
11259 msgid "See also C<guestfs_mke2journal_L>."
11260 msgstr ""
11261
11262 # type: =head2
11263 #: ../src/guestfs-actions.pod:4014
11264 msgid "guestfs_mke2fs_JU"
11265 msgstr ""
11266
11267 # type: verbatim
11268 #: ../src/guestfs-actions.pod:4016
11269 #, no-wrap
11270 msgid ""
11271 " int\n"
11272 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11273 "                    const char *fstype,\n"
11274 "                    int blocksize,\n"
11275 "                    const char *device,\n"
11276 "                    const char *uuid);\n"
11277 "\n"
11278 msgstr ""
11279
11280 # type: textblock
11281 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2719
11282 msgid ""
11283 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11284 "the journal with UUID C<uuid>."
11285 msgstr ""
11286
11287 # type: textblock
11288 #: ../src/guestfs-actions.pod:4026
11289 msgid "See also C<guestfs_mke2journal_U>."
11290 msgstr ""
11291
11292 # type: =head2
11293 #: ../src/guestfs-actions.pod:4032
11294 msgid "guestfs_mke2journal"
11295 msgstr ""
11296
11297 # type: verbatim
11298 #: ../src/guestfs-actions.pod:4034
11299 #, no-wrap
11300 msgid ""
11301 " int\n"
11302 " guestfs_mke2journal (guestfs_h *g,\n"
11303 "                      int blocksize,\n"
11304 "                      const char *device);\n"
11305 "\n"
11306 msgstr ""
11307
11308 # type: textblock
11309 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:2728
11310 msgid ""
11311 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11312 "command:"
11313 msgstr ""
11314
11315 # type: verbatim
11316 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2731
11317 #, no-wrap
11318 msgid ""
11319 " mke2fs -O journal_dev -b blocksize device\n"
11320 "\n"
11321 msgstr ""
11322
11323 # type: =head2
11324 #: ../src/guestfs-actions.pod:4048
11325 msgid "guestfs_mke2journal_L"
11326 msgstr ""
11327
11328 # type: verbatim
11329 #: ../src/guestfs-actions.pod:4050
11330 #, no-wrap
11331 msgid ""
11332 " int\n"
11333 " guestfs_mke2journal_L (guestfs_h *g,\n"
11334 "                        int blocksize,\n"
11335 "                        const char *label,\n"
11336 "                        const char *device);\n"
11337 "\n"
11338 msgstr ""
11339
11340 # type: textblock
11341 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2737
11342 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11343 msgstr ""
11344
11345 # type: =head2
11346 #: ../src/guestfs-actions.pod:4062
11347 msgid "guestfs_mke2journal_U"
11348 msgstr ""
11349
11350 # type: verbatim
11351 #: ../src/guestfs-actions.pod:4064
11352 #, no-wrap
11353 msgid ""
11354 " int\n"
11355 " guestfs_mke2journal_U (guestfs_h *g,\n"
11356 "                        int blocksize,\n"
11357 "                        const char *uuid,\n"
11358 "                        const char *device);\n"
11359 "\n"
11360 msgstr ""
11361
11362 # type: textblock
11363 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:2743
11364 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11365 msgstr ""
11366
11367 # type: =head2
11368 #: ../src/guestfs-actions.pod:4076
11369 msgid "guestfs_mkfifo"
11370 msgstr ""
11371
11372 # type: verbatim
11373 #: ../src/guestfs-actions.pod:4078
11374 #, no-wrap
11375 msgid ""
11376 " int\n"
11377 " guestfs_mkfifo (guestfs_h *g,\n"
11378 "                 int mode,\n"
11379 "                 const char *path);\n"
11380 "\n"
11381 msgstr ""
11382
11383 # type: textblock
11384 #: ../src/guestfs-actions.pod:4083
11385 msgid ""
11386 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11387 "is just a convenient wrapper around C<guestfs_mknod>."
11388 msgstr ""
11389
11390 # type: =head2
11391 #: ../src/guestfs-actions.pod:4093
11392 msgid "guestfs_mkfs"
11393 msgstr ""
11394
11395 # type: verbatim
11396 #: ../src/guestfs-actions.pod:4095
11397 #, no-wrap
11398 msgid ""
11399 " int\n"
11400 " guestfs_mkfs (guestfs_h *g,\n"
11401 "               const char *fstype,\n"
11402 "               const char *device);\n"
11403 "\n"
11404 msgstr ""
11405
11406 # type: textblock
11407 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2759
11408 msgid ""
11409 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11410 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11411 msgstr ""
11412
11413 # type: =head2
11414 #: ../src/guestfs-actions.pod:4108
11415 msgid "guestfs_mkfs_b"
11416 msgstr ""
11417
11418 # type: verbatim
11419 #: ../src/guestfs-actions.pod:4110
11420 #, no-wrap
11421 msgid ""
11422 " int\n"
11423 " guestfs_mkfs_b (guestfs_h *g,\n"
11424 "                 const char *fstype,\n"
11425 "                 int blocksize,\n"
11426 "                 const char *device);\n"
11427 "\n"
11428 msgstr ""
11429
11430 # type: textblock
11431 #: ../src/guestfs-actions.pod:4116
11432 msgid ""
11433 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11434 "block size of the resulting filesystem.  Supported block sizes depend on the "
11435 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11436 msgstr ""
11437
11438 # type: textblock
11439 #: ../src/guestfs-actions.pod:4121 ../src/guestfs-actions.pod:4163
11440 #: ../fish/guestfish-actions.pod:2772 ../fish/guestfish-actions.pod:2799
11441 msgid ""
11442 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11443 "cluster size."
11444 msgstr ""
11445
11446 # type: textblock
11447 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2775
11448 msgid ""
11449 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
11450 msgstr ""
11451
11452 # type: =head2
11453 #: ../src/guestfs-actions.pod:4135
11454 msgid "guestfs_mkfs_opts"
11455 msgstr ""
11456
11457 # type: verbatim
11458 #: ../src/guestfs-actions.pod:4137
11459 #, no-wrap
11460 msgid ""
11461 " int\n"
11462 " guestfs_mkfs_opts (guestfs_h *g,\n"
11463 "                    const char *fstype,\n"
11464 "                    const char *device,\n"
11465 "                    ...);\n"
11466 "\n"
11467 msgstr ""
11468
11469 # type: verbatim
11470 #: ../src/guestfs-actions.pod:4148
11471 #, no-wrap
11472 msgid ""
11473 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
11474 "\n"
11475 msgstr ""
11476
11477 # type: textblock
11478 #: ../src/guestfs-actions.pod:4150 ../fish/guestfish-actions.pod:2786
11479 msgid ""
11480 "This function creates a filesystem on C<device>.  The filesystem type is "
11481 "C<fstype>, for example C<ext3>."
11482 msgstr ""
11483
11484 # type: =item
11485 #: ../src/guestfs-actions.pod:4157 ../fish/guestfish-actions.pod:2793
11486 msgid "C<blocksize>"
11487 msgstr ""
11488
11489 # type: textblock
11490 #: ../src/guestfs-actions.pod:4159 ../fish/guestfish-actions.pod:2795
11491 msgid ""
11492 "The filesystem block size.  Supported block sizes depend on the filesystem "
11493 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11494 "filesystems."
11495 msgstr ""
11496
11497 # type: =head2
11498 #: ../src/guestfs-actions.pod:4170
11499 msgid "guestfs_mkfs_opts_va"
11500 msgstr ""
11501
11502 # type: verbatim
11503 #: ../src/guestfs-actions.pod:4172
11504 #, no-wrap
11505 msgid ""
11506 " int\n"
11507 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
11508 "                       const char *fstype,\n"
11509 "                       const char *device,\n"
11510 "                       va_list args);\n"
11511 "\n"
11512 msgstr ""
11513
11514 # type: textblock
11515 #: ../src/guestfs-actions.pod:4178
11516 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
11517 msgstr ""
11518
11519 # type: =head2
11520 #: ../src/guestfs-actions.pod:4182
11521 msgid "guestfs_mkfs_opts_argv"
11522 msgstr ""
11523
11524 # type: verbatim
11525 #: ../src/guestfs-actions.pod:4184
11526 #, no-wrap
11527 msgid ""
11528 " int\n"
11529 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
11530 "                         const char *fstype,\n"
11531 "                         const char *device,\n"
11532 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
11533 "\n"
11534 msgstr ""
11535
11536 # type: textblock
11537 #: ../src/guestfs-actions.pod:4190
11538 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
11539 msgstr ""
11540
11541 # type: =head2
11542 #: ../src/guestfs-actions.pod:4194
11543 msgid "guestfs_mkmountpoint"
11544 msgstr ""
11545
11546 # type: verbatim
11547 #: ../src/guestfs-actions.pod:4196
11548 #, no-wrap
11549 msgid ""
11550 " int\n"
11551 " guestfs_mkmountpoint (guestfs_h *g,\n"
11552 "                       const char *exemptpath);\n"
11553 "\n"
11554 msgstr ""
11555
11556 # type: textblock
11557 #: ../src/guestfs-actions.pod:4200
11558 msgid ""
11559 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11560 "that can be used to create extra mountpoints before mounting the first "
11561 "filesystem."
11562 msgstr ""
11563
11564 # type: textblock
11565 #: ../src/guestfs-actions.pod:4204 ../fish/guestfish-actions.pod:2814
11566 msgid ""
11567 "These calls are I<only> necessary in some very limited circumstances, mainly "
11568 "the case where you want to mount a mix of unrelated and/or read-only "
11569 "filesystems together."
11570 msgstr ""
11571
11572 # type: textblock
11573 #: ../src/guestfs-actions.pod:4208 ../fish/guestfish-actions.pod:2818
11574 msgid ""
11575 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11576 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11577 "inside that.  You can unpack this as follows in guestfish:"
11578 msgstr ""
11579
11580 # type: verbatim
11581 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2823
11582 #, no-wrap
11583 msgid ""
11584 " add-ro Fedora-11-i686-Live.iso\n"
11585 " run\n"
11586 " mkmountpoint /cd\n"
11587 " mkmountpoint /sqsh\n"
11588 " mkmountpoint /ext3fs\n"
11589 " mount /dev/sda /cd\n"
11590 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11591 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11592 "\n"
11593 msgstr ""
11594
11595 # type: textblock
11596 #: ../src/guestfs-actions.pod:4222 ../fish/guestfish-actions.pod:2832
11597 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11598 msgstr ""
11599
11600 # type: textblock
11601 #: ../src/guestfs-actions.pod:4224
11602 msgid ""
11603 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11604 "may get unexpected errors if you try to mix these calls.  It is safest to "
11605 "manually unmount filesystems and remove mountpoints after use."
11606 msgstr ""
11607
11608 # type: textblock
11609 #: ../src/guestfs-actions.pod:4228
11610 msgid ""
11611 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11612 "first, so for this to work for manual mountpoints, you must ensure that the "
11613 "innermost mountpoints have the longest pathnames, as in the example code "
11614 "above."
11615 msgstr ""
11616
11617 # type: textblock
11618 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2843
11619 msgid ""
11620 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11621 msgstr ""
11622
11623 # type: textblock
11624 #: ../src/guestfs-actions.pod:4235
11625 msgid ""
11626 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11627 "means that C<guestfs_umount_all> is called when the handle is closed which "
11628 "can also trigger these issues."
11629 msgstr ""
11630
11631 # type: textblock
11632 #: ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4500
11633 #: ../src/guestfs-actions.pod:5393
11634 msgid "(Added in 1.0.62)"
11635 msgstr ""
11636
11637 # type: =head2
11638 #: ../src/guestfs-actions.pod:4243
11639 msgid "guestfs_mknod"
11640 msgstr ""
11641
11642 # type: verbatim
11643 #: ../src/guestfs-actions.pod:4245
11644 #, no-wrap
11645 msgid ""
11646 " int\n"
11647 " guestfs_mknod (guestfs_h *g,\n"
11648 "                int mode,\n"
11649 "                int devmajor,\n"
11650 "                int devminor,\n"
11651 "                const char *path);\n"
11652 "\n"
11653 msgstr ""
11654
11655 # type: textblock
11656 #: ../src/guestfs-actions.pod:4252 ../fish/guestfish-actions.pod:2853
11657 msgid ""
11658 "This call creates block or character special devices, or named pipes (FIFOs)."
11659 msgstr ""
11660
11661 # type: textblock
11662 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2856
11663 msgid ""
11664 "The C<mode> parameter should be the mode, using the standard constants.  "
11665 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11666 "used when creating block and character special devices."
11667 msgstr ""
11668
11669 # type: textblock
11670 #: ../src/guestfs-actions.pod:4260
11671 msgid ""
11672 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11673 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11674 "regular file).  These constants are available in the standard Linux header "
11675 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11676 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11677 "the appropriate constant for you."
11678 msgstr ""
11679
11680 # type: =head2
11681 #: ../src/guestfs-actions.pod:4274
11682 msgid "guestfs_mknod_b"
11683 msgstr ""
11684
11685 # type: verbatim
11686 #: ../src/guestfs-actions.pod:4276
11687 #, no-wrap
11688 msgid ""
11689 " int\n"
11690 " guestfs_mknod_b (guestfs_h *g,\n"
11691 "                  int mode,\n"
11692 "                  int devmajor,\n"
11693 "                  int devminor,\n"
11694 "                  const char *path);\n"
11695 "\n"
11696 msgstr ""
11697
11698 # type: textblock
11699 #: ../src/guestfs-actions.pod:4283
11700 msgid ""
11701 "This call creates a block device node called C<path> with mode C<mode> and "
11702 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11703 "wrapper around C<guestfs_mknod>."
11704 msgstr ""
11705
11706 # type: =head2
11707 #: ../src/guestfs-actions.pod:4293
11708 msgid "guestfs_mknod_c"
11709 msgstr ""
11710
11711 # type: verbatim
11712 #: ../src/guestfs-actions.pod:4295
11713 #, no-wrap
11714 msgid ""
11715 " int\n"
11716 " guestfs_mknod_c (guestfs_h *g,\n"
11717 "                  int mode,\n"
11718 "                  int devmajor,\n"
11719 "                  int devminor,\n"
11720 "                  const char *path);\n"
11721 "\n"
11722 msgstr ""
11723
11724 # type: textblock
11725 #: ../src/guestfs-actions.pod:4302
11726 msgid ""
11727 "This call creates a char device node called C<path> with mode C<mode> and "
11728 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11729 "wrapper around C<guestfs_mknod>."
11730 msgstr ""
11731
11732 # type: =head2
11733 #: ../src/guestfs-actions.pod:4312
11734 msgid "guestfs_mkswap"
11735 msgstr ""
11736
11737 # type: verbatim
11738 #: ../src/guestfs-actions.pod:4314
11739 #, no-wrap
11740 msgid ""
11741 " int\n"
11742 " guestfs_mkswap (guestfs_h *g,\n"
11743 "                 const char *device);\n"
11744 "\n"
11745 msgstr ""
11746
11747 # type: textblock
11748 #: ../src/guestfs-actions.pod:4318 ../fish/guestfish-actions.pod:2895
11749 msgid "Create a swap partition on C<device>."
11750 msgstr ""
11751
11752 # type: =head2
11753 #: ../src/guestfs-actions.pod:4324
11754 msgid "guestfs_mkswap_L"
11755 msgstr ""
11756
11757 # type: verbatim
11758 #: ../src/guestfs-actions.pod:4326
11759 #, no-wrap
11760 msgid ""
11761 " int\n"
11762 " guestfs_mkswap_L (guestfs_h *g,\n"
11763 "                   const char *label,\n"
11764 "                   const char *device);\n"
11765 "\n"
11766 msgstr ""
11767
11768 # type: textblock
11769 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2901
11770 msgid "Create a swap partition on C<device> with label C<label>."
11771 msgstr ""
11772
11773 # type: textblock
11774 #: ../src/guestfs-actions.pod:4333 ../fish/guestfish-actions.pod:2903
11775 msgid ""
11776 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11777 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11778 "or swap tools."
11779 msgstr ""
11780
11781 # type: =head2
11782 #: ../src/guestfs-actions.pod:4341
11783 msgid "guestfs_mkswap_U"
11784 msgstr ""
11785
11786 # type: verbatim
11787 #: ../src/guestfs-actions.pod:4343
11788 #, no-wrap
11789 msgid ""
11790 " int\n"
11791 " guestfs_mkswap_U (guestfs_h *g,\n"
11792 "                   const char *uuid,\n"
11793 "                   const char *device);\n"
11794 "\n"
11795 msgstr ""
11796
11797 # type: textblock
11798 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2911
11799 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11800 msgstr ""
11801
11802 # type: =head2
11803 #: ../src/guestfs-actions.pod:4354
11804 msgid "guestfs_mkswap_file"
11805 msgstr ""
11806
11807 # type: verbatim
11808 #: ../src/guestfs-actions.pod:4356
11809 #, no-wrap
11810 msgid ""
11811 " int\n"
11812 " guestfs_mkswap_file (guestfs_h *g,\n"
11813 "                      const char *path);\n"
11814 "\n"
11815 msgstr ""
11816
11817 # type: textblock
11818 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2917
11819 msgid "Create a swap file."
11820 msgstr ""
11821
11822 # type: textblock
11823 #: ../src/guestfs-actions.pod:4362
11824 msgid ""
11825 "This command just writes a swap file signature to an existing file.  To "
11826 "create the file itself, use something like C<guestfs_fallocate>."
11827 msgstr ""
11828
11829 # type: =head2
11830 #: ../src/guestfs-actions.pod:4369
11831 msgid "guestfs_modprobe"
11832 msgstr ""
11833
11834 # type: verbatim
11835 #: ../src/guestfs-actions.pod:4371
11836 #, no-wrap
11837 msgid ""
11838 " int\n"
11839 " guestfs_modprobe (guestfs_h *g,\n"
11840 "                   const char *modulename);\n"
11841 "\n"
11842 msgstr ""
11843
11844 # type: textblock
11845 #: ../src/guestfs-actions.pod:4375 ../fish/guestfish-actions.pod:2926
11846 msgid "This loads a kernel module in the appliance."
11847 msgstr ""
11848
11849 # type: textblock
11850 #: ../src/guestfs-actions.pod:4377 ../fish/guestfish-actions.pod:2928
11851 msgid ""
11852 "The kernel module must have been whitelisted when libguestfs was built (see "
11853 "C<appliance/kmod.whitelist.in> in the source)."
11854 msgstr ""
11855
11856 # type: =head2
11857 #: ../src/guestfs-actions.pod:4384
11858 msgid "guestfs_mount"
11859 msgstr ""
11860
11861 # type: verbatim
11862 #: ../src/guestfs-actions.pod:4386
11863 #, no-wrap
11864 msgid ""
11865 " int\n"
11866 " guestfs_mount (guestfs_h *g,\n"
11867 "                const char *device,\n"
11868 "                const char *mountpoint);\n"
11869 "\n"
11870 msgstr ""
11871
11872 # type: textblock
11873 #: ../src/guestfs-actions.pod:4391 ../fish/guestfish-actions.pod:2935
11874 msgid ""
11875 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11876 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11877 "those block devices contain partitions, they will have the usual names (eg. "
11878 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11879 msgstr ""
11880
11881 # type: textblock
11882 #: ../src/guestfs-actions.pod:4397 ../fish/guestfish-actions.pod:2941
11883 msgid ""
11884 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11885 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11886 "mounted on directories which already exist."
11887 msgstr ""
11888
11889 # type: textblock
11890 #: ../src/guestfs-actions.pod:4402 ../fish/guestfish-actions.pod:2946
11891 msgid ""
11892 "The mounted filesystem is writable, if we have sufficient permissions on the "
11893 "underlying device."
11894 msgstr ""
11895
11896 # type: textblock
11897 #: ../src/guestfs-actions.pod:4405
11898 msgid ""
11899 "B<Important note:> When you use this call, the filesystem options C<sync> "
11900 "and C<noatime> are set implicitly.  This was originally done because we "
11901 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11902 "very large negative performance impact and negligible effect on "
11903 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11904 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11905 "(use an empty string for the first parameter if you don't want any options)."
11906 msgstr ""
11907
11908 # type: =head2
11909 #: ../src/guestfs-actions.pod:4419
11910 msgid "guestfs_mount_loop"
11911 msgstr ""
11912
11913 # type: verbatim
11914 #: ../src/guestfs-actions.pod:4421
11915 #, no-wrap
11916 msgid ""
11917 " int\n"
11918 " guestfs_mount_loop (guestfs_h *g,\n"
11919 "                     const char *file,\n"
11920 "                     const char *mountpoint);\n"
11921 "\n"
11922 msgstr ""
11923
11924 # type: textblock
11925 #: ../src/guestfs-actions.pod:4426 ../fish/guestfish-actions.pod:2963
11926 msgid ""
11927 "This command lets you mount C<file> (a filesystem image in a file) on a "
11928 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11929 "mountpoint>."
11930 msgstr ""
11931
11932 # type: =head2
11933 #: ../src/guestfs-actions.pod:4434
11934 msgid "guestfs_mount_options"
11935 msgstr ""
11936
11937 # type: verbatim
11938 #: ../src/guestfs-actions.pod:4436
11939 #, no-wrap
11940 msgid ""
11941 " int\n"
11942 " guestfs_mount_options (guestfs_h *g,\n"
11943 "                        const char *options,\n"
11944 "                        const char *device,\n"
11945 "                        const char *mountpoint);\n"
11946 "\n"
11947 msgstr ""
11948
11949 # type: textblock
11950 #: ../src/guestfs-actions.pod:4442
11951 msgid ""
11952 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11953 "the mount options as for the L<mount(8)> I<-o> flag."
11954 msgstr ""
11955
11956 # type: textblock
11957 #: ../src/guestfs-actions.pod:4446 ../fish/guestfish-actions.pod:2975
11958 msgid ""
11959 "If the C<options> parameter is an empty string, then no options are passed "
11960 "(all options default to whatever the filesystem uses)."
11961 msgstr ""
11962
11963 # type: textblock
11964 #: ../src/guestfs-actions.pod:4452 ../src/guestfs-actions.pod:4466
11965 #: ../src/guestfs-actions.pod:4483
11966 msgid "(Added in 1.0.10)"
11967 msgstr ""
11968
11969 # type: =head2
11970 #: ../src/guestfs-actions.pod:4454
11971 msgid "guestfs_mount_ro"
11972 msgstr ""
11973
11974 # type: verbatim
11975 #: ../src/guestfs-actions.pod:4456
11976 #, no-wrap
11977 msgid ""
11978 " int\n"
11979 " guestfs_mount_ro (guestfs_h *g,\n"
11980 "                   const char *device,\n"
11981 "                   const char *mountpoint);\n"
11982 "\n"
11983 msgstr ""
11984
11985 # type: textblock
11986 #: ../src/guestfs-actions.pod:4461
11987 msgid ""
11988 "This is the same as the C<guestfs_mount> command, but it mounts the "
11989 "filesystem with the read-only (I<-o ro>) flag."
11990 msgstr ""
11991
11992 # type: =head2
11993 #: ../src/guestfs-actions.pod:4468
11994 msgid "guestfs_mount_vfs"
11995 msgstr ""
11996
11997 # type: verbatim
11998 #: ../src/guestfs-actions.pod:4470
11999 #, no-wrap
12000 msgid ""
12001 " int\n"
12002 " guestfs_mount_vfs (guestfs_h *g,\n"
12003 "                    const char *options,\n"
12004 "                    const char *vfstype,\n"
12005 "                    const char *device,\n"
12006 "                    const char *mountpoint);\n"
12007 "\n"
12008 msgstr ""
12009
12010 # type: textblock
12011 #: ../src/guestfs-actions.pod:4477
12012 msgid ""
12013 "This is the same as the C<guestfs_mount> command, but it allows you to set "
12014 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
12015 "t> flags."
12016 msgstr ""
12017
12018 # type: =head2
12019 #: ../src/guestfs-actions.pod:4485
12020 msgid "guestfs_mountpoints"
12021 msgstr ""
12022
12023 # type: verbatim
12024 #: ../src/guestfs-actions.pod:4487
12025 #, no-wrap
12026 msgid ""
12027 " char **\n"
12028 " guestfs_mountpoints (guestfs_h *g);\n"
12029 "\n"
12030 msgstr ""
12031
12032 # type: textblock
12033 #: ../src/guestfs-actions.pod:4490
12034 msgid ""
12035 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
12036 "devices.  This one returns a hash table (map) of device name to directory "
12037 "where the device is mounted."
12038 msgstr ""
12039
12040 # type: =head2
12041 #: ../src/guestfs-actions.pod:4502
12042 msgid "guestfs_mounts"
12043 msgstr ""
12044
12045 # type: verbatim
12046 #: ../src/guestfs-actions.pod:4504
12047 #, no-wrap
12048 msgid ""
12049 " char **\n"
12050 " guestfs_mounts (guestfs_h *g);\n"
12051 "\n"
12052 msgstr ""
12053
12054 # type: textblock
12055 #: ../src/guestfs-actions.pod:4507 ../fish/guestfish-actions.pod:3006
12056 msgid ""
12057 "This returns the list of currently mounted filesystems.  It returns the list "
12058 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12059 msgstr ""
12060
12061 # type: textblock
12062 #: ../src/guestfs-actions.pod:4510 ../fish/guestfish-actions.pod:3009
12063 msgid "Some internal mounts are not shown."
12064 msgstr ""
12065
12066 # type: textblock
12067 #: ../src/guestfs-actions.pod:4512
12068 msgid "See also: C<guestfs_mountpoints>"
12069 msgstr ""
12070
12071 # type: =head2
12072 #: ../src/guestfs-actions.pod:4520
12073 msgid "guestfs_mv"
12074 msgstr ""
12075
12076 # type: verbatim
12077 #: ../src/guestfs-actions.pod:4522
12078 #, no-wrap
12079 msgid ""
12080 " int\n"
12081 " guestfs_mv (guestfs_h *g,\n"
12082 "             const char *src,\n"
12083 "             const char *dest);\n"
12084 "\n"
12085 msgstr ""
12086
12087 # type: textblock
12088 #: ../src/guestfs-actions.pod:4527 ../fish/guestfish-actions.pod:3017
12089 msgid ""
12090 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12091 "destination filename or destination directory."
12092 msgstr ""
12093
12094 # type: =head2
12095 #: ../src/guestfs-actions.pod:4534
12096 msgid "guestfs_ntfs_3g_probe"
12097 msgstr ""
12098
12099 # type: verbatim
12100 #: ../src/guestfs-actions.pod:4536
12101 #, no-wrap
12102 msgid ""
12103 " int\n"
12104 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
12105 "                        int rw,\n"
12106 "                        const char *device);\n"
12107 "\n"
12108 msgstr ""
12109
12110 # type: textblock
12111 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3024
12112 msgid ""
12113 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12114 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12115 "write, and some cannot be mounted at all)."
12116 msgstr ""
12117
12118 # type: textblock
12119 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3028
12120 msgid ""
12121 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12122 "can be mounted read-write.  Set it to false if you want to test if the "
12123 "volume can be mounted read-only."
12124 msgstr ""
12125
12126 # type: textblock
12127 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3032
12128 msgid ""
12129 "The return value is an integer which C<0> if the operation would succeed, or "
12130 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12131 msgstr ""
12132
12133 # type: textblock
12134 #: ../src/guestfs-actions.pod:4555
12135 msgid "(Added in 1.0.43)"
12136 msgstr ""
12137
12138 # type: =head2
12139 #: ../src/guestfs-actions.pod:4557
12140 msgid "guestfs_ntfsresize"
12141 msgstr ""
12142
12143 # type: verbatim
12144 #: ../src/guestfs-actions.pod:4559
12145 #, no-wrap
12146 msgid ""
12147 " int\n"
12148 " guestfs_ntfsresize (guestfs_h *g,\n"
12149 "                     const char *device);\n"
12150 "\n"
12151 msgstr ""
12152
12153 # type: textblock
12154 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3040
12155 msgid ""
12156 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12157 "size of the underlying device.  See also L<ntfsresize(8)>."
12158 msgstr ""
12159
12160 # type: =head2
12161 #: ../src/guestfs-actions.pod:4571
12162 msgid "guestfs_ntfsresize_size"
12163 msgstr ""
12164
12165 # type: verbatim
12166 #: ../src/guestfs-actions.pod:4573
12167 #, no-wrap
12168 msgid ""
12169 " int\n"
12170 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12171 "                          const char *device,\n"
12172 "                          int64_t size);\n"
12173 "\n"
12174 msgstr ""
12175
12176 # type: textblock
12177 #: ../src/guestfs-actions.pod:4578
12178 msgid ""
12179 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12180 "to specify the new size (in bytes) explicitly."
12181 msgstr ""
12182
12183 # type: textblock
12184 #: ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:5019
12185 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5341
12186 msgid "(Added in 1.3.14)"
12187 msgstr ""
12188
12189 # type: =head2
12190 #: ../src/guestfs-actions.pod:4585
12191 msgid "guestfs_part_add"
12192 msgstr ""
12193
12194 # type: verbatim
12195 #: ../src/guestfs-actions.pod:4587
12196 #, no-wrap
12197 msgid ""
12198 " int\n"
12199 " guestfs_part_add (guestfs_h *g,\n"
12200 "                   const char *device,\n"
12201 "                   const char *prlogex,\n"
12202 "                   int64_t startsect,\n"
12203 "                   int64_t endsect);\n"
12204 "\n"
12205 msgstr ""
12206
12207 # type: textblock
12208 #: ../src/guestfs-actions.pod:4594
12209 msgid ""
12210 "This command adds a partition to C<device>.  If there is no partition table "
12211 "on the device, call C<guestfs_part_init> first."
12212 msgstr ""
12213
12214 # type: textblock
12215 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3058
12216 msgid ""
12217 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12218 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12219 "C<logical>) and C<e> (or C<extended>) partition types."
12220 msgstr ""
12221
12222 # type: textblock
12223 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3063
12224 msgid ""
12225 "C<startsect> and C<endsect> are the start and end of the partition in "
12226 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12227 "from the end of the disk (C<-1> is the last sector)."
12228 msgstr ""
12229
12230 # type: textblock
12231 #: ../src/guestfs-actions.pod:4606
12232 msgid ""
12233 "Creating a partition which covers the whole disk is not so easy.  Use "
12234 "C<guestfs_part_disk> to do that."
12235 msgstr ""
12236
12237 # type: textblock
12238 #: ../src/guestfs-actions.pod:4611 ../src/guestfs-actions.pod:4649
12239 #: ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4780
12240 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4837
12241 #: ../src/guestfs-actions.pod:4877
12242 msgid "(Added in 1.0.78)"
12243 msgstr ""
12244
12245 # type: =head2
12246 #: ../src/guestfs-actions.pod:4613
12247 msgid "guestfs_part_del"
12248 msgstr ""
12249
12250 # type: verbatim
12251 #: ../src/guestfs-actions.pod:4615
12252 #, no-wrap
12253 msgid ""
12254 " int\n"
12255 " guestfs_part_del (guestfs_h *g,\n"
12256 "                   const char *device,\n"
12257 "                   int partnum);\n"
12258 "\n"
12259 msgstr ""
12260
12261 # type: textblock
12262 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3074
12263 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12264 msgstr ""
12265
12266 # type: textblock
12267 #: ../src/guestfs-actions.pod:4622 ../fish/guestfish-actions.pod:3076
12268 msgid ""
12269 "Note that in the case of MBR partitioning, deleting an extended partition "
12270 "also deletes any logical partitions it contains."
12271 msgstr ""
12272
12273 # type: =head2
12274 #: ../src/guestfs-actions.pod:4630
12275 msgid "guestfs_part_disk"
12276 msgstr ""
12277
12278 # type: verbatim
12279 #: ../src/guestfs-actions.pod:4632
12280 #, no-wrap
12281 msgid ""
12282 " int\n"
12283 " guestfs_part_disk (guestfs_h *g,\n"
12284 "                    const char *device,\n"
12285 "                    const char *parttype);\n"
12286 "\n"
12287 msgstr ""
12288
12289 # type: textblock
12290 #: ../src/guestfs-actions.pod:4637
12291 msgid ""
12292 "This command is simply a combination of C<guestfs_part_init> followed by "
12293 "C<guestfs_part_add> to create a single primary partition covering the whole "
12294 "disk."
12295 msgstr ""
12296
12297 # type: textblock
12298 #: ../src/guestfs-actions.pod:4641
12299 msgid ""
12300 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12301 "possible values are described in C<guestfs_part_init>."
12302 msgstr ""
12303
12304 # type: =head2
12305 #: ../src/guestfs-actions.pod:4651
12306 msgid "guestfs_part_get_bootable"
12307 msgstr ""
12308
12309 # type: verbatim
12310 #: ../src/guestfs-actions.pod:4653
12311 #, no-wrap
12312 msgid ""
12313 " int\n"
12314 " guestfs_part_get_bootable (guestfs_h *g,\n"
12315 "                            const char *device,\n"
12316 "                            int partnum);\n"
12317 "\n"
12318 msgstr ""
12319
12320 # type: textblock
12321 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3098
12322 msgid ""
12323 "This command returns true if the partition C<partnum> on C<device> has the "
12324 "bootable flag set."
12325 msgstr ""
12326
12327 # type: textblock
12328 #: ../src/guestfs-actions.pod:4661
12329 msgid "See also C<guestfs_part_set_bootable>."
12330 msgstr ""
12331
12332 # type: =head2
12333 #: ../src/guestfs-actions.pod:4667
12334 msgid "guestfs_part_get_mbr_id"
12335 msgstr ""
12336
12337 # type: verbatim
12338 #: ../src/guestfs-actions.pod:4669
12339 #, no-wrap
12340 msgid ""
12341 " int\n"
12342 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12343 "                          const char *device,\n"
12344 "                          int partnum);\n"
12345 "\n"
12346 msgstr ""
12347
12348 # type: textblock
12349 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3107
12350 msgid ""
12351 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12352 "partition C<partnum>."
12353 msgstr ""
12354
12355 # type: textblock
12356 #: ../src/guestfs-actions.pod:4677 ../src/guestfs-actions.pod:4853
12357 msgid ""
12358 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12359 "undefined results for other partition table types (see "
12360 "C<guestfs_part_get_parttype>)."
12361 msgstr ""
12362
12363 # type: =head2
12364 #: ../src/guestfs-actions.pod:4685
12365 msgid "guestfs_part_get_parttype"
12366 msgstr ""
12367
12368 # type: verbatim
12369 #: ../src/guestfs-actions.pod:4687
12370 #, no-wrap
12371 msgid ""
12372 " char *\n"
12373 " guestfs_part_get_parttype (guestfs_h *g,\n"
12374 "                            const char *device);\n"
12375 "\n"
12376 msgstr ""
12377
12378 # type: textblock
12379 #: ../src/guestfs-actions.pod:4691 ../fish/guestfish-actions.pod:3118
12380 msgid ""
12381 "This command examines the partition table on C<device> and returns the "
12382 "partition table type (format) being used."
12383 msgstr ""
12384
12385 # type: textblock
12386 #: ../src/guestfs-actions.pod:4694
12387 msgid ""
12388 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12389 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12390 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12391 msgstr ""
12392
12393 # type: =head2
12394 #: ../src/guestfs-actions.pod:4704
12395 msgid "guestfs_part_init"
12396 msgstr ""
12397
12398 # type: verbatim
12399 #: ../src/guestfs-actions.pod:4706
12400 #, no-wrap
12401 msgid ""
12402 " int\n"
12403 " guestfs_part_init (guestfs_h *g,\n"
12404 "                    const char *device,\n"
12405 "                    const char *parttype);\n"
12406 "\n"
12407 msgstr ""
12408
12409 # type: textblock
12410 #: ../src/guestfs-actions.pod:4711 ../fish/guestfish-actions.pod:3130
12411 msgid ""
12412 "This creates an empty partition table on C<device> of one of the partition "
12413 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12414 "(for large disks)."
12415 msgstr ""
12416
12417 # type: textblock
12418 #: ../src/guestfs-actions.pod:4715
12419 msgid ""
12420 "Initially there are no partitions.  Following this, you should call "
12421 "C<guestfs_part_add> for each partition required."
12422 msgstr ""
12423
12424 # type: textblock
12425 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3137
12426 msgid "Possible values for C<parttype> are:"
12427 msgstr ""
12428
12429 # type: =item
12430 #: ../src/guestfs-actions.pod:4722 ../fish/guestfish-actions.pod:3141
12431 msgid "B<efi> | B<gpt>"
12432 msgstr ""
12433
12434 # type: textblock
12435 #: ../src/guestfs-actions.pod:4724 ../fish/guestfish-actions.pod:3143
12436 msgid "Intel EFI / GPT partition table."
12437 msgstr ""
12438
12439 # type: textblock
12440 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3145
12441 msgid ""
12442 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12443 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12444 "the C<mbr> format."
12445 msgstr ""
12446
12447 # type: =item
12448 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3149
12449 msgid "B<mbr> | B<msdos>"
12450 msgstr ""
12451
12452 # type: textblock
12453 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3151
12454 msgid ""
12455 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12456 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12457 "TB.  For large disks we recommend using C<gpt>."
12458 msgstr ""
12459
12460 # type: textblock
12461 #: ../src/guestfs-actions.pod:4739 ../fish/guestfish-actions.pod:3158
12462 msgid ""
12463 "Other partition table types that may work but are not supported include:"
12464 msgstr ""
12465
12466 # type: =item
12467 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3163
12468 msgid "B<aix>"
12469 msgstr ""
12470
12471 # type: textblock
12472 #: ../src/guestfs-actions.pod:4746 ../fish/guestfish-actions.pod:3165
12473 msgid "AIX disk labels."
12474 msgstr ""
12475
12476 # type: =item
12477 #: ../src/guestfs-actions.pod:4748 ../fish/guestfish-actions.pod:3167
12478 msgid "B<amiga> | B<rdb>"
12479 msgstr ""
12480
12481 # type: textblock
12482 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3169
12483 msgid "Amiga \"Rigid Disk Block\" format."
12484 msgstr ""
12485
12486 # type: =item
12487 #: ../src/guestfs-actions.pod:4752 ../fish/guestfish-actions.pod:3171
12488 msgid "B<bsd>"
12489 msgstr ""
12490
12491 # type: textblock
12492 #: ../src/guestfs-actions.pod:4754 ../fish/guestfish-actions.pod:3173
12493 msgid "BSD disk labels."
12494 msgstr ""
12495
12496 # type: =item
12497 #: ../src/guestfs-actions.pod:4756 ../fish/guestfish-actions.pod:3175
12498 msgid "B<dasd>"
12499 msgstr ""
12500
12501 # type: textblock
12502 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3177
12503 msgid "DASD, used on IBM mainframes."
12504 msgstr ""
12505
12506 # type: =item
12507 #: ../src/guestfs-actions.pod:4760 ../fish/guestfish-actions.pod:3179
12508 msgid "B<dvh>"
12509 msgstr ""
12510
12511 # type: textblock
12512 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3181
12513 msgid "MIPS/SGI volumes."
12514 msgstr ""
12515
12516 # type: =item
12517 #: ../src/guestfs-actions.pod:4764 ../fish/guestfish-actions.pod:3183
12518 msgid "B<mac>"
12519 msgstr ""
12520
12521 # type: textblock
12522 #: ../src/guestfs-actions.pod:4766 ../fish/guestfish-actions.pod:3185
12523 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12524 msgstr ""
12525
12526 # type: =item
12527 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3187
12528 msgid "B<pc98>"
12529 msgstr ""
12530
12531 # type: textblock
12532 #: ../src/guestfs-actions.pod:4770 ../fish/guestfish-actions.pod:3189
12533 msgid "NEC PC-98 format, common in Japan apparently."
12534 msgstr ""
12535
12536 # type: =item
12537 #: ../src/guestfs-actions.pod:4772 ../fish/guestfish-actions.pod:3191
12538 msgid "B<sun>"
12539 msgstr ""
12540
12541 # type: textblock
12542 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3193
12543 msgid "Sun disk labels."
12544 msgstr ""
12545
12546 # type: =head2
12547 #: ../src/guestfs-actions.pod:4782
12548 msgid "guestfs_part_list"
12549 msgstr ""
12550
12551 # type: verbatim
12552 #: ../src/guestfs-actions.pod:4784
12553 #, no-wrap
12554 msgid ""
12555 " struct guestfs_partition_list *\n"
12556 " guestfs_part_list (guestfs_h *g,\n"
12557 "                    const char *device);\n"
12558 "\n"
12559 msgstr ""
12560
12561 # type: textblock
12562 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3201
12563 msgid ""
12564 "This command parses the partition table on C<device> and returns the list of "
12565 "partitions found."
12566 msgstr ""
12567
12568 # type: textblock
12569 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3204
12570 msgid "The fields in the returned structure are:"
12571 msgstr ""
12572
12573 # type: =item
12574 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3208
12575 msgid "B<part_num>"
12576 msgstr ""
12577
12578 # type: textblock
12579 #: ../src/guestfs-actions.pod:4797 ../fish/guestfish-actions.pod:3210
12580 msgid "Partition number, counting from 1."
12581 msgstr ""
12582
12583 # type: =item
12584 #: ../src/guestfs-actions.pod:4799 ../fish/guestfish-actions.pod:3212
12585 msgid "B<part_start>"
12586 msgstr ""
12587
12588 # type: textblock
12589 #: ../src/guestfs-actions.pod:4801
12590 msgid ""
12591 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12592 "the device's sector size, see C<guestfs_blockdev_getss>."
12593 msgstr ""
12594
12595 # type: =item
12596 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3217
12597 msgid "B<part_end>"
12598 msgstr ""
12599
12600 # type: textblock
12601 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3219
12602 msgid "End of the partition in bytes."
12603 msgstr ""
12604
12605 # type: =item
12606 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3221
12607 msgid "B<part_size>"
12608 msgstr ""
12609
12610 # type: textblock
12611 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3223
12612 msgid "Size of the partition in bytes."
12613 msgstr ""
12614
12615 # type: textblock
12616 #: ../src/guestfs-actions.pod:4814
12617 msgid ""
12618 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12619 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12620 "use>."
12621 msgstr ""
12622
12623 # type: =head2
12624 #: ../src/guestfs-actions.pod:4820
12625 msgid "guestfs_part_set_bootable"
12626 msgstr ""
12627
12628 # type: verbatim
12629 #: ../src/guestfs-actions.pod:4822
12630 #, no-wrap
12631 msgid ""
12632 " int\n"
12633 " guestfs_part_set_bootable (guestfs_h *g,\n"
12634 "                            const char *device,\n"
12635 "                            int partnum,\n"
12636 "                            int bootable);\n"
12637 "\n"
12638 msgstr ""
12639
12640 # type: textblock
12641 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3231
12642 msgid ""
12643 "This sets the bootable flag on partition numbered C<partnum> on device "
12644 "C<device>.  Note that partitions are numbered from 1."
12645 msgstr ""
12646
12647 # type: textblock
12648 #: ../src/guestfs-actions.pod:4831 ../fish/guestfish-actions.pod:3234
12649 msgid ""
12650 "The bootable flag is used by some operating systems (notably Windows) to "
12651 "determine which partition to boot from.  It is by no means universally "
12652 "recognized."
12653 msgstr ""
12654
12655 # type: =head2
12656 #: ../src/guestfs-actions.pod:4839
12657 msgid "guestfs_part_set_mbr_id"
12658 msgstr ""
12659
12660 # type: verbatim
12661 #: ../src/guestfs-actions.pod:4841
12662 #, no-wrap
12663 msgid ""
12664 " int\n"
12665 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12666 "                          const char *device,\n"
12667 "                          int partnum,\n"
12668 "                          int idbyte);\n"
12669 "\n"
12670 msgstr ""
12671
12672 # type: textblock
12673 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3242
12674 msgid ""
12675 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12676 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12677 "documentation are in fact hexadecimal numbers, but usually documented "
12678 "without any leading \"0x\" which might be confusing."
12679 msgstr ""
12680
12681 # type: =head2
12682 #: ../src/guestfs-actions.pod:4861
12683 msgid "guestfs_part_set_name"
12684 msgstr ""
12685
12686 # type: verbatim
12687 #: ../src/guestfs-actions.pod:4863
12688 #, no-wrap
12689 msgid ""
12690 " int\n"
12691 " guestfs_part_set_name (guestfs_h *g,\n"
12692 "                        const char *device,\n"
12693 "                        int partnum,\n"
12694 "                        const char *name);\n"
12695 "\n"
12696 msgstr ""
12697
12698 # type: textblock
12699 #: ../src/guestfs-actions.pod:4869 ../fish/guestfish-actions.pod:3256
12700 msgid ""
12701 "This sets the partition name on partition numbered C<partnum> on device "
12702 "C<device>.  Note that partitions are numbered from 1."
12703 msgstr ""
12704
12705 # type: textblock
12706 #: ../src/guestfs-actions.pod:4872 ../fish/guestfish-actions.pod:3259
12707 msgid ""
12708 "The partition name can only be set on certain types of partition table.  "
12709 "This works on C<gpt> but not on C<mbr> partitions."
12710 msgstr ""
12711
12712 # type: =head2
12713 #: ../src/guestfs-actions.pod:4879
12714 msgid "guestfs_part_to_dev"
12715 msgstr ""
12716
12717 # type: verbatim
12718 #: ../src/guestfs-actions.pod:4881
12719 #, no-wrap
12720 msgid ""
12721 " char *\n"
12722 " guestfs_part_to_dev (guestfs_h *g,\n"
12723 "                      const char *partition);\n"
12724 "\n"
12725 msgstr ""
12726
12727 # type: textblock
12728 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3266
12729 msgid ""
12730 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12731 "partition number, returning the device name (eg. \"/dev/sdb\")."
12732 msgstr ""
12733
12734 # type: textblock
12735 #: ../src/guestfs-actions.pod:4889
12736 msgid ""
12737 "The named partition must exist, for example as a string returned from "
12738 "C<guestfs_list_partitions>."
12739 msgstr ""
12740
12741 # type: =head2
12742 #: ../src/guestfs-actions.pod:4897
12743 msgid "guestfs_ping_daemon"
12744 msgstr ""
12745
12746 # type: verbatim
12747 #: ../src/guestfs-actions.pod:4899
12748 #, no-wrap
12749 msgid ""
12750 " int\n"
12751 " guestfs_ping_daemon (guestfs_h *g);\n"
12752 "\n"
12753 msgstr ""
12754
12755 # type: textblock
12756 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3277
12757 msgid ""
12758 "This is a test probe into the guestfs daemon running inside the qemu "
12759 "subprocess.  Calling this function checks that the daemon responds to the "
12760 "ping message, without affecting the daemon or attached block device(s) in "
12761 "any other way."
12762 msgstr ""
12763
12764 # type: =head2
12765 #: ../src/guestfs-actions.pod:4911
12766 msgid "guestfs_pread"
12767 msgstr ""
12768
12769 # type: verbatim
12770 #: ../src/guestfs-actions.pod:4913
12771 #, no-wrap
12772 msgid ""
12773 " char *\n"
12774 " guestfs_pread (guestfs_h *g,\n"
12775 "                const char *path,\n"
12776 "                int count,\n"
12777 "                int64_t offset,\n"
12778 "                size_t *size_r);\n"
12779 "\n"
12780 msgstr ""
12781
12782 # type: textblock
12783 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3286
12784 msgid ""
12785 "This command lets you read part of a file.  It reads C<count> bytes of the "
12786 "file, starting at C<offset>, from file C<path>."
12787 msgstr ""
12788
12789 # type: textblock
12790 #: ../src/guestfs-actions.pod:4923 ../src/guestfs-actions.pod:4949
12791 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3304
12792 msgid ""
12793 "This may read fewer bytes than requested.  For further details see the "
12794 "L<pread(2)> system call."
12795 msgstr ""
12796
12797 # type: textblock
12798 #: ../src/guestfs-actions.pod:4926
12799 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12800 msgstr ""
12801
12802 # type: =head2
12803 #: ../src/guestfs-actions.pod:4937
12804 msgid "guestfs_pread_device"
12805 msgstr ""
12806
12807 # type: verbatim
12808 #: ../src/guestfs-actions.pod:4939
12809 #, no-wrap
12810 msgid ""
12811 " char *\n"
12812 " guestfs_pread_device (guestfs_h *g,\n"
12813 "                       const char *device,\n"
12814 "                       int count,\n"
12815 "                       int64_t offset,\n"
12816 "                       size_t *size_r);\n"
12817 "\n"
12818 msgstr ""
12819
12820 # type: textblock
12821 #: ../src/guestfs-actions.pod:4946 ../fish/guestfish-actions.pod:3301
12822 msgid ""
12823 "This command lets you read part of a file.  It reads C<count> bytes of "
12824 "C<device>, starting at C<offset>."
12825 msgstr ""
12826
12827 # type: textblock
12828 #: ../src/guestfs-actions.pod:4952
12829 msgid "See also C<guestfs_pread>."
12830 msgstr ""
12831
12832 # type: textblock
12833 #: ../src/guestfs-actions.pod:4961
12834 msgid "(Added in 1.5.21)"
12835 msgstr ""
12836
12837 # type: =head2
12838 #: ../src/guestfs-actions.pod:4963
12839 msgid "guestfs_pvcreate"
12840 msgstr ""
12841
12842 # type: verbatim
12843 #: ../src/guestfs-actions.pod:4965
12844 #, no-wrap
12845 msgid ""
12846 " int\n"
12847 " guestfs_pvcreate (guestfs_h *g,\n"
12848 "                   const char *device);\n"
12849 "\n"
12850 msgstr ""
12851
12852 # type: textblock
12853 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3316
12854 msgid ""
12855 "This creates an LVM physical volume on the named C<device>, where C<device> "
12856 "should usually be a partition name such as C</dev/sda1>."
12857 msgstr ""
12858
12859 # type: =head2
12860 #: ../src/guestfs-actions.pod:4977
12861 msgid "guestfs_pvremove"
12862 msgstr ""
12863
12864 # type: verbatim
12865 #: ../src/guestfs-actions.pod:4979
12866 #, no-wrap
12867 msgid ""
12868 " int\n"
12869 " guestfs_pvremove (guestfs_h *g,\n"
12870 "                   const char *device);\n"
12871 "\n"
12872 msgstr ""
12873
12874 # type: textblock
12875 #: ../src/guestfs-actions.pod:4983 ../fish/guestfish-actions.pod:3324
12876 msgid ""
12877 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12878 "it."
12879 msgstr ""
12880
12881 # type: textblock
12882 #: ../src/guestfs-actions.pod:4986 ../fish/guestfish-actions.pod:3327
12883 msgid ""
12884 "The implementation uses the C<pvremove> command which refuses to wipe "
12885 "physical volumes that contain any volume groups, so you have to remove those "
12886 "first."
12887 msgstr ""
12888
12889 # type: =head2
12890 #: ../src/guestfs-actions.pod:4994
12891 msgid "guestfs_pvresize"
12892 msgstr ""
12893
12894 # type: verbatim
12895 #: ../src/guestfs-actions.pod:4996
12896 #, no-wrap
12897 msgid ""
12898 " int\n"
12899 " guestfs_pvresize (guestfs_h *g,\n"
12900 "                   const char *device);\n"
12901 "\n"
12902 msgstr ""
12903
12904 # type: textblock
12905 #: ../src/guestfs-actions.pod:5000 ../fish/guestfish-actions.pod:3335
12906 msgid ""
12907 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12908 "the new size of the underlying device."
12909 msgstr ""
12910
12911 # type: =head2
12912 #: ../src/guestfs-actions.pod:5007
12913 msgid "guestfs_pvresize_size"
12914 msgstr ""
12915
12916 # type: verbatim
12917 #: ../src/guestfs-actions.pod:5009
12918 #, no-wrap
12919 msgid ""
12920 " int\n"
12921 " guestfs_pvresize_size (guestfs_h *g,\n"
12922 "                        const char *device,\n"
12923 "                        int64_t size);\n"
12924 "\n"
12925 msgstr ""
12926
12927 # type: textblock
12928 #: ../src/guestfs-actions.pod:5014
12929 msgid ""
12930 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12931 "specify the new size (in bytes) explicitly."
12932 msgstr ""
12933
12934 # type: =head2
12935 #: ../src/guestfs-actions.pod:5021
12936 msgid "guestfs_pvs"
12937 msgstr ""
12938
12939 # type: verbatim
12940 #: ../src/guestfs-actions.pod:5023
12941 #, no-wrap
12942 msgid ""
12943 " char **\n"
12944 " guestfs_pvs (guestfs_h *g);\n"
12945 "\n"
12946 msgstr ""
12947
12948 # type: textblock
12949 #: ../src/guestfs-actions.pod:5026 ../fish/guestfish-actions.pod:3349
12950 msgid ""
12951 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12952 "(8)> command."
12953 msgstr ""
12954
12955 # type: textblock
12956 #: ../src/guestfs-actions.pod:5029 ../fish/guestfish-actions.pod:3352
12957 msgid ""
12958 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12959 "sda2>)."
12960 msgstr ""
12961
12962 # type: textblock
12963 #: ../src/guestfs-actions.pod:5032
12964 msgid "See also C<guestfs_pvs_full>."
12965 msgstr ""
12966
12967 # type: =head2
12968 #: ../src/guestfs-actions.pod:5040
12969 msgid "guestfs_pvs_full"
12970 msgstr ""
12971
12972 # type: verbatim
12973 #: ../src/guestfs-actions.pod:5042
12974 #, no-wrap
12975 msgid ""
12976 " struct guestfs_lvm_pv_list *\n"
12977 " guestfs_pvs_full (guestfs_h *g);\n"
12978 "\n"
12979 msgstr ""
12980
12981 # type: textblock
12982 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3361
12983 msgid ""
12984 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12985 "(8)> command.  The \"full\" version includes all fields."
12986 msgstr ""
12987
12988 # type: textblock
12989 #: ../src/guestfs-actions.pod:5048
12990 msgid ""
12991 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12992 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
12993 msgstr ""
12994
12995 # type: =head2
12996 #: ../src/guestfs-actions.pod:5054
12997 msgid "guestfs_pvuuid"
12998 msgstr ""
12999
13000 # type: verbatim
13001 #: ../src/guestfs-actions.pod:5056
13002 #, no-wrap
13003 msgid ""
13004 " char *\n"
13005 " guestfs_pvuuid (guestfs_h *g,\n"
13006 "                 const char *device);\n"
13007 "\n"
13008 msgstr ""
13009
13010 # type: textblock
13011 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3368
13012 msgid "This command returns the UUID of the LVM PV C<device>."
13013 msgstr ""
13014
13015 # type: =head2
13016 #: ../src/guestfs-actions.pod:5067
13017 msgid "guestfs_pwrite"
13018 msgstr ""
13019
13020 # type: verbatim
13021 #: ../src/guestfs-actions.pod:5069
13022 #, no-wrap
13023 msgid ""
13024 " int\n"
13025 " guestfs_pwrite (guestfs_h *g,\n"
13026 "                 const char *path,\n"
13027 "                 const char *content,\n"
13028 "                 size_t content_size,\n"
13029 "                 int64_t offset);\n"
13030 "\n"
13031 msgstr ""
13032
13033 # type: textblock
13034 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3374
13035 msgid ""
13036 "This command writes to part of a file.  It writes the data buffer C<content> "
13037 "to the file C<path> starting at offset C<offset>."
13038 msgstr ""
13039
13040 # type: textblock
13041 #: ../src/guestfs-actions.pod:5079 ../fish/guestfish-actions.pod:3377
13042 msgid ""
13043 "This command implements the L<pwrite(2)> system call, and like that system "
13044 "call it may not write the full data requested.  The return value is the "
13045 "number of bytes that were actually written to the file.  This could even be "
13046 "0, although short writes are unlikely for regular files in ordinary "
13047 "circumstances."
13048 msgstr ""
13049
13050 # type: textblock
13051 #: ../src/guestfs-actions.pod:5085
13052 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
13053 msgstr ""
13054
13055 # type: =head2
13056 #: ../src/guestfs-actions.pod:5094
13057 msgid "guestfs_pwrite_device"
13058 msgstr ""
13059
13060 # type: verbatim
13061 #: ../src/guestfs-actions.pod:5096
13062 #, no-wrap
13063 msgid ""
13064 " int\n"
13065 " guestfs_pwrite_device (guestfs_h *g,\n"
13066 "                        const char *device,\n"
13067 "                        const char *content,\n"
13068 "                        size_t content_size,\n"
13069 "                        int64_t offset);\n"
13070 "\n"
13071 msgstr ""
13072
13073 # type: textblock
13074 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3392
13075 msgid ""
13076 "This command writes to part of a device.  It writes the data buffer "
13077 "C<content> to C<device> starting at offset C<offset>."
13078 msgstr ""
13079
13080 # type: textblock
13081 #: ../src/guestfs-actions.pod:5106 ../fish/guestfish-actions.pod:3395
13082 msgid ""
13083 "This command implements the L<pwrite(2)> system call, and like that system "
13084 "call it may not write the full data requested (although short writes to disk "
13085 "devices and partitions are probably impossible with standard Linux kernels)."
13086 msgstr ""
13087
13088 # type: textblock
13089 #: ../src/guestfs-actions.pod:5111
13090 msgid "See also C<guestfs_pwrite>."
13091 msgstr ""
13092
13093 # type: textblock
13094 #: ../src/guestfs-actions.pod:5118
13095 msgid "(Added in 1.5.20)"
13096 msgstr ""
13097
13098 # type: =head2
13099 #: ../src/guestfs-actions.pod:5120
13100 msgid "guestfs_read_file"
13101 msgstr ""
13102
13103 # type: verbatim
13104 #: ../src/guestfs-actions.pod:5122
13105 #, no-wrap
13106 msgid ""
13107 " char *\n"
13108 " guestfs_read_file (guestfs_h *g,\n"
13109 "                    const char *path,\n"
13110 "                    size_t *size_r);\n"
13111 "\n"
13112 msgstr ""
13113
13114 # type: textblock
13115 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3409
13116 msgid "This calls returns the contents of the file C<path> as a buffer."
13117 msgstr ""
13118
13119 # type: textblock
13120 #: ../src/guestfs-actions.pod:5130
13121 msgid ""
13122 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
13123 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
13124 "function is limited in the total size of file that can be handled."
13125 msgstr ""
13126
13127 # type: textblock
13128 #: ../src/guestfs-actions.pod:5142
13129 msgid "(Added in 1.0.63)"
13130 msgstr ""
13131
13132 # type: =head2
13133 #: ../src/guestfs-actions.pod:5144
13134 msgid "guestfs_read_lines"
13135 msgstr ""
13136
13137 # type: verbatim
13138 #: ../src/guestfs-actions.pod:5146
13139 #, no-wrap
13140 msgid ""
13141 " char **\n"
13142 " guestfs_read_lines (guestfs_h *g,\n"
13143 "                     const char *path);\n"
13144 "\n"
13145 msgstr ""
13146
13147 # type: textblock
13148 #: ../src/guestfs-actions.pod:5152 ../fish/guestfish-actions.pod:3426
13149 msgid ""
13150 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13151 "C<CRLF> character sequences are I<not> returned."
13152 msgstr ""
13153
13154 # type: textblock
13155 #: ../src/guestfs-actions.pod:5155
13156 msgid ""
13157 "Note that this function cannot correctly handle binary files (specifically, "
13158 "files containing C<\\0> character which is treated as end of line).  For "
13159 "those you need to use the C<guestfs_read_file> function which has a more "
13160 "complex interface."
13161 msgstr ""
13162
13163 # type: =head2
13164 #: ../src/guestfs-actions.pod:5166
13165 msgid "guestfs_readdir"
13166 msgstr ""
13167
13168 # type: verbatim
13169 #: ../src/guestfs-actions.pod:5168
13170 #, no-wrap
13171 msgid ""
13172 " struct guestfs_dirent_list *\n"
13173 " guestfs_readdir (guestfs_h *g,\n"
13174 "                  const char *dir);\n"
13175 "\n"
13176 msgstr ""
13177
13178 # type: textblock
13179 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3438
13180 msgid "This returns the list of directory entries in directory C<dir>."
13181 msgstr ""
13182
13183 # type: textblock
13184 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3440
13185 msgid ""
13186 "All entries in the directory are returned, including C<.> and C<..>.  The "
13187 "entries are I<not> sorted, but returned in the same order as the underlying "
13188 "filesystem."
13189 msgstr ""
13190
13191 # type: textblock
13192 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3444
13193 msgid ""
13194 "Also this call returns basic file type information about each file.  The "
13195 "C<ftyp> field will contain one of the following characters:"
13196 msgstr ""
13197
13198 # type: =item
13199 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3449
13200 msgid "'b'"
13201 msgstr ""
13202
13203 # type: textblock
13204 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3451
13205 msgid "Block special"
13206 msgstr ""
13207
13208 # type: =item
13209 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:3453
13210 msgid "'c'"
13211 msgstr ""
13212
13213 # type: textblock
13214 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3455
13215 msgid "Char special"
13216 msgstr ""
13217
13218 # type: =item
13219 #: ../src/guestfs-actions.pod:5191 ../fish/guestfish-actions.pod:3457
13220 msgid "'d'"
13221 msgstr ""
13222
13223 # type: textblock
13224 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3459
13225 msgid "Directory"
13226 msgstr ""
13227
13228 # type: =item
13229 #: ../src/guestfs-actions.pod:5195 ../fish/guestfish-actions.pod:3461
13230 msgid "'f'"
13231 msgstr ""
13232
13233 # type: textblock
13234 #: ../src/guestfs-actions.pod:5197 ../fish/guestfish-actions.pod:3463
13235 msgid "FIFO (named pipe)"
13236 msgstr ""
13237
13238 # type: =item
13239 #: ../src/guestfs-actions.pod:5199 ../fish/guestfish-actions.pod:3465
13240 msgid "'l'"
13241 msgstr ""
13242
13243 # type: textblock
13244 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3467
13245 msgid "Symbolic link"
13246 msgstr ""
13247
13248 # type: =item
13249 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3469
13250 msgid "'r'"
13251 msgstr ""
13252
13253 # type: textblock
13254 #: ../src/guestfs-actions.pod:5205 ../fish/guestfish-actions.pod:3471
13255 msgid "Regular file"
13256 msgstr ""
13257
13258 # type: =item
13259 #: ../src/guestfs-actions.pod:5207 ../fish/guestfish-actions.pod:3473
13260 msgid "'s'"
13261 msgstr ""
13262
13263 # type: textblock
13264 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3475
13265 msgid "Socket"
13266 msgstr ""
13267
13268 # type: =item
13269 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:3477
13270 msgid "'u'"
13271 msgstr ""
13272
13273 # type: textblock
13274 #: ../src/guestfs-actions.pod:5213 ../fish/guestfish-actions.pod:3479
13275 msgid "Unknown file type"
13276 msgstr ""
13277
13278 # type: =item
13279 #: ../src/guestfs-actions.pod:5215 ../fish/guestfish-actions.pod:3481
13280 msgid "'?'"
13281 msgstr ""
13282
13283 # type: textblock
13284 #: ../src/guestfs-actions.pod:5217 ../fish/guestfish-actions.pod:3483
13285 msgid ""
13286 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13287 msgstr ""
13288
13289 # type: textblock
13290 #: ../src/guestfs-actions.pod:5222
13291 msgid ""
13292 "This function is primarily intended for use by programs.  To get a simple "
13293 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13294 "consumption, use C<guestfs_ll>."
13295 msgstr ""
13296
13297 # type: textblock
13298 #: ../src/guestfs-actions.pod:5226
13299 msgid ""
13300 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13301 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13302 msgstr ""
13303
13304 # type: =head2
13305 #: ../src/guestfs-actions.pod:5232
13306 msgid "guestfs_readlink"
13307 msgstr ""
13308
13309 # type: verbatim
13310 #: ../src/guestfs-actions.pod:5234
13311 #, no-wrap
13312 msgid ""
13313 " char *\n"
13314 " guestfs_readlink (guestfs_h *g,\n"
13315 "                   const char *path);\n"
13316 "\n"
13317 msgstr ""
13318
13319 # type: textblock
13320 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3496
13321 msgid "This command reads the target of a symbolic link."
13322 msgstr ""
13323
13324 # type: =head2
13325 #: ../src/guestfs-actions.pod:5245
13326 msgid "guestfs_readlinklist"
13327 msgstr ""
13328
13329 # type: verbatim
13330 #: ../src/guestfs-actions.pod:5247
13331 #, no-wrap
13332 msgid ""
13333 " char **\n"
13334 " guestfs_readlinklist (guestfs_h *g,\n"
13335 "                       const char *path,\n"
13336 "                       char *const *names);\n"
13337 "\n"
13338 msgstr ""
13339
13340 # type: textblock
13341 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:3502
13342 msgid ""
13343 "This call allows you to do a C<readlink> operation on multiple files, where "
13344 "all files are in the directory C<path>.  C<names> is the list of files from "
13345 "this directory."
13346 msgstr ""
13347
13348 # type: textblock
13349 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:3506
13350 msgid ""
13351 "On return you get a list of strings, with a one-to-one correspondence to the "
13352 "C<names> list.  Each string is the value of the symbolic link."
13353 msgstr ""
13354
13355 # type: textblock
13356 #: ../src/guestfs-actions.pod:5260 ../fish/guestfish-actions.pod:3510
13357 msgid ""
13358 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13359 "result string is the empty string C<\"\">.  However the whole operation is "
13360 "completed even if there were C<readlink(2)> errors, and so you can call this "
13361 "function with names where you don't know if they are symbolic links already "
13362 "(albeit slightly less efficient)."
13363 msgstr ""
13364
13365 # type: textblock
13366 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3517
13367 msgid ""
13368 "This call is intended for programs that want to efficiently list a directory "
13369 "contents without making many round-trips.  Very long directory listings "
13370 "might cause the protocol message size to be exceeded, causing this call to "
13371 "fail.  The caller must split up such requests into smaller groups of names."
13372 msgstr ""
13373
13374 # type: =head2
13375 #: ../src/guestfs-actions.pod:5280
13376 msgid "guestfs_realpath"
13377 msgstr ""
13378
13379 # type: verbatim
13380 #: ../src/guestfs-actions.pod:5282
13381 #, no-wrap
13382 msgid ""
13383 " char *\n"
13384 " guestfs_realpath (guestfs_h *g,\n"
13385 "                   const char *path);\n"
13386 "\n"
13387 msgstr ""
13388
13389 # type: textblock
13390 #: ../src/guestfs-actions.pod:5286 ../fish/guestfish-actions.pod:3528
13391 msgid ""
13392 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13393 "has no C<.>, C<..> or symbolic link path elements."
13394 msgstr ""
13395
13396 # type: =head2
13397 #: ../src/guestfs-actions.pod:5294
13398 msgid "guestfs_removexattr"
13399 msgstr ""
13400
13401 # type: verbatim
13402 #: ../src/guestfs-actions.pod:5296
13403 #, no-wrap
13404 msgid ""
13405 " int\n"
13406 " guestfs_removexattr (guestfs_h *g,\n"
13407 "                      const char *xattr,\n"
13408 "                      const char *path);\n"
13409 "\n"
13410 msgstr ""
13411
13412 # type: textblock
13413 #: ../src/guestfs-actions.pod:5301 ../fish/guestfish-actions.pod:3535
13414 msgid ""
13415 "This call removes the extended attribute named C<xattr> of the file C<path>."
13416 msgstr ""
13417
13418 # type: textblock
13419 #: ../src/guestfs-actions.pod:5304
13420 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13421 msgstr ""
13422
13423 # type: =head2
13424 #: ../src/guestfs-actions.pod:5310
13425 msgid "guestfs_resize2fs"
13426 msgstr ""
13427
13428 # type: verbatim
13429 #: ../src/guestfs-actions.pod:5312
13430 #, no-wrap
13431 msgid ""
13432 " int\n"
13433 " guestfs_resize2fs (guestfs_h *g,\n"
13434 "                    const char *device);\n"
13435 "\n"
13436 msgstr ""
13437
13438 # type: textblock
13439 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3544
13440 msgid ""
13441 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13442 "underlying device."
13443 msgstr ""
13444
13445 # type: textblock
13446 #: ../src/guestfs-actions.pod:5319
13447 msgid ""
13448 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13449 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13450 "sometimes gives an error about this and sometimes not.  In any case, it is "
13451 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13452 msgstr ""
13453
13454 # type: =head2
13455 #: ../src/guestfs-actions.pod:5329
13456 msgid "guestfs_resize2fs_size"
13457 msgstr ""
13458
13459 # type: verbatim
13460 #: ../src/guestfs-actions.pod:5331
13461 #, no-wrap
13462 msgid ""
13463 " int\n"
13464 " guestfs_resize2fs_size (guestfs_h *g,\n"
13465 "                         const char *device,\n"
13466 "                         int64_t size);\n"
13467 "\n"
13468 msgstr ""
13469
13470 # type: textblock
13471 #: ../src/guestfs-actions.pod:5336
13472 msgid ""
13473 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13474 "to specify the new size (in bytes) explicitly."
13475 msgstr ""
13476
13477 # type: =head2
13478 #: ../src/guestfs-actions.pod:5343
13479 msgid "guestfs_rm"
13480 msgstr ""
13481
13482 # type: verbatim
13483 #: ../src/guestfs-actions.pod:5345
13484 #, no-wrap
13485 msgid ""
13486 " int\n"
13487 " guestfs_rm (guestfs_h *g,\n"
13488 "             const char *path);\n"
13489 "\n"
13490 msgstr ""
13491
13492 # type: textblock
13493 #: ../src/guestfs-actions.pod:5349 ../fish/guestfish-actions.pod:3564
13494 msgid "Remove the single file C<path>."
13495 msgstr ""
13496
13497 # type: =head2
13498 #: ../src/guestfs-actions.pod:5355
13499 msgid "guestfs_rm_rf"
13500 msgstr ""
13501
13502 # type: verbatim
13503 #: ../src/guestfs-actions.pod:5357
13504 #, no-wrap
13505 msgid ""
13506 " int\n"
13507 " guestfs_rm_rf (guestfs_h *g,\n"
13508 "                const char *path);\n"
13509 "\n"
13510 msgstr ""
13511
13512 # type: textblock
13513 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3570
13514 msgid ""
13515 "Remove the file or directory C<path>, recursively removing the contents if "
13516 "its a directory.  This is like the C<rm -rf> shell command."
13517 msgstr ""
13518
13519 # type: =head2
13520 #: ../src/guestfs-actions.pod:5369
13521 msgid "guestfs_rmdir"
13522 msgstr ""
13523
13524 # type: verbatim
13525 #: ../src/guestfs-actions.pod:5371
13526 #, no-wrap
13527 msgid ""
13528 " int\n"
13529 " guestfs_rmdir (guestfs_h *g,\n"
13530 "                const char *path);\n"
13531 "\n"
13532 msgstr ""
13533
13534 # type: textblock
13535 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:3578
13536 msgid "Remove the single directory C<path>."
13537 msgstr ""
13538
13539 # type: =head2
13540 #: ../src/guestfs-actions.pod:5381
13541 msgid "guestfs_rmmountpoint"
13542 msgstr ""
13543
13544 # type: verbatim
13545 #: ../src/guestfs-actions.pod:5383
13546 #, no-wrap
13547 msgid ""
13548 " int\n"
13549 " guestfs_rmmountpoint (guestfs_h *g,\n"
13550 "                       const char *exemptpath);\n"
13551 "\n"
13552 msgstr ""
13553
13554 # type: textblock
13555 #: ../src/guestfs-actions.pod:5387
13556 msgid ""
13557 "This calls removes a mountpoint that was previously created with "
13558 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13559 msgstr ""
13560
13561 # type: =head2
13562 #: ../src/guestfs-actions.pod:5395
13563 msgid "guestfs_scrub_device"
13564 msgstr ""
13565
13566 # type: verbatim
13567 #: ../src/guestfs-actions.pod:5397
13568 #, no-wrap
13569 msgid ""
13570 " int\n"
13571 " guestfs_scrub_device (guestfs_h *g,\n"
13572 "                       const char *device);\n"
13573 "\n"
13574 msgstr ""
13575
13576 # type: textblock
13577 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3592
13578 msgid ""
13579 "This command writes patterns over C<device> to make data retrieval more "
13580 "difficult."
13581 msgstr ""
13582
13583 # type: textblock
13584 #: ../src/guestfs-actions.pod:5404 ../src/guestfs-actions.pod:5425
13585 #: ../src/guestfs-actions.pod:5444 ../fish/guestfish-actions.pod:3595
13586 #: ../fish/guestfish-actions.pod:3610 ../fish/guestfish-actions.pod:3623
13587 msgid ""
13588 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13589 "more details."
13590 msgstr ""
13591
13592 # type: textblock
13593 #: ../src/guestfs-actions.pod:5412 ../src/guestfs-actions.pod:5430
13594 #: ../src/guestfs-actions.pod:5449
13595 msgid "(Added in 1.0.52)"
13596 msgstr ""
13597
13598 # type: =head2
13599 #: ../src/guestfs-actions.pod:5414
13600 msgid "guestfs_scrub_file"
13601 msgstr ""
13602
13603 # type: verbatim
13604 #: ../src/guestfs-actions.pod:5416
13605 #, no-wrap
13606 msgid ""
13607 " int\n"
13608 " guestfs_scrub_file (guestfs_h *g,\n"
13609 "                     const char *file);\n"
13610 "\n"
13611 msgstr ""
13612
13613 # type: textblock
13614 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3605
13615 msgid ""
13616 "This command writes patterns over a file to make data retrieval more "
13617 "difficult."
13618 msgstr ""
13619
13620 # type: textblock
13621 #: ../src/guestfs-actions.pod:5423 ../fish/guestfish-actions.pod:3608
13622 msgid "The file is I<removed> after scrubbing."
13623 msgstr ""
13624
13625 # type: =head2
13626 #: ../src/guestfs-actions.pod:5432
13627 msgid "guestfs_scrub_freespace"
13628 msgstr ""
13629
13630 # type: verbatim
13631 #: ../src/guestfs-actions.pod:5434
13632 #, no-wrap
13633 msgid ""
13634 " int\n"
13635 " guestfs_scrub_freespace (guestfs_h *g,\n"
13636 "                          const char *dir);\n"
13637 "\n"
13638 msgstr ""
13639
13640 # type: textblock
13641 #: ../src/guestfs-actions.pod:5438
13642 msgid ""
13643 "This command creates the directory C<dir> and then fills it with files until "
13644 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13645 "and deletes them.  The intention is to scrub any free space on the partition "
13646 "containing C<dir>."
13647 msgstr ""
13648
13649 # type: =head2
13650 #: ../src/guestfs-actions.pod:5451
13651 msgid "guestfs_set_append"
13652 msgstr ""
13653
13654 # type: verbatim
13655 #: ../src/guestfs-actions.pod:5453
13656 #, no-wrap
13657 msgid ""
13658 " int\n"
13659 " guestfs_set_append (guestfs_h *g,\n"
13660 "                     const char *append);\n"
13661 "\n"
13662 msgstr ""
13663
13664 # type: textblock
13665 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3632
13666 msgid ""
13667 "This function is used to add additional options to the guest kernel command "
13668 "line."
13669 msgstr ""
13670
13671 # type: textblock
13672 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:3635
13673 msgid ""
13674 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13675 "environment variable."
13676 msgstr ""
13677
13678 # type: textblock
13679 #: ../src/guestfs-actions.pod:5463 ../fish/guestfish-actions.pod:3638
13680 msgid ""
13681 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13682 "(libguestfs always adds a few of its own)."
13683 msgstr ""
13684
13685 # type: =head2
13686 #: ../src/guestfs-actions.pod:5470
13687 msgid "guestfs_set_autosync"
13688 msgstr ""
13689
13690 # type: verbatim
13691 #: ../src/guestfs-actions.pod:5472
13692 #, no-wrap
13693 msgid ""
13694 " int\n"
13695 " guestfs_set_autosync (guestfs_h *g,\n"
13696 "                       int autosync);\n"
13697 "\n"
13698 msgstr ""
13699
13700 # type: textblock
13701 #: ../src/guestfs-actions.pod:5476
13702 msgid ""
13703 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13704 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13705 "the handle is closed (also if the program exits without closing handles)."
13706 msgstr ""
13707
13708 # type: textblock
13709 #: ../src/guestfs-actions.pod:5481 ../fish/guestfish-actions.pod:3652
13710 msgid ""
13711 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13712 "disabled by default)."
13713 msgstr ""
13714
13715 # type: =head2
13716 #: ../src/guestfs-actions.pod:5488
13717 msgid "guestfs_set_direct"
13718 msgstr ""
13719
13720 # type: verbatim
13721 #: ../src/guestfs-actions.pod:5490
13722 #, no-wrap
13723 msgid ""
13724 " int\n"
13725 " guestfs_set_direct (guestfs_h *g,\n"
13726 "                     int direct);\n"
13727 "\n"
13728 msgstr ""
13729
13730 # type: textblock
13731 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:3661
13732 msgid ""
13733 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13734 "passed directly through to the appliance once it is launched."
13735 msgstr ""
13736
13737 # type: textblock
13738 #: ../src/guestfs-actions.pod:5498
13739 msgid ""
13740 "One consequence of this is that log messages aren't caught by the library "
13741 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13742 "stdout."
13743 msgstr ""
13744
13745 # type: textblock
13746 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:3669
13747 msgid "You probably don't want to use this unless you know what you are doing."
13748 msgstr ""
13749
13750 # type: textblock
13751 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3672
13752 msgid "The default is disabled."
13753 msgstr ""
13754
13755 # type: =head2
13756 #: ../src/guestfs-actions.pod:5511
13757 msgid "guestfs_set_e2label"
13758 msgstr ""
13759
13760 # type: verbatim
13761 #: ../src/guestfs-actions.pod:5513
13762 #, no-wrap
13763 msgid ""
13764 " int\n"
13765 " guestfs_set_e2label (guestfs_h *g,\n"
13766 "                      const char *device,\n"
13767 "                      const char *label);\n"
13768 "\n"
13769 msgstr ""
13770
13771 # type: textblock
13772 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3678
13773 msgid ""
13774 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13775 "C<label>.  Filesystem labels are limited to 16 characters."
13776 msgstr ""
13777
13778 # type: textblock
13779 #: ../src/guestfs-actions.pod:5522
13780 msgid ""
13781 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13782 "the existing label on a filesystem."
13783 msgstr ""
13784
13785 # type: =head2
13786 #: ../src/guestfs-actions.pod:5529
13787 msgid "guestfs_set_e2uuid"
13788 msgstr ""
13789
13790 # type: verbatim
13791 #: ../src/guestfs-actions.pod:5531
13792 #, no-wrap
13793 msgid ""
13794 " int\n"
13795 " guestfs_set_e2uuid (guestfs_h *g,\n"
13796 "                     const char *device,\n"
13797 "                     const char *uuid);\n"
13798 "\n"
13799 msgstr ""
13800
13801 # type: textblock
13802 #: ../src/guestfs-actions.pod:5536 ../fish/guestfish-actions.pod:3689
13803 msgid ""
13804 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13805 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13806 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13807 msgstr ""
13808
13809 # type: textblock
13810 #: ../src/guestfs-actions.pod:5541
13811 msgid ""
13812 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13813 "the existing UUID of a filesystem."
13814 msgstr ""
13815
13816 # type: =head2
13817 #: ../src/guestfs-actions.pod:5548
13818 msgid "guestfs_set_memsize"
13819 msgstr ""
13820
13821 # type: verbatim
13822 #: ../src/guestfs-actions.pod:5550
13823 #, no-wrap
13824 msgid ""
13825 " int\n"
13826 " guestfs_set_memsize (guestfs_h *g,\n"
13827 "                      int memsize);\n"
13828 "\n"
13829 msgstr ""
13830
13831 # type: textblock
13832 #: ../src/guestfs-actions.pod:5554
13833 msgid ""
13834 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13835 "This only has any effect if called before C<guestfs_launch>."
13836 msgstr ""
13837
13838 # type: textblock
13839 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3707
13840 msgid ""
13841 "You can also change this by setting the environment variable "
13842 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13843 msgstr ""
13844
13845 # type: =head2
13846 #: ../src/guestfs-actions.pod:5569
13847 msgid "guestfs_set_network"
13848 msgstr ""
13849
13850 # type: verbatim
13851 #: ../src/guestfs-actions.pod:5571
13852 #, no-wrap
13853 msgid ""
13854 " int\n"
13855 " guestfs_set_network (guestfs_h *g,\n"
13856 "                      int network);\n"
13857 "\n"
13858 msgstr ""
13859
13860 # type: textblock
13861 #: ../src/guestfs-actions.pod:5575 ../fish/guestfish-actions.pod:3720
13862 msgid ""
13863 "If C<network> is true, then the network is enabled in the libguestfs "
13864 "appliance.  The default is false."
13865 msgstr ""
13866
13867 # type: textblock
13868 #: ../src/guestfs-actions.pod:5578 ../fish/guestfish-actions.pod:3723
13869 msgid ""
13870 "This affects whether commands are able to access the network (see L<guestfs"
13871 "(3)/RUNNING COMMANDS>)."
13872 msgstr ""
13873
13874 # type: textblock
13875 #: ../src/guestfs-actions.pod:5581
13876 msgid ""
13877 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13878 "effect."
13879 msgstr ""
13880
13881 # type: =head2
13882 #: ../src/guestfs-actions.pod:5588
13883 msgid "guestfs_set_path"
13884 msgstr ""
13885
13886 # type: verbatim
13887 #: ../src/guestfs-actions.pod:5590
13888 #, no-wrap
13889 msgid ""
13890 " int\n"
13891 " guestfs_set_path (guestfs_h *g,\n"
13892 "                   const char *searchpath);\n"
13893 "\n"
13894 msgstr ""
13895
13896 # type: textblock
13897 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3735
13898 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13899 msgstr ""
13900
13901 # type: textblock
13902 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:3737
13903 msgid ""
13904 "The default is C<$libdir/guestfs> unless overridden by setting "
13905 "C<LIBGUESTFS_PATH> environment variable."
13906 msgstr ""
13907
13908 # type: textblock
13909 #: ../src/guestfs-actions.pod:5599 ../fish/guestfish-actions.pod:3740
13910 msgid "Setting C<path> to C<NULL> restores the default path."
13911 msgstr ""
13912
13913 # type: =head2
13914 #: ../src/guestfs-actions.pod:5605
13915 msgid "guestfs_set_qemu"
13916 msgstr ""
13917
13918 # type: verbatim
13919 #: ../src/guestfs-actions.pod:5607
13920 #, no-wrap
13921 msgid ""
13922 " int\n"
13923 " guestfs_set_qemu (guestfs_h *g,\n"
13924 "                   const char *qemu);\n"
13925 "\n"
13926 msgstr ""
13927
13928 # type: textblock
13929 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3748
13930 msgid "Set the qemu binary that we will use."
13931 msgstr ""
13932
13933 # type: textblock
13934 #: ../src/guestfs-actions.pod:5613 ../fish/guestfish-actions.pod:3750
13935 msgid ""
13936 "The default is chosen when the library was compiled by the configure script."
13937 msgstr ""
13938
13939 # type: textblock
13940 #: ../src/guestfs-actions.pod:5616 ../fish/guestfish-actions.pod:3753
13941 msgid ""
13942 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13943 "variable."
13944 msgstr ""
13945
13946 # type: textblock
13947 #: ../src/guestfs-actions.pod:5619 ../fish/guestfish-actions.pod:3756
13948 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13949 msgstr ""
13950
13951 # type: textblock
13952 #: ../src/guestfs-actions.pod:5621 ../fish/guestfish-actions.pod:3758
13953 msgid ""
13954 "Note that you should call this function as early as possible after creating "
13955 "the handle.  This is because some pre-launch operations depend on testing "
13956 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13957 "don't retest features, and so you might see inconsistent results.  Using the "
13958 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13959 "the qemu binary at the same time as the handle is created."
13960 msgstr ""
13961
13962 # type: =head2
13963 #: ../src/guestfs-actions.pod:5633
13964 msgid "guestfs_set_recovery_proc"
13965 msgstr ""
13966
13967 # type: verbatim
13968 #: ../src/guestfs-actions.pod:5635
13969 #, no-wrap
13970 msgid ""
13971 " int\n"
13972 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13973 "                            int recoveryproc);\n"
13974 "\n"
13975 msgstr ""
13976
13977 # type: textblock
13978 #: ../src/guestfs-actions.pod:5639
13979 msgid ""
13980 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13981 "not create a recovery process.  The purpose of the recovery process is to "
13982 "stop runaway qemu processes in the case where the main program aborts "
13983 "abruptly."
13984 msgstr ""
13985
13986 # type: textblock
13987 #: ../src/guestfs-actions.pod:5644
13988 msgid ""
13989 "This only has any effect if called before C<guestfs_launch>, and the default "
13990 "is true."
13991 msgstr ""
13992
13993 # type: textblock
13994 #: ../src/guestfs-actions.pod:5647 ../fish/guestfish-actions.pod:3780
13995 msgid ""
13996 "About the only time when you would want to disable this is if the main "
13997 "process will fork itself into the background (\"daemonize\" itself).  In "
13998 "this case the recovery process thinks that the main program has disappeared "
13999 "and so kills qemu, which is not very helpful."
14000 msgstr ""
14001
14002 # type: =head2
14003 #: ../src/guestfs-actions.pod:5657
14004 msgid "guestfs_set_selinux"
14005 msgstr ""
14006
14007 # type: verbatim
14008 #: ../src/guestfs-actions.pod:5659
14009 #, no-wrap
14010 msgid ""
14011 " int\n"
14012 " guestfs_set_selinux (guestfs_h *g,\n"
14013 "                      int selinux);\n"
14014 "\n"
14015 msgstr ""
14016
14017 # type: textblock
14018 #: ../src/guestfs-actions.pod:5663 ../fish/guestfish-actions.pod:3792
14019 msgid ""
14020 "This sets the selinux flag that is passed to the appliance at boot time.  "
14021 "The default is C<selinux=0> (disabled)."
14022 msgstr ""
14023
14024 # type: textblock
14025 #: ../src/guestfs-actions.pod:5666 ../fish/guestfish-actions.pod:3795
14026 msgid ""
14027 "Note that if SELinux is enabled, it is always in Permissive mode "
14028 "(C<enforcing=0>)."
14029 msgstr ""
14030
14031 # type: =head2
14032 #: ../src/guestfs-actions.pod:5676
14033 msgid "guestfs_set_trace"
14034 msgstr ""
14035
14036 # type: verbatim
14037 #: ../src/guestfs-actions.pod:5678
14038 #, no-wrap
14039 msgid ""
14040 " int\n"
14041 " guestfs_set_trace (guestfs_h *g,\n"
14042 "                    int trace);\n"
14043 "\n"
14044 msgstr ""
14045
14046 # type: textblock
14047 #: ../src/guestfs-actions.pod:5682 ../fish/guestfish-actions.pod:3807
14048 msgid ""
14049 "If the command trace flag is set to 1, then commands are printed on stderr "
14050 "before they are executed in a format which is very similar to the one used "
14051 "by guestfish.  In other words, you can run a program with this enabled, and "
14052 "you will get out a script which you can feed to guestfish to perform the "
14053 "same set of actions."
14054 msgstr ""
14055
14056 # type: textblock
14057 #: ../src/guestfs-actions.pod:5689 ../fish/guestfish-actions.pod:3814
14058 msgid ""
14059 "If you want to trace C API calls into libguestfs (and other libraries) then "
14060 "possibly a better way is to use the external ltrace(1) command."
14061 msgstr ""
14062
14063 # type: textblock
14064 #: ../src/guestfs-actions.pod:5693 ../fish/guestfish-actions.pod:3818
14065 msgid ""
14066 "Command traces are disabled unless the environment variable "
14067 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14068 msgstr ""
14069
14070 # type: =head2
14071 #: ../src/guestfs-actions.pod:5700
14072 msgid "guestfs_set_verbose"
14073 msgstr ""
14074
14075 # type: verbatim
14076 #: ../src/guestfs-actions.pod:5702
14077 #, no-wrap
14078 msgid ""
14079 " int\n"
14080 " guestfs_set_verbose (guestfs_h *g,\n"
14081 "                      int verbose);\n"
14082 "\n"
14083 msgstr ""
14084
14085 # type: textblock
14086 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3827
14087 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
14088 msgstr ""
14089
14090 # type: textblock
14091 #: ../src/guestfs-actions.pod:5708 ../fish/guestfish-actions.pod:3829
14092 msgid ""
14093 "Verbose messages are disabled unless the environment variable "
14094 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14095 msgstr ""
14096
14097 # type: =head2
14098 #: ../src/guestfs-actions.pod:5715
14099 msgid "guestfs_setcon"
14100 msgstr ""
14101
14102 # type: verbatim
14103 #: ../src/guestfs-actions.pod:5717
14104 #, no-wrap
14105 msgid ""
14106 " int\n"
14107 " guestfs_setcon (guestfs_h *g,\n"
14108 "                 const char *context);\n"
14109 "\n"
14110 msgstr ""
14111
14112 # type: textblock
14113 #: ../src/guestfs-actions.pod:5721 ../fish/guestfish-actions.pod:3836
14114 msgid ""
14115 "This sets the SELinux security context of the daemon to the string "
14116 "C<context>."
14117 msgstr ""
14118
14119 # type: textblock
14120 #: ../src/guestfs-actions.pod:5724 ../fish/guestfish-actions.pod:3839
14121 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14122 msgstr ""
14123
14124 # type: =head2
14125 #: ../src/guestfs-actions.pod:5730
14126 msgid "guestfs_setxattr"
14127 msgstr ""
14128
14129 # type: verbatim
14130 #: ../src/guestfs-actions.pod:5732
14131 #, no-wrap
14132 msgid ""
14133 " int\n"
14134 " guestfs_setxattr (guestfs_h *g,\n"
14135 "                   const char *xattr,\n"
14136 "                   const char *val,\n"
14137 "                   int vallen,\n"
14138 "                   const char *path);\n"
14139 "\n"
14140 msgstr ""
14141
14142 # type: textblock
14143 #: ../src/guestfs-actions.pod:5739 ../fish/guestfish-actions.pod:3845
14144 msgid ""
14145 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14146 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14147 msgstr ""
14148
14149 # type: textblock
14150 #: ../src/guestfs-actions.pod:5743
14151 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14152 msgstr ""
14153
14154 # type: =head2
14155 #: ../src/guestfs-actions.pod:5749
14156 msgid "guestfs_sfdisk"
14157 msgstr ""
14158
14159 # type: verbatim
14160 #: ../src/guestfs-actions.pod:5751
14161 #, no-wrap
14162 msgid ""
14163 " int\n"
14164 " guestfs_sfdisk (guestfs_h *g,\n"
14165 "                 const char *device,\n"
14166 "                 int cyls,\n"
14167 "                 int heads,\n"
14168 "                 int sectors,\n"
14169 "                 char *const *lines);\n"
14170 "\n"
14171 msgstr ""
14172
14173 # type: textblock
14174 #: ../src/guestfs-actions.pod:5759 ../fish/guestfish-actions.pod:3855
14175 msgid ""
14176 "This is a direct interface to the L<sfdisk(8)> program for creating "
14177 "partitions on block devices."
14178 msgstr ""
14179
14180 # type: textblock
14181 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3858
14182 msgid "C<device> should be a block device, for example C</dev/sda>."
14183 msgstr ""
14184
14185 # type: textblock
14186 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:3860
14187 msgid ""
14188 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14189 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14190 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14191 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14192 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14193 "the kernel) cannot work out the right geometry and you will need to tell it."
14194 msgstr ""
14195
14196 # type: textblock
14197 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:3868
14198 msgid ""
14199 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14200 "refer to the L<sfdisk(8)> manpage."
14201 msgstr ""
14202
14203 # type: textblock
14204 #: ../src/guestfs-actions.pod:5775 ../fish/guestfish-actions.pod:3871
14205 msgid ""
14206 "To create a single partition occupying the whole disk, you would pass "
14207 "C<lines> as a single element list, when the single element being the string "
14208 "C<,> (comma)."
14209 msgstr ""
14210
14211 # type: textblock
14212 #: ../src/guestfs-actions.pod:5779
14213 msgid ""
14214 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14215 msgstr ""
14216
14217 # type: =head2
14218 #: ../src/guestfs-actions.pod:5789
14219 msgid "guestfs_sfdiskM"
14220 msgstr ""
14221
14222 # type: verbatim
14223 #: ../src/guestfs-actions.pod:5791
14224 #, no-wrap
14225 msgid ""
14226 " int\n"
14227 " guestfs_sfdiskM (guestfs_h *g,\n"
14228 "                  const char *device,\n"
14229 "                  char *const *lines);\n"
14230 "\n"
14231 msgstr ""
14232
14233 # type: textblock
14234 #: ../src/guestfs-actions.pod:5796
14235 msgid ""
14236 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14237 "partition sizes are specified in megabytes only (rounded to the nearest "
14238 "cylinder) and you don't need to specify the cyls, heads and sectors "
14239 "parameters which were rarely if ever used anyway."
14240 msgstr ""
14241
14242 # type: textblock
14243 #: ../src/guestfs-actions.pod:5802
14244 msgid ""
14245 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14246 "C<guestfs_part_disk>"
14247 msgstr ""
14248
14249 # type: =head2
14250 #: ../src/guestfs-actions.pod:5812
14251 msgid "guestfs_sfdisk_N"
14252 msgstr ""
14253
14254 # type: verbatim
14255 #: ../src/guestfs-actions.pod:5814
14256 #, no-wrap
14257 msgid ""
14258 " int\n"
14259 " guestfs_sfdisk_N (guestfs_h *g,\n"
14260 "                   const char *device,\n"
14261 "                   int partnum,\n"
14262 "                   int cyls,\n"
14263 "                   int heads,\n"
14264 "                   int sectors,\n"
14265 "                   const char *line);\n"
14266 "\n"
14267 msgstr ""
14268
14269 # type: textblock
14270 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3901
14271 msgid ""
14272 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14273 "(note: C<n> counts from 1)."
14274 msgstr ""
14275
14276 # type: textblock
14277 #: ../src/guestfs-actions.pod:5826
14278 msgid ""
14279 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14280 "for the cyls/heads/sectors parameters."
14281 msgstr ""
14282
14283 # type: textblock
14284 #: ../src/guestfs-actions.pod:5829
14285 msgid "See also: C<guestfs_part_add>"
14286 msgstr ""
14287
14288 # type: =head2
14289 #: ../src/guestfs-actions.pod:5838
14290 msgid "guestfs_sfdisk_disk_geometry"
14291 msgstr ""
14292
14293 # type: verbatim
14294 #: ../src/guestfs-actions.pod:5840
14295 #, no-wrap
14296 msgid ""
14297 " char *\n"
14298 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14299 "                               const char *device);\n"
14300 "\n"
14301 msgstr ""
14302
14303 # type: textblock
14304 #: ../src/guestfs-actions.pod:5844
14305 msgid ""
14306 "This displays the disk geometry of C<device> read from the partition table.  "
14307 "Especially in the case where the underlying block device has been resized, "
14308 "this can be different from the kernel's idea of the geometry (see "
14309 "C<guestfs_sfdisk_kernel_geometry>)."
14310 msgstr ""
14311
14312 # type: textblock
14313 #: ../src/guestfs-actions.pod:5849 ../src/guestfs-actions.pod:5865
14314 #: ../fish/guestfish-actions.pod:3921 ../fish/guestfish-actions.pod:3930
14315 msgid "The result is in human-readable format, and not designed to be parsed."
14316 msgstr ""
14317
14318 # type: =head2
14319 #: ../src/guestfs-actions.pod:5857
14320 msgid "guestfs_sfdisk_kernel_geometry"
14321 msgstr ""
14322
14323 # type: verbatim
14324 #: ../src/guestfs-actions.pod:5859
14325 #, no-wrap
14326 msgid ""
14327 " char *\n"
14328 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14329 "                                 const char *device);\n"
14330 "\n"
14331 msgstr ""
14332
14333 # type: textblock
14334 #: ../src/guestfs-actions.pod:5863 ../fish/guestfish-actions.pod:3928
14335 msgid "This displays the kernel's idea of the geometry of C<device>."
14336 msgstr ""
14337
14338 # type: =head2
14339 #: ../src/guestfs-actions.pod:5873
14340 msgid "guestfs_sfdisk_l"
14341 msgstr ""
14342
14343 # type: verbatim
14344 #: ../src/guestfs-actions.pod:5875
14345 #, no-wrap
14346 msgid ""
14347 " char *\n"
14348 " guestfs_sfdisk_l (guestfs_h *g,\n"
14349 "                   const char *device);\n"
14350 "\n"
14351 msgstr ""
14352
14353 # type: textblock
14354 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3937
14355 msgid ""
14356 "This displays the partition table on C<device>, in the human-readable output "
14357 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14358 msgstr ""
14359
14360 # type: textblock
14361 #: ../src/guestfs-actions.pod:5883
14362 msgid "See also: C<guestfs_part_list>"
14363 msgstr ""
14364
14365 # type: =head2
14366 #: ../src/guestfs-actions.pod:5890
14367 msgid "guestfs_sh"
14368 msgstr ""
14369
14370 # type: verbatim
14371 #: ../src/guestfs-actions.pod:5892
14372 #, no-wrap
14373 msgid ""
14374 " char *\n"
14375 " guestfs_sh (guestfs_h *g,\n"
14376 "             const char *command);\n"
14377 "\n"
14378 msgstr ""
14379
14380 # type: textblock
14381 #: ../src/guestfs-actions.pod:5896 ../fish/guestfish-actions.pod:3947
14382 msgid ""
14383 "This call runs a command from the guest filesystem via the guest's C</bin/"
14384 "sh>."
14385 msgstr ""
14386
14387 # type: textblock
14388 #: ../src/guestfs-actions.pod:5899
14389 msgid "This is like C<guestfs_command>, but passes the command to:"
14390 msgstr ""
14391
14392 # type: verbatim
14393 #: ../src/guestfs-actions.pod:5901 ../fish/guestfish-actions.pod:3952
14394 #, no-wrap
14395 msgid ""
14396 " /bin/sh -c \"command\"\n"
14397 "\n"
14398 msgstr ""
14399
14400 # type: textblock
14401 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3954
14402 msgid ""
14403 "Depending on the guest's shell, this usually results in wildcards being "
14404 "expanded, shell expressions being interpolated and so on."
14405 msgstr ""
14406
14407 # type: textblock
14408 #: ../src/guestfs-actions.pod:5907
14409 msgid "All the provisos about C<guestfs_command> apply to this call."
14410 msgstr ""
14411
14412 # type: =head2
14413 #: ../src/guestfs-actions.pod:5914
14414 msgid "guestfs_sh_lines"
14415 msgstr ""
14416
14417 # type: verbatim
14418 #: ../src/guestfs-actions.pod:5916
14419 #, no-wrap
14420 msgid ""
14421 " char **\n"
14422 " guestfs_sh_lines (guestfs_h *g,\n"
14423 "                   const char *command);\n"
14424 "\n"
14425 msgstr ""
14426
14427 # type: textblock
14428 #: ../src/guestfs-actions.pod:5920
14429 msgid ""
14430 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14431 "lines."
14432 msgstr ""
14433
14434 # type: textblock
14435 #: ../src/guestfs-actions.pod:5923
14436 msgid "See also: C<guestfs_command_lines>"
14437 msgstr ""
14438
14439 # type: =head2
14440 #: ../src/guestfs-actions.pod:5931
14441 msgid "guestfs_sleep"
14442 msgstr ""
14443
14444 # type: verbatim
14445 #: ../src/guestfs-actions.pod:5933
14446 #, no-wrap
14447 msgid ""
14448 " int\n"
14449 " guestfs_sleep (guestfs_h *g,\n"
14450 "                int secs);\n"
14451 "\n"
14452 msgstr ""
14453
14454 # type: textblock
14455 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3973
14456 msgid "Sleep for C<secs> seconds."
14457 msgstr ""
14458
14459 # type: textblock
14460 #: ../src/guestfs-actions.pod:5941
14461 msgid "(Added in 1.0.41)"
14462 msgstr ""
14463
14464 # type: =head2
14465 #: ../src/guestfs-actions.pod:5943 ../src/guestfs-structs.pod:109
14466 msgid "guestfs_stat"
14467 msgstr ""
14468
14469 # type: verbatim
14470 #: ../src/guestfs-actions.pod:5945
14471 #, no-wrap
14472 msgid ""
14473 " struct guestfs_stat *\n"
14474 " guestfs_stat (guestfs_h *g,\n"
14475 "               const char *path);\n"
14476 "\n"
14477 msgstr ""
14478
14479 # type: textblock
14480 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:3981
14481 msgid "This is the same as the C<stat(2)> system call."
14482 msgstr ""
14483
14484 # type: =head2
14485 #: ../src/guestfs-actions.pod:5959 ../src/guestfs-structs.pod:135
14486 msgid "guestfs_statvfs"
14487 msgstr ""
14488
14489 # type: verbatim
14490 #: ../src/guestfs-actions.pod:5961
14491 #, no-wrap
14492 msgid ""
14493 " struct guestfs_statvfs *\n"
14494 " guestfs_statvfs (guestfs_h *g,\n"
14495 "                  const char *path);\n"
14496 "\n"
14497 msgstr ""
14498
14499 # type: textblock
14500 #: ../src/guestfs-actions.pod:5965 ../fish/guestfish-actions.pod:3987
14501 msgid ""
14502 "Returns file system statistics for any mounted file system.  C<path> should "
14503 "be a file or directory in the mounted file system (typically it is the mount "
14504 "point itself, but it doesn't need to be)."
14505 msgstr ""
14506
14507 # type: textblock
14508 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:3991
14509 msgid "This is the same as the C<statvfs(2)> system call."
14510 msgstr ""
14511
14512 # type: textblock
14513 #: ../src/guestfs-actions.pod:5971
14514 msgid ""
14515 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14516 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14517 msgstr ""
14518
14519 # type: =head2
14520 #: ../src/guestfs-actions.pod:5977
14521 msgid "guestfs_strings"
14522 msgstr ""
14523
14524 # type: verbatim
14525 #: ../src/guestfs-actions.pod:5979
14526 #, no-wrap
14527 msgid ""
14528 " char **\n"
14529 " guestfs_strings (guestfs_h *g,\n"
14530 "                  const char *path);\n"
14531 "\n"
14532 msgstr ""
14533
14534 # type: textblock
14535 #: ../src/guestfs-actions.pod:5983 ../fish/guestfish-actions.pod:3997
14536 msgid ""
14537 "This runs the L<strings(1)> command on a file and returns the list of "
14538 "printable strings found."
14539 msgstr ""
14540
14541 # type: =head2
14542 #: ../src/guestfs-actions.pod:5995
14543 msgid "guestfs_strings_e"
14544 msgstr ""
14545
14546 # type: verbatim
14547 #: ../src/guestfs-actions.pod:5997
14548 #, no-wrap
14549 msgid ""
14550 " char **\n"
14551 " guestfs_strings_e (guestfs_h *g,\n"
14552 "                    const char *encoding,\n"
14553 "                    const char *path);\n"
14554 "\n"
14555 msgstr ""
14556
14557 # type: textblock
14558 #: ../src/guestfs-actions.pod:6002
14559 msgid ""
14560 "This is like the C<guestfs_strings> command, but allows you to specify the "
14561 "encoding of strings that are looked for in the source file C<path>."
14562 msgstr ""
14563
14564 # type: textblock
14565 #: ../src/guestfs-actions.pod:6006 ../fish/guestfish-actions.pod:4011
14566 msgid "Allowed encodings are:"
14567 msgstr ""
14568
14569 # type: =item
14570 #: ../src/guestfs-actions.pod:6010 ../fish/guestfish-actions.pod:4015
14571 msgid "s"
14572 msgstr ""
14573
14574 # type: textblock
14575 #: ../src/guestfs-actions.pod:6012
14576 msgid ""
14577 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14578 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14579 msgstr ""
14580
14581 # type: =item
14582 #: ../src/guestfs-actions.pod:6015 ../fish/guestfish-actions.pod:4020
14583 msgid "S"
14584 msgstr ""
14585
14586 # type: textblock
14587 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4022
14588 msgid "Single 8-bit-byte characters."
14589 msgstr ""
14590
14591 # type: =item
14592 #: ../src/guestfs-actions.pod:6019 ../fish/guestfish-actions.pod:4024
14593 msgid "b"
14594 msgstr ""
14595
14596 # type: textblock
14597 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:4026
14598 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14599 msgstr ""
14600
14601 # type: =item
14602 #: ../src/guestfs-actions.pod:6024 ../fish/guestfish-actions.pod:4029
14603 msgid "l (lower case letter L)"
14604 msgstr ""
14605
14606 # type: textblock
14607 #: ../src/guestfs-actions.pod:6026 ../fish/guestfish-actions.pod:4031
14608 msgid ""
14609 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14610 "examining binaries in Windows guests."
14611 msgstr ""
14612
14613 # type: =item
14614 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4034
14615 msgid "B"
14616 msgstr ""
14617
14618 # type: textblock
14619 #: ../src/guestfs-actions.pod:6031 ../fish/guestfish-actions.pod:4036
14620 msgid "32-bit big endian such as UCS-4BE."
14621 msgstr ""
14622
14623 # type: =item
14624 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4038
14625 msgid "L"
14626 msgstr ""
14627
14628 # type: textblock
14629 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4040
14630 msgid "32-bit little endian such as UCS-4LE."
14631 msgstr ""
14632
14633 # type: textblock
14634 #: ../src/guestfs-actions.pod:6039 ../fish/guestfish-actions.pod:4044
14635 msgid "The returned strings are transcoded to UTF-8."
14636 msgstr ""
14637
14638 # type: =head2
14639 #: ../src/guestfs-actions.pod:6050
14640 msgid "guestfs_swapoff_device"
14641 msgstr ""
14642
14643 # type: verbatim
14644 #: ../src/guestfs-actions.pod:6052
14645 #, no-wrap
14646 msgid ""
14647 " int\n"
14648 " guestfs_swapoff_device (guestfs_h *g,\n"
14649 "                         const char *device);\n"
14650 "\n"
14651 msgstr ""
14652
14653 # type: textblock
14654 #: ../src/guestfs-actions.pod:6056
14655 msgid ""
14656 "This command disables the libguestfs appliance swap device or partition "
14657 "named C<device>.  See C<guestfs_swapon_device>."
14658 msgstr ""
14659
14660 # type: =head2
14661 #: ../src/guestfs-actions.pod:6064
14662 msgid "guestfs_swapoff_file"
14663 msgstr ""
14664
14665 # type: verbatim
14666 #: ../src/guestfs-actions.pod:6066
14667 #, no-wrap
14668 msgid ""
14669 " int\n"
14670 " guestfs_swapoff_file (guestfs_h *g,\n"
14671 "                       const char *file);\n"
14672 "\n"
14673 msgstr ""
14674
14675 # type: textblock
14676 #: ../src/guestfs-actions.pod:6070 ../fish/guestfish-actions.pod:4061
14677 msgid "This command disables the libguestfs appliance swap on file."
14678 msgstr ""
14679
14680 # type: =head2
14681 #: ../src/guestfs-actions.pod:6076
14682 msgid "guestfs_swapoff_label"
14683 msgstr ""
14684
14685 # type: verbatim
14686 #: ../src/guestfs-actions.pod:6078
14687 #, no-wrap
14688 msgid ""
14689 " int\n"
14690 " guestfs_swapoff_label (guestfs_h *g,\n"
14691 "                        const char *label);\n"
14692 "\n"
14693 msgstr ""
14694
14695 # type: textblock
14696 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4067
14697 msgid ""
14698 "This command disables the libguestfs appliance swap on labeled swap "
14699 "partition."
14700 msgstr ""
14701
14702 # type: =head2
14703 #: ../src/guestfs-actions.pod:6089
14704 msgid "guestfs_swapoff_uuid"
14705 msgstr ""
14706
14707 # type: verbatim
14708 #: ../src/guestfs-actions.pod:6091
14709 #, no-wrap
14710 msgid ""
14711 " int\n"
14712 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14713 "                       const char *uuid);\n"
14714 "\n"
14715 msgstr ""
14716
14717 # type: textblock
14718 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4074
14719 msgid ""
14720 "This command disables the libguestfs appliance swap partition with the given "
14721 "UUID."
14722 msgstr ""
14723
14724 # type: =head2
14725 #: ../src/guestfs-actions.pod:6102
14726 msgid "guestfs_swapon_device"
14727 msgstr ""
14728
14729 # type: verbatim
14730 #: ../src/guestfs-actions.pod:6104
14731 #, no-wrap
14732 msgid ""
14733 " int\n"
14734 " guestfs_swapon_device (guestfs_h *g,\n"
14735 "                        const char *device);\n"
14736 "\n"
14737 msgstr ""
14738
14739 # type: textblock
14740 #: ../src/guestfs-actions.pod:6108
14741 msgid ""
14742 "This command enables the libguestfs appliance to use the swap device or "
14743 "partition named C<device>.  The increased memory is made available for all "
14744 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14745 msgstr ""
14746
14747 # type: textblock
14748 #: ../src/guestfs-actions.pod:6113 ../fish/guestfish-actions.pod:4086
14749 msgid ""
14750 "Note that you should not swap to existing guest swap partitions unless you "
14751 "know what you are doing.  They may contain hibernation information, or other "
14752 "information that the guest doesn't want you to trash.  You also risk leaking "
14753 "information about the host to the guest this way.  Instead, attach a new "
14754 "host device to the guest and swap on that."
14755 msgstr ""
14756
14757 # type: =head2
14758 #: ../src/guestfs-actions.pod:6124
14759 msgid "guestfs_swapon_file"
14760 msgstr ""
14761
14762 # type: verbatim
14763 #: ../src/guestfs-actions.pod:6126
14764 #, no-wrap
14765 msgid ""
14766 " int\n"
14767 " guestfs_swapon_file (guestfs_h *g,\n"
14768 "                      const char *file);\n"
14769 "\n"
14770 msgstr ""
14771
14772 # type: textblock
14773 #: ../src/guestfs-actions.pod:6130
14774 msgid ""
14775 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14776 "notes."
14777 msgstr ""
14778
14779 # type: =head2
14780 #: ../src/guestfs-actions.pod:6137
14781 msgid "guestfs_swapon_label"
14782 msgstr ""
14783
14784 # type: verbatim
14785 #: ../src/guestfs-actions.pod:6139
14786 #, no-wrap
14787 msgid ""
14788 " int\n"
14789 " guestfs_swapon_label (guestfs_h *g,\n"
14790 "                       const char *label);\n"
14791 "\n"
14792 msgstr ""
14793
14794 # type: textblock
14795 #: ../src/guestfs-actions.pod:6143
14796 msgid ""
14797 "This command enables swap to a labeled swap partition.  See "
14798 "C<guestfs_swapon_device> for other notes."
14799 msgstr ""
14800
14801 # type: =head2
14802 #: ../src/guestfs-actions.pod:6150
14803 msgid "guestfs_swapon_uuid"
14804 msgstr ""
14805
14806 # type: verbatim
14807 #: ../src/guestfs-actions.pod:6152
14808 #, no-wrap
14809 msgid ""
14810 " int\n"
14811 " guestfs_swapon_uuid (guestfs_h *g,\n"
14812 "                      const char *uuid);\n"
14813 "\n"
14814 msgstr ""
14815
14816 # type: textblock
14817 #: ../src/guestfs-actions.pod:6156
14818 msgid ""
14819 "This command enables swap to a swap partition with the given UUID.  See "
14820 "C<guestfs_swapon_device> for other notes."
14821 msgstr ""
14822
14823 # type: =head2
14824 #: ../src/guestfs-actions.pod:6163
14825 msgid "guestfs_sync"
14826 msgstr ""
14827
14828 # type: verbatim
14829 #: ../src/guestfs-actions.pod:6165
14830 #, no-wrap
14831 msgid ""
14832 " int\n"
14833 " guestfs_sync (guestfs_h *g);\n"
14834 "\n"
14835 msgstr ""
14836
14837 # type: textblock
14838 #: ../src/guestfs-actions.pod:6168 ../fish/guestfish-actions.pod:4118
14839 msgid ""
14840 "This syncs the disk, so that any writes are flushed through to the "
14841 "underlying disk image."
14842 msgstr ""
14843
14844 # type: textblock
14845 #: ../src/guestfs-actions.pod:6171 ../fish/guestfish-actions.pod:4121
14846 msgid ""
14847 "You should always call this if you have modified a disk image, before "
14848 "closing the handle."
14849 msgstr ""
14850
14851 # type: =head2
14852 #: ../src/guestfs-actions.pod:6178
14853 msgid "guestfs_tail"
14854 msgstr ""
14855
14856 # type: verbatim
14857 #: ../src/guestfs-actions.pod:6180
14858 #, no-wrap
14859 msgid ""
14860 " char **\n"
14861 " guestfs_tail (guestfs_h *g,\n"
14862 "               const char *path);\n"
14863 "\n"
14864 msgstr ""
14865
14866 # type: textblock
14867 #: ../src/guestfs-actions.pod:6184 ../fish/guestfish-actions.pod:4128
14868 msgid ""
14869 "This command returns up to the last 10 lines of a file as a list of strings."
14870 msgstr ""
14871
14872 # type: =head2
14873 #: ../src/guestfs-actions.pod:6196
14874 msgid "guestfs_tail_n"
14875 msgstr ""
14876
14877 # type: verbatim
14878 #: ../src/guestfs-actions.pod:6198
14879 #, no-wrap
14880 msgid ""
14881 " char **\n"
14882 " guestfs_tail_n (guestfs_h *g,\n"
14883 "                 int nrlines,\n"
14884 "                 const char *path);\n"
14885 "\n"
14886 msgstr ""
14887
14888 # type: textblock
14889 #: ../src/guestfs-actions.pod:6203 ../fish/guestfish-actions.pod:4138
14890 msgid ""
14891 "If the parameter C<nrlines> is a positive number, this returns the last "
14892 "C<nrlines> lines of the file C<path>."
14893 msgstr ""
14894
14895 # type: textblock
14896 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4141
14897 msgid ""
14898 "If the parameter C<nrlines> is a negative number, this returns lines from "
14899 "the file C<path>, starting with the C<-nrlines>th line."
14900 msgstr ""
14901
14902 # type: =head2
14903 #: ../src/guestfs-actions.pod:6220
14904 msgid "guestfs_tar_in"
14905 msgstr ""
14906
14907 # type: verbatim
14908 #: ../src/guestfs-actions.pod:6222
14909 #, no-wrap
14910 msgid ""
14911 " int\n"
14912 " guestfs_tar_in (guestfs_h *g,\n"
14913 "                 const char *tarfile,\n"
14914 "                 const char *directory);\n"
14915 "\n"
14916 msgstr ""
14917
14918 # type: textblock
14919 #: ../src/guestfs-actions.pod:6227 ../fish/guestfish-actions.pod:4153
14920 msgid ""
14921 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14922 "tar file) into C<directory>."
14923 msgstr ""
14924
14925 # type: textblock
14926 #: ../src/guestfs-actions.pod:6230
14927 msgid ""
14928 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14929 msgstr ""
14930
14931 # type: textblock
14932 #: ../src/guestfs-actions.pod:6235 ../src/guestfs-actions.pod:6252
14933 #: ../src/guestfs-actions.pod:6268 ../src/guestfs-actions.pod:6284
14934 msgid "(Added in 1.0.3)"
14935 msgstr ""
14936
14937 # type: =head2
14938 #: ../src/guestfs-actions.pod:6237
14939 msgid "guestfs_tar_out"
14940 msgstr ""
14941
14942 # type: verbatim
14943 #: ../src/guestfs-actions.pod:6239
14944 #, no-wrap
14945 msgid ""
14946 " int\n"
14947 " guestfs_tar_out (guestfs_h *g,\n"
14948 "                  const char *directory,\n"
14949 "                  const char *tarfile);\n"
14950 "\n"
14951 msgstr ""
14952
14953 # type: textblock
14954 #: ../src/guestfs-actions.pod:6244 ../fish/guestfish-actions.pod:4165
14955 msgid ""
14956 "This command packs the contents of C<directory> and downloads it to local "
14957 "file C<tarfile>."
14958 msgstr ""
14959
14960 # type: textblock
14961 #: ../src/guestfs-actions.pod:6247
14962 msgid ""
14963 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14964 "C<guestfs_txz_out>."
14965 msgstr ""
14966
14967 # type: =head2
14968 #: ../src/guestfs-actions.pod:6254
14969 msgid "guestfs_tgz_in"
14970 msgstr ""
14971
14972 # type: verbatim
14973 #: ../src/guestfs-actions.pod:6256
14974 #, no-wrap
14975 msgid ""
14976 " int\n"
14977 " guestfs_tgz_in (guestfs_h *g,\n"
14978 "                 const char *tarball,\n"
14979 "                 const char *directory);\n"
14980 "\n"
14981 msgstr ""
14982
14983 # type: textblock
14984 #: ../src/guestfs-actions.pod:6261 ../fish/guestfish-actions.pod:4177
14985 msgid ""
14986 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14987 "tar file) into C<directory>."
14988 msgstr ""
14989
14990 # type: textblock
14991 #: ../src/guestfs-actions.pod:6264
14992 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14993 msgstr ""
14994
14995 # type: =head2
14996 #: ../src/guestfs-actions.pod:6270
14997 msgid "guestfs_tgz_out"
14998 msgstr ""
14999
15000 # type: verbatim
15001 #: ../src/guestfs-actions.pod:6272
15002 #, no-wrap
15003 msgid ""
15004 " int\n"
15005 " guestfs_tgz_out (guestfs_h *g,\n"
15006 "                  const char *directory,\n"
15007 "                  const char *tarball);\n"
15008 "\n"
15009 msgstr ""
15010
15011 # type: textblock
15012 #: ../src/guestfs-actions.pod:6277 ../fish/guestfish-actions.pod:4188
15013 msgid ""
15014 "This command packs the contents of C<directory> and downloads it to local "
15015 "file C<tarball>."
15016 msgstr ""
15017
15018 # type: textblock
15019 #: ../src/guestfs-actions.pod:6280
15020 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
15021 msgstr ""
15022
15023 # type: =head2
15024 #: ../src/guestfs-actions.pod:6286
15025 msgid "guestfs_touch"
15026 msgstr ""
15027
15028 # type: verbatim
15029 #: ../src/guestfs-actions.pod:6288
15030 #, no-wrap
15031 msgid ""
15032 " int\n"
15033 " guestfs_touch (guestfs_h *g,\n"
15034 "                const char *path);\n"
15035 "\n"
15036 msgstr ""
15037
15038 # type: textblock
15039 #: ../src/guestfs-actions.pod:6292 ../fish/guestfish-actions.pod:4199
15040 msgid ""
15041 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15042 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15043 "length file."
15044 msgstr ""
15045
15046 # type: textblock
15047 #: ../src/guestfs-actions.pod:6296 ../fish/guestfish-actions.pod:4203
15048 msgid ""
15049 "This command only works on regular files, and will fail on other file types "
15050 "such as directories, symbolic links, block special etc."
15051 msgstr ""
15052
15053 # type: =head2
15054 #: ../src/guestfs-actions.pod:6303
15055 msgid "guestfs_truncate"
15056 msgstr ""
15057
15058 # type: verbatim
15059 #: ../src/guestfs-actions.pod:6305
15060 #, no-wrap
15061 msgid ""
15062 " int\n"
15063 " guestfs_truncate (guestfs_h *g,\n"
15064 "                   const char *path);\n"
15065 "\n"
15066 msgstr ""
15067
15068 # type: textblock
15069 #: ../src/guestfs-actions.pod:6309 ../fish/guestfish-actions.pod:4210
15070 msgid ""
15071 "This command truncates C<path> to a zero-length file.  The file must exist "
15072 "already."
15073 msgstr ""
15074
15075 # type: =head2
15076 #: ../src/guestfs-actions.pod:6316
15077 msgid "guestfs_truncate_size"
15078 msgstr ""
15079
15080 # type: verbatim
15081 #: ../src/guestfs-actions.pod:6318
15082 #, no-wrap
15083 msgid ""
15084 " int\n"
15085 " guestfs_truncate_size (guestfs_h *g,\n"
15086 "                        const char *path,\n"
15087 "                        int64_t size);\n"
15088 "\n"
15089 msgstr ""
15090
15091 # type: textblock
15092 #: ../src/guestfs-actions.pod:6323 ../fish/guestfish-actions.pod:4217
15093 msgid ""
15094 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15095 "already."
15096 msgstr ""
15097
15098 # type: textblock
15099 #: ../src/guestfs-actions.pod:6326
15100 msgid ""
15101 "If the current file size is less than C<size> then the file is extended to "
15102 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15103 "blocks are not allocated for the file until you write to it).  To create a "
15104 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
15105 msgstr ""
15106
15107 # type: =head2
15108 #: ../src/guestfs-actions.pod:6336
15109 msgid "guestfs_tune2fs_l"
15110 msgstr ""
15111
15112 # type: verbatim
15113 #: ../src/guestfs-actions.pod:6338
15114 #, no-wrap
15115 msgid ""
15116 " char **\n"
15117 " guestfs_tune2fs_l (guestfs_h *g,\n"
15118 "                    const char *device);\n"
15119 "\n"
15120 msgstr ""
15121
15122 # type: textblock
15123 #: ../src/guestfs-actions.pod:6342 ../fish/guestfish-actions.pod:4230
15124 msgid ""
15125 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15126 "C<device>."
15127 msgstr ""
15128
15129 # type: textblock
15130 #: ../src/guestfs-actions.pod:6345 ../fish/guestfish-actions.pod:4233
15131 msgid ""
15132 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15133 "for more details.  The list of fields returned isn't clearly defined, and "
15134 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15135 "and the filesystem itself."
15136 msgstr ""
15137
15138 # type: =head2
15139 #: ../src/guestfs-actions.pod:6358
15140 msgid "guestfs_txz_in"
15141 msgstr ""
15142
15143 # type: verbatim
15144 #: ../src/guestfs-actions.pod:6360
15145 #, no-wrap
15146 msgid ""
15147 " int\n"
15148 " guestfs_txz_in (guestfs_h *g,\n"
15149 "                 const char *tarball,\n"
15150 "                 const char *directory);\n"
15151 "\n"
15152 msgstr ""
15153
15154 # type: textblock
15155 #: ../src/guestfs-actions.pod:6365 ../fish/guestfish-actions.pod:4242
15156 msgid ""
15157 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15158 "tar file) into C<directory>."
15159 msgstr ""
15160
15161 # type: =head2
15162 #: ../src/guestfs-actions.pod:6372
15163 msgid "guestfs_txz_out"
15164 msgstr ""
15165
15166 # type: verbatim
15167 #: ../src/guestfs-actions.pod:6374
15168 #, no-wrap
15169 msgid ""
15170 " int\n"
15171 " guestfs_txz_out (guestfs_h *g,\n"
15172 "                  const char *directory,\n"
15173 "                  const char *tarball);\n"
15174 "\n"
15175 msgstr ""
15176
15177 # type: textblock
15178 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4251
15179 msgid ""
15180 "This command packs the contents of C<directory> and downloads it to local "
15181 "file C<tarball> (as an xz compressed tar archive)."
15182 msgstr ""
15183
15184 # type: =head2
15185 #: ../src/guestfs-actions.pod:6386
15186 msgid "guestfs_umask"
15187 msgstr ""
15188
15189 # type: verbatim
15190 #: ../src/guestfs-actions.pod:6388
15191 #, no-wrap
15192 msgid ""
15193 " int\n"
15194 " guestfs_umask (guestfs_h *g,\n"
15195 "                int mask);\n"
15196 "\n"
15197 msgstr ""
15198
15199 # type: textblock
15200 #: ../src/guestfs-actions.pod:6392 ../fish/guestfish-actions.pod:4260
15201 msgid ""
15202 "This function sets the mask used for creating new files and device nodes to "
15203 "C<mask & 0777>."
15204 msgstr ""
15205
15206 # type: textblock
15207 #: ../src/guestfs-actions.pod:6395 ../fish/guestfish-actions.pod:4263
15208 msgid ""
15209 "Typical umask values would be C<022> which creates new files with "
15210 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15211 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15212 msgstr ""
15213
15214 # type: textblock
15215 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4268
15216 msgid ""
15217 "The default umask is C<022>.  This is important because it means that "
15218 "directories and device nodes will be created with C<0644> or C<0755> mode "
15219 "even if you specify C<0777>."
15220 msgstr ""
15221
15222 # type: textblock
15223 #: ../src/guestfs-actions.pod:6404
15224 msgid ""
15225 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15226 "C<guestfs_mkdir>."
15227 msgstr ""
15228
15229 # type: textblock
15230 #: ../src/guestfs-actions.pod:6407 ../fish/guestfish-actions.pod:4275
15231 msgid "This call returns the previous umask."
15232 msgstr ""
15233
15234 # type: =head2
15235 #: ../src/guestfs-actions.pod:6413
15236 msgid "guestfs_umount"
15237 msgstr ""
15238
15239 # type: verbatim
15240 #: ../src/guestfs-actions.pod:6415
15241 #, no-wrap
15242 msgid ""
15243 " int\n"
15244 " guestfs_umount (guestfs_h *g,\n"
15245 "                 const char *pathordevice);\n"
15246 "\n"
15247 msgstr ""
15248
15249 # type: textblock
15250 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4283
15251 msgid ""
15252 "This unmounts the given filesystem.  The filesystem may be specified either "
15253 "by its mountpoint (path) or the device which contains the filesystem."
15254 msgstr ""
15255
15256 # type: =head2
15257 #: ../src/guestfs-actions.pod:6427
15258 msgid "guestfs_umount_all"
15259 msgstr ""
15260
15261 # type: verbatim
15262 #: ../src/guestfs-actions.pod:6429
15263 #, no-wrap
15264 msgid ""
15265 " int\n"
15266 " guestfs_umount_all (guestfs_h *g);\n"
15267 "\n"
15268 msgstr ""
15269
15270 # type: textblock
15271 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4293
15272 msgid "This unmounts all mounted filesystems."
15273 msgstr ""
15274
15275 # type: textblock
15276 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4295
15277 msgid "Some internal mounts are not unmounted by this call."
15278 msgstr ""
15279
15280 # type: =head2
15281 #: ../src/guestfs-actions.pod:6440
15282 msgid "guestfs_upload"
15283 msgstr ""
15284
15285 # type: verbatim
15286 #: ../src/guestfs-actions.pod:6442
15287 #, no-wrap
15288 msgid ""
15289 " int\n"
15290 " guestfs_upload (guestfs_h *g,\n"
15291 "                 const char *filename,\n"
15292 "                 const char *remotefilename);\n"
15293 "\n"
15294 msgstr ""
15295
15296 # type: textblock
15297 #: ../src/guestfs-actions.pod:6447 ../src/guestfs-actions.pod:6471
15298 #: ../fish/guestfish-actions.pod:4301 ../fish/guestfish-actions.pod:4314
15299 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15300 msgstr ""
15301
15302 # type: textblock
15303 #: ../src/guestfs-actions.pod:6452
15304 msgid "See also C<guestfs_download>."
15305 msgstr ""
15306
15307 # type: =head2
15308 #: ../src/guestfs-actions.pod:6463
15309 msgid "guestfs_upload_offset"
15310 msgstr ""
15311
15312 # type: verbatim
15313 #: ../src/guestfs-actions.pod:6465
15314 #, no-wrap
15315 msgid ""
15316 " int\n"
15317 " guestfs_upload_offset (guestfs_h *g,\n"
15318 "                        const char *filename,\n"
15319 "                        const char *remotefilename,\n"
15320 "                        int64_t offset);\n"
15321 "\n"
15322 msgstr ""
15323
15324 # type: textblock
15325 #: ../src/guestfs-actions.pod:6474 ../fish/guestfish-actions.pod:4317
15326 msgid ""
15327 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15328 "The intention is to overwrite parts of existing files or devices, although "
15329 "if a non-existant file is specified then it is created with a \"hole\" "
15330 "before C<offset>.  The size of the data written is implicit in the size of "
15331 "the source C<filename>."
15332 msgstr ""
15333
15334 # type: textblock
15335 #: ../src/guestfs-actions.pod:6481
15336 msgid ""
15337 "Note that there is no limit on the amount of data that can be uploaded with "
15338 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15339 "full amount unless an error occurs."
15340 msgstr ""
15341
15342 # type: textblock
15343 #: ../src/guestfs-actions.pod:6486
15344 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15345 msgstr ""
15346
15347 # type: =head2
15348 #: ../src/guestfs-actions.pod:6497
15349 msgid "guestfs_utimens"
15350 msgstr ""
15351
15352 # type: verbatim
15353 #: ../src/guestfs-actions.pod:6499
15354 #, no-wrap
15355 msgid ""
15356 " int\n"
15357 " guestfs_utimens (guestfs_h *g,\n"
15358 "                  const char *path,\n"
15359 "                  int64_t atsecs,\n"
15360 "                  int64_t atnsecs,\n"
15361 "                  int64_t mtsecs,\n"
15362 "                  int64_t mtnsecs);\n"
15363 "\n"
15364 msgstr ""
15365
15366 # type: textblock
15367 #: ../src/guestfs-actions.pod:6507 ../fish/guestfish-actions.pod:4337
15368 msgid "This command sets the timestamps of a file with nanosecond precision."
15369 msgstr ""
15370
15371 # type: textblock
15372 #: ../src/guestfs-actions.pod:6510 ../fish/guestfish-actions.pod:4340
15373 msgid ""
15374 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15375 "from the epoch."
15376 msgstr ""
15377
15378 # type: textblock
15379 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4343
15380 msgid ""
15381 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15382 "nanoseconds from the epoch."
15383 msgstr ""
15384
15385 # type: textblock
15386 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4346
15387 msgid ""
15388 "If the C<*nsecs> field contains the special value C<-1> then the "
15389 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15390 "ignored in this case)."
15391 msgstr ""
15392
15393 # type: textblock
15394 #: ../src/guestfs-actions.pod:6520 ../fish/guestfish-actions.pod:4350
15395 msgid ""
15396 "If the C<*nsecs> field contains the special value C<-2> then the "
15397 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15398 "in this case)."
15399 msgstr ""
15400
15401 # type: =head2
15402 #: ../src/guestfs-actions.pod:6528 ../src/guestfs-structs.pod:175
15403 msgid "guestfs_version"
15404 msgstr ""
15405
15406 # type: verbatim
15407 #: ../src/guestfs-actions.pod:6530
15408 #, no-wrap
15409 msgid ""
15410 " struct guestfs_version *\n"
15411 " guestfs_version (guestfs_h *g);\n"
15412 "\n"
15413 msgstr ""
15414
15415 # type: textblock
15416 #: ../src/guestfs-actions.pod:6533 ../fish/guestfish-actions.pod:4358
15417 msgid ""
15418 "Return the libguestfs version number that the program is linked against."
15419 msgstr ""
15420
15421 # type: textblock
15422 #: ../src/guestfs-actions.pod:6536 ../fish/guestfish-actions.pod:4361
15423 msgid ""
15424 "Note that because of dynamic linking this is not necessarily the version of "
15425 "libguestfs that you compiled against.  You can compile the program, and then "
15426 "at runtime dynamically link against a completely different C<libguestfs.so> "
15427 "library."
15428 msgstr ""
15429
15430 # type: textblock
15431 #: ../src/guestfs-actions.pod:6541 ../fish/guestfish-actions.pod:4366
15432 msgid ""
15433 "This call was added in version C<1.0.58>.  In previous versions of "
15434 "libguestfs there was no way to get the version number.  From C code you can "
15435 "use dynamic linker functions to find out if this symbol exists (if it "
15436 "doesn't, then it's an earlier version)."
15437 msgstr ""
15438
15439 # type: textblock
15440 #: ../src/guestfs-actions.pod:6547 ../fish/guestfish-actions.pod:4372
15441 msgid ""
15442 "The call returns a structure with four elements.  The first three (C<major>, "
15443 "C<minor> and C<release>) are numbers and correspond to the usual version "
15444 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15445 "but may be used for distro-specific information."
15446 msgstr ""
15447
15448 # type: textblock
15449 #: ../src/guestfs-actions.pod:6553 ../fish/guestfish-actions.pod:4378
15450 msgid ""
15451 "To construct the original version string: C<$major.$minor.$release$extra>"
15452 msgstr ""
15453
15454 # type: textblock
15455 #: ../src/guestfs-actions.pod:6556 ../fish/guestfish-actions.pod:4381
15456 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15457 msgstr ""
15458
15459 # type: textblock
15460 #: ../src/guestfs-actions.pod:6558
15461 msgid ""
15462 "I<Note:> Don't use this call to test for availability of features.  In "
15463 "enterprise distributions we backport features from later versions into "
15464 "earlier versions, making this an unreliable way to test for features.  Use "
15465 "C<guestfs_available> instead."
15466 msgstr ""
15467
15468 # type: textblock
15469 #: ../src/guestfs-actions.pod:6564
15470 msgid ""
15471 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15472 "error.  I<The caller must call C<guestfs_free_version> after use>."
15473 msgstr ""
15474
15475 # type: textblock
15476 #: ../src/guestfs-actions.pod:6568
15477 msgid "(Added in 1.0.58)"
15478 msgstr ""
15479
15480 # type: =head2
15481 #: ../src/guestfs-actions.pod:6570
15482 msgid "guestfs_vfs_label"
15483 msgstr ""
15484
15485 # type: verbatim
15486 #: ../src/guestfs-actions.pod:6572
15487 #, no-wrap
15488 msgid ""
15489 " char *\n"
15490 " guestfs_vfs_label (guestfs_h *g,\n"
15491 "                    const char *device);\n"
15492 "\n"
15493 msgstr ""
15494
15495 # type: textblock
15496 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4393
15497 msgid "This returns the filesystem label of the filesystem on C<device>."
15498 msgstr ""
15499
15500 # type: textblock
15501 #: ../src/guestfs-actions.pod:6579 ../fish/guestfish-actions.pod:4396
15502 msgid "If the filesystem is unlabeled, this returns the empty string."
15503 msgstr ""
15504
15505 # type: textblock
15506 #: ../src/guestfs-actions.pod:6581
15507 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15508 msgstr ""
15509
15510 # type: textblock
15511 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6623
15512 msgid "(Added in 1.3.18)"
15513 msgstr ""
15514
15515 # type: =head2
15516 #: ../src/guestfs-actions.pod:6588
15517 msgid "guestfs_vfs_type"
15518 msgstr ""
15519
15520 # type: verbatim
15521 #: ../src/guestfs-actions.pod:6590
15522 #, no-wrap
15523 msgid ""
15524 " char *\n"
15525 " guestfs_vfs_type (guestfs_h *g,\n"
15526 "                   const char *device);\n"
15527 "\n"
15528 msgstr ""
15529
15530 # type: textblock
15531 #: ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4404
15532 msgid ""
15533 "This command gets the filesystem type corresponding to the filesystem on "
15534 "C<device>."
15535 msgstr ""
15536
15537 # type: textblock
15538 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4407
15539 msgid ""
15540 "For most filesystems, the result is the name of the Linux VFS module which "
15541 "would be used to mount this filesystem if you mounted it without specifying "
15542 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15543 msgstr ""
15544
15545 # type: =head2
15546 #: ../src/guestfs-actions.pod:6607
15547 msgid "guestfs_vfs_uuid"
15548 msgstr ""
15549
15550 # type: verbatim
15551 #: ../src/guestfs-actions.pod:6609
15552 #, no-wrap
15553 msgid ""
15554 " char *\n"
15555 " guestfs_vfs_uuid (guestfs_h *g,\n"
15556 "                   const char *device);\n"
15557 "\n"
15558 msgstr ""
15559
15560 # type: textblock
15561 #: ../src/guestfs-actions.pod:6613 ../fish/guestfish-actions.pod:4416
15562 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15563 msgstr ""
15564
15565 # type: textblock
15566 #: ../src/guestfs-actions.pod:6616 ../fish/guestfish-actions.pod:4419
15567 msgid "If the filesystem does not have a UUID, this returns the empty string."
15568 msgstr ""
15569
15570 # type: textblock
15571 #: ../src/guestfs-actions.pod:6618
15572 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15573 msgstr ""
15574
15575 # type: =head2
15576 #: ../src/guestfs-actions.pod:6625
15577 msgid "guestfs_vg_activate"
15578 msgstr ""
15579
15580 # type: verbatim
15581 #: ../src/guestfs-actions.pod:6627
15582 #, no-wrap
15583 msgid ""
15584 " int\n"
15585 " guestfs_vg_activate (guestfs_h *g,\n"
15586 "                      int activate,\n"
15587 "                      char *const *volgroups);\n"
15588 "\n"
15589 msgstr ""
15590
15591 # type: textblock
15592 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4427
15593 msgid ""
15594 "This command activates or (if C<activate> is false) deactivates all logical "
15595 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15596 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15597 "deactivated, then those devices disappear."
15598 msgstr ""
15599
15600 # type: textblock
15601 #: ../src/guestfs-actions.pod:6638 ../fish/guestfish-actions.pod:4433
15602 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15603 msgstr ""
15604
15605 # type: textblock
15606 #: ../src/guestfs-actions.pod:6640 ../fish/guestfish-actions.pod:4435
15607 msgid ""
15608 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15609 "activated or deactivated."
15610 msgstr ""
15611
15612 # type: =head2
15613 #: ../src/guestfs-actions.pod:6647
15614 msgid "guestfs_vg_activate_all"
15615 msgstr ""
15616
15617 # type: verbatim
15618 #: ../src/guestfs-actions.pod:6649
15619 #, no-wrap
15620 msgid ""
15621 " int\n"
15622 " guestfs_vg_activate_all (guestfs_h *g,\n"
15623 "                          int activate);\n"
15624 "\n"
15625 msgstr ""
15626
15627 # type: textblock
15628 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4442
15629 msgid ""
15630 "This command activates or (if C<activate> is false) deactivates all logical "
15631 "volumes in all volume groups.  If activated, then they are made known to the "
15632 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15633 "those devices disappear."
15634 msgstr ""
15635
15636 # type: textblock
15637 #: ../src/guestfs-actions.pod:6659 ../fish/guestfish-actions.pod:4448
15638 msgid "This command is the same as running C<vgchange -a y|n>"
15639 msgstr ""
15640
15641 # type: =head2
15642 #: ../src/guestfs-actions.pod:6665
15643 msgid "guestfs_vgcreate"
15644 msgstr ""
15645
15646 # type: verbatim
15647 #: ../src/guestfs-actions.pod:6667
15648 #, no-wrap
15649 msgid ""
15650 " int\n"
15651 " guestfs_vgcreate (guestfs_h *g,\n"
15652 "                   const char *volgroup,\n"
15653 "                   char *const *physvols);\n"
15654 "\n"
15655 msgstr ""
15656
15657 # type: textblock
15658 #: ../src/guestfs-actions.pod:6672 ../fish/guestfish-actions.pod:4454
15659 msgid ""
15660 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15661 "of physical volumes C<physvols>."
15662 msgstr ""
15663
15664 # type: =head2
15665 #: ../src/guestfs-actions.pod:6679
15666 msgid "guestfs_vglvuuids"
15667 msgstr ""
15668
15669 # type: verbatim
15670 #: ../src/guestfs-actions.pod:6681
15671 #, no-wrap
15672 msgid ""
15673 " char **\n"
15674 " guestfs_vglvuuids (guestfs_h *g,\n"
15675 "                    const char *vgname);\n"
15676 "\n"
15677 msgstr ""
15678
15679 # type: textblock
15680 #: ../src/guestfs-actions.pod:6685 ../fish/guestfish-actions.pod:4461
15681 msgid ""
15682 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15683 "volumes created in this volume group."
15684 msgstr ""
15685
15686 # type: textblock
15687 #: ../src/guestfs-actions.pod:6688
15688 msgid ""
15689 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15690 "associate logical volumes and volume groups."
15691 msgstr ""
15692
15693 # type: textblock
15694 #: ../src/guestfs-actions.pod:6691
15695 msgid "See also C<guestfs_vgpvuuids>."
15696 msgstr ""
15697
15698 # type: =head2
15699 #: ../src/guestfs-actions.pod:6699
15700 msgid "guestfs_vgpvuuids"
15701 msgstr ""
15702
15703 # type: verbatim
15704 #: ../src/guestfs-actions.pod:6701
15705 #, no-wrap
15706 msgid ""
15707 " char **\n"
15708 " guestfs_vgpvuuids (guestfs_h *g,\n"
15709 "                    const char *vgname);\n"
15710 "\n"
15711 msgstr ""
15712
15713 # type: textblock
15714 #: ../src/guestfs-actions.pod:6705 ../fish/guestfish-actions.pod:4473
15715 msgid ""
15716 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15717 "volumes that this volume group resides on."
15718 msgstr ""
15719
15720 # type: textblock
15721 #: ../src/guestfs-actions.pod:6708
15722 msgid ""
15723 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15724 "associate physical volumes and volume groups."
15725 msgstr ""
15726
15727 # type: textblock
15728 #: ../src/guestfs-actions.pod:6711
15729 msgid "See also C<guestfs_vglvuuids>."
15730 msgstr ""
15731
15732 # type: =head2
15733 #: ../src/guestfs-actions.pod:6719
15734 msgid "guestfs_vgremove"
15735 msgstr ""
15736
15737 # type: verbatim
15738 #: ../src/guestfs-actions.pod:6721
15739 #, no-wrap
15740 msgid ""
15741 " int\n"
15742 " guestfs_vgremove (guestfs_h *g,\n"
15743 "                   const char *vgname);\n"
15744 "\n"
15745 msgstr ""
15746
15747 # type: textblock
15748 #: ../src/guestfs-actions.pod:6725 ../fish/guestfish-actions.pod:4485
15749 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15750 msgstr ""
15751
15752 # type: textblock
15753 #: ../src/guestfs-actions.pod:6727 ../fish/guestfish-actions.pod:4487
15754 msgid ""
15755 "This also forcibly removes all logical volumes in the volume group (if any)."
15756 msgstr ""
15757
15758 # type: =head2
15759 #: ../src/guestfs-actions.pod:6734
15760 msgid "guestfs_vgrename"
15761 msgstr ""
15762
15763 # type: verbatim
15764 #: ../src/guestfs-actions.pod:6736
15765 #, no-wrap
15766 msgid ""
15767 " int\n"
15768 " guestfs_vgrename (guestfs_h *g,\n"
15769 "                   const char *volgroup,\n"
15770 "                   const char *newvolgroup);\n"
15771 "\n"
15772 msgstr ""
15773
15774 # type: textblock
15775 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4494
15776 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15777 msgstr ""
15778
15779 # type: =head2
15780 #: ../src/guestfs-actions.pod:6747
15781 msgid "guestfs_vgs"
15782 msgstr ""
15783
15784 # type: verbatim
15785 #: ../src/guestfs-actions.pod:6749
15786 #, no-wrap
15787 msgid ""
15788 " char **\n"
15789 " guestfs_vgs (guestfs_h *g);\n"
15790 "\n"
15791 msgstr ""
15792
15793 # type: textblock
15794 #: ../src/guestfs-actions.pod:6752 ../fish/guestfish-actions.pod:4500
15795 msgid ""
15796 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15797 "> command."
15798 msgstr ""
15799
15800 # type: textblock
15801 #: ../src/guestfs-actions.pod:6755 ../fish/guestfish-actions.pod:4503
15802 msgid ""
15803 "This returns a list of just the volume group names that were detected (eg. "
15804 "C<VolGroup00>)."
15805 msgstr ""
15806
15807 # type: textblock
15808 #: ../src/guestfs-actions.pod:6758
15809 msgid "See also C<guestfs_vgs_full>."
15810 msgstr ""
15811
15812 # type: =head2
15813 #: ../src/guestfs-actions.pod:6766
15814 msgid "guestfs_vgs_full"
15815 msgstr ""
15816
15817 # type: verbatim
15818 #: ../src/guestfs-actions.pod:6768
15819 #, no-wrap
15820 msgid ""
15821 " struct guestfs_lvm_vg_list *\n"
15822 " guestfs_vgs_full (guestfs_h *g);\n"
15823 "\n"
15824 msgstr ""
15825
15826 # type: textblock
15827 #: ../src/guestfs-actions.pod:6771 ../fish/guestfish-actions.pod:4512
15828 msgid ""
15829 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15830 "> command.  The \"full\" version includes all fields."
15831 msgstr ""
15832
15833 # type: textblock
15834 #: ../src/guestfs-actions.pod:6774
15835 msgid ""
15836 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15837 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15838 msgstr ""
15839
15840 # type: =head2
15841 #: ../src/guestfs-actions.pod:6780
15842 msgid "guestfs_vgscan"
15843 msgstr ""
15844
15845 # type: verbatim
15846 #: ../src/guestfs-actions.pod:6782
15847 #, no-wrap
15848 msgid ""
15849 " int\n"
15850 " guestfs_vgscan (guestfs_h *g);\n"
15851 "\n"
15852 msgstr ""
15853
15854 # type: textblock
15855 #: ../src/guestfs-actions.pod:6785 ../fish/guestfish-actions.pod:4519
15856 msgid ""
15857 "This rescans all block devices and rebuilds the list of LVM physical "
15858 "volumes, volume groups and logical volumes."
15859 msgstr ""
15860
15861 # type: =head2
15862 #: ../src/guestfs-actions.pod:6792
15863 msgid "guestfs_vguuid"
15864 msgstr ""
15865
15866 # type: verbatim
15867 #: ../src/guestfs-actions.pod:6794
15868 #, no-wrap
15869 msgid ""
15870 " char *\n"
15871 " guestfs_vguuid (guestfs_h *g,\n"
15872 "                 const char *vgname);\n"
15873 "\n"
15874 msgstr ""
15875
15876 # type: textblock
15877 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4526
15878 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15879 msgstr ""
15880
15881 # type: =head2
15882 #: ../src/guestfs-actions.pod:6805
15883 msgid "guestfs_wait_ready"
15884 msgstr ""
15885
15886 # type: verbatim
15887 #: ../src/guestfs-actions.pod:6807
15888 #, no-wrap
15889 msgid ""
15890 " int\n"
15891 " guestfs_wait_ready (guestfs_h *g);\n"
15892 "\n"
15893 msgstr ""
15894
15895 # type: textblock
15896 #: ../src/guestfs-actions.pod:6810
15897 msgid "This function is a no op."
15898 msgstr ""
15899
15900 # type: textblock
15901 #: ../src/guestfs-actions.pod:6812
15902 msgid ""
15903 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15904 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15905 "is no longer necessary because C<guestfs_launch> now does the waiting."
15906 msgstr ""
15907
15908 # type: textblock
15909 #: ../src/guestfs-actions.pod:6817
15910 msgid ""
15911 "If you see any calls to this function in code then you can just remove them, "
15912 "unless you want to retain compatibility with older versions of the API."
15913 msgstr ""
15914
15915 # type: =head2
15916 #: ../src/guestfs-actions.pod:6825
15917 msgid "guestfs_wc_c"
15918 msgstr ""
15919
15920 # type: verbatim
15921 #: ../src/guestfs-actions.pod:6827
15922 #, no-wrap
15923 msgid ""
15924 " int\n"
15925 " guestfs_wc_c (guestfs_h *g,\n"
15926 "               const char *path);\n"
15927 "\n"
15928 msgstr ""
15929
15930 # type: textblock
15931 #: ../src/guestfs-actions.pod:6831 ../fish/guestfish-actions.pod:4532
15932 msgid ""
15933 "This command counts the characters in a file, using the C<wc -c> external "
15934 "command."
15935 msgstr ""
15936
15937 # type: =head2
15938 #: ../src/guestfs-actions.pod:6838
15939 msgid "guestfs_wc_l"
15940 msgstr ""
15941
15942 # type: verbatim
15943 #: ../src/guestfs-actions.pod:6840
15944 #, no-wrap
15945 msgid ""
15946 " int\n"
15947 " guestfs_wc_l (guestfs_h *g,\n"
15948 "               const char *path);\n"
15949 "\n"
15950 msgstr ""
15951
15952 # type: textblock
15953 #: ../src/guestfs-actions.pod:6844 ../fish/guestfish-actions.pod:4539
15954 msgid ""
15955 "This command counts the lines in a file, using the C<wc -l> external command."
15956 msgstr ""
15957
15958 # type: =head2
15959 #: ../src/guestfs-actions.pod:6851
15960 msgid "guestfs_wc_w"
15961 msgstr ""
15962
15963 # type: verbatim
15964 #: ../src/guestfs-actions.pod:6853
15965 #, no-wrap
15966 msgid ""
15967 " int\n"
15968 " guestfs_wc_w (guestfs_h *g,\n"
15969 "               const char *path);\n"
15970 "\n"
15971 msgstr ""
15972
15973 # type: textblock
15974 #: ../src/guestfs-actions.pod:6857 ../fish/guestfish-actions.pod:4546
15975 msgid ""
15976 "This command counts the words in a file, using the C<wc -w> external command."
15977 msgstr ""
15978
15979 # type: =head2
15980 #: ../src/guestfs-actions.pod:6864
15981 msgid "guestfs_write"
15982 msgstr ""
15983
15984 # type: verbatim
15985 #: ../src/guestfs-actions.pod:6866
15986 #, no-wrap
15987 msgid ""
15988 " int\n"
15989 " guestfs_write (guestfs_h *g,\n"
15990 "                const char *path,\n"
15991 "                const char *content,\n"
15992 "                size_t content_size);\n"
15993 "\n"
15994 msgstr ""
15995
15996 # type: textblock
15997 #: ../src/guestfs-actions.pod:6872 ../fish/guestfish-actions.pod:4553
15998 msgid ""
15999 "This call creates a file called C<path>.  The content of the file is the "
16000 "string C<content> (which can contain any 8 bit data)."
16001 msgstr ""
16002
16003 # type: =head2
16004 #: ../src/guestfs-actions.pod:6882
16005 msgid "guestfs_write_file"
16006 msgstr ""
16007
16008 # type: verbatim
16009 #: ../src/guestfs-actions.pod:6884
16010 #, no-wrap
16011 msgid ""
16012 " int\n"
16013 " guestfs_write_file (guestfs_h *g,\n"
16014 "                     const char *path,\n"
16015 "                     const char *content,\n"
16016 "                     int size);\n"
16017 "\n"
16018 msgstr ""
16019
16020 # type: textblock
16021 #: ../src/guestfs-actions.pod:6890 ../fish/guestfish-actions.pod:4563
16022 msgid ""
16023 "This call creates a file called C<path>.  The contents of the file is the "
16024 "string C<content> (which can contain any 8 bit data), with length C<size>."
16025 msgstr ""
16026
16027 # type: textblock
16028 #: ../src/guestfs-actions.pod:6894 ../fish/guestfish-actions.pod:4567
16029 msgid ""
16030 "As a special case, if C<size> is C<0> then the length is calculated using "
16031 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16032 msgstr ""
16033
16034 # type: textblock
16035 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4571
16036 msgid ""
16037 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16038 "I<not> work, even if the length is specified."
16039 msgstr ""
16040
16041 # type: textblock
16042 #: ../src/guestfs-actions.pod:6906 ../fish/guestfish-actions.pod:4577
16043 msgid ""
16044 "This function is deprecated.  In new code, use the C<write> call instead."
16045 msgstr ""
16046
16047 # type: =head2
16048 #: ../src/guestfs-actions.pod:6915
16049 msgid "guestfs_zegrep"
16050 msgstr ""
16051
16052 # type: verbatim
16053 #: ../src/guestfs-actions.pod:6917
16054 #, no-wrap
16055 msgid ""
16056 " char **\n"
16057 " guestfs_zegrep (guestfs_h *g,\n"
16058 "                 const char *regex,\n"
16059 "                 const char *path);\n"
16060 "\n"
16061 msgstr ""
16062
16063 # type: textblock
16064 #: ../src/guestfs-actions.pod:6922 ../fish/guestfish-actions.pod:4588
16065 msgid ""
16066 "This calls the external C<zegrep> program and returns the matching lines."
16067 msgstr ""
16068
16069 # type: =head2
16070 #: ../src/guestfs-actions.pod:6934
16071 msgid "guestfs_zegrepi"
16072 msgstr ""
16073
16074 # type: verbatim
16075 #: ../src/guestfs-actions.pod:6936
16076 #, no-wrap
16077 msgid ""
16078 " char **\n"
16079 " guestfs_zegrepi (guestfs_h *g,\n"
16080 "                  const char *regex,\n"
16081 "                  const char *path);\n"
16082 "\n"
16083 msgstr ""
16084
16085 # type: textblock
16086 #: ../src/guestfs-actions.pod:6941 ../fish/guestfish-actions.pod:4598
16087 msgid ""
16088 "This calls the external C<zegrep -i> program and returns the matching lines."
16089 msgstr ""
16090
16091 # type: =head2
16092 #: ../src/guestfs-actions.pod:6953
16093 msgid "guestfs_zero"
16094 msgstr ""
16095
16096 # type: verbatim
16097 #: ../src/guestfs-actions.pod:6955
16098 #, no-wrap
16099 msgid ""
16100 " int\n"
16101 " guestfs_zero (guestfs_h *g,\n"
16102 "               const char *device);\n"
16103 "\n"
16104 msgstr ""
16105
16106 # type: textblock
16107 #: ../src/guestfs-actions.pod:6959 ../fish/guestfish-actions.pod:4608
16108 msgid "This command writes zeroes over the first few blocks of C<device>."
16109 msgstr ""
16110
16111 # type: textblock
16112 #: ../src/guestfs-actions.pod:6961 ../fish/guestfish-actions.pod:4610
16113 msgid ""
16114 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16115 "securely wipe the device).  It should be sufficient to remove any partition "
16116 "tables, filesystem superblocks and so on."
16117 msgstr ""
16118
16119 # type: textblock
16120 #: ../src/guestfs-actions.pod:6965
16121 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
16122 msgstr ""
16123
16124 # type: =head2
16125 #: ../src/guestfs-actions.pod:6976
16126 msgid "guestfs_zero_device"
16127 msgstr ""
16128
16129 # type: verbatim
16130 #: ../src/guestfs-actions.pod:6978
16131 #, no-wrap
16132 msgid ""
16133 " int\n"
16134 " guestfs_zero_device (guestfs_h *g,\n"
16135 "                      const char *device);\n"
16136 "\n"
16137 msgstr ""
16138
16139 # type: textblock
16140 #: ../src/guestfs-actions.pod:6982
16141 msgid ""
16142 "This command writes zeroes over the entire C<device>.  Compare with "
16143 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16144 msgstr ""
16145
16146 # type: textblock
16147 #: ../src/guestfs-actions.pod:6996
16148 msgid "(Added in 1.3.1)"
16149 msgstr ""
16150
16151 # type: =head2
16152 #: ../src/guestfs-actions.pod:6998
16153 msgid "guestfs_zerofree"
16154 msgstr ""
16155
16156 # type: verbatim
16157 #: ../src/guestfs-actions.pod:7000
16158 #, no-wrap
16159 msgid ""
16160 " int\n"
16161 " guestfs_zerofree (guestfs_h *g,\n"
16162 "                   const char *device);\n"
16163 "\n"
16164 msgstr ""
16165
16166 # type: textblock
16167 #: ../src/guestfs-actions.pod:7004 ../fish/guestfish-actions.pod:4631
16168 msgid ""
16169 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16170 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16171 "possible to compress the filesystem more effectively."
16172 msgstr ""
16173
16174 # type: textblock
16175 #: ../src/guestfs-actions.pod:7009 ../fish/guestfish-actions.pod:4636
16176 msgid "You should B<not> run this program if the filesystem is mounted."
16177 msgstr ""
16178
16179 # type: textblock
16180 #: ../src/guestfs-actions.pod:7012 ../fish/guestfish-actions.pod:4639
16181 msgid ""
16182 "It is possible that using this program can damage the filesystem or data on "
16183 "the filesystem."
16184 msgstr ""
16185
16186 # type: =head2
16187 #: ../src/guestfs-actions.pod:7019
16188 msgid "guestfs_zfgrep"
16189 msgstr ""
16190
16191 # type: verbatim
16192 #: ../src/guestfs-actions.pod:7021
16193 #, no-wrap
16194 msgid ""
16195 " char **\n"
16196 " guestfs_zfgrep (guestfs_h *g,\n"
16197 "                 const char *pattern,\n"
16198 "                 const char *path);\n"
16199 "\n"
16200 msgstr ""
16201
16202 # type: textblock
16203 #: ../src/guestfs-actions.pod:7026 ../fish/guestfish-actions.pod:4646
16204 msgid ""
16205 "This calls the external C<zfgrep> program and returns the matching lines."
16206 msgstr ""
16207
16208 # type: =head2
16209 #: ../src/guestfs-actions.pod:7038
16210 msgid "guestfs_zfgrepi"
16211 msgstr ""
16212
16213 # type: verbatim
16214 #: ../src/guestfs-actions.pod:7040
16215 #, no-wrap
16216 msgid ""
16217 " char **\n"
16218 " guestfs_zfgrepi (guestfs_h *g,\n"
16219 "                  const char *pattern,\n"
16220 "                  const char *path);\n"
16221 "\n"
16222 msgstr ""
16223
16224 # type: textblock
16225 #: ../src/guestfs-actions.pod:7045 ../fish/guestfish-actions.pod:4656
16226 msgid ""
16227 "This calls the external C<zfgrep -i> program and returns the matching lines."
16228 msgstr ""
16229
16230 # type: =head2
16231 #: ../src/guestfs-actions.pod:7057
16232 msgid "guestfs_zfile"
16233 msgstr ""
16234
16235 # type: verbatim
16236 #: ../src/guestfs-actions.pod:7059
16237 #, no-wrap
16238 msgid ""
16239 " char *\n"
16240 " guestfs_zfile (guestfs_h *g,\n"
16241 "                const char *meth,\n"
16242 "                const char *path);\n"
16243 "\n"
16244 msgstr ""
16245
16246 # type: textblock
16247 #: ../src/guestfs-actions.pod:7064 ../fish/guestfish-actions.pod:4666
16248 msgid ""
16249 "This command runs C<file> after first decompressing C<path> using C<method>."
16250 msgstr ""
16251
16252 # type: textblock
16253 #: ../src/guestfs-actions.pod:7067 ../fish/guestfish-actions.pod:4669
16254 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16255 msgstr ""
16256
16257 # type: textblock
16258 #: ../src/guestfs-actions.pod:7069
16259 msgid ""
16260 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16261 "files."
16262 msgstr ""
16263
16264 # type: textblock
16265 #: ../src/guestfs-actions.pod:7075 ../fish/guestfish-actions.pod:4674
16266 msgid ""
16267 "This function is deprecated.  In new code, use the C<file> call instead."
16268 msgstr ""
16269
16270 # type: =head2
16271 #: ../src/guestfs-actions.pod:7084
16272 msgid "guestfs_zgrep"
16273 msgstr ""
16274
16275 # type: verbatim
16276 #: ../src/guestfs-actions.pod:7086
16277 #, no-wrap
16278 msgid ""
16279 " char **\n"
16280 " guestfs_zgrep (guestfs_h *g,\n"
16281 "                const char *regex,\n"
16282 "                const char *path);\n"
16283 "\n"
16284 msgstr ""
16285
16286 # type: textblock
16287 #: ../src/guestfs-actions.pod:7091 ../fish/guestfish-actions.pod:4685
16288 msgid ""
16289 "This calls the external C<zgrep> program and returns the matching lines."
16290 msgstr ""
16291
16292 # type: =head2
16293 #: ../src/guestfs-actions.pod:7103
16294 msgid "guestfs_zgrepi"
16295 msgstr ""
16296
16297 # type: verbatim
16298 #: ../src/guestfs-actions.pod:7105
16299 #, no-wrap
16300 msgid ""
16301 " char **\n"
16302 " guestfs_zgrepi (guestfs_h *g,\n"
16303 "                 const char *regex,\n"
16304 "                 const char *path);\n"
16305 "\n"
16306 msgstr ""
16307
16308 # type: textblock
16309 #: ../src/guestfs-actions.pod:7110 ../fish/guestfish-actions.pod:4695
16310 msgid ""
16311 "This calls the external C<zgrep -i> program and returns the matching lines."
16312 msgstr ""
16313
16314 # type: =item
16315 #: ../src/guestfs-availability.pod:3
16316 msgid "B<augeas>"
16317 msgstr ""
16318
16319 # type: textblock
16320 #: ../src/guestfs-availability.pod:5
16321 msgid ""
16322 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16323 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16324 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16325 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16326 "L</guestfs_aug_save> L</guestfs_aug_set>"
16327 msgstr ""
16328
16329 # type: =item
16330 #: ../src/guestfs-availability.pod:21
16331 msgid "B<inotify>"
16332 msgstr ""
16333
16334 # type: textblock
16335 #: ../src/guestfs-availability.pod:23
16336 msgid ""
16337 "The following functions: L</guestfs_inotify_add_watch> L</"
16338 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16339 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16340 msgstr ""
16341
16342 # type: =item
16343 #: ../src/guestfs-availability.pod:31
16344 msgid "B<linuxfsuuid>"
16345 msgstr ""
16346
16347 # type: textblock
16348 #: ../src/guestfs-availability.pod:33
16349 msgid ""
16350 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16351 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16352 msgstr ""
16353
16354 # type: =item
16355 #: ../src/guestfs-availability.pod:40
16356 msgid "B<linuxmodules>"
16357 msgstr ""
16358
16359 # type: textblock
16360 #: ../src/guestfs-availability.pod:42
16361 msgid "The following functions: L</guestfs_modprobe>"
16362 msgstr ""
16363
16364 # type: =item
16365 #: ../src/guestfs-availability.pod:45
16366 msgid "B<linuxxattrs>"
16367 msgstr ""
16368
16369 # type: textblock
16370 #: ../src/guestfs-availability.pod:47
16371 msgid ""
16372 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> L</"
16373 "guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</"
16374 "guestfs_removexattr> L</guestfs_setxattr>"
16375 msgstr ""
16376
16377 # type: =item
16378 #: ../src/guestfs-availability.pod:56
16379 msgid "B<luks>"
16380 msgstr ""
16381
16382 # type: textblock
16383 #: ../src/guestfs-availability.pod:58
16384 msgid ""
16385 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16386 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16387 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16388 msgstr ""
16389
16390 # type: =item
16391 #: ../src/guestfs-availability.pod:67
16392 msgid "B<lvm2>"
16393 msgstr ""
16394
16395 # type: textblock
16396 #: ../src/guestfs-availability.pod:69
16397 msgid ""
16398 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16399 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16400 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16401 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16402 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16403 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16404 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16405 msgstr ""
16406
16407 # type: =item
16408 #: ../src/guestfs-availability.pod:92
16409 msgid "B<mknod>"
16410 msgstr ""
16411
16412 # type: textblock
16413 #: ../src/guestfs-availability.pod:94
16414 msgid ""
16415 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16416 "guestfs_mknod_b> L</guestfs_mknod_c>"
16417 msgstr ""
16418
16419 # type: =item
16420 #: ../src/guestfs-availability.pod:100
16421 msgid "B<ntfs3g>"
16422 msgstr ""
16423
16424 # type: textblock
16425 #: ../src/guestfs-availability.pod:102
16426 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16427 msgstr ""
16428
16429 # type: =item
16430 #: ../src/guestfs-availability.pod:105
16431 msgid "B<ntfsprogs>"
16432 msgstr ""
16433
16434 # type: textblock
16435 #: ../src/guestfs-availability.pod:107
16436 msgid ""
16437 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16438 msgstr ""
16439
16440 # type: =item
16441 #: ../src/guestfs-availability.pod:111
16442 msgid "B<realpath>"
16443 msgstr ""
16444
16445 # type: textblock
16446 #: ../src/guestfs-availability.pod:113
16447 msgid "The following functions: L</guestfs_realpath>"
16448 msgstr ""
16449
16450 # type: =item
16451 #: ../src/guestfs-availability.pod:116
16452 msgid "B<scrub>"
16453 msgstr ""
16454
16455 # type: textblock
16456 #: ../src/guestfs-availability.pod:118
16457 msgid ""
16458 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16459 "guestfs_scrub_freespace>"
16460 msgstr ""
16461
16462 # type: =item
16463 #: ../src/guestfs-availability.pod:123
16464 msgid "B<selinux>"
16465 msgstr ""
16466
16467 # type: textblock
16468 #: ../src/guestfs-availability.pod:125
16469 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16470 msgstr ""
16471
16472 # type: =item
16473 #: ../src/guestfs-availability.pod:129
16474 msgid "B<xz>"
16475 msgstr ""
16476
16477 # type: textblock
16478 #: ../src/guestfs-availability.pod:131
16479 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16480 msgstr ""
16481
16482 # type: =item
16483 #: ../src/guestfs-availability.pod:135
16484 msgid "B<zerofree>"
16485 msgstr ""
16486
16487 # type: textblock
16488 #: ../src/guestfs-availability.pod:137
16489 msgid "The following functions: L</guestfs_zerofree>"
16490 msgstr ""
16491
16492 # type: =head2
16493 #: ../src/guestfs-structs.pod:1
16494 msgid "guestfs_int_bool"
16495 msgstr ""
16496
16497 # type: verbatim
16498 #: ../src/guestfs-structs.pod:3
16499 #, no-wrap
16500 msgid ""
16501 " struct guestfs_int_bool {\n"
16502 "   int32_t i;\n"
16503 "   int32_t b;\n"
16504 " };\n"
16505 " \n"
16506 msgstr ""
16507
16508 # type: verbatim
16509 #: ../src/guestfs-structs.pod:8
16510 #, no-wrap
16511 msgid ""
16512 " struct guestfs_int_bool_list {\n"
16513 "   uint32_t len; /* Number of elements in list. */\n"
16514 "   struct guestfs_int_bool *val; /* Elements. */\n"
16515 " };\n"
16516 " \n"
16517 msgstr ""
16518
16519 # type: verbatim
16520 #: ../src/guestfs-structs.pod:13
16521 #, no-wrap
16522 msgid ""
16523 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16524 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16525 "\n"
16526 msgstr ""
16527
16528 # type: =head2
16529 #: ../src/guestfs-structs.pod:16
16530 msgid "guestfs_lvm_pv"
16531 msgstr ""
16532
16533 # type: verbatim
16534 #: ../src/guestfs-structs.pod:18
16535 #, no-wrap
16536 msgid ""
16537 " struct guestfs_lvm_pv {\n"
16538 "   char *pv_name;\n"
16539 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16540 "   char pv_uuid[32];\n"
16541 "   char *pv_fmt;\n"
16542 "   uint64_t pv_size;\n"
16543 "   uint64_t dev_size;\n"
16544 "   uint64_t pv_free;\n"
16545 "   uint64_t pv_used;\n"
16546 "   char *pv_attr;\n"
16547 "   int64_t pv_pe_count;\n"
16548 "   int64_t pv_pe_alloc_count;\n"
16549 "   char *pv_tags;\n"
16550 "   uint64_t pe_start;\n"
16551 "   int64_t pv_mda_count;\n"
16552 "   uint64_t pv_mda_free;\n"
16553 " };\n"
16554 " \n"
16555 msgstr ""
16556
16557 # type: verbatim
16558 #: ../src/guestfs-structs.pod:36
16559 #, no-wrap
16560 msgid ""
16561 " struct guestfs_lvm_pv_list {\n"
16562 "   uint32_t len; /* Number of elements in list. */\n"
16563 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16564 " };\n"
16565 " \n"
16566 msgstr ""
16567
16568 # type: verbatim
16569 #: ../src/guestfs-structs.pod:41
16570 #, no-wrap
16571 msgid ""
16572 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16573 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16574 "\n"
16575 msgstr ""
16576
16577 # type: =head2
16578 #: ../src/guestfs-structs.pod:44
16579 msgid "guestfs_lvm_vg"
16580 msgstr ""
16581
16582 # type: verbatim
16583 #: ../src/guestfs-structs.pod:46
16584 #, no-wrap
16585 msgid ""
16586 " struct guestfs_lvm_vg {\n"
16587 "   char *vg_name;\n"
16588 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16589 "   char vg_uuid[32];\n"
16590 "   char *vg_fmt;\n"
16591 "   char *vg_attr;\n"
16592 "   uint64_t vg_size;\n"
16593 "   uint64_t vg_free;\n"
16594 "   char *vg_sysid;\n"
16595 "   uint64_t vg_extent_size;\n"
16596 "   int64_t vg_extent_count;\n"
16597 "   int64_t vg_free_count;\n"
16598 "   int64_t max_lv;\n"
16599 "   int64_t max_pv;\n"
16600 "   int64_t pv_count;\n"
16601 "   int64_t lv_count;\n"
16602 "   int64_t snap_count;\n"
16603 "   int64_t vg_seqno;\n"
16604 "   char *vg_tags;\n"
16605 "   int64_t vg_mda_count;\n"
16606 "   uint64_t vg_mda_free;\n"
16607 " };\n"
16608 " \n"
16609 msgstr ""
16610
16611 # type: verbatim
16612 #: ../src/guestfs-structs.pod:69
16613 #, no-wrap
16614 msgid ""
16615 " struct guestfs_lvm_vg_list {\n"
16616 "   uint32_t len; /* Number of elements in list. */\n"
16617 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16618 " };\n"
16619 " \n"
16620 msgstr ""
16621
16622 # type: verbatim
16623 #: ../src/guestfs-structs.pod:74
16624 #, no-wrap
16625 msgid ""
16626 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16627 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16628 "\n"
16629 msgstr ""
16630
16631 # type: =head2
16632 #: ../src/guestfs-structs.pod:77
16633 msgid "guestfs_lvm_lv"
16634 msgstr ""
16635
16636 # type: verbatim
16637 #: ../src/guestfs-structs.pod:79
16638 #, no-wrap
16639 msgid ""
16640 " struct guestfs_lvm_lv {\n"
16641 "   char *lv_name;\n"
16642 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16643 "   char lv_uuid[32];\n"
16644 "   char *lv_attr;\n"
16645 "   int64_t lv_major;\n"
16646 "   int64_t lv_minor;\n"
16647 "   int64_t lv_kernel_major;\n"
16648 "   int64_t lv_kernel_minor;\n"
16649 "   uint64_t lv_size;\n"
16650 "   int64_t seg_count;\n"
16651 "   char *origin;\n"
16652 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16653 "   float snap_percent;\n"
16654 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16655 "   float copy_percent;\n"
16656 "   char *move_pv;\n"
16657 "   char *lv_tags;\n"
16658 "   char *mirror_log;\n"
16659 "   char *modules;\n"
16660 " };\n"
16661 " \n"
16662 msgstr ""
16663
16664 # type: verbatim
16665 #: ../src/guestfs-structs.pod:101
16666 #, no-wrap
16667 msgid ""
16668 " struct guestfs_lvm_lv_list {\n"
16669 "   uint32_t len; /* Number of elements in list. */\n"
16670 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16671 " };\n"
16672 " \n"
16673 msgstr ""
16674
16675 # type: verbatim
16676 #: ../src/guestfs-structs.pod:106
16677 #, no-wrap
16678 msgid ""
16679 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16680 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16681 "\n"
16682 msgstr ""
16683
16684 # type: verbatim
16685 #: ../src/guestfs-structs.pod:111
16686 #, no-wrap
16687 msgid ""
16688 " struct guestfs_stat {\n"
16689 "   int64_t dev;\n"
16690 "   int64_t ino;\n"
16691 "   int64_t mode;\n"
16692 "   int64_t nlink;\n"
16693 "   int64_t uid;\n"
16694 "   int64_t gid;\n"
16695 "   int64_t rdev;\n"
16696 "   int64_t size;\n"
16697 "   int64_t blksize;\n"
16698 "   int64_t blocks;\n"
16699 "   int64_t atime;\n"
16700 "   int64_t mtime;\n"
16701 "   int64_t ctime;\n"
16702 " };\n"
16703 " \n"
16704 msgstr ""
16705
16706 # type: verbatim
16707 #: ../src/guestfs-structs.pod:127
16708 #, no-wrap
16709 msgid ""
16710 " struct guestfs_stat_list {\n"
16711 "   uint32_t len; /* Number of elements in list. */\n"
16712 "   struct guestfs_stat *val; /* Elements. */\n"
16713 " };\n"
16714 " \n"
16715 msgstr ""
16716
16717 # type: verbatim
16718 #: ../src/guestfs-structs.pod:132
16719 #, no-wrap
16720 msgid ""
16721 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16722 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16723 "\n"
16724 msgstr ""
16725
16726 # type: verbatim
16727 #: ../src/guestfs-structs.pod:137
16728 #, no-wrap
16729 msgid ""
16730 " struct guestfs_statvfs {\n"
16731 "   int64_t bsize;\n"
16732 "   int64_t frsize;\n"
16733 "   int64_t blocks;\n"
16734 "   int64_t bfree;\n"
16735 "   int64_t bavail;\n"
16736 "   int64_t files;\n"
16737 "   int64_t ffree;\n"
16738 "   int64_t favail;\n"
16739 "   int64_t fsid;\n"
16740 "   int64_t flag;\n"
16741 "   int64_t namemax;\n"
16742 " };\n"
16743 " \n"
16744 msgstr ""
16745
16746 # type: verbatim
16747 #: ../src/guestfs-structs.pod:151
16748 #, no-wrap
16749 msgid ""
16750 " struct guestfs_statvfs_list {\n"
16751 "   uint32_t len; /* Number of elements in list. */\n"
16752 "   struct guestfs_statvfs *val; /* Elements. */\n"
16753 " };\n"
16754 " \n"
16755 msgstr ""
16756
16757 # type: verbatim
16758 #: ../src/guestfs-structs.pod:156
16759 #, no-wrap
16760 msgid ""
16761 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16762 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16763 "\n"
16764 msgstr ""
16765
16766 # type: =head2
16767 #: ../src/guestfs-structs.pod:159
16768 msgid "guestfs_dirent"
16769 msgstr ""
16770
16771 # type: verbatim
16772 #: ../src/guestfs-structs.pod:161
16773 #, no-wrap
16774 msgid ""
16775 " struct guestfs_dirent {\n"
16776 "   int64_t ino;\n"
16777 "   char ftyp;\n"
16778 "   char *name;\n"
16779 " };\n"
16780 " \n"
16781 msgstr ""
16782
16783 # type: verbatim
16784 #: ../src/guestfs-structs.pod:167
16785 #, no-wrap
16786 msgid ""
16787 " struct guestfs_dirent_list {\n"
16788 "   uint32_t len; /* Number of elements in list. */\n"
16789 "   struct guestfs_dirent *val; /* Elements. */\n"
16790 " };\n"
16791 " \n"
16792 msgstr ""
16793
16794 # type: verbatim
16795 #: ../src/guestfs-structs.pod:172
16796 #, no-wrap
16797 msgid ""
16798 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16799 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16800 "\n"
16801 msgstr ""
16802
16803 # type: verbatim
16804 #: ../src/guestfs-structs.pod:177
16805 #, no-wrap
16806 msgid ""
16807 " struct guestfs_version {\n"
16808 "   int64_t major;\n"
16809 "   int64_t minor;\n"
16810 "   int64_t release;\n"
16811 "   char *extra;\n"
16812 " };\n"
16813 " \n"
16814 msgstr ""
16815
16816 # type: verbatim
16817 #: ../src/guestfs-structs.pod:184
16818 #, no-wrap
16819 msgid ""
16820 " struct guestfs_version_list {\n"
16821 "   uint32_t len; /* Number of elements in list. */\n"
16822 "   struct guestfs_version *val; /* Elements. */\n"
16823 " };\n"
16824 " \n"
16825 msgstr ""
16826
16827 # type: verbatim
16828 #: ../src/guestfs-structs.pod:189
16829 #, no-wrap
16830 msgid ""
16831 " void guestfs_free_version (struct guestfs_free_version *);\n"
16832 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16833 "\n"
16834 msgstr ""
16835
16836 # type: =head2
16837 #: ../src/guestfs-structs.pod:192
16838 msgid "guestfs_xattr"
16839 msgstr ""
16840
16841 # type: verbatim
16842 #: ../src/guestfs-structs.pod:194
16843 #, no-wrap
16844 msgid ""
16845 " struct guestfs_xattr {\n"
16846 "   char *attrname;\n"
16847 "   /* The next two fields describe a byte array. */\n"
16848 "   uint32_t attrval_len;\n"
16849 "   char *attrval;\n"
16850 " };\n"
16851 " \n"
16852 msgstr ""
16853
16854 # type: verbatim
16855 #: ../src/guestfs-structs.pod:201
16856 #, no-wrap
16857 msgid ""
16858 " struct guestfs_xattr_list {\n"
16859 "   uint32_t len; /* Number of elements in list. */\n"
16860 "   struct guestfs_xattr *val; /* Elements. */\n"
16861 " };\n"
16862 " \n"
16863 msgstr ""
16864
16865 # type: verbatim
16866 #: ../src/guestfs-structs.pod:206
16867 #, no-wrap
16868 msgid ""
16869 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16870 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16871 "\n"
16872 msgstr ""
16873
16874 # type: =head2
16875 #: ../src/guestfs-structs.pod:209
16876 msgid "guestfs_inotify_event"
16877 msgstr ""
16878
16879 # type: verbatim
16880 #: ../src/guestfs-structs.pod:211
16881 #, no-wrap
16882 msgid ""
16883 " struct guestfs_inotify_event {\n"
16884 "   int64_t in_wd;\n"
16885 "   uint32_t in_mask;\n"
16886 "   uint32_t in_cookie;\n"
16887 "   char *in_name;\n"
16888 " };\n"
16889 " \n"
16890 msgstr ""
16891
16892 # type: verbatim
16893 #: ../src/guestfs-structs.pod:218
16894 #, no-wrap
16895 msgid ""
16896 " struct guestfs_inotify_event_list {\n"
16897 "   uint32_t len; /* Number of elements in list. */\n"
16898 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16899 " };\n"
16900 " \n"
16901 msgstr ""
16902
16903 # type: verbatim
16904 #: ../src/guestfs-structs.pod:223
16905 #, no-wrap
16906 msgid ""
16907 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16908 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
16909 "\n"
16910 msgstr ""
16911
16912 # type: =head2
16913 #: ../src/guestfs-structs.pod:226
16914 msgid "guestfs_partition"
16915 msgstr ""
16916
16917 # type: verbatim
16918 #: ../src/guestfs-structs.pod:228
16919 #, no-wrap
16920 msgid ""
16921 " struct guestfs_partition {\n"
16922 "   int32_t part_num;\n"
16923 "   uint64_t part_start;\n"
16924 "   uint64_t part_end;\n"
16925 "   uint64_t part_size;\n"
16926 " };\n"
16927 " \n"
16928 msgstr ""
16929
16930 # type: verbatim
16931 #: ../src/guestfs-structs.pod:235
16932 #, no-wrap
16933 msgid ""
16934 " struct guestfs_partition_list {\n"
16935 "   uint32_t len; /* Number of elements in list. */\n"
16936 "   struct guestfs_partition *val; /* Elements. */\n"
16937 " };\n"
16938 " \n"
16939 msgstr ""
16940
16941 # type: verbatim
16942 #: ../src/guestfs-structs.pod:240
16943 #, no-wrap
16944 msgid ""
16945 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16946 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16947 "\n"
16948 msgstr ""
16949
16950 # type: =head2
16951 #: ../src/guestfs-structs.pod:243
16952 msgid "guestfs_application"
16953 msgstr ""
16954
16955 # type: verbatim
16956 #: ../src/guestfs-structs.pod:245
16957 #, no-wrap
16958 msgid ""
16959 " struct guestfs_application {\n"
16960 "   char *app_name;\n"
16961 "   char *app_display_name;\n"
16962 "   int32_t app_epoch;\n"
16963 "   char *app_version;\n"
16964 "   char *app_release;\n"
16965 "   char *app_install_path;\n"
16966 "   char *app_trans_path;\n"
16967 "   char *app_publisher;\n"
16968 "   char *app_url;\n"
16969 "   char *app_source_package;\n"
16970 "   char *app_summary;\n"
16971 "   char *app_description;\n"
16972 " };\n"
16973 " \n"
16974 msgstr ""
16975
16976 # type: verbatim
16977 #: ../src/guestfs-structs.pod:260
16978 #, no-wrap
16979 msgid ""
16980 " struct guestfs_application_list {\n"
16981 "   uint32_t len; /* Number of elements in list. */\n"
16982 "   struct guestfs_application *val; /* Elements. */\n"
16983 " };\n"
16984 " \n"
16985 msgstr ""
16986
16987 # type: verbatim
16988 #: ../src/guestfs-structs.pod:265
16989 #, no-wrap
16990 msgid ""
16991 " void guestfs_free_application (struct guestfs_free_application *);\n"
16992 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
16993 "\n"
16994 msgstr ""
16995
16996 # type: textblock
16997 #: ../fish/guestfish.pod:5
16998 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16999 msgstr ""
17000
17001 # type: verbatim
17002 #: ../fish/guestfish.pod:9
17003 #, no-wrap
17004 msgid ""
17005 " guestfish [--options] [commands]\n"
17006 "\n"
17007 msgstr ""
17008
17009 # type: verbatim
17010 #: ../fish/guestfish.pod:11
17011 #, no-wrap
17012 msgid ""
17013 " guestfish\n"
17014 "\n"
17015 msgstr ""
17016
17017 # type: verbatim
17018 #: ../fish/guestfish.pod:13
17019 #, no-wrap
17020 msgid ""
17021 " guestfish [--ro|--rw] -a disk.img\n"
17022 "\n"
17023 msgstr ""
17024
17025 # type: verbatim
17026 #: ../fish/guestfish.pod:15
17027 #, no-wrap
17028 msgid ""
17029 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17030 "\n"
17031 msgstr ""
17032
17033 # type: verbatim
17034 #: ../fish/guestfish.pod:17
17035 #, no-wrap
17036 msgid ""
17037 " guestfish -d libvirt-domain\n"
17038 "\n"
17039 msgstr ""
17040
17041 # type: verbatim
17042 #: ../fish/guestfish.pod:19
17043 #, no-wrap
17044 msgid ""
17045 " guestfish [--ro|--rw] -a disk.img -i\n"
17046 "\n"
17047 msgstr ""
17048
17049 # type: verbatim
17050 #: ../fish/guestfish.pod:21
17051 #, no-wrap
17052 msgid ""
17053 " guestfish -d libvirt-domain -i\n"
17054 "\n"
17055 msgstr ""
17056
17057 # type: =head1
17058 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
17059 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
17060 msgid "WARNING"
17061 msgstr ""
17062
17063 # type: textblock
17064 #: ../fish/guestfish.pod:25
17065 msgid ""
17066 "Using guestfish in read/write mode on live virtual machines can be "
17067 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17068 "option to use guestfish safely if the disk image or virtual machine might be "
17069 "live."
17070 msgstr ""
17071
17072 # type: textblock
17073 #: ../fish/guestfish.pod:32
17074 msgid ""
17075 "Guestfish is a shell and command-line tool for examining and modifying "
17076 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17077 "functionality of the guestfs API, see L<guestfs(3)>."
17078 msgstr ""
17079
17080 # type: textblock
17081 #: ../fish/guestfish.pod:36
17082 msgid ""
17083 "Guestfish gives you structured access to the libguestfs API, from shell "
17084 "scripts or the command line or interactively.  If you want to rescue a "
17085 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17086 "command."
17087 msgstr ""
17088
17089 # type: =head1
17090 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:847
17091 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
17092 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
17093 msgid "EXAMPLES"
17094 msgstr ""
17095
17096 # type: =head2
17097 #: ../fish/guestfish.pod:43
17098 msgid "As an interactive shell"
17099 msgstr ""
17100
17101 # type: verbatim
17102 #: ../fish/guestfish.pod:45
17103 #, no-wrap
17104 msgid ""
17105 " $ guestfish\n"
17106 " \n"
17107 msgstr ""
17108
17109 # type: verbatim
17110 #: ../fish/guestfish.pod:47
17111 #, no-wrap
17112 msgid ""
17113 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17114 " editing virtual machine filesystems.\n"
17115 " \n"
17116 msgstr ""
17117
17118 # type: verbatim
17119 #: ../fish/guestfish.pod:50
17120 #, no-wrap
17121 msgid ""
17122 " Type: 'help' for a list of commands\n"
17123 "       'man' to read the manual\n"
17124 "       'quit' to quit the shell\n"
17125 " \n"
17126 msgstr ""
17127
17128 # type: verbatim
17129 #: ../fish/guestfish.pod:54
17130 #, no-wrap
17131 msgid ""
17132 " ><fs> add-ro disk.img\n"
17133 " ><fs> run\n"
17134 " ><fs> list-filesystems\n"
17135 " /dev/sda1: ext4\n"
17136 " /dev/vg_guest/lv_root: ext4\n"
17137 " /dev/vg_guest/lv_swap: swap\n"
17138 " ><fs> mount /dev/vg_guest/lv_root /\n"
17139 " ><fs> cat /etc/fstab\n"
17140 " # /etc/fstab\n"
17141 " # Created by anaconda\n"
17142 " [...]\n"
17143 " ><fs> exit\n"
17144 "\n"
17145 msgstr ""
17146
17147 # type: =head2
17148 #: ../fish/guestfish.pod:67
17149 msgid "From shell scripts"
17150 msgstr ""
17151
17152 # type: textblock
17153 #: ../fish/guestfish.pod:69
17154 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17155 msgstr ""
17156
17157 # type: verbatim
17158 #: ../fish/guestfish.pod:71
17159 #, no-wrap
17160 msgid ""
17161 " guestfish <<_EOF_\n"
17162 " add disk.img\n"
17163 " run\n"
17164 " mount /dev/vg_guest/lv_root /\n"
17165 " write /etc/motd \"Welcome, new users\"\n"
17166 " _EOF_\n"
17167 "\n"
17168 msgstr ""
17169
17170 # type: textblock
17171 #: ../fish/guestfish.pod:78
17172 msgid "List the LVM logical volumes in a disk image:"
17173 msgstr ""
17174
17175 # type: verbatim
17176 #: ../fish/guestfish.pod:80
17177 #, no-wrap
17178 msgid ""
17179 " guestfish -a disk.img --ro <<_EOF_\n"
17180 " run\n"
17181 " lvs\n"
17182 " _EOF_\n"
17183 "\n"
17184 msgstr ""
17185
17186 # type: textblock
17187 #: ../fish/guestfish.pod:85
17188 msgid "List all the filesystems in a disk image:"
17189 msgstr ""
17190
17191 # type: verbatim
17192 #: ../fish/guestfish.pod:87
17193 #, no-wrap
17194 msgid ""
17195 " guestfish -a disk.img --ro <<_EOF_\n"
17196 " run\n"
17197 " list-filesystems\n"
17198 " _EOF_\n"
17199 "\n"
17200 msgstr ""
17201
17202 # type: =head2
17203 #: ../fish/guestfish.pod:92
17204 msgid "On one command line"
17205 msgstr ""
17206
17207 # type: textblock
17208 #: ../fish/guestfish.pod:94
17209 msgid "Update C</etc/resolv.conf> in a guest:"
17210 msgstr ""
17211
17212 # type: verbatim
17213 #: ../fish/guestfish.pod:96
17214 #, no-wrap
17215 msgid ""
17216 " guestfish \\\n"
17217 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17218 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17219 "\n"
17220 msgstr ""
17221
17222 # type: textblock
17223 #: ../fish/guestfish.pod:100
17224 msgid "Edit C</boot/grub/grub.conf> interactively:"
17225 msgstr ""
17226
17227 # type: verbatim
17228 #: ../fish/guestfish.pod:102
17229 #, no-wrap
17230 msgid ""
17231 " guestfish --rw --add disk.img \\\n"
17232 "   --mount /dev/vg_guest/lv_root \\\n"
17233 "   --mount /dev/sda1:/boot \\\n"
17234 "   edit /boot/grub/grub.conf\n"
17235 "\n"
17236 msgstr ""
17237
17238 # type: =head2
17239 #: ../fish/guestfish.pod:107
17240 msgid "Mount disks automatically"
17241 msgstr ""
17242
17243 # type: textblock
17244 #: ../fish/guestfish.pod:109
17245 msgid ""
17246 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17247 msgstr ""
17248
17249 # type: verbatim
17250 #: ../fish/guestfish.pod:112
17251 #, no-wrap
17252 msgid ""
17253 " guestfish --ro -a disk.img -i cat /etc/group\n"
17254 "\n"
17255 msgstr ""
17256
17257 # type: verbatim
17258 #: ../fish/guestfish.pod:114
17259 #, no-wrap
17260 msgid ""
17261 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17262 "\n"
17263 msgstr ""
17264
17265 # type: textblock
17266 #: ../fish/guestfish.pod:116
17267 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17268 msgstr ""
17269
17270 # type: verbatim
17271 #: ../fish/guestfish.pod:118
17272 #, no-wrap
17273 msgid ""
17274 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17275 "\n"
17276 msgstr ""
17277
17278 # type: =head2
17279 #: ../fish/guestfish.pod:120
17280 msgid "As a script interpreter"
17281 msgstr ""
17282
17283 # type: textblock
17284 #: ../fish/guestfish.pod:122
17285 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17286 msgstr ""
17287
17288 # type: verbatim
17289 #: ../fish/guestfish.pod:124
17290 #, no-wrap
17291 msgid ""
17292 " #!/usr/bin/guestfish -f\n"
17293 " sparse test1.img 100M\n"
17294 " run\n"
17295 " part-disk /dev/sda mbr\n"
17296 " mkfs ext2 /dev/sda1\n"
17297 "\n"
17298 msgstr ""
17299
17300 # type: =head2
17301 #: ../fish/guestfish.pod:130
17302 msgid "Start with a prepared disk"
17303 msgstr ""
17304
17305 # type: textblock
17306 #: ../fish/guestfish.pod:132
17307 msgid ""
17308 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17309 "single ext2-formatted partition:"
17310 msgstr ""
17311
17312 # type: verbatim
17313 #: ../fish/guestfish.pod:135
17314 #, no-wrap
17315 msgid ""
17316 " guestfish -N fs\n"
17317 "\n"
17318 msgstr ""
17319
17320 # type: textblock
17321 #: ../fish/guestfish.pod:137
17322 msgid "To list what is available do:"
17323 msgstr ""
17324
17325 # type: verbatim
17326 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
17327 #, no-wrap
17328 msgid ""
17329 " guestfish -N help | less\n"
17330 "\n"
17331 msgstr ""
17332
17333 # type: =head2
17334 #: ../fish/guestfish.pod:141
17335 msgid "Remote control"
17336 msgstr ""
17337
17338 # type: verbatim
17339 #: ../fish/guestfish.pod:143
17340 #, no-wrap
17341 msgid ""
17342 " eval \"`guestfish --listen`\"\n"
17343 " guestfish --remote add-ro disk.img\n"
17344 " guestfish --remote run\n"
17345 " guestfish --remote lvs\n"
17346 "\n"
17347 msgstr ""
17348
17349 # type: =head1
17350 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17351 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
17352 #: ../tools/virt-win-reg.pl:171 ../tools/virt-resize.pl:254
17353 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98
17354 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
17355 msgid "OPTIONS"
17356 msgstr ""
17357
17358 # type: =item
17359 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17360 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179
17361 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
17362 #: ../tools/virt-tar.pl:106 ../tools/virt-make-fs.pl:161
17363 #: ../tools/virt-list-partitions.pl:62
17364 msgid "B<--help>"
17365 msgstr ""
17366
17367 # type: textblock
17368 #: ../fish/guestfish.pod:154
17369 msgid "Displays general help on options."
17370 msgstr ""
17371
17372 # type: =item
17373 #: ../fish/guestfish.pod:156
17374 msgid "B<-h> | B<--cmd-help>"
17375 msgstr ""
17376
17377 # type: textblock
17378 #: ../fish/guestfish.pod:158
17379 msgid "Lists all available guestfish commands."
17380 msgstr ""
17381
17382 # type: =item
17383 #: ../fish/guestfish.pod:160
17384 msgid "B<-h cmd> | B<--cmd-help cmd>"
17385 msgstr ""
17386
17387 # type: textblock
17388 #: ../fish/guestfish.pod:162
17389 msgid "Displays detailed help on a single command C<cmd>."
17390 msgstr ""
17391
17392 # type: =item
17393 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
17394 msgid "B<-a image> | B<--add image>"
17395 msgstr ""
17396
17397 # type: textblock
17398 #: ../fish/guestfish.pod:166
17399 msgid "Add a block device or virtual machine image to the shell."
17400 msgstr ""
17401
17402 # type: textblock
17403 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
17404 msgid ""
17405 "The format of the disk image is auto-detected.  To override this and force a "
17406 "particular format use the I<--format=..> option."
17407 msgstr ""
17408
17409 # type: =item
17410 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
17411 msgid "B<-c URI> | B<--connect URI>"
17412 msgstr ""
17413
17414 # type: textblock
17415 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
17416 msgid ""
17417 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17418 "URI to use.  The default is to use the default libvirt connection."
17419 msgstr ""
17420
17421 # type: =item
17422 #: ../fish/guestfish.pod:177
17423 msgid "B<--csh>"
17424 msgstr ""
17425
17426 # type: textblock
17427 #: ../fish/guestfish.pod:179
17428 msgid ""
17429 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17430 "section L</REMOTE CONTROL AND CSH> below."
17431 msgstr ""
17432
17433 # type: =item
17434 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
17435 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
17436 msgstr ""
17437
17438 # type: textblock
17439 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
17440 msgid ""
17441 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17442 "used, then any libvirt domain can be used.  However in write mode, only "
17443 "libvirt domains which are shut down can be named here."
17444 msgstr ""
17445
17446 # type: =item
17447 #: ../fish/guestfish.pod:188
17448 msgid "B<-D> | B<--no-dest-paths>"
17449 msgstr ""
17450
17451 # type: textblock
17452 #: ../fish/guestfish.pod:190
17453 msgid ""
17454 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17455 "to hit the tab key to complete paths on the guest filesystem, but this "
17456 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17457 "allow this feature to be disabled."
17458 msgstr ""
17459
17460 # type: =item
17461 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
17462 msgid "B<--echo-keys>"
17463 msgstr ""
17464
17465 # type: textblock
17466 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
17467 msgid ""
17468 "When prompting for keys and passphrases, guestfish normally turns echoing "
17469 "off so you cannot see what you are typing.  If you are not worried about "
17470 "Tempest attacks and there is no one else in the room you can specify this "
17471 "flag to see what you are typing."
17472 msgstr ""
17473
17474 # type: =item
17475 #: ../fish/guestfish.pod:202
17476 msgid "B<-f file> | B<--file file>"
17477 msgstr ""
17478
17479 # type: textblock
17480 #: ../fish/guestfish.pod:204
17481 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17482 msgstr ""
17483
17484 # type: verbatim
17485 #: ../fish/guestfish.pod:207
17486 #, no-wrap
17487 msgid ""
17488 " #!/usr/bin/guestfish -f\n"
17489 "\n"
17490 msgstr ""
17491
17492 # type: =item
17493 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
17494 msgid "B<--format=raw|qcow2|..> | B<--format>"
17495 msgstr ""
17496
17497 # type: textblock
17498 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17499 msgid ""
17500 "The default for the I<-a> option is to auto-detect the format of the disk "
17501 "image.  Using this forces the disk format for I<-a> options which follow on "
17502 "the command line.  Using I<--format> with no argument switches back to auto-"
17503 "detection for subsequent I<-a> options."
17504 msgstr ""
17505
17506 # type: textblock
17507 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
17508 msgid "For example:"
17509 msgstr ""
17510
17511 # type: verbatim
17512 #: ../fish/guestfish.pod:218
17513 #, no-wrap
17514 msgid ""
17515 " guestfish --format=raw -a disk.img\n"
17516 "\n"
17517 msgstr ""
17518
17519 # type: textblock
17520 #: ../fish/guestfish.pod:220
17521 msgid "forces raw format (no auto-detection) for C<disk.img>."
17522 msgstr ""
17523
17524 # type: verbatim
17525 #: ../fish/guestfish.pod:222
17526 #, no-wrap
17527 msgid ""
17528 " guestfish --format=raw -a disk.img --format -a another.img\n"
17529 "\n"
17530 msgstr ""
17531
17532 # type: textblock
17533 #: ../fish/guestfish.pod:224
17534 msgid ""
17535 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17536 "detection for C<another.img>."
17537 msgstr ""
17538
17539 # type: textblock
17540 #: ../fish/guestfish.pod:227
17541 msgid ""
17542 "If you have untrusted raw-format guest disk images, you should use this "
17543 "option to specify the disk format.  This avoids a possible security problem "
17544 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17545 msgstr ""
17546
17547 # type: =item
17548 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17549 msgid "B<-i> | B<--inspector>"
17550 msgstr ""
17551
17552 # type: textblock
17553 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17554 msgid ""
17555 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17556 "system and mount filesystems as they would be mounted on the real virtual "
17557 "machine."
17558 msgstr ""
17559
17560 # type: textblock
17561 #: ../fish/guestfish.pod:238
17562 msgid "Typical usage is either:"
17563 msgstr ""
17564
17565 # type: verbatim
17566 #: ../fish/guestfish.pod:240
17567 #, no-wrap
17568 msgid ""
17569 " guestfish -d myguest -i\n"
17570 "\n"
17571 msgstr ""
17572
17573 # type: textblock
17574 #: ../fish/guestfish.pod:242
17575 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17576 msgstr ""
17577
17578 # type: verbatim
17579 #: ../fish/guestfish.pod:244
17580 #, no-wrap
17581 msgid ""
17582 " guestfish --ro -d myguest -i\n"
17583 "\n"
17584 msgstr ""
17585
17586 # type: textblock
17587 #: ../fish/guestfish.pod:246
17588 msgid "(for active domains, readonly), or specify the block device directly:"
17589 msgstr ""
17590
17591 # type: verbatim
17592 #: ../fish/guestfish.pod:248
17593 #, no-wrap
17594 msgid ""
17595 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17596 "\n"
17597 msgstr ""
17598
17599 # type: textblock
17600 #: ../fish/guestfish.pod:250
17601 msgid ""
17602 "Note that the command line syntax changed slightly over older versions of "
17603 "guestfish.  You can still use the old syntax:"
17604 msgstr ""
17605
17606 # type: verbatim
17607 #: ../fish/guestfish.pod:253
17608 #, no-wrap
17609 msgid ""
17610 " guestfish [--ro] -i disk.img\n"
17611 "\n"
17612 msgstr ""
17613
17614 # type: verbatim
17615 #: ../fish/guestfish.pod:255
17616 #, no-wrap
17617 msgid ""
17618 " guestfish [--ro] -i libvirt-domain\n"
17619 "\n"
17620 msgstr ""
17621
17622 # type: =item
17623 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17624 msgid "B<--keys-from-stdin>"
17625 msgstr ""
17626
17627 # type: textblock
17628 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17629 msgid ""
17630 "Read key or passphrase parameters from stdin.  The default is to try to read "
17631 "passphrases from the user by opening C</dev/tty>."
17632 msgstr ""
17633
17634 # type: =item
17635 #: ../fish/guestfish.pod:262
17636 msgid "B<--listen>"
17637 msgstr ""
17638
17639 # type: textblock
17640 #: ../fish/guestfish.pod:264
17641 msgid ""
17642 "Fork into the background and listen for remote commands.  See section L</"
17643 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17644 msgstr ""
17645
17646 # type: =item
17647 #: ../fish/guestfish.pod:267
17648 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17649 msgstr ""
17650
17651 # type: textblock
17652 #: ../fish/guestfish.pod:269
17653 msgid "Mount the named partition or logical volume on the given mountpoint."
17654 msgstr ""
17655
17656 # type: textblock
17657 #: ../fish/guestfish.pod:271
17658 msgid "If the mountpoint is omitted, it defaults to C</>."
17659 msgstr ""
17660
17661 # type: textblock
17662 #: ../fish/guestfish.pod:273
17663 msgid "You have to mount something on C</> before most commands will work."
17664 msgstr ""
17665
17666 # type: textblock
17667 #: ../fish/guestfish.pod:275
17668 msgid ""
17669 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17670 "launched."
17671 msgstr ""
17672
17673 # type: textblock
17674 #: ../fish/guestfish.pod:278
17675 msgid ""
17676 "If you don't know what filesystems a disk image contains, you can either run "
17677 "guestfish without this option, then list the partitions, filesystems and LVs "
17678 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17679 "commands), or you can use the L<virt-filesystems(1)> program."
17680 msgstr ""
17681
17682 # type: =item
17683 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17684 msgid "B<-n> | B<--no-sync>"
17685 msgstr ""
17686
17687 # type: textblock
17688 #: ../fish/guestfish.pod:286
17689 msgid ""
17690 "Disable autosync.  This is enabled by default.  See the discussion of "
17691 "autosync in the L<guestfs(3)> manpage."
17692 msgstr ""
17693
17694 # type: =item
17695 #: ../fish/guestfish.pod:289
17696 msgid "B<-N type> | B<--new type> | B<-N help>"
17697 msgstr ""
17698
17699 # type: textblock
17700 #: ../fish/guestfish.pod:291
17701 msgid ""
17702 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17703 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17704 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17705 "IMAGES> below."
17706 msgstr ""
17707
17708 # type: =item
17709 #: ../fish/guestfish.pod:296
17710 msgid "B<--progress-bars>"
17711 msgstr ""
17712
17713 # type: textblock
17714 #: ../fish/guestfish.pod:298
17715 msgid "Enable progress bars, even when guestfish is used non-interactively."
17716 msgstr ""
17717
17718 # type: textblock
17719 #: ../fish/guestfish.pod:300
17720 msgid ""
17721 "Progress bars are enabled by default when guestfish is used as an "
17722 "interactive shell."
17723 msgstr ""
17724
17725 # type: =item
17726 #: ../fish/guestfish.pod:303
17727 msgid "B<--no-progress-bars>"
17728 msgstr ""
17729
17730 # type: textblock
17731 #: ../fish/guestfish.pod:305
17732 msgid "Disable progress bars."
17733 msgstr ""
17734
17735 # type: =item
17736 #: ../fish/guestfish.pod:307
17737 msgid "B<--remote[=pid]>"
17738 msgstr ""
17739
17740 # type: textblock
17741 #: ../fish/guestfish.pod:309
17742 msgid ""
17743 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17744 "CONTROL GUESTFISH OVER A SOCKET> below."
17745 msgstr ""
17746
17747 # type: =item
17748 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17749 msgid "B<-r> | B<--ro>"
17750 msgstr ""
17751
17752 # type: textblock
17753 #: ../fish/guestfish.pod:314
17754 msgid ""
17755 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17756 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17757 msgstr ""
17758
17759 # type: textblock
17760 #: ../fish/guestfish.pod:317
17761 msgid ""
17762 "The option must always be used if the disk image or virtual machine might be "
17763 "running, and is generally recommended in cases where you don't need write "
17764 "access to the disk."
17765 msgstr ""
17766
17767 # type: textblock
17768 #: ../fish/guestfish.pod:321
17769 msgid ""
17770 "Note that prepared disk images created with I<-N> are not affected by the "
17771 "I<--ro> option."
17772 msgstr ""
17773
17774 # type: textblock
17775 #: ../fish/guestfish.pod:324
17776 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17777 msgstr ""
17778
17779 # type: =item
17780 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208
17781 msgid "B<--selinux>"
17782 msgstr ""
17783
17784 # type: textblock
17785 #: ../fish/guestfish.pod:328
17786 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17787 msgstr ""
17788
17789 # type: =item
17790 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17791 msgid "B<-v> | B<--verbose>"
17792 msgstr ""
17793
17794 # type: textblock
17795 #: ../fish/guestfish.pod:332
17796 msgid ""
17797 "Enable very verbose messages.  This is particularly useful if you find a bug."
17798 msgstr ""
17799
17800 # type: =item
17801 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17802 msgid "B<-V> | B<--version>"
17803 msgstr ""
17804
17805 # type: textblock
17806 #: ../fish/guestfish.pod:337
17807 msgid "Display the guestfish / libguestfs version number and exit."
17808 msgstr ""
17809
17810 # type: =item
17811 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17812 msgid "B<-w> | B<--rw>"
17813 msgstr ""
17814
17815 # type: textblock
17816 #: ../fish/guestfish.pod:341
17817 msgid ""
17818 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17819 "WRITE> below."
17820 msgstr ""
17821
17822 # type: =item
17823 #: ../fish/guestfish.pod:344
17824 msgid "B<-x>"
17825 msgstr ""
17826
17827 # type: textblock
17828 #: ../fish/guestfish.pod:346
17829 msgid "Echo each command before executing it."
17830 msgstr ""
17831
17832 # type: =head1
17833 #: ../fish/guestfish.pod:350
17834 msgid "COMMANDS ON COMMAND LINE"
17835 msgstr ""
17836
17837 # type: textblock
17838 #: ../fish/guestfish.pod:352
17839 msgid ""
17840 "Any additional (non-option) arguments are treated as commands to execute."
17841 msgstr ""
17842
17843 # type: textblock
17844 #: ../fish/guestfish.pod:355
17845 msgid ""
17846 "Commands to execute should be separated by a colon (C<:>), where the colon "
17847 "is a separate parameter.  Thus:"
17848 msgstr ""
17849
17850 # type: verbatim
17851 #: ../fish/guestfish.pod:358
17852 #, no-wrap
17853 msgid ""
17854 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17855 "\n"
17856 msgstr ""
17857
17858 # type: textblock
17859 #: ../fish/guestfish.pod:360
17860 msgid ""
17861 "If there are no additional arguments, then we enter a shell, either an "
17862 "interactive shell with a prompt (if the input is a terminal) or a non-"
17863 "interactive shell."
17864 msgstr ""
17865
17866 # type: textblock
17867 #: ../fish/guestfish.pod:364
17868 msgid ""
17869 "In either command line mode or non-interactive shell, the first command that "
17870 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17871 "prompt) if a command fails, you can continue to enter commands."
17872 msgstr ""
17873
17874 # type: =head1
17875 #: ../fish/guestfish.pod:369
17876 msgid "USING launch (OR run)"
17877 msgstr ""
17878
17879 # type: textblock
17880 #: ../fish/guestfish.pod:371
17881 msgid ""
17882 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17883 "then launch it, then mount any disks you need, and finally issue actions/"
17884 "commands.  So the general order of the day is:"
17885 msgstr ""
17886
17887 # type: textblock
17888 #: ../fish/guestfish.pod:379
17889 msgid "add or -a/--add"
17890 msgstr ""
17891
17892 # type: textblock
17893 #: ../fish/guestfish.pod:383
17894 msgid "launch (aka run)"
17895 msgstr ""
17896
17897 # type: textblock
17898 #: ../fish/guestfish.pod:387
17899 msgid "mount or -m/--mount"
17900 msgstr ""
17901
17902 # type: textblock
17903 #: ../fish/guestfish.pod:391
17904 msgid "any other commands"
17905 msgstr ""
17906
17907 # type: textblock
17908 #: ../fish/guestfish.pod:395
17909 msgid ""
17910 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17911 "guest before mounting or performing any other commands."
17912 msgstr ""
17913
17914 # type: textblock
17915 #: ../fish/guestfish.pod:398
17916 msgid ""
17917 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17918 "I<--new> options were given then C<run> is done automatically, simply "
17919 "because guestfish can't perform the action you asked for without doing this."
17920 msgstr ""
17921
17922 # type: =head1
17923 #: ../fish/guestfish.pod:403
17924 msgid "OPENING DISKS FOR READ AND WRITE"
17925 msgstr ""
17926
17927 # type: textblock
17928 #: ../fish/guestfish.pod:405
17929 msgid ""
17930 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17931 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17932 "open disk images read-only or for writing."
17933 msgstr ""
17934
17935 # type: textblock
17936 #: ../fish/guestfish.pod:409
17937 msgid ""
17938 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17939 "disk images supplied on the command line for write.  To open a disk image "
17940 "read-only you have to do I<-a image --ro>."
17941 msgstr ""
17942
17943 # type: textblock
17944 #: ../fish/guestfish.pod:413
17945 msgid ""
17946 "This matters: If you accidentally open a live VM disk image writable then "
17947 "you will cause irreversible disk corruption."
17948 msgstr ""
17949
17950 # type: textblock
17951 #: ../fish/guestfish.pod:416
17952 msgid ""
17953 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17954 "images will be opened read-only.  You will have to either specify "
17955 "I<guestfish --rw> or change a configuration file in order to get write "
17956 "access for disk images specified by those other command line options."
17957 msgstr ""
17958
17959 # type: textblock
17960 #: ../fish/guestfish.pod:421
17961 msgid ""
17962 "This version of guestfish has a I<--rw> option which does nothing (it is "
17963 "already the default).  However it is highly recommended that you use this "
17964 "option to indicate that guestfish needs write access, and to prepare your "
17965 "scripts for the day when this option will be required for write access."
17966 msgstr ""
17967
17968 # type: textblock
17969 #: ../fish/guestfish.pod:427
17970 msgid ""
17971 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17972 "other libguestfs program apart from guestfish and guestmount."
17973 msgstr ""
17974
17975 # type: =head1
17976 #: ../fish/guestfish.pod:430
17977 msgid "QUOTING"
17978 msgstr ""
17979
17980 # type: textblock
17981 #: ../fish/guestfish.pod:432
17982 msgid ""
17983 "You can quote ordinary parameters using either single or double quotes.  For "
17984 "example:"
17985 msgstr ""
17986
17987 # type: verbatim
17988 #: ../fish/guestfish.pod:435
17989 #, no-wrap
17990 msgid ""
17991 " add \"file with a space.img\"\n"
17992 "\n"
17993 msgstr ""
17994
17995 # type: verbatim
17996 #: ../fish/guestfish.pod:437
17997 #, no-wrap
17998 msgid ""
17999 " rm '/file name'\n"
18000 "\n"
18001 msgstr ""
18002
18003 # type: verbatim
18004 #: ../fish/guestfish.pod:439
18005 #, no-wrap
18006 msgid ""
18007 " rm '/\"'\n"
18008 "\n"
18009 msgstr ""
18010
18011 # type: textblock
18012 #: ../fish/guestfish.pod:441
18013 msgid ""
18014 "A few commands require a list of strings to be passed.  For these, use a "
18015 "whitespace-separated list, enclosed in quotes.  Strings containing "
18016 "whitespace to be passed through must be enclosed in single quotes.  A "
18017 "literal single quote must be escaped with a backslash."
18018 msgstr ""
18019
18020 # type: verbatim
18021 #: ../fish/guestfish.pod:446
18022 #, no-wrap
18023 msgid ""
18024 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18025 " command \"/bin/echo 'foo      bar'\"\n"
18026 " command \"/bin/echo \\'foo\\'\"\n"
18027 "\n"
18028 msgstr ""
18029
18030 # type: =head1
18031 #: ../fish/guestfish.pod:450
18032 msgid "OPTIONAL ARGUMENTS"
18033 msgstr ""
18034
18035 # type: textblock
18036 #: ../fish/guestfish.pod:452
18037 msgid ""
18038 "Some commands take optional arguments.  These arguments appear in this "
18039 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18040 msgstr ""
18041
18042 # type: verbatim
18043 #: ../fish/guestfish.pod:456
18044 #, no-wrap
18045 msgid ""
18046 " add-drive-opts filename\n"
18047 "\n"
18048 msgstr ""
18049
18050 # type: verbatim
18051 #: ../fish/guestfish.pod:458
18052 #, no-wrap
18053 msgid ""
18054 " add-drive-opts filename readonly:true\n"
18055 "\n"
18056 msgstr ""
18057
18058 # type: verbatim
18059 #: ../fish/guestfish.pod:460
18060 #, no-wrap
18061 msgid ""
18062 " add-drive-opts filename format:qcow2 readonly:false\n"
18063 "\n"
18064 msgstr ""
18065
18066 # type: textblock
18067 #: ../fish/guestfish.pod:462
18068 msgid ""
18069 "Each optional argument can appear at most once.  All optional arguments must "
18070 "appear after the required ones."
18071 msgstr ""
18072
18073 # type: =head1
18074 #: ../fish/guestfish.pod:465
18075 msgid "NUMBERS"
18076 msgstr ""
18077
18078 # type: textblock
18079 #: ../fish/guestfish.pod:467
18080 msgid ""
18081 "This section applies to all commands which can take integers as parameters."
18082 msgstr ""
18083
18084 # type: =head2
18085 #: ../fish/guestfish.pod:470
18086 msgid "SIZE SUFFIX"
18087 msgstr ""
18088
18089 # type: textblock
18090 #: ../fish/guestfish.pod:472
18091 msgid ""
18092 "When the command takes a parameter measured in bytes, you can use one of the "
18093 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18094 msgstr ""
18095
18096 # type: =item
18097 #: ../fish/guestfish.pod:478
18098 msgid "B<k> or B<K> or B<KiB>"
18099 msgstr ""
18100
18101 # type: textblock
18102 #: ../fish/guestfish.pod:480
18103 msgid "The size in kilobytes (multiplied by 1024)."
18104 msgstr ""
18105
18106 # type: =item
18107 #: ../fish/guestfish.pod:482
18108 msgid "B<KB>"
18109 msgstr ""
18110
18111 # type: textblock
18112 #: ../fish/guestfish.pod:484
18113 msgid "The size in SI 1000 byte units."
18114 msgstr ""
18115
18116 # type: =item
18117 #: ../fish/guestfish.pod:486
18118 msgid "B<M> or B<MiB>"
18119 msgstr ""
18120
18121 # type: textblock
18122 #: ../fish/guestfish.pod:488
18123 msgid "The size in megabytes (multiplied by 1048576)."
18124 msgstr ""
18125
18126 # type: =item
18127 #: ../fish/guestfish.pod:490
18128 msgid "B<MB>"
18129 msgstr ""
18130
18131 # type: textblock
18132 #: ../fish/guestfish.pod:492
18133 msgid "The size in SI 1000000 byte units."
18134 msgstr ""
18135
18136 # type: =item
18137 #: ../fish/guestfish.pod:494
18138 msgid "B<G> or B<GiB>"
18139 msgstr ""
18140
18141 # type: textblock
18142 #: ../fish/guestfish.pod:496
18143 msgid "The size in gigabytes (multiplied by 2**30)."
18144 msgstr ""
18145
18146 # type: =item
18147 #: ../fish/guestfish.pod:498
18148 msgid "B<GB>"
18149 msgstr ""
18150
18151 # type: textblock
18152 #: ../fish/guestfish.pod:500
18153 msgid "The size in SI 10**9 byte units."
18154 msgstr ""
18155
18156 # type: =item
18157 #: ../fish/guestfish.pod:502
18158 msgid "B<T> or B<TiB>"
18159 msgstr ""
18160
18161 # type: textblock
18162 #: ../fish/guestfish.pod:504
18163 msgid "The size in terabytes (multiplied by 2**40)."
18164 msgstr ""
18165
18166 # type: =item
18167 #: ../fish/guestfish.pod:506
18168 msgid "B<TB>"
18169 msgstr ""
18170
18171 # type: textblock
18172 #: ../fish/guestfish.pod:508
18173 msgid "The size in SI 10**12 byte units."
18174 msgstr ""
18175
18176 # type: =item
18177 #: ../fish/guestfish.pod:510
18178 msgid "B<P> or B<PiB>"
18179 msgstr ""
18180
18181 # type: textblock
18182 #: ../fish/guestfish.pod:512
18183 msgid "The size in petabytes (multiplied by 2**50)."
18184 msgstr ""
18185
18186 # type: =item
18187 #: ../fish/guestfish.pod:514
18188 msgid "B<PB>"
18189 msgstr ""
18190
18191 # type: textblock
18192 #: ../fish/guestfish.pod:516
18193 msgid "The size in SI 10**15 byte units."
18194 msgstr ""
18195
18196 # type: =item
18197 #: ../fish/guestfish.pod:518
18198 msgid "B<E> or B<EiB>"
18199 msgstr ""
18200
18201 # type: textblock
18202 #: ../fish/guestfish.pod:520
18203 msgid "The size in exabytes (multiplied by 2**60)."
18204 msgstr ""
18205
18206 # type: =item
18207 #: ../fish/guestfish.pod:522
18208 msgid "B<EB>"
18209 msgstr ""
18210
18211 # type: textblock
18212 #: ../fish/guestfish.pod:524
18213 msgid "The size in SI 10**18 byte units."
18214 msgstr ""
18215
18216 # type: =item
18217 #: ../fish/guestfish.pod:526
18218 msgid "B<Z> or B<ZiB>"
18219 msgstr ""
18220
18221 # type: textblock
18222 #: ../fish/guestfish.pod:528
18223 msgid "The size in zettabytes (multiplied by 2**70)."
18224 msgstr ""
18225
18226 # type: =item
18227 #: ../fish/guestfish.pod:530
18228 msgid "B<ZB>"
18229 msgstr ""
18230
18231 # type: textblock
18232 #: ../fish/guestfish.pod:532
18233 msgid "The size in SI 10**21 byte units."
18234 msgstr ""
18235
18236 # type: =item
18237 #: ../fish/guestfish.pod:534
18238 msgid "B<Y> or B<YiB>"
18239 msgstr ""
18240
18241 # type: textblock
18242 #: ../fish/guestfish.pod:536
18243 msgid "The size in yottabytes (multiplied by 2**80)."
18244 msgstr ""
18245
18246 # type: =item
18247 #: ../fish/guestfish.pod:538
18248 msgid "B<YB>"
18249 msgstr ""
18250
18251 # type: textblock
18252 #: ../fish/guestfish.pod:540
18253 msgid "The size in SI 10**24 byte units."
18254 msgstr ""
18255
18256 # type: verbatim
18257 #: ../fish/guestfish.pod:546
18258 #, no-wrap
18259 msgid ""
18260 " truncate-size /file 1G\n"
18261 "\n"
18262 msgstr ""
18263
18264 # type: textblock
18265 #: ../fish/guestfish.pod:548
18266 msgid "would truncate the file to 1 gigabyte."
18267 msgstr ""
18268
18269 # type: textblock
18270 #: ../fish/guestfish.pod:550
18271 msgid ""
18272 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18273 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18274 "suffix will probably not do what you expect."
18275 msgstr ""
18276
18277 # type: =head2
18278 #: ../fish/guestfish.pod:554
18279 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18280 msgstr ""
18281
18282 # type: textblock
18283 #: ../fish/guestfish.pod:556
18284 msgid ""
18285 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18286 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18287 msgstr ""
18288
18289 # type: verbatim
18290 #: ../fish/guestfish.pod:559
18291 #, no-wrap
18292 msgid ""
18293 " 1234      decimal number 1234\n"
18294 " 02322     octal number, equivalent to decimal 1234\n"
18295 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18296 "\n"
18297 msgstr ""
18298
18299 # type: textblock
18300 #: ../fish/guestfish.pod:563
18301 msgid ""
18302 "When using the C<chmod> command, you almost always want to specify an octal "
18303 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18304 "L<chmod(1)> program):"
18305 msgstr ""
18306
18307 # type: verbatim
18308 #: ../fish/guestfish.pod:567
18309 #, no-wrap
18310 msgid ""
18311 " chmod 0777 /public  # OK\n"
18312 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18313 "\n"
18314 msgstr ""
18315
18316 # type: textblock
18317 #: ../fish/guestfish.pod:570
18318 msgid ""
18319 "Commands that return numbers usually print them in decimal, but some "
18320 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18321 "octal, preceeded by C<0>)."
18322 msgstr ""
18323
18324 # type: =head1
18325 #: ../fish/guestfish.pod:574
18326 msgid "WILDCARDS AND GLOBBING"
18327 msgstr ""
18328
18329 # type: textblock
18330 #: ../fish/guestfish.pod:576
18331 msgid ""
18332 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18333 "(globbing) by default.  So for example the following will not do what you "
18334 "expect:"
18335 msgstr ""
18336
18337 # type: verbatim
18338 #: ../fish/guestfish.pod:580
18339 #, no-wrap
18340 msgid ""
18341 " rm-rf /home/*\n"
18342 "\n"
18343 msgstr ""
18344
18345 # type: textblock
18346 #: ../fish/guestfish.pod:582
18347 msgid ""
18348 "Assuming you don't have a directory called literally C</home/*> then the "
18349 "above command will return an error."
18350 msgstr ""
18351
18352 # type: textblock
18353 #: ../fish/guestfish.pod:585
18354 msgid "To perform wildcard expansion, use the C<glob> command."
18355 msgstr ""
18356
18357 # type: verbatim
18358 #: ../fish/guestfish.pod:587
18359 #, no-wrap
18360 msgid ""
18361 " glob rm-rf /home/*\n"
18362 "\n"
18363 msgstr ""
18364
18365 # type: textblock
18366 #: ../fish/guestfish.pod:589
18367 msgid ""
18368 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18369 "many times), equivalent to:"
18370 msgstr ""
18371
18372 # type: verbatim
18373 #: ../fish/guestfish.pod:592
18374 #, no-wrap
18375 msgid ""
18376 " rm-rf /home/jim\n"
18377 " rm-rf /home/joe\n"
18378 " rm-rf /home/mary\n"
18379 "\n"
18380 msgstr ""
18381
18382 # type: textblock
18383 #: ../fish/guestfish.pod:596
18384 msgid "C<glob> only works on simple guest paths and not on device names."
18385 msgstr ""
18386
18387 # type: textblock
18388 #: ../fish/guestfish.pod:598
18389 msgid ""
18390 "If you have several parameters, each containing a wildcard, then glob will "
18391 "perform a Cartesian product."
18392 msgstr ""
18393
18394 # type: =head1
18395 #: ../fish/guestfish.pod:601
18396 msgid "COMMENTS"
18397 msgstr ""
18398
18399 # type: textblock
18400 #: ../fish/guestfish.pod:603
18401 msgid ""
18402 "Any line which starts with a I<#> character is treated as a comment and "
18403 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18404 "a command.  For example:"
18405 msgstr ""
18406
18407 # type: verbatim
18408 #: ../fish/guestfish.pod:607
18409 #, no-wrap
18410 msgid ""
18411 " # this is a comment\n"
18412 "         # this is a comment\n"
18413 " foo # NOT a comment\n"
18414 "\n"
18415 msgstr ""
18416
18417 # type: textblock
18418 #: ../fish/guestfish.pod:611
18419 msgid "Blank lines are also ignored."
18420 msgstr ""
18421
18422 # type: =head1
18423 #: ../fish/guestfish.pod:613
18424 msgid "RUNNING COMMANDS LOCALLY"
18425 msgstr ""
18426
18427 # type: textblock
18428 #: ../fish/guestfish.pod:615
18429 msgid ""
18430 "Any line which starts with a I<!> character is treated as a command sent to "
18431 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18432 msgstr ""
18433
18434 # type: verbatim
18435 #: ../fish/guestfish.pod:619
18436 #, no-wrap
18437 msgid ""
18438 " !mkdir local\n"
18439 " tgz-out /remote local/remote-data.tar.gz\n"
18440 "\n"
18441 msgstr ""
18442
18443 # type: textblock
18444 #: ../fish/guestfish.pod:622
18445 msgid ""
18446 "will create a directory C<local> on the host, and then export the contents "
18447 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18448 "(See C<tgz-out>)."
18449 msgstr ""
18450
18451 # type: textblock
18452 #: ../fish/guestfish.pod:626
18453 msgid ""
18454 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18455 "effect, due to the way that subprocesses work in Unix."
18456 msgstr ""
18457
18458 # type: =head1
18459 #: ../fish/guestfish.pod:629
18460 msgid "PIPES"
18461 msgstr ""
18462
18463 # type: textblock
18464 #: ../fish/guestfish.pod:631
18465 msgid ""
18466 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18467 "command (a guestfish command) to the second command (any host command).  For "
18468 "example:"
18469 msgstr ""
18470
18471 # type: verbatim
18472 #: ../fish/guestfish.pod:635
18473 #, no-wrap
18474 msgid ""
18475 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18476 "\n"
18477 msgstr ""
18478
18479 # type: textblock
18480 #: ../fish/guestfish.pod:637
18481 msgid ""
18482 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18483 "program).  The above command would list all accounts in the guest filesystem "
18484 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18485 msgstr ""
18486
18487 # type: verbatim
18488 #: ../fish/guestfish.pod:642
18489 #, no-wrap
18490 msgid ""
18491 " hexdump /bin/ls | head\n"
18492 " list-devices | tail -1\n"
18493 " tgz-out / - | tar ztf -\n"
18494 "\n"
18495 msgstr ""
18496
18497 # type: textblock
18498 #: ../fish/guestfish.pod:646
18499 msgid ""
18500 "The space before the pipe symbol is required, any space after the pipe "
18501 "symbol is optional.  Everything after the pipe symbol is just passed "
18502 "straight to the host shell, so it can contain redirections, globs and "
18503 "anything else that makes sense on the host side."
18504 msgstr ""
18505
18506 # type: textblock
18507 #: ../fish/guestfish.pod:651
18508 msgid ""
18509 "To use a literal argument which begins with a pipe symbol, you have to quote "
18510 "it, eg:"
18511 msgstr ""
18512
18513 # type: verbatim
18514 #: ../fish/guestfish.pod:654
18515 #, no-wrap
18516 msgid ""
18517 " echo \"|\"\n"
18518 "\n"
18519 msgstr ""
18520
18521 # type: =head1
18522 #: ../fish/guestfish.pod:656
18523 msgid "HOME DIRECTORIES"
18524 msgstr ""
18525
18526 # type: textblock
18527 #: ../fish/guestfish.pod:658
18528 msgid ""
18529 "If a parameter starts with the character C<~> then the tilde may be expanded "
18530 "as a home directory path (either C<~> for the current user's home directory, "
18531 "or C<~user> for another user)."
18532 msgstr ""
18533
18534 # type: textblock
18535 #: ../fish/guestfish.pod:662
18536 msgid ""
18537 "Note that home directory expansion happens for users known I<on the host>, "
18538 "not in the guest filesystem."
18539 msgstr ""
18540
18541 # type: textblock
18542 #: ../fish/guestfish.pod:665
18543 msgid ""
18544 "To use a literal argument which begins with a tilde, you have to quote it, "
18545 "eg:"
18546 msgstr ""
18547
18548 # type: verbatim
18549 #: ../fish/guestfish.pod:668
18550 #, no-wrap
18551 msgid ""
18552 " echo \"~\"\n"
18553 "\n"
18554 msgstr ""
18555
18556 # type: textblock
18557 #: ../fish/guestfish.pod:672
18558 msgid ""
18559 "Libguestfs has some support for Linux guests encrypted according to the "
18560 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18561 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18562 "LUKS is supported."
18563 msgstr ""
18564
18565 # type: textblock
18566 #: ../fish/guestfish.pod:677
18567 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18568 msgstr ""
18569
18570 # type: verbatim
18571 #: ../fish/guestfish.pod:679
18572 #, no-wrap
18573 msgid ""
18574 " ><fs> vfs-type /dev/sda2\n"
18575 " crypto_LUKS\n"
18576 "\n"
18577 msgstr ""
18578
18579 # type: textblock
18580 #: ../fish/guestfish.pod:682
18581 msgid ""
18582 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18583 "device called C</dev/mapper/luksdev>."
18584 msgstr ""
18585
18586 # type: verbatim
18587 #: ../fish/guestfish.pod:685
18588 #, no-wrap
18589 msgid ""
18590 " ><fs> luks-open /dev/sda2 luksdev\n"
18591 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18592 "\n"
18593 msgstr ""
18594
18595 # type: textblock
18596 #: ../fish/guestfish.pod:688
18597 msgid ""
18598 "Finally you have to tell LVM to scan for volume groups on the newly created "
18599 "mapper device:"
18600 msgstr ""
18601
18602 # type: verbatim
18603 #: ../fish/guestfish.pod:691
18604 #, no-wrap
18605 msgid ""
18606 " vgscan\n"
18607 " vg-activate-all true\n"
18608 "\n"
18609 msgstr ""
18610
18611 # type: textblock
18612 #: ../fish/guestfish.pod:694
18613 msgid "The logical volume(s) can now be mounted in the usual way."
18614 msgstr ""
18615
18616 # type: textblock
18617 #: ../fish/guestfish.pod:696
18618 msgid ""
18619 "Before closing a LUKS device you must unmount any logical volumes on it and "
18620 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18621 "one.  Then you can close the mapper device:"
18622 msgstr ""
18623
18624 # type: verbatim
18625 #: ../fish/guestfish.pod:700
18626 #, no-wrap
18627 msgid ""
18628 " vg-activate false /dev/VG\n"
18629 " luks-close /dev/mapper/luksdev\n"
18630 "\n"
18631 msgstr ""
18632
18633 # type: =head1
18634 #: ../fish/guestfish.pod:703
18635 msgid "WINDOWS PATHS"
18636 msgstr ""
18637
18638 # type: textblock
18639 #: ../fish/guestfish.pod:705
18640 msgid ""
18641 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18642 "(with some limitations).  The following commands are equivalent:"
18643 msgstr ""
18644
18645 # type: verbatim
18646 #: ../fish/guestfish.pod:708
18647 #, no-wrap
18648 msgid ""
18649 " file /WINDOWS/system32/config/system.LOG\n"
18650 "\n"
18651 msgstr ""
18652
18653 # type: verbatim
18654 #: ../fish/guestfish.pod:710
18655 #, no-wrap
18656 msgid ""
18657 " file win:/windows/system32/config/system.log\n"
18658 "\n"
18659 msgstr ""
18660
18661 # type: verbatim
18662 #: ../fish/guestfish.pod:712
18663 #, no-wrap
18664 msgid ""
18665 " file win:\\windows\\system32\\config\\system.log\n"
18666 "\n"
18667 msgstr ""
18668
18669 # type: verbatim
18670 #: ../fish/guestfish.pod:714
18671 #, no-wrap
18672 msgid ""
18673 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18674 "\n"
18675 msgstr ""
18676
18677 # type: textblock
18678 #: ../fish/guestfish.pod:716
18679 msgid ""
18680 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18681 "handles case insensitivity like Windows would.  This only works in argument "
18682 "positions that expect a path."
18683 msgstr ""
18684
18685 # type: =head1
18686 #: ../fish/guestfish.pod:720
18687 msgid "UPLOADING AND DOWNLOADING FILES"
18688 msgstr ""
18689
18690 # type: textblock
18691 #: ../fish/guestfish.pod:722
18692 msgid ""
18693 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18694 "others which upload from or download to a local file, you can use the "
18695 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18696 msgstr ""
18697
18698 # type: verbatim
18699 #: ../fish/guestfish.pod:726
18700 #, no-wrap
18701 msgid ""
18702 " upload - /foo\n"
18703 "\n"
18704 msgstr ""
18705
18706 # type: textblock
18707 #: ../fish/guestfish.pod:728
18708 msgid ""
18709 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18710 msgstr ""
18711
18712 # type: verbatim
18713 #: ../fish/guestfish.pod:731
18714 #, no-wrap
18715 msgid ""
18716 " tar-out /etc - | tar tf -\n"
18717 "\n"
18718 msgstr ""
18719
18720 # type: textblock
18721 #: ../fish/guestfish.pod:733
18722 msgid ""
18723 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18724 "command (see L</PIPES>)."
18725 msgstr ""
18726
18727 # type: textblock
18728 #: ../fish/guestfish.pod:736
18729 msgid ""
18730 "When using C<-> to read from stdin, the input is read up to the end of "
18731 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18732 "some arbitrary end marker:"
18733 msgstr ""
18734
18735 # type: verbatim
18736 #: ../fish/guestfish.pod:740
18737 #, no-wrap
18738 msgid ""
18739 " upload -<<END /foo\n"
18740 " input line 1\n"
18741 " input line 2\n"
18742 " input line 3\n"
18743 " END\n"
18744 "\n"
18745 msgstr ""
18746
18747 # type: textblock
18748 #: ../fish/guestfish.pod:746
18749 msgid ""
18750 "Any string of characters can be used instead of C<END>.  The end marker must "
18751 "appear on a line of its own, without any preceeding or following characters "
18752 "(not even spaces)."
18753 msgstr ""
18754
18755 # type: textblock
18756 #: ../fish/guestfish.pod:750
18757 msgid ""
18758 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18759 "upload local files (so-called \"FileIn\" parameters in the generator)."
18760 msgstr ""
18761
18762 # type: =head1
18763 #: ../fish/guestfish.pod:753
18764 msgid "EXIT ON ERROR BEHAVIOUR"
18765 msgstr ""
18766
18767 # type: textblock
18768 #: ../fish/guestfish.pod:755
18769 msgid ""
18770 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18771 "taking commands from a human over a tty), and will exit on the first error "
18772 "in non-interactive mode (scripts, commands given on the command line)."
18773 msgstr ""
18774
18775 # type: textblock
18776 #: ../fish/guestfish.pod:760
18777 msgid ""
18778 "If you prefix a command with a I<-> character, then that command will not "
18779 "cause guestfish to exit, even if that (one) command returns an error."
18780 msgstr ""
18781
18782 # type: =head1
18783 #: ../fish/guestfish.pod:764
18784 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18785 msgstr ""
18786
18787 # type: textblock
18788 #: ../fish/guestfish.pod:766
18789 msgid ""
18790 "Guestfish can be remote-controlled over a socket.  This is useful "
18791 "particularly in shell scripts where you want to make several different "
18792 "changes to a filesystem, but you don't want the overhead of starting up a "
18793 "guestfish process each time."
18794 msgstr ""
18795
18796 # type: textblock
18797 #: ../fish/guestfish.pod:771
18798 msgid "Start a guestfish server process using:"
18799 msgstr ""
18800
18801 # type: verbatim
18802 #: ../fish/guestfish.pod:773
18803 #, no-wrap
18804 msgid ""
18805 " eval \"`guestfish --listen`\"\n"
18806 "\n"
18807 msgstr ""
18808
18809 # type: textblock
18810 #: ../fish/guestfish.pod:775
18811 msgid "and then send it commands by doing:"
18812 msgstr ""
18813
18814 # type: verbatim
18815 #: ../fish/guestfish.pod:777
18816 #, no-wrap
18817 msgid ""
18818 " guestfish --remote cmd [...]\n"
18819 "\n"
18820 msgstr ""
18821
18822 # type: textblock
18823 #: ../fish/guestfish.pod:779
18824 msgid "To cause the server to exit, send it the exit command:"
18825 msgstr ""
18826
18827 # type: verbatim
18828 #: ../fish/guestfish.pod:781
18829 #, no-wrap
18830 msgid ""
18831 " guestfish --remote exit\n"
18832 "\n"
18833 msgstr ""
18834
18835 # type: textblock
18836 #: ../fish/guestfish.pod:783
18837 msgid ""
18838 "Note that the server will normally exit if there is an error in a command.  "
18839 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18840 "BEHAVIOUR>."
18841 msgstr ""
18842
18843 # type: =head2
18844 #: ../fish/guestfish.pod:787
18845 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18846 msgstr ""
18847
18848 # type: textblock
18849 #: ../fish/guestfish.pod:789
18850 msgid ""
18851 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18852 "is how the I<--remote> option knows where to send the commands.  You can "
18853 "have several guestfish listener processes running using:"
18854 msgstr ""
18855
18856 # type: verbatim
18857 #: ../fish/guestfish.pod:793
18858 #, no-wrap
18859 msgid ""
18860 " eval \"`guestfish --listen`\"\n"
18861 " pid1=$GUESTFISH_PID\n"
18862 " eval \"`guestfish --listen`\"\n"
18863 " pid2=$GUESTFISH_PID\n"
18864 " ...\n"
18865 " guestfish --remote=$pid1 cmd\n"
18866 " guestfish --remote=$pid2 cmd\n"
18867 "\n"
18868 msgstr ""
18869
18870 # type: =head2
18871 #: ../fish/guestfish.pod:801
18872 msgid "REMOTE CONTROL AND CSH"
18873 msgstr ""
18874
18875 # type: textblock
18876 #: ../fish/guestfish.pod:803
18877 msgid ""
18878 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18879 "option:"
18880 msgstr ""
18881
18882 # type: verbatim
18883 #: ../fish/guestfish.pod:806
18884 #, no-wrap
18885 msgid ""
18886 " eval \"`guestfish --listen --csh`\"\n"
18887 "\n"
18888 msgstr ""
18889
18890 # type: =head2
18891 #: ../fish/guestfish.pod:808
18892 msgid "REMOTE CONTROL DETAILS"
18893 msgstr ""
18894
18895 # type: textblock
18896 #: ../fish/guestfish.pod:810
18897 msgid ""
18898 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18899 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18900 "and C<$PID> is the process ID of the server."
18901 msgstr ""
18902
18903 # type: textblock
18904 #: ../fish/guestfish.pod:814
18905 msgid "Guestfish client and server versions must match exactly."
18906 msgstr ""
18907
18908 # type: =head1
18909 #: ../fish/guestfish.pod:816
18910 msgid "PREPARED DISK IMAGES"
18911 msgstr ""
18912
18913 # type: textblock
18914 #: ../fish/guestfish.pod:818
18915 msgid ""
18916 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18917 "preformatted disk images that guestfish can make for you to save typing.  "
18918 "This is particularly useful for testing purposes.  This option is used "
18919 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18920 "can be mixed with I<-a>)."
18921 msgstr ""
18922
18923 # type: textblock
18924 #: ../fish/guestfish.pod:824
18925 msgid ""
18926 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18927 "the second and so on.  Existing files in the current directory are "
18928 "I<overwritten>."
18929 msgstr ""
18930
18931 # type: textblock
18932 #: ../fish/guestfish.pod:828
18933 msgid ""
18934 "The type briefly describes how the disk should be sized, partitioned, how "
18935 "filesystem(s) should be created, and how content should be added.  "
18936 "Optionally the type can be followed by extra parameters, separated by C<:> "
18937 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18938 "allocated disk, containing a single partition, with the partition formatted "
18939 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18940 "disk instead."
18941 msgstr ""
18942
18943 # type: textblock
18944 #: ../fish/guestfish.pod:836
18945 msgid "To list the available types and any extra parameters they take, run:"
18946 msgstr ""
18947
18948 # type: textblock
18949 #: ../fish/guestfish.pod:840
18950 msgid ""
18951 "Note that the prepared filesystem is not mounted.  You would usually have to "
18952 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18953 msgstr ""
18954
18955 # type: textblock
18956 #: ../fish/guestfish.pod:844
18957 msgid ""
18958 "If any I<-N> or I<--new> options are given, the guest is automatically "
18959 "launched."
18960 msgstr ""
18961
18962 # type: textblock
18963 #: ../fish/guestfish.pod:849
18964 msgid "Create a 100MB disk with an ext4-formatted partition:"
18965 msgstr ""
18966
18967 # type: verbatim
18968 #: ../fish/guestfish.pod:851
18969 #, no-wrap
18970 msgid ""
18971 " guestfish -N fs:ext4\n"
18972 "\n"
18973 msgstr ""
18974
18975 # type: textblock
18976 #: ../fish/guestfish.pod:853
18977 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18978 msgstr ""
18979
18980 # type: verbatim
18981 #: ../fish/guestfish.pod:855
18982 #, no-wrap
18983 msgid ""
18984 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18985 "\n"
18986 msgstr ""
18987
18988 # type: textblock
18989 #: ../fish/guestfish.pod:857
18990 msgid "Create a blank 200MB disk:"
18991 msgstr ""
18992
18993 # type: verbatim
18994 #: ../fish/guestfish.pod:859
18995 #, no-wrap
18996 msgid ""
18997 " guestfish -N disk:200M\n"
18998 "\n"
18999 msgstr ""
19000
19001 # type: =head1
19002 #: ../fish/guestfish.pod:861
19003 msgid "PROGRESS BARS"
19004 msgstr ""
19005
19006 # type: textblock
19007 #: ../fish/guestfish.pod:863
19008 msgid ""
19009 "Some (not all) long-running commands send progress notification messages as "
19010 "they are running.  Guestfish turns these messages into progress bars."
19011 msgstr ""
19012
19013 # type: textblock
19014 #: ../fish/guestfish.pod:867
19015 msgid ""
19016 "When a command that supports progress bars takes longer than two seconds to "
19017 "run, and if progress bars are enabled, then you will see one appearing below "
19018 "the command:"
19019 msgstr ""
19020
19021 # type: verbatim
19022 #: ../fish/guestfish.pod:871
19023 #, no-wrap
19024 msgid ""
19025 " ><fs> copy-size /large-file /another-file 2048M\n"
19026 " / 10% [#####-----------------------------------------] 00:30\n"
19027 "\n"
19028 msgstr ""
19029
19030 # type: textblock
19031 #: ../fish/guestfish.pod:874
19032 msgid ""
19033 "The spinner on the left hand side moves round once for every progress "
19034 "notification received from the backend.  This is a (reasonably) golden "
19035 "assurance that the command is \"doing something\" even if the progress bar "
19036 "is not moving, because the command is able to send the progress "
19037 "notifications.  When the bar reaches 100% and the command finishes, the "
19038 "spinner disappears."
19039 msgstr ""
19040
19041 # type: textblock
19042 #: ../fish/guestfish.pod:881
19043 msgid ""
19044 "Progress bars are enabled by default when guestfish is used interactively.  "
19045 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19046 "and you can disable them completely using I<--no-progress-bars>."
19047 msgstr ""
19048
19049 # type: =head1
19050 #: ../fish/guestfish.pod:886
19051 msgid "GUESTFISH COMMANDS"
19052 msgstr ""
19053
19054 # type: textblock
19055 #: ../fish/guestfish.pod:888
19056 msgid ""
19057 "The commands in this section are guestfish convenience commands, in other "
19058 "words, they are not part of the L<guestfs(3)> API."
19059 msgstr ""
19060
19061 # type: =head2
19062 #: ../fish/guestfish.pod:891
19063 msgid "help"
19064 msgstr ""
19065
19066 # type: verbatim
19067 #: ../fish/guestfish.pod:893
19068 #, no-wrap
19069 msgid ""
19070 " help\n"
19071 " help cmd\n"
19072 "\n"
19073 msgstr ""
19074
19075 # type: textblock
19076 #: ../fish/guestfish.pod:896
19077 msgid "Without any parameter, this provides general help."
19078 msgstr ""
19079
19080 # type: textblock
19081 #: ../fish/guestfish.pod:898
19082 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19083 msgstr ""
19084
19085 # type: =head2
19086 #: ../fish/guestfish.pod:900
19087 msgid "quit | exit"
19088 msgstr ""
19089
19090 # type: textblock
19091 #: ../fish/guestfish.pod:902
19092 msgid "This exits guestfish.  You can also use C<^D> key."
19093 msgstr ""
19094
19095 # type: textblock
19096 #: ../fish/guestfish.pod:904
19097 msgid "@FISH_COMMANDS@"
19098 msgstr ""
19099
19100 # type: =head1
19101 #: ../fish/guestfish.pod:906
19102 msgid "COMMANDS"
19103 msgstr ""
19104
19105 # type: =head1
19106 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
19107 msgid "EXIT CODE"
19108 msgstr ""
19109
19110 # type: textblock
19111 #: ../fish/guestfish.pod:912
19112 msgid ""
19113 "guestfish returns 0 if the commands completed without error, or 1 if there "
19114 "was an error."
19115 msgstr ""
19116
19117 # type: =item
19118 #: ../fish/guestfish.pod:919
19119 msgid "EDITOR"
19120 msgstr ""
19121
19122 # type: textblock
19123 #: ../fish/guestfish.pod:921
19124 msgid ""
19125 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19126 "C<vi>."
19127 msgstr ""
19128
19129 # type: =item
19130 #: ../fish/guestfish.pod:924
19131 msgid "GUESTFISH_PID"
19132 msgstr ""
19133
19134 # type: textblock
19135 #: ../fish/guestfish.pod:926
19136 msgid ""
19137 "Used with the I<--remote> option to specify the remote guestfish process to "
19138 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19139 msgstr ""
19140
19141 # type: =item
19142 #: ../fish/guestfish.pod:930
19143 msgid "HEXEDITOR"
19144 msgstr ""
19145
19146 # type: textblock
19147 #: ../fish/guestfish.pod:932
19148 msgid ""
19149 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19150 "not specified, the external L<hexedit(1)> program is used."
19151 msgstr ""
19152
19153 # type: =item
19154 #: ../fish/guestfish.pod:936
19155 msgid "HOME"
19156 msgstr ""
19157
19158 # type: textblock
19159 #: ../fish/guestfish.pod:938
19160 msgid ""
19161 "If compiled with GNU readline support, various files in the home directory "
19162 "can be used.  See L</FILES>."
19163 msgstr ""
19164
19165 # type: textblock
19166 #: ../fish/guestfish.pod:947
19167 msgid ""
19168 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19169 "effect as using the B<-v> option."
19170 msgstr ""
19171
19172 # type: textblock
19173 #: ../fish/guestfish.pod:959
19174 msgid ""
19175 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19176 "the discussion of paths in L<guestfs(3)>."
19177 msgstr ""
19178
19179 # type: textblock
19180 #: ../fish/guestfish.pod:970
19181 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19182 msgstr ""
19183
19184 # type: =item
19185 #: ../fish/guestfish.pod:972
19186 msgid "PAGER"
19187 msgstr ""
19188
19189 # type: textblock
19190 #: ../fish/guestfish.pod:974
19191 msgid ""
19192 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19193 "C<more>."
19194 msgstr ""
19195
19196 # type: =head1
19197 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
19198 msgid "FILES"
19199 msgstr ""
19200
19201 # type: =item
19202 #: ../fish/guestfish.pod:993
19203 msgid "$HOME/.guestfish"
19204 msgstr ""
19205
19206 # type: textblock
19207 #: ../fish/guestfish.pod:995
19208 msgid ""
19209 "If compiled with GNU readline support, then the command history is saved in "
19210 "this file."
19211 msgstr ""
19212
19213 # type: =item
19214 #: ../fish/guestfish.pod:998
19215 msgid "$HOME/.inputrc"
19216 msgstr ""
19217
19218 # type: =item
19219 #: ../fish/guestfish.pod:1000
19220 msgid "/etc/inputrc"
19221 msgstr ""
19222
19223 # type: textblock
19224 #: ../fish/guestfish.pod:1002
19225 msgid ""
19226 "If compiled with GNU readline support, then these files can be used to "
19227 "configure readline.  For further information, please see L<readline(3)/"
19228 "INITIALIZATION FILE>."
19229 msgstr ""
19230
19231 # type: textblock
19232 #: ../fish/guestfish.pod:1006
19233 msgid "To write rules which only apply to guestfish, use:"
19234 msgstr ""
19235
19236 # type: verbatim
19237 #: ../fish/guestfish.pod:1008
19238 #, no-wrap
19239 msgid ""
19240 " $if guestfish\n"
19241 " ...\n"
19242 " $endif\n"
19243 "\n"
19244 msgstr ""
19245
19246 # type: textblock
19247 #: ../fish/guestfish.pod:1012
19248 msgid ""
19249 "Variables that you can set in inputrc that change the behaviour of guestfish "
19250 "in useful ways include:"
19251 msgstr ""
19252
19253 # type: =item
19254 #: ../fish/guestfish.pod:1017
19255 msgid "completion-ignore-case (default: on)"
19256 msgstr ""
19257
19258 # type: textblock
19259 #: ../fish/guestfish.pod:1019
19260 msgid ""
19261 "By default, guestfish will ignore case when tab-completing paths on the "
19262 "disk.  Use:"
19263 msgstr ""
19264
19265 # type: verbatim
19266 #: ../fish/guestfish.pod:1022
19267 #, no-wrap
19268 msgid ""
19269 " set completion-ignore-case off\n"
19270 "\n"
19271 msgstr ""
19272
19273 # type: textblock
19274 #: ../fish/guestfish.pod:1024
19275 msgid "to make guestfish case sensitive."
19276 msgstr ""
19277
19278 # type: =item
19279 #: ../fish/guestfish.pod:1028
19280 msgid "test1.img"
19281 msgstr ""
19282
19283 # type: =item
19284 #: ../fish/guestfish.pod:1030
19285 msgid "test2.img (etc)"
19286 msgstr ""
19287
19288 # type: textblock
19289 #: ../fish/guestfish.pod:1032
19290 msgid ""
19291 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19292 "will be created in the file C<test1.img> in the current directory.  The "
19293 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19294 "the same name will be overwritten."
19295 msgstr ""
19296
19297 # type: textblock
19298 #: ../fish/guestfish.pod:1041
19299 msgid ""
19300 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19301 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19302 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19303 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19304 "L<hexedit(1)>."
19305 msgstr ""
19306
19307 # type: textblock
19308 #: ../fish/guestfish.pod:1067 ../test-tool/libguestfs-test-tool.pod:124
19309 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
19310 #: ../tools/virt-win-reg.pl:518 ../tools/virt-resize.pl:1512
19311 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300
19312 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
19313 msgid ""
19314 "This program is free software; you can redistribute it and/or modify it "
19315 "under the terms of the GNU General Public License as published by the Free "
19316 "Software Foundation; either version 2 of the License, or (at your option) "
19317 "any later version."
19318 msgstr ""
19319
19320 # type: textblock
19321 #: ../fish/guestfish.pod:1072 ../test-tool/libguestfs-test-tool.pod:129
19322 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
19323 #: ../tools/virt-win-reg.pl:523 ../tools/virt-resize.pl:1517
19324 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305
19325 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
19326 msgid ""
19327 "This program is distributed in the hope that it will be useful, but WITHOUT "
19328 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19329 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19330 "more details."
19331 msgstr ""
19332
19333 # type: textblock
19334 #: ../fish/guestfish.pod:1077 ../test-tool/libguestfs-test-tool.pod:134
19335 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
19336 #: ../tools/virt-win-reg.pl:528 ../tools/virt-resize.pl:1522
19337 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310
19338 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
19339 msgid ""
19340 "You should have received a copy of the GNU General Public License along with "
19341 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19342 "Ave, Cambridge, MA 02139, USA."
19343 msgstr ""
19344
19345 # type: =head2
19346 #: ../fish/guestfish-actions.pod:1
19347 msgid "add-cdrom"
19348 msgstr ""
19349
19350 # type: verbatim
19351 #: ../fish/guestfish-actions.pod:3
19352 #, no-wrap
19353 msgid ""
19354 " add-cdrom filename\n"
19355 "\n"
19356 msgstr ""
19357
19358 # type: textblock
19359 #: ../fish/guestfish-actions.pod:15
19360 msgid ""
19361 "This call checks for the existence of C<filename>.  This stops you from "
19362 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19363 "and C<http:> URLs.  To specify those, use the general L</config> call "
19364 "instead."
19365 msgstr ""
19366
19367 # type: textblock
19368 #: ../fish/guestfish-actions.pod:22
19369 msgid ""
19370 "If you just want to add an ISO file (often you use this as an efficient way "
19371 "to transfer large files into the guest), then you should probably use L</add-"
19372 "drive-ro> instead."
19373 msgstr ""
19374
19375 # type: =head2
19376 #: ../fish/guestfish-actions.pod:35
19377 msgid "add-domain"
19378 msgstr ""
19379
19380 # type: =head2
19381 #: ../fish/guestfish-actions.pod:37
19382 msgid "domain"
19383 msgstr ""
19384
19385 # type: verbatim
19386 #: ../fish/guestfish-actions.pod:39
19387 #, no-wrap
19388 msgid ""
19389 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19390 "\n"
19391 msgstr ""
19392
19393 # type: textblock
19394 #: ../fish/guestfish-actions.pod:41
19395 msgid ""
19396 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19397 "It works by connecting to libvirt, requesting the domain and domain XML from "
19398 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19399 msgstr ""
19400
19401 # type: textblock
19402 #: ../fish/guestfish-actions.pod:58
19403 msgid ""
19404 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19405 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19406 "libvirt URI (or one set through an environment variable, see the libvirt "
19407 "documentation for full details).  If you are using the C API directly then "
19408 "it is more flexible to create the libvirt connection object yourself, get "
19409 "the domain object, and call L</add-libvirt-dom>."
19410 msgstr ""
19411
19412 # type: textblock
19413 #: ../fish/guestfish-actions.pod:66
19414 msgid ""
19415 "The other optional parameters are passed directly through to L</add-drive-"
19416 "opts>."
19417 msgstr ""
19418
19419 # type: textblock
19420 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19421 #: ../fish/guestfish-actions.pod:2804
19422 msgid ""
19423 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19424 msgstr ""
19425
19426 # type: =head2
19427 #: ../fish/guestfish-actions.pod:71
19428 msgid "add-drive"
19429 msgstr ""
19430
19431 # type: verbatim
19432 #: ../fish/guestfish-actions.pod:73
19433 #, no-wrap
19434 msgid ""
19435 " add-drive filename\n"
19436 "\n"
19437 msgstr ""
19438
19439 # type: textblock
19440 #: ../fish/guestfish-actions.pod:75
19441 msgid ""
19442 "This function is the equivalent of calling L</add-drive-opts> with no "
19443 "optional parameters, so the disk is added writable, with the format being "
19444 "detected automatically."
19445 msgstr ""
19446
19447 # type: textblock
19448 #: ../fish/guestfish-actions.pod:79
19449 msgid ""
19450 "Automatic detection of the format opens you up to a potential security hole "
19451 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19452 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19453 "you should think about replacing calls to this function with calls to L</add-"
19454 "drive-opts>, and specifying the format."
19455 msgstr ""
19456
19457 # type: =head2
19458 #: ../fish/guestfish-actions.pod:86
19459 msgid "add-drive-opts"
19460 msgstr ""
19461
19462 # type: =head2
19463 #: ../fish/guestfish-actions.pod:88
19464 msgid "add"
19465 msgstr ""
19466
19467 # type: verbatim
19468 #: ../fish/guestfish-actions.pod:90
19469 #, no-wrap
19470 msgid ""
19471 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19472 "\n"
19473 msgstr ""
19474
19475 # type: textblock
19476 #: ../fish/guestfish-actions.pod:117
19477 msgid ""
19478 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19479 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19480 "include C<raw> and C<qcow2>."
19481 msgstr ""
19482
19483 # type: textblock
19484 #: ../fish/guestfish-actions.pod:128
19485 msgid ""
19486 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19487 "add-drive-with-if> call (q.v.)"
19488 msgstr ""
19489
19490 # type: =head2
19491 #: ../fish/guestfish-actions.pod:135
19492 msgid "add-drive-ro"
19493 msgstr ""
19494
19495 # type: =head2
19496 #: ../fish/guestfish-actions.pod:137
19497 msgid "add-ro"
19498 msgstr ""
19499
19500 # type: verbatim
19501 #: ../fish/guestfish-actions.pod:139
19502 #, no-wrap
19503 msgid ""
19504 " add-drive-ro filename\n"
19505 "\n"
19506 msgstr ""
19507
19508 # type: textblock
19509 #: ../fish/guestfish-actions.pod:141
19510 msgid ""
19511 "This function is the equivalent of calling L</add-drive-opts> with the "
19512 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19513 "is added read-only, with the format being detected automatically."
19514 msgstr ""
19515
19516 # type: =head2
19517 #: ../fish/guestfish-actions.pod:146
19518 msgid "add-drive-ro-with-if"
19519 msgstr ""
19520
19521 # type: verbatim
19522 #: ../fish/guestfish-actions.pod:148
19523 #, no-wrap
19524 msgid ""
19525 " add-drive-ro-with-if filename iface\n"
19526 "\n"
19527 msgstr ""
19528
19529 # type: textblock
19530 #: ../fish/guestfish-actions.pod:150
19531 msgid ""
19532 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19533 "interface emulation to use at run time."
19534 msgstr ""
19535
19536 # type: =head2
19537 #: ../fish/guestfish-actions.pod:160
19538 msgid "add-drive-with-if"
19539 msgstr ""
19540
19541 # type: verbatim
19542 #: ../fish/guestfish-actions.pod:162
19543 #, no-wrap
19544 msgid ""
19545 " add-drive-with-if filename iface\n"
19546 "\n"
19547 msgstr ""
19548
19549 # type: textblock
19550 #: ../fish/guestfish-actions.pod:164
19551 msgid ""
19552 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19553 "interface emulation to use at run time."
19554 msgstr ""
19555
19556 # type: =head2
19557 #: ../fish/guestfish-actions.pod:174
19558 msgid "aug-clear"
19559 msgstr ""
19560
19561 # type: verbatim
19562 #: ../fish/guestfish-actions.pod:176
19563 #, no-wrap
19564 msgid ""
19565 " aug-clear augpath\n"
19566 "\n"
19567 msgstr ""
19568
19569 # type: =head2
19570 #: ../fish/guestfish-actions.pod:181
19571 msgid "aug-close"
19572 msgstr ""
19573
19574 # type: verbatim
19575 #: ../fish/guestfish-actions.pod:183
19576 #, no-wrap
19577 msgid ""
19578 " aug-close\n"
19579 "\n"
19580 msgstr ""
19581
19582 # type: textblock
19583 #: ../fish/guestfish-actions.pod:185
19584 msgid ""
19585 "Close the current Augeas handle and free up any resources used by it.  After "
19586 "calling this, you have to call L</aug-init> again before you can use any "
19587 "other Augeas functions."
19588 msgstr ""
19589
19590 # type: =head2
19591 #: ../fish/guestfish-actions.pod:190
19592 msgid "aug-defnode"
19593 msgstr ""
19594
19595 # type: verbatim
19596 #: ../fish/guestfish-actions.pod:192
19597 #, no-wrap
19598 msgid ""
19599 " aug-defnode name expr val\n"
19600 "\n"
19601 msgstr ""
19602
19603 # type: textblock
19604 #: ../fish/guestfish-actions.pod:197
19605 msgid ""
19606 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19607 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19608 "containing that single node."
19609 msgstr ""
19610
19611 # type: =head2
19612 #: ../fish/guestfish-actions.pod:205
19613 msgid "aug-defvar"
19614 msgstr ""
19615
19616 # type: verbatim
19617 #: ../fish/guestfish-actions.pod:207
19618 #, no-wrap
19619 msgid ""
19620 " aug-defvar name expr\n"
19621 "\n"
19622 msgstr ""
19623
19624 # type: =head2
19625 #: ../fish/guestfish-actions.pod:216
19626 msgid "aug-get"
19627 msgstr ""
19628
19629 # type: verbatim
19630 #: ../fish/guestfish-actions.pod:218
19631 #, no-wrap
19632 msgid ""
19633 " aug-get augpath\n"
19634 "\n"
19635 msgstr ""
19636
19637 # type: =head2
19638 #: ../fish/guestfish-actions.pod:223
19639 msgid "aug-init"
19640 msgstr ""
19641
19642 # type: verbatim
19643 #: ../fish/guestfish-actions.pod:225
19644 #, no-wrap
19645 msgid ""
19646 " aug-init root flags\n"
19647 "\n"
19648 msgstr ""
19649
19650 # type: textblock
19651 #: ../fish/guestfish-actions.pod:231
19652 msgid "You must call this before using any other L</aug-*> commands."
19653 msgstr ""
19654
19655 # type: textblock
19656 #: ../fish/guestfish-actions.pod:266
19657 msgid "Do not load the tree in L</aug-init>."
19658 msgstr ""
19659
19660 # type: textblock
19661 #: ../fish/guestfish-actions.pod:270
19662 msgid "To close the handle, you can call L</aug-close>."
19663 msgstr ""
19664
19665 # type: =head2
19666 #: ../fish/guestfish-actions.pod:274
19667 msgid "aug-insert"
19668 msgstr ""
19669
19670 # type: verbatim
19671 #: ../fish/guestfish-actions.pod:276
19672 #, no-wrap
19673 msgid ""
19674 " aug-insert augpath label true|false\n"
19675 "\n"
19676 msgstr ""
19677
19678 # type: =head2
19679 #: ../fish/guestfish-actions.pod:286
19680 msgid "aug-load"
19681 msgstr ""
19682
19683 # type: verbatim
19684 #: ../fish/guestfish-actions.pod:288
19685 #, no-wrap
19686 msgid ""
19687 " aug-load\n"
19688 "\n"
19689 msgstr ""
19690
19691 # type: =head2
19692 #: ../fish/guestfish-actions.pod:295
19693 msgid "aug-ls"
19694 msgstr ""
19695
19696 # type: verbatim
19697 #: ../fish/guestfish-actions.pod:297
19698 #, no-wrap
19699 msgid ""
19700 " aug-ls augpath\n"
19701 "\n"
19702 msgstr ""
19703
19704 # type: textblock
19705 #: ../fish/guestfish-actions.pod:299
19706 msgid ""
19707 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19708 "resulting nodes into alphabetical order."
19709 msgstr ""
19710
19711 # type: =head2
19712 #: ../fish/guestfish-actions.pod:302
19713 msgid "aug-match"
19714 msgstr ""
19715
19716 # type: verbatim
19717 #: ../fish/guestfish-actions.pod:304
19718 #, no-wrap
19719 msgid ""
19720 " aug-match augpath\n"
19721 "\n"
19722 msgstr ""
19723
19724 # type: =head2
19725 #: ../fish/guestfish-actions.pod:310
19726 msgid "aug-mv"
19727 msgstr ""
19728
19729 # type: verbatim
19730 #: ../fish/guestfish-actions.pod:312
19731 #, no-wrap
19732 msgid ""
19733 " aug-mv src dest\n"
19734 "\n"
19735 msgstr ""
19736
19737 # type: =head2
19738 #: ../fish/guestfish-actions.pod:317
19739 msgid "aug-rm"
19740 msgstr ""
19741
19742 # type: verbatim
19743 #: ../fish/guestfish-actions.pod:319
19744 #, no-wrap
19745 msgid ""
19746 " aug-rm augpath\n"
19747 "\n"
19748 msgstr ""
19749
19750 # type: =head2
19751 #: ../fish/guestfish-actions.pod:325
19752 msgid "aug-save"
19753 msgstr ""
19754
19755 # type: verbatim
19756 #: ../fish/guestfish-actions.pod:327
19757 #, no-wrap
19758 msgid ""
19759 " aug-save\n"
19760 "\n"
19761 msgstr ""
19762
19763 # type: textblock
19764 #: ../fish/guestfish-actions.pod:331
19765 msgid ""
19766 "The flags which were passed to L</aug-init> affect exactly how files are "
19767 "saved."
19768 msgstr ""
19769
19770 # type: =head2
19771 #: ../fish/guestfish-actions.pod:334
19772 msgid "aug-set"
19773 msgstr ""
19774
19775 # type: verbatim
19776 #: ../fish/guestfish-actions.pod:336
19777 #, no-wrap
19778 msgid ""
19779 " aug-set augpath val\n"
19780 "\n"
19781 msgstr ""
19782
19783 # type: textblock
19784 #: ../fish/guestfish-actions.pod:340
19785 msgid ""
19786 "In the Augeas API, it is possible to clear a node by setting the value to "
19787 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19788 "this call.  Instead you must use the L</aug-clear> call."
19789 msgstr ""
19790
19791 # type: =head2
19792 #: ../fish/guestfish-actions.pod:345
19793 msgid "available"
19794 msgstr ""
19795
19796 # type: verbatim
19797 #: ../fish/guestfish-actions.pod:347
19798 #, no-wrap
19799 msgid ""
19800 " available 'groups ...'\n"
19801 "\n"
19802 msgstr ""
19803
19804 # type: textblock
19805 #: ../fish/guestfish-actions.pod:353
19806 msgid ""
19807 "The libguestfs groups, and the functions that those groups correspond to, "
19808 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19809 "runtime by calling L</available-all-groups>."
19810 msgstr ""
19811
19812 # type: textblock
19813 #: ../fish/guestfish-actions.pod:377
19814 msgid "You must call L</launch> before calling this function."
19815 msgstr ""
19816
19817 # type: textblock
19818 #: ../fish/guestfish-actions.pod:399
19819 msgid ""
19820 "This call was added in version C<1.0.80>.  In previous versions of "
19821 "libguestfs all you could do would be to speculatively execute a command to "
19822 "find out if the daemon implemented it.  See also L</version>."
19823 msgstr ""
19824
19825 # type: =head2
19826 #: ../fish/guestfish-actions.pod:406
19827 msgid "available-all-groups"
19828 msgstr ""
19829
19830 # type: verbatim
19831 #: ../fish/guestfish-actions.pod:408
19832 #, no-wrap
19833 msgid ""
19834 " available-all-groups\n"
19835 "\n"
19836 msgstr ""
19837
19838 # type: textblock
19839 #: ../fish/guestfish-actions.pod:410
19840 msgid ""
19841 "This command returns a list of all optional groups that this daemon knows "
19842 "about.  Note this returns both supported and unsupported groups.  To find "
19843 "out which ones the daemon can actually support you have to call L</"
19844 "available> on each member of the returned list."
19845 msgstr ""
19846
19847 # type: textblock
19848 #: ../fish/guestfish-actions.pod:416
19849 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19850 msgstr ""
19851
19852 # type: =head2
19853 #: ../fish/guestfish-actions.pod:418
19854 msgid "base64-in"
19855 msgstr ""
19856
19857 # type: verbatim
19858 #: ../fish/guestfish-actions.pod:420
19859 #, no-wrap
19860 msgid ""
19861 " base64-in (base64file|-) filename\n"
19862 "\n"
19863 msgstr ""
19864
19865 # type: textblock
19866 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
19867 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
19868 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
19869 #: ../fish/guestfish-actions.pod:4159 ../fish/guestfish-actions.pod:4171
19870 #: ../fish/guestfish-actions.pod:4182 ../fish/guestfish-actions.pod:4193
19871 #: ../fish/guestfish-actions.pod:4245 ../fish/guestfish-actions.pod:4254
19872 #: ../fish/guestfish-actions.pod:4308 ../fish/guestfish-actions.pod:4331
19873 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19874 msgstr ""
19875
19876 # type: =head2
19877 #: ../fish/guestfish-actions.pod:427
19878 msgid "base64-out"
19879 msgstr ""
19880
19881 # type: verbatim
19882 #: ../fish/guestfish-actions.pod:429
19883 #, no-wrap
19884 msgid ""
19885 " base64-out filename (base64file|-)\n"
19886 "\n"
19887 msgstr ""
19888
19889 # type: =head2
19890 #: ../fish/guestfish-actions.pod:436
19891 msgid "blockdev-flushbufs"
19892 msgstr ""
19893
19894 # type: verbatim
19895 #: ../fish/guestfish-actions.pod:438
19896 #, no-wrap
19897 msgid ""
19898 " blockdev-flushbufs device\n"
19899 "\n"
19900 msgstr ""
19901
19902 # type: =head2
19903 #: ../fish/guestfish-actions.pod:445
19904 msgid "blockdev-getbsz"
19905 msgstr ""
19906
19907 # type: verbatim
19908 #: ../fish/guestfish-actions.pod:447
19909 #, no-wrap
19910 msgid ""
19911 " blockdev-getbsz device\n"
19912 "\n"
19913 msgstr ""
19914
19915 # type: =head2
19916 #: ../fish/guestfish-actions.pod:456
19917 msgid "blockdev-getro"
19918 msgstr ""
19919
19920 # type: verbatim
19921 #: ../fish/guestfish-actions.pod:458
19922 #, no-wrap
19923 msgid ""
19924 " blockdev-getro device\n"
19925 "\n"
19926 msgstr ""
19927
19928 # type: =head2
19929 #: ../fish/guestfish-actions.pod:465
19930 msgid "blockdev-getsize64"
19931 msgstr ""
19932
19933 # type: verbatim
19934 #: ../fish/guestfish-actions.pod:467
19935 #, no-wrap
19936 msgid ""
19937 " blockdev-getsize64 device\n"
19938 "\n"
19939 msgstr ""
19940
19941 # type: textblock
19942 #: ../fish/guestfish-actions.pod:471
19943 msgid "See also L</blockdev-getsz>."
19944 msgstr ""
19945
19946 # type: =head2
19947 #: ../fish/guestfish-actions.pod:475
19948 msgid "blockdev-getss"
19949 msgstr ""
19950
19951 # type: verbatim
19952 #: ../fish/guestfish-actions.pod:477
19953 #, no-wrap
19954 msgid ""
19955 " blockdev-getss device\n"
19956 "\n"
19957 msgstr ""
19958
19959 # type: textblock
19960 #: ../fish/guestfish-actions.pod:482
19961 msgid ""
19962 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19963 msgstr ""
19964
19965 # type: =head2
19966 #: ../fish/guestfish-actions.pod:487
19967 msgid "blockdev-getsz"
19968 msgstr ""
19969
19970 # type: verbatim
19971 #: ../fish/guestfish-actions.pod:489
19972 #, no-wrap
19973 msgid ""
19974 " blockdev-getsz device\n"
19975 "\n"
19976 msgstr ""
19977
19978 # type: textblock
19979 #: ../fish/guestfish-actions.pod:494
19980 msgid ""
19981 "See also L</blockdev-getss> for the real sector size of the device, and L</"
19982 "blockdev-getsize64> for the more useful I<size in bytes>."
19983 msgstr ""
19984
19985 # type: =head2
19986 #: ../fish/guestfish-actions.pod:500
19987 msgid "blockdev-rereadpt"
19988 msgstr ""
19989
19990 # type: verbatim
19991 #: ../fish/guestfish-actions.pod:502
19992 #, no-wrap
19993 msgid ""
19994 " blockdev-rereadpt device\n"
19995 "\n"
19996 msgstr ""
19997
19998 # type: =head2
19999 #: ../fish/guestfish-actions.pod:508
20000 msgid "blockdev-setbsz"
20001 msgstr ""
20002
20003 # type: verbatim
20004 #: ../fish/guestfish-actions.pod:510
20005 #, no-wrap
20006 msgid ""
20007 " blockdev-setbsz device blocksize\n"
20008 "\n"
20009 msgstr ""
20010
20011 # type: =head2
20012 #: ../fish/guestfish-actions.pod:519
20013 msgid "blockdev-setro"
20014 msgstr ""
20015
20016 # type: verbatim
20017 #: ../fish/guestfish-actions.pod:521
20018 #, no-wrap
20019 msgid ""
20020 " blockdev-setro device\n"
20021 "\n"
20022 msgstr ""
20023
20024 # type: =head2
20025 #: ../fish/guestfish-actions.pod:527
20026 msgid "blockdev-setrw"
20027 msgstr ""
20028
20029 # type: verbatim
20030 #: ../fish/guestfish-actions.pod:529
20031 #, no-wrap
20032 msgid ""
20033 " blockdev-setrw device\n"
20034 "\n"
20035 msgstr ""
20036
20037 # type: =head2
20038 #: ../fish/guestfish-actions.pod:535
20039 msgid "case-sensitive-path"
20040 msgstr ""
20041
20042 # type: verbatim
20043 #: ../fish/guestfish-actions.pod:537
20044 #, no-wrap
20045 msgid ""
20046 " case-sensitive-path path\n"
20047 "\n"
20048 msgstr ""
20049
20050 # type: textblock
20051 #: ../fish/guestfish-actions.pod:561
20052 msgid ""
20053 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
20054 "WINDOWS/system32\"> (the exact return value would depend on details of how "
20055 "the directories were originally created under Windows)."
20056 msgstr ""
20057
20058 # type: textblock
20059 #: ../fish/guestfish-actions.pod:569
20060 msgid "See also L</realpath>."
20061 msgstr ""
20062
20063 # type: =head2
20064 #: ../fish/guestfish-actions.pod:571
20065 msgid "cat"
20066 msgstr ""
20067
20068 # type: verbatim
20069 #: ../fish/guestfish-actions.pod:573
20070 #, no-wrap
20071 msgid ""
20072 " cat path\n"
20073 "\n"
20074 msgstr ""
20075
20076 # type: textblock
20077 #: ../fish/guestfish-actions.pod:577
20078 msgid ""
20079 "Note that this function cannot correctly handle binary files (specifically, "
20080 "files containing C<\\0> character which is treated as end of string).  For "
20081 "those you need to use the L</read-file> or L</download> functions which have "
20082 "a more complex interface."
20083 msgstr ""
20084
20085 # type: =head2
20086 #: ../fish/guestfish-actions.pod:585
20087 msgid "checksum"
20088 msgstr ""
20089
20090 # type: verbatim
20091 #: ../fish/guestfish-actions.pod:587
20092 #, no-wrap
20093 msgid ""
20094 " checksum csumtype path\n"
20095 "\n"
20096 msgstr ""
20097
20098 # type: textblock
20099 #: ../fish/guestfish-actions.pod:630
20100 msgid "To get the checksum for a device, use L</checksum-device>."
20101 msgstr ""
20102
20103 # type: textblock
20104 #: ../fish/guestfish-actions.pod:632
20105 msgid "To get the checksums for many files, use L</checksums-out>."
20106 msgstr ""
20107
20108 # type: =head2
20109 #: ../fish/guestfish-actions.pod:634
20110 msgid "checksum-device"
20111 msgstr ""
20112
20113 # type: verbatim
20114 #: ../fish/guestfish-actions.pod:636
20115 #, no-wrap
20116 msgid ""
20117 " checksum-device csumtype device\n"
20118 "\n"
20119 msgstr ""
20120
20121 # type: textblock
20122 #: ../fish/guestfish-actions.pod:638
20123 msgid ""
20124 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20125 "device named C<device>.  For the types of checksums supported see the L</"
20126 "checksum> command."
20127 msgstr ""
20128
20129 # type: =head2
20130 #: ../fish/guestfish-actions.pod:642
20131 msgid "checksums-out"
20132 msgstr ""
20133
20134 # type: verbatim
20135 #: ../fish/guestfish-actions.pod:644
20136 #, no-wrap
20137 msgid ""
20138 " checksums-out csumtype directory (sumsfile|-)\n"
20139 "\n"
20140 msgstr ""
20141
20142 # type: =head2
20143 #: ../fish/guestfish-actions.pod:660
20144 msgid "chmod"
20145 msgstr ""
20146
20147 # type: verbatim
20148 #: ../fish/guestfish-actions.pod:662
20149 #, no-wrap
20150 msgid ""
20151 " chmod mode path\n"
20152 "\n"
20153 msgstr ""
20154
20155 # type: =head2
20156 #: ../fish/guestfish-actions.pod:673
20157 msgid "chown"
20158 msgstr ""
20159
20160 # type: verbatim
20161 #: ../fish/guestfish-actions.pod:675
20162 #, no-wrap
20163 msgid ""
20164 " chown owner group path\n"
20165 "\n"
20166 msgstr ""
20167
20168 # type: =head2
20169 #: ../fish/guestfish-actions.pod:683
20170 msgid "command"
20171 msgstr ""
20172
20173 # type: verbatim
20174 #: ../fish/guestfish-actions.pod:685
20175 #, no-wrap
20176 msgid ""
20177 " command 'arguments ...'\n"
20178 "\n"
20179 msgstr ""
20180
20181 # type: textblock
20182 #: ../fish/guestfish-actions.pod:692
20183 msgid ""
20184 "The single parameter is an argv-style list of arguments.  The first element "
20185 "is the name of the program to run.  Subsequent elements are parameters.  The "
20186 "list must be non-empty (ie. must contain a program name).  Note that the "
20187 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20188 msgstr ""
20189
20190 # type: =head2
20191 #: ../fish/guestfish-actions.pod:720
20192 msgid "command-lines"
20193 msgstr ""
20194
20195 # type: verbatim
20196 #: ../fish/guestfish-actions.pod:722
20197 #, no-wrap
20198 msgid ""
20199 " command-lines 'arguments ...'\n"
20200 "\n"
20201 msgstr ""
20202
20203 # type: textblock
20204 #: ../fish/guestfish-actions.pod:724
20205 msgid ""
20206 "This is the same as L</command>, but splits the result into a list of lines."
20207 msgstr ""
20208
20209 # type: textblock
20210 #: ../fish/guestfish-actions.pod:727
20211 msgid "See also: L</sh-lines>"
20212 msgstr ""
20213
20214 # type: =head2
20215 #: ../fish/guestfish-actions.pod:732
20216 msgid "config"
20217 msgstr ""
20218
20219 # type: verbatim
20220 #: ../fish/guestfish-actions.pod:734
20221 #, no-wrap
20222 msgid ""
20223 " config qemuparam qemuvalue\n"
20224 "\n"
20225 msgstr ""
20226
20227 # type: =head2
20228 #: ../fish/guestfish-actions.pod:745
20229 msgid "copy-size"
20230 msgstr ""
20231
20232 # type: verbatim
20233 #: ../fish/guestfish-actions.pod:747
20234 #, no-wrap
20235 msgid ""
20236 " copy-size src dest size\n"
20237 "\n"
20238 msgstr ""
20239
20240 # type: =head2
20241 #: ../fish/guestfish-actions.pod:755
20242 msgid "cp"
20243 msgstr ""
20244
20245 # type: verbatim
20246 #: ../fish/guestfish-actions.pod:757
20247 #, no-wrap
20248 msgid ""
20249 " cp src dest\n"
20250 "\n"
20251 msgstr ""
20252
20253 # type: =head2
20254 #: ../fish/guestfish-actions.pod:762
20255 msgid "cp-a"
20256 msgstr ""
20257
20258 # type: verbatim
20259 #: ../fish/guestfish-actions.pod:764
20260 #, no-wrap
20261 msgid ""
20262 " cp-a src dest\n"
20263 "\n"
20264 msgstr ""
20265
20266 # type: =head2
20267 #: ../fish/guestfish-actions.pod:769
20268 msgid "dd"
20269 msgstr ""
20270
20271 # type: verbatim
20272 #: ../fish/guestfish-actions.pod:771
20273 #, no-wrap
20274 msgid ""
20275 " dd src dest\n"
20276 "\n"
20277 msgstr ""
20278
20279 # type: textblock
20280 #: ../fish/guestfish-actions.pod:778
20281 msgid ""
20282 "If the destination is a device, it must be as large or larger than the "
20283 "source file or device, otherwise the copy will fail.  This command cannot do "
20284 "partial copies (see L</copy-size>)."
20285 msgstr ""
20286
20287 # type: =head2
20288 #: ../fish/guestfish-actions.pod:782
20289 msgid "df"
20290 msgstr ""
20291
20292 # type: verbatim
20293 #: ../fish/guestfish-actions.pod:784
20294 #, no-wrap
20295 msgid ""
20296 " df\n"
20297 "\n"
20298 msgstr ""
20299
20300 # type: =head2
20301 #: ../fish/guestfish-actions.pod:792
20302 msgid "df-h"
20303 msgstr ""
20304
20305 # type: verbatim
20306 #: ../fish/guestfish-actions.pod:794
20307 #, no-wrap
20308 msgid ""
20309 " df-h\n"
20310 "\n"
20311 msgstr ""
20312
20313 # type: =head2
20314 #: ../fish/guestfish-actions.pod:803
20315 msgid "dmesg"
20316 msgstr ""
20317
20318 # type: verbatim
20319 #: ../fish/guestfish-actions.pod:805
20320 #, no-wrap
20321 msgid ""
20322 " dmesg\n"
20323 "\n"
20324 msgstr ""
20325
20326 # type: textblock
20327 #: ../fish/guestfish-actions.pod:811
20328 msgid ""
20329 "Another way to get the same information is to enable verbose messages with "
20330 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20331 "before running the program."
20332 msgstr ""
20333
20334 # type: =head2
20335 #: ../fish/guestfish-actions.pod:816
20336 msgid "download"
20337 msgstr ""
20338
20339 # type: verbatim
20340 #: ../fish/guestfish-actions.pod:818
20341 #, no-wrap
20342 msgid ""
20343 " download remotefilename (filename|-)\n"
20344 "\n"
20345 msgstr ""
20346
20347 # type: textblock
20348 #: ../fish/guestfish-actions.pod:825
20349 msgid "See also L</upload>, L</cat>."
20350 msgstr ""
20351
20352 # type: =head2
20353 #: ../fish/guestfish-actions.pod:829
20354 msgid "download-offset"
20355 msgstr ""
20356
20357 # type: verbatim
20358 #: ../fish/guestfish-actions.pod:831
20359 #, no-wrap
20360 msgid ""
20361 " download-offset remotefilename (filename|-) offset size\n"
20362 "\n"
20363 msgstr ""
20364
20365 # type: textblock
20366 #: ../fish/guestfish-actions.pod:839
20367 msgid ""
20368 "Note that there is no limit on the amount of data that can be downloaded "
20369 "with this call, unlike with L</pread>, and this call always reads the full "
20370 "amount unless an error occurs."
20371 msgstr ""
20372
20373 # type: textblock
20374 #: ../fish/guestfish-actions.pod:844
20375 msgid "See also L</download>, L</pread>."
20376 msgstr ""
20377
20378 # type: =head2
20379 #: ../fish/guestfish-actions.pod:848
20380 msgid "drop-caches"
20381 msgstr ""
20382
20383 # type: verbatim
20384 #: ../fish/guestfish-actions.pod:850
20385 #, no-wrap
20386 msgid ""
20387 " drop-caches whattodrop\n"
20388 "\n"
20389 msgstr ""
20390
20391 # type: =head2
20392 #: ../fish/guestfish-actions.pod:862
20393 msgid "du"
20394 msgstr ""
20395
20396 # type: verbatim
20397 #: ../fish/guestfish-actions.pod:864
20398 #, no-wrap
20399 msgid ""
20400 " du path\n"
20401 "\n"
20402 msgstr ""
20403
20404 # type: =head2
20405 #: ../fish/guestfish-actions.pod:876
20406 msgid "e2fsck-f"
20407 msgstr ""
20408
20409 # type: verbatim
20410 #: ../fish/guestfish-actions.pod:878
20411 #, no-wrap
20412 msgid ""
20413 " e2fsck-f device\n"
20414 "\n"
20415 msgstr ""
20416
20417 # type: textblock
20418 #: ../fish/guestfish-actions.pod:884
20419 msgid ""
20420 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20421 "should use L</fsck>."
20422 msgstr ""
20423
20424 # type: =head2
20425 #: ../fish/guestfish-actions.pod:887
20426 msgid "echo-daemon"
20427 msgstr ""
20428
20429 # type: verbatim
20430 #: ../fish/guestfish-actions.pod:889
20431 #, no-wrap
20432 msgid ""
20433 " echo-daemon 'words ...'\n"
20434 "\n"
20435 msgstr ""
20436
20437 # type: textblock
20438 #: ../fish/guestfish-actions.pod:896
20439 msgid "See also L</ping-daemon>."
20440 msgstr ""
20441
20442 # type: =head2
20443 #: ../fish/guestfish-actions.pod:898
20444 msgid "egrep"
20445 msgstr ""
20446
20447 # type: verbatim
20448 #: ../fish/guestfish-actions.pod:900
20449 #, no-wrap
20450 msgid ""
20451 " egrep regex path\n"
20452 "\n"
20453 msgstr ""
20454
20455 # type: =head2
20456 #: ../fish/guestfish-actions.pod:908
20457 msgid "egrepi"
20458 msgstr ""
20459
20460 # type: verbatim
20461 #: ../fish/guestfish-actions.pod:910
20462 #, no-wrap
20463 msgid ""
20464 " egrepi regex path\n"
20465 "\n"
20466 msgstr ""
20467
20468 # type: =head2
20469 #: ../fish/guestfish-actions.pod:918
20470 msgid "equal"
20471 msgstr ""
20472
20473 # type: verbatim
20474 #: ../fish/guestfish-actions.pod:920
20475 #, no-wrap
20476 msgid ""
20477 " equal file1 file2\n"
20478 "\n"
20479 msgstr ""
20480
20481 # type: =head2
20482 #: ../fish/guestfish-actions.pod:927
20483 msgid "exists"
20484 msgstr ""
20485
20486 # type: verbatim
20487 #: ../fish/guestfish-actions.pod:929
20488 #, no-wrap
20489 msgid ""
20490 " exists path\n"
20491 "\n"
20492 msgstr ""
20493
20494 # type: textblock
20495 #: ../fish/guestfish-actions.pod:934
20496 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20497 msgstr ""
20498
20499 # type: =head2
20500 #: ../fish/guestfish-actions.pod:936
20501 msgid "fallocate"
20502 msgstr ""
20503
20504 # type: verbatim
20505 #: ../fish/guestfish-actions.pod:938
20506 #, no-wrap
20507 msgid ""
20508 " fallocate path len\n"
20509 "\n"
20510 msgstr ""
20511
20512 # type: =head2
20513 #: ../fish/guestfish-actions.pod:955
20514 msgid "fallocate64"
20515 msgstr ""
20516
20517 # type: verbatim
20518 #: ../fish/guestfish-actions.pod:957
20519 #, no-wrap
20520 msgid ""
20521 " fallocate64 path len\n"
20522 "\n"
20523 msgstr ""
20524
20525 # type: textblock
20526 #: ../fish/guestfish-actions.pod:963
20527 msgid ""
20528 "Note that this call allocates disk blocks for the file.  To create a sparse "
20529 "file use L</truncate-size> instead."
20530 msgstr ""
20531
20532 # type: textblock
20533 #: ../fish/guestfish-actions.pod:966
20534 msgid ""
20535 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20536 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20537 "maximum size of files created through that call to 1GB."
20538 msgstr ""
20539
20540 # type: =head2
20541 #: ../fish/guestfish-actions.pod:975
20542 msgid "fgrep"
20543 msgstr ""
20544
20545 # type: verbatim
20546 #: ../fish/guestfish-actions.pod:977
20547 #, no-wrap
20548 msgid ""
20549 " fgrep pattern path\n"
20550 "\n"
20551 msgstr ""
20552
20553 # type: =head2
20554 #: ../fish/guestfish-actions.pod:985
20555 msgid "fgrepi"
20556 msgstr ""
20557
20558 # type: verbatim
20559 #: ../fish/guestfish-actions.pod:987
20560 #, no-wrap
20561 msgid ""
20562 " fgrepi pattern path\n"
20563 "\n"
20564 msgstr ""
20565
20566 # type: =head2
20567 #: ../fish/guestfish-actions.pod:995
20568 msgid "file"
20569 msgstr ""
20570
20571 # type: verbatim
20572 #: ../fish/guestfish-actions.pod:997
20573 #, no-wrap
20574 msgid ""
20575 " file path\n"
20576 "\n"
20577 msgstr ""
20578
20579 # type: textblock
20580 #: ../fish/guestfish-actions.pod:1009
20581 msgid ""
20582 "This command can also be used on C</dev/> devices (and partitions, LV "
20583 "names).  You can for example use this to determine if a device contains a "
20584 "filesystem, although it's usually better to use L</vfs-type>."
20585 msgstr ""
20586
20587 # type: =head2
20588 #: ../fish/guestfish-actions.pod:1019
20589 msgid "file-architecture"
20590 msgstr ""
20591
20592 # type: verbatim
20593 #: ../fish/guestfish-actions.pod:1021
20594 #, no-wrap
20595 msgid ""
20596 " file-architecture filename\n"
20597 "\n"
20598 msgstr ""
20599
20600 # type: =head2
20601 #: ../fish/guestfish-actions.pod:1124
20602 msgid "filesize"
20603 msgstr ""
20604
20605 # type: verbatim
20606 #: ../fish/guestfish-actions.pod:1126
20607 #, no-wrap
20608 msgid ""
20609 " filesize file\n"
20610 "\n"
20611 msgstr ""
20612
20613 # type: textblock
20614 #: ../fish/guestfish-actions.pod:1130
20615 msgid ""
20616 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20617 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20618 msgstr ""
20619
20620 # type: =head2
20621 #: ../fish/guestfish-actions.pod:1134
20622 msgid "fill"
20623 msgstr ""
20624
20625 # type: verbatim
20626 #: ../fish/guestfish-actions.pod:1136
20627 #, no-wrap
20628 msgid ""
20629 " fill c len path\n"
20630 "\n"
20631 msgstr ""
20632
20633 # type: textblock
20634 #: ../fish/guestfish-actions.pod:1142
20635 msgid ""
20636 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20637 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20638 "L</fill-pattern>."
20639 msgstr ""
20640
20641 # type: =head2
20642 #: ../fish/guestfish-actions.pod:1147
20643 msgid "fill-pattern"
20644 msgstr ""
20645
20646 # type: verbatim
20647 #: ../fish/guestfish-actions.pod:1149
20648 #, no-wrap
20649 msgid ""
20650 " fill-pattern pattern len path\n"
20651 "\n"
20652 msgstr ""
20653
20654 # type: textblock
20655 #: ../fish/guestfish-actions.pod:1151
20656 msgid ""
20657 "This function is like L</fill> except that it creates a new file of length "
20658 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20659 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20660 "bytes."
20661 msgstr ""
20662
20663 # type: =head2
20664 #: ../fish/guestfish-actions.pod:1156
20665 msgid "find"
20666 msgstr ""
20667
20668 # type: verbatim
20669 #: ../fish/guestfish-actions.pod:1158
20670 #, no-wrap
20671 msgid ""
20672 " find directory\n"
20673 "\n"
20674 msgstr ""
20675
20676 # type: textblock
20677 #: ../fish/guestfish-actions.pod:1172
20678 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20679 msgstr ""
20680
20681 # type: textblock
20682 #: ../fish/guestfish-actions.pod:1185
20683 msgid "See also L</find0>."
20684 msgstr ""
20685
20686 # type: =head2
20687 #: ../fish/guestfish-actions.pod:1190
20688 msgid "find0"
20689 msgstr ""
20690
20691 # type: verbatim
20692 #: ../fish/guestfish-actions.pod:1192
20693 #, no-wrap
20694 msgid ""
20695 " find0 directory (files|-)\n"
20696 "\n"
20697 msgstr ""
20698
20699 # type: textblock
20700 #: ../fish/guestfish-actions.pod:1198
20701 msgid ""
20702 "This command works the same way as L</find> with the following exceptions:"
20703 msgstr ""
20704
20705 # type: =head2
20706 #: ../fish/guestfish-actions.pod:1225
20707 msgid "findfs-label"
20708 msgstr ""
20709
20710 # type: verbatim
20711 #: ../fish/guestfish-actions.pod:1227
20712 #, no-wrap
20713 msgid ""
20714 " findfs-label label\n"
20715 "\n"
20716 msgstr ""
20717
20718 # type: textblock
20719 #: ../fish/guestfish-actions.pod:1233
20720 msgid "To find the label of a filesystem, use L</vfs-label>."
20721 msgstr ""
20722
20723 # type: =head2
20724 #: ../fish/guestfish-actions.pod:1235
20725 msgid "findfs-uuid"
20726 msgstr ""
20727
20728 # type: verbatim
20729 #: ../fish/guestfish-actions.pod:1237
20730 #, no-wrap
20731 msgid ""
20732 " findfs-uuid uuid\n"
20733 "\n"
20734 msgstr ""
20735
20736 # type: textblock
20737 #: ../fish/guestfish-actions.pod:1243
20738 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20739 msgstr ""
20740
20741 # type: =head2
20742 #: ../fish/guestfish-actions.pod:1245
20743 msgid "fsck"
20744 msgstr ""
20745
20746 # type: verbatim
20747 #: ../fish/guestfish-actions.pod:1247
20748 #, no-wrap
20749 msgid ""
20750 " fsck fstype device\n"
20751 "\n"
20752 msgstr ""
20753
20754 # type: =head2
20755 #: ../fish/guestfish-actions.pod:1277
20756 msgid "get-append"
20757 msgstr ""
20758
20759 # type: verbatim
20760 #: ../fish/guestfish-actions.pod:1279
20761 #, no-wrap
20762 msgid ""
20763 " get-append\n"
20764 "\n"
20765 msgstr ""
20766
20767 # type: =head2
20768 #: ../fish/guestfish-actions.pod:1286
20769 msgid "get-autosync"
20770 msgstr ""
20771
20772 # type: verbatim
20773 #: ../fish/guestfish-actions.pod:1288
20774 #, no-wrap
20775 msgid ""
20776 " get-autosync\n"
20777 "\n"
20778 msgstr ""
20779
20780 # type: =head2
20781 #: ../fish/guestfish-actions.pod:1292
20782 msgid "get-direct"
20783 msgstr ""
20784
20785 # type: verbatim
20786 #: ../fish/guestfish-actions.pod:1294
20787 #, no-wrap
20788 msgid ""
20789 " get-direct\n"
20790 "\n"
20791 msgstr ""
20792
20793 # type: =head2
20794 #: ../fish/guestfish-actions.pod:1298
20795 msgid "get-e2label"
20796 msgstr ""
20797
20798 # type: verbatim
20799 #: ../fish/guestfish-actions.pod:1300
20800 #, no-wrap
20801 msgid ""
20802 " get-e2label device\n"
20803 "\n"
20804 msgstr ""
20805
20806 # type: =head2
20807 #: ../fish/guestfish-actions.pod:1312
20808 msgid "get-e2uuid"
20809 msgstr ""
20810
20811 # type: verbatim
20812 #: ../fish/guestfish-actions.pod:1314
20813 #, no-wrap
20814 msgid ""
20815 " get-e2uuid device\n"
20816 "\n"
20817 msgstr ""
20818
20819 # type: =head2
20820 #: ../fish/guestfish-actions.pod:1326
20821 msgid "get-memsize"
20822 msgstr ""
20823
20824 # type: verbatim
20825 #: ../fish/guestfish-actions.pod:1328
20826 #, no-wrap
20827 msgid ""
20828 " get-memsize\n"
20829 "\n"
20830 msgstr ""
20831
20832 # type: textblock
20833 #: ../fish/guestfish-actions.pod:1333
20834 msgid ""
20835 "If L</set-memsize> was not called on this handle, and if "
20836 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20837 "value for memsize."
20838 msgstr ""
20839
20840 # type: =head2
20841 #: ../fish/guestfish-actions.pod:1340
20842 msgid "get-network"
20843 msgstr ""
20844
20845 # type: verbatim
20846 #: ../fish/guestfish-actions.pod:1342
20847 #, no-wrap
20848 msgid ""
20849 " get-network\n"
20850 "\n"
20851 msgstr ""
20852
20853 # type: =head2
20854 #: ../fish/guestfish-actions.pod:1346
20855 msgid "get-path"
20856 msgstr ""
20857
20858 # type: verbatim
20859 #: ../fish/guestfish-actions.pod:1348
20860 #, no-wrap
20861 msgid ""
20862 " get-path\n"
20863 "\n"
20864 msgstr ""
20865
20866 # type: =head2
20867 #: ../fish/guestfish-actions.pod:1355
20868 msgid "get-pid"
20869 msgstr ""
20870
20871 # type: =head2
20872 #: ../fish/guestfish-actions.pod:1357
20873 msgid "pid"
20874 msgstr ""
20875
20876 # type: verbatim
20877 #: ../fish/guestfish-actions.pod:1359
20878 #, no-wrap
20879 msgid ""
20880 " get-pid\n"
20881 "\n"
20882 msgstr ""
20883
20884 # type: =head2
20885 #: ../fish/guestfish-actions.pod:1366
20886 msgid "get-qemu"
20887 msgstr ""
20888
20889 # type: verbatim
20890 #: ../fish/guestfish-actions.pod:1368
20891 #, no-wrap
20892 msgid ""
20893 " get-qemu\n"
20894 "\n"
20895 msgstr ""
20896
20897 # type: =head2
20898 #: ../fish/guestfish-actions.pod:1375
20899 msgid "get-recovery-proc"
20900 msgstr ""
20901
20902 # type: verbatim
20903 #: ../fish/guestfish-actions.pod:1377
20904 #, no-wrap
20905 msgid ""
20906 " get-recovery-proc\n"
20907 "\n"
20908 msgstr ""
20909
20910 # type: =head2
20911 #: ../fish/guestfish-actions.pod:1381
20912 msgid "get-selinux"
20913 msgstr ""
20914
20915 # type: verbatim
20916 #: ../fish/guestfish-actions.pod:1383
20917 #, no-wrap
20918 msgid ""
20919 " get-selinux\n"
20920 "\n"
20921 msgstr ""
20922
20923 # type: textblock
20924 #: ../fish/guestfish-actions.pod:1385
20925 msgid ""
20926 "This returns the current setting of the selinux flag which is passed to the "
20927 "appliance at boot time.  See L</set-selinux>."
20928 msgstr ""
20929
20930 # type: =head2
20931 #: ../fish/guestfish-actions.pod:1391
20932 msgid "get-state"
20933 msgstr ""
20934
20935 # type: verbatim
20936 #: ../fish/guestfish-actions.pod:1393
20937 #, no-wrap
20938 msgid ""
20939 " get-state\n"
20940 "\n"
20941 msgstr ""
20942
20943 # type: =head2
20944 #: ../fish/guestfish-actions.pod:1400
20945 msgid "get-trace"
20946 msgstr ""
20947
20948 # type: verbatim
20949 #: ../fish/guestfish-actions.pod:1402
20950 #, no-wrap
20951 msgid ""
20952 " get-trace\n"
20953 "\n"
20954 msgstr ""
20955
20956 # type: =head2
20957 #: ../fish/guestfish-actions.pod:1406
20958 msgid "get-umask"
20959 msgstr ""
20960
20961 # type: verbatim
20962 #: ../fish/guestfish-actions.pod:1408
20963 #, no-wrap
20964 msgid ""
20965 " get-umask\n"
20966 "\n"
20967 msgstr ""
20968
20969 # type: textblock
20970 #: ../fish/guestfish-actions.pod:1410
20971 msgid ""
20972 "Return the current umask.  By default the umask is C<022> unless it has been "
20973 "set by calling L</umask>."
20974 msgstr ""
20975
20976 # type: =head2
20977 #: ../fish/guestfish-actions.pod:1413
20978 msgid "get-verbose"
20979 msgstr ""
20980
20981 # type: verbatim
20982 #: ../fish/guestfish-actions.pod:1415
20983 #, no-wrap
20984 msgid ""
20985 " get-verbose\n"
20986 "\n"
20987 msgstr ""
20988
20989 # type: =head2
20990 #: ../fish/guestfish-actions.pod:1419
20991 msgid "getcon"
20992 msgstr ""
20993
20994 # type: verbatim
20995 #: ../fish/guestfish-actions.pod:1421
20996 #, no-wrap
20997 msgid ""
20998 " getcon\n"
20999 "\n"
21000 msgstr ""
21001
21002 # type: textblock
21003 #: ../fish/guestfish-actions.pod:1425
21004 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
21005 msgstr ""
21006
21007 # type: =head2
21008 #: ../fish/guestfish-actions.pod:1428
21009 msgid "getxattrs"
21010 msgstr ""
21011
21012 # type: verbatim
21013 #: ../fish/guestfish-actions.pod:1430
21014 #, no-wrap
21015 msgid ""
21016 " getxattrs path\n"
21017 "\n"
21018 msgstr ""
21019
21020 # type: textblock
21021 #: ../fish/guestfish-actions.pod:1438
21022 msgid "See also: L</lgetxattrs>, L<attr(5)>."
21023 msgstr ""
21024
21025 # type: =head2
21026 #: ../fish/guestfish-actions.pod:1440
21027 msgid "glob-expand"
21028 msgstr ""
21029
21030 # type: verbatim
21031 #: ../fish/guestfish-actions.pod:1442
21032 #, no-wrap
21033 msgid ""
21034 " glob-expand pattern\n"
21035 "\n"
21036 msgstr ""
21037
21038 # type: =head2
21039 #: ../fish/guestfish-actions.pod:1455
21040 msgid "grep"
21041 msgstr ""
21042
21043 # type: verbatim
21044 #: ../fish/guestfish-actions.pod:1457
21045 #, no-wrap
21046 msgid ""
21047 " grep regex path\n"
21048 "\n"
21049 msgstr ""
21050
21051 # type: =head2
21052 #: ../fish/guestfish-actions.pod:1465
21053 msgid "grepi"
21054 msgstr ""
21055
21056 # type: verbatim
21057 #: ../fish/guestfish-actions.pod:1467
21058 #, no-wrap
21059 msgid ""
21060 " grepi regex path\n"
21061 "\n"
21062 msgstr ""
21063
21064 # type: =head2
21065 #: ../fish/guestfish-actions.pod:1475
21066 msgid "grub-install"
21067 msgstr ""
21068
21069 # type: verbatim
21070 #: ../fish/guestfish-actions.pod:1477
21071 #, no-wrap
21072 msgid ""
21073 " grub-install root device\n"
21074 "\n"
21075 msgstr ""
21076
21077 # type: =head2
21078 #: ../fish/guestfish-actions.pod:1493
21079 msgid "head"
21080 msgstr ""
21081
21082 # type: verbatim
21083 #: ../fish/guestfish-actions.pod:1495
21084 #, no-wrap
21085 msgid ""
21086 " head path\n"
21087 "\n"
21088 msgstr ""
21089
21090 # type: =head2
21091 #: ../fish/guestfish-actions.pod:1503
21092 msgid "head-n"
21093 msgstr ""
21094
21095 # type: verbatim
21096 #: ../fish/guestfish-actions.pod:1505
21097 #, no-wrap
21098 msgid ""
21099 " head-n nrlines path\n"
21100 "\n"
21101 msgstr ""
21102
21103 # type: =head2
21104 #: ../fish/guestfish-actions.pod:1518
21105 msgid "hexdump"
21106 msgstr ""
21107
21108 # type: verbatim
21109 #: ../fish/guestfish-actions.pod:1520
21110 #, no-wrap
21111 msgid ""
21112 " hexdump path\n"
21113 "\n"
21114 msgstr ""
21115
21116 # type: =head2
21117 #: ../fish/guestfish-actions.pod:1528
21118 msgid "initrd-cat"
21119 msgstr ""
21120
21121 # type: verbatim
21122 #: ../fish/guestfish-actions.pod:1530
21123 #, no-wrap
21124 msgid ""
21125 " initrd-cat initrdpath filename\n"
21126 "\n"
21127 msgstr ""
21128
21129 # type: textblock
21130 #: ../fish/guestfish-actions.pod:1542
21131 msgid "See also L</initrd-list>."
21132 msgstr ""
21133
21134 # type: =head2
21135 #: ../fish/guestfish-actions.pod:1547
21136 msgid "initrd-list"
21137 msgstr ""
21138
21139 # type: verbatim
21140 #: ../fish/guestfish-actions.pod:1549
21141 #, no-wrap
21142 msgid ""
21143 " initrd-list path\n"
21144 "\n"
21145 msgstr ""
21146
21147 # type: =head2
21148 #: ../fish/guestfish-actions.pod:1561
21149 msgid "inotify-add-watch"
21150 msgstr ""
21151
21152 # type: verbatim
21153 #: ../fish/guestfish-actions.pod:1563
21154 #, no-wrap
21155 msgid ""
21156 " inotify-add-watch path mask\n"
21157 "\n"
21158 msgstr ""
21159
21160 # type: =head2
21161 #: ../fish/guestfish-actions.pod:1575
21162 msgid "inotify-close"
21163 msgstr ""
21164
21165 # type: verbatim
21166 #: ../fish/guestfish-actions.pod:1577
21167 #, no-wrap
21168 msgid ""
21169 " inotify-close\n"
21170 "\n"
21171 msgstr ""
21172
21173 # type: =head2
21174 #: ../fish/guestfish-actions.pod:1583
21175 msgid "inotify-files"
21176 msgstr ""
21177
21178 # type: verbatim
21179 #: ../fish/guestfish-actions.pod:1585
21180 #, no-wrap
21181 msgid ""
21182 " inotify-files\n"
21183 "\n"
21184 msgstr ""
21185
21186 # type: textblock
21187 #: ../fish/guestfish-actions.pod:1587
21188 msgid ""
21189 "This function is a helpful wrapper around L</inotify-read> which just "
21190 "returns a list of pathnames of objects that were touched.  The returned "
21191 "pathnames are sorted and deduplicated."
21192 msgstr ""
21193
21194 # type: =head2
21195 #: ../fish/guestfish-actions.pod:1591
21196 msgid "inotify-init"
21197 msgstr ""
21198
21199 # type: verbatim
21200 #: ../fish/guestfish-actions.pod:1593
21201 #, no-wrap
21202 msgid ""
21203 " inotify-init maxevents\n"
21204 "\n"
21205 msgstr ""
21206
21207 # type: textblock
21208 #: ../fish/guestfish-actions.pod:1599
21209 msgid ""
21210 "C<maxevents> is the maximum number of events which will be queued up between "
21211 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21212 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21213 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21214 "but records the fact that it threw them away by setting a flag "
21215 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21216 msgstr ""
21217
21218 # type: textblock
21219 #: ../fish/guestfish-actions.pod:1609
21220 msgid ""
21221 "Before any events are generated, you have to add some watches to the "
21222 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21223 "L</inotify-watch-all>."
21224 msgstr ""
21225
21226 # type: textblock
21227 #: ../fish/guestfish-actions.pod:1615
21228 msgid ""
21229 "Queued up events should be read periodically by calling L</inotify-read> (or "
21230 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21231 "If you don't read the events out often enough then you risk the internal "
21232 "queue overflowing."
21233 msgstr ""
21234
21235 # type: textblock
21236 #: ../fish/guestfish-actions.pod:1622
21237 msgid ""
21238 "The handle should be closed after use by calling L</inotify-close>.  This "
21239 "also removes any watches automatically."
21240 msgstr ""
21241
21242 # type: =head2
21243 #: ../fish/guestfish-actions.pod:1631
21244 msgid "inotify-read"
21245 msgstr ""
21246
21247 # type: verbatim
21248 #: ../fish/guestfish-actions.pod:1633
21249 #, no-wrap
21250 msgid ""
21251 " inotify-read\n"
21252 "\n"
21253 msgstr ""
21254
21255 # type: =head2
21256 #: ../fish/guestfish-actions.pod:1646
21257 msgid "inotify-rm-watch"
21258 msgstr ""
21259
21260 # type: verbatim
21261 #: ../fish/guestfish-actions.pod:1648
21262 #, no-wrap
21263 msgid ""
21264 " inotify-rm-watch wd\n"
21265 "\n"
21266 msgstr ""
21267
21268 # type: textblock
21269 #: ../fish/guestfish-actions.pod:1650
21270 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21271 msgstr ""
21272
21273 # type: =head2
21274 #: ../fish/guestfish-actions.pod:1653
21275 msgid "inspect-get-arch"
21276 msgstr ""
21277
21278 # type: verbatim
21279 #: ../fish/guestfish-actions.pod:1655
21280 #, no-wrap
21281 msgid ""
21282 " inspect-get-arch root\n"
21283 "\n"
21284 msgstr ""
21285
21286 # type: textblock
21287 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673
21288 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765
21289 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801
21290 #: ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839
21291 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885
21292 #: ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950
21293 #: ../fish/guestfish-actions.pod:1966
21294 msgid ""
21295 "This function should only be called with a root device string as returned by "
21296 "L</inspect-os>."
21297 msgstr ""
21298
21299 # type: textblock
21300 #: ../fish/guestfish-actions.pod:1660
21301 msgid ""
21302 "This returns the architecture of the inspected operating system.  The "
21303 "possible return values are listed under L</file-architecture>."
21304 msgstr ""
21305
21306 # type: =head2
21307 #: ../fish/guestfish-actions.pod:1669
21308 msgid "inspect-get-distro"
21309 msgstr ""
21310
21311 # type: verbatim
21312 #: ../fish/guestfish-actions.pod:1671
21313 #, no-wrap
21314 msgid ""
21315 " inspect-get-distro root\n"
21316 "\n"
21317 msgstr ""
21318
21319 # type: =head2
21320 #: ../fish/guestfish-actions.pod:1743
21321 msgid "inspect-get-filesystems"
21322 msgstr ""
21323
21324 # type: verbatim
21325 #: ../fish/guestfish-actions.pod:1745
21326 #, no-wrap
21327 msgid ""
21328 " inspect-get-filesystems root\n"
21329 "\n"
21330 msgstr ""
21331
21332 # type: textblock
21333 #: ../fish/guestfish-actions.pod:1758
21334 msgid ""
21335 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21336 "get-mountpoints>."
21337 msgstr ""
21338
21339 # type: =head2
21340 #: ../fish/guestfish-actions.pod:1761
21341 msgid "inspect-get-hostname"
21342 msgstr ""
21343
21344 # type: verbatim
21345 #: ../fish/guestfish-actions.pod:1763
21346 #, no-wrap
21347 msgid ""
21348 " inspect-get-hostname root\n"
21349 "\n"
21350 msgstr ""
21351
21352 # type: =head2
21353 #: ../fish/guestfish-actions.pod:1776
21354 msgid "inspect-get-major-version"
21355 msgstr ""
21356
21357 # type: verbatim
21358 #: ../fish/guestfish-actions.pod:1778
21359 #, no-wrap
21360 msgid ""
21361 " inspect-get-major-version root\n"
21362 "\n"
21363 msgstr ""
21364
21365 # type: =head2
21366 #: ../fish/guestfish-actions.pod:1797
21367 msgid "inspect-get-minor-version"
21368 msgstr ""
21369
21370 # type: verbatim
21371 #: ../fish/guestfish-actions.pod:1799
21372 #, no-wrap
21373 msgid ""
21374 " inspect-get-minor-version root\n"
21375 "\n"
21376 msgstr ""
21377
21378 # type: textblock
21379 #: ../fish/guestfish-actions.pod:1809
21380 msgid ""
21381 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21382 "get-major-version>."
21383 msgstr ""
21384
21385 # type: =head2
21386 #: ../fish/guestfish-actions.pod:1812
21387 msgid "inspect-get-mountpoints"
21388 msgstr ""
21389
21390 # type: verbatim
21391 #: ../fish/guestfish-actions.pod:1814
21392 #, no-wrap
21393 msgid ""
21394 " inspect-get-mountpoints root\n"
21395 "\n"
21396 msgstr ""
21397
21398 # type: textblock
21399 #: ../fish/guestfish-actions.pod:1832
21400 msgid ""
21401 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21402 "get-filesystems>."
21403 msgstr ""
21404
21405 # type: =head2
21406 #: ../fish/guestfish-actions.pod:1835
21407 msgid "inspect-get-package-format"
21408 msgstr ""
21409
21410 # type: verbatim
21411 #: ../fish/guestfish-actions.pod:1837
21412 #, no-wrap
21413 msgid ""
21414 " inspect-get-package-format root\n"
21415 "\n"
21416 msgstr ""
21417
21418 # type: textblock
21419 #: ../fish/guestfish-actions.pod:1842
21420 msgid ""
21421 "This function and L</inspect-get-package-management> return the package "
21422 "format and package management tool used by the inspected operating system.  "
21423 "For example for Fedora these functions would return C<rpm> (package format) "
21424 "and C<yum> (package management)."
21425 msgstr ""
21426
21427 # type: =head2
21428 #: ../fish/guestfish-actions.pod:1857
21429 msgid "inspect-get-package-management"
21430 msgstr ""
21431
21432 # type: verbatim
21433 #: ../fish/guestfish-actions.pod:1859
21434 #, no-wrap
21435 msgid ""
21436 " inspect-get-package-management root\n"
21437 "\n"
21438 msgstr ""
21439
21440 # type: textblock
21441 #: ../fish/guestfish-actions.pod:1864
21442 msgid ""
21443 "L</inspect-get-package-format> and this function return the package format "
21444 "and package management tool used by the inspected operating system.  For "
21445 "example for Fedora these functions would return C<rpm> (package format) and "
21446 "C<yum> (package management)."
21447 msgstr ""
21448
21449 # type: =head2
21450 #: ../fish/guestfish-actions.pod:1881
21451 msgid "inspect-get-product-name"
21452 msgstr ""
21453
21454 # type: verbatim
21455 #: ../fish/guestfish-actions.pod:1883
21456 #, no-wrap
21457 msgid ""
21458 " inspect-get-product-name root\n"
21459 "\n"
21460 msgstr ""
21461
21462 # type: =head2
21463 #: ../fish/guestfish-actions.pod:1898
21464 msgid "inspect-get-roots"
21465 msgstr ""
21466
21467 # type: verbatim
21468 #: ../fish/guestfish-actions.pod:1900
21469 #, no-wrap
21470 msgid ""
21471 " inspect-get-roots\n"
21472 "\n"
21473 msgstr ""
21474
21475 # type: textblock
21476 #: ../fish/guestfish-actions.pod:1902
21477 msgid ""
21478 "This function is a convenient way to get the list of root devices, as "
21479 "returned from a previous call to L</inspect-os>, but without redoing the "
21480 "whole inspection process."
21481 msgstr ""
21482
21483 # type: textblock
21484 #: ../fish/guestfish-actions.pod:1906
21485 msgid ""
21486 "This returns an empty list if either no root devices were found or the "
21487 "caller has not called L</inspect-os>."
21488 msgstr ""
21489
21490 # type: =head2
21491 #: ../fish/guestfish-actions.pod:1911
21492 msgid "inspect-get-type"
21493 msgstr ""
21494
21495 # type: verbatim
21496 #: ../fish/guestfish-actions.pod:1913
21497 #, no-wrap
21498 msgid ""
21499 " inspect-get-type root\n"
21500 "\n"
21501 msgstr ""
21502
21503 # type: =head2
21504 #: ../fish/guestfish-actions.pod:1946
21505 msgid "inspect-get-windows-systemroot"
21506 msgstr ""
21507
21508 # type: verbatim
21509 #: ../fish/guestfish-actions.pod:1948
21510 #, no-wrap
21511 msgid ""
21512 " inspect-get-windows-systemroot root\n"
21513 "\n"
21514 msgstr ""
21515
21516 # type: =head2
21517 #: ../fish/guestfish-actions.pod:1962
21518 msgid "inspect-list-applications"
21519 msgstr ""
21520
21521 # type: verbatim
21522 #: ../fish/guestfish-actions.pod:1964
21523 #, no-wrap
21524 msgid ""
21525 " inspect-list-applications root\n"
21526 "\n"
21527 msgstr ""
21528
21529 # type: textblock
21530 #: ../fish/guestfish-actions.pod:1971
21531 msgid ""
21532 "I<Note:> This call works differently from other parts of the inspection "
21533 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21534 "then mount up the disks, before calling this.  Listing applications is a "
21535 "significantly more difficult operation which requires access to the full "
21536 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21537 "are just returning data cached in the libguestfs handle, this call actually "
21538 "reads parts of the mounted filesystems during the call."
21539 msgstr ""
21540
21541 # type: =head2
21542 #: ../fish/guestfish-actions.pod:2061
21543 msgid "inspect-os"
21544 msgstr ""
21545
21546 # type: verbatim
21547 #: ../fish/guestfish-actions.pod:2063
21548 #, no-wrap
21549 msgid ""
21550 " inspect-os\n"
21551 "\n"
21552 msgstr ""
21553
21554 # type: textblock
21555 #: ../fish/guestfish-actions.pod:2078
21556 msgid ""
21557 "You can pass the root string(s) returned to other L</inspect-get-*> "
21558 "functions in order to query further information about each operating system, "
21559 "such as the name and version."
21560 msgstr ""
21561
21562 # type: textblock
21563 #: ../fish/guestfish-actions.pod:2083
21564 msgid ""
21565 "This function uses other libguestfs features such as L</mount-ro> and L</"
21566 "umount-all> in order to mount and unmount filesystems and look at the "
21567 "contents.  This should be called with no disks currently mounted.  The "
21568 "function may also use Augeas, so any existing Augeas handle will be closed."
21569 msgstr ""
21570
21571 # type: textblock
21572 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251
21573 #: ../fish/guestfish-actions.pod:2297
21574 msgid "See also L</list-filesystems>."
21575 msgstr ""
21576
21577 # type: =head2
21578 #: ../fish/guestfish-actions.pod:2097
21579 msgid "is-blockdev"
21580 msgstr ""
21581
21582 # type: verbatim
21583 #: ../fish/guestfish-actions.pod:2099
21584 #, no-wrap
21585 msgid ""
21586 " is-blockdev path\n"
21587 "\n"
21588 msgstr ""
21589
21590 # type: textblock
21591 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122
21592 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150
21593 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194
21594 #: ../fish/guestfish-actions.pod:2203
21595 msgid "See also L</stat>."
21596 msgstr ""
21597
21598 # type: =head2
21599 #: ../fish/guestfish-actions.pod:2106
21600 msgid "is-busy"
21601 msgstr ""
21602
21603 # type: verbatim
21604 #: ../fish/guestfish-actions.pod:2108
21605 #, no-wrap
21606 msgid ""
21607 " is-busy\n"
21608 "\n"
21609 msgstr ""
21610
21611 # type: =head2
21612 #: ../fish/guestfish-actions.pod:2115
21613 msgid "is-chardev"
21614 msgstr ""
21615
21616 # type: verbatim
21617 #: ../fish/guestfish-actions.pod:2117
21618 #, no-wrap
21619 msgid ""
21620 " is-chardev path\n"
21621 "\n"
21622 msgstr ""
21623
21624 # type: =head2
21625 #: ../fish/guestfish-actions.pod:2124
21626 msgid "is-config"
21627 msgstr ""
21628
21629 # type: verbatim
21630 #: ../fish/guestfish-actions.pod:2126
21631 #, no-wrap
21632 msgid ""
21633 " is-config\n"
21634 "\n"
21635 msgstr ""
21636
21637 # type: =head2
21638 #: ../fish/guestfish-actions.pod:2133
21639 msgid "is-dir"
21640 msgstr ""
21641
21642 # type: verbatim
21643 #: ../fish/guestfish-actions.pod:2135
21644 #, no-wrap
21645 msgid ""
21646 " is-dir path\n"
21647 "\n"
21648 msgstr ""
21649
21650 # type: =head2
21651 #: ../fish/guestfish-actions.pod:2143
21652 msgid "is-fifo"
21653 msgstr ""
21654
21655 # type: verbatim
21656 #: ../fish/guestfish-actions.pod:2145
21657 #, no-wrap
21658 msgid ""
21659 " is-fifo path\n"
21660 "\n"
21661 msgstr ""
21662
21663 # type: =head2
21664 #: ../fish/guestfish-actions.pod:2152
21665 msgid "is-file"
21666 msgstr ""
21667
21668 # type: verbatim
21669 #: ../fish/guestfish-actions.pod:2154
21670 #, no-wrap
21671 msgid ""
21672 " is-file path\n"
21673 "\n"
21674 msgstr ""
21675
21676 # type: =head2
21677 #: ../fish/guestfish-actions.pod:2162
21678 msgid "is-launching"
21679 msgstr ""
21680
21681 # type: verbatim
21682 #: ../fish/guestfish-actions.pod:2164
21683 #, no-wrap
21684 msgid ""
21685 " is-launching\n"
21686 "\n"
21687 msgstr ""
21688
21689 # type: =head2
21690 #: ../fish/guestfish-actions.pod:2171
21691 msgid "is-lv"
21692 msgstr ""
21693
21694 # type: verbatim
21695 #: ../fish/guestfish-actions.pod:2173
21696 #, no-wrap
21697 msgid ""
21698 " is-lv device\n"
21699 "\n"
21700 msgstr ""
21701
21702 # type: =head2
21703 #: ../fish/guestfish-actions.pod:2178
21704 msgid "is-ready"
21705 msgstr ""
21706
21707 # type: verbatim
21708 #: ../fish/guestfish-actions.pod:2180
21709 #, no-wrap
21710 msgid ""
21711 " is-ready\n"
21712 "\n"
21713 msgstr ""
21714
21715 # type: =head2
21716 #: ../fish/guestfish-actions.pod:2187
21717 msgid "is-socket"
21718 msgstr ""
21719
21720 # type: verbatim
21721 #: ../fish/guestfish-actions.pod:2189
21722 #, no-wrap
21723 msgid ""
21724 " is-socket path\n"
21725 "\n"
21726 msgstr ""
21727
21728 # type: =head2
21729 #: ../fish/guestfish-actions.pod:2196
21730 msgid "is-symlink"
21731 msgstr ""
21732
21733 # type: verbatim
21734 #: ../fish/guestfish-actions.pod:2198
21735 #, no-wrap
21736 msgid ""
21737 " is-symlink path\n"
21738 "\n"
21739 msgstr ""
21740
21741 # type: =head2
21742 #: ../fish/guestfish-actions.pod:2205
21743 msgid "kill-subprocess"
21744 msgstr ""
21745
21746 # type: verbatim
21747 #: ../fish/guestfish-actions.pod:2207
21748 #, no-wrap
21749 msgid ""
21750 " kill-subprocess\n"
21751 "\n"
21752 msgstr ""
21753
21754 # type: =head2
21755 #: ../fish/guestfish-actions.pod:2211
21756 msgid "launch"
21757 msgstr ""
21758
21759 # type: =head2
21760 #: ../fish/guestfish-actions.pod:2213
21761 msgid "run"
21762 msgstr ""
21763
21764 # type: verbatim
21765 #: ../fish/guestfish-actions.pod:2215
21766 #, no-wrap
21767 msgid ""
21768 " launch\n"
21769 "\n"
21770 msgstr ""
21771
21772 # type: =head2
21773 #: ../fish/guestfish-actions.pod:2223
21774 msgid "lchown"
21775 msgstr ""
21776
21777 # type: verbatim
21778 #: ../fish/guestfish-actions.pod:2225
21779 #, no-wrap
21780 msgid ""
21781 " lchown owner group path\n"
21782 "\n"
21783 msgstr ""
21784
21785 # type: textblock
21786 #: ../fish/guestfish-actions.pod:2227
21787 msgid ""
21788 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
21789 "chown> but if C<path> is a symlink then the link itself is changed, not the "
21790 "target."
21791 msgstr ""
21792
21793 # type: =head2
21794 #: ../fish/guestfish-actions.pod:2235
21795 msgid "lgetxattrs"
21796 msgstr ""
21797
21798 # type: verbatim
21799 #: ../fish/guestfish-actions.pod:2237
21800 #, no-wrap
21801 msgid ""
21802 " lgetxattrs path\n"
21803 "\n"
21804 msgstr ""
21805
21806 # type: textblock
21807 #: ../fish/guestfish-actions.pod:2239
21808 msgid ""
21809 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21810 "it returns the extended attributes of the link itself."
21811 msgstr ""
21812
21813 # type: =head2
21814 #: ../fish/guestfish-actions.pod:2243
21815 msgid "list-devices"
21816 msgstr ""
21817
21818 # type: verbatim
21819 #: ../fish/guestfish-actions.pod:2245
21820 #, no-wrap
21821 msgid ""
21822 " list-devices\n"
21823 "\n"
21824 msgstr ""
21825
21826 # type: =head2
21827 #: ../fish/guestfish-actions.pod:2253
21828 msgid "list-filesystems"
21829 msgstr ""
21830
21831 # type: verbatim
21832 #: ../fish/guestfish-actions.pod:2255
21833 #, no-wrap
21834 msgid ""
21835 " list-filesystems\n"
21836 "\n"
21837 msgstr ""
21838
21839 # type: textblock
21840 #: ../fish/guestfish-actions.pod:2274
21841 msgid ""
21842 "This command runs other libguestfs commands, which might include L</mount> "
21843 "and L</umount>, and therefore you should use this soon after launch and only "
21844 "when nothing is mounted."
21845 msgstr ""
21846
21847 # type: textblock
21848 #: ../fish/guestfish-actions.pod:2278
21849 msgid ""
21850 "Not all of the filesystems returned will be mountable.  In particular, swap "
21851 "partitions are returned in the list.  Also this command does not check that "
21852 "each filesystem found is valid and mountable, and some filesystems might be "
21853 "mountable but require special options.  Filesystems may not all belong to a "
21854 "single logical operating system (use L</inspect-os> to look for OSes)."
21855 msgstr ""
21856
21857 # type: =head2
21858 #: ../fish/guestfish-actions.pod:2286
21859 msgid "list-partitions"
21860 msgstr ""
21861
21862 # type: verbatim
21863 #: ../fish/guestfish-actions.pod:2288
21864 #, no-wrap
21865 msgid ""
21866 " list-partitions\n"
21867 "\n"
21868 msgstr ""
21869
21870 # type: textblock
21871 #: ../fish/guestfish-actions.pod:2294
21872 msgid ""
21873 "This does not return logical volumes.  For that you will need to call L</"
21874 "lvs>."
21875 msgstr ""
21876
21877 # type: =head2
21878 #: ../fish/guestfish-actions.pod:2299
21879 msgid "ll"
21880 msgstr ""
21881
21882 # type: verbatim
21883 #: ../fish/guestfish-actions.pod:2301
21884 #, no-wrap
21885 msgid ""
21886 " ll directory\n"
21887 "\n"
21888 msgstr ""
21889
21890 # type: =head2
21891 #: ../fish/guestfish-actions.pod:2309
21892 msgid "ln"
21893 msgstr ""
21894
21895 # type: verbatim
21896 #: ../fish/guestfish-actions.pod:2311
21897 #, no-wrap
21898 msgid ""
21899 " ln target linkname\n"
21900 "\n"
21901 msgstr ""
21902
21903 # type: =head2
21904 #: ../fish/guestfish-actions.pod:2315
21905 msgid "ln-f"
21906 msgstr ""
21907
21908 # type: verbatim
21909 #: ../fish/guestfish-actions.pod:2317
21910 #, no-wrap
21911 msgid ""
21912 " ln-f target linkname\n"
21913 "\n"
21914 msgstr ""
21915
21916 # type: =head2
21917 #: ../fish/guestfish-actions.pod:2322
21918 msgid "ln-s"
21919 msgstr ""
21920
21921 # type: verbatim
21922 #: ../fish/guestfish-actions.pod:2324
21923 #, no-wrap
21924 msgid ""
21925 " ln-s target linkname\n"
21926 "\n"
21927 msgstr ""
21928
21929 # type: =head2
21930 #: ../fish/guestfish-actions.pod:2328
21931 msgid "ln-sf"
21932 msgstr ""
21933
21934 # type: verbatim
21935 #: ../fish/guestfish-actions.pod:2330
21936 #, no-wrap
21937 msgid ""
21938 " ln-sf target linkname\n"
21939 "\n"
21940 msgstr ""
21941
21942 # type: =head2
21943 #: ../fish/guestfish-actions.pod:2335
21944 msgid "lremovexattr"
21945 msgstr ""
21946
21947 # type: verbatim
21948 #: ../fish/guestfish-actions.pod:2337
21949 #, no-wrap
21950 msgid ""
21951 " lremovexattr xattr path\n"
21952 "\n"
21953 msgstr ""
21954
21955 # type: textblock
21956 #: ../fish/guestfish-actions.pod:2339
21957 msgid ""
21958 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21959 "it removes an extended attribute of the link itself."
21960 msgstr ""
21961
21962 # type: =head2
21963 #: ../fish/guestfish-actions.pod:2343
21964 msgid "ls"
21965 msgstr ""
21966
21967 # type: verbatim
21968 #: ../fish/guestfish-actions.pod:2345
21969 #, no-wrap
21970 msgid ""
21971 " ls directory\n"
21972 "\n"
21973 msgstr ""
21974
21975 # type: textblock
21976 #: ../fish/guestfish-actions.pod:2351
21977 msgid ""
21978 "This command is mostly useful for interactive sessions.  Programs should "
21979 "probably use L</readdir> instead."
21980 msgstr ""
21981
21982 # type: =head2
21983 #: ../fish/guestfish-actions.pod:2354
21984 msgid "lsetxattr"
21985 msgstr ""
21986
21987 # type: verbatim
21988 #: ../fish/guestfish-actions.pod:2356
21989 #, no-wrap
21990 msgid ""
21991 " lsetxattr xattr val vallen path\n"
21992 "\n"
21993 msgstr ""
21994
21995 # type: textblock
21996 #: ../fish/guestfish-actions.pod:2358
21997 msgid ""
21998 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21999 "sets an extended attribute of the link itself."
22000 msgstr ""
22001
22002 # type: =head2
22003 #: ../fish/guestfish-actions.pod:2362
22004 msgid "lstat"
22005 msgstr ""
22006
22007 # type: verbatim
22008 #: ../fish/guestfish-actions.pod:2364
22009 #, no-wrap
22010 msgid ""
22011 " lstat path\n"
22012 "\n"
22013 msgstr ""
22014
22015 # type: textblock
22016 #: ../fish/guestfish-actions.pod:2368
22017 msgid ""
22018 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
22019 "the link is stat-ed, not the file it refers to."
22020 msgstr ""
22021
22022 # type: =head2
22023 #: ../fish/guestfish-actions.pod:2374
22024 msgid "lstatlist"
22025 msgstr ""
22026
22027 # type: verbatim
22028 #: ../fish/guestfish-actions.pod:2376
22029 #, no-wrap
22030 msgid ""
22031 " lstatlist path 'names ...'\n"
22032 "\n"
22033 msgstr ""
22034
22035 # type: textblock
22036 #: ../fish/guestfish-actions.pod:2378
22037 msgid ""
22038 "This call allows you to perform the L</lstat> operation on multiple files, "
22039 "where all files are in the directory C<path>.  C<names> is the list of files "
22040 "from this directory."
22041 msgstr ""
22042
22043 # type: textblock
22044 #: ../fish/guestfish-actions.pod:2387
22045 msgid ""
22046 "This call is intended for programs that want to efficiently list a directory "
22047 "contents without making many round-trips.  See also L</lxattrlist> for a "
22048 "similarly efficient call for getting extended attributes.  Very long "
22049 "directory listings might cause the protocol message size to be exceeded, "
22050 "causing this call to fail.  The caller must split up such requests into "
22051 "smaller groups of names."
22052 msgstr ""
22053
22054 # type: =head2
22055 #: ../fish/guestfish-actions.pod:2395
22056 msgid "luks-add-key"
22057 msgstr ""
22058
22059 # type: verbatim
22060 #: ../fish/guestfish-actions.pod:2397
22061 #, no-wrap
22062 msgid ""
22063 " luks-add-key device keyslot\n"
22064 "\n"
22065 msgstr ""
22066
22067 # type: textblock
22068 #: ../fish/guestfish-actions.pod:2404
22069 msgid ""
22070 "Note that if C<keyslot> already contains a key, then this command will "
22071 "fail.  You have to use L</luks-kill-slot> first to remove that key."
22072 msgstr ""
22073
22074 # type: textblock
22075 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430
22076 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457
22077 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
22078 msgid ""
22079 "This command has one or more key or passphrase parameters.  Guestfish will "
22080 "prompt for these separately."
22081 msgstr ""
22082
22083 # type: =head2
22084 #: ../fish/guestfish-actions.pod:2411
22085 msgid "luks-close"
22086 msgstr ""
22087
22088 # type: verbatim
22089 #: ../fish/guestfish-actions.pod:2413
22090 #, no-wrap
22091 msgid ""
22092 " luks-close device\n"
22093 "\n"
22094 msgstr ""
22095
22096 # type: textblock
22097 #: ../fish/guestfish-actions.pod:2415
22098 msgid ""
22099 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
22100 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
22101 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
22102 "block device."
22103 msgstr ""
22104
22105 # type: =head2
22106 #: ../fish/guestfish-actions.pod:2421
22107 msgid "luks-format"
22108 msgstr ""
22109
22110 # type: verbatim
22111 #: ../fish/guestfish-actions.pod:2423
22112 #, no-wrap
22113 msgid ""
22114 " luks-format device keyslot\n"
22115 "\n"
22116 msgstr ""
22117
22118 # type: =head2
22119 #: ../fish/guestfish-actions.pod:2436
22120 msgid "luks-format-cipher"
22121 msgstr ""
22122
22123 # type: verbatim
22124 #: ../fish/guestfish-actions.pod:2438
22125 #, no-wrap
22126 msgid ""
22127 " luks-format-cipher device keyslot cipher\n"
22128 "\n"
22129 msgstr ""
22130
22131 # type: textblock
22132 #: ../fish/guestfish-actions.pod:2440
22133 msgid ""
22134 "This command is the same as L</luks-format> but it also allows you to set "
22135 "the C<cipher> used."
22136 msgstr ""
22137
22138 # type: =head2
22139 #: ../fish/guestfish-actions.pod:2449
22140 msgid "luks-kill-slot"
22141 msgstr ""
22142
22143 # type: verbatim
22144 #: ../fish/guestfish-actions.pod:2451
22145 #, no-wrap
22146 msgid ""
22147 " luks-kill-slot device keyslot\n"
22148 "\n"
22149 msgstr ""
22150
22151 # type: =head2
22152 #: ../fish/guestfish-actions.pod:2460
22153 msgid "luks-open"
22154 msgstr ""
22155
22156 # type: verbatim
22157 #: ../fish/guestfish-actions.pod:2462
22158 #, no-wrap
22159 msgid ""
22160 " luks-open device mapname\n"
22161 "\n"
22162 msgstr ""
22163
22164 # type: textblock
22165 #: ../fish/guestfish-actions.pod:2476
22166 msgid ""
22167 "If this block device contains LVM volume groups, then calling L</vgscan> "
22168 "followed by L</vg-activate-all> will make them visible."
22169 msgstr ""
22170
22171 # type: =head2
22172 #: ../fish/guestfish-actions.pod:2483
22173 msgid "luks-open-ro"
22174 msgstr ""
22175
22176 # type: verbatim
22177 #: ../fish/guestfish-actions.pod:2485
22178 #, no-wrap
22179 msgid ""
22180 " luks-open-ro device mapname\n"
22181 "\n"
22182 msgstr ""
22183
22184 # type: textblock
22185 #: ../fish/guestfish-actions.pod:2487
22186 msgid ""
22187 "This is the same as L</luks-open> except that a read-only mapping is created."
22188 msgstr ""
22189
22190 # type: =head2
22191 #: ../fish/guestfish-actions.pod:2493
22192 msgid "lvcreate"
22193 msgstr ""
22194
22195 # type: verbatim
22196 #: ../fish/guestfish-actions.pod:2495
22197 #, no-wrap
22198 msgid ""
22199 " lvcreate logvol volgroup mbytes\n"
22200 "\n"
22201 msgstr ""
22202
22203 # type: =head2
22204 #: ../fish/guestfish-actions.pod:2500
22205 msgid "lvm-canonical-lv-name"
22206 msgstr ""
22207
22208 # type: verbatim
22209 #: ../fish/guestfish-actions.pod:2502
22210 #, no-wrap
22211 msgid ""
22212 " lvm-canonical-lv-name lvname\n"
22213 "\n"
22214 msgstr ""
22215
22216 # type: textblock
22217 #: ../fish/guestfish-actions.pod:2511
22218 msgid "See also L</is-lv>."
22219 msgstr ""
22220
22221 # type: =head2
22222 #: ../fish/guestfish-actions.pod:2513
22223 msgid "lvm-clear-filter"
22224 msgstr ""
22225
22226 # type: verbatim
22227 #: ../fish/guestfish-actions.pod:2515
22228 #, no-wrap
22229 msgid ""
22230 " lvm-clear-filter\n"
22231 "\n"
22232 msgstr ""
22233
22234 # type: textblock
22235 #: ../fish/guestfish-actions.pod:2517
22236 msgid ""
22237 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22238 "block device."
22239 msgstr ""
22240
22241 # type: =head2
22242 #: ../fish/guestfish-actions.pod:2523
22243 msgid "lvm-remove-all"
22244 msgstr ""
22245
22246 # type: verbatim
22247 #: ../fish/guestfish-actions.pod:2525
22248 #, no-wrap
22249 msgid ""
22250 " lvm-remove-all\n"
22251 "\n"
22252 msgstr ""
22253
22254 # type: =head2
22255 #: ../fish/guestfish-actions.pod:2533
22256 msgid "lvm-set-filter"
22257 msgstr ""
22258
22259 # type: verbatim
22260 #: ../fish/guestfish-actions.pod:2535
22261 #, no-wrap
22262 msgid ""
22263 " lvm-set-filter 'devices ...'\n"
22264 "\n"
22265 msgstr ""
22266
22267 # type: =head2
22268 #: ../fish/guestfish-actions.pod:2560
22269 msgid "lvremove"
22270 msgstr ""
22271
22272 # type: verbatim
22273 #: ../fish/guestfish-actions.pod:2562
22274 #, no-wrap
22275 msgid ""
22276 " lvremove device\n"
22277 "\n"
22278 msgstr ""
22279
22280 # type: =head2
22281 #: ../fish/guestfish-actions.pod:2570
22282 msgid "lvrename"
22283 msgstr ""
22284
22285 # type: verbatim
22286 #: ../fish/guestfish-actions.pod:2572
22287 #, no-wrap
22288 msgid ""
22289 " lvrename logvol newlogvol\n"
22290 "\n"
22291 msgstr ""
22292
22293 # type: =head2
22294 #: ../fish/guestfish-actions.pod:2576
22295 msgid "lvresize"
22296 msgstr ""
22297
22298 # type: verbatim
22299 #: ../fish/guestfish-actions.pod:2578
22300 #, no-wrap
22301 msgid ""
22302 " lvresize device mbytes\n"
22303 "\n"
22304 msgstr ""
22305
22306 # type: =head2
22307 #: ../fish/guestfish-actions.pod:2584
22308 msgid "lvresize-free"
22309 msgstr ""
22310
22311 # type: verbatim
22312 #: ../fish/guestfish-actions.pod:2586
22313 #, no-wrap
22314 msgid ""
22315 " lvresize-free lv percent\n"
22316 "\n"
22317 msgstr ""
22318
22319 # type: =head2
22320 #: ../fish/guestfish-actions.pod:2594
22321 msgid "lvs"
22322 msgstr ""
22323
22324 # type: verbatim
22325 #: ../fish/guestfish-actions.pod:2596
22326 #, no-wrap
22327 msgid ""
22328 " lvs\n"
22329 "\n"
22330 msgstr ""
22331
22332 # type: textblock
22333 #: ../fish/guestfish-actions.pod:2604
22334 msgid "See also L</lvs-full>, L</list-filesystems>."
22335 msgstr ""
22336
22337 # type: =head2
22338 #: ../fish/guestfish-actions.pod:2606
22339 msgid "lvs-full"
22340 msgstr ""
22341
22342 # type: verbatim
22343 #: ../fish/guestfish-actions.pod:2608
22344 #, no-wrap
22345 msgid ""
22346 " lvs-full\n"
22347 "\n"
22348 msgstr ""
22349
22350 # type: =head2
22351 #: ../fish/guestfish-actions.pod:2613
22352 msgid "lvuuid"
22353 msgstr ""
22354
22355 # type: verbatim
22356 #: ../fish/guestfish-actions.pod:2615
22357 #, no-wrap
22358 msgid ""
22359 " lvuuid device\n"
22360 "\n"
22361 msgstr ""
22362
22363 # type: =head2
22364 #: ../fish/guestfish-actions.pod:2619
22365 msgid "lxattrlist"
22366 msgstr ""
22367
22368 # type: verbatim
22369 #: ../fish/guestfish-actions.pod:2621
22370 #, no-wrap
22371 msgid ""
22372 " lxattrlist path 'names ...'\n"
22373 "\n"
22374 msgstr ""
22375
22376 # type: textblock
22377 #: ../fish/guestfish-actions.pod:2637
22378 msgid ""
22379 "This call is intended for programs that want to efficiently list a directory "
22380 "contents without making many round-trips.  See also L</lstatlist> for a "
22381 "similarly efficient call for getting standard stats.  Very long directory "
22382 "listings might cause the protocol message size to be exceeded, causing this "
22383 "call to fail.  The caller must split up such requests into smaller groups of "
22384 "names."
22385 msgstr ""
22386
22387 # type: =head2
22388 #: ../fish/guestfish-actions.pod:2645
22389 msgid "mkdir"
22390 msgstr ""
22391
22392 # type: verbatim
22393 #: ../fish/guestfish-actions.pod:2647
22394 #, no-wrap
22395 msgid ""
22396 " mkdir path\n"
22397 "\n"
22398 msgstr ""
22399
22400 # type: =head2
22401 #: ../fish/guestfish-actions.pod:2651
22402 msgid "mkdir-mode"
22403 msgstr ""
22404
22405 # type: verbatim
22406 #: ../fish/guestfish-actions.pod:2653
22407 #, no-wrap
22408 msgid ""
22409 " mkdir-mode path mode\n"
22410 "\n"
22411 msgstr ""
22412
22413 # type: textblock
22414 #: ../fish/guestfish-actions.pod:2662
22415 msgid "See also L</mkdir>, L</umask>"
22416 msgstr ""
22417
22418 # type: =head2
22419 #: ../fish/guestfish-actions.pod:2664
22420 msgid "mkdir-p"
22421 msgstr ""
22422
22423 # type: verbatim
22424 #: ../fish/guestfish-actions.pod:2666
22425 #, no-wrap
22426 msgid ""
22427 " mkdir-p path\n"
22428 "\n"
22429 msgstr ""
22430
22431 # type: =head2
22432 #: ../fish/guestfish-actions.pod:2671
22433 msgid "mkdtemp"
22434 msgstr ""
22435
22436 # type: verbatim
22437 #: ../fish/guestfish-actions.pod:2673
22438 #, no-wrap
22439 msgid ""
22440 " mkdtemp template\n"
22441 "\n"
22442 msgstr ""
22443
22444 # type: =head2
22445 #: ../fish/guestfish-actions.pod:2694
22446 msgid "mke2fs-J"
22447 msgstr ""
22448
22449 # type: verbatim
22450 #: ../fish/guestfish-actions.pod:2696
22451 #, no-wrap
22452 msgid ""
22453 " mke2fs-J fstype blocksize device journal\n"
22454 "\n"
22455 msgstr ""
22456
22457 # type: textblock
22458 #: ../fish/guestfish-actions.pod:2704
22459 msgid "See also L</mke2journal>."
22460 msgstr ""
22461
22462 # type: =head2
22463 #: ../fish/guestfish-actions.pod:2706
22464 msgid "mke2fs-JL"
22465 msgstr ""
22466
22467 # type: verbatim
22468 #: ../fish/guestfish-actions.pod:2708
22469 #, no-wrap
22470 msgid ""
22471 " mke2fs-JL fstype blocksize device label\n"
22472 "\n"
22473 msgstr ""
22474
22475 # type: textblock
22476 #: ../fish/guestfish-actions.pod:2713
22477 msgid "See also L</mke2journal-L>."
22478 msgstr ""
22479
22480 # type: =head2
22481 #: ../fish/guestfish-actions.pod:2715
22482 msgid "mke2fs-JU"
22483 msgstr ""
22484
22485 # type: verbatim
22486 #: ../fish/guestfish-actions.pod:2717
22487 #, no-wrap
22488 msgid ""
22489 " mke2fs-JU fstype blocksize device uuid\n"
22490 "\n"
22491 msgstr ""
22492
22493 # type: textblock
22494 #: ../fish/guestfish-actions.pod:2722
22495 msgid "See also L</mke2journal-U>."
22496 msgstr ""
22497
22498 # type: =head2
22499 #: ../fish/guestfish-actions.pod:2724
22500 msgid "mke2journal"
22501 msgstr ""
22502
22503 # type: verbatim
22504 #: ../fish/guestfish-actions.pod:2726
22505 #, no-wrap
22506 msgid ""
22507 " mke2journal blocksize device\n"
22508 "\n"
22509 msgstr ""
22510
22511 # type: =head2
22512 #: ../fish/guestfish-actions.pod:2733
22513 msgid "mke2journal-L"
22514 msgstr ""
22515
22516 # type: verbatim
22517 #: ../fish/guestfish-actions.pod:2735
22518 #, no-wrap
22519 msgid ""
22520 " mke2journal-L blocksize label device\n"
22521 "\n"
22522 msgstr ""
22523
22524 # type: =head2
22525 #: ../fish/guestfish-actions.pod:2739
22526 msgid "mke2journal-U"
22527 msgstr ""
22528
22529 # type: verbatim
22530 #: ../fish/guestfish-actions.pod:2741
22531 #, no-wrap
22532 msgid ""
22533 " mke2journal-U blocksize uuid device\n"
22534 "\n"
22535 msgstr ""
22536
22537 # type: =head2
22538 #: ../fish/guestfish-actions.pod:2745
22539 msgid "mkfifo"
22540 msgstr ""
22541
22542 # type: verbatim
22543 #: ../fish/guestfish-actions.pod:2747
22544 #, no-wrap
22545 msgid ""
22546 " mkfifo mode path\n"
22547 "\n"
22548 msgstr ""
22549
22550 # type: textblock
22551 #: ../fish/guestfish-actions.pod:2749
22552 msgid ""
22553 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22554 "is just a convenient wrapper around L</mknod>."
22555 msgstr ""
22556
22557 # type: =head2
22558 #: ../fish/guestfish-actions.pod:2755
22559 msgid "mkfs"
22560 msgstr ""
22561
22562 # type: verbatim
22563 #: ../fish/guestfish-actions.pod:2757
22564 #, no-wrap
22565 msgid ""
22566 " mkfs fstype device\n"
22567 "\n"
22568 msgstr ""
22569
22570 # type: =head2
22571 #: ../fish/guestfish-actions.pod:2763
22572 msgid "mkfs-b"
22573 msgstr ""
22574
22575 # type: verbatim
22576 #: ../fish/guestfish-actions.pod:2765
22577 #, no-wrap
22578 msgid ""
22579 " mkfs-b fstype blocksize device\n"
22580 "\n"
22581 msgstr ""
22582
22583 # type: textblock
22584 #: ../fish/guestfish-actions.pod:2767
22585 msgid ""
22586 "This call is similar to L</mkfs>, but it allows you to control the block "
22587 "size of the resulting filesystem.  Supported block sizes depend on the "
22588 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22589 msgstr ""
22590
22591 # type: =head2
22592 #: ../fish/guestfish-actions.pod:2782
22593 msgid "mkfs-opts"
22594 msgstr ""
22595
22596 # type: verbatim
22597 #: ../fish/guestfish-actions.pod:2784
22598 #, no-wrap
22599 msgid ""
22600 " mkfs-opts fstype device [blocksize:..]\n"
22601 "\n"
22602 msgstr ""
22603
22604 # type: =head2
22605 #: ../fish/guestfish-actions.pod:2806
22606 msgid "mkmountpoint"
22607 msgstr ""
22608
22609 # type: verbatim
22610 #: ../fish/guestfish-actions.pod:2808
22611 #, no-wrap
22612 msgid ""
22613 " mkmountpoint exemptpath\n"
22614 "\n"
22615 msgstr ""
22616
22617 # type: textblock
22618 #: ../fish/guestfish-actions.pod:2810
22619 msgid ""
22620 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22621 "to create extra mountpoints before mounting the first filesystem."
22622 msgstr ""
22623
22624 # type: textblock
22625 #: ../fish/guestfish-actions.pod:2834
22626 msgid ""
22627 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22628 "unexpected errors if you try to mix these calls.  It is safest to manually "
22629 "unmount filesystems and remove mountpoints after use."
22630 msgstr ""
22631
22632 # type: textblock
22633 #: ../fish/guestfish-actions.pod:2838
22634 msgid ""
22635 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22636 "for this to work for manual mountpoints, you must ensure that the innermost "
22637 "mountpoints have the longest pathnames, as in the example code above."
22638 msgstr ""
22639
22640 # type: textblock
22641 #: ../fish/guestfish-actions.pod:2845
22642 msgid ""
22643 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22644 "that L</umount-all> is called when the handle is closed which can also "
22645 "trigger these issues."
22646 msgstr ""
22647
22648 # type: =head2
22649 #: ../fish/guestfish-actions.pod:2849
22650 msgid "mknod"
22651 msgstr ""
22652
22653 # type: verbatim
22654 #: ../fish/guestfish-actions.pod:2851
22655 #, no-wrap
22656 msgid ""
22657 " mknod mode devmajor devminor path\n"
22658 "\n"
22659 msgstr ""
22660
22661 # type: textblock
22662 #: ../fish/guestfish-actions.pod:2861
22663 msgid ""
22664 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22665 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22666 "regular file).  These constants are available in the standard Linux header "
22667 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22668 "wrappers around this command which bitwise OR in the appropriate constant "
22669 "for you."
22670 msgstr ""
22671
22672 # type: =head2
22673 #: ../fish/guestfish-actions.pod:2871
22674 msgid "mknod-b"
22675 msgstr ""
22676
22677 # type: verbatim
22678 #: ../fish/guestfish-actions.pod:2873
22679 #, no-wrap
22680 msgid ""
22681 " mknod-b mode devmajor devminor path\n"
22682 "\n"
22683 msgstr ""
22684
22685 # type: textblock
22686 #: ../fish/guestfish-actions.pod:2875
22687 msgid ""
22688 "This call creates a block device node called C<path> with mode C<mode> and "
22689 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22690 "wrapper around L</mknod>."
22691 msgstr ""
22692
22693 # type: =head2
22694 #: ../fish/guestfish-actions.pod:2881
22695 msgid "mknod-c"
22696 msgstr ""
22697
22698 # type: verbatim
22699 #: ../fish/guestfish-actions.pod:2883
22700 #, no-wrap
22701 msgid ""
22702 " mknod-c mode devmajor devminor path\n"
22703 "\n"
22704 msgstr ""
22705
22706 # type: textblock
22707 #: ../fish/guestfish-actions.pod:2885
22708 msgid ""
22709 "This call creates a char device node called C<path> with mode C<mode> and "
22710 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22711 "wrapper around L</mknod>."
22712 msgstr ""
22713
22714 # type: =head2
22715 #: ../fish/guestfish-actions.pod:2891
22716 msgid "mkswap"
22717 msgstr ""
22718
22719 # type: verbatim
22720 #: ../fish/guestfish-actions.pod:2893
22721 #, no-wrap
22722 msgid ""
22723 " mkswap device\n"
22724 "\n"
22725 msgstr ""
22726
22727 # type: =head2
22728 #: ../fish/guestfish-actions.pod:2897
22729 msgid "mkswap-L"
22730 msgstr ""
22731
22732 # type: verbatim
22733 #: ../fish/guestfish-actions.pod:2899
22734 #, no-wrap
22735 msgid ""
22736 " mkswap-L label device\n"
22737 "\n"
22738 msgstr ""
22739
22740 # type: =head2
22741 #: ../fish/guestfish-actions.pod:2907
22742 msgid "mkswap-U"
22743 msgstr ""
22744
22745 # type: verbatim
22746 #: ../fish/guestfish-actions.pod:2909
22747 #, no-wrap
22748 msgid ""
22749 " mkswap-U uuid device\n"
22750 "\n"
22751 msgstr ""
22752
22753 # type: =head2
22754 #: ../fish/guestfish-actions.pod:2913
22755 msgid "mkswap-file"
22756 msgstr ""
22757
22758 # type: verbatim
22759 #: ../fish/guestfish-actions.pod:2915
22760 #, no-wrap
22761 msgid ""
22762 " mkswap-file path\n"
22763 "\n"
22764 msgstr ""
22765
22766 # type: textblock
22767 #: ../fish/guestfish-actions.pod:2919
22768 msgid ""
22769 "This command just writes a swap file signature to an existing file.  To "
22770 "create the file itself, use something like L</fallocate>."
22771 msgstr ""
22772
22773 # type: =head2
22774 #: ../fish/guestfish-actions.pod:2922
22775 msgid "modprobe"
22776 msgstr ""
22777
22778 # type: verbatim
22779 #: ../fish/guestfish-actions.pod:2924
22780 #, no-wrap
22781 msgid ""
22782 " modprobe modulename\n"
22783 "\n"
22784 msgstr ""
22785
22786 # type: =head2
22787 #: ../fish/guestfish-actions.pod:2931
22788 msgid "mount"
22789 msgstr ""
22790
22791 # type: verbatim
22792 #: ../fish/guestfish-actions.pod:2933
22793 #, no-wrap
22794 msgid ""
22795 " mount device mountpoint\n"
22796 "\n"
22797 msgstr ""
22798
22799 # type: textblock
22800 #: ../fish/guestfish-actions.pod:2949
22801 msgid ""
22802 "B<Important note:> When you use this call, the filesystem options C<sync> "
22803 "and C<noatime> are set implicitly.  This was originally done because we "
22804 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22805 "very large negative performance impact and negligible effect on "
22806 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22807 "code that needs performance, and instead use L</mount-options> (use an empty "
22808 "string for the first parameter if you don't want any options)."
22809 msgstr ""
22810
22811 # type: =head2
22812 #: ../fish/guestfish-actions.pod:2959
22813 msgid "mount-loop"
22814 msgstr ""
22815
22816 # type: verbatim
22817 #: ../fish/guestfish-actions.pod:2961
22818 #, no-wrap
22819 msgid ""
22820 " mount-loop file mountpoint\n"
22821 "\n"
22822 msgstr ""
22823
22824 # type: =head2
22825 #: ../fish/guestfish-actions.pod:2967
22826 msgid "mount-options"
22827 msgstr ""
22828
22829 # type: verbatim
22830 #: ../fish/guestfish-actions.pod:2969
22831 #, no-wrap
22832 msgid ""
22833 " mount-options options device mountpoint\n"
22834 "\n"
22835 msgstr ""
22836
22837 # type: textblock
22838 #: ../fish/guestfish-actions.pod:2971
22839 msgid ""
22840 "This is the same as the L</mount> command, but it allows you to set the "
22841 "mount options as for the L<mount(8)> I<-o> flag."
22842 msgstr ""
22843
22844 # type: =head2
22845 #: ../fish/guestfish-actions.pod:2979
22846 msgid "mount-ro"
22847 msgstr ""
22848
22849 # type: verbatim
22850 #: ../fish/guestfish-actions.pod:2981
22851 #, no-wrap
22852 msgid ""
22853 " mount-ro device mountpoint\n"
22854 "\n"
22855 msgstr ""
22856
22857 # type: textblock
22858 #: ../fish/guestfish-actions.pod:2983
22859 msgid ""
22860 "This is the same as the L</mount> command, but it mounts the filesystem with "
22861 "the read-only (I<-o ro>) flag."
22862 msgstr ""
22863
22864 # type: =head2
22865 #: ../fish/guestfish-actions.pod:2986
22866 msgid "mount-vfs"
22867 msgstr ""
22868
22869 # type: verbatim
22870 #: ../fish/guestfish-actions.pod:2988
22871 #, no-wrap
22872 msgid ""
22873 " mount-vfs options vfstype device mountpoint\n"
22874 "\n"
22875 msgstr ""
22876
22877 # type: textblock
22878 #: ../fish/guestfish-actions.pod:2990
22879 msgid ""
22880 "This is the same as the L</mount> command, but it allows you to set both the "
22881 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22882 msgstr ""
22883
22884 # type: =head2
22885 #: ../fish/guestfish-actions.pod:2994
22886 msgid "mountpoints"
22887 msgstr ""
22888
22889 # type: verbatim
22890 #: ../fish/guestfish-actions.pod:2996
22891 #, no-wrap
22892 msgid ""
22893 " mountpoints\n"
22894 "\n"
22895 msgstr ""
22896
22897 # type: textblock
22898 #: ../fish/guestfish-actions.pod:2998
22899 msgid ""
22900 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22901 "This one returns a hash table (map) of device name to directory where the "
22902 "device is mounted."
22903 msgstr ""
22904
22905 # type: =head2
22906 #: ../fish/guestfish-actions.pod:3002
22907 msgid "mounts"
22908 msgstr ""
22909
22910 # type: verbatim
22911 #: ../fish/guestfish-actions.pod:3004
22912 #, no-wrap
22913 msgid ""
22914 " mounts\n"
22915 "\n"
22916 msgstr ""
22917
22918 # type: textblock
22919 #: ../fish/guestfish-actions.pod:3011
22920 msgid "See also: L</mountpoints>"
22921 msgstr ""
22922
22923 # type: =head2
22924 #: ../fish/guestfish-actions.pod:3013
22925 msgid "mv"
22926 msgstr ""
22927
22928 # type: verbatim
22929 #: ../fish/guestfish-actions.pod:3015
22930 #, no-wrap
22931 msgid ""
22932 " mv src dest\n"
22933 "\n"
22934 msgstr ""
22935
22936 # type: =head2
22937 #: ../fish/guestfish-actions.pod:3020
22938 msgid "ntfs-3g-probe"
22939 msgstr ""
22940
22941 # type: verbatim
22942 #: ../fish/guestfish-actions.pod:3022
22943 #, no-wrap
22944 msgid ""
22945 " ntfs-3g-probe true|false device\n"
22946 "\n"
22947 msgstr ""
22948
22949 # type: =head2
22950 #: ../fish/guestfish-actions.pod:3036
22951 msgid "ntfsresize"
22952 msgstr ""
22953
22954 # type: verbatim
22955 #: ../fish/guestfish-actions.pod:3038
22956 #, no-wrap
22957 msgid ""
22958 " ntfsresize device\n"
22959 "\n"
22960 msgstr ""
22961
22962 # type: =head2
22963 #: ../fish/guestfish-actions.pod:3044
22964 msgid "ntfsresize-size"
22965 msgstr ""
22966
22967 # type: verbatim
22968 #: ../fish/guestfish-actions.pod:3046
22969 #, no-wrap
22970 msgid ""
22971 " ntfsresize-size device size\n"
22972 "\n"
22973 msgstr ""
22974
22975 # type: textblock
22976 #: ../fish/guestfish-actions.pod:3048
22977 msgid ""
22978 "This command is the same as L</ntfsresize> except that it allows you to "
22979 "specify the new size (in bytes) explicitly."
22980 msgstr ""
22981
22982 # type: =head2
22983 #: ../fish/guestfish-actions.pod:3051
22984 msgid "part-add"
22985 msgstr ""
22986
22987 # type: verbatim
22988 #: ../fish/guestfish-actions.pod:3053
22989 #, no-wrap
22990 msgid ""
22991 " part-add device prlogex startsect endsect\n"
22992 "\n"
22993 msgstr ""
22994
22995 # type: textblock
22996 #: ../fish/guestfish-actions.pod:3055
22997 msgid ""
22998 "This command adds a partition to C<device>.  If there is no partition table "
22999 "on the device, call L</part-init> first."
23000 msgstr ""
23001
23002 # type: textblock
23003 #: ../fish/guestfish-actions.pod:3067
23004 msgid ""
23005 "Creating a partition which covers the whole disk is not so easy.  Use L</"
23006 "part-disk> to do that."
23007 msgstr ""
23008
23009 # type: =head2
23010 #: ../fish/guestfish-actions.pod:3070
23011 msgid "part-del"
23012 msgstr ""
23013
23014 # type: verbatim
23015 #: ../fish/guestfish-actions.pod:3072
23016 #, no-wrap
23017 msgid ""
23018 " part-del device partnum\n"
23019 "\n"
23020 msgstr ""
23021
23022 # type: =head2
23023 #: ../fish/guestfish-actions.pod:3080
23024 msgid "part-disk"
23025 msgstr ""
23026
23027 # type: verbatim
23028 #: ../fish/guestfish-actions.pod:3082
23029 #, no-wrap
23030 msgid ""
23031 " part-disk device parttype\n"
23032 "\n"
23033 msgstr ""
23034
23035 # type: textblock
23036 #: ../fish/guestfish-actions.pod:3084
23037 msgid ""
23038 "This command is simply a combination of L</part-init> followed by L</part-"
23039 "add> to create a single primary partition covering the whole disk."
23040 msgstr ""
23041
23042 # type: textblock
23043 #: ../fish/guestfish-actions.pod:3088
23044 msgid ""
23045 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
23046 "possible values are described in L</part-init>."
23047 msgstr ""
23048
23049 # type: =head2
23050 #: ../fish/guestfish-actions.pod:3094
23051 msgid "part-get-bootable"
23052 msgstr ""
23053
23054 # type: verbatim
23055 #: ../fish/guestfish-actions.pod:3096
23056 #, no-wrap
23057 msgid ""
23058 " part-get-bootable device partnum\n"
23059 "\n"
23060 msgstr ""
23061
23062 # type: textblock
23063 #: ../fish/guestfish-actions.pod:3101
23064 msgid "See also L</part-set-bootable>."
23065 msgstr ""
23066
23067 # type: =head2
23068 #: ../fish/guestfish-actions.pod:3103
23069 msgid "part-get-mbr-id"
23070 msgstr ""
23071
23072 # type: verbatim
23073 #: ../fish/guestfish-actions.pod:3105
23074 #, no-wrap
23075 msgid ""
23076 " part-get-mbr-id device partnum\n"
23077 "\n"
23078 msgstr ""
23079
23080 # type: textblock
23081 #: ../fish/guestfish-actions.pod:3110 ../fish/guestfish-actions.pod:3248
23082 msgid ""
23083 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
23084 "undefined results for other partition table types (see L</part-get-"
23085 "parttype>)."
23086 msgstr ""
23087
23088 # type: =head2
23089 #: ../fish/guestfish-actions.pod:3114
23090 msgid "part-get-parttype"
23091 msgstr ""
23092
23093 # type: verbatim
23094 #: ../fish/guestfish-actions.pod:3116
23095 #, no-wrap
23096 msgid ""
23097 " part-get-parttype device\n"
23098 "\n"
23099 msgstr ""
23100
23101 # type: textblock
23102 #: ../fish/guestfish-actions.pod:3121
23103 msgid ""
23104 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
23105 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
23106 "possible, although unusual.  See L</part-init> for a full list."
23107 msgstr ""
23108
23109 # type: =head2
23110 #: ../fish/guestfish-actions.pod:3126
23111 msgid "part-init"
23112 msgstr ""
23113
23114 # type: verbatim
23115 #: ../fish/guestfish-actions.pod:3128
23116 #, no-wrap
23117 msgid ""
23118 " part-init device parttype\n"
23119 "\n"
23120 msgstr ""
23121
23122 # type: textblock
23123 #: ../fish/guestfish-actions.pod:3134
23124 msgid ""
23125 "Initially there are no partitions.  Following this, you should call L</part-"
23126 "add> for each partition required."
23127 msgstr ""
23128
23129 # type: =head2
23130 #: ../fish/guestfish-actions.pod:3197
23131 msgid "part-list"
23132 msgstr ""
23133
23134 # type: verbatim
23135 #: ../fish/guestfish-actions.pod:3199
23136 #, no-wrap
23137 msgid ""
23138 " part-list device\n"
23139 "\n"
23140 msgstr ""
23141
23142 # type: textblock
23143 #: ../fish/guestfish-actions.pod:3214
23144 msgid ""
23145 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23146 "the device's sector size, see L</blockdev-getss>."
23147 msgstr ""
23148
23149 # type: =head2
23150 #: ../fish/guestfish-actions.pod:3227
23151 msgid "part-set-bootable"
23152 msgstr ""
23153
23154 # type: verbatim
23155 #: ../fish/guestfish-actions.pod:3229
23156 #, no-wrap
23157 msgid ""
23158 " part-set-bootable device partnum true|false\n"
23159 "\n"
23160 msgstr ""
23161
23162 # type: =head2
23163 #: ../fish/guestfish-actions.pod:3238
23164 msgid "part-set-mbr-id"
23165 msgstr ""
23166
23167 # type: verbatim
23168 #: ../fish/guestfish-actions.pod:3240
23169 #, no-wrap
23170 msgid ""
23171 " part-set-mbr-id device partnum idbyte\n"
23172 "\n"
23173 msgstr ""
23174
23175 # type: =head2
23176 #: ../fish/guestfish-actions.pod:3252
23177 msgid "part-set-name"
23178 msgstr ""
23179
23180 # type: verbatim
23181 #: ../fish/guestfish-actions.pod:3254
23182 #, no-wrap
23183 msgid ""
23184 " part-set-name device partnum name\n"
23185 "\n"
23186 msgstr ""
23187
23188 # type: =head2
23189 #: ../fish/guestfish-actions.pod:3262
23190 msgid "part-to-dev"
23191 msgstr ""
23192
23193 # type: verbatim
23194 #: ../fish/guestfish-actions.pod:3264
23195 #, no-wrap
23196 msgid ""
23197 " part-to-dev partition\n"
23198 "\n"
23199 msgstr ""
23200
23201 # type: textblock
23202 #: ../fish/guestfish-actions.pod:3270
23203 msgid ""
23204 "The named partition must exist, for example as a string returned from L</"
23205 "list-partitions>."
23206 msgstr ""
23207
23208 # type: =head2
23209 #: ../fish/guestfish-actions.pod:3273
23210 msgid "ping-daemon"
23211 msgstr ""
23212
23213 # type: verbatim
23214 #: ../fish/guestfish-actions.pod:3275
23215 #, no-wrap
23216 msgid ""
23217 " ping-daemon\n"
23218 "\n"
23219 msgstr ""
23220
23221 # type: =head2
23222 #: ../fish/guestfish-actions.pod:3282
23223 msgid "pread"
23224 msgstr ""
23225
23226 # type: verbatim
23227 #: ../fish/guestfish-actions.pod:3284
23228 #, no-wrap
23229 msgid ""
23230 " pread path count offset\n"
23231 "\n"
23232 msgstr ""
23233
23234 # type: textblock
23235 #: ../fish/guestfish-actions.pod:3292
23236 msgid "See also L</pwrite>, L</pread-device>."
23237 msgstr ""
23238
23239 # type: =head2
23240 #: ../fish/guestfish-actions.pod:3297
23241 msgid "pread-device"
23242 msgstr ""
23243
23244 # type: verbatim
23245 #: ../fish/guestfish-actions.pod:3299
23246 #, no-wrap
23247 msgid ""
23248 " pread-device device count offset\n"
23249 "\n"
23250 msgstr ""
23251
23252 # type: textblock
23253 #: ../fish/guestfish-actions.pod:3307
23254 msgid "See also L</pread>."
23255 msgstr ""
23256
23257 # type: =head2
23258 #: ../fish/guestfish-actions.pod:3312
23259 msgid "pvcreate"
23260 msgstr ""
23261
23262 # type: verbatim
23263 #: ../fish/guestfish-actions.pod:3314
23264 #, no-wrap
23265 msgid ""
23266 " pvcreate device\n"
23267 "\n"
23268 msgstr ""
23269
23270 # type: =head2
23271 #: ../fish/guestfish-actions.pod:3320
23272 msgid "pvremove"
23273 msgstr ""
23274
23275 # type: verbatim
23276 #: ../fish/guestfish-actions.pod:3322
23277 #, no-wrap
23278 msgid ""
23279 " pvremove device\n"
23280 "\n"
23281 msgstr ""
23282
23283 # type: =head2
23284 #: ../fish/guestfish-actions.pod:3331
23285 msgid "pvresize"
23286 msgstr ""
23287
23288 # type: verbatim
23289 #: ../fish/guestfish-actions.pod:3333
23290 #, no-wrap
23291 msgid ""
23292 " pvresize device\n"
23293 "\n"
23294 msgstr ""
23295
23296 # type: =head2
23297 #: ../fish/guestfish-actions.pod:3338
23298 msgid "pvresize-size"
23299 msgstr ""
23300
23301 # type: verbatim
23302 #: ../fish/guestfish-actions.pod:3340
23303 #, no-wrap
23304 msgid ""
23305 " pvresize-size device size\n"
23306 "\n"
23307 msgstr ""
23308
23309 # type: textblock
23310 #: ../fish/guestfish-actions.pod:3342
23311 msgid ""
23312 "This command is the same as L</pvresize> except that it allows you to "
23313 "specify the new size (in bytes) explicitly."
23314 msgstr ""
23315
23316 # type: =head2
23317 #: ../fish/guestfish-actions.pod:3345
23318 msgid "pvs"
23319 msgstr ""
23320
23321 # type: verbatim
23322 #: ../fish/guestfish-actions.pod:3347
23323 #, no-wrap
23324 msgid ""
23325 " pvs\n"
23326 "\n"
23327 msgstr ""
23328
23329 # type: textblock
23330 #: ../fish/guestfish-actions.pod:3355
23331 msgid "See also L</pvs-full>."
23332 msgstr ""
23333
23334 # type: =head2
23335 #: ../fish/guestfish-actions.pod:3357
23336 msgid "pvs-full"
23337 msgstr ""
23338
23339 # type: verbatim
23340 #: ../fish/guestfish-actions.pod:3359
23341 #, no-wrap
23342 msgid ""
23343 " pvs-full\n"
23344 "\n"
23345 msgstr ""
23346
23347 # type: =head2
23348 #: ../fish/guestfish-actions.pod:3364
23349 msgid "pvuuid"
23350 msgstr ""
23351
23352 # type: verbatim
23353 #: ../fish/guestfish-actions.pod:3366
23354 #, no-wrap
23355 msgid ""
23356 " pvuuid device\n"
23357 "\n"
23358 msgstr ""
23359
23360 # type: =head2
23361 #: ../fish/guestfish-actions.pod:3370
23362 msgid "pwrite"
23363 msgstr ""
23364
23365 # type: verbatim
23366 #: ../fish/guestfish-actions.pod:3372
23367 #, no-wrap
23368 msgid ""
23369 " pwrite path content offset\n"
23370 "\n"
23371 msgstr ""
23372
23373 # type: textblock
23374 #: ../fish/guestfish-actions.pod:3383
23375 msgid "See also L</pread>, L</pwrite-device>."
23376 msgstr ""
23377
23378 # type: =head2
23379 #: ../fish/guestfish-actions.pod:3388
23380 msgid "pwrite-device"
23381 msgstr ""
23382
23383 # type: verbatim
23384 #: ../fish/guestfish-actions.pod:3390
23385 #, no-wrap
23386 msgid ""
23387 " pwrite-device device content offset\n"
23388 "\n"
23389 msgstr ""
23390
23391 # type: textblock
23392 #: ../fish/guestfish-actions.pod:3400
23393 msgid "See also L</pwrite>."
23394 msgstr ""
23395
23396 # type: =head2
23397 #: ../fish/guestfish-actions.pod:3405
23398 msgid "read-file"
23399 msgstr ""
23400
23401 # type: verbatim
23402 #: ../fish/guestfish-actions.pod:3407
23403 #, no-wrap
23404 msgid ""
23405 " read-file path\n"
23406 "\n"
23407 msgstr ""
23408
23409 # type: textblock
23410 #: ../fish/guestfish-actions.pod:3412
23411 msgid ""
23412 "Unlike L</cat>, this function can correctly handle files that contain "
23413 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23414 "is limited in the total size of file that can be handled."
23415 msgstr ""
23416
23417 # type: =head2
23418 #: ../fish/guestfish-actions.pod:3420
23419 msgid "read-lines"
23420 msgstr ""
23421
23422 # type: verbatim
23423 #: ../fish/guestfish-actions.pod:3422
23424 #, no-wrap
23425 msgid ""
23426 " read-lines path\n"
23427 "\n"
23428 msgstr ""
23429
23430 # type: textblock
23431 #: ../fish/guestfish-actions.pod:3429
23432 msgid ""
23433 "Note that this function cannot correctly handle binary files (specifically, "
23434 "files containing C<\\0> character which is treated as end of line).  For "
23435 "those you need to use the L</read-file> function which has a more complex "
23436 "interface."
23437 msgstr ""
23438
23439 # type: =head2
23440 #: ../fish/guestfish-actions.pod:3434
23441 msgid "readdir"
23442 msgstr ""
23443
23444 # type: verbatim
23445 #: ../fish/guestfish-actions.pod:3436
23446 #, no-wrap
23447 msgid ""
23448 " readdir dir\n"
23449 "\n"
23450 msgstr ""
23451
23452 # type: textblock
23453 #: ../fish/guestfish-actions.pod:3488
23454 msgid ""
23455 "This function is primarily intended for use by programs.  To get a simple "
23456 "list of names, use L</ls>.  To get a printable directory for human "
23457 "consumption, use L</ll>."
23458 msgstr ""
23459
23460 # type: =head2
23461 #: ../fish/guestfish-actions.pod:3492
23462 msgid "readlink"
23463 msgstr ""
23464
23465 # type: verbatim
23466 #: ../fish/guestfish-actions.pod:3494
23467 #, no-wrap
23468 msgid ""
23469 " readlink path\n"
23470 "\n"
23471 msgstr ""
23472
23473 # type: =head2
23474 #: ../fish/guestfish-actions.pod:3498
23475 msgid "readlinklist"
23476 msgstr ""
23477
23478 # type: verbatim
23479 #: ../fish/guestfish-actions.pod:3500
23480 #, no-wrap
23481 msgid ""
23482 " readlinklist path 'names ...'\n"
23483 "\n"
23484 msgstr ""
23485
23486 # type: =head2
23487 #: ../fish/guestfish-actions.pod:3524
23488 msgid "realpath"
23489 msgstr ""
23490
23491 # type: verbatim
23492 #: ../fish/guestfish-actions.pod:3526
23493 #, no-wrap
23494 msgid ""
23495 " realpath path\n"
23496 "\n"
23497 msgstr ""
23498
23499 # type: =head2
23500 #: ../fish/guestfish-actions.pod:3531
23501 msgid "removexattr"
23502 msgstr ""
23503
23504 # type: verbatim
23505 #: ../fish/guestfish-actions.pod:3533
23506 #, no-wrap
23507 msgid ""
23508 " removexattr xattr path\n"
23509 "\n"
23510 msgstr ""
23511
23512 # type: textblock
23513 #: ../fish/guestfish-actions.pod:3538
23514 msgid "See also: L</lremovexattr>, L<attr(5)>."
23515 msgstr ""
23516
23517 # type: =head2
23518 #: ../fish/guestfish-actions.pod:3540
23519 msgid "resize2fs"
23520 msgstr ""
23521
23522 # type: verbatim
23523 #: ../fish/guestfish-actions.pod:3542
23524 #, no-wrap
23525 msgid ""
23526 " resize2fs device\n"
23527 "\n"
23528 msgstr ""
23529
23530 # type: textblock
23531 #: ../fish/guestfish-actions.pod:3547
23532 msgid ""
23533 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23534 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23535 "gives an error about this and sometimes not.  In any case, it is always safe "
23536 "to call L</e2fsck-f> before calling this function."
23537 msgstr ""
23538
23539 # type: =head2
23540 #: ../fish/guestfish-actions.pod:3553
23541 msgid "resize2fs-size"
23542 msgstr ""
23543
23544 # type: verbatim
23545 #: ../fish/guestfish-actions.pod:3555
23546 #, no-wrap
23547 msgid ""
23548 " resize2fs-size device size\n"
23549 "\n"
23550 msgstr ""
23551
23552 # type: textblock
23553 #: ../fish/guestfish-actions.pod:3557
23554 msgid ""
23555 "This command is the same as L</resize2fs> except that it allows you to "
23556 "specify the new size (in bytes) explicitly."
23557 msgstr ""
23558
23559 # type: =head2
23560 #: ../fish/guestfish-actions.pod:3560
23561 msgid "rm"
23562 msgstr ""
23563
23564 # type: verbatim
23565 #: ../fish/guestfish-actions.pod:3562
23566 #, no-wrap
23567 msgid ""
23568 " rm path\n"
23569 "\n"
23570 msgstr ""
23571
23572 # type: =head2
23573 #: ../fish/guestfish-actions.pod:3566
23574 msgid "rm-rf"
23575 msgstr ""
23576
23577 # type: verbatim
23578 #: ../fish/guestfish-actions.pod:3568
23579 #, no-wrap
23580 msgid ""
23581 " rm-rf path\n"
23582 "\n"
23583 msgstr ""
23584
23585 # type: =head2
23586 #: ../fish/guestfish-actions.pod:3574
23587 msgid "rmdir"
23588 msgstr ""
23589
23590 # type: verbatim
23591 #: ../fish/guestfish-actions.pod:3576
23592 #, no-wrap
23593 msgid ""
23594 " rmdir path\n"
23595 "\n"
23596 msgstr ""
23597
23598 # type: =head2
23599 #: ../fish/guestfish-actions.pod:3580
23600 msgid "rmmountpoint"
23601 msgstr ""
23602
23603 # type: verbatim
23604 #: ../fish/guestfish-actions.pod:3582
23605 #, no-wrap
23606 msgid ""
23607 " rmmountpoint exemptpath\n"
23608 "\n"
23609 msgstr ""
23610
23611 # type: textblock
23612 #: ../fish/guestfish-actions.pod:3584
23613 msgid ""
23614 "This calls removes a mountpoint that was previously created with L</"
23615 "mkmountpoint>.  See L</mkmountpoint> for full details."
23616 msgstr ""
23617
23618 # type: =head2
23619 #: ../fish/guestfish-actions.pod:3588
23620 msgid "scrub-device"
23621 msgstr ""
23622
23623 # type: verbatim
23624 #: ../fish/guestfish-actions.pod:3590
23625 #, no-wrap
23626 msgid ""
23627 " scrub-device device\n"
23628 "\n"
23629 msgstr ""
23630
23631 # type: =head2
23632 #: ../fish/guestfish-actions.pod:3601
23633 msgid "scrub-file"
23634 msgstr ""
23635
23636 # type: verbatim
23637 #: ../fish/guestfish-actions.pod:3603
23638 #, no-wrap
23639 msgid ""
23640 " scrub-file file\n"
23641 "\n"
23642 msgstr ""
23643
23644 # type: =head2
23645 #: ../fish/guestfish-actions.pod:3613
23646 msgid "scrub-freespace"
23647 msgstr ""
23648
23649 # type: verbatim
23650 #: ../fish/guestfish-actions.pod:3615
23651 #, no-wrap
23652 msgid ""
23653 " scrub-freespace dir\n"
23654 "\n"
23655 msgstr ""
23656
23657 # type: textblock
23658 #: ../fish/guestfish-actions.pod:3617
23659 msgid ""
23660 "This command creates the directory C<dir> and then fills it with files until "
23661 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23662 "deletes them.  The intention is to scrub any free space on the partition "
23663 "containing C<dir>."
23664 msgstr ""
23665
23666 # type: =head2
23667 #: ../fish/guestfish-actions.pod:3626
23668 msgid "set-append"
23669 msgstr ""
23670
23671 # type: =head2
23672 #: ../fish/guestfish-actions.pod:3628
23673 msgid "append"
23674 msgstr ""
23675
23676 # type: verbatim
23677 #: ../fish/guestfish-actions.pod:3630
23678 #, no-wrap
23679 msgid ""
23680 " set-append append\n"
23681 "\n"
23682 msgstr ""
23683
23684 # type: =head2
23685 #: ../fish/guestfish-actions.pod:3641
23686 msgid "set-autosync"
23687 msgstr ""
23688
23689 # type: =head2
23690 #: ../fish/guestfish-actions.pod:3643
23691 msgid "autosync"
23692 msgstr ""
23693
23694 # type: verbatim
23695 #: ../fish/guestfish-actions.pod:3645
23696 #, no-wrap
23697 msgid ""
23698 " set-autosync true|false\n"
23699 "\n"
23700 msgstr ""
23701
23702 # type: textblock
23703 #: ../fish/guestfish-actions.pod:3647
23704 msgid ""
23705 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23706 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23707 "closed (also if the program exits without closing handles)."
23708 msgstr ""
23709
23710 # type: =head2
23711 #: ../fish/guestfish-actions.pod:3655
23712 msgid "set-direct"
23713 msgstr ""
23714
23715 # type: =head2
23716 #: ../fish/guestfish-actions.pod:3657
23717 msgid "direct"
23718 msgstr ""
23719
23720 # type: verbatim
23721 #: ../fish/guestfish-actions.pod:3659
23722 #, no-wrap
23723 msgid ""
23724 " set-direct true|false\n"
23725 "\n"
23726 msgstr ""
23727
23728 # type: textblock
23729 #: ../fish/guestfish-actions.pod:3665
23730 msgid ""
23731 "One consequence of this is that log messages aren't caught by the library "
23732 "and handled by L</set-log-message-callback>, but go straight to stdout."
23733 msgstr ""
23734
23735 # type: =head2
23736 #: ../fish/guestfish-actions.pod:3674
23737 msgid "set-e2label"
23738 msgstr ""
23739
23740 # type: verbatim
23741 #: ../fish/guestfish-actions.pod:3676
23742 #, no-wrap
23743 msgid ""
23744 " set-e2label device label\n"
23745 "\n"
23746 msgstr ""
23747
23748 # type: textblock
23749 #: ../fish/guestfish-actions.pod:3682
23750 msgid ""
23751 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23752 "label on a filesystem."
23753 msgstr ""
23754
23755 # type: =head2
23756 #: ../fish/guestfish-actions.pod:3685
23757 msgid "set-e2uuid"
23758 msgstr ""
23759
23760 # type: verbatim
23761 #: ../fish/guestfish-actions.pod:3687
23762 #, no-wrap
23763 msgid ""
23764 " set-e2uuid device uuid\n"
23765 "\n"
23766 msgstr ""
23767
23768 # type: textblock
23769 #: ../fish/guestfish-actions.pod:3694
23770 msgid ""
23771 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23772 "UUID of a filesystem."
23773 msgstr ""
23774
23775 # type: =head2
23776 #: ../fish/guestfish-actions.pod:3697
23777 msgid "set-memsize"
23778 msgstr ""
23779
23780 # type: =head2
23781 #: ../fish/guestfish-actions.pod:3699
23782 msgid "memsize"
23783 msgstr ""
23784
23785 # type: verbatim
23786 #: ../fish/guestfish-actions.pod:3701
23787 #, no-wrap
23788 msgid ""
23789 " set-memsize memsize\n"
23790 "\n"
23791 msgstr ""
23792
23793 # type: textblock
23794 #: ../fish/guestfish-actions.pod:3703
23795 msgid ""
23796 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23797 "This only has any effect if called before L</launch>."
23798 msgstr ""
23799
23800 # type: =head2
23801 #: ../fish/guestfish-actions.pod:3714
23802 msgid "set-network"
23803 msgstr ""
23804
23805 # type: =head2
23806 #: ../fish/guestfish-actions.pod:3716
23807 msgid "network"
23808 msgstr ""
23809
23810 # type: verbatim
23811 #: ../fish/guestfish-actions.pod:3718
23812 #, no-wrap
23813 msgid ""
23814 " set-network true|false\n"
23815 "\n"
23816 msgstr ""
23817
23818 # type: textblock
23819 #: ../fish/guestfish-actions.pod:3726
23820 msgid ""
23821 "You must call this before calling L</launch>, otherwise it has no effect."
23822 msgstr ""
23823
23824 # type: =head2
23825 #: ../fish/guestfish-actions.pod:3729
23826 msgid "set-path"
23827 msgstr ""
23828
23829 # type: =head2
23830 #: ../fish/guestfish-actions.pod:3731
23831 msgid "path"
23832 msgstr ""
23833
23834 # type: verbatim
23835 #: ../fish/guestfish-actions.pod:3733
23836 #, no-wrap
23837 msgid ""
23838 " set-path searchpath\n"
23839 "\n"
23840 msgstr ""
23841
23842 # type: =head2
23843 #: ../fish/guestfish-actions.pod:3742
23844 msgid "set-qemu"
23845 msgstr ""
23846
23847 # type: =head2
23848 #: ../fish/guestfish-actions.pod:3744
23849 msgid "qemu"
23850 msgstr ""
23851
23852 # type: verbatim
23853 #: ../fish/guestfish-actions.pod:3746
23854 #, no-wrap
23855 msgid ""
23856 " set-qemu qemu\n"
23857 "\n"
23858 msgstr ""
23859
23860 # type: =head2
23861 #: ../fish/guestfish-actions.pod:3766
23862 msgid "set-recovery-proc"
23863 msgstr ""
23864
23865 # type: =head2
23866 #: ../fish/guestfish-actions.pod:3768
23867 msgid "recovery-proc"
23868 msgstr ""
23869
23870 # type: verbatim
23871 #: ../fish/guestfish-actions.pod:3770
23872 #, no-wrap
23873 msgid ""
23874 " set-recovery-proc true|false\n"
23875 "\n"
23876 msgstr ""
23877
23878 # type: textblock
23879 #: ../fish/guestfish-actions.pod:3772
23880 msgid ""
23881 "If this is called with the parameter C<false> then L</launch> does not "
23882 "create a recovery process.  The purpose of the recovery process is to stop "
23883 "runaway qemu processes in the case where the main program aborts abruptly."
23884 msgstr ""
23885
23886 # type: textblock
23887 #: ../fish/guestfish-actions.pod:3777
23888 msgid ""
23889 "This only has any effect if called before L</launch>, and the default is "
23890 "true."
23891 msgstr ""
23892
23893 # type: =head2
23894 #: ../fish/guestfish-actions.pod:3786
23895 msgid "set-selinux"
23896 msgstr ""
23897
23898 # type: =head2
23899 #: ../fish/guestfish-actions.pod:3788
23900 msgid "selinux"
23901 msgstr ""
23902
23903 # type: verbatim
23904 #: ../fish/guestfish-actions.pod:3790
23905 #, no-wrap
23906 msgid ""
23907 " set-selinux true|false\n"
23908 "\n"
23909 msgstr ""
23910
23911 # type: =head2
23912 #: ../fish/guestfish-actions.pod:3801
23913 msgid "set-trace"
23914 msgstr ""
23915
23916 # type: =head2
23917 #: ../fish/guestfish-actions.pod:3803
23918 msgid "trace"
23919 msgstr ""
23920
23921 # type: verbatim
23922 #: ../fish/guestfish-actions.pod:3805
23923 #, no-wrap
23924 msgid ""
23925 " set-trace true|false\n"
23926 "\n"
23927 msgstr ""
23928
23929 # type: =head2
23930 #: ../fish/guestfish-actions.pod:3821
23931 msgid "set-verbose"
23932 msgstr ""
23933
23934 # type: =head2
23935 #: ../fish/guestfish-actions.pod:3823
23936 msgid "verbose"
23937 msgstr ""
23938
23939 # type: verbatim
23940 #: ../fish/guestfish-actions.pod:3825
23941 #, no-wrap
23942 msgid ""
23943 " set-verbose true|false\n"
23944 "\n"
23945 msgstr ""
23946
23947 # type: =head2
23948 #: ../fish/guestfish-actions.pod:3832
23949 msgid "setcon"
23950 msgstr ""
23951
23952 # type: verbatim
23953 #: ../fish/guestfish-actions.pod:3834
23954 #, no-wrap
23955 msgid ""
23956 " setcon context\n"
23957 "\n"
23958 msgstr ""
23959
23960 # type: =head2
23961 #: ../fish/guestfish-actions.pod:3841
23962 msgid "setxattr"
23963 msgstr ""
23964
23965 # type: verbatim
23966 #: ../fish/guestfish-actions.pod:3843
23967 #, no-wrap
23968 msgid ""
23969 " setxattr xattr val vallen path\n"
23970 "\n"
23971 msgstr ""
23972
23973 # type: textblock
23974 #: ../fish/guestfish-actions.pod:3849
23975 msgid "See also: L</lsetxattr>, L<attr(5)>."
23976 msgstr ""
23977
23978 # type: =head2
23979 #: ../fish/guestfish-actions.pod:3851
23980 msgid "sfdisk"
23981 msgstr ""
23982
23983 # type: verbatim
23984 #: ../fish/guestfish-actions.pod:3853
23985 #, no-wrap
23986 msgid ""
23987 " sfdisk device cyls heads sectors 'lines ...'\n"
23988 "\n"
23989 msgstr ""
23990
23991 # type: textblock
23992 #: ../fish/guestfish-actions.pod:3875
23993 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23994 msgstr ""
23995
23996 # type: =head2
23997 #: ../fish/guestfish-actions.pod:3881
23998 msgid "sfdiskM"
23999 msgstr ""
24000
24001 # type: verbatim
24002 #: ../fish/guestfish-actions.pod:3883
24003 #, no-wrap
24004 msgid ""
24005 " sfdiskM device 'lines ...'\n"
24006 "\n"
24007 msgstr ""
24008
24009 # type: textblock
24010 #: ../fish/guestfish-actions.pod:3885
24011 msgid ""
24012 "This is a simplified interface to the L</sfdisk> command, where partition "
24013 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
24014 "you don't need to specify the cyls, heads and sectors parameters which were "
24015 "rarely if ever used anyway."
24016 msgstr ""
24017
24018 # type: textblock
24019 #: ../fish/guestfish-actions.pod:3891
24020 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
24021 msgstr ""
24022
24023 # type: =head2
24024 #: ../fish/guestfish-actions.pod:3897
24025 msgid "sfdisk-N"
24026 msgstr ""
24027
24028 # type: verbatim
24029 #: ../fish/guestfish-actions.pod:3899
24030 #, no-wrap
24031 msgid ""
24032 " sfdisk-N device partnum cyls heads sectors line\n"
24033 "\n"
24034 msgstr ""
24035
24036 # type: textblock
24037 #: ../fish/guestfish-actions.pod:3904
24038 msgid ""
24039 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
24040 "cyls/heads/sectors parameters."
24041 msgstr ""
24042
24043 # type: textblock
24044 #: ../fish/guestfish-actions.pod:3907
24045 msgid "See also: L</part-add>"
24046 msgstr ""
24047
24048 # type: =head2
24049 #: ../fish/guestfish-actions.pod:3912
24050 msgid "sfdisk-disk-geometry"
24051 msgstr ""
24052
24053 # type: verbatim
24054 #: ../fish/guestfish-actions.pod:3914
24055 #, no-wrap
24056 msgid ""
24057 " sfdisk-disk-geometry device\n"
24058 "\n"
24059 msgstr ""
24060
24061 # type: textblock
24062 #: ../fish/guestfish-actions.pod:3916
24063 msgid ""
24064 "This displays the disk geometry of C<device> read from the partition table.  "
24065 "Especially in the case where the underlying block device has been resized, "
24066 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
24067 "kernel-geometry>)."
24068 msgstr ""
24069
24070 # type: =head2
24071 #: ../fish/guestfish-actions.pod:3924
24072 msgid "sfdisk-kernel-geometry"
24073 msgstr ""
24074
24075 # type: verbatim
24076 #: ../fish/guestfish-actions.pod:3926
24077 #, no-wrap
24078 msgid ""
24079 " sfdisk-kernel-geometry device\n"
24080 "\n"
24081 msgstr ""
24082
24083 # type: =head2
24084 #: ../fish/guestfish-actions.pod:3933
24085 msgid "sfdisk-l"
24086 msgstr ""
24087
24088 # type: verbatim
24089 #: ../fish/guestfish-actions.pod:3935
24090 #, no-wrap
24091 msgid ""
24092 " sfdisk-l device\n"
24093 "\n"
24094 msgstr ""
24095
24096 # type: textblock
24097 #: ../fish/guestfish-actions.pod:3941
24098 msgid "See also: L</part-list>"
24099 msgstr ""
24100
24101 # type: =head2
24102 #: ../fish/guestfish-actions.pod:3943
24103 msgid "sh"
24104 msgstr ""
24105
24106 # type: verbatim
24107 #: ../fish/guestfish-actions.pod:3945
24108 #, no-wrap
24109 msgid ""
24110 " sh command\n"
24111 "\n"
24112 msgstr ""
24113
24114 # type: textblock
24115 #: ../fish/guestfish-actions.pod:3950
24116 msgid "This is like L</command>, but passes the command to:"
24117 msgstr ""
24118
24119 # type: textblock
24120 #: ../fish/guestfish-actions.pod:3958
24121 msgid "All the provisos about L</command> apply to this call."
24122 msgstr ""
24123
24124 # type: =head2
24125 #: ../fish/guestfish-actions.pod:3960
24126 msgid "sh-lines"
24127 msgstr ""
24128
24129 # type: verbatim
24130 #: ../fish/guestfish-actions.pod:3962
24131 #, no-wrap
24132 msgid ""
24133 " sh-lines command\n"
24134 "\n"
24135 msgstr ""
24136
24137 # type: textblock
24138 #: ../fish/guestfish-actions.pod:3964
24139 msgid "This is the same as L</sh>, but splits the result into a list of lines."
24140 msgstr ""
24141
24142 # type: textblock
24143 #: ../fish/guestfish-actions.pod:3967
24144 msgid "See also: L</command-lines>"
24145 msgstr ""
24146
24147 # type: =head2
24148 #: ../fish/guestfish-actions.pod:3969
24149 msgid "sleep"
24150 msgstr ""
24151
24152 # type: verbatim
24153 #: ../fish/guestfish-actions.pod:3971
24154 #, no-wrap
24155 msgid ""
24156 " sleep secs\n"
24157 "\n"
24158 msgstr ""
24159
24160 # type: =head2
24161 #: ../fish/guestfish-actions.pod:3975
24162 msgid "stat"
24163 msgstr ""
24164
24165 # type: verbatim
24166 #: ../fish/guestfish-actions.pod:3977
24167 #, no-wrap
24168 msgid ""
24169 " stat path\n"
24170 "\n"
24171 msgstr ""
24172
24173 # type: =head2
24174 #: ../fish/guestfish-actions.pod:3983
24175 msgid "statvfs"
24176 msgstr ""
24177
24178 # type: verbatim
24179 #: ../fish/guestfish-actions.pod:3985
24180 #, no-wrap
24181 msgid ""
24182 " statvfs path\n"
24183 "\n"
24184 msgstr ""
24185
24186 # type: =head2
24187 #: ../fish/guestfish-actions.pod:3993
24188 msgid "strings"
24189 msgstr ""
24190
24191 # type: verbatim
24192 #: ../fish/guestfish-actions.pod:3995
24193 #, no-wrap
24194 msgid ""
24195 " strings path\n"
24196 "\n"
24197 msgstr ""
24198
24199 # type: =head2
24200 #: ../fish/guestfish-actions.pod:4003
24201 msgid "strings-e"
24202 msgstr ""
24203
24204 # type: verbatim
24205 #: ../fish/guestfish-actions.pod:4005
24206 #, no-wrap
24207 msgid ""
24208 " strings-e encoding path\n"
24209 "\n"
24210 msgstr ""
24211
24212 # type: textblock
24213 #: ../fish/guestfish-actions.pod:4007
24214 msgid ""
24215 "This is like the L</strings> command, but allows you to specify the encoding "
24216 "of strings that are looked for in the source file C<path>."
24217 msgstr ""
24218
24219 # type: textblock
24220 #: ../fish/guestfish-actions.pod:4017
24221 msgid ""
24222 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24223 "ISO-8859-X (this is what L</strings> uses)."
24224 msgstr ""
24225
24226 # type: =head2
24227 #: ../fish/guestfish-actions.pod:4049
24228 msgid "swapoff-device"
24229 msgstr ""
24230
24231 # type: verbatim
24232 #: ../fish/guestfish-actions.pod:4051
24233 #, no-wrap
24234 msgid ""
24235 " swapoff-device device\n"
24236 "\n"
24237 msgstr ""
24238
24239 # type: textblock
24240 #: ../fish/guestfish-actions.pod:4053
24241 msgid ""
24242 "This command disables the libguestfs appliance swap device or partition "
24243 "named C<device>.  See L</swapon-device>."
24244 msgstr ""
24245
24246 # type: =head2
24247 #: ../fish/guestfish-actions.pod:4057
24248 msgid "swapoff-file"
24249 msgstr ""
24250
24251 # type: verbatim
24252 #: ../fish/guestfish-actions.pod:4059
24253 #, no-wrap
24254 msgid ""
24255 " swapoff-file file\n"
24256 "\n"
24257 msgstr ""
24258
24259 # type: =head2
24260 #: ../fish/guestfish-actions.pod:4063
24261 msgid "swapoff-label"
24262 msgstr ""
24263
24264 # type: verbatim
24265 #: ../fish/guestfish-actions.pod:4065
24266 #, no-wrap
24267 msgid ""
24268 " swapoff-label label\n"
24269 "\n"
24270 msgstr ""
24271
24272 # type: =head2
24273 #: ../fish/guestfish-actions.pod:4070
24274 msgid "swapoff-uuid"
24275 msgstr ""
24276
24277 # type: verbatim
24278 #: ../fish/guestfish-actions.pod:4072
24279 #, no-wrap
24280 msgid ""
24281 " swapoff-uuid uuid\n"
24282 "\n"
24283 msgstr ""
24284
24285 # type: =head2
24286 #: ../fish/guestfish-actions.pod:4077
24287 msgid "swapon-device"
24288 msgstr ""
24289
24290 # type: verbatim
24291 #: ../fish/guestfish-actions.pod:4079
24292 #, no-wrap
24293 msgid ""
24294 " swapon-device device\n"
24295 "\n"
24296 msgstr ""
24297
24298 # type: textblock
24299 #: ../fish/guestfish-actions.pod:4081
24300 msgid ""
24301 "This command enables the libguestfs appliance to use the swap device or "
24302 "partition named C<device>.  The increased memory is made available for all "
24303 "commands, for example those run using L</command> or L</sh>."
24304 msgstr ""
24305
24306 # type: =head2
24307 #: ../fish/guestfish-actions.pod:4093
24308 msgid "swapon-file"
24309 msgstr ""
24310
24311 # type: verbatim
24312 #: ../fish/guestfish-actions.pod:4095
24313 #, no-wrap
24314 msgid ""
24315 " swapon-file file\n"
24316 "\n"
24317 msgstr ""
24318
24319 # type: textblock
24320 #: ../fish/guestfish-actions.pod:4097
24321 msgid ""
24322 "This command enables swap to a file.  See L</swapon-device> for other notes."
24323 msgstr ""
24324
24325 # type: =head2
24326 #: ../fish/guestfish-actions.pod:4100
24327 msgid "swapon-label"
24328 msgstr ""
24329
24330 # type: verbatim
24331 #: ../fish/guestfish-actions.pod:4102
24332 #, no-wrap
24333 msgid ""
24334 " swapon-label label\n"
24335 "\n"
24336 msgstr ""
24337
24338 # type: textblock
24339 #: ../fish/guestfish-actions.pod:4104
24340 msgid ""
24341 "This command enables swap to a labeled swap partition.  See L</swapon-"
24342 "device> for other notes."
24343 msgstr ""
24344
24345 # type: =head2
24346 #: ../fish/guestfish-actions.pod:4107
24347 msgid "swapon-uuid"
24348 msgstr ""
24349
24350 # type: verbatim
24351 #: ../fish/guestfish-actions.pod:4109
24352 #, no-wrap
24353 msgid ""
24354 " swapon-uuid uuid\n"
24355 "\n"
24356 msgstr ""
24357
24358 # type: textblock
24359 #: ../fish/guestfish-actions.pod:4111
24360 msgid ""
24361 "This command enables swap to a swap partition with the given UUID.  See L</"
24362 "swapon-device> for other notes."
24363 msgstr ""
24364
24365 # type: =head2
24366 #: ../fish/guestfish-actions.pod:4114
24367 msgid "sync"
24368 msgstr ""
24369
24370 # type: verbatim
24371 #: ../fish/guestfish-actions.pod:4116
24372 #, no-wrap
24373 msgid ""
24374 " sync\n"
24375 "\n"
24376 msgstr ""
24377
24378 # type: =head2
24379 #: ../fish/guestfish-actions.pod:4124
24380 msgid "tail"
24381 msgstr ""
24382
24383 # type: verbatim
24384 #: ../fish/guestfish-actions.pod:4126
24385 #, no-wrap
24386 msgid ""
24387 " tail path\n"
24388 "\n"
24389 msgstr ""
24390
24391 # type: =head2
24392 #: ../fish/guestfish-actions.pod:4134
24393 msgid "tail-n"
24394 msgstr ""
24395
24396 # type: verbatim
24397 #: ../fish/guestfish-actions.pod:4136
24398 #, no-wrap
24399 msgid ""
24400 " tail-n nrlines path\n"
24401 "\n"
24402 msgstr ""
24403
24404 # type: =head2
24405 #: ../fish/guestfish-actions.pod:4149
24406 msgid "tar-in"
24407 msgstr ""
24408
24409 # type: verbatim
24410 #: ../fish/guestfish-actions.pod:4151
24411 #, no-wrap
24412 msgid ""
24413 " tar-in (tarfile|-) directory\n"
24414 "\n"
24415 msgstr ""
24416
24417 # type: textblock
24418 #: ../fish/guestfish-actions.pod:4156
24419 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24420 msgstr ""
24421
24422 # type: =head2
24423 #: ../fish/guestfish-actions.pod:4161
24424 msgid "tar-out"
24425 msgstr ""
24426
24427 # type: verbatim
24428 #: ../fish/guestfish-actions.pod:4163
24429 #, no-wrap
24430 msgid ""
24431 " tar-out directory (tarfile|-)\n"
24432 "\n"
24433 msgstr ""
24434
24435 # type: textblock
24436 #: ../fish/guestfish-actions.pod:4168
24437 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24438 msgstr ""
24439
24440 # type: =head2
24441 #: ../fish/guestfish-actions.pod:4173
24442 msgid "tgz-in"
24443 msgstr ""
24444
24445 # type: verbatim
24446 #: ../fish/guestfish-actions.pod:4175
24447 #, no-wrap
24448 msgid ""
24449 " tgz-in (tarball|-) directory\n"
24450 "\n"
24451 msgstr ""
24452
24453 # type: textblock
24454 #: ../fish/guestfish-actions.pod:4180
24455 msgid "To upload an uncompressed tarball, use L</tar-in>."
24456 msgstr ""
24457
24458 # type: =head2
24459 #: ../fish/guestfish-actions.pod:4184
24460 msgid "tgz-out"
24461 msgstr ""
24462
24463 # type: verbatim
24464 #: ../fish/guestfish-actions.pod:4186
24465 #, no-wrap
24466 msgid ""
24467 " tgz-out directory (tarball|-)\n"
24468 "\n"
24469 msgstr ""
24470
24471 # type: textblock
24472 #: ../fish/guestfish-actions.pod:4191
24473 msgid "To download an uncompressed tarball, use L</tar-out>."
24474 msgstr ""
24475
24476 # type: =head2
24477 #: ../fish/guestfish-actions.pod:4195
24478 msgid "touch"
24479 msgstr ""
24480
24481 # type: verbatim
24482 #: ../fish/guestfish-actions.pod:4197
24483 #, no-wrap
24484 msgid ""
24485 " touch path\n"
24486 "\n"
24487 msgstr ""
24488
24489 # type: =head2
24490 #: ../fish/guestfish-actions.pod:4206
24491 msgid "truncate"
24492 msgstr ""
24493
24494 # type: verbatim
24495 #: ../fish/guestfish-actions.pod:4208
24496 #, no-wrap
24497 msgid ""
24498 " truncate path\n"
24499 "\n"
24500 msgstr ""
24501
24502 # type: =head2
24503 #: ../fish/guestfish-actions.pod:4213
24504 msgid "truncate-size"
24505 msgstr ""
24506
24507 # type: verbatim
24508 #: ../fish/guestfish-actions.pod:4215
24509 #, no-wrap
24510 msgid ""
24511 " truncate-size path size\n"
24512 "\n"
24513 msgstr ""
24514
24515 # type: textblock
24516 #: ../fish/guestfish-actions.pod:4220
24517 msgid ""
24518 "If the current file size is less than C<size> then the file is extended to "
24519 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24520 "blocks are not allocated for the file until you write to it).  To create a "
24521 "non-sparse file of zeroes, use L</fallocate64> instead."
24522 msgstr ""
24523
24524 # type: =head2
24525 #: ../fish/guestfish-actions.pod:4226
24526 msgid "tune2fs-l"
24527 msgstr ""
24528
24529 # type: verbatim
24530 #: ../fish/guestfish-actions.pod:4228
24531 #, no-wrap
24532 msgid ""
24533 " tune2fs-l device\n"
24534 "\n"
24535 msgstr ""
24536
24537 # type: =head2
24538 #: ../fish/guestfish-actions.pod:4238
24539 msgid "txz-in"
24540 msgstr ""
24541
24542 # type: verbatim
24543 #: ../fish/guestfish-actions.pod:4240
24544 #, no-wrap
24545 msgid ""
24546 " txz-in (tarball|-) directory\n"
24547 "\n"
24548 msgstr ""
24549
24550 # type: =head2
24551 #: ../fish/guestfish-actions.pod:4247
24552 msgid "txz-out"
24553 msgstr ""
24554
24555 # type: verbatim
24556 #: ../fish/guestfish-actions.pod:4249
24557 #, no-wrap
24558 msgid ""
24559 " txz-out directory (tarball|-)\n"
24560 "\n"
24561 msgstr ""
24562
24563 # type: =head2
24564 #: ../fish/guestfish-actions.pod:4256
24565 msgid "umask"
24566 msgstr ""
24567
24568 # type: verbatim
24569 #: ../fish/guestfish-actions.pod:4258
24570 #, no-wrap
24571 msgid ""
24572 " umask mask\n"
24573 "\n"
24574 msgstr ""
24575
24576 # type: textblock
24577 #: ../fish/guestfish-actions.pod:4272
24578 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24579 msgstr ""
24580
24581 # type: =head2
24582 #: ../fish/guestfish-actions.pod:4277
24583 msgid "umount"
24584 msgstr ""
24585
24586 # type: =head2
24587 #: ../fish/guestfish-actions.pod:4279
24588 msgid "unmount"
24589 msgstr ""
24590
24591 # type: verbatim
24592 #: ../fish/guestfish-actions.pod:4281
24593 #, no-wrap
24594 msgid ""
24595 " umount pathordevice\n"
24596 "\n"
24597 msgstr ""
24598
24599 # type: =head2
24600 #: ../fish/guestfish-actions.pod:4287
24601 msgid "umount-all"
24602 msgstr ""
24603
24604 # type: =head2
24605 #: ../fish/guestfish-actions.pod:4289
24606 msgid "unmount-all"
24607 msgstr ""
24608
24609 # type: verbatim
24610 #: ../fish/guestfish-actions.pod:4291
24611 #, no-wrap
24612 msgid ""
24613 " umount-all\n"
24614 "\n"
24615 msgstr ""
24616
24617 # type: =head2
24618 #: ../fish/guestfish-actions.pod:4297
24619 msgid "upload"
24620 msgstr ""
24621
24622 # type: verbatim
24623 #: ../fish/guestfish-actions.pod:4299
24624 #, no-wrap
24625 msgid ""
24626 " upload (filename|-) remotefilename\n"
24627 "\n"
24628 msgstr ""
24629
24630 # type: textblock
24631 #: ../fish/guestfish-actions.pod:4306
24632 msgid "See also L</download>."
24633 msgstr ""
24634
24635 # type: =head2
24636 #: ../fish/guestfish-actions.pod:4310
24637 msgid "upload-offset"
24638 msgstr ""
24639
24640 # type: verbatim
24641 #: ../fish/guestfish-actions.pod:4312
24642 #, no-wrap
24643 msgid ""
24644 " upload-offset (filename|-) remotefilename offset\n"
24645 "\n"
24646 msgstr ""
24647
24648 # type: textblock
24649 #: ../fish/guestfish-actions.pod:4324
24650 msgid ""
24651 "Note that there is no limit on the amount of data that can be uploaded with "
24652 "this call, unlike with L</pwrite>, and this call always writes the full "
24653 "amount unless an error occurs."
24654 msgstr ""
24655
24656 # type: textblock
24657 #: ../fish/guestfish-actions.pod:4329
24658 msgid "See also L</upload>, L</pwrite>."
24659 msgstr ""
24660
24661 # type: =head2
24662 #: ../fish/guestfish-actions.pod:4333
24663 msgid "utimens"
24664 msgstr ""
24665
24666 # type: verbatim
24667 #: ../fish/guestfish-actions.pod:4335
24668 #, no-wrap
24669 msgid ""
24670 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24671 "\n"
24672 msgstr ""
24673
24674 # type: =head2
24675 #: ../fish/guestfish-actions.pod:4354
24676 msgid "version"
24677 msgstr ""
24678
24679 # type: verbatim
24680 #: ../fish/guestfish-actions.pod:4356
24681 #, no-wrap
24682 msgid ""
24683 " version\n"
24684 "\n"
24685 msgstr ""
24686
24687 # type: textblock
24688 #: ../fish/guestfish-actions.pod:4383
24689 msgid ""
24690 "I<Note:> Don't use this call to test for availability of features.  In "
24691 "enterprise distributions we backport features from later versions into "
24692 "earlier versions, making this an unreliable way to test for features.  Use "
24693 "L</available> instead."
24694 msgstr ""
24695
24696 # type: =head2
24697 #: ../fish/guestfish-actions.pod:4389
24698 msgid "vfs-label"
24699 msgstr ""
24700
24701 # type: verbatim
24702 #: ../fish/guestfish-actions.pod:4391
24703 #, no-wrap
24704 msgid ""
24705 " vfs-label device\n"
24706 "\n"
24707 msgstr ""
24708
24709 # type: textblock
24710 #: ../fish/guestfish-actions.pod:4398
24711 msgid "To find a filesystem from the label, use L</findfs-label>."
24712 msgstr ""
24713
24714 # type: =head2
24715 #: ../fish/guestfish-actions.pod:4400
24716 msgid "vfs-type"
24717 msgstr ""
24718
24719 # type: verbatim
24720 #: ../fish/guestfish-actions.pod:4402
24721 #, no-wrap
24722 msgid ""
24723 " vfs-type device\n"
24724 "\n"
24725 msgstr ""
24726
24727 # type: =head2
24728 #: ../fish/guestfish-actions.pod:4412
24729 msgid "vfs-uuid"
24730 msgstr ""
24731
24732 # type: verbatim
24733 #: ../fish/guestfish-actions.pod:4414
24734 #, no-wrap
24735 msgid ""
24736 " vfs-uuid device\n"
24737 "\n"
24738 msgstr ""
24739
24740 # type: textblock
24741 #: ../fish/guestfish-actions.pod:4421
24742 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24743 msgstr ""
24744
24745 # type: =head2
24746 #: ../fish/guestfish-actions.pod:4423
24747 msgid "vg-activate"
24748 msgstr ""
24749
24750 # type: verbatim
24751 #: ../fish/guestfish-actions.pod:4425
24752 #, no-wrap
24753 msgid ""
24754 " vg-activate true|false 'volgroups ...'\n"
24755 "\n"
24756 msgstr ""
24757
24758 # type: =head2
24759 #: ../fish/guestfish-actions.pod:4438
24760 msgid "vg-activate-all"
24761 msgstr ""
24762
24763 # type: verbatim
24764 #: ../fish/guestfish-actions.pod:4440
24765 #, no-wrap
24766 msgid ""
24767 " vg-activate-all true|false\n"
24768 "\n"
24769 msgstr ""
24770
24771 # type: =head2
24772 #: ../fish/guestfish-actions.pod:4450
24773 msgid "vgcreate"
24774 msgstr ""
24775
24776 # type: verbatim
24777 #: ../fish/guestfish-actions.pod:4452
24778 #, no-wrap
24779 msgid ""
24780 " vgcreate volgroup 'physvols ...'\n"
24781 "\n"
24782 msgstr ""
24783
24784 # type: =head2
24785 #: ../fish/guestfish-actions.pod:4457
24786 msgid "vglvuuids"
24787 msgstr ""
24788
24789 # type: verbatim
24790 #: ../fish/guestfish-actions.pod:4459
24791 #, no-wrap
24792 msgid ""
24793 " vglvuuids vgname\n"
24794 "\n"
24795 msgstr ""
24796
24797 # type: textblock
24798 #: ../fish/guestfish-actions.pod:4464
24799 msgid ""
24800 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24801 "logical volumes and volume groups."
24802 msgstr ""
24803
24804 # type: textblock
24805 #: ../fish/guestfish-actions.pod:4467
24806 msgid "See also L</vgpvuuids>."
24807 msgstr ""
24808
24809 # type: =head2
24810 #: ../fish/guestfish-actions.pod:4469
24811 msgid "vgpvuuids"
24812 msgstr ""
24813
24814 # type: verbatim
24815 #: ../fish/guestfish-actions.pod:4471
24816 #, no-wrap
24817 msgid ""
24818 " vgpvuuids vgname\n"
24819 "\n"
24820 msgstr ""
24821
24822 # type: textblock
24823 #: ../fish/guestfish-actions.pod:4476
24824 msgid ""
24825 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24826 "physical volumes and volume groups."
24827 msgstr ""
24828
24829 # type: textblock
24830 #: ../fish/guestfish-actions.pod:4479
24831 msgid "See also L</vglvuuids>."
24832 msgstr ""
24833
24834 # type: =head2
24835 #: ../fish/guestfish-actions.pod:4481
24836 msgid "vgremove"
24837 msgstr ""
24838
24839 # type: verbatim
24840 #: ../fish/guestfish-actions.pod:4483
24841 #, no-wrap
24842 msgid ""
24843 " vgremove vgname\n"
24844 "\n"
24845 msgstr ""
24846
24847 # type: =head2
24848 #: ../fish/guestfish-actions.pod:4490
24849 msgid "vgrename"
24850 msgstr ""
24851
24852 # type: verbatim
24853 #: ../fish/guestfish-actions.pod:4492
24854 #, no-wrap
24855 msgid ""
24856 " vgrename volgroup newvolgroup\n"
24857 "\n"
24858 msgstr ""
24859
24860 # type: =head2
24861 #: ../fish/guestfish-actions.pod:4496
24862 msgid "vgs"
24863 msgstr ""
24864
24865 # type: verbatim
24866 #: ../fish/guestfish-actions.pod:4498
24867 #, no-wrap
24868 msgid ""
24869 " vgs\n"
24870 "\n"
24871 msgstr ""
24872
24873 # type: textblock
24874 #: ../fish/guestfish-actions.pod:4506
24875 msgid "See also L</vgs-full>."
24876 msgstr ""
24877
24878 # type: =head2
24879 #: ../fish/guestfish-actions.pod:4508
24880 msgid "vgs-full"
24881 msgstr ""
24882
24883 # type: verbatim
24884 #: ../fish/guestfish-actions.pod:4510
24885 #, no-wrap
24886 msgid ""
24887 " vgs-full\n"
24888 "\n"
24889 msgstr ""
24890
24891 # type: =head2
24892 #: ../fish/guestfish-actions.pod:4515
24893 msgid "vgscan"
24894 msgstr ""
24895
24896 # type: verbatim
24897 #: ../fish/guestfish-actions.pod:4517
24898 #, no-wrap
24899 msgid ""
24900 " vgscan\n"
24901 "\n"
24902 msgstr ""
24903
24904 # type: =head2
24905 #: ../fish/guestfish-actions.pod:4522
24906 msgid "vguuid"
24907 msgstr ""
24908
24909 # type: verbatim
24910 #: ../fish/guestfish-actions.pod:4524
24911 #, no-wrap
24912 msgid ""
24913 " vguuid vgname\n"
24914 "\n"
24915 msgstr ""
24916
24917 # type: =head2
24918 #: ../fish/guestfish-actions.pod:4528
24919 msgid "wc-c"
24920 msgstr ""
24921
24922 # type: verbatim
24923 #: ../fish/guestfish-actions.pod:4530
24924 #, no-wrap
24925 msgid ""
24926 " wc-c path\n"
24927 "\n"
24928 msgstr ""
24929
24930 # type: =head2
24931 #: ../fish/guestfish-actions.pod:4535
24932 msgid "wc-l"
24933 msgstr ""
24934
24935 # type: verbatim
24936 #: ../fish/guestfish-actions.pod:4537
24937 #, no-wrap
24938 msgid ""
24939 " wc-l path\n"
24940 "\n"
24941 msgstr ""
24942
24943 # type: =head2
24944 #: ../fish/guestfish-actions.pod:4542
24945 msgid "wc-w"
24946 msgstr ""
24947
24948 # type: verbatim
24949 #: ../fish/guestfish-actions.pod:4544
24950 #, no-wrap
24951 msgid ""
24952 " wc-w path\n"
24953 "\n"
24954 msgstr ""
24955
24956 # type: =head2
24957 #: ../fish/guestfish-actions.pod:4549
24958 msgid "write"
24959 msgstr ""
24960
24961 # type: verbatim
24962 #: ../fish/guestfish-actions.pod:4551
24963 #, no-wrap
24964 msgid ""
24965 " write path content\n"
24966 "\n"
24967 msgstr ""
24968
24969 # type: =head2
24970 #: ../fish/guestfish-actions.pod:4559
24971 msgid "write-file"
24972 msgstr ""
24973
24974 # type: verbatim
24975 #: ../fish/guestfish-actions.pod:4561
24976 #, no-wrap
24977 msgid ""
24978 " write-file path content size\n"
24979 "\n"
24980 msgstr ""
24981
24982 # type: =head2
24983 #: ../fish/guestfish-actions.pod:4584
24984 msgid "zegrep"
24985 msgstr ""
24986
24987 # type: verbatim
24988 #: ../fish/guestfish-actions.pod:4586
24989 #, no-wrap
24990 msgid ""
24991 " zegrep regex path\n"
24992 "\n"
24993 msgstr ""
24994
24995 # type: =head2
24996 #: ../fish/guestfish-actions.pod:4594
24997 msgid "zegrepi"
24998 msgstr ""
24999
25000 # type: verbatim
25001 #: ../fish/guestfish-actions.pod:4596
25002 #, no-wrap
25003 msgid ""
25004 " zegrepi regex path\n"
25005 "\n"
25006 msgstr ""
25007
25008 # type: =head2
25009 #: ../fish/guestfish-actions.pod:4604
25010 msgid "zero"
25011 msgstr ""
25012
25013 # type: verbatim
25014 #: ../fish/guestfish-actions.pod:4606
25015 #, no-wrap
25016 msgid ""
25017 " zero device\n"
25018 "\n"
25019 msgstr ""
25020
25021 # type: textblock
25022 #: ../fish/guestfish-actions.pod:4614
25023 msgid "See also: L</zero-device>, L</scrub-device>."
25024 msgstr ""
25025
25026 # type: =head2
25027 #: ../fish/guestfish-actions.pod:4616
25028 msgid "zero-device"
25029 msgstr ""
25030
25031 # type: verbatim
25032 #: ../fish/guestfish-actions.pod:4618
25033 #, no-wrap
25034 msgid ""
25035 " zero-device device\n"
25036 "\n"
25037 msgstr ""
25038
25039 # type: textblock
25040 #: ../fish/guestfish-actions.pod:4620
25041 msgid ""
25042 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
25043 "which just zeroes the first few blocks of a device."
25044 msgstr ""
25045
25046 # type: =head2
25047 #: ../fish/guestfish-actions.pod:4627
25048 msgid "zerofree"
25049 msgstr ""
25050
25051 # type: verbatim
25052 #: ../fish/guestfish-actions.pod:4629
25053 #, no-wrap
25054 msgid ""
25055 " zerofree device\n"
25056 "\n"
25057 msgstr ""
25058
25059 # type: =head2
25060 #: ../fish/guestfish-actions.pod:4642
25061 msgid "zfgrep"
25062 msgstr ""
25063
25064 # type: verbatim
25065 #: ../fish/guestfish-actions.pod:4644
25066 #, no-wrap
25067 msgid ""
25068 " zfgrep pattern path\n"
25069 "\n"
25070 msgstr ""
25071
25072 # type: =head2
25073 #: ../fish/guestfish-actions.pod:4652
25074 msgid "zfgrepi"
25075 msgstr ""
25076
25077 # type: verbatim
25078 #: ../fish/guestfish-actions.pod:4654
25079 #, no-wrap
25080 msgid ""
25081 " zfgrepi pattern path\n"
25082 "\n"
25083 msgstr ""
25084
25085 # type: =head2
25086 #: ../fish/guestfish-actions.pod:4662
25087 msgid "zfile"
25088 msgstr ""
25089
25090 # type: verbatim
25091 #: ../fish/guestfish-actions.pod:4664
25092 #, no-wrap
25093 msgid ""
25094 " zfile meth path\n"
25095 "\n"
25096 msgstr ""
25097
25098 # type: textblock
25099 #: ../fish/guestfish-actions.pod:4671
25100 msgid ""
25101 "Since 1.0.63, use L</file> instead which can now process compressed files."
25102 msgstr ""
25103
25104 # type: =head2
25105 #: ../fish/guestfish-actions.pod:4681
25106 msgid "zgrep"
25107 msgstr ""
25108
25109 # type: verbatim
25110 #: ../fish/guestfish-actions.pod:4683
25111 #, no-wrap
25112 msgid ""
25113 " zgrep regex path\n"
25114 "\n"
25115 msgstr ""
25116
25117 # type: =head2
25118 #: ../fish/guestfish-actions.pod:4691
25119 msgid "zgrepi"
25120 msgstr ""
25121
25122 # type: verbatim
25123 #: ../fish/guestfish-actions.pod:4693
25124 #, no-wrap
25125 msgid ""
25126 " zgrepi regex path\n"
25127 "\n"
25128 msgstr ""
25129
25130 # type: =head2
25131 #: ../fish/guestfish-commands.pod:1
25132 msgid "alloc"
25133 msgstr ""
25134
25135 # type: =head2
25136 #: ../fish/guestfish-commands.pod:3
25137 msgid "allocate"
25138 msgstr ""
25139
25140 # type: verbatim
25141 #: ../fish/guestfish-commands.pod:5
25142 #, no-wrap
25143 msgid ""
25144 " alloc filename size\n"
25145 "\n"
25146 msgstr ""
25147
25148 # type: textblock
25149 #: ../fish/guestfish-commands.pod:7
25150 msgid ""
25151 "This creates an empty (zeroed) file of the given size, and then adds so it "
25152 "can be further examined."
25153 msgstr ""
25154
25155 # type: textblock
25156 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25157 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25158 msgstr ""
25159
25160 # type: textblock
25161 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25162 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25163 msgstr ""
25164
25165 # type: textblock
25166 #: ../fish/guestfish-commands.pod:14
25167 msgid ""
25168 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25169 "image, see L</PREPARED DISK IMAGES>."
25170 msgstr ""
25171
25172 # type: =head2
25173 #: ../fish/guestfish-commands.pod:17
25174 msgid "copy-in"
25175 msgstr ""
25176
25177 # type: verbatim
25178 #: ../fish/guestfish-commands.pod:19
25179 #, no-wrap
25180 msgid ""
25181 " copy-in local [local ...] /remotedir\n"
25182 "\n"
25183 msgstr ""
25184
25185 # type: textblock
25186 #: ../fish/guestfish-commands.pod:21
25187 msgid ""
25188 "C<copy-in> copies local files or directories recursively into the disk "
25189 "image, placing them in the directory called C</remotedir> (which must "
25190 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25191 "other commands as necessary."
25192 msgstr ""
25193
25194 # type: textblock
25195 #: ../fish/guestfish-commands.pod:26
25196 msgid ""
25197 "Multiple local files and directories can be specified, but the last "
25198 "parameter must always be a remote directory.  Wildcards cannot be used."
25199 msgstr ""
25200
25201 # type: =head2
25202 #: ../fish/guestfish-commands.pod:30
25203 msgid "copy-out"
25204 msgstr ""
25205
25206 # type: verbatim
25207 #: ../fish/guestfish-commands.pod:32
25208 #, no-wrap
25209 msgid ""
25210 " copy-out remote [remote ...] localdir\n"
25211 "\n"
25212 msgstr ""
25213
25214 # type: textblock
25215 #: ../fish/guestfish-commands.pod:34
25216 msgid ""
25217 "C<copy-out> copies remote files or directories recursively out of the disk "
25218 "image, placing them on the host disk in a local directory called C<localdir> "
25219 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25220 "download>, L</tar-out> and other commands as necessary."
25221 msgstr ""
25222
25223 # type: textblock
25224 #: ../fish/guestfish-commands.pod:40
25225 msgid ""
25226 "Multiple remote files and directories can be specified, but the last "
25227 "parameter must always be a local directory.  To download to the current "
25228 "directory, use C<.> as in:"
25229 msgstr ""
25230
25231 # type: verbatim
25232 #: ../fish/guestfish-commands.pod:44
25233 #, no-wrap
25234 msgid ""
25235 " copy-out /home .\n"
25236 "\n"
25237 msgstr ""
25238
25239 # type: textblock
25240 #: ../fish/guestfish-commands.pod:46
25241 msgid ""
25242 "Wildcards cannot be used in the ordinary command, but you can use them with "
25243 "the help of L</glob> like this:"
25244 msgstr ""
25245
25246 # type: verbatim
25247 #: ../fish/guestfish-commands.pod:49
25248 #, no-wrap
25249 msgid ""
25250 " glob copy-out /home/* .\n"
25251 "\n"
25252 msgstr ""
25253
25254 # type: =head2
25255 #: ../fish/guestfish-commands.pod:51
25256 msgid "echo"
25257 msgstr ""
25258
25259 # type: verbatim
25260 #: ../fish/guestfish-commands.pod:53
25261 #, no-wrap
25262 msgid ""
25263 " echo [params ...]\n"
25264 "\n"
25265 msgstr ""
25266
25267 # type: textblock
25268 #: ../fish/guestfish-commands.pod:55
25269 msgid "This echos the parameters to the terminal."
25270 msgstr ""
25271
25272 # type: =head2
25273 #: ../fish/guestfish-commands.pod:57
25274 msgid "edit"
25275 msgstr ""
25276
25277 # type: =head2
25278 #: ../fish/guestfish-commands.pod:59
25279 msgid "vi"
25280 msgstr ""
25281
25282 # type: =head2
25283 #: ../fish/guestfish-commands.pod:61
25284 msgid "emacs"
25285 msgstr ""
25286
25287 # type: verbatim
25288 #: ../fish/guestfish-commands.pod:63
25289 #, no-wrap
25290 msgid ""
25291 " edit filename\n"
25292 "\n"
25293 msgstr ""
25294
25295 # type: textblock
25296 #: ../fish/guestfish-commands.pod:65
25297 msgid ""
25298 "This is used to edit a file.  It downloads the file, edits it locally using "
25299 "your editor, then uploads the result."
25300 msgstr ""
25301
25302 # type: textblock
25303 #: ../fish/guestfish-commands.pod:68
25304 msgid ""
25305 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25306 "or C<emacs> you will get those corresponding editors."
25307 msgstr ""
25308
25309 # type: =head2
25310 #: ../fish/guestfish-commands.pod:72
25311 msgid "glob"
25312 msgstr ""
25313
25314 # type: verbatim
25315 #: ../fish/guestfish-commands.pod:74
25316 #, no-wrap
25317 msgid ""
25318 " glob command args...\n"
25319 "\n"
25320 msgstr ""
25321
25322 # type: textblock
25323 #: ../fish/guestfish-commands.pod:76
25324 msgid ""
25325 "Expand wildcards in any paths in the args list, and run C<command> "
25326 "repeatedly on each matching path."
25327 msgstr ""
25328
25329 # type: textblock
25330 #: ../fish/guestfish-commands.pod:79
25331 msgid "See L</WILDCARDS AND GLOBBING>."
25332 msgstr ""
25333
25334 # type: =head2
25335 #: ../fish/guestfish-commands.pod:81
25336 msgid "hexedit"
25337 msgstr ""
25338
25339 # type: verbatim
25340 #: ../fish/guestfish-commands.pod:83
25341 #, no-wrap
25342 msgid ""
25343 " hexedit <filename|device>\n"
25344 " hexedit <filename|device> <max>\n"
25345 " hexedit <filename|device> <start> <max>\n"
25346 "\n"
25347 msgstr ""
25348
25349 # type: textblock
25350 #: ../fish/guestfish-commands.pod:87
25351 msgid ""
25352 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25353 "device."
25354 msgstr ""
25355
25356 # type: textblock
25357 #: ../fish/guestfish-commands.pod:90
25358 msgid ""
25359 "This command works by downloading potentially the whole file or device, "
25360 "editing it locally, then uploading it.  If the file or device is large, you "
25361 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25362 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25363 "usual modifiers allowed such as C<1M> (1 megabyte)."
25364 msgstr ""
25365
25366 # type: textblock
25367 #: ../fish/guestfish-commands.pod:97
25368 msgid "For example to edit the first few sectors of a disk you might do:"
25369 msgstr ""
25370
25371 # type: verbatim
25372 #: ../fish/guestfish-commands.pod:100
25373 #, no-wrap
25374 msgid ""
25375 " hexedit /dev/sda 1M\n"
25376 "\n"
25377 msgstr ""
25378
25379 # type: textblock
25380 #: ../fish/guestfish-commands.pod:102
25381 msgid ""
25382 "which would allow you to edit anywhere within the first megabyte of the disk."
25383 msgstr ""
25384
25385 # type: textblock
25386 #: ../fish/guestfish-commands.pod:105
25387 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25388 msgstr ""
25389
25390 # type: verbatim
25391 #: ../fish/guestfish-commands.pod:107
25392 #, no-wrap
25393 msgid ""
25394 " hexedit /dev/sda1 0x400 0x400\n"
25395 "\n"
25396 msgstr ""
25397
25398 # type: textblock
25399 #: ../fish/guestfish-commands.pod:109
25400 msgid "(assuming the superblock is in the standard location)."
25401 msgstr ""
25402
25403 # type: textblock
25404 #: ../fish/guestfish-commands.pod:111
25405 msgid ""
25406 "This command requires the external L<hexedit(1)> program.  You can specify "
25407 "another program to use by setting the C<HEXEDITOR> environment variable."
25408 msgstr ""
25409
25410 # type: textblock
25411 #: ../fish/guestfish-commands.pod:115
25412 msgid "See also L</hexdump>."
25413 msgstr ""
25414
25415 # type: =head2
25416 #: ../fish/guestfish-commands.pod:117
25417 msgid "lcd"
25418 msgstr ""
25419
25420 # type: verbatim
25421 #: ../fish/guestfish-commands.pod:119
25422 #, no-wrap
25423 msgid ""
25424 " lcd directory\n"
25425 "\n"
25426 msgstr ""
25427
25428 # type: textblock
25429 #: ../fish/guestfish-commands.pod:121
25430 msgid ""
25431 "Change the local directory, ie. the current directory of guestfish itself."
25432 msgstr ""
25433
25434 # type: textblock
25435 #: ../fish/guestfish-commands.pod:124
25436 msgid "Note that C<!cd> won't do what you might expect."
25437 msgstr ""
25438
25439 # type: =head2
25440 #: ../fish/guestfish-commands.pod:126
25441 msgid "man"
25442 msgstr ""
25443
25444 # type: =head2
25445 #: ../fish/guestfish-commands.pod:128
25446 msgid "manual"
25447 msgstr ""
25448
25449 # type: verbatim
25450 #: ../fish/guestfish-commands.pod:130
25451 #, no-wrap
25452 msgid ""
25453 "  man\n"
25454 "\n"
25455 msgstr ""
25456
25457 # type: textblock
25458 #: ../fish/guestfish-commands.pod:132
25459 msgid "Opens the manual page for guestfish."
25460 msgstr ""
25461
25462 # type: =head2
25463 #: ../fish/guestfish-commands.pod:134
25464 msgid "more"
25465 msgstr ""
25466
25467 # type: =head2
25468 #: ../fish/guestfish-commands.pod:136
25469 msgid "less"
25470 msgstr ""
25471
25472 # type: verbatim
25473 #: ../fish/guestfish-commands.pod:138
25474 #, no-wrap
25475 msgid ""
25476 " more filename\n"
25477 "\n"
25478 msgstr ""
25479
25480 # type: verbatim
25481 #: ../fish/guestfish-commands.pod:140
25482 #, no-wrap
25483 msgid ""
25484 " less filename\n"
25485 "\n"
25486 msgstr ""
25487
25488 # type: textblock
25489 #: ../fish/guestfish-commands.pod:142
25490 msgid "This is used to view a file."
25491 msgstr ""
25492
25493 # type: textblock
25494 #: ../fish/guestfish-commands.pod:144
25495 msgid ""
25496 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25497 "C<less> you will get the C<less> command specifically."
25498 msgstr ""
25499
25500 # type: =head2
25501 #: ../fish/guestfish-commands.pod:147
25502 msgid "reopen"
25503 msgstr ""
25504
25505 # type: verbatim
25506 #: ../fish/guestfish-commands.pod:149
25507 #, no-wrap
25508 msgid ""
25509 "  reopen\n"
25510 "\n"
25511 msgstr ""
25512
25513 # type: textblock
25514 #: ../fish/guestfish-commands.pod:151
25515 msgid ""
25516 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25517 "normally, because the handle is closed properly when guestfish exits.  "
25518 "However this is occasionally useful for testing."
25519 msgstr ""
25520
25521 # type: =head2
25522 #: ../fish/guestfish-commands.pod:155
25523 msgid "sparse"
25524 msgstr ""
25525
25526 # type: verbatim
25527 #: ../fish/guestfish-commands.pod:157
25528 #, no-wrap
25529 msgid ""
25530 " sparse filename size\n"
25531 "\n"
25532 msgstr ""
25533
25534 # type: textblock
25535 #: ../fish/guestfish-commands.pod:159
25536 msgid ""
25537 "This creates an empty sparse file of the given size, and then adds so it can "
25538 "be further examined."
25539 msgstr ""
25540
25541 # type: textblock
25542 #: ../fish/guestfish-commands.pod:162
25543 msgid ""
25544 "In all respects it works the same as the L</alloc> command, except that the "
25545 "image file is allocated sparsely, which means that disk blocks are not "
25546 "assigned to the file until they are needed.  Sparse disk files only use "
25547 "space when written to, but they are slower and there is a danger you could "
25548 "run out of real disk space during a write operation."
25549 msgstr ""
25550
25551 # type: =head2
25552 #: ../fish/guestfish-commands.pod:172
25553 msgid "supported"
25554 msgstr ""
25555
25556 # type: verbatim
25557 #: ../fish/guestfish-commands.pod:174
25558 #, no-wrap
25559 msgid ""
25560 " supported\n"
25561 "\n"
25562 msgstr ""
25563
25564 # type: textblock
25565 #: ../fish/guestfish-commands.pod:176
25566 msgid ""
25567 "This command returns a list of the optional groups known to the daemon, and "
25568 "indicates which ones are supported by this build of the libguestfs appliance."
25569 msgstr ""
25570
25571 # type: textblock
25572 #: ../fish/guestfish-commands.pod:180
25573 msgid "See also L<guestfs(3)/AVAILABILITY>."
25574 msgstr ""
25575
25576 # type: =head2
25577 #: ../fish/guestfish-commands.pod:182
25578 msgid "time"
25579 msgstr ""
25580
25581 # type: verbatim
25582 #: ../fish/guestfish-commands.pod:184
25583 #, no-wrap
25584 msgid ""
25585 " time command args...\n"
25586 "\n"
25587 msgstr ""
25588
25589 # type: textblock
25590 #: ../fish/guestfish-commands.pod:186
25591 msgid ""
25592 "Run the command as usual, but print the elapsed time afterwards.  This can "
25593 "be useful for benchmarking operations."
25594 msgstr ""
25595
25596 # type: textblock
25597 #: ../test-tool/libguestfs-test-tool.pod:5
25598 msgid "libguestfs-test-tool - End user tests for libguestfs"
25599 msgstr ""
25600
25601 # type: verbatim
25602 #: ../test-tool/libguestfs-test-tool.pod:9
25603 #, no-wrap
25604 msgid ""
25605 " libguestfs-test-tool [--options]\n"
25606 "\n"
25607 msgstr ""
25608
25609 # type: textblock
25610 #: ../test-tool/libguestfs-test-tool.pod:13
25611 msgid ""
25612 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25613 "and developers, to allow them to check basic libguestfs functionality is "
25614 "working.  This is needed because libguestfs occasionally breaks for reasons "
25615 "beyond our control: usually because of changes in the underlying qemu or "
25616 "kernel packages, or the host environment."
25617 msgstr ""
25618
25619 # type: textblock
25620 #: ../test-tool/libguestfs-test-tool.pod:20
25621 msgid "If you suspect a problem in libguestfs, then just run:"
25622 msgstr ""
25623
25624 # type: verbatim
25625 #: ../test-tool/libguestfs-test-tool.pod:22
25626 #, no-wrap
25627 msgid ""
25628 " libguestfs-test-tool\n"
25629 "\n"
25630 msgstr ""
25631
25632 # type: textblock
25633 #: ../test-tool/libguestfs-test-tool.pod:24
25634 msgid "It will print lots of diagnostic messages."
25635 msgstr ""
25636
25637 # type: textblock
25638 #: ../test-tool/libguestfs-test-tool.pod:26
25639 msgid "If it runs to completion successfully, you will see this near the end:"
25640 msgstr ""
25641
25642 # type: verbatim
25643 #: ../test-tool/libguestfs-test-tool.pod:28
25644 #, no-wrap
25645 msgid ""
25646 " ===== TEST FINISHED OK =====\n"
25647 "\n"
25648 msgstr ""
25649
25650 # type: textblock
25651 #: ../test-tool/libguestfs-test-tool.pod:30
25652 msgid "and the test tool will exit with code 0."
25653 msgstr ""
25654
25655 # type: textblock
25656 #: ../test-tool/libguestfs-test-tool.pod:32
25657 msgid ""
25658 "If it fails (and/or exits with non-zero error code), please paste the "
25659 "B<complete, unedited> output of the test tool into a bug report.  More "
25660 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25661 "> website."
25662 msgstr ""
25663
25664 # type: =item
25665 #: ../test-tool/libguestfs-test-tool.pod:41
25666 msgid "I<--help>"
25667 msgstr ""
25668
25669 # type: textblock
25670 #: ../test-tool/libguestfs-test-tool.pod:43
25671 msgid "Display short usage information and exit."
25672 msgstr ""
25673
25674 # type: =item
25675 #: ../test-tool/libguestfs-test-tool.pod:45
25676 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25677 msgstr ""
25678
25679 # type: textblock
25680 #: ../test-tool/libguestfs-test-tool.pod:47
25681 msgid ""
25682 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25683 "normally look in the C<$libexec> directory that was configured when the tool "
25684 "was built."
25685 msgstr ""
25686
25687 # type: =item
25688 #: ../test-tool/libguestfs-test-tool.pod:51
25689 msgid "I<--qemu qemu_binary>"
25690 msgstr ""
25691
25692 # type: textblock
25693 #: ../test-tool/libguestfs-test-tool.pod:53
25694 msgid ""
25695 "If you have downloaded another qemu binary, point this option at the full "
25696 "path of the binary to try it."
25697 msgstr ""
25698
25699 # type: =item
25700 #: ../test-tool/libguestfs-test-tool.pod:56
25701 msgid "I<--qemudir qemu_source_dir>"
25702 msgstr ""
25703
25704 # type: textblock
25705 #: ../test-tool/libguestfs-test-tool.pod:58
25706 msgid ""
25707 "If you have compiled qemu from source, point this option at the source "
25708 "directory to try it."
25709 msgstr ""
25710
25711 # type: =item
25712 #: ../test-tool/libguestfs-test-tool.pod:61
25713 msgid "I<--timeout N>"
25714 msgstr ""
25715
25716 # type: textblock
25717 #: ../test-tool/libguestfs-test-tool.pod:63
25718 msgid ""
25719 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25720 "does not usually need to be adjusted unless your machine is very slow."
25721 msgstr ""
25722
25723 # type: =head1
25724 #: ../test-tool/libguestfs-test-tool.pod:69
25725 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25726 msgstr ""
25727
25728 # type: textblock
25729 #: ../test-tool/libguestfs-test-tool.pod:71
25730 msgid ""
25731 "If you have compiled another version of qemu from source and would like to "
25732 "try that, then you can use the I<--qemudir> option to point to the qemu "
25733 "source directory."
25734 msgstr ""
25735
25736 # type: textblock
25737 #: ../test-tool/libguestfs-test-tool.pod:75
25738 msgid ""
25739 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25740 "option to point to the binary."
25741 msgstr ""
25742
25743 # type: textblock
25744 #: ../test-tool/libguestfs-test-tool.pod:78
25745 msgid ""
25746 "When using an alternate qemu with libguestfs, usually you would need to "
25747 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
25748 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
25749 "use either of the I<--qemudir> or I<--qemu> options."
25750 msgstr ""
25751
25752 # type: textblock
25753 #: ../test-tool/libguestfs-test-tool.pod:85
25754 msgid ""
25755 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25756 "I<1> if there was an error."
25757 msgstr ""
25758
25759 # type: =item
25760 #: ../test-tool/libguestfs-test-tool.pod:92
25761 msgid "/usr/libexec/libguestfs-test-tool-helper"
25762 msgstr ""
25763
25764 # type: textblock
25765 #: ../test-tool/libguestfs-test-tool.pod:94
25766 msgid ""
25767 "This helper program is run inside the appliance and provides additional "
25768 "tests."
25769 msgstr ""
25770
25771 # type: =item
25772 #: ../test-tool/libguestfs-test-tool.pod:97
25773 msgid "/usr/bin/mkisofs"
25774 msgstr ""
25775
25776 # type: textblock
25777 #: ../test-tool/libguestfs-test-tool.pod:99
25778 msgid ""
25779 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25780 "which is used as part of the tests."
25781 msgstr ""
25782
25783 # type: textblock
25784 #: ../test-tool/libguestfs-test-tool.pod:106
25785 msgid ""
25786 "For the full list of environment variables which may affect libguestfs, "
25787 "please see the L<guestfs(3)> manual page."
25788 msgstr ""
25789
25790 # type: textblock
25791 #: ../test-tool/libguestfs-test-tool.pod:111
25792 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25793 msgstr ""
25794
25795 # type: textblock
25796 #: ../test-tool/libguestfs-test-tool.pod:121
25797 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25798 msgstr ""
25799
25800 # type: textblock
25801 #: ../fuse/guestmount.pod:5
25802 msgid ""
25803 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25804 msgstr ""
25805
25806 # type: verbatim
25807 #: ../fuse/guestmount.pod:9
25808 #, no-wrap
25809 msgid ""
25810 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25811 "\n"
25812 msgstr ""
25813
25814 # type: verbatim
25815 #: ../fuse/guestmount.pod:11
25816 #, no-wrap
25817 msgid ""
25818 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25819 "\n"
25820 msgstr ""
25821
25822 # type: verbatim
25823 #: ../fuse/guestmount.pod:13
25824 #, no-wrap
25825 msgid ""
25826 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25827 "\n"
25828 msgstr ""
25829
25830 # type: textblock
25831 #: ../fuse/guestmount.pod:17
25832 msgid ""
25833 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25834 "machines.  If you do this, you risk disk corruption in the VM."
25835 msgstr ""
25836
25837 # type: textblock
25838 #: ../fuse/guestmount.pod:22
25839 msgid ""
25840 "The guestmount program can be used to mount virtual machine filesystems and "
25841 "other disk images on the host.  It uses libguestfs for access to the guest "
25842 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25843 "a mountable device."
25844 msgstr ""
25845
25846 # type: textblock
25847 #: ../fuse/guestmount.pod:27
25848 msgid ""
25849 "Along with other options, you have to give at least one device (I<-a> "
25850 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25851 "option) or use the I<-i> inspection option.  How this works is better "
25852 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25853 "below."
25854 msgstr ""
25855
25856 # type: textblock
25857 #: ../fuse/guestmount.pod:33
25858 msgid ""
25859 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25860 "by you, and the filesystem will not be visible to any other users unless you "
25861 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25862 "the filesystem, use the C<fusermount -u> command."
25863 msgstr ""
25864
25865 # type: textblock
25866 #: ../fuse/guestmount.pod:41
25867 msgid ""
25868 "For a typical Windows guest which has its main filesystem on the first "
25869 "partition:"
25870 msgstr ""
25871
25872 # type: verbatim
25873 #: ../fuse/guestmount.pod:44
25874 #, no-wrap
25875 msgid ""
25876 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25877 "\n"
25878 msgstr ""
25879
25880 # type: textblock
25881 #: ../fuse/guestmount.pod:46
25882 msgid ""
25883 "For a typical Linux guest which has a /boot filesystem on the first "
25884 "partition, and the root filesystem on a logical volume:"
25885 msgstr ""
25886
25887 # type: verbatim
25888 #: ../fuse/guestmount.pod:49
25889 #, no-wrap
25890 msgid ""
25891 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25892 "\n"
25893 msgstr ""
25894
25895 # type: textblock
25896 #: ../fuse/guestmount.pod:51
25897 msgid "To get libguestfs to detect guest mountpoints for you:"
25898 msgstr ""
25899
25900 # type: verbatim
25901 #: ../fuse/guestmount.pod:53
25902 #, no-wrap
25903 msgid ""
25904 " guestmount -a guest.img -i --ro /mnt\n"
25905 "\n"
25906 msgstr ""
25907
25908 # type: textblock
25909 #: ../fuse/guestmount.pod:55
25910 msgid "For a libvirt guest called \"Guest\" you could do:"
25911 msgstr ""
25912
25913 # type: verbatim
25914 #: ../fuse/guestmount.pod:57
25915 #, no-wrap
25916 msgid ""
25917 " guestmount -d Guest -i --ro /mnt\n"
25918 "\n"
25919 msgstr ""
25920
25921 # type: textblock
25922 #: ../fuse/guestmount.pod:59
25923 msgid ""
25924 "If you don't know what filesystems are contained in a guest or disk image, "
25925 "use L<virt-filesystems(1)> first:"
25926 msgstr ""
25927
25928 # type: verbatim
25929 #: ../fuse/guestmount.pod:62
25930 #, no-wrap
25931 msgid ""
25932 " virt-filesystems MyGuest\n"
25933 "\n"
25934 msgstr ""
25935
25936 # type: textblock
25937 #: ../fuse/guestmount.pod:64
25938 msgid ""
25939 "If you want to trace the libguestfs calls but without excessive debugging "
25940 "information, we recommend:"
25941 msgstr ""
25942
25943 # type: verbatim
25944 #: ../fuse/guestmount.pod:67
25945 #, no-wrap
25946 msgid ""
25947 " guestmount [...] --trace /mnt\n"
25948 "\n"
25949 msgstr ""
25950
25951 # type: textblock
25952 #: ../fuse/guestmount.pod:69
25953 msgid "If you want to debug the program, we recommend:"
25954 msgstr ""
25955
25956 # type: verbatim
25957 #: ../fuse/guestmount.pod:71
25958 #, no-wrap
25959 msgid ""
25960 " guestmount [...] --trace --verbose /mnt\n"
25961 "\n"
25962 msgstr ""
25963
25964 # type: textblock
25965 #: ../fuse/guestmount.pod:79
25966 msgid "Add a block device or virtual machine image."
25967 msgstr ""
25968
25969 # type: =item
25970 #: ../fuse/guestmount.pod:96
25971 msgid "B<--dir-cache-timeout N>"
25972 msgstr ""
25973
25974 # type: textblock
25975 #: ../fuse/guestmount.pod:98
25976 msgid ""
25977 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25978 "seconds.  The readdir cache [actually, there are several semi-independent "
25979 "caches] is populated after a readdir(2) call with the stat and extended "
25980 "attributes of the files in the directory, in anticipation that they will be "
25981 "requested soon after."
25982 msgstr ""
25983
25984 # type: textblock
25985 #: ../fuse/guestmount.pod:104
25986 msgid ""
25987 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25988 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25989 "requests, only cache existing ones."
25990 msgstr ""
25991
25992 # type: textblock
25993 #: ../fuse/guestmount.pod:122
25994 msgid ""
25995 "If you have untrusted raw-format guest disk images, you should use this "
25996 "option to specify the disk format.  This avoids a possible security problem "
25997 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
25998 "guestfs_add_drive_opts>."
25999 msgstr ""
26000
26001 # type: =item
26002 #: ../fuse/guestmount.pod:127
26003 msgid "B<--fuse-help>"
26004 msgstr ""
26005
26006 # type: textblock
26007 #: ../fuse/guestmount.pod:129
26008 msgid "Display help on special FUSE options (see I<-o> below)."
26009 msgstr ""
26010
26011 # type: textblock
26012 #: ../fuse/guestmount.pod:133
26013 msgid "Display brief help and exit."
26014 msgstr ""
26015
26016 # type: =item
26017 #: ../fuse/guestmount.pod:146
26018 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
26019 msgstr ""
26020
26021 # type: textblock
26022 #: ../fuse/guestmount.pod:148
26023 msgid ""
26024 "Mount the named partition or logical volume on the given mountpoint B<in the "
26025 "guest> (this has nothing to do with mountpoints in the host)."
26026 msgstr ""
26027
26028 # type: textblock
26029 #: ../fuse/guestmount.pod:151
26030 msgid ""
26031 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
26032 "something on C</>."
26033 msgstr ""
26034
26035 # type: textblock
26036 #: ../fuse/guestmount.pod:156
26037 msgid ""
26038 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
26039 "unmounted.  If you specify this option, then we don't attempt to sync the "
26040 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
26041 msgstr ""
26042
26043 # type: =item
26044 #: ../fuse/guestmount.pod:161
26045 msgid "B<-o option> | B<--option option>"
26046 msgstr ""
26047
26048 # type: textblock
26049 #: ../fuse/guestmount.pod:163
26050 msgid "Pass extra options to FUSE."
26051 msgstr ""
26052
26053 # type: textblock
26054 #: ../fuse/guestmount.pod:165
26055 msgid ""
26056 "To get a list of all the extra options supported by FUSE, use the command "
26057 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
26058 "of them are a good idea."
26059 msgstr ""
26060
26061 # type: verbatim
26062 #: ../fuse/guestmount.pod:169
26063 #, no-wrap
26064 msgid ""
26065 " guestmount --fuse-help\n"
26066 "\n"
26067 msgstr ""
26068
26069 # type: textblock
26070 #: ../fuse/guestmount.pod:171
26071 msgid "Some potentially useful FUSE options:"
26072 msgstr ""
26073
26074 # type: =item
26075 #: ../fuse/guestmount.pod:175
26076 msgid "B<-o allow_other>"
26077 msgstr ""
26078
26079 # type: textblock
26080 #: ../fuse/guestmount.pod:177
26081 msgid "Allow other users to see the filesystem."
26082 msgstr ""
26083
26084 # type: =item
26085 #: ../fuse/guestmount.pod:179
26086 msgid "B<-o attr_timeout=N>"
26087 msgstr ""
26088
26089 # type: textblock
26090 #: ../fuse/guestmount.pod:181
26091 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
26092 msgstr ""
26093
26094 # type: =item
26095 #: ../fuse/guestmount.pod:183
26096 msgid "B<-o kernel_cache>"
26097 msgstr ""
26098
26099 # type: textblock
26100 #: ../fuse/guestmount.pod:185
26101 msgid ""
26102 "Allow the kernel to cache files (reduces the number of reads that have to go "
26103 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
26104 "afford the extra memory usage."
26105 msgstr ""
26106
26107 # type: =item
26108 #: ../fuse/guestmount.pod:189
26109 msgid "B<-o uid=N> B<-o gid=N>"
26110 msgstr ""
26111
26112 # type: textblock
26113 #: ../fuse/guestmount.pod:191
26114 msgid ""
26115 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
26116 "the chosen values."
26117 msgstr ""
26118
26119 # type: textblock
26120 #: ../fuse/guestmount.pod:198
26121 msgid ""
26122 "Add devices and mount everything read-only.  Also disallow writes and make "
26123 "the disk appear read-only to FUSE."
26124 msgstr ""
26125
26126 # type: textblock
26127 #: ../fuse/guestmount.pod:201
26128 msgid ""
26129 "This is highly recommended if you are not going to edit the guest disk.  If "
26130 "the guest is running and this option is I<not> supplied, then there is a "
26131 "strong risk of disk corruption in the guest.  We try to prevent this from "
26132 "happening, but it is not always possible."
26133 msgstr ""
26134
26135 # type: textblock
26136 #: ../fuse/guestmount.pod:206
26137 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26138 msgstr ""
26139
26140 # type: textblock
26141 #: ../fuse/guestmount.pod:210
26142 msgid "Enable SELinux support for the guest."
26143 msgstr ""
26144
26145 # type: textblock
26146 #: ../fuse/guestmount.pod:214
26147 msgid "Enable verbose messages from underlying libguestfs."
26148 msgstr ""
26149
26150 # type: textblock
26151 #: ../fuse/guestmount.pod:218
26152 msgid "Display the program version and exit."
26153 msgstr ""
26154
26155 # type: textblock
26156 #: ../fuse/guestmount.pod:222
26157 msgid ""
26158 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26159 "FOR READ AND WRITE>."
26160 msgstr ""
26161
26162 # type: =item
26163 #: ../fuse/guestmount.pod:225
26164 msgid "B<-x> | B<--trace>"
26165 msgstr ""
26166
26167 # type: textblock
26168 #: ../fuse/guestmount.pod:227
26169 msgid "Trace libguestfs calls."
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../fuse/guestmount.pod:229
26174 msgid "This also stops the daemon from forking into the background."
26175 msgstr ""
26176
26177 # type: textblock
26178 #: ../fuse/guestmount.pod:235
26179 msgid ""
26180 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26181 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26182 "net/>."
26183 msgstr ""
26184
26185 # type: textblock
26186 #: ../tools/virt-edit.pl:34
26187 msgid "virt-edit - Edit a file in a virtual machine"
26188 msgstr ""
26189
26190 # type: verbatim
26191 #: ../tools/virt-edit.pl:38
26192 #, no-wrap
26193 msgid ""
26194 " virt-edit [--options] domname file\n"
26195 "\n"
26196 msgstr ""
26197
26198 # type: verbatim
26199 #: ../tools/virt-edit.pl:40
26200 #, no-wrap
26201 msgid ""
26202 " virt-edit [--options] disk.img [disk.img ...] file\n"
26203 "\n"
26204 msgstr ""
26205
26206 # type: verbatim
26207 #: ../tools/virt-edit.pl:42
26208 #, no-wrap
26209 msgid ""
26210 " virt-edit [domname|disk.img] file -e 'expr'\n"
26211 "\n"
26212 msgstr ""
26213
26214 # type: textblock
26215 #: ../tools/virt-edit.pl:46
26216 msgid ""
26217 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
26218 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
26219 "doing this, but doesn't catch all cases."
26220 msgstr ""
26221
26222 # type: textblock
26223 #: ../tools/virt-edit.pl:52
26224 msgid ""
26225 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
26226 "the named virtual machine (or disk image)."
26227 msgstr ""
26228
26229 # type: textblock
26230 #: ../tools/virt-edit.pl:55
26231 msgid ""
26232 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
26233 "you should look at the L<guestfish(1)> tool."
26234 msgstr ""
26235
26236 # type: textblock
26237 #: ../tools/virt-edit.pl:60
26238 msgid "Edit the named files interactively:"
26239 msgstr ""
26240
26241 # type: verbatim
26242 #: ../tools/virt-edit.pl:62
26243 #, no-wrap
26244 msgid ""
26245 " virt-edit mydomain /boot/grub/grub.conf\n"
26246 "\n"
26247 msgstr ""
26248
26249 # type: verbatim
26250 #: ../tools/virt-edit.pl:64
26251 #, no-wrap
26252 msgid ""
26253 " virt-edit mydomain /etc/passwd\n"
26254 "\n"
26255 msgstr ""
26256
26257 # type: textblock
26258 #: ../tools/virt-edit.pl:66
26259 msgid ""
26260 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
26261 "below).  To change the init default level to 5:"
26262 msgstr ""
26263
26264 # type: verbatim
26265 #: ../tools/virt-edit.pl:70
26266 #, no-wrap
26267 msgid ""
26268 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
26269 "\n"
26270 msgstr ""
26271
26272 # type: textblock
26273 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181
26274 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108
26275 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
26276 msgid "Display brief help."
26277 msgstr ""
26278
26279 # type: =item
26280 #: ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187
26281 #: ../tools/virt-resize.pl:270 ../tools/virt-list-filesystems.pl:69
26282 #: ../tools/virt-tar.pl:114 ../tools/virt-make-fs.pl:169
26283 #: ../tools/virt-list-partitions.pl:70
26284 msgid "B<--version>"
26285 msgstr ""
26286
26287 # type: textblock
26288 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189
26289 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
26290 #: ../tools/virt-tar.pl:116 ../tools/virt-make-fs.pl:171
26291 #: ../tools/virt-list-partitions.pl:72
26292 msgid "Display version number and exit."
26293 msgstr ""
26294
26295 # type: =item
26296 #: ../tools/virt-edit.pl:96
26297 msgid "B<--backup extension> | B<-b extension>"
26298 msgstr ""
26299
26300 # type: textblock
26301 #: ../tools/virt-edit.pl:98
26302 msgid ""
26303 "Create a backup of the original file I<in the guest disk image>.  The backup "
26304 "has the original filename with C<extension> added."
26305 msgstr ""
26306
26307 # type: textblock
26308 #: ../tools/virt-edit.pl:101
26309 msgid ""
26310 "Usually the first character of C<extension> would be a dot C<.> so you would "
26311 "write:"
26312 msgstr ""
26313
26314 # type: verbatim
26315 #: ../tools/virt-edit.pl:104
26316 #, no-wrap
26317 msgid ""
26318 " virt-edit -b .orig [etc]\n"
26319 "\n"
26320 msgstr ""
26321
26322 # type: textblock
26323 #: ../tools/virt-edit.pl:106
26324 msgid "By default, no backup file is made."
26325 msgstr ""
26326
26327 # type: =item
26328 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203
26329 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122
26330 #: ../tools/virt-list-partitions.pl:78
26331 msgid "B<--connect URI> | B<-c URI>"
26332 msgstr ""
26333
26334 # type: textblock
26335 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205
26336 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124
26337 #: ../tools/virt-list-partitions.pl:80
26338 msgid ""
26339 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
26340 "to the default libvirt hypervisor."
26341 msgstr ""
26342
26343 # type: textblock
26344 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208
26345 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127
26346 #: ../tools/virt-list-partitions.pl:83
26347 msgid ""
26348 "If you specify guest block devices directly, then libvirt is not used at all."
26349 msgstr ""
26350
26351 # type: =item
26352 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215
26353 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
26354 #: ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
26355 msgid "B<--format> raw"
26356 msgstr ""
26357
26358 # type: textblock
26359 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217
26360 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136
26361 #: ../tools/virt-list-partitions.pl:92
26362 msgid ""
26363 "Specify the format of disk images given on the command line.  If this is "
26364 "omitted then the format is autodetected from the content of the disk image."
26365 msgstr ""
26366
26367 # type: textblock
26368 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221
26369 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140
26370 #: ../tools/virt-list-partitions.pl:96
26371 msgid ""
26372 "If disk images are requested from libvirt, then this program asks libvirt "
26373 "for this information.  In this case, the value of the format parameter is "
26374 "ignored."
26375 msgstr ""
26376
26377 # type: textblock
26378 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225
26379 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
26380 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144
26381 #: ../tools/virt-list-partitions.pl:100
26382 msgid ""
26383 "If working with untrusted raw-format guest disk images, you should ensure "
26384 "the format is always specified."
26385 msgstr ""
26386
26387 # type: =item
26388 #: ../tools/virt-edit.pl:141
26389 msgid "B<--expr EXPR> | B<-e EXPR>"
26390 msgstr ""
26391
26392 # type: textblock
26393 #: ../tools/virt-edit.pl:143
26394 msgid ""
26395 "Instead of launching the external editor, non-interactively apply the Perl "
26396 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26397 "EDITING> below."
26398 msgstr ""
26399
26400 # type: textblock
26401 #: ../tools/virt-edit.pl:147
26402 msgid ""
26403 "Be careful to properly quote the expression to prevent it from being altered "
26404 "by the shell."
26405 msgstr ""
26406
26407 # type: =head1
26408 #: ../tools/virt-edit.pl:268
26409 msgid "NON-INTERACTIVE EDITING"
26410 msgstr ""
26411
26412 # type: textblock
26413 #: ../tools/virt-edit.pl:270
26414 msgid ""
26415 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26416 "administrator can interactively edit the file."
26417 msgstr ""
26418
26419 # type: textblock
26420 #: ../tools/virt-edit.pl:273
26421 msgid ""
26422 "There are two ways also to use C<virt-edit> from scripts in order to make "
26423 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26424 "like this, it's less error-prone to write scripts directly using the "
26425 "libguestfs API and Augeas for configuration file editing.)"
26426 msgstr ""
26427
26428 # type: textblock
26429 #: ../tools/virt-edit.pl:279
26430 msgid ""
26431 "The first method is to temporarily set C<$EDITOR> to any script or program "
26432 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26433 "update C<tmpfile> in place however it likes."
26434 msgstr ""
26435
26436 # type: textblock
26437 #: ../tools/virt-edit.pl:283
26438 msgid ""
26439 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26440 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26441 "instances of C<foo> with C<bar> in a file:"
26442 msgstr ""
26443
26444 # type: verbatim
26445 #: ../tools/virt-edit.pl:287
26446 #, no-wrap
26447 msgid ""
26448 " virt-edit domname filename -e 's/foo/bar/'\n"
26449 "\n"
26450 msgstr ""
26451
26452 # type: textblock
26453 #: ../tools/virt-edit.pl:289
26454 msgid ""
26455 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26456 "For example to delete root's password you could do:"
26457 msgstr ""
26458
26459 # type: verbatim
26460 #: ../tools/virt-edit.pl:292
26461 #, no-wrap
26462 msgid ""
26463 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26464 "\n"
26465 msgstr ""
26466
26467 # type: textblock
26468 #: ../tools/virt-edit.pl:294
26469 msgid ""
26470 "What really happens is that the snippet is evaluated as a Perl expression "
26471 "for each line of the file.  The line, including the final C<\\n>, is passed "
26472 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26473 msgstr ""
26474
26475 # type: textblock
26476 #: ../tools/virt-edit.pl:299
26477 msgid ""
26478 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26479 "C<apache> user account from the password file you can do:"
26480 msgstr ""
26481
26482 # type: verbatim
26483 #: ../tools/virt-edit.pl:302
26484 #, no-wrap
26485 msgid ""
26486 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26487 "\n"
26488 msgstr ""
26489
26490 # type: textblock
26491 #: ../tools/virt-edit.pl:304
26492 msgid ""
26493 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26494 "the end of the file is rather difficult this way since there is no concept "
26495 "of \"last line of the file\" - your expression just doesn't get called "
26496 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26497 "want to do this."
26498 msgstr ""
26499
26500 # type: textblock
26501 #: ../tools/virt-edit.pl:310
26502 msgid ""
26503 "The variable C<$lineno> contains the current line number.  As is "
26504 "traditional, the first line in the file is number C<1>."
26505 msgstr ""
26506
26507 # type: textblock
26508 #: ../tools/virt-edit.pl:313
26509 msgid ""
26510 "The return value from the expression is ignored, but the expression may call "
26511 "C<die> in order to abort the whole program, leaving the original file "
26512 "untouched."
26513 msgstr ""
26514
26515 # type: textblock
26516 #: ../tools/virt-edit.pl:317
26517 msgid ""
26518 "Remember when matching the end of a line that C<$_> may contain the final C<"
26519 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26520 "newline then neither of these.  Thus to match or substitute some text at the "
26521 "end of a line, use this regular expression:"
26522 msgstr ""
26523
26524 # type: verbatim
26525 #: ../tools/virt-edit.pl:322
26526 #, no-wrap
26527 msgid ""
26528 " /some text(\\r?\\n)?$/\n"
26529 "\n"
26530 msgstr ""
26531
26532 # type: textblock
26533 #: ../tools/virt-edit.pl:324
26534 msgid ""
26535 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
26536 "$_> itself (since that would remove all newlines from the file):"
26537 msgstr ""
26538
26539 # type: verbatim
26540 #: ../tools/virt-edit.pl:328
26541 #, no-wrap
26542 msgid ""
26543 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26544 "\n"
26545 msgstr ""
26546
26547 # type: =item
26548 #: ../tools/virt-edit.pl:334
26549 msgid "C<EDITOR>"
26550 msgstr ""
26551
26552 # type: textblock
26553 #: ../tools/virt-edit.pl:336
26554 msgid ""
26555 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
26556 "\"emacs -nw\">"
26557 msgstr ""
26558
26559 # type: textblock
26560 #: ../tools/virt-edit.pl:339
26561 msgid "If not set, C<vi> is used."
26562 msgstr ""
26563
26564 # type: =head2
26565 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141
26566 #: ../tools/virt-win-reg.pl:477 ../tools/virt-resize.pl:1476
26567 #: ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:274
26568 #: ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:250
26569 msgid "SHELL QUOTING"
26570 msgstr ""
26571
26572 # type: textblock
26573 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479
26574 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
26575 #: ../tools/virt-tar.pl:276 ../tools/virt-make-fs.pl:529
26576 #: ../tools/virt-list-partitions.pl:252
26577 msgid ""
26578 "Libvirt guest names can contain arbitrary characters, some of which have "
26579 "meaning to the shell such as C<#> and space.  You may need to quote or "
26580 "escape these characters on the command line.  See the shell manual page L<sh"
26581 "(1)> for details."
26582 msgstr ""
26583
26584 # type: textblock
26585 #: ../tools/virt-edit.pl:352
26586 msgid ""
26587 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
26588 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
26589 "L<perlre(1)>."
26590 msgstr ""
26591
26592 # type: =head1
26593 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510
26594 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
26595 #: ../tools/virt-tar.pl:292 ../tools/virt-make-fs.pl:559
26596 #: ../tools/virt-list-partitions.pl:269
26597 msgid "AUTHOR"
26598 msgstr ""
26599
26600 # type: textblock
26601 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512
26602 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
26603 #: ../tools/virt-tar.pl:294 ../tools/virt-make-fs.pl:561
26604 #: ../tools/virt-list-partitions.pl:271
26605 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26606 msgstr ""
26607
26608 # type: textblock
26609 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
26610 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26611 msgstr ""
26612
26613 # type: textblock
26614 #: ../tools/virt-win-reg.pl:37
26615 msgid ""
26616 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
26617 msgstr ""
26618
26619 # type: verbatim
26620 #: ../tools/virt-win-reg.pl:41
26621 #, no-wrap
26622 msgid ""
26623 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26624 "\n"
26625 msgstr ""
26626
26627 # type: verbatim
26628 #: ../tools/virt-win-reg.pl:43
26629 #, no-wrap
26630 msgid ""
26631 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26632 "\n"
26633 msgstr ""
26634
26635 # type: verbatim
26636 #: ../tools/virt-win-reg.pl:45
26637 #, no-wrap
26638 msgid ""
26639 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26640 "\n"
26641 msgstr ""
26642
26643 # type: verbatim
26644 #: ../tools/virt-win-reg.pl:47
26645 #, no-wrap
26646 msgid ""
26647 " virt-win-reg --merge domname [input.reg ...]\n"
26648 "\n"
26649 msgstr ""
26650
26651 # type: verbatim
26652 #: ../tools/virt-win-reg.pl:49
26653 #, no-wrap
26654 msgid ""
26655 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26656 "\n"
26657 msgstr ""
26658
26659 # type: textblock
26660 #: ../tools/virt-win-reg.pl:53
26661 msgid ""
26662 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26663 "virtual machines.  If you do this, you I<will> get irreversible disk "
26664 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26665 "but doesn't catch all cases."
26666 msgstr ""
26667
26668 # type: textblock
26669 #: ../tools/virt-win-reg.pl:58
26670 msgid ""
26671 "Modifying the Windows Registry is an inherently risky operation.  The format "
26672 "is deliberately obscure and undocumented, and Registry changes can leave the "
26673 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26674 "you have a reliable backup first."
26675 msgstr ""
26676
26677 # type: textblock
26678 #: ../tools/virt-win-reg.pl:65
26679 msgid ""
26680 "This program can export and merge Windows Registry entries from a Windows "
26681 "guest."
26682 msgstr ""
26683
26684 # type: textblock
26685 #: ../tools/virt-win-reg.pl:68
26686 msgid ""
26687 "The first parameter is the libvirt guest name or the raw disk image of a "
26688 "Windows guest."
26689 msgstr ""
26690
26691 # type: textblock
26692 #: ../tools/virt-win-reg.pl:71
26693 msgid ""
26694 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
26695 "exported (recursively).  For example:"
26696 msgstr ""
26697
26698 # type: verbatim
26699 #: ../tools/virt-win-reg.pl:74
26700 #, no-wrap
26701 msgid ""
26702 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26703 "\n"
26704 msgstr ""
26705
26706 # type: textblock
26707 #: ../tools/virt-win-reg.pl:76
26708 msgid ""
26709 "You can also display single values from within registry keys, for example:"
26710 msgstr ""
26711
26712 # type: verbatim
26713 #: ../tools/virt-win-reg.pl:79
26714 #, no-wrap
26715 msgid ""
26716 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26717 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26718 " Windows 7 Enterprise\n"
26719 "\n"
26720 msgstr ""
26721
26722 # type: textblock
26723 #: ../tools/virt-win-reg.pl:83
26724 msgid ""
26725 "With C<--merge>, you can merge a textual regedit file into the Windows "
26726 "Registry:"
26727 msgstr ""
26728
26729 # type: verbatim
26730 #: ../tools/virt-win-reg.pl:86
26731 #, no-wrap
26732 msgid ""
26733 " $ virt-win-reg --merge Windows7 changes.reg\n"
26734 "\n"
26735 msgstr ""
26736
26737 # type: =head2
26738 #: ../tools/virt-win-reg.pl:88
26739 msgid "SUPPORTED SYSTEMS"
26740 msgstr ""
26741
26742 # type: textblock
26743 #: ../tools/virt-win-reg.pl:90
26744 msgid ""
26745 "The program currently supports Windows NT-derived guests starting with "
26746 "Windows XP through to at least Windows 7."
26747 msgstr ""
26748
26749 # type: textblock
26750 #: ../tools/virt-win-reg.pl:93
26751 msgid ""
26752 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
26753 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
26754 "and C<HKEY_USERS\\.DEFAULT>."
26755 msgstr ""
26756
26757 # type: textblock
26758 #: ../tools/virt-win-reg.pl:97
26759 msgid ""
26760 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26761 "C<HKEY_USERS>."
26762 msgstr ""
26763
26764 # type: textblock
26765 #: ../tools/virt-win-reg.pl:100
26766 msgid ""
26767 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26768 "time."
26769 msgstr ""
26770
26771 # type: =head2
26772 #: ../tools/virt-win-reg.pl:103
26773 msgid "NOTE"
26774 msgstr ""
26775
26776 # type: textblock
26777 #: ../tools/virt-win-reg.pl:105
26778 msgid ""
26779 "This program is only meant for simple access to the registry.  If you want "
26780 "to do complicated things with the registry, we suggest you download the "
26781 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26782 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26783 "L<hivexregedit(1)>."
26784 msgstr ""
26785
26786 # type: =head2
26787 #: ../tools/virt-win-reg.pl:111
26788 msgid "ENCODING"
26789 msgstr ""
26790
26791 # type: textblock
26792 #: ../tools/virt-win-reg.pl:113
26793 msgid ""
26794 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26795 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
26796 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
26797 "Windows-style line endings, you may need to reencode the whole file before "
26798 "or after processing."
26799 msgstr ""
26800
26801 # type: textblock
26802 #: ../tools/virt-win-reg.pl:119
26803 msgid ""
26804 "To reencode a file from Windows format to Linux (before processing it with "
26805 "the C<--merge> option), you would do something like this:"
26806 msgstr ""
26807
26808 # type: verbatim
26809 #: ../tools/virt-win-reg.pl:122
26810 #, no-wrap
26811 msgid ""
26812 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26813 "\n"
26814 msgstr ""
26815
26816 # type: textblock
26817 #: ../tools/virt-win-reg.pl:124
26818 msgid ""
26819 "To go in the opposite direction, after exporting and before sending the file "
26820 "to a Windows user, do something like this:"
26821 msgstr ""
26822
26823 # type: verbatim
26824 #: ../tools/virt-win-reg.pl:127
26825 #, no-wrap
26826 msgid ""
26827 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26828 "\n"
26829 msgstr ""
26830
26831 # type: textblock
26832 #: ../tools/virt-win-reg.pl:129
26833 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26834 msgstr ""
26835
26836 # type: textblock
26837 #: ../tools/virt-win-reg.pl:131
26838 msgid ""
26839 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26840 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
26841 "style (CRLF) line endings, like this:"
26842 msgstr ""
26843
26844 # type: verbatim
26845 #: ../tools/virt-win-reg.pl:135
26846 #, no-wrap
26847 msgid ""
26848 " $ file software.reg\n"
26849 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26850 " with CRLF line terminators\n"
26851 "\n"
26852 msgstr ""
26853
26854 # type: textblock
26855 #: ../tools/virt-win-reg.pl:139
26856 msgid "This file would need conversion before you could C<--merge> it."
26857 msgstr ""
26858
26859 # type: textblock
26860 #: ../tools/virt-win-reg.pl:143
26861 msgid ""
26862 "Be careful when passing parameters containing C<\\> (backslash) in the "
26863 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26864 "(but not both) to protect them from the shell."
26865 msgstr ""
26866
26867 # type: textblock
26868 #: ../tools/virt-win-reg.pl:147
26869 msgid "Paths and value names are case-insensitive."
26870 msgstr ""
26871
26872 # type: =head2
26873 #: ../tools/virt-win-reg.pl:149
26874 msgid "CurrentControlSet etc."
26875 msgstr ""
26876
26877 # type: textblock
26878 #: ../tools/virt-win-reg.pl:151
26879 msgid ""
26880 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26881 "Registry at the level of the hive file, and therefore you cannot modify "
26882 "these."
26883 msgstr ""
26884
26885 # type: textblock
26886 #: ../tools/virt-win-reg.pl:155
26887 msgid ""
26888 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26889 "circumstances it might refer to another control set.  The way to find out is "
26890 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26891 msgstr ""
26892
26893 # type: verbatim
26894 #: ../tools/virt-win-reg.pl:159
26895 #, no-wrap
26896 msgid ""
26897 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26898 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26899 " \"Current\"=dword:00000001\n"
26900 " \"Default\"=dword:00000001\n"
26901 " \"Failed\"=dword:00000000\n"
26902 " \"LastKnownGood\"=dword:00000002\n"
26903 "\n"
26904 msgstr ""
26905
26906 # type: textblock
26907 #: ../tools/virt-win-reg.pl:166
26908 msgid "\"Current\" is the one which Windows will choose when it boots."
26909 msgstr ""
26910
26911 # type: textblock
26912 #: ../tools/virt-win-reg.pl:168
26913 msgid ""
26914 "Similarly, other C<Current...> keys in the path may need to be replaced."
26915 msgstr ""
26916
26917 # type: =item
26918 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26919 msgid "B<--debug>"
26920 msgstr ""
26921
26922 # type: textblock
26923 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:498
26924 msgid "Enable debugging messages."
26925 msgstr ""
26926
26927 # type: =item
26928 #: ../tools/virt-win-reg.pl:232
26929 msgid "B<--merge>"
26930 msgstr ""
26931
26932 # type: textblock
26933 #: ../tools/virt-win-reg.pl:234
26934 msgid ""
26935 "In merge mode, this merges a textual regedit file into the Windows Registry "
26936 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26937 "displays or exports Registry entries instead."
26938 msgstr ""
26939
26940 # type: textblock
26941 #: ../tools/virt-win-reg.pl:238
26942 msgid ""
26943 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26944 "result in disk corruption.  However exporting (without this flag)  is always "
26945 "safe."
26946 msgstr ""
26947
26948 # type: =item
26949 #: ../tools/virt-win-reg.pl:246
26950 msgid "B<--encoding> UTF-16LE|ASCII"
26951 msgstr ""
26952
26953 # type: textblock
26954 #: ../tools/virt-win-reg.pl:248
26955 msgid ""
26956 "When merging (only), you may need to specify the encoding for strings to be "
26957 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
26958 "(3)/ENCODING STRINGS>."
26959 msgstr ""
26960
26961 # type: textblock
26962 #: ../tools/virt-win-reg.pl:252
26963 msgid ""
26964 "The default is to use UTF-16LE, which should work with recent versions of "
26965 "Windows."
26966 msgstr ""
26967
26968 # type: textblock
26969 #: ../tools/virt-win-reg.pl:486
26970 msgid ""
26971 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
26972 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
26973 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26974 msgstr ""
26975
26976 # type: textblock
26977 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26978 msgid ""
26979 "When reporting bugs, please enable debugging and capture the I<complete> "
26980 "output:"
26981 msgstr ""
26982
26983 # type: verbatim
26984 #: ../tools/virt-win-reg.pl:504
26985 #, no-wrap
26986 msgid ""
26987 " export LIBGUESTFS_DEBUG=1\n"
26988 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26989 "\n"
26990 msgstr ""
26991
26992 # type: textblock
26993 #: ../tools/virt-win-reg.pl:507
26994 msgid ""
26995 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
26996 "redhat.com/>"
26997 msgstr ""
26998
26999 # type: textblock
27000 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1510
27001 #: ../tools/virt-make-fs.pl:565
27002 msgid "Copyright (C) 2010 Red Hat Inc."
27003 msgstr ""
27004
27005 # type: textblock
27006 #: ../tools/virt-resize.pl:42
27007 msgid "virt-resize - Resize a virtual machine disk"
27008 msgstr ""
27009
27010 # type: verbatim
27011 #: ../tools/virt-resize.pl:46
27012 #, no-wrap
27013 msgid ""
27014 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
27015 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
27016 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
27017 "\n"
27018 msgstr ""
27019
27020 # type: textblock
27021 #: ../tools/virt-resize.pl:52
27022 msgid ""
27023 "Virt-resize is a tool which can resize a virtual machine disk, making it "
27024 "larger or smaller overall, and resizing or deleting any partitions contained "
27025 "within."
27026 msgstr ""
27027
27028 # type: textblock
27029 #: ../tools/virt-resize.pl:56
27030 msgid ""
27031 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
27032 "not> be used on live virtual machines - for consistent results, shut the "
27033 "virtual machine down before resizing it."
27034 msgstr ""
27035
27036 # type: textblock
27037 #: ../tools/virt-resize.pl:60
27038 msgid ""
27039 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
27040 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
27041 msgstr ""
27042
27043 # type: textblock
27044 #: ../tools/virt-resize.pl:66
27045 msgid ""
27046 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
27047 "fill the extra 5GB of space."
27048 msgstr ""
27049
27050 # type: verbatim
27051 #: ../tools/virt-resize.pl:69
27052 #, no-wrap
27053 msgid ""
27054 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
27055 " virt-filesystems --long --h --all -a olddisk\n"
27056 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
27057 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
27058 "\n"
27059 msgstr ""
27060
27061 # type: textblock
27062 #: ../tools/virt-resize.pl:74
27063 msgid ""
27064 "As above, but make the /boot partition 200MB bigger, while giving the "
27065 "remaining space to /dev/sda2:"
27066 msgstr ""
27067
27068 # type: verbatim
27069 #: ../tools/virt-resize.pl:77
27070 #, no-wrap
27071 msgid ""
27072 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
27073 "\n"
27074 msgstr ""
27075
27076 # type: textblock
27077 #: ../tools/virt-resize.pl:79
27078 msgid "As above, but the output format will be uncompressed qcow2:"
27079 msgstr ""
27080
27081 # type: verbatim
27082 #: ../tools/virt-resize.pl:81
27083 #, no-wrap
27084 msgid ""
27085 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
27086 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
27087 "\n"
27088 msgstr ""
27089
27090 # type: =head1
27091 #: ../tools/virt-resize.pl:84
27092 msgid "DETAILED USAGE"
27093 msgstr ""
27094
27095 # type: =head2
27096 #: ../tools/virt-resize.pl:86
27097 msgid "EXPANDING A VIRTUAL MACHINE DISK"
27098 msgstr ""
27099
27100 # type: =item
27101 #: ../tools/virt-resize.pl:90
27102 msgid "1. Shut down the virtual machine"
27103 msgstr ""
27104
27105 # type: =item
27106 #: ../tools/virt-resize.pl:92
27107 msgid "2. Locate input disk image"
27108 msgstr ""
27109
27110 # type: textblock
27111 #: ../tools/virt-resize.pl:94
27112 msgid ""
27113 "Locate the input disk image (ie. the file or device on the host containing "
27114 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
27115 "dumpxml> like this to find the disk image name:"
27116 msgstr ""
27117
27118 # type: verbatim
27119 #: ../tools/virt-resize.pl:98
27120 #, no-wrap
27121 msgid ""
27122 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
27123 " Found 1 nodes:\n"
27124 " -- NODE --\n"
27125 " <source dev=\"/dev/vg/lv_guest\" />\n"
27126 "\n"
27127 msgstr ""
27128
27129 # type: =item
27130 #: ../tools/virt-resize.pl:103
27131 msgid "3. Look at current sizing"
27132 msgstr ""
27133
27134 # type: textblock
27135 #: ../tools/virt-resize.pl:105
27136 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
27137 msgstr ""
27138
27139 # type: verbatim
27140 #: ../tools/virt-resize.pl:108
27141 #, no-wrap
27142 msgid ""
27143 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
27144 " Name       Type       Size  Parent\n"
27145 " /dev/sda1  partition  101M  /dev/sda\n"
27146 " /dev/sda2  partition  7.9G  /dev/sda\n"
27147 " /dev/sda   device     8.0G  -\n"
27148 "\n"
27149 msgstr ""
27150
27151 # type: textblock
27152 #: ../tools/virt-resize.pl:114
27153 msgid ""
27154 "(This example is a virtual machine with an 8 GB disk which we would like to "
27155 "expand up to 10 GB)."
27156 msgstr ""
27157
27158 # type: =item
27159 #: ../tools/virt-resize.pl:117
27160 msgid "4. Create output disk"
27161 msgstr ""
27162
27163 # type: textblock
27164 #: ../tools/virt-resize.pl:119
27165 msgid ""
27166 "Virt-resize cannot do in-place disk modifications.  You have to have space "
27167 "to store the resized output disk."
27168 msgstr ""
27169
27170 # type: textblock
27171 #: ../tools/virt-resize.pl:122
27172 msgid ""
27173 "To store the resized disk image in a file, create a file of a suitable size:"
27174 msgstr ""
27175
27176 # type: verbatim
27177 #: ../tools/virt-resize.pl:125
27178 #, no-wrap
27179 msgid ""
27180 " # rm -f outdisk\n"
27181 " # truncate -s 10G outdisk\n"
27182 "\n"
27183 msgstr ""
27184
27185 # type: textblock
27186 #: ../tools/virt-resize.pl:128
27187 msgid "Or use L<lvcreate(1)> to create a logical volume:"
27188 msgstr ""
27189
27190 # type: verbatim
27191 #: ../tools/virt-resize.pl:130
27192 #, no-wrap
27193 msgid ""
27194 " # lvcreate -L 10G -n lv_name vg_name\n"
27195 "\n"
27196 msgstr ""
27197
27198 # type: textblock
27199 #: ../tools/virt-resize.pl:132
27200 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
27201 msgstr ""
27202
27203 # type: verbatim
27204 #: ../tools/virt-resize.pl:134
27205 #, no-wrap
27206 msgid ""
27207 " # virsh pool-list\n"
27208 " # virsh vol-create-as poolname newvol 10G\n"
27209 "\n"
27210 msgstr ""
27211
27212 # type: =item
27213 #: ../tools/virt-resize.pl:137
27214 msgid "5. Resize"
27215 msgstr ""
27216
27217 # type: textblock
27218 #: ../tools/virt-resize.pl:139
27219 msgid ""
27220 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
27221 "file) and the output disk.  The output disk is the one created in the "
27222 "previous step."
27223 msgstr ""
27224
27225 # type: verbatim
27226 #: ../tools/virt-resize.pl:143
27227 #, no-wrap
27228 msgid ""
27229 " # virt-resize indisk outdisk\n"
27230 "\n"
27231 msgstr ""
27232
27233 # type: textblock
27234 #: ../tools/virt-resize.pl:145
27235 msgid ""
27236 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27237 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27238 "larger, then an extra, empty partition is created at the end of the disk "
27239 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27240 "error."
27241 msgstr ""
27242
27243 # type: textblock
27244 #: ../tools/virt-resize.pl:151
27245 msgid ""
27246 "More realistically you'd want to expand existing partitions in the disk "
27247 "image by passing extra options (for the full list see the L</OPTIONS> "
27248 "section below)."
27249 msgstr ""
27250
27251 # type: textblock
27252 #: ../tools/virt-resize.pl:155
27253 msgid ""
27254 "L</--expand> is the most useful option.  It expands the named partition "
27255 "within the disk to fill any extra space:"
27256 msgstr ""
27257
27258 # type: verbatim
27259 #: ../tools/virt-resize.pl:158
27260 #, no-wrap
27261 msgid ""
27262 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27263 "\n"
27264 msgstr ""
27265
27266 # type: textblock
27267 #: ../tools/virt-resize.pl:160
27268 msgid ""
27269 "(In this case, an extra partition is I<not> created at the end of the disk, "
27270 "because there will be no unused space)."
27271 msgstr ""
27272
27273 # type: textblock
27274 #: ../tools/virt-resize.pl:163
27275 msgid ""
27276 "L</--resize> is the other commonly used option.  The following would "
27277 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27278 "rest of the available space:"
27279 msgstr ""
27280
27281 # type: verbatim
27282 #: ../tools/virt-resize.pl:167
27283 #, no-wrap
27284 msgid ""
27285 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27286 "     indisk outdisk\n"
27287 "\n"
27288 msgstr ""
27289
27290 # type: textblock
27291 #: ../tools/virt-resize.pl:170
27292 msgid ""
27293 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27294 "if virt-resize knows how, it will resize the contents, the equivalent of "
27295 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
27296 ">.  However virt-resize does not know how to resize some filesystems, so you "
27297 "would have to online resize them after booting the guest."
27298 msgstr ""
27299
27300 # type: textblock
27301 #: ../tools/virt-resize.pl:177
27302 msgid "Other options are covered below."
27303 msgstr ""
27304
27305 # type: =item
27306 #: ../tools/virt-resize.pl:179
27307 msgid "6. Test"
27308 msgstr ""
27309
27310 # type: textblock
27311 #: ../tools/virt-resize.pl:181
27312 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27313 msgstr ""
27314
27315 # type: textblock
27316 #: ../tools/virt-resize.pl:183
27317 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27318 msgstr ""
27319
27320 # type: verbatim
27321 #: ../tools/virt-resize.pl:185
27322 #, no-wrap
27323 msgid ""
27324 " # virsh edit guestname\n"
27325 "\n"
27326 msgstr ""
27327
27328 # type: textblock
27329 #: ../tools/virt-resize.pl:187
27330 msgid ""
27331 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
27332 "html#elementsDisks>"
27333 msgstr ""
27334
27335 # type: textblock
27336 #: ../tools/virt-resize.pl:190
27337 msgid "Then start up the domain with the new, resized disk:"
27338 msgstr ""
27339
27340 # type: verbatim
27341 #: ../tools/virt-resize.pl:192
27342 #, no-wrap
27343 msgid ""
27344 " # virsh start guestname\n"
27345 "\n"
27346 msgstr ""
27347
27348 # type: textblock
27349 #: ../tools/virt-resize.pl:194
27350 msgid ""
27351 "and check that it still works.  See also the L</NOTES> section below for "
27352 "additional information."
27353 msgstr ""
27354
27355 # type: =item
27356 #: ../tools/virt-resize.pl:197
27357 msgid "7. Resize LVs etc inside the guest"
27358 msgstr ""
27359
27360 # type: textblock
27361 #: ../tools/virt-resize.pl:199
27362 msgid "(This can also be done offline using L<guestfish(1)>)"
27363 msgstr ""
27364
27365 # type: textblock
27366 #: ../tools/virt-resize.pl:201
27367 msgid ""
27368 "Once the guest has booted you should see the new space available, at least "
27369 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27370 "may need to resize LVs inside PVs, and also resize filesystem types that "
27371 "virt-resize does not know how to expand."
27372 msgstr ""
27373
27374 # type: =head2
27375 #: ../tools/virt-resize.pl:208
27376 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27377 msgstr ""
27378
27379 # type: textblock
27380 #: ../tools/virt-resize.pl:210
27381 msgid ""
27382 "Shrinking is somewhat more complex than expanding, and only an overview is "
27383 "given here."
27384 msgstr ""
27385
27386 # type: textblock
27387 #: ../tools/virt-resize.pl:213
27388 msgid ""
27389 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27390 "filesystems).  The user has to shrink content before passing the disk image "
27391 "to virt-resize, and virt-resize will check that the content has been shrunk "
27392 "properly."
27393 msgstr ""
27394
27395 # type: textblock
27396 #: ../tools/virt-resize.pl:218
27397 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27398 msgstr ""
27399
27400 # type: textblock
27401 #: ../tools/virt-resize.pl:220
27402 msgid ""
27403 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27404 "steps 3 and 4 above to allocate a new disk image."
27405 msgstr ""
27406
27407 # type: textblock
27408 #: ../tools/virt-resize.pl:223
27409 msgid ""
27410 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27411 msgstr ""
27412
27413 # type: =head2
27414 #: ../tools/virt-resize.pl:226
27415 msgid "IGNORING OR DELETING PARTITIONS"
27416 msgstr ""
27417
27418 # type: textblock
27419 #: ../tools/virt-resize.pl:228
27420 msgid ""
27421 "virt-resize also gives a convenient way to ignore or delete partitions when "
27422 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27423 "up the copy where you don't care about the existing contents of a "
27424 "partition.  Deleting a partition removes it completely, but note that it "
27425 "also renumbers any partitions after the one which is deleted, which can "
27426 "leave some guests unbootable."
27427 msgstr ""
27428
27429 # type: =head2
27430 #: ../tools/virt-resize.pl:235
27431 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27432 msgstr ""
27433
27434 # type: textblock
27435 #: ../tools/virt-resize.pl:237
27436 msgid ""
27437 "If the input disk is in qcow2 format, then you may prefer that the output is "
27438 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27439 "the fly.  The output format is simply determined by the format of the empty "
27440 "output container that you provide.  Thus to create qcow2 output, use:"
27441 msgstr ""
27442
27443 # type: verbatim
27444 #: ../tools/virt-resize.pl:243
27445 #, no-wrap
27446 msgid ""
27447 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27448 "\n"
27449 msgstr ""
27450
27451 # type: textblock
27452 #: ../tools/virt-resize.pl:245
27453 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27454 msgstr ""
27455
27456 # type: textblock
27457 #: ../tools/virt-resize.pl:247
27458 msgid "Similarly, to get non-sparse raw output use:"
27459 msgstr ""
27460
27461 # type: verbatim
27462 #: ../tools/virt-resize.pl:249
27463 #, no-wrap
27464 msgid ""
27465 " fallocate -l size outdisk\n"
27466 "\n"
27467 msgstr ""
27468
27469 # type: textblock
27470 #: ../tools/virt-resize.pl:251
27471 msgid ""
27472 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
27473 "dev/zero of=outdisk bs=1M count=..>)"
27474 msgstr ""
27475
27476 # type: textblock
27477 #: ../tools/virt-resize.pl:264
27478 msgid "Display help."
27479 msgstr ""
27480
27481 # type: =item
27482 #: ../tools/virt-resize.pl:278
27483 msgid "B<--resize part=size>"
27484 msgstr ""
27485
27486 # type: textblock
27487 #: ../tools/virt-resize.pl:280
27488 msgid ""
27489 "Resize the named partition (expanding or shrinking it) so that it has the "
27490 "given size."
27491 msgstr ""
27492
27493 # type: textblock
27494 #: ../tools/virt-resize.pl:283
27495 msgid ""
27496 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27497 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27498 "Exabytes; or as a percentage of the current size; or as a relative number or "
27499 "percentage.  For example:"
27500 msgstr ""
27501
27502 # type: verbatim
27503 #: ../tools/virt-resize.pl:288
27504 #, no-wrap
27505 msgid ""
27506 " --resize /dev/sda2=10G\n"
27507 "\n"
27508 msgstr ""
27509
27510 # type: verbatim
27511 #: ../tools/virt-resize.pl:290
27512 #, no-wrap
27513 msgid ""
27514 " --resize /dev/sda4=90%\n"
27515 "\n"
27516 msgstr ""
27517
27518 # type: verbatim
27519 #: ../tools/virt-resize.pl:292
27520 #, no-wrap
27521 msgid ""
27522 " --resize /dev/sda2=+1G\n"
27523 "\n"
27524 msgstr ""
27525
27526 # type: verbatim
27527 #: ../tools/virt-resize.pl:294
27528 #, no-wrap
27529 msgid ""
27530 " --resize /dev/sda2=-200M\n"
27531 "\n"
27532 msgstr ""
27533
27534 # type: verbatim
27535 #: ../tools/virt-resize.pl:296
27536 #, no-wrap
27537 msgid ""
27538 " --resize /dev/sda1=+128K\n"
27539 "\n"
27540 msgstr ""
27541
27542 # type: verbatim
27543 #: ../tools/virt-resize.pl:298
27544 #, no-wrap
27545 msgid ""
27546 " --resize /dev/sda1=+10%\n"
27547 "\n"
27548 msgstr ""
27549
27550 # type: verbatim
27551 #: ../tools/virt-resize.pl:300
27552 #, no-wrap
27553 msgid ""
27554 " --resize /dev/sda1=-10%\n"
27555 "\n"
27556 msgstr ""
27557
27558 # type: textblock
27559 #: ../tools/virt-resize.pl:302
27560 msgid ""
27561 "You can increase the size of any partition.  Virt-resize will expand the "
27562 "direct content of the partition if it knows how (see C<--expand> below)."
27563 msgstr ""
27564
27565 # type: textblock
27566 #: ../tools/virt-resize.pl:306
27567 msgid ""
27568 "You can only I<decrease> the size of partitions that contain filesystems or "
27569 "PVs which have already been shrunk.  Virt-resize will check this has been "
27570 "done before proceeding, or else will print an error (see also C<--resize-"
27571 "force>)."
27572 msgstr ""
27573
27574 # type: textblock
27575 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
27576 #: ../tools/virt-resize.pl:420
27577 msgid "You can give this option multiple times."
27578 msgstr ""
27579
27580 # type: =item
27581 #: ../tools/virt-resize.pl:317
27582 msgid "B<--resize-force part=size>"
27583 msgstr ""
27584
27585 # type: textblock
27586 #: ../tools/virt-resize.pl:319
27587 msgid ""
27588 "This is the same as C<--resize> except that it will let you decrease the "
27589 "size of any partition.  Generally this means you will lose any data which "
27590 "was at the end of the partition you shrink, but you may not care about that "
27591 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27592 "as a swap partition)."
27593 msgstr ""
27594
27595 # type: textblock
27596 #: ../tools/virt-resize.pl:325
27597 msgid "See also the C<--ignore> option."
27598 msgstr ""
27599
27600 # type: =item
27601 #: ../tools/virt-resize.pl:331
27602 msgid "B<--expand part>"
27603 msgstr ""
27604
27605 # type: textblock
27606 #: ../tools/virt-resize.pl:333
27607 msgid ""
27608 "Expand the named partition so it uses up all extra space (space left over "
27609 "after any other resize changes that you request have been done)."
27610 msgstr ""
27611
27612 # type: textblock
27613 #: ../tools/virt-resize.pl:336
27614 msgid ""
27615 "If virt-resize knows how, it will expand the direct content of the "
27616 "partition.  For example, if the partition is an LVM PV, it will expand the "
27617 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27618 "content it doesn't know about alone."
27619 msgstr ""
27620
27621 # type: textblock
27622 #: ../tools/virt-resize.pl:341
27623 msgid "Currently virt-resize can resize:"
27624 msgstr ""
27625
27626 # type: textblock
27627 #: ../tools/virt-resize.pl:347
27628 msgid ""
27629 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27630 "partition."
27631 msgstr ""
27632
27633 # type: textblock
27634 #: ../tools/virt-resize.pl:352
27635 msgid ""
27636 "NTFS filesystems contained directly in a partition, if libguestfs was "
27637 "compiled with support for NTFS."
27638 msgstr ""
27639
27640 # type: textblock
27641 #: ../tools/virt-resize.pl:355
27642 msgid ""
27643 "The filesystem must have been shut down consistently last time it was used.  "
27644 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27645 "consistency check, so at the first boot after resizing Windows will check "
27646 "the disk."
27647 msgstr ""
27648
27649 # type: textblock
27650 #: ../tools/virt-resize.pl:362
27651 msgid ""
27652 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
27653 "inside the PV, but see the C<--LV-expand> option.  The user could also "
27654 "resize LVs as desired after boot."
27655 msgstr ""
27656
27657 # type: textblock
27658 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
27659 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27660 msgstr ""
27661
27662 # type: =item
27663 #: ../tools/virt-resize.pl:374
27664 msgid "B<--shrink part>"
27665 msgstr ""
27666
27667 # type: textblock
27668 #: ../tools/virt-resize.pl:376
27669 msgid ""
27670 "Shrink the named partition until the overall disk image fits in the "
27671 "destination.  The named partition B<must> contain a filesystem or PV which "
27672 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27673 "online tools).  Virt-resize will check this and give an error if it has not "
27674 "been done."
27675 msgstr ""
27676
27677 # type: textblock
27678 #: ../tools/virt-resize.pl:382
27679 msgid ""
27680 "The amount by which the overall disk must be shrunk (after carrying out all "
27681 "other operations requested by the user) is called the \"deficit\".  For "
27682 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27683 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27684 "would give an error unless the user specified a partition to shrink and that "
27685 "partition had more than a gigabyte of free space."
27686 msgstr ""
27687
27688 # type: =item
27689 #: ../tools/virt-resize.pl:396
27690 msgid "B<--ignore part>"
27691 msgstr ""
27692
27693 # type: textblock
27694 #: ../tools/virt-resize.pl:398
27695 msgid ""
27696 "Ignore the named partition.  Effectively this means the partition is "
27697 "allocated on the destination disk, but the content is not copied across from "
27698 "the source disk.  The content of the partition will be blank (all zero "
27699 "bytes)."
27700 msgstr ""
27701
27702 # type: =item
27703 #: ../tools/virt-resize.pl:409
27704 msgid "B<--delete part>"
27705 msgstr ""
27706
27707 # type: textblock
27708 #: ../tools/virt-resize.pl:411
27709 msgid ""
27710 "Delete the named partition.  It would be more accurate to describe this as "
27711 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27712 "the original disk image is left intact."
27713 msgstr ""
27714
27715 # type: textblock
27716 #: ../tools/virt-resize.pl:415
27717 msgid ""
27718 "Note that when you delete a partition, then anything contained in the "
27719 "partition is also deleted.  Furthermore, this causes any partitions that "
27720 "come after to be I<renumbered>, which can easily make your guest unbootable."
27721 msgstr ""
27722
27723 # type: =item
27724 #: ../tools/virt-resize.pl:426
27725 msgid "B<--LV-expand logvol>"
27726 msgstr ""
27727
27728 # type: textblock
27729 #: ../tools/virt-resize.pl:428
27730 msgid ""
27731 "This takes the logical volume and, as a final step, expands it to fill all "
27732 "the space available in its volume group.  A typical usage, assuming a Linux "
27733 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
27734 "lv_root> would be:"
27735 msgstr ""
27736
27737 # type: verbatim
27738 #: ../tools/virt-resize.pl:433
27739 #, no-wrap
27740 msgid ""
27741 " virt-resize indisk outdisk \\\n"
27742 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27743 "\n"
27744 msgstr ""
27745
27746 # type: textblock
27747 #: ../tools/virt-resize.pl:436
27748 msgid ""
27749 "This would first expand the partition (and PV), and then expand the root "
27750 "device to fill the extra space in the PV."
27751 msgstr ""
27752
27753 # type: textblock
27754 #: ../tools/virt-resize.pl:439
27755 msgid ""
27756 "The contents of the LV are also resized if virt-resize knows how to do "
27757 "that.  You can stop virt-resize from trying to expand the content by using "
27758 "the option C<--no-expand-content>."
27759 msgstr ""
27760
27761 # type: textblock
27762 #: ../tools/virt-resize.pl:443
27763 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27764 msgstr ""
27765
27766 # type: textblock
27767 #: ../tools/virt-resize.pl:446
27768 msgid ""
27769 "You can give this option multiple times, I<but> it doesn't make sense to do "
27770 "this unless the logical volumes you specify are all in different volume "
27771 "groups."
27772 msgstr ""
27773
27774 # type: =item
27775 #: ../tools/virt-resize.pl:454
27776 msgid "B<--no-copy-boot-loader>"
27777 msgstr ""
27778
27779 # type: textblock
27780 #: ../tools/virt-resize.pl:456
27781 msgid ""
27782 "By default, virt-resize copies over some sectors at the start of the disk "
27783 "(up to the beginning of the first partition).  Commonly these sectors "
27784 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27785 "in order for the guest to boot correctly."
27786 msgstr ""
27787
27788 # type: textblock
27789 #: ../tools/virt-resize.pl:461
27790 msgid ""
27791 "If you specify this flag, then this initial copy is not done.  You may need "
27792 "to reinstall the boot loader in this case."
27793 msgstr ""
27794
27795 # type: =item
27796 #: ../tools/virt-resize.pl:469
27797 msgid "B<--no-extra-partition>"
27798 msgstr ""
27799
27800 # type: textblock
27801 #: ../tools/virt-resize.pl:471
27802 msgid ""
27803 "By default, virt-resize creates an extra partition if there is any extra, "
27804 "unused space after all resizing has happened.  Use this option to prevent "
27805 "the extra partition from being created.  If you do this then the extra space "
27806 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27807 "tool in the guest."
27808 msgstr ""
27809
27810 # type: textblock
27811 #: ../tools/virt-resize.pl:477
27812 msgid ""
27813 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27814 "will be created."
27815 msgstr ""
27816
27817 # type: =item
27818 #: ../tools/virt-resize.pl:484
27819 msgid "B<--no-expand-content>"
27820 msgstr ""
27821
27822 # type: textblock
27823 #: ../tools/virt-resize.pl:486
27824 msgid ""
27825 "By default, virt-resize will try to expand the direct contents of "
27826 "partitions, if it knows how (see C<--expand> option above)."
27827 msgstr ""
27828
27829 # type: textblock
27830 #: ../tools/virt-resize.pl:489
27831 msgid ""
27832 "If you give the C<--no-expand-content> option then virt-resize will not "
27833 "attempt this."
27834 msgstr ""
27835
27836 # type: =item
27837 #: ../tools/virt-resize.pl:496
27838 msgid "B<-d> | B<--debug>"
27839 msgstr ""
27840
27841 # type: =item
27842 #: ../tools/virt-resize.pl:504
27843 msgid "B<-n> | B<--dryrun>"
27844 msgstr ""
27845
27846 # type: textblock
27847 #: ../tools/virt-resize.pl:506
27848 msgid "Print a summary of what would be done, but don't do anything."
27849 msgstr ""
27850
27851 # type: =item
27852 #: ../tools/virt-resize.pl:512
27853 msgid "B<-q> | B<--quiet>"
27854 msgstr ""
27855
27856 # type: textblock
27857 #: ../tools/virt-resize.pl:514
27858 msgid "Don't print the summary."
27859 msgstr ""
27860
27861 # type: textblock
27862 #: ../tools/virt-resize.pl:522
27863 msgid ""
27864 "Specify the format of the input disk image.  If this flag is not given then "
27865 "it is auto-detected from the image itself."
27866 msgstr ""
27867
27868 # type: textblock
27869 #: ../tools/virt-resize.pl:528
27870 msgid ""
27871 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27872 "AND NON-SPARSE RAW FORMATS>."
27873 msgstr ""
27874
27875 # type: =item
27876 #: ../tools/virt-resize.pl:535
27877 msgid "B<--output-format> raw"
27878 msgstr ""
27879
27880 # type: textblock
27881 #: ../tools/virt-resize.pl:537
27882 msgid ""
27883 "Specify the format of the output disk image.  If this flag is not given then "
27884 "it is auto-detected from the image itself."
27885 msgstr ""
27886
27887 # type: textblock
27888 #: ../tools/virt-resize.pl:543
27889 msgid ""
27890 "Note that you still need to create the output disk with the right format.  "
27891 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27892 msgstr ""
27893
27894 # type: =head1
27895 #: ../tools/virt-resize.pl:1419
27896 msgid "NOTES"
27897 msgstr ""
27898
27899 # type: =head2
27900 #: ../tools/virt-resize.pl:1421
27901 msgid "\"Partition 1 does not end on cylinder boundary.\""
27902 msgstr ""
27903
27904 # type: textblock
27905 #: ../tools/virt-resize.pl:1423
27906 msgid ""
27907 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27908 "means the partitions will not be aligned to the ancient CHS geometry.  "
27909 "However CHS geometry is meaningless for disks manufactured since the early "
27910 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27911 "cylinders is not required by any modern operating system."
27912 msgstr ""
27913
27914 # type: =head2
27915 #: ../tools/virt-resize.pl:1430
27916 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27917 msgstr ""
27918
27919 # type: textblock
27920 #: ../tools/virt-resize.pl:1432
27921 msgid ""
27922 "In Windows Vista and later versions, Microsoft switched to using a separate "
27923 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27924 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27925 "the boot partition.  Doing so seems to break the guest completely.  However "
27926 "expanding the second partition (ie. C: drive) should work."
27927 msgstr ""
27928
27929 # type: textblock
27930 #: ../tools/virt-resize.pl:1439
27931 msgid ""
27932 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27933 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27934 "it find errors) is nothing to worry about."
27935 msgstr ""
27936
27937 # type: =head2
27938 #: ../tools/virt-resize.pl:1443
27939 msgid "GUEST BOOT STUCK AT \"GRUB\""
27940 msgstr ""
27941
27942 # type: textblock
27943 #: ../tools/virt-resize.pl:1445
27944 msgid ""
27945 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27946 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27947 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27948 "although we think is to do with partition alignment."
27949 msgstr ""
27950
27951 # type: verbatim
27952 #: ../tools/virt-resize.pl:1450
27953 #, no-wrap
27954 msgid ""
27955 " guestfish -i -a newdisk\n"
27956 " ><fs> cat /boot/grub/device.map\n"
27957 " # check the contents of this file are sensible or\n"
27958 " # edit the file if necessary\n"
27959 " ><fs> grub-install / /dev/vda\n"
27960 " ><fs> exit\n"
27961 "\n"
27962 msgstr ""
27963
27964 # type: textblock
27965 #: ../tools/virt-resize.pl:1457
27966 msgid ""
27967 "For more flexible guest reconfiguration, including if you need to specify "
27968 "other parameters to grub-install, use L<virt-rescue(1)>."
27969 msgstr ""
27970
27971 # type: =head1
27972 #: ../tools/virt-resize.pl:1460
27973 msgid "ALTERNATIVE TOOLS"
27974 msgstr ""
27975
27976 # type: textblock
27977 #: ../tools/virt-resize.pl:1462
27978 msgid ""
27979 "There are several proprietary tools for resizing partitions.  We won't "
27980 "mention any here."
27981 msgstr ""
27982
27983 # type: textblock
27984 #: ../tools/virt-resize.pl:1465
27985 msgid ""
27986 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27987 "operations on disk images.  They can resize and move partitions, but I don't "
27988 "think they can do anything with the contents, and they certainly don't "
27989 "understand LVM."
27990 msgstr ""
27991
27992 # type: textblock
27993 #: ../tools/virt-resize.pl:1470
27994 msgid ""
27995 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27996 "but at a much lower level.  You will probably end up hand-calculating sector "
27997 "offsets, which is something that virt-resize was designed to avoid.  If you "
27998 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27999 "C<--debug> flag."
28000 msgstr ""
28001
28002 # type: textblock
28003 #: ../tools/virt-resize.pl:1485
28004 msgid ""
28005 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
28006 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
28007 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
28008 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
28009 "libguestfs.org/>."
28010 msgstr ""
28011
28012 # type: textblock
28013 #: ../tools/virt-list-filesystems.pl:32
28014 msgid ""
28015 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
28016 msgstr ""
28017
28018 # type: verbatim
28019 #: ../tools/virt-list-filesystems.pl:36
28020 #, no-wrap
28021 msgid ""
28022 " virt-list-filesystems [--options] domname\n"
28023 "\n"
28024 msgstr ""
28025
28026 # type: verbatim
28027 #: ../tools/virt-list-filesystems.pl:38
28028 #, no-wrap
28029 msgid ""
28030 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
28031 "\n"
28032 msgstr ""
28033
28034 # type: textblock
28035 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
28036 msgid ""
28037 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
28038 "replacement."
28039 msgstr ""
28040
28041 # type: textblock
28042 #: ../tools/virt-list-filesystems.pl:45
28043 msgid ""
28044 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
28045 "are contained in a virtual machine or disk image."
28046 msgstr ""
28047
28048 # type: textblock
28049 #: ../tools/virt-list-filesystems.pl:49
28050 msgid ""
28051 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
28052 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28053 "> tool."
28054 msgstr ""
28055
28056 # type: =item
28057 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
28058 msgid "B<-l> | B<--long>"
28059 msgstr ""
28060
28061 # type: textblock
28062 #: ../tools/virt-list-filesystems.pl:108
28063 msgid ""
28064 "With this option, C<virt-list-filesystems> displays the type of each "
28065 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
28066 msgstr ""
28067
28068 # type: =item
28069 #: ../tools/virt-list-filesystems.pl:115
28070 msgid "B<-a> | B<--all>"
28071 msgstr ""
28072
28073 # type: textblock
28074 #: ../tools/virt-list-filesystems.pl:117
28075 msgid ""
28076 "Normally we only show mountable filesystems.  If this option is given then "
28077 "swap devices are shown too."
28078 msgstr ""
28079
28080 # type: textblock
28081 #: ../tools/virt-list-filesystems.pl:191
28082 msgid ""
28083 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
28084 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
28085 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28086 msgstr ""
28087
28088 # type: textblock
28089 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
28090 msgid "Copyright (C) 2009 Red Hat Inc."
28091 msgstr ""
28092
28093 # type: textblock
28094 #: ../tools/virt-tar.pl:33
28095 msgid "virt-tar - Extract or upload files to a virtual machine"
28096 msgstr ""
28097
28098 # type: verbatim
28099 #: ../tools/virt-tar.pl:37
28100 #, no-wrap
28101 msgid ""
28102 " virt-tar [--options] -x domname directory tarball\n"
28103 "\n"
28104 msgstr ""
28105
28106 # type: verbatim
28107 #: ../tools/virt-tar.pl:39
28108 #, no-wrap
28109 msgid ""
28110 " virt-tar [--options] -u domname tarball directory\n"
28111 "\n"
28112 msgstr ""
28113
28114 # type: verbatim
28115 #: ../tools/virt-tar.pl:41
28116 #, no-wrap
28117 msgid ""
28118 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
28119 "\n"
28120 msgstr ""
28121
28122 # type: verbatim
28123 #: ../tools/virt-tar.pl:43
28124 #, no-wrap
28125 msgid ""
28126 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
28127 "\n"
28128 msgstr ""
28129
28130 # type: textblock
28131 #: ../tools/virt-tar.pl:47
28132 msgid "Download C</home> from the VM into a local tarball:"
28133 msgstr ""
28134
28135 # type: verbatim
28136 #: ../tools/virt-tar.pl:49
28137 #, no-wrap
28138 msgid ""
28139 " virt-tar -x domname /home home.tar\n"
28140 "\n"
28141 msgstr ""
28142
28143 # type: verbatim
28144 #: ../tools/virt-tar.pl:51
28145 #, no-wrap
28146 msgid ""
28147 " virt-tar -zx domname /home home.tar.gz\n"
28148 "\n"
28149 msgstr ""
28150
28151 # type: textblock
28152 #: ../tools/virt-tar.pl:53
28153 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
28154 msgstr ""
28155
28156 # type: verbatim
28157 #: ../tools/virt-tar.pl:55
28158 #, no-wrap
28159 msgid ""
28160 " virt-tar -u domname uploadstuff.tar /tmp\n"
28161 "\n"
28162 msgstr ""
28163
28164 # type: verbatim
28165 #: ../tools/virt-tar.pl:57
28166 #, no-wrap
28167 msgid ""
28168 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
28169 "\n"
28170 msgstr ""
28171
28172 # type: textblock
28173 #: ../tools/virt-tar.pl:61
28174 msgid ""
28175 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
28176 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
28177 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
28178 msgstr ""
28179
28180 # type: textblock
28181 #: ../tools/virt-tar.pl:66
28182 msgid ""
28183 "You can use C<-x> (extract) on live virtual machines, but you might get "
28184 "inconsistent results or errors if there is filesystem activity inside the "
28185 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
28186 "work, but the only way to guarantee consistent results is if the virtual "
28187 "machine is shut down."
28188 msgstr ""
28189
28190 # type: textblock
28191 #: ../tools/virt-tar.pl:74
28192 msgid ""
28193 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
28194 "parts of a guest filesystem.  There are many possibilities: making backups, "
28195 "uploading data files, snooping on guest activity, fixing or customizing "
28196 "guests, etc."
28197 msgstr ""
28198
28199 # type: textblock
28200 #: ../tools/virt-tar.pl:79
28201 msgid ""
28202 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
28203 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
28204 "should look at the L<guestfish(1)> tool."
28205 msgstr ""
28206
28207 # type: textblock
28208 #: ../tools/virt-tar.pl:83
28209 msgid ""
28210 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
28211 "its contents (recursively) from the virtual machine into a local tarball.  "
28212 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
28213 "virtual machine.  You cannot use these two options together."
28214 msgstr ""
28215
28216 # type: textblock
28217 #: ../tools/virt-tar.pl:89
28218 msgid ""
28219 "In addition, you may need to use the C<-z> (gZip) option to enable "
28220 "compression.  When uploading, you have to specify C<-z> if the upload file "
28221 "is compressed because virt-tar won't detect this on its own."
28222 msgstr ""
28223
28224 # type: textblock
28225 #: ../tools/virt-tar.pl:93
28226 msgid ""
28227 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
28228 "example it cannot do PKZip files or bzip2 compression.  If you want that "
28229 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
28230 "the L<libguestfs(3)> API)."
28231 msgstr ""
28232
28233 # type: =item
28234 #: ../tools/virt-tar.pl:151
28235 msgid "B<-x> | B<--extract> | B<--download>"
28236 msgstr ""
28237
28238 # type: =item
28239 #: ../tools/virt-tar.pl:153
28240 msgid "B<-u> | B<--upload>"
28241 msgstr ""
28242
28243 # type: textblock
28244 #: ../tools/virt-tar.pl:155
28245 msgid ""
28246 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28247 "local tarball."
28248 msgstr ""
28249
28250 # type: textblock
28251 #: ../tools/virt-tar.pl:158
28252 msgid ""
28253 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28254 "Please read the L</WARNING> section above before using this option."
28255 msgstr ""
28256
28257 # type: textblock
28258 #: ../tools/virt-tar.pl:162
28259 msgid "You must specify exactly one of these options."
28260 msgstr ""
28261
28262 # type: =item
28263 #: ../tools/virt-tar.pl:168
28264 msgid "B<-z> | B<--gzip>"
28265 msgstr ""
28266
28267 # type: textblock
28268 #: ../tools/virt-tar.pl:170
28269 msgid "Specify that the input or output tarball is gzip-compressed."
28270 msgstr ""
28271
28272 # type: textblock
28273 #: ../tools/virt-tar.pl:283
28274 msgid ""
28275 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
28276 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
28277 "org/>."
28278 msgstr ""
28279
28280 # type: textblock
28281 #: ../tools/virt-make-fs.pl:37
28282 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28283 msgstr ""
28284
28285 # type: verbatim
28286 #: ../tools/virt-make-fs.pl:41
28287 #, no-wrap
28288 msgid ""
28289 " virt-make-fs [--options] input.tar output.img\n"
28290 "\n"
28291 msgstr ""
28292
28293 # type: verbatim
28294 #: ../tools/virt-make-fs.pl:43
28295 #, no-wrap
28296 msgid ""
28297 " virt-make-fs [--options] input.tar.gz output.img\n"
28298 "\n"
28299 msgstr ""
28300
28301 # type: verbatim
28302 #: ../tools/virt-make-fs.pl:45
28303 #, no-wrap
28304 msgid ""
28305 " virt-make-fs [--options] directory output.img\n"
28306 "\n"
28307 msgstr ""
28308
28309 # type: textblock
28310 #: ../tools/virt-make-fs.pl:49
28311 msgid ""
28312 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28313 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
28314 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
28315 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
28316 "you want to attach these filesystems to existing virtual machines (eg. to "
28317 "import large amounts of read-only data to a VM)."
28318 msgstr ""
28319
28320 # type: textblock
28321 #: ../tools/virt-make-fs.pl:57
28322 msgid "Basic usage is:"
28323 msgstr ""
28324
28325 # type: verbatim
28326 #: ../tools/virt-make-fs.pl:59
28327 #, no-wrap
28328 msgid ""
28329 " virt-make-fs input output\n"
28330 "\n"
28331 msgstr ""
28332
28333 # type: textblock
28334 #: ../tools/virt-make-fs.pl:61
28335 msgid ""
28336 "where C<input> is either a directory containing files that you want to add, "
28337 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28338 "C<output> is a disk image.  The input type is detected automatically.  The "
28339 "output disk image defaults to a raw ext2 image unless you specify extra "
28340 "flags (see L</OPTIONS> below)."
28341 msgstr ""
28342
28343 # type: =head2
28344 #: ../tools/virt-make-fs.pl:67
28345 msgid "EXTRA SPACE"
28346 msgstr ""
28347
28348 # type: textblock
28349 #: ../tools/virt-make-fs.pl:69
28350 msgid ""
28351 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28352 "the files that it contains, but might have extra space.  Depending on how "
28353 "you are going to use the output, you might think this extra space is wasted "
28354 "and want to minimize it, or you might want to leave space so that more files "
28355 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28356 "but you can use the C<--size> flag to leave space in the filesystem if you "
28357 "want it."
28358 msgstr ""
28359
28360 # type: textblock
28361 #: ../tools/virt-make-fs.pl:77
28362 msgid ""
28363 "An alternative way to leave extra space but not make the output image any "
28364 "bigger is to use an alternative disk image format (instead of the default "
28365 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28366 "image format (check your hypervisor supports this before using it).  This "
28367 "allows you to choose a large C<--size> but the extra space won't actually be "
28368 "allocated in the image until you try to store something in it."
28369 msgstr ""
28370
28371 # type: textblock
28372 #: ../tools/virt-make-fs.pl:85
28373 msgid ""
28374 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28375 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
28376 "resize to build another image from scratch."
28377 msgstr ""
28378
28379 # type: =head3
28380 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
28381 #: ../tools/virt-make-fs.pl:142
28382 msgid "EXAMPLE"
28383 msgstr ""
28384
28385 # type: verbatim
28386 #: ../tools/virt-make-fs.pl:91
28387 #, no-wrap
28388 msgid ""
28389 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28390 "\n"
28391 msgstr ""
28392
28393 # type: =head2
28394 #: ../tools/virt-make-fs.pl:93
28395 msgid "FILESYSTEM TYPE"
28396 msgstr ""
28397
28398 # type: textblock
28399 #: ../tools/virt-make-fs.pl:95
28400 msgid ""
28401 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28402 "libguestfs supports can be used (but I<not> read-only formats like "
28403 "ISO9660).  Here are some of the more common choices:"
28404 msgstr ""
28405
28406 # type: =item
28407 #: ../tools/virt-make-fs.pl:101
28408 msgid "I<ext3>"
28409 msgstr ""
28410
28411 # type: textblock
28412 #: ../tools/virt-make-fs.pl:103
28413 msgid ""
28414 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28415 "you are not going to use the filesystem in a way that requires the journal, "
28416 "then this is just wasted overhead."
28417 msgstr ""
28418
28419 # type: =item
28420 #: ../tools/virt-make-fs.pl:107
28421 msgid "I<ntfs> or I<vfat>"
28422 msgstr ""
28423
28424 # type: textblock
28425 #: ../tools/virt-make-fs.pl:109
28426 msgid "Useful if exporting data to a Windows guest."
28427 msgstr ""
28428
28429 # type: textblock
28430 #: ../tools/virt-make-fs.pl:111
28431 msgid ""
28432 "I<Note for vfat>: The tar archive or local directory must only contain files "
28433 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28434 "program running within libguestfs is unable to change the ownership of non-"
28435 "root files, since vfat itself does not support this."
28436 msgstr ""
28437
28438 # type: =item
28439 #: ../tools/virt-make-fs.pl:116
28440 msgid "I<minix>"
28441 msgstr ""
28442
28443 # type: textblock
28444 #: ../tools/virt-make-fs.pl:118
28445 msgid ""
28446 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28447 "total filesystem size."
28448 msgstr ""
28449
28450 # type: verbatim
28451 #: ../tools/virt-make-fs.pl:125
28452 #, no-wrap
28453 msgid ""
28454 " virt-make-fs --type=minix input minixfs.img\n"
28455 "\n"
28456 msgstr ""
28457
28458 # type: =head2
28459 #: ../tools/virt-make-fs.pl:127
28460 msgid "TO PARTITION OR NOT TO PARTITION"
28461 msgstr ""
28462
28463 # type: textblock
28464 #: ../tools/virt-make-fs.pl:129
28465 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28466 msgstr ""
28467
28468 # type: textblock
28469 #: ../tools/virt-make-fs.pl:131
28470 msgid ""
28471 "Adding a partition can make the disk image more compatible with certain "
28472 "virtualized operating systems which don't expect to see a filesystem "
28473 "directly located on a block device (Linux doesn't care and will happily "
28474 "handle both types)."
28475 msgstr ""
28476
28477 # type: textblock
28478 #: ../tools/virt-make-fs.pl:136
28479 msgid ""
28480 "On the other hand, if you have a partition table then the output image is no "
28481 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28482 "directly on a partitioned disk image.  (However libguestfs tools such as "
28483 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28484 msgstr ""
28485
28486 # type: textblock
28487 #: ../tools/virt-make-fs.pl:144
28488 msgid "Add an MBR partition:"
28489 msgstr ""
28490
28491 # type: verbatim
28492 #: ../tools/virt-make-fs.pl:146
28493 #, no-wrap
28494 msgid ""
28495 " virt-make-fs --partition -- input disk.img\n"
28496 "\n"
28497 msgstr ""
28498
28499 # type: textblock
28500 #: ../tools/virt-make-fs.pl:148
28501 msgid ""
28502 "If the output disk image could be terabyte-sized or larger, it's better to "
28503 "use an EFI/GPT-compatible partition table:"
28504 msgstr ""
28505
28506 # type: verbatim
28507 #: ../tools/virt-make-fs.pl:151
28508 #, no-wrap
28509 msgid ""
28510 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28511 "\n"
28512 msgstr ""
28513
28514 # type: textblock
28515 #: ../tools/virt-make-fs.pl:179
28516 msgid "Enable debugging information."
28517 msgstr ""
28518
28519 # type: =item
28520 #: ../tools/virt-make-fs.pl:185
28521 msgid "B<--size=E<lt>NE<gt>>"
28522 msgstr ""
28523
28524 # type: =item
28525 #: ../tools/virt-make-fs.pl:187
28526 msgid "B<--size=+E<lt>NE<gt>>"
28527 msgstr ""
28528
28529 # type: =item
28530 #: ../tools/virt-make-fs.pl:189
28531 msgid "B<-s E<lt>NE<gt>>"
28532 msgstr ""
28533
28534 # type: =item
28535 #: ../tools/virt-make-fs.pl:191
28536 msgid "B<-s +E<lt>NE<gt>>"
28537 msgstr ""
28538
28539 # type: textblock
28540 #: ../tools/virt-make-fs.pl:193
28541 msgid ""
28542 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28543 msgstr ""
28544
28545 # type: textblock
28546 #: ../tools/virt-make-fs.pl:196
28547 msgid ""
28548 "If this option is I<not> given, then the output image will be just large "
28549 "enough to contain all the files, with not much wasted space."
28550 msgstr ""
28551
28552 # type: textblock
28553 #: ../tools/virt-make-fs.pl:199
28554 msgid ""
28555 "To choose a fixed size output disk, specify an absolute number followed by b/"
28556 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28557 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28558 "files, else you will get an error."
28559 msgstr ""
28560
28561 # type: textblock
28562 #: ../tools/virt-make-fs.pl:204
28563 msgid ""
28564 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
28565 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28566 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28567 "the input files, and (approximately) an extra 200 MB free space."
28568 msgstr ""
28569
28570 # type: textblock
28571 #: ../tools/virt-make-fs.pl:210
28572 msgid ""
28573 "Note that virt-make-fs estimates free space, and therefore will not produce "
28574 "filesystems containing precisely the free space requested.  (It is much more "
28575 "expensive and time-consuming to produce a filesystem which has precisely the "
28576 "desired free space)."
28577 msgstr ""
28578
28579 # type: =item
28580 #: ../tools/virt-make-fs.pl:219
28581 msgid "B<--format=E<lt>fmtE<gt>>"
28582 msgstr ""
28583
28584 # type: =item
28585 #: ../tools/virt-make-fs.pl:221
28586 msgid "B<-F E<lt>fmtE<gt>>"
28587 msgstr ""
28588
28589 # type: textblock
28590 #: ../tools/virt-make-fs.pl:223
28591 msgid "Choose the output disk image format."
28592 msgstr ""
28593
28594 # type: textblock
28595 #: ../tools/virt-make-fs.pl:225
28596 msgid "The default is C<raw> (raw disk image)."
28597 msgstr ""
28598
28599 # type: textblock
28600 #: ../tools/virt-make-fs.pl:227
28601 msgid ""
28602 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28603 "that would really make sense here is C<qcow2>."
28604 msgstr ""
28605
28606 # type: =item
28607 #: ../tools/virt-make-fs.pl:234
28608 msgid "B<--type=E<lt>fsE<gt>>"
28609 msgstr ""
28610
28611 # type: =item
28612 #: ../tools/virt-make-fs.pl:236
28613 msgid "B<-t E<lt>fsE<gt>>"
28614 msgstr ""
28615
28616 # type: textblock
28617 #: ../tools/virt-make-fs.pl:238
28618 msgid "Choose the output filesystem type."
28619 msgstr ""
28620
28621 # type: textblock
28622 #: ../tools/virt-make-fs.pl:240
28623 msgid "The default is C<ext2>."
28624 msgstr ""
28625
28626 # type: textblock
28627 #: ../tools/virt-make-fs.pl:242
28628 msgid ""
28629 "Any filesystem which is supported read-write by libguestfs can be used here."
28630 msgstr ""
28631
28632 # type: =item
28633 #: ../tools/virt-make-fs.pl:249
28634 msgid "B<--partition>"
28635 msgstr ""
28636
28637 # type: =item
28638 #: ../tools/virt-make-fs.pl:251
28639 msgid "B<--partition=E<lt>parttypeE<gt>>"
28640 msgstr ""
28641
28642 # type: textblock
28643 #: ../tools/virt-make-fs.pl:253
28644 msgid ""
28645 "If specified, this flag adds an MBR partition table to the output disk image."
28646 msgstr ""
28647
28648 # type: textblock
28649 #: ../tools/virt-make-fs.pl:256
28650 msgid ""
28651 "You can change the partition table type, eg. C<--partition=gpt> for large "
28652 "disks."
28653 msgstr ""
28654
28655 # type: textblock
28656 #: ../tools/virt-make-fs.pl:259
28657 msgid ""
28658 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28659 "might consider the next parameter to be the partition type.  For example:"
28660 msgstr ""
28661
28662 # type: verbatim
28663 #: ../tools/virt-make-fs.pl:263
28664 #, no-wrap
28665 msgid ""
28666 " virt-make-fs --partition input.tar ...\n"
28667 "\n"
28668 msgstr ""
28669
28670 # type: textblock
28671 #: ../tools/virt-make-fs.pl:265
28672 msgid ""
28673 "would cause virt-make-fs to think you wanted to use a partition type of "
28674 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28675 "dash) between options and the input file argument:"
28676 msgstr ""
28677
28678 # type: verbatim
28679 #: ../tools/virt-make-fs.pl:269
28680 #, no-wrap
28681 msgid ""
28682 " virt-make-fs --partition -- input.tar ...\n"
28683 "\n"
28684 msgstr ""
28685
28686 # type: textblock
28687 #: ../tools/virt-make-fs.pl:536
28688 msgid ""
28689 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28690 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
28691 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28692 msgstr ""
28693
28694 # type: verbatim
28695 #: ../tools/virt-make-fs.pl:553
28696 #, no-wrap
28697 msgid ""
28698 " export LIBGUESTFS_DEBUG=1\n"
28699 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28700 "\n"
28701 msgstr ""
28702
28703 # type: textblock
28704 #: ../tools/virt-make-fs.pl:556
28705 msgid ""
28706 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
28707 "redhat.com/>"
28708 msgstr ""
28709
28710 # type: textblock
28711 #: ../tools/virt-list-partitions.pl:32
28712 msgid ""
28713 "virt-list-partitions - List partitions in a virtual machine or disk image"
28714 msgstr ""
28715
28716 # type: verbatim
28717 #: ../tools/virt-list-partitions.pl:36
28718 #, no-wrap
28719 msgid ""
28720 " virt-list-partitions [--options] domname\n"
28721 "\n"
28722 msgstr ""
28723
28724 # type: verbatim
28725 #: ../tools/virt-list-partitions.pl:38
28726 #, no-wrap
28727 msgid ""
28728 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28729 "\n"
28730 msgstr ""
28731
28732 # type: textblock
28733 #: ../tools/virt-list-partitions.pl:45
28734 msgid ""
28735 "C<virt-list-partitions> is a command line tool to list the partitions that "
28736 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28737 "first step to using L<virt-resize(1)>."
28738 msgstr ""
28739
28740 # type: textblock
28741 #: ../tools/virt-list-partitions.pl:50
28742 msgid ""
28743 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28744 "functionality.  For more complex cases you should look at the L<guestfish(1)"
28745 "> tool."
28746 msgstr ""
28747
28748 # type: =item
28749 #: ../tools/virt-list-partitions.pl:107
28750 msgid "B<-h> | B<--human-readable>"
28751 msgstr ""
28752
28753 # type: textblock
28754 #: ../tools/virt-list-partitions.pl:109
28755 msgid "Show sizes in human-readable form (eg. \"1G\")."
28756 msgstr ""
28757
28758 # type: textblock
28759 #: ../tools/virt-list-partitions.pl:117
28760 msgid ""
28761 "With this option, C<virt-list-partitions> displays the type and size of each "
28762 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28763 msgstr ""
28764
28765 # type: =item
28766 #: ../tools/virt-list-partitions.pl:124
28767 msgid "B<-t> | B<--total>"
28768 msgstr ""
28769
28770 # type: textblock
28771 #: ../tools/virt-list-partitions.pl:126
28772 msgid ""
28773 "Display the total size of each block device (as a separate row or rows)."
28774 msgstr ""
28775
28776 # type: textblock
28777 #: ../tools/virt-list-partitions.pl:259
28778 msgid ""
28779 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
28780 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
28781 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28782 msgstr ""