Version 1.7.17.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.7.17\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-11-30 15:00+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=utf-8\n"
17 "Content-Transfer-Encoding: ENCODING"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1 ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28 ../tools/virt-tar.pl:29 ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
21 msgid "utf8"
22 msgstr ""
23
24 # type: =head1
25 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3 ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30 ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr ""
28
29 # type: textblock
30 #: ../src/guestfs.pod:5
31 msgid "guestfs - Library for accessing and modifying virtual machine images"
32 msgstr ""
33
34 # type: =head1
35 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7 ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34 ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
36 msgid "SYNOPSIS"
37 msgstr ""
38
39 # type: verbatim
40 #: ../src/guestfs.pod:9
41 #, no-wrap
42 msgid ""
43 " #include <guestfs.h>\n"
44 " \n"
45 msgstr ""
46
47 # type: verbatim
48 #: ../src/guestfs.pod:11
49 #, no-wrap
50 msgid ""
51 " guestfs_h *g = guestfs_create ();\n"
52 " guestfs_add_drive (g, \"guest.img\");\n"
53 " guestfs_launch (g);\n"
54 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
55 " guestfs_touch (g, \"/hello\");\n"
56 " guestfs_umount (g, \"/\");\n"
57 " guestfs_sync (g);\n"
58 " guestfs_close (g);\n"
59 "\n"
60 msgstr ""
61
62 # type: verbatim
63 #: ../src/guestfs.pod:20
64 #, no-wrap
65 msgid ""
66 " cc prog.c -o prog -lguestfs\n"
67 "or:\n"
68 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
69 "\n"
70 msgstr ""
71
72 # type: =head1
73 #: ../src/guestfs.pod:24 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20 ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-tar.pl:72 ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
74 msgid "DESCRIPTION"
75 msgstr ""
76
77 # type: textblock
78 #: ../src/guestfs.pod:26
79 msgid ""
80 "Libguestfs is a library for accessing and modifying guest disk images.  "
81 "Amongst the things this is good for: making batch configuration changes to "
82 "guests, getting disk used/free statistics (see also: virt-df), migrating "
83 "between virtualization systems (see also: virt-p2v), performing partial "
84 "backups, performing partial guest clones, cloning guests and changing "
85 "registry/UUID/hostname info, and much else besides."
86 msgstr ""
87
88 # type: textblock
89 #: ../src/guestfs.pod:34
90 msgid ""
91 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
92 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
93 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
94 "qcow2, vmdk."
95 msgstr ""
96
97 # type: textblock
98 #: ../src/guestfs.pod:39
99 msgid ""
100 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
101 "what filesystem is in each LV, etc.).  It can also run commands in the "
102 "context of the guest.  Also you can access filesystems over FUSE."
103 msgstr ""
104
105 # type: textblock
106 #: ../src/guestfs.pod:44
107 msgid ""
108 "Libguestfs is a library that can be linked with C and C++ management "
109 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
110 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
111 "line."
112 msgstr ""
113
114 # type: textblock
115 #: ../src/guestfs.pod:49
116 msgid ""
117 "You don't need to be root to use libguestfs, although obviously you do need "
118 "enough permissions to access the disk images."
119 msgstr ""
120
121 # type: textblock
122 #: ../src/guestfs.pod:52
123 msgid ""
124 "Libguestfs is a large API because it can do many things.  For a gentle "
125 "introduction, please read the L</API OVERVIEW> section next."
126 msgstr ""
127
128 # type: textblock
129 #: ../src/guestfs.pod:55
130 msgid ""
131 "There are also some example programs in the L<guestfs-examples(3)> manual "
132 "page."
133 msgstr ""
134
135 # type: =head1
136 #: ../src/guestfs.pod:58
137 msgid "API OVERVIEW"
138 msgstr ""
139
140 # type: textblock
141 #: ../src/guestfs.pod:60
142 msgid ""
143 "This section provides a gentler overview of the libguestfs API.  We also try "
144 "to group API calls together, where that may not be obvious from reading "
145 "about the individual calls in the main section of this manual."
146 msgstr ""
147
148 # type: =head2
149 #: ../src/guestfs.pod:65
150 msgid "HANDLES"
151 msgstr ""
152
153 # type: textblock
154 #: ../src/guestfs.pod:67
155 msgid ""
156 "Before you can use libguestfs calls, you have to create a handle.  Then you "
157 "must add at least one disk image to the handle, followed by launching the "
158 "handle, then performing whatever operations you want, and finally closing "
159 "the handle.  By convention we use the single letter C<g> for the name of the "
160 "handle variable, although of course you can use any name you want."
161 msgstr ""
162
163 # type: textblock
164 #: ../src/guestfs.pod:74
165 msgid "The general structure of all libguestfs-using programs looks like this:"
166 msgstr ""
167
168 # type: verbatim
169 #: ../src/guestfs.pod:77
170 #, no-wrap
171 msgid ""
172 " guestfs_h *g = guestfs_create ();\n"
173 " \n"
174 msgstr ""
175
176 # type: verbatim
177 #: ../src/guestfs.pod:79
178 #, no-wrap
179 msgid ""
180 " /* Call guestfs_add_drive additional times if there are\n"
181 "  * multiple disk images.\n"
182 "  */\n"
183 " guestfs_add_drive (g, \"guest.img\");\n"
184 " \n"
185 msgstr ""
186
187 # type: verbatim
188 #: ../src/guestfs.pod:84
189 #, no-wrap
190 msgid ""
191 " /* Most manipulation calls won't work until you've launched\n"
192 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
193 "  * and _before_ other commands.\n"
194 "  */\n"
195 " guestfs_launch (g);\n"
196 " \n"
197 msgstr ""
198
199 # type: verbatim
200 #: ../src/guestfs.pod:90
201 #, no-wrap
202 msgid ""
203 " /* Now you can examine what partitions, LVs etc are available.\n"
204 "  */\n"
205 " char **partitions = guestfs_list_partitions (g);\n"
206 " char **logvols = guestfs_lvs (g);\n"
207 " \n"
208 msgstr ""
209
210 # type: verbatim
211 #: ../src/guestfs.pod:95
212 #, no-wrap
213 msgid ""
214 " /* To access a filesystem in the image, you must mount it.\n"
215 "  */\n"
216 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
217 " \n"
218 msgstr ""
219
220 # type: verbatim
221 #: ../src/guestfs.pod:99
222 #, no-wrap
223 msgid ""
224 " /* Now you can perform filesystem actions on the guest\n"
225 "  * disk image.\n"
226 "  */\n"
227 " guestfs_touch (g, \"/hello\");\n"
228 " \n"
229 msgstr ""
230
231 # type: verbatim
232 #: ../src/guestfs.pod:104
233 #, no-wrap
234 msgid ""
235 " /* You only need to call guestfs_sync if you have made\n"
236 "  * changes to the guest image.  (But if you've made changes\n"
237 "  * then you *must* sync).  See also: guestfs_umount and\n"
238 "  * guestfs_umount_all calls.\n"
239 "  */\n"
240 " guestfs_sync (g);\n"
241 " \n"
242 msgstr ""
243
244 # type: verbatim
245 #: ../src/guestfs.pod:111
246 #, no-wrap
247 msgid ""
248 " /* Close the handle 'g'. */\n"
249 " guestfs_close (g);\n"
250 "\n"
251 msgstr ""
252
253 # type: textblock
254 #: ../src/guestfs.pod:114
255 msgid ""
256 "The code above doesn't include any error checking.  In real code you should "
257 "check return values carefully for errors.  In general all functions that "
258 "return integers return C<-1> on error, and all functions that return "
259 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
260 "how to handle errors, and consult the documentation for each function call "
261 "below to see precisely how they return error indications."
262 msgstr ""
263
264 # type: =head2
265 #: ../src/guestfs.pod:122
266 msgid "DISK IMAGES"
267 msgstr ""
268
269 # type: textblock
270 #: ../src/guestfs.pod:124
271 msgid ""
272 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
273 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
274 "actual block device, or simply an empty file of zeroes that you have created "
275 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
276 "of these."
277 msgstr ""
278
279 # type: textblock
280 #: ../src/guestfs.pod:130
281 msgid ""
282 "The call you should use in modern code for adding drives is "
283 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
284 "specifying that the format is raw, do:"
285 msgstr ""
286
287 # type: verbatim
288 #: ../src/guestfs.pod:134
289 #, no-wrap
290 msgid ""
291 " guestfs_add_drive_opts (g, filename,\n"
292 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
293 "                         -1);\n"
294 "\n"
295 msgstr ""
296
297 # type: textblock
298 #: ../src/guestfs.pod:138
299 msgid "You can add a disk read-only using:"
300 msgstr ""
301
302 # type: verbatim
303 #: ../src/guestfs.pod:140
304 #, no-wrap
305 msgid ""
306 " guestfs_add_drive_opts (g, filename,\n"
307 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
308 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
309 "                         -1);\n"
310 "\n"
311 msgstr ""
312
313 # type: textblock
314 #: ../src/guestfs.pod:145
315 msgid ""
316 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
317 "libguestfs won't modify the file."
318 msgstr ""
319
320 # type: textblock
321 #: ../src/guestfs.pod:148
322 msgid ""
323 "Be extremely cautious if the disk image is in use, eg. if it is being used "
324 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
325 "corruption, but adding it read-only is safe."
326 msgstr ""
327
328 # type: textblock
329 #: ../src/guestfs.pod:152
330 msgid ""
331 "You must add at least one disk image, and you may add multiple disk images.  "
332 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
333 "first one you added), C</dev/sdb> (for the second one you added), etc."
334 msgstr ""
335
336 # type: textblock
337 #: ../src/guestfs.pod:157
338 msgid ""
339 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
340 "can call L</guestfs_list_devices> to get a list of the device names, in the "
341 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
342 msgstr ""
343
344 # type: =head2
345 #: ../src/guestfs.pod:162
346 msgid "MOUNTING"
347 msgstr ""
348
349 # type: textblock
350 #: ../src/guestfs.pod:164
351 msgid ""
352 "Before you can read or write files, create directories and so on in a disk "
353 "image that contains filesystems, you have to mount those filesystems using "
354 "L</guestfs_mount>.  If you already know that a disk image contains (for "
355 "example) one partition with a filesystem on that partition, then you can "
356 "mount it directly:"
357 msgstr ""
358
359 # type: verbatim
360 #: ../src/guestfs.pod:170
361 #, no-wrap
362 msgid ""
363 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
364 "\n"
365 msgstr ""
366
367 # type: textblock
368 #: ../src/guestfs.pod:172
369 msgid ""
370 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
371 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
372 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
373 msgstr ""
374
375 # type: textblock
376 #: ../src/guestfs.pod:176
377 msgid ""
378 "If you are given a disk image and you don't know what it contains then you "
379 "have to find out.  Libguestfs can do that too: use "
380 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
381 "and LVs, and either try mounting each to see what is mountable, or else "
382 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also "
383 "has a set of APIs for inspection of disk images (see L</INSPECTION> below).  "
384 "But you might find it easier to look at higher level programs built on top "
385 "of libguestfs, in particular L<virt-inspector(1)>."
386 msgstr ""
387
388 # type: textblock
389 #: ../src/guestfs.pod:186
390 msgid ""
391 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
392 "several other variations of the C<guestfs_mount_*> call."
393 msgstr ""
394
395 # type: =head2
396 #: ../src/guestfs.pod:189
397 msgid "FILESYSTEM ACCESS AND MODIFICATION"
398 msgstr ""
399
400 # type: textblock
401 #: ../src/guestfs.pod:191
402 msgid ""
403 "The majority of the libguestfs API consists of fairly low-level calls for "
404 "accessing and modifying the files, directories, symlinks etc on mounted "
405 "filesystems.  There are over a hundred such calls which you can find listed "
406 "in detail below in this man page, and we don't even pretend to cover them "
407 "all in this overview."
408 msgstr ""
409
410 # type: textblock
411 #: ../src/guestfs.pod:197
412 msgid ""
413 "Specify filenames as full paths, starting with C<\"/\"> and including the "
414 "mount point."
415 msgstr ""
416
417 # type: textblock
418 #: ../src/guestfs.pod:200
419 msgid ""
420 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
421 "the file called C<\"etc/passwd\"> then you could do:"
422 msgstr ""
423
424 # type: verbatim
425 #: ../src/guestfs.pod:203
426 #, no-wrap
427 msgid ""
428 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
429 "\n"
430 msgstr ""
431
432 # type: textblock
433 #: ../src/guestfs.pod:205
434 msgid ""
435 "This would return C<data> as a newly allocated buffer containing the full "
436 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
437 "or C<NULL> if there was an error."
438 msgstr ""
439
440 # type: textblock
441 #: ../src/guestfs.pod:209
442 msgid ""
443 "As another example, to create a top-level directory on that filesystem "
444 "called C<\"var\"> you would do:"
445 msgstr ""
446
447 # type: verbatim
448 #: ../src/guestfs.pod:212
449 #, no-wrap
450 msgid ""
451 " guestfs_mkdir (g, \"/var\");\n"
452 "\n"
453 msgstr ""
454
455 # type: textblock
456 #: ../src/guestfs.pod:214
457 msgid "To create a symlink you could do:"
458 msgstr ""
459
460 # type: verbatim
461 #: ../src/guestfs.pod:216
462 #, no-wrap
463 msgid ""
464 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
465 "               \"/etc/rc3.d/S30portmap\");\n"
466 "\n"
467 msgstr ""
468
469 # type: textblock
470 #: ../src/guestfs.pod:219
471 msgid ""
472 "Libguestfs will reject attempts to use relative paths and there is no "
473 "concept of a current working directory."
474 msgstr ""
475
476 # type: textblock
477 #: ../src/guestfs.pod:222
478 msgid ""
479 "Libguestfs can return errors in many situations: for example if the "
480 "filesystem isn't writable, or if a file or directory that you requested "
481 "doesn't exist.  If you are using the C API (documented here)  you have to "
482 "check for those error conditions after each call.  (Other language bindings "
483 "turn these errors into exceptions)."
484 msgstr ""
485
486 # type: textblock
487 #: ../src/guestfs.pod:228
488 msgid ""
489 "File writes are affected by the per-handle umask, set by calling "
490 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
491 msgstr ""
492
493 # type: =head2
494 #: ../src/guestfs.pod:231
495 msgid "PARTITIONING"
496 msgstr ""
497
498 # type: textblock
499 #: ../src/guestfs.pod:233
500 msgid ""
501 "Libguestfs contains API calls to read, create and modify partition tables on "
502 "disk images."
503 msgstr ""
504
505 # type: textblock
506 #: ../src/guestfs.pod:236
507 msgid ""
508 "In the common case where you want to create a single partition covering the "
509 "whole disk, you should use the L</guestfs_part_disk> call:"
510 msgstr ""
511
512 # type: verbatim
513 #: ../src/guestfs.pod:240
514 #, no-wrap
515 msgid ""
516 " const char *parttype = \"mbr\";\n"
517 " if (disk_is_larger_than_2TB)\n"
518 "   parttype = \"gpt\";\n"
519 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
520 "\n"
521 msgstr ""
522
523 # type: textblock
524 #: ../src/guestfs.pod:245
525 msgid ""
526 "Obviously this effectively wipes anything that was on that disk image "
527 "before."
528 msgstr ""
529
530 # type: =head2
531 #: ../src/guestfs.pod:248
532 msgid "LVM2"
533 msgstr ""
534
535 # type: textblock
536 #: ../src/guestfs.pod:250
537 msgid ""
538 "Libguestfs provides access to a large part of the LVM2 API, such as "
539 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
540 "unless you familiarize yourself with the concepts of physical volumes, "
541 "volume groups and logical volumes."
542 msgstr ""
543
544 # type: textblock
545 #: ../src/guestfs.pod:255
546 msgid ""
547 "This author strongly recommends reading the LVM HOWTO, online at "
548 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
549 msgstr ""
550
551 # type: =head2
552 #: ../src/guestfs.pod:258
553 msgid "DOWNLOADING"
554 msgstr ""
555
556 # type: textblock
557 #: ../src/guestfs.pod:260
558 msgid ""
559 "Use L</guestfs_cat> to download small, text only files.  This call is "
560 "limited to files which are less than 2 MB and which cannot contain any ASCII "
561 "NUL (C<\\0>) characters.  However it has a very simple to use API."
562 msgstr ""
563
564 # type: textblock
565 #: ../src/guestfs.pod:265
566 msgid ""
567 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
568 "bit data, since it returns a (pointer, size) pair.  However it is still "
569 "limited to \"small\" files, less than 2 MB."
570 msgstr ""
571
572 # type: textblock
573 #: ../src/guestfs.pod:269
574 msgid ""
575 "L</guestfs_download> can be used to download any file, with no limits on "
576 "content or size (even files larger than 4 GB)."
577 msgstr ""
578
579 # type: textblock
580 #: ../src/guestfs.pod:272
581 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
582 msgstr ""
583
584 # type: =head2
585 #: ../src/guestfs.pod:275
586 msgid "UPLOADING"
587 msgstr ""
588
589 # type: textblock
590 #: ../src/guestfs.pod:277
591 msgid ""
592 "It's often the case that you want to write a file or files to the disk "
593 "image."
594 msgstr ""
595
596 # type: textblock
597 #: ../src/guestfs.pod:280
598 msgid ""
599 "To write a small file with fixed content, use L</guestfs_write>.  To create "
600 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
601 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
602 "variety of other functions for creating test files, for example "
603 "L</guestfs_fill> and L</guestfs_fill_pattern>."
604 msgstr ""
605
606 # type: textblock
607 #: ../src/guestfs.pod:286
608 msgid ""
609 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
610 "file content or size (even files larger than 4 GB)."
611 msgstr ""
612
613 # type: textblock
614 #: ../src/guestfs.pod:289
615 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
616 msgstr ""
617
618 # type: textblock
619 #: ../src/guestfs.pod:291
620 msgid ""
621 "However the fastest way to upload I<large numbers of arbitrary files> is to "
622 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
623 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
624 "the drive in a predictable way (eg. adding it last after all other drives) "
625 "then you can get the device name from L</guestfs_list_devices> and mount it "
626 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
627 "sometimes non-portable between kernel versions, and they don't support "
628 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
629 "using a label or UUID, use an ISO image instead."
630 msgstr ""
631
632 # type: =head2
633 #: ../src/guestfs.pod:302
634 msgid "COPYING"
635 msgstr ""
636
637 # type: textblock
638 #: ../src/guestfs.pod:304
639 msgid ""
640 "There are various different commands for copying between files and devices "
641 "and in and out of the guest filesystem.  These are summarised in the table "
642 "below."
643 msgstr ""
644
645 # type: =item
646 #: ../src/guestfs.pod:310
647 msgid "B<file> to B<file>"
648 msgstr ""
649
650 # type: textblock
651 #: ../src/guestfs.pod:312
652 msgid ""
653 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
654 "directories recursively."
655 msgstr ""
656
657 # type: =item
658 #: ../src/guestfs.pod:315
659 msgid "B<file or device> to B<file or device>"
660 msgstr ""
661
662 # type: textblock
663 #: ../src/guestfs.pod:317
664 msgid ""
665 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
666 "devices in the guest."
667 msgstr ""
668
669 # type: textblock
670 #: ../src/guestfs.pod:320
671 msgid "Example: duplicate the contents of an LV:"
672 msgstr ""
673
674 # type: verbatim
675 #: ../src/guestfs.pod:322
676 #, no-wrap
677 msgid ""
678 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
679 "\n"
680 msgstr ""
681
682 # type: textblock
683 #: ../src/guestfs.pod:324
684 msgid ""
685 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
686 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
687 "L</guestfs_copy_size>."
688 msgstr ""
689
690 # type: =item
691 #: ../src/guestfs.pod:328
692 msgid "B<file on the host> to B<file or device>"
693 msgstr ""
694
695 # type: textblock
696 #: ../src/guestfs.pod:330
697 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
698 msgstr ""
699
700 # type: =item
701 #: ../src/guestfs.pod:332
702 msgid "B<file or device> to B<file on the host>"
703 msgstr ""
704
705 # type: textblock
706 #: ../src/guestfs.pod:334
707 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
708 msgstr ""
709
710 # type: =head2
711 #: ../src/guestfs.pod:338
712 msgid "LISTING FILES"
713 msgstr ""
714
715 # type: textblock
716 #: ../src/guestfs.pod:340
717 msgid ""
718 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
719 "L<guestfish(1)>-equivalent command C<ll>)."
720 msgstr ""
721
722 # type: textblock
723 #: ../src/guestfs.pod:343
724 msgid ""
725 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
726 "programs, as a flat list of strings."
727 msgstr ""
728
729 # type: textblock
730 #: ../src/guestfs.pod:346
731 msgid ""
732 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
733 "directory, plus additional information about each one.  It is more "
734 "equivalent to using the L<readdir(3)> call on a local filesystem."
735 msgstr ""
736
737 # type: textblock
738 #: ../src/guestfs.pod:350
739 msgid ""
740 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
741 "files."
742 msgstr ""
743
744 # type: =head2
745 #: ../src/guestfs.pod:353
746 msgid "RUNNING COMMANDS"
747 msgstr ""
748
749 # type: textblock
750 #: ../src/guestfs.pod:355
751 msgid ""
752 "Although libguestfs is primarily an API for manipulating files inside guest "
753 "images, we also provide some limited facilities for running commands inside "
754 "guests."
755 msgstr ""
756
757 # type: textblock
758 #: ../src/guestfs.pod:359
759 msgid "There are many limitations to this:"
760 msgstr ""
761
762 # type: =item
763 #: ../src/guestfs.pod:363 ../src/guestfs.pod:368 ../src/guestfs.pod:373 ../src/guestfs.pod:377 ../src/guestfs.pod:382 ../src/guestfs.pod:386 ../src/guestfs.pod:391 ../src/guestfs.pod:396 ../src/guestfs.pod:955 ../src/guestfs.pod:959 ../src/guestfs.pod:963 ../src/guestfs.pod:968 ../src/guestfs.pod:976 ../src/guestfs.pod:995 ../src/guestfs.pod:1003 ../src/guestfs.pod:1025 ../src/guestfs.pod:1029 ../src/guestfs.pod:1033 ../src/guestfs.pod:1037 ../src/guestfs.pod:1041 ../src/guestfs.pod:1045 ../src/guestfs.pod:1527 ../src/guestfs.pod:1532 ../src/guestfs.pod:1536 ../src/guestfs.pod:1646 ../src/guestfs.pod:1651 ../src/guestfs.pod:1655 ../src/guestfs.pod:1999 ../src/guestfs.pod:2005 ../src/guestfs.pod:2010 ../src/guestfs.pod:2016 ../src/guestfs.pod:2128 ../src/guestfs.pod:2132 ../src/guestfs.pod:2136 ../src/guestfs.pod:2140 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:579 ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:593 ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:1593 ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1613 ../src/guestfs-actions.pod:1617 ../src/guestfs-actions.pod:1627 ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1635 ../src/guestfs-actions.pod:1773 ../src/guestfs-actions.pod:1777 ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1787 ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:1857 ../fish/guestfish.pod:377 ../fish/guestfish.pod:381 ../fish/guestfish.pod:385 ../fish/guestfish.pod:389 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375 ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075 ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087 ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095 ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109 ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203 ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259 ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268 ../tools/virt-resize.pl:345 ../tools/virt-resize.pl:350 ../tools/virt-resize.pl:360
764 msgid "*"
765 msgstr ""
766
767 # type: textblock
768 #: ../src/guestfs.pod:365
769 msgid ""
770 "The kernel version that the command runs under will be different from what "
771 "it expects."
772 msgstr ""
773
774 # type: textblock
775 #: ../src/guestfs.pod:370
776 msgid ""
777 "If the command needs to communicate with daemons, then most likely they "
778 "won't be running."
779 msgstr ""
780
781 # type: textblock
782 #: ../src/guestfs.pod:375
783 msgid "The command will be running in limited memory."
784 msgstr ""
785
786 # type: textblock
787 #: ../src/guestfs.pod:379
788 msgid ""
789 "The network may not be available unless you enable it (see "
790 "L</guestfs_set_network>)."
791 msgstr ""
792
793 # type: textblock
794 #: ../src/guestfs.pod:384
795 msgid "Only supports Linux guests (not Windows, BSD, etc)."
796 msgstr ""
797
798 # type: textblock
799 #: ../src/guestfs.pod:388
800 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
801 msgstr ""
802
803 # type: textblock
804 #: ../src/guestfs.pod:393
805 msgid ""
806 "For SELinux guests, you may need to enable SELinux and load policy first.  "
807 "See L</SELINUX> in this manpage."
808 msgstr ""
809
810 # type: textblock
811 #: ../src/guestfs.pod:398
812 msgid ""
813 "I<Security:> It is not safe to run commands from untrusted, possibly "
814 "malicious guests.  These commands may attempt to exploit your program by "
815 "sending unexpected output.  They could also try to exploit the Linux kernel "
816 "or qemu provided by the libguestfs appliance.  They could use the network "
817 "provided by the libguestfs appliance to bypass ordinary network partitions "
818 "and firewalls.  They could use the elevated privileges or different SELinux "
819 "context of your program to their advantage."
820 msgstr ""
821
822 # type: textblock
823 #: ../src/guestfs.pod:407
824 msgid ""
825 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
826 "(a script which runs when the guest next boots normally), and to have this "
827 "script run the commands you want in the normal context of the running guest, "
828 "network security and so on.  For information about other security issues, "
829 "see L</SECURITY>."
830 msgstr ""
831
832 # type: textblock
833 #: ../src/guestfs.pod:415
834 msgid ""
835 "The two main API calls to run commands are L</guestfs_command> and "
836 "L</guestfs_sh> (there are also variations)."
837 msgstr ""
838
839 # type: textblock
840 #: ../src/guestfs.pod:418
841 msgid ""
842 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
843 "shell globs, redirections, etc will work."
844 msgstr ""
845
846 # type: =head2
847 #: ../src/guestfs.pod:421
848 msgid "CONFIGURATION FILES"
849 msgstr ""
850
851 # type: textblock
852 #: ../src/guestfs.pod:423
853 msgid ""
854 "To read and write configuration files in Linux guest filesystems, we "
855 "strongly recommend using Augeas.  For example, Augeas understands how to "
856 "read and write, say, a Linux shadow password file or X.org configuration "
857 "file, and so avoids you having to write that code."
858 msgstr ""
859
860 # type: textblock
861 #: ../src/guestfs.pod:428
862 msgid ""
863 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
864 "document Augeas itself here because there is excellent documentation on the "
865 "L<http://augeas.net/> website."
866 msgstr ""
867
868 # type: textblock
869 #: ../src/guestfs.pod:432
870 msgid ""
871 "If you don't want to use Augeas (you fool!) then try calling "
872 "L</guestfs_read_lines> to get the file as a list of lines which you can "
873 "iterate over."
874 msgstr ""
875
876 # type: =head2
877 #: ../src/guestfs.pod:436
878 msgid "SELINUX"
879 msgstr ""
880
881 # type: textblock
882 #: ../src/guestfs.pod:438
883 msgid ""
884 "We support SELinux guests.  To ensure that labeling happens correctly in "
885 "SELinux guests, you need to enable SELinux and load the guest's policy:"
886 msgstr ""
887
888 # type: =item
889 #: ../src/guestfs.pod:444 ../src/guestfs.pod:1148 ../src/guestfs.pod:1279
890 msgid "1."
891 msgstr ""
892
893 # type: textblock
894 #: ../src/guestfs.pod:446
895 msgid "Before launching, do:"
896 msgstr ""
897
898 # type: verbatim
899 #: ../src/guestfs.pod:448
900 #, no-wrap
901 msgid ""
902 " guestfs_set_selinux (g, 1);\n"
903 "\n"
904 msgstr ""
905
906 # type: =item
907 #: ../src/guestfs.pod:450 ../src/guestfs.pod:1152 ../src/guestfs.pod:1283
908 msgid "2."
909 msgstr ""
910
911 # type: textblock
912 #: ../src/guestfs.pod:452
913 msgid ""
914 "After mounting the guest's filesystem(s), load the policy.  This is best "
915 "done by running the L<load_policy(8)> command in the guest itself:"
916 msgstr ""
917
918 # type: verbatim
919 #: ../src/guestfs.pod:456
920 #, no-wrap
921 msgid ""
922 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
923 "\n"
924 msgstr ""
925
926 # type: textblock
927 #: ../src/guestfs.pod:458
928 msgid ""
929 "(Older versions of C<load_policy> require you to specify the name of the "
930 "policy file)."
931 msgstr ""
932
933 # type: =item
934 #: ../src/guestfs.pod:461 ../src/guestfs.pod:1289
935 msgid "3."
936 msgstr ""
937
938 # type: textblock
939 #: ../src/guestfs.pod:463
940 msgid ""
941 "Optionally, set the security context for the API.  The correct security "
942 "context to use can only be known by inspecting the guest.  As an example:"
943 msgstr ""
944
945 # type: verbatim
946 #: ../src/guestfs.pod:467
947 #, no-wrap
948 msgid ""
949 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
950 "\n"
951 msgstr ""
952
953 # type: textblock
954 #: ../src/guestfs.pod:471
955 msgid "This will work for running commands and editing existing files."
956 msgstr ""
957
958 # type: textblock
959 #: ../src/guestfs.pod:473
960 msgid ""
961 "When new files are created, you may need to label them explicitly, for "
962 "example by running the external command C<restorecon pathname>."
963 msgstr ""
964
965 # type: =head2
966 #: ../src/guestfs.pod:477
967 msgid "UMASK"
968 msgstr ""
969
970 # type: textblock
971 #: ../src/guestfs.pod:479
972 msgid ""
973 "Certain calls are affected by the current file mode creation mask (the "
974 "\"umask\").  In particular ones which create files or directories, such as "
975 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
976 "either the default mode that the file is created with or modifies the mode "
977 "that you supply."
978 msgstr ""
979
980 # type: textblock
981 #: ../src/guestfs.pod:485
982 msgid ""
983 "The default umask is C<022>, so files are created with modes such as C<0644> "
984 "and directories with C<0755>."
985 msgstr ""
986
987 # type: textblock
988 #: ../src/guestfs.pod:488
989 msgid ""
990 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
991 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
992 "L</guestfs_chmod> after creating each file or directory."
993 msgstr ""
994
995 # type: textblock
996 #: ../src/guestfs.pod:492
997 msgid "For more information about umask, see L<umask(2)>."
998 msgstr ""
999
1000 # type: =head1
1001 #: ../src/guestfs.pod:494 ../fish/guestfish.pod:670
1002 msgid "ENCRYPTED DISKS"
1003 msgstr ""
1004
1005 # type: textblock
1006 #: ../src/guestfs.pod:496
1007 msgid ""
1008 "Libguestfs allows you to access Linux guests which have been encrypted using "
1009 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1010 "standard.  This includes nearly all whole disk encryption systems used by "
1011 "modern Linux guests."
1012 msgstr ""
1013
1014 # type: textblock
1015 #: ../src/guestfs.pod:502
1016 msgid ""
1017 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1018 "returns the string C<crypto_LUKS>)."
1019 msgstr ""
1020
1021 # type: textblock
1022 #: ../src/guestfs.pod:505
1023 msgid ""
1024 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1025 "will require the passphrase!"
1026 msgstr ""
1027
1028 # type: textblock
1029 #: ../src/guestfs.pod:508
1030 msgid ""
1031 "Opening a LUKS device creates a new device mapper device called "
1032 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1033 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1034 "decrypted from and encrypted to the underlying block device respectively."
1035 msgstr ""
1036
1037 # type: textblock
1038 #: ../src/guestfs.pod:514
1039 msgid ""
1040 "LVM volume groups on the device can be made visible by calling "
1041 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1042 "volume(s) can now be mounted in the usual way."
1043 msgstr ""
1044
1045 # type: textblock
1046 #: ../src/guestfs.pod:518
1047 msgid ""
1048 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1049 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1050 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1051 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1052 "underlying encrypted block device)."
1053 msgstr ""
1054
1055 # type: =head2
1056 #: ../src/guestfs.pod:525
1057 msgid "INSPECTION"
1058 msgstr ""
1059
1060 # type: textblock
1061 #: ../src/guestfs.pod:527
1062 msgid ""
1063 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1064 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1065 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1066 "frequently used part of this library has been rewritten in C and moved into "
1067 "the core code)."
1068 msgstr ""
1069
1070 # type: textblock
1071 #: ../src/guestfs.pod:533
1072 msgid ""
1073 "Add all disks belonging to the unknown virtual machine and call "
1074 "L</guestfs_launch> in the usual way."
1075 msgstr ""
1076
1077 # type: textblock
1078 #: ../src/guestfs.pod:536
1079 msgid ""
1080 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1081 "and certain heuristics, and returns a list of operating systems that were "
1082 "found.  An empty list means none were found.  A single element is the root "
1083 "filesystem of the operating system.  For dual- or multi-boot guests, "
1084 "multiple roots can be returned, each one corresponding to a separate "
1085 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1086 "world of virtualization, but since this scenario can happen, we have built "
1087 "libguestfs to deal with it.)"
1088 msgstr ""
1089
1090 # type: textblock
1091 #: ../src/guestfs.pod:545
1092 msgid ""
1093 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1094 "to get additional details about that operating system.  For example, call "
1095 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1096 "Windows and Linux-based operating systems respectively."
1097 msgstr ""
1098
1099 # type: textblock
1100 #: ../src/guestfs.pod:551
1101 msgid ""
1102 "Un*x-like and Linux-based operating systems usually consist of several "
1103 "filesystems which are mounted at boot time (for example, a separate boot "
1104 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1105 "filesystems correspond to mount points.  Call "
1106 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1107 "hash table like this example:"
1108 msgstr ""
1109
1110 # type: verbatim
1111 #: ../src/guestfs.pod:558
1112 #, no-wrap
1113 msgid ""
1114 " /boot => /dev/sda1\n"
1115 " /     => /dev/vg_guest/lv_root\n"
1116 " /usr  => /dev/vg_guest/lv_usr\n"
1117 "\n"
1118 msgstr ""
1119
1120 # type: textblock
1121 #: ../src/guestfs.pod:562
1122 msgid ""
1123 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1124 "filesystems as suggested."
1125 msgstr ""
1126
1127 # type: textblock
1128 #: ../src/guestfs.pod:565
1129 msgid ""
1130 "Be careful to mount filesystems in the right order (eg. C</> before "
1131 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1132 "work."
1133 msgstr ""
1134
1135 # type: textblock
1136 #: ../src/guestfs.pod:569
1137 msgid ""
1138 "Inspection currently only works for some common operating systems.  "
1139 "Contributors are welcome to send patches for other operating systems that we "
1140 "currently cannot detect."
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:573
1145 msgid ""
1146 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1147 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1148 "encrypted devices."
1149 msgstr ""
1150
1151 # type: textblock
1152 #: ../src/guestfs.pod:577
1153 msgid ""
1154 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1155 "inspection and caches the results in the guest handle.  Subsequent calls to "
1156 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1157 "re-read the disks.  If you change the content of the guest disks, you can "
1158 "redo inspection by calling L</guestfs_inspect_os> again.  "
1159 "(L</guestfs_inspect_list_applications> works a little differently from the "
1160 "other calls and does read the disks.  See documentation for that function "
1161 "for details)."
1162 msgstr ""
1163
1164 # type: =head2
1165 #: ../src/guestfs.pod:586
1166 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1167 msgstr ""
1168
1169 # type: textblock
1170 #: ../src/guestfs.pod:588
1171 msgid ""
1172 "Libguestfs can mount NTFS partitions.  It does this using the "
1173 "L<http://www.ntfs-3g.org/> driver."
1174 msgstr ""
1175
1176 # type: textblock
1177 #: ../src/guestfs.pod:591
1178 msgid ""
1179 "DOS and Windows still use drive letters, and the filesystems are always "
1180 "treated as case insensitive by Windows itself, and therefore you might find "
1181 "a Windows configuration file referring to a path like "
1182 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1183 "that directory might be referred to as C</WINDOWS/System32>."
1184 msgstr ""
1185
1186 # type: textblock
1187 #: ../src/guestfs.pod:597
1188 msgid ""
1189 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1190 "libguestfs to read the appropriate Windows Registry and configuration files, "
1191 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1192 "L<virt-inspector(1)>)."
1193 msgstr ""
1194
1195 # type: textblock
1196 #: ../src/guestfs.pod:602
1197 msgid ""
1198 "Replacing backslash characters with forward slash characters is also outside "
1199 "the scope of libguestfs, but something that you can easily do."
1200 msgstr ""
1201
1202 # type: textblock
1203 #: ../src/guestfs.pod:605
1204 msgid ""
1205 "Where we can help is in resolving the case insensitivity of paths.  For "
1206 "this, call L</guestfs_case_sensitive_path>."
1207 msgstr ""
1208
1209 # type: textblock
1210 #: ../src/guestfs.pod:608
1211 msgid ""
1212 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1213 "files, through the library C<hivex> which is part of the libguestfs project "
1214 "although ships as a separate tarball.  You have to locate and download the "
1215 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1216 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1217 "L<virt-win-reg(1)> for more help on this issue."
1218 msgstr ""
1219
1220 # type: =head2
1221 #: ../src/guestfs.pod:616
1222 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1223 msgstr ""
1224
1225 # type: textblock
1226 #: ../src/guestfs.pod:618
1227 msgid ""
1228 "Although we don't want to discourage you from using the C API, we will "
1229 "mention here that the same API is also available in other languages."
1230 msgstr ""
1231
1232 # type: textblock
1233 #: ../src/guestfs.pod:621
1234 msgid ""
1235 "The API is broadly identical in all supported languages.  This means that "
1236 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1237 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1238 "words, a straightforward, predictable isomorphism between each language."
1239 msgstr ""
1240
1241 # type: textblock
1242 #: ../src/guestfs.pod:627
1243 msgid ""
1244 "Error messages are automatically transformed into exceptions if the language "
1245 "supports it."
1246 msgstr ""
1247
1248 # type: textblock
1249 #: ../src/guestfs.pod:630
1250 msgid ""
1251 "We don't try to \"object orientify\" parts of the API in OO languages, "
1252 "although contributors are welcome to write higher level APIs above what we "
1253 "provide in their favourite languages if they wish."
1254 msgstr ""
1255
1256 # type: =item
1257 #: ../src/guestfs.pod:636
1258 msgid "B<C++>"
1259 msgstr ""
1260
1261 # type: textblock
1262 #: ../src/guestfs.pod:638
1263 msgid ""
1264 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1265 "identical to the C API.  C++ classes and exceptions are not used."
1266 msgstr ""
1267
1268 # type: =item
1269 #: ../src/guestfs.pod:642
1270 msgid "B<C#>"
1271 msgstr ""
1272
1273 # type: textblock
1274 #: ../src/guestfs.pod:644
1275 msgid ""
1276 "The C# bindings are highly experimental.  Please read the warnings at the "
1277 "top of C<csharp/Libguestfs.cs>."
1278 msgstr ""
1279
1280 # type: =item
1281 #: ../src/guestfs.pod:647
1282 msgid "B<Haskell>"
1283 msgstr ""
1284
1285 # type: textblock
1286 #: ../src/guestfs.pod:649
1287 msgid ""
1288 "This is the only language binding that is working but incomplete.  Only "
1289 "calls which return simple integers have been bound in Haskell, and we are "
1290 "looking for help to complete this binding."
1291 msgstr ""
1292
1293 # type: =item
1294 #: ../src/guestfs.pod:653
1295 msgid "B<Java>"
1296 msgstr ""
1297
1298 # type: textblock
1299 #: ../src/guestfs.pod:655
1300 msgid ""
1301 "Full documentation is contained in the Javadoc which is distributed with "
1302 "libguestfs."
1303 msgstr ""
1304
1305 # type: =item
1306 #: ../src/guestfs.pod:658
1307 msgid "B<OCaml>"
1308 msgstr ""
1309
1310 # type: textblock
1311 #: ../src/guestfs.pod:660
1312 msgid "For documentation see L<guestfs-ocaml(3)>."
1313 msgstr ""
1314
1315 # type: =item
1316 #: ../src/guestfs.pod:662
1317 msgid "B<Perl>"
1318 msgstr ""
1319
1320 # type: textblock
1321 #: ../src/guestfs.pod:664
1322 msgid "For documentation see L<Sys::Guestfs(3)>."
1323 msgstr ""
1324
1325 # type: =item
1326 #: ../src/guestfs.pod:666
1327 msgid "B<PHP>"
1328 msgstr ""
1329
1330 # type: textblock
1331 #: ../src/guestfs.pod:668
1332 msgid ""
1333 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1334 "the php-libguestfs package for your distribution."
1335 msgstr ""
1336
1337 # type: textblock
1338 #: ../src/guestfs.pod:671
1339 msgid "The PHP binding only works correctly on 64 bit machines."
1340 msgstr ""
1341
1342 # type: =item
1343 #: ../src/guestfs.pod:673
1344 msgid "B<Python>"
1345 msgstr ""
1346
1347 # type: textblock
1348 #: ../src/guestfs.pod:675
1349 msgid "For documentation see L<guestfs-python(3)>."
1350 msgstr ""
1351
1352 # type: =item
1353 #: ../src/guestfs.pod:677
1354 msgid "B<Ruby>"
1355 msgstr ""
1356
1357 # type: textblock
1358 #: ../src/guestfs.pod:679
1359 msgid "For documentation see L<guestfs-ruby(3)>."
1360 msgstr ""
1361
1362 # type: =item
1363 #: ../src/guestfs.pod:681
1364 msgid "B<shell scripts>"
1365 msgstr ""
1366
1367 # type: textblock
1368 #: ../src/guestfs.pod:683
1369 msgid "For documentation see L<guestfish(1)>."
1370 msgstr ""
1371
1372 # type: =head2
1373 #: ../src/guestfs.pod:687
1374 msgid "LIBGUESTFS GOTCHAS"
1375 msgstr ""
1376
1377 # type: textblock
1378 #: ../src/guestfs.pod:689
1379 msgid ""
1380 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1381 "system [...] that works in the way it is documented but is counterintuitive "
1382 "and almost invites mistakes.\""
1383 msgstr ""
1384
1385 # type: textblock
1386 #: ../src/guestfs.pod:693
1387 msgid ""
1388 "Since we developed libguestfs and the associated tools, there are several "
1389 "things we would have designed differently, but are now stuck with for "
1390 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1391 "release, you can expect these to change.  Beware of them."
1392 msgstr ""
1393
1394 # type: =item
1395 #: ../src/guestfs.pod:701
1396 msgid "Autosync / forgetting to sync."
1397 msgstr ""
1398
1399 # type: textblock
1400 #: ../src/guestfs.pod:703
1401 msgid ""
1402 "When modifying a filesystem from C or another language, you B<must> unmount "
1403 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1404 "libguestfs handle.  You can also call:"
1405 msgstr ""
1406
1407 # type: verbatim
1408 #: ../src/guestfs.pod:707
1409 #, no-wrap
1410 msgid ""
1411 " guestfs_set_autosync (g, 1);\n"
1412 "\n"
1413 msgstr ""
1414
1415 # type: textblock
1416 #: ../src/guestfs.pod:709
1417 msgid ""
1418 "to have the unmount/sync done automatically for you when the handle 'g' is "
1419 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1420 "q.v.)"
1421 msgstr ""
1422
1423 # type: textblock
1424 #: ../src/guestfs.pod:713
1425 msgid ""
1426 "If you forget to do this, then it is entirely possible that your changes "
1427 "won't be written out, or will be partially written, or (very rarely) that "
1428 "you'll get disk corruption."
1429 msgstr ""
1430
1431 # type: textblock
1432 #: ../src/guestfs.pod:717
1433 msgid ""
1434 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1435 "guestfish scripts that forget to sync will work just fine, which can make "
1436 "this very puzzling if you are trying to debug a problem."
1437 msgstr ""
1438
1439 # type: textblock
1440 #: ../src/guestfs.pod:721
1441 msgid ""
1442 "Update: Autosync is enabled by default for all API users starting from "
1443 "libguestfs 1.5.24."
1444 msgstr ""
1445
1446 # type: =item
1447 #: ../src/guestfs.pod:724
1448 msgid "Mount option C<-o sync> should not be the default."
1449 msgstr ""
1450
1451 # type: textblock
1452 #: ../src/guestfs.pod:726
1453 msgid ""
1454 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1455 "However C<-o sync> does not add any reliability benefit, but does have a "
1456 "very large performance impact."
1457 msgstr ""
1458
1459 # type: textblock
1460 #: ../src/guestfs.pod:730
1461 msgid ""
1462 "The work around is to use L</guestfs_mount_options> and set the mount "
1463 "options that you actually want to use."
1464 msgstr ""
1465
1466 # type: =item
1467 #: ../src/guestfs.pod:733
1468 msgid "Read-only should be the default."
1469 msgstr ""
1470
1471 # type: textblock
1472 #: ../src/guestfs.pod:735
1473 msgid ""
1474 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1475 "specify I<--rw> if you want to make changes to the image."
1476 msgstr ""
1477
1478 # type: textblock
1479 #: ../src/guestfs.pod:738
1480 msgid "This would reduce the potential to corrupt live VM images."
1481 msgstr ""
1482
1483 # type: textblock
1484 #: ../src/guestfs.pod:740
1485 msgid ""
1486 "Note that many filesystems change the disk when you just mount and unmount, "
1487 "even if you didn't perform any writes.  You need to use "
1488 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1489 msgstr ""
1490
1491 # type: =item
1492 #: ../src/guestfs.pod:744
1493 msgid "guestfish command line is hard to use."
1494 msgstr ""
1495
1496 # type: textblock
1497 #: ../src/guestfs.pod:746
1498 msgid ""
1499 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1500 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1501 "exist, so it fails.  In earlier versions of guestfish the error message was "
1502 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1503 "we should have used C<guestfish -c command> to run commands."
1504 msgstr ""
1505
1506 # type: =item
1507 #: ../src/guestfs.pod:753
1508 msgid "guestfish megabyte modifiers don't work right on all commands"
1509 msgstr ""
1510
1511 # type: textblock
1512 #: ../src/guestfs.pod:755
1513 msgid ""
1514 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1515 "other modifiers).  What guestfish actually does is to multiply the number "
1516 "part by the modifier part and pass the result to the C API.  However this "
1517 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1518 "expecting some other unit (eg. megabytes)."
1519 msgstr ""
1520
1521 # type: textblock
1522 #: ../src/guestfs.pod:762
1523 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1524 msgstr ""
1525
1526 # type: verbatim
1527 #: ../src/guestfs.pod:764
1528 #, no-wrap
1529 msgid ""
1530 " lvcreate LV VG 100M\n"
1531 "\n"
1532 msgstr ""
1533
1534 # type: textblock
1535 #: ../src/guestfs.pod:766
1536 msgid ""
1537 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1538 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1539 "megabytes * megabytes) logical volume.  The error message you get from this "
1540 "is also a little obscure."
1541 msgstr ""
1542
1543 # type: textblock
1544 #: ../src/guestfs.pod:771
1545 msgid ""
1546 "This could be fixed in the generator by specially marking parameters and "
1547 "return values which take bytes or other units."
1548 msgstr ""
1549
1550 # type: =item
1551 #: ../src/guestfs.pod:774
1552 msgid "Ambiguity between devices and paths"
1553 msgstr ""
1554
1555 # type: textblock
1556 #: ../src/guestfs.pod:776
1557 msgid ""
1558 "There is a subtle ambiguity in the API between a device name "
1559 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1560 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1561 msgstr ""
1562
1563 # type: textblock
1564 #: ../src/guestfs.pod:781
1565 msgid ""
1566 "In the current API we usually resolve this ambiguity by having two separate "
1567 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1568 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1569 "detecting if the path supplied begins with C</dev/>."
1570 msgstr ""
1571
1572 # type: textblock
1573 #: ../src/guestfs.pod:787
1574 msgid ""
1575 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1576 "make paths/devices into structured names.  One way to do this would be to "
1577 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1578 "aspect of grub.  Another way would be to use a structured type, equivalent "
1579 "to this OCaml type:"
1580 msgstr ""
1581
1582 # type: verbatim
1583 #: ../src/guestfs.pod:793
1584 #, no-wrap
1585 msgid ""
1586 " type path = Path of string | Device of int | Partition of int * int\n"
1587 "\n"
1588 msgstr ""
1589
1590 # type: textblock
1591 #: ../src/guestfs.pod:795
1592 msgid "which would allow you to pass arguments like:"
1593 msgstr ""
1594
1595 # type: verbatim
1596 #: ../src/guestfs.pod:797
1597 #, no-wrap
1598 msgid ""
1599 " Path \"/foo/bar\"\n"
1600 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1601 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1602 " Path \"/dev/sdb2\"    (* not a device *)\n"
1603 "\n"
1604 msgstr ""
1605
1606 # type: textblock
1607 #: ../src/guestfs.pod:802
1608 msgid ""
1609 "As you can see there are still problems to resolve even with this "
1610 "representation.  Also consider how it might work in guestfish."
1611 msgstr ""
1612
1613 # type: =head2
1614 #: ../src/guestfs.pod:807
1615 msgid "PROTOCOL LIMITS"
1616 msgstr ""
1617
1618 # type: textblock
1619 #: ../src/guestfs.pod:809
1620 msgid ""
1621 "Internally libguestfs uses a message-based protocol to pass API calls and "
1622 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1623 "plenty more detail about this).  The maximum message size used by the "
1624 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1625 "aware of this limit.  The API calls which may be affected are individually "
1626 "documented, with a link back to this section of the documentation."
1627 msgstr ""
1628
1629 # type: textblock
1630 #: ../src/guestfs.pod:817
1631 msgid ""
1632 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1633 "a simple string.  Because this string is at some point internally encoded as "
1634 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1635 "the requested file is larger than this then you will get an error."
1636 msgstr ""
1637
1638 # type: textblock
1639 #: ../src/guestfs.pod:823
1640 msgid ""
1641 "In order to transfer large files into and out of the guest filesystem, you "
1642 "need to use particular calls that support this.  The sections L</UPLOADING> "
1643 "and L</DOWNLOADING> document how to do this."
1644 msgstr ""
1645
1646 # type: textblock
1647 #: ../src/guestfs.pod:827
1648 msgid ""
1649 "You might also consider mounting the disk image using our FUSE filesystem "
1650 "support (L<guestmount(1)>)."
1651 msgstr ""
1652
1653 # type: =head2
1654 #: ../src/guestfs.pod:830
1655 msgid "KEYS AND PASSPHRASES"
1656 msgstr ""
1657
1658 # type: textblock
1659 #: ../src/guestfs.pod:832
1660 msgid ""
1661 "Certain libguestfs calls take a parameter that contains sensitive key "
1662 "material, passed in as a C string."
1663 msgstr ""
1664
1665 # type: textblock
1666 #: ../src/guestfs.pod:835
1667 msgid ""
1668 "In the future we would hope to change the libguestfs implementation so that "
1669 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1670 "swap.  However this is I<not> done at the moment, because of the complexity "
1671 "of such an implementation."
1672 msgstr ""
1673
1674 # type: textblock
1675 #: ../src/guestfs.pod:840
1676 msgid ""
1677 "Therefore you should be aware that any key parameter you pass to libguestfs "
1678 "might end up being written out to the swap partition.  If this is a concern, "
1679 "scrub the swap partition or don't use libguestfs on encrypted devices."
1680 msgstr ""
1681
1682 # type: =head2
1683 #: ../src/guestfs.pod:845
1684 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1685 msgstr ""
1686
1687 # type: textblock
1688 #: ../src/guestfs.pod:847
1689 msgid ""
1690 "All high-level libguestfs actions are synchronous.  If you want to use "
1691 "libguestfs asynchronously then you must create a thread."
1692 msgstr ""
1693
1694 # type: textblock
1695 #: ../src/guestfs.pod:850
1696 msgid ""
1697 "Only use the handle from a single thread.  Either use the handle exclusively "
1698 "from one thread, or provide your own mutex so that two threads cannot issue "
1699 "calls on the same handle at the same time."
1700 msgstr ""
1701
1702 # type: textblock
1703 #: ../src/guestfs.pod:854
1704 msgid ""
1705 "See the graphical program guestfs-browser for one possible architecture for "
1706 "multithreaded programs using libvirt and libguestfs."
1707 msgstr ""
1708
1709 # type: =head2
1710 #: ../src/guestfs.pod:857
1711 msgid "PATH"
1712 msgstr ""
1713
1714 # type: textblock
1715 #: ../src/guestfs.pod:859
1716 msgid ""
1717 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1718 "internal path."
1719 msgstr ""
1720
1721 # type: textblock
1722 #: ../src/guestfs.pod:862
1723 msgid ""
1724 "By default it looks for these in the directory C<$libdir/guestfs> "
1725 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1726 msgstr ""
1727
1728 # type: textblock
1729 #: ../src/guestfs.pod:865
1730 msgid ""
1731 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1732 "to change the directories that libguestfs will search in.  The value is a "
1733 "colon-separated list of paths.  The current directory is I<not> searched "
1734 "unless the path contains an empty element or C<.>.  For example "
1735 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1736 "then C</usr/lib/guestfs>."
1737 msgstr ""
1738
1739 # type: =head2
1740 #: ../src/guestfs.pod:872
1741 msgid "QEMU WRAPPERS"
1742 msgstr ""
1743
1744 # type: textblock
1745 #: ../src/guestfs.pod:874
1746 msgid ""
1747 "If you want to compile your own qemu, run qemu from a non-standard location, "
1748 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1749 "around qemu."
1750 msgstr ""
1751
1752 # type: textblock
1753 #: ../src/guestfs.pod:878
1754 msgid ""
1755 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1756 "last command in the shell script (so that qemu replaces the shell and "
1757 "becomes the direct child of the libguestfs-using program).  If you don't do "
1758 "this, then the qemu process won't be cleaned up correctly."
1759 msgstr ""
1760
1761 # type: textblock
1762 #: ../src/guestfs.pod:883
1763 msgid ""
1764 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1765 "source:"
1766 msgstr ""
1767
1768 # type: verbatim
1769 #: ../src/guestfs.pod:886
1770 #, no-wrap
1771 msgid ""
1772 " #!/bin/sh -\n"
1773 " qemudir=/home/rjones/d/qemu\n"
1774 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
1775 "\"$@\"\n"
1776 "\n"
1777 msgstr ""
1778
1779 # type: textblock
1780 #: ../src/guestfs.pod:890
1781 msgid ""
1782 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1783 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1784 "example:"
1785 msgstr ""
1786
1787 # type: verbatim
1788 #: ../src/guestfs.pod:894
1789 #, no-wrap
1790 msgid ""
1791 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1792 "\n"
1793 msgstr ""
1794
1795 # type: textblock
1796 #: ../src/guestfs.pod:896
1797 msgid ""
1798 "Note that libguestfs also calls qemu with the -help and -version options in "
1799 "order to determine features."
1800 msgstr ""
1801
1802 # type: =head2
1803 #: ../src/guestfs.pod:899
1804 msgid "ABI GUARANTEE"
1805 msgstr ""
1806
1807 # type: textblock
1808 #: ../src/guestfs.pod:901
1809 msgid ""
1810 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1811 "actions as outlined in this section.  Although we will deprecate some "
1812 "actions, for example if they get replaced by newer calls, we will keep the "
1813 "old actions forever.  This allows you the developer to program in confidence "
1814 "against the libguestfs API."
1815 msgstr ""
1816
1817 # type: =head2
1818 #: ../src/guestfs.pod:907
1819 msgid "BLOCK DEVICE NAMING"
1820 msgstr ""
1821
1822 # type: textblock
1823 #: ../src/guestfs.pod:909
1824 msgid ""
1825 "In the kernel there is now quite a profusion of schemata for naming block "
1826 "devices (in this context, by I<block device> I mean a physical or virtual "
1827 "hard drive).  The original Linux IDE driver used names starting with "
1828 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
1829 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
1830 "replacement for the old IDE driver (particularly for SATA devices) those "
1831 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
1832 "machines with paravirtualized drivers.  This has created several different "
1833 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
1834 "Xen PV disks."
1835 msgstr ""
1836
1837 # type: textblock
1838 #: ../src/guestfs.pod:921
1839 msgid ""
1840 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1841 "Linux kernel to access block devices.  We can run a variety of appliances "
1842 "based on a variety of Linux kernels."
1843 msgstr ""
1844
1845 # type: textblock
1846 #: ../src/guestfs.pod:925
1847 msgid ""
1848 "This causes a problem for libguestfs because many API calls use device or "
1849 "partition names.  Working scripts and the recipe (example) scripts that we "
1850 "make available over the internet could fail if the naming scheme changes."
1851 msgstr ""
1852
1853 # type: textblock
1854 #: ../src/guestfs.pod:930
1855 msgid ""
1856 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1857 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1858 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1859 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1860 msgstr ""
1861
1862 # type: textblock
1863 #: ../src/guestfs.pod:936
1864 msgid ""
1865 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1866 "L</guestfs_list_partitions> and similar calls return the true names of the "
1867 "devices and partitions as known to the appliance."
1868 msgstr ""
1869
1870 # type: =head3
1871 #: ../src/guestfs.pod:941
1872 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1873 msgstr ""
1874
1875 # type: textblock
1876 #: ../src/guestfs.pod:943
1877 msgid ""
1878 "Usually this translation is transparent.  However in some (very rare)  cases "
1879 "you may need to know the exact algorithm.  Such cases include where you use "
1880 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
1881 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
1882 "devices."
1883 msgstr ""
1884
1885 # type: textblock
1886 #: ../src/guestfs.pod:949
1887 msgid ""
1888 "The algorithm is applied only to I<parameters> which are known to be either "
1889 "device or partition names.  Return values from functions such as "
1890 "L</guestfs_list_devices> are never changed."
1891 msgstr ""
1892
1893 # type: textblock
1894 #: ../src/guestfs.pod:957
1895 msgid "Is the string a parameter which is a device or partition name?"
1896 msgstr ""
1897
1898 # type: textblock
1899 #: ../src/guestfs.pod:961
1900 msgid "Does the string begin with C</dev/sd>?"
1901 msgstr ""
1902
1903 # type: textblock
1904 #: ../src/guestfs.pod:965
1905 msgid ""
1906 "Does the named device exist? If so, we use that device.  However if I<not> "
1907 "then we continue with this algorithm."
1908 msgstr ""
1909
1910 # type: textblock
1911 #: ../src/guestfs.pod:970
1912 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1913 msgstr ""
1914
1915 # type: textblock
1916 #: ../src/guestfs.pod:972
1917 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1918 msgstr ""
1919
1920 # type: textblock
1921 #: ../src/guestfs.pod:974
1922 msgid "If that named device exists, use it.  If not, continue."
1923 msgstr ""
1924
1925 # type: textblock
1926 #: ../src/guestfs.pod:978
1927 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1928 msgstr ""
1929
1930 # type: textblock
1931 #: ../src/guestfs.pod:980
1932 msgid "If that named device exists, use it.  If not, return an error."
1933 msgstr ""
1934
1935 # type: =head3
1936 #: ../src/guestfs.pod:984
1937 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1938 msgstr ""
1939
1940 # type: textblock
1941 #: ../src/guestfs.pod:986
1942 msgid ""
1943 "Although the standard naming scheme and automatic translation is useful for "
1944 "simple programs and guestfish scripts, for larger programs it is best not to "
1945 "rely on this mechanism."
1946 msgstr ""
1947
1948 # type: textblock
1949 #: ../src/guestfs.pod:990
1950 msgid ""
1951 "Where possible for maximum future portability programs using libguestfs "
1952 "should use these future-proof techniques:"
1953 msgstr ""
1954
1955 # type: textblock
1956 #: ../src/guestfs.pod:997
1957 msgid ""
1958 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
1959 "device names, and then use those names directly."
1960 msgstr ""
1961
1962 # type: textblock
1963 #: ../src/guestfs.pod:1000
1964 msgid "Since those device names exist by definition, they will never be translated."
1965 msgstr ""
1966
1967 # type: textblock
1968 #: ../src/guestfs.pod:1005
1969 msgid ""
1970 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
1971 "filesystem labels."
1972 msgstr ""
1973
1974 # type: =head1
1975 #: ../src/guestfs.pod:1010
1976 msgid "SECURITY"
1977 msgstr ""
1978
1979 # type: textblock
1980 #: ../src/guestfs.pod:1012
1981 msgid ""
1982 "This section discusses security implications of using libguestfs, "
1983 "particularly with untrusted or malicious guests or disk images."
1984 msgstr ""
1985
1986 # type: =head2
1987 #: ../src/guestfs.pod:1015
1988 msgid "GENERAL SECURITY CONSIDERATIONS"
1989 msgstr ""
1990
1991 # type: textblock
1992 #: ../src/guestfs.pod:1017
1993 msgid ""
1994 "Be careful with any files or data that you download from a guest (by "
1995 "\"download\" we mean not just the L</guestfs_download> command but any "
1996 "command that reads files, filenames, directories or anything else from a "
1997 "disk image).  An attacker could manipulate the data to fool your program "
1998 "into doing the wrong thing.  Consider cases such as:"
1999 msgstr ""
2000
2001 # type: textblock
2002 #: ../src/guestfs.pod:1027
2003 msgid "the data (file etc) not being present"
2004 msgstr ""
2005
2006 # type: textblock
2007 #: ../src/guestfs.pod:1031
2008 msgid "being present but empty"
2009 msgstr ""
2010
2011 # type: textblock
2012 #: ../src/guestfs.pod:1035
2013 msgid "being much larger than normal"
2014 msgstr ""
2015
2016 # type: textblock
2017 #: ../src/guestfs.pod:1039
2018 msgid "containing arbitrary 8 bit data"
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:1043
2023 msgid "being in an unexpected character encoding"
2024 msgstr ""
2025
2026 # type: textblock
2027 #: ../src/guestfs.pod:1047
2028 msgid "containing homoglyphs."
2029 msgstr ""
2030
2031 # type: =head2
2032 #: ../src/guestfs.pod:1051
2033 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2034 msgstr ""
2035
2036 # type: textblock
2037 #: ../src/guestfs.pod:1053
2038 msgid ""
2039 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2040 "(VFS) module can sometimes be escalated into exploits by deliberately "
2041 "creating a malicious, malformed filesystem.  These exploits are very severe "
2042 "for two reasons.  Firstly there are very many filesystem drivers in the "
2043 "kernel, and many of them are infrequently used and not much developer "
2044 "attention has been paid to the code.  Linux userspace helps potential "
2045 "crackers by detecting the filesystem type and automatically choosing the "
2046 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2047 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2048 "exploit (worse in some ways), giving immediate and total access to the "
2049 "system right down to the hardware level."
2050 msgstr ""
2051
2052 # type: textblock
2053 #: ../src/guestfs.pod:1066
2054 msgid ""
2055 "That explains why you should never mount a filesystem from an untrusted "
2056 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2057 "inside a qemu virtual machine, usually running as a non-root user.  The "
2058 "attacker would need to write a filesystem which first exploited the kernel, "
2059 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2060 "the libguestfs protocol, and finally to be as serious as the host kernel "
2061 "exploit it would need to escalate its privileges to root.  This multi-step "
2062 "escalation, performed by a static piece of data, is thought to be extremely "
2063 "hard to do, although we never say 'never' about security issues."
2064 msgstr ""
2065
2066 # type: textblock
2067 #: ../src/guestfs.pod:1077
2068 msgid ""
2069 "In any case callers can reduce the attack surface by forcing the filesystem "
2070 "type when mounting (use L</guestfs_mount_vfs>)."
2071 msgstr ""
2072
2073 # type: =head2
2074 #: ../src/guestfs.pod:1080
2075 msgid "PROTOCOL SECURITY"
2076 msgstr ""
2077
2078 # type: textblock
2079 #: ../src/guestfs.pod:1082
2080 msgid ""
2081 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2082 "defined upper message size.  However a program that uses libguestfs must "
2083 "also take care - for example you can write a program that downloads a binary "
2084 "from a disk image and executes it locally, and no amount of protocol "
2085 "security will save you from the consequences."
2086 msgstr ""
2087
2088 # type: =head2
2089 #: ../src/guestfs.pod:1088
2090 msgid "INSPECTION SECURITY"
2091 msgstr ""
2092
2093 # type: textblock
2094 #: ../src/guestfs.pod:1090
2095 msgid ""
2096 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2097 "directly from the guest, and these could contain any 8 bit data.  Callers "
2098 "should be careful to escape these before printing them to a structured file "
2099 "(for example, use HTML escaping if creating a web page)."
2100 msgstr ""
2101
2102 # type: textblock
2103 #: ../src/guestfs.pod:1096
2104 msgid ""
2105 "Guest configuration may be altered in unusual ways by the administrator of "
2106 "the virtual machine, and may not reflect reality (particularly for untrusted "
2107 "or actively malicious guests).  For example we parse the hostname from "
2108 "configuration files like C</etc/sysconfig/network> that we find in the "
2109 "guest, but the guest administrator can easily manipulate these files to "
2110 "provide the wrong hostname."
2111 msgstr ""
2112
2113 # type: textblock
2114 #: ../src/guestfs.pod:1104
2115 msgid ""
2116 "The inspection API parses guest configuration using two external libraries: "
2117 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2118 "designed to be robust in the face of malicious data, although denial of "
2119 "service attacks are still possible, for example with oversized configuration "
2120 "files."
2121 msgstr ""
2122
2123 # type: =head2
2124 #: ../src/guestfs.pod:1110
2125 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2126 msgstr ""
2127
2128 # type: textblock
2129 #: ../src/guestfs.pod:1112
2130 msgid ""
2131 "Be very cautious about running commands from the guest.  By running a "
2132 "command in the guest, you are giving CPU time to a binary that you do not "
2133 "control, under the same user account as the library, albeit wrapped in qemu "
2134 "virtualization.  More information and alternatives can be found in the "
2135 "section L</RUNNING COMMANDS>."
2136 msgstr ""
2137
2138 # type: =head2
2139 #: ../src/guestfs.pod:1118
2140 msgid "CVE-2010-3851"
2141 msgstr ""
2142
2143 # type: textblock
2144 #: ../src/guestfs.pod:1120
2145 msgid "https://bugzilla.redhat.com/642934"
2146 msgstr ""
2147
2148 # type: textblock
2149 #: ../src/guestfs.pod:1122
2150 msgid ""
2151 "This security bug concerns the automatic disk format detection that qemu "
2152 "does on disk images."
2153 msgstr ""
2154
2155 # type: textblock
2156 #: ../src/guestfs.pod:1125
2157 msgid ""
2158 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2159 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2160 "for one of the known headers, and if none is found then assuming the disk "
2161 "image must be raw."
2162 msgstr ""
2163
2164 # type: textblock
2165 #: ../src/guestfs.pod:1130
2166 msgid ""
2167 "This allows a guest which has been given a raw disk image to write some "
2168 "other header.  At next boot (or when the disk image is accessed by "
2169 "libguestfs) qemu would do autodetection and think the disk image format was, "
2170 "say, qcow2 based on the header written by the guest."
2171 msgstr ""
2172
2173 # type: textblock
2174 #: ../src/guestfs.pod:1135
2175 msgid ""
2176 "This in itself would not be a problem, but qcow2 offers many features, one "
2177 "of which is to allow a disk image to refer to another image (called the "
2178 "\"backing disk\").  It does this by placing the path to the backing disk "
2179 "into the qcow2 header.  This path is not validated and could point to any "
2180 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2181 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2182 "control of the attacker."
2183 msgstr ""
2184
2185 # type: textblock
2186 #: ../src/guestfs.pod:1143
2187 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2188 msgstr ""
2189
2190 # type: textblock
2191 #: ../src/guestfs.pod:1150
2192 msgid "You have enabled the network or have opened the disk in write mode."
2193 msgstr ""
2194
2195 # type: textblock
2196 #: ../src/guestfs.pod:1154
2197 msgid ""
2198 "You are also running untrusted code from the guest (see L</RUNNING "
2199 "COMMANDS>)."
2200 msgstr ""
2201
2202 # type: textblock
2203 #: ../src/guestfs.pod:1159
2204 msgid ""
2205 "The way to avoid this is to specify the expected disk format when adding "
2206 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2207 "should always do this if the disk is raw format, and it's a good idea for "
2208 "other cases too."
2209 msgstr ""
2210
2211 # type: textblock
2212 #: ../src/guestfs.pod:1164
2213 msgid ""
2214 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2215 "format is fetched from libvirt and passed through."
2216 msgstr ""
2217
2218 # type: textblock
2219 #: ../src/guestfs.pod:1167
2220 msgid ""
2221 "For libguestfs tools, use the I<--format> command line parameter as "
2222 "appropriate."
2223 msgstr ""
2224
2225 # type: =head1
2226 #: ../src/guestfs.pod:1170
2227 msgid "CONNECTION MANAGEMENT"
2228 msgstr ""
2229
2230 # type: =head2
2231 #: ../src/guestfs.pod:1172
2232 msgid "guestfs_h *"
2233 msgstr ""
2234
2235 # type: textblock
2236 #: ../src/guestfs.pod:1174
2237 msgid ""
2238 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2239 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2240 "handle and release all resources used."
2241 msgstr ""
2242
2243 # type: textblock
2244 #: ../src/guestfs.pod:1178
2245 msgid ""
2246 "For information on using multiple handles and threads, see the section "
2247 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2248 msgstr ""
2249
2250 # type: =head2
2251 #: ../src/guestfs.pod:1181
2252 msgid "guestfs_create"
2253 msgstr ""
2254
2255 # type: verbatim
2256 #: ../src/guestfs.pod:1183
2257 #, no-wrap
2258 msgid ""
2259 " guestfs_h *guestfs_create (void);\n"
2260 "\n"
2261 msgstr ""
2262
2263 # type: textblock
2264 #: ../src/guestfs.pod:1185
2265 msgid "Create a connection handle."
2266 msgstr ""
2267
2268 # type: textblock
2269 #: ../src/guestfs.pod:1187
2270 msgid ""
2271 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2272 "on the handle at least once."
2273 msgstr ""
2274
2275 # type: textblock
2276 #: ../src/guestfs.pod:1190
2277 msgid ""
2278 "This function returns a non-NULL pointer to a handle on success or NULL on "
2279 "error."
2280 msgstr ""
2281
2282 # type: textblock
2283 #: ../src/guestfs.pod:1193
2284 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2285 msgstr ""
2286
2287 # type: textblock
2288 #: ../src/guestfs.pod:1195
2289 msgid ""
2290 "You may also want to configure error handling for the handle.  See L</ERROR "
2291 "HANDLING> section below."
2292 msgstr ""
2293
2294 # type: =head2
2295 #: ../src/guestfs.pod:1198
2296 msgid "guestfs_close"
2297 msgstr ""
2298
2299 # type: verbatim
2300 #: ../src/guestfs.pod:1200
2301 #, no-wrap
2302 msgid ""
2303 " void guestfs_close (guestfs_h *g);\n"
2304 "\n"
2305 msgstr ""
2306
2307 # type: textblock
2308 #: ../src/guestfs.pod:1202
2309 msgid "This closes the connection handle and frees up all resources used."
2310 msgstr ""
2311
2312 # type: =head1
2313 #: ../src/guestfs.pod:1204
2314 msgid "ERROR HANDLING"
2315 msgstr ""
2316
2317 # type: textblock
2318 #: ../src/guestfs.pod:1206
2319 msgid ""
2320 "API functions can return errors.  For example, almost all functions that "
2321 "return C<int> will return C<-1> to indicate an error."
2322 msgstr ""
2323
2324 # type: textblock
2325 #: ../src/guestfs.pod:1209
2326 msgid ""
2327 "Additional information is available for errors: an error message string and "
2328 "optionally an error number (errno) if the thing that failed was a system "
2329 "call."
2330 msgstr ""
2331
2332 # type: textblock
2333 #: ../src/guestfs.pod:1213
2334 msgid ""
2335 "You can get at the additional information about the last error on the handle "
2336 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2337 "up an error handler with L</guestfs_set_error_handler>."
2338 msgstr ""
2339
2340 # type: textblock
2341 #: ../src/guestfs.pod:1218
2342 msgid ""
2343 "When the handle is created, a default error handler is installed which "
2344 "prints the error message string to C<stderr>.  For small short-running "
2345 "command line programs it is sufficient to do:"
2346 msgstr ""
2347
2348 # type: verbatim
2349 #: ../src/guestfs.pod:1222
2350 #, no-wrap
2351 msgid ""
2352 " if (guestfs_launch (g) == -1)\n"
2353 "   exit (EXIT_FAILURE);\n"
2354 "\n"
2355 msgstr ""
2356
2357 # type: textblock
2358 #: ../src/guestfs.pod:1225
2359 msgid ""
2360 "since the default error handler will ensure that an error message has been "
2361 "printed to C<stderr> before the program exits."
2362 msgstr ""
2363
2364 # type: textblock
2365 #: ../src/guestfs.pod:1228
2366 msgid ""
2367 "For other programs the caller will almost certainly want to install an "
2368 "alternate error handler or do error handling in-line like this:"
2369 msgstr ""
2370
2371 # type: verbatim
2372 #: ../src/guestfs.pod:1231
2373 #, no-wrap
2374 msgid ""
2375 " g = guestfs_create ();\n"
2376 " \n"
2377 msgstr ""
2378
2379 # type: verbatim
2380 #: ../src/guestfs.pod:1233
2381 #, no-wrap
2382 msgid ""
2383 " /* This disables the default behaviour of printing errors\n"
2384 "    on stderr. */\n"
2385 " guestfs_set_error_handler (g, NULL, NULL);\n"
2386 " \n"
2387 msgstr ""
2388
2389 # type: verbatim
2390 #: ../src/guestfs.pod:1237
2391 #, no-wrap
2392 msgid ""
2393 " if (guestfs_launch (g) == -1) {\n"
2394 "   /* Examine the error message and print it etc. */\n"
2395 "   char *msg = guestfs_last_error (g);\n"
2396 "   int errnum = guestfs_last_errno (g);\n"
2397 "   fprintf (stderr, \"%s\\n\", msg);\n"
2398 "   /* ... */\n"
2399 "  }\n"
2400 "\n"
2401 msgstr ""
2402
2403 # type: textblock
2404 #: ../src/guestfs.pod:1245
2405 msgid ""
2406 "Out of memory errors are handled differently.  The default action is to call "
2407 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2408 "L</guestfs_set_out_of_memory_handler>."
2409 msgstr ""
2410
2411 # type: textblock
2412 #: ../src/guestfs.pod:1249
2413 msgid ""
2414 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2415 "because there is no handle if this happens there is no way to get additional "
2416 "error information.  However L</guestfs_create> is supposed to be a "
2417 "lightweight operation which can only fail because of insufficient memory (it "
2418 "returns NULL in this case)."
2419 msgstr ""
2420
2421 # type: =head2
2422 #: ../src/guestfs.pod:1255
2423 msgid "guestfs_last_error"
2424 msgstr ""
2425
2426 # type: verbatim
2427 #: ../src/guestfs.pod:1257
2428 #, no-wrap
2429 msgid ""
2430 " const char *guestfs_last_error (guestfs_h *g);\n"
2431 "\n"
2432 msgstr ""
2433
2434 # type: textblock
2435 #: ../src/guestfs.pod:1259
2436 msgid ""
2437 "This returns the last error message that happened on C<g>.  If there has not "
2438 "been an error since the handle was created, then this returns C<NULL>."
2439 msgstr ""
2440
2441 # type: textblock
2442 #: ../src/guestfs.pod:1263
2443 msgid ""
2444 "The lifetime of the returned string is until the next error occurs, or "
2445 "L</guestfs_close> is called."
2446 msgstr ""
2447
2448 # type: =head2
2449 #: ../src/guestfs.pod:1266
2450 msgid "guestfs_last_errno"
2451 msgstr ""
2452
2453 # type: verbatim
2454 #: ../src/guestfs.pod:1268
2455 #, no-wrap
2456 msgid ""
2457 " int guestfs_last_errno (guestfs_h *g);\n"
2458 "\n"
2459 msgstr ""
2460
2461 # type: textblock
2462 #: ../src/guestfs.pod:1270
2463 msgid "This returns the last error number (errno) that happened on C<g>."
2464 msgstr ""
2465
2466 # type: textblock
2467 #: ../src/guestfs.pod:1272
2468 msgid "If successful, an errno integer not equal to zero is returned."
2469 msgstr ""
2470
2471 # type: textblock
2472 #: ../src/guestfs.pod:1274
2473 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2474 msgstr ""
2475
2476 # type: textblock
2477 #: ../src/guestfs.pod:1281
2478 msgid "There has not been any error on the handle."
2479 msgstr ""
2480
2481 # type: textblock
2482 #: ../src/guestfs.pod:1285
2483 msgid ""
2484 "There has been an error but the errno was meaningless.  This corresponds to "
2485 "the case where the error did not come from a failed system call, but for "
2486 "some other reason."
2487 msgstr ""
2488
2489 # type: textblock
2490 #: ../src/guestfs.pod:1291
2491 msgid ""
2492 "There was an error from a failed system call, but for some reason the errno "
2493 "was not captured and returned.  This usually indicates a bug in libguestfs."
2494 msgstr ""
2495
2496 # type: textblock
2497 #: ../src/guestfs.pod:1297
2498 msgid ""
2499 "Libguestfs tries to convert the errno from inside the applicance into a "
2500 "corresponding errno for the caller (not entirely trivial: the appliance "
2501 "might be running a completely different operating system from the library "
2502 "and error numbers are not standardized across Un*xen).  If this could not be "
2503 "done, then the error is translated to C<EINVAL>.  In practice this should "
2504 "only happen in very rare circumstances."
2505 msgstr ""
2506
2507 # type: =head2
2508 #: ../src/guestfs.pod:1305
2509 msgid "guestfs_set_error_handler"
2510 msgstr ""
2511
2512 # type: verbatim
2513 #: ../src/guestfs.pod:1307
2514 #, no-wrap
2515 msgid ""
2516 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2517 "                                           void *opaque,\n"
2518 "                                           const char *msg);\n"
2519 " void guestfs_set_error_handler (guestfs_h *g,\n"
2520 "                                 guestfs_error_handler_cb cb,\n"
2521 "                                 void *opaque);\n"
2522 "\n"
2523 msgstr ""
2524
2525 # type: textblock
2526 #: ../src/guestfs.pod:1314
2527 msgid ""
2528 "The callback C<cb> will be called if there is an error.  The parameters "
2529 "passed to the callback are an opaque data pointer and the error message "
2530 "string."
2531 msgstr ""
2532
2533 # type: textblock
2534 #: ../src/guestfs.pod:1318
2535 msgid ""
2536 "C<errno> is not passed to the callback.  To get that the callback must call "
2537 "L</guestfs_last_errno>."
2538 msgstr ""
2539
2540 # type: textblock
2541 #: ../src/guestfs.pod:1321
2542 msgid ""
2543 "Note that the message string C<msg> is freed as soon as the callback "
2544 "function returns, so if you want to stash it somewhere you must make your "
2545 "own copy."
2546 msgstr ""
2547
2548 # type: textblock
2549 #: ../src/guestfs.pod:1325
2550 msgid "The default handler prints messages on C<stderr>."
2551 msgstr ""
2552
2553 # type: textblock
2554 #: ../src/guestfs.pod:1327
2555 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2556 msgstr ""
2557
2558 # type: =head2
2559 #: ../src/guestfs.pod:1329
2560 msgid "guestfs_get_error_handler"
2561 msgstr ""
2562
2563 # type: verbatim
2564 #: ../src/guestfs.pod:1331
2565 #, no-wrap
2566 msgid ""
2567 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2568 "                                                     void **opaque_rtn);\n"
2569 "\n"
2570 msgstr ""
2571
2572 # type: textblock
2573 #: ../src/guestfs.pod:1334
2574 msgid "Returns the current error handler callback."
2575 msgstr ""
2576
2577 # type: =head2
2578 #: ../src/guestfs.pod:1336
2579 msgid "guestfs_set_out_of_memory_handler"
2580 msgstr ""
2581
2582 # type: verbatim
2583 #: ../src/guestfs.pod:1338
2584 #, no-wrap
2585 msgid ""
2586 " typedef void (*guestfs_abort_cb) (void);\n"
2587 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2588 "                                        guestfs_abort_cb);\n"
2589 "\n"
2590 msgstr ""
2591
2592 # type: textblock
2593 #: ../src/guestfs.pod:1342
2594 msgid ""
2595 "The callback C<cb> will be called if there is an out of memory situation.  "
2596 "I<Note this callback must not return>."
2597 msgstr ""
2598
2599 # type: textblock
2600 #: ../src/guestfs.pod:1345
2601 msgid "The default is to call L<abort(3)>."
2602 msgstr ""
2603
2604 # type: textblock
2605 #: ../src/guestfs.pod:1347
2606 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2607 msgstr ""
2608
2609 # type: =head2
2610 #: ../src/guestfs.pod:1350
2611 msgid "guestfs_get_out_of_memory_handler"
2612 msgstr ""
2613
2614 # type: verbatim
2615 #: ../src/guestfs.pod:1352
2616 #, no-wrap
2617 msgid ""
2618 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2619 "\n"
2620 msgstr ""
2621
2622 # type: textblock
2623 #: ../src/guestfs.pod:1354
2624 msgid "This returns the current out of memory handler."
2625 msgstr ""
2626
2627 # type: =head1
2628 #: ../src/guestfs.pod:1356
2629 msgid "API CALLS"
2630 msgstr ""
2631
2632 # type: textblock
2633 #: ../src/guestfs.pod:1358 ../fish/guestfish.pod:908
2634 msgid "@ACTIONS@"
2635 msgstr ""
2636
2637 # type: =head1
2638 #: ../src/guestfs.pod:1360
2639 msgid "STRUCTURES"
2640 msgstr ""
2641
2642 # type: textblock
2643 #: ../src/guestfs.pod:1362
2644 msgid "@STRUCTS@"
2645 msgstr ""
2646
2647 # type: =head1
2648 #: ../src/guestfs.pod:1364
2649 msgid "AVAILABILITY"
2650 msgstr ""
2651
2652 # type: =head2
2653 #: ../src/guestfs.pod:1366
2654 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2655 msgstr ""
2656
2657 # type: textblock
2658 #: ../src/guestfs.pod:1368
2659 msgid ""
2660 "Using L</guestfs_available> you can test availability of the following "
2661 "groups of functions.  This test queries the appliance to see if the "
2662 "appliance you are currently using supports the functionality."
2663 msgstr ""
2664
2665 # type: textblock
2666 #: ../src/guestfs.pod:1373
2667 msgid "@AVAILABILITY@"
2668 msgstr ""
2669
2670 # type: =head2
2671 #: ../src/guestfs.pod:1375
2672 msgid "GUESTFISH supported COMMAND"
2673 msgstr ""
2674
2675 # type: textblock
2676 #: ../src/guestfs.pod:1377
2677 msgid ""
2678 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2679 "prints out the available groups and whether they are supported by this build "
2680 "of libguestfs.  Note however that you have to do C<run> first."
2681 msgstr ""
2682
2683 # type: =head2
2684 #: ../src/guestfs.pod:1382
2685 msgid "SINGLE CALLS AT COMPILE TIME"
2686 msgstr ""
2687
2688 # type: textblock
2689 #: ../src/guestfs.pod:1384
2690 msgid ""
2691 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2692 "function, such as:"
2693 msgstr ""
2694
2695 # type: verbatim
2696 #: ../src/guestfs.pod:1387
2697 #, no-wrap
2698 msgid ""
2699 " #define LIBGUESTFS_HAVE_DD 1\n"
2700 "\n"
2701 msgstr ""
2702
2703 # type: textblock
2704 #: ../src/guestfs.pod:1389
2705 msgid "if L</guestfs_dd> is available."
2706 msgstr ""
2707
2708 # type: textblock
2709 #: ../src/guestfs.pod:1391
2710 msgid ""
2711 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2712 "function is available at compile time, we recommended using build tools such "
2713 "as autoconf or cmake.  For example in autotools you could use:"
2714 msgstr ""
2715
2716 # type: verbatim
2717 #: ../src/guestfs.pod:1396
2718 #, no-wrap
2719 msgid ""
2720 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2721 " AC_CHECK_FUNCS([guestfs_dd])\n"
2722 "\n"
2723 msgstr ""
2724
2725 # type: textblock
2726 #: ../src/guestfs.pod:1399
2727 msgid ""
2728 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2729 "in your program."
2730 msgstr ""
2731
2732 # type: =head2
2733 #: ../src/guestfs.pod:1402
2734 msgid "SINGLE CALLS AT RUN TIME"
2735 msgstr ""
2736
2737 # type: textblock
2738 #: ../src/guestfs.pod:1404
2739 msgid ""
2740 "Testing at compile time doesn't guarantee that a function really exists in "
2741 "the library.  The reason is that you might be dynamically linked against a "
2742 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2743 "This situation unfortunately results in a segmentation fault, which is a "
2744 "shortcoming of the C dynamic linking system itself."
2745 msgstr ""
2746
2747 # type: textblock
2748 #: ../src/guestfs.pod:1411
2749 msgid ""
2750 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2751 "in this example program (note that you still need the compile time check as "
2752 "well):"
2753 msgstr ""
2754
2755 # type: verbatim
2756 #: ../src/guestfs.pod:1415
2757 #, no-wrap
2758 msgid ""
2759 " #include <stdio.h>\n"
2760 " #include <stdlib.h>\n"
2761 " #include <unistd.h>\n"
2762 " #include <dlfcn.h>\n"
2763 " #include <guestfs.h>\n"
2764 " \n"
2765 msgstr ""
2766
2767 # type: verbatim
2768 #: ../src/guestfs.pod:1421
2769 #, no-wrap
2770 msgid ""
2771 " main ()\n"
2772 " {\n"
2773 " #ifdef LIBGUESTFS_HAVE_DD\n"
2774 "   void *dl;\n"
2775 "   int has_function;\n"
2776 " \n"
2777 msgstr ""
2778
2779 # type: verbatim
2780 #: ../src/guestfs.pod:1427
2781 #, no-wrap
2782 msgid ""
2783 "   /* Test if the function guestfs_dd is really available. */\n"
2784 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2785 "   if (!dl) {\n"
2786 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2787 "     exit (EXIT_FAILURE);\n"
2788 "   }\n"
2789 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2790 "   dlclose (dl);\n"
2791 " \n"
2792 msgstr ""
2793
2794 # type: verbatim
2795 #: ../src/guestfs.pod:1436
2796 #, no-wrap
2797 msgid ""
2798 "   if (!has_function)\n"
2799 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2800 "   else {\n"
2801 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2802 "     /* Now it's safe to call\n"
2803 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2804 "     */\n"
2805 "   }\n"
2806 " #else\n"
2807 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2808 " #endif\n"
2809 "  }\n"
2810 "\n"
2811 msgstr ""
2812
2813 # type: textblock
2814 #: ../src/guestfs.pod:1449
2815 msgid ""
2816 "You may think the above is an awful lot of hassle, and it is.  There are "
2817 "other ways outside of the C linking system to ensure that this kind of "
2818 "incompatibility never arises, such as using package versioning:"
2819 msgstr ""
2820
2821 # type: verbatim
2822 #: ../src/guestfs.pod:1454
2823 #, no-wrap
2824 msgid ""
2825 " Requires: libguestfs >= 1.0.80\n"
2826 "\n"
2827 msgstr ""
2828
2829 # type: =head1
2830 #: ../src/guestfs.pod:1456
2831 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2832 msgstr ""
2833
2834 # type: textblock
2835 #: ../src/guestfs.pod:1458
2836 msgid ""
2837 "A recent feature of the API is the introduction of calls which take optional "
2838 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2839 "takes variable arguments (ie. C<...>), as in this example:"
2840 msgstr ""
2841
2842 # type: verbatim
2843 #: ../src/guestfs.pod:1463
2844 #, no-wrap
2845 msgid ""
2846 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2847 "\n"
2848 msgstr ""
2849
2850 # type: textblock
2851 #: ../src/guestfs.pod:1465
2852 msgid ""
2853 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2854 "call with no optional arguments specified:"
2855 msgstr ""
2856
2857 # type: verbatim
2858 #: ../src/guestfs.pod:1468
2859 #, no-wrap
2860 msgid ""
2861 " guestfs_add_drive_opts (g, filename, -1);\n"
2862 "\n"
2863 msgstr ""
2864
2865 # type: textblock
2866 #: ../src/guestfs.pod:1470
2867 msgid "With a single optional argument:"
2868 msgstr ""
2869
2870 # type: verbatim
2871 #: ../src/guestfs.pod:1472
2872 #, no-wrap
2873 msgid ""
2874 " guestfs_add_drive_opts (g, filename,\n"
2875 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2876 "                         -1);\n"
2877 "\n"
2878 msgstr ""
2879
2880 # type: textblock
2881 #: ../src/guestfs.pod:1476
2882 msgid "With two:"
2883 msgstr ""
2884
2885 # type: verbatim
2886 #: ../src/guestfs.pod:1478
2887 #, no-wrap
2888 msgid ""
2889 " guestfs_add_drive_opts (g, filename,\n"
2890 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2891 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2892 "                         -1);\n"
2893 "\n"
2894 msgstr ""
2895
2896 # type: textblock
2897 #: ../src/guestfs.pod:1483
2898 msgid ""
2899 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2900 "happen!"
2901 msgstr ""
2902
2903 # type: =head2
2904 #: ../src/guestfs.pod:1486
2905 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2906 msgstr ""
2907
2908 # type: textblock
2909 #: ../src/guestfs.pod:1488
2910 msgid ""
2911 "The second variant has the same name with the suffix C<_va>, which works the "
2912 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2913 "example function, this is declared:"
2914 msgstr ""
2915
2916 # type: verbatim
2917 #: ../src/guestfs.pod:1492
2918 #, no-wrap
2919 msgid ""
2920 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2921 "                                va_list args);\n"
2922 "\n"
2923 msgstr ""
2924
2925 # type: =head2
2926 #: ../src/guestfs.pod:1495
2927 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2928 msgstr ""
2929
2930 # type: textblock
2931 #: ../src/guestfs.pod:1497
2932 msgid ""
2933 "The third variant is useful where you need to construct these calls.  You "
2934 "pass in a structure where you fill in the optional fields.  The structure "
2935 "has a bitmask as the first element which you must set to indicate which "
2936 "fields you have filled in.  For our example function the structure and call "
2937 "are declared:"
2938 msgstr ""
2939
2940 # type: verbatim
2941 #: ../src/guestfs.pod:1503
2942 #, no-wrap
2943 msgid ""
2944 " struct guestfs_add_drive_opts_argv {\n"
2945 "   uint64_t bitmask;\n"
2946 "   int readonly;\n"
2947 "   const char *format;\n"
2948 "   /* ... */\n"
2949 " };\n"
2950 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2951 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2952 "\n"
2953 msgstr ""
2954
2955 # type: textblock
2956 #: ../src/guestfs.pod:1512
2957 msgid "You could call it like this:"
2958 msgstr ""
2959
2960 # type: verbatim
2961 #: ../src/guestfs.pod:1514
2962 #, no-wrap
2963 msgid ""
2964 " struct guestfs_add_drive_opts_argv optargs = {\n"
2965 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2966 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2967 "   .readonly = 1,\n"
2968 "   .format = \"qcow2\"\n"
2969 " };\n"
2970 " \n"
2971 msgstr ""
2972
2973 # type: verbatim
2974 #: ../src/guestfs.pod:1521
2975 #, no-wrap
2976 msgid ""
2977 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2978 "\n"
2979 msgstr ""
2980
2981 # type: textblock
2982 #: ../src/guestfs.pod:1523 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1255
2983 msgid "Notes:"
2984 msgstr ""
2985
2986 # type: textblock
2987 #: ../src/guestfs.pod:1529
2988 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2989 msgstr ""
2990
2991 # type: textblock
2992 #: ../src/guestfs.pod:1534
2993 msgid "You do not need to fill in all fields of the structure."
2994 msgstr ""
2995
2996 # type: textblock
2997 #: ../src/guestfs.pod:1538
2998 msgid ""
2999 "There must be a one-to-one correspondence between fields of the structure "
3000 "that are filled in, and bits set in the bitmask."
3001 msgstr ""
3002
3003 # type: =head2
3004 #: ../src/guestfs.pod:1543
3005 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3006 msgstr ""
3007
3008 # type: textblock
3009 #: ../src/guestfs.pod:1545
3010 msgid ""
3011 "In other languages, optional arguments are expressed in the way that is "
3012 "natural for that language.  We refer you to the language-specific "
3013 "documentation for more details on that."
3014 msgstr ""
3015
3016 # type: textblock
3017 #: ../src/guestfs.pod:1549
3018 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3019 msgstr ""
3020
3021 # type: =head2
3022 #: ../src/guestfs.pod:1551
3023 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3024 msgstr ""
3025
3026 # type: textblock
3027 #: ../src/guestfs.pod:1553
3028 msgid ""
3029 "The child process generates events in some situations.  Current events "
3030 "include: receiving a log message, the child process exits."
3031 msgstr ""
3032
3033 # type: textblock
3034 #: ../src/guestfs.pod:1556
3035 msgid ""
3036 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3037 "types of events."
3038 msgstr ""
3039
3040 # type: textblock
3041 #: ../src/guestfs.pod:1559
3042 msgid ""
3043 "Only I<one callback of each type> can be registered for each handle.  "
3044 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3045 "that type.  Cancel all callbacks of this type by calling this function with "
3046 "C<cb> set to C<NULL>."
3047 msgstr ""
3048
3049 # type: =head2
3050 #: ../src/guestfs.pod:1564
3051 msgid "guestfs_set_log_message_callback"
3052 msgstr ""
3053
3054 # type: verbatim
3055 #: ../src/guestfs.pod:1566
3056 #, no-wrap
3057 msgid ""
3058 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3059 "                                         char *buf, int len);\n"
3060 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3061 "                                        guestfs_log_message_cb cb,\n"
3062 "                                        void *opaque);\n"
3063 "\n"
3064 msgstr ""
3065
3066 # type: textblock
3067 #: ../src/guestfs.pod:1572
3068 msgid ""
3069 "The callback function C<cb> will be called whenever qemu or the guest writes "
3070 "anything to the console."
3071 msgstr ""
3072
3073 # type: textblock
3074 #: ../src/guestfs.pod:1575
3075 msgid "Use this function to capture kernel messages and similar."
3076 msgstr ""
3077
3078 # type: textblock
3079 #: ../src/guestfs.pod:1577
3080 msgid ""
3081 "Normally there is no log message handler, and log messages are just "
3082 "discarded."
3083 msgstr ""
3084
3085 # type: =head2
3086 #: ../src/guestfs.pod:1580
3087 msgid "guestfs_set_subprocess_quit_callback"
3088 msgstr ""
3089
3090 # type: verbatim
3091 #: ../src/guestfs.pod:1582
3092 #, no-wrap
3093 msgid ""
3094 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3095 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3096 "                                            guestfs_subprocess_quit_cb cb,\n"
3097 "                                            void *opaque);\n"
3098 "\n"
3099 msgstr ""
3100
3101 # type: textblock
3102 #: ../src/guestfs.pod:1587
3103 msgid ""
3104 "The callback function C<cb> will be called when the child process quits, "
3105 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3106 "corresponds to a transition from any state to the CONFIG state)."
3107 msgstr ""
3108
3109 # type: =head2
3110 #: ../src/guestfs.pod:1592
3111 msgid "guestfs_set_launch_done_callback"
3112 msgstr ""
3113
3114 # type: verbatim
3115 #: ../src/guestfs.pod:1594
3116 #, no-wrap
3117 msgid ""
3118 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3119 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3120 "                                        guestfs_launch_done_cb cb,\n"
3121 "                                        void *opaque);\n"
3122 "\n"
3123 msgstr ""
3124
3125 # type: textblock
3126 #: ../src/guestfs.pod:1599
3127 msgid ""
3128 "The callback function C<cb> will be called when the child process becomes "
3129 "ready first time after it has been launched.  (This corresponds to a "
3130 "transition from LAUNCHING to the READY state)."
3131 msgstr ""
3132
3133 # type: =head2
3134 #: ../src/guestfs.pod:1603
3135 msgid "guestfs_set_close_callback"
3136 msgstr ""
3137
3138 # type: verbatim
3139 #: ../src/guestfs.pod:1605
3140 #, no-wrap
3141 msgid ""
3142 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3143 " void guestfs_set_close_callback (guestfs_h *g,\n"
3144 "                                  guestfs_close_cb cb,\n"
3145 "                                  void *opaque);\n"
3146 "\n"
3147 msgstr ""
3148
3149 # type: textblock
3150 #: ../src/guestfs.pod:1610
3151 msgid ""
3152 "The callback function C<cb> will be called while the handle is being closed "
3153 "(synchronously from L</guestfs_close>)."
3154 msgstr ""
3155
3156 # type: textblock
3157 #: ../src/guestfs.pod:1613
3158 msgid ""
3159 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3160 "handles that are open when the program exits.  This means that this callback "
3161 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3162 "problems in higher-level languages (eg. if your HLL interpreter has already "
3163 "been cleaned up by the time this is called, and if your callback then jumps "
3164 "into some HLL function)."
3165 msgstr ""
3166
3167 # type: =head2
3168 #: ../src/guestfs.pod:1621
3169 msgid "guestfs_set_progress_callback"
3170 msgstr ""
3171
3172 # type: verbatim
3173 #: ../src/guestfs.pod:1623
3174 #, no-wrap
3175 msgid ""
3176 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3177 "                                      int proc_nr, int serial,\n"
3178 "                                      uint64_t position, uint64_t total);\n"
3179 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3180 "                                     guestfs_progress_cb cb,\n"
3181 "                                     void *opaque);\n"
3182 "\n"
3183 msgstr ""
3184
3185 # type: textblock
3186 #: ../src/guestfs.pod:1630
3187 msgid ""
3188 "Some long-running operations can generate progress messages.  If this "
3189 "callback is registered, then it will be called each time a progress message "
3190 "is generated (usually two seconds after the operation started, and three "
3191 "times per second thereafter until it completes, although the frequency may "
3192 "change in future versions)."
3193 msgstr ""
3194
3195 # type: textblock
3196 #: ../src/guestfs.pod:1636
3197 msgid ""
3198 "The callback receives two numbers: C<position> and C<total>.  The units of "
3199 "C<total> are not defined, although for some operations C<total> may relate "
3200 "in some way to the amount of data to be transferred (eg. in bytes or "
3201 "megabytes), and C<position> may be the portion which has been transferred."
3202 msgstr ""
3203
3204 # type: textblock
3205 #: ../src/guestfs.pod:1642
3206 msgid "The only defined and stable parts of the API are:"
3207 msgstr ""
3208
3209 # type: textblock
3210 #: ../src/guestfs.pod:1648
3211 msgid ""
3212 "The callback can display to the user some type of progress bar or indicator "
3213 "which shows the ratio of C<position>:C<total>."
3214 msgstr ""
3215
3216 # type: textblock
3217 #: ../src/guestfs.pod:1653
3218 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3219 msgstr ""
3220
3221 # type: textblock
3222 #: ../src/guestfs.pod:1657
3223 msgid ""
3224 "If any progress notification is sent during a call, then a final progress "
3225 "notification is always sent when C<position> = C<total>."
3226 msgstr ""
3227
3228 # type: textblock
3229 #: ../src/guestfs.pod:1660
3230 msgid ""
3231 "This is to simplify caller code, so callers can easily set the progress "
3232 "indicator to \"100%\" at the end of the operation, without requiring special "
3233 "code to detect this case."
3234 msgstr ""
3235
3236 # type: textblock
3237 #: ../src/guestfs.pod:1666
3238 msgid ""
3239 "The callback also receives the procedure number and serial number of the "
3240 "call.  These are only useful for debugging protocol issues, and the callback "
3241 "can normally ignore them.  The callback may want to print these numbers in "
3242 "error messages or debugging messages."
3243 msgstr ""
3244
3245 # type: =head1
3246 #: ../src/guestfs.pod:1671
3247 msgid "PRIVATE DATA AREA"
3248 msgstr ""
3249
3250 # type: textblock
3251 #: ../src/guestfs.pod:1673
3252 msgid ""
3253 "You can attach named pieces of private data to the libguestfs handle, and "
3254 "fetch them by name for the lifetime of the handle.  This is called the "
3255 "private data area and is only available from the C API."
3256 msgstr ""
3257
3258 # type: textblock
3259 #: ../src/guestfs.pod:1677
3260 msgid "To attach a named piece of data, use the following call:"
3261 msgstr ""
3262
3263 # type: verbatim
3264 #: ../src/guestfs.pod:1679
3265 #, no-wrap
3266 msgid ""
3267 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3268 "\n"
3269 msgstr ""
3270
3271 # type: textblock
3272 #: ../src/guestfs.pod:1681
3273 msgid ""
3274 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3275 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3276 "overwritten."
3277 msgstr ""
3278
3279 # type: textblock
3280 #: ../src/guestfs.pod:1685
3281 msgid ""
3282 "You can use any C<key> you want, but names beginning with an underscore "
3283 "character are reserved for internal libguestfs purposes (for implementing "
3284 "language bindings).  It is recommended to prefix the name with some unique "
3285 "string to avoid collisions with other users."
3286 msgstr ""
3287
3288 # type: textblock
3289 #: ../src/guestfs.pod:1690
3290 msgid "To retrieve the pointer, use:"
3291 msgstr ""
3292
3293 # type: verbatim
3294 #: ../src/guestfs.pod:1692
3295 #, no-wrap
3296 msgid ""
3297 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3298 "\n"
3299 msgstr ""
3300
3301 # type: textblock
3302 #: ../src/guestfs.pod:1694
3303 msgid ""
3304 "This function returns C<NULL> if either no data is found associated with "
3305 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3306 "C<NULL>."
3307 msgstr ""
3308
3309 # type: textblock
3310 #: ../src/guestfs.pod:1698
3311 msgid ""
3312 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3313 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3314 "all.  In particular, libguestfs does I<not> try to free the data when the "
3315 "handle is closed.  If the data must be freed, then the caller must either "
3316 "free it before calling L</guestfs_close> or must set up a close callback to "
3317 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3318 "can be registered for a handle)."
3319 msgstr ""
3320
3321 # type: textblock
3322 #: ../src/guestfs.pod:1706
3323 msgid ""
3324 "The private data area is implemented using a hash table, and should be "
3325 "reasonably efficient for moderate numbers of keys."
3326 msgstr ""
3327
3328 # type: =end
3329 #: ../src/guestfs.pod:1709 ../src/guestfs.pod:1714
3330 msgid "html"
3331 msgstr ""
3332
3333 # type: textblock
3334 #: ../src/guestfs.pod:1711
3335 msgid ""
3336 "<!-- old anchor for the next section --> <a "
3337 "name=\"state_machine_and_low_level_event_api\"/>"
3338 msgstr ""
3339
3340 # type: =head1
3341 #: ../src/guestfs.pod:1716
3342 msgid "ARCHITECTURE"
3343 msgstr ""
3344
3345 # type: textblock
3346 #: ../src/guestfs.pod:1718
3347 msgid ""
3348 "Internally, libguestfs is implemented by running an appliance (a special "
3349 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3350 "process of the main program."
3351 msgstr ""
3352
3353 # type: verbatim
3354 #: ../src/guestfs.pod:1722
3355 #, no-wrap
3356 msgid ""
3357 "  ___________________\n"
3358 " /                   \\\n"
3359 " | main program      |\n"
3360 " |                   |\n"
3361 " |                   |           child process / appliance\n"
3362 " |                   |           __________________________\n"
3363 " |                   |          / qemu                     \\\n"
3364 " +-------------------+   RPC    |      +-----------------+ |\n"
3365 " | libguestfs     <--------------------> guestfsd        | |\n"
3366 " |                   |          |      +-----------------+ |\n"
3367 " \\___________________/          |      | Linux kernel    | |\n"
3368 "                                |      +--^--------------+ |\n"
3369 "                                \\_________|________________/\n"
3370 "                                          |\n"
3371 "                                   _______v______\n"
3372 "                                  /              \\\n"
3373 "                                  | Device or    |\n"
3374 "                                  | disk image   |\n"
3375 "                                  \\______________/\n"
3376 "\n"
3377 msgstr ""
3378
3379 # type: textblock
3380 #: ../src/guestfs.pod:1742
3381 msgid ""
3382 "The library, linked to the main program, creates the child process and hence "
3383 "the appliance in the L</guestfs_launch> function."
3384 msgstr ""
3385
3386 # type: textblock
3387 #: ../src/guestfs.pod:1745
3388 msgid ""
3389 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3390 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3391 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3392 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3393 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3394 "attached to the qemu process which translates device access by the "
3395 "appliance's Linux kernel into accesses to the image."
3396 msgstr ""
3397
3398 # type: textblock
3399 #: ../src/guestfs.pod:1754
3400 msgid ""
3401 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3402 "Although the disk image you are attached to might also be used by some "
3403 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3404 "care if both libguestfs's qemu process and your virtual machine are trying "
3405 "to update the disk image at the same time, since these usually results in "
3406 "massive disk corruption)."
3407 msgstr ""
3408
3409 # type: =head1
3410 #: ../src/guestfs.pod:1761
3411 msgid "STATE MACHINE"
3412 msgstr ""
3413
3414 # type: textblock
3415 #: ../src/guestfs.pod:1763
3416 msgid "libguestfs uses a state machine to model the child process:"
3417 msgstr ""
3418
3419 # type: verbatim
3420 #: ../src/guestfs.pod:1765
3421 #, no-wrap
3422 msgid ""
3423 "                         |\n"
3424 "                    guestfs_create\n"
3425 "                         |\n"
3426 "                         |\n"
3427 "                     ____V_____\n"
3428 "                    /          \\\n"
3429 "                    |  CONFIG  |\n"
3430 "                    \\__________/\n"
3431 "                     ^ ^   ^  \\\n"
3432 "                    /  |    \\  \\ guestfs_launch\n"
3433 "                   /   |    _\\__V______\n"
3434 "                  /    |   /           \\\n"
3435 "                 /     |   | LAUNCHING |\n"
3436 "                /      |   \\___________/\n"
3437 "               /       |       /\n"
3438 "              /        |  guestfs_launch\n"
3439 "             /         |     /\n"
3440 "    ______  /        __|____V\n"
3441 "   /      \\ ------> /        \\\n"
3442 "   | BUSY |         | READY  |\n"
3443 "   \\______/ <------ \\________/\n"
3444 "\n"
3445 msgstr ""
3446
3447 # type: textblock
3448 #: ../src/guestfs.pod:1787
3449 msgid ""
3450 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3451 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3452 "(3) alternating between READY and BUSY as commands are issued to, and "
3453 "carried out by, the child process."
3454 msgstr ""
3455
3456 # type: textblock
3457 #: ../src/guestfs.pod:1792
3458 msgid ""
3459 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3460 "asynchronously at any time (eg. due to some internal error), and that causes "
3461 "the state to transition back to CONFIG."
3462 msgstr ""
3463
3464 # type: textblock
3465 #: ../src/guestfs.pod:1796
3466 msgid ""
3467 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3468 "issued when in the CONFIG state."
3469 msgstr ""
3470
3471 # type: textblock
3472 #: ../src/guestfs.pod:1799
3473 msgid ""
3474 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3475 "L</guestfs_launch> blocks until the child process is READY to accept "
3476 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3477 "moves the state from CONFIG to LAUNCHING while it is running."
3478 msgstr ""
3479
3480 # type: textblock
3481 #: ../src/guestfs.pod:1805
3482 msgid ""
3483 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3484 "state.  These API calls block waiting for the command to be carried out "
3485 "(ie. the state to transition to BUSY and then back to READY).  There are no "
3486 "non-blocking versions, and no way to issue more than one command per handle "
3487 "at the same time."
3488 msgstr ""
3489
3490 # type: textblock
3491 #: ../src/guestfs.pod:1811
3492 msgid ""
3493 "Finally, the child process sends asynchronous messages back to the main "
3494 "program, such as kernel log messages.  You can register a callback to "
3495 "receive these messages."
3496 msgstr ""
3497
3498 # type: =head1
3499 #: ../src/guestfs.pod:1815
3500 msgid "INTERNALS"
3501 msgstr ""
3502
3503 # type: =head2
3504 #: ../src/guestfs.pod:1817
3505 msgid "COMMUNICATION PROTOCOL"
3506 msgstr ""
3507
3508 # type: textblock
3509 #: ../src/guestfs.pod:1819
3510 msgid ""
3511 "Don't rely on using this protocol directly.  This section documents how it "
3512 "currently works, but it may change at any time."
3513 msgstr ""
3514
3515 # type: textblock
3516 #: ../src/guestfs.pod:1822
3517 msgid ""
3518 "The protocol used to talk between the library and the daemon running inside "
3519 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3520 "1014, RFC 1832, RFC 4506)."
3521 msgstr ""
3522
3523 # type: textblock
3524 #: ../src/guestfs.pod:1826
3525 msgid ""
3526 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3527 "this file is automatically generated)."
3528 msgstr ""
3529
3530 # type: textblock
3531 #: ../src/guestfs.pod:1829
3532 msgid ""
3533 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3534 "and C<FileOut> parameters, which are handled with very simple request/reply "
3535 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3536 "parameters, which use the same request and reply messages, but they may also "
3537 "be followed by files sent using a chunked encoding."
3538 msgstr ""
3539
3540 # type: =head3
3541 #: ../src/guestfs.pod:1836
3542 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3543 msgstr ""
3544
3545 # type: textblock
3546 #: ../src/guestfs.pod:1838
3547 msgid "For ordinary functions, the request message is:"
3548 msgstr ""
3549
3550 # type: verbatim
3551 #: ../src/guestfs.pod:1840
3552 #, no-wrap
3553 msgid ""
3554 " total length (header + arguments,\n"
3555 "      but not including the length word itself)\n"
3556 " struct guestfs_message_header (encoded as XDR)\n"
3557 " struct guestfs_<foo>_args (encoded as XDR)\n"
3558 "\n"
3559 msgstr ""
3560
3561 # type: textblock
3562 #: ../src/guestfs.pod:1845
3563 msgid ""
3564 "The total length field allows the daemon to allocate a fixed size buffer "
3565 "into which it slurps the rest of the message.  As a result, the total length "
3566 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3567 "effective size of any request is limited to somewhere under this size."
3568 msgstr ""
3569
3570 # type: textblock
3571 #: ../src/guestfs.pod:1851
3572 msgid ""
3573 "Note also that many functions don't take any arguments, in which case the "
3574 "C<guestfs_I<foo>_args> is completely omitted."
3575 msgstr ""
3576
3577 # type: textblock
3578 #: ../src/guestfs.pod:1854
3579 msgid ""
3580 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3581 "receiver knows what type of args structure to expect, or none at all."
3582 msgstr ""
3583
3584 # type: textblock
3585 #: ../src/guestfs.pod:1858
3586 msgid "The reply message for ordinary functions is:"
3587 msgstr ""
3588
3589 # type: verbatim
3590 #: ../src/guestfs.pod:1860
3591 #, no-wrap
3592 msgid ""
3593 " total length (header + ret,\n"
3594 "      but not including the length word itself)\n"
3595 " struct guestfs_message_header (encoded as XDR)\n"
3596 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3597 "\n"
3598 msgstr ""
3599
3600 # type: textblock
3601 #: ../src/guestfs.pod:1865
3602 msgid ""
3603 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3604 "functions that return no formal return values."
3605 msgstr ""
3606
3607 # type: textblock
3608 #: ../src/guestfs.pod:1868
3609 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3610 msgstr ""
3611
3612 # type: textblock
3613 #: ../src/guestfs.pod:1871
3614 msgid ""
3615 "In the case of an error, a flag is set in the header, and the reply message "
3616 "is slightly changed:"
3617 msgstr ""
3618
3619 # type: verbatim
3620 #: ../src/guestfs.pod:1874
3621 #, no-wrap
3622 msgid ""
3623 " total length (header + error,\n"
3624 "      but not including the length word itself)\n"
3625 " struct guestfs_message_header (encoded as XDR)\n"
3626 " struct guestfs_message_error (encoded as XDR)\n"
3627 "\n"
3628 msgstr ""
3629
3630 # type: textblock
3631 #: ../src/guestfs.pod:1879
3632 msgid ""
3633 "The C<guestfs_message_error> structure contains the error message as a "
3634 "string."
3635 msgstr ""
3636
3637 # type: =head3
3638 #: ../src/guestfs.pod:1882
3639 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3640 msgstr ""
3641
3642 # type: textblock
3643 #: ../src/guestfs.pod:1884
3644 msgid ""
3645 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3646 "The normal request message is sent (see above).  However this is followed by "
3647 "a sequence of file chunks."
3648 msgstr ""
3649
3650 # type: verbatim
3651 #: ../src/guestfs.pod:1888
3652 #, no-wrap
3653 msgid ""
3654 " total length (header + arguments,\n"
3655 "      but not including the length word itself,\n"
3656 "      and not including the chunks)\n"
3657 " struct guestfs_message_header (encoded as XDR)\n"
3658 " struct guestfs_<foo>_args (encoded as XDR)\n"
3659 " sequence of chunks for FileIn param #0\n"
3660 " sequence of chunks for FileIn param #1 etc.\n"
3661 "\n"
3662 msgstr ""
3663
3664 # type: textblock
3665 #: ../src/guestfs.pod:1896
3666 msgid "The \"sequence of chunks\" is:"
3667 msgstr ""
3668
3669 # type: verbatim
3670 #: ../src/guestfs.pod:1898
3671 #, no-wrap
3672 msgid ""
3673 " length of chunk (not including length word itself)\n"
3674 " struct guestfs_chunk (encoded as XDR)\n"
3675 " length of chunk\n"
3676 " struct guestfs_chunk (encoded as XDR)\n"
3677 "   ...\n"
3678 " length of chunk\n"
3679 " struct guestfs_chunk (with data.data_len == 0)\n"
3680 "\n"
3681 msgstr ""
3682
3683 # type: textblock
3684 #: ../src/guestfs.pod:1906
3685 msgid ""
3686 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3687 "is set in the final chunk to indicate either successful completion or early "
3688 "cancellation."
3689 msgstr ""
3690
3691 # type: textblock
3692 #: ../src/guestfs.pod:1910
3693 msgid ""
3694 "At time of writing there are no functions that have more than one FileIn "
3695 "parameter.  However this is (theoretically) supported, by sending the "
3696 "sequence of chunks for each FileIn parameter one after another (from left to "
3697 "right)."
3698 msgstr ""
3699
3700 # type: textblock
3701 #: ../src/guestfs.pod:1915
3702 msgid ""
3703 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3704 "transfer.  The library does this by sending a chunk with a special flag set "
3705 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3706 "RPC, does I<not> send any reply, and goes back to reading the next request."
3707 msgstr ""
3708
3709 # type: textblock
3710 #: ../src/guestfs.pod:1921
3711 msgid ""
3712 "The daemon may also cancel.  It does this by writing a special word "
3713 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3714 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3715 "cancel chunk).  The special word is chosen so that even if cancellation "
3716 "happens right at the end of the transfer (after the library has finished "
3717 "writing and has started listening for the reply), the \"spurious\" cancel "
3718 "flag will not be confused with the reply message."
3719 msgstr ""
3720
3721 # type: textblock
3722 #: ../src/guestfs.pod:1930
3723 msgid ""
3724 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3725 "limit), and also files where the size is not known in advance (eg. from "
3726 "pipes or sockets).  However the chunks are rather small "
3727 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3728 "to keep much in memory."
3729 msgstr ""
3730
3731 # type: =head3
3732 #: ../src/guestfs.pod:1936
3733 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3734 msgstr ""
3735
3736 # type: textblock
3737 #: ../src/guestfs.pod:1938
3738 msgid ""
3739 "The protocol for FileOut parameters is exactly the same as for FileIn "
3740 "parameters, but with the roles of daemon and library reversed."
3741 msgstr ""
3742
3743 # type: verbatim
3744 #: ../src/guestfs.pod:1941
3745 #, no-wrap
3746 msgid ""
3747 " total length (header + ret,\n"
3748 "      but not including the length word itself,\n"
3749 "      and not including the chunks)\n"
3750 " struct guestfs_message_header (encoded as XDR)\n"
3751 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3752 " sequence of chunks for FileOut param #0\n"
3753 " sequence of chunks for FileOut param #1 etc.\n"
3754 "\n"
3755 msgstr ""
3756
3757 # type: =head3
3758 #: ../src/guestfs.pod:1949
3759 msgid "INITIAL MESSAGE"
3760 msgstr ""
3761
3762 # type: textblock
3763 #: ../src/guestfs.pod:1951
3764 msgid ""
3765 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3766 "which indicates that the guest and daemon is alive.  This is what "
3767 "L</guestfs_launch> waits for."
3768 msgstr ""
3769
3770 # type: =head3
3771 #: ../src/guestfs.pod:1955
3772 msgid "PROGRESS NOTIFICATION MESSAGES"
3773 msgstr ""
3774
3775 # type: textblock
3776 #: ../src/guestfs.pod:1957
3777 msgid ""
3778 "The daemon may send progress notification messages at any time.  These are "
3779 "distinguished by the normal length word being replaced by "
3780 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3781 msgstr ""
3782
3783 # type: textblock
3784 #: ../src/guestfs.pod:1961
3785 msgid ""
3786 "The library turns them into progress callbacks (see "
3787 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3788 "discards them if not."
3789 msgstr ""
3790
3791 # type: textblock
3792 #: ../src/guestfs.pod:1965
3793 msgid ""
3794 "The daemon self-limits the frequency of progress messages it sends (see "
3795 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3796 "messages."
3797 msgstr ""
3798
3799 # type: =head1
3800 #: ../src/guestfs.pod:1969
3801 msgid "LIBGUESTFS VERSION NUMBERS"
3802 msgstr ""
3803
3804 # type: textblock
3805 #: ../src/guestfs.pod:1971
3806 msgid ""
3807 "Since April 2010, libguestfs has started to make separate development and "
3808 "stable releases, along with corresponding branches in our git repository.  "
3809 "These separate releases can be identified by version number:"
3810 msgstr ""
3811
3812 # type: verbatim
3813 #: ../src/guestfs.pod:1976
3814 #, no-wrap
3815 msgid ""
3816 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3817 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3818 "       |\n"
3819 "       v\n"
3820 " 1  .  3  .  5\n"
3821 " ^           ^\n"
3822 " |           |\n"
3823 " |           `-------- sub-version\n"
3824 " |\n"
3825 " `------ always '1' because we don't change the ABI\n"
3826 "\n"
3827 msgstr ""
3828
3829 # type: textblock
3830 #: ../src/guestfs.pod:1987
3831 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3832 msgstr ""
3833
3834 # type: textblock
3835 #: ../src/guestfs.pod:1989
3836 msgid ""
3837 "As time passes we cherry pick fixes from the development branch and backport "
3838 "those into the stable branch, the effect being that the stable branch should "
3839 "get more stable and less buggy over time.  So the stable releases are ideal "
3840 "for people who don't need new features but would just like the software to "
3841 "work."
3842 msgstr ""
3843
3844 # type: textblock
3845 #: ../src/guestfs.pod:1995
3846 msgid "Our criteria for backporting changes are:"
3847 msgstr ""
3848
3849 # type: textblock
3850 #: ../src/guestfs.pod:2001
3851 msgid ""
3852 "Documentation changes which don't affect any code are backported unless the "
3853 "documentation refers to a future feature which is not in stable."
3854 msgstr ""
3855
3856 # type: textblock
3857 #: ../src/guestfs.pod:2007
3858 msgid ""
3859 "Bug fixes which are not controversial, fix obvious problems, and have been "
3860 "well tested are backported."
3861 msgstr ""
3862
3863 # type: textblock
3864 #: ../src/guestfs.pod:2012
3865 msgid ""
3866 "Simple rearrangements of code which shouldn't affect how it works get "
3867 "backported.  This is so that the code in the two branches doesn't get too "
3868 "far out of step, allowing us to backport future fixes more easily."
3869 msgstr ""
3870
3871 # type: textblock
3872 #: ../src/guestfs.pod:2018
3873 msgid ""
3874 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3875 "exceptional case: the new feature is required in order to implement an "
3876 "important bug fix."
3877 msgstr ""
3878
3879 # type: textblock
3880 #: ../src/guestfs.pod:2024
3881 msgid ""
3882 "A new stable branch starts when we think the new features in development are "
3883 "substantial and compelling enough over the current stable branch to warrant "
3884 "it.  When that happens we create new stable and development versions 1.N.0 "
3885 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3886 "stable at this point, but by backporting fixes from development, that branch "
3887 "will stabilize over time."
3888 msgstr ""
3889
3890 # type: =head1
3891 #: ../src/guestfs.pod:2032 ../fish/guestfish.pod:915 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3892 msgid "ENVIRONMENT VARIABLES"
3893 msgstr ""
3894
3895 # type: =item
3896 #: ../src/guestfs.pod:2036 ../fish/guestfish.pod:941
3897 msgid "LIBGUESTFS_APPEND"
3898 msgstr ""
3899
3900 # type: textblock
3901 #: ../src/guestfs.pod:2038 ../fish/guestfish.pod:943
3902 msgid "Pass additional options to the guest kernel."
3903 msgstr ""
3904
3905 # type: =item
3906 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:945
3907 msgid "LIBGUESTFS_DEBUG"
3908 msgstr ""
3909
3910 # type: textblock
3911 #: ../src/guestfs.pod:2042
3912 msgid ""
3913 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3914 "effect as calling C<guestfs_set_verbose (g, 1)>."
3915 msgstr ""
3916
3917 # type: =item
3918 #: ../src/guestfs.pod:2045 ../fish/guestfish.pod:950
3919 msgid "LIBGUESTFS_MEMSIZE"
3920 msgstr ""
3921
3922 # type: textblock
3923 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:952
3924 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3925 msgstr ""
3926
3927 # type: verbatim
3928 #: ../src/guestfs.pod:2050 ../fish/guestfish.pod:955
3929 #, no-wrap
3930 msgid ""
3931 " LIBGUESTFS_MEMSIZE=700\n"
3932 "\n"
3933 msgstr ""
3934
3935 # type: =item
3936 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:957
3937 msgid "LIBGUESTFS_PATH"
3938 msgstr ""
3939
3940 # type: textblock
3941 #: ../src/guestfs.pod:2054
3942 msgid ""
3943 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3944 "the discussion of paths in section PATH above."
3945 msgstr ""
3946
3947 # type: =item
3948 #: ../src/guestfs.pod:2057 ../fish/guestfish.pod:962
3949 msgid "LIBGUESTFS_QEMU"
3950 msgstr ""
3951
3952 # type: textblock
3953 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:964
3954 msgid ""
3955 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3956 "which was found at compile time by the configure script is used."
3957 msgstr ""
3958
3959 # type: textblock
3960 #: ../src/guestfs.pod:2063
3961 msgid "See also L</QEMU WRAPPERS> above."
3962 msgstr ""
3963
3964 # type: =item
3965 #: ../src/guestfs.pod:2065 ../fish/guestfish.pod:968
3966 msgid "LIBGUESTFS_TRACE"
3967 msgstr ""
3968
3969 # type: textblock
3970 #: ../src/guestfs.pod:2067
3971 msgid ""
3972 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3973 "effect as calling C<guestfs_set_trace (g, 1)>."
3974 msgstr ""
3975
3976 # type: =item
3977 #: ../src/guestfs.pod:2070 ../fish/guestfish.pod:977
3978 msgid "TMPDIR"
3979 msgstr ""
3980
3981 # type: textblock
3982 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:979
3983 msgid "Location of temporary directory, defaults to C</tmp>."
3984 msgstr ""
3985
3986 # type: textblock
3987 #: ../src/guestfs.pod:2074 ../fish/guestfish.pod:981
3988 msgid ""
3989 "If libguestfs was compiled to use the supermin appliance then the real "
3990 "appliance is cached in this directory, shared between all handles belonging "
3991 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
3992 "use in case C</tmp> is not large enough."
3993 msgstr ""
3994
3995 # type: =head1
3996 #: ../src/guestfs.pod:2082 ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:484 ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189 ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:257
3997 msgid "SEE ALSO"
3998 msgstr ""
3999
4000 # type: textblock
4001 #: ../src/guestfs.pod:2084
4002 msgid ""
4003 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
4004 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
4005 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
4006 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
4007 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
4008 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4009 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4010 msgstr ""
4011
4012 # type: textblock
4013 #: ../src/guestfs.pod:2107
4014 msgid ""
4015 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
4016 "L<lvm(8)>, L<disktype(1)>."
4017 msgstr ""
4018
4019 # type: =head1
4020 #: ../src/guestfs.pod:2114 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
4021 msgid "BUGS"
4022 msgstr ""
4023
4024 # type: textblock
4025 #: ../src/guestfs.pod:2116
4026 msgid "To get a list of bugs against libguestfs use this link:"
4027 msgstr ""
4028
4029 # type: textblock
4030 #: ../src/guestfs.pod:2118
4031 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
4032 msgstr ""
4033
4034 # type: textblock
4035 #: ../src/guestfs.pod:2120
4036 msgid "To report a new bug against libguestfs use this link:"
4037 msgstr ""
4038
4039 # type: textblock
4040 #: ../src/guestfs.pod:2122
4041 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
4042 msgstr ""
4043
4044 # type: textblock
4045 #: ../src/guestfs.pod:2124
4046 msgid "When reporting a bug, please check:"
4047 msgstr ""
4048
4049 # type: textblock
4050 #: ../src/guestfs.pod:2130
4051 msgid "That the bug hasn't been reported already."
4052 msgstr ""
4053
4054 # type: textblock
4055 #: ../src/guestfs.pod:2134
4056 msgid "That you are testing a recent version."
4057 msgstr ""
4058
4059 # type: textblock
4060 #: ../src/guestfs.pod:2138
4061 msgid "Describe the bug accurately, and give a way to reproduce it."
4062 msgstr ""
4063
4064 # type: textblock
4065 #: ../src/guestfs.pod:2142
4066 msgid ""
4067 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4068 "bug report."
4069 msgstr ""
4070
4071 # type: =head1
4072 #: ../src/guestfs.pod:2147 ../fish/guestfish.pod:1058 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4073 msgid "AUTHORS"
4074 msgstr ""
4075
4076 # type: textblock
4077 #: ../src/guestfs.pod:2149 ../fish/guestfish.pod:1060 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4078 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4079 msgstr ""
4080
4081 # type: =head1
4082 #: ../src/guestfs.pod:2151 ../fish/guestfish.pod:1062 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248 ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:514 ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:296 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:273
4083 msgid "COPYRIGHT"
4084 msgstr ""
4085
4086 # type: textblock
4087 #: ../src/guestfs.pod:2153 ../fish/guestfish.pod:1064 ../fuse/guestmount.pod:250
4088 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4089 msgstr ""
4090
4091 # type: textblock
4092 #: ../src/guestfs.pod:2156
4093 msgid ""
4094 "This library is free software; you can redistribute it and/or modify it "
4095 "under the terms of the GNU Lesser General Public License as published by the "
4096 "Free Software Foundation; either version 2 of the License, or (at your "
4097 "option) any later version."
4098 msgstr ""
4099
4100 # type: textblock
4101 #: ../src/guestfs.pod:2161
4102 msgid ""
4103 "This library is distributed in the hope that it will be useful, but WITHOUT "
4104 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4105 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4106 "for more details."
4107 msgstr ""
4108
4109 # type: textblock
4110 #: ../src/guestfs.pod:2166
4111 msgid ""
4112 "You should have received a copy of the GNU Lesser General Public License "
4113 "along with this library; if not, write to the Free Software Foundation, "
4114 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4115 msgstr ""
4116
4117 # type: =head2
4118 #: ../src/guestfs-actions.pod:1
4119 msgid "guestfs_add_cdrom"
4120 msgstr ""
4121
4122 # type: verbatim
4123 #: ../src/guestfs-actions.pod:3
4124 #, no-wrap
4125 msgid ""
4126 " int\n"
4127 " guestfs_add_cdrom (guestfs_h *g,\n"
4128 "                    const char *filename);\n"
4129 "\n"
4130 msgstr ""
4131
4132 # type: textblock
4133 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4134 msgid "This function adds a virtual CD-ROM disk image to the guest."
4135 msgstr ""
4136
4137 # type: textblock
4138 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4139 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4140 msgstr ""
4141
4142 # type: textblock
4143 #: ../src/guestfs-actions.pod:17
4144 msgid ""
4145 "This call checks for the existence of C<filename>.  This stops you from "
4146 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4147 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4148 "instead."
4149 msgstr ""
4150
4151 # type: textblock
4152 #: ../src/guestfs-actions.pod:24
4153 msgid ""
4154 "If you just want to add an ISO file (often you use this as an efficient way "
4155 "to transfer large files into the guest), then you should probably use "
4156 "C<guestfs_add_drive_ro> instead."
4157 msgstr ""
4158
4159 # type: textblock
4160 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:128 ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:226 ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430 ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535 ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781 ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:990 ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1326 ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1466 ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:2215 ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3229 ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3368 ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3446 ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3538 ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3578 ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3633 ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:3706 ../src/guestfs-actions.pod:3718 ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3798 ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928 ../src/guestfs-actions.pod:3941 ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4028 ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4058 ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4104 ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4204 ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4242 ../src/guestfs-actions.pod:4254 ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:4299 ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4384 ../src/guestfs-actions.pod:4398 ../src/guestfs-actions.pod:4415 ../src/guestfs-actions.pod:4464 ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4578 ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4769 ../src/guestfs-actions.pod:4791 ../src/guestfs-actions.pod:4809 ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4924 ../src/guestfs-actions.pod:4937 ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5311 ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5341 ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5381 ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:5418 ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:5478 ../src/guestfs-actions.pod:5499 ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5535 ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5587 ../src/guestfs-actions.pod:5606 ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:5645 ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:5765 ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:5994 ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6019 ../src/guestfs-actions.pod:6032 ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6067 ../src/guestfs-actions.pod:6080 ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6184 ../src/guestfs-actions.pod:6200 ../src/guestfs-actions.pod:6216 ../src/guestfs-actions.pod:6233 ../src/guestfs-actions.pod:6246 ../src/guestfs-actions.pod:6266 ../src/guestfs-actions.pod:6302 ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6357 ../src/guestfs-actions.pod:6370 ../src/guestfs-actions.pod:6388 ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:6448 ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6654 ../src/guestfs-actions.pod:6667 ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6799 ../src/guestfs-actions.pod:6825 ../src/guestfs-actions.pod:6891 ../src/guestfs-actions.pod:6910 ../src/guestfs-actions.pod:6939
4161 msgid "This function returns 0 on success or -1 on error."
4162 msgstr ""
4163
4164 # type: textblock
4165 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:242 ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4166 msgid ""
4167 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4168 "instead."
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:245 ../src/guestfs-actions.pod:266 ../src/guestfs-actions.pod:1437 ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:6833 ../src/guestfs-actions.pod:7002 ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:156 ../fish/guestfish-actions.pod:170 ../fish/guestfish-actions.pod:951 ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1322 ../fish/guestfish-actions.pod:4549 ../fish/guestfish-actions.pod:4646
4173 msgid ""
4174 "Deprecated functions will not be removed from the API, but the fact that "
4175 "they are deprecated indicates that there are problems with correct use of "
4176 "these functions."
4177 msgstr ""
4178
4179 # type: textblock
4180 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:130 ../src/guestfs-actions.pod:1094 ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1993 ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3211 ../src/guestfs-actions.pod:4351 ../src/guestfs-actions.pod:5420 ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:6110 ../src/guestfs-actions.pod:6235 ../src/guestfs-actions.pod:6747
4181 msgid "(Added in 0.3)"
4182 msgstr ""
4183
4184 # type: =head2
4185 #: ../src/guestfs-actions.pod:41
4186 msgid "guestfs_add_domain"
4187 msgstr ""
4188
4189 # type: verbatim
4190 #: ../src/guestfs-actions.pod:43
4191 #, no-wrap
4192 msgid ""
4193 " int\n"
4194 " guestfs_add_domain (guestfs_h *g,\n"
4195 "                     const char *dom,\n"
4196 "                     ...);\n"
4197 "\n"
4198 msgstr ""
4199
4200 # type: textblock
4201 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139
4202 msgid ""
4203 "You may supply a list of optional arguments to this call.  Use zero or more "
4204 "of the following pairs of parameters, and terminate the list with C<-1> on "
4205 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4206 msgstr ""
4207
4208 # type: verbatim
4209 #: ../src/guestfs-actions.pod:53
4210 #, no-wrap
4211 msgid ""
4212 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4213 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4214 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4215 "\n"
4216 msgstr ""
4217
4218 # type: textblock
4219 #: ../src/guestfs-actions.pod:57
4220 msgid ""
4221 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4222 "It works by connecting to libvirt, requesting the domain and domain XML from "
4223 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4224 "one."
4225 msgstr ""
4226
4227 # type: textblock
4228 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4229 msgid ""
4230 "The number of disks added is returned.  This operation is atomic: if an "
4231 "error is returned, then no disks are added."
4232 msgstr ""
4233
4234 # type: textblock
4235 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4236 msgid ""
4237 "This function does some minimal checks to make sure the libvirt domain is "
4238 "not running (unless C<readonly> is true).  In a future version we will try "
4239 "to acquire the libvirt lock on each disk."
4240 msgstr ""
4241
4242 # type: textblock
4243 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4244 msgid ""
4245 "Disks must be accessible locally.  This often means that adding disks from a "
4246 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4247 "unless those disks are accessible via the same device path locally too."
4248 msgstr ""
4249
4250 # type: textblock
4251 #: ../src/guestfs-actions.pod:74
4252 msgid ""
4253 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4254 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4255 "default libvirt URI (or one set through an environment variable, see the "
4256 "libvirt documentation for full details).  If you are using the C API "
4257 "directly then it is more flexible to create the libvirt connection object "
4258 "yourself, get the domain object, and call C<guestfs_add_libvirt_dom>."
4259 msgstr ""
4260
4261 # type: textblock
4262 #: ../src/guestfs-actions.pod:82
4263 msgid ""
4264 "The other optional parameters are passed directly through to "
4265 "C<guestfs_add_drive_opts>."
4266 msgstr ""
4267
4268 # type: textblock
4269 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2005 ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2655 ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4615 ../src/guestfs-actions.pod:5021 ../src/guestfs-actions.pod:5047 ../src/guestfs-actions.pod:6343 ../src/guestfs-actions.pod:6758 ../src/guestfs-actions.pod:6771 ../src/guestfs-actions.pod:6784
4270 msgid "On error this function returns -1."
4271 msgstr ""
4272
4273 # type: textblock
4274 #: ../src/guestfs-actions.pod:87
4275 msgid "(Added in 1.7.4)"
4276 msgstr ""
4277
4278 # type: =head2
4279 #: ../src/guestfs-actions.pod:89
4280 msgid "guestfs_add_domain_va"
4281 msgstr ""
4282
4283 # type: verbatim
4284 #: ../src/guestfs-actions.pod:91
4285 #, no-wrap
4286 msgid ""
4287 " int\n"
4288 " guestfs_add_domain_va (guestfs_h *g,\n"
4289 "                        const char *dom,\n"
4290 "                        va_list args);\n"
4291 "\n"
4292 msgstr ""
4293
4294 # type: textblock
4295 #: ../src/guestfs-actions.pod:96
4296 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4297 msgstr ""
4298
4299 # type: textblock
4300 #: ../src/guestfs-actions.pod:98 ../src/guestfs-actions.pod:109 ../src/guestfs-actions.pod:202 ../src/guestfs-actions.pod:213
4301 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4302 msgstr ""
4303
4304 # type: =head2
4305 #: ../src/guestfs-actions.pod:100
4306 msgid "guestfs_add_domain_argv"
4307 msgstr ""
4308
4309 # type: verbatim
4310 #: ../src/guestfs-actions.pod:102
4311 #, no-wrap
4312 msgid ""
4313 " int\n"
4314 " guestfs_add_domain_argv (guestfs_h *g,\n"
4315 "                          const char *dom,\n"
4316 "                          const struct guestfs_add_domain_argv *optargs);\n"
4317 "\n"
4318 msgstr ""
4319
4320 # type: textblock
4321 #: ../src/guestfs-actions.pod:107
4322 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4323 msgstr ""
4324
4325 # type: =head2
4326 #: ../src/guestfs-actions.pod:111
4327 msgid "guestfs_add_drive"
4328 msgstr ""
4329
4330 # type: verbatim
4331 #: ../src/guestfs-actions.pod:113
4332 #, no-wrap
4333 msgid ""
4334 " int\n"
4335 " guestfs_add_drive (guestfs_h *g,\n"
4336 "                    const char *filename);\n"
4337 "\n"
4338 msgstr ""
4339
4340 # type: textblock
4341 #: ../src/guestfs-actions.pod:117
4342 msgid ""
4343 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4344 "optional parameters, so the disk is added writable, with the format being "
4345 "detected automatically."
4346 msgstr ""
4347
4348 # type: textblock
4349 #: ../src/guestfs-actions.pod:121
4350 msgid ""
4351 "Automatic detection of the format opens you up to a potential security hole "
4352 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4353 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4354 "you should think about replacing calls to this function with calls to "
4355 "C<guestfs_add_drive_opts>, and specifying the format."
4356 msgstr ""
4357
4358 # type: =head2
4359 #: ../src/guestfs-actions.pod:132
4360 msgid "guestfs_add_drive_opts"
4361 msgstr ""
4362
4363 # type: verbatim
4364 #: ../src/guestfs-actions.pod:134
4365 #, no-wrap
4366 msgid ""
4367 " int\n"
4368 " guestfs_add_drive_opts (guestfs_h *g,\n"
4369 "                         const char *filename,\n"
4370 "                         ...);\n"
4371 "\n"
4372 msgstr ""
4373
4374 # type: verbatim
4375 #: ../src/guestfs-actions.pod:144
4376 #, no-wrap
4377 msgid ""
4378 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4379 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4380 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4381 "\n"
4382 msgstr ""
4383
4384 # type: textblock
4385 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4386 msgid ""
4387 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4388 "The first time you call this function, the disk appears as C</dev/sda>, the "
4389 "second time as C</dev/sdb>, and so on."
4390 msgstr ""
4391
4392 # type: textblock
4393 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4394 msgid ""
4395 "You don't necessarily need to be root when using libguestfs.  However you "
4396 "obviously do need sufficient permissions to access the filename for whatever "
4397 "operations you want to perform (ie. read access if you just want to read the "
4398 "image or write access if you want to modify the image)."
4399 msgstr ""
4400
4401 # type: textblock
4402 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4403 msgid "This call checks that C<filename> exists."
4404 msgstr ""
4405
4406 # type: textblock
4407 #: ../src/guestfs-actions.pod:161 ../fish/guestfish-actions.pod:105
4408 msgid "The optional arguments are:"
4409 msgstr ""
4410
4411 # type: =item
4412 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4413 msgid "C<readonly>"
4414 msgstr ""
4415
4416 # type: textblock
4417 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4418 msgid ""
4419 "If true then the image is treated as read-only.  Writes are still allowed, "
4420 "but they are stored in a temporary snapshot overlay which is discarded at "
4421 "the end.  The disk that you add is not modified."
4422 msgstr ""
4423
4424 # type: =item
4425 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4426 msgid "C<format>"
4427 msgstr ""
4428
4429 # type: textblock
4430 #: ../src/guestfs-actions.pod:173
4431 msgid ""
4432 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4433 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4434 "Possible formats include C<raw> and C<qcow2>."
4435 msgstr ""
4436
4437 # type: textblock
4438 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4439 msgid ""
4440 "Automatic detection of the format opens you up to a potential security hole "
4441 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4442 "RHBZ#642934.  Specifying the format closes this security hole."
4443 msgstr ""
4444
4445 # type: =item
4446 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4447 msgid "C<iface>"
4448 msgstr ""
4449
4450 # type: textblock
4451 #: ../src/guestfs-actions.pod:184
4452 msgid ""
4453 "This rarely-used option lets you emulate the behaviour of the deprecated "
4454 "C<guestfs_add_drive_with_if> call (q.v.)"
4455 msgstr ""
4456
4457 # type: textblock
4458 #: ../src/guestfs-actions.pod:191
4459 msgid "(Added in 1.5.23)"
4460 msgstr ""
4461
4462 # type: =head2
4463 #: ../src/guestfs-actions.pod:193
4464 msgid "guestfs_add_drive_opts_va"
4465 msgstr ""
4466
4467 # type: verbatim
4468 #: ../src/guestfs-actions.pod:195
4469 #, no-wrap
4470 msgid ""
4471 " int\n"
4472 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4473 "                            const char *filename,\n"
4474 "                            va_list args);\n"
4475 "\n"
4476 msgstr ""
4477
4478 # type: textblock
4479 #: ../src/guestfs-actions.pod:200
4480 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4481 msgstr ""
4482
4483 # type: =head2
4484 #: ../src/guestfs-actions.pod:204
4485 msgid "guestfs_add_drive_opts_argv"
4486 msgstr ""
4487
4488 # type: verbatim
4489 #: ../src/guestfs-actions.pod:206
4490 #, no-wrap
4491 msgid ""
4492 " int\n"
4493 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4494 "                              const char *filename,\n"
4495 "                              const struct guestfs_add_drive_opts_argv "
4496 "*optargs);\n"
4497 "\n"
4498 msgstr ""
4499
4500 # type: textblock
4501 #: ../src/guestfs-actions.pod:211
4502 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4503 msgstr ""
4504
4505 # type: =head2
4506 #: ../src/guestfs-actions.pod:215
4507 msgid "guestfs_add_drive_ro"
4508 msgstr ""
4509
4510 # type: verbatim
4511 #: ../src/guestfs-actions.pod:217
4512 #, no-wrap
4513 msgid ""
4514 " int\n"
4515 " guestfs_add_drive_ro (guestfs_h *g,\n"
4516 "                       const char *filename);\n"
4517 "\n"
4518 msgstr ""
4519
4520 # type: textblock
4521 #: ../src/guestfs-actions.pod:221
4522 msgid ""
4523 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4524 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4525 "disk is added read-only, with the format being detected automatically."
4526 msgstr ""
4527
4528 # type: textblock
4529 #: ../src/guestfs-actions.pod:228
4530 msgid "(Added in 1.0.38)"
4531 msgstr ""
4532
4533 # type: =head2
4534 #: ../src/guestfs-actions.pod:230
4535 msgid "guestfs_add_drive_ro_with_if"
4536 msgstr ""
4537
4538 # type: verbatim
4539 #: ../src/guestfs-actions.pod:232
4540 #, no-wrap
4541 msgid ""
4542 " int\n"
4543 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4544 "                               const char *filename,\n"
4545 "                               const char *iface);\n"
4546 "\n"
4547 msgstr ""
4548
4549 # type: textblock
4550 #: ../src/guestfs-actions.pod:237
4551 msgid ""
4552 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4553 "QEMU interface emulation to use at run time."
4554 msgstr ""
4555
4556 # type: textblock
4557 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270 ../src/guestfs-actions.pod:2305
4558 msgid "(Added in 1.0.84)"
4559 msgstr ""
4560
4561 # type: =head2
4562 #: ../src/guestfs-actions.pod:251
4563 msgid "guestfs_add_drive_with_if"
4564 msgstr ""
4565
4566 # type: verbatim
4567 #: ../src/guestfs-actions.pod:253
4568 #, no-wrap
4569 msgid ""
4570 " int\n"
4571 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4572 "                            const char *filename,\n"
4573 "                            const char *iface);\n"
4574 "\n"
4575 msgstr ""
4576
4577 # type: textblock
4578 #: ../src/guestfs-actions.pod:258
4579 msgid ""
4580 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4581 "QEMU interface emulation to use at run time."
4582 msgstr ""
4583
4584 # type: =head2
4585 #: ../src/guestfs-actions.pod:272
4586 msgid "guestfs_aug_clear"
4587 msgstr ""
4588
4589 # type: verbatim
4590 #: ../src/guestfs-actions.pod:274
4591 #, no-wrap
4592 msgid ""
4593 " int\n"
4594 " guestfs_aug_clear (guestfs_h *g,\n"
4595 "                    const char *augpath);\n"
4596 "\n"
4597 msgstr ""
4598
4599 # type: textblock
4600 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4601 msgid ""
4602 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4603 "L<augtool(1)> C<clear> command."
4604 msgstr ""
4605
4606 # type: textblock
4607 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4608 msgid "(Added in 1.3.4)"
4609 msgstr ""
4610
4611 # type: =head2
4612 #: ../src/guestfs-actions.pod:285
4613 msgid "guestfs_aug_close"
4614 msgstr ""
4615
4616 # type: verbatim
4617 #: ../src/guestfs-actions.pod:287
4618 #, no-wrap
4619 msgid ""
4620 " int\n"
4621 " guestfs_aug_close (guestfs_h *g);\n"
4622 "\n"
4623 msgstr ""
4624
4625 # type: textblock
4626 #: ../src/guestfs-actions.pod:290
4627 msgid ""
4628 "Close the current Augeas handle and free up any resources used by it.  After "
4629 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4630 "any other Augeas functions."
4631 msgstr ""
4632
4633 # type: textblock
4634 #: ../src/guestfs-actions.pod:297 ../src/guestfs-actions.pod:322 ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:354 ../src/guestfs-actions.pod:412 ../src/guestfs-actions.pod:432 ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:477 ../src/guestfs-actions.pod:491 ../src/guestfs-actions.pod:505 ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:537 ../src/guestfs-actions.pod:5098
4635 msgid "(Added in 0.7)"
4636 msgstr ""
4637
4638 # type: =head2
4639 #: ../src/guestfs-actions.pod:299
4640 msgid "guestfs_aug_defnode"
4641 msgstr ""
4642
4643 # type: verbatim
4644 #: ../src/guestfs-actions.pod:301
4645 #, no-wrap
4646 msgid ""
4647 " struct guestfs_int_bool *\n"
4648 " guestfs_aug_defnode (guestfs_h *g,\n"
4649 "                      const char *name,\n"
4650 "                      const char *expr,\n"
4651 "                      const char *val);\n"
4652 "\n"
4653 msgstr ""
4654
4655 # type: textblock
4656 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4657 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4658 msgstr ""
4659
4660 # type: textblock
4661 #: ../src/guestfs-actions.pod:310
4662 msgid ""
4663 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4664 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4665 "containing that single node."
4666 msgstr ""
4667
4668 # type: textblock
4669 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4670 msgid ""
4671 "On success this returns a pair containing the number of nodes in the "
4672 "nodeset, and a boolean flag if a node was created."
4673 msgstr ""
4674
4675 # type: textblock
4676 #: ../src/guestfs-actions.pod:318
4677 msgid ""
4678 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4679 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4680 msgstr ""
4681
4682 # type: =head2
4683 #: ../src/guestfs-actions.pod:324
4684 msgid "guestfs_aug_defvar"
4685 msgstr ""
4686
4687 # type: verbatim
4688 #: ../src/guestfs-actions.pod:326
4689 #, no-wrap
4690 msgid ""
4691 " int\n"
4692 " guestfs_aug_defvar (guestfs_h *g,\n"
4693 "                     const char *name,\n"
4694 "                     const char *expr);\n"
4695 "\n"
4696 msgstr ""
4697
4698 # type: textblock
4699 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
4700 msgid ""
4701 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4702 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4703 msgstr ""
4704
4705 # type: textblock
4706 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
4707 msgid ""
4708 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4709 "evaluates to something which is not a nodeset."
4710 msgstr ""
4711
4712 # type: =head2
4713 #: ../src/guestfs-actions.pod:342
4714 msgid "guestfs_aug_get"
4715 msgstr ""
4716
4717 # type: verbatim
4718 #: ../src/guestfs-actions.pod:344
4719 #, no-wrap
4720 msgid ""
4721 " char *\n"
4722 " guestfs_aug_get (guestfs_h *g,\n"
4723 "                  const char *augpath);\n"
4724 "\n"
4725 msgstr ""
4726
4727 # type: textblock
4728 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
4729 msgid ""
4730 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4731 "node, the C<value> is returned."
4732 msgstr ""
4733
4734 # type: textblock
4735 #: ../src/guestfs-actions.pod:351 ../src/guestfs-actions.pod:851 ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1048 ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1343 ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1646 ../src/guestfs-actions.pod:1809 ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:1938 ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2270 ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2558 ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2771 ../src/guestfs-actions.pod:2833 ../src/guestfs-actions.pod:2856 ../src/guestfs-actions.pod:3340 ../src/guestfs-actions.pod:3690 ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:3970 ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4826 ../src/guestfs-actions.pod:4996 ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5223 ../src/guestfs-actions.pod:5786 ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:5843 ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6996
4736 msgid ""
4737 "This function returns a string, or NULL on error.  I<The caller must free "
4738 "the returned string after use>."
4739 msgstr ""
4740
4741 # type: =head2
4742 #: ../src/guestfs-actions.pod:356
4743 msgid "guestfs_aug_init"
4744 msgstr ""
4745
4746 # type: verbatim
4747 #: ../src/guestfs-actions.pod:358
4748 #, no-wrap
4749 msgid ""
4750 " int\n"
4751 " guestfs_aug_init (guestfs_h *g,\n"
4752 "                   const char *root,\n"
4753 "                   int flags);\n"
4754 "\n"
4755 msgstr ""
4756
4757 # type: textblock
4758 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
4759 msgid ""
4760 "Create a new Augeas handle for editing configuration files.  If there was "
4761 "any previous Augeas handle associated with this guestfs session, then it is "
4762 "closed."
4763 msgstr ""
4764
4765 # type: textblock
4766 #: ../src/guestfs-actions.pod:367
4767 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4768 msgstr ""
4769
4770 # type: textblock
4771 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
4772 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4773 msgstr ""
4774
4775 # type: textblock
4776 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
4777 msgid ""
4778 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4779 "logical I<or> of the following integers:"
4780 msgstr ""
4781
4782 # type: =item
4783 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
4784 msgid "C<AUG_SAVE_BACKUP> = 1"
4785 msgstr ""
4786
4787 # type: textblock
4788 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
4789 msgid "Keep the original file with a C<.augsave> extension."
4790 msgstr ""
4791
4792 # type: =item
4793 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
4794 msgid "C<AUG_SAVE_NEWFILE> = 2"
4795 msgstr ""
4796
4797 # type: textblock
4798 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
4799 msgid ""
4800 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4801 "original.  Overrides C<AUG_SAVE_BACKUP>."
4802 msgstr ""
4803
4804 # type: =item
4805 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
4806 msgid "C<AUG_TYPE_CHECK> = 4"
4807 msgstr ""
4808
4809 # type: textblock
4810 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
4811 msgid "Typecheck lenses (can be expensive)."
4812 msgstr ""
4813
4814 # type: =item
4815 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
4816 msgid "C<AUG_NO_STDINC> = 8"
4817 msgstr ""
4818
4819 # type: textblock
4820 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
4821 msgid "Do not use standard load path for modules."
4822 msgstr ""
4823
4824 # type: =item
4825 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
4826 msgid "C<AUG_SAVE_NOOP> = 16"
4827 msgstr ""
4828
4829 # type: textblock
4830 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
4831 msgid "Make save a no-op, just record what would have been changed."
4832 msgstr ""
4833
4834 # type: =item
4835 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
4836 msgid "C<AUG_NO_LOAD> = 32"
4837 msgstr ""
4838
4839 # type: textblock
4840 #: ../src/guestfs-actions.pod:402
4841 msgid "Do not load the tree in C<guestfs_aug_init>."
4842 msgstr ""
4843
4844 # type: textblock
4845 #: ../src/guestfs-actions.pod:406
4846 msgid "To close the handle, you can call C<guestfs_aug_close>."
4847 msgstr ""
4848
4849 # type: textblock
4850 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
4851 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4852 msgstr ""
4853
4854 # type: =head2
4855 #: ../src/guestfs-actions.pod:414
4856 msgid "guestfs_aug_insert"
4857 msgstr ""
4858
4859 # type: verbatim
4860 #: ../src/guestfs-actions.pod:416
4861 #, no-wrap
4862 msgid ""
4863 " int\n"
4864 " guestfs_aug_insert (guestfs_h *g,\n"
4865 "                     const char *augpath,\n"
4866 "                     const char *label,\n"
4867 "                     int before);\n"
4868 "\n"
4869 msgstr ""
4870
4871 # type: textblock
4872 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
4873 msgid ""
4874 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4875 "or after C<path> (depending on the boolean flag C<before>)."
4876 msgstr ""
4877
4878 # type: textblock
4879 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
4880 msgid ""
4881 "C<path> must match exactly one existing node in the tree, and C<label> must "
4882 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4883 msgstr ""
4884
4885 # type: =head2
4886 #: ../src/guestfs-actions.pod:434
4887 msgid "guestfs_aug_load"
4888 msgstr ""
4889
4890 # type: verbatim
4891 #: ../src/guestfs-actions.pod:436
4892 #, no-wrap
4893 msgid ""
4894 " int\n"
4895 " guestfs_aug_load (guestfs_h *g);\n"
4896 "\n"
4897 msgstr ""
4898
4899 # type: textblock
4900 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
4901 msgid "Load files into the tree."
4902 msgstr ""
4903
4904 # type: textblock
4905 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
4906 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4907 msgstr ""
4908
4909 # type: =head2
4910 #: ../src/guestfs-actions.pod:448
4911 msgid "guestfs_aug_ls"
4912 msgstr ""
4913
4914 # type: verbatim
4915 #: ../src/guestfs-actions.pod:450
4916 #, no-wrap
4917 msgid ""
4918 " char **\n"
4919 " guestfs_aug_ls (guestfs_h *g,\n"
4920 "                 const char *augpath);\n"
4921 "\n"
4922 msgstr ""
4923
4924 # type: textblock
4925 #: ../src/guestfs-actions.pod:454
4926 msgid ""
4927 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4928 "sorting the resulting nodes into alphabetical order."
4929 msgstr ""
4930
4931 # type: textblock
4932 #: ../src/guestfs-actions.pod:457 ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:1067 ../src/guestfs-actions.pod:1358 ../src/guestfs-actions.pod:1377 ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1499 ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:2150 ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:2252 ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2372 ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:3005 ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:4968 ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5920 ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:6121 ../src/guestfs-actions.pod:6145 ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6637 ../src/guestfs-actions.pod:6684 ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6868 ../src/guestfs-actions.pod:6953 ../src/guestfs-actions.pod:6972 ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7037
4933 msgid ""
4934 "This function returns a NULL-terminated array of strings (like "
4935 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4936 "strings and the array after use>."
4937 msgstr ""
4938
4939 # type: textblock
4940 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:992 ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:1415 ../src/guestfs-actions.pod:3083 ../src/guestfs-actions.pod:3114 ../src/guestfs-actions.pod:3673 ../src/guestfs-actions.pod:3723 ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3943 ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4452 ../src/guestfs-actions.pod:4909 ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5301 ../src/guestfs-actions.pod:5313 ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6372 ../src/guestfs-actions.pod:6601 ../src/guestfs-actions.pod:6804 ../src/guestfs-actions.pod:6837
4941 msgid "(Added in 0.8)"
4942 msgstr ""
4943
4944 # type: =head2
4945 #: ../src/guestfs-actions.pod:463
4946 msgid "guestfs_aug_match"
4947 msgstr ""
4948
4949 # type: verbatim
4950 #: ../src/guestfs-actions.pod:465
4951 #, no-wrap
4952 msgid ""
4953 " char **\n"
4954 " guestfs_aug_match (guestfs_h *g,\n"
4955 "                    const char *augpath);\n"
4956 "\n"
4957 msgstr ""
4958
4959 # type: textblock
4960 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
4961 msgid ""
4962 "Returns a list of paths which match the path expression C<path>.  The "
4963 "returned paths are sufficiently qualified so that they match exactly one "
4964 "node in the current tree."
4965 msgstr ""
4966
4967 # type: =head2
4968 #: ../src/guestfs-actions.pod:479
4969 msgid "guestfs_aug_mv"
4970 msgstr ""
4971
4972 # type: verbatim
4973 #: ../src/guestfs-actions.pod:481
4974 #, no-wrap
4975 msgid ""
4976 " int\n"
4977 " guestfs_aug_mv (guestfs_h *g,\n"
4978 "                 const char *src,\n"
4979 "                 const char *dest);\n"
4980 "\n"
4981 msgstr ""
4982
4983 # type: textblock
4984 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
4985 msgid ""
4986 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4987 "C<dest> is overwritten if it exists."
4988 msgstr ""
4989
4990 # type: =head2
4991 #: ../src/guestfs-actions.pod:493
4992 msgid "guestfs_aug_rm"
4993 msgstr ""
4994
4995 # type: verbatim
4996 #: ../src/guestfs-actions.pod:495
4997 #, no-wrap
4998 msgid ""
4999 " int\n"
5000 " guestfs_aug_rm (guestfs_h *g,\n"
5001 "                 const char *augpath);\n"
5002 "\n"
5003 msgstr ""
5004
5005 # type: textblock
5006 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5007 msgid "Remove C<path> and all of its children."
5008 msgstr ""
5009
5010 # type: textblock
5011 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5012 msgid "On success this returns the number of entries which were removed."
5013 msgstr ""
5014
5015 # type: =head2
5016 #: ../src/guestfs-actions.pod:507
5017 msgid "guestfs_aug_save"
5018 msgstr ""
5019
5020 # type: verbatim
5021 #: ../src/guestfs-actions.pod:509
5022 #, no-wrap
5023 msgid ""
5024 " int\n"
5025 " guestfs_aug_save (guestfs_h *g);\n"
5026 "\n"
5027 msgstr ""
5028
5029 # type: textblock
5030 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5031 msgid "This writes all pending changes to disk."
5032 msgstr ""
5033
5034 # type: textblock
5035 #: ../src/guestfs-actions.pod:514
5036 msgid ""
5037 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5038 "are saved."
5039 msgstr ""
5040
5041 # type: =head2
5042 #: ../src/guestfs-actions.pod:521
5043 msgid "guestfs_aug_set"
5044 msgstr ""
5045
5046 # type: verbatim
5047 #: ../src/guestfs-actions.pod:523
5048 #, no-wrap
5049 msgid ""
5050 " int\n"
5051 " guestfs_aug_set (guestfs_h *g,\n"
5052 "                  const char *augpath,\n"
5053 "                  const char *val);\n"
5054 "\n"
5055 msgstr ""
5056
5057 # type: textblock
5058 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5059 msgid "Set the value associated with C<path> to C<val>."
5060 msgstr ""
5061
5062 # type: textblock
5063 #: ../src/guestfs-actions.pod:530
5064 msgid ""
5065 "In the Augeas API, it is possible to clear a node by setting the value to "
5066 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5067 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5068 msgstr ""
5069
5070 # type: =head2
5071 #: ../src/guestfs-actions.pod:539
5072 msgid "guestfs_available"
5073 msgstr ""
5074
5075 # type: verbatim
5076 #: ../src/guestfs-actions.pod:541
5077 #, no-wrap
5078 msgid ""
5079 " int\n"
5080 " guestfs_available (guestfs_h *g,\n"
5081 "                    char *const *groups);\n"
5082 "\n"
5083 msgstr ""
5084
5085 # type: textblock
5086 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5087 msgid ""
5088 "This command is used to check the availability of some groups of "
5089 "functionality in the appliance, which not all builds of the libguestfs "
5090 "appliance will be able to provide."
5091 msgstr ""
5092
5093 # type: textblock
5094 #: ../src/guestfs-actions.pod:549
5095 msgid ""
5096 "The libguestfs groups, and the functions that those groups correspond to, "
5097 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5098 "runtime by calling C<guestfs_available_all_groups>."
5099 msgstr ""
5100
5101 # type: textblock
5102 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5103 msgid ""
5104 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
5105 "\"augeas\"]> would check for the availability of the Linux inotify functions "
5106 "and Augeas (configuration file editing) functions."
5107 msgstr ""
5108
5109 # type: textblock
5110 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5111 msgid "The command returns no error if I<all> requested groups are available."
5112 msgstr ""
5113
5114 # type: textblock
5115 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5116 msgid ""
5117 "It fails with an error if one or more of the requested groups is unavailable "
5118 "in the appliance."
5119 msgstr ""
5120
5121 # type: textblock
5122 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5123 msgid ""
5124 "If an unknown group name is included in the list of groups then an error is "
5125 "always returned."
5126 msgstr ""
5127
5128 # type: textblock
5129 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5130 msgid "I<Notes:>"
5131 msgstr ""
5132
5133 # type: textblock
5134 #: ../src/guestfs-actions.pod:573
5135 msgid "You must call C<guestfs_launch> before calling this function."
5136 msgstr ""
5137
5138 # type: textblock
5139 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5140 msgid ""
5141 "The reason is because we don't know what groups are supported by the "
5142 "appliance/daemon until it is running and can be queried."
5143 msgstr ""
5144
5145 # type: textblock
5146 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5147 msgid ""
5148 "If a group of functions is available, this does not necessarily mean that "
5149 "they will work.  You still have to check for errors when calling individual "
5150 "API functions even if they are available."
5151 msgstr ""
5152
5153 # type: textblock
5154 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5155 msgid ""
5156 "It is usually the job of distro packagers to build complete functionality "
5157 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5158 "with all requirements satisfied, will support everything."
5159 msgstr ""
5160
5161 # type: textblock
5162 #: ../src/guestfs-actions.pod:595
5163 msgid ""
5164 "This call was added in version C<1.0.80>.  In previous versions of "
5165 "libguestfs all you could do would be to speculatively execute a command to "
5166 "find out if the daemon implemented it.  See also C<guestfs_version>."
5167 msgstr ""
5168
5169 # type: textblock
5170 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5171 msgid "(Added in 1.0.80)"
5172 msgstr ""
5173
5174 # type: =head2
5175 #: ../src/guestfs-actions.pod:606
5176 msgid "guestfs_available_all_groups"
5177 msgstr ""
5178
5179 # type: verbatim
5180 #: ../src/guestfs-actions.pod:608
5181 #, no-wrap
5182 msgid ""
5183 " char **\n"
5184 " guestfs_available_all_groups (guestfs_h *g);\n"
5185 "\n"
5186 msgstr ""
5187
5188 # type: textblock
5189 #: ../src/guestfs-actions.pod:611
5190 msgid ""
5191 "This command returns a list of all optional groups that this daemon knows "
5192 "about.  Note this returns both supported and unsupported groups.  To find "
5193 "out which ones the daemon can actually support you have to call "
5194 "C<guestfs_available> on each member of the returned list."
5195 msgstr ""
5196
5197 # type: textblock
5198 #: ../src/guestfs-actions.pod:617
5199 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5200 msgstr ""
5201
5202 # type: textblock
5203 #: ../src/guestfs-actions.pod:623
5204 msgid "(Added in 1.3.15)"
5205 msgstr ""
5206
5207 # type: =head2
5208 #: ../src/guestfs-actions.pod:625
5209 msgid "guestfs_base64_in"
5210 msgstr ""
5211
5212 # type: verbatim
5213 #: ../src/guestfs-actions.pod:627
5214 #, no-wrap
5215 msgid ""
5216 " int\n"
5217 " guestfs_base64_in (guestfs_h *g,\n"
5218 "                    const char *base64file,\n"
5219 "                    const char *filename);\n"
5220 "\n"
5221 msgstr ""
5222
5223 # type: textblock
5224 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5225 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5226 msgstr ""
5227
5228 # type: textblock
5229 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5230 msgid "(Added in 1.3.5)"
5231 msgstr ""
5232
5233 # type: =head2
5234 #: ../src/guestfs-actions.pod:639
5235 msgid "guestfs_base64_out"
5236 msgstr ""
5237
5238 # type: verbatim
5239 #: ../src/guestfs-actions.pod:641
5240 #, no-wrap
5241 msgid ""
5242 " int\n"
5243 " guestfs_base64_out (guestfs_h *g,\n"
5244 "                     const char *filename,\n"
5245 "                     const char *base64file);\n"
5246 "\n"
5247 msgstr ""
5248
5249 # type: textblock
5250 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5251 msgid ""
5252 "This command downloads the contents of C<filename>, writing it out to local "
5253 "file C<base64file> encoded as base64."
5254 msgstr ""
5255
5256 # type: =head2
5257 #: ../src/guestfs-actions.pod:653
5258 msgid "guestfs_blockdev_flushbufs"
5259 msgstr ""
5260
5261 # type: verbatim
5262 #: ../src/guestfs-actions.pod:655
5263 #, no-wrap
5264 msgid ""
5265 " int\n"
5266 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5267 "                             const char *device);\n"
5268 "\n"
5269 msgstr ""
5270
5271 # type: textblock
5272 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5273 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5274 msgstr ""
5275
5276 # type: textblock
5277 #: ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779 ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807 ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454 ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498 ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5278 msgid "This uses the L<blockdev(8)> command."
5279 msgstr ""
5280
5281 # type: textblock
5282 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:714 ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:765 ../src/guestfs-actions.pod:783 ../src/guestfs-actions.pod:797 ../src/guestfs-actions.pod:811
5283 msgid "(Added in 0.9.3)"
5284 msgstr ""
5285
5286 # type: =head2
5287 #: ../src/guestfs-actions.pod:668
5288 msgid "guestfs_blockdev_getbsz"
5289 msgstr ""
5290
5291 # type: verbatim
5292 #: ../src/guestfs-actions.pod:670
5293 #, no-wrap
5294 msgid ""
5295 " int\n"
5296 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5297 "                          const char *device);\n"
5298 "\n"
5299 msgstr ""
5300
5301 # type: textblock
5302 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5303 msgid "This returns the block size of a device."
5304 msgstr ""
5305
5306 # type: textblock
5307 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776 ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5308 msgid ""
5309 "(Note this is different from both I<size in blocks> and I<filesystem block "
5310 "size>)."
5311 msgstr ""
5312
5313 # type: =head2
5314 #: ../src/guestfs-actions.pod:685
5315 msgid "guestfs_blockdev_getro"
5316 msgstr ""
5317
5318 # type: verbatim
5319 #: ../src/guestfs-actions.pod:687
5320 #, no-wrap
5321 msgid ""
5322 " int\n"
5323 " guestfs_blockdev_getro (guestfs_h *g,\n"
5324 "                         const char *device);\n"
5325 "\n"
5326 msgstr ""
5327
5328 # type: textblock
5329 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5330 msgid ""
5331 "Returns a boolean indicating if the block device is read-only (true if "
5332 "read-only, false if not)."
5333 msgstr ""
5334
5335 # type: textblock
5336 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:3022 ../src/guestfs-actions.pod:3036 ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3081 ../src/guestfs-actions.pod:3096 ../src/guestfs-actions.pod:3112 ../src/guestfs-actions.pod:3126 ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3153 ../src/guestfs-actions.pod:3168 ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:4597
5337 msgid "This function returns a C truth value on success or -1 on error."
5338 msgstr ""
5339
5340 # type: =head2
5341 #: ../src/guestfs-actions.pod:700
5342 msgid "guestfs_blockdev_getsize64"
5343 msgstr ""
5344
5345 # type: verbatim
5346 #: ../src/guestfs-actions.pod:702
5347 #, no-wrap
5348 msgid ""
5349 " int64_t\n"
5350 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5351 "                             const char *device);\n"
5352 "\n"
5353 msgstr ""
5354
5355 # type: textblock
5356 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5357 msgid "This returns the size of the device in bytes."
5358 msgstr ""
5359
5360 # type: textblock
5361 #: ../src/guestfs-actions.pod:708
5362 msgid "See also C<guestfs_blockdev_getsz>."
5363 msgstr ""
5364
5365 # type: =head2
5366 #: ../src/guestfs-actions.pod:716
5367 msgid "guestfs_blockdev_getss"
5368 msgstr ""
5369
5370 # type: verbatim
5371 #: ../src/guestfs-actions.pod:718
5372 #, no-wrap
5373 msgid ""
5374 " int\n"
5375 " guestfs_blockdev_getss (guestfs_h *g,\n"
5376 "                         const char *device);\n"
5377 "\n"
5378 msgstr ""
5379
5380 # type: textblock
5381 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5382 msgid ""
5383 "This returns the size of sectors on a block device.  Usually 512, but can be "
5384 "larger for modern devices."
5385 msgstr ""
5386
5387 # type: textblock
5388 #: ../src/guestfs-actions.pod:725
5389 msgid ""
5390 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5391 "that)."
5392 msgstr ""
5393
5394 # type: =head2
5395 #: ../src/guestfs-actions.pod:734
5396 msgid "guestfs_blockdev_getsz"
5397 msgstr ""
5398
5399 # type: verbatim
5400 #: ../src/guestfs-actions.pod:736
5401 #, no-wrap
5402 msgid ""
5403 " int64_t\n"
5404 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5405 "                         const char *device);\n"
5406 "\n"
5407 msgstr ""
5408
5409 # type: textblock
5410 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5411 msgid ""
5412 "This returns the size of the device in units of 512-byte sectors (even if "
5413 "the sectorsize isn't 512 bytes ... weird)."
5414 msgstr ""
5415
5416 # type: textblock
5417 #: ../src/guestfs-actions.pod:743
5418 msgid ""
5419 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5420 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5421 msgstr ""
5422
5423 # type: =head2
5424 #: ../src/guestfs-actions.pod:753
5425 msgid "guestfs_blockdev_rereadpt"
5426 msgstr ""
5427
5428 # type: verbatim
5429 #: ../src/guestfs-actions.pod:755
5430 #, no-wrap
5431 msgid ""
5432 " int\n"
5433 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5434 "                            const char *device);\n"
5435 "\n"
5436 msgstr ""
5437
5438 # type: textblock
5439 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5440 msgid "Reread the partition table on C<device>."
5441 msgstr ""
5442
5443 # type: =head2
5444 #: ../src/guestfs-actions.pod:767
5445 msgid "guestfs_blockdev_setbsz"
5446 msgstr ""
5447
5448 # type: verbatim
5449 #: ../src/guestfs-actions.pod:769
5450 #, no-wrap
5451 msgid ""
5452 " int\n"
5453 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5454 "                          const char *device,\n"
5455 "                          int blocksize);\n"
5456 "\n"
5457 msgstr ""
5458
5459 # type: textblock
5460 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5461 msgid "This sets the block size of a device."
5462 msgstr ""
5463
5464 # type: =head2
5465 #: ../src/guestfs-actions.pod:785
5466 msgid "guestfs_blockdev_setro"
5467 msgstr ""
5468
5469 # type: verbatim
5470 #: ../src/guestfs-actions.pod:787
5471 #, no-wrap
5472 msgid ""
5473 " int\n"
5474 " guestfs_blockdev_setro (guestfs_h *g,\n"
5475 "                         const char *device);\n"
5476 "\n"
5477 msgstr ""
5478
5479 # type: textblock
5480 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5481 msgid "Sets the block device named C<device> to read-only."
5482 msgstr ""
5483
5484 # type: =head2
5485 #: ../src/guestfs-actions.pod:799
5486 msgid "guestfs_blockdev_setrw"
5487 msgstr ""
5488
5489 # type: verbatim
5490 #: ../src/guestfs-actions.pod:801
5491 #, no-wrap
5492 msgid ""
5493 " int\n"
5494 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5495 "                         const char *device);\n"
5496 "\n"
5497 msgstr ""
5498
5499 # type: textblock
5500 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5501 msgid "Sets the block device named C<device> to read-write."
5502 msgstr ""
5503
5504 # type: =head2
5505 #: ../src/guestfs-actions.pod:813
5506 msgid "guestfs_case_sensitive_path"
5507 msgstr ""
5508
5509 # type: verbatim
5510 #: ../src/guestfs-actions.pod:815
5511 #, no-wrap
5512 msgid ""
5513 " char *\n"
5514 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5515 "                              const char *path);\n"
5516 "\n"
5517 msgstr ""
5518
5519 # type: textblock
5520 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5521 msgid ""
5522 "This can be used to resolve case insensitive paths on a filesystem which is "
5523 "case sensitive.  The use case is to resolve paths which you have read from "
5524 "Windows configuration files or the Windows Registry, to the true path."
5525 msgstr ""
5526
5527 # type: textblock
5528 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5529 msgid ""
5530 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5531 "(and probably others), which is that although the underlying filesystem is "
5532 "case-insensitive, the driver exports the filesystem to Linux as "
5533 "case-sensitive."
5534 msgstr ""
5535
5536 # type: textblock
5537 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5538 msgid ""
5539 "One consequence of this is that special directories such as C<c:\\windows> "
5540 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5541 "precise details of how they were created.  In Windows itself this would not "
5542 "be a problem."
5543 msgstr ""
5544
5545 # type: textblock
5546 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5547 msgid ""
5548 "Bug or feature? You decide: "
5549 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5550 msgstr ""
5551
5552 # type: textblock
5553 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5554 msgid ""
5555 "This function resolves the true case of each element in the path and returns "
5556 "the case-sensitive path."
5557 msgstr ""
5558
5559 # type: textblock
5560 #: ../src/guestfs-actions.pod:841
5561 msgid ""
5562 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5563 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5564 "how the directories were originally created under Windows)."
5565 msgstr ""
5566
5567 # type: textblock
5568 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5569 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5570 msgstr ""
5571
5572 # type: textblock
5573 #: ../src/guestfs-actions.pod:849
5574 msgid "See also C<guestfs_realpath>."
5575 msgstr ""
5576
5577 # type: textblock
5578 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6529
5579 msgid "(Added in 1.0.75)"
5580 msgstr ""
5581
5582 # type: =head2
5583 #: ../src/guestfs-actions.pod:856
5584 msgid "guestfs_cat"
5585 msgstr ""
5586
5587 # type: verbatim
5588 #: ../src/guestfs-actions.pod:858
5589 #, no-wrap
5590 msgid ""
5591 " char *\n"
5592 " guestfs_cat (guestfs_h *g,\n"
5593 "              const char *path);\n"
5594 "\n"
5595 msgstr ""
5596
5597 # type: textblock
5598 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5084 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5599 msgid "Return the contents of the file named C<path>."
5600 msgstr ""
5601
5602 # type: textblock
5603 #: ../src/guestfs-actions.pod:864
5604 msgid ""
5605 "Note that this function cannot correctly handle binary files (specifically, "
5606 "files containing C<\\0> character which is treated as end of string).  For "
5607 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5608 "functions which have a more complex interface."
5609 msgstr ""
5610
5611 # type: textblock
5612 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1051 ../src/guestfs-actions.pod:1071 ../src/guestfs-actions.pod:1362 ../src/guestfs-actions.pod:1381 ../src/guestfs-actions.pod:1484 ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:2170 ../src/guestfs-actions.pod:2189 ../src/guestfs-actions.pod:2232 ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2273 ../src/guestfs-actions.pod:2302 ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:5023 ../src/guestfs-actions.pod:5049 ../src/guestfs-actions.pod:5073 ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:5979 ../src/guestfs-actions.pod:6125 ../src/guestfs-actions.pod:6149 ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6853 ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6957 ../src/guestfs-actions.pod:6976 ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7041 ../fish/guestfish-actions.pod:582 ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729 ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1462 ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:1500 ../fish/guestfish-actions.pod:1515 ../fish/guestfish-actions.pod:1525 ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:3263 ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3354 ../fish/guestfish-actions.pod:3371 ../fish/guestfish-actions.pod:3386 ../fish/guestfish-actions.pod:3969 ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4100 ../fish/guestfish-actions.pod:4115 ../fish/guestfish-actions.pod:4525 ../fish/guestfish-actions.pod:4543 ../fish/guestfish-actions.pod:4560 ../fish/guestfish-actions.pod:4570 ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4628 ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4667
5613 msgid ""
5614 "Because of the message protocol, there is a transfer limit of somewhere "
5615 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5616 msgstr ""
5617
5618 # type: textblock
5619 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:3264 ../src/guestfs-actions.pod:3326 ../src/guestfs-actions.pod:3343 ../src/guestfs-actions.pod:3431 ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:4972 ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:6688 ../src/guestfs-actions.pod:6702
5620 msgid "(Added in 0.4)"
5621 msgstr ""
5622
5623 # type: =head2
5624 #: ../src/guestfs-actions.pod:877
5625 msgid "guestfs_checksum"
5626 msgstr ""
5627
5628 # type: verbatim
5629 #: ../src/guestfs-actions.pod:879
5630 #, no-wrap
5631 msgid ""
5632 " char *\n"
5633 " guestfs_checksum (guestfs_h *g,\n"
5634 "                   const char *csumtype,\n"
5635 "                   const char *path);\n"
5636 "\n"
5637 msgstr ""
5638
5639 # type: textblock
5640 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
5641 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5642 msgstr ""
5643
5644 # type: textblock
5645 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
5646 msgid ""
5647 "The type of checksum to compute is given by the C<csumtype> parameter which "
5648 "must have one of the following values:"
5649 msgstr ""
5650
5651 # type: =item
5652 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
5653 msgid "C<crc>"
5654 msgstr ""
5655
5656 # type: textblock
5657 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
5658 msgid ""
5659 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5660 "C<cksum> command."
5661 msgstr ""
5662
5663 # type: =item
5664 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
5665 msgid "C<md5>"
5666 msgstr ""
5667
5668 # type: textblock
5669 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
5670 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5671 msgstr ""
5672
5673 # type: =item
5674 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
5675 msgid "C<sha1>"
5676 msgstr ""
5677
5678 # type: textblock
5679 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
5680 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5681 msgstr ""
5682
5683 # type: =item
5684 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
5685 msgid "C<sha224>"
5686 msgstr ""
5687
5688 # type: textblock
5689 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
5690 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5691 msgstr ""
5692
5693 # type: =item
5694 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
5695 msgid "C<sha256>"
5696 msgstr ""
5697
5698 # type: textblock
5699 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
5700 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5701 msgstr ""
5702
5703 # type: =item
5704 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
5705 msgid "C<sha384>"
5706 msgstr ""
5707
5708 # type: textblock
5709 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
5710 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5711 msgstr ""
5712
5713 # type: =item
5714 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
5715 msgid "C<sha512>"
5716 msgstr ""
5717
5718 # type: textblock
5719 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
5720 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5721 msgstr ""
5722
5723 # type: textblock
5724 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
5725 msgid "The checksum is returned as a printable string."
5726 msgstr ""
5727
5728 # type: textblock
5729 #: ../src/guestfs-actions.pod:925
5730 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5731 msgstr ""
5732
5733 # type: textblock
5734 #: ../src/guestfs-actions.pod:927
5735 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5736 msgstr ""
5737
5738 # type: textblock
5739 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:1240 ../src/guestfs-actions.pod:2062 ../src/guestfs-actions.pod:3038 ../src/guestfs-actions.pod:3067 ../src/guestfs-actions.pod:3128 ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:6390
5740 msgid "(Added in 1.0.2)"
5741 msgstr ""
5742
5743 # type: =head2
5744 #: ../src/guestfs-actions.pod:934
5745 msgid "guestfs_checksum_device"
5746 msgstr ""
5747
5748 # type: verbatim
5749 #: ../src/guestfs-actions.pod:936
5750 #, no-wrap
5751 msgid ""
5752 " char *\n"
5753 " guestfs_checksum_device (guestfs_h *g,\n"
5754 "                          const char *csumtype,\n"
5755 "                          const char *device);\n"
5756 "\n"
5757 msgstr ""
5758
5759 # type: textblock
5760 #: ../src/guestfs-actions.pod:941
5761 msgid ""
5762 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5763 "device named C<device>.  For the types of checksums supported see the "
5764 "C<guestfs_checksum> command."
5765 msgstr ""
5766
5767 # type: textblock
5768 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4599 ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6318 ../src/guestfs-actions.pod:6714
5769 msgid "(Added in 1.3.2)"
5770 msgstr ""
5771
5772 # type: =head2
5773 #: ../src/guestfs-actions.pod:950
5774 msgid "guestfs_checksums_out"
5775 msgstr ""
5776
5777 # type: verbatim
5778 #: ../src/guestfs-actions.pod:952
5779 #, no-wrap
5780 msgid ""
5781 " int\n"
5782 " guestfs_checksums_out (guestfs_h *g,\n"
5783 "                        const char *csumtype,\n"
5784 "                        const char *directory,\n"
5785 "                        const char *sumsfile);\n"
5786 "\n"
5787 msgstr ""
5788
5789 # type: textblock
5790 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
5791 msgid ""
5792 "This command computes the checksums of all regular files in C<directory> and "
5793 "then emits a list of those checksums to the local output file C<sumsfile>."
5794 msgstr ""
5795
5796 # type: textblock
5797 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
5798 msgid ""
5799 "This can be used for verifying the integrity of a virtual machine.  However "
5800 "to be properly secure you should pay attention to the output of the checksum "
5801 "command (it uses the ones from GNU coreutils).  In particular when the "
5802 "filename is not printable, coreutils uses a special backslash syntax.  For "
5803 "more information, see the GNU coreutils info file."
5804 msgstr ""
5805
5806 # type: textblock
5807 #: ../src/guestfs-actions.pod:972
5808 msgid "(Added in 1.3.7)"
5809 msgstr ""
5810
5811 # type: =head2
5812 #: ../src/guestfs-actions.pod:974
5813 msgid "guestfs_chmod"
5814 msgstr ""
5815
5816 # type: verbatim
5817 #: ../src/guestfs-actions.pod:976
5818 #, no-wrap
5819 msgid ""
5820 " int\n"
5821 " guestfs_chmod (guestfs_h *g,\n"
5822 "                int mode,\n"
5823 "                const char *path);\n"
5824 "\n"
5825 msgstr ""
5826
5827 # type: textblock
5828 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
5829 msgid ""
5830 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5831 "supported."
5832 msgstr ""
5833
5834 # type: textblock
5835 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
5836 msgid ""
5837 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5838 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5839 "C<700>."
5840 msgstr ""
5841
5842 # type: textblock
5843 #: ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:4087 ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:4240 ../fish/guestfish-actions.pod:671 ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2838 ../fish/guestfish-actions.pod:2848 ../fish/guestfish-actions.pod:2858
5844 msgid "The mode actually set is affected by the umask."
5845 msgstr ""
5846
5847 # type: =head2
5848 #: ../src/guestfs-actions.pod:994
5849 msgid "guestfs_chown"
5850 msgstr ""
5851
5852 # type: verbatim
5853 #: ../src/guestfs-actions.pod:996
5854 #, no-wrap
5855 msgid ""
5856 " int\n"
5857 " guestfs_chown (guestfs_h *g,\n"
5858 "                int owner,\n"
5859 "                int group,\n"
5860 "                const char *path);\n"
5861 "\n"
5862 msgstr ""
5863
5864 # type: textblock
5865 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
5866 msgid "Change the file owner to C<owner> and group to C<group>."
5867 msgstr ""
5868
5869 # type: textblock
5870 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3225 ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
5871 msgid ""
5872 "Only numeric uid and gid are supported.  If you want to use names, you will "
5873 "need to locate and parse the password file yourself (Augeas support makes "
5874 "this relatively easy)."
5875 msgstr ""
5876
5877 # type: =head2
5878 #: ../src/guestfs-actions.pod:1012
5879 msgid "guestfs_command"
5880 msgstr ""
5881
5882 # type: verbatim
5883 #: ../src/guestfs-actions.pod:1014
5884 #, no-wrap
5885 msgid ""
5886 " char *\n"
5887 " guestfs_command (guestfs_h *g,\n"
5888 "                  char *const *arguments);\n"
5889 "\n"
5890 msgstr ""
5891
5892 # type: textblock
5893 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
5894 msgid ""
5895 "This call runs a command from the guest filesystem.  The filesystem must be "
5896 "mounted, and must contain a compatible operating system (ie. something "
5897 "Linux, with the same or compatible processor architecture)."
5898 msgstr ""
5899
5900 # type: textblock
5901 #: ../src/guestfs-actions.pod:1023
5902 msgid ""
5903 "The single parameter is an argv-style list of arguments.  The first element "
5904 "is the name of the program to run.  Subsequent elements are parameters.  The "
5905 "list must be non-empty (ie. must contain a program name).  Note that the "
5906 "command runs directly, and is I<not> invoked via the shell (see "
5907 "C<guestfs_sh>)."
5908 msgstr ""
5909
5910 # type: textblock
5911 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
5912 msgid "The return value is anything printed to I<stdout> by the command."
5913 msgstr ""
5914
5915 # type: textblock
5916 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
5917 msgid ""
5918 "If the command returns a non-zero exit status, then this function returns an "
5919 "error message.  The error message string is the content of I<stderr> from "
5920 "the command."
5921 msgstr ""
5922
5923 # type: textblock
5924 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
5925 msgid ""
5926 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5927 "C</bin>.  If you require a program from another location, you should provide "
5928 "the full path in the first parameter."
5929 msgstr ""
5930
5931 # type: textblock
5932 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
5933 msgid ""
5934 "Shared libraries and data files required by the program must be available on "
5935 "filesystems which are mounted in the correct places.  It is the caller's "
5936 "responsibility to ensure all filesystems that are needed are mounted at the "
5937 "right locations."
5938 msgstr ""
5939
5940 # type: textblock
5941 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1537
5942 msgid "(Added in 0.9.1)"
5943 msgstr ""
5944
5945 # type: =head2
5946 #: ../src/guestfs-actions.pod:1056
5947 msgid "guestfs_command_lines"
5948 msgstr ""
5949
5950 # type: verbatim
5951 #: ../src/guestfs-actions.pod:1058
5952 #, no-wrap
5953 msgid ""
5954 " char **\n"
5955 " guestfs_command_lines (guestfs_h *g,\n"
5956 "                        char *const *arguments);\n"
5957 "\n"
5958 msgstr ""
5959
5960 # type: textblock
5961 #: ../src/guestfs-actions.pod:1062
5962 msgid ""
5963 "This is the same as C<guestfs_command>, but splits the result into a list of "
5964 "lines."
5965 msgstr ""
5966
5967 # type: textblock
5968 #: ../src/guestfs-actions.pod:1065
5969 msgid "See also: C<guestfs_sh_lines>"
5970 msgstr ""
5971
5972 # type: =head2
5973 #: ../src/guestfs-actions.pod:1076
5974 msgid "guestfs_config"
5975 msgstr ""
5976
5977 # type: verbatim
5978 #: ../src/guestfs-actions.pod:1078
5979 #, no-wrap
5980 msgid ""
5981 " int\n"
5982 " guestfs_config (guestfs_h *g,\n"
5983 "                 const char *qemuparam,\n"
5984 "                 const char *qemuvalue);\n"
5985 "\n"
5986 msgstr ""
5987
5988 # type: textblock
5989 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
5990 msgid ""
5991 "This can be used to add arbitrary qemu command line parameters of the form "
5992 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5993 "setting some parameters which would interfere with parameters that we use."
5994 msgstr ""
5995
5996 # type: textblock
5997 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
5998 msgid "The first character of C<param> string must be a C<-> (dash)."
5999 msgstr ""
6000
6001 # type: textblock
6002 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6003 msgid "C<value> can be NULL."
6004 msgstr ""
6005
6006 # type: =head2
6007 #: ../src/guestfs-actions.pod:1096
6008 msgid "guestfs_copy_size"
6009 msgstr ""
6010
6011 # type: verbatim
6012 #: ../src/guestfs-actions.pod:1098
6013 #, no-wrap
6014 msgid ""
6015 " int\n"
6016 " guestfs_copy_size (guestfs_h *g,\n"
6017 "                    const char *src,\n"
6018 "                    const char *dest,\n"
6019 "                    int64_t size);\n"
6020 "\n"
6021 msgstr ""
6022
6023 # type: textblock
6024 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6025 msgid ""
6026 "This command copies exactly C<size> bytes from one source device or file "
6027 "C<src> to another destination device or file C<dest>."
6028 msgstr ""
6029
6030 # type: textblock
6031 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6032 msgid ""
6033 "Note this will fail if the source is too short or if the destination is not "
6034 "large enough."
6035 msgstr ""
6036
6037 # type: textblock
6038 #: ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1686 ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:6893 ../src/guestfs-actions.pod:6912
6039 msgid ""
6040 "This long-running command can generate progress notification messages so "
6041 "that the caller can display a progress bar or indicator.  To receive these "
6042 "messages, the caller must register a progress callback.  See "
6043 "L<guestfs(3)/guestfs_set_progress_callback>."
6044 msgstr ""
6045
6046 # type: textblock
6047 #: ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:4999 ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:6727
6048 msgid "(Added in 1.0.87)"
6049 msgstr ""
6050
6051 # type: =head2
6052 #: ../src/guestfs-actions.pod:1119
6053 msgid "guestfs_cp"
6054 msgstr ""
6055
6056 # type: verbatim
6057 #: ../src/guestfs-actions.pod:1121
6058 #, no-wrap
6059 msgid ""
6060 " int\n"
6061 " guestfs_cp (guestfs_h *g,\n"
6062 "             const char *src,\n"
6063 "             const char *dest);\n"
6064 "\n"
6065 msgstr ""
6066
6067 # type: textblock
6068 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6069 msgid ""
6070 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6071 "destination filename or destination directory."
6072 msgstr ""
6073
6074 # type: textblock
6075 #: ../src/guestfs-actions.pod:1131 ../src/guestfs-actions.pod:1145 ../src/guestfs-actions.pod:1217 ../src/guestfs-actions.pod:1291 ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4843
6076 msgid "(Added in 1.0.18)"
6077 msgstr ""
6078
6079 # type: =head2
6080 #: ../src/guestfs-actions.pod:1133
6081 msgid "guestfs_cp_a"
6082 msgstr ""
6083
6084 # type: verbatim
6085 #: ../src/guestfs-actions.pod:1135
6086 #, no-wrap
6087 msgid ""
6088 " int\n"
6089 " guestfs_cp_a (guestfs_h *g,\n"
6090 "               const char *src,\n"
6091 "               const char *dest);\n"
6092 "\n"
6093 msgstr ""
6094
6095 # type: textblock
6096 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6097 msgid ""
6098 "This copies a file or directory from C<src> to C<dest> recursively using the "
6099 "C<cp -a> command."
6100 msgstr ""
6101
6102 # type: =head2
6103 #: ../src/guestfs-actions.pod:1147
6104 msgid "guestfs_dd"
6105 msgstr ""
6106
6107 # type: verbatim
6108 #: ../src/guestfs-actions.pod:1149
6109 #, no-wrap
6110 msgid ""
6111 " int\n"
6112 " guestfs_dd (guestfs_h *g,\n"
6113 "             const char *src,\n"
6114 "             const char *dest);\n"
6115 "\n"
6116 msgstr ""
6117
6118 # type: textblock
6119 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6120 msgid ""
6121 "This command copies from one source device or file C<src> to another "
6122 "destination device or file C<dest>.  Normally you would use this to copy to "
6123 "or from a device or partition, for example to duplicate a filesystem."
6124 msgstr ""
6125
6126 # type: textblock
6127 #: ../src/guestfs-actions.pod:1159
6128 msgid ""
6129 "If the destination is a device, it must be as large or larger than the "
6130 "source file or device, otherwise the copy will fail.  This command cannot do "
6131 "partial copies (see C<guestfs_copy_size>)."
6132 msgstr ""
6133
6134 # type: =head2
6135 #: ../src/guestfs-actions.pod:1167
6136 msgid "guestfs_df"
6137 msgstr ""
6138
6139 # type: verbatim
6140 #: ../src/guestfs-actions.pod:1169
6141 #, no-wrap
6142 msgid ""
6143 " char *\n"
6144 " guestfs_df (guestfs_h *g);\n"
6145 "\n"
6146 msgstr ""
6147
6148 # type: textblock
6149 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6150 msgid "This command runs the C<df> command to report disk space used."
6151 msgstr ""
6152
6153 # type: textblock
6154 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191 ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6155 msgid ""
6156 "This command is mostly useful for interactive sessions.  It is I<not> "
6157 "intended that you try to parse the output string.  Use C<statvfs> from "
6158 "programs."
6159 msgstr ""
6160
6161 # type: textblock
6162 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1198 ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:2259 ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6786
6163 msgid "(Added in 1.0.54)"
6164 msgstr ""
6165
6166 # type: =head2
6167 #: ../src/guestfs-actions.pod:1183
6168 msgid "guestfs_df_h"
6169 msgstr ""
6170
6171 # type: verbatim
6172 #: ../src/guestfs-actions.pod:1185
6173 #, no-wrap
6174 msgid ""
6175 " char *\n"
6176 " guestfs_df_h (guestfs_h *g);\n"
6177 "\n"
6178 msgstr ""
6179
6180 # type: textblock
6181 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6182 msgid ""
6183 "This command runs the C<df -h> command to report disk space used in "
6184 "human-readable format."
6185 msgstr ""
6186
6187 # type: =head2
6188 #: ../src/guestfs-actions.pod:1200
6189 msgid "guestfs_dmesg"
6190 msgstr ""
6191
6192 # type: verbatim
6193 #: ../src/guestfs-actions.pod:1202
6194 #, no-wrap
6195 msgid ""
6196 " char *\n"
6197 " guestfs_dmesg (guestfs_h *g);\n"
6198 "\n"
6199 msgstr ""
6200
6201 # type: textblock
6202 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6203 msgid ""
6204 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6205 "This is sometimes useful for extended debugging of problems."
6206 msgstr ""
6207
6208 # type: textblock
6209 #: ../src/guestfs-actions.pod:1209
6210 msgid ""
6211 "Another way to get the same information is to enable verbose messages with "
6212 "C<guestfs_set_verbose> or by setting the environment variable "
6213 "C<LIBGUESTFS_DEBUG=1> before running the program."
6214 msgstr ""
6215
6216 # type: =head2
6217 #: ../src/guestfs-actions.pod:1219
6218 msgid "guestfs_download"
6219 msgstr ""
6220
6221 # type: verbatim
6222 #: ../src/guestfs-actions.pod:1221
6223 #, no-wrap
6224 msgid ""
6225 " int\n"
6226 " guestfs_download (guestfs_h *g,\n"
6227 "                   const char *remotefilename,\n"
6228 "                   const char *filename);\n"
6229 "\n"
6230 msgstr ""
6231
6232 # type: textblock
6233 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6234 msgid ""
6235 "Download file C<remotefilename> and save it as C<filename> on the local "
6236 "machine."
6237 msgstr ""
6238
6239 # type: textblock
6240 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6384 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6241 msgid "C<filename> can also be a named pipe."
6242 msgstr ""
6243
6244 # type: textblock
6245 #: ../src/guestfs-actions.pod:1231
6246 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6247 msgstr ""
6248
6249 # type: =head2
6250 #: ../src/guestfs-actions.pod:1242
6251 msgid "guestfs_download_offset"
6252 msgstr ""
6253
6254 # type: verbatim
6255 #: ../src/guestfs-actions.pod:1244
6256 #, no-wrap
6257 msgid ""
6258 " int\n"
6259 " guestfs_download_offset (guestfs_h *g,\n"
6260 "                          const char *remotefilename,\n"
6261 "                          const char *filename,\n"
6262 "                          int64_t offset,\n"
6263 "                          int64_t size);\n"
6264 "\n"
6265 msgstr ""
6266
6267 # type: textblock
6268 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6269 msgid ""
6270 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6271 "region must be within the file or device)."
6272 msgstr ""
6273
6274 # type: textblock
6275 #: ../src/guestfs-actions.pod:1257
6276 msgid ""
6277 "Note that there is no limit on the amount of data that can be downloaded "
6278 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6279 "full amount unless an error occurs."
6280 msgstr ""
6281
6282 # type: textblock
6283 #: ../src/guestfs-actions.pod:1262
6284 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6285 msgstr ""
6286
6287 # type: textblock
6288 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6419
6289 msgid "(Added in 1.5.17)"
6290 msgstr ""
6291
6292 # type: =head2
6293 #: ../src/guestfs-actions.pod:1273
6294 msgid "guestfs_drop_caches"
6295 msgstr ""
6296
6297 # type: verbatim
6298 #: ../src/guestfs-actions.pod:1275
6299 #, no-wrap
6300 msgid ""
6301 " int\n"
6302 " guestfs_drop_caches (guestfs_h *g,\n"
6303 "                      int whattodrop);\n"
6304 "\n"
6305 msgstr ""
6306
6307 # type: textblock
6308 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6309 msgid ""
6310 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6311 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6312 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6313 msgstr ""
6314
6315 # type: textblock
6316 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6317 msgid "Setting C<whattodrop> to 3 should drop everything."
6318 msgstr ""
6319
6320 # type: textblock
6321 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6322 msgid ""
6323 "This automatically calls L<sync(2)> before the operation, so that the "
6324 "maximum guest memory is freed."
6325 msgstr ""
6326
6327 # type: =head2
6328 #: ../src/guestfs-actions.pod:1293
6329 msgid "guestfs_du"
6330 msgstr ""
6331
6332 # type: verbatim
6333 #: ../src/guestfs-actions.pod:1295
6334 #, no-wrap
6335 msgid ""
6336 " int64_t\n"
6337 " guestfs_du (guestfs_h *g,\n"
6338 "             const char *path);\n"
6339 "\n"
6340 msgstr ""
6341
6342 # type: textblock
6343 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6344 msgid ""
6345 "This command runs the C<du -s> command to estimate file space usage for "
6346 "C<path>."
6347 msgstr ""
6348
6349 # type: textblock
6350 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6351 msgid ""
6352 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6353 "estimate includes the contents of the directory and all subdirectories "
6354 "(recursively)."
6355 msgstr ""
6356
6357 # type: textblock
6358 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6359 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6360 msgstr ""
6361
6362 # type: =head2
6363 #: ../src/guestfs-actions.pod:1313
6364 msgid "guestfs_e2fsck_f"
6365 msgstr ""
6366
6367 # type: verbatim
6368 #: ../src/guestfs-actions.pod:1315
6369 #, no-wrap
6370 msgid ""
6371 " int\n"
6372 " guestfs_e2fsck_f (guestfs_h *g,\n"
6373 "                   const char *device);\n"
6374 "\n"
6375 msgstr ""
6376
6377 # type: textblock
6378 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6379 msgid ""
6380 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6381 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6382 "clean (C<-f>)."
6383 msgstr ""
6384
6385 # type: textblock
6386 #: ../src/guestfs-actions.pod:1323
6387 msgid ""
6388 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6389 "Normally you should use C<guestfs_fsck>."
6390 msgstr ""
6391
6392 # type: textblock
6393 #: ../src/guestfs-actions.pod:1328
6394 msgid "(Added in 1.0.29)"
6395 msgstr ""
6396
6397 # type: =head2
6398 #: ../src/guestfs-actions.pod:1330
6399 msgid "guestfs_echo_daemon"
6400 msgstr ""
6401
6402 # type: verbatim
6403 #: ../src/guestfs-actions.pod:1332
6404 #, no-wrap
6405 msgid ""
6406 " char *\n"
6407 " guestfs_echo_daemon (guestfs_h *g,\n"
6408 "                      char *const *words);\n"
6409 "\n"
6410 msgstr ""
6411
6412 # type: textblock
6413 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6414 msgid ""
6415 "This command concatenates the list of C<words> passed with single spaces "
6416 "between them and returns the resulting string."
6417 msgstr ""
6418
6419 # type: textblock
6420 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6421 msgid "You can use this command to test the connection through to the daemon."
6422 msgstr ""
6423
6424 # type: textblock
6425 #: ../src/guestfs-actions.pod:1341
6426 msgid "See also C<guestfs_ping_daemon>."
6427 msgstr ""
6428
6429 # type: textblock
6430 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5632
6431 msgid "(Added in 1.0.69)"
6432 msgstr ""
6433
6434 # type: =head2
6435 #: ../src/guestfs-actions.pod:1348
6436 msgid "guestfs_egrep"
6437 msgstr ""
6438
6439 # type: verbatim
6440 #: ../src/guestfs-actions.pod:1350
6441 #, no-wrap
6442 msgid ""
6443 " char **\n"
6444 " guestfs_egrep (guestfs_h *g,\n"
6445 "                const char *regex,\n"
6446 "                const char *path);\n"
6447 "\n"
6448 msgstr ""
6449
6450 # type: textblock
6451 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6452 msgid "This calls the external C<egrep> program and returns the matching lines."
6453 msgstr ""
6454
6455 # type: textblock
6456 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1384 ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1487 ../src/guestfs-actions.pod:1506 ../src/guestfs-actions.pod:2173 ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2444 ../src/guestfs-actions.pod:2457 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:3370 ../src/guestfs-actions.pod:3383 ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:4301 ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5996 ../src/guestfs-actions.pod:6008 ../src/guestfs-actions.pod:6021 ../src/guestfs-actions.pod:6034 ../src/guestfs-actions.pod:6056 ../src/guestfs-actions.pod:6069 ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6095 ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6875 ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:7025 ../src/guestfs-actions.pod:7044
6457 msgid "(Added in 1.0.66)"
6458 msgstr ""
6459
6460 # type: =head2
6461 #: ../src/guestfs-actions.pod:1367
6462 msgid "guestfs_egrepi"
6463 msgstr ""
6464
6465 # type: verbatim
6466 #: ../src/guestfs-actions.pod:1369
6467 #, no-wrap
6468 msgid ""
6469 " char **\n"
6470 " guestfs_egrepi (guestfs_h *g,\n"
6471 "                 const char *regex,\n"
6472 "                 const char *path);\n"
6473 "\n"
6474 msgstr ""
6475
6476 # type: textblock
6477 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6478 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6479 msgstr ""
6480
6481 # type: =head2
6482 #: ../src/guestfs-actions.pod:1386
6483 msgid "guestfs_equal"
6484 msgstr ""
6485
6486 # type: verbatim
6487 #: ../src/guestfs-actions.pod:1388
6488 #, no-wrap
6489 msgid ""
6490 " int\n"
6491 " guestfs_equal (guestfs_h *g,\n"
6492 "                const char *file1,\n"
6493 "                const char *file2);\n"
6494 "\n"
6495 msgstr ""
6496
6497 # type: textblock
6498 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6499 msgid ""
6500 "This compares the two files C<file1> and C<file2> and returns true if their "
6501 "content is exactly equal, or false otherwise."
6502 msgstr ""
6503
6504 # type: textblock
6505 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6506 msgid "The external L<cmp(1)> program is used for the comparison."
6507 msgstr ""
6508
6509 # type: =head2
6510 #: ../src/guestfs-actions.pod:1402
6511 msgid "guestfs_exists"
6512 msgstr ""
6513
6514 # type: verbatim
6515 #: ../src/guestfs-actions.pod:1404
6516 #, no-wrap
6517 msgid ""
6518 " int\n"
6519 " guestfs_exists (guestfs_h *g,\n"
6520 "                 const char *path);\n"
6521 "\n"
6522 msgstr ""
6523
6524 # type: textblock
6525 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6526 msgid ""
6527 "This returns C<true> if and only if there is a file, directory (or anything) "
6528 "with the given C<path> name."
6529 msgstr ""
6530
6531 # type: textblock
6532 #: ../src/guestfs-actions.pod:1411
6533 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6534 msgstr ""
6535
6536 # type: =head2
6537 #: ../src/guestfs-actions.pod:1417
6538 msgid "guestfs_fallocate"
6539 msgstr ""
6540
6541 # type: verbatim
6542 #: ../src/guestfs-actions.pod:1419
6543 #, no-wrap
6544 msgid ""
6545 " int\n"
6546 " guestfs_fallocate (guestfs_h *g,\n"
6547 "                    const char *path,\n"
6548 "                    int len);\n"
6549 "\n"
6550 msgstr ""
6551
6552 # type: textblock
6553 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6554 msgid ""
6555 "This command preallocates a file (containing zero bytes) named C<path> of "
6556 "size C<len> bytes.  If the file exists already, it is overwritten."
6557 msgstr ""
6558
6559 # type: textblock
6560 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
6561 msgid ""
6562 "Do not confuse this with the guestfish-specific C<alloc> command which "
6563 "allocates a file in the host and attaches it as a device."
6564 msgstr ""
6565
6566 # type: textblock
6567 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
6568 msgid ""
6569 "This function is deprecated.  In new code, use the C<fallocate64> call "
6570 "instead."
6571 msgstr ""
6572
6573 # type: =head2
6574 #: ../src/guestfs-actions.pod:1443
6575 msgid "guestfs_fallocate64"
6576 msgstr ""
6577
6578 # type: verbatim
6579 #: ../src/guestfs-actions.pod:1445
6580 #, no-wrap
6581 msgid ""
6582 " int\n"
6583 " guestfs_fallocate64 (guestfs_h *g,\n"
6584 "                      const char *path,\n"
6585 "                      int64_t len);\n"
6586 "\n"
6587 msgstr ""
6588
6589 # type: textblock
6590 #: ../src/guestfs-actions.pod:1454
6591 msgid ""
6592 "Note that this call allocates disk blocks for the file.  To create a sparse "
6593 "file use C<guestfs_truncate_size> instead."
6594 msgstr ""
6595
6596 # type: textblock
6597 #: ../src/guestfs-actions.pod:1457
6598 msgid ""
6599 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6600 "oversight it only allowed 30 bit lengths to be specified, effectively "
6601 "limiting the maximum size of files created through that call to 1GB."
6602 msgstr ""
6603
6604 # type: textblock
6605 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
6606 msgid ""
6607 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6608 "commands which create a file in the host and attach it as a device."
6609 msgstr ""
6610
6611 # type: textblock
6612 #: ../src/guestfs-actions.pod:1468
6613 msgid "(Added in 1.3.17)"
6614 msgstr ""
6615
6616 # type: =head2
6617 #: ../src/guestfs-actions.pod:1470
6618 msgid "guestfs_fgrep"
6619 msgstr ""
6620
6621 # type: verbatim
6622 #: ../src/guestfs-actions.pod:1472
6623 #, no-wrap
6624 msgid ""
6625 " char **\n"
6626 " guestfs_fgrep (guestfs_h *g,\n"
6627 "                const char *pattern,\n"
6628 "                const char *path);\n"
6629 "\n"
6630 msgstr ""
6631
6632 # type: textblock
6633 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
6634 msgid "This calls the external C<fgrep> program and returns the matching lines."
6635 msgstr ""
6636
6637 # type: =head2
6638 #: ../src/guestfs-actions.pod:1489
6639 msgid "guestfs_fgrepi"
6640 msgstr ""
6641
6642 # type: verbatim
6643 #: ../src/guestfs-actions.pod:1491
6644 #, no-wrap
6645 msgid ""
6646 " char **\n"
6647 " guestfs_fgrepi (guestfs_h *g,\n"
6648 "                 const char *pattern,\n"
6649 "                 const char *path);\n"
6650 "\n"
6651 msgstr ""
6652
6653 # type: textblock
6654 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
6655 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6656 msgstr ""
6657
6658 # type: =head2
6659 #: ../src/guestfs-actions.pod:1508
6660 msgid "guestfs_file"
6661 msgstr ""
6662
6663 # type: verbatim
6664 #: ../src/guestfs-actions.pod:1510
6665 #, no-wrap
6666 msgid ""
6667 " char *\n"
6668 " guestfs_file (guestfs_h *g,\n"
6669 "               const char *path);\n"
6670 "\n"
6671 msgstr ""
6672
6673 # type: textblock
6674 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
6675 msgid ""
6676 "This call uses the standard L<file(1)> command to determine the type or "
6677 "contents of the file."
6678 msgstr ""
6679
6680 # type: textblock
6681 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
6682 msgid ""
6683 "This call will also transparently look inside various types of compressed "
6684 "file."
6685 msgstr ""
6686
6687 # type: textblock
6688 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
6689 msgid ""
6690 "The exact command which runs is C<file -zb path>.  Note in particular that "
6691 "the filename is not prepended to the output (the C<-b> option)."
6692 msgstr ""
6693
6694 # type: textblock
6695 #: ../src/guestfs-actions.pod:1524
6696 msgid ""
6697 "This command can also be used on C</dev/> devices (and partitions, LV "
6698 "names).  You can for example use this to determine if a device contains a "
6699 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6700 msgstr ""
6701
6702 # type: textblock
6703 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
6704 msgid ""
6705 "If the C<path> does not begin with C</dev/> then this command only works for "
6706 "the content of regular files.  For other file types (directory, symbolic "
6707 "link etc) it will just return the string C<directory> etc."
6708 msgstr ""
6709
6710 # type: =head2
6711 #: ../src/guestfs-actions.pod:1539
6712 msgid "guestfs_file_architecture"
6713 msgstr ""
6714
6715 # type: verbatim
6716 #: ../src/guestfs-actions.pod:1541
6717 #, no-wrap
6718 msgid ""
6719 " char *\n"
6720 " guestfs_file_architecture (guestfs_h *g,\n"
6721 "                            const char *filename);\n"
6722 "\n"
6723 msgstr ""
6724
6725 # type: textblock
6726 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
6727 msgid ""
6728 "This detects the architecture of the binary C<filename>, and returns it if "
6729 "known."
6730 msgstr ""
6731
6732 # type: textblock
6733 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
6734 msgid "Currently defined architectures are:"
6735 msgstr ""
6736
6737 # type: =item
6738 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
6739 msgid "\"i386\""
6740 msgstr ""
6741
6742 # type: textblock
6743 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
6744 msgid ""
6745 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6746 "irrespective of the precise processor requirements of the binary."
6747 msgstr ""
6748
6749 # type: =item
6750 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
6751 msgid "\"x86_64\""
6752 msgstr ""
6753
6754 # type: textblock
6755 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
6756 msgid "64 bit x86-64."
6757 msgstr ""
6758
6759 # type: =item
6760 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
6761 msgid "\"sparc\""
6762 msgstr ""
6763
6764 # type: textblock
6765 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
6766 msgid "32 bit SPARC."
6767 msgstr ""
6768
6769 # type: =item
6770 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
6771 msgid "\"sparc64\""
6772 msgstr ""
6773
6774 # type: textblock
6775 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
6776 msgid "64 bit SPARC V9 and above."
6777 msgstr ""
6778
6779 # type: =item
6780 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
6781 msgid "\"ia64\""
6782 msgstr ""
6783
6784 # type: textblock
6785 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
6786 msgid "Intel Itanium."
6787 msgstr ""
6788
6789 # type: =item
6790 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
6791 msgid "\"ppc\""
6792 msgstr ""
6793
6794 # type: textblock
6795 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
6796 msgid "32 bit Power PC."
6797 msgstr ""
6798
6799 # type: =item
6800 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
6801 msgid "\"ppc64\""
6802 msgstr ""
6803
6804 # type: textblock
6805 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
6806 msgid "64 bit Power PC."
6807 msgstr ""
6808
6809 # type: textblock
6810 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
6811 msgid "Libguestfs may return other architecture strings in future."
6812 msgstr ""
6813
6814 # type: textblock
6815 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
6816 msgid "The function works on at least the following types of files:"
6817 msgstr ""
6818
6819 # type: textblock
6820 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
6821 msgid "many types of Un*x and Linux binary"
6822 msgstr ""
6823
6824 # type: textblock
6825 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
6826 msgid "many types of Un*x and Linux shared library"
6827 msgstr ""
6828
6829 # type: textblock
6830 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
6831 msgid "Windows Win32 and Win64 binaries"
6832 msgstr ""
6833
6834 # type: textblock
6835 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
6836 msgid "Windows Win32 and Win64 DLLs"
6837 msgstr ""
6838
6839 # type: textblock
6840 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
6841 msgid "Win32 binaries and DLLs return C<i386>."
6842 msgstr ""
6843
6844 # type: textblock
6845 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
6846 msgid "Win64 binaries and DLLs return C<x86_64>."
6847 msgstr ""
6848
6849 # type: textblock
6850 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
6851 msgid "Linux kernel modules"
6852 msgstr ""
6853
6854 # type: textblock
6855 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
6856 msgid "Linux new-style initrd images"
6857 msgstr ""
6858
6859 # type: textblock
6860 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
6861 msgid "some non-x86 Linux vmlinuz kernels"
6862 msgstr ""
6863
6864 # type: textblock
6865 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
6866 msgid "What it can't do currently:"
6867 msgstr ""
6868
6869 # type: textblock
6870 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
6871 msgid "static libraries (libfoo.a)"
6872 msgstr ""
6873
6874 # type: textblock
6875 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
6876 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6877 msgstr ""
6878
6879 # type: textblock
6880 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
6881 msgid "x86 Linux vmlinuz kernels"
6882 msgstr ""
6883
6884 # type: textblock
6885 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
6886 msgid ""
6887 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6888 "compressed code, and are horribly hard to unpack.  If you want to find the "
6889 "architecture of a kernel, use the architecture of the associated initrd or "
6890 "kernel module(s) instead."
6891 msgstr ""
6892
6893 # type: textblock
6894 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2587 ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2774 ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3141
6895 msgid "(Added in 1.5.3)"
6896 msgstr ""
6897
6898 # type: =head2
6899 #: ../src/guestfs-actions.pod:1651
6900 msgid "guestfs_filesize"
6901 msgstr ""
6902
6903 # type: verbatim
6904 #: ../src/guestfs-actions.pod:1653
6905 #, no-wrap
6906 msgid ""
6907 " int64_t\n"
6908 " guestfs_filesize (guestfs_h *g,\n"
6909 "                   const char *file);\n"
6910 "\n"
6911 msgstr ""
6912
6913 # type: textblock
6914 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
6915 msgid "This command returns the size of C<file> in bytes."
6916 msgstr ""
6917
6918 # type: textblock
6919 #: ../src/guestfs-actions.pod:1659
6920 msgid ""
6921 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6922 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6923 "devices, use C<guestfs_blockdev_getsize64>."
6924 msgstr ""
6925
6926 # type: textblock
6927 #: ../src/guestfs-actions.pod:1665
6928 msgid "(Added in 1.0.82)"
6929 msgstr ""
6930
6931 # type: =head2
6932 #: ../src/guestfs-actions.pod:1667
6933 msgid "guestfs_fill"
6934 msgstr ""
6935
6936 # type: verbatim
6937 #: ../src/guestfs-actions.pod:1669
6938 #, no-wrap
6939 msgid ""
6940 " int\n"
6941 " guestfs_fill (guestfs_h *g,\n"
6942 "               int c,\n"
6943 "               int len,\n"
6944 "               const char *path);\n"
6945 "\n"
6946 msgstr ""
6947
6948 # type: textblock
6949 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
6950 msgid ""
6951 "This command creates a new file called C<path>.  The initial content of the "
6952 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6953 "C<[0..255]>."
6954 msgstr ""
6955
6956 # type: textblock
6957 #: ../src/guestfs-actions.pod:1679
6958 msgid ""
6959 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6960 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6961 "bytes use C<guestfs_fill_pattern>."
6962 msgstr ""
6963
6964 # type: textblock
6965 #: ../src/guestfs-actions.pod:1691
6966 msgid "(Added in 1.0.79)"
6967 msgstr ""
6968
6969 # type: =head2
6970 #: ../src/guestfs-actions.pod:1693
6971 msgid "guestfs_fill_pattern"
6972 msgstr ""
6973
6974 # type: verbatim
6975 #: ../src/guestfs-actions.pod:1695
6976 #, no-wrap
6977 msgid ""
6978 " int\n"
6979 " guestfs_fill_pattern (guestfs_h *g,\n"
6980 "                       const char *pattern,\n"
6981 "                       int len,\n"
6982 "                       const char *path);\n"
6983 "\n"
6984 msgstr ""
6985
6986 # type: textblock
6987 #: ../src/guestfs-actions.pod:1701
6988 msgid ""
6989 "This function is like C<guestfs_fill> except that it creates a new file of "
6990 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
6991 "pattern is truncated if necessary to ensure the length of the file is "
6992 "exactly C<len> bytes."
6993 msgstr ""
6994
6995 # type: textblock
6996 #: ../src/guestfs-actions.pod:1713
6997 msgid "(Added in 1.3.12)"
6998 msgstr ""
6999
7000 # type: =head2
7001 #: ../src/guestfs-actions.pod:1715
7002 msgid "guestfs_find"
7003 msgstr ""
7004
7005 # type: verbatim
7006 #: ../src/guestfs-actions.pod:1717
7007 #, no-wrap
7008 msgid ""
7009 " char **\n"
7010 " guestfs_find (guestfs_h *g,\n"
7011 "               const char *directory);\n"
7012 "\n"
7013 msgstr ""
7014
7015 # type: textblock
7016 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7017 msgid ""
7018 "This command lists out all files and directories, recursively, starting at "
7019 "C<directory>.  It is essentially equivalent to running the shell command "
7020 "C<find directory -print> but some post-processing happens on the output, "
7021 "described below."
7022 msgstr ""
7023
7024 # type: textblock
7025 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7026 msgid ""
7027 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7028 "structure was:"
7029 msgstr ""
7030
7031 # type: verbatim
7032 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7033 #, no-wrap
7034 msgid ""
7035 " /tmp/a\n"
7036 " /tmp/b\n"
7037 " /tmp/c/d\n"
7038 "\n"
7039 msgstr ""
7040
7041 # type: textblock
7042 #: ../src/guestfs-actions.pod:1733
7043 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7044 msgstr ""
7045
7046 # type: verbatim
7047 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7048 #, no-wrap
7049 msgid ""
7050 " a\n"
7051 " b\n"
7052 " c\n"
7053 " c/d\n"
7054 "\n"
7055 msgstr ""
7056
7057 # type: textblock
7058 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7059 msgid "If C<directory> is not a directory, then this command returns an error."
7060 msgstr ""
7061
7062 # type: textblock
7063 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7064 msgid "The returned list is sorted."
7065 msgstr ""
7066
7067 # type: textblock
7068 #: ../src/guestfs-actions.pod:1746
7069 msgid "See also C<guestfs_find0>."
7070 msgstr ""
7071
7072 # type: textblock
7073 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:5261
7074 msgid "(Added in 1.0.27)"
7075 msgstr ""
7076
7077 # type: =head2
7078 #: ../src/guestfs-actions.pod:1757
7079 msgid "guestfs_find0"
7080 msgstr ""
7081
7082 # type: verbatim
7083 #: ../src/guestfs-actions.pod:1759
7084 #, no-wrap
7085 msgid ""
7086 " int\n"
7087 " guestfs_find0 (guestfs_h *g,\n"
7088 "                const char *directory,\n"
7089 "                const char *files);\n"
7090 "\n"
7091 msgstr ""
7092
7093 # type: textblock
7094 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7095 msgid ""
7096 "This command lists out all files and directories, recursively, starting at "
7097 "C<directory>, placing the resulting list in the external file called "
7098 "C<files>."
7099 msgstr ""
7100
7101 # type: textblock
7102 #: ../src/guestfs-actions.pod:1768
7103 msgid ""
7104 "This command works the same way as C<guestfs_find> with the following "
7105 "exceptions:"
7106 msgstr ""
7107
7108 # type: textblock
7109 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7110 msgid "The resulting list is written to an external file."
7111 msgstr ""
7112
7113 # type: textblock
7114 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7115 msgid ""
7116 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7117 "L<find(1)> option I<-print0>."
7118 msgstr ""
7119
7120 # type: textblock
7121 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7122 msgid "This command is not limited in the number of names that it can return."
7123 msgstr ""
7124
7125 # type: textblock
7126 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7127 msgid "The result list is not sorted."
7128 msgstr ""
7129
7130 # type: textblock
7131 #: ../src/guestfs-actions.pod:1795
7132 msgid "(Added in 1.0.74)"
7133 msgstr ""
7134
7135 # type: =head2
7136 #: ../src/guestfs-actions.pod:1797
7137 msgid "guestfs_findfs_label"
7138 msgstr ""
7139
7140 # type: verbatim
7141 #: ../src/guestfs-actions.pod:1799
7142 #, no-wrap
7143 msgid ""
7144 " char *\n"
7145 " guestfs_findfs_label (guestfs_h *g,\n"
7146 "                       const char *label);\n"
7147 "\n"
7148 msgstr ""
7149
7150 # type: textblock
7151 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7152 msgid ""
7153 "This command searches the filesystems and returns the one which has the "
7154 "given label.  An error is returned if no such filesystem can be found."
7155 msgstr ""
7156
7157 # type: textblock
7158 #: ../src/guestfs-actions.pod:1807
7159 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7160 msgstr ""
7161
7162 # type: =head2
7163 #: ../src/guestfs-actions.pod:1814
7164 msgid "guestfs_findfs_uuid"
7165 msgstr ""
7166
7167 # type: verbatim
7168 #: ../src/guestfs-actions.pod:1816
7169 #, no-wrap
7170 msgid ""
7171 " char *\n"
7172 " guestfs_findfs_uuid (guestfs_h *g,\n"
7173 "                      const char *uuid);\n"
7174 "\n"
7175 msgstr ""
7176
7177 # type: textblock
7178 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7179 msgid ""
7180 "This command searches the filesystems and returns the one which has the "
7181 "given UUID.  An error is returned if no such filesystem can be found."
7182 msgstr ""
7183
7184 # type: textblock
7185 #: ../src/guestfs-actions.pod:1824
7186 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7187 msgstr ""
7188
7189 # type: =head2
7190 #: ../src/guestfs-actions.pod:1831
7191 msgid "guestfs_fsck"
7192 msgstr ""
7193
7194 # type: verbatim
7195 #: ../src/guestfs-actions.pod:1833
7196 #, no-wrap
7197 msgid ""
7198 " int\n"
7199 " guestfs_fsck (guestfs_h *g,\n"
7200 "               const char *fstype,\n"
7201 "               const char *device);\n"
7202 "\n"
7203 msgstr ""
7204
7205 # type: textblock
7206 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7207 msgid ""
7208 "This runs the filesystem checker (fsck) on C<device> which should have "
7209 "filesystem type C<fstype>."
7210 msgstr ""
7211
7212 # type: textblock
7213 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7214 msgid ""
7215 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7216 "codes from C<fsck>."
7217 msgstr ""
7218
7219 # type: textblock
7220 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7221 msgid "Multiple status codes can be summed together."
7222 msgstr ""
7223
7224 # type: textblock
7225 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7226 msgid ""
7227 "A non-zero return code can mean \"success\", for example if errors have been "
7228 "corrected on the filesystem."
7229 msgstr ""
7230
7231 # type: textblock
7232 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7233 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7238 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7239 msgstr ""
7240
7241 # type: textblock
7242 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:6898
7243 msgid "(Added in 1.0.16)"
7244 msgstr ""
7245
7246 # type: =head2
7247 #: ../src/guestfs-actions.pod:1870
7248 msgid "guestfs_get_append"
7249 msgstr ""
7250
7251 # type: verbatim
7252 #: ../src/guestfs-actions.pod:1872
7253 #, no-wrap
7254 msgid ""
7255 " const char *\n"
7256 " guestfs_get_append (guestfs_h *g);\n"
7257 "\n"
7258 msgstr ""
7259
7260 # type: textblock
7261 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7262 msgid ""
7263 "Return the additional kernel options which are added to the guest kernel "
7264 "command line."
7265 msgstr ""
7266
7267 # type: textblock
7268 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7269 msgid "If C<NULL> then no options are added."
7270 msgstr ""
7271
7272 # type: textblock
7273 #: ../src/guestfs-actions.pod:1880
7274 msgid ""
7275 "This function returns a string which may be NULL.  There is no way to return "
7276 "an error from this function.  The string is owned by the guest handle and "
7277 "must I<not> be freed."
7278 msgstr ""
7279
7280 # type: textblock
7281 #: ../src/guestfs-actions.pod:1884 ../src/guestfs-actions.pod:4939 ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5789 ../src/guestfs-actions.pod:5805 ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:6569 ../src/guestfs-actions.pod:6587 ../src/guestfs-actions.pod:6941
7282 msgid "(Added in 1.0.26)"
7283 msgstr ""
7284
7285 # type: =head2
7286 #: ../src/guestfs-actions.pod:1886
7287 msgid "guestfs_get_autosync"
7288 msgstr ""
7289
7290 # type: verbatim
7291 #: ../src/guestfs-actions.pod:1888
7292 #, no-wrap
7293 msgid ""
7294 " int\n"
7295 " guestfs_get_autosync (guestfs_h *g);\n"
7296 "\n"
7297 msgstr ""
7298
7299 # type: textblock
7300 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7301 msgid "Get the autosync flag."
7302 msgstr ""
7303
7304 # type: =head2
7305 #: ../src/guestfs-actions.pod:1897
7306 msgid "guestfs_get_direct"
7307 msgstr ""
7308
7309 # type: verbatim
7310 #: ../src/guestfs-actions.pod:1899
7311 #, no-wrap
7312 msgid ""
7313 " int\n"
7314 " guestfs_get_direct (guestfs_h *g);\n"
7315 "\n"
7316 msgstr ""
7317
7318 # type: textblock
7319 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7320 msgid "Return the direct appliance mode flag."
7321 msgstr ""
7322
7323 # type: textblock
7324 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5443
7325 msgid "(Added in 1.0.72)"
7326 msgstr ""
7327
7328 # type: =head2
7329 #: ../src/guestfs-actions.pod:1908
7330 msgid "guestfs_get_e2label"
7331 msgstr ""
7332
7333 # type: verbatim
7334 #: ../src/guestfs-actions.pod:1910
7335 #, no-wrap
7336 msgid ""
7337 " char *\n"
7338 " guestfs_get_e2label (guestfs_h *g,\n"
7339 "                      const char *device);\n"
7340 "\n"
7341 msgstr ""
7342
7343 # type: textblock
7344 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7345 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7346 msgstr ""
7347
7348 # type: textblock
7349 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7350 msgid ""
7351 "This function is deprecated.  In new code, use the C<vfs_label> call "
7352 "instead."
7353 msgstr ""
7354
7355 # type: textblock
7356 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5480
7357 msgid "(Added in 1.0.15)"
7358 msgstr ""
7359
7360 # type: =head2
7361 #: ../src/guestfs-actions.pod:1929
7362 msgid "guestfs_get_e2uuid"
7363 msgstr ""
7364
7365 # type: verbatim
7366 #: ../src/guestfs-actions.pod:1931
7367 #, no-wrap
7368 msgid ""
7369 " char *\n"
7370 " guestfs_get_e2uuid (guestfs_h *g,\n"
7371 "                     const char *device);\n"
7372 "\n"
7373 msgstr ""
7374
7375 # type: textblock
7376 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7377 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7378 msgstr ""
7379
7380 # type: textblock
7381 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7382 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7383 msgstr ""
7384
7385 # type: =head2
7386 #: ../src/guestfs-actions.pod:1950
7387 msgid "guestfs_get_memsize"
7388 msgstr ""
7389
7390 # type: verbatim
7391 #: ../src/guestfs-actions.pod:1952
7392 #, no-wrap
7393 msgid ""
7394 " int\n"
7395 " guestfs_get_memsize (guestfs_h *g);\n"
7396 "\n"
7397 msgstr ""
7398
7399 # type: textblock
7400 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7401 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7402 msgstr ""
7403
7404 # type: textblock
7405 #: ../src/guestfs-actions.pod:1958
7406 msgid ""
7407 "If C<guestfs_set_memsize> was not called on this handle, and if "
7408 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7409 "value for memsize."
7410 msgstr ""
7411
7412 # type: textblock
7413 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5603 ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388 ../fish/guestfish-actions.pod:3680 ../fish/guestfish-actions.pod:3767
7414 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7415 msgstr ""
7416
7417 # type: textblock
7418 #: ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:4091 ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4225 ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4256 ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:4286 ../src/guestfs-actions.pod:5164 ../src/guestfs-actions.pod:5501 ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:6345
7419 msgid "(Added in 1.0.55)"
7420 msgstr ""
7421
7422 # type: =head2
7423 #: ../src/guestfs-actions.pod:1969
7424 msgid "guestfs_get_network"
7425 msgstr ""
7426
7427 # type: verbatim
7428 #: ../src/guestfs-actions.pod:1971
7429 #, no-wrap
7430 msgid ""
7431 " int\n"
7432 " guestfs_get_network (guestfs_h *g);\n"
7433 "\n"
7434 msgstr ""
7435
7436 # type: textblock
7437 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7438 msgid "This returns the enable network flag."
7439 msgstr ""
7440
7441 # type: textblock
7442 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5520
7443 msgid "(Added in 1.5.4)"
7444 msgstr ""
7445
7446 # type: =head2
7447 #: ../src/guestfs-actions.pod:1980
7448 msgid "guestfs_get_path"
7449 msgstr ""
7450
7451 # type: verbatim
7452 #: ../src/guestfs-actions.pod:1982
7453 #, no-wrap
7454 msgid ""
7455 " const char *\n"
7456 " guestfs_get_path (guestfs_h *g);\n"
7457 "\n"
7458 msgstr ""
7459
7460 # type: textblock
7461 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7462 msgid "Return the current search path."
7463 msgstr ""
7464
7465 # type: textblock
7466 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7467 msgid ""
7468 "This is always non-NULL.  If it wasn't set already, then this will return "
7469 "the default path."
7470 msgstr ""
7471
7472 # type: textblock
7473 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7474 msgid ""
7475 "This function returns a string, or NULL on error.  The string is owned by "
7476 "the guest handle and must I<not> be freed."
7477 msgstr ""
7478
7479 # type: =head2
7480 #: ../src/guestfs-actions.pod:1995
7481 msgid "guestfs_get_pid"
7482 msgstr ""
7483
7484 # type: verbatim
7485 #: ../src/guestfs-actions.pod:1997
7486 #, no-wrap
7487 msgid ""
7488 " int\n"
7489 " guestfs_get_pid (guestfs_h *g);\n"
7490 "\n"
7491 msgstr ""
7492
7493 # type: textblock
7494 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7495 msgid ""
7496 "Return the process ID of the qemu subprocess.  If there is no qemu "
7497 "subprocess, then this will return an error."
7498 msgstr ""
7499
7500 # type: textblock
7501 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7502 msgid "This is an internal call used for debugging and testing."
7503 msgstr ""
7504
7505 # type: textblock
7506 #: ../src/guestfs-actions.pod:2007
7507 msgid "(Added in 1.0.56)"
7508 msgstr ""
7509
7510 # type: =head2
7511 #: ../src/guestfs-actions.pod:2009
7512 msgid "guestfs_get_qemu"
7513 msgstr ""
7514
7515 # type: verbatim
7516 #: ../src/guestfs-actions.pod:2011
7517 #, no-wrap
7518 msgid ""
7519 " const char *\n"
7520 " guestfs_get_qemu (guestfs_h *g);\n"
7521 "\n"
7522 msgstr ""
7523
7524 # type: textblock
7525 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
7526 msgid "Return the current qemu binary."
7527 msgstr ""
7528
7529 # type: textblock
7530 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
7531 msgid ""
7532 "This is always non-NULL.  If it wasn't set already, then this will return "
7533 "the default qemu binary name."
7534 msgstr ""
7535
7536 # type: textblock
7537 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5565
7538 msgid "(Added in 1.0.6)"
7539 msgstr ""
7540
7541 # type: =head2
7542 #: ../src/guestfs-actions.pod:2024
7543 msgid "guestfs_get_recovery_proc"
7544 msgstr ""
7545
7546 # type: verbatim
7547 #: ../src/guestfs-actions.pod:2026
7548 #, no-wrap
7549 msgid ""
7550 " int\n"
7551 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7552 "\n"
7553 msgstr ""
7554
7555 # type: textblock
7556 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
7557 msgid "Return the recovery process enabled flag."
7558 msgstr ""
7559
7560 # type: textblock
7561 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:3231 ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5589 ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6268 ../src/guestfs-actions.pod:6450
7562 msgid "(Added in 1.0.77)"
7563 msgstr ""
7564
7565 # type: =head2
7566 #: ../src/guestfs-actions.pod:2035
7567 msgid "guestfs_get_selinux"
7568 msgstr ""
7569
7570 # type: verbatim
7571 #: ../src/guestfs-actions.pod:2037
7572 #, no-wrap
7573 msgid ""
7574 " int\n"
7575 " guestfs_get_selinux (guestfs_h *g);\n"
7576 "\n"
7577 msgstr ""
7578
7579 # type: textblock
7580 #: ../src/guestfs-actions.pod:2040
7581 msgid ""
7582 "This returns the current setting of the selinux flag which is passed to the "
7583 "appliance at boot time.  See C<guestfs_set_selinux>."
7584 msgstr ""
7585
7586 # type: textblock
7587 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:5608 ../src/guestfs-actions.pod:5662
7588 msgid "(Added in 1.0.67)"
7589 msgstr ""
7590
7591 # type: =head2
7592 #: ../src/guestfs-actions.pod:2050
7593 msgid "guestfs_get_state"
7594 msgstr ""
7595
7596 # type: verbatim
7597 #: ../src/guestfs-actions.pod:2052
7598 #, no-wrap
7599 msgid ""
7600 " int\n"
7601 " guestfs_get_state (guestfs_h *g);\n"
7602 "\n"
7603 msgstr ""
7604
7605 # type: textblock
7606 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
7607 msgid ""
7608 "This returns the current state as an opaque integer.  This is only useful "
7609 "for printing debug and internal error messages."
7610 msgstr ""
7611
7612 # type: textblock
7613 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:3034 ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3124 ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2131 ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2185
7614 msgid "For more information on states, see L<guestfs(3)>."
7615 msgstr ""
7616
7617 # type: =head2
7618 #: ../src/guestfs-actions.pod:2064
7619 msgid "guestfs_get_trace"
7620 msgstr ""
7621
7622 # type: verbatim
7623 #: ../src/guestfs-actions.pod:2066
7624 #, no-wrap
7625 msgid ""
7626 " int\n"
7627 " guestfs_get_trace (guestfs_h *g);\n"
7628 "\n"
7629 msgstr ""
7630
7631 # type: textblock
7632 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
7633 msgid "Return the command trace flag."
7634 msgstr ""
7635
7636 # type: =head2
7637 #: ../src/guestfs-actions.pod:2075
7638 msgid "guestfs_get_umask"
7639 msgstr ""
7640
7641 # type: verbatim
7642 #: ../src/guestfs-actions.pod:2077
7643 #, no-wrap
7644 msgid ""
7645 " int\n"
7646 " guestfs_get_umask (guestfs_h *g);\n"
7647 "\n"
7648 msgstr ""
7649
7650 # type: textblock
7651 #: ../src/guestfs-actions.pod:2080
7652 msgid ""
7653 "Return the current umask.  By default the umask is C<022> unless it has been "
7654 "set by calling C<guestfs_umask>."
7655 msgstr ""
7656
7657 # type: =head2
7658 #: ../src/guestfs-actions.pod:2087
7659 msgid "guestfs_get_verbose"
7660 msgstr ""
7661
7662 # type: verbatim
7663 #: ../src/guestfs-actions.pod:2089
7664 #, no-wrap
7665 msgid ""
7666 " int\n"
7667 " guestfs_get_verbose (guestfs_h *g);\n"
7668 "\n"
7669 msgstr ""
7670
7671 # type: textblock
7672 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
7673 msgid "This returns the verbose messages flag."
7674 msgstr ""
7675
7676 # type: =head2
7677 #: ../src/guestfs-actions.pod:2098
7678 msgid "guestfs_getcon"
7679 msgstr ""
7680
7681 # type: verbatim
7682 #: ../src/guestfs-actions.pod:2100
7683 #, no-wrap
7684 msgid ""
7685 " char *\n"
7686 " guestfs_getcon (guestfs_h *g);\n"
7687 "\n"
7688 msgstr ""
7689
7690 # type: textblock
7691 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
7692 msgid "This gets the SELinux security context of the daemon."
7693 msgstr ""
7694
7695 # type: textblock
7696 #: ../src/guestfs-actions.pod:2105
7697 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7698 msgstr ""
7699
7700 # type: =head2
7701 #: ../src/guestfs-actions.pod:2113
7702 msgid "guestfs_getxattrs"
7703 msgstr ""
7704
7705 # type: verbatim
7706 #: ../src/guestfs-actions.pod:2115
7707 #, no-wrap
7708 msgid ""
7709 " struct guestfs_xattr_list *\n"
7710 " guestfs_getxattrs (guestfs_h *g,\n"
7711 "                    const char *path);\n"
7712 "\n"
7713 msgstr ""
7714
7715 # type: textblock
7716 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1432
7717 msgid "This call lists the extended attributes of the file or directory C<path>."
7718 msgstr ""
7719
7720 # type: textblock
7721 #: ../src/guestfs-actions.pod:2122 ../fish/guestfish-actions.pod:1435
7722 msgid ""
7723 "At the system call level, this is a combination of the L<listxattr(2)> and "
7724 "L<getxattr(2)> calls."
7725 msgstr ""
7726
7727 # type: textblock
7728 #: ../src/guestfs-actions.pod:2125
7729 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7730 msgstr ""
7731
7732 # type: textblock
7733 #: ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:3243 ../src/guestfs-actions.pod:3894
7734 msgid ""
7735 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7736 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7737 msgstr ""
7738
7739 # type: textblock
7740 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3448 ../src/guestfs-actions.pod:5242 ../src/guestfs-actions.pod:5681 ../src/guestfs-actions.pod:7006
7741 msgid "(Added in 1.0.59)"
7742 msgstr ""
7743
7744 # type: =head2
7745 #: ../src/guestfs-actions.pod:2133
7746 msgid "guestfs_glob_expand"
7747 msgstr ""
7748
7749 # type: verbatim
7750 #: ../src/guestfs-actions.pod:2135
7751 #, no-wrap
7752 msgid ""
7753 " char **\n"
7754 " guestfs_glob_expand (guestfs_h *g,\n"
7755 "                      const char *pattern);\n"
7756 "\n"
7757 msgstr ""
7758
7759 # type: textblock
7760 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1444
7761 msgid ""
7762 "This command searches for all the pathnames matching C<pattern> according to "
7763 "the wildcard expansion rules used by the shell."
7764 msgstr ""
7765
7766 # type: textblock
7767 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1448
7768 msgid "If no paths match, then this returns an empty list (note: not an error)."
7769 msgstr ""
7770
7771 # type: textblock
7772 #: ../src/guestfs-actions.pod:2146 ../fish/guestfish-actions.pod:1451
7773 msgid ""
7774 "It is just a wrapper around the C L<glob(3)> function with flags "
7775 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7776 msgstr ""
7777
7778 # type: textblock
7779 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:5846 ../src/guestfs-actions.pod:5863
7780 msgid "(Added in 1.0.50)"
7781 msgstr ""
7782
7783 # type: =head2
7784 #: ../src/guestfs-actions.pod:2156
7785 msgid "guestfs_grep"
7786 msgstr ""
7787
7788 # type: verbatim
7789 #: ../src/guestfs-actions.pod:2158
7790 #, no-wrap
7791 msgid ""
7792 " char **\n"
7793 " guestfs_grep (guestfs_h *g,\n"
7794 "               const char *regex,\n"
7795 "               const char *path);\n"
7796 "\n"
7797 msgstr ""
7798
7799 # type: textblock
7800 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1459
7801 msgid "This calls the external C<grep> program and returns the matching lines."
7802 msgstr ""
7803
7804 # type: =head2
7805 #: ../src/guestfs-actions.pod:2175
7806 msgid "guestfs_grepi"
7807 msgstr ""
7808
7809 # type: verbatim
7810 #: ../src/guestfs-actions.pod:2177
7811 #, no-wrap
7812 msgid ""
7813 " char **\n"
7814 " guestfs_grepi (guestfs_h *g,\n"
7815 "                const char *regex,\n"
7816 "                const char *path);\n"
7817 "\n"
7818 msgstr ""
7819
7820 # type: textblock
7821 #: ../src/guestfs-actions.pod:2182 ../fish/guestfish-actions.pod:1469
7822 msgid "This calls the external C<grep -i> program and returns the matching lines."
7823 msgstr ""
7824
7825 # type: =head2
7826 #: ../src/guestfs-actions.pod:2194
7827 msgid "guestfs_grub_install"
7828 msgstr ""
7829
7830 # type: verbatim
7831 #: ../src/guestfs-actions.pod:2196
7832 #, no-wrap
7833 msgid ""
7834 " int\n"
7835 " guestfs_grub_install (guestfs_h *g,\n"
7836 "                       const char *root,\n"
7837 "                       const char *device);\n"
7838 "\n"
7839 msgstr ""
7840
7841 # type: textblock
7842 #: ../src/guestfs-actions.pod:2201 ../fish/guestfish-actions.pod:1479
7843 msgid ""
7844 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7845 "the root directory being C<root>."
7846 msgstr ""
7847
7848 # type: textblock
7849 #: ../src/guestfs-actions.pod:2204 ../fish/guestfish-actions.pod:1482
7850 msgid ""
7851 "Note: If grub-install reports the error \"No suitable drive was found in the "
7852 "generated device map.\" it may be that you need to create a "
7853 "C</boot/grub/device.map> file first that contains the mapping between grub "
7854 "device names and Linux device names.  It is usually sufficient to create a "
7855 "file containing:"
7856 msgstr ""
7857
7858 # type: verbatim
7859 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1489
7860 #, no-wrap
7861 msgid ""
7862 " (hd0) /dev/vda\n"
7863 "\n"
7864 msgstr ""
7865
7866 # type: textblock
7867 #: ../src/guestfs-actions.pod:2213 ../fish/guestfish-actions.pod:1491
7868 msgid "replacing C</dev/vda> with the name of the installation device."
7869 msgstr ""
7870
7871 # type: textblock
7872 #: ../src/guestfs-actions.pod:2217
7873 msgid "(Added in 1.0.17)"
7874 msgstr ""
7875
7876 # type: =head2
7877 #: ../src/guestfs-actions.pod:2219
7878 msgid "guestfs_head"
7879 msgstr ""
7880
7881 # type: verbatim
7882 #: ../src/guestfs-actions.pod:2221
7883 #, no-wrap
7884 msgid ""
7885 " char **\n"
7886 " guestfs_head (guestfs_h *g,\n"
7887 "               const char *path);\n"
7888 "\n"
7889 msgstr ""
7890
7891 # type: textblock
7892 #: ../src/guestfs-actions.pod:2225 ../fish/guestfish-actions.pod:1497
7893 msgid ""
7894 "This command returns up to the first 10 lines of a file as a list of "
7895 "strings."
7896 msgstr ""
7897
7898 # type: =head2
7899 #: ../src/guestfs-actions.pod:2237
7900 msgid "guestfs_head_n"
7901 msgstr ""
7902
7903 # type: verbatim
7904 #: ../src/guestfs-actions.pod:2239
7905 #, no-wrap
7906 msgid ""
7907 " char **\n"
7908 " guestfs_head_n (guestfs_h *g,\n"
7909 "                 int nrlines,\n"
7910 "                 const char *path);\n"
7911 "\n"
7912 msgstr ""
7913
7914 # type: textblock
7915 #: ../src/guestfs-actions.pod:2244 ../fish/guestfish-actions.pod:1507
7916 msgid ""
7917 "If the parameter C<nrlines> is a positive number, this returns the first "
7918 "C<nrlines> lines of the file C<path>."
7919 msgstr ""
7920
7921 # type: textblock
7922 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1510
7923 msgid ""
7924 "If the parameter C<nrlines> is a negative number, this returns lines from "
7925 "the file C<path>, excluding the last C<nrlines> lines."
7926 msgstr ""
7927
7928 # type: textblock
7929 #: ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:6143 ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
7930 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7931 msgstr ""
7932
7933 # type: =head2
7934 #: ../src/guestfs-actions.pod:2261
7935 msgid "guestfs_hexdump"
7936 msgstr ""
7937
7938 # type: verbatim
7939 #: ../src/guestfs-actions.pod:2263
7940 #, no-wrap
7941 msgid ""
7942 " char *\n"
7943 " guestfs_hexdump (guestfs_h *g,\n"
7944 "                  const char *path);\n"
7945 "\n"
7946 msgstr ""
7947
7948 # type: textblock
7949 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1522
7950 msgid ""
7951 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7952 "human-readable, canonical hex dump of the file."
7953 msgstr ""
7954
7955 # type: textblock
7956 #: ../src/guestfs-actions.pod:2276 ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:5982
7957 msgid "(Added in 1.0.22)"
7958 msgstr ""
7959
7960 # type: =head2
7961 #: ../src/guestfs-actions.pod:2278
7962 msgid "guestfs_initrd_cat"
7963 msgstr ""
7964
7965 # type: verbatim
7966 #: ../src/guestfs-actions.pod:2280
7967 #, no-wrap
7968 msgid ""
7969 " char *\n"
7970 " guestfs_initrd_cat (guestfs_h *g,\n"
7971 "                     const char *initrdpath,\n"
7972 "                     const char *filename,\n"
7973 "                     size_t *size_r);\n"
7974 "\n"
7975 msgstr ""
7976
7977 # type: textblock
7978 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1532
7979 msgid ""
7980 "This command unpacks the file C<filename> from the initrd file called "
7981 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7982 "character."
7983 msgstr ""
7984
7985 # type: textblock
7986 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1536
7987 msgid ""
7988 "For example, in guestfish you could use the following command to examine the "
7989 "boot script (usually called C</init>)  contained in a Linux initrd or "
7990 "initramfs image:"
7991 msgstr ""
7992
7993 # type: verbatim
7994 #: ../src/guestfs-actions.pod:2294 ../fish/guestfish-actions.pod:1540
7995 #, no-wrap
7996 msgid ""
7997 " initrd-cat /boot/initrd-<version>.img init\n"
7998 "\n"
7999 msgstr ""
8000
8001 # type: textblock
8002 #: ../src/guestfs-actions.pod:2296
8003 msgid "See also C<guestfs_initrd_list>."
8004 msgstr ""
8005
8006 # type: textblock
8007 #: ../src/guestfs-actions.pod:2298 ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4888 ../src/guestfs-actions.pod:5069
8008 msgid ""
8009 "This function returns a buffer, or NULL on error.  The size of the returned "
8010 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8011 "after use>."
8012 msgstr ""
8013
8014 # type: =head2
8015 #: ../src/guestfs-actions.pod:2307
8016 msgid "guestfs_initrd_list"
8017 msgstr ""
8018
8019 # type: verbatim
8020 #: ../src/guestfs-actions.pod:2309
8021 #, no-wrap
8022 msgid ""
8023 " char **\n"
8024 " guestfs_initrd_list (guestfs_h *g,\n"
8025 "                      const char *path);\n"
8026 "\n"
8027 msgstr ""
8028
8029 # type: textblock
8030 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1551
8031 msgid "This command lists out files contained in an initrd."
8032 msgstr ""
8033
8034 # type: textblock
8035 #: ../src/guestfs-actions.pod:2315 ../fish/guestfish-actions.pod:1553
8036 msgid ""
8037 "The files are listed without any initial C</> character.  The files are "
8038 "listed in the order they appear (not necessarily alphabetical).  Directory "
8039 "names are listed as separate items."
8040 msgstr ""
8041
8042 # type: textblock
8043 #: ../src/guestfs-actions.pod:2319 ../fish/guestfish-actions.pod:1557
8044 msgid ""
8045 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8046 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8047 "files)."
8048 msgstr ""
8049
8050 # type: =head2
8051 #: ../src/guestfs-actions.pod:2329
8052 msgid "guestfs_inotify_add_watch"
8053 msgstr ""
8054
8055 # type: verbatim
8056 #: ../src/guestfs-actions.pod:2331
8057 #, no-wrap
8058 msgid ""
8059 " int64_t\n"
8060 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8061 "                            const char *path,\n"
8062 "                            int mask);\n"
8063 "\n"
8064 msgstr ""
8065
8066 # type: textblock
8067 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1565
8068 msgid "Watch C<path> for the events listed in C<mask>."
8069 msgstr ""
8070
8071 # type: textblock
8072 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1567
8073 msgid ""
8074 "Note that if C<path> is a directory then events within that directory are "
8075 "watched, but this does I<not> happen recursively (in subdirectories)."
8076 msgstr ""
8077
8078 # type: textblock
8079 #: ../src/guestfs-actions.pod:2342 ../fish/guestfish-actions.pod:1571
8080 msgid ""
8081 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8082 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8083 msgstr ""
8084
8085 # type: =head2
8086 #: ../src/guestfs-actions.pod:2350
8087 msgid "guestfs_inotify_close"
8088 msgstr ""
8089
8090 # type: verbatim
8091 #: ../src/guestfs-actions.pod:2352
8092 #, no-wrap
8093 msgid ""
8094 " int\n"
8095 " guestfs_inotify_close (guestfs_h *g);\n"
8096 "\n"
8097 msgstr ""
8098
8099 # type: textblock
8100 #: ../src/guestfs-actions.pod:2355 ../fish/guestfish-actions.pod:1579
8101 msgid ""
8102 "This closes the inotify handle which was previously opened by inotify_init.  "
8103 "It removes all watches, throws away any pending events, and deallocates all "
8104 "resources."
8105 msgstr ""
8106
8107 # type: =head2
8108 #: ../src/guestfs-actions.pod:2363
8109 msgid "guestfs_inotify_files"
8110 msgstr ""
8111
8112 # type: verbatim
8113 #: ../src/guestfs-actions.pod:2365
8114 #, no-wrap
8115 msgid ""
8116 " char **\n"
8117 " guestfs_inotify_files (guestfs_h *g);\n"
8118 "\n"
8119 msgstr ""
8120
8121 # type: textblock
8122 #: ../src/guestfs-actions.pod:2368
8123 msgid ""
8124 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8125 "returns a list of pathnames of objects that were touched.  The returned "
8126 "pathnames are sorted and deduplicated."
8127 msgstr ""
8128
8129 # type: =head2
8130 #: ../src/guestfs-actions.pod:2378
8131 msgid "guestfs_inotify_init"
8132 msgstr ""
8133
8134 # type: verbatim
8135 #: ../src/guestfs-actions.pod:2380
8136 #, no-wrap
8137 msgid ""
8138 " int\n"
8139 " guestfs_inotify_init (guestfs_h *g,\n"
8140 "                       int maxevents);\n"
8141 "\n"
8142 msgstr ""
8143
8144 # type: textblock
8145 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1595
8146 msgid ""
8147 "This command creates a new inotify handle.  The inotify subsystem can be "
8148 "used to notify events which happen to objects in the guest filesystem."
8149 msgstr ""
8150
8151 # type: textblock
8152 #: ../src/guestfs-actions.pod:2388
8153 msgid ""
8154 "C<maxevents> is the maximum number of events which will be queued up between "
8155 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8156 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8157 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8158 "throws away events, but records the fact that it threw them away by setting "
8159 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8160 "C<guestfs_inotify_read>)."
8161 msgstr ""
8162
8163 # type: textblock
8164 #: ../src/guestfs-actions.pod:2398
8165 msgid ""
8166 "Before any events are generated, you have to add some watches to the "
8167 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8168 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8169 msgstr ""
8170
8171 # type: textblock
8172 #: ../src/guestfs-actions.pod:2404
8173 msgid ""
8174 "Queued up events should be read periodically by calling "
8175 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8176 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8177 "often enough then you risk the internal queue overflowing."
8178 msgstr ""
8179
8180 # type: textblock
8181 #: ../src/guestfs-actions.pod:2411
8182 msgid ""
8183 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8184 "This also removes any watches automatically."
8185 msgstr ""
8186
8187 # type: textblock
8188 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1626
8189 msgid ""
8190 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8191 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8192 "that there is one global inotify handle per libguestfs instance."
8193 msgstr ""
8194
8195 # type: =head2
8196 #: ../src/guestfs-actions.pod:2424
8197 msgid "guestfs_inotify_read"
8198 msgstr ""
8199
8200 # type: verbatim
8201 #: ../src/guestfs-actions.pod:2426
8202 #, no-wrap
8203 msgid ""
8204 " struct guestfs_inotify_event_list *\n"
8205 " guestfs_inotify_read (guestfs_h *g);\n"
8206 "\n"
8207 msgstr ""
8208
8209 # type: textblock
8210 #: ../src/guestfs-actions.pod:2429 ../fish/guestfish-actions.pod:1635
8211 msgid ""
8212 "Return the complete queue of events that have happened since the previous "
8213 "read call."
8214 msgstr ""
8215
8216 # type: textblock
8217 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1638
8218 msgid "If no events have happened, this returns an empty list."
8219 msgstr ""
8220
8221 # type: textblock
8222 #: ../src/guestfs-actions.pod:2434 ../fish/guestfish-actions.pod:1640
8223 msgid ""
8224 "I<Note>: In order to make sure that all events have been read, you must call "
8225 "this function repeatedly until it returns an empty list.  The reason is that "
8226 "the call will read events up to the maximum appliance-to-host message size "
8227 "and leave remaining events in the queue."
8228 msgstr ""
8229
8230 # type: textblock
8231 #: ../src/guestfs-actions.pod:2440
8232 msgid ""
8233 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8234 "there was an error.  I<The caller must call "
8235 "C<guestfs_free_inotify_event_list> after use>."
8236 msgstr ""
8237
8238 # type: =head2
8239 #: ../src/guestfs-actions.pod:2446
8240 msgid "guestfs_inotify_rm_watch"
8241 msgstr ""
8242
8243 # type: verbatim
8244 #: ../src/guestfs-actions.pod:2448
8245 #, no-wrap
8246 msgid ""
8247 " int\n"
8248 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8249 "                           int wd);\n"
8250 "\n"
8251 msgstr ""
8252
8253 # type: textblock
8254 #: ../src/guestfs-actions.pod:2452
8255 msgid ""
8256 "Remove a previously defined inotify watch.  See "
8257 "C<guestfs_inotify_add_watch>."
8258 msgstr ""
8259
8260 # type: =head2
8261 #: ../src/guestfs-actions.pod:2459
8262 msgid "guestfs_inspect_get_arch"
8263 msgstr ""
8264
8265 # type: verbatim
8266 #: ../src/guestfs-actions.pod:2461
8267 #, no-wrap
8268 msgid ""
8269 " char *\n"
8270 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8271 "                           const char *root);\n"
8272 "\n"
8273 msgstr ""
8274
8275 # type: textblock
8276 #: ../src/guestfs-actions.pod:2465 ../src/guestfs-actions.pod:2488 ../src/guestfs-actions.pod:2569 ../src/guestfs-actions.pod:2595 ../src/guestfs-actions.pod:2617 ../src/guestfs-actions.pod:2644 ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:2758 ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:2867
8277 msgid ""
8278 "This function should only be called with a root device string as returned by "
8279 "C<guestfs_inspect_os>."
8280 msgstr ""
8281
8282 # type: textblock
8283 #: ../src/guestfs-actions.pod:2468
8284 msgid ""
8285 "This returns the architecture of the inspected operating system.  The "
8286 "possible return values are listed under C<guestfs_file_architecture>."
8287 msgstr ""
8288
8289 # type: textblock
8290 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1664
8291 msgid ""
8292 "If the architecture could not be determined, then the string C<unknown> is "
8293 "returned."
8294 msgstr ""
8295
8296 # type: textblock
8297 #: ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2556 ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2714 ../src/guestfs-actions.pod:2745 ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:2854 ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:1667 ../fish/guestfish-actions.pod:1741 ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:1795 ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:1879 ../fish/guestfish-actions.pod:1896 ../fish/guestfish-actions.pod:1909 ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1960 ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2093
8298 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8299 msgstr ""
8300
8301 # type: =head2
8302 #: ../src/guestfs-actions.pod:2482
8303 msgid "guestfs_inspect_get_distro"
8304 msgstr ""
8305
8306 # type: verbatim
8307 #: ../src/guestfs-actions.pod:2484
8308 #, no-wrap
8309 msgid ""
8310 " char *\n"
8311 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8312 "                             const char *root);\n"
8313 "\n"
8314 msgstr ""
8315
8316 # type: textblock
8317 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1676
8318 msgid "This returns the distro (distribution) of the inspected operating system."
8319 msgstr ""
8320
8321 # type: textblock
8322 #: ../src/guestfs-actions.pod:2494 ../fish/guestfish-actions.pod:1679
8323 msgid "Currently defined distros are:"
8324 msgstr ""
8325
8326 # type: =item
8327 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1683
8328 msgid "\"archlinux\""
8329 msgstr ""
8330
8331 # type: textblock
8332 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1685
8333 msgid "Arch Linux."
8334 msgstr ""
8335
8336 # type: =item
8337 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1687
8338 msgid "\"debian\""
8339 msgstr ""
8340
8341 # type: textblock
8342 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1689
8343 msgid "Debian."
8344 msgstr ""
8345
8346 # type: =item
8347 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1691
8348 msgid "\"fedora\""
8349 msgstr ""
8350
8351 # type: textblock
8352 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1693
8353 msgid "Fedora."
8354 msgstr ""
8355
8356 # type: =item
8357 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1695
8358 msgid "\"gentoo\""
8359 msgstr ""
8360
8361 # type: textblock
8362 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1697
8363 msgid "Gentoo."
8364 msgstr ""
8365
8366 # type: =item
8367 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1699
8368 msgid "\"linuxmint\""
8369 msgstr ""
8370
8371 # type: textblock
8372 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1701
8373 msgid "Linux Mint."
8374 msgstr ""
8375
8376 # type: =item
8377 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1703
8378 msgid "\"mandriva\""
8379 msgstr ""
8380
8381 # type: textblock
8382 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1705
8383 msgid "Mandriva."
8384 msgstr ""
8385
8386 # type: =item
8387 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1707
8388 msgid "\"meego\""
8389 msgstr ""
8390
8391 # type: textblock
8392 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1709
8393 msgid "MeeGo."
8394 msgstr ""
8395
8396 # type: =item
8397 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1711
8398 msgid "\"pardus\""
8399 msgstr ""
8400
8401 # type: textblock
8402 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1713
8403 msgid "Pardus."
8404 msgstr ""
8405
8406 # type: =item
8407 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1715
8408 msgid "\"redhat-based\""
8409 msgstr ""
8410
8411 # type: textblock
8412 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1717
8413 msgid "Some Red Hat-derived distro."
8414 msgstr ""
8415
8416 # type: =item
8417 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1719
8418 msgid "\"rhel\""
8419 msgstr ""
8420
8421 # type: textblock
8422 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1721
8423 msgid "Red Hat Enterprise Linux and some derivatives."
8424 msgstr ""
8425
8426 # type: =item
8427 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1723
8428 msgid "\"ubuntu\""
8429 msgstr ""
8430
8431 # type: textblock
8432 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1725
8433 msgid "Ubuntu."
8434 msgstr ""
8435
8436 # type: =item
8437 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2822 ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8438 msgid "\"unknown\""
8439 msgstr ""
8440
8441 # type: textblock
8442 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1729
8443 msgid "The distro could not be determined."
8444 msgstr ""
8445
8446 # type: =item
8447 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8448 msgid "\"windows\""
8449 msgstr ""
8450
8451 # type: textblock
8452 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1733
8453 msgid ""
8454 "Windows does not have distributions.  This string is returned if the OS type "
8455 "is Windows."
8456 msgstr ""
8457
8458 # type: textblock
8459 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8460 msgid ""
8461 "Future versions of libguestfs may return other strings here.  The caller "
8462 "should be prepared to handle any string."
8463 msgstr ""
8464
8465 # type: =head2
8466 #: ../src/guestfs-actions.pod:2563
8467 msgid "guestfs_inspect_get_filesystems"
8468 msgstr ""
8469
8470 # type: verbatim
8471 #: ../src/guestfs-actions.pod:2565
8472 #, no-wrap
8473 msgid ""
8474 " char **\n"
8475 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8476 "                                  const char *root);\n"
8477 "\n"
8478 msgstr ""
8479
8480 # type: textblock
8481 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1750
8482 msgid ""
8483 "This returns a list of all the filesystems that we think are associated with "
8484 "this operating system.  This includes the root filesystem, other ordinary "
8485 "filesystems, and non-mounted devices like swap partitions."
8486 msgstr ""
8487
8488 # type: textblock
8489 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1755
8490 msgid ""
8491 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8492 "to be shared between operating systems."
8493 msgstr ""
8494
8495 # type: textblock
8496 #: ../src/guestfs-actions.pod:2580
8497 msgid ""
8498 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8499 "C<guestfs_inspect_get_mountpoints>."
8500 msgstr ""
8501
8502 # type: =head2
8503 #: ../src/guestfs-actions.pod:2589
8504 msgid "guestfs_inspect_get_hostname"
8505 msgstr ""
8506
8507 # type: verbatim
8508 #: ../src/guestfs-actions.pod:2591
8509 #, no-wrap
8510 msgid ""
8511 " char *\n"
8512 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8513 "                               const char *root);\n"
8514 "\n"
8515 msgstr ""
8516
8517 # type: textblock
8518 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1768
8519 msgid ""
8520 "This function returns the hostname of the operating system as found by "
8521 "inspection of the guest's configuration files."
8522 msgstr ""
8523
8524 # type: textblock
8525 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1771
8526 msgid ""
8527 "If the hostname could not be determined, then the string C<unknown> is "
8528 "returned."
8529 msgstr ""
8530
8531 # type: textblock
8532 #: ../src/guestfs-actions.pod:2609
8533 msgid "(Added in 1.7.9)"
8534 msgstr ""
8535
8536 # type: =head2
8537 #: ../src/guestfs-actions.pod:2611
8538 msgid "guestfs_inspect_get_major_version"
8539 msgstr ""
8540
8541 # type: verbatim
8542 #: ../src/guestfs-actions.pod:2613
8543 #, no-wrap
8544 msgid ""
8545 " int\n"
8546 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8547 "                                    const char *root);\n"
8548 "\n"
8549 msgstr ""
8550
8551 # type: textblock
8552 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1783
8553 msgid "This returns the major version number of the inspected operating system."
8554 msgstr ""
8555
8556 # type: textblock
8557 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1786
8558 msgid ""
8559 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8560 "popular public names used by the operating system.  Notably the operating "
8561 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8562 "1).  You can find out the real versions corresponding to releases of Windows "
8563 "by consulting Wikipedia or MSDN."
8564 msgstr ""
8565
8566 # type: textblock
8567 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
8568 msgid "If the version could not be determined, then C<0> is returned."
8569 msgstr ""
8570
8571 # type: =head2
8572 #: ../src/guestfs-actions.pod:2638
8573 msgid "guestfs_inspect_get_minor_version"
8574 msgstr ""
8575
8576 # type: verbatim
8577 #: ../src/guestfs-actions.pod:2640
8578 #, no-wrap
8579 msgid ""
8580 " int\n"
8581 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8582 "                                    const char *root);\n"
8583 "\n"
8584 msgstr ""
8585
8586 # type: textblock
8587 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1804
8588 msgid "This returns the minor version number of the inspected operating system."
8589 msgstr ""
8590
8591 # type: textblock
8592 #: ../src/guestfs-actions.pod:2652
8593 msgid ""
8594 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8595 "C<guestfs_inspect_get_major_version>."
8596 msgstr ""
8597
8598 # type: =head2
8599 #: ../src/guestfs-actions.pod:2659
8600 msgid "guestfs_inspect_get_mountpoints"
8601 msgstr ""
8602
8603 # type: verbatim
8604 #: ../src/guestfs-actions.pod:2661
8605 #, no-wrap
8606 msgid ""
8607 " char **\n"
8608 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8609 "                                  const char *root);\n"
8610 "\n"
8611 msgstr ""
8612
8613 # type: textblock
8614 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1819
8615 msgid ""
8616 "This returns a hash of where we think the filesystems associated with this "
8617 "operating system should be mounted.  Callers should note that this is at "
8618 "best an educated guess made by reading configuration files such as "
8619 "C</etc/fstab>."
8620 msgstr ""
8621
8622 # type: textblock
8623 #: ../src/guestfs-actions.pod:2673 ../fish/guestfish-actions.pod:1824
8624 msgid ""
8625 "Each element in the returned hashtable has a key which is the path of the "
8626 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8627 "mounted there (eg. C</dev/sda1>)."
8628 msgstr ""
8629
8630 # type: textblock
8631 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1829
8632 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8633 msgstr ""
8634
8635 # type: textblock
8636 #: ../src/guestfs-actions.pod:2681
8637 msgid ""
8638 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8639 "C<guestfs_inspect_get_filesystems>."
8640 msgstr ""
8641
8642 # type: textblock
8643 #: ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:3300 ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:6284
8644 msgid ""
8645 "This function returns a NULL-terminated array of strings, or NULL if there "
8646 "was an error.  The array of strings will always have length C<2n+1>, where "
8647 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8648 "caller must free the strings and the array after use>."
8649 msgstr ""
8650
8651 # type: =head2
8652 #: ../src/guestfs-actions.pod:2692
8653 msgid "guestfs_inspect_get_package_format"
8654 msgstr ""
8655
8656 # type: verbatim
8657 #: ../src/guestfs-actions.pod:2694
8658 #, no-wrap
8659 msgid ""
8660 " char *\n"
8661 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8662 "                                     const char *root);\n"
8663 "\n"
8664 msgstr ""
8665
8666 # type: textblock
8667 #: ../src/guestfs-actions.pod:2701
8668 msgid ""
8669 "This function and C<guestfs_inspect_get_package_management> return the "
8670 "package format and package management tool used by the inspected operating "
8671 "system.  For example for Fedora these functions would return C<rpm> (package "
8672 "format) and C<yum> (package management)."
8673 msgstr ""
8674
8675 # type: textblock
8676 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1848
8677 msgid ""
8678 "This returns the string C<unknown> if we could not determine the package "
8679 "format I<or> if the operating system does not have a real packaging system "
8680 "(eg. Windows)."
8681 msgstr ""
8682
8683 # type: textblock
8684 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
8685 msgid ""
8686 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8687 "Future versions of libguestfs may return other strings."
8688 msgstr ""
8689
8690 # type: textblock
8691 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2750
8692 msgid "(Added in 1.7.5)"
8693 msgstr ""
8694
8695 # type: =head2
8696 #: ../src/guestfs-actions.pod:2721
8697 msgid "guestfs_inspect_get_package_management"
8698 msgstr ""
8699
8700 # type: verbatim
8701 #: ../src/guestfs-actions.pod:2723
8702 #, no-wrap
8703 msgid ""
8704 " char *\n"
8705 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8706 "                                         const char *root);\n"
8707 "\n"
8708 msgstr ""
8709
8710 # type: textblock
8711 #: ../src/guestfs-actions.pod:2730
8712 msgid ""
8713 "C<guestfs_inspect_get_package_format> and this function return the package "
8714 "format and package management tool used by the inspected operating system.  "
8715 "For example for Fedora these functions would return C<rpm> (package format) "
8716 "and C<yum> (package management)."
8717 msgstr ""
8718
8719 # type: textblock
8720 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1870
8721 msgid ""
8722 "This returns the string C<unknown> if we could not determine the package "
8723 "management tool I<or> if the operating system does not have a real packaging "
8724 "system (eg. Windows)."
8725 msgstr ""
8726
8727 # type: textblock
8728 #: ../src/guestfs-actions.pod:2740 ../fish/guestfish-actions.pod:1874
8729 msgid ""
8730 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8731 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8732 "libguestfs may return other strings."
8733 msgstr ""
8734
8735 # type: =head2
8736 #: ../src/guestfs-actions.pod:2752
8737 msgid "guestfs_inspect_get_product_name"
8738 msgstr ""
8739
8740 # type: verbatim
8741 #: ../src/guestfs-actions.pod:2754
8742 #, no-wrap
8743 msgid ""
8744 " char *\n"
8745 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8746 "                                   const char *root);\n"
8747 "\n"
8748 msgstr ""
8749
8750 # type: textblock
8751 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:1888
8752 msgid ""
8753 "This returns the product name of the inspected operating system.  The "
8754 "product name is generally some freeform string which can be displayed to the "
8755 "user, but should not be parsed by programs."
8756 msgstr ""
8757
8758 # type: textblock
8759 #: ../src/guestfs-actions.pod:2766 ../fish/guestfish-actions.pod:1893
8760 msgid ""
8761 "If the product name could not be determined, then the string C<unknown> is "
8762 "returned."
8763 msgstr ""
8764
8765 # type: =head2
8766 #: ../src/guestfs-actions.pod:2776
8767 msgid "guestfs_inspect_get_roots"
8768 msgstr ""
8769
8770 # type: verbatim
8771 #: ../src/guestfs-actions.pod:2778
8772 #, no-wrap
8773 msgid ""
8774 " char **\n"
8775 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8776 "\n"
8777 msgstr ""
8778
8779 # type: textblock
8780 #: ../src/guestfs-actions.pod:2781
8781 msgid ""
8782 "This function is a convenient way to get the list of root devices, as "
8783 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8784 "the whole inspection process."
8785 msgstr ""
8786
8787 # type: textblock
8788 #: ../src/guestfs-actions.pod:2785
8789 msgid ""
8790 "This returns an empty list if either no root devices were found or the "
8791 "caller has not called C<guestfs_inspect_os>."
8792 msgstr ""
8793
8794 # type: textblock
8795 #: ../src/guestfs-actions.pod:2794
8796 msgid "(Added in 1.7.3)"
8797 msgstr ""
8798
8799 # type: =head2
8800 #: ../src/guestfs-actions.pod:2796
8801 msgid "guestfs_inspect_get_type"
8802 msgstr ""
8803
8804 # type: verbatim
8805 #: ../src/guestfs-actions.pod:2798
8806 #, no-wrap
8807 msgid ""
8808 " char *\n"
8809 " guestfs_inspect_get_type (guestfs_h *g,\n"
8810 "                           const char *root);\n"
8811 "\n"
8812 msgstr ""
8813
8814 # type: textblock
8815 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1918
8816 msgid ""
8817 "This returns the type of the inspected operating system.  Currently defined "
8818 "types are:"
8819 msgstr ""
8820
8821 # type: =item
8822 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1923
8823 msgid "\"linux\""
8824 msgstr ""
8825
8826 # type: textblock
8827 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1925
8828 msgid "Any Linux-based operating system."
8829 msgstr ""
8830
8831 # type: textblock
8832 #: ../src/guestfs-actions.pod:2816 ../fish/guestfish-actions.pod:1929
8833 msgid "Any Microsoft Windows operating system."
8834 msgstr ""
8835
8836 # type: =item
8837 #: ../src/guestfs-actions.pod:2818 ../fish/guestfish-actions.pod:1931
8838 msgid "\"freebsd\""
8839 msgstr ""
8840
8841 # type: textblock
8842 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1933
8843 msgid "FreeBSD."
8844 msgstr ""
8845
8846 # type: textblock
8847 #: ../src/guestfs-actions.pod:2824 ../fish/guestfish-actions.pod:1937
8848 msgid "The operating system type could not be determined."
8849 msgstr ""
8850
8851 # type: =head2
8852 #: ../src/guestfs-actions.pod:2838
8853 msgid "guestfs_inspect_get_windows_systemroot"
8854 msgstr ""
8855
8856 # type: verbatim
8857 #: ../src/guestfs-actions.pod:2840
8858 #, no-wrap
8859 msgid ""
8860 " char *\n"
8861 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8862 "                                         const char *root);\n"
8863 "\n"
8864 msgstr ""
8865
8866 # type: textblock
8867 #: ../src/guestfs-actions.pod:2847 ../fish/guestfish-actions.pod:1953
8868 msgid ""
8869 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8870 "is a directory path such as C</WINDOWS>."
8871 msgstr ""
8872
8873 # type: textblock
8874 #: ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1956
8875 msgid ""
8876 "This call assumes that the guest is Windows and that the systemroot could be "
8877 "determined by inspection.  If this is not the case then an error is "
8878 "returned."
8879 msgstr ""
8880
8881 # type: textblock
8882 #: ../src/guestfs-actions.pod:2859
8883 msgid "(Added in 1.5.25)"
8884 msgstr ""
8885
8886 # type: =head2
8887 #: ../src/guestfs-actions.pod:2861
8888 msgid "guestfs_inspect_list_applications"
8889 msgstr ""
8890
8891 # type: verbatim
8892 #: ../src/guestfs-actions.pod:2863
8893 #, no-wrap
8894 msgid ""
8895 " struct guestfs_application_list *\n"
8896 " guestfs_inspect_list_applications (guestfs_h *g,\n"
8897 "                                    const char *root);\n"
8898 "\n"
8899 msgstr ""
8900
8901 # type: textblock
8902 #: ../src/guestfs-actions.pod:2870 ../fish/guestfish-actions.pod:1969
8903 msgid "Return the list of applications installed in the operating system."
8904 msgstr ""
8905
8906 # type: textblock
8907 #: ../src/guestfs-actions.pod:2872
8908 msgid ""
8909 "I<Note:> This call works differently from other parts of the inspection "
8910 "API.  You have to call C<guestfs_inspect_os>, then "
8911 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
8912 "this.  Listing applications is a significantly more difficult operation "
8913 "which requires access to the full filesystem.  Also note that unlike the "
8914 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
8915 "the libguestfs handle, this call actually reads parts of the mounted "
8916 "filesystems during the call."
8917 msgstr ""
8918
8919 # type: textblock
8920 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1981
8921 msgid ""
8922 "This returns an empty list if the inspection code was not able to determine "
8923 "the list of applications."
8924 msgstr ""
8925
8926 # type: textblock
8927 #: ../src/guestfs-actions.pod:2885 ../fish/guestfish-actions.pod:1984
8928 msgid "The application structure contains the following fields:"
8929 msgstr ""
8930
8931 # type: =item
8932 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1988
8933 msgid "C<app_name>"
8934 msgstr ""
8935
8936 # type: textblock
8937 #: ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:1990
8938 msgid ""
8939 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8940 "guests, this is the package name."
8941 msgstr ""
8942
8943 # type: =item
8944 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1993
8945 msgid "C<app_display_name>"
8946 msgstr ""
8947
8948 # type: textblock
8949 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:1995
8950 msgid ""
8951 "The display name of the application, sometimes localized to the install "
8952 "language of the guest operating system."
8953 msgstr ""
8954
8955 # type: textblock
8956 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1998
8957 msgid ""
8958 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8959 "to display something can use C<app_name> instead."
8960 msgstr ""
8961
8962 # type: =item
8963 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2001
8964 msgid "C<app_epoch>"
8965 msgstr ""
8966
8967 # type: textblock
8968 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2003
8969 msgid ""
8970 "For package managers which use epochs, this contains the epoch of the "
8971 "package (an integer).  If unavailable, this is returned as C<0>."
8972 msgstr ""
8973
8974 # type: =item
8975 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2006
8976 msgid "C<app_version>"
8977 msgstr ""
8978
8979 # type: textblock
8980 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2008
8981 msgid ""
8982 "The version string of the application or package.  If unavailable this is "
8983 "returned as an empty string C<\"\">."
8984 msgstr ""
8985
8986 # type: =item
8987 #: ../src/guestfs-actions.pod:2912 ../fish/guestfish-actions.pod:2011
8988 msgid "C<app_release>"
8989 msgstr ""
8990
8991 # type: textblock
8992 #: ../src/guestfs-actions.pod:2914 ../fish/guestfish-actions.pod:2013
8993 msgid ""
8994 "The release string of the application or package, for package managers that "
8995 "use this.  If unavailable this is returned as an empty string C<\"\">."
8996 msgstr ""
8997
8998 # type: =item
8999 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2017
9000 msgid "C<app_install_path>"
9001 msgstr ""
9002
9003 # type: textblock
9004 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:2019
9005 msgid ""
9006 "The installation path of the application (on operating systems such as "
9007 "Windows which use installation paths).  This path is in the format used by "
9008 "the guest operating system, it is not a libguestfs path."
9009 msgstr ""
9010
9011 # type: textblock
9012 #: ../src/guestfs-actions.pod:2925 ../fish/guestfish-actions.pod:2024
9013 msgid "If unavailable this is returned as an empty string C<\"\">."
9014 msgstr ""
9015
9016 # type: =item
9017 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2026
9018 msgid "C<app_trans_path>"
9019 msgstr ""
9020
9021 # type: textblock
9022 #: ../src/guestfs-actions.pod:2929 ../fish/guestfish-actions.pod:2028
9023 msgid ""
9024 "The install path translated into a libguestfs path.  If unavailable this is "
9025 "returned as an empty string C<\"\">."
9026 msgstr ""
9027
9028 # type: =item
9029 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2031
9030 msgid "C<app_publisher>"
9031 msgstr ""
9032
9033 # type: textblock
9034 #: ../src/guestfs-actions.pod:2934 ../fish/guestfish-actions.pod:2033
9035 msgid ""
9036 "The name of the publisher of the application, for package managers that use "
9037 "this.  If unavailable this is returned as an empty string C<\"\">."
9038 msgstr ""
9039
9040 # type: =item
9041 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2037
9042 msgid "C<app_url>"
9043 msgstr ""
9044
9045 # type: textblock
9046 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2039
9047 msgid ""
9048 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9049 "returned as an empty string C<\"\">."
9050 msgstr ""
9051
9052 # type: =item
9053 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2042
9054 msgid "C<app_source_package>"
9055 msgstr ""
9056
9057 # type: textblock
9058 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2044
9059 msgid ""
9060 "For packaging systems which support this, the name of the source package.  "
9061 "If unavailable this is returned as an empty string C<\"\">."
9062 msgstr ""
9063
9064 # type: =item
9065 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2047
9066 msgid "C<app_summary>"
9067 msgstr ""
9068
9069 # type: textblock
9070 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2049
9071 msgid ""
9072 "A short (usually one line) description of the application or package.  If "
9073 "unavailable this is returned as an empty string C<\"\">."
9074 msgstr ""
9075
9076 # type: =item
9077 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2052
9078 msgid "C<app_description>"
9079 msgstr ""
9080
9081 # type: textblock
9082 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2054
9083 msgid ""
9084 "A longer description of the application or package.  If unavailable this is "
9085 "returned as an empty string C<\"\">."
9086 msgstr ""
9087
9088 # type: textblock
9089 #: ../src/guestfs-actions.pod:2962
9090 msgid ""
9091 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9092 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9093 "after use>."
9094 msgstr ""
9095
9096 # type: textblock
9097 #: ../src/guestfs-actions.pod:2966
9098 msgid "(Added in 1.7.8)"
9099 msgstr ""
9100
9101 # type: =head2
9102 #: ../src/guestfs-actions.pod:2968
9103 msgid "guestfs_inspect_os"
9104 msgstr ""
9105
9106 # type: verbatim
9107 #: ../src/guestfs-actions.pod:2970
9108 #, no-wrap
9109 msgid ""
9110 " char **\n"
9111 " guestfs_inspect_os (guestfs_h *g);\n"
9112 "\n"
9113 msgstr ""
9114
9115 # type: textblock
9116 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2065
9117 msgid ""
9118 "This function uses other libguestfs functions and certain heuristics to "
9119 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9120 "for operating systems."
9121 msgstr ""
9122
9123 # type: textblock
9124 #: ../src/guestfs-actions.pod:2977 ../fish/guestfish-actions.pod:2069
9125 msgid "The list returned is empty if no operating systems were found."
9126 msgstr ""
9127
9128 # type: textblock
9129 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2071
9130 msgid ""
9131 "If one operating system was found, then this returns a list with a single "
9132 "element, which is the name of the root filesystem of this operating system.  "
9133 "It is also possible for this function to return a list containing more than "
9134 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9135 "element being the root filesystem of one of the operating systems."
9136 msgstr ""
9137
9138 # type: textblock
9139 #: ../src/guestfs-actions.pod:2986
9140 msgid ""
9141 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9142 "functions in order to query further information about each operating system, "
9143 "such as the name and version."
9144 msgstr ""
9145
9146 # type: textblock
9147 #: ../src/guestfs-actions.pod:2991
9148 msgid ""
9149 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9150 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9151 "the contents.  This should be called with no disks currently mounted.  The "
9152 "function may also use Augeas, so any existing Augeas handle will be closed."
9153 msgstr ""
9154
9155 # type: textblock
9156 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2089
9157 msgid ""
9158 "This function cannot decrypt encrypted disks.  The caller must do that first "
9159 "(supplying the necessary keys) if the disk is encrypted."
9160 msgstr ""
9161
9162 # type: textblock
9163 #: ../src/guestfs-actions.pod:3003 ../src/guestfs-actions.pod:3258 ../src/guestfs-actions.pod:3320
9164 msgid "See also C<guestfs_list_filesystems>."
9165 msgstr ""
9166
9167 # type: =head2
9168 #: ../src/guestfs-actions.pod:3011
9169 msgid "guestfs_is_blockdev"
9170 msgstr ""
9171
9172 # type: verbatim
9173 #: ../src/guestfs-actions.pod:3013
9174 #, no-wrap
9175 msgid ""
9176 " int\n"
9177 " guestfs_is_blockdev (guestfs_h *g,\n"
9178 "                      const char *path);\n"
9179 "\n"
9180 msgstr ""
9181
9182 # type: textblock
9183 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2101
9184 msgid ""
9185 "This returns C<true> if and only if there is a block device with the given "
9186 "C<path> name."
9187 msgstr ""
9188
9189 # type: textblock
9190 #: ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3049 ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3094 ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3166 ../src/guestfs-actions.pod:3181
9191 msgid "See also C<guestfs_stat>."
9192 msgstr ""
9193
9194 # type: textblock
9195 #: ../src/guestfs-actions.pod:3024 ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3098 ../src/guestfs-actions.pod:3170 ../src/guestfs-actions.pod:3185
9196 msgid "(Added in 1.5.10)"
9197 msgstr ""
9198
9199 # type: =head2
9200 #: ../src/guestfs-actions.pod:3026
9201 msgid "guestfs_is_busy"
9202 msgstr ""
9203
9204 # type: verbatim
9205 #: ../src/guestfs-actions.pod:3028
9206 #, no-wrap
9207 msgid ""
9208 " int\n"
9209 " guestfs_is_busy (guestfs_h *g);\n"
9210 "\n"
9211 msgstr ""
9212
9213 # type: textblock
9214 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2110
9215 msgid ""
9216 "This returns true iff this handle is busy processing a command (in the "
9217 "C<BUSY> state)."
9218 msgstr ""
9219
9220 # type: =head2
9221 #: ../src/guestfs-actions.pod:3040
9222 msgid "guestfs_is_chardev"
9223 msgstr ""
9224
9225 # type: verbatim
9226 #: ../src/guestfs-actions.pod:3042
9227 #, no-wrap
9228 msgid ""
9229 " int\n"
9230 " guestfs_is_chardev (guestfs_h *g,\n"
9231 "                     const char *path);\n"
9232 "\n"
9233 msgstr ""
9234
9235 # type: textblock
9236 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2119
9237 msgid ""
9238 "This returns C<true> if and only if there is a character device with the "
9239 "given C<path> name."
9240 msgstr ""
9241
9242 # type: =head2
9243 #: ../src/guestfs-actions.pod:3055
9244 msgid "guestfs_is_config"
9245 msgstr ""
9246
9247 # type: verbatim
9248 #: ../src/guestfs-actions.pod:3057
9249 #, no-wrap
9250 msgid ""
9251 " int\n"
9252 " guestfs_is_config (guestfs_h *g);\n"
9253 "\n"
9254 msgstr ""
9255
9256 # type: textblock
9257 #: ../src/guestfs-actions.pod:3060 ../fish/guestfish-actions.pod:2128
9258 msgid ""
9259 "This returns true iff this handle is being configured (in the C<CONFIG> "
9260 "state)."
9261 msgstr ""
9262
9263 # type: =head2
9264 #: ../src/guestfs-actions.pod:3069
9265 msgid "guestfs_is_dir"
9266 msgstr ""
9267
9268 # type: verbatim
9269 #: ../src/guestfs-actions.pod:3071
9270 #, no-wrap
9271 msgid ""
9272 " int\n"
9273 " guestfs_is_dir (guestfs_h *g,\n"
9274 "                 const char *path);\n"
9275 "\n"
9276 msgstr ""
9277
9278 # type: textblock
9279 #: ../src/guestfs-actions.pod:3075 ../fish/guestfish-actions.pod:2137
9280 msgid ""
9281 "This returns C<true> if and only if there is a directory with the given "
9282 "C<path> name.  Note that it returns false for other objects like files."
9283 msgstr ""
9284
9285 # type: =head2
9286 #: ../src/guestfs-actions.pod:3085
9287 msgid "guestfs_is_fifo"
9288 msgstr ""
9289
9290 # type: verbatim
9291 #: ../src/guestfs-actions.pod:3087
9292 #, no-wrap
9293 msgid ""
9294 " int\n"
9295 " guestfs_is_fifo (guestfs_h *g,\n"
9296 "                  const char *path);\n"
9297 "\n"
9298 msgstr ""
9299
9300 # type: textblock
9301 #: ../src/guestfs-actions.pod:3091 ../fish/guestfish-actions.pod:2147
9302 msgid ""
9303 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9304 "given C<path> name."
9305 msgstr ""
9306
9307 # type: =head2
9308 #: ../src/guestfs-actions.pod:3100
9309 msgid "guestfs_is_file"
9310 msgstr ""
9311
9312 # type: verbatim
9313 #: ../src/guestfs-actions.pod:3102
9314 #, no-wrap
9315 msgid ""
9316 " int\n"
9317 " guestfs_is_file (guestfs_h *g,\n"
9318 "                  const char *path);\n"
9319 "\n"
9320 msgstr ""
9321
9322 # type: textblock
9323 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2156
9324 msgid ""
9325 "This returns C<true> if and only if there is a regular file with the given "
9326 "C<path> name.  Note that it returns false for other objects like "
9327 "directories."
9328 msgstr ""
9329
9330 # type: =head2
9331 #: ../src/guestfs-actions.pod:3116
9332 msgid "guestfs_is_launching"
9333 msgstr ""
9334
9335 # type: verbatim
9336 #: ../src/guestfs-actions.pod:3118
9337 #, no-wrap
9338 msgid ""
9339 " int\n"
9340 " guestfs_is_launching (guestfs_h *g);\n"
9341 "\n"
9342 msgstr ""
9343
9344 # type: textblock
9345 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2166
9346 msgid ""
9347 "This returns true iff this handle is launching the subprocess (in the "
9348 "C<LAUNCHING> state)."
9349 msgstr ""
9350
9351 # type: =head2
9352 #: ../src/guestfs-actions.pod:3130
9353 msgid "guestfs_is_lv"
9354 msgstr ""
9355
9356 # type: verbatim
9357 #: ../src/guestfs-actions.pod:3132
9358 #, no-wrap
9359 msgid ""
9360 " int\n"
9361 " guestfs_is_lv (guestfs_h *g,\n"
9362 "                const char *device);\n"
9363 "\n"
9364 msgstr ""
9365
9366 # type: textblock
9367 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2175
9368 msgid ""
9369 "This command tests whether C<device> is a logical volume, and returns true "
9370 "iff this is the case."
9371 msgstr ""
9372
9373 # type: =head2
9374 #: ../src/guestfs-actions.pod:3143
9375 msgid "guestfs_is_ready"
9376 msgstr ""
9377
9378 # type: verbatim
9379 #: ../src/guestfs-actions.pod:3145
9380 #, no-wrap
9381 msgid ""
9382 " int\n"
9383 " guestfs_is_ready (guestfs_h *g);\n"
9384 "\n"
9385 msgstr ""
9386
9387 # type: textblock
9388 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2182
9389 msgid ""
9390 "This returns true iff this handle is ready to accept commands (in the "
9391 "C<READY> state)."
9392 msgstr ""
9393
9394 # type: =head2
9395 #: ../src/guestfs-actions.pod:3157
9396 msgid "guestfs_is_socket"
9397 msgstr ""
9398
9399 # type: verbatim
9400 #: ../src/guestfs-actions.pod:3159
9401 #, no-wrap
9402 msgid ""
9403 " int\n"
9404 " guestfs_is_socket (guestfs_h *g,\n"
9405 "                    const char *path);\n"
9406 "\n"
9407 msgstr ""
9408
9409 # type: textblock
9410 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2191
9411 msgid ""
9412 "This returns C<true> if and only if there is a Unix domain socket with the "
9413 "given C<path> name."
9414 msgstr ""
9415
9416 # type: =head2
9417 #: ../src/guestfs-actions.pod:3172
9418 msgid "guestfs_is_symlink"
9419 msgstr ""
9420
9421 # type: verbatim
9422 #: ../src/guestfs-actions.pod:3174
9423 #, no-wrap
9424 msgid ""
9425 " int\n"
9426 " guestfs_is_symlink (guestfs_h *g,\n"
9427 "                     const char *path);\n"
9428 "\n"
9429 msgstr ""
9430
9431 # type: textblock
9432 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2200
9433 msgid ""
9434 "This returns C<true> if and only if there is a symbolic link with the given "
9435 "C<path> name."
9436 msgstr ""
9437
9438 # type: =head2
9439 #: ../src/guestfs-actions.pod:3187
9440 msgid "guestfs_kill_subprocess"
9441 msgstr ""
9442
9443 # type: verbatim
9444 #: ../src/guestfs-actions.pod:3189
9445 #, no-wrap
9446 msgid ""
9447 " int\n"
9448 " guestfs_kill_subprocess (guestfs_h *g);\n"
9449 "\n"
9450 msgstr ""
9451
9452 # type: textblock
9453 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2209
9454 msgid "This kills the qemu subprocess.  You should never need to call this."
9455 msgstr ""
9456
9457 # type: =head2
9458 #: ../src/guestfs-actions.pod:3198
9459 msgid "guestfs_launch"
9460 msgstr ""
9461
9462 # type: verbatim
9463 #: ../src/guestfs-actions.pod:3200
9464 #, no-wrap
9465 msgid ""
9466 " int\n"
9467 " guestfs_launch (guestfs_h *g);\n"
9468 "\n"
9469 msgstr ""
9470
9471 # type: textblock
9472 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2217
9473 msgid ""
9474 "Internally libguestfs is implemented by running a virtual machine using "
9475 "L<qemu(1)>."
9476 msgstr ""
9477
9478 # type: textblock
9479 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
9480 msgid ""
9481 "You should call this after configuring the handle (eg. adding drives) but "
9482 "before performing any actions."
9483 msgstr ""
9484
9485 # type: =head2
9486 #: ../src/guestfs-actions.pod:3213
9487 msgid "guestfs_lchown"
9488 msgstr ""
9489
9490 # type: verbatim
9491 #: ../src/guestfs-actions.pod:3215
9492 #, no-wrap
9493 msgid ""
9494 " int\n"
9495 " guestfs_lchown (guestfs_h *g,\n"
9496 "                 int owner,\n"
9497 "                 int group,\n"
9498 "                 const char *path);\n"
9499 "\n"
9500 msgstr ""
9501
9502 # type: textblock
9503 #: ../src/guestfs-actions.pod:3221
9504 msgid ""
9505 "Change the file owner to C<owner> and group to C<group>.  This is like "
9506 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9507 "changed, not the target."
9508 msgstr ""
9509
9510 # type: =head2
9511 #: ../src/guestfs-actions.pod:3233
9512 msgid "guestfs_lgetxattrs"
9513 msgstr ""
9514
9515 # type: verbatim
9516 #: ../src/guestfs-actions.pod:3235
9517 #, no-wrap
9518 msgid ""
9519 " struct guestfs_xattr_list *\n"
9520 " guestfs_lgetxattrs (guestfs_h *g,\n"
9521 "                     const char *path);\n"
9522 "\n"
9523 msgstr ""
9524
9525 # type: textblock
9526 #: ../src/guestfs-actions.pod:3239
9527 msgid ""
9528 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9529 "then it returns the extended attributes of the link itself."
9530 msgstr ""
9531
9532 # type: =head2
9533 #: ../src/guestfs-actions.pod:3249
9534 msgid "guestfs_list_devices"
9535 msgstr ""
9536
9537 # type: verbatim
9538 #: ../src/guestfs-actions.pod:3251
9539 #, no-wrap
9540 msgid ""
9541 " char **\n"
9542 " guestfs_list_devices (guestfs_h *g);\n"
9543 "\n"
9544 msgstr ""
9545
9546 # type: textblock
9547 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2247
9548 msgid "List all the block devices."
9549 msgstr ""
9550
9551 # type: textblock
9552 #: ../src/guestfs-actions.pod:3256 ../fish/guestfish-actions.pod:2249
9553 msgid "The full block device names are returned, eg. C</dev/sda>."
9554 msgstr ""
9555
9556 # type: =head2
9557 #: ../src/guestfs-actions.pod:3266
9558 msgid "guestfs_list_filesystems"
9559 msgstr ""
9560
9561 # type: verbatim
9562 #: ../src/guestfs-actions.pod:3268
9563 #, no-wrap
9564 msgid ""
9565 " char **\n"
9566 " guestfs_list_filesystems (guestfs_h *g);\n"
9567 "\n"
9568 msgstr ""
9569
9570 # type: textblock
9571 #: ../src/guestfs-actions.pod:3271 ../fish/guestfish-actions.pod:2257
9572 msgid ""
9573 "This inspection command looks for filesystems on partitions, block devices "
9574 "and logical volumes, returning a list of devices containing filesystems and "
9575 "their type."
9576 msgstr ""
9577
9578 # type: textblock
9579 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2261
9580 msgid ""
9581 "The return value is a hash, where the keys are the devices containing "
9582 "filesystems, and the values are the filesystem types.  For example:"
9583 msgstr ""
9584
9585 # type: verbatim
9586 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2265
9587 #, no-wrap
9588 msgid ""
9589 " \"/dev/sda1\" => \"ntfs\"\n"
9590 " \"/dev/sda2\" => \"ext2\"\n"
9591 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9592 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9593 "\n"
9594 msgstr ""
9595
9596 # type: textblock
9597 #: ../src/guestfs-actions.pod:3284 ../fish/guestfish-actions.pod:2270
9598 msgid ""
9599 "The value can have the special value \"unknown\", meaning the content of the "
9600 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9601 msgstr ""
9602
9603 # type: textblock
9604 #: ../src/guestfs-actions.pod:3288
9605 msgid ""
9606 "This command runs other libguestfs commands, which might include "
9607 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9608 "soon after launch and only when nothing is mounted."
9609 msgstr ""
9610
9611 # type: textblock
9612 #: ../src/guestfs-actions.pod:3292
9613 msgid ""
9614 "Not all of the filesystems returned will be mountable.  In particular, swap "
9615 "partitions are returned in the list.  Also this command does not check that "
9616 "each filesystem found is valid and mountable, and some filesystems might be "
9617 "mountable but require special options.  Filesystems may not all belong to a "
9618 "single logical operating system (use C<guestfs_inspect_os> to look for "
9619 "OSes)."
9620 msgstr ""
9621
9622 # type: textblock
9623 #: ../src/guestfs-actions.pod:3306 ../src/guestfs-actions.pod:4829
9624 msgid "(Added in 1.5.15)"
9625 msgstr ""
9626
9627 # type: =head2
9628 #: ../src/guestfs-actions.pod:3308
9629 msgid "guestfs_list_partitions"
9630 msgstr ""
9631
9632 # type: verbatim
9633 #: ../src/guestfs-actions.pod:3310
9634 #, no-wrap
9635 msgid ""
9636 " char **\n"
9637 " guestfs_list_partitions (guestfs_h *g);\n"
9638 "\n"
9639 msgstr ""
9640
9641 # type: textblock
9642 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:2290
9643 msgid "List all the partitions detected on all block devices."
9644 msgstr ""
9645
9646 # type: textblock
9647 #: ../src/guestfs-actions.pod:3315 ../fish/guestfish-actions.pod:2292
9648 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9649 msgstr ""
9650
9651 # type: textblock
9652 #: ../src/guestfs-actions.pod:3317
9653 msgid ""
9654 "This does not return logical volumes.  For that you will need to call "
9655 "C<guestfs_lvs>."
9656 msgstr ""
9657
9658 # type: =head2
9659 #: ../src/guestfs-actions.pod:3328
9660 msgid "guestfs_ll"
9661 msgstr ""
9662
9663 # type: verbatim
9664 #: ../src/guestfs-actions.pod:3330
9665 #, no-wrap
9666 msgid ""
9667 " char *\n"
9668 " guestfs_ll (guestfs_h *g,\n"
9669 "             const char *directory);\n"
9670 "\n"
9671 msgstr ""
9672
9673 # type: textblock
9674 #: ../src/guestfs-actions.pod:3334 ../fish/guestfish-actions.pod:2303
9675 msgid ""
9676 "List the files in C<directory> (relative to the root directory, there is no "
9677 "cwd) in the format of 'ls -la'."
9678 msgstr ""
9679
9680 # type: textblock
9681 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2306
9682 msgid ""
9683 "This command is mostly useful for interactive sessions.  It is I<not> "
9684 "intended that you try to parse the output string."
9685 msgstr ""
9686
9687 # type: =head2
9688 #: ../src/guestfs-actions.pod:3345
9689 msgid "guestfs_ln"
9690 msgstr ""
9691
9692 # type: verbatim
9693 #: ../src/guestfs-actions.pod:3347
9694 #, no-wrap
9695 msgid ""
9696 " int\n"
9697 " guestfs_ln (guestfs_h *g,\n"
9698 "             const char *target,\n"
9699 "             const char *linkname);\n"
9700 "\n"
9701 msgstr ""
9702
9703 # type: textblock
9704 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2313
9705 msgid "This command creates a hard link using the C<ln> command."
9706 msgstr ""
9707
9708 # type: =head2
9709 #: ../src/guestfs-actions.pod:3358
9710 msgid "guestfs_ln_f"
9711 msgstr ""
9712
9713 # type: verbatim
9714 #: ../src/guestfs-actions.pod:3360
9715 #, no-wrap
9716 msgid ""
9717 " int\n"
9718 " guestfs_ln_f (guestfs_h *g,\n"
9719 "               const char *target,\n"
9720 "               const char *linkname);\n"
9721 "\n"
9722 msgstr ""
9723
9724 # type: textblock
9725 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2319
9726 msgid ""
9727 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9728 "option removes the link (C<linkname>) if it exists already."
9729 msgstr ""
9730
9731 # type: =head2
9732 #: ../src/guestfs-actions.pod:3372
9733 msgid "guestfs_ln_s"
9734 msgstr ""
9735
9736 # type: verbatim
9737 #: ../src/guestfs-actions.pod:3374
9738 #, no-wrap
9739 msgid ""
9740 " int\n"
9741 " guestfs_ln_s (guestfs_h *g,\n"
9742 "               const char *target,\n"
9743 "               const char *linkname);\n"
9744 "\n"
9745 msgstr ""
9746
9747 # type: textblock
9748 #: ../src/guestfs-actions.pod:3379 ../fish/guestfish-actions.pod:2326
9749 msgid "This command creates a symbolic link using the C<ln -s> command."
9750 msgstr ""
9751
9752 # type: =head2
9753 #: ../src/guestfs-actions.pod:3385
9754 msgid "guestfs_ln_sf"
9755 msgstr ""
9756
9757 # type: verbatim
9758 #: ../src/guestfs-actions.pod:3387
9759 #, no-wrap
9760 msgid ""
9761 " int\n"
9762 " guestfs_ln_sf (guestfs_h *g,\n"
9763 "                const char *target,\n"
9764 "                const char *linkname);\n"
9765 "\n"
9766 msgstr ""
9767
9768 # type: textblock
9769 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2332
9770 msgid ""
9771 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9772 "option removes the link (C<linkname>) if it exists already."
9773 msgstr ""
9774
9775 # type: =head2
9776 #: ../src/guestfs-actions.pod:3399
9777 msgid "guestfs_lremovexattr"
9778 msgstr ""
9779
9780 # type: verbatim
9781 #: ../src/guestfs-actions.pod:3401
9782 #, no-wrap
9783 msgid ""
9784 " int\n"
9785 " guestfs_lremovexattr (guestfs_h *g,\n"
9786 "                       const char *xattr,\n"
9787 "                       const char *path);\n"
9788 "\n"
9789 msgstr ""
9790
9791 # type: textblock
9792 #: ../src/guestfs-actions.pod:3406
9793 msgid ""
9794 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9795 "link, then it removes an extended attribute of the link itself."
9796 msgstr ""
9797
9798 # type: =head2
9799 #: ../src/guestfs-actions.pod:3414
9800 msgid "guestfs_ls"
9801 msgstr ""
9802
9803 # type: verbatim
9804 #: ../src/guestfs-actions.pod:3416
9805 #, no-wrap
9806 msgid ""
9807 " char **\n"
9808 " guestfs_ls (guestfs_h *g,\n"
9809 "             const char *directory);\n"
9810 "\n"
9811 msgstr ""
9812
9813 # type: textblock
9814 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2347
9815 msgid ""
9816 "List the files in C<directory> (relative to the root directory, there is no "
9817 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9818 "shown."
9819 msgstr ""
9820
9821 # type: textblock
9822 #: ../src/guestfs-actions.pod:3424
9823 msgid ""
9824 "This command is mostly useful for interactive sessions.  Programs should "
9825 "probably use C<guestfs_readdir> instead."
9826 msgstr ""
9827
9828 # type: =head2
9829 #: ../src/guestfs-actions.pod:3433
9830 msgid "guestfs_lsetxattr"
9831 msgstr ""
9832
9833 # type: verbatim
9834 #: ../src/guestfs-actions.pod:3435
9835 #, no-wrap
9836 msgid ""
9837 " int\n"
9838 " guestfs_lsetxattr (guestfs_h *g,\n"
9839 "                    const char *xattr,\n"
9840 "                    const char *val,\n"
9841 "                    int vallen,\n"
9842 "                    const char *path);\n"
9843 "\n"
9844 msgstr ""
9845
9846 # type: textblock
9847 #: ../src/guestfs-actions.pod:3442
9848 msgid ""
9849 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9850 "then it sets an extended attribute of the link itself."
9851 msgstr ""
9852
9853 # type: =head2
9854 #: ../src/guestfs-actions.pod:3450
9855 msgid "guestfs_lstat"
9856 msgstr ""
9857
9858 # type: verbatim
9859 #: ../src/guestfs-actions.pod:3452
9860 #, no-wrap
9861 msgid ""
9862 " struct guestfs_stat *\n"
9863 " guestfs_lstat (guestfs_h *g,\n"
9864 "                const char *path);\n"
9865 "\n"
9866 msgstr ""
9867
9868 # type: textblock
9869 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5883 ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
9870 msgid "Returns file information for the given C<path>."
9871 msgstr ""
9872
9873 # type: textblock
9874 #: ../src/guestfs-actions.pod:3458
9875 msgid ""
9876 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9877 "link, then the link is stat-ed, not the file it refers to."
9878 msgstr ""
9879
9880 # type: textblock
9881 #: ../src/guestfs-actions.pod:3462 ../fish/guestfish-actions.pod:2372
9882 msgid "This is the same as the C<lstat(2)> system call."
9883 msgstr ""
9884
9885 # type: textblock
9886 #: ../src/guestfs-actions.pod:3464 ../src/guestfs-actions.pod:5887
9887 msgid ""
9888 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9889 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9890 msgstr ""
9891
9892 # type: textblock
9893 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:5891 ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:6290
9894 msgid "(Added in 0.9.2)"
9895 msgstr ""
9896
9897 # type: =head2
9898 #: ../src/guestfs-actions.pod:3470
9899 msgid "guestfs_lstatlist"
9900 msgstr ""
9901
9902 # type: verbatim
9903 #: ../src/guestfs-actions.pod:3472
9904 #, no-wrap
9905 msgid ""
9906 " struct guestfs_stat_list *\n"
9907 " guestfs_lstatlist (guestfs_h *g,\n"
9908 "                    const char *path,\n"
9909 "                    char *const *names);\n"
9910 "\n"
9911 msgstr ""
9912
9913 # type: textblock
9914 #: ../src/guestfs-actions.pod:3477
9915 msgid ""
9916 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9917 "files, where all files are in the directory C<path>.  C<names> is the list "
9918 "of files from this directory."
9919 msgstr ""
9920
9921 # type: textblock
9922 #: ../src/guestfs-actions.pod:3481 ../fish/guestfish-actions.pod:2382
9923 msgid ""
9924 "On return you get a list of stat structs, with a one-to-one correspondence "
9925 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9926 "then the C<ino> field of that structure is set to C<-1>."
9927 msgstr ""
9928
9929 # type: textblock
9930 #: ../src/guestfs-actions.pod:3486
9931 msgid ""
9932 "This call is intended for programs that want to efficiently list a directory "
9933 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9934 "for a similarly efficient call for getting extended attributes.  Very long "
9935 "directory listings might cause the protocol message size to be exceeded, "
9936 "causing this call to fail.  The caller must split up such requests into "
9937 "smaller groups of names."
9938 msgstr ""
9939
9940 # type: textblock
9941 #: ../src/guestfs-actions.pod:3494
9942 msgid ""
9943 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
9944 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
9945 msgstr ""
9946
9947 # type: =head2
9948 #: ../src/guestfs-actions.pod:3500
9949 msgid "guestfs_luks_add_key"
9950 msgstr ""
9951
9952 # type: verbatim
9953 #: ../src/guestfs-actions.pod:3502
9954 #, no-wrap
9955 msgid ""
9956 " int\n"
9957 " guestfs_luks_add_key (guestfs_h *g,\n"
9958 "                       const char *device,\n"
9959 "                       const char *key,\n"
9960 "                       const char *newkey,\n"
9961 "                       int keyslot);\n"
9962 "\n"
9963 msgstr ""
9964
9965 # type: textblock
9966 #: ../src/guestfs-actions.pod:3509 ../fish/guestfish-actions.pod:2399
9967 msgid ""
9968 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9969 "existing key, and is used to access the device.  C<newkey> is the new key to "
9970 "add.  C<keyslot> is the key slot that will be replaced."
9971 msgstr ""
9972
9973 # type: textblock
9974 #: ../src/guestfs-actions.pod:3514
9975 msgid ""
9976 "Note that if C<keyslot> already contains a key, then this command will "
9977 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9978 msgstr ""
9979
9980 # type: textblock
9981 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:3583 ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3635 ../src/guestfs-actions.pod:3654
9982 msgid ""
9983 "This function takes a key or passphrase parameter which could contain "
9984 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9985 "information."
9986 msgstr ""
9987
9988 # type: textblock
9989 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3564 ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3607
9990 msgid "(Added in 1.5.2)"
9991 msgstr ""
9992
9993 # type: =head2
9994 #: ../src/guestfs-actions.pod:3526
9995 msgid "guestfs_luks_close"
9996 msgstr ""
9997
9998 # type: verbatim
9999 #: ../src/guestfs-actions.pod:3528
10000 #, no-wrap
10001 msgid ""
10002 " int\n"
10003 " guestfs_luks_close (guestfs_h *g,\n"
10004 "                     const char *device);\n"
10005 "\n"
10006 msgstr ""
10007
10008 # type: textblock
10009 #: ../src/guestfs-actions.pod:3532
10010 msgid ""
10011 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10012 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10013 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10014 "underlying block device."
10015 msgstr ""
10016
10017 # type: textblock
10018 #: ../src/guestfs-actions.pod:3540 ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3658 ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:3756
10019 msgid "(Added in 1.5.1)"
10020 msgstr ""
10021
10022 # type: =head2
10023 #: ../src/guestfs-actions.pod:3542
10024 msgid "guestfs_luks_format"
10025 msgstr ""
10026
10027 # type: verbatim
10028 #: ../src/guestfs-actions.pod:3544
10029 #, no-wrap
10030 msgid ""
10031 " int\n"
10032 " guestfs_luks_format (guestfs_h *g,\n"
10033 "                      const char *device,\n"
10034 "                      const char *key,\n"
10035 "                      int keyslot);\n"
10036 "\n"
10037 msgstr ""
10038
10039 # type: textblock
10040 #: ../src/guestfs-actions.pod:3550 ../fish/guestfish-actions.pod:2425
10041 msgid ""
10042 "This command erases existing data on C<device> and formats the device as a "
10043 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10044 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10045 msgstr ""
10046
10047 # type: textblock
10048 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3580 ../src/guestfs-actions.pod:3720 ../src/guestfs-actions.pod:4580 ../src/guestfs-actions.pod:5343 ../src/guestfs-actions.pod:5718 ../src/guestfs-actions.pod:5741 ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:6917 ../fish/guestfish-actions.pod:2433 ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530 ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3567 ../fish/guestfish-actions.pod:3847 ../fish/guestfish-actions.pod:3863 ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:4593
10049 msgid ""
10050 "B<This command is dangerous.  Without careful use you can easily destroy all "
10051 "your data>."
10052 msgstr ""
10053
10054 # type: =head2
10055 #: ../src/guestfs-actions.pod:3566
10056 msgid "guestfs_luks_format_cipher"
10057 msgstr ""
10058
10059 # type: verbatim
10060 #: ../src/guestfs-actions.pod:3568
10061 #, no-wrap
10062 msgid ""
10063 " int\n"
10064 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10065 "                             const char *device,\n"
10066 "                             const char *key,\n"
10067 "                             int keyslot,\n"
10068 "                             const char *cipher);\n"
10069 "\n"
10070 msgstr ""
10071
10072 # type: textblock
10073 #: ../src/guestfs-actions.pod:3575
10074 msgid ""
10075 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10076 "set the C<cipher> used."
10077 msgstr ""
10078
10079 # type: =head2
10080 #: ../src/guestfs-actions.pod:3589
10081 msgid "guestfs_luks_kill_slot"
10082 msgstr ""
10083
10084 # type: verbatim
10085 #: ../src/guestfs-actions.pod:3591
10086 #, no-wrap
10087 msgid ""
10088 " int\n"
10089 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10090 "                         const char *device,\n"
10091 "                         const char *key,\n"
10092 "                         int keyslot);\n"
10093 "\n"
10094 msgstr ""
10095
10096 # type: textblock
10097 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2453
10098 msgid ""
10099 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10100 "device C<device>.  C<key> must be one of the I<other> keys."
10101 msgstr ""
10102
10103 # type: =head2
10104 #: ../src/guestfs-actions.pod:3609
10105 msgid "guestfs_luks_open"
10106 msgstr ""
10107
10108 # type: verbatim
10109 #: ../src/guestfs-actions.pod:3611
10110 #, no-wrap
10111 msgid ""
10112 " int\n"
10113 " guestfs_luks_open (guestfs_h *g,\n"
10114 "                    const char *device,\n"
10115 "                    const char *key,\n"
10116 "                    const char *mapname);\n"
10117 "\n"
10118 msgstr ""
10119
10120 # type: textblock
10121 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2464
10122 msgid ""
10123 "This command opens a block device which has been encrypted according to the "
10124 "Linux Unified Key Setup (LUKS) standard."
10125 msgstr ""
10126
10127 # type: textblock
10128 #: ../src/guestfs-actions.pod:3620 ../fish/guestfish-actions.pod:2467
10129 msgid "C<device> is the encrypted block device or partition."
10130 msgstr ""
10131
10132 # type: textblock
10133 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2469
10134 msgid ""
10135 "The caller must supply one of the keys associated with the LUKS block "
10136 "device, in the C<key> parameter."
10137 msgstr ""
10138
10139 # type: textblock
10140 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2472
10141 msgid ""
10142 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10143 "writes to this block device are decrypted from and encrypted to the "
10144 "underlying C<device> respectively."
10145 msgstr ""
10146
10147 # type: textblock
10148 #: ../src/guestfs-actions.pod:3629
10149 msgid ""
10150 "If this block device contains LVM volume groups, then calling "
10151 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10152 "visible."
10153 msgstr ""
10154
10155 # type: =head2
10156 #: ../src/guestfs-actions.pod:3641
10157 msgid "guestfs_luks_open_ro"
10158 msgstr ""
10159
10160 # type: verbatim
10161 #: ../src/guestfs-actions.pod:3643
10162 #, no-wrap
10163 msgid ""
10164 " int\n"
10165 " guestfs_luks_open_ro (guestfs_h *g,\n"
10166 "                       const char *device,\n"
10167 "                       const char *key,\n"
10168 "                       const char *mapname);\n"
10169 "\n"
10170 msgstr ""
10171
10172 # type: textblock
10173 #: ../src/guestfs-actions.pod:3649
10174 msgid ""
10175 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10176 "created."
10177 msgstr ""
10178
10179 # type: =head2
10180 #: ../src/guestfs-actions.pod:3660
10181 msgid "guestfs_lvcreate"
10182 msgstr ""
10183
10184 # type: verbatim
10185 #: ../src/guestfs-actions.pod:3662
10186 #, no-wrap
10187 msgid ""
10188 " int\n"
10189 " guestfs_lvcreate (guestfs_h *g,\n"
10190 "                   const char *logvol,\n"
10191 "                   const char *volgroup,\n"
10192 "                   int mbytes);\n"
10193 "\n"
10194 msgstr ""
10195
10196 # type: textblock
10197 #: ../src/guestfs-actions.pod:3668 ../fish/guestfish-actions.pod:2497
10198 msgid ""
10199 "This creates an LVM logical volume called C<logvol> on the volume group "
10200 "C<volgroup>, with C<size> megabytes."
10201 msgstr ""
10202
10203 # type: =head2
10204 #: ../src/guestfs-actions.pod:3675
10205 msgid "guestfs_lvm_canonical_lv_name"
10206 msgstr ""
10207
10208 # type: verbatim
10209 #: ../src/guestfs-actions.pod:3677
10210 #, no-wrap
10211 msgid ""
10212 " char *\n"
10213 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10214 "                                const char *lvname);\n"
10215 "\n"
10216 msgstr ""
10217
10218 # type: textblock
10219 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2504
10220 msgid ""
10221 "This converts alternative naming schemes for LVs that you might find to the "
10222 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
10223 "C</dev/VG/LV>."
10224 msgstr ""
10225
10226 # type: textblock
10227 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2508
10228 msgid ""
10229 "This command returns an error if the C<lvname> parameter does not refer to a "
10230 "logical volume."
10231 msgstr ""
10232
10233 # type: textblock
10234 #: ../src/guestfs-actions.pod:3688
10235 msgid "See also C<guestfs_is_lv>."
10236 msgstr ""
10237
10238 # type: textblock
10239 #: ../src/guestfs-actions.pod:3693
10240 msgid "(Added in 1.5.24)"
10241 msgstr ""
10242
10243 # type: =head2
10244 #: ../src/guestfs-actions.pod:3695
10245 msgid "guestfs_lvm_clear_filter"
10246 msgstr ""
10247
10248 # type: verbatim
10249 #: ../src/guestfs-actions.pod:3697
10250 #, no-wrap
10251 msgid ""
10252 " int\n"
10253 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10254 "\n"
10255 msgstr ""
10256
10257 # type: textblock
10258 #: ../src/guestfs-actions.pod:3700
10259 msgid ""
10260 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10261 "see every block device."
10262 msgstr ""
10263
10264 # type: textblock
10265 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3745 ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10266 msgid "This command also clears the LVM cache and performs a volume group scan."
10267 msgstr ""
10268
10269 # type: =head2
10270 #: ../src/guestfs-actions.pod:3710
10271 msgid "guestfs_lvm_remove_all"
10272 msgstr ""
10273
10274 # type: verbatim
10275 #: ../src/guestfs-actions.pod:3712
10276 #, no-wrap
10277 msgid ""
10278 " int\n"
10279 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10280 "\n"
10281 msgstr ""
10282
10283 # type: textblock
10284 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2527
10285 msgid ""
10286 "This command removes all LVM logical volumes, volume groups and physical "
10287 "volumes."
10288 msgstr ""
10289
10290 # type: =head2
10291 #: ../src/guestfs-actions.pod:3725
10292 msgid "guestfs_lvm_set_filter"
10293 msgstr ""
10294
10295 # type: verbatim
10296 #: ../src/guestfs-actions.pod:3727
10297 #, no-wrap
10298 msgid ""
10299 " int\n"
10300 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10301 "                         char *const *devices);\n"
10302 "\n"
10303 msgstr ""
10304
10305 # type: textblock
10306 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2537
10307 msgid ""
10308 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10309 "block devices in the list C<devices>, and will ignore all other attached "
10310 "block devices."
10311 msgstr ""
10312
10313 # type: textblock
10314 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2541
10315 msgid ""
10316 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10317 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10318 "there are two types of duplication possible: either cloned PVs/VGs which "
10319 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10320 "same name.  In normal operation you cannot create this situation, but you "
10321 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10322 "inside the LVM metadata."
10323 msgstr ""
10324
10325 # type: textblock
10326 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2554
10327 msgid "You can filter whole block devices or individual partitions."
10328 msgstr ""
10329
10330 # type: textblock
10331 #: ../src/guestfs-actions.pod:3750 ../fish/guestfish-actions.pod:2556
10332 msgid ""
10333 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10334 "filesystem), even if you are not filtering out that VG."
10335 msgstr ""
10336
10337 # type: =head2
10338 #: ../src/guestfs-actions.pod:3758
10339 msgid "guestfs_lvremove"
10340 msgstr ""
10341
10342 # type: verbatim
10343 #: ../src/guestfs-actions.pod:3760
10344 #, no-wrap
10345 msgid ""
10346 " int\n"
10347 " guestfs_lvremove (guestfs_h *g,\n"
10348 "                   const char *device);\n"
10349 "\n"
10350 msgstr ""
10351
10352 # type: textblock
10353 #: ../src/guestfs-actions.pod:3764 ../fish/guestfish-actions.pod:2564
10354 msgid ""
10355 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10356 "LV, such as C</dev/VG/LV>."
10357 msgstr ""
10358
10359 # type: textblock
10360 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2567
10361 msgid ""
10362 "You can also remove all LVs in a volume group by specifying the VG name, "
10363 "C</dev/VG>."
10364 msgstr ""
10365
10366 # type: textblock
10367 #: ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:4926 ../src/guestfs-actions.pod:6656
10368 msgid "(Added in 1.0.13)"
10369 msgstr ""
10370
10371 # type: =head2
10372 #: ../src/guestfs-actions.pod:3774
10373 msgid "guestfs_lvrename"
10374 msgstr ""
10375
10376 # type: verbatim
10377 #: ../src/guestfs-actions.pod:3776
10378 #, no-wrap
10379 msgid ""
10380 " int\n"
10381 " guestfs_lvrename (guestfs_h *g,\n"
10382 "                   const char *logvol,\n"
10383 "                   const char *newlogvol);\n"
10384 "\n"
10385 msgstr ""
10386
10387 # type: textblock
10388 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2574
10389 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10390 msgstr ""
10391
10392 # type: textblock
10393 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:6669
10394 msgid "(Added in 1.0.83)"
10395 msgstr ""
10396
10397 # type: =head2
10398 #: ../src/guestfs-actions.pod:3787
10399 msgid "guestfs_lvresize"
10400 msgstr ""
10401
10402 # type: verbatim
10403 #: ../src/guestfs-actions.pod:3789
10404 #, no-wrap
10405 msgid ""
10406 " int\n"
10407 " guestfs_lvresize (guestfs_h *g,\n"
10408 "                   const char *device,\n"
10409 "                   int mbytes);\n"
10410 "\n"
10411 msgstr ""
10412
10413 # type: textblock
10414 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2580
10415 msgid ""
10416 "This resizes (expands or shrinks) an existing LVM logical volume to "
10417 "C<mbytes>.  When reducing, data in the reduced part is lost."
10418 msgstr ""
10419
10420 # type: =head2
10421 #: ../src/guestfs-actions.pod:3802
10422 msgid "guestfs_lvresize_free"
10423 msgstr ""
10424
10425 # type: verbatim
10426 #: ../src/guestfs-actions.pod:3804
10427 #, no-wrap
10428 msgid ""
10429 " int\n"
10430 " guestfs_lvresize_free (guestfs_h *g,\n"
10431 "                        const char *lv,\n"
10432 "                        int percent);\n"
10433 "\n"
10434 msgstr ""
10435
10436 # type: textblock
10437 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2588
10438 msgid ""
10439 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10440 "remaining free space in the volume group.  Commonly you would call this with "
10441 "pc = 100 which expands the logical volume as much as possible, using all "
10442 "remaining free space in the volume group."
10443 msgstr ""
10444
10445 # type: textblock
10446 #: ../src/guestfs-actions.pod:3817
10447 msgid "(Added in 1.3.3)"
10448 msgstr ""
10449
10450 # type: =head2
10451 #: ../src/guestfs-actions.pod:3819
10452 msgid "guestfs_lvs"
10453 msgstr ""
10454
10455 # type: verbatim
10456 #: ../src/guestfs-actions.pod:3821
10457 #, no-wrap
10458 msgid ""
10459 " char **\n"
10460 " guestfs_lvs (guestfs_h *g);\n"
10461 "\n"
10462 msgstr ""
10463
10464 # type: textblock
10465 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2598
10466 msgid ""
10467 "List all the logical volumes detected.  This is the equivalent of the "
10468 "L<lvs(8)> command."
10469 msgstr ""
10470
10471 # type: textblock
10472 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2601
10473 msgid ""
10474 "This returns a list of the logical volume device names "
10475 "(eg. C</dev/VolGroup00/LogVol00>)."
10476 msgstr ""
10477
10478 # type: textblock
10479 #: ../src/guestfs-actions.pod:3830
10480 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10481 msgstr ""
10482
10483 # type: =head2
10484 #: ../src/guestfs-actions.pod:3838
10485 msgid "guestfs_lvs_full"
10486 msgstr ""
10487
10488 # type: verbatim
10489 #: ../src/guestfs-actions.pod:3840
10490 #, no-wrap
10491 msgid ""
10492 " struct guestfs_lvm_lv_list *\n"
10493 " guestfs_lvs_full (guestfs_h *g);\n"
10494 "\n"
10495 msgstr ""
10496
10497 # type: textblock
10498 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2610
10499 msgid ""
10500 "List all the logical volumes detected.  This is the equivalent of the "
10501 "L<lvs(8)> command.  The \"full\" version includes all fields."
10502 msgstr ""
10503
10504 # type: textblock
10505 #: ../src/guestfs-actions.pod:3846
10506 msgid ""
10507 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10508 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
10509 "use>."
10510 msgstr ""
10511
10512 # type: =head2
10513 #: ../src/guestfs-actions.pod:3852
10514 msgid "guestfs_lvuuid"
10515 msgstr ""
10516
10517 # type: verbatim
10518 #: ../src/guestfs-actions.pod:3854
10519 #, no-wrap
10520 msgid ""
10521 " char *\n"
10522 " guestfs_lvuuid (guestfs_h *g,\n"
10523 "                 const char *device);\n"
10524 "\n"
10525 msgstr ""
10526
10527 # type: textblock
10528 #: ../src/guestfs-actions.pod:3858 ../fish/guestfish-actions.pod:2617
10529 msgid "This command returns the UUID of the LVM LV C<device>."
10530 msgstr ""
10531
10532 # type: =head2
10533 #: ../src/guestfs-actions.pod:3865
10534 msgid "guestfs_lxattrlist"
10535 msgstr ""
10536
10537 # type: verbatim
10538 #: ../src/guestfs-actions.pod:3867
10539 #, no-wrap
10540 msgid ""
10541 " struct guestfs_xattr_list *\n"
10542 " guestfs_lxattrlist (guestfs_h *g,\n"
10543 "                     const char *path,\n"
10544 "                     char *const *names);\n"
10545 "\n"
10546 msgstr ""
10547
10548 # type: textblock
10549 #: ../src/guestfs-actions.pod:3872 ../fish/guestfish-actions.pod:2623
10550 msgid ""
10551 "This call allows you to get the extended attributes of multiple files, where "
10552 "all files are in the directory C<path>.  C<names> is the list of files from "
10553 "this directory."
10554 msgstr ""
10555
10556 # type: textblock
10557 #: ../src/guestfs-actions.pod:3876 ../fish/guestfish-actions.pod:2627
10558 msgid ""
10559 "On return you get a flat list of xattr structs which must be interpreted "
10560 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10561 "C<attrval> in this struct is zero-length to indicate there was an error "
10562 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10563 "number (the number of following attributes for this file, which could be "
10564 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10565 "attributes for the first named file.  This repeats for the second and "
10566 "subsequent files."
10567 msgstr ""
10568
10569 # type: textblock
10570 #: ../src/guestfs-actions.pod:3886
10571 msgid ""
10572 "This call is intended for programs that want to efficiently list a directory "
10573 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10574 "a similarly efficient call for getting standard stats.  Very long directory "
10575 "listings might cause the protocol message size to be exceeded, causing this "
10576 "call to fail.  The caller must split up such requests into smaller groups of "
10577 "names."
10578 msgstr ""
10579
10580 # type: =head2
10581 #: ../src/guestfs-actions.pod:3900
10582 msgid "guestfs_mkdir"
10583 msgstr ""
10584
10585 # type: verbatim
10586 #: ../src/guestfs-actions.pod:3902
10587 #, no-wrap
10588 msgid ""
10589 " int\n"
10590 " guestfs_mkdir (guestfs_h *g,\n"
10591 "                const char *path);\n"
10592 "\n"
10593 msgstr ""
10594
10595 # type: textblock
10596 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:2649
10597 msgid "Create a directory named C<path>."
10598 msgstr ""
10599
10600 # type: =head2
10601 #: ../src/guestfs-actions.pod:3912
10602 msgid "guestfs_mkdir_mode"
10603 msgstr ""
10604
10605 # type: verbatim
10606 #: ../src/guestfs-actions.pod:3914
10607 #, no-wrap
10608 msgid ""
10609 " int\n"
10610 " guestfs_mkdir_mode (guestfs_h *g,\n"
10611 "                     const char *path,\n"
10612 "                     int mode);\n"
10613 "\n"
10614 msgstr ""
10615
10616 # type: textblock
10617 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2655
10618 msgid ""
10619 "This command creates a directory, setting the initial permissions of the "
10620 "directory to C<mode>."
10621 msgstr ""
10622
10623 # type: textblock
10624 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2658
10625 msgid ""
10626 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10627 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10628 "other ways."
10629 msgstr ""
10630
10631 # type: textblock
10632 #: ../src/guestfs-actions.pod:3926
10633 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10634 msgstr ""
10635
10636 # type: =head2
10637 #: ../src/guestfs-actions.pod:3932
10638 msgid "guestfs_mkdir_p"
10639 msgstr ""
10640
10641 # type: verbatim
10642 #: ../src/guestfs-actions.pod:3934
10643 #, no-wrap
10644 msgid ""
10645 " int\n"
10646 " guestfs_mkdir_p (guestfs_h *g,\n"
10647 "                  const char *path);\n"
10648 "\n"
10649 msgstr ""
10650
10651 # type: textblock
10652 #: ../src/guestfs-actions.pod:3938 ../fish/guestfish-actions.pod:2668
10653 msgid ""
10654 "Create a directory named C<path>, creating any parent directories as "
10655 "necessary.  This is like the C<mkdir -p> shell command."
10656 msgstr ""
10657
10658 # type: =head2
10659 #: ../src/guestfs-actions.pod:3945
10660 msgid "guestfs_mkdtemp"
10661 msgstr ""
10662
10663 # type: verbatim
10664 #: ../src/guestfs-actions.pod:3947
10665 #, no-wrap
10666 msgid ""
10667 " char *\n"
10668 " guestfs_mkdtemp (guestfs_h *g,\n"
10669 "                  const char *template);\n"
10670 "\n"
10671 msgstr ""
10672
10673 # type: textblock
10674 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2675
10675 msgid ""
10676 "This command creates a temporary directory.  The C<template> parameter "
10677 "should be a full pathname for the temporary directory name with the final "
10678 "six characters being \"XXXXXX\"."
10679 msgstr ""
10680
10681 # type: textblock
10682 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2680
10683 msgid ""
10684 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10685 "being suitable for Windows filesystems."
10686 msgstr ""
10687
10688 # type: textblock
10689 #: ../src/guestfs-actions.pod:3959 ../fish/guestfish-actions.pod:2683
10690 msgid "The name of the temporary directory that was created is returned."
10691 msgstr ""
10692
10693 # type: textblock
10694 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2686
10695 msgid "The temporary directory is created with mode 0700 and is owned by root."
10696 msgstr ""
10697
10698 # type: textblock
10699 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2689
10700 msgid ""
10701 "The caller is responsible for deleting the temporary directory and its "
10702 "contents after use."
10703 msgstr ""
10704
10705 # type: textblock
10706 #: ../src/guestfs-actions.pod:3968 ../fish/guestfish-actions.pod:2692
10707 msgid "See also: L<mkdtemp(3)>"
10708 msgstr ""
10709
10710 # type: =head2
10711 #: ../src/guestfs-actions.pod:3975
10712 msgid "guestfs_mke2fs_J"
10713 msgstr ""
10714
10715 # type: verbatim
10716 #: ../src/guestfs-actions.pod:3977
10717 #, no-wrap
10718 msgid ""
10719 " int\n"
10720 " guestfs_mke2fs_J (guestfs_h *g,\n"
10721 "                   const char *fstype,\n"
10722 "                   int blocksize,\n"
10723 "                   const char *device,\n"
10724 "                   const char *journal);\n"
10725 "\n"
10726 msgstr ""
10727
10728 # type: textblock
10729 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:2698
10730 msgid ""
10731 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10732 "C<journal>.  It is equivalent to the command:"
10733 msgstr ""
10734
10735 # type: verbatim
10736 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:2702
10737 #, no-wrap
10738 msgid ""
10739 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10740 "\n"
10741 msgstr ""
10742
10743 # type: textblock
10744 #: ../src/guestfs-actions.pod:3990
10745 msgid "See also C<guestfs_mke2journal>."
10746 msgstr ""
10747
10748 # type: textblock
10749 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4012 ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:4316
10750 msgid "(Added in 1.0.68)"
10751 msgstr ""
10752
10753 # type: =head2
10754 #: ../src/guestfs-actions.pod:3996
10755 msgid "guestfs_mke2fs_JL"
10756 msgstr ""
10757
10758 # type: verbatim
10759 #: ../src/guestfs-actions.pod:3998
10760 #, no-wrap
10761 msgid ""
10762 " int\n"
10763 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10764 "                    const char *fstype,\n"
10765 "                    int blocksize,\n"
10766 "                    const char *device,\n"
10767 "                    const char *label);\n"
10768 "\n"
10769 msgstr ""
10770
10771 # type: textblock
10772 #: ../src/guestfs-actions.pod:4005 ../fish/guestfish-actions.pod:2710
10773 msgid ""
10774 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10775 "the journal labeled C<label>."
10776 msgstr ""
10777
10778 # type: textblock
10779 #: ../src/guestfs-actions.pod:4008
10780 msgid "See also C<guestfs_mke2journal_L>."
10781 msgstr ""
10782
10783 # type: =head2
10784 #: ../src/guestfs-actions.pod:4014
10785 msgid "guestfs_mke2fs_JU"
10786 msgstr ""
10787
10788 # type: verbatim
10789 #: ../src/guestfs-actions.pod:4016
10790 #, no-wrap
10791 msgid ""
10792 " int\n"
10793 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10794 "                    const char *fstype,\n"
10795 "                    int blocksize,\n"
10796 "                    const char *device,\n"
10797 "                    const char *uuid);\n"
10798 "\n"
10799 msgstr ""
10800
10801 # type: textblock
10802 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2719
10803 msgid ""
10804 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10805 "the journal with UUID C<uuid>."
10806 msgstr ""
10807
10808 # type: textblock
10809 #: ../src/guestfs-actions.pod:4026
10810 msgid "See also C<guestfs_mke2journal_U>."
10811 msgstr ""
10812
10813 # type: =head2
10814 #: ../src/guestfs-actions.pod:4032
10815 msgid "guestfs_mke2journal"
10816 msgstr ""
10817
10818 # type: verbatim
10819 #: ../src/guestfs-actions.pod:4034
10820 #, no-wrap
10821 msgid ""
10822 " int\n"
10823 " guestfs_mke2journal (guestfs_h *g,\n"
10824 "                      int blocksize,\n"
10825 "                      const char *device);\n"
10826 "\n"
10827 msgstr ""
10828
10829 # type: textblock
10830 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:2728
10831 msgid ""
10832 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10833 "command:"
10834 msgstr ""
10835
10836 # type: verbatim
10837 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2731
10838 #, no-wrap
10839 msgid ""
10840 " mke2fs -O journal_dev -b blocksize device\n"
10841 "\n"
10842 msgstr ""
10843
10844 # type: =head2
10845 #: ../src/guestfs-actions.pod:4048
10846 msgid "guestfs_mke2journal_L"
10847 msgstr ""
10848
10849 # type: verbatim
10850 #: ../src/guestfs-actions.pod:4050
10851 #, no-wrap
10852 msgid ""
10853 " int\n"
10854 " guestfs_mke2journal_L (guestfs_h *g,\n"
10855 "                        int blocksize,\n"
10856 "                        const char *label,\n"
10857 "                        const char *device);\n"
10858 "\n"
10859 msgstr ""
10860
10861 # type: textblock
10862 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2737
10863 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10864 msgstr ""
10865
10866 # type: =head2
10867 #: ../src/guestfs-actions.pod:4062
10868 msgid "guestfs_mke2journal_U"
10869 msgstr ""
10870
10871 # type: verbatim
10872 #: ../src/guestfs-actions.pod:4064
10873 #, no-wrap
10874 msgid ""
10875 " int\n"
10876 " guestfs_mke2journal_U (guestfs_h *g,\n"
10877 "                        int blocksize,\n"
10878 "                        const char *uuid,\n"
10879 "                        const char *device);\n"
10880 "\n"
10881 msgstr ""
10882
10883 # type: textblock
10884 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:2743
10885 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10886 msgstr ""
10887
10888 # type: =head2
10889 #: ../src/guestfs-actions.pod:4076
10890 msgid "guestfs_mkfifo"
10891 msgstr ""
10892
10893 # type: verbatim
10894 #: ../src/guestfs-actions.pod:4078
10895 #, no-wrap
10896 msgid ""
10897 " int\n"
10898 " guestfs_mkfifo (guestfs_h *g,\n"
10899 "                 int mode,\n"
10900 "                 const char *path);\n"
10901 "\n"
10902 msgstr ""
10903
10904 # type: textblock
10905 #: ../src/guestfs-actions.pod:4083
10906 msgid ""
10907 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10908 "is just a convenient wrapper around C<guestfs_mknod>."
10909 msgstr ""
10910
10911 # type: =head2
10912 #: ../src/guestfs-actions.pod:4093
10913 msgid "guestfs_mkfs"
10914 msgstr ""
10915
10916 # type: verbatim
10917 #: ../src/guestfs-actions.pod:4095
10918 #, no-wrap
10919 msgid ""
10920 " int\n"
10921 " guestfs_mkfs (guestfs_h *g,\n"
10922 "               const char *fstype,\n"
10923 "               const char *device);\n"
10924 "\n"
10925 msgstr ""
10926
10927 # type: textblock
10928 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2759
10929 msgid ""
10930 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10931 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10932 msgstr ""
10933
10934 # type: =head2
10935 #: ../src/guestfs-actions.pod:4108
10936 msgid "guestfs_mkfs_b"
10937 msgstr ""
10938
10939 # type: verbatim
10940 #: ../src/guestfs-actions.pod:4110
10941 #, no-wrap
10942 msgid ""
10943 " int\n"
10944 " guestfs_mkfs_b (guestfs_h *g,\n"
10945 "                 const char *fstype,\n"
10946 "                 int blocksize,\n"
10947 "                 const char *device);\n"
10948 "\n"
10949 msgstr ""
10950
10951 # type: textblock
10952 #: ../src/guestfs-actions.pod:4116
10953 msgid ""
10954 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10955 "block size of the resulting filesystem.  Supported block sizes depend on the "
10956 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10957 msgstr ""
10958
10959 # type: textblock
10960 #: ../src/guestfs-actions.pod:4121 ../fish/guestfish-actions.pod:2772
10961 msgid ""
10962 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10963 "cluster size."
10964 msgstr ""
10965
10966 # type: =head2
10967 #: ../src/guestfs-actions.pod:4128
10968 msgid "guestfs_mkmountpoint"
10969 msgstr ""
10970
10971 # type: verbatim
10972 #: ../src/guestfs-actions.pod:4130
10973 #, no-wrap
10974 msgid ""
10975 " int\n"
10976 " guestfs_mkmountpoint (guestfs_h *g,\n"
10977 "                       const char *exemptpath);\n"
10978 "\n"
10979 msgstr ""
10980
10981 # type: textblock
10982 #: ../src/guestfs-actions.pod:4134
10983 msgid ""
10984 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10985 "that can be used to create extra mountpoints before mounting the first "
10986 "filesystem."
10987 msgstr ""
10988
10989 # type: textblock
10990 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:2783
10991 msgid ""
10992 "These calls are I<only> necessary in some very limited circumstances, mainly "
10993 "the case where you want to mount a mix of unrelated and/or read-only "
10994 "filesystems together."
10995 msgstr ""
10996
10997 # type: textblock
10998 #: ../src/guestfs-actions.pod:4142 ../fish/guestfish-actions.pod:2787
10999 msgid ""
11000 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11001 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11002 "inside that.  You can unpack this as follows in guestfish:"
11003 msgstr ""
11004
11005 # type: verbatim
11006 #: ../src/guestfs-actions.pod:4147 ../fish/guestfish-actions.pod:2792
11007 #, no-wrap
11008 msgid ""
11009 " add-ro Fedora-11-i686-Live.iso\n"
11010 " run\n"
11011 " mkmountpoint /cd\n"
11012 " mkmountpoint /sqsh\n"
11013 " mkmountpoint /ext3fs\n"
11014 " mount /dev/sda /cd\n"
11015 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11016 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11017 "\n"
11018 msgstr ""
11019
11020 # type: textblock
11021 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2801
11022 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11023 msgstr ""
11024
11025 # type: textblock
11026 #: ../src/guestfs-actions.pod:4158
11027 msgid ""
11028 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11029 "may get unexpected errors if you try to mix these calls.  It is safest to "
11030 "manually unmount filesystems and remove mountpoints after use."
11031 msgstr ""
11032
11033 # type: textblock
11034 #: ../src/guestfs-actions.pod:4162
11035 msgid ""
11036 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11037 "first, so for this to work for manual mountpoints, you must ensure that the "
11038 "innermost mountpoints have the longest pathnames, as in the example code "
11039 "above."
11040 msgstr ""
11041
11042 # type: textblock
11043 #: ../src/guestfs-actions.pod:4167 ../fish/guestfish-actions.pod:2812
11044 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11045 msgstr ""
11046
11047 # type: textblock
11048 #: ../src/guestfs-actions.pod:4169
11049 msgid ""
11050 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11051 "means that C<guestfs_umount_all> is called when the handle is closed which "
11052 "can also trigger these issues."
11053 msgstr ""
11054
11055 # type: textblock
11056 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5327
11057 msgid "(Added in 1.0.62)"
11058 msgstr ""
11059
11060 # type: =head2
11061 #: ../src/guestfs-actions.pod:4177
11062 msgid "guestfs_mknod"
11063 msgstr ""
11064
11065 # type: verbatim
11066 #: ../src/guestfs-actions.pod:4179
11067 #, no-wrap
11068 msgid ""
11069 " int\n"
11070 " guestfs_mknod (guestfs_h *g,\n"
11071 "                int mode,\n"
11072 "                int devmajor,\n"
11073 "                int devminor,\n"
11074 "                const char *path);\n"
11075 "\n"
11076 msgstr ""
11077
11078 # type: textblock
11079 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:2822
11080 msgid ""
11081 "This call creates block or character special devices, or named pipes "
11082 "(FIFOs)."
11083 msgstr ""
11084
11085 # type: textblock
11086 #: ../src/guestfs-actions.pod:4189 ../fish/guestfish-actions.pod:2825
11087 msgid ""
11088 "The C<mode> parameter should be the mode, using the standard constants.  "
11089 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11090 "used when creating block and character special devices."
11091 msgstr ""
11092
11093 # type: textblock
11094 #: ../src/guestfs-actions.pod:4194
11095 msgid ""
11096 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11097 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11098 "regular file).  These constants are available in the standard Linux header "
11099 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11100 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11101 "the appropriate constant for you."
11102 msgstr ""
11103
11104 # type: =head2
11105 #: ../src/guestfs-actions.pod:4208
11106 msgid "guestfs_mknod_b"
11107 msgstr ""
11108
11109 # type: verbatim
11110 #: ../src/guestfs-actions.pod:4210
11111 #, no-wrap
11112 msgid ""
11113 " int\n"
11114 " guestfs_mknod_b (guestfs_h *g,\n"
11115 "                  int mode,\n"
11116 "                  int devmajor,\n"
11117 "                  int devminor,\n"
11118 "                  const char *path);\n"
11119 "\n"
11120 msgstr ""
11121
11122 # type: textblock
11123 #: ../src/guestfs-actions.pod:4217
11124 msgid ""
11125 "This call creates a block device node called C<path> with mode C<mode> and "
11126 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11127 "wrapper around C<guestfs_mknod>."
11128 msgstr ""
11129
11130 # type: =head2
11131 #: ../src/guestfs-actions.pod:4227
11132 msgid "guestfs_mknod_c"
11133 msgstr ""
11134
11135 # type: verbatim
11136 #: ../src/guestfs-actions.pod:4229
11137 #, no-wrap
11138 msgid ""
11139 " int\n"
11140 " guestfs_mknod_c (guestfs_h *g,\n"
11141 "                  int mode,\n"
11142 "                  int devmajor,\n"
11143 "                  int devminor,\n"
11144 "                  const char *path);\n"
11145 "\n"
11146 msgstr ""
11147
11148 # type: textblock
11149 #: ../src/guestfs-actions.pod:4236
11150 msgid ""
11151 "This call creates a char device node called C<path> with mode C<mode> and "
11152 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11153 "wrapper around C<guestfs_mknod>."
11154 msgstr ""
11155
11156 # type: =head2
11157 #: ../src/guestfs-actions.pod:4246
11158 msgid "guestfs_mkswap"
11159 msgstr ""
11160
11161 # type: verbatim
11162 #: ../src/guestfs-actions.pod:4248
11163 #, no-wrap
11164 msgid ""
11165 " int\n"
11166 " guestfs_mkswap (guestfs_h *g,\n"
11167 "                 const char *device);\n"
11168 "\n"
11169 msgstr ""
11170
11171 # type: textblock
11172 #: ../src/guestfs-actions.pod:4252 ../fish/guestfish-actions.pod:2864
11173 msgid "Create a swap partition on C<device>."
11174 msgstr ""
11175
11176 # type: =head2
11177 #: ../src/guestfs-actions.pod:4258
11178 msgid "guestfs_mkswap_L"
11179 msgstr ""
11180
11181 # type: verbatim
11182 #: ../src/guestfs-actions.pod:4260
11183 #, no-wrap
11184 msgid ""
11185 " int\n"
11186 " guestfs_mkswap_L (guestfs_h *g,\n"
11187 "                   const char *label,\n"
11188 "                   const char *device);\n"
11189 "\n"
11190 msgstr ""
11191
11192 # type: textblock
11193 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:2870
11194 msgid "Create a swap partition on C<device> with label C<label>."
11195 msgstr ""
11196
11197 # type: textblock
11198 #: ../src/guestfs-actions.pod:4267 ../fish/guestfish-actions.pod:2872
11199 msgid ""
11200 "Note that you cannot attach a swap label to a block device "
11201 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11202 "the kernel or swap tools."
11203 msgstr ""
11204
11205 # type: =head2
11206 #: ../src/guestfs-actions.pod:4275
11207 msgid "guestfs_mkswap_U"
11208 msgstr ""
11209
11210 # type: verbatim
11211 #: ../src/guestfs-actions.pod:4277
11212 #, no-wrap
11213 msgid ""
11214 " int\n"
11215 " guestfs_mkswap_U (guestfs_h *g,\n"
11216 "                   const char *uuid,\n"
11217 "                   const char *device);\n"
11218 "\n"
11219 msgstr ""
11220
11221 # type: textblock
11222 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2880
11223 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11224 msgstr ""
11225
11226 # type: =head2
11227 #: ../src/guestfs-actions.pod:4288
11228 msgid "guestfs_mkswap_file"
11229 msgstr ""
11230
11231 # type: verbatim
11232 #: ../src/guestfs-actions.pod:4290
11233 #, no-wrap
11234 msgid ""
11235 " int\n"
11236 " guestfs_mkswap_file (guestfs_h *g,\n"
11237 "                      const char *path);\n"
11238 "\n"
11239 msgstr ""
11240
11241 # type: textblock
11242 #: ../src/guestfs-actions.pod:4294 ../fish/guestfish-actions.pod:2886
11243 msgid "Create a swap file."
11244 msgstr ""
11245
11246 # type: textblock
11247 #: ../src/guestfs-actions.pod:4296
11248 msgid ""
11249 "This command just writes a swap file signature to an existing file.  To "
11250 "create the file itself, use something like C<guestfs_fallocate>."
11251 msgstr ""
11252
11253 # type: =head2
11254 #: ../src/guestfs-actions.pod:4303
11255 msgid "guestfs_modprobe"
11256 msgstr ""
11257
11258 # type: verbatim
11259 #: ../src/guestfs-actions.pod:4305
11260 #, no-wrap
11261 msgid ""
11262 " int\n"
11263 " guestfs_modprobe (guestfs_h *g,\n"
11264 "                   const char *modulename);\n"
11265 "\n"
11266 msgstr ""
11267
11268 # type: textblock
11269 #: ../src/guestfs-actions.pod:4309 ../fish/guestfish-actions.pod:2895
11270 msgid "This loads a kernel module in the appliance."
11271 msgstr ""
11272
11273 # type: textblock
11274 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2897
11275 msgid ""
11276 "The kernel module must have been whitelisted when libguestfs was built (see "
11277 "C<appliance/kmod.whitelist.in> in the source)."
11278 msgstr ""
11279
11280 # type: =head2
11281 #: ../src/guestfs-actions.pod:4318
11282 msgid "guestfs_mount"
11283 msgstr ""
11284
11285 # type: verbatim
11286 #: ../src/guestfs-actions.pod:4320
11287 #, no-wrap
11288 msgid ""
11289 " int\n"
11290 " guestfs_mount (guestfs_h *g,\n"
11291 "                const char *device,\n"
11292 "                const char *mountpoint);\n"
11293 "\n"
11294 msgstr ""
11295
11296 # type: textblock
11297 #: ../src/guestfs-actions.pod:4325 ../fish/guestfish-actions.pod:2904
11298 msgid ""
11299 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11300 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11301 "those block devices contain partitions, they will have the usual names "
11302 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11303 msgstr ""
11304
11305 # type: textblock
11306 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2910
11307 msgid ""
11308 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11309 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11310 "mounted on directories which already exist."
11311 msgstr ""
11312
11313 # type: textblock
11314 #: ../src/guestfs-actions.pod:4336 ../fish/guestfish-actions.pod:2915
11315 msgid ""
11316 "The mounted filesystem is writable, if we have sufficient permissions on the "
11317 "underlying device."
11318 msgstr ""
11319
11320 # type: textblock
11321 #: ../src/guestfs-actions.pod:4339
11322 msgid ""
11323 "B<Important note:> When you use this call, the filesystem options C<sync> "
11324 "and C<noatime> are set implicitly.  This was originally done because we "
11325 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11326 "very large negative performance impact and negligible effect on "
11327 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11328 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11329 "(use an empty string for the first parameter if you don't want any options)."
11330 msgstr ""
11331
11332 # type: =head2
11333 #: ../src/guestfs-actions.pod:4353
11334 msgid "guestfs_mount_loop"
11335 msgstr ""
11336
11337 # type: verbatim
11338 #: ../src/guestfs-actions.pod:4355
11339 #, no-wrap
11340 msgid ""
11341 " int\n"
11342 " guestfs_mount_loop (guestfs_h *g,\n"
11343 "                     const char *file,\n"
11344 "                     const char *mountpoint);\n"
11345 "\n"
11346 msgstr ""
11347
11348 # type: textblock
11349 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2932
11350 msgid ""
11351 "This command lets you mount C<file> (a filesystem image in a file) on a "
11352 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11353 "mountpoint>."
11354 msgstr ""
11355
11356 # type: =head2
11357 #: ../src/guestfs-actions.pod:4368
11358 msgid "guestfs_mount_options"
11359 msgstr ""
11360
11361 # type: verbatim
11362 #: ../src/guestfs-actions.pod:4370
11363 #, no-wrap
11364 msgid ""
11365 " int\n"
11366 " guestfs_mount_options (guestfs_h *g,\n"
11367 "                        const char *options,\n"
11368 "                        const char *device,\n"
11369 "                        const char *mountpoint);\n"
11370 "\n"
11371 msgstr ""
11372
11373 # type: textblock
11374 #: ../src/guestfs-actions.pod:4376
11375 msgid ""
11376 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11377 "the mount options as for the L<mount(8)> I<-o> flag."
11378 msgstr ""
11379
11380 # type: textblock
11381 #: ../src/guestfs-actions.pod:4380 ../fish/guestfish-actions.pod:2944
11382 msgid ""
11383 "If the C<options> parameter is an empty string, then no options are passed "
11384 "(all options default to whatever the filesystem uses)."
11385 msgstr ""
11386
11387 # type: textblock
11388 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4400 ../src/guestfs-actions.pod:4417
11389 msgid "(Added in 1.0.10)"
11390 msgstr ""
11391
11392 # type: =head2
11393 #: ../src/guestfs-actions.pod:4388
11394 msgid "guestfs_mount_ro"
11395 msgstr ""
11396
11397 # type: verbatim
11398 #: ../src/guestfs-actions.pod:4390
11399 #, no-wrap
11400 msgid ""
11401 " int\n"
11402 " guestfs_mount_ro (guestfs_h *g,\n"
11403 "                   const char *device,\n"
11404 "                   const char *mountpoint);\n"
11405 "\n"
11406 msgstr ""
11407
11408 # type: textblock
11409 #: ../src/guestfs-actions.pod:4395
11410 msgid ""
11411 "This is the same as the C<guestfs_mount> command, but it mounts the "
11412 "filesystem with the read-only (I<-o ro>) flag."
11413 msgstr ""
11414
11415 # type: =head2
11416 #: ../src/guestfs-actions.pod:4402
11417 msgid "guestfs_mount_vfs"
11418 msgstr ""
11419
11420 # type: verbatim
11421 #: ../src/guestfs-actions.pod:4404
11422 #, no-wrap
11423 msgid ""
11424 " int\n"
11425 " guestfs_mount_vfs (guestfs_h *g,\n"
11426 "                    const char *options,\n"
11427 "                    const char *vfstype,\n"
11428 "                    const char *device,\n"
11429 "                    const char *mountpoint);\n"
11430 "\n"
11431 msgstr ""
11432
11433 # type: textblock
11434 #: ../src/guestfs-actions.pod:4411
11435 msgid ""
11436 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11437 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
11438 "I<-t> flags."
11439 msgstr ""
11440
11441 # type: =head2
11442 #: ../src/guestfs-actions.pod:4419
11443 msgid "guestfs_mountpoints"
11444 msgstr ""
11445
11446 # type: verbatim
11447 #: ../src/guestfs-actions.pod:4421
11448 #, no-wrap
11449 msgid ""
11450 " char **\n"
11451 " guestfs_mountpoints (guestfs_h *g);\n"
11452 "\n"
11453 msgstr ""
11454
11455 # type: textblock
11456 #: ../src/guestfs-actions.pod:4424
11457 msgid ""
11458 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11459 "devices.  This one returns a hash table (map) of device name to directory "
11460 "where the device is mounted."
11461 msgstr ""
11462
11463 # type: =head2
11464 #: ../src/guestfs-actions.pod:4436
11465 msgid "guestfs_mounts"
11466 msgstr ""
11467
11468 # type: verbatim
11469 #: ../src/guestfs-actions.pod:4438
11470 #, no-wrap
11471 msgid ""
11472 " char **\n"
11473 " guestfs_mounts (guestfs_h *g);\n"
11474 "\n"
11475 msgstr ""
11476
11477 # type: textblock
11478 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:2975
11479 msgid ""
11480 "This returns the list of currently mounted filesystems.  It returns the list "
11481 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11482 msgstr ""
11483
11484 # type: textblock
11485 #: ../src/guestfs-actions.pod:4444 ../fish/guestfish-actions.pod:2978
11486 msgid "Some internal mounts are not shown."
11487 msgstr ""
11488
11489 # type: textblock
11490 #: ../src/guestfs-actions.pod:4446
11491 msgid "See also: C<guestfs_mountpoints>"
11492 msgstr ""
11493
11494 # type: =head2
11495 #: ../src/guestfs-actions.pod:4454
11496 msgid "guestfs_mv"
11497 msgstr ""
11498
11499 # type: verbatim
11500 #: ../src/guestfs-actions.pod:4456
11501 #, no-wrap
11502 msgid ""
11503 " int\n"
11504 " guestfs_mv (guestfs_h *g,\n"
11505 "             const char *src,\n"
11506 "             const char *dest);\n"
11507 "\n"
11508 msgstr ""
11509
11510 # type: textblock
11511 #: ../src/guestfs-actions.pod:4461 ../fish/guestfish-actions.pod:2986
11512 msgid ""
11513 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11514 "destination filename or destination directory."
11515 msgstr ""
11516
11517 # type: =head2
11518 #: ../src/guestfs-actions.pod:4468
11519 msgid "guestfs_ntfs_3g_probe"
11520 msgstr ""
11521
11522 # type: verbatim
11523 #: ../src/guestfs-actions.pod:4470
11524 #, no-wrap
11525 msgid ""
11526 " int\n"
11527 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11528 "                        int rw,\n"
11529 "                        const char *device);\n"
11530 "\n"
11531 msgstr ""
11532
11533 # type: textblock
11534 #: ../src/guestfs-actions.pod:4475 ../fish/guestfish-actions.pod:2993
11535 msgid ""
11536 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11537 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11538 "read-write, and some cannot be mounted at all)."
11539 msgstr ""
11540
11541 # type: textblock
11542 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:2997
11543 msgid ""
11544 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11545 "can be mounted read-write.  Set it to false if you want to test if the "
11546 "volume can be mounted read-only."
11547 msgstr ""
11548
11549 # type: textblock
11550 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3001
11551 msgid ""
11552 "The return value is an integer which C<0> if the operation would succeed, or "
11553 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11554 msgstr ""
11555
11556 # type: textblock
11557 #: ../src/guestfs-actions.pod:4489
11558 msgid "(Added in 1.0.43)"
11559 msgstr ""
11560
11561 # type: =head2
11562 #: ../src/guestfs-actions.pod:4491
11563 msgid "guestfs_ntfsresize"
11564 msgstr ""
11565
11566 # type: verbatim
11567 #: ../src/guestfs-actions.pod:4493
11568 #, no-wrap
11569 msgid ""
11570 " int\n"
11571 " guestfs_ntfsresize (guestfs_h *g,\n"
11572 "                     const char *device);\n"
11573 "\n"
11574 msgstr ""
11575
11576 # type: textblock
11577 #: ../src/guestfs-actions.pod:4497 ../fish/guestfish-actions.pod:3009
11578 msgid ""
11579 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11580 "size of the underlying device.  See also L<ntfsresize(8)>."
11581 msgstr ""
11582
11583 # type: =head2
11584 #: ../src/guestfs-actions.pod:4505
11585 msgid "guestfs_ntfsresize_size"
11586 msgstr ""
11587
11588 # type: verbatim
11589 #: ../src/guestfs-actions.pod:4507
11590 #, no-wrap
11591 msgid ""
11592 " int\n"
11593 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11594 "                          const char *device,\n"
11595 "                          int64_t size);\n"
11596 "\n"
11597 msgstr ""
11598
11599 # type: textblock
11600 #: ../src/guestfs-actions.pod:4512
11601 msgid ""
11602 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11603 "to specify the new size (in bytes) explicitly."
11604 msgstr ""
11605
11606 # type: textblock
11607 #: ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4953 ../src/guestfs-actions.pod:5026 ../src/guestfs-actions.pod:5275
11608 msgid "(Added in 1.3.14)"
11609 msgstr ""
11610
11611 # type: =head2
11612 #: ../src/guestfs-actions.pod:4519
11613 msgid "guestfs_part_add"
11614 msgstr ""
11615
11616 # type: verbatim
11617 #: ../src/guestfs-actions.pod:4521
11618 #, no-wrap
11619 msgid ""
11620 " int\n"
11621 " guestfs_part_add (guestfs_h *g,\n"
11622 "                   const char *device,\n"
11623 "                   const char *prlogex,\n"
11624 "                   int64_t startsect,\n"
11625 "                   int64_t endsect);\n"
11626 "\n"
11627 msgstr ""
11628
11629 # type: textblock
11630 #: ../src/guestfs-actions.pod:4528
11631 msgid ""
11632 "This command adds a partition to C<device>.  If there is no partition table "
11633 "on the device, call C<guestfs_part_init> first."
11634 msgstr ""
11635
11636 # type: textblock
11637 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3027
11638 msgid ""
11639 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11640 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11641 "C<logical>) and C<e> (or C<extended>) partition types."
11642 msgstr ""
11643
11644 # type: textblock
11645 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3032
11646 msgid ""
11647 "C<startsect> and C<endsect> are the start and end of the partition in "
11648 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11649 "from the end of the disk (C<-1> is the last sector)."
11650 msgstr ""
11651
11652 # type: textblock
11653 #: ../src/guestfs-actions.pod:4540
11654 msgid ""
11655 "Creating a partition which covers the whole disk is not so easy.  Use "
11656 "C<guestfs_part_disk> to do that."
11657 msgstr ""
11658
11659 # type: textblock
11660 #: ../src/guestfs-actions.pod:4545 ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:4636 ../src/guestfs-actions.pod:4714 ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:4811
11661 msgid "(Added in 1.0.78)"
11662 msgstr ""
11663
11664 # type: =head2
11665 #: ../src/guestfs-actions.pod:4547
11666 msgid "guestfs_part_del"
11667 msgstr ""
11668
11669 # type: verbatim
11670 #: ../src/guestfs-actions.pod:4549
11671 #, no-wrap
11672 msgid ""
11673 " int\n"
11674 " guestfs_part_del (guestfs_h *g,\n"
11675 "                   const char *device,\n"
11676 "                   int partnum);\n"
11677 "\n"
11678 msgstr ""
11679
11680 # type: textblock
11681 #: ../src/guestfs-actions.pod:4554 ../fish/guestfish-actions.pod:3043
11682 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11683 msgstr ""
11684
11685 # type: textblock
11686 #: ../src/guestfs-actions.pod:4556 ../fish/guestfish-actions.pod:3045
11687 msgid ""
11688 "Note that in the case of MBR partitioning, deleting an extended partition "
11689 "also deletes any logical partitions it contains."
11690 msgstr ""
11691
11692 # type: =head2
11693 #: ../src/guestfs-actions.pod:4564
11694 msgid "guestfs_part_disk"
11695 msgstr ""
11696
11697 # type: verbatim
11698 #: ../src/guestfs-actions.pod:4566
11699 #, no-wrap
11700 msgid ""
11701 " int\n"
11702 " guestfs_part_disk (guestfs_h *g,\n"
11703 "                    const char *device,\n"
11704 "                    const char *parttype);\n"
11705 "\n"
11706 msgstr ""
11707
11708 # type: textblock
11709 #: ../src/guestfs-actions.pod:4571
11710 msgid ""
11711 "This command is simply a combination of C<guestfs_part_init> followed by "
11712 "C<guestfs_part_add> to create a single primary partition covering the whole "
11713 "disk."
11714 msgstr ""
11715
11716 # type: textblock
11717 #: ../src/guestfs-actions.pod:4575
11718 msgid ""
11719 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11720 "possible values are described in C<guestfs_part_init>."
11721 msgstr ""
11722
11723 # type: =head2
11724 #: ../src/guestfs-actions.pod:4585
11725 msgid "guestfs_part_get_bootable"
11726 msgstr ""
11727
11728 # type: verbatim
11729 #: ../src/guestfs-actions.pod:4587
11730 #, no-wrap
11731 msgid ""
11732 " int\n"
11733 " guestfs_part_get_bootable (guestfs_h *g,\n"
11734 "                            const char *device,\n"
11735 "                            int partnum);\n"
11736 "\n"
11737 msgstr ""
11738
11739 # type: textblock
11740 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3067
11741 msgid ""
11742 "This command returns true if the partition C<partnum> on C<device> has the "
11743 "bootable flag set."
11744 msgstr ""
11745
11746 # type: textblock
11747 #: ../src/guestfs-actions.pod:4595
11748 msgid "See also C<guestfs_part_set_bootable>."
11749 msgstr ""
11750
11751 # type: =head2
11752 #: ../src/guestfs-actions.pod:4601
11753 msgid "guestfs_part_get_mbr_id"
11754 msgstr ""
11755
11756 # type: verbatim
11757 #: ../src/guestfs-actions.pod:4603
11758 #, no-wrap
11759 msgid ""
11760 " int\n"
11761 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11762 "                          const char *device,\n"
11763 "                          int partnum);\n"
11764 "\n"
11765 msgstr ""
11766
11767 # type: textblock
11768 #: ../src/guestfs-actions.pod:4608 ../fish/guestfish-actions.pod:3076
11769 msgid ""
11770 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11771 "partition C<partnum>."
11772 msgstr ""
11773
11774 # type: textblock
11775 #: ../src/guestfs-actions.pod:4611 ../src/guestfs-actions.pod:4787
11776 msgid ""
11777 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11778 "undefined results for other partition table types (see "
11779 "C<guestfs_part_get_parttype>)."
11780 msgstr ""
11781
11782 # type: =head2
11783 #: ../src/guestfs-actions.pod:4619
11784 msgid "guestfs_part_get_parttype"
11785 msgstr ""
11786
11787 # type: verbatim
11788 #: ../src/guestfs-actions.pod:4621
11789 #, no-wrap
11790 msgid ""
11791 " char *\n"
11792 " guestfs_part_get_parttype (guestfs_h *g,\n"
11793 "                            const char *device);\n"
11794 "\n"
11795 msgstr ""
11796
11797 # type: textblock
11798 #: ../src/guestfs-actions.pod:4625 ../fish/guestfish-actions.pod:3087
11799 msgid ""
11800 "This command examines the partition table on C<device> and returns the "
11801 "partition table type (format) being used."
11802 msgstr ""
11803
11804 # type: textblock
11805 #: ../src/guestfs-actions.pod:4628
11806 msgid ""
11807 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11808 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11809 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11810 msgstr ""
11811
11812 # type: =head2
11813 #: ../src/guestfs-actions.pod:4638
11814 msgid "guestfs_part_init"
11815 msgstr ""
11816
11817 # type: verbatim
11818 #: ../src/guestfs-actions.pod:4640
11819 #, no-wrap
11820 msgid ""
11821 " int\n"
11822 " guestfs_part_init (guestfs_h *g,\n"
11823 "                    const char *device,\n"
11824 "                    const char *parttype);\n"
11825 "\n"
11826 msgstr ""
11827
11828 # type: textblock
11829 #: ../src/guestfs-actions.pod:4645 ../fish/guestfish-actions.pod:3099
11830 msgid ""
11831 "This creates an empty partition table on C<device> of one of the partition "
11832 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11833 "(for large disks)."
11834 msgstr ""
11835
11836 # type: textblock
11837 #: ../src/guestfs-actions.pod:4649
11838 msgid ""
11839 "Initially there are no partitions.  Following this, you should call "
11840 "C<guestfs_part_add> for each partition required."
11841 msgstr ""
11842
11843 # type: textblock
11844 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3106
11845 msgid "Possible values for C<parttype> are:"
11846 msgstr ""
11847
11848 # type: =item
11849 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3110
11850 msgid "B<efi> | B<gpt>"
11851 msgstr ""
11852
11853 # type: textblock
11854 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3112
11855 msgid "Intel EFI / GPT partition table."
11856 msgstr ""
11857
11858 # type: textblock
11859 #: ../src/guestfs-actions.pod:4660 ../fish/guestfish-actions.pod:3114
11860 msgid ""
11861 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11862 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11863 "the C<mbr> format."
11864 msgstr ""
11865
11866 # type: =item
11867 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3118
11868 msgid "B<mbr> | B<msdos>"
11869 msgstr ""
11870
11871 # type: textblock
11872 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3120
11873 msgid ""
11874 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11875 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11876 "TB.  For large disks we recommend using C<gpt>."
11877 msgstr ""
11878
11879 # type: textblock
11880 #: ../src/guestfs-actions.pod:4673 ../fish/guestfish-actions.pod:3127
11881 msgid "Other partition table types that may work but are not supported include:"
11882 msgstr ""
11883
11884 # type: =item
11885 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3132
11886 msgid "B<aix>"
11887 msgstr ""
11888
11889 # type: textblock
11890 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3134
11891 msgid "AIX disk labels."
11892 msgstr ""
11893
11894 # type: =item
11895 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3136
11896 msgid "B<amiga> | B<rdb>"
11897 msgstr ""
11898
11899 # type: textblock
11900 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3138
11901 msgid "Amiga \"Rigid Disk Block\" format."
11902 msgstr ""
11903
11904 # type: =item
11905 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3140
11906 msgid "B<bsd>"
11907 msgstr ""
11908
11909 # type: textblock
11910 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3142
11911 msgid "BSD disk labels."
11912 msgstr ""
11913
11914 # type: =item
11915 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3144
11916 msgid "B<dasd>"
11917 msgstr ""
11918
11919 # type: textblock
11920 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3146
11921 msgid "DASD, used on IBM mainframes."
11922 msgstr ""
11923
11924 # type: =item
11925 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3148
11926 msgid "B<dvh>"
11927 msgstr ""
11928
11929 # type: textblock
11930 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3150
11931 msgid "MIPS/SGI volumes."
11932 msgstr ""
11933
11934 # type: =item
11935 #: ../src/guestfs-actions.pod:4698 ../fish/guestfish-actions.pod:3152
11936 msgid "B<mac>"
11937 msgstr ""
11938
11939 # type: textblock
11940 #: ../src/guestfs-actions.pod:4700 ../fish/guestfish-actions.pod:3154
11941 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11942 msgstr ""
11943
11944 # type: =item
11945 #: ../src/guestfs-actions.pod:4702 ../fish/guestfish-actions.pod:3156
11946 msgid "B<pc98>"
11947 msgstr ""
11948
11949 # type: textblock
11950 #: ../src/guestfs-actions.pod:4704 ../fish/guestfish-actions.pod:3158
11951 msgid "NEC PC-98 format, common in Japan apparently."
11952 msgstr ""
11953
11954 # type: =item
11955 #: ../src/guestfs-actions.pod:4706 ../fish/guestfish-actions.pod:3160
11956 msgid "B<sun>"
11957 msgstr ""
11958
11959 # type: textblock
11960 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3162
11961 msgid "Sun disk labels."
11962 msgstr ""
11963
11964 # type: =head2
11965 #: ../src/guestfs-actions.pod:4716
11966 msgid "guestfs_part_list"
11967 msgstr ""
11968
11969 # type: verbatim
11970 #: ../src/guestfs-actions.pod:4718
11971 #, no-wrap
11972 msgid ""
11973 " struct guestfs_partition_list *\n"
11974 " guestfs_part_list (guestfs_h *g,\n"
11975 "                    const char *device);\n"
11976 "\n"
11977 msgstr ""
11978
11979 # type: textblock
11980 #: ../src/guestfs-actions.pod:4722 ../fish/guestfish-actions.pod:3170
11981 msgid ""
11982 "This command parses the partition table on C<device> and returns the list of "
11983 "partitions found."
11984 msgstr ""
11985
11986 # type: textblock
11987 #: ../src/guestfs-actions.pod:4725 ../fish/guestfish-actions.pod:3173
11988 msgid "The fields in the returned structure are:"
11989 msgstr ""
11990
11991 # type: =item
11992 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3177
11993 msgid "B<part_num>"
11994 msgstr ""
11995
11996 # type: textblock
11997 #: ../src/guestfs-actions.pod:4731 ../fish/guestfish-actions.pod:3179
11998 msgid "Partition number, counting from 1."
11999 msgstr ""
12000
12001 # type: =item
12002 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3181
12003 msgid "B<part_start>"
12004 msgstr ""
12005
12006 # type: textblock
12007 #: ../src/guestfs-actions.pod:4735
12008 msgid ""
12009 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12010 "the device's sector size, see C<guestfs_blockdev_getss>."
12011 msgstr ""
12012
12013 # type: =item
12014 #: ../src/guestfs-actions.pod:4738 ../fish/guestfish-actions.pod:3186
12015 msgid "B<part_end>"
12016 msgstr ""
12017
12018 # type: textblock
12019 #: ../src/guestfs-actions.pod:4740 ../fish/guestfish-actions.pod:3188
12020 msgid "End of the partition in bytes."
12021 msgstr ""
12022
12023 # type: =item
12024 #: ../src/guestfs-actions.pod:4742 ../fish/guestfish-actions.pod:3190
12025 msgid "B<part_size>"
12026 msgstr ""
12027
12028 # type: textblock
12029 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3192
12030 msgid "Size of the partition in bytes."
12031 msgstr ""
12032
12033 # type: textblock
12034 #: ../src/guestfs-actions.pod:4748
12035 msgid ""
12036 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12037 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12038 "use>."
12039 msgstr ""
12040
12041 # type: =head2
12042 #: ../src/guestfs-actions.pod:4754
12043 msgid "guestfs_part_set_bootable"
12044 msgstr ""
12045
12046 # type: verbatim
12047 #: ../src/guestfs-actions.pod:4756
12048 #, no-wrap
12049 msgid ""
12050 " int\n"
12051 " guestfs_part_set_bootable (guestfs_h *g,\n"
12052 "                            const char *device,\n"
12053 "                            int partnum,\n"
12054 "                            int bootable);\n"
12055 "\n"
12056 msgstr ""
12057
12058 # type: textblock
12059 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3200
12060 msgid ""
12061 "This sets the bootable flag on partition numbered C<partnum> on device "
12062 "C<device>.  Note that partitions are numbered from 1."
12063 msgstr ""
12064
12065 # type: textblock
12066 #: ../src/guestfs-actions.pod:4765 ../fish/guestfish-actions.pod:3203
12067 msgid ""
12068 "The bootable flag is used by some operating systems (notably Windows) to "
12069 "determine which partition to boot from.  It is by no means universally "
12070 "recognized."
12071 msgstr ""
12072
12073 # type: =head2
12074 #: ../src/guestfs-actions.pod:4773
12075 msgid "guestfs_part_set_mbr_id"
12076 msgstr ""
12077
12078 # type: verbatim
12079 #: ../src/guestfs-actions.pod:4775
12080 #, no-wrap
12081 msgid ""
12082 " int\n"
12083 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12084 "                          const char *device,\n"
12085 "                          int partnum,\n"
12086 "                          int idbyte);\n"
12087 "\n"
12088 msgstr ""
12089
12090 # type: textblock
12091 #: ../src/guestfs-actions.pod:4781 ../fish/guestfish-actions.pod:3211
12092 msgid ""
12093 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12094 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12095 "documentation are in fact hexadecimal numbers, but usually documented "
12096 "without any leading \"0x\" which might be confusing."
12097 msgstr ""
12098
12099 # type: =head2
12100 #: ../src/guestfs-actions.pod:4795
12101 msgid "guestfs_part_set_name"
12102 msgstr ""
12103
12104 # type: verbatim
12105 #: ../src/guestfs-actions.pod:4797
12106 #, no-wrap
12107 msgid ""
12108 " int\n"
12109 " guestfs_part_set_name (guestfs_h *g,\n"
12110 "                        const char *device,\n"
12111 "                        int partnum,\n"
12112 "                        const char *name);\n"
12113 "\n"
12114 msgstr ""
12115
12116 # type: textblock
12117 #: ../src/guestfs-actions.pod:4803 ../fish/guestfish-actions.pod:3225
12118 msgid ""
12119 "This sets the partition name on partition numbered C<partnum> on device "
12120 "C<device>.  Note that partitions are numbered from 1."
12121 msgstr ""
12122
12123 # type: textblock
12124 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3228
12125 msgid ""
12126 "The partition name can only be set on certain types of partition table.  "
12127 "This works on C<gpt> but not on C<mbr> partitions."
12128 msgstr ""
12129
12130 # type: =head2
12131 #: ../src/guestfs-actions.pod:4813
12132 msgid "guestfs_part_to_dev"
12133 msgstr ""
12134
12135 # type: verbatim
12136 #: ../src/guestfs-actions.pod:4815
12137 #, no-wrap
12138 msgid ""
12139 " char *\n"
12140 " guestfs_part_to_dev (guestfs_h *g,\n"
12141 "                      const char *partition);\n"
12142 "\n"
12143 msgstr ""
12144
12145 # type: textblock
12146 #: ../src/guestfs-actions.pod:4819 ../fish/guestfish-actions.pod:3235
12147 msgid ""
12148 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12149 "partition number, returning the device name (eg. \"/dev/sdb\")."
12150 msgstr ""
12151
12152 # type: textblock
12153 #: ../src/guestfs-actions.pod:4823
12154 msgid ""
12155 "The named partition must exist, for example as a string returned from "
12156 "C<guestfs_list_partitions>."
12157 msgstr ""
12158
12159 # type: =head2
12160 #: ../src/guestfs-actions.pod:4831
12161 msgid "guestfs_ping_daemon"
12162 msgstr ""
12163
12164 # type: verbatim
12165 #: ../src/guestfs-actions.pod:4833
12166 #, no-wrap
12167 msgid ""
12168 " int\n"
12169 " guestfs_ping_daemon (guestfs_h *g);\n"
12170 "\n"
12171 msgstr ""
12172
12173 # type: textblock
12174 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3246
12175 msgid ""
12176 "This is a test probe into the guestfs daemon running inside the qemu "
12177 "subprocess.  Calling this function checks that the daemon responds to the "
12178 "ping message, without affecting the daemon or attached block device(s) in "
12179 "any other way."
12180 msgstr ""
12181
12182 # type: =head2
12183 #: ../src/guestfs-actions.pod:4845
12184 msgid "guestfs_pread"
12185 msgstr ""
12186
12187 # type: verbatim
12188 #: ../src/guestfs-actions.pod:4847
12189 #, no-wrap
12190 msgid ""
12191 " char *\n"
12192 " guestfs_pread (guestfs_h *g,\n"
12193 "                const char *path,\n"
12194 "                int count,\n"
12195 "                int64_t offset,\n"
12196 "                size_t *size_r);\n"
12197 "\n"
12198 msgstr ""
12199
12200 # type: textblock
12201 #: ../src/guestfs-actions.pod:4854 ../fish/guestfish-actions.pod:3255
12202 msgid ""
12203 "This command lets you read part of a file.  It reads C<count> bytes of the "
12204 "file, starting at C<offset>, from file C<path>."
12205 msgstr ""
12206
12207 # type: textblock
12208 #: ../src/guestfs-actions.pod:4857 ../src/guestfs-actions.pod:4883 ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12209 msgid ""
12210 "This may read fewer bytes than requested.  For further details see the "
12211 "L<pread(2)> system call."
12212 msgstr ""
12213
12214 # type: textblock
12215 #: ../src/guestfs-actions.pod:4860
12216 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12217 msgstr ""
12218
12219 # type: =head2
12220 #: ../src/guestfs-actions.pod:4871
12221 msgid "guestfs_pread_device"
12222 msgstr ""
12223
12224 # type: verbatim
12225 #: ../src/guestfs-actions.pod:4873
12226 #, no-wrap
12227 msgid ""
12228 " char *\n"
12229 " guestfs_pread_device (guestfs_h *g,\n"
12230 "                       const char *device,\n"
12231 "                       int count,\n"
12232 "                       int64_t offset,\n"
12233 "                       size_t *size_r);\n"
12234 "\n"
12235 msgstr ""
12236
12237 # type: textblock
12238 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3270
12239 msgid ""
12240 "This command lets you read part of a file.  It reads C<count> bytes of "
12241 "C<device>, starting at C<offset>."
12242 msgstr ""
12243
12244 # type: textblock
12245 #: ../src/guestfs-actions.pod:4886
12246 msgid "See also C<guestfs_pread>."
12247 msgstr ""
12248
12249 # type: textblock
12250 #: ../src/guestfs-actions.pod:4895
12251 msgid "(Added in 1.5.21)"
12252 msgstr ""
12253
12254 # type: =head2
12255 #: ../src/guestfs-actions.pod:4897
12256 msgid "guestfs_pvcreate"
12257 msgstr ""
12258
12259 # type: verbatim
12260 #: ../src/guestfs-actions.pod:4899
12261 #, no-wrap
12262 msgid ""
12263 " int\n"
12264 " guestfs_pvcreate (guestfs_h *g,\n"
12265 "                   const char *device);\n"
12266 "\n"
12267 msgstr ""
12268
12269 # type: textblock
12270 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3285
12271 msgid ""
12272 "This creates an LVM physical volume on the named C<device>, where C<device> "
12273 "should usually be a partition name such as C</dev/sda1>."
12274 msgstr ""
12275
12276 # type: =head2
12277 #: ../src/guestfs-actions.pod:4911
12278 msgid "guestfs_pvremove"
12279 msgstr ""
12280
12281 # type: verbatim
12282 #: ../src/guestfs-actions.pod:4913
12283 #, no-wrap
12284 msgid ""
12285 " int\n"
12286 " guestfs_pvremove (guestfs_h *g,\n"
12287 "                   const char *device);\n"
12288 "\n"
12289 msgstr ""
12290
12291 # type: textblock
12292 #: ../src/guestfs-actions.pod:4917 ../fish/guestfish-actions.pod:3293
12293 msgid ""
12294 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12295 "it."
12296 msgstr ""
12297
12298 # type: textblock
12299 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3296
12300 msgid ""
12301 "The implementation uses the C<pvremove> command which refuses to wipe "
12302 "physical volumes that contain any volume groups, so you have to remove those "
12303 "first."
12304 msgstr ""
12305
12306 # type: =head2
12307 #: ../src/guestfs-actions.pod:4928
12308 msgid "guestfs_pvresize"
12309 msgstr ""
12310
12311 # type: verbatim
12312 #: ../src/guestfs-actions.pod:4930
12313 #, no-wrap
12314 msgid ""
12315 " int\n"
12316 " guestfs_pvresize (guestfs_h *g,\n"
12317 "                   const char *device);\n"
12318 "\n"
12319 msgstr ""
12320
12321 # type: textblock
12322 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3304
12323 msgid ""
12324 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12325 "the new size of the underlying device."
12326 msgstr ""
12327
12328 # type: =head2
12329 #: ../src/guestfs-actions.pod:4941
12330 msgid "guestfs_pvresize_size"
12331 msgstr ""
12332
12333 # type: verbatim
12334 #: ../src/guestfs-actions.pod:4943
12335 #, no-wrap
12336 msgid ""
12337 " int\n"
12338 " guestfs_pvresize_size (guestfs_h *g,\n"
12339 "                        const char *device,\n"
12340 "                        int64_t size);\n"
12341 "\n"
12342 msgstr ""
12343
12344 # type: textblock
12345 #: ../src/guestfs-actions.pod:4948
12346 msgid ""
12347 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12348 "specify the new size (in bytes) explicitly."
12349 msgstr ""
12350
12351 # type: =head2
12352 #: ../src/guestfs-actions.pod:4955
12353 msgid "guestfs_pvs"
12354 msgstr ""
12355
12356 # type: verbatim
12357 #: ../src/guestfs-actions.pod:4957
12358 #, no-wrap
12359 msgid ""
12360 " char **\n"
12361 " guestfs_pvs (guestfs_h *g);\n"
12362 "\n"
12363 msgstr ""
12364
12365 # type: textblock
12366 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3318
12367 msgid ""
12368 "List all the physical volumes detected.  This is the equivalent of the "
12369 "L<pvs(8)> command."
12370 msgstr ""
12371
12372 # type: textblock
12373 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3321
12374 msgid ""
12375 "This returns a list of just the device names that contain PVs "
12376 "(eg. C</dev/sda2>)."
12377 msgstr ""
12378
12379 # type: textblock
12380 #: ../src/guestfs-actions.pod:4966
12381 msgid "See also C<guestfs_pvs_full>."
12382 msgstr ""
12383
12384 # type: =head2
12385 #: ../src/guestfs-actions.pod:4974
12386 msgid "guestfs_pvs_full"
12387 msgstr ""
12388
12389 # type: verbatim
12390 #: ../src/guestfs-actions.pod:4976
12391 #, no-wrap
12392 msgid ""
12393 " struct guestfs_lvm_pv_list *\n"
12394 " guestfs_pvs_full (guestfs_h *g);\n"
12395 "\n"
12396 msgstr ""
12397
12398 # type: textblock
12399 #: ../src/guestfs-actions.pod:4979 ../fish/guestfish-actions.pod:3330
12400 msgid ""
12401 "List all the physical volumes detected.  This is the equivalent of the "
12402 "L<pvs(8)> command.  The \"full\" version includes all fields."
12403 msgstr ""
12404
12405 # type: textblock
12406 #: ../src/guestfs-actions.pod:4982
12407 msgid ""
12408 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12409 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
12410 "use>."
12411 msgstr ""
12412
12413 # type: =head2
12414 #: ../src/guestfs-actions.pod:4988
12415 msgid "guestfs_pvuuid"
12416 msgstr ""
12417
12418 # type: verbatim
12419 #: ../src/guestfs-actions.pod:4990
12420 #, no-wrap
12421 msgid ""
12422 " char *\n"
12423 " guestfs_pvuuid (guestfs_h *g,\n"
12424 "                 const char *device);\n"
12425 "\n"
12426 msgstr ""
12427
12428 # type: textblock
12429 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3337
12430 msgid "This command returns the UUID of the LVM PV C<device>."
12431 msgstr ""
12432
12433 # type: =head2
12434 #: ../src/guestfs-actions.pod:5001
12435 msgid "guestfs_pwrite"
12436 msgstr ""
12437
12438 # type: verbatim
12439 #: ../src/guestfs-actions.pod:5003
12440 #, no-wrap
12441 msgid ""
12442 " int\n"
12443 " guestfs_pwrite (guestfs_h *g,\n"
12444 "                 const char *path,\n"
12445 "                 const char *content,\n"
12446 "                 size_t content_size,\n"
12447 "                 int64_t offset);\n"
12448 "\n"
12449 msgstr ""
12450
12451 # type: textblock
12452 #: ../src/guestfs-actions.pod:5010 ../fish/guestfish-actions.pod:3343
12453 msgid ""
12454 "This command writes to part of a file.  It writes the data buffer C<content> "
12455 "to the file C<path> starting at offset C<offset>."
12456 msgstr ""
12457
12458 # type: textblock
12459 #: ../src/guestfs-actions.pod:5013 ../fish/guestfish-actions.pod:3346
12460 msgid ""
12461 "This command implements the L<pwrite(2)> system call, and like that system "
12462 "call it may not write the full data requested.  The return value is the "
12463 "number of bytes that were actually written to the file.  This could even be "
12464 "0, although short writes are unlikely for regular files in ordinary "
12465 "circumstances."
12466 msgstr ""
12467
12468 # type: textblock
12469 #: ../src/guestfs-actions.pod:5019
12470 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12471 msgstr ""
12472
12473 # type: =head2
12474 #: ../src/guestfs-actions.pod:5028
12475 msgid "guestfs_pwrite_device"
12476 msgstr ""
12477
12478 # type: verbatim
12479 #: ../src/guestfs-actions.pod:5030
12480 #, no-wrap
12481 msgid ""
12482 " int\n"
12483 " guestfs_pwrite_device (guestfs_h *g,\n"
12484 "                        const char *device,\n"
12485 "                        const char *content,\n"
12486 "                        size_t content_size,\n"
12487 "                        int64_t offset);\n"
12488 "\n"
12489 msgstr ""
12490
12491 # type: textblock
12492 #: ../src/guestfs-actions.pod:5037 ../fish/guestfish-actions.pod:3361
12493 msgid ""
12494 "This command writes to part of a device.  It writes the data buffer "
12495 "C<content> to C<device> starting at offset C<offset>."
12496 msgstr ""
12497
12498 # type: textblock
12499 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3364
12500 msgid ""
12501 "This command implements the L<pwrite(2)> system call, and like that system "
12502 "call it may not write the full data requested (although short writes to disk "
12503 "devices and partitions are probably impossible with standard Linux kernels)."
12504 msgstr ""
12505
12506 # type: textblock
12507 #: ../src/guestfs-actions.pod:5045
12508 msgid "See also C<guestfs_pwrite>."
12509 msgstr ""
12510
12511 # type: textblock
12512 #: ../src/guestfs-actions.pod:5052
12513 msgid "(Added in 1.5.20)"
12514 msgstr ""
12515
12516 # type: =head2
12517 #: ../src/guestfs-actions.pod:5054
12518 msgid "guestfs_read_file"
12519 msgstr ""
12520
12521 # type: verbatim
12522 #: ../src/guestfs-actions.pod:5056
12523 #, no-wrap
12524 msgid ""
12525 " char *\n"
12526 " guestfs_read_file (guestfs_h *g,\n"
12527 "                    const char *path,\n"
12528 "                    size_t *size_r);\n"
12529 "\n"
12530 msgstr ""
12531
12532 # type: textblock
12533 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3378
12534 msgid "This calls returns the contents of the file C<path> as a buffer."
12535 msgstr ""
12536
12537 # type: textblock
12538 #: ../src/guestfs-actions.pod:5064
12539 msgid ""
12540 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12541 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12542 "function is limited in the total size of file that can be handled."
12543 msgstr ""
12544
12545 # type: textblock
12546 #: ../src/guestfs-actions.pod:5076
12547 msgid "(Added in 1.0.63)"
12548 msgstr ""
12549
12550 # type: =head2
12551 #: ../src/guestfs-actions.pod:5078
12552 msgid "guestfs_read_lines"
12553 msgstr ""
12554
12555 # type: verbatim
12556 #: ../src/guestfs-actions.pod:5080
12557 #, no-wrap
12558 msgid ""
12559 " char **\n"
12560 " guestfs_read_lines (guestfs_h *g,\n"
12561 "                     const char *path);\n"
12562 "\n"
12563 msgstr ""
12564
12565 # type: textblock
12566 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3395
12567 msgid ""
12568 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12569 "C<CRLF> character sequences are I<not> returned."
12570 msgstr ""
12571
12572 # type: textblock
12573 #: ../src/guestfs-actions.pod:5089
12574 msgid ""
12575 "Note that this function cannot correctly handle binary files (specifically, "
12576 "files containing C<\\0> character which is treated as end of line).  For "
12577 "those you need to use the C<guestfs_read_file> function which has a more "
12578 "complex interface."
12579 msgstr ""
12580
12581 # type: =head2
12582 #: ../src/guestfs-actions.pod:5100
12583 msgid "guestfs_readdir"
12584 msgstr ""
12585
12586 # type: verbatim
12587 #: ../src/guestfs-actions.pod:5102
12588 #, no-wrap
12589 msgid ""
12590 " struct guestfs_dirent_list *\n"
12591 " guestfs_readdir (guestfs_h *g,\n"
12592 "                  const char *dir);\n"
12593 "\n"
12594 msgstr ""
12595
12596 # type: textblock
12597 #: ../src/guestfs-actions.pod:5106 ../fish/guestfish-actions.pod:3407
12598 msgid "This returns the list of directory entries in directory C<dir>."
12599 msgstr ""
12600
12601 # type: textblock
12602 #: ../src/guestfs-actions.pod:5108 ../fish/guestfish-actions.pod:3409
12603 msgid ""
12604 "All entries in the directory are returned, including C<.> and C<..>.  The "
12605 "entries are I<not> sorted, but returned in the same order as the underlying "
12606 "filesystem."
12607 msgstr ""
12608
12609 # type: textblock
12610 #: ../src/guestfs-actions.pod:5112 ../fish/guestfish-actions.pod:3413
12611 msgid ""
12612 "Also this call returns basic file type information about each file.  The "
12613 "C<ftyp> field will contain one of the following characters:"
12614 msgstr ""
12615
12616 # type: =item
12617 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3418
12618 msgid "'b'"
12619 msgstr ""
12620
12621 # type: textblock
12622 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3420
12623 msgid "Block special"
12624 msgstr ""
12625
12626 # type: =item
12627 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3422
12628 msgid "'c'"
12629 msgstr ""
12630
12631 # type: textblock
12632 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3424
12633 msgid "Char special"
12634 msgstr ""
12635
12636 # type: =item
12637 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3426
12638 msgid "'d'"
12639 msgstr ""
12640
12641 # type: textblock
12642 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3428
12643 msgid "Directory"
12644 msgstr ""
12645
12646 # type: =item
12647 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3430
12648 msgid "'f'"
12649 msgstr ""
12650
12651 # type: textblock
12652 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3432
12653 msgid "FIFO (named pipe)"
12654 msgstr ""
12655
12656 # type: =item
12657 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3434
12658 msgid "'l'"
12659 msgstr ""
12660
12661 # type: textblock
12662 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3436
12663 msgid "Symbolic link"
12664 msgstr ""
12665
12666 # type: =item
12667 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3438
12668 msgid "'r'"
12669 msgstr ""
12670
12671 # type: textblock
12672 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3440
12673 msgid "Regular file"
12674 msgstr ""
12675
12676 # type: =item
12677 #: ../src/guestfs-actions.pod:5141 ../fish/guestfish-actions.pod:3442
12678 msgid "'s'"
12679 msgstr ""
12680
12681 # type: textblock
12682 #: ../src/guestfs-actions.pod:5143 ../fish/guestfish-actions.pod:3444
12683 msgid "Socket"
12684 msgstr ""
12685
12686 # type: =item
12687 #: ../src/guestfs-actions.pod:5145 ../fish/guestfish-actions.pod:3446
12688 msgid "'u'"
12689 msgstr ""
12690
12691 # type: textblock
12692 #: ../src/guestfs-actions.pod:5147 ../fish/guestfish-actions.pod:3448
12693 msgid "Unknown file type"
12694 msgstr ""
12695
12696 # type: =item
12697 #: ../src/guestfs-actions.pod:5149 ../fish/guestfish-actions.pod:3450
12698 msgid "'?'"
12699 msgstr ""
12700
12701 # type: textblock
12702 #: ../src/guestfs-actions.pod:5151 ../fish/guestfish-actions.pod:3452
12703 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12704 msgstr ""
12705
12706 # type: textblock
12707 #: ../src/guestfs-actions.pod:5156
12708 msgid ""
12709 "This function is primarily intended for use by programs.  To get a simple "
12710 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12711 "consumption, use C<guestfs_ll>."
12712 msgstr ""
12713
12714 # type: textblock
12715 #: ../src/guestfs-actions.pod:5160
12716 msgid ""
12717 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12718 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
12719 "use>."
12720 msgstr ""
12721
12722 # type: =head2
12723 #: ../src/guestfs-actions.pod:5166
12724 msgid "guestfs_readlink"
12725 msgstr ""
12726
12727 # type: verbatim
12728 #: ../src/guestfs-actions.pod:5168
12729 #, no-wrap
12730 msgid ""
12731 " char *\n"
12732 " guestfs_readlink (guestfs_h *g,\n"
12733 "                   const char *path);\n"
12734 "\n"
12735 msgstr ""
12736
12737 # type: textblock
12738 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3465
12739 msgid "This command reads the target of a symbolic link."
12740 msgstr ""
12741
12742 # type: =head2
12743 #: ../src/guestfs-actions.pod:5179
12744 msgid "guestfs_readlinklist"
12745 msgstr ""
12746
12747 # type: verbatim
12748 #: ../src/guestfs-actions.pod:5181
12749 #, no-wrap
12750 msgid ""
12751 " char **\n"
12752 " guestfs_readlinklist (guestfs_h *g,\n"
12753 "                       const char *path,\n"
12754 "                       char *const *names);\n"
12755 "\n"
12756 msgstr ""
12757
12758 # type: textblock
12759 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3471
12760 msgid ""
12761 "This call allows you to do a C<readlink> operation on multiple files, where "
12762 "all files are in the directory C<path>.  C<names> is the list of files from "
12763 "this directory."
12764 msgstr ""
12765
12766 # type: textblock
12767 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:3475
12768 msgid ""
12769 "On return you get a list of strings, with a one-to-one correspondence to the "
12770 "C<names> list.  Each string is the value of the symbolic link."
12771 msgstr ""
12772
12773 # type: textblock
12774 #: ../src/guestfs-actions.pod:5194 ../fish/guestfish-actions.pod:3479
12775 msgid ""
12776 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12777 "result string is the empty string C<\"\">.  However the whole operation is "
12778 "completed even if there were C<readlink(2)> errors, and so you can call this "
12779 "function with names where you don't know if they are symbolic links already "
12780 "(albeit slightly less efficient)."
12781 msgstr ""
12782
12783 # type: textblock
12784 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3486
12785 msgid ""
12786 "This call is intended for programs that want to efficiently list a directory "
12787 "contents without making many round-trips.  Very long directory listings "
12788 "might cause the protocol message size to be exceeded, causing this call to "
12789 "fail.  The caller must split up such requests into smaller groups of names."
12790 msgstr ""
12791
12792 # type: =head2
12793 #: ../src/guestfs-actions.pod:5214
12794 msgid "guestfs_realpath"
12795 msgstr ""
12796
12797 # type: verbatim
12798 #: ../src/guestfs-actions.pod:5216
12799 #, no-wrap
12800 msgid ""
12801 " char *\n"
12802 " guestfs_realpath (guestfs_h *g,\n"
12803 "                   const char *path);\n"
12804 "\n"
12805 msgstr ""
12806
12807 # type: textblock
12808 #: ../src/guestfs-actions.pod:5220 ../fish/guestfish-actions.pod:3497
12809 msgid ""
12810 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12811 "has no C<.>, C<..> or symbolic link path elements."
12812 msgstr ""
12813
12814 # type: =head2
12815 #: ../src/guestfs-actions.pod:5228
12816 msgid "guestfs_removexattr"
12817 msgstr ""
12818
12819 # type: verbatim
12820 #: ../src/guestfs-actions.pod:5230
12821 #, no-wrap
12822 msgid ""
12823 " int\n"
12824 " guestfs_removexattr (guestfs_h *g,\n"
12825 "                      const char *xattr,\n"
12826 "                      const char *path);\n"
12827 "\n"
12828 msgstr ""
12829
12830 # type: textblock
12831 #: ../src/guestfs-actions.pod:5235 ../fish/guestfish-actions.pod:3504
12832 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12833 msgstr ""
12834
12835 # type: textblock
12836 #: ../src/guestfs-actions.pod:5238
12837 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12838 msgstr ""
12839
12840 # type: =head2
12841 #: ../src/guestfs-actions.pod:5244
12842 msgid "guestfs_resize2fs"
12843 msgstr ""
12844
12845 # type: verbatim
12846 #: ../src/guestfs-actions.pod:5246
12847 #, no-wrap
12848 msgid ""
12849 " int\n"
12850 " guestfs_resize2fs (guestfs_h *g,\n"
12851 "                    const char *device);\n"
12852 "\n"
12853 msgstr ""
12854
12855 # type: textblock
12856 #: ../src/guestfs-actions.pod:5250 ../fish/guestfish-actions.pod:3513
12857 msgid ""
12858 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12859 "underlying device."
12860 msgstr ""
12861
12862 # type: textblock
12863 #: ../src/guestfs-actions.pod:5253
12864 msgid ""
12865 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12866 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12867 "sometimes gives an error about this and sometimes not.  In any case, it is "
12868 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12869 msgstr ""
12870
12871 # type: =head2
12872 #: ../src/guestfs-actions.pod:5263
12873 msgid "guestfs_resize2fs_size"
12874 msgstr ""
12875
12876 # type: verbatim
12877 #: ../src/guestfs-actions.pod:5265
12878 #, no-wrap
12879 msgid ""
12880 " int\n"
12881 " guestfs_resize2fs_size (guestfs_h *g,\n"
12882 "                         const char *device,\n"
12883 "                         int64_t size);\n"
12884 "\n"
12885 msgstr ""
12886
12887 # type: textblock
12888 #: ../src/guestfs-actions.pod:5270
12889 msgid ""
12890 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12891 "to specify the new size (in bytes) explicitly."
12892 msgstr ""
12893
12894 # type: =head2
12895 #: ../src/guestfs-actions.pod:5277
12896 msgid "guestfs_rm"
12897 msgstr ""
12898
12899 # type: verbatim
12900 #: ../src/guestfs-actions.pod:5279
12901 #, no-wrap
12902 msgid ""
12903 " int\n"
12904 " guestfs_rm (guestfs_h *g,\n"
12905 "             const char *path);\n"
12906 "\n"
12907 msgstr ""
12908
12909 # type: textblock
12910 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3533
12911 msgid "Remove the single file C<path>."
12912 msgstr ""
12913
12914 # type: =head2
12915 #: ../src/guestfs-actions.pod:5289
12916 msgid "guestfs_rm_rf"
12917 msgstr ""
12918
12919 # type: verbatim
12920 #: ../src/guestfs-actions.pod:5291
12921 #, no-wrap
12922 msgid ""
12923 " int\n"
12924 " guestfs_rm_rf (guestfs_h *g,\n"
12925 "                const char *path);\n"
12926 "\n"
12927 msgstr ""
12928
12929 # type: textblock
12930 #: ../src/guestfs-actions.pod:5295 ../fish/guestfish-actions.pod:3539
12931 msgid ""
12932 "Remove the file or directory C<path>, recursively removing the contents if "
12933 "its a directory.  This is like the C<rm -rf> shell command."
12934 msgstr ""
12935
12936 # type: =head2
12937 #: ../src/guestfs-actions.pod:5303
12938 msgid "guestfs_rmdir"
12939 msgstr ""
12940
12941 # type: verbatim
12942 #: ../src/guestfs-actions.pod:5305
12943 #, no-wrap
12944 msgid ""
12945 " int\n"
12946 " guestfs_rmdir (guestfs_h *g,\n"
12947 "                const char *path);\n"
12948 "\n"
12949 msgstr ""
12950
12951 # type: textblock
12952 #: ../src/guestfs-actions.pod:5309 ../fish/guestfish-actions.pod:3547
12953 msgid "Remove the single directory C<path>."
12954 msgstr ""
12955
12956 # type: =head2
12957 #: ../src/guestfs-actions.pod:5315
12958 msgid "guestfs_rmmountpoint"
12959 msgstr ""
12960
12961 # type: verbatim
12962 #: ../src/guestfs-actions.pod:5317
12963 #, no-wrap
12964 msgid ""
12965 " int\n"
12966 " guestfs_rmmountpoint (guestfs_h *g,\n"
12967 "                       const char *exemptpath);\n"
12968 "\n"
12969 msgstr ""
12970
12971 # type: textblock
12972 #: ../src/guestfs-actions.pod:5321
12973 msgid ""
12974 "This calls removes a mountpoint that was previously created with "
12975 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12976 msgstr ""
12977
12978 # type: =head2
12979 #: ../src/guestfs-actions.pod:5329
12980 msgid "guestfs_scrub_device"
12981 msgstr ""
12982
12983 # type: verbatim
12984 #: ../src/guestfs-actions.pod:5331
12985 #, no-wrap
12986 msgid ""
12987 " int\n"
12988 " guestfs_scrub_device (guestfs_h *g,\n"
12989 "                       const char *device);\n"
12990 "\n"
12991 msgstr ""
12992
12993 # type: textblock
12994 #: ../src/guestfs-actions.pod:5335 ../fish/guestfish-actions.pod:3561
12995 msgid ""
12996 "This command writes patterns over C<device> to make data retrieval more "
12997 "difficult."
12998 msgstr ""
12999
13000 # type: textblock
13001 #: ../src/guestfs-actions.pod:5338 ../src/guestfs-actions.pod:5359 ../src/guestfs-actions.pod:5378 ../fish/guestfish-actions.pod:3564 ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3592
13002 msgid ""
13003 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13004 "more details."
13005 msgstr ""
13006
13007 # type: textblock
13008 #: ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5383
13009 msgid "(Added in 1.0.52)"
13010 msgstr ""
13011
13012 # type: =head2
13013 #: ../src/guestfs-actions.pod:5348
13014 msgid "guestfs_scrub_file"
13015 msgstr ""
13016
13017 # type: verbatim
13018 #: ../src/guestfs-actions.pod:5350
13019 #, no-wrap
13020 msgid ""
13021 " int\n"
13022 " guestfs_scrub_file (guestfs_h *g,\n"
13023 "                     const char *file);\n"
13024 "\n"
13025 msgstr ""
13026
13027 # type: textblock
13028 #: ../src/guestfs-actions.pod:5354 ../fish/guestfish-actions.pod:3574
13029 msgid ""
13030 "This command writes patterns over a file to make data retrieval more "
13031 "difficult."
13032 msgstr ""
13033
13034 # type: textblock
13035 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3577
13036 msgid "The file is I<removed> after scrubbing."
13037 msgstr ""
13038
13039 # type: =head2
13040 #: ../src/guestfs-actions.pod:5366
13041 msgid "guestfs_scrub_freespace"
13042 msgstr ""
13043
13044 # type: verbatim
13045 #: ../src/guestfs-actions.pod:5368
13046 #, no-wrap
13047 msgid ""
13048 " int\n"
13049 " guestfs_scrub_freespace (guestfs_h *g,\n"
13050 "                          const char *dir);\n"
13051 "\n"
13052 msgstr ""
13053
13054 # type: textblock
13055 #: ../src/guestfs-actions.pod:5372
13056 msgid ""
13057 "This command creates the directory C<dir> and then fills it with files until "
13058 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13059 "and deletes them.  The intention is to scrub any free space on the partition "
13060 "containing C<dir>."
13061 msgstr ""
13062
13063 # type: =head2
13064 #: ../src/guestfs-actions.pod:5385
13065 msgid "guestfs_set_append"
13066 msgstr ""
13067
13068 # type: verbatim
13069 #: ../src/guestfs-actions.pod:5387
13070 #, no-wrap
13071 msgid ""
13072 " int\n"
13073 " guestfs_set_append (guestfs_h *g,\n"
13074 "                     const char *append);\n"
13075 "\n"
13076 msgstr ""
13077
13078 # type: textblock
13079 #: ../src/guestfs-actions.pod:5391 ../fish/guestfish-actions.pod:3601
13080 msgid ""
13081 "This function is used to add additional options to the guest kernel command "
13082 "line."
13083 msgstr ""
13084
13085 # type: textblock
13086 #: ../src/guestfs-actions.pod:5394 ../fish/guestfish-actions.pod:3604
13087 msgid ""
13088 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13089 "environment variable."
13090 msgstr ""
13091
13092 # type: textblock
13093 #: ../src/guestfs-actions.pod:5397 ../fish/guestfish-actions.pod:3607
13094 msgid ""
13095 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13096 "(libguestfs always adds a few of its own)."
13097 msgstr ""
13098
13099 # type: =head2
13100 #: ../src/guestfs-actions.pod:5404
13101 msgid "guestfs_set_autosync"
13102 msgstr ""
13103
13104 # type: verbatim
13105 #: ../src/guestfs-actions.pod:5406
13106 #, no-wrap
13107 msgid ""
13108 " int\n"
13109 " guestfs_set_autosync (guestfs_h *g,\n"
13110 "                       int autosync);\n"
13111 "\n"
13112 msgstr ""
13113
13114 # type: textblock
13115 #: ../src/guestfs-actions.pod:5410
13116 msgid ""
13117 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13118 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13119 "the handle is closed (also if the program exits without closing handles)."
13120 msgstr ""
13121
13122 # type: textblock
13123 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:3621
13124 msgid ""
13125 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13126 "disabled by default)."
13127 msgstr ""
13128
13129 # type: =head2
13130 #: ../src/guestfs-actions.pod:5422
13131 msgid "guestfs_set_direct"
13132 msgstr ""
13133
13134 # type: verbatim
13135 #: ../src/guestfs-actions.pod:5424
13136 #, no-wrap
13137 msgid ""
13138 " int\n"
13139 " guestfs_set_direct (guestfs_h *g,\n"
13140 "                     int direct);\n"
13141 "\n"
13142 msgstr ""
13143
13144 # type: textblock
13145 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3630
13146 msgid ""
13147 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13148 "passed directly through to the appliance once it is launched."
13149 msgstr ""
13150
13151 # type: textblock
13152 #: ../src/guestfs-actions.pod:5432
13153 msgid ""
13154 "One consequence of this is that log messages aren't caught by the library "
13155 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13156 "stdout."
13157 msgstr ""
13158
13159 # type: textblock
13160 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3638
13161 msgid "You probably don't want to use this unless you know what you are doing."
13162 msgstr ""
13163
13164 # type: textblock
13165 #: ../src/guestfs-actions.pod:5439 ../fish/guestfish-actions.pod:3641
13166 msgid "The default is disabled."
13167 msgstr ""
13168
13169 # type: =head2
13170 #: ../src/guestfs-actions.pod:5445
13171 msgid "guestfs_set_e2label"
13172 msgstr ""
13173
13174 # type: verbatim
13175 #: ../src/guestfs-actions.pod:5447
13176 #, no-wrap
13177 msgid ""
13178 " int\n"
13179 " guestfs_set_e2label (guestfs_h *g,\n"
13180 "                      const char *device,\n"
13181 "                      const char *label);\n"
13182 "\n"
13183 msgstr ""
13184
13185 # type: textblock
13186 #: ../src/guestfs-actions.pod:5452 ../fish/guestfish-actions.pod:3647
13187 msgid ""
13188 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13189 "C<label>.  Filesystem labels are limited to 16 characters."
13190 msgstr ""
13191
13192 # type: textblock
13193 #: ../src/guestfs-actions.pod:5456
13194 msgid ""
13195 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13196 "the existing label on a filesystem."
13197 msgstr ""
13198
13199 # type: =head2
13200 #: ../src/guestfs-actions.pod:5463
13201 msgid "guestfs_set_e2uuid"
13202 msgstr ""
13203
13204 # type: verbatim
13205 #: ../src/guestfs-actions.pod:5465
13206 #, no-wrap
13207 msgid ""
13208 " int\n"
13209 " guestfs_set_e2uuid (guestfs_h *g,\n"
13210 "                     const char *device,\n"
13211 "                     const char *uuid);\n"
13212 "\n"
13213 msgstr ""
13214
13215 # type: textblock
13216 #: ../src/guestfs-actions.pod:5470 ../fish/guestfish-actions.pod:3658
13217 msgid ""
13218 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13219 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13220 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13221 msgstr ""
13222
13223 # type: textblock
13224 #: ../src/guestfs-actions.pod:5475
13225 msgid ""
13226 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13227 "the existing UUID of a filesystem."
13228 msgstr ""
13229
13230 # type: =head2
13231 #: ../src/guestfs-actions.pod:5482
13232 msgid "guestfs_set_memsize"
13233 msgstr ""
13234
13235 # type: verbatim
13236 #: ../src/guestfs-actions.pod:5484
13237 #, no-wrap
13238 msgid ""
13239 " int\n"
13240 " guestfs_set_memsize (guestfs_h *g,\n"
13241 "                      int memsize);\n"
13242 "\n"
13243 msgstr ""
13244
13245 # type: textblock
13246 #: ../src/guestfs-actions.pod:5488
13247 msgid ""
13248 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13249 "This only has any effect if called before C<guestfs_launch>."
13250 msgstr ""
13251
13252 # type: textblock
13253 #: ../src/guestfs-actions.pod:5492 ../fish/guestfish-actions.pod:3676
13254 msgid ""
13255 "You can also change this by setting the environment variable "
13256 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13257 msgstr ""
13258
13259 # type: =head2
13260 #: ../src/guestfs-actions.pod:5503
13261 msgid "guestfs_set_network"
13262 msgstr ""
13263
13264 # type: verbatim
13265 #: ../src/guestfs-actions.pod:5505
13266 #, no-wrap
13267 msgid ""
13268 " int\n"
13269 " guestfs_set_network (guestfs_h *g,\n"
13270 "                      int network);\n"
13271 "\n"
13272 msgstr ""
13273
13274 # type: textblock
13275 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3689
13276 msgid ""
13277 "If C<network> is true, then the network is enabled in the libguestfs "
13278 "appliance.  The default is false."
13279 msgstr ""
13280
13281 # type: textblock
13282 #: ../src/guestfs-actions.pod:5512 ../fish/guestfish-actions.pod:3692
13283 msgid ""
13284 "This affects whether commands are able to access the network (see "
13285 "L<guestfs(3)/RUNNING COMMANDS>)."
13286 msgstr ""
13287
13288 # type: textblock
13289 #: ../src/guestfs-actions.pod:5515
13290 msgid ""
13291 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13292 "effect."
13293 msgstr ""
13294
13295 # type: =head2
13296 #: ../src/guestfs-actions.pod:5522
13297 msgid "guestfs_set_path"
13298 msgstr ""
13299
13300 # type: verbatim
13301 #: ../src/guestfs-actions.pod:5524
13302 #, no-wrap
13303 msgid ""
13304 " int\n"
13305 " guestfs_set_path (guestfs_h *g,\n"
13306 "                   const char *searchpath);\n"
13307 "\n"
13308 msgstr ""
13309
13310 # type: textblock
13311 #: ../src/guestfs-actions.pod:5528 ../fish/guestfish-actions.pod:3704
13312 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13313 msgstr ""
13314
13315 # type: textblock
13316 #: ../src/guestfs-actions.pod:5530 ../fish/guestfish-actions.pod:3706
13317 msgid ""
13318 "The default is C<$libdir/guestfs> unless overridden by setting "
13319 "C<LIBGUESTFS_PATH> environment variable."
13320 msgstr ""
13321
13322 # type: textblock
13323 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3709
13324 msgid "Setting C<path> to C<NULL> restores the default path."
13325 msgstr ""
13326
13327 # type: =head2
13328 #: ../src/guestfs-actions.pod:5539
13329 msgid "guestfs_set_qemu"
13330 msgstr ""
13331
13332 # type: verbatim
13333 #: ../src/guestfs-actions.pod:5541
13334 #, no-wrap
13335 msgid ""
13336 " int\n"
13337 " guestfs_set_qemu (guestfs_h *g,\n"
13338 "                   const char *qemu);\n"
13339 "\n"
13340 msgstr ""
13341
13342 # type: textblock
13343 #: ../src/guestfs-actions.pod:5545 ../fish/guestfish-actions.pod:3717
13344 msgid "Set the qemu binary that we will use."
13345 msgstr ""
13346
13347 # type: textblock
13348 #: ../src/guestfs-actions.pod:5547 ../fish/guestfish-actions.pod:3719
13349 msgid "The default is chosen when the library was compiled by the configure script."
13350 msgstr ""
13351
13352 # type: textblock
13353 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:3722
13354 msgid ""
13355 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13356 "variable."
13357 msgstr ""
13358
13359 # type: textblock
13360 #: ../src/guestfs-actions.pod:5553 ../fish/guestfish-actions.pod:3725
13361 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13362 msgstr ""
13363
13364 # type: textblock
13365 #: ../src/guestfs-actions.pod:5555 ../fish/guestfish-actions.pod:3727
13366 msgid ""
13367 "Note that you should call this function as early as possible after creating "
13368 "the handle.  This is because some pre-launch operations depend on testing "
13369 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13370 "don't retest features, and so you might see inconsistent results.  Using the "
13371 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13372 "the qemu binary at the same time as the handle is created."
13373 msgstr ""
13374
13375 # type: =head2
13376 #: ../src/guestfs-actions.pod:5567
13377 msgid "guestfs_set_recovery_proc"
13378 msgstr ""
13379
13380 # type: verbatim
13381 #: ../src/guestfs-actions.pod:5569
13382 #, no-wrap
13383 msgid ""
13384 " int\n"
13385 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13386 "                            int recoveryproc);\n"
13387 "\n"
13388 msgstr ""
13389
13390 # type: textblock
13391 #: ../src/guestfs-actions.pod:5573
13392 msgid ""
13393 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13394 "not create a recovery process.  The purpose of the recovery process is to "
13395 "stop runaway qemu processes in the case where the main program aborts "
13396 "abruptly."
13397 msgstr ""
13398
13399 # type: textblock
13400 #: ../src/guestfs-actions.pod:5578
13401 msgid ""
13402 "This only has any effect if called before C<guestfs_launch>, and the default "
13403 "is true."
13404 msgstr ""
13405
13406 # type: textblock
13407 #: ../src/guestfs-actions.pod:5581 ../fish/guestfish-actions.pod:3749
13408 msgid ""
13409 "About the only time when you would want to disable this is if the main "
13410 "process will fork itself into the background (\"daemonize\" itself).  In "
13411 "this case the recovery process thinks that the main program has disappeared "
13412 "and so kills qemu, which is not very helpful."
13413 msgstr ""
13414
13415 # type: =head2
13416 #: ../src/guestfs-actions.pod:5591
13417 msgid "guestfs_set_selinux"
13418 msgstr ""
13419
13420 # type: verbatim
13421 #: ../src/guestfs-actions.pod:5593
13422 #, no-wrap
13423 msgid ""
13424 " int\n"
13425 " guestfs_set_selinux (guestfs_h *g,\n"
13426 "                      int selinux);\n"
13427 "\n"
13428 msgstr ""
13429
13430 # type: textblock
13431 #: ../src/guestfs-actions.pod:5597 ../fish/guestfish-actions.pod:3761
13432 msgid ""
13433 "This sets the selinux flag that is passed to the appliance at boot time.  "
13434 "The default is C<selinux=0> (disabled)."
13435 msgstr ""
13436
13437 # type: textblock
13438 #: ../src/guestfs-actions.pod:5600 ../fish/guestfish-actions.pod:3764
13439 msgid ""
13440 "Note that if SELinux is enabled, it is always in Permissive mode "
13441 "(C<enforcing=0>)."
13442 msgstr ""
13443
13444 # type: =head2
13445 #: ../src/guestfs-actions.pod:5610
13446 msgid "guestfs_set_trace"
13447 msgstr ""
13448
13449 # type: verbatim
13450 #: ../src/guestfs-actions.pod:5612
13451 #, no-wrap
13452 msgid ""
13453 " int\n"
13454 " guestfs_set_trace (guestfs_h *g,\n"
13455 "                    int trace);\n"
13456 "\n"
13457 msgstr ""
13458
13459 # type: textblock
13460 #: ../src/guestfs-actions.pod:5616 ../fish/guestfish-actions.pod:3776
13461 msgid ""
13462 "If the command trace flag is set to 1, then commands are printed on stderr "
13463 "before they are executed in a format which is very similar to the one used "
13464 "by guestfish.  In other words, you can run a program with this enabled, and "
13465 "you will get out a script which you can feed to guestfish to perform the "
13466 "same set of actions."
13467 msgstr ""
13468
13469 # type: textblock
13470 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:3783
13471 msgid ""
13472 "If you want to trace C API calls into libguestfs (and other libraries) then "
13473 "possibly a better way is to use the external ltrace(1) command."
13474 msgstr ""
13475
13476 # type: textblock
13477 #: ../src/guestfs-actions.pod:5627 ../fish/guestfish-actions.pod:3787
13478 msgid ""
13479 "Command traces are disabled unless the environment variable "
13480 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13481 msgstr ""
13482
13483 # type: =head2
13484 #: ../src/guestfs-actions.pod:5634
13485 msgid "guestfs_set_verbose"
13486 msgstr ""
13487
13488 # type: verbatim
13489 #: ../src/guestfs-actions.pod:5636
13490 #, no-wrap
13491 msgid ""
13492 " int\n"
13493 " guestfs_set_verbose (guestfs_h *g,\n"
13494 "                      int verbose);\n"
13495 "\n"
13496 msgstr ""
13497
13498 # type: textblock
13499 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:3796
13500 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13501 msgstr ""
13502
13503 # type: textblock
13504 #: ../src/guestfs-actions.pod:5642 ../fish/guestfish-actions.pod:3798
13505 msgid ""
13506 "Verbose messages are disabled unless the environment variable "
13507 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13508 msgstr ""
13509
13510 # type: =head2
13511 #: ../src/guestfs-actions.pod:5649
13512 msgid "guestfs_setcon"
13513 msgstr ""
13514
13515 # type: verbatim
13516 #: ../src/guestfs-actions.pod:5651
13517 #, no-wrap
13518 msgid ""
13519 " int\n"
13520 " guestfs_setcon (guestfs_h *g,\n"
13521 "                 const char *context);\n"
13522 "\n"
13523 msgstr ""
13524
13525 # type: textblock
13526 #: ../src/guestfs-actions.pod:5655 ../fish/guestfish-actions.pod:3805
13527 msgid ""
13528 "This sets the SELinux security context of the daemon to the string "
13529 "C<context>."
13530 msgstr ""
13531
13532 # type: textblock
13533 #: ../src/guestfs-actions.pod:5658 ../fish/guestfish-actions.pod:3808
13534 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13535 msgstr ""
13536
13537 # type: =head2
13538 #: ../src/guestfs-actions.pod:5664
13539 msgid "guestfs_setxattr"
13540 msgstr ""
13541
13542 # type: verbatim
13543 #: ../src/guestfs-actions.pod:5666
13544 #, no-wrap
13545 msgid ""
13546 " int\n"
13547 " guestfs_setxattr (guestfs_h *g,\n"
13548 "                   const char *xattr,\n"
13549 "                   const char *val,\n"
13550 "                   int vallen,\n"
13551 "                   const char *path);\n"
13552 "\n"
13553 msgstr ""
13554
13555 # type: textblock
13556 #: ../src/guestfs-actions.pod:5673 ../fish/guestfish-actions.pod:3814
13557 msgid ""
13558 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13559 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13560 msgstr ""
13561
13562 # type: textblock
13563 #: ../src/guestfs-actions.pod:5677
13564 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13565 msgstr ""
13566
13567 # type: =head2
13568 #: ../src/guestfs-actions.pod:5683
13569 msgid "guestfs_sfdisk"
13570 msgstr ""
13571
13572 # type: verbatim
13573 #: ../src/guestfs-actions.pod:5685
13574 #, no-wrap
13575 msgid ""
13576 " int\n"
13577 " guestfs_sfdisk (guestfs_h *g,\n"
13578 "                 const char *device,\n"
13579 "                 int cyls,\n"
13580 "                 int heads,\n"
13581 "                 int sectors,\n"
13582 "                 char *const *lines);\n"
13583 "\n"
13584 msgstr ""
13585
13586 # type: textblock
13587 #: ../src/guestfs-actions.pod:5693 ../fish/guestfish-actions.pod:3824
13588 msgid ""
13589 "This is a direct interface to the L<sfdisk(8)> program for creating "
13590 "partitions on block devices."
13591 msgstr ""
13592
13593 # type: textblock
13594 #: ../src/guestfs-actions.pod:5696 ../fish/guestfish-actions.pod:3827
13595 msgid "C<device> should be a block device, for example C</dev/sda>."
13596 msgstr ""
13597
13598 # type: textblock
13599 #: ../src/guestfs-actions.pod:5698 ../fish/guestfish-actions.pod:3829
13600 msgid ""
13601 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13602 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13603 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13604 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13605 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13606 "the kernel) cannot work out the right geometry and you will need to tell it."
13607 msgstr ""
13608
13609 # type: textblock
13610 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3837
13611 msgid ""
13612 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13613 "refer to the L<sfdisk(8)> manpage."
13614 msgstr ""
13615
13616 # type: textblock
13617 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3840
13618 msgid ""
13619 "To create a single partition occupying the whole disk, you would pass "
13620 "C<lines> as a single element list, when the single element being the string "
13621 "C<,> (comma)."
13622 msgstr ""
13623
13624 # type: textblock
13625 #: ../src/guestfs-actions.pod:5713
13626 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13627 msgstr ""
13628
13629 # type: =head2
13630 #: ../src/guestfs-actions.pod:5723
13631 msgid "guestfs_sfdiskM"
13632 msgstr ""
13633
13634 # type: verbatim
13635 #: ../src/guestfs-actions.pod:5725
13636 #, no-wrap
13637 msgid ""
13638 " int\n"
13639 " guestfs_sfdiskM (guestfs_h *g,\n"
13640 "                  const char *device,\n"
13641 "                  char *const *lines);\n"
13642 "\n"
13643 msgstr ""
13644
13645 # type: textblock
13646 #: ../src/guestfs-actions.pod:5730
13647 msgid ""
13648 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13649 "partition sizes are specified in megabytes only (rounded to the nearest "
13650 "cylinder) and you don't need to specify the cyls, heads and sectors "
13651 "parameters which were rarely if ever used anyway."
13652 msgstr ""
13653
13654 # type: textblock
13655 #: ../src/guestfs-actions.pod:5736
13656 msgid ""
13657 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13658 "C<guestfs_part_disk>"
13659 msgstr ""
13660
13661 # type: =head2
13662 #: ../src/guestfs-actions.pod:5746
13663 msgid "guestfs_sfdisk_N"
13664 msgstr ""
13665
13666 # type: verbatim
13667 #: ../src/guestfs-actions.pod:5748
13668 #, no-wrap
13669 msgid ""
13670 " int\n"
13671 " guestfs_sfdisk_N (guestfs_h *g,\n"
13672 "                   const char *device,\n"
13673 "                   int partnum,\n"
13674 "                   int cyls,\n"
13675 "                   int heads,\n"
13676 "                   int sectors,\n"
13677 "                   const char *line);\n"
13678 "\n"
13679 msgstr ""
13680
13681 # type: textblock
13682 #: ../src/guestfs-actions.pod:5757 ../fish/guestfish-actions.pod:3870
13683 msgid ""
13684 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13685 "(note: C<n> counts from 1)."
13686 msgstr ""
13687
13688 # type: textblock
13689 #: ../src/guestfs-actions.pod:5760
13690 msgid ""
13691 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13692 "for the cyls/heads/sectors parameters."
13693 msgstr ""
13694
13695 # type: textblock
13696 #: ../src/guestfs-actions.pod:5763
13697 msgid "See also: C<guestfs_part_add>"
13698 msgstr ""
13699
13700 # type: =head2
13701 #: ../src/guestfs-actions.pod:5772
13702 msgid "guestfs_sfdisk_disk_geometry"
13703 msgstr ""
13704
13705 # type: verbatim
13706 #: ../src/guestfs-actions.pod:5774
13707 #, no-wrap
13708 msgid ""
13709 " char *\n"
13710 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13711 "                               const char *device);\n"
13712 "\n"
13713 msgstr ""
13714
13715 # type: textblock
13716 #: ../src/guestfs-actions.pod:5778
13717 msgid ""
13718 "This displays the disk geometry of C<device> read from the partition table.  "
13719 "Especially in the case where the underlying block device has been resized, "
13720 "this can be different from the kernel's idea of the geometry (see "
13721 "C<guestfs_sfdisk_kernel_geometry>)."
13722 msgstr ""
13723
13724 # type: textblock
13725 #: ../src/guestfs-actions.pod:5783 ../src/guestfs-actions.pod:5799 ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
13726 msgid "The result is in human-readable format, and not designed to be parsed."
13727 msgstr ""
13728
13729 # type: =head2
13730 #: ../src/guestfs-actions.pod:5791
13731 msgid "guestfs_sfdisk_kernel_geometry"
13732 msgstr ""
13733
13734 # type: verbatim
13735 #: ../src/guestfs-actions.pod:5793
13736 #, no-wrap
13737 msgid ""
13738 " char *\n"
13739 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13740 "                                 const char *device);\n"
13741 "\n"
13742 msgstr ""
13743
13744 # type: textblock
13745 #: ../src/guestfs-actions.pod:5797 ../fish/guestfish-actions.pod:3897
13746 msgid "This displays the kernel's idea of the geometry of C<device>."
13747 msgstr ""
13748
13749 # type: =head2
13750 #: ../src/guestfs-actions.pod:5807
13751 msgid "guestfs_sfdisk_l"
13752 msgstr ""
13753
13754 # type: verbatim
13755 #: ../src/guestfs-actions.pod:5809
13756 #, no-wrap
13757 msgid ""
13758 " char *\n"
13759 " guestfs_sfdisk_l (guestfs_h *g,\n"
13760 "                   const char *device);\n"
13761 "\n"
13762 msgstr ""
13763
13764 # type: textblock
13765 #: ../src/guestfs-actions.pod:5813 ../fish/guestfish-actions.pod:3906
13766 msgid ""
13767 "This displays the partition table on C<device>, in the human-readable output "
13768 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13769 msgstr ""
13770
13771 # type: textblock
13772 #: ../src/guestfs-actions.pod:5817
13773 msgid "See also: C<guestfs_part_list>"
13774 msgstr ""
13775
13776 # type: =head2
13777 #: ../src/guestfs-actions.pod:5824
13778 msgid "guestfs_sh"
13779 msgstr ""
13780
13781 # type: verbatim
13782 #: ../src/guestfs-actions.pod:5826
13783 #, no-wrap
13784 msgid ""
13785 " char *\n"
13786 " guestfs_sh (guestfs_h *g,\n"
13787 "             const char *command);\n"
13788 "\n"
13789 msgstr ""
13790
13791 # type: textblock
13792 #: ../src/guestfs-actions.pod:5830 ../fish/guestfish-actions.pod:3916
13793 msgid ""
13794 "This call runs a command from the guest filesystem via the guest's "
13795 "C</bin/sh>."
13796 msgstr ""
13797
13798 # type: textblock
13799 #: ../src/guestfs-actions.pod:5833
13800 msgid "This is like C<guestfs_command>, but passes the command to:"
13801 msgstr ""
13802
13803 # type: verbatim
13804 #: ../src/guestfs-actions.pod:5835 ../fish/guestfish-actions.pod:3921
13805 #, no-wrap
13806 msgid ""
13807 " /bin/sh -c \"command\"\n"
13808 "\n"
13809 msgstr ""
13810
13811 # type: textblock
13812 #: ../src/guestfs-actions.pod:5837 ../fish/guestfish-actions.pod:3923
13813 msgid ""
13814 "Depending on the guest's shell, this usually results in wildcards being "
13815 "expanded, shell expressions being interpolated and so on."
13816 msgstr ""
13817
13818 # type: textblock
13819 #: ../src/guestfs-actions.pod:5841
13820 msgid "All the provisos about C<guestfs_command> apply to this call."
13821 msgstr ""
13822
13823 # type: =head2
13824 #: ../src/guestfs-actions.pod:5848
13825 msgid "guestfs_sh_lines"
13826 msgstr ""
13827
13828 # type: verbatim
13829 #: ../src/guestfs-actions.pod:5850
13830 #, no-wrap
13831 msgid ""
13832 " char **\n"
13833 " guestfs_sh_lines (guestfs_h *g,\n"
13834 "                   const char *command);\n"
13835 "\n"
13836 msgstr ""
13837
13838 # type: textblock
13839 #: ../src/guestfs-actions.pod:5854
13840 msgid ""
13841 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13842 "lines."
13843 msgstr ""
13844
13845 # type: textblock
13846 #: ../src/guestfs-actions.pod:5857
13847 msgid "See also: C<guestfs_command_lines>"
13848 msgstr ""
13849
13850 # type: =head2
13851 #: ../src/guestfs-actions.pod:5865
13852 msgid "guestfs_sleep"
13853 msgstr ""
13854
13855 # type: verbatim
13856 #: ../src/guestfs-actions.pod:5867
13857 #, no-wrap
13858 msgid ""
13859 " int\n"
13860 " guestfs_sleep (guestfs_h *g,\n"
13861 "                int secs);\n"
13862 "\n"
13863 msgstr ""
13864
13865 # type: textblock
13866 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3942
13867 msgid "Sleep for C<secs> seconds."
13868 msgstr ""
13869
13870 # type: textblock
13871 #: ../src/guestfs-actions.pod:5875
13872 msgid "(Added in 1.0.41)"
13873 msgstr ""
13874
13875 # type: =head2
13876 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-structs.pod:109
13877 msgid "guestfs_stat"
13878 msgstr ""
13879
13880 # type: verbatim
13881 #: ../src/guestfs-actions.pod:5879
13882 #, no-wrap
13883 msgid ""
13884 " struct guestfs_stat *\n"
13885 " guestfs_stat (guestfs_h *g,\n"
13886 "               const char *path);\n"
13887 "\n"
13888 msgstr ""
13889
13890 # type: textblock
13891 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3950
13892 msgid "This is the same as the C<stat(2)> system call."
13893 msgstr ""
13894
13895 # type: =head2
13896 #: ../src/guestfs-actions.pod:5893 ../src/guestfs-structs.pod:135
13897 msgid "guestfs_statvfs"
13898 msgstr ""
13899
13900 # type: verbatim
13901 #: ../src/guestfs-actions.pod:5895
13902 #, no-wrap
13903 msgid ""
13904 " struct guestfs_statvfs *\n"
13905 " guestfs_statvfs (guestfs_h *g,\n"
13906 "                  const char *path);\n"
13907 "\n"
13908 msgstr ""
13909
13910 # type: textblock
13911 #: ../src/guestfs-actions.pod:5899 ../fish/guestfish-actions.pod:3956
13912 msgid ""
13913 "Returns file system statistics for any mounted file system.  C<path> should "
13914 "be a file or directory in the mounted file system (typically it is the mount "
13915 "point itself, but it doesn't need to be)."
13916 msgstr ""
13917
13918 # type: textblock
13919 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3960
13920 msgid "This is the same as the C<statvfs(2)> system call."
13921 msgstr ""
13922
13923 # type: textblock
13924 #: ../src/guestfs-actions.pod:5905
13925 msgid ""
13926 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13927 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13928 msgstr ""
13929
13930 # type: =head2
13931 #: ../src/guestfs-actions.pod:5911
13932 msgid "guestfs_strings"
13933 msgstr ""
13934
13935 # type: verbatim
13936 #: ../src/guestfs-actions.pod:5913
13937 #, no-wrap
13938 msgid ""
13939 " char **\n"
13940 " guestfs_strings (guestfs_h *g,\n"
13941 "                  const char *path);\n"
13942 "\n"
13943 msgstr ""
13944
13945 # type: textblock
13946 #: ../src/guestfs-actions.pod:5917 ../fish/guestfish-actions.pod:3966
13947 msgid ""
13948 "This runs the L<strings(1)> command on a file and returns the list of "
13949 "printable strings found."
13950 msgstr ""
13951
13952 # type: =head2
13953 #: ../src/guestfs-actions.pod:5929
13954 msgid "guestfs_strings_e"
13955 msgstr ""
13956
13957 # type: verbatim
13958 #: ../src/guestfs-actions.pod:5931
13959 #, no-wrap
13960 msgid ""
13961 " char **\n"
13962 " guestfs_strings_e (guestfs_h *g,\n"
13963 "                    const char *encoding,\n"
13964 "                    const char *path);\n"
13965 "\n"
13966 msgstr ""
13967
13968 # type: textblock
13969 #: ../src/guestfs-actions.pod:5936
13970 msgid ""
13971 "This is like the C<guestfs_strings> command, but allows you to specify the "
13972 "encoding of strings that are looked for in the source file C<path>."
13973 msgstr ""
13974
13975 # type: textblock
13976 #: ../src/guestfs-actions.pod:5940 ../fish/guestfish-actions.pod:3980
13977 msgid "Allowed encodings are:"
13978 msgstr ""
13979
13980 # type: =item
13981 #: ../src/guestfs-actions.pod:5944 ../fish/guestfish-actions.pod:3984
13982 msgid "s"
13983 msgstr ""
13984
13985 # type: textblock
13986 #: ../src/guestfs-actions.pod:5946
13987 msgid ""
13988 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13989 "ISO-8859-X (this is what C<guestfs_strings> uses)."
13990 msgstr ""
13991
13992 # type: =item
13993 #: ../src/guestfs-actions.pod:5949 ../fish/guestfish-actions.pod:3989
13994 msgid "S"
13995 msgstr ""
13996
13997 # type: textblock
13998 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:3991
13999 msgid "Single 8-bit-byte characters."
14000 msgstr ""
14001
14002 # type: =item
14003 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:3993
14004 msgid "b"
14005 msgstr ""
14006
14007 # type: textblock
14008 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:3995
14009 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14010 msgstr ""
14011
14012 # type: =item
14013 #: ../src/guestfs-actions.pod:5958 ../fish/guestfish-actions.pod:3998
14014 msgid "l (lower case letter L)"
14015 msgstr ""
14016
14017 # type: textblock
14018 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:4000
14019 msgid ""
14020 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14021 "examining binaries in Windows guests."
14022 msgstr ""
14023
14024 # type: =item
14025 #: ../src/guestfs-actions.pod:5963 ../fish/guestfish-actions.pod:4003
14026 msgid "B"
14027 msgstr ""
14028
14029 # type: textblock
14030 #: ../src/guestfs-actions.pod:5965 ../fish/guestfish-actions.pod:4005
14031 msgid "32-bit big endian such as UCS-4BE."
14032 msgstr ""
14033
14034 # type: =item
14035 #: ../src/guestfs-actions.pod:5967 ../fish/guestfish-actions.pod:4007
14036 msgid "L"
14037 msgstr ""
14038
14039 # type: textblock
14040 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:4009
14041 msgid "32-bit little endian such as UCS-4LE."
14042 msgstr ""
14043
14044 # type: textblock
14045 #: ../src/guestfs-actions.pod:5973 ../fish/guestfish-actions.pod:4013
14046 msgid "The returned strings are transcoded to UTF-8."
14047 msgstr ""
14048
14049 # type: =head2
14050 #: ../src/guestfs-actions.pod:5984
14051 msgid "guestfs_swapoff_device"
14052 msgstr ""
14053
14054 # type: verbatim
14055 #: ../src/guestfs-actions.pod:5986
14056 #, no-wrap
14057 msgid ""
14058 " int\n"
14059 " guestfs_swapoff_device (guestfs_h *g,\n"
14060 "                         const char *device);\n"
14061 "\n"
14062 msgstr ""
14063
14064 # type: textblock
14065 #: ../src/guestfs-actions.pod:5990
14066 msgid ""
14067 "This command disables the libguestfs appliance swap device or partition "
14068 "named C<device>.  See C<guestfs_swapon_device>."
14069 msgstr ""
14070
14071 # type: =head2
14072 #: ../src/guestfs-actions.pod:5998
14073 msgid "guestfs_swapoff_file"
14074 msgstr ""
14075
14076 # type: verbatim
14077 #: ../src/guestfs-actions.pod:6000
14078 #, no-wrap
14079 msgid ""
14080 " int\n"
14081 " guestfs_swapoff_file (guestfs_h *g,\n"
14082 "                       const char *file);\n"
14083 "\n"
14084 msgstr ""
14085
14086 # type: textblock
14087 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4030
14088 msgid "This command disables the libguestfs appliance swap on file."
14089 msgstr ""
14090
14091 # type: =head2
14092 #: ../src/guestfs-actions.pod:6010
14093 msgid "guestfs_swapoff_label"
14094 msgstr ""
14095
14096 # type: verbatim
14097 #: ../src/guestfs-actions.pod:6012
14098 #, no-wrap
14099 msgid ""
14100 " int\n"
14101 " guestfs_swapoff_label (guestfs_h *g,\n"
14102 "                        const char *label);\n"
14103 "\n"
14104 msgstr ""
14105
14106 # type: textblock
14107 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:4036
14108 msgid ""
14109 "This command disables the libguestfs appliance swap on labeled swap "
14110 "partition."
14111 msgstr ""
14112
14113 # type: =head2
14114 #: ../src/guestfs-actions.pod:6023
14115 msgid "guestfs_swapoff_uuid"
14116 msgstr ""
14117
14118 # type: verbatim
14119 #: ../src/guestfs-actions.pod:6025
14120 #, no-wrap
14121 msgid ""
14122 " int\n"
14123 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14124 "                       const char *uuid);\n"
14125 "\n"
14126 msgstr ""
14127
14128 # type: textblock
14129 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4043
14130 msgid ""
14131 "This command disables the libguestfs appliance swap partition with the given "
14132 "UUID."
14133 msgstr ""
14134
14135 # type: =head2
14136 #: ../src/guestfs-actions.pod:6036
14137 msgid "guestfs_swapon_device"
14138 msgstr ""
14139
14140 # type: verbatim
14141 #: ../src/guestfs-actions.pod:6038
14142 #, no-wrap
14143 msgid ""
14144 " int\n"
14145 " guestfs_swapon_device (guestfs_h *g,\n"
14146 "                        const char *device);\n"
14147 "\n"
14148 msgstr ""
14149
14150 # type: textblock
14151 #: ../src/guestfs-actions.pod:6042
14152 msgid ""
14153 "This command enables the libguestfs appliance to use the swap device or "
14154 "partition named C<device>.  The increased memory is made available for all "
14155 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14156 msgstr ""
14157
14158 # type: textblock
14159 #: ../src/guestfs-actions.pod:6047 ../fish/guestfish-actions.pod:4055
14160 msgid ""
14161 "Note that you should not swap to existing guest swap partitions unless you "
14162 "know what you are doing.  They may contain hibernation information, or other "
14163 "information that the guest doesn't want you to trash.  You also risk leaking "
14164 "information about the host to the guest this way.  Instead, attach a new "
14165 "host device to the guest and swap on that."
14166 msgstr ""
14167
14168 # type: =head2
14169 #: ../src/guestfs-actions.pod:6058
14170 msgid "guestfs_swapon_file"
14171 msgstr ""
14172
14173 # type: verbatim
14174 #: ../src/guestfs-actions.pod:6060
14175 #, no-wrap
14176 msgid ""
14177 " int\n"
14178 " guestfs_swapon_file (guestfs_h *g,\n"
14179 "                      const char *file);\n"
14180 "\n"
14181 msgstr ""
14182
14183 # type: textblock
14184 #: ../src/guestfs-actions.pod:6064
14185 msgid ""
14186 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14187 "notes."
14188 msgstr ""
14189
14190 # type: =head2
14191 #: ../src/guestfs-actions.pod:6071
14192 msgid "guestfs_swapon_label"
14193 msgstr ""
14194
14195 # type: verbatim
14196 #: ../src/guestfs-actions.pod:6073
14197 #, no-wrap
14198 msgid ""
14199 " int\n"
14200 " guestfs_swapon_label (guestfs_h *g,\n"
14201 "                       const char *label);\n"
14202 "\n"
14203 msgstr ""
14204
14205 # type: textblock
14206 #: ../src/guestfs-actions.pod:6077
14207 msgid ""
14208 "This command enables swap to a labeled swap partition.  See "
14209 "C<guestfs_swapon_device> for other notes."
14210 msgstr ""
14211
14212 # type: =head2
14213 #: ../src/guestfs-actions.pod:6084
14214 msgid "guestfs_swapon_uuid"
14215 msgstr ""
14216
14217 # type: verbatim
14218 #: ../src/guestfs-actions.pod:6086
14219 #, no-wrap
14220 msgid ""
14221 " int\n"
14222 " guestfs_swapon_uuid (guestfs_h *g,\n"
14223 "                      const char *uuid);\n"
14224 "\n"
14225 msgstr ""
14226
14227 # type: textblock
14228 #: ../src/guestfs-actions.pod:6090
14229 msgid ""
14230 "This command enables swap to a swap partition with the given UUID.  See "
14231 "C<guestfs_swapon_device> for other notes."
14232 msgstr ""
14233
14234 # type: =head2
14235 #: ../src/guestfs-actions.pod:6097
14236 msgid "guestfs_sync"
14237 msgstr ""
14238
14239 # type: verbatim
14240 #: ../src/guestfs-actions.pod:6099
14241 #, no-wrap
14242 msgid ""
14243 " int\n"
14244 " guestfs_sync (guestfs_h *g);\n"
14245 "\n"
14246 msgstr ""
14247
14248 # type: textblock
14249 #: ../src/guestfs-actions.pod:6102 ../fish/guestfish-actions.pod:4087
14250 msgid ""
14251 "This syncs the disk, so that any writes are flushed through to the "
14252 "underlying disk image."
14253 msgstr ""
14254
14255 # type: textblock
14256 #: ../src/guestfs-actions.pod:6105 ../fish/guestfish-actions.pod:4090
14257 msgid ""
14258 "You should always call this if you have modified a disk image, before "
14259 "closing the handle."
14260 msgstr ""
14261
14262 # type: =head2
14263 #: ../src/guestfs-actions.pod:6112
14264 msgid "guestfs_tail"
14265 msgstr ""
14266
14267 # type: verbatim
14268 #: ../src/guestfs-actions.pod:6114
14269 #, no-wrap
14270 msgid ""
14271 " char **\n"
14272 " guestfs_tail (guestfs_h *g,\n"
14273 "               const char *path);\n"
14274 "\n"
14275 msgstr ""
14276
14277 # type: textblock
14278 #: ../src/guestfs-actions.pod:6118 ../fish/guestfish-actions.pod:4097
14279 msgid "This command returns up to the last 10 lines of a file as a list of strings."
14280 msgstr ""
14281
14282 # type: =head2
14283 #: ../src/guestfs-actions.pod:6130
14284 msgid "guestfs_tail_n"
14285 msgstr ""
14286
14287 # type: verbatim
14288 #: ../src/guestfs-actions.pod:6132
14289 #, no-wrap
14290 msgid ""
14291 " char **\n"
14292 " guestfs_tail_n (guestfs_h *g,\n"
14293 "                 int nrlines,\n"
14294 "                 const char *path);\n"
14295 "\n"
14296 msgstr ""
14297
14298 # type: textblock
14299 #: ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4107
14300 msgid ""
14301 "If the parameter C<nrlines> is a positive number, this returns the last "
14302 "C<nrlines> lines of the file C<path>."
14303 msgstr ""
14304
14305 # type: textblock
14306 #: ../src/guestfs-actions.pod:6140 ../fish/guestfish-actions.pod:4110
14307 msgid ""
14308 "If the parameter C<nrlines> is a negative number, this returns lines from "
14309 "the file C<path>, starting with the C<-nrlines>th line."
14310 msgstr ""
14311
14312 # type: =head2
14313 #: ../src/guestfs-actions.pod:6154
14314 msgid "guestfs_tar_in"
14315 msgstr ""
14316
14317 # type: verbatim
14318 #: ../src/guestfs-actions.pod:6156
14319 #, no-wrap
14320 msgid ""
14321 " int\n"
14322 " guestfs_tar_in (guestfs_h *g,\n"
14323 "                 const char *tarfile,\n"
14324 "                 const char *directory);\n"
14325 "\n"
14326 msgstr ""
14327
14328 # type: textblock
14329 #: ../src/guestfs-actions.pod:6161 ../fish/guestfish-actions.pod:4122
14330 msgid ""
14331 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14332 "tar file) into C<directory>."
14333 msgstr ""
14334
14335 # type: textblock
14336 #: ../src/guestfs-actions.pod:6164
14337 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14338 msgstr ""
14339
14340 # type: textblock
14341 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6186 ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6218
14342 msgid "(Added in 1.0.3)"
14343 msgstr ""
14344
14345 # type: =head2
14346 #: ../src/guestfs-actions.pod:6171
14347 msgid "guestfs_tar_out"
14348 msgstr ""
14349
14350 # type: verbatim
14351 #: ../src/guestfs-actions.pod:6173
14352 #, no-wrap
14353 msgid ""
14354 " int\n"
14355 " guestfs_tar_out (guestfs_h *g,\n"
14356 "                  const char *directory,\n"
14357 "                  const char *tarfile);\n"
14358 "\n"
14359 msgstr ""
14360
14361 # type: textblock
14362 #: ../src/guestfs-actions.pod:6178 ../fish/guestfish-actions.pod:4134
14363 msgid ""
14364 "This command packs the contents of C<directory> and downloads it to local "
14365 "file C<tarfile>."
14366 msgstr ""
14367
14368 # type: textblock
14369 #: ../src/guestfs-actions.pod:6181
14370 msgid ""
14371 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14372 "C<guestfs_txz_out>."
14373 msgstr ""
14374
14375 # type: =head2
14376 #: ../src/guestfs-actions.pod:6188
14377 msgid "guestfs_tgz_in"
14378 msgstr ""
14379
14380 # type: verbatim
14381 #: ../src/guestfs-actions.pod:6190
14382 #, no-wrap
14383 msgid ""
14384 " int\n"
14385 " guestfs_tgz_in (guestfs_h *g,\n"
14386 "                 const char *tarball,\n"
14387 "                 const char *directory);\n"
14388 "\n"
14389 msgstr ""
14390
14391 # type: textblock
14392 #: ../src/guestfs-actions.pod:6195 ../fish/guestfish-actions.pod:4146
14393 msgid ""
14394 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14395 "tar file) into C<directory>."
14396 msgstr ""
14397
14398 # type: textblock
14399 #: ../src/guestfs-actions.pod:6198
14400 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14401 msgstr ""
14402
14403 # type: =head2
14404 #: ../src/guestfs-actions.pod:6204
14405 msgid "guestfs_tgz_out"
14406 msgstr ""
14407
14408 # type: verbatim
14409 #: ../src/guestfs-actions.pod:6206
14410 #, no-wrap
14411 msgid ""
14412 " int\n"
14413 " guestfs_tgz_out (guestfs_h *g,\n"
14414 "                  const char *directory,\n"
14415 "                  const char *tarball);\n"
14416 "\n"
14417 msgstr ""
14418
14419 # type: textblock
14420 #: ../src/guestfs-actions.pod:6211 ../fish/guestfish-actions.pod:4157
14421 msgid ""
14422 "This command packs the contents of C<directory> and downloads it to local "
14423 "file C<tarball>."
14424 msgstr ""
14425
14426 # type: textblock
14427 #: ../src/guestfs-actions.pod:6214
14428 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14429 msgstr ""
14430
14431 # type: =head2
14432 #: ../src/guestfs-actions.pod:6220
14433 msgid "guestfs_touch"
14434 msgstr ""
14435
14436 # type: verbatim
14437 #: ../src/guestfs-actions.pod:6222
14438 #, no-wrap
14439 msgid ""
14440 " int\n"
14441 " guestfs_touch (guestfs_h *g,\n"
14442 "                const char *path);\n"
14443 "\n"
14444 msgstr ""
14445
14446 # type: textblock
14447 #: ../src/guestfs-actions.pod:6226 ../fish/guestfish-actions.pod:4168
14448 msgid ""
14449 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14450 "timestamps on a file, or, if the file does not exist, to create a new "
14451 "zero-length file."
14452 msgstr ""
14453
14454 # type: textblock
14455 #: ../src/guestfs-actions.pod:6230 ../fish/guestfish-actions.pod:4172
14456 msgid ""
14457 "This command only works on regular files, and will fail on other file types "
14458 "such as directories, symbolic links, block special etc."
14459 msgstr ""
14460
14461 # type: =head2
14462 #: ../src/guestfs-actions.pod:6237
14463 msgid "guestfs_truncate"
14464 msgstr ""
14465
14466 # type: verbatim
14467 #: ../src/guestfs-actions.pod:6239
14468 #, no-wrap
14469 msgid ""
14470 " int\n"
14471 " guestfs_truncate (guestfs_h *g,\n"
14472 "                   const char *path);\n"
14473 "\n"
14474 msgstr ""
14475
14476 # type: textblock
14477 #: ../src/guestfs-actions.pod:6243 ../fish/guestfish-actions.pod:4179
14478 msgid ""
14479 "This command truncates C<path> to a zero-length file.  The file must exist "
14480 "already."
14481 msgstr ""
14482
14483 # type: =head2
14484 #: ../src/guestfs-actions.pod:6250
14485 msgid "guestfs_truncate_size"
14486 msgstr ""
14487
14488 # type: verbatim
14489 #: ../src/guestfs-actions.pod:6252
14490 #, no-wrap
14491 msgid ""
14492 " int\n"
14493 " guestfs_truncate_size (guestfs_h *g,\n"
14494 "                        const char *path,\n"
14495 "                        int64_t size);\n"
14496 "\n"
14497 msgstr ""
14498
14499 # type: textblock
14500 #: ../src/guestfs-actions.pod:6257 ../fish/guestfish-actions.pod:4186
14501 msgid ""
14502 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14503 "already."
14504 msgstr ""
14505
14506 # type: textblock
14507 #: ../src/guestfs-actions.pod:6260
14508 msgid ""
14509 "If the current file size is less than C<size> then the file is extended to "
14510 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14511 "blocks are not allocated for the file until you write to it).  To create a "
14512 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14513 msgstr ""
14514
14515 # type: =head2
14516 #: ../src/guestfs-actions.pod:6270
14517 msgid "guestfs_tune2fs_l"
14518 msgstr ""
14519
14520 # type: verbatim
14521 #: ../src/guestfs-actions.pod:6272
14522 #, no-wrap
14523 msgid ""
14524 " char **\n"
14525 " guestfs_tune2fs_l (guestfs_h *g,\n"
14526 "                    const char *device);\n"
14527 "\n"
14528 msgstr ""
14529
14530 # type: textblock
14531 #: ../src/guestfs-actions.pod:6276 ../fish/guestfish-actions.pod:4199
14532 msgid ""
14533 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14534 "C<device>."
14535 msgstr ""
14536
14537 # type: textblock
14538 #: ../src/guestfs-actions.pod:6279 ../fish/guestfish-actions.pod:4202
14539 msgid ""
14540 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14541 "for more details.  The list of fields returned isn't clearly defined, and "
14542 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14543 "and the filesystem itself."
14544 msgstr ""
14545
14546 # type: =head2
14547 #: ../src/guestfs-actions.pod:6292
14548 msgid "guestfs_txz_in"
14549 msgstr ""
14550
14551 # type: verbatim
14552 #: ../src/guestfs-actions.pod:6294
14553 #, no-wrap
14554 msgid ""
14555 " int\n"
14556 " guestfs_txz_in (guestfs_h *g,\n"
14557 "                 const char *tarball,\n"
14558 "                 const char *directory);\n"
14559 "\n"
14560 msgstr ""
14561
14562 # type: textblock
14563 #: ../src/guestfs-actions.pod:6299 ../fish/guestfish-actions.pod:4211
14564 msgid ""
14565 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14566 "tar file) into C<directory>."
14567 msgstr ""
14568
14569 # type: =head2
14570 #: ../src/guestfs-actions.pod:6306
14571 msgid "guestfs_txz_out"
14572 msgstr ""
14573
14574 # type: verbatim
14575 #: ../src/guestfs-actions.pod:6308
14576 #, no-wrap
14577 msgid ""
14578 " int\n"
14579 " guestfs_txz_out (guestfs_h *g,\n"
14580 "                  const char *directory,\n"
14581 "                  const char *tarball);\n"
14582 "\n"
14583 msgstr ""
14584
14585 # type: textblock
14586 #: ../src/guestfs-actions.pod:6313 ../fish/guestfish-actions.pod:4220
14587 msgid ""
14588 "This command packs the contents of C<directory> and downloads it to local "
14589 "file C<tarball> (as an xz compressed tar archive)."
14590 msgstr ""
14591
14592 # type: =head2
14593 #: ../src/guestfs-actions.pod:6320
14594 msgid "guestfs_umask"
14595 msgstr ""
14596
14597 # type: verbatim
14598 #: ../src/guestfs-actions.pod:6322
14599 #, no-wrap
14600 msgid ""
14601 " int\n"
14602 " guestfs_umask (guestfs_h *g,\n"
14603 "                int mask);\n"
14604 "\n"
14605 msgstr ""
14606
14607 # type: textblock
14608 #: ../src/guestfs-actions.pod:6326 ../fish/guestfish-actions.pod:4229
14609 msgid ""
14610 "This function sets the mask used for creating new files and device nodes to "
14611 "C<mask & 0777>."
14612 msgstr ""
14613
14614 # type: textblock
14615 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4232
14616 msgid ""
14617 "Typical umask values would be C<022> which creates new files with "
14618 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14619 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14620 msgstr ""
14621
14622 # type: textblock
14623 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4237
14624 msgid ""
14625 "The default umask is C<022>.  This is important because it means that "
14626 "directories and device nodes will be created with C<0644> or C<0755> mode "
14627 "even if you specify C<0777>."
14628 msgstr ""
14629
14630 # type: textblock
14631 #: ../src/guestfs-actions.pod:6338
14632 msgid ""
14633 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14634 "C<guestfs_mkdir>."
14635 msgstr ""
14636
14637 # type: textblock
14638 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4244
14639 msgid "This call returns the previous umask."
14640 msgstr ""
14641
14642 # type: =head2
14643 #: ../src/guestfs-actions.pod:6347
14644 msgid "guestfs_umount"
14645 msgstr ""
14646
14647 # type: verbatim
14648 #: ../src/guestfs-actions.pod:6349
14649 #, no-wrap
14650 msgid ""
14651 " int\n"
14652 " guestfs_umount (guestfs_h *g,\n"
14653 "                 const char *pathordevice);\n"
14654 "\n"
14655 msgstr ""
14656
14657 # type: textblock
14658 #: ../src/guestfs-actions.pod:6353 ../fish/guestfish-actions.pod:4252
14659 msgid ""
14660 "This unmounts the given filesystem.  The filesystem may be specified either "
14661 "by its mountpoint (path) or the device which contains the filesystem."
14662 msgstr ""
14663
14664 # type: =head2
14665 #: ../src/guestfs-actions.pod:6361
14666 msgid "guestfs_umount_all"
14667 msgstr ""
14668
14669 # type: verbatim
14670 #: ../src/guestfs-actions.pod:6363
14671 #, no-wrap
14672 msgid ""
14673 " int\n"
14674 " guestfs_umount_all (guestfs_h *g);\n"
14675 "\n"
14676 msgstr ""
14677
14678 # type: textblock
14679 #: ../src/guestfs-actions.pod:6366 ../fish/guestfish-actions.pod:4262
14680 msgid "This unmounts all mounted filesystems."
14681 msgstr ""
14682
14683 # type: textblock
14684 #: ../src/guestfs-actions.pod:6368 ../fish/guestfish-actions.pod:4264
14685 msgid "Some internal mounts are not unmounted by this call."
14686 msgstr ""
14687
14688 # type: =head2
14689 #: ../src/guestfs-actions.pod:6374
14690 msgid "guestfs_upload"
14691 msgstr ""
14692
14693 # type: verbatim
14694 #: ../src/guestfs-actions.pod:6376
14695 #, no-wrap
14696 msgid ""
14697 " int\n"
14698 " guestfs_upload (guestfs_h *g,\n"
14699 "                 const char *filename,\n"
14700 "                 const char *remotefilename);\n"
14701 "\n"
14702 msgstr ""
14703
14704 # type: textblock
14705 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
14706 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14707 msgstr ""
14708
14709 # type: textblock
14710 #: ../src/guestfs-actions.pod:6386
14711 msgid "See also C<guestfs_download>."
14712 msgstr ""
14713
14714 # type: =head2
14715 #: ../src/guestfs-actions.pod:6392
14716 msgid "guestfs_upload_offset"
14717 msgstr ""
14718
14719 # type: verbatim
14720 #: ../src/guestfs-actions.pod:6394
14721 #, no-wrap
14722 msgid ""
14723 " int\n"
14724 " guestfs_upload_offset (guestfs_h *g,\n"
14725 "                        const char *filename,\n"
14726 "                        const char *remotefilename,\n"
14727 "                        int64_t offset);\n"
14728 "\n"
14729 msgstr ""
14730
14731 # type: textblock
14732 #: ../src/guestfs-actions.pod:6403 ../fish/guestfish-actions.pod:4286
14733 msgid ""
14734 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14735 "The intention is to overwrite parts of existing files or devices, although "
14736 "if a non-existant file is specified then it is created with a \"hole\" "
14737 "before C<offset>.  The size of the data written is implicit in the size of "
14738 "the source C<filename>."
14739 msgstr ""
14740
14741 # type: textblock
14742 #: ../src/guestfs-actions.pod:6410
14743 msgid ""
14744 "Note that there is no limit on the amount of data that can be uploaded with "
14745 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14746 "full amount unless an error occurs."
14747 msgstr ""
14748
14749 # type: textblock
14750 #: ../src/guestfs-actions.pod:6415
14751 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14752 msgstr ""
14753
14754 # type: =head2
14755 #: ../src/guestfs-actions.pod:6421
14756 msgid "guestfs_utimens"
14757 msgstr ""
14758
14759 # type: verbatim
14760 #: ../src/guestfs-actions.pod:6423
14761 #, no-wrap
14762 msgid ""
14763 " int\n"
14764 " guestfs_utimens (guestfs_h *g,\n"
14765 "                  const char *path,\n"
14766 "                  int64_t atsecs,\n"
14767 "                  int64_t atnsecs,\n"
14768 "                  int64_t mtsecs,\n"
14769 "                  int64_t mtnsecs);\n"
14770 "\n"
14771 msgstr ""
14772
14773 # type: textblock
14774 #: ../src/guestfs-actions.pod:6431 ../fish/guestfish-actions.pod:4306
14775 msgid "This command sets the timestamps of a file with nanosecond precision."
14776 msgstr ""
14777
14778 # type: textblock
14779 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4309
14780 msgid ""
14781 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14782 "from the epoch."
14783 msgstr ""
14784
14785 # type: textblock
14786 #: ../src/guestfs-actions.pod:6437 ../fish/guestfish-actions.pod:4312
14787 msgid ""
14788 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14789 "nanoseconds from the epoch."
14790 msgstr ""
14791
14792 # type: textblock
14793 #: ../src/guestfs-actions.pod:6440 ../fish/guestfish-actions.pod:4315
14794 msgid ""
14795 "If the C<*nsecs> field contains the special value C<-1> then the "
14796 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14797 "ignored in this case)."
14798 msgstr ""
14799
14800 # type: textblock
14801 #: ../src/guestfs-actions.pod:6444 ../fish/guestfish-actions.pod:4319
14802 msgid ""
14803 "If the C<*nsecs> field contains the special value C<-2> then the "
14804 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14805 "in this case)."
14806 msgstr ""
14807
14808 # type: =head2
14809 #: ../src/guestfs-actions.pod:6452 ../src/guestfs-structs.pod:175
14810 msgid "guestfs_version"
14811 msgstr ""
14812
14813 # type: verbatim
14814 #: ../src/guestfs-actions.pod:6454
14815 #, no-wrap
14816 msgid ""
14817 " struct guestfs_version *\n"
14818 " guestfs_version (guestfs_h *g);\n"
14819 "\n"
14820 msgstr ""
14821
14822 # type: textblock
14823 #: ../src/guestfs-actions.pod:6457 ../fish/guestfish-actions.pod:4327
14824 msgid "Return the libguestfs version number that the program is linked against."
14825 msgstr ""
14826
14827 # type: textblock
14828 #: ../src/guestfs-actions.pod:6460 ../fish/guestfish-actions.pod:4330
14829 msgid ""
14830 "Note that because of dynamic linking this is not necessarily the version of "
14831 "libguestfs that you compiled against.  You can compile the program, and then "
14832 "at runtime dynamically link against a completely different C<libguestfs.so> "
14833 "library."
14834 msgstr ""
14835
14836 # type: textblock
14837 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4335
14838 msgid ""
14839 "This call was added in version C<1.0.58>.  In previous versions of "
14840 "libguestfs there was no way to get the version number.  From C code you can "
14841 "use dynamic linker functions to find out if this symbol exists (if it "
14842 "doesn't, then it's an earlier version)."
14843 msgstr ""
14844
14845 # type: textblock
14846 #: ../src/guestfs-actions.pod:6471 ../fish/guestfish-actions.pod:4341
14847 msgid ""
14848 "The call returns a structure with four elements.  The first three (C<major>, "
14849 "C<minor> and C<release>) are numbers and correspond to the usual version "
14850 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14851 "but may be used for distro-specific information."
14852 msgstr ""
14853
14854 # type: textblock
14855 #: ../src/guestfs-actions.pod:6477 ../fish/guestfish-actions.pod:4347
14856 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14857 msgstr ""
14858
14859 # type: textblock
14860 #: ../src/guestfs-actions.pod:6480 ../fish/guestfish-actions.pod:4350
14861 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14862 msgstr ""
14863
14864 # type: textblock
14865 #: ../src/guestfs-actions.pod:6482
14866 msgid ""
14867 "I<Note:> Don't use this call to test for availability of features.  In "
14868 "enterprise distributions we backport features from later versions into "
14869 "earlier versions, making this an unreliable way to test for features.  Use "
14870 "C<guestfs_available> instead."
14871 msgstr ""
14872
14873 # type: textblock
14874 #: ../src/guestfs-actions.pod:6488
14875 msgid ""
14876 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14877 "error.  I<The caller must call C<guestfs_free_version> after use>."
14878 msgstr ""
14879
14880 # type: textblock
14881 #: ../src/guestfs-actions.pod:6492
14882 msgid "(Added in 1.0.58)"
14883 msgstr ""
14884
14885 # type: =head2
14886 #: ../src/guestfs-actions.pod:6494
14887 msgid "guestfs_vfs_label"
14888 msgstr ""
14889
14890 # type: verbatim
14891 #: ../src/guestfs-actions.pod:6496
14892 #, no-wrap
14893 msgid ""
14894 " char *\n"
14895 " guestfs_vfs_label (guestfs_h *g,\n"
14896 "                    const char *device);\n"
14897 "\n"
14898 msgstr ""
14899
14900 # type: textblock
14901 #: ../src/guestfs-actions.pod:6500 ../fish/guestfish-actions.pod:4362
14902 msgid "This returns the filesystem label of the filesystem on C<device>."
14903 msgstr ""
14904
14905 # type: textblock
14906 #: ../src/guestfs-actions.pod:6503 ../fish/guestfish-actions.pod:4365
14907 msgid "If the filesystem is unlabeled, this returns the empty string."
14908 msgstr ""
14909
14910 # type: textblock
14911 #: ../src/guestfs-actions.pod:6505
14912 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14913 msgstr ""
14914
14915 # type: textblock
14916 #: ../src/guestfs-actions.pod:6510 ../src/guestfs-actions.pod:6547
14917 msgid "(Added in 1.3.18)"
14918 msgstr ""
14919
14920 # type: =head2
14921 #: ../src/guestfs-actions.pod:6512
14922 msgid "guestfs_vfs_type"
14923 msgstr ""
14924
14925 # type: verbatim
14926 #: ../src/guestfs-actions.pod:6514
14927 #, no-wrap
14928 msgid ""
14929 " char *\n"
14930 " guestfs_vfs_type (guestfs_h *g,\n"
14931 "                   const char *device);\n"
14932 "\n"
14933 msgstr ""
14934
14935 # type: textblock
14936 #: ../src/guestfs-actions.pod:6518 ../fish/guestfish-actions.pod:4373
14937 msgid ""
14938 "This command gets the filesystem type corresponding to the filesystem on "
14939 "C<device>."
14940 msgstr ""
14941
14942 # type: textblock
14943 #: ../src/guestfs-actions.pod:6521 ../fish/guestfish-actions.pod:4376
14944 msgid ""
14945 "For most filesystems, the result is the name of the Linux VFS module which "
14946 "would be used to mount this filesystem if you mounted it without specifying "
14947 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14948 msgstr ""
14949
14950 # type: =head2
14951 #: ../src/guestfs-actions.pod:6531
14952 msgid "guestfs_vfs_uuid"
14953 msgstr ""
14954
14955 # type: verbatim
14956 #: ../src/guestfs-actions.pod:6533
14957 #, no-wrap
14958 msgid ""
14959 " char *\n"
14960 " guestfs_vfs_uuid (guestfs_h *g,\n"
14961 "                   const char *device);\n"
14962 "\n"
14963 msgstr ""
14964
14965 # type: textblock
14966 #: ../src/guestfs-actions.pod:6537 ../fish/guestfish-actions.pod:4385
14967 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14968 msgstr ""
14969
14970 # type: textblock
14971 #: ../src/guestfs-actions.pod:6540 ../fish/guestfish-actions.pod:4388
14972 msgid "If the filesystem does not have a UUID, this returns the empty string."
14973 msgstr ""
14974
14975 # type: textblock
14976 #: ../src/guestfs-actions.pod:6542
14977 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14978 msgstr ""
14979
14980 # type: =head2
14981 #: ../src/guestfs-actions.pod:6549
14982 msgid "guestfs_vg_activate"
14983 msgstr ""
14984
14985 # type: verbatim
14986 #: ../src/guestfs-actions.pod:6551
14987 #, no-wrap
14988 msgid ""
14989 " int\n"
14990 " guestfs_vg_activate (guestfs_h *g,\n"
14991 "                      int activate,\n"
14992 "                      char *const *volgroups);\n"
14993 "\n"
14994 msgstr ""
14995
14996 # type: textblock
14997 #: ../src/guestfs-actions.pod:6556 ../fish/guestfish-actions.pod:4396
14998 msgid ""
14999 "This command activates or (if C<activate> is false) deactivates all logical "
15000 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15001 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15002 "deactivated, then those devices disappear."
15003 msgstr ""
15004
15005 # type: textblock
15006 #: ../src/guestfs-actions.pod:6562 ../fish/guestfish-actions.pod:4402
15007 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15008 msgstr ""
15009
15010 # type: textblock
15011 #: ../src/guestfs-actions.pod:6564 ../fish/guestfish-actions.pod:4404
15012 msgid ""
15013 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15014 "activated or deactivated."
15015 msgstr ""
15016
15017 # type: =head2
15018 #: ../src/guestfs-actions.pod:6571
15019 msgid "guestfs_vg_activate_all"
15020 msgstr ""
15021
15022 # type: verbatim
15023 #: ../src/guestfs-actions.pod:6573
15024 #, no-wrap
15025 msgid ""
15026 " int\n"
15027 " guestfs_vg_activate_all (guestfs_h *g,\n"
15028 "                          int activate);\n"
15029 "\n"
15030 msgstr ""
15031
15032 # type: textblock
15033 #: ../src/guestfs-actions.pod:6577 ../fish/guestfish-actions.pod:4411
15034 msgid ""
15035 "This command activates or (if C<activate> is false) deactivates all logical "
15036 "volumes in all volume groups.  If activated, then they are made known to the "
15037 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15038 "those devices disappear."
15039 msgstr ""
15040
15041 # type: textblock
15042 #: ../src/guestfs-actions.pod:6583 ../fish/guestfish-actions.pod:4417
15043 msgid "This command is the same as running C<vgchange -a y|n>"
15044 msgstr ""
15045
15046 # type: =head2
15047 #: ../src/guestfs-actions.pod:6589
15048 msgid "guestfs_vgcreate"
15049 msgstr ""
15050
15051 # type: verbatim
15052 #: ../src/guestfs-actions.pod:6591
15053 #, no-wrap
15054 msgid ""
15055 " int\n"
15056 " guestfs_vgcreate (guestfs_h *g,\n"
15057 "                   const char *volgroup,\n"
15058 "                   char *const *physvols);\n"
15059 "\n"
15060 msgstr ""
15061
15062 # type: textblock
15063 #: ../src/guestfs-actions.pod:6596 ../fish/guestfish-actions.pod:4423
15064 msgid ""
15065 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15066 "of physical volumes C<physvols>."
15067 msgstr ""
15068
15069 # type: =head2
15070 #: ../src/guestfs-actions.pod:6603
15071 msgid "guestfs_vglvuuids"
15072 msgstr ""
15073
15074 # type: verbatim
15075 #: ../src/guestfs-actions.pod:6605
15076 #, no-wrap
15077 msgid ""
15078 " char **\n"
15079 " guestfs_vglvuuids (guestfs_h *g,\n"
15080 "                    const char *vgname);\n"
15081 "\n"
15082 msgstr ""
15083
15084 # type: textblock
15085 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4430
15086 msgid ""
15087 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15088 "volumes created in this volume group."
15089 msgstr ""
15090
15091 # type: textblock
15092 #: ../src/guestfs-actions.pod:6612
15093 msgid ""
15094 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15095 "associate logical volumes and volume groups."
15096 msgstr ""
15097
15098 # type: textblock
15099 #: ../src/guestfs-actions.pod:6615
15100 msgid "See also C<guestfs_vgpvuuids>."
15101 msgstr ""
15102
15103 # type: =head2
15104 #: ../src/guestfs-actions.pod:6623
15105 msgid "guestfs_vgpvuuids"
15106 msgstr ""
15107
15108 # type: verbatim
15109 #: ../src/guestfs-actions.pod:6625
15110 #, no-wrap
15111 msgid ""
15112 " char **\n"
15113 " guestfs_vgpvuuids (guestfs_h *g,\n"
15114 "                    const char *vgname);\n"
15115 "\n"
15116 msgstr ""
15117
15118 # type: textblock
15119 #: ../src/guestfs-actions.pod:6629 ../fish/guestfish-actions.pod:4442
15120 msgid ""
15121 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15122 "volumes that this volume group resides on."
15123 msgstr ""
15124
15125 # type: textblock
15126 #: ../src/guestfs-actions.pod:6632
15127 msgid ""
15128 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15129 "associate physical volumes and volume groups."
15130 msgstr ""
15131
15132 # type: textblock
15133 #: ../src/guestfs-actions.pod:6635
15134 msgid "See also C<guestfs_vglvuuids>."
15135 msgstr ""
15136
15137 # type: =head2
15138 #: ../src/guestfs-actions.pod:6643
15139 msgid "guestfs_vgremove"
15140 msgstr ""
15141
15142 # type: verbatim
15143 #: ../src/guestfs-actions.pod:6645
15144 #, no-wrap
15145 msgid ""
15146 " int\n"
15147 " guestfs_vgremove (guestfs_h *g,\n"
15148 "                   const char *vgname);\n"
15149 "\n"
15150 msgstr ""
15151
15152 # type: textblock
15153 #: ../src/guestfs-actions.pod:6649 ../fish/guestfish-actions.pod:4454
15154 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15155 msgstr ""
15156
15157 # type: textblock
15158 #: ../src/guestfs-actions.pod:6651 ../fish/guestfish-actions.pod:4456
15159 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15160 msgstr ""
15161
15162 # type: =head2
15163 #: ../src/guestfs-actions.pod:6658
15164 msgid "guestfs_vgrename"
15165 msgstr ""
15166
15167 # type: verbatim
15168 #: ../src/guestfs-actions.pod:6660
15169 #, no-wrap
15170 msgid ""
15171 " int\n"
15172 " guestfs_vgrename (guestfs_h *g,\n"
15173 "                   const char *volgroup,\n"
15174 "                   const char *newvolgroup);\n"
15175 "\n"
15176 msgstr ""
15177
15178 # type: textblock
15179 #: ../src/guestfs-actions.pod:6665 ../fish/guestfish-actions.pod:4463
15180 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15181 msgstr ""
15182
15183 # type: =head2
15184 #: ../src/guestfs-actions.pod:6671
15185 msgid "guestfs_vgs"
15186 msgstr ""
15187
15188 # type: verbatim
15189 #: ../src/guestfs-actions.pod:6673
15190 #, no-wrap
15191 msgid ""
15192 " char **\n"
15193 " guestfs_vgs (guestfs_h *g);\n"
15194 "\n"
15195 msgstr ""
15196
15197 # type: textblock
15198 #: ../src/guestfs-actions.pod:6676 ../fish/guestfish-actions.pod:4469
15199 msgid ""
15200 "List all the volumes groups detected.  This is the equivalent of the "
15201 "L<vgs(8)> command."
15202 msgstr ""
15203
15204 # type: textblock
15205 #: ../src/guestfs-actions.pod:6679 ../fish/guestfish-actions.pod:4472
15206 msgid ""
15207 "This returns a list of just the volume group names that were detected "
15208 "(eg. C<VolGroup00>)."
15209 msgstr ""
15210
15211 # type: textblock
15212 #: ../src/guestfs-actions.pod:6682
15213 msgid "See also C<guestfs_vgs_full>."
15214 msgstr ""
15215
15216 # type: =head2
15217 #: ../src/guestfs-actions.pod:6690
15218 msgid "guestfs_vgs_full"
15219 msgstr ""
15220
15221 # type: verbatim
15222 #: ../src/guestfs-actions.pod:6692
15223 #, no-wrap
15224 msgid ""
15225 " struct guestfs_lvm_vg_list *\n"
15226 " guestfs_vgs_full (guestfs_h *g);\n"
15227 "\n"
15228 msgstr ""
15229
15230 # type: textblock
15231 #: ../src/guestfs-actions.pod:6695 ../fish/guestfish-actions.pod:4481
15232 msgid ""
15233 "List all the volumes groups detected.  This is the equivalent of the "
15234 "L<vgs(8)> command.  The \"full\" version includes all fields."
15235 msgstr ""
15236
15237 # type: textblock
15238 #: ../src/guestfs-actions.pod:6698
15239 msgid ""
15240 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15241 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
15242 "use>."
15243 msgstr ""
15244
15245 # type: =head2
15246 #: ../src/guestfs-actions.pod:6704
15247 msgid "guestfs_vgscan"
15248 msgstr ""
15249
15250 # type: verbatim
15251 #: ../src/guestfs-actions.pod:6706
15252 #, no-wrap
15253 msgid ""
15254 " int\n"
15255 " guestfs_vgscan (guestfs_h *g);\n"
15256 "\n"
15257 msgstr ""
15258
15259 # type: textblock
15260 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4488
15261 msgid ""
15262 "This rescans all block devices and rebuilds the list of LVM physical "
15263 "volumes, volume groups and logical volumes."
15264 msgstr ""
15265
15266 # type: =head2
15267 #: ../src/guestfs-actions.pod:6716
15268 msgid "guestfs_vguuid"
15269 msgstr ""
15270
15271 # type: verbatim
15272 #: ../src/guestfs-actions.pod:6718
15273 #, no-wrap
15274 msgid ""
15275 " char *\n"
15276 " guestfs_vguuid (guestfs_h *g,\n"
15277 "                 const char *vgname);\n"
15278 "\n"
15279 msgstr ""
15280
15281 # type: textblock
15282 #: ../src/guestfs-actions.pod:6722 ../fish/guestfish-actions.pod:4495
15283 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15284 msgstr ""
15285
15286 # type: =head2
15287 #: ../src/guestfs-actions.pod:6729
15288 msgid "guestfs_wait_ready"
15289 msgstr ""
15290
15291 # type: verbatim
15292 #: ../src/guestfs-actions.pod:6731
15293 #, no-wrap
15294 msgid ""
15295 " int\n"
15296 " guestfs_wait_ready (guestfs_h *g);\n"
15297 "\n"
15298 msgstr ""
15299
15300 # type: textblock
15301 #: ../src/guestfs-actions.pod:6734
15302 msgid "This function is a no op."
15303 msgstr ""
15304
15305 # type: textblock
15306 #: ../src/guestfs-actions.pod:6736
15307 msgid ""
15308 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15309 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15310 "is no longer necessary because C<guestfs_launch> now does the waiting."
15311 msgstr ""
15312
15313 # type: textblock
15314 #: ../src/guestfs-actions.pod:6741
15315 msgid ""
15316 "If you see any calls to this function in code then you can just remove them, "
15317 "unless you want to retain compatibility with older versions of the API."
15318 msgstr ""
15319
15320 # type: =head2
15321 #: ../src/guestfs-actions.pod:6749
15322 msgid "guestfs_wc_c"
15323 msgstr ""
15324
15325 # type: verbatim
15326 #: ../src/guestfs-actions.pod:6751
15327 #, no-wrap
15328 msgid ""
15329 " int\n"
15330 " guestfs_wc_c (guestfs_h *g,\n"
15331 "               const char *path);\n"
15332 "\n"
15333 msgstr ""
15334
15335 # type: textblock
15336 #: ../src/guestfs-actions.pod:6755 ../fish/guestfish-actions.pod:4501
15337 msgid ""
15338 "This command counts the characters in a file, using the C<wc -c> external "
15339 "command."
15340 msgstr ""
15341
15342 # type: =head2
15343 #: ../src/guestfs-actions.pod:6762
15344 msgid "guestfs_wc_l"
15345 msgstr ""
15346
15347 # type: verbatim
15348 #: ../src/guestfs-actions.pod:6764
15349 #, no-wrap
15350 msgid ""
15351 " int\n"
15352 " guestfs_wc_l (guestfs_h *g,\n"
15353 "               const char *path);\n"
15354 "\n"
15355 msgstr ""
15356
15357 # type: textblock
15358 #: ../src/guestfs-actions.pod:6768 ../fish/guestfish-actions.pod:4508
15359 msgid ""
15360 "This command counts the lines in a file, using the C<wc -l> external "
15361 "command."
15362 msgstr ""
15363
15364 # type: =head2
15365 #: ../src/guestfs-actions.pod:6775
15366 msgid "guestfs_wc_w"
15367 msgstr ""
15368
15369 # type: verbatim
15370 #: ../src/guestfs-actions.pod:6777
15371 #, no-wrap
15372 msgid ""
15373 " int\n"
15374 " guestfs_wc_w (guestfs_h *g,\n"
15375 "               const char *path);\n"
15376 "\n"
15377 msgstr ""
15378
15379 # type: textblock
15380 #: ../src/guestfs-actions.pod:6781 ../fish/guestfish-actions.pod:4515
15381 msgid ""
15382 "This command counts the words in a file, using the C<wc -w> external "
15383 "command."
15384 msgstr ""
15385
15386 # type: =head2
15387 #: ../src/guestfs-actions.pod:6788
15388 msgid "guestfs_write"
15389 msgstr ""
15390
15391 # type: verbatim
15392 #: ../src/guestfs-actions.pod:6790
15393 #, no-wrap
15394 msgid ""
15395 " int\n"
15396 " guestfs_write (guestfs_h *g,\n"
15397 "                const char *path,\n"
15398 "                const char *content,\n"
15399 "                size_t content_size);\n"
15400 "\n"
15401 msgstr ""
15402
15403 # type: textblock
15404 #: ../src/guestfs-actions.pod:6796 ../fish/guestfish-actions.pod:4522
15405 msgid ""
15406 "This call creates a file called C<path>.  The content of the file is the "
15407 "string C<content> (which can contain any 8 bit data)."
15408 msgstr ""
15409
15410 # type: =head2
15411 #: ../src/guestfs-actions.pod:6806
15412 msgid "guestfs_write_file"
15413 msgstr ""
15414
15415 # type: verbatim
15416 #: ../src/guestfs-actions.pod:6808
15417 #, no-wrap
15418 msgid ""
15419 " int\n"
15420 " guestfs_write_file (guestfs_h *g,\n"
15421 "                     const char *path,\n"
15422 "                     const char *content,\n"
15423 "                     int size);\n"
15424 "\n"
15425 msgstr ""
15426
15427 # type: textblock
15428 #: ../src/guestfs-actions.pod:6814 ../fish/guestfish-actions.pod:4532
15429 msgid ""
15430 "This call creates a file called C<path>.  The contents of the file is the "
15431 "string C<content> (which can contain any 8 bit data), with length C<size>."
15432 msgstr ""
15433
15434 # type: textblock
15435 #: ../src/guestfs-actions.pod:6818 ../fish/guestfish-actions.pod:4536
15436 msgid ""
15437 "As a special case, if C<size> is C<0> then the length is calculated using "
15438 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15439 msgstr ""
15440
15441 # type: textblock
15442 #: ../src/guestfs-actions.pod:6822 ../fish/guestfish-actions.pod:4540
15443 msgid ""
15444 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15445 "I<not> work, even if the length is specified."
15446 msgstr ""
15447
15448 # type: textblock
15449 #: ../src/guestfs-actions.pod:6830 ../fish/guestfish-actions.pod:4546
15450 msgid "This function is deprecated.  In new code, use the C<write> call instead."
15451 msgstr ""
15452
15453 # type: =head2
15454 #: ../src/guestfs-actions.pod:6839
15455 msgid "guestfs_zegrep"
15456 msgstr ""
15457
15458 # type: verbatim
15459 #: ../src/guestfs-actions.pod:6841
15460 #, no-wrap
15461 msgid ""
15462 " char **\n"
15463 " guestfs_zegrep (guestfs_h *g,\n"
15464 "                 const char *regex,\n"
15465 "                 const char *path);\n"
15466 "\n"
15467 msgstr ""
15468
15469 # type: textblock
15470 #: ../src/guestfs-actions.pod:6846 ../fish/guestfish-actions.pod:4557
15471 msgid "This calls the external C<zegrep> program and returns the matching lines."
15472 msgstr ""
15473
15474 # type: =head2
15475 #: ../src/guestfs-actions.pod:6858
15476 msgid "guestfs_zegrepi"
15477 msgstr ""
15478
15479 # type: verbatim
15480 #: ../src/guestfs-actions.pod:6860
15481 #, no-wrap
15482 msgid ""
15483 " char **\n"
15484 " guestfs_zegrepi (guestfs_h *g,\n"
15485 "                  const char *regex,\n"
15486 "                  const char *path);\n"
15487 "\n"
15488 msgstr ""
15489
15490 # type: textblock
15491 #: ../src/guestfs-actions.pod:6865 ../fish/guestfish-actions.pod:4567
15492 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15493 msgstr ""
15494
15495 # type: =head2
15496 #: ../src/guestfs-actions.pod:6877
15497 msgid "guestfs_zero"
15498 msgstr ""
15499
15500 # type: verbatim
15501 #: ../src/guestfs-actions.pod:6879
15502 #, no-wrap
15503 msgid ""
15504 " int\n"
15505 " guestfs_zero (guestfs_h *g,\n"
15506 "               const char *device);\n"
15507 "\n"
15508 msgstr ""
15509
15510 # type: textblock
15511 #: ../src/guestfs-actions.pod:6883 ../fish/guestfish-actions.pod:4577
15512 msgid "This command writes zeroes over the first few blocks of C<device>."
15513 msgstr ""
15514
15515 # type: textblock
15516 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4579
15517 msgid ""
15518 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15519 "securely wipe the device).  It should be sufficient to remove any partition "
15520 "tables, filesystem superblocks and so on."
15521 msgstr ""
15522
15523 # type: textblock
15524 #: ../src/guestfs-actions.pod:6889
15525 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15526 msgstr ""
15527
15528 # type: =head2
15529 #: ../src/guestfs-actions.pod:6900
15530 msgid "guestfs_zero_device"
15531 msgstr ""
15532
15533 # type: verbatim
15534 #: ../src/guestfs-actions.pod:6902
15535 #, no-wrap
15536 msgid ""
15537 " int\n"
15538 " guestfs_zero_device (guestfs_h *g,\n"
15539 "                      const char *device);\n"
15540 "\n"
15541 msgstr ""
15542
15543 # type: textblock
15544 #: ../src/guestfs-actions.pod:6906
15545 msgid ""
15546 "This command writes zeroes over the entire C<device>.  Compare with "
15547 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15548 msgstr ""
15549
15550 # type: textblock
15551 #: ../src/guestfs-actions.pod:6920
15552 msgid "(Added in 1.3.1)"
15553 msgstr ""
15554
15555 # type: =head2
15556 #: ../src/guestfs-actions.pod:6922
15557 msgid "guestfs_zerofree"
15558 msgstr ""
15559
15560 # type: verbatim
15561 #: ../src/guestfs-actions.pod:6924
15562 #, no-wrap
15563 msgid ""
15564 " int\n"
15565 " guestfs_zerofree (guestfs_h *g,\n"
15566 "                   const char *device);\n"
15567 "\n"
15568 msgstr ""
15569
15570 # type: textblock
15571 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4600
15572 msgid ""
15573 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15574 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15575 "possible to compress the filesystem more effectively."
15576 msgstr ""
15577
15578 # type: textblock
15579 #: ../src/guestfs-actions.pod:6933 ../fish/guestfish-actions.pod:4605
15580 msgid "You should B<not> run this program if the filesystem is mounted."
15581 msgstr ""
15582
15583 # type: textblock
15584 #: ../src/guestfs-actions.pod:6936 ../fish/guestfish-actions.pod:4608
15585 msgid ""
15586 "It is possible that using this program can damage the filesystem or data on "
15587 "the filesystem."
15588 msgstr ""
15589
15590 # type: =head2
15591 #: ../src/guestfs-actions.pod:6943
15592 msgid "guestfs_zfgrep"
15593 msgstr ""
15594
15595 # type: verbatim
15596 #: ../src/guestfs-actions.pod:6945
15597 #, no-wrap
15598 msgid ""
15599 " char **\n"
15600 " guestfs_zfgrep (guestfs_h *g,\n"
15601 "                 const char *pattern,\n"
15602 "                 const char *path);\n"
15603 "\n"
15604 msgstr ""
15605
15606 # type: textblock
15607 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4615
15608 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15609 msgstr ""
15610
15611 # type: =head2
15612 #: ../src/guestfs-actions.pod:6962
15613 msgid "guestfs_zfgrepi"
15614 msgstr ""
15615
15616 # type: verbatim
15617 #: ../src/guestfs-actions.pod:6964
15618 #, no-wrap
15619 msgid ""
15620 " char **\n"
15621 " guestfs_zfgrepi (guestfs_h *g,\n"
15622 "                  const char *pattern,\n"
15623 "                  const char *path);\n"
15624 "\n"
15625 msgstr ""
15626
15627 # type: textblock
15628 #: ../src/guestfs-actions.pod:6969 ../fish/guestfish-actions.pod:4625
15629 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15630 msgstr ""
15631
15632 # type: =head2
15633 #: ../src/guestfs-actions.pod:6981
15634 msgid "guestfs_zfile"
15635 msgstr ""
15636
15637 # type: verbatim
15638 #: ../src/guestfs-actions.pod:6983
15639 #, no-wrap
15640 msgid ""
15641 " char *\n"
15642 " guestfs_zfile (guestfs_h *g,\n"
15643 "                const char *meth,\n"
15644 "                const char *path);\n"
15645 "\n"
15646 msgstr ""
15647
15648 # type: textblock
15649 #: ../src/guestfs-actions.pod:6988 ../fish/guestfish-actions.pod:4635
15650 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15651 msgstr ""
15652
15653 # type: textblock
15654 #: ../src/guestfs-actions.pod:6991 ../fish/guestfish-actions.pod:4638
15655 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15656 msgstr ""
15657
15658 # type: textblock
15659 #: ../src/guestfs-actions.pod:6993
15660 msgid ""
15661 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15662 "files."
15663 msgstr ""
15664
15665 # type: textblock
15666 #: ../src/guestfs-actions.pod:6999 ../fish/guestfish-actions.pod:4643
15667 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15668 msgstr ""
15669
15670 # type: =head2
15671 #: ../src/guestfs-actions.pod:7008
15672 msgid "guestfs_zgrep"
15673 msgstr ""
15674
15675 # type: verbatim
15676 #: ../src/guestfs-actions.pod:7010
15677 #, no-wrap
15678 msgid ""
15679 " char **\n"
15680 " guestfs_zgrep (guestfs_h *g,\n"
15681 "                const char *regex,\n"
15682 "                const char *path);\n"
15683 "\n"
15684 msgstr ""
15685
15686 # type: textblock
15687 #: ../src/guestfs-actions.pod:7015 ../fish/guestfish-actions.pod:4654
15688 msgid "This calls the external C<zgrep> program and returns the matching lines."
15689 msgstr ""
15690
15691 # type: =head2
15692 #: ../src/guestfs-actions.pod:7027
15693 msgid "guestfs_zgrepi"
15694 msgstr ""
15695
15696 # type: verbatim
15697 #: ../src/guestfs-actions.pod:7029
15698 #, no-wrap
15699 msgid ""
15700 " char **\n"
15701 " guestfs_zgrepi (guestfs_h *g,\n"
15702 "                 const char *regex,\n"
15703 "                 const char *path);\n"
15704 "\n"
15705 msgstr ""
15706
15707 # type: textblock
15708 #: ../src/guestfs-actions.pod:7034 ../fish/guestfish-actions.pod:4664
15709 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15710 msgstr ""
15711
15712 # type: =item
15713 #: ../src/guestfs-availability.pod:3
15714 msgid "B<augeas>"
15715 msgstr ""
15716
15717 # type: textblock
15718 #: ../src/guestfs-availability.pod:5
15719 msgid ""
15720 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15721 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15722 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15723 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15724 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15725 msgstr ""
15726
15727 # type: =item
15728 #: ../src/guestfs-availability.pod:21
15729 msgid "B<inotify>"
15730 msgstr ""
15731
15732 # type: textblock
15733 #: ../src/guestfs-availability.pod:23
15734 msgid ""
15735 "The following functions: L</guestfs_inotify_add_watch> "
15736 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15737 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15738 msgstr ""
15739
15740 # type: =item
15741 #: ../src/guestfs-availability.pod:31
15742 msgid "B<linuxfsuuid>"
15743 msgstr ""
15744
15745 # type: textblock
15746 #: ../src/guestfs-availability.pod:33
15747 msgid ""
15748 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15749 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15750 msgstr ""
15751
15752 # type: =item
15753 #: ../src/guestfs-availability.pod:40
15754 msgid "B<linuxmodules>"
15755 msgstr ""
15756
15757 # type: textblock
15758 #: ../src/guestfs-availability.pod:42
15759 msgid "The following functions: L</guestfs_modprobe>"
15760 msgstr ""
15761
15762 # type: =item
15763 #: ../src/guestfs-availability.pod:45
15764 msgid "B<linuxxattrs>"
15765 msgstr ""
15766
15767 # type: textblock
15768 #: ../src/guestfs-availability.pod:47
15769 msgid ""
15770 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15771 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15772 "L</guestfs_removexattr> L</guestfs_setxattr>"
15773 msgstr ""
15774
15775 # type: =item
15776 #: ../src/guestfs-availability.pod:56
15777 msgid "B<luks>"
15778 msgstr ""
15779
15780 # type: textblock
15781 #: ../src/guestfs-availability.pod:58
15782 msgid ""
15783 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15784 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15785 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15786 msgstr ""
15787
15788 # type: =item
15789 #: ../src/guestfs-availability.pod:67
15790 msgid "B<lvm2>"
15791 msgstr ""
15792
15793 # type: textblock
15794 #: ../src/guestfs-availability.pod:69
15795 msgid ""
15796 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15797 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15798 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15799 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15800 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15801 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15802 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15803 "L</guestfs_vgs_full>"
15804 msgstr ""
15805
15806 # type: =item
15807 #: ../src/guestfs-availability.pod:92
15808 msgid "B<mknod>"
15809 msgstr ""
15810
15811 # type: textblock
15812 #: ../src/guestfs-availability.pod:94
15813 msgid ""
15814 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15815 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15816 msgstr ""
15817
15818 # type: =item
15819 #: ../src/guestfs-availability.pod:100
15820 msgid "B<ntfs3g>"
15821 msgstr ""
15822
15823 # type: textblock
15824 #: ../src/guestfs-availability.pod:102
15825 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15826 msgstr ""
15827
15828 # type: =item
15829 #: ../src/guestfs-availability.pod:105
15830 msgid "B<ntfsprogs>"
15831 msgstr ""
15832
15833 # type: textblock
15834 #: ../src/guestfs-availability.pod:107
15835 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15836 msgstr ""
15837
15838 # type: =item
15839 #: ../src/guestfs-availability.pod:111
15840 msgid "B<realpath>"
15841 msgstr ""
15842
15843 # type: textblock
15844 #: ../src/guestfs-availability.pod:113
15845 msgid "The following functions: L</guestfs_realpath>"
15846 msgstr ""
15847
15848 # type: =item
15849 #: ../src/guestfs-availability.pod:116
15850 msgid "B<scrub>"
15851 msgstr ""
15852
15853 # type: textblock
15854 #: ../src/guestfs-availability.pod:118
15855 msgid ""
15856 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15857 "L</guestfs_scrub_freespace>"
15858 msgstr ""
15859
15860 # type: =item
15861 #: ../src/guestfs-availability.pod:123
15862 msgid "B<selinux>"
15863 msgstr ""
15864
15865 # type: textblock
15866 #: ../src/guestfs-availability.pod:125
15867 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15868 msgstr ""
15869
15870 # type: =item
15871 #: ../src/guestfs-availability.pod:129
15872 msgid "B<xz>"
15873 msgstr ""
15874
15875 # type: textblock
15876 #: ../src/guestfs-availability.pod:131
15877 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15878 msgstr ""
15879
15880 # type: =item
15881 #: ../src/guestfs-availability.pod:135
15882 msgid "B<zerofree>"
15883 msgstr ""
15884
15885 # type: textblock
15886 #: ../src/guestfs-availability.pod:137
15887 msgid "The following functions: L</guestfs_zerofree>"
15888 msgstr ""
15889
15890 # type: =head2
15891 #: ../src/guestfs-structs.pod:1
15892 msgid "guestfs_int_bool"
15893 msgstr ""
15894
15895 # type: verbatim
15896 #: ../src/guestfs-structs.pod:3
15897 #, no-wrap
15898 msgid ""
15899 " struct guestfs_int_bool {\n"
15900 "   int32_t i;\n"
15901 "   int32_t b;\n"
15902 " };\n"
15903 " \n"
15904 msgstr ""
15905
15906 # type: verbatim
15907 #: ../src/guestfs-structs.pod:8
15908 #, no-wrap
15909 msgid ""
15910 " struct guestfs_int_bool_list {\n"
15911 "   uint32_t len; /* Number of elements in list. */\n"
15912 "   struct guestfs_int_bool *val; /* Elements. */\n"
15913 " };\n"
15914 " \n"
15915 msgstr ""
15916
15917 # type: verbatim
15918 #: ../src/guestfs-structs.pod:13
15919 #, no-wrap
15920 msgid ""
15921 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15922 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15923 "\n"
15924 msgstr ""
15925
15926 # type: =head2
15927 #: ../src/guestfs-structs.pod:16
15928 msgid "guestfs_lvm_pv"
15929 msgstr ""
15930
15931 # type: verbatim
15932 #: ../src/guestfs-structs.pod:18
15933 #, no-wrap
15934 msgid ""
15935 " struct guestfs_lvm_pv {\n"
15936 "   char *pv_name;\n"
15937 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15938 "*/\n"
15939 "   char pv_uuid[32];\n"
15940 "   char *pv_fmt;\n"
15941 "   uint64_t pv_size;\n"
15942 "   uint64_t dev_size;\n"
15943 "   uint64_t pv_free;\n"
15944 "   uint64_t pv_used;\n"
15945 "   char *pv_attr;\n"
15946 "   int64_t pv_pe_count;\n"
15947 "   int64_t pv_pe_alloc_count;\n"
15948 "   char *pv_tags;\n"
15949 "   uint64_t pe_start;\n"
15950 "   int64_t pv_mda_count;\n"
15951 "   uint64_t pv_mda_free;\n"
15952 " };\n"
15953 " \n"
15954 msgstr ""
15955
15956 # type: verbatim
15957 #: ../src/guestfs-structs.pod:36
15958 #, no-wrap
15959 msgid ""
15960 " struct guestfs_lvm_pv_list {\n"
15961 "   uint32_t len; /* Number of elements in list. */\n"
15962 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15963 " };\n"
15964 " \n"
15965 msgstr ""
15966
15967 # type: verbatim
15968 #: ../src/guestfs-structs.pod:41
15969 #, no-wrap
15970 msgid ""
15971 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15972 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15973 "\n"
15974 msgstr ""
15975
15976 # type: =head2
15977 #: ../src/guestfs-structs.pod:44
15978 msgid "guestfs_lvm_vg"
15979 msgstr ""
15980
15981 # type: verbatim
15982 #: ../src/guestfs-structs.pod:46
15983 #, no-wrap
15984 msgid ""
15985 " struct guestfs_lvm_vg {\n"
15986 "   char *vg_name;\n"
15987 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15988 "*/\n"
15989 "   char vg_uuid[32];\n"
15990 "   char *vg_fmt;\n"
15991 "   char *vg_attr;\n"
15992 "   uint64_t vg_size;\n"
15993 "   uint64_t vg_free;\n"
15994 "   char *vg_sysid;\n"
15995 "   uint64_t vg_extent_size;\n"
15996 "   int64_t vg_extent_count;\n"
15997 "   int64_t vg_free_count;\n"
15998 "   int64_t max_lv;\n"
15999 "   int64_t max_pv;\n"
16000 "   int64_t pv_count;\n"
16001 "   int64_t lv_count;\n"
16002 "   int64_t snap_count;\n"
16003 "   int64_t vg_seqno;\n"
16004 "   char *vg_tags;\n"
16005 "   int64_t vg_mda_count;\n"
16006 "   uint64_t vg_mda_free;\n"
16007 " };\n"
16008 " \n"
16009 msgstr ""
16010
16011 # type: verbatim
16012 #: ../src/guestfs-structs.pod:69
16013 #, no-wrap
16014 msgid ""
16015 " struct guestfs_lvm_vg_list {\n"
16016 "   uint32_t len; /* Number of elements in list. */\n"
16017 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16018 " };\n"
16019 " \n"
16020 msgstr ""
16021
16022 # type: verbatim
16023 #: ../src/guestfs-structs.pod:74
16024 #, no-wrap
16025 msgid ""
16026 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16027 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16028 "\n"
16029 msgstr ""
16030
16031 # type: =head2
16032 #: ../src/guestfs-structs.pod:77
16033 msgid "guestfs_lvm_lv"
16034 msgstr ""
16035
16036 # type: verbatim
16037 #: ../src/guestfs-structs.pod:79
16038 #, no-wrap
16039 msgid ""
16040 " struct guestfs_lvm_lv {\n"
16041 "   char *lv_name;\n"
16042 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16043 "*/\n"
16044 "   char lv_uuid[32];\n"
16045 "   char *lv_attr;\n"
16046 "   int64_t lv_major;\n"
16047 "   int64_t lv_minor;\n"
16048 "   int64_t lv_kernel_major;\n"
16049 "   int64_t lv_kernel_minor;\n"
16050 "   uint64_t lv_size;\n"
16051 "   int64_t seg_count;\n"
16052 "   char *origin;\n"
16053 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16054 "   float snap_percent;\n"
16055 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16056 "   float copy_percent;\n"
16057 "   char *move_pv;\n"
16058 "   char *lv_tags;\n"
16059 "   char *mirror_log;\n"
16060 "   char *modules;\n"
16061 " };\n"
16062 " \n"
16063 msgstr ""
16064
16065 # type: verbatim
16066 #: ../src/guestfs-structs.pod:101
16067 #, no-wrap
16068 msgid ""
16069 " struct guestfs_lvm_lv_list {\n"
16070 "   uint32_t len; /* Number of elements in list. */\n"
16071 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16072 " };\n"
16073 " \n"
16074 msgstr ""
16075
16076 # type: verbatim
16077 #: ../src/guestfs-structs.pod:106
16078 #, no-wrap
16079 msgid ""
16080 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16081 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16082 "\n"
16083 msgstr ""
16084
16085 # type: verbatim
16086 #: ../src/guestfs-structs.pod:111
16087 #, no-wrap
16088 msgid ""
16089 " struct guestfs_stat {\n"
16090 "   int64_t dev;\n"
16091 "   int64_t ino;\n"
16092 "   int64_t mode;\n"
16093 "   int64_t nlink;\n"
16094 "   int64_t uid;\n"
16095 "   int64_t gid;\n"
16096 "   int64_t rdev;\n"
16097 "   int64_t size;\n"
16098 "   int64_t blksize;\n"
16099 "   int64_t blocks;\n"
16100 "   int64_t atime;\n"
16101 "   int64_t mtime;\n"
16102 "   int64_t ctime;\n"
16103 " };\n"
16104 " \n"
16105 msgstr ""
16106
16107 # type: verbatim
16108 #: ../src/guestfs-structs.pod:127
16109 #, no-wrap
16110 msgid ""
16111 " struct guestfs_stat_list {\n"
16112 "   uint32_t len; /* Number of elements in list. */\n"
16113 "   struct guestfs_stat *val; /* Elements. */\n"
16114 " };\n"
16115 " \n"
16116 msgstr ""
16117
16118 # type: verbatim
16119 #: ../src/guestfs-structs.pod:132
16120 #, no-wrap
16121 msgid ""
16122 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16123 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16124 "\n"
16125 msgstr ""
16126
16127 # type: verbatim
16128 #: ../src/guestfs-structs.pod:137
16129 #, no-wrap
16130 msgid ""
16131 " struct guestfs_statvfs {\n"
16132 "   int64_t bsize;\n"
16133 "   int64_t frsize;\n"
16134 "   int64_t blocks;\n"
16135 "   int64_t bfree;\n"
16136 "   int64_t bavail;\n"
16137 "   int64_t files;\n"
16138 "   int64_t ffree;\n"
16139 "   int64_t favail;\n"
16140 "   int64_t fsid;\n"
16141 "   int64_t flag;\n"
16142 "   int64_t namemax;\n"
16143 " };\n"
16144 " \n"
16145 msgstr ""
16146
16147 # type: verbatim
16148 #: ../src/guestfs-structs.pod:151
16149 #, no-wrap
16150 msgid ""
16151 " struct guestfs_statvfs_list {\n"
16152 "   uint32_t len; /* Number of elements in list. */\n"
16153 "   struct guestfs_statvfs *val; /* Elements. */\n"
16154 " };\n"
16155 " \n"
16156 msgstr ""
16157
16158 # type: verbatim
16159 #: ../src/guestfs-structs.pod:156
16160 #, no-wrap
16161 msgid ""
16162 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16163 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16164 "\n"
16165 msgstr ""
16166
16167 # type: =head2
16168 #: ../src/guestfs-structs.pod:159
16169 msgid "guestfs_dirent"
16170 msgstr ""
16171
16172 # type: verbatim
16173 #: ../src/guestfs-structs.pod:161
16174 #, no-wrap
16175 msgid ""
16176 " struct guestfs_dirent {\n"
16177 "   int64_t ino;\n"
16178 "   char ftyp;\n"
16179 "   char *name;\n"
16180 " };\n"
16181 " \n"
16182 msgstr ""
16183
16184 # type: verbatim
16185 #: ../src/guestfs-structs.pod:167
16186 #, no-wrap
16187 msgid ""
16188 " struct guestfs_dirent_list {\n"
16189 "   uint32_t len; /* Number of elements in list. */\n"
16190 "   struct guestfs_dirent *val; /* Elements. */\n"
16191 " };\n"
16192 " \n"
16193 msgstr ""
16194
16195 # type: verbatim
16196 #: ../src/guestfs-structs.pod:172
16197 #, no-wrap
16198 msgid ""
16199 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16200 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16201 "\n"
16202 msgstr ""
16203
16204 # type: verbatim
16205 #: ../src/guestfs-structs.pod:177
16206 #, no-wrap
16207 msgid ""
16208 " struct guestfs_version {\n"
16209 "   int64_t major;\n"
16210 "   int64_t minor;\n"
16211 "   int64_t release;\n"
16212 "   char *extra;\n"
16213 " };\n"
16214 " \n"
16215 msgstr ""
16216
16217 # type: verbatim
16218 #: ../src/guestfs-structs.pod:184
16219 #, no-wrap
16220 msgid ""
16221 " struct guestfs_version_list {\n"
16222 "   uint32_t len; /* Number of elements in list. */\n"
16223 "   struct guestfs_version *val; /* Elements. */\n"
16224 " };\n"
16225 " \n"
16226 msgstr ""
16227
16228 # type: verbatim
16229 #: ../src/guestfs-structs.pod:189
16230 #, no-wrap
16231 msgid ""
16232 " void guestfs_free_version (struct guestfs_free_version *);\n"
16233 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16234 "\n"
16235 msgstr ""
16236
16237 # type: =head2
16238 #: ../src/guestfs-structs.pod:192
16239 msgid "guestfs_xattr"
16240 msgstr ""
16241
16242 # type: verbatim
16243 #: ../src/guestfs-structs.pod:194
16244 #, no-wrap
16245 msgid ""
16246 " struct guestfs_xattr {\n"
16247 "   char *attrname;\n"
16248 "   /* The next two fields describe a byte array. */\n"
16249 "   uint32_t attrval_len;\n"
16250 "   char *attrval;\n"
16251 " };\n"
16252 " \n"
16253 msgstr ""
16254
16255 # type: verbatim
16256 #: ../src/guestfs-structs.pod:201
16257 #, no-wrap
16258 msgid ""
16259 " struct guestfs_xattr_list {\n"
16260 "   uint32_t len; /* Number of elements in list. */\n"
16261 "   struct guestfs_xattr *val; /* Elements. */\n"
16262 " };\n"
16263 " \n"
16264 msgstr ""
16265
16266 # type: verbatim
16267 #: ../src/guestfs-structs.pod:206
16268 #, no-wrap
16269 msgid ""
16270 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16271 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16272 "\n"
16273 msgstr ""
16274
16275 # type: =head2
16276 #: ../src/guestfs-structs.pod:209
16277 msgid "guestfs_inotify_event"
16278 msgstr ""
16279
16280 # type: verbatim
16281 #: ../src/guestfs-structs.pod:211
16282 #, no-wrap
16283 msgid ""
16284 " struct guestfs_inotify_event {\n"
16285 "   int64_t in_wd;\n"
16286 "   uint32_t in_mask;\n"
16287 "   uint32_t in_cookie;\n"
16288 "   char *in_name;\n"
16289 " };\n"
16290 " \n"
16291 msgstr ""
16292
16293 # type: verbatim
16294 #: ../src/guestfs-structs.pod:218
16295 #, no-wrap
16296 msgid ""
16297 " struct guestfs_inotify_event_list {\n"
16298 "   uint32_t len; /* Number of elements in list. */\n"
16299 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16300 " };\n"
16301 " \n"
16302 msgstr ""
16303
16304 # type: verbatim
16305 #: ../src/guestfs-structs.pod:223
16306 #, no-wrap
16307 msgid ""
16308 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16309 " void guestfs_free_inotify_event_list (struct "
16310 "guestfs_free_inotify_event_list *);\n"
16311 "\n"
16312 msgstr ""
16313
16314 # type: =head2
16315 #: ../src/guestfs-structs.pod:226
16316 msgid "guestfs_partition"
16317 msgstr ""
16318
16319 # type: verbatim
16320 #: ../src/guestfs-structs.pod:228
16321 #, no-wrap
16322 msgid ""
16323 " struct guestfs_partition {\n"
16324 "   int32_t part_num;\n"
16325 "   uint64_t part_start;\n"
16326 "   uint64_t part_end;\n"
16327 "   uint64_t part_size;\n"
16328 " };\n"
16329 " \n"
16330 msgstr ""
16331
16332 # type: verbatim
16333 #: ../src/guestfs-structs.pod:235
16334 #, no-wrap
16335 msgid ""
16336 " struct guestfs_partition_list {\n"
16337 "   uint32_t len; /* Number of elements in list. */\n"
16338 "   struct guestfs_partition *val; /* Elements. */\n"
16339 " };\n"
16340 " \n"
16341 msgstr ""
16342
16343 # type: verbatim
16344 #: ../src/guestfs-structs.pod:240
16345 #, no-wrap
16346 msgid ""
16347 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16348 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16349 "\n"
16350 msgstr ""
16351
16352 # type: =head2
16353 #: ../src/guestfs-structs.pod:243
16354 msgid "guestfs_application"
16355 msgstr ""
16356
16357 # type: verbatim
16358 #: ../src/guestfs-structs.pod:245
16359 #, no-wrap
16360 msgid ""
16361 " struct guestfs_application {\n"
16362 "   char *app_name;\n"
16363 "   char *app_display_name;\n"
16364 "   int32_t app_epoch;\n"
16365 "   char *app_version;\n"
16366 "   char *app_release;\n"
16367 "   char *app_install_path;\n"
16368 "   char *app_trans_path;\n"
16369 "   char *app_publisher;\n"
16370 "   char *app_url;\n"
16371 "   char *app_source_package;\n"
16372 "   char *app_summary;\n"
16373 "   char *app_description;\n"
16374 " };\n"
16375 " \n"
16376 msgstr ""
16377
16378 # type: verbatim
16379 #: ../src/guestfs-structs.pod:260
16380 #, no-wrap
16381 msgid ""
16382 " struct guestfs_application_list {\n"
16383 "   uint32_t len; /* Number of elements in list. */\n"
16384 "   struct guestfs_application *val; /* Elements. */\n"
16385 " };\n"
16386 " \n"
16387 msgstr ""
16388
16389 # type: verbatim
16390 #: ../src/guestfs-structs.pod:265
16391 #, no-wrap
16392 msgid ""
16393 " void guestfs_free_application (struct guestfs_free_application *);\n"
16394 " void guestfs_free_application_list (struct guestfs_free_application_list "
16395 "*);\n"
16396 "\n"
16397 msgstr ""
16398
16399 # type: textblock
16400 #: ../fish/guestfish.pod:5
16401 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16402 msgstr ""
16403
16404 # type: verbatim
16405 #: ../fish/guestfish.pod:9
16406 #, no-wrap
16407 msgid ""
16408 " guestfish [--options] [commands]\n"
16409 "\n"
16410 msgstr ""
16411
16412 # type: verbatim
16413 #: ../fish/guestfish.pod:11
16414 #, no-wrap
16415 msgid ""
16416 " guestfish\n"
16417 "\n"
16418 msgstr ""
16419
16420 # type: verbatim
16421 #: ../fish/guestfish.pod:13
16422 #, no-wrap
16423 msgid ""
16424 " guestfish [--ro|--rw] -a disk.img\n"
16425 "\n"
16426 msgstr ""
16427
16428 # type: verbatim
16429 #: ../fish/guestfish.pod:15
16430 #, no-wrap
16431 msgid ""
16432 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16433 "\n"
16434 msgstr ""
16435
16436 # type: verbatim
16437 #: ../fish/guestfish.pod:17
16438 #, no-wrap
16439 msgid ""
16440 " guestfish -d libvirt-domain\n"
16441 "\n"
16442 msgstr ""
16443
16444 # type: verbatim
16445 #: ../fish/guestfish.pod:19
16446 #, no-wrap
16447 msgid ""
16448 " guestfish [--ro|--rw] -a disk.img -i\n"
16449 "\n"
16450 msgstr ""
16451
16452 # type: verbatim
16453 #: ../fish/guestfish.pod:21
16454 #, no-wrap
16455 msgid ""
16456 " guestfish -d libvirt-domain -i\n"
16457 "\n"
16458 msgstr ""
16459
16460 # type: =head1
16461 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16462 msgid "WARNING"
16463 msgstr ""
16464
16465 # type: textblock
16466 #: ../fish/guestfish.pod:25
16467 msgid ""
16468 "Using guestfish in read/write mode on live virtual machines can be "
16469 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16470 "option to use guestfish safely if the disk image or virtual machine might be "
16471 "live."
16472 msgstr ""
16473
16474 # type: textblock
16475 #: ../fish/guestfish.pod:32
16476 msgid ""
16477 "Guestfish is a shell and command-line tool for examining and modifying "
16478 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16479 "functionality of the guestfs API, see L<guestfs(3)>."
16480 msgstr ""
16481
16482 # type: textblock
16483 #: ../fish/guestfish.pod:36
16484 msgid ""
16485 "Guestfish gives you structured access to the libguestfs API, from shell "
16486 "scripts or the command line or interactively.  If you want to rescue a "
16487 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16488 "command."
16489 msgstr ""
16490
16491 # type: =head1
16492 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:847 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
16493 msgid "EXAMPLES"
16494 msgstr ""
16495
16496 # type: =head2
16497 #: ../fish/guestfish.pod:43
16498 msgid "As an interactive shell"
16499 msgstr ""
16500
16501 # type: verbatim
16502 #: ../fish/guestfish.pod:45
16503 #, no-wrap
16504 msgid ""
16505 " $ guestfish\n"
16506 " \n"
16507 msgstr ""
16508
16509 # type: verbatim
16510 #: ../fish/guestfish.pod:47
16511 #, no-wrap
16512 msgid ""
16513 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16514 " editing virtual machine filesystems.\n"
16515 " \n"
16516 msgstr ""
16517
16518 # type: verbatim
16519 #: ../fish/guestfish.pod:50
16520 #, no-wrap
16521 msgid ""
16522 " Type: 'help' for a list of commands\n"
16523 "       'man' to read the manual\n"
16524 "       'quit' to quit the shell\n"
16525 " \n"
16526 msgstr ""
16527
16528 # type: verbatim
16529 #: ../fish/guestfish.pod:54
16530 #, no-wrap
16531 msgid ""
16532 " ><fs> add-ro disk.img\n"
16533 " ><fs> run\n"
16534 " ><fs> list-filesystems\n"
16535 " /dev/sda1: ext4\n"
16536 " /dev/vg_guest/lv_root: ext4\n"
16537 " /dev/vg_guest/lv_swap: swap\n"
16538 " ><fs> mount /dev/vg_guest/lv_root /\n"
16539 " ><fs> cat /etc/fstab\n"
16540 " # /etc/fstab\n"
16541 " # Created by anaconda\n"
16542 " [...]\n"
16543 " ><fs> exit\n"
16544 "\n"
16545 msgstr ""
16546
16547 # type: =head2
16548 #: ../fish/guestfish.pod:67
16549 msgid "From shell scripts"
16550 msgstr ""
16551
16552 # type: textblock
16553 #: ../fish/guestfish.pod:69
16554 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16555 msgstr ""
16556
16557 # type: verbatim
16558 #: ../fish/guestfish.pod:71
16559 #, no-wrap
16560 msgid ""
16561 " guestfish <<_EOF_\n"
16562 " add disk.img\n"
16563 " run\n"
16564 " mount /dev/vg_guest/lv_root /\n"
16565 " write /etc/motd \"Welcome, new users\"\n"
16566 " _EOF_\n"
16567 "\n"
16568 msgstr ""
16569
16570 # type: textblock
16571 #: ../fish/guestfish.pod:78
16572 msgid "List the LVM logical volumes in a disk image:"
16573 msgstr ""
16574
16575 # type: verbatim
16576 #: ../fish/guestfish.pod:80
16577 #, no-wrap
16578 msgid ""
16579 " guestfish -a disk.img --ro <<_EOF_\n"
16580 " run\n"
16581 " lvs\n"
16582 " _EOF_\n"
16583 "\n"
16584 msgstr ""
16585
16586 # type: textblock
16587 #: ../fish/guestfish.pod:85
16588 msgid "List all the filesystems in a disk image:"
16589 msgstr ""
16590
16591 # type: verbatim
16592 #: ../fish/guestfish.pod:87
16593 #, no-wrap
16594 msgid ""
16595 " guestfish -a disk.img --ro <<_EOF_\n"
16596 " run\n"
16597 " list-filesystems\n"
16598 " _EOF_\n"
16599 "\n"
16600 msgstr ""
16601
16602 # type: =head2
16603 #: ../fish/guestfish.pod:92
16604 msgid "On one command line"
16605 msgstr ""
16606
16607 # type: textblock
16608 #: ../fish/guestfish.pod:94
16609 msgid "Update C</etc/resolv.conf> in a guest:"
16610 msgstr ""
16611
16612 # type: verbatim
16613 #: ../fish/guestfish.pod:96
16614 #, no-wrap
16615 msgid ""
16616 " guestfish \\\n"
16617 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16618 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16619 "\n"
16620 msgstr ""
16621
16622 # type: textblock
16623 #: ../fish/guestfish.pod:100
16624 msgid "Edit C</boot/grub/grub.conf> interactively:"
16625 msgstr ""
16626
16627 # type: verbatim
16628 #: ../fish/guestfish.pod:102
16629 #, no-wrap
16630 msgid ""
16631 " guestfish --rw --add disk.img \\\n"
16632 "   --mount /dev/vg_guest/lv_root \\\n"
16633 "   --mount /dev/sda1:/boot \\\n"
16634 "   edit /boot/grub/grub.conf\n"
16635 "\n"
16636 msgstr ""
16637
16638 # type: =head2
16639 #: ../fish/guestfish.pod:107
16640 msgid "Mount disks automatically"
16641 msgstr ""
16642
16643 # type: textblock
16644 #: ../fish/guestfish.pod:109
16645 msgid ""
16646 "Use the I<-i> option to automatically mount the disks from a virtual "
16647 "machine:"
16648 msgstr ""
16649
16650 # type: verbatim
16651 #: ../fish/guestfish.pod:112
16652 #, no-wrap
16653 msgid ""
16654 " guestfish --ro -a disk.img -i cat /etc/group\n"
16655 "\n"
16656 msgstr ""
16657
16658 # type: verbatim
16659 #: ../fish/guestfish.pod:114
16660 #, no-wrap
16661 msgid ""
16662 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16663 "\n"
16664 msgstr ""
16665
16666 # type: textblock
16667 #: ../fish/guestfish.pod:116
16668 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16669 msgstr ""
16670
16671 # type: verbatim
16672 #: ../fish/guestfish.pod:118
16673 #, no-wrap
16674 msgid ""
16675 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16676 "\n"
16677 msgstr ""
16678
16679 # type: =head2
16680 #: ../fish/guestfish.pod:120
16681 msgid "As a script interpreter"
16682 msgstr ""
16683
16684 # type: textblock
16685 #: ../fish/guestfish.pod:122
16686 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16687 msgstr ""
16688
16689 # type: verbatim
16690 #: ../fish/guestfish.pod:124
16691 #, no-wrap
16692 msgid ""
16693 " #!/usr/bin/guestfish -f\n"
16694 " sparse test1.img 100M\n"
16695 " run\n"
16696 " part-disk /dev/sda mbr\n"
16697 " mkfs ext2 /dev/sda1\n"
16698 "\n"
16699 msgstr ""
16700
16701 # type: =head2
16702 #: ../fish/guestfish.pod:130
16703 msgid "Start with a prepared disk"
16704 msgstr ""
16705
16706 # type: textblock
16707 #: ../fish/guestfish.pod:132
16708 msgid ""
16709 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16710 "single ext2-formatted partition:"
16711 msgstr ""
16712
16713 # type: verbatim
16714 #: ../fish/guestfish.pod:135
16715 #, no-wrap
16716 msgid ""
16717 " guestfish -N fs\n"
16718 "\n"
16719 msgstr ""
16720
16721 # type: textblock
16722 #: ../fish/guestfish.pod:137
16723 msgid "To list what is available do:"
16724 msgstr ""
16725
16726 # type: verbatim
16727 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
16728 #, no-wrap
16729 msgid ""
16730 " guestfish -N help | less\n"
16731 "\n"
16732 msgstr ""
16733
16734 # type: =head2
16735 #: ../fish/guestfish.pod:141
16736 msgid "Remote control"
16737 msgstr ""
16738
16739 # type: verbatim
16740 #: ../fish/guestfish.pod:143
16741 #, no-wrap
16742 msgid ""
16743 " eval \"`guestfish --listen`\"\n"
16744 " guestfish --remote add-ro disk.img\n"
16745 " guestfish --remote run\n"
16746 " guestfish --remote lvs\n"
16747 "\n"
16748 msgstr ""
16749
16750 # type: =head1
16751 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:171 ../tools/virt-resize.pl:254 ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
16752 msgid "OPTIONS"
16753 msgstr ""
16754
16755 # type: =item
16756 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:179 ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61 ../tools/virt-tar.pl:106 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:62
16757 msgid "B<--help>"
16758 msgstr ""
16759
16760 # type: textblock
16761 #: ../fish/guestfish.pod:154
16762 msgid "Displays general help on options."
16763 msgstr ""
16764
16765 # type: =item
16766 #: ../fish/guestfish.pod:156
16767 msgid "B<-h> | B<--cmd-help>"
16768 msgstr ""
16769
16770 # type: textblock
16771 #: ../fish/guestfish.pod:158
16772 msgid "Lists all available guestfish commands."
16773 msgstr ""
16774
16775 # type: =item
16776 #: ../fish/guestfish.pod:160
16777 msgid "B<-h cmd> | B<--cmd-help cmd>"
16778 msgstr ""
16779
16780 # type: textblock
16781 #: ../fish/guestfish.pod:162
16782 msgid "Displays detailed help on a single command C<cmd>."
16783 msgstr ""
16784
16785 # type: =item
16786 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16787 msgid "B<-a image> | B<--add image>"
16788 msgstr ""
16789
16790 # type: textblock
16791 #: ../fish/guestfish.pod:166
16792 msgid "Add a block device or virtual machine image to the shell."
16793 msgstr ""
16794
16795 # type: textblock
16796 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16797 msgid ""
16798 "The format of the disk image is auto-detected.  To override this and force a "
16799 "particular format use the I<--format=..> option."
16800 msgstr ""
16801
16802 # type: =item
16803 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16804 msgid "B<-c URI> | B<--connect URI>"
16805 msgstr ""
16806
16807 # type: textblock
16808 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16809 msgid ""
16810 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16811 "URI to use.  The default is to use the default libvirt connection."
16812 msgstr ""
16813
16814 # type: =item
16815 #: ../fish/guestfish.pod:177
16816 msgid "B<--csh>"
16817 msgstr ""
16818
16819 # type: textblock
16820 #: ../fish/guestfish.pod:179
16821 msgid ""
16822 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16823 "section L</REMOTE CONTROL AND CSH> below."
16824 msgstr ""
16825
16826 # type: =item
16827 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16828 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16829 msgstr ""
16830
16831 # type: textblock
16832 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16833 msgid ""
16834 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16835 "used, then any libvirt domain can be used.  However in write mode, only "
16836 "libvirt domains which are shut down can be named here."
16837 msgstr ""
16838
16839 # type: =item
16840 #: ../fish/guestfish.pod:188
16841 msgid "B<-D> | B<--no-dest-paths>"
16842 msgstr ""
16843
16844 # type: textblock
16845 #: ../fish/guestfish.pod:190
16846 msgid ""
16847 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16848 "to hit the tab key to complete paths on the guest filesystem, but this "
16849 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16850 "allow this feature to be disabled."
16851 msgstr ""
16852
16853 # type: =item
16854 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16855 msgid "B<--echo-keys>"
16856 msgstr ""
16857
16858 # type: textblock
16859 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16860 msgid ""
16861 "When prompting for keys and passphrases, guestfish normally turns echoing "
16862 "off so you cannot see what you are typing.  If you are not worried about "
16863 "Tempest attacks and there is no one else in the room you can specify this "
16864 "flag to see what you are typing."
16865 msgstr ""
16866
16867 # type: =item
16868 #: ../fish/guestfish.pod:202
16869 msgid "B<-f file> | B<--file file>"
16870 msgstr ""
16871
16872 # type: textblock
16873 #: ../fish/guestfish.pod:204
16874 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16875 msgstr ""
16876
16877 # type: verbatim
16878 #: ../fish/guestfish.pod:207
16879 #, no-wrap
16880 msgid ""
16881 " #!/usr/bin/guestfish -f\n"
16882 "\n"
16883 msgstr ""
16884
16885 # type: =item
16886 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16887 msgid "B<--format=raw|qcow2|..> | B<--format>"
16888 msgstr ""
16889
16890 # type: textblock
16891 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16892 msgid ""
16893 "The default for the I<-a> option is to auto-detect the format of the disk "
16894 "image.  Using this forces the disk format for I<-a> options which follow on "
16895 "the command line.  Using I<--format> with no argument switches back to "
16896 "auto-detection for subsequent I<-a> options."
16897 msgstr ""
16898
16899 # type: textblock
16900 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
16901 msgid "For example:"
16902 msgstr ""
16903
16904 # type: verbatim
16905 #: ../fish/guestfish.pod:218
16906 #, no-wrap
16907 msgid ""
16908 " guestfish --format=raw -a disk.img\n"
16909 "\n"
16910 msgstr ""
16911
16912 # type: textblock
16913 #: ../fish/guestfish.pod:220
16914 msgid "forces raw format (no auto-detection) for C<disk.img>."
16915 msgstr ""
16916
16917 # type: verbatim
16918 #: ../fish/guestfish.pod:222
16919 #, no-wrap
16920 msgid ""
16921 " guestfish --format=raw -a disk.img --format -a another.img\n"
16922 "\n"
16923 msgstr ""
16924
16925 # type: textblock
16926 #: ../fish/guestfish.pod:224
16927 msgid ""
16928 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
16929 "auto-detection for C<another.img>."
16930 msgstr ""
16931
16932 # type: textblock
16933 #: ../fish/guestfish.pod:227
16934 msgid ""
16935 "If you have untrusted raw-format guest disk images, you should use this "
16936 "option to specify the disk format.  This avoids a possible security problem "
16937 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16938 msgstr ""
16939
16940 # type: =item
16941 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16942 msgid "B<-i> | B<--inspector>"
16943 msgstr ""
16944
16945 # type: textblock
16946 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16947 msgid ""
16948 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16949 "system and mount filesystems as they would be mounted on the real virtual "
16950 "machine."
16951 msgstr ""
16952
16953 # type: textblock
16954 #: ../fish/guestfish.pod:238
16955 msgid "Typical usage is either:"
16956 msgstr ""
16957
16958 # type: verbatim
16959 #: ../fish/guestfish.pod:240
16960 #, no-wrap
16961 msgid ""
16962 " guestfish -d myguest -i\n"
16963 "\n"
16964 msgstr ""
16965
16966 # type: textblock
16967 #: ../fish/guestfish.pod:242
16968 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16969 msgstr ""
16970
16971 # type: verbatim
16972 #: ../fish/guestfish.pod:244
16973 #, no-wrap
16974 msgid ""
16975 " guestfish --ro -d myguest -i\n"
16976 "\n"
16977 msgstr ""
16978
16979 # type: textblock
16980 #: ../fish/guestfish.pod:246
16981 msgid "(for active domains, readonly), or specify the block device directly:"
16982 msgstr ""
16983
16984 # type: verbatim
16985 #: ../fish/guestfish.pod:248
16986 #, no-wrap
16987 msgid ""
16988 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16989 "\n"
16990 msgstr ""
16991
16992 # type: textblock
16993 #: ../fish/guestfish.pod:250
16994 msgid ""
16995 "Note that the command line syntax changed slightly over older versions of "
16996 "guestfish.  You can still use the old syntax:"
16997 msgstr ""
16998
16999 # type: verbatim
17000 #: ../fish/guestfish.pod:253
17001 #, no-wrap
17002 msgid ""
17003 " guestfish [--ro] -i disk.img\n"
17004 "\n"
17005 msgstr ""
17006
17007 # type: verbatim
17008 #: ../fish/guestfish.pod:255
17009 #, no-wrap
17010 msgid ""
17011 " guestfish [--ro] -i libvirt-domain\n"
17012 "\n"
17013 msgstr ""
17014
17015 # type: =item
17016 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17017 msgid "B<--keys-from-stdin>"
17018 msgstr ""
17019
17020 # type: textblock
17021 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17022 msgid ""
17023 "Read key or passphrase parameters from stdin.  The default is to try to read "
17024 "passphrases from the user by opening C</dev/tty>."
17025 msgstr ""
17026
17027 # type: =item
17028 #: ../fish/guestfish.pod:262
17029 msgid "B<--listen>"
17030 msgstr ""
17031
17032 # type: textblock
17033 #: ../fish/guestfish.pod:264
17034 msgid ""
17035 "Fork into the background and listen for remote commands.  See section "
17036 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17037 msgstr ""
17038
17039 # type: =item
17040 #: ../fish/guestfish.pod:267
17041 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17042 msgstr ""
17043
17044 # type: textblock
17045 #: ../fish/guestfish.pod:269
17046 msgid "Mount the named partition or logical volume on the given mountpoint."
17047 msgstr ""
17048
17049 # type: textblock
17050 #: ../fish/guestfish.pod:271
17051 msgid "If the mountpoint is omitted, it defaults to C</>."
17052 msgstr ""
17053
17054 # type: textblock
17055 #: ../fish/guestfish.pod:273
17056 msgid "You have to mount something on C</> before most commands will work."
17057 msgstr ""
17058
17059 # type: textblock
17060 #: ../fish/guestfish.pod:275
17061 msgid ""
17062 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17063 "launched."
17064 msgstr ""
17065
17066 # type: textblock
17067 #: ../fish/guestfish.pod:278
17068 msgid ""
17069 "If you don't know what filesystems a disk image contains, you can either run "
17070 "guestfish without this option, then list the partitions, filesystems and LVs "
17071 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17072 "commands), or you can use the L<virt-filesystems(1)> program."
17073 msgstr ""
17074
17075 # type: =item
17076 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17077 msgid "B<-n> | B<--no-sync>"
17078 msgstr ""
17079
17080 # type: textblock
17081 #: ../fish/guestfish.pod:286
17082 msgid ""
17083 "Disable autosync.  This is enabled by default.  See the discussion of "
17084 "autosync in the L<guestfs(3)> manpage."
17085 msgstr ""
17086
17087 # type: =item
17088 #: ../fish/guestfish.pod:289
17089 msgid "B<-N type> | B<--new type> | B<-N help>"
17090 msgstr ""
17091
17092 # type: textblock
17093 #: ../fish/guestfish.pod:291
17094 msgid ""
17095 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17096 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17097 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17098 "IMAGES> below."
17099 msgstr ""
17100
17101 # type: =item
17102 #: ../fish/guestfish.pod:296
17103 msgid "B<--progress-bars>"
17104 msgstr ""
17105
17106 # type: textblock
17107 #: ../fish/guestfish.pod:298
17108 msgid "Enable progress bars, even when guestfish is used non-interactively."
17109 msgstr ""
17110
17111 # type: textblock
17112 #: ../fish/guestfish.pod:300
17113 msgid ""
17114 "Progress bars are enabled by default when guestfish is used as an "
17115 "interactive shell."
17116 msgstr ""
17117
17118 # type: =item
17119 #: ../fish/guestfish.pod:303
17120 msgid "B<--no-progress-bars>"
17121 msgstr ""
17122
17123 # type: textblock
17124 #: ../fish/guestfish.pod:305
17125 msgid "Disable progress bars."
17126 msgstr ""
17127
17128 # type: =item
17129 #: ../fish/guestfish.pod:307
17130 msgid "B<--remote[=pid]>"
17131 msgstr ""
17132
17133 # type: textblock
17134 #: ../fish/guestfish.pod:309
17135 msgid ""
17136 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17137 "CONTROL GUESTFISH OVER A SOCKET> below."
17138 msgstr ""
17139
17140 # type: =item
17141 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17142 msgid "B<-r> | B<--ro>"
17143 msgstr ""
17144
17145 # type: textblock
17146 #: ../fish/guestfish.pod:314
17147 msgid ""
17148 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17149 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17150 msgstr ""
17151
17152 # type: textblock
17153 #: ../fish/guestfish.pod:317
17154 msgid ""
17155 "The option must always be used if the disk image or virtual machine might be "
17156 "running, and is generally recommended in cases where you don't need write "
17157 "access to the disk."
17158 msgstr ""
17159
17160 # type: textblock
17161 #: ../fish/guestfish.pod:321
17162 msgid ""
17163 "Note that prepared disk images created with I<-N> are not affected by the "
17164 "I<--ro> option."
17165 msgstr ""
17166
17167 # type: textblock
17168 #: ../fish/guestfish.pod:324
17169 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17170 msgstr ""
17171
17172 # type: =item
17173 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208
17174 msgid "B<--selinux>"
17175 msgstr ""
17176
17177 # type: textblock
17178 #: ../fish/guestfish.pod:328
17179 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17180 msgstr ""
17181
17182 # type: =item
17183 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17184 msgid "B<-v> | B<--verbose>"
17185 msgstr ""
17186
17187 # type: textblock
17188 #: ../fish/guestfish.pod:332
17189 msgid ""
17190 "Enable very verbose messages.  This is particularly useful if you find a "
17191 "bug."
17192 msgstr ""
17193
17194 # type: =item
17195 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17196 msgid "B<-V> | B<--version>"
17197 msgstr ""
17198
17199 # type: textblock
17200 #: ../fish/guestfish.pod:337
17201 msgid "Display the guestfish / libguestfs version number and exit."
17202 msgstr ""
17203
17204 # type: =item
17205 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17206 msgid "B<-w> | B<--rw>"
17207 msgstr ""
17208
17209 # type: textblock
17210 #: ../fish/guestfish.pod:341
17211 msgid ""
17212 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17213 "WRITE> below."
17214 msgstr ""
17215
17216 # type: =item
17217 #: ../fish/guestfish.pod:344
17218 msgid "B<-x>"
17219 msgstr ""
17220
17221 # type: textblock
17222 #: ../fish/guestfish.pod:346
17223 msgid "Echo each command before executing it."
17224 msgstr ""
17225
17226 # type: =head1
17227 #: ../fish/guestfish.pod:350
17228 msgid "COMMANDS ON COMMAND LINE"
17229 msgstr ""
17230
17231 # type: textblock
17232 #: ../fish/guestfish.pod:352
17233 msgid "Any additional (non-option) arguments are treated as commands to execute."
17234 msgstr ""
17235
17236 # type: textblock
17237 #: ../fish/guestfish.pod:355
17238 msgid ""
17239 "Commands to execute should be separated by a colon (C<:>), where the colon "
17240 "is a separate parameter.  Thus:"
17241 msgstr ""
17242
17243 # type: verbatim
17244 #: ../fish/guestfish.pod:358
17245 #, no-wrap
17246 msgid ""
17247 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17248 "\n"
17249 msgstr ""
17250
17251 # type: textblock
17252 #: ../fish/guestfish.pod:360
17253 msgid ""
17254 "If there are no additional arguments, then we enter a shell, either an "
17255 "interactive shell with a prompt (if the input is a terminal) or a "
17256 "non-interactive shell."
17257 msgstr ""
17258
17259 # type: textblock
17260 #: ../fish/guestfish.pod:364
17261 msgid ""
17262 "In either command line mode or non-interactive shell, the first command that "
17263 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17264 "prompt) if a command fails, you can continue to enter commands."
17265 msgstr ""
17266
17267 # type: =head1
17268 #: ../fish/guestfish.pod:369
17269 msgid "USING launch (OR run)"
17270 msgstr ""
17271
17272 # type: textblock
17273 #: ../fish/guestfish.pod:371
17274 msgid ""
17275 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17276 "then launch it, then mount any disks you need, and finally issue "
17277 "actions/commands.  So the general order of the day is:"
17278 msgstr ""
17279
17280 # type: textblock
17281 #: ../fish/guestfish.pod:379
17282 msgid "add or -a/--add"
17283 msgstr ""
17284
17285 # type: textblock
17286 #: ../fish/guestfish.pod:383
17287 msgid "launch (aka run)"
17288 msgstr ""
17289
17290 # type: textblock
17291 #: ../fish/guestfish.pod:387
17292 msgid "mount or -m/--mount"
17293 msgstr ""
17294
17295 # type: textblock
17296 #: ../fish/guestfish.pod:391
17297 msgid "any other commands"
17298 msgstr ""
17299
17300 # type: textblock
17301 #: ../fish/guestfish.pod:395
17302 msgid ""
17303 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17304 "guest before mounting or performing any other commands."
17305 msgstr ""
17306
17307 # type: textblock
17308 #: ../fish/guestfish.pod:398
17309 msgid ""
17310 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17311 "I<--new> options were given then C<run> is done automatically, simply "
17312 "because guestfish can't perform the action you asked for without doing this."
17313 msgstr ""
17314
17315 # type: =head1
17316 #: ../fish/guestfish.pod:403
17317 msgid "OPENING DISKS FOR READ AND WRITE"
17318 msgstr ""
17319
17320 # type: textblock
17321 #: ../fish/guestfish.pod:405
17322 msgid ""
17323 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17324 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17325 "open disk images read-only or for writing."
17326 msgstr ""
17327
17328 # type: textblock
17329 #: ../fish/guestfish.pod:409
17330 msgid ""
17331 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17332 "disk images supplied on the command line for write.  To open a disk image "
17333 "read-only you have to do I<-a image --ro>."
17334 msgstr ""
17335
17336 # type: textblock
17337 #: ../fish/guestfish.pod:413
17338 msgid ""
17339 "This matters: If you accidentally open a live VM disk image writable then "
17340 "you will cause irreversible disk corruption."
17341 msgstr ""
17342
17343 # type: textblock
17344 #: ../fish/guestfish.pod:416
17345 msgid ""
17346 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17347 "images will be opened read-only.  You will have to either specify "
17348 "I<guestfish --rw> or change a configuration file in order to get write "
17349 "access for disk images specified by those other command line options."
17350 msgstr ""
17351
17352 # type: textblock
17353 #: ../fish/guestfish.pod:421
17354 msgid ""
17355 "This version of guestfish has a I<--rw> option which does nothing (it is "
17356 "already the default).  However it is highly recommended that you use this "
17357 "option to indicate that guestfish needs write access, and to prepare your "
17358 "scripts for the day when this option will be required for write access."
17359 msgstr ""
17360
17361 # type: textblock
17362 #: ../fish/guestfish.pod:427
17363 msgid ""
17364 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17365 "other libguestfs program apart from guestfish and guestmount."
17366 msgstr ""
17367
17368 # type: =head1
17369 #: ../fish/guestfish.pod:430
17370 msgid "QUOTING"
17371 msgstr ""
17372
17373 # type: textblock
17374 #: ../fish/guestfish.pod:432
17375 msgid ""
17376 "You can quote ordinary parameters using either single or double quotes.  For "
17377 "example:"
17378 msgstr ""
17379
17380 # type: verbatim
17381 #: ../fish/guestfish.pod:435
17382 #, no-wrap
17383 msgid ""
17384 " add \"file with a space.img\"\n"
17385 "\n"
17386 msgstr ""
17387
17388 # type: verbatim
17389 #: ../fish/guestfish.pod:437
17390 #, no-wrap
17391 msgid ""
17392 " rm '/file name'\n"
17393 "\n"
17394 msgstr ""
17395
17396 # type: verbatim
17397 #: ../fish/guestfish.pod:439
17398 #, no-wrap
17399 msgid ""
17400 " rm '/\"'\n"
17401 "\n"
17402 msgstr ""
17403
17404 # type: textblock
17405 #: ../fish/guestfish.pod:441
17406 msgid ""
17407 "A few commands require a list of strings to be passed.  For these, use a "
17408 "whitespace-separated list, enclosed in quotes.  Strings containing "
17409 "whitespace to be passed through must be enclosed in single quotes.  A "
17410 "literal single quote must be escaped with a backslash."
17411 msgstr ""
17412
17413 # type: verbatim
17414 #: ../fish/guestfish.pod:446
17415 #, no-wrap
17416 msgid ""
17417 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17418 " command \"/bin/echo 'foo      bar'\"\n"
17419 " command \"/bin/echo \\'foo\\'\"\n"
17420 "\n"
17421 msgstr ""
17422
17423 # type: =head1
17424 #: ../fish/guestfish.pod:450
17425 msgid "OPTIONAL ARGUMENTS"
17426 msgstr ""
17427
17428 # type: textblock
17429 #: ../fish/guestfish.pod:452
17430 msgid ""
17431 "Some commands take optional arguments.  These arguments appear in this "
17432 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17433 msgstr ""
17434
17435 # type: verbatim
17436 #: ../fish/guestfish.pod:456
17437 #, no-wrap
17438 msgid ""
17439 " add-drive-opts filename\n"
17440 "\n"
17441 msgstr ""
17442
17443 # type: verbatim
17444 #: ../fish/guestfish.pod:458
17445 #, no-wrap
17446 msgid ""
17447 " add-drive-opts filename readonly:true\n"
17448 "\n"
17449 msgstr ""
17450
17451 # type: verbatim
17452 #: ../fish/guestfish.pod:460
17453 #, no-wrap
17454 msgid ""
17455 " add-drive-opts filename format:qcow2 readonly:false\n"
17456 "\n"
17457 msgstr ""
17458
17459 # type: textblock
17460 #: ../fish/guestfish.pod:462
17461 msgid ""
17462 "Each optional argument can appear at most once.  All optional arguments must "
17463 "appear after the required ones."
17464 msgstr ""
17465
17466 # type: =head1
17467 #: ../fish/guestfish.pod:465
17468 msgid "NUMBERS"
17469 msgstr ""
17470
17471 # type: textblock
17472 #: ../fish/guestfish.pod:467
17473 msgid "This section applies to all commands which can take integers as parameters."
17474 msgstr ""
17475
17476 # type: =head2
17477 #: ../fish/guestfish.pod:470
17478 msgid "SIZE SUFFIX"
17479 msgstr ""
17480
17481 # type: textblock
17482 #: ../fish/guestfish.pod:472
17483 msgid ""
17484 "When the command takes a parameter measured in bytes, you can use one of the "
17485 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17486 msgstr ""
17487
17488 # type: =item
17489 #: ../fish/guestfish.pod:478
17490 msgid "B<k> or B<K> or B<KiB>"
17491 msgstr ""
17492
17493 # type: textblock
17494 #: ../fish/guestfish.pod:480
17495 msgid "The size in kilobytes (multiplied by 1024)."
17496 msgstr ""
17497
17498 # type: =item
17499 #: ../fish/guestfish.pod:482
17500 msgid "B<KB>"
17501 msgstr ""
17502
17503 # type: textblock
17504 #: ../fish/guestfish.pod:484
17505 msgid "The size in SI 1000 byte units."
17506 msgstr ""
17507
17508 # type: =item
17509 #: ../fish/guestfish.pod:486
17510 msgid "B<M> or B<MiB>"
17511 msgstr ""
17512
17513 # type: textblock
17514 #: ../fish/guestfish.pod:488
17515 msgid "The size in megabytes (multiplied by 1048576)."
17516 msgstr ""
17517
17518 # type: =item
17519 #: ../fish/guestfish.pod:490
17520 msgid "B<MB>"
17521 msgstr ""
17522
17523 # type: textblock
17524 #: ../fish/guestfish.pod:492
17525 msgid "The size in SI 1000000 byte units."
17526 msgstr ""
17527
17528 # type: =item
17529 #: ../fish/guestfish.pod:494
17530 msgid "B<G> or B<GiB>"
17531 msgstr ""
17532
17533 # type: textblock
17534 #: ../fish/guestfish.pod:496
17535 msgid "The size in gigabytes (multiplied by 2**30)."
17536 msgstr ""
17537
17538 # type: =item
17539 #: ../fish/guestfish.pod:498
17540 msgid "B<GB>"
17541 msgstr ""
17542
17543 # type: textblock
17544 #: ../fish/guestfish.pod:500
17545 msgid "The size in SI 10**9 byte units."
17546 msgstr ""
17547
17548 # type: =item
17549 #: ../fish/guestfish.pod:502
17550 msgid "B<T> or B<TiB>"
17551 msgstr ""
17552
17553 # type: textblock
17554 #: ../fish/guestfish.pod:504
17555 msgid "The size in terabytes (multiplied by 2**40)."
17556 msgstr ""
17557
17558 # type: =item
17559 #: ../fish/guestfish.pod:506
17560 msgid "B<TB>"
17561 msgstr ""
17562
17563 # type: textblock
17564 #: ../fish/guestfish.pod:508
17565 msgid "The size in SI 10**12 byte units."
17566 msgstr ""
17567
17568 # type: =item
17569 #: ../fish/guestfish.pod:510
17570 msgid "B<P> or B<PiB>"
17571 msgstr ""
17572
17573 # type: textblock
17574 #: ../fish/guestfish.pod:512
17575 msgid "The size in petabytes (multiplied by 2**50)."
17576 msgstr ""
17577
17578 # type: =item
17579 #: ../fish/guestfish.pod:514
17580 msgid "B<PB>"
17581 msgstr ""
17582
17583 # type: textblock
17584 #: ../fish/guestfish.pod:516
17585 msgid "The size in SI 10**15 byte units."
17586 msgstr ""
17587
17588 # type: =item
17589 #: ../fish/guestfish.pod:518
17590 msgid "B<E> or B<EiB>"
17591 msgstr ""
17592
17593 # type: textblock
17594 #: ../fish/guestfish.pod:520
17595 msgid "The size in exabytes (multiplied by 2**60)."
17596 msgstr ""
17597
17598 # type: =item
17599 #: ../fish/guestfish.pod:522
17600 msgid "B<EB>"
17601 msgstr ""
17602
17603 # type: textblock
17604 #: ../fish/guestfish.pod:524
17605 msgid "The size in SI 10**18 byte units."
17606 msgstr ""
17607
17608 # type: =item
17609 #: ../fish/guestfish.pod:526
17610 msgid "B<Z> or B<ZiB>"
17611 msgstr ""
17612
17613 # type: textblock
17614 #: ../fish/guestfish.pod:528
17615 msgid "The size in zettabytes (multiplied by 2**70)."
17616 msgstr ""
17617
17618 # type: =item
17619 #: ../fish/guestfish.pod:530
17620 msgid "B<ZB>"
17621 msgstr ""
17622
17623 # type: textblock
17624 #: ../fish/guestfish.pod:532
17625 msgid "The size in SI 10**21 byte units."
17626 msgstr ""
17627
17628 # type: =item
17629 #: ../fish/guestfish.pod:534
17630 msgid "B<Y> or B<YiB>"
17631 msgstr ""
17632
17633 # type: textblock
17634 #: ../fish/guestfish.pod:536
17635 msgid "The size in yottabytes (multiplied by 2**80)."
17636 msgstr ""
17637
17638 # type: =item
17639 #: ../fish/guestfish.pod:538
17640 msgid "B<YB>"
17641 msgstr ""
17642
17643 # type: textblock
17644 #: ../fish/guestfish.pod:540
17645 msgid "The size in SI 10**24 byte units."
17646 msgstr ""
17647
17648 # type: verbatim
17649 #: ../fish/guestfish.pod:546
17650 #, no-wrap
17651 msgid ""
17652 " truncate-size /file 1G\n"
17653 "\n"
17654 msgstr ""
17655
17656 # type: textblock
17657 #: ../fish/guestfish.pod:548
17658 msgid "would truncate the file to 1 gigabyte."
17659 msgstr ""
17660
17661 # type: textblock
17662 #: ../fish/guestfish.pod:550
17663 msgid ""
17664 "Be careful because a few commands take sizes in kilobytes or megabytes "
17665 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17666 "Adding a suffix will probably not do what you expect."
17667 msgstr ""
17668
17669 # type: =head2
17670 #: ../fish/guestfish.pod:554
17671 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17672 msgstr ""
17673
17674 # type: textblock
17675 #: ../fish/guestfish.pod:556
17676 msgid ""
17677 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17678 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17679 msgstr ""
17680
17681 # type: verbatim
17682 #: ../fish/guestfish.pod:559
17683 #, no-wrap
17684 msgid ""
17685 " 1234      decimal number 1234\n"
17686 " 02322     octal number, equivalent to decimal 1234\n"
17687 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17688 "\n"
17689 msgstr ""
17690
17691 # type: textblock
17692 #: ../fish/guestfish.pod:563
17693 msgid ""
17694 "When using the C<chmod> command, you almost always want to specify an octal "
17695 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17696 "L<chmod(1)> program):"
17697 msgstr ""
17698
17699 # type: verbatim
17700 #: ../fish/guestfish.pod:567
17701 #, no-wrap
17702 msgid ""
17703 " chmod 0777 /public  # OK\n"
17704 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17705 "\n"
17706 msgstr ""
17707
17708 # type: textblock
17709 #: ../fish/guestfish.pod:570
17710 msgid ""
17711 "Commands that return numbers usually print them in decimal, but some "
17712 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17713 "octal, preceeded by C<0>)."
17714 msgstr ""
17715
17716 # type: =head1
17717 #: ../fish/guestfish.pod:574
17718 msgid "WILDCARDS AND GLOBBING"
17719 msgstr ""
17720
17721 # type: textblock
17722 #: ../fish/guestfish.pod:576
17723 msgid ""
17724 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17725 "(globbing) by default.  So for example the following will not do what you "
17726 "expect:"
17727 msgstr ""
17728
17729 # type: verbatim
17730 #: ../fish/guestfish.pod:580
17731 #, no-wrap
17732 msgid ""
17733 " rm-rf /home/*\n"
17734 "\n"
17735 msgstr ""
17736
17737 # type: textblock
17738 #: ../fish/guestfish.pod:582
17739 msgid ""
17740 "Assuming you don't have a directory called literally C</home/*> then the "
17741 "above command will return an error."
17742 msgstr ""
17743
17744 # type: textblock
17745 #: ../fish/guestfish.pod:585
17746 msgid "To perform wildcard expansion, use the C<glob> command."
17747 msgstr ""
17748
17749 # type: verbatim
17750 #: ../fish/guestfish.pod:587
17751 #, no-wrap
17752 msgid ""
17753 " glob rm-rf /home/*\n"
17754 "\n"
17755 msgstr ""
17756
17757 # type: textblock
17758 #: ../fish/guestfish.pod:589
17759 msgid ""
17760 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17761 "many times), equivalent to:"
17762 msgstr ""
17763
17764 # type: verbatim
17765 #: ../fish/guestfish.pod:592
17766 #, no-wrap
17767 msgid ""
17768 " rm-rf /home/jim\n"
17769 " rm-rf /home/joe\n"
17770 " rm-rf /home/mary\n"
17771 "\n"
17772 msgstr ""
17773
17774 # type: textblock
17775 #: ../fish/guestfish.pod:596
17776 msgid "C<glob> only works on simple guest paths and not on device names."
17777 msgstr ""
17778
17779 # type: textblock
17780 #: ../fish/guestfish.pod:598
17781 msgid ""
17782 "If you have several parameters, each containing a wildcard, then glob will "
17783 "perform a Cartesian product."
17784 msgstr ""
17785
17786 # type: =head1
17787 #: ../fish/guestfish.pod:601
17788 msgid "COMMENTS"
17789 msgstr ""
17790
17791 # type: textblock
17792 #: ../fish/guestfish.pod:603
17793 msgid ""
17794 "Any line which starts with a I<#> character is treated as a comment and "
17795 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17796 "a command.  For example:"
17797 msgstr ""
17798
17799 # type: verbatim
17800 #: ../fish/guestfish.pod:607
17801 #, no-wrap
17802 msgid ""
17803 " # this is a comment\n"
17804 "         # this is a comment\n"
17805 " foo # NOT a comment\n"
17806 "\n"
17807 msgstr ""
17808
17809 # type: textblock
17810 #: ../fish/guestfish.pod:611
17811 msgid "Blank lines are also ignored."
17812 msgstr ""
17813
17814 # type: =head1
17815 #: ../fish/guestfish.pod:613
17816 msgid "RUNNING COMMANDS LOCALLY"
17817 msgstr ""
17818
17819 # type: textblock
17820 #: ../fish/guestfish.pod:615
17821 msgid ""
17822 "Any line which starts with a I<!> character is treated as a command sent to "
17823 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17824 msgstr ""
17825
17826 # type: verbatim
17827 #: ../fish/guestfish.pod:619
17828 #, no-wrap
17829 msgid ""
17830 " !mkdir local\n"
17831 " tgz-out /remote local/remote-data.tar.gz\n"
17832 "\n"
17833 msgstr ""
17834
17835 # type: textblock
17836 #: ../fish/guestfish.pod:622
17837 msgid ""
17838 "will create a directory C<local> on the host, and then export the contents "
17839 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17840 "(See C<tgz-out>)."
17841 msgstr ""
17842
17843 # type: textblock
17844 #: ../fish/guestfish.pod:626
17845 msgid ""
17846 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17847 "effect, due to the way that subprocesses work in Unix."
17848 msgstr ""
17849
17850 # type: =head1
17851 #: ../fish/guestfish.pod:629
17852 msgid "PIPES"
17853 msgstr ""
17854
17855 # type: textblock
17856 #: ../fish/guestfish.pod:631
17857 msgid ""
17858 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17859 "command (a guestfish command) to the second command (any host command).  For "
17860 "example:"
17861 msgstr ""
17862
17863 # type: verbatim
17864 #: ../fish/guestfish.pod:635
17865 #, no-wrap
17866 msgid ""
17867 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17868 "\n"
17869 msgstr ""
17870
17871 # type: textblock
17872 #: ../fish/guestfish.pod:637
17873 msgid ""
17874 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17875 "program).  The above command would list all accounts in the guest filesystem "
17876 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17877 msgstr ""
17878
17879 # type: verbatim
17880 #: ../fish/guestfish.pod:642
17881 #, no-wrap
17882 msgid ""
17883 " hexdump /bin/ls | head\n"
17884 " list-devices | tail -1\n"
17885 " tgz-out / - | tar ztf -\n"
17886 "\n"
17887 msgstr ""
17888
17889 # type: textblock
17890 #: ../fish/guestfish.pod:646
17891 msgid ""
17892 "The space before the pipe symbol is required, any space after the pipe "
17893 "symbol is optional.  Everything after the pipe symbol is just passed "
17894 "straight to the host shell, so it can contain redirections, globs and "
17895 "anything else that makes sense on the host side."
17896 msgstr ""
17897
17898 # type: textblock
17899 #: ../fish/guestfish.pod:651
17900 msgid ""
17901 "To use a literal argument which begins with a pipe symbol, you have to quote "
17902 "it, eg:"
17903 msgstr ""
17904
17905 # type: verbatim
17906 #: ../fish/guestfish.pod:654
17907 #, no-wrap
17908 msgid ""
17909 " echo \"|\"\n"
17910 "\n"
17911 msgstr ""
17912
17913 # type: =head1
17914 #: ../fish/guestfish.pod:656
17915 msgid "HOME DIRECTORIES"
17916 msgstr ""
17917
17918 # type: textblock
17919 #: ../fish/guestfish.pod:658
17920 msgid ""
17921 "If a parameter starts with the character C<~> then the tilde may be expanded "
17922 "as a home directory path (either C<~> for the current user's home directory, "
17923 "or C<~user> for another user)."
17924 msgstr ""
17925
17926 # type: textblock
17927 #: ../fish/guestfish.pod:662
17928 msgid ""
17929 "Note that home directory expansion happens for users known I<on the host>, "
17930 "not in the guest filesystem."
17931 msgstr ""
17932
17933 # type: textblock
17934 #: ../fish/guestfish.pod:665
17935 msgid ""
17936 "To use a literal argument which begins with a tilde, you have to quote it, "
17937 "eg:"
17938 msgstr ""
17939
17940 # type: verbatim
17941 #: ../fish/guestfish.pod:668
17942 #, no-wrap
17943 msgid ""
17944 " echo \"~\"\n"
17945 "\n"
17946 msgstr ""
17947
17948 # type: textblock
17949 #: ../fish/guestfish.pod:672
17950 msgid ""
17951 "Libguestfs has some support for Linux guests encrypted according to the "
17952 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17953 "disk encryption systems used by modern Linux guests.  Currently only "
17954 "LVM-on-LUKS is supported."
17955 msgstr ""
17956
17957 # type: textblock
17958 #: ../fish/guestfish.pod:677
17959 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17960 msgstr ""
17961
17962 # type: verbatim
17963 #: ../fish/guestfish.pod:679
17964 #, no-wrap
17965 msgid ""
17966 " ><fs> vfs-type /dev/sda2\n"
17967 " crypto_LUKS\n"
17968 "\n"
17969 msgstr ""
17970
17971 # type: textblock
17972 #: ../fish/guestfish.pod:682
17973 msgid ""
17974 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17975 "device called C</dev/mapper/luksdev>."
17976 msgstr ""
17977
17978 # type: verbatim
17979 #: ../fish/guestfish.pod:685
17980 #, no-wrap
17981 msgid ""
17982 " ><fs> luks-open /dev/sda2 luksdev\n"
17983 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17984 "\n"
17985 msgstr ""
17986
17987 # type: textblock
17988 #: ../fish/guestfish.pod:688
17989 msgid ""
17990 "Finally you have to tell LVM to scan for volume groups on the newly created "
17991 "mapper device:"
17992 msgstr ""
17993
17994 # type: verbatim
17995 #: ../fish/guestfish.pod:691
17996 #, no-wrap
17997 msgid ""
17998 " vgscan\n"
17999 " vg-activate-all true\n"
18000 "\n"
18001 msgstr ""
18002
18003 # type: textblock
18004 #: ../fish/guestfish.pod:694
18005 msgid "The logical volume(s) can now be mounted in the usual way."
18006 msgstr ""
18007
18008 # type: textblock
18009 #: ../fish/guestfish.pod:696
18010 msgid ""
18011 "Before closing a LUKS device you must unmount any logical volumes on it and "
18012 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18013 "one.  Then you can close the mapper device:"
18014 msgstr ""
18015
18016 # type: verbatim
18017 #: ../fish/guestfish.pod:700
18018 #, no-wrap
18019 msgid ""
18020 " vg-activate false /dev/VG\n"
18021 " luks-close /dev/mapper/luksdev\n"
18022 "\n"
18023 msgstr ""
18024
18025 # type: =head1
18026 #: ../fish/guestfish.pod:703
18027 msgid "WINDOWS PATHS"
18028 msgstr ""
18029
18030 # type: textblock
18031 #: ../fish/guestfish.pod:705
18032 msgid ""
18033 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18034 "(with some limitations).  The following commands are equivalent:"
18035 msgstr ""
18036
18037 # type: verbatim
18038 #: ../fish/guestfish.pod:708
18039 #, no-wrap
18040 msgid ""
18041 " file /WINDOWS/system32/config/system.LOG\n"
18042 "\n"
18043 msgstr ""
18044
18045 # type: verbatim
18046 #: ../fish/guestfish.pod:710
18047 #, no-wrap
18048 msgid ""
18049 " file win:/windows/system32/config/system.log\n"
18050 "\n"
18051 msgstr ""
18052
18053 # type: verbatim
18054 #: ../fish/guestfish.pod:712
18055 #, no-wrap
18056 msgid ""
18057 " file win:\\windows\\system32\\config\\system.log\n"
18058 "\n"
18059 msgstr ""
18060
18061 # type: verbatim
18062 #: ../fish/guestfish.pod:714
18063 #, no-wrap
18064 msgid ""
18065 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18066 "\n"
18067 msgstr ""
18068
18069 # type: textblock
18070 #: ../fish/guestfish.pod:716
18071 msgid ""
18072 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18073 "handles case insensitivity like Windows would.  This only works in argument "
18074 "positions that expect a path."
18075 msgstr ""
18076
18077 # type: =head1
18078 #: ../fish/guestfish.pod:720
18079 msgid "UPLOADING AND DOWNLOADING FILES"
18080 msgstr ""
18081
18082 # type: textblock
18083 #: ../fish/guestfish.pod:722
18084 msgid ""
18085 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18086 "others which upload from or download to a local file, you can use the "
18087 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18088 msgstr ""
18089
18090 # type: verbatim
18091 #: ../fish/guestfish.pod:726
18092 #, no-wrap
18093 msgid ""
18094 " upload - /foo\n"
18095 "\n"
18096 msgstr ""
18097
18098 # type: textblock
18099 #: ../fish/guestfish.pod:728
18100 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
18101 msgstr ""
18102
18103 # type: verbatim
18104 #: ../fish/guestfish.pod:731
18105 #, no-wrap
18106 msgid ""
18107 " tar-out /etc - | tar tf -\n"
18108 "\n"
18109 msgstr ""
18110
18111 # type: textblock
18112 #: ../fish/guestfish.pod:733
18113 msgid ""
18114 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18115 "command (see L</PIPES>)."
18116 msgstr ""
18117
18118 # type: textblock
18119 #: ../fish/guestfish.pod:736
18120 msgid ""
18121 "When using C<-> to read from stdin, the input is read up to the end of "
18122 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18123 "some arbitrary end marker:"
18124 msgstr ""
18125
18126 # type: verbatim
18127 #: ../fish/guestfish.pod:740
18128 #, no-wrap
18129 msgid ""
18130 " upload -<<END /foo\n"
18131 " input line 1\n"
18132 " input line 2\n"
18133 " input line 3\n"
18134 " END\n"
18135 "\n"
18136 msgstr ""
18137
18138 # type: textblock
18139 #: ../fish/guestfish.pod:746
18140 msgid ""
18141 "Any string of characters can be used instead of C<END>.  The end marker must "
18142 "appear on a line of its own, without any preceeding or following characters "
18143 "(not even spaces)."
18144 msgstr ""
18145
18146 # type: textblock
18147 #: ../fish/guestfish.pod:750
18148 msgid ""
18149 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18150 "upload local files (so-called \"FileIn\" parameters in the generator)."
18151 msgstr ""
18152
18153 # type: =head1
18154 #: ../fish/guestfish.pod:753
18155 msgid "EXIT ON ERROR BEHAVIOUR"
18156 msgstr ""
18157
18158 # type: textblock
18159 #: ../fish/guestfish.pod:755
18160 msgid ""
18161 "By default, guestfish will ignore any errors when in interactive mode "
18162 "(ie. taking commands from a human over a tty), and will exit on the first "
18163 "error in non-interactive mode (scripts, commands given on the command line)."
18164 msgstr ""
18165
18166 # type: textblock
18167 #: ../fish/guestfish.pod:760
18168 msgid ""
18169 "If you prefix a command with a I<-> character, then that command will not "
18170 "cause guestfish to exit, even if that (one) command returns an error."
18171 msgstr ""
18172
18173 # type: =head1
18174 #: ../fish/guestfish.pod:764
18175 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18176 msgstr ""
18177
18178 # type: textblock
18179 #: ../fish/guestfish.pod:766
18180 msgid ""
18181 "Guestfish can be remote-controlled over a socket.  This is useful "
18182 "particularly in shell scripts where you want to make several different "
18183 "changes to a filesystem, but you don't want the overhead of starting up a "
18184 "guestfish process each time."
18185 msgstr ""
18186
18187 # type: textblock
18188 #: ../fish/guestfish.pod:771
18189 msgid "Start a guestfish server process using:"
18190 msgstr ""
18191
18192 # type: verbatim
18193 #: ../fish/guestfish.pod:773
18194 #, no-wrap
18195 msgid ""
18196 " eval \"`guestfish --listen`\"\n"
18197 "\n"
18198 msgstr ""
18199
18200 # type: textblock
18201 #: ../fish/guestfish.pod:775
18202 msgid "and then send it commands by doing:"
18203 msgstr ""
18204
18205 # type: verbatim
18206 #: ../fish/guestfish.pod:777
18207 #, no-wrap
18208 msgid ""
18209 " guestfish --remote cmd [...]\n"
18210 "\n"
18211 msgstr ""
18212
18213 # type: textblock
18214 #: ../fish/guestfish.pod:779
18215 msgid "To cause the server to exit, send it the exit command:"
18216 msgstr ""
18217
18218 # type: verbatim
18219 #: ../fish/guestfish.pod:781
18220 #, no-wrap
18221 msgid ""
18222 " guestfish --remote exit\n"
18223 "\n"
18224 msgstr ""
18225
18226 # type: textblock
18227 #: ../fish/guestfish.pod:783
18228 msgid ""
18229 "Note that the server will normally exit if there is an error in a command.  "
18230 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18231 "BEHAVIOUR>."
18232 msgstr ""
18233
18234 # type: =head2
18235 #: ../fish/guestfish.pod:787
18236 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18237 msgstr ""
18238
18239 # type: textblock
18240 #: ../fish/guestfish.pod:789
18241 msgid ""
18242 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18243 "is how the I<--remote> option knows where to send the commands.  You can "
18244 "have several guestfish listener processes running using:"
18245 msgstr ""
18246
18247 # type: verbatim
18248 #: ../fish/guestfish.pod:793
18249 #, no-wrap
18250 msgid ""
18251 " eval \"`guestfish --listen`\"\n"
18252 " pid1=$GUESTFISH_PID\n"
18253 " eval \"`guestfish --listen`\"\n"
18254 " pid2=$GUESTFISH_PID\n"
18255 " ...\n"
18256 " guestfish --remote=$pid1 cmd\n"
18257 " guestfish --remote=$pid2 cmd\n"
18258 "\n"
18259 msgstr ""
18260
18261 # type: =head2
18262 #: ../fish/guestfish.pod:801
18263 msgid "REMOTE CONTROL AND CSH"
18264 msgstr ""
18265
18266 # type: textblock
18267 #: ../fish/guestfish.pod:803
18268 msgid ""
18269 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18270 "option:"
18271 msgstr ""
18272
18273 # type: verbatim
18274 #: ../fish/guestfish.pod:806
18275 #, no-wrap
18276 msgid ""
18277 " eval \"`guestfish --listen --csh`\"\n"
18278 "\n"
18279 msgstr ""
18280
18281 # type: =head2
18282 #: ../fish/guestfish.pod:808
18283 msgid "REMOTE CONTROL DETAILS"
18284 msgstr ""
18285
18286 # type: textblock
18287 #: ../fish/guestfish.pod:810
18288 msgid ""
18289 "Remote control happens over a Unix domain socket called "
18290 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18291 "of the process, and C<$PID> is the process ID of the server."
18292 msgstr ""
18293
18294 # type: textblock
18295 #: ../fish/guestfish.pod:814
18296 msgid "Guestfish client and server versions must match exactly."
18297 msgstr ""
18298
18299 # type: =head1
18300 #: ../fish/guestfish.pod:816
18301 msgid "PREPARED DISK IMAGES"
18302 msgstr ""
18303
18304 # type: textblock
18305 #: ../fish/guestfish.pod:818
18306 msgid ""
18307 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18308 "preformatted disk images that guestfish can make for you to save typing.  "
18309 "This is particularly useful for testing purposes.  This option is used "
18310 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18311 "can be mixed with I<-a>)."
18312 msgstr ""
18313
18314 # type: textblock
18315 #: ../fish/guestfish.pod:824
18316 msgid ""
18317 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18318 "the second and so on.  Existing files in the current directory are "
18319 "I<overwritten>."
18320 msgstr ""
18321
18322 # type: textblock
18323 #: ../fish/guestfish.pod:828
18324 msgid ""
18325 "The type briefly describes how the disk should be sized, partitioned, how "
18326 "filesystem(s) should be created, and how content should be added.  "
18327 "Optionally the type can be followed by extra parameters, separated by C<:> "
18328 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
18329 "sparsely-allocated disk, containing a single partition, with the partition "
18330 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
18331 "on a 1GB disk instead."
18332 msgstr ""
18333
18334 # type: textblock
18335 #: ../fish/guestfish.pod:836
18336 msgid "To list the available types and any extra parameters they take, run:"
18337 msgstr ""
18338
18339 # type: textblock
18340 #: ../fish/guestfish.pod:840
18341 msgid ""
18342 "Note that the prepared filesystem is not mounted.  You would usually have to "
18343 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18344 msgstr ""
18345
18346 # type: textblock
18347 #: ../fish/guestfish.pod:844
18348 msgid ""
18349 "If any I<-N> or I<--new> options are given, the guest is automatically "
18350 "launched."
18351 msgstr ""
18352
18353 # type: textblock
18354 #: ../fish/guestfish.pod:849
18355 msgid "Create a 100MB disk with an ext4-formatted partition:"
18356 msgstr ""
18357
18358 # type: verbatim
18359 #: ../fish/guestfish.pod:851
18360 #, no-wrap
18361 msgid ""
18362 " guestfish -N fs:ext4\n"
18363 "\n"
18364 msgstr ""
18365
18366 # type: textblock
18367 #: ../fish/guestfish.pod:853
18368 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18369 msgstr ""
18370
18371 # type: verbatim
18372 #: ../fish/guestfish.pod:855
18373 #, no-wrap
18374 msgid ""
18375 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18376 "\n"
18377 msgstr ""
18378
18379 # type: textblock
18380 #: ../fish/guestfish.pod:857
18381 msgid "Create a blank 200MB disk:"
18382 msgstr ""
18383
18384 # type: verbatim
18385 #: ../fish/guestfish.pod:859
18386 #, no-wrap
18387 msgid ""
18388 " guestfish -N disk:200M\n"
18389 "\n"
18390 msgstr ""
18391
18392 # type: =head1
18393 #: ../fish/guestfish.pod:861
18394 msgid "PROGRESS BARS"
18395 msgstr ""
18396
18397 # type: textblock
18398 #: ../fish/guestfish.pod:863
18399 msgid ""
18400 "Some (not all) long-running commands send progress notification messages as "
18401 "they are running.  Guestfish turns these messages into progress bars."
18402 msgstr ""
18403
18404 # type: textblock
18405 #: ../fish/guestfish.pod:867
18406 msgid ""
18407 "When a command that supports progress bars takes longer than two seconds to "
18408 "run, and if progress bars are enabled, then you will see one appearing below "
18409 "the command:"
18410 msgstr ""
18411
18412 # type: verbatim
18413 #: ../fish/guestfish.pod:871
18414 #, no-wrap
18415 msgid ""
18416 " ><fs> copy-size /large-file /another-file 2048M\n"
18417 " / 10% [#####-----------------------------------------] 00:30\n"
18418 "\n"
18419 msgstr ""
18420
18421 # type: textblock
18422 #: ../fish/guestfish.pod:874
18423 msgid ""
18424 "The spinner on the left hand side moves round once for every progress "
18425 "notification received from the backend.  This is a (reasonably) golden "
18426 "assurance that the command is \"doing something\" even if the progress bar "
18427 "is not moving, because the command is able to send the progress "
18428 "notifications.  When the bar reaches 100% and the command finishes, the "
18429 "spinner disappears."
18430 msgstr ""
18431
18432 # type: textblock
18433 #: ../fish/guestfish.pod:881
18434 msgid ""
18435 "Progress bars are enabled by default when guestfish is used interactively.  "
18436 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18437 "and you can disable them completely using I<--no-progress-bars>."
18438 msgstr ""
18439
18440 # type: =head1
18441 #: ../fish/guestfish.pod:886
18442 msgid "GUESTFISH COMMANDS"
18443 msgstr ""
18444
18445 # type: textblock
18446 #: ../fish/guestfish.pod:888
18447 msgid ""
18448 "The commands in this section are guestfish convenience commands, in other "
18449 "words, they are not part of the L<guestfs(3)> API."
18450 msgstr ""
18451
18452 # type: =head2
18453 #: ../fish/guestfish.pod:891
18454 msgid "help"
18455 msgstr ""
18456
18457 # type: verbatim
18458 #: ../fish/guestfish.pod:893
18459 #, no-wrap
18460 msgid ""
18461 " help\n"
18462 " help cmd\n"
18463 "\n"
18464 msgstr ""
18465
18466 # type: textblock
18467 #: ../fish/guestfish.pod:896
18468 msgid "Without any parameter, this provides general help."
18469 msgstr ""
18470
18471 # type: textblock
18472 #: ../fish/guestfish.pod:898
18473 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18474 msgstr ""
18475
18476 # type: =head2
18477 #: ../fish/guestfish.pod:900
18478 msgid "quit | exit"
18479 msgstr ""
18480
18481 # type: textblock
18482 #: ../fish/guestfish.pod:902
18483 msgid "This exits guestfish.  You can also use C<^D> key."
18484 msgstr ""
18485
18486 # type: textblock
18487 #: ../fish/guestfish.pod:904
18488 msgid "@FISH_COMMANDS@"
18489 msgstr ""
18490
18491 # type: =head1
18492 #: ../fish/guestfish.pod:906
18493 msgid "COMMANDS"
18494 msgstr ""
18495
18496 # type: =head1
18497 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
18498 msgid "EXIT CODE"
18499 msgstr ""
18500
18501 # type: textblock
18502 #: ../fish/guestfish.pod:912
18503 msgid ""
18504 "guestfish returns 0 if the commands completed without error, or 1 if there "
18505 "was an error."
18506 msgstr ""
18507
18508 # type: =item
18509 #: ../fish/guestfish.pod:919
18510 msgid "EDITOR"
18511 msgstr ""
18512
18513 # type: textblock
18514 #: ../fish/guestfish.pod:921
18515 msgid ""
18516 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18517 "C<vi>."
18518 msgstr ""
18519
18520 # type: =item
18521 #: ../fish/guestfish.pod:924
18522 msgid "GUESTFISH_PID"
18523 msgstr ""
18524
18525 # type: textblock
18526 #: ../fish/guestfish.pod:926
18527 msgid ""
18528 "Used with the I<--remote> option to specify the remote guestfish process to "
18529 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18530 msgstr ""
18531
18532 # type: =item
18533 #: ../fish/guestfish.pod:930
18534 msgid "HEXEDITOR"
18535 msgstr ""
18536
18537 # type: textblock
18538 #: ../fish/guestfish.pod:932
18539 msgid ""
18540 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18541 "not specified, the external L<hexedit(1)> program is used."
18542 msgstr ""
18543
18544 # type: =item
18545 #: ../fish/guestfish.pod:936
18546 msgid "HOME"
18547 msgstr ""
18548
18549 # type: textblock
18550 #: ../fish/guestfish.pod:938
18551 msgid ""
18552 "If compiled with GNU readline support, various files in the home directory "
18553 "can be used.  See L</FILES>."
18554 msgstr ""
18555
18556 # type: textblock
18557 #: ../fish/guestfish.pod:947
18558 msgid ""
18559 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18560 "effect as using the B<-v> option."
18561 msgstr ""
18562
18563 # type: textblock
18564 #: ../fish/guestfish.pod:959
18565 msgid ""
18566 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18567 "the discussion of paths in L<guestfs(3)>."
18568 msgstr ""
18569
18570 # type: textblock
18571 #: ../fish/guestfish.pod:970
18572 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18573 msgstr ""
18574
18575 # type: =item
18576 #: ../fish/guestfish.pod:972
18577 msgid "PAGER"
18578 msgstr ""
18579
18580 # type: textblock
18581 #: ../fish/guestfish.pod:974
18582 msgid ""
18583 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18584 "C<more>."
18585 msgstr ""
18586
18587 # type: =head1
18588 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
18589 msgid "FILES"
18590 msgstr ""
18591
18592 # type: =item
18593 #: ../fish/guestfish.pod:993
18594 msgid "$HOME/.guestfish"
18595 msgstr ""
18596
18597 # type: textblock
18598 #: ../fish/guestfish.pod:995
18599 msgid ""
18600 "If compiled with GNU readline support, then the command history is saved in "
18601 "this file."
18602 msgstr ""
18603
18604 # type: =item
18605 #: ../fish/guestfish.pod:998
18606 msgid "$HOME/.inputrc"
18607 msgstr ""
18608
18609 # type: =item
18610 #: ../fish/guestfish.pod:1000
18611 msgid "/etc/inputrc"
18612 msgstr ""
18613
18614 # type: textblock
18615 #: ../fish/guestfish.pod:1002
18616 msgid ""
18617 "If compiled with GNU readline support, then these files can be used to "
18618 "configure readline.  For further information, please see "
18619 "L<readline(3)/INITIALIZATION FILE>."
18620 msgstr ""
18621
18622 # type: textblock
18623 #: ../fish/guestfish.pod:1006
18624 msgid "To write rules which only apply to guestfish, use:"
18625 msgstr ""
18626
18627 # type: verbatim
18628 #: ../fish/guestfish.pod:1008
18629 #, no-wrap
18630 msgid ""
18631 " $if guestfish\n"
18632 " ...\n"
18633 " $endif\n"
18634 "\n"
18635 msgstr ""
18636
18637 # type: textblock
18638 #: ../fish/guestfish.pod:1012
18639 msgid ""
18640 "Variables that you can set in inputrc that change the behaviour of guestfish "
18641 "in useful ways include:"
18642 msgstr ""
18643
18644 # type: =item
18645 #: ../fish/guestfish.pod:1017
18646 msgid "completion-ignore-case (default: on)"
18647 msgstr ""
18648
18649 # type: textblock
18650 #: ../fish/guestfish.pod:1019
18651 msgid ""
18652 "By default, guestfish will ignore case when tab-completing paths on the "
18653 "disk.  Use:"
18654 msgstr ""
18655
18656 # type: verbatim
18657 #: ../fish/guestfish.pod:1022
18658 #, no-wrap
18659 msgid ""
18660 " set completion-ignore-case off\n"
18661 "\n"
18662 msgstr ""
18663
18664 # type: textblock
18665 #: ../fish/guestfish.pod:1024
18666 msgid "to make guestfish case sensitive."
18667 msgstr ""
18668
18669 # type: =item
18670 #: ../fish/guestfish.pod:1028
18671 msgid "test1.img"
18672 msgstr ""
18673
18674 # type: =item
18675 #: ../fish/guestfish.pod:1030
18676 msgid "test2.img (etc)"
18677 msgstr ""
18678
18679 # type: textblock
18680 #: ../fish/guestfish.pod:1032
18681 msgid ""
18682 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18683 "will be created in the file C<test1.img> in the current directory.  The "
18684 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18685 "the same name will be overwritten."
18686 msgstr ""
18687
18688 # type: textblock
18689 #: ../fish/guestfish.pod:1041
18690 msgid ""
18691 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18692 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
18693 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
18694 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, "
18695 "L<virt-win-reg(1)>, L<hexedit(1)>."
18696 msgstr ""
18697
18698 # type: textblock
18699 #: ../fish/guestfish.pod:1067 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:518 ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
18700 msgid ""
18701 "This program is free software; you can redistribute it and/or modify it "
18702 "under the terms of the GNU General Public License as published by the Free "
18703 "Software Foundation; either version 2 of the License, or (at your option) "
18704 "any later version."
18705 msgstr ""
18706
18707 # type: textblock
18708 #: ../fish/guestfish.pod:1072 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:523 ../tools/virt-resize.pl:1517 ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
18709 msgid ""
18710 "This program is distributed in the hope that it will be useful, but WITHOUT "
18711 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18712 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18713 "more details."
18714 msgstr ""
18715
18716 # type: textblock
18717 #: ../fish/guestfish.pod:1077 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:528 ../tools/virt-resize.pl:1522 ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
18718 msgid ""
18719 "You should have received a copy of the GNU General Public License along with "
18720 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18721 "Ave, Cambridge, MA 02139, USA."
18722 msgstr ""
18723
18724 # type: =head2
18725 #: ../fish/guestfish-actions.pod:1
18726 msgid "add-cdrom"
18727 msgstr ""
18728
18729 # type: verbatim
18730 #: ../fish/guestfish-actions.pod:3
18731 #, no-wrap
18732 msgid ""
18733 " add-cdrom filename\n"
18734 "\n"
18735 msgstr ""
18736
18737 # type: textblock
18738 #: ../fish/guestfish-actions.pod:15
18739 msgid ""
18740 "This call checks for the existence of C<filename>.  This stops you from "
18741 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18742 "and C<http:> URLs.  To specify those, use the general L</config> call "
18743 "instead."
18744 msgstr ""
18745
18746 # type: textblock
18747 #: ../fish/guestfish-actions.pod:22
18748 msgid ""
18749 "If you just want to add an ISO file (often you use this as an efficient way "
18750 "to transfer large files into the guest), then you should probably use "
18751 "L</add-drive-ro> instead."
18752 msgstr ""
18753
18754 # type: =head2
18755 #: ../fish/guestfish-actions.pod:35
18756 msgid "add-domain"
18757 msgstr ""
18758
18759 # type: =head2
18760 #: ../fish/guestfish-actions.pod:37
18761 msgid "domain"
18762 msgstr ""
18763
18764 # type: verbatim
18765 #: ../fish/guestfish-actions.pod:39
18766 #, no-wrap
18767 msgid ""
18768 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18769 "\n"
18770 msgstr ""
18771
18772 # type: textblock
18773 #: ../fish/guestfish-actions.pod:41
18774 msgid ""
18775 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18776 "It works by connecting to libvirt, requesting the domain and domain XML from "
18777 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18778 msgstr ""
18779
18780 # type: textblock
18781 #: ../fish/guestfish-actions.pod:58
18782 msgid ""
18783 "The optional C<libvirturi> parameter sets the libvirt URI (see "
18784 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
18785 "default libvirt URI (or one set through an environment variable, see the "
18786 "libvirt documentation for full details).  If you are using the C API "
18787 "directly then it is more flexible to create the libvirt connection object "
18788 "yourself, get the domain object, and call L</add-libvirt-dom>."
18789 msgstr ""
18790
18791 # type: textblock
18792 #: ../fish/guestfish-actions.pod:66
18793 msgid ""
18794 "The other optional parameters are passed directly through to "
18795 "L</add-drive-opts>."
18796 msgstr ""
18797
18798 # type: textblock
18799 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
18800 msgid ""
18801 "This command has one or more optional arguments.  See L</OPTIONAL "
18802 "ARGUMENTS>."
18803 msgstr ""
18804
18805 # type: =head2
18806 #: ../fish/guestfish-actions.pod:71
18807 msgid "add-drive"
18808 msgstr ""
18809
18810 # type: verbatim
18811 #: ../fish/guestfish-actions.pod:73
18812 #, no-wrap
18813 msgid ""
18814 " add-drive filename\n"
18815 "\n"
18816 msgstr ""
18817
18818 # type: textblock
18819 #: ../fish/guestfish-actions.pod:75
18820 msgid ""
18821 "This function is the equivalent of calling L</add-drive-opts> with no "
18822 "optional parameters, so the disk is added writable, with the format being "
18823 "detected automatically."
18824 msgstr ""
18825
18826 # type: textblock
18827 #: ../fish/guestfish-actions.pod:79
18828 msgid ""
18829 "Automatic detection of the format opens you up to a potential security hole "
18830 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18831 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18832 "you should think about replacing calls to this function with calls to "
18833 "L</add-drive-opts>, and specifying the format."
18834 msgstr ""
18835
18836 # type: =head2
18837 #: ../fish/guestfish-actions.pod:86
18838 msgid "add-drive-opts"
18839 msgstr ""
18840
18841 # type: =head2
18842 #: ../fish/guestfish-actions.pod:88
18843 msgid "add"
18844 msgstr ""
18845
18846 # type: verbatim
18847 #: ../fish/guestfish-actions.pod:90
18848 #, no-wrap
18849 msgid ""
18850 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18851 "\n"
18852 msgstr ""
18853
18854 # type: textblock
18855 #: ../fish/guestfish-actions.pod:117
18856 msgid ""
18857 "This forces the image format.  If you omit this (or use L</add-drive> or "
18858 "L</add-drive-ro>) then the format is automatically detected.  Possible "
18859 "formats include C<raw> and C<qcow2>."
18860 msgstr ""
18861
18862 # type: textblock
18863 #: ../fish/guestfish-actions.pod:128
18864 msgid ""
18865 "This rarely-used option lets you emulate the behaviour of the deprecated "
18866 "L</add-drive-with-if> call (q.v.)"
18867 msgstr ""
18868
18869 # type: =head2
18870 #: ../fish/guestfish-actions.pod:135
18871 msgid "add-drive-ro"
18872 msgstr ""
18873
18874 # type: =head2
18875 #: ../fish/guestfish-actions.pod:137
18876 msgid "add-ro"
18877 msgstr ""
18878
18879 # type: verbatim
18880 #: ../fish/guestfish-actions.pod:139
18881 #, no-wrap
18882 msgid ""
18883 " add-drive-ro filename\n"
18884 "\n"
18885 msgstr ""
18886
18887 # type: textblock
18888 #: ../fish/guestfish-actions.pod:141
18889 msgid ""
18890 "This function is the equivalent of calling L</add-drive-opts> with the "
18891 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18892 "is added read-only, with the format being detected automatically."
18893 msgstr ""
18894
18895 # type: =head2
18896 #: ../fish/guestfish-actions.pod:146
18897 msgid "add-drive-ro-with-if"
18898 msgstr ""
18899
18900 # type: verbatim
18901 #: ../fish/guestfish-actions.pod:148
18902 #, no-wrap
18903 msgid ""
18904 " add-drive-ro-with-if filename iface\n"
18905 "\n"
18906 msgstr ""
18907
18908 # type: textblock
18909 #: ../fish/guestfish-actions.pod:150
18910 msgid ""
18911 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18912 "interface emulation to use at run time."
18913 msgstr ""
18914
18915 # type: =head2
18916 #: ../fish/guestfish-actions.pod:160
18917 msgid "add-drive-with-if"
18918 msgstr ""
18919
18920 # type: verbatim
18921 #: ../fish/guestfish-actions.pod:162
18922 #, no-wrap
18923 msgid ""
18924 " add-drive-with-if filename iface\n"
18925 "\n"
18926 msgstr ""
18927
18928 # type: textblock
18929 #: ../fish/guestfish-actions.pod:164
18930 msgid ""
18931 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18932 "interface emulation to use at run time."
18933 msgstr ""
18934
18935 # type: =head2
18936 #: ../fish/guestfish-actions.pod:174
18937 msgid "aug-clear"
18938 msgstr ""
18939
18940 # type: verbatim
18941 #: ../fish/guestfish-actions.pod:176
18942 #, no-wrap
18943 msgid ""
18944 " aug-clear augpath\n"
18945 "\n"
18946 msgstr ""
18947
18948 # type: =head2
18949 #: ../fish/guestfish-actions.pod:181
18950 msgid "aug-close"
18951 msgstr ""
18952
18953 # type: verbatim
18954 #: ../fish/guestfish-actions.pod:183
18955 #, no-wrap
18956 msgid ""
18957 " aug-close\n"
18958 "\n"
18959 msgstr ""
18960
18961 # type: textblock
18962 #: ../fish/guestfish-actions.pod:185
18963 msgid ""
18964 "Close the current Augeas handle and free up any resources used by it.  After "
18965 "calling this, you have to call L</aug-init> again before you can use any "
18966 "other Augeas functions."
18967 msgstr ""
18968
18969 # type: =head2
18970 #: ../fish/guestfish-actions.pod:190
18971 msgid "aug-defnode"
18972 msgstr ""
18973
18974 # type: verbatim
18975 #: ../fish/guestfish-actions.pod:192
18976 #, no-wrap
18977 msgid ""
18978 " aug-defnode name expr val\n"
18979 "\n"
18980 msgstr ""
18981
18982 # type: textblock
18983 #: ../fish/guestfish-actions.pod:197
18984 msgid ""
18985 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18986 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18987 "containing that single node."
18988 msgstr ""
18989
18990 # type: =head2
18991 #: ../fish/guestfish-actions.pod:205
18992 msgid "aug-defvar"
18993 msgstr ""
18994
18995 # type: verbatim
18996 #: ../fish/guestfish-actions.pod:207
18997 #, no-wrap
18998 msgid ""
18999 " aug-defvar name expr\n"
19000 "\n"
19001 msgstr ""
19002
19003 # type: =head2
19004 #: ../fish/guestfish-actions.pod:216
19005 msgid "aug-get"
19006 msgstr ""
19007
19008 # type: verbatim
19009 #: ../fish/guestfish-actions.pod:218
19010 #, no-wrap
19011 msgid ""
19012 " aug-get augpath\n"
19013 "\n"
19014 msgstr ""
19015
19016 # type: =head2
19017 #: ../fish/guestfish-actions.pod:223
19018 msgid "aug-init"
19019 msgstr ""
19020
19021 # type: verbatim
19022 #: ../fish/guestfish-actions.pod:225
19023 #, no-wrap
19024 msgid ""
19025 " aug-init root flags\n"
19026 "\n"
19027 msgstr ""
19028
19029 # type: textblock
19030 #: ../fish/guestfish-actions.pod:231
19031 msgid "You must call this before using any other L</aug-*> commands."
19032 msgstr ""
19033
19034 # type: textblock
19035 #: ../fish/guestfish-actions.pod:266
19036 msgid "Do not load the tree in L</aug-init>."
19037 msgstr ""
19038
19039 # type: textblock
19040 #: ../fish/guestfish-actions.pod:270
19041 msgid "To close the handle, you can call L</aug-close>."
19042 msgstr ""
19043
19044 # type: =head2
19045 #: ../fish/guestfish-actions.pod:274
19046 msgid "aug-insert"
19047 msgstr ""
19048
19049 # type: verbatim
19050 #: ../fish/guestfish-actions.pod:276
19051 #, no-wrap
19052 msgid ""
19053 " aug-insert augpath label true|false\n"
19054 "\n"
19055 msgstr ""
19056
19057 # type: =head2
19058 #: ../fish/guestfish-actions.pod:286
19059 msgid "aug-load"
19060 msgstr ""
19061
19062 # type: verbatim
19063 #: ../fish/guestfish-actions.pod:288
19064 #, no-wrap
19065 msgid ""
19066 " aug-load\n"
19067 "\n"
19068 msgstr ""
19069
19070 # type: =head2
19071 #: ../fish/guestfish-actions.pod:295
19072 msgid "aug-ls"
19073 msgstr ""
19074
19075 # type: verbatim
19076 #: ../fish/guestfish-actions.pod:297
19077 #, no-wrap
19078 msgid ""
19079 " aug-ls augpath\n"
19080 "\n"
19081 msgstr ""
19082
19083 # type: textblock
19084 #: ../fish/guestfish-actions.pod:299
19085 msgid ""
19086 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19087 "resulting nodes into alphabetical order."
19088 msgstr ""
19089
19090 # type: =head2
19091 #: ../fish/guestfish-actions.pod:302
19092 msgid "aug-match"
19093 msgstr ""
19094
19095 # type: verbatim
19096 #: ../fish/guestfish-actions.pod:304
19097 #, no-wrap
19098 msgid ""
19099 " aug-match augpath\n"
19100 "\n"
19101 msgstr ""
19102
19103 # type: =head2
19104 #: ../fish/guestfish-actions.pod:310
19105 msgid "aug-mv"
19106 msgstr ""
19107
19108 # type: verbatim
19109 #: ../fish/guestfish-actions.pod:312
19110 #, no-wrap
19111 msgid ""
19112 " aug-mv src dest\n"
19113 "\n"
19114 msgstr ""
19115
19116 # type: =head2
19117 #: ../fish/guestfish-actions.pod:317
19118 msgid "aug-rm"
19119 msgstr ""
19120
19121 # type: verbatim
19122 #: ../fish/guestfish-actions.pod:319
19123 #, no-wrap
19124 msgid ""
19125 " aug-rm augpath\n"
19126 "\n"
19127 msgstr ""
19128
19129 # type: =head2
19130 #: ../fish/guestfish-actions.pod:325
19131 msgid "aug-save"
19132 msgstr ""
19133
19134 # type: verbatim
19135 #: ../fish/guestfish-actions.pod:327
19136 #, no-wrap
19137 msgid ""
19138 " aug-save\n"
19139 "\n"
19140 msgstr ""
19141
19142 # type: textblock
19143 #: ../fish/guestfish-actions.pod:331
19144 msgid ""
19145 "The flags which were passed to L</aug-init> affect exactly how files are "
19146 "saved."
19147 msgstr ""
19148
19149 # type: =head2
19150 #: ../fish/guestfish-actions.pod:334
19151 msgid "aug-set"
19152 msgstr ""
19153
19154 # type: verbatim
19155 #: ../fish/guestfish-actions.pod:336
19156 #, no-wrap
19157 msgid ""
19158 " aug-set augpath val\n"
19159 "\n"
19160 msgstr ""
19161
19162 # type: textblock
19163 #: ../fish/guestfish-actions.pod:340
19164 msgid ""
19165 "In the Augeas API, it is possible to clear a node by setting the value to "
19166 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19167 "this call.  Instead you must use the L</aug-clear> call."
19168 msgstr ""
19169
19170 # type: =head2
19171 #: ../fish/guestfish-actions.pod:345
19172 msgid "available"
19173 msgstr ""
19174
19175 # type: verbatim
19176 #: ../fish/guestfish-actions.pod:347
19177 #, no-wrap
19178 msgid ""
19179 " available 'groups ...'\n"
19180 "\n"
19181 msgstr ""
19182
19183 # type: textblock
19184 #: ../fish/guestfish-actions.pod:353
19185 msgid ""
19186 "The libguestfs groups, and the functions that those groups correspond to, "
19187 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19188 "runtime by calling L</available-all-groups>."
19189 msgstr ""
19190
19191 # type: textblock
19192 #: ../fish/guestfish-actions.pod:377
19193 msgid "You must call L</launch> before calling this function."
19194 msgstr ""
19195
19196 # type: textblock
19197 #: ../fish/guestfish-actions.pod:399
19198 msgid ""
19199 "This call was added in version C<1.0.80>.  In previous versions of "
19200 "libguestfs all you could do would be to speculatively execute a command to "
19201 "find out if the daemon implemented it.  See also L</version>."
19202 msgstr ""
19203
19204 # type: =head2
19205 #: ../fish/guestfish-actions.pod:406
19206 msgid "available-all-groups"
19207 msgstr ""
19208
19209 # type: verbatim
19210 #: ../fish/guestfish-actions.pod:408
19211 #, no-wrap
19212 msgid ""
19213 " available-all-groups\n"
19214 "\n"
19215 msgstr ""
19216
19217 # type: textblock
19218 #: ../fish/guestfish-actions.pod:410
19219 msgid ""
19220 "This command returns a list of all optional groups that this daemon knows "
19221 "about.  Note this returns both supported and unsupported groups.  To find "
19222 "out which ones the daemon can actually support you have to call "
19223 "L</available> on each member of the returned list."
19224 msgstr ""
19225
19226 # type: textblock
19227 #: ../fish/guestfish-actions.pod:416
19228 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19229 msgstr ""
19230
19231 # type: =head2
19232 #: ../fish/guestfish-actions.pod:418
19233 msgid "base64-in"
19234 msgstr ""
19235
19236 # type: verbatim
19237 #: ../fish/guestfish-actions.pod:420
19238 #, no-wrap
19239 msgid ""
19240 " base64-in (base64file|-) filename\n"
19241 "\n"
19242 msgstr ""
19243
19244 # type: textblock
19245 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434 ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827 ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223 ../fish/guestfish-actions.pod:4128 ../fish/guestfish-actions.pod:4140 ../fish/guestfish-actions.pod:4151 ../fish/guestfish-actions.pod:4162 ../fish/guestfish-actions.pod:4214 ../fish/guestfish-actions.pod:4223 ../fish/guestfish-actions.pod:4277 ../fish/guestfish-actions.pod:4300
19246 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19247 msgstr ""
19248
19249 # type: =head2
19250 #: ../fish/guestfish-actions.pod:427
19251 msgid "base64-out"
19252 msgstr ""
19253
19254 # type: verbatim
19255 #: ../fish/guestfish-actions.pod:429
19256 #, no-wrap
19257 msgid ""
19258 " base64-out filename (base64file|-)\n"
19259 "\n"
19260 msgstr ""
19261
19262 # type: =head2
19263 #: ../fish/guestfish-actions.pod:436
19264 msgid "blockdev-flushbufs"
19265 msgstr ""
19266
19267 # type: verbatim
19268 #: ../fish/guestfish-actions.pod:438
19269 #, no-wrap
19270 msgid ""
19271 " blockdev-flushbufs device\n"
19272 "\n"
19273 msgstr ""
19274
19275 # type: =head2
19276 #: ../fish/guestfish-actions.pod:445
19277 msgid "blockdev-getbsz"
19278 msgstr ""
19279
19280 # type: verbatim
19281 #: ../fish/guestfish-actions.pod:447
19282 #, no-wrap
19283 msgid ""
19284 " blockdev-getbsz device\n"
19285 "\n"
19286 msgstr ""
19287
19288 # type: =head2
19289 #: ../fish/guestfish-actions.pod:456
19290 msgid "blockdev-getro"
19291 msgstr ""
19292
19293 # type: verbatim
19294 #: ../fish/guestfish-actions.pod:458
19295 #, no-wrap
19296 msgid ""
19297 " blockdev-getro device\n"
19298 "\n"
19299 msgstr ""
19300
19301 # type: =head2
19302 #: ../fish/guestfish-actions.pod:465
19303 msgid "blockdev-getsize64"
19304 msgstr ""
19305
19306 # type: verbatim
19307 #: ../fish/guestfish-actions.pod:467
19308 #, no-wrap
19309 msgid ""
19310 " blockdev-getsize64 device\n"
19311 "\n"
19312 msgstr ""
19313
19314 # type: textblock
19315 #: ../fish/guestfish-actions.pod:471
19316 msgid "See also L</blockdev-getsz>."
19317 msgstr ""
19318
19319 # type: =head2
19320 #: ../fish/guestfish-actions.pod:475
19321 msgid "blockdev-getss"
19322 msgstr ""
19323
19324 # type: verbatim
19325 #: ../fish/guestfish-actions.pod:477
19326 #, no-wrap
19327 msgid ""
19328 " blockdev-getss device\n"
19329 "\n"
19330 msgstr ""
19331
19332 # type: textblock
19333 #: ../fish/guestfish-actions.pod:482
19334 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19335 msgstr ""
19336
19337 # type: =head2
19338 #: ../fish/guestfish-actions.pod:487
19339 msgid "blockdev-getsz"
19340 msgstr ""
19341
19342 # type: verbatim
19343 #: ../fish/guestfish-actions.pod:489
19344 #, no-wrap
19345 msgid ""
19346 " blockdev-getsz device\n"
19347 "\n"
19348 msgstr ""
19349
19350 # type: textblock
19351 #: ../fish/guestfish-actions.pod:494
19352 msgid ""
19353 "See also L</blockdev-getss> for the real sector size of the device, and "
19354 "L</blockdev-getsize64> for the more useful I<size in bytes>."
19355 msgstr ""
19356
19357 # type: =head2
19358 #: ../fish/guestfish-actions.pod:500
19359 msgid "blockdev-rereadpt"
19360 msgstr ""
19361
19362 # type: verbatim
19363 #: ../fish/guestfish-actions.pod:502
19364 #, no-wrap
19365 msgid ""
19366 " blockdev-rereadpt device\n"
19367 "\n"
19368 msgstr ""
19369
19370 # type: =head2
19371 #: ../fish/guestfish-actions.pod:508
19372 msgid "blockdev-setbsz"
19373 msgstr ""
19374
19375 # type: verbatim
19376 #: ../fish/guestfish-actions.pod:510
19377 #, no-wrap
19378 msgid ""
19379 " blockdev-setbsz device blocksize\n"
19380 "\n"
19381 msgstr ""
19382
19383 # type: =head2
19384 #: ../fish/guestfish-actions.pod:519
19385 msgid "blockdev-setro"
19386 msgstr ""
19387
19388 # type: verbatim
19389 #: ../fish/guestfish-actions.pod:521
19390 #, no-wrap
19391 msgid ""
19392 " blockdev-setro device\n"
19393 "\n"
19394 msgstr ""
19395
19396 # type: =head2
19397 #: ../fish/guestfish-actions.pod:527
19398 msgid "blockdev-setrw"
19399 msgstr ""
19400
19401 # type: verbatim
19402 #: ../fish/guestfish-actions.pod:529
19403 #, no-wrap
19404 msgid ""
19405 " blockdev-setrw device\n"
19406 "\n"
19407 msgstr ""
19408
19409 # type: =head2
19410 #: ../fish/guestfish-actions.pod:535
19411 msgid "case-sensitive-path"
19412 msgstr ""
19413
19414 # type: verbatim
19415 #: ../fish/guestfish-actions.pod:537
19416 #, no-wrap
19417 msgid ""
19418 " case-sensitive-path path\n"
19419 "\n"
19420 msgstr ""
19421
19422 # type: textblock
19423 #: ../fish/guestfish-actions.pod:561
19424 msgid ""
19425 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
19426 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
19427 "how the directories were originally created under Windows)."
19428 msgstr ""
19429
19430 # type: textblock
19431 #: ../fish/guestfish-actions.pod:569
19432 msgid "See also L</realpath>."
19433 msgstr ""
19434
19435 # type: =head2
19436 #: ../fish/guestfish-actions.pod:571
19437 msgid "cat"
19438 msgstr ""
19439
19440 # type: verbatim
19441 #: ../fish/guestfish-actions.pod:573
19442 #, no-wrap
19443 msgid ""
19444 " cat path\n"
19445 "\n"
19446 msgstr ""
19447
19448 # type: textblock
19449 #: ../fish/guestfish-actions.pod:577
19450 msgid ""
19451 "Note that this function cannot correctly handle binary files (specifically, "
19452 "files containing C<\\0> character which is treated as end of string).  For "
19453 "those you need to use the L</read-file> or L</download> functions which have "
19454 "a more complex interface."
19455 msgstr ""
19456
19457 # type: =head2
19458 #: ../fish/guestfish-actions.pod:585
19459 msgid "checksum"
19460 msgstr ""
19461
19462 # type: verbatim
19463 #: ../fish/guestfish-actions.pod:587
19464 #, no-wrap
19465 msgid ""
19466 " checksum csumtype path\n"
19467 "\n"
19468 msgstr ""
19469
19470 # type: textblock
19471 #: ../fish/guestfish-actions.pod:630
19472 msgid "To get the checksum for a device, use L</checksum-device>."
19473 msgstr ""
19474
19475 # type: textblock
19476 #: ../fish/guestfish-actions.pod:632
19477 msgid "To get the checksums for many files, use L</checksums-out>."
19478 msgstr ""
19479
19480 # type: =head2
19481 #: ../fish/guestfish-actions.pod:634
19482 msgid "checksum-device"
19483 msgstr ""
19484
19485 # type: verbatim
19486 #: ../fish/guestfish-actions.pod:636
19487 #, no-wrap
19488 msgid ""
19489 " checksum-device csumtype device\n"
19490 "\n"
19491 msgstr ""
19492
19493 # type: textblock
19494 #: ../fish/guestfish-actions.pod:638
19495 msgid ""
19496 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19497 "device named C<device>.  For the types of checksums supported see the "
19498 "L</checksum> command."
19499 msgstr ""
19500
19501 # type: =head2
19502 #: ../fish/guestfish-actions.pod:642
19503 msgid "checksums-out"
19504 msgstr ""
19505
19506 # type: verbatim
19507 #: ../fish/guestfish-actions.pod:644
19508 #, no-wrap
19509 msgid ""
19510 " checksums-out csumtype directory (sumsfile|-)\n"
19511 "\n"
19512 msgstr ""
19513
19514 # type: =head2
19515 #: ../fish/guestfish-actions.pod:660
19516 msgid "chmod"
19517 msgstr ""
19518
19519 # type: verbatim
19520 #: ../fish/guestfish-actions.pod:662
19521 #, no-wrap
19522 msgid ""
19523 " chmod mode path\n"
19524 "\n"
19525 msgstr ""
19526
19527 # type: =head2
19528 #: ../fish/guestfish-actions.pod:673
19529 msgid "chown"
19530 msgstr ""
19531
19532 # type: verbatim
19533 #: ../fish/guestfish-actions.pod:675
19534 #, no-wrap
19535 msgid ""
19536 " chown owner group path\n"
19537 "\n"
19538 msgstr ""
19539
19540 # type: =head2
19541 #: ../fish/guestfish-actions.pod:683
19542 msgid "command"
19543 msgstr ""
19544
19545 # type: verbatim
19546 #: ../fish/guestfish-actions.pod:685
19547 #, no-wrap
19548 msgid ""
19549 " command 'arguments ...'\n"
19550 "\n"
19551 msgstr ""
19552
19553 # type: textblock
19554 #: ../fish/guestfish-actions.pod:692
19555 msgid ""
19556 "The single parameter is an argv-style list of arguments.  The first element "
19557 "is the name of the program to run.  Subsequent elements are parameters.  The "
19558 "list must be non-empty (ie. must contain a program name).  Note that the "
19559 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19560 msgstr ""
19561
19562 # type: =head2
19563 #: ../fish/guestfish-actions.pod:720
19564 msgid "command-lines"
19565 msgstr ""
19566
19567 # type: verbatim
19568 #: ../fish/guestfish-actions.pod:722
19569 #, no-wrap
19570 msgid ""
19571 " command-lines 'arguments ...'\n"
19572 "\n"
19573 msgstr ""
19574
19575 # type: textblock
19576 #: ../fish/guestfish-actions.pod:724
19577 msgid "This is the same as L</command>, but splits the result into a list of lines."
19578 msgstr ""
19579
19580 # type: textblock
19581 #: ../fish/guestfish-actions.pod:727
19582 msgid "See also: L</sh-lines>"
19583 msgstr ""
19584
19585 # type: =head2
19586 #: ../fish/guestfish-actions.pod:732
19587 msgid "config"
19588 msgstr ""
19589
19590 # type: verbatim
19591 #: ../fish/guestfish-actions.pod:734
19592 #, no-wrap
19593 msgid ""
19594 " config qemuparam qemuvalue\n"
19595 "\n"
19596 msgstr ""
19597
19598 # type: =head2
19599 #: ../fish/guestfish-actions.pod:745
19600 msgid "copy-size"
19601 msgstr ""
19602
19603 # type: verbatim
19604 #: ../fish/guestfish-actions.pod:747
19605 #, no-wrap
19606 msgid ""
19607 " copy-size src dest size\n"
19608 "\n"
19609 msgstr ""
19610
19611 # type: =head2
19612 #: ../fish/guestfish-actions.pod:755
19613 msgid "cp"
19614 msgstr ""
19615
19616 # type: verbatim
19617 #: ../fish/guestfish-actions.pod:757
19618 #, no-wrap
19619 msgid ""
19620 " cp src dest\n"
19621 "\n"
19622 msgstr ""
19623
19624 # type: =head2
19625 #: ../fish/guestfish-actions.pod:762
19626 msgid "cp-a"
19627 msgstr ""
19628
19629 # type: verbatim
19630 #: ../fish/guestfish-actions.pod:764
19631 #, no-wrap
19632 msgid ""
19633 " cp-a src dest\n"
19634 "\n"
19635 msgstr ""
19636
19637 # type: =head2
19638 #: ../fish/guestfish-actions.pod:769
19639 msgid "dd"
19640 msgstr ""
19641
19642 # type: verbatim
19643 #: ../fish/guestfish-actions.pod:771
19644 #, no-wrap
19645 msgid ""
19646 " dd src dest\n"
19647 "\n"
19648 msgstr ""
19649
19650 # type: textblock
19651 #: ../fish/guestfish-actions.pod:778
19652 msgid ""
19653 "If the destination is a device, it must be as large or larger than the "
19654 "source file or device, otherwise the copy will fail.  This command cannot do "
19655 "partial copies (see L</copy-size>)."
19656 msgstr ""
19657
19658 # type: =head2
19659 #: ../fish/guestfish-actions.pod:782
19660 msgid "df"
19661 msgstr ""
19662
19663 # type: verbatim
19664 #: ../fish/guestfish-actions.pod:784
19665 #, no-wrap
19666 msgid ""
19667 " df\n"
19668 "\n"
19669 msgstr ""
19670
19671 # type: =head2
19672 #: ../fish/guestfish-actions.pod:792
19673 msgid "df-h"
19674 msgstr ""
19675
19676 # type: verbatim
19677 #: ../fish/guestfish-actions.pod:794
19678 #, no-wrap
19679 msgid ""
19680 " df-h\n"
19681 "\n"
19682 msgstr ""
19683
19684 # type: =head2
19685 #: ../fish/guestfish-actions.pod:803
19686 msgid "dmesg"
19687 msgstr ""
19688
19689 # type: verbatim
19690 #: ../fish/guestfish-actions.pod:805
19691 #, no-wrap
19692 msgid ""
19693 " dmesg\n"
19694 "\n"
19695 msgstr ""
19696
19697 # type: textblock
19698 #: ../fish/guestfish-actions.pod:811
19699 msgid ""
19700 "Another way to get the same information is to enable verbose messages with "
19701 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19702 "before running the program."
19703 msgstr ""
19704
19705 # type: =head2
19706 #: ../fish/guestfish-actions.pod:816
19707 msgid "download"
19708 msgstr ""
19709
19710 # type: verbatim
19711 #: ../fish/guestfish-actions.pod:818
19712 #, no-wrap
19713 msgid ""
19714 " download remotefilename (filename|-)\n"
19715 "\n"
19716 msgstr ""
19717
19718 # type: textblock
19719 #: ../fish/guestfish-actions.pod:825
19720 msgid "See also L</upload>, L</cat>."
19721 msgstr ""
19722
19723 # type: =head2
19724 #: ../fish/guestfish-actions.pod:829
19725 msgid "download-offset"
19726 msgstr ""
19727
19728 # type: verbatim
19729 #: ../fish/guestfish-actions.pod:831
19730 #, no-wrap
19731 msgid ""
19732 " download-offset remotefilename (filename|-) offset size\n"
19733 "\n"
19734 msgstr ""
19735
19736 # type: textblock
19737 #: ../fish/guestfish-actions.pod:839
19738 msgid ""
19739 "Note that there is no limit on the amount of data that can be downloaded "
19740 "with this call, unlike with L</pread>, and this call always reads the full "
19741 "amount unless an error occurs."
19742 msgstr ""
19743
19744 # type: textblock
19745 #: ../fish/guestfish-actions.pod:844
19746 msgid "See also L</download>, L</pread>."
19747 msgstr ""
19748
19749 # type: =head2
19750 #: ../fish/guestfish-actions.pod:848
19751 msgid "drop-caches"
19752 msgstr ""
19753
19754 # type: verbatim
19755 #: ../fish/guestfish-actions.pod:850
19756 #, no-wrap
19757 msgid ""
19758 " drop-caches whattodrop\n"
19759 "\n"
19760 msgstr ""
19761
19762 # type: =head2
19763 #: ../fish/guestfish-actions.pod:862
19764 msgid "du"
19765 msgstr ""
19766
19767 # type: verbatim
19768 #: ../fish/guestfish-actions.pod:864
19769 #, no-wrap
19770 msgid ""
19771 " du path\n"
19772 "\n"
19773 msgstr ""
19774
19775 # type: =head2
19776 #: ../fish/guestfish-actions.pod:876
19777 msgid "e2fsck-f"
19778 msgstr ""
19779
19780 # type: verbatim
19781 #: ../fish/guestfish-actions.pod:878
19782 #, no-wrap
19783 msgid ""
19784 " e2fsck-f device\n"
19785 "\n"
19786 msgstr ""
19787
19788 # type: textblock
19789 #: ../fish/guestfish-actions.pod:884
19790 msgid ""
19791 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19792 "should use L</fsck>."
19793 msgstr ""
19794
19795 # type: =head2
19796 #: ../fish/guestfish-actions.pod:887
19797 msgid "echo-daemon"
19798 msgstr ""
19799
19800 # type: verbatim
19801 #: ../fish/guestfish-actions.pod:889
19802 #, no-wrap
19803 msgid ""
19804 " echo-daemon 'words ...'\n"
19805 "\n"
19806 msgstr ""
19807
19808 # type: textblock
19809 #: ../fish/guestfish-actions.pod:896
19810 msgid "See also L</ping-daemon>."
19811 msgstr ""
19812
19813 # type: =head2
19814 #: ../fish/guestfish-actions.pod:898
19815 msgid "egrep"
19816 msgstr ""
19817
19818 # type: verbatim
19819 #: ../fish/guestfish-actions.pod:900
19820 #, no-wrap
19821 msgid ""
19822 " egrep regex path\n"
19823 "\n"
19824 msgstr ""
19825
19826 # type: =head2
19827 #: ../fish/guestfish-actions.pod:908
19828 msgid "egrepi"
19829 msgstr ""
19830
19831 # type: verbatim
19832 #: ../fish/guestfish-actions.pod:910
19833 #, no-wrap
19834 msgid ""
19835 " egrepi regex path\n"
19836 "\n"
19837 msgstr ""
19838
19839 # type: =head2
19840 #: ../fish/guestfish-actions.pod:918
19841 msgid "equal"
19842 msgstr ""
19843
19844 # type: verbatim
19845 #: ../fish/guestfish-actions.pod:920
19846 #, no-wrap
19847 msgid ""
19848 " equal file1 file2\n"
19849 "\n"
19850 msgstr ""
19851
19852 # type: =head2
19853 #: ../fish/guestfish-actions.pod:927
19854 msgid "exists"
19855 msgstr ""
19856
19857 # type: verbatim
19858 #: ../fish/guestfish-actions.pod:929
19859 #, no-wrap
19860 msgid ""
19861 " exists path\n"
19862 "\n"
19863 msgstr ""
19864
19865 # type: textblock
19866 #: ../fish/guestfish-actions.pod:934
19867 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19868 msgstr ""
19869
19870 # type: =head2
19871 #: ../fish/guestfish-actions.pod:936
19872 msgid "fallocate"
19873 msgstr ""
19874
19875 # type: verbatim
19876 #: ../fish/guestfish-actions.pod:938
19877 #, no-wrap
19878 msgid ""
19879 " fallocate path len\n"
19880 "\n"
19881 msgstr ""
19882
19883 # type: =head2
19884 #: ../fish/guestfish-actions.pod:955
19885 msgid "fallocate64"
19886 msgstr ""
19887
19888 # type: verbatim
19889 #: ../fish/guestfish-actions.pod:957
19890 #, no-wrap
19891 msgid ""
19892 " fallocate64 path len\n"
19893 "\n"
19894 msgstr ""
19895
19896 # type: textblock
19897 #: ../fish/guestfish-actions.pod:963
19898 msgid ""
19899 "Note that this call allocates disk blocks for the file.  To create a sparse "
19900 "file use L</truncate-size> instead."
19901 msgstr ""
19902
19903 # type: textblock
19904 #: ../fish/guestfish-actions.pod:966
19905 msgid ""
19906 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19907 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19908 "maximum size of files created through that call to 1GB."
19909 msgstr ""
19910
19911 # type: =head2
19912 #: ../fish/guestfish-actions.pod:975
19913 msgid "fgrep"
19914 msgstr ""
19915
19916 # type: verbatim
19917 #: ../fish/guestfish-actions.pod:977
19918 #, no-wrap
19919 msgid ""
19920 " fgrep pattern path\n"
19921 "\n"
19922 msgstr ""
19923
19924 # type: =head2
19925 #: ../fish/guestfish-actions.pod:985
19926 msgid "fgrepi"
19927 msgstr ""
19928
19929 # type: verbatim
19930 #: ../fish/guestfish-actions.pod:987
19931 #, no-wrap
19932 msgid ""
19933 " fgrepi pattern path\n"
19934 "\n"
19935 msgstr ""
19936
19937 # type: =head2
19938 #: ../fish/guestfish-actions.pod:995
19939 msgid "file"
19940 msgstr ""
19941
19942 # type: verbatim
19943 #: ../fish/guestfish-actions.pod:997
19944 #, no-wrap
19945 msgid ""
19946 " file path\n"
19947 "\n"
19948 msgstr ""
19949
19950 # type: textblock
19951 #: ../fish/guestfish-actions.pod:1009
19952 msgid ""
19953 "This command can also be used on C</dev/> devices (and partitions, LV "
19954 "names).  You can for example use this to determine if a device contains a "
19955 "filesystem, although it's usually better to use L</vfs-type>."
19956 msgstr ""
19957
19958 # type: =head2
19959 #: ../fish/guestfish-actions.pod:1019
19960 msgid "file-architecture"
19961 msgstr ""
19962
19963 # type: verbatim
19964 #: ../fish/guestfish-actions.pod:1021
19965 #, no-wrap
19966 msgid ""
19967 " file-architecture filename\n"
19968 "\n"
19969 msgstr ""
19970
19971 # type: =head2
19972 #: ../fish/guestfish-actions.pod:1124
19973 msgid "filesize"
19974 msgstr ""
19975
19976 # type: verbatim
19977 #: ../fish/guestfish-actions.pod:1126
19978 #, no-wrap
19979 msgid ""
19980 " filesize file\n"
19981 "\n"
19982 msgstr ""
19983
19984 # type: textblock
19985 #: ../fish/guestfish-actions.pod:1130
19986 msgid ""
19987 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
19988 "L</is-file> etc.  To get the size of block devices, use "
19989 "L</blockdev-getsize64>."
19990 msgstr ""
19991
19992 # type: =head2
19993 #: ../fish/guestfish-actions.pod:1134
19994 msgid "fill"
19995 msgstr ""
19996
19997 # type: verbatim
19998 #: ../fish/guestfish-actions.pod:1136
19999 #, no-wrap
20000 msgid ""
20001 " fill c len path\n"
20002 "\n"
20003 msgstr ""
20004
20005 # type: textblock
20006 #: ../fish/guestfish-actions.pod:1142
20007 msgid ""
20008 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20009 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20010 "L</fill-pattern>."
20011 msgstr ""
20012
20013 # type: =head2
20014 #: ../fish/guestfish-actions.pod:1147
20015 msgid "fill-pattern"
20016 msgstr ""
20017
20018 # type: verbatim
20019 #: ../fish/guestfish-actions.pod:1149
20020 #, no-wrap
20021 msgid ""
20022 " fill-pattern pattern len path\n"
20023 "\n"
20024 msgstr ""
20025
20026 # type: textblock
20027 #: ../fish/guestfish-actions.pod:1151
20028 msgid ""
20029 "This function is like L</fill> except that it creates a new file of length "
20030 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20031 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20032 "bytes."
20033 msgstr ""
20034
20035 # type: =head2
20036 #: ../fish/guestfish-actions.pod:1156
20037 msgid "find"
20038 msgstr ""
20039
20040 # type: verbatim
20041 #: ../fish/guestfish-actions.pod:1158
20042 #, no-wrap
20043 msgid ""
20044 " find directory\n"
20045 "\n"
20046 msgstr ""
20047
20048 # type: textblock
20049 #: ../fish/guestfish-actions.pod:1172
20050 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20051 msgstr ""
20052
20053 # type: textblock
20054 #: ../fish/guestfish-actions.pod:1185
20055 msgid "See also L</find0>."
20056 msgstr ""
20057
20058 # type: =head2
20059 #: ../fish/guestfish-actions.pod:1190
20060 msgid "find0"
20061 msgstr ""
20062
20063 # type: verbatim
20064 #: ../fish/guestfish-actions.pod:1192
20065 #, no-wrap
20066 msgid ""
20067 " find0 directory (files|-)\n"
20068 "\n"
20069 msgstr ""
20070
20071 # type: textblock
20072 #: ../fish/guestfish-actions.pod:1198
20073 msgid "This command works the same way as L</find> with the following exceptions:"
20074 msgstr ""
20075
20076 # type: =head2
20077 #: ../fish/guestfish-actions.pod:1225
20078 msgid "findfs-label"
20079 msgstr ""
20080
20081 # type: verbatim
20082 #: ../fish/guestfish-actions.pod:1227
20083 #, no-wrap
20084 msgid ""
20085 " findfs-label label\n"
20086 "\n"
20087 msgstr ""
20088
20089 # type: textblock
20090 #: ../fish/guestfish-actions.pod:1233
20091 msgid "To find the label of a filesystem, use L</vfs-label>."
20092 msgstr ""
20093
20094 # type: =head2
20095 #: ../fish/guestfish-actions.pod:1235
20096 msgid "findfs-uuid"
20097 msgstr ""
20098
20099 # type: verbatim
20100 #: ../fish/guestfish-actions.pod:1237
20101 #, no-wrap
20102 msgid ""
20103 " findfs-uuid uuid\n"
20104 "\n"
20105 msgstr ""
20106
20107 # type: textblock
20108 #: ../fish/guestfish-actions.pod:1243
20109 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20110 msgstr ""
20111
20112 # type: =head2
20113 #: ../fish/guestfish-actions.pod:1245
20114 msgid "fsck"
20115 msgstr ""
20116
20117 # type: verbatim
20118 #: ../fish/guestfish-actions.pod:1247
20119 #, no-wrap
20120 msgid ""
20121 " fsck fstype device\n"
20122 "\n"
20123 msgstr ""
20124
20125 # type: =head2
20126 #: ../fish/guestfish-actions.pod:1277
20127 msgid "get-append"
20128 msgstr ""
20129
20130 # type: verbatim
20131 #: ../fish/guestfish-actions.pod:1279
20132 #, no-wrap
20133 msgid ""
20134 " get-append\n"
20135 "\n"
20136 msgstr ""
20137
20138 # type: =head2
20139 #: ../fish/guestfish-actions.pod:1286
20140 msgid "get-autosync"
20141 msgstr ""
20142
20143 # type: verbatim
20144 #: ../fish/guestfish-actions.pod:1288
20145 #, no-wrap
20146 msgid ""
20147 " get-autosync\n"
20148 "\n"
20149 msgstr ""
20150
20151 # type: =head2
20152 #: ../fish/guestfish-actions.pod:1292
20153 msgid "get-direct"
20154 msgstr ""
20155
20156 # type: verbatim
20157 #: ../fish/guestfish-actions.pod:1294
20158 #, no-wrap
20159 msgid ""
20160 " get-direct\n"
20161 "\n"
20162 msgstr ""
20163
20164 # type: =head2
20165 #: ../fish/guestfish-actions.pod:1298
20166 msgid "get-e2label"
20167 msgstr ""
20168
20169 # type: verbatim
20170 #: ../fish/guestfish-actions.pod:1300
20171 #, no-wrap
20172 msgid ""
20173 " get-e2label device\n"
20174 "\n"
20175 msgstr ""
20176
20177 # type: =head2
20178 #: ../fish/guestfish-actions.pod:1312
20179 msgid "get-e2uuid"
20180 msgstr ""
20181
20182 # type: verbatim
20183 #: ../fish/guestfish-actions.pod:1314
20184 #, no-wrap
20185 msgid ""
20186 " get-e2uuid device\n"
20187 "\n"
20188 msgstr ""
20189
20190 # type: =head2
20191 #: ../fish/guestfish-actions.pod:1326
20192 msgid "get-memsize"
20193 msgstr ""
20194
20195 # type: verbatim
20196 #: ../fish/guestfish-actions.pod:1328
20197 #, no-wrap
20198 msgid ""
20199 " get-memsize\n"
20200 "\n"
20201 msgstr ""
20202
20203 # type: textblock
20204 #: ../fish/guestfish-actions.pod:1333
20205 msgid ""
20206 "If L</set-memsize> was not called on this handle, and if "
20207 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20208 "value for memsize."
20209 msgstr ""
20210
20211 # type: =head2
20212 #: ../fish/guestfish-actions.pod:1340
20213 msgid "get-network"
20214 msgstr ""
20215
20216 # type: verbatim
20217 #: ../fish/guestfish-actions.pod:1342
20218 #, no-wrap
20219 msgid ""
20220 " get-network\n"
20221 "\n"
20222 msgstr ""
20223
20224 # type: =head2
20225 #: ../fish/guestfish-actions.pod:1346
20226 msgid "get-path"
20227 msgstr ""
20228
20229 # type: verbatim
20230 #: ../fish/guestfish-actions.pod:1348
20231 #, no-wrap
20232 msgid ""
20233 " get-path\n"
20234 "\n"
20235 msgstr ""
20236
20237 # type: =head2
20238 #: ../fish/guestfish-actions.pod:1355
20239 msgid "get-pid"
20240 msgstr ""
20241
20242 # type: =head2
20243 #: ../fish/guestfish-actions.pod:1357
20244 msgid "pid"
20245 msgstr ""
20246
20247 # type: verbatim
20248 #: ../fish/guestfish-actions.pod:1359
20249 #, no-wrap
20250 msgid ""
20251 " get-pid\n"
20252 "\n"
20253 msgstr ""
20254
20255 # type: =head2
20256 #: ../fish/guestfish-actions.pod:1366
20257 msgid "get-qemu"
20258 msgstr ""
20259
20260 # type: verbatim
20261 #: ../fish/guestfish-actions.pod:1368
20262 #, no-wrap
20263 msgid ""
20264 " get-qemu\n"
20265 "\n"
20266 msgstr ""
20267
20268 # type: =head2
20269 #: ../fish/guestfish-actions.pod:1375
20270 msgid "get-recovery-proc"
20271 msgstr ""
20272
20273 # type: verbatim
20274 #: ../fish/guestfish-actions.pod:1377
20275 #, no-wrap
20276 msgid ""
20277 " get-recovery-proc\n"
20278 "\n"
20279 msgstr ""
20280
20281 # type: =head2
20282 #: ../fish/guestfish-actions.pod:1381
20283 msgid "get-selinux"
20284 msgstr ""
20285
20286 # type: verbatim
20287 #: ../fish/guestfish-actions.pod:1383
20288 #, no-wrap
20289 msgid ""
20290 " get-selinux\n"
20291 "\n"
20292 msgstr ""
20293
20294 # type: textblock
20295 #: ../fish/guestfish-actions.pod:1385
20296 msgid ""
20297 "This returns the current setting of the selinux flag which is passed to the "
20298 "appliance at boot time.  See L</set-selinux>."
20299 msgstr ""
20300
20301 # type: =head2
20302 #: ../fish/guestfish-actions.pod:1391
20303 msgid "get-state"
20304 msgstr ""
20305
20306 # type: verbatim
20307 #: ../fish/guestfish-actions.pod:1393
20308 #, no-wrap
20309 msgid ""
20310 " get-state\n"
20311 "\n"
20312 msgstr ""
20313
20314 # type: =head2
20315 #: ../fish/guestfish-actions.pod:1400
20316 msgid "get-trace"
20317 msgstr ""
20318
20319 # type: verbatim
20320 #: ../fish/guestfish-actions.pod:1402
20321 #, no-wrap
20322 msgid ""
20323 " get-trace\n"
20324 "\n"
20325 msgstr ""
20326
20327 # type: =head2
20328 #: ../fish/guestfish-actions.pod:1406
20329 msgid "get-umask"
20330 msgstr ""
20331
20332 # type: verbatim
20333 #: ../fish/guestfish-actions.pod:1408
20334 #, no-wrap
20335 msgid ""
20336 " get-umask\n"
20337 "\n"
20338 msgstr ""
20339
20340 # type: textblock
20341 #: ../fish/guestfish-actions.pod:1410
20342 msgid ""
20343 "Return the current umask.  By default the umask is C<022> unless it has been "
20344 "set by calling L</umask>."
20345 msgstr ""
20346
20347 # type: =head2
20348 #: ../fish/guestfish-actions.pod:1413
20349 msgid "get-verbose"
20350 msgstr ""
20351
20352 # type: verbatim
20353 #: ../fish/guestfish-actions.pod:1415
20354 #, no-wrap
20355 msgid ""
20356 " get-verbose\n"
20357 "\n"
20358 msgstr ""
20359
20360 # type: =head2
20361 #: ../fish/guestfish-actions.pod:1419
20362 msgid "getcon"
20363 msgstr ""
20364
20365 # type: verbatim
20366 #: ../fish/guestfish-actions.pod:1421
20367 #, no-wrap
20368 msgid ""
20369 " getcon\n"
20370 "\n"
20371 msgstr ""
20372
20373 # type: textblock
20374 #: ../fish/guestfish-actions.pod:1425
20375 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20376 msgstr ""
20377
20378 # type: =head2
20379 #: ../fish/guestfish-actions.pod:1428
20380 msgid "getxattrs"
20381 msgstr ""
20382
20383 # type: verbatim
20384 #: ../fish/guestfish-actions.pod:1430
20385 #, no-wrap
20386 msgid ""
20387 " getxattrs path\n"
20388 "\n"
20389 msgstr ""
20390
20391 # type: textblock
20392 #: ../fish/guestfish-actions.pod:1438
20393 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20394 msgstr ""
20395
20396 # type: =head2
20397 #: ../fish/guestfish-actions.pod:1440
20398 msgid "glob-expand"
20399 msgstr ""
20400
20401 # type: verbatim
20402 #: ../fish/guestfish-actions.pod:1442
20403 #, no-wrap
20404 msgid ""
20405 " glob-expand pattern\n"
20406 "\n"
20407 msgstr ""
20408
20409 # type: =head2
20410 #: ../fish/guestfish-actions.pod:1455
20411 msgid "grep"
20412 msgstr ""
20413
20414 # type: verbatim
20415 #: ../fish/guestfish-actions.pod:1457
20416 #, no-wrap
20417 msgid ""
20418 " grep regex path\n"
20419 "\n"
20420 msgstr ""
20421
20422 # type: =head2
20423 #: ../fish/guestfish-actions.pod:1465
20424 msgid "grepi"
20425 msgstr ""
20426
20427 # type: verbatim
20428 #: ../fish/guestfish-actions.pod:1467
20429 #, no-wrap
20430 msgid ""
20431 " grepi regex path\n"
20432 "\n"
20433 msgstr ""
20434
20435 # type: =head2
20436 #: ../fish/guestfish-actions.pod:1475
20437 msgid "grub-install"
20438 msgstr ""
20439
20440 # type: verbatim
20441 #: ../fish/guestfish-actions.pod:1477
20442 #, no-wrap
20443 msgid ""
20444 " grub-install root device\n"
20445 "\n"
20446 msgstr ""
20447
20448 # type: =head2
20449 #: ../fish/guestfish-actions.pod:1493
20450 msgid "head"
20451 msgstr ""
20452
20453 # type: verbatim
20454 #: ../fish/guestfish-actions.pod:1495
20455 #, no-wrap
20456 msgid ""
20457 " head path\n"
20458 "\n"
20459 msgstr ""
20460
20461 # type: =head2
20462 #: ../fish/guestfish-actions.pod:1503
20463 msgid "head-n"
20464 msgstr ""
20465
20466 # type: verbatim
20467 #: ../fish/guestfish-actions.pod:1505
20468 #, no-wrap
20469 msgid ""
20470 " head-n nrlines path\n"
20471 "\n"
20472 msgstr ""
20473
20474 # type: =head2
20475 #: ../fish/guestfish-actions.pod:1518
20476 msgid "hexdump"
20477 msgstr ""
20478
20479 # type: verbatim
20480 #: ../fish/guestfish-actions.pod:1520
20481 #, no-wrap
20482 msgid ""
20483 " hexdump path\n"
20484 "\n"
20485 msgstr ""
20486
20487 # type: =head2
20488 #: ../fish/guestfish-actions.pod:1528
20489 msgid "initrd-cat"
20490 msgstr ""
20491
20492 # type: verbatim
20493 #: ../fish/guestfish-actions.pod:1530
20494 #, no-wrap
20495 msgid ""
20496 " initrd-cat initrdpath filename\n"
20497 "\n"
20498 msgstr ""
20499
20500 # type: textblock
20501 #: ../fish/guestfish-actions.pod:1542
20502 msgid "See also L</initrd-list>."
20503 msgstr ""
20504
20505 # type: =head2
20506 #: ../fish/guestfish-actions.pod:1547
20507 msgid "initrd-list"
20508 msgstr ""
20509
20510 # type: verbatim
20511 #: ../fish/guestfish-actions.pod:1549
20512 #, no-wrap
20513 msgid ""
20514 " initrd-list path\n"
20515 "\n"
20516 msgstr ""
20517
20518 # type: =head2
20519 #: ../fish/guestfish-actions.pod:1561
20520 msgid "inotify-add-watch"
20521 msgstr ""
20522
20523 # type: verbatim
20524 #: ../fish/guestfish-actions.pod:1563
20525 #, no-wrap
20526 msgid ""
20527 " inotify-add-watch path mask\n"
20528 "\n"
20529 msgstr ""
20530
20531 # type: =head2
20532 #: ../fish/guestfish-actions.pod:1575
20533 msgid "inotify-close"
20534 msgstr ""
20535
20536 # type: verbatim
20537 #: ../fish/guestfish-actions.pod:1577
20538 #, no-wrap
20539 msgid ""
20540 " inotify-close\n"
20541 "\n"
20542 msgstr ""
20543
20544 # type: =head2
20545 #: ../fish/guestfish-actions.pod:1583
20546 msgid "inotify-files"
20547 msgstr ""
20548
20549 # type: verbatim
20550 #: ../fish/guestfish-actions.pod:1585
20551 #, no-wrap
20552 msgid ""
20553 " inotify-files\n"
20554 "\n"
20555 msgstr ""
20556
20557 # type: textblock
20558 #: ../fish/guestfish-actions.pod:1587
20559 msgid ""
20560 "This function is a helpful wrapper around L</inotify-read> which just "
20561 "returns a list of pathnames of objects that were touched.  The returned "
20562 "pathnames are sorted and deduplicated."
20563 msgstr ""
20564
20565 # type: =head2
20566 #: ../fish/guestfish-actions.pod:1591
20567 msgid "inotify-init"
20568 msgstr ""
20569
20570 # type: verbatim
20571 #: ../fish/guestfish-actions.pod:1593
20572 #, no-wrap
20573 msgid ""
20574 " inotify-init maxevents\n"
20575 "\n"
20576 msgstr ""
20577
20578 # type: textblock
20579 #: ../fish/guestfish-actions.pod:1599
20580 msgid ""
20581 "C<maxevents> is the maximum number of events which will be queued up between "
20582 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20583 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20584 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20585 "but records the fact that it threw them away by setting a flag "
20586 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20587 msgstr ""
20588
20589 # type: textblock
20590 #: ../fish/guestfish-actions.pod:1609
20591 msgid ""
20592 "Before any events are generated, you have to add some watches to the "
20593 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20594 "L</inotify-watch-all>."
20595 msgstr ""
20596
20597 # type: textblock
20598 #: ../fish/guestfish-actions.pod:1615
20599 msgid ""
20600 "Queued up events should be read periodically by calling L</inotify-read> (or "
20601 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20602 "If you don't read the events out often enough then you risk the internal "
20603 "queue overflowing."
20604 msgstr ""
20605
20606 # type: textblock
20607 #: ../fish/guestfish-actions.pod:1622
20608 msgid ""
20609 "The handle should be closed after use by calling L</inotify-close>.  This "
20610 "also removes any watches automatically."
20611 msgstr ""
20612
20613 # type: =head2
20614 #: ../fish/guestfish-actions.pod:1631
20615 msgid "inotify-read"
20616 msgstr ""
20617
20618 # type: verbatim
20619 #: ../fish/guestfish-actions.pod:1633
20620 #, no-wrap
20621 msgid ""
20622 " inotify-read\n"
20623 "\n"
20624 msgstr ""
20625
20626 # type: =head2
20627 #: ../fish/guestfish-actions.pod:1646
20628 msgid "inotify-rm-watch"
20629 msgstr ""
20630
20631 # type: verbatim
20632 #: ../fish/guestfish-actions.pod:1648
20633 #, no-wrap
20634 msgid ""
20635 " inotify-rm-watch wd\n"
20636 "\n"
20637 msgstr ""
20638
20639 # type: textblock
20640 #: ../fish/guestfish-actions.pod:1650
20641 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20642 msgstr ""
20643
20644 # type: =head2
20645 #: ../fish/guestfish-actions.pod:1653
20646 msgid "inspect-get-arch"
20647 msgstr ""
20648
20649 # type: verbatim
20650 #: ../fish/guestfish-actions.pod:1655
20651 #, no-wrap
20652 msgid ""
20653 " inspect-get-arch root\n"
20654 "\n"
20655 msgstr ""
20656
20657 # type: textblock
20658 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1673 ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1765 ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1839 ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:1885 ../fish/guestfish-actions.pod:1915 ../fish/guestfish-actions.pod:1950 ../fish/guestfish-actions.pod:1966
20659 msgid ""
20660 "This function should only be called with a root device string as returned by "
20661 "L</inspect-os>."
20662 msgstr ""
20663
20664 # type: textblock
20665 #: ../fish/guestfish-actions.pod:1660
20666 msgid ""
20667 "This returns the architecture of the inspected operating system.  The "
20668 "possible return values are listed under L</file-architecture>."
20669 msgstr ""
20670
20671 # type: =head2
20672 #: ../fish/guestfish-actions.pod:1669
20673 msgid "inspect-get-distro"
20674 msgstr ""
20675
20676 # type: verbatim
20677 #: ../fish/guestfish-actions.pod:1671
20678 #, no-wrap
20679 msgid ""
20680 " inspect-get-distro root\n"
20681 "\n"
20682 msgstr ""
20683
20684 # type: =head2
20685 #: ../fish/guestfish-actions.pod:1743
20686 msgid "inspect-get-filesystems"
20687 msgstr ""
20688
20689 # type: verbatim
20690 #: ../fish/guestfish-actions.pod:1745
20691 #, no-wrap
20692 msgid ""
20693 " inspect-get-filesystems root\n"
20694 "\n"
20695 msgstr ""
20696
20697 # type: textblock
20698 #: ../fish/guestfish-actions.pod:1758
20699 msgid ""
20700 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20701 "L</inspect-get-mountpoints>."
20702 msgstr ""
20703
20704 # type: =head2
20705 #: ../fish/guestfish-actions.pod:1761
20706 msgid "inspect-get-hostname"
20707 msgstr ""
20708
20709 # type: verbatim
20710 #: ../fish/guestfish-actions.pod:1763
20711 #, no-wrap
20712 msgid ""
20713 " inspect-get-hostname root\n"
20714 "\n"
20715 msgstr ""
20716
20717 # type: =head2
20718 #: ../fish/guestfish-actions.pod:1776
20719 msgid "inspect-get-major-version"
20720 msgstr ""
20721
20722 # type: verbatim
20723 #: ../fish/guestfish-actions.pod:1778
20724 #, no-wrap
20725 msgid ""
20726 " inspect-get-major-version root\n"
20727 "\n"
20728 msgstr ""
20729
20730 # type: =head2
20731 #: ../fish/guestfish-actions.pod:1797
20732 msgid "inspect-get-minor-version"
20733 msgstr ""
20734
20735 # type: verbatim
20736 #: ../fish/guestfish-actions.pod:1799
20737 #, no-wrap
20738 msgid ""
20739 " inspect-get-minor-version root\n"
20740 "\n"
20741 msgstr ""
20742
20743 # type: textblock
20744 #: ../fish/guestfish-actions.pod:1809
20745 msgid ""
20746 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20747 "L</inspect-get-major-version>."
20748 msgstr ""
20749
20750 # type: =head2
20751 #: ../fish/guestfish-actions.pod:1812
20752 msgid "inspect-get-mountpoints"
20753 msgstr ""
20754
20755 # type: verbatim
20756 #: ../fish/guestfish-actions.pod:1814
20757 #, no-wrap
20758 msgid ""
20759 " inspect-get-mountpoints root\n"
20760 "\n"
20761 msgstr ""
20762
20763 # type: textblock
20764 #: ../fish/guestfish-actions.pod:1832
20765 msgid ""
20766 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20767 "L</inspect-get-filesystems>."
20768 msgstr ""
20769
20770 # type: =head2
20771 #: ../fish/guestfish-actions.pod:1835
20772 msgid "inspect-get-package-format"
20773 msgstr ""
20774
20775 # type: verbatim
20776 #: ../fish/guestfish-actions.pod:1837
20777 #, no-wrap
20778 msgid ""
20779 " inspect-get-package-format root\n"
20780 "\n"
20781 msgstr ""
20782
20783 # type: textblock
20784 #: ../fish/guestfish-actions.pod:1842
20785 msgid ""
20786 "This function and L</inspect-get-package-management> return the package "
20787 "format and package management tool used by the inspected operating system.  "
20788 "For example for Fedora these functions would return C<rpm> (package format) "
20789 "and C<yum> (package management)."
20790 msgstr ""
20791
20792 # type: =head2
20793 #: ../fish/guestfish-actions.pod:1857
20794 msgid "inspect-get-package-management"
20795 msgstr ""
20796
20797 # type: verbatim
20798 #: ../fish/guestfish-actions.pod:1859
20799 #, no-wrap
20800 msgid ""
20801 " inspect-get-package-management root\n"
20802 "\n"
20803 msgstr ""
20804
20805 # type: textblock
20806 #: ../fish/guestfish-actions.pod:1864
20807 msgid ""
20808 "L</inspect-get-package-format> and this function return the package format "
20809 "and package management tool used by the inspected operating system.  For "
20810 "example for Fedora these functions would return C<rpm> (package format) and "
20811 "C<yum> (package management)."
20812 msgstr ""
20813
20814 # type: =head2
20815 #: ../fish/guestfish-actions.pod:1881
20816 msgid "inspect-get-product-name"
20817 msgstr ""
20818
20819 # type: verbatim
20820 #: ../fish/guestfish-actions.pod:1883
20821 #, no-wrap
20822 msgid ""
20823 " inspect-get-product-name root\n"
20824 "\n"
20825 msgstr ""
20826
20827 # type: =head2
20828 #: ../fish/guestfish-actions.pod:1898
20829 msgid "inspect-get-roots"
20830 msgstr ""
20831
20832 # type: verbatim
20833 #: ../fish/guestfish-actions.pod:1900
20834 #, no-wrap
20835 msgid ""
20836 " inspect-get-roots\n"
20837 "\n"
20838 msgstr ""
20839
20840 # type: textblock
20841 #: ../fish/guestfish-actions.pod:1902
20842 msgid ""
20843 "This function is a convenient way to get the list of root devices, as "
20844 "returned from a previous call to L</inspect-os>, but without redoing the "
20845 "whole inspection process."
20846 msgstr ""
20847
20848 # type: textblock
20849 #: ../fish/guestfish-actions.pod:1906
20850 msgid ""
20851 "This returns an empty list if either no root devices were found or the "
20852 "caller has not called L</inspect-os>."
20853 msgstr ""
20854
20855 # type: =head2
20856 #: ../fish/guestfish-actions.pod:1911
20857 msgid "inspect-get-type"
20858 msgstr ""
20859
20860 # type: verbatim
20861 #: ../fish/guestfish-actions.pod:1913
20862 #, no-wrap
20863 msgid ""
20864 " inspect-get-type root\n"
20865 "\n"
20866 msgstr ""
20867
20868 # type: =head2
20869 #: ../fish/guestfish-actions.pod:1946
20870 msgid "inspect-get-windows-systemroot"
20871 msgstr ""
20872
20873 # type: verbatim
20874 #: ../fish/guestfish-actions.pod:1948
20875 #, no-wrap
20876 msgid ""
20877 " inspect-get-windows-systemroot root\n"
20878 "\n"
20879 msgstr ""
20880
20881 # type: =head2
20882 #: ../fish/guestfish-actions.pod:1962
20883 msgid "inspect-list-applications"
20884 msgstr ""
20885
20886 # type: verbatim
20887 #: ../fish/guestfish-actions.pod:1964
20888 #, no-wrap
20889 msgid ""
20890 " inspect-list-applications root\n"
20891 "\n"
20892 msgstr ""
20893
20894 # type: textblock
20895 #: ../fish/guestfish-actions.pod:1971
20896 msgid ""
20897 "I<Note:> This call works differently from other parts of the inspection "
20898 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
20899 "then mount up the disks, before calling this.  Listing applications is a "
20900 "significantly more difficult operation which requires access to the full "
20901 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
20902 "are just returning data cached in the libguestfs handle, this call actually "
20903 "reads parts of the mounted filesystems during the call."
20904 msgstr ""
20905
20906 # type: =head2
20907 #: ../fish/guestfish-actions.pod:2061
20908 msgid "inspect-os"
20909 msgstr ""
20910
20911 # type: verbatim
20912 #: ../fish/guestfish-actions.pod:2063
20913 #, no-wrap
20914 msgid ""
20915 " inspect-os\n"
20916 "\n"
20917 msgstr ""
20918
20919 # type: textblock
20920 #: ../fish/guestfish-actions.pod:2078
20921 msgid ""
20922 "You can pass the root string(s) returned to other L</inspect-get-*> "
20923 "functions in order to query further information about each operating system, "
20924 "such as the name and version."
20925 msgstr ""
20926
20927 # type: textblock
20928 #: ../fish/guestfish-actions.pod:2083
20929 msgid ""
20930 "This function uses other libguestfs features such as L</mount-ro> and "
20931 "L</umount-all> in order to mount and unmount filesystems and look at the "
20932 "contents.  This should be called with no disks currently mounted.  The "
20933 "function may also use Augeas, so any existing Augeas handle will be closed."
20934 msgstr ""
20935
20936 # type: textblock
20937 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2297
20938 msgid "See also L</list-filesystems>."
20939 msgstr ""
20940
20941 # type: =head2
20942 #: ../fish/guestfish-actions.pod:2097
20943 msgid "is-blockdev"
20944 msgstr ""
20945
20946 # type: verbatim
20947 #: ../fish/guestfish-actions.pod:2099
20948 #, no-wrap
20949 msgid ""
20950 " is-blockdev path\n"
20951 "\n"
20952 msgstr ""
20953
20954 # type: textblock
20955 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2203
20956 msgid "See also L</stat>."
20957 msgstr ""
20958
20959 # type: =head2
20960 #: ../fish/guestfish-actions.pod:2106
20961 msgid "is-busy"
20962 msgstr ""
20963
20964 # type: verbatim
20965 #: ../fish/guestfish-actions.pod:2108
20966 #, no-wrap
20967 msgid ""
20968 " is-busy\n"
20969 "\n"
20970 msgstr ""
20971
20972 # type: =head2
20973 #: ../fish/guestfish-actions.pod:2115
20974 msgid "is-chardev"
20975 msgstr ""
20976
20977 # type: verbatim
20978 #: ../fish/guestfish-actions.pod:2117
20979 #, no-wrap
20980 msgid ""
20981 " is-chardev path\n"
20982 "\n"
20983 msgstr ""
20984
20985 # type: =head2
20986 #: ../fish/guestfish-actions.pod:2124
20987 msgid "is-config"
20988 msgstr ""
20989
20990 # type: verbatim
20991 #: ../fish/guestfish-actions.pod:2126
20992 #, no-wrap
20993 msgid ""
20994 " is-config\n"
20995 "\n"
20996 msgstr ""
20997
20998 # type: =head2
20999 #: ../fish/guestfish-actions.pod:2133
21000 msgid "is-dir"
21001 msgstr ""
21002
21003 # type: verbatim
21004 #: ../fish/guestfish-actions.pod:2135
21005 #, no-wrap
21006 msgid ""
21007 " is-dir path\n"
21008 "\n"
21009 msgstr ""
21010
21011 # type: =head2
21012 #: ../fish/guestfish-actions.pod:2143
21013 msgid "is-fifo"
21014 msgstr ""
21015
21016 # type: verbatim
21017 #: ../fish/guestfish-actions.pod:2145
21018 #, no-wrap
21019 msgid ""
21020 " is-fifo path\n"
21021 "\n"
21022 msgstr ""
21023
21024 # type: =head2
21025 #: ../fish/guestfish-actions.pod:2152
21026 msgid "is-file"
21027 msgstr ""
21028
21029 # type: verbatim
21030 #: ../fish/guestfish-actions.pod:2154
21031 #, no-wrap
21032 msgid ""
21033 " is-file path\n"
21034 "\n"
21035 msgstr ""
21036
21037 # type: =head2
21038 #: ../fish/guestfish-actions.pod:2162
21039 msgid "is-launching"
21040 msgstr ""
21041
21042 # type: verbatim
21043 #: ../fish/guestfish-actions.pod:2164
21044 #, no-wrap
21045 msgid ""
21046 " is-launching\n"
21047 "\n"
21048 msgstr ""
21049
21050 # type: =head2
21051 #: ../fish/guestfish-actions.pod:2171
21052 msgid "is-lv"
21053 msgstr ""
21054
21055 # type: verbatim
21056 #: ../fish/guestfish-actions.pod:2173
21057 #, no-wrap
21058 msgid ""
21059 " is-lv device\n"
21060 "\n"
21061 msgstr ""
21062
21063 # type: =head2
21064 #: ../fish/guestfish-actions.pod:2178
21065 msgid "is-ready"
21066 msgstr ""
21067
21068 # type: verbatim
21069 #: ../fish/guestfish-actions.pod:2180
21070 #, no-wrap
21071 msgid ""
21072 " is-ready\n"
21073 "\n"
21074 msgstr ""
21075
21076 # type: =head2
21077 #: ../fish/guestfish-actions.pod:2187
21078 msgid "is-socket"
21079 msgstr ""
21080
21081 # type: verbatim
21082 #: ../fish/guestfish-actions.pod:2189
21083 #, no-wrap
21084 msgid ""
21085 " is-socket path\n"
21086 "\n"
21087 msgstr ""
21088
21089 # type: =head2
21090 #: ../fish/guestfish-actions.pod:2196
21091 msgid "is-symlink"
21092 msgstr ""
21093
21094 # type: verbatim
21095 #: ../fish/guestfish-actions.pod:2198
21096 #, no-wrap
21097 msgid ""
21098 " is-symlink path\n"
21099 "\n"
21100 msgstr ""
21101
21102 # type: =head2
21103 #: ../fish/guestfish-actions.pod:2205
21104 msgid "kill-subprocess"
21105 msgstr ""
21106
21107 # type: verbatim
21108 #: ../fish/guestfish-actions.pod:2207
21109 #, no-wrap
21110 msgid ""
21111 " kill-subprocess\n"
21112 "\n"
21113 msgstr ""
21114
21115 # type: =head2
21116 #: ../fish/guestfish-actions.pod:2211
21117 msgid "launch"
21118 msgstr ""
21119
21120 # type: =head2
21121 #: ../fish/guestfish-actions.pod:2213
21122 msgid "run"
21123 msgstr ""
21124
21125 # type: verbatim
21126 #: ../fish/guestfish-actions.pod:2215
21127 #, no-wrap
21128 msgid ""
21129 " launch\n"
21130 "\n"
21131 msgstr ""
21132
21133 # type: =head2
21134 #: ../fish/guestfish-actions.pod:2223
21135 msgid "lchown"
21136 msgstr ""
21137
21138 # type: verbatim
21139 #: ../fish/guestfish-actions.pod:2225
21140 #, no-wrap
21141 msgid ""
21142 " lchown owner group path\n"
21143 "\n"
21144 msgstr ""
21145
21146 # type: textblock
21147 #: ../fish/guestfish-actions.pod:2227
21148 msgid ""
21149 "Change the file owner to C<owner> and group to C<group>.  This is like "
21150 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
21151 "the target."
21152 msgstr ""
21153
21154 # type: =head2
21155 #: ../fish/guestfish-actions.pod:2235
21156 msgid "lgetxattrs"
21157 msgstr ""
21158
21159 # type: verbatim
21160 #: ../fish/guestfish-actions.pod:2237
21161 #, no-wrap
21162 msgid ""
21163 " lgetxattrs path\n"
21164 "\n"
21165 msgstr ""
21166
21167 # type: textblock
21168 #: ../fish/guestfish-actions.pod:2239
21169 msgid ""
21170 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21171 "it returns the extended attributes of the link itself."
21172 msgstr ""
21173
21174 # type: =head2
21175 #: ../fish/guestfish-actions.pod:2243
21176 msgid "list-devices"
21177 msgstr ""
21178
21179 # type: verbatim
21180 #: ../fish/guestfish-actions.pod:2245
21181 #, no-wrap
21182 msgid ""
21183 " list-devices\n"
21184 "\n"
21185 msgstr ""
21186
21187 # type: =head2
21188 #: ../fish/guestfish-actions.pod:2253
21189 msgid "list-filesystems"
21190 msgstr ""
21191
21192 # type: verbatim
21193 #: ../fish/guestfish-actions.pod:2255
21194 #, no-wrap
21195 msgid ""
21196 " list-filesystems\n"
21197 "\n"
21198 msgstr ""
21199
21200 # type: textblock
21201 #: ../fish/guestfish-actions.pod:2274
21202 msgid ""
21203 "This command runs other libguestfs commands, which might include L</mount> "
21204 "and L</umount>, and therefore you should use this soon after launch and only "
21205 "when nothing is mounted."
21206 msgstr ""
21207
21208 # type: textblock
21209 #: ../fish/guestfish-actions.pod:2278
21210 msgid ""
21211 "Not all of the filesystems returned will be mountable.  In particular, swap "
21212 "partitions are returned in the list.  Also this command does not check that "
21213 "each filesystem found is valid and mountable, and some filesystems might be "
21214 "mountable but require special options.  Filesystems may not all belong to a "
21215 "single logical operating system (use L</inspect-os> to look for OSes)."
21216 msgstr ""
21217
21218 # type: =head2
21219 #: ../fish/guestfish-actions.pod:2286
21220 msgid "list-partitions"
21221 msgstr ""
21222
21223 # type: verbatim
21224 #: ../fish/guestfish-actions.pod:2288
21225 #, no-wrap
21226 msgid ""
21227 " list-partitions\n"
21228 "\n"
21229 msgstr ""
21230
21231 # type: textblock
21232 #: ../fish/guestfish-actions.pod:2294
21233 msgid ""
21234 "This does not return logical volumes.  For that you will need to call "
21235 "L</lvs>."
21236 msgstr ""
21237
21238 # type: =head2
21239 #: ../fish/guestfish-actions.pod:2299
21240 msgid "ll"
21241 msgstr ""
21242
21243 # type: verbatim
21244 #: ../fish/guestfish-actions.pod:2301
21245 #, no-wrap
21246 msgid ""
21247 " ll directory\n"
21248 "\n"
21249 msgstr ""
21250
21251 # type: =head2
21252 #: ../fish/guestfish-actions.pod:2309
21253 msgid "ln"
21254 msgstr ""
21255
21256 # type: verbatim
21257 #: ../fish/guestfish-actions.pod:2311
21258 #, no-wrap
21259 msgid ""
21260 " ln target linkname\n"
21261 "\n"
21262 msgstr ""
21263
21264 # type: =head2
21265 #: ../fish/guestfish-actions.pod:2315
21266 msgid "ln-f"
21267 msgstr ""
21268
21269 # type: verbatim
21270 #: ../fish/guestfish-actions.pod:2317
21271 #, no-wrap
21272 msgid ""
21273 " ln-f target linkname\n"
21274 "\n"
21275 msgstr ""
21276
21277 # type: =head2
21278 #: ../fish/guestfish-actions.pod:2322
21279 msgid "ln-s"
21280 msgstr ""
21281
21282 # type: verbatim
21283 #: ../fish/guestfish-actions.pod:2324
21284 #, no-wrap
21285 msgid ""
21286 " ln-s target linkname\n"
21287 "\n"
21288 msgstr ""
21289
21290 # type: =head2
21291 #: ../fish/guestfish-actions.pod:2328
21292 msgid "ln-sf"
21293 msgstr ""
21294
21295 # type: verbatim
21296 #: ../fish/guestfish-actions.pod:2330
21297 #, no-wrap
21298 msgid ""
21299 " ln-sf target linkname\n"
21300 "\n"
21301 msgstr ""
21302
21303 # type: =head2
21304 #: ../fish/guestfish-actions.pod:2335
21305 msgid "lremovexattr"
21306 msgstr ""
21307
21308 # type: verbatim
21309 #: ../fish/guestfish-actions.pod:2337
21310 #, no-wrap
21311 msgid ""
21312 " lremovexattr xattr path\n"
21313 "\n"
21314 msgstr ""
21315
21316 # type: textblock
21317 #: ../fish/guestfish-actions.pod:2339
21318 msgid ""
21319 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21320 "it removes an extended attribute of the link itself."
21321 msgstr ""
21322
21323 # type: =head2
21324 #: ../fish/guestfish-actions.pod:2343
21325 msgid "ls"
21326 msgstr ""
21327
21328 # type: verbatim
21329 #: ../fish/guestfish-actions.pod:2345
21330 #, no-wrap
21331 msgid ""
21332 " ls directory\n"
21333 "\n"
21334 msgstr ""
21335
21336 # type: textblock
21337 #: ../fish/guestfish-actions.pod:2351
21338 msgid ""
21339 "This command is mostly useful for interactive sessions.  Programs should "
21340 "probably use L</readdir> instead."
21341 msgstr ""
21342
21343 # type: =head2
21344 #: ../fish/guestfish-actions.pod:2354
21345 msgid "lsetxattr"
21346 msgstr ""
21347
21348 # type: verbatim
21349 #: ../fish/guestfish-actions.pod:2356
21350 #, no-wrap
21351 msgid ""
21352 " lsetxattr xattr val vallen path\n"
21353 "\n"
21354 msgstr ""
21355
21356 # type: textblock
21357 #: ../fish/guestfish-actions.pod:2358
21358 msgid ""
21359 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21360 "sets an extended attribute of the link itself."
21361 msgstr ""
21362
21363 # type: =head2
21364 #: ../fish/guestfish-actions.pod:2362
21365 msgid "lstat"
21366 msgstr ""
21367
21368 # type: verbatim
21369 #: ../fish/guestfish-actions.pod:2364
21370 #, no-wrap
21371 msgid ""
21372 " lstat path\n"
21373 "\n"
21374 msgstr ""
21375
21376 # type: textblock
21377 #: ../fish/guestfish-actions.pod:2368
21378 msgid ""
21379 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21380 "the link is stat-ed, not the file it refers to."
21381 msgstr ""
21382
21383 # type: =head2
21384 #: ../fish/guestfish-actions.pod:2374
21385 msgid "lstatlist"
21386 msgstr ""
21387
21388 # type: verbatim
21389 #: ../fish/guestfish-actions.pod:2376
21390 #, no-wrap
21391 msgid ""
21392 " lstatlist path 'names ...'\n"
21393 "\n"
21394 msgstr ""
21395
21396 # type: textblock
21397 #: ../fish/guestfish-actions.pod:2378
21398 msgid ""
21399 "This call allows you to perform the L</lstat> operation on multiple files, "
21400 "where all files are in the directory C<path>.  C<names> is the list of files "
21401 "from this directory."
21402 msgstr ""
21403
21404 # type: textblock
21405 #: ../fish/guestfish-actions.pod:2387
21406 msgid ""
21407 "This call is intended for programs that want to efficiently list a directory "
21408 "contents without making many round-trips.  See also L</lxattrlist> for a "
21409 "similarly efficient call for getting extended attributes.  Very long "
21410 "directory listings might cause the protocol message size to be exceeded, "
21411 "causing this call to fail.  The caller must split up such requests into "
21412 "smaller groups of names."
21413 msgstr ""
21414
21415 # type: =head2
21416 #: ../fish/guestfish-actions.pod:2395
21417 msgid "luks-add-key"
21418 msgstr ""
21419
21420 # type: verbatim
21421 #: ../fish/guestfish-actions.pod:2397
21422 #, no-wrap
21423 msgid ""
21424 " luks-add-key device keyslot\n"
21425 "\n"
21426 msgstr ""
21427
21428 # type: textblock
21429 #: ../fish/guestfish-actions.pod:2404
21430 msgid ""
21431 "Note that if C<keyslot> already contains a key, then this command will "
21432 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21433 msgstr ""
21434
21435 # type: textblock
21436 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:2430 ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2457 ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2490
21437 msgid ""
21438 "This command has one or more key or passphrase parameters.  Guestfish will "
21439 "prompt for these separately."
21440 msgstr ""
21441
21442 # type: =head2
21443 #: ../fish/guestfish-actions.pod:2411
21444 msgid "luks-close"
21445 msgstr ""
21446
21447 # type: verbatim
21448 #: ../fish/guestfish-actions.pod:2413
21449 #, no-wrap
21450 msgid ""
21451 " luks-close device\n"
21452 "\n"
21453 msgstr ""
21454
21455 # type: textblock
21456 #: ../fish/guestfish-actions.pod:2415
21457 msgid ""
21458 "This closes a LUKS device that was created earlier by L</luks-open> or "
21459 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
21460 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
21461 "underlying block device."
21462 msgstr ""
21463
21464 # type: =head2
21465 #: ../fish/guestfish-actions.pod:2421
21466 msgid "luks-format"
21467 msgstr ""
21468
21469 # type: verbatim
21470 #: ../fish/guestfish-actions.pod:2423
21471 #, no-wrap
21472 msgid ""
21473 " luks-format device keyslot\n"
21474 "\n"
21475 msgstr ""
21476
21477 # type: =head2
21478 #: ../fish/guestfish-actions.pod:2436
21479 msgid "luks-format-cipher"
21480 msgstr ""
21481
21482 # type: verbatim
21483 #: ../fish/guestfish-actions.pod:2438
21484 #, no-wrap
21485 msgid ""
21486 " luks-format-cipher device keyslot cipher\n"
21487 "\n"
21488 msgstr ""
21489
21490 # type: textblock
21491 #: ../fish/guestfish-actions.pod:2440
21492 msgid ""
21493 "This command is the same as L</luks-format> but it also allows you to set "
21494 "the C<cipher> used."
21495 msgstr ""
21496
21497 # type: =head2
21498 #: ../fish/guestfish-actions.pod:2449
21499 msgid "luks-kill-slot"
21500 msgstr ""
21501
21502 # type: verbatim
21503 #: ../fish/guestfish-actions.pod:2451
21504 #, no-wrap
21505 msgid ""
21506 " luks-kill-slot device keyslot\n"
21507 "\n"
21508 msgstr ""
21509
21510 # type: =head2
21511 #: ../fish/guestfish-actions.pod:2460
21512 msgid "luks-open"
21513 msgstr ""
21514
21515 # type: verbatim
21516 #: ../fish/guestfish-actions.pod:2462
21517 #, no-wrap
21518 msgid ""
21519 " luks-open device mapname\n"
21520 "\n"
21521 msgstr ""
21522
21523 # type: textblock
21524 #: ../fish/guestfish-actions.pod:2476
21525 msgid ""
21526 "If this block device contains LVM volume groups, then calling L</vgscan> "
21527 "followed by L</vg-activate-all> will make them visible."
21528 msgstr ""
21529
21530 # type: =head2
21531 #: ../fish/guestfish-actions.pod:2483
21532 msgid "luks-open-ro"
21533 msgstr ""
21534
21535 # type: verbatim
21536 #: ../fish/guestfish-actions.pod:2485
21537 #, no-wrap
21538 msgid ""
21539 " luks-open-ro device mapname\n"
21540 "\n"
21541 msgstr ""
21542
21543 # type: textblock
21544 #: ../fish/guestfish-actions.pod:2487
21545 msgid ""
21546 "This is the same as L</luks-open> except that a read-only mapping is "
21547 "created."
21548 msgstr ""
21549
21550 # type: =head2
21551 #: ../fish/guestfish-actions.pod:2493
21552 msgid "lvcreate"
21553 msgstr ""
21554
21555 # type: verbatim
21556 #: ../fish/guestfish-actions.pod:2495
21557 #, no-wrap
21558 msgid ""
21559 " lvcreate logvol volgroup mbytes\n"
21560 "\n"
21561 msgstr ""
21562
21563 # type: =head2
21564 #: ../fish/guestfish-actions.pod:2500
21565 msgid "lvm-canonical-lv-name"
21566 msgstr ""
21567
21568 # type: verbatim
21569 #: ../fish/guestfish-actions.pod:2502
21570 #, no-wrap
21571 msgid ""
21572 " lvm-canonical-lv-name lvname\n"
21573 "\n"
21574 msgstr ""
21575
21576 # type: textblock
21577 #: ../fish/guestfish-actions.pod:2511
21578 msgid "See also L</is-lv>."
21579 msgstr ""
21580
21581 # type: =head2
21582 #: ../fish/guestfish-actions.pod:2513
21583 msgid "lvm-clear-filter"
21584 msgstr ""
21585
21586 # type: verbatim
21587 #: ../fish/guestfish-actions.pod:2515
21588 #, no-wrap
21589 msgid ""
21590 " lvm-clear-filter\n"
21591 "\n"
21592 msgstr ""
21593
21594 # type: textblock
21595 #: ../fish/guestfish-actions.pod:2517
21596 msgid ""
21597 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21598 "block device."
21599 msgstr ""
21600
21601 # type: =head2
21602 #: ../fish/guestfish-actions.pod:2523
21603 msgid "lvm-remove-all"
21604 msgstr ""
21605
21606 # type: verbatim
21607 #: ../fish/guestfish-actions.pod:2525
21608 #, no-wrap
21609 msgid ""
21610 " lvm-remove-all\n"
21611 "\n"
21612 msgstr ""
21613
21614 # type: =head2
21615 #: ../fish/guestfish-actions.pod:2533
21616 msgid "lvm-set-filter"
21617 msgstr ""
21618
21619 # type: verbatim
21620 #: ../fish/guestfish-actions.pod:2535
21621 #, no-wrap
21622 msgid ""
21623 " lvm-set-filter 'devices ...'\n"
21624 "\n"
21625 msgstr ""
21626
21627 # type: =head2
21628 #: ../fish/guestfish-actions.pod:2560
21629 msgid "lvremove"
21630 msgstr ""
21631
21632 # type: verbatim
21633 #: ../fish/guestfish-actions.pod:2562
21634 #, no-wrap
21635 msgid ""
21636 " lvremove device\n"
21637 "\n"
21638 msgstr ""
21639
21640 # type: =head2
21641 #: ../fish/guestfish-actions.pod:2570
21642 msgid "lvrename"
21643 msgstr ""
21644
21645 # type: verbatim
21646 #: ../fish/guestfish-actions.pod:2572
21647 #, no-wrap
21648 msgid ""
21649 " lvrename logvol newlogvol\n"
21650 "\n"
21651 msgstr ""
21652
21653 # type: =head2
21654 #: ../fish/guestfish-actions.pod:2576
21655 msgid "lvresize"
21656 msgstr ""
21657
21658 # type: verbatim
21659 #: ../fish/guestfish-actions.pod:2578
21660 #, no-wrap
21661 msgid ""
21662 " lvresize device mbytes\n"
21663 "\n"
21664 msgstr ""
21665
21666 # type: =head2
21667 #: ../fish/guestfish-actions.pod:2584
21668 msgid "lvresize-free"
21669 msgstr ""
21670
21671 # type: verbatim
21672 #: ../fish/guestfish-actions.pod:2586
21673 #, no-wrap
21674 msgid ""
21675 " lvresize-free lv percent\n"
21676 "\n"
21677 msgstr ""
21678
21679 # type: =head2
21680 #: ../fish/guestfish-actions.pod:2594
21681 msgid "lvs"
21682 msgstr ""
21683
21684 # type: verbatim
21685 #: ../fish/guestfish-actions.pod:2596
21686 #, no-wrap
21687 msgid ""
21688 " lvs\n"
21689 "\n"
21690 msgstr ""
21691
21692 # type: textblock
21693 #: ../fish/guestfish-actions.pod:2604
21694 msgid "See also L</lvs-full>, L</list-filesystems>."
21695 msgstr ""
21696
21697 # type: =head2
21698 #: ../fish/guestfish-actions.pod:2606
21699 msgid "lvs-full"
21700 msgstr ""
21701
21702 # type: verbatim
21703 #: ../fish/guestfish-actions.pod:2608
21704 #, no-wrap
21705 msgid ""
21706 " lvs-full\n"
21707 "\n"
21708 msgstr ""
21709
21710 # type: =head2
21711 #: ../fish/guestfish-actions.pod:2613
21712 msgid "lvuuid"
21713 msgstr ""
21714
21715 # type: verbatim
21716 #: ../fish/guestfish-actions.pod:2615
21717 #, no-wrap
21718 msgid ""
21719 " lvuuid device\n"
21720 "\n"
21721 msgstr ""
21722
21723 # type: =head2
21724 #: ../fish/guestfish-actions.pod:2619
21725 msgid "lxattrlist"
21726 msgstr ""
21727
21728 # type: verbatim
21729 #: ../fish/guestfish-actions.pod:2621
21730 #, no-wrap
21731 msgid ""
21732 " lxattrlist path 'names ...'\n"
21733 "\n"
21734 msgstr ""
21735
21736 # type: textblock
21737 #: ../fish/guestfish-actions.pod:2637
21738 msgid ""
21739 "This call is intended for programs that want to efficiently list a directory "
21740 "contents without making many round-trips.  See also L</lstatlist> for a "
21741 "similarly efficient call for getting standard stats.  Very long directory "
21742 "listings might cause the protocol message size to be exceeded, causing this "
21743 "call to fail.  The caller must split up such requests into smaller groups of "
21744 "names."
21745 msgstr ""
21746
21747 # type: =head2
21748 #: ../fish/guestfish-actions.pod:2645
21749 msgid "mkdir"
21750 msgstr ""
21751
21752 # type: verbatim
21753 #: ../fish/guestfish-actions.pod:2647
21754 #, no-wrap
21755 msgid ""
21756 " mkdir path\n"
21757 "\n"
21758 msgstr ""
21759
21760 # type: =head2
21761 #: ../fish/guestfish-actions.pod:2651
21762 msgid "mkdir-mode"
21763 msgstr ""
21764
21765 # type: verbatim
21766 #: ../fish/guestfish-actions.pod:2653
21767 #, no-wrap
21768 msgid ""
21769 " mkdir-mode path mode\n"
21770 "\n"
21771 msgstr ""
21772
21773 # type: textblock
21774 #: ../fish/guestfish-actions.pod:2662
21775 msgid "See also L</mkdir>, L</umask>"
21776 msgstr ""
21777
21778 # type: =head2
21779 #: ../fish/guestfish-actions.pod:2664
21780 msgid "mkdir-p"
21781 msgstr ""
21782
21783 # type: verbatim
21784 #: ../fish/guestfish-actions.pod:2666
21785 #, no-wrap
21786 msgid ""
21787 " mkdir-p path\n"
21788 "\n"
21789 msgstr ""
21790
21791 # type: =head2
21792 #: ../fish/guestfish-actions.pod:2671
21793 msgid "mkdtemp"
21794 msgstr ""
21795
21796 # type: verbatim
21797 #: ../fish/guestfish-actions.pod:2673
21798 #, no-wrap
21799 msgid ""
21800 " mkdtemp template\n"
21801 "\n"
21802 msgstr ""
21803
21804 # type: =head2
21805 #: ../fish/guestfish-actions.pod:2694
21806 msgid "mke2fs-J"
21807 msgstr ""
21808
21809 # type: verbatim
21810 #: ../fish/guestfish-actions.pod:2696
21811 #, no-wrap
21812 msgid ""
21813 " mke2fs-J fstype blocksize device journal\n"
21814 "\n"
21815 msgstr ""
21816
21817 # type: textblock
21818 #: ../fish/guestfish-actions.pod:2704
21819 msgid "See also L</mke2journal>."
21820 msgstr ""
21821
21822 # type: =head2
21823 #: ../fish/guestfish-actions.pod:2706
21824 msgid "mke2fs-JL"
21825 msgstr ""
21826
21827 # type: verbatim
21828 #: ../fish/guestfish-actions.pod:2708
21829 #, no-wrap
21830 msgid ""
21831 " mke2fs-JL fstype blocksize device label\n"
21832 "\n"
21833 msgstr ""
21834
21835 # type: textblock
21836 #: ../fish/guestfish-actions.pod:2713
21837 msgid "See also L</mke2journal-L>."
21838 msgstr ""
21839
21840 # type: =head2
21841 #: ../fish/guestfish-actions.pod:2715
21842 msgid "mke2fs-JU"
21843 msgstr ""
21844
21845 # type: verbatim
21846 #: ../fish/guestfish-actions.pod:2717
21847 #, no-wrap
21848 msgid ""
21849 " mke2fs-JU fstype blocksize device uuid\n"
21850 "\n"
21851 msgstr ""
21852
21853 # type: textblock
21854 #: ../fish/guestfish-actions.pod:2722
21855 msgid "See also L</mke2journal-U>."
21856 msgstr ""
21857
21858 # type: =head2
21859 #: ../fish/guestfish-actions.pod:2724
21860 msgid "mke2journal"
21861 msgstr ""
21862
21863 # type: verbatim
21864 #: ../fish/guestfish-actions.pod:2726
21865 #, no-wrap
21866 msgid ""
21867 " mke2journal blocksize device\n"
21868 "\n"
21869 msgstr ""
21870
21871 # type: =head2
21872 #: ../fish/guestfish-actions.pod:2733
21873 msgid "mke2journal-L"
21874 msgstr ""
21875
21876 # type: verbatim
21877 #: ../fish/guestfish-actions.pod:2735
21878 #, no-wrap
21879 msgid ""
21880 " mke2journal-L blocksize label device\n"
21881 "\n"
21882 msgstr ""
21883
21884 # type: =head2
21885 #: ../fish/guestfish-actions.pod:2739
21886 msgid "mke2journal-U"
21887 msgstr ""
21888
21889 # type: verbatim
21890 #: ../fish/guestfish-actions.pod:2741
21891 #, no-wrap
21892 msgid ""
21893 " mke2journal-U blocksize uuid device\n"
21894 "\n"
21895 msgstr ""
21896
21897 # type: =head2
21898 #: ../fish/guestfish-actions.pod:2745
21899 msgid "mkfifo"
21900 msgstr ""
21901
21902 # type: verbatim
21903 #: ../fish/guestfish-actions.pod:2747
21904 #, no-wrap
21905 msgid ""
21906 " mkfifo mode path\n"
21907 "\n"
21908 msgstr ""
21909
21910 # type: textblock
21911 #: ../fish/guestfish-actions.pod:2749
21912 msgid ""
21913 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21914 "is just a convenient wrapper around L</mknod>."
21915 msgstr ""
21916
21917 # type: =head2
21918 #: ../fish/guestfish-actions.pod:2755
21919 msgid "mkfs"
21920 msgstr ""
21921
21922 # type: verbatim
21923 #: ../fish/guestfish-actions.pod:2757
21924 #, no-wrap
21925 msgid ""
21926 " mkfs fstype device\n"
21927 "\n"
21928 msgstr ""
21929
21930 # type: =head2
21931 #: ../fish/guestfish-actions.pod:2763
21932 msgid "mkfs-b"
21933 msgstr ""
21934
21935 # type: verbatim
21936 #: ../fish/guestfish-actions.pod:2765
21937 #, no-wrap
21938 msgid ""
21939 " mkfs-b fstype blocksize device\n"
21940 "\n"
21941 msgstr ""
21942
21943 # type: textblock
21944 #: ../fish/guestfish-actions.pod:2767
21945 msgid ""
21946 "This call is similar to L</mkfs>, but it allows you to control the block "
21947 "size of the resulting filesystem.  Supported block sizes depend on the "
21948 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21949 msgstr ""
21950
21951 # type: =head2
21952 #: ../fish/guestfish-actions.pod:2775
21953 msgid "mkmountpoint"
21954 msgstr ""
21955
21956 # type: verbatim
21957 #: ../fish/guestfish-actions.pod:2777
21958 #, no-wrap
21959 msgid ""
21960 " mkmountpoint exemptpath\n"
21961 "\n"
21962 msgstr ""
21963
21964 # type: textblock
21965 #: ../fish/guestfish-actions.pod:2779
21966 msgid ""
21967 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21968 "to create extra mountpoints before mounting the first filesystem."
21969 msgstr ""
21970
21971 # type: textblock
21972 #: ../fish/guestfish-actions.pod:2803
21973 msgid ""
21974 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21975 "unexpected errors if you try to mix these calls.  It is safest to manually "
21976 "unmount filesystems and remove mountpoints after use."
21977 msgstr ""
21978
21979 # type: textblock
21980 #: ../fish/guestfish-actions.pod:2807
21981 msgid ""
21982 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21983 "for this to work for manual mountpoints, you must ensure that the innermost "
21984 "mountpoints have the longest pathnames, as in the example code above."
21985 msgstr ""
21986
21987 # type: textblock
21988 #: ../fish/guestfish-actions.pod:2814
21989 msgid ""
21990 "Autosync [see L</set-autosync>, this is set by default on handles] means "
21991 "that L</umount-all> is called when the handle is closed which can also "
21992 "trigger these issues."
21993 msgstr ""
21994
21995 # type: =head2
21996 #: ../fish/guestfish-actions.pod:2818
21997 msgid "mknod"
21998 msgstr ""
21999
22000 # type: verbatim
22001 #: ../fish/guestfish-actions.pod:2820
22002 #, no-wrap
22003 msgid ""
22004 " mknod mode devmajor devminor path\n"
22005 "\n"
22006 msgstr ""
22007
22008 # type: textblock
22009 #: ../fish/guestfish-actions.pod:2830
22010 msgid ""
22011 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22012 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22013 "regular file).  These constants are available in the standard Linux header "
22014 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22015 "wrappers around this command which bitwise OR in the appropriate constant "
22016 "for you."
22017 msgstr ""
22018
22019 # type: =head2
22020 #: ../fish/guestfish-actions.pod:2840
22021 msgid "mknod-b"
22022 msgstr ""
22023
22024 # type: verbatim
22025 #: ../fish/guestfish-actions.pod:2842
22026 #, no-wrap
22027 msgid ""
22028 " mknod-b mode devmajor devminor path\n"
22029 "\n"
22030 msgstr ""
22031
22032 # type: textblock
22033 #: ../fish/guestfish-actions.pod:2844
22034 msgid ""
22035 "This call creates a block device node called C<path> with mode C<mode> and "
22036 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22037 "wrapper around L</mknod>."
22038 msgstr ""
22039
22040 # type: =head2
22041 #: ../fish/guestfish-actions.pod:2850
22042 msgid "mknod-c"
22043 msgstr ""
22044
22045 # type: verbatim
22046 #: ../fish/guestfish-actions.pod:2852
22047 #, no-wrap
22048 msgid ""
22049 " mknod-c mode devmajor devminor path\n"
22050 "\n"
22051 msgstr ""
22052
22053 # type: textblock
22054 #: ../fish/guestfish-actions.pod:2854
22055 msgid ""
22056 "This call creates a char device node called C<path> with mode C<mode> and "
22057 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22058 "wrapper around L</mknod>."
22059 msgstr ""
22060
22061 # type: =head2
22062 #: ../fish/guestfish-actions.pod:2860
22063 msgid "mkswap"
22064 msgstr ""
22065
22066 # type: verbatim
22067 #: ../fish/guestfish-actions.pod:2862
22068 #, no-wrap
22069 msgid ""
22070 " mkswap device\n"
22071 "\n"
22072 msgstr ""
22073
22074 # type: =head2
22075 #: ../fish/guestfish-actions.pod:2866
22076 msgid "mkswap-L"
22077 msgstr ""
22078
22079 # type: verbatim
22080 #: ../fish/guestfish-actions.pod:2868
22081 #, no-wrap
22082 msgid ""
22083 " mkswap-L label device\n"
22084 "\n"
22085 msgstr ""
22086
22087 # type: =head2
22088 #: ../fish/guestfish-actions.pod:2876
22089 msgid "mkswap-U"
22090 msgstr ""
22091
22092 # type: verbatim
22093 #: ../fish/guestfish-actions.pod:2878
22094 #, no-wrap
22095 msgid ""
22096 " mkswap-U uuid device\n"
22097 "\n"
22098 msgstr ""
22099
22100 # type: =head2
22101 #: ../fish/guestfish-actions.pod:2882
22102 msgid "mkswap-file"
22103 msgstr ""
22104
22105 # type: verbatim
22106 #: ../fish/guestfish-actions.pod:2884
22107 #, no-wrap
22108 msgid ""
22109 " mkswap-file path\n"
22110 "\n"
22111 msgstr ""
22112
22113 # type: textblock
22114 #: ../fish/guestfish-actions.pod:2888
22115 msgid ""
22116 "This command just writes a swap file signature to an existing file.  To "
22117 "create the file itself, use something like L</fallocate>."
22118 msgstr ""
22119
22120 # type: =head2
22121 #: ../fish/guestfish-actions.pod:2891
22122 msgid "modprobe"
22123 msgstr ""
22124
22125 # type: verbatim
22126 #: ../fish/guestfish-actions.pod:2893
22127 #, no-wrap
22128 msgid ""
22129 " modprobe modulename\n"
22130 "\n"
22131 msgstr ""
22132
22133 # type: =head2
22134 #: ../fish/guestfish-actions.pod:2900
22135 msgid "mount"
22136 msgstr ""
22137
22138 # type: verbatim
22139 #: ../fish/guestfish-actions.pod:2902
22140 #, no-wrap
22141 msgid ""
22142 " mount device mountpoint\n"
22143 "\n"
22144 msgstr ""
22145
22146 # type: textblock
22147 #: ../fish/guestfish-actions.pod:2918
22148 msgid ""
22149 "B<Important note:> When you use this call, the filesystem options C<sync> "
22150 "and C<noatime> are set implicitly.  This was originally done because we "
22151 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22152 "very large negative performance impact and negligible effect on "
22153 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22154 "code that needs performance, and instead use L</mount-options> (use an empty "
22155 "string for the first parameter if you don't want any options)."
22156 msgstr ""
22157
22158 # type: =head2
22159 #: ../fish/guestfish-actions.pod:2928
22160 msgid "mount-loop"
22161 msgstr ""
22162
22163 # type: verbatim
22164 #: ../fish/guestfish-actions.pod:2930
22165 #, no-wrap
22166 msgid ""
22167 " mount-loop file mountpoint\n"
22168 "\n"
22169 msgstr ""
22170
22171 # type: =head2
22172 #: ../fish/guestfish-actions.pod:2936
22173 msgid "mount-options"
22174 msgstr ""
22175
22176 # type: verbatim
22177 #: ../fish/guestfish-actions.pod:2938
22178 #, no-wrap
22179 msgid ""
22180 " mount-options options device mountpoint\n"
22181 "\n"
22182 msgstr ""
22183
22184 # type: textblock
22185 #: ../fish/guestfish-actions.pod:2940
22186 msgid ""
22187 "This is the same as the L</mount> command, but it allows you to set the "
22188 "mount options as for the L<mount(8)> I<-o> flag."
22189 msgstr ""
22190
22191 # type: =head2
22192 #: ../fish/guestfish-actions.pod:2948
22193 msgid "mount-ro"
22194 msgstr ""
22195
22196 # type: verbatim
22197 #: ../fish/guestfish-actions.pod:2950
22198 #, no-wrap
22199 msgid ""
22200 " mount-ro device mountpoint\n"
22201 "\n"
22202 msgstr ""
22203
22204 # type: textblock
22205 #: ../fish/guestfish-actions.pod:2952
22206 msgid ""
22207 "This is the same as the L</mount> command, but it mounts the filesystem with "
22208 "the read-only (I<-o ro>) flag."
22209 msgstr ""
22210
22211 # type: =head2
22212 #: ../fish/guestfish-actions.pod:2955
22213 msgid "mount-vfs"
22214 msgstr ""
22215
22216 # type: verbatim
22217 #: ../fish/guestfish-actions.pod:2957
22218 #, no-wrap
22219 msgid ""
22220 " mount-vfs options vfstype device mountpoint\n"
22221 "\n"
22222 msgstr ""
22223
22224 # type: textblock
22225 #: ../fish/guestfish-actions.pod:2959
22226 msgid ""
22227 "This is the same as the L</mount> command, but it allows you to set both the "
22228 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22229 msgstr ""
22230
22231 # type: =head2
22232 #: ../fish/guestfish-actions.pod:2963
22233 msgid "mountpoints"
22234 msgstr ""
22235
22236 # type: verbatim
22237 #: ../fish/guestfish-actions.pod:2965
22238 #, no-wrap
22239 msgid ""
22240 " mountpoints\n"
22241 "\n"
22242 msgstr ""
22243
22244 # type: textblock
22245 #: ../fish/guestfish-actions.pod:2967
22246 msgid ""
22247 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22248 "This one returns a hash table (map) of device name to directory where the "
22249 "device is mounted."
22250 msgstr ""
22251
22252 # type: =head2
22253 #: ../fish/guestfish-actions.pod:2971
22254 msgid "mounts"
22255 msgstr ""
22256
22257 # type: verbatim
22258 #: ../fish/guestfish-actions.pod:2973
22259 #, no-wrap
22260 msgid ""
22261 " mounts\n"
22262 "\n"
22263 msgstr ""
22264
22265 # type: textblock
22266 #: ../fish/guestfish-actions.pod:2980
22267 msgid "See also: L</mountpoints>"
22268 msgstr ""
22269
22270 # type: =head2
22271 #: ../fish/guestfish-actions.pod:2982
22272 msgid "mv"
22273 msgstr ""
22274
22275 # type: verbatim
22276 #: ../fish/guestfish-actions.pod:2984
22277 #, no-wrap
22278 msgid ""
22279 " mv src dest\n"
22280 "\n"
22281 msgstr ""
22282
22283 # type: =head2
22284 #: ../fish/guestfish-actions.pod:2989
22285 msgid "ntfs-3g-probe"
22286 msgstr ""
22287
22288 # type: verbatim
22289 #: ../fish/guestfish-actions.pod:2991
22290 #, no-wrap
22291 msgid ""
22292 " ntfs-3g-probe true|false device\n"
22293 "\n"
22294 msgstr ""
22295
22296 # type: =head2
22297 #: ../fish/guestfish-actions.pod:3005
22298 msgid "ntfsresize"
22299 msgstr ""
22300
22301 # type: verbatim
22302 #: ../fish/guestfish-actions.pod:3007
22303 #, no-wrap
22304 msgid ""
22305 " ntfsresize device\n"
22306 "\n"
22307 msgstr ""
22308
22309 # type: =head2
22310 #: ../fish/guestfish-actions.pod:3013
22311 msgid "ntfsresize-size"
22312 msgstr ""
22313
22314 # type: verbatim
22315 #: ../fish/guestfish-actions.pod:3015
22316 #, no-wrap
22317 msgid ""
22318 " ntfsresize-size device size\n"
22319 "\n"
22320 msgstr ""
22321
22322 # type: textblock
22323 #: ../fish/guestfish-actions.pod:3017
22324 msgid ""
22325 "This command is the same as L</ntfsresize> except that it allows you to "
22326 "specify the new size (in bytes) explicitly."
22327 msgstr ""
22328
22329 # type: =head2
22330 #: ../fish/guestfish-actions.pod:3020
22331 msgid "part-add"
22332 msgstr ""
22333
22334 # type: verbatim
22335 #: ../fish/guestfish-actions.pod:3022
22336 #, no-wrap
22337 msgid ""
22338 " part-add device prlogex startsect endsect\n"
22339 "\n"
22340 msgstr ""
22341
22342 # type: textblock
22343 #: ../fish/guestfish-actions.pod:3024
22344 msgid ""
22345 "This command adds a partition to C<device>.  If there is no partition table "
22346 "on the device, call L</part-init> first."
22347 msgstr ""
22348
22349 # type: textblock
22350 #: ../fish/guestfish-actions.pod:3036
22351 msgid ""
22352 "Creating a partition which covers the whole disk is not so easy.  Use "
22353 "L</part-disk> to do that."
22354 msgstr ""
22355
22356 # type: =head2
22357 #: ../fish/guestfish-actions.pod:3039
22358 msgid "part-del"
22359 msgstr ""
22360
22361 # type: verbatim
22362 #: ../fish/guestfish-actions.pod:3041
22363 #, no-wrap
22364 msgid ""
22365 " part-del device partnum\n"
22366 "\n"
22367 msgstr ""
22368
22369 # type: =head2
22370 #: ../fish/guestfish-actions.pod:3049
22371 msgid "part-disk"
22372 msgstr ""
22373
22374 # type: verbatim
22375 #: ../fish/guestfish-actions.pod:3051
22376 #, no-wrap
22377 msgid ""
22378 " part-disk device parttype\n"
22379 "\n"
22380 msgstr ""
22381
22382 # type: textblock
22383 #: ../fish/guestfish-actions.pod:3053
22384 msgid ""
22385 "This command is simply a combination of L</part-init> followed by "
22386 "L</part-add> to create a single primary partition covering the whole disk."
22387 msgstr ""
22388
22389 # type: textblock
22390 #: ../fish/guestfish-actions.pod:3057
22391 msgid ""
22392 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22393 "possible values are described in L</part-init>."
22394 msgstr ""
22395
22396 # type: =head2
22397 #: ../fish/guestfish-actions.pod:3063
22398 msgid "part-get-bootable"
22399 msgstr ""
22400
22401 # type: verbatim
22402 #: ../fish/guestfish-actions.pod:3065
22403 #, no-wrap
22404 msgid ""
22405 " part-get-bootable device partnum\n"
22406 "\n"
22407 msgstr ""
22408
22409 # type: textblock
22410 #: ../fish/guestfish-actions.pod:3070
22411 msgid "See also L</part-set-bootable>."
22412 msgstr ""
22413
22414 # type: =head2
22415 #: ../fish/guestfish-actions.pod:3072
22416 msgid "part-get-mbr-id"
22417 msgstr ""
22418
22419 # type: verbatim
22420 #: ../fish/guestfish-actions.pod:3074
22421 #, no-wrap
22422 msgid ""
22423 " part-get-mbr-id device partnum\n"
22424 "\n"
22425 msgstr ""
22426
22427 # type: textblock
22428 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22429 msgid ""
22430 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22431 "undefined results for other partition table types (see "
22432 "L</part-get-parttype>)."
22433 msgstr ""
22434
22435 # type: =head2
22436 #: ../fish/guestfish-actions.pod:3083
22437 msgid "part-get-parttype"
22438 msgstr ""
22439
22440 # type: verbatim
22441 #: ../fish/guestfish-actions.pod:3085
22442 #, no-wrap
22443 msgid ""
22444 " part-get-parttype device\n"
22445 "\n"
22446 msgstr ""
22447
22448 # type: textblock
22449 #: ../fish/guestfish-actions.pod:3090
22450 msgid ""
22451 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22452 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22453 "possible, although unusual.  See L</part-init> for a full list."
22454 msgstr ""
22455
22456 # type: =head2
22457 #: ../fish/guestfish-actions.pod:3095
22458 msgid "part-init"
22459 msgstr ""
22460
22461 # type: verbatim
22462 #: ../fish/guestfish-actions.pod:3097
22463 #, no-wrap
22464 msgid ""
22465 " part-init device parttype\n"
22466 "\n"
22467 msgstr ""
22468
22469 # type: textblock
22470 #: ../fish/guestfish-actions.pod:3103
22471 msgid ""
22472 "Initially there are no partitions.  Following this, you should call "
22473 "L</part-add> for each partition required."
22474 msgstr ""
22475
22476 # type: =head2
22477 #: ../fish/guestfish-actions.pod:3166
22478 msgid "part-list"
22479 msgstr ""
22480
22481 # type: verbatim
22482 #: ../fish/guestfish-actions.pod:3168
22483 #, no-wrap
22484 msgid ""
22485 " part-list device\n"
22486 "\n"
22487 msgstr ""
22488
22489 # type: textblock
22490 #: ../fish/guestfish-actions.pod:3183
22491 msgid ""
22492 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22493 "the device's sector size, see L</blockdev-getss>."
22494 msgstr ""
22495
22496 # type: =head2
22497 #: ../fish/guestfish-actions.pod:3196
22498 msgid "part-set-bootable"
22499 msgstr ""
22500
22501 # type: verbatim
22502 #: ../fish/guestfish-actions.pod:3198
22503 #, no-wrap
22504 msgid ""
22505 " part-set-bootable device partnum true|false\n"
22506 "\n"
22507 msgstr ""
22508
22509 # type: =head2
22510 #: ../fish/guestfish-actions.pod:3207
22511 msgid "part-set-mbr-id"
22512 msgstr ""
22513
22514 # type: verbatim
22515 #: ../fish/guestfish-actions.pod:3209
22516 #, no-wrap
22517 msgid ""
22518 " part-set-mbr-id device partnum idbyte\n"
22519 "\n"
22520 msgstr ""
22521
22522 # type: =head2
22523 #: ../fish/guestfish-actions.pod:3221
22524 msgid "part-set-name"
22525 msgstr ""
22526
22527 # type: verbatim
22528 #: ../fish/guestfish-actions.pod:3223
22529 #, no-wrap
22530 msgid ""
22531 " part-set-name device partnum name\n"
22532 "\n"
22533 msgstr ""
22534
22535 # type: =head2
22536 #: ../fish/guestfish-actions.pod:3231
22537 msgid "part-to-dev"
22538 msgstr ""
22539
22540 # type: verbatim
22541 #: ../fish/guestfish-actions.pod:3233
22542 #, no-wrap
22543 msgid ""
22544 " part-to-dev partition\n"
22545 "\n"
22546 msgstr ""
22547
22548 # type: textblock
22549 #: ../fish/guestfish-actions.pod:3239
22550 msgid ""
22551 "The named partition must exist, for example as a string returned from "
22552 "L</list-partitions>."
22553 msgstr ""
22554
22555 # type: =head2
22556 #: ../fish/guestfish-actions.pod:3242
22557 msgid "ping-daemon"
22558 msgstr ""
22559
22560 # type: verbatim
22561 #: ../fish/guestfish-actions.pod:3244
22562 #, no-wrap
22563 msgid ""
22564 " ping-daemon\n"
22565 "\n"
22566 msgstr ""
22567
22568 # type: =head2
22569 #: ../fish/guestfish-actions.pod:3251
22570 msgid "pread"
22571 msgstr ""
22572
22573 # type: verbatim
22574 #: ../fish/guestfish-actions.pod:3253
22575 #, no-wrap
22576 msgid ""
22577 " pread path count offset\n"
22578 "\n"
22579 msgstr ""
22580
22581 # type: textblock
22582 #: ../fish/guestfish-actions.pod:3261
22583 msgid "See also L</pwrite>, L</pread-device>."
22584 msgstr ""
22585
22586 # type: =head2
22587 #: ../fish/guestfish-actions.pod:3266
22588 msgid "pread-device"
22589 msgstr ""
22590
22591 # type: verbatim
22592 #: ../fish/guestfish-actions.pod:3268
22593 #, no-wrap
22594 msgid ""
22595 " pread-device device count offset\n"
22596 "\n"
22597 msgstr ""
22598
22599 # type: textblock
22600 #: ../fish/guestfish-actions.pod:3276
22601 msgid "See also L</pread>."
22602 msgstr ""
22603
22604 # type: =head2
22605 #: ../fish/guestfish-actions.pod:3281
22606 msgid "pvcreate"
22607 msgstr ""
22608
22609 # type: verbatim
22610 #: ../fish/guestfish-actions.pod:3283
22611 #, no-wrap
22612 msgid ""
22613 " pvcreate device\n"
22614 "\n"
22615 msgstr ""
22616
22617 # type: =head2
22618 #: ../fish/guestfish-actions.pod:3289
22619 msgid "pvremove"
22620 msgstr ""
22621
22622 # type: verbatim
22623 #: ../fish/guestfish-actions.pod:3291
22624 #, no-wrap
22625 msgid ""
22626 " pvremove device\n"
22627 "\n"
22628 msgstr ""
22629
22630 # type: =head2
22631 #: ../fish/guestfish-actions.pod:3300
22632 msgid "pvresize"
22633 msgstr ""
22634
22635 # type: verbatim
22636 #: ../fish/guestfish-actions.pod:3302
22637 #, no-wrap
22638 msgid ""
22639 " pvresize device\n"
22640 "\n"
22641 msgstr ""
22642
22643 # type: =head2
22644 #: ../fish/guestfish-actions.pod:3307
22645 msgid "pvresize-size"
22646 msgstr ""
22647
22648 # type: verbatim
22649 #: ../fish/guestfish-actions.pod:3309
22650 #, no-wrap
22651 msgid ""
22652 " pvresize-size device size\n"
22653 "\n"
22654 msgstr ""
22655
22656 # type: textblock
22657 #: ../fish/guestfish-actions.pod:3311
22658 msgid ""
22659 "This command is the same as L</pvresize> except that it allows you to "
22660 "specify the new size (in bytes) explicitly."
22661 msgstr ""
22662
22663 # type: =head2
22664 #: ../fish/guestfish-actions.pod:3314
22665 msgid "pvs"
22666 msgstr ""
22667
22668 # type: verbatim
22669 #: ../fish/guestfish-actions.pod:3316
22670 #, no-wrap
22671 msgid ""
22672 " pvs\n"
22673 "\n"
22674 msgstr ""
22675
22676 # type: textblock
22677 #: ../fish/guestfish-actions.pod:3324
22678 msgid "See also L</pvs-full>."
22679 msgstr ""
22680
22681 # type: =head2
22682 #: ../fish/guestfish-actions.pod:3326
22683 msgid "pvs-full"
22684 msgstr ""
22685
22686 # type: verbatim
22687 #: ../fish/guestfish-actions.pod:3328
22688 #, no-wrap
22689 msgid ""
22690 " pvs-full\n"
22691 "\n"
22692 msgstr ""
22693
22694 # type: =head2
22695 #: ../fish/guestfish-actions.pod:3333
22696 msgid "pvuuid"
22697 msgstr ""
22698
22699 # type: verbatim
22700 #: ../fish/guestfish-actions.pod:3335
22701 #, no-wrap
22702 msgid ""
22703 " pvuuid device\n"
22704 "\n"
22705 msgstr ""
22706
22707 # type: =head2
22708 #: ../fish/guestfish-actions.pod:3339
22709 msgid "pwrite"
22710 msgstr ""
22711
22712 # type: verbatim
22713 #: ../fish/guestfish-actions.pod:3341
22714 #, no-wrap
22715 msgid ""
22716 " pwrite path content offset\n"
22717 "\n"
22718 msgstr ""
22719
22720 # type: textblock
22721 #: ../fish/guestfish-actions.pod:3352
22722 msgid "See also L</pread>, L</pwrite-device>."
22723 msgstr ""
22724
22725 # type: =head2
22726 #: ../fish/guestfish-actions.pod:3357
22727 msgid "pwrite-device"
22728 msgstr ""
22729
22730 # type: verbatim
22731 #: ../fish/guestfish-actions.pod:3359
22732 #, no-wrap
22733 msgid ""
22734 " pwrite-device device content offset\n"
22735 "\n"
22736 msgstr ""
22737
22738 # type: textblock
22739 #: ../fish/guestfish-actions.pod:3369
22740 msgid "See also L</pwrite>."
22741 msgstr ""
22742
22743 # type: =head2
22744 #: ../fish/guestfish-actions.pod:3374
22745 msgid "read-file"
22746 msgstr ""
22747
22748 # type: verbatim
22749 #: ../fish/guestfish-actions.pod:3376
22750 #, no-wrap
22751 msgid ""
22752 " read-file path\n"
22753 "\n"
22754 msgstr ""
22755
22756 # type: textblock
22757 #: ../fish/guestfish-actions.pod:3381
22758 msgid ""
22759 "Unlike L</cat>, this function can correctly handle files that contain "
22760 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22761 "is limited in the total size of file that can be handled."
22762 msgstr ""
22763
22764 # type: =head2
22765 #: ../fish/guestfish-actions.pod:3389
22766 msgid "read-lines"
22767 msgstr ""
22768
22769 # type: verbatim
22770 #: ../fish/guestfish-actions.pod:3391
22771 #, no-wrap
22772 msgid ""
22773 " read-lines path\n"
22774 "\n"
22775 msgstr ""
22776
22777 # type: textblock
22778 #: ../fish/guestfish-actions.pod:3398
22779 msgid ""
22780 "Note that this function cannot correctly handle binary files (specifically, "
22781 "files containing C<\\0> character which is treated as end of line).  For "
22782 "those you need to use the L</read-file> function which has a more complex "
22783 "interface."
22784 msgstr ""
22785
22786 # type: =head2
22787 #: ../fish/guestfish-actions.pod:3403
22788 msgid "readdir"
22789 msgstr ""
22790
22791 # type: verbatim
22792 #: ../fish/guestfish-actions.pod:3405
22793 #, no-wrap
22794 msgid ""
22795 " readdir dir\n"
22796 "\n"
22797 msgstr ""
22798
22799 # type: textblock
22800 #: ../fish/guestfish-actions.pod:3457
22801 msgid ""
22802 "This function is primarily intended for use by programs.  To get a simple "
22803 "list of names, use L</ls>.  To get a printable directory for human "
22804 "consumption, use L</ll>."
22805 msgstr ""
22806
22807 # type: =head2
22808 #: ../fish/guestfish-actions.pod:3461
22809 msgid "readlink"
22810 msgstr ""
22811
22812 # type: verbatim
22813 #: ../fish/guestfish-actions.pod:3463
22814 #, no-wrap
22815 msgid ""
22816 " readlink path\n"
22817 "\n"
22818 msgstr ""
22819
22820 # type: =head2
22821 #: ../fish/guestfish-actions.pod:3467
22822 msgid "readlinklist"
22823 msgstr ""
22824
22825 # type: verbatim
22826 #: ../fish/guestfish-actions.pod:3469
22827 #, no-wrap
22828 msgid ""
22829 " readlinklist path 'names ...'\n"
22830 "\n"
22831 msgstr ""
22832
22833 # type: =head2
22834 #: ../fish/guestfish-actions.pod:3493
22835 msgid "realpath"
22836 msgstr ""
22837
22838 # type: verbatim
22839 #: ../fish/guestfish-actions.pod:3495
22840 #, no-wrap
22841 msgid ""
22842 " realpath path\n"
22843 "\n"
22844 msgstr ""
22845
22846 # type: =head2
22847 #: ../fish/guestfish-actions.pod:3500
22848 msgid "removexattr"
22849 msgstr ""
22850
22851 # type: verbatim
22852 #: ../fish/guestfish-actions.pod:3502
22853 #, no-wrap
22854 msgid ""
22855 " removexattr xattr path\n"
22856 "\n"
22857 msgstr ""
22858
22859 # type: textblock
22860 #: ../fish/guestfish-actions.pod:3507
22861 msgid "See also: L</lremovexattr>, L<attr(5)>."
22862 msgstr ""
22863
22864 # type: =head2
22865 #: ../fish/guestfish-actions.pod:3509
22866 msgid "resize2fs"
22867 msgstr ""
22868
22869 # type: verbatim
22870 #: ../fish/guestfish-actions.pod:3511
22871 #, no-wrap
22872 msgid ""
22873 " resize2fs device\n"
22874 "\n"
22875 msgstr ""
22876
22877 # type: textblock
22878 #: ../fish/guestfish-actions.pod:3516
22879 msgid ""
22880 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22881 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22882 "gives an error about this and sometimes not.  In any case, it is always safe "
22883 "to call L</e2fsck-f> before calling this function."
22884 msgstr ""
22885
22886 # type: =head2
22887 #: ../fish/guestfish-actions.pod:3522
22888 msgid "resize2fs-size"
22889 msgstr ""
22890
22891 # type: verbatim
22892 #: ../fish/guestfish-actions.pod:3524
22893 #, no-wrap
22894 msgid ""
22895 " resize2fs-size device size\n"
22896 "\n"
22897 msgstr ""
22898
22899 # type: textblock
22900 #: ../fish/guestfish-actions.pod:3526
22901 msgid ""
22902 "This command is the same as L</resize2fs> except that it allows you to "
22903 "specify the new size (in bytes) explicitly."
22904 msgstr ""
22905
22906 # type: =head2
22907 #: ../fish/guestfish-actions.pod:3529
22908 msgid "rm"
22909 msgstr ""
22910
22911 # type: verbatim
22912 #: ../fish/guestfish-actions.pod:3531
22913 #, no-wrap
22914 msgid ""
22915 " rm path\n"
22916 "\n"
22917 msgstr ""
22918
22919 # type: =head2
22920 #: ../fish/guestfish-actions.pod:3535
22921 msgid "rm-rf"
22922 msgstr ""
22923
22924 # type: verbatim
22925 #: ../fish/guestfish-actions.pod:3537
22926 #, no-wrap
22927 msgid ""
22928 " rm-rf path\n"
22929 "\n"
22930 msgstr ""
22931
22932 # type: =head2
22933 #: ../fish/guestfish-actions.pod:3543
22934 msgid "rmdir"
22935 msgstr ""
22936
22937 # type: verbatim
22938 #: ../fish/guestfish-actions.pod:3545
22939 #, no-wrap
22940 msgid ""
22941 " rmdir path\n"
22942 "\n"
22943 msgstr ""
22944
22945 # type: =head2
22946 #: ../fish/guestfish-actions.pod:3549
22947 msgid "rmmountpoint"
22948 msgstr ""
22949
22950 # type: verbatim
22951 #: ../fish/guestfish-actions.pod:3551
22952 #, no-wrap
22953 msgid ""
22954 " rmmountpoint exemptpath\n"
22955 "\n"
22956 msgstr ""
22957
22958 # type: textblock
22959 #: ../fish/guestfish-actions.pod:3553
22960 msgid ""
22961 "This calls removes a mountpoint that was previously created with "
22962 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
22963 msgstr ""
22964
22965 # type: =head2
22966 #: ../fish/guestfish-actions.pod:3557
22967 msgid "scrub-device"
22968 msgstr ""
22969
22970 # type: verbatim
22971 #: ../fish/guestfish-actions.pod:3559
22972 #, no-wrap
22973 msgid ""
22974 " scrub-device device\n"
22975 "\n"
22976 msgstr ""
22977
22978 # type: =head2
22979 #: ../fish/guestfish-actions.pod:3570
22980 msgid "scrub-file"
22981 msgstr ""
22982
22983 # type: verbatim
22984 #: ../fish/guestfish-actions.pod:3572
22985 #, no-wrap
22986 msgid ""
22987 " scrub-file file\n"
22988 "\n"
22989 msgstr ""
22990
22991 # type: =head2
22992 #: ../fish/guestfish-actions.pod:3582
22993 msgid "scrub-freespace"
22994 msgstr ""
22995
22996 # type: verbatim
22997 #: ../fish/guestfish-actions.pod:3584
22998 #, no-wrap
22999 msgid ""
23000 " scrub-freespace dir\n"
23001 "\n"
23002 msgstr ""
23003
23004 # type: textblock
23005 #: ../fish/guestfish-actions.pod:3586
23006 msgid ""
23007 "This command creates the directory C<dir> and then fills it with files until "
23008 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23009 "deletes them.  The intention is to scrub any free space on the partition "
23010 "containing C<dir>."
23011 msgstr ""
23012
23013 # type: =head2
23014 #: ../fish/guestfish-actions.pod:3595
23015 msgid "set-append"
23016 msgstr ""
23017
23018 # type: =head2
23019 #: ../fish/guestfish-actions.pod:3597
23020 msgid "append"
23021 msgstr ""
23022
23023 # type: verbatim
23024 #: ../fish/guestfish-actions.pod:3599
23025 #, no-wrap
23026 msgid ""
23027 " set-append append\n"
23028 "\n"
23029 msgstr ""
23030
23031 # type: =head2
23032 #: ../fish/guestfish-actions.pod:3610
23033 msgid "set-autosync"
23034 msgstr ""
23035
23036 # type: =head2
23037 #: ../fish/guestfish-actions.pod:3612
23038 msgid "autosync"
23039 msgstr ""
23040
23041 # type: verbatim
23042 #: ../fish/guestfish-actions.pod:3614
23043 #, no-wrap
23044 msgid ""
23045 " set-autosync true|false\n"
23046 "\n"
23047 msgstr ""
23048
23049 # type: textblock
23050 #: ../fish/guestfish-actions.pod:3616
23051 msgid ""
23052 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23053 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23054 "closed (also if the program exits without closing handles)."
23055 msgstr ""
23056
23057 # type: =head2
23058 #: ../fish/guestfish-actions.pod:3624
23059 msgid "set-direct"
23060 msgstr ""
23061
23062 # type: =head2
23063 #: ../fish/guestfish-actions.pod:3626
23064 msgid "direct"
23065 msgstr ""
23066
23067 # type: verbatim
23068 #: ../fish/guestfish-actions.pod:3628
23069 #, no-wrap
23070 msgid ""
23071 " set-direct true|false\n"
23072 "\n"
23073 msgstr ""
23074
23075 # type: textblock
23076 #: ../fish/guestfish-actions.pod:3634
23077 msgid ""
23078 "One consequence of this is that log messages aren't caught by the library "
23079 "and handled by L</set-log-message-callback>, but go straight to stdout."
23080 msgstr ""
23081
23082 # type: =head2
23083 #: ../fish/guestfish-actions.pod:3643
23084 msgid "set-e2label"
23085 msgstr ""
23086
23087 # type: verbatim
23088 #: ../fish/guestfish-actions.pod:3645
23089 #, no-wrap
23090 msgid ""
23091 " set-e2label device label\n"
23092 "\n"
23093 msgstr ""
23094
23095 # type: textblock
23096 #: ../fish/guestfish-actions.pod:3651
23097 msgid ""
23098 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23099 "label on a filesystem."
23100 msgstr ""
23101
23102 # type: =head2
23103 #: ../fish/guestfish-actions.pod:3654
23104 msgid "set-e2uuid"
23105 msgstr ""
23106
23107 # type: verbatim
23108 #: ../fish/guestfish-actions.pod:3656
23109 #, no-wrap
23110 msgid ""
23111 " set-e2uuid device uuid\n"
23112 "\n"
23113 msgstr ""
23114
23115 # type: textblock
23116 #: ../fish/guestfish-actions.pod:3663
23117 msgid ""
23118 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23119 "UUID of a filesystem."
23120 msgstr ""
23121
23122 # type: =head2
23123 #: ../fish/guestfish-actions.pod:3666
23124 msgid "set-memsize"
23125 msgstr ""
23126
23127 # type: =head2
23128 #: ../fish/guestfish-actions.pod:3668
23129 msgid "memsize"
23130 msgstr ""
23131
23132 # type: verbatim
23133 #: ../fish/guestfish-actions.pod:3670
23134 #, no-wrap
23135 msgid ""
23136 " set-memsize memsize\n"
23137 "\n"
23138 msgstr ""
23139
23140 # type: textblock
23141 #: ../fish/guestfish-actions.pod:3672
23142 msgid ""
23143 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23144 "This only has any effect if called before L</launch>."
23145 msgstr ""
23146
23147 # type: =head2
23148 #: ../fish/guestfish-actions.pod:3683
23149 msgid "set-network"
23150 msgstr ""
23151
23152 # type: =head2
23153 #: ../fish/guestfish-actions.pod:3685
23154 msgid "network"
23155 msgstr ""
23156
23157 # type: verbatim
23158 #: ../fish/guestfish-actions.pod:3687
23159 #, no-wrap
23160 msgid ""
23161 " set-network true|false\n"
23162 "\n"
23163 msgstr ""
23164
23165 # type: textblock
23166 #: ../fish/guestfish-actions.pod:3695
23167 msgid "You must call this before calling L</launch>, otherwise it has no effect."
23168 msgstr ""
23169
23170 # type: =head2
23171 #: ../fish/guestfish-actions.pod:3698
23172 msgid "set-path"
23173 msgstr ""
23174
23175 # type: =head2
23176 #: ../fish/guestfish-actions.pod:3700
23177 msgid "path"
23178 msgstr ""
23179
23180 # type: verbatim
23181 #: ../fish/guestfish-actions.pod:3702
23182 #, no-wrap
23183 msgid ""
23184 " set-path searchpath\n"
23185 "\n"
23186 msgstr ""
23187
23188 # type: =head2
23189 #: ../fish/guestfish-actions.pod:3711
23190 msgid "set-qemu"
23191 msgstr ""
23192
23193 # type: =head2
23194 #: ../fish/guestfish-actions.pod:3713
23195 msgid "qemu"
23196 msgstr ""
23197
23198 # type: verbatim
23199 #: ../fish/guestfish-actions.pod:3715
23200 #, no-wrap
23201 msgid ""
23202 " set-qemu qemu\n"
23203 "\n"
23204 msgstr ""
23205
23206 # type: =head2
23207 #: ../fish/guestfish-actions.pod:3735
23208 msgid "set-recovery-proc"
23209 msgstr ""
23210
23211 # type: =head2
23212 #: ../fish/guestfish-actions.pod:3737
23213 msgid "recovery-proc"
23214 msgstr ""
23215
23216 # type: verbatim
23217 #: ../fish/guestfish-actions.pod:3739
23218 #, no-wrap
23219 msgid ""
23220 " set-recovery-proc true|false\n"
23221 "\n"
23222 msgstr ""
23223
23224 # type: textblock
23225 #: ../fish/guestfish-actions.pod:3741
23226 msgid ""
23227 "If this is called with the parameter C<false> then L</launch> does not "
23228 "create a recovery process.  The purpose of the recovery process is to stop "
23229 "runaway qemu processes in the case where the main program aborts abruptly."
23230 msgstr ""
23231
23232 # type: textblock
23233 #: ../fish/guestfish-actions.pod:3746
23234 msgid ""
23235 "This only has any effect if called before L</launch>, and the default is "
23236 "true."
23237 msgstr ""
23238
23239 # type: =head2
23240 #: ../fish/guestfish-actions.pod:3755
23241 msgid "set-selinux"
23242 msgstr ""
23243
23244 # type: =head2
23245 #: ../fish/guestfish-actions.pod:3757
23246 msgid "selinux"
23247 msgstr ""
23248
23249 # type: verbatim
23250 #: ../fish/guestfish-actions.pod:3759
23251 #, no-wrap
23252 msgid ""
23253 " set-selinux true|false\n"
23254 "\n"
23255 msgstr ""
23256
23257 # type: =head2
23258 #: ../fish/guestfish-actions.pod:3770
23259 msgid "set-trace"
23260 msgstr ""
23261
23262 # type: =head2
23263 #: ../fish/guestfish-actions.pod:3772
23264 msgid "trace"
23265 msgstr ""
23266
23267 # type: verbatim
23268 #: ../fish/guestfish-actions.pod:3774
23269 #, no-wrap
23270 msgid ""
23271 " set-trace true|false\n"
23272 "\n"
23273 msgstr ""
23274
23275 # type: =head2
23276 #: ../fish/guestfish-actions.pod:3790
23277 msgid "set-verbose"
23278 msgstr ""
23279
23280 # type: =head2
23281 #: ../fish/guestfish-actions.pod:3792
23282 msgid "verbose"
23283 msgstr ""
23284
23285 # type: verbatim
23286 #: ../fish/guestfish-actions.pod:3794
23287 #, no-wrap
23288 msgid ""
23289 " set-verbose true|false\n"
23290 "\n"
23291 msgstr ""
23292
23293 # type: =head2
23294 #: ../fish/guestfish-actions.pod:3801
23295 msgid "setcon"
23296 msgstr ""
23297
23298 # type: verbatim
23299 #: ../fish/guestfish-actions.pod:3803
23300 #, no-wrap
23301 msgid ""
23302 " setcon context\n"
23303 "\n"
23304 msgstr ""
23305
23306 # type: =head2
23307 #: ../fish/guestfish-actions.pod:3810
23308 msgid "setxattr"
23309 msgstr ""
23310
23311 # type: verbatim
23312 #: ../fish/guestfish-actions.pod:3812
23313 #, no-wrap
23314 msgid ""
23315 " setxattr xattr val vallen path\n"
23316 "\n"
23317 msgstr ""
23318
23319 # type: textblock
23320 #: ../fish/guestfish-actions.pod:3818
23321 msgid "See also: L</lsetxattr>, L<attr(5)>."
23322 msgstr ""
23323
23324 # type: =head2
23325 #: ../fish/guestfish-actions.pod:3820
23326 msgid "sfdisk"
23327 msgstr ""
23328
23329 # type: verbatim
23330 #: ../fish/guestfish-actions.pod:3822
23331 #, no-wrap
23332 msgid ""
23333 " sfdisk device cyls heads sectors 'lines ...'\n"
23334 "\n"
23335 msgstr ""
23336
23337 # type: textblock
23338 #: ../fish/guestfish-actions.pod:3844
23339 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23340 msgstr ""
23341
23342 # type: =head2
23343 #: ../fish/guestfish-actions.pod:3850
23344 msgid "sfdiskM"
23345 msgstr ""
23346
23347 # type: verbatim
23348 #: ../fish/guestfish-actions.pod:3852
23349 #, no-wrap
23350 msgid ""
23351 " sfdiskM device 'lines ...'\n"
23352 "\n"
23353 msgstr ""
23354
23355 # type: textblock
23356 #: ../fish/guestfish-actions.pod:3854
23357 msgid ""
23358 "This is a simplified interface to the L</sfdisk> command, where partition "
23359 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23360 "you don't need to specify the cyls, heads and sectors parameters which were "
23361 "rarely if ever used anyway."
23362 msgstr ""
23363
23364 # type: textblock
23365 #: ../fish/guestfish-actions.pod:3860
23366 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23367 msgstr ""
23368
23369 # type: =head2
23370 #: ../fish/guestfish-actions.pod:3866
23371 msgid "sfdisk-N"
23372 msgstr ""
23373
23374 # type: verbatim
23375 #: ../fish/guestfish-actions.pod:3868
23376 #, no-wrap
23377 msgid ""
23378 " sfdisk-N device partnum cyls heads sectors line\n"
23379 "\n"
23380 msgstr ""
23381
23382 # type: textblock
23383 #: ../fish/guestfish-actions.pod:3873
23384 msgid ""
23385 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23386 "cyls/heads/sectors parameters."
23387 msgstr ""
23388
23389 # type: textblock
23390 #: ../fish/guestfish-actions.pod:3876
23391 msgid "See also: L</part-add>"
23392 msgstr ""
23393
23394 # type: =head2
23395 #: ../fish/guestfish-actions.pod:3881
23396 msgid "sfdisk-disk-geometry"
23397 msgstr ""
23398
23399 # type: verbatim
23400 #: ../fish/guestfish-actions.pod:3883
23401 #, no-wrap
23402 msgid ""
23403 " sfdisk-disk-geometry device\n"
23404 "\n"
23405 msgstr ""
23406
23407 # type: textblock
23408 #: ../fish/guestfish-actions.pod:3885
23409 msgid ""
23410 "This displays the disk geometry of C<device> read from the partition table.  "
23411 "Especially in the case where the underlying block device has been resized, "
23412 "this can be different from the kernel's idea of the geometry (see "
23413 "L</sfdisk-kernel-geometry>)."
23414 msgstr ""
23415
23416 # type: =head2
23417 #: ../fish/guestfish-actions.pod:3893
23418 msgid "sfdisk-kernel-geometry"
23419 msgstr ""
23420
23421 # type: verbatim
23422 #: ../fish/guestfish-actions.pod:3895
23423 #, no-wrap
23424 msgid ""
23425 " sfdisk-kernel-geometry device\n"
23426 "\n"
23427 msgstr ""
23428
23429 # type: =head2
23430 #: ../fish/guestfish-actions.pod:3902
23431 msgid "sfdisk-l"
23432 msgstr ""
23433
23434 # type: verbatim
23435 #: ../fish/guestfish-actions.pod:3904
23436 #, no-wrap
23437 msgid ""
23438 " sfdisk-l device\n"
23439 "\n"
23440 msgstr ""
23441
23442 # type: textblock
23443 #: ../fish/guestfish-actions.pod:3910
23444 msgid "See also: L</part-list>"
23445 msgstr ""
23446
23447 # type: =head2
23448 #: ../fish/guestfish-actions.pod:3912
23449 msgid "sh"
23450 msgstr ""
23451
23452 # type: verbatim
23453 #: ../fish/guestfish-actions.pod:3914
23454 #, no-wrap
23455 msgid ""
23456 " sh command\n"
23457 "\n"
23458 msgstr ""
23459
23460 # type: textblock
23461 #: ../fish/guestfish-actions.pod:3919
23462 msgid "This is like L</command>, but passes the command to:"
23463 msgstr ""
23464
23465 # type: textblock
23466 #: ../fish/guestfish-actions.pod:3927
23467 msgid "All the provisos about L</command> apply to this call."
23468 msgstr ""
23469
23470 # type: =head2
23471 #: ../fish/guestfish-actions.pod:3929
23472 msgid "sh-lines"
23473 msgstr ""
23474
23475 # type: verbatim
23476 #: ../fish/guestfish-actions.pod:3931
23477 #, no-wrap
23478 msgid ""
23479 " sh-lines command\n"
23480 "\n"
23481 msgstr ""
23482
23483 # type: textblock
23484 #: ../fish/guestfish-actions.pod:3933
23485 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23486 msgstr ""
23487
23488 # type: textblock
23489 #: ../fish/guestfish-actions.pod:3936
23490 msgid "See also: L</command-lines>"
23491 msgstr ""
23492
23493 # type: =head2
23494 #: ../fish/guestfish-actions.pod:3938
23495 msgid "sleep"
23496 msgstr ""
23497
23498 # type: verbatim
23499 #: ../fish/guestfish-actions.pod:3940
23500 #, no-wrap
23501 msgid ""
23502 " sleep secs\n"
23503 "\n"
23504 msgstr ""
23505
23506 # type: =head2
23507 #: ../fish/guestfish-actions.pod:3944
23508 msgid "stat"
23509 msgstr ""
23510
23511 # type: verbatim
23512 #: ../fish/guestfish-actions.pod:3946
23513 #, no-wrap
23514 msgid ""
23515 " stat path\n"
23516 "\n"
23517 msgstr ""
23518
23519 # type: =head2
23520 #: ../fish/guestfish-actions.pod:3952
23521 msgid "statvfs"
23522 msgstr ""
23523
23524 # type: verbatim
23525 #: ../fish/guestfish-actions.pod:3954
23526 #, no-wrap
23527 msgid ""
23528 " statvfs path\n"
23529 "\n"
23530 msgstr ""
23531
23532 # type: =head2
23533 #: ../fish/guestfish-actions.pod:3962
23534 msgid "strings"
23535 msgstr ""
23536
23537 # type: verbatim
23538 #: ../fish/guestfish-actions.pod:3964
23539 #, no-wrap
23540 msgid ""
23541 " strings path\n"
23542 "\n"
23543 msgstr ""
23544
23545 # type: =head2
23546 #: ../fish/guestfish-actions.pod:3972
23547 msgid "strings-e"
23548 msgstr ""
23549
23550 # type: verbatim
23551 #: ../fish/guestfish-actions.pod:3974
23552 #, no-wrap
23553 msgid ""
23554 " strings-e encoding path\n"
23555 "\n"
23556 msgstr ""
23557
23558 # type: textblock
23559 #: ../fish/guestfish-actions.pod:3976
23560 msgid ""
23561 "This is like the L</strings> command, but allows you to specify the encoding "
23562 "of strings that are looked for in the source file C<path>."
23563 msgstr ""
23564
23565 # type: textblock
23566 #: ../fish/guestfish-actions.pod:3986
23567 msgid ""
23568 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23569 "ISO-8859-X (this is what L</strings> uses)."
23570 msgstr ""
23571
23572 # type: =head2
23573 #: ../fish/guestfish-actions.pod:4018
23574 msgid "swapoff-device"
23575 msgstr ""
23576
23577 # type: verbatim
23578 #: ../fish/guestfish-actions.pod:4020
23579 #, no-wrap
23580 msgid ""
23581 " swapoff-device device\n"
23582 "\n"
23583 msgstr ""
23584
23585 # type: textblock
23586 #: ../fish/guestfish-actions.pod:4022
23587 msgid ""
23588 "This command disables the libguestfs appliance swap device or partition "
23589 "named C<device>.  See L</swapon-device>."
23590 msgstr ""
23591
23592 # type: =head2
23593 #: ../fish/guestfish-actions.pod:4026
23594 msgid "swapoff-file"
23595 msgstr ""
23596
23597 # type: verbatim
23598 #: ../fish/guestfish-actions.pod:4028
23599 #, no-wrap
23600 msgid ""
23601 " swapoff-file file\n"
23602 "\n"
23603 msgstr ""
23604
23605 # type: =head2
23606 #: ../fish/guestfish-actions.pod:4032
23607 msgid "swapoff-label"
23608 msgstr ""
23609
23610 # type: verbatim
23611 #: ../fish/guestfish-actions.pod:4034
23612 #, no-wrap
23613 msgid ""
23614 " swapoff-label label\n"
23615 "\n"
23616 msgstr ""
23617
23618 # type: =head2
23619 #: ../fish/guestfish-actions.pod:4039
23620 msgid "swapoff-uuid"
23621 msgstr ""
23622
23623 # type: verbatim
23624 #: ../fish/guestfish-actions.pod:4041
23625 #, no-wrap
23626 msgid ""
23627 " swapoff-uuid uuid\n"
23628 "\n"
23629 msgstr ""
23630
23631 # type: =head2
23632 #: ../fish/guestfish-actions.pod:4046
23633 msgid "swapon-device"
23634 msgstr ""
23635
23636 # type: verbatim
23637 #: ../fish/guestfish-actions.pod:4048
23638 #, no-wrap
23639 msgid ""
23640 " swapon-device device\n"
23641 "\n"
23642 msgstr ""
23643
23644 # type: textblock
23645 #: ../fish/guestfish-actions.pod:4050
23646 msgid ""
23647 "This command enables the libguestfs appliance to use the swap device or "
23648 "partition named C<device>.  The increased memory is made available for all "
23649 "commands, for example those run using L</command> or L</sh>."
23650 msgstr ""
23651
23652 # type: =head2
23653 #: ../fish/guestfish-actions.pod:4062
23654 msgid "swapon-file"
23655 msgstr ""
23656
23657 # type: verbatim
23658 #: ../fish/guestfish-actions.pod:4064
23659 #, no-wrap
23660 msgid ""
23661 " swapon-file file\n"
23662 "\n"
23663 msgstr ""
23664
23665 # type: textblock
23666 #: ../fish/guestfish-actions.pod:4066
23667 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
23668 msgstr ""
23669
23670 # type: =head2
23671 #: ../fish/guestfish-actions.pod:4069
23672 msgid "swapon-label"
23673 msgstr ""
23674
23675 # type: verbatim
23676 #: ../fish/guestfish-actions.pod:4071
23677 #, no-wrap
23678 msgid ""
23679 " swapon-label label\n"
23680 "\n"
23681 msgstr ""
23682
23683 # type: textblock
23684 #: ../fish/guestfish-actions.pod:4073
23685 msgid ""
23686 "This command enables swap to a labeled swap partition.  See "
23687 "L</swapon-device> for other notes."
23688 msgstr ""
23689
23690 # type: =head2
23691 #: ../fish/guestfish-actions.pod:4076
23692 msgid "swapon-uuid"
23693 msgstr ""
23694
23695 # type: verbatim
23696 #: ../fish/guestfish-actions.pod:4078
23697 #, no-wrap
23698 msgid ""
23699 " swapon-uuid uuid\n"
23700 "\n"
23701 msgstr ""
23702
23703 # type: textblock
23704 #: ../fish/guestfish-actions.pod:4080
23705 msgid ""
23706 "This command enables swap to a swap partition with the given UUID.  See "
23707 "L</swapon-device> for other notes."
23708 msgstr ""
23709
23710 # type: =head2
23711 #: ../fish/guestfish-actions.pod:4083
23712 msgid "sync"
23713 msgstr ""
23714
23715 # type: verbatim
23716 #: ../fish/guestfish-actions.pod:4085
23717 #, no-wrap
23718 msgid ""
23719 " sync\n"
23720 "\n"
23721 msgstr ""
23722
23723 # type: =head2
23724 #: ../fish/guestfish-actions.pod:4093
23725 msgid "tail"
23726 msgstr ""
23727
23728 # type: verbatim
23729 #: ../fish/guestfish-actions.pod:4095
23730 #, no-wrap
23731 msgid ""
23732 " tail path\n"
23733 "\n"
23734 msgstr ""
23735
23736 # type: =head2
23737 #: ../fish/guestfish-actions.pod:4103
23738 msgid "tail-n"
23739 msgstr ""
23740
23741 # type: verbatim
23742 #: ../fish/guestfish-actions.pod:4105
23743 #, no-wrap
23744 msgid ""
23745 " tail-n nrlines path\n"
23746 "\n"
23747 msgstr ""
23748
23749 # type: =head2
23750 #: ../fish/guestfish-actions.pod:4118
23751 msgid "tar-in"
23752 msgstr ""
23753
23754 # type: verbatim
23755 #: ../fish/guestfish-actions.pod:4120
23756 #, no-wrap
23757 msgid ""
23758 " tar-in (tarfile|-) directory\n"
23759 "\n"
23760 msgstr ""
23761
23762 # type: textblock
23763 #: ../fish/guestfish-actions.pod:4125
23764 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23765 msgstr ""
23766
23767 # type: =head2
23768 #: ../fish/guestfish-actions.pod:4130
23769 msgid "tar-out"
23770 msgstr ""
23771
23772 # type: verbatim
23773 #: ../fish/guestfish-actions.pod:4132
23774 #, no-wrap
23775 msgid ""
23776 " tar-out directory (tarfile|-)\n"
23777 "\n"
23778 msgstr ""
23779
23780 # type: textblock
23781 #: ../fish/guestfish-actions.pod:4137
23782 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23783 msgstr ""
23784
23785 # type: =head2
23786 #: ../fish/guestfish-actions.pod:4142
23787 msgid "tgz-in"
23788 msgstr ""
23789
23790 # type: verbatim
23791 #: ../fish/guestfish-actions.pod:4144
23792 #, no-wrap
23793 msgid ""
23794 " tgz-in (tarball|-) directory\n"
23795 "\n"
23796 msgstr ""
23797
23798 # type: textblock
23799 #: ../fish/guestfish-actions.pod:4149
23800 msgid "To upload an uncompressed tarball, use L</tar-in>."
23801 msgstr ""
23802
23803 # type: =head2
23804 #: ../fish/guestfish-actions.pod:4153
23805 msgid "tgz-out"
23806 msgstr ""
23807
23808 # type: verbatim
23809 #: ../fish/guestfish-actions.pod:4155
23810 #, no-wrap
23811 msgid ""
23812 " tgz-out directory (tarball|-)\n"
23813 "\n"
23814 msgstr ""
23815
23816 # type: textblock
23817 #: ../fish/guestfish-actions.pod:4160
23818 msgid "To download an uncompressed tarball, use L</tar-out>."
23819 msgstr ""
23820
23821 # type: =head2
23822 #: ../fish/guestfish-actions.pod:4164
23823 msgid "touch"
23824 msgstr ""
23825
23826 # type: verbatim
23827 #: ../fish/guestfish-actions.pod:4166
23828 #, no-wrap
23829 msgid ""
23830 " touch path\n"
23831 "\n"
23832 msgstr ""
23833
23834 # type: =head2
23835 #: ../fish/guestfish-actions.pod:4175
23836 msgid "truncate"
23837 msgstr ""
23838
23839 # type: verbatim
23840 #: ../fish/guestfish-actions.pod:4177
23841 #, no-wrap
23842 msgid ""
23843 " truncate path\n"
23844 "\n"
23845 msgstr ""
23846
23847 # type: =head2
23848 #: ../fish/guestfish-actions.pod:4182
23849 msgid "truncate-size"
23850 msgstr ""
23851
23852 # type: verbatim
23853 #: ../fish/guestfish-actions.pod:4184
23854 #, no-wrap
23855 msgid ""
23856 " truncate-size path size\n"
23857 "\n"
23858 msgstr ""
23859
23860 # type: textblock
23861 #: ../fish/guestfish-actions.pod:4189
23862 msgid ""
23863 "If the current file size is less than C<size> then the file is extended to "
23864 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23865 "blocks are not allocated for the file until you write to it).  To create a "
23866 "non-sparse file of zeroes, use L</fallocate64> instead."
23867 msgstr ""
23868
23869 # type: =head2
23870 #: ../fish/guestfish-actions.pod:4195
23871 msgid "tune2fs-l"
23872 msgstr ""
23873
23874 # type: verbatim
23875 #: ../fish/guestfish-actions.pod:4197
23876 #, no-wrap
23877 msgid ""
23878 " tune2fs-l device\n"
23879 "\n"
23880 msgstr ""
23881
23882 # type: =head2
23883 #: ../fish/guestfish-actions.pod:4207
23884 msgid "txz-in"
23885 msgstr ""
23886
23887 # type: verbatim
23888 #: ../fish/guestfish-actions.pod:4209
23889 #, no-wrap
23890 msgid ""
23891 " txz-in (tarball|-) directory\n"
23892 "\n"
23893 msgstr ""
23894
23895 # type: =head2
23896 #: ../fish/guestfish-actions.pod:4216
23897 msgid "txz-out"
23898 msgstr ""
23899
23900 # type: verbatim
23901 #: ../fish/guestfish-actions.pod:4218
23902 #, no-wrap
23903 msgid ""
23904 " txz-out directory (tarball|-)\n"
23905 "\n"
23906 msgstr ""
23907
23908 # type: =head2
23909 #: ../fish/guestfish-actions.pod:4225
23910 msgid "umask"
23911 msgstr ""
23912
23913 # type: verbatim
23914 #: ../fish/guestfish-actions.pod:4227
23915 #, no-wrap
23916 msgid ""
23917 " umask mask\n"
23918 "\n"
23919 msgstr ""
23920
23921 # type: textblock
23922 #: ../fish/guestfish-actions.pod:4241
23923 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23924 msgstr ""
23925
23926 # type: =head2
23927 #: ../fish/guestfish-actions.pod:4246
23928 msgid "umount"
23929 msgstr ""
23930
23931 # type: =head2
23932 #: ../fish/guestfish-actions.pod:4248
23933 msgid "unmount"
23934 msgstr ""
23935
23936 # type: verbatim
23937 #: ../fish/guestfish-actions.pod:4250
23938 #, no-wrap
23939 msgid ""
23940 " umount pathordevice\n"
23941 "\n"
23942 msgstr ""
23943
23944 # type: =head2
23945 #: ../fish/guestfish-actions.pod:4256
23946 msgid "umount-all"
23947 msgstr ""
23948
23949 # type: =head2
23950 #: ../fish/guestfish-actions.pod:4258
23951 msgid "unmount-all"
23952 msgstr ""
23953
23954 # type: verbatim
23955 #: ../fish/guestfish-actions.pod:4260
23956 #, no-wrap
23957 msgid ""
23958 " umount-all\n"
23959 "\n"
23960 msgstr ""
23961
23962 # type: =head2
23963 #: ../fish/guestfish-actions.pod:4266
23964 msgid "upload"
23965 msgstr ""
23966
23967 # type: verbatim
23968 #: ../fish/guestfish-actions.pod:4268
23969 #, no-wrap
23970 msgid ""
23971 " upload (filename|-) remotefilename\n"
23972 "\n"
23973 msgstr ""
23974
23975 # type: textblock
23976 #: ../fish/guestfish-actions.pod:4275
23977 msgid "See also L</download>."
23978 msgstr ""
23979
23980 # type: =head2
23981 #: ../fish/guestfish-actions.pod:4279
23982 msgid "upload-offset"
23983 msgstr ""
23984
23985 # type: verbatim
23986 #: ../fish/guestfish-actions.pod:4281
23987 #, no-wrap
23988 msgid ""
23989 " upload-offset (filename|-) remotefilename offset\n"
23990 "\n"
23991 msgstr ""
23992
23993 # type: textblock
23994 #: ../fish/guestfish-actions.pod:4293
23995 msgid ""
23996 "Note that there is no limit on the amount of data that can be uploaded with "
23997 "this call, unlike with L</pwrite>, and this call always writes the full "
23998 "amount unless an error occurs."
23999 msgstr ""
24000
24001 # type: textblock
24002 #: ../fish/guestfish-actions.pod:4298
24003 msgid "See also L</upload>, L</pwrite>."
24004 msgstr ""
24005
24006 # type: =head2
24007 #: ../fish/guestfish-actions.pod:4302
24008 msgid "utimens"
24009 msgstr ""
24010
24011 # type: verbatim
24012 #: ../fish/guestfish-actions.pod:4304
24013 #, no-wrap
24014 msgid ""
24015 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24016 "\n"
24017 msgstr ""
24018
24019 # type: =head2
24020 #: ../fish/guestfish-actions.pod:4323
24021 msgid "version"
24022 msgstr ""
24023
24024 # type: verbatim
24025 #: ../fish/guestfish-actions.pod:4325
24026 #, no-wrap
24027 msgid ""
24028 " version\n"
24029 "\n"
24030 msgstr ""
24031
24032 # type: textblock
24033 #: ../fish/guestfish-actions.pod:4352
24034 msgid ""
24035 "I<Note:> Don't use this call to test for availability of features.  In "
24036 "enterprise distributions we backport features from later versions into "
24037 "earlier versions, making this an unreliable way to test for features.  Use "
24038 "L</available> instead."
24039 msgstr ""
24040
24041 # type: =head2
24042 #: ../fish/guestfish-actions.pod:4358
24043 msgid "vfs-label"
24044 msgstr ""
24045
24046 # type: verbatim
24047 #: ../fish/guestfish-actions.pod:4360
24048 #, no-wrap
24049 msgid ""
24050 " vfs-label device\n"
24051 "\n"
24052 msgstr ""
24053
24054 # type: textblock
24055 #: ../fish/guestfish-actions.pod:4367
24056 msgid "To find a filesystem from the label, use L</findfs-label>."
24057 msgstr ""
24058
24059 # type: =head2
24060 #: ../fish/guestfish-actions.pod:4369
24061 msgid "vfs-type"
24062 msgstr ""
24063
24064 # type: verbatim
24065 #: ../fish/guestfish-actions.pod:4371
24066 #, no-wrap
24067 msgid ""
24068 " vfs-type device\n"
24069 "\n"
24070 msgstr ""
24071
24072 # type: =head2
24073 #: ../fish/guestfish-actions.pod:4381
24074 msgid "vfs-uuid"
24075 msgstr ""
24076
24077 # type: verbatim
24078 #: ../fish/guestfish-actions.pod:4383
24079 #, no-wrap
24080 msgid ""
24081 " vfs-uuid device\n"
24082 "\n"
24083 msgstr ""
24084
24085 # type: textblock
24086 #: ../fish/guestfish-actions.pod:4390
24087 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24088 msgstr ""
24089
24090 # type: =head2
24091 #: ../fish/guestfish-actions.pod:4392
24092 msgid "vg-activate"
24093 msgstr ""
24094
24095 # type: verbatim
24096 #: ../fish/guestfish-actions.pod:4394
24097 #, no-wrap
24098 msgid ""
24099 " vg-activate true|false 'volgroups ...'\n"
24100 "\n"
24101 msgstr ""
24102
24103 # type: =head2
24104 #: ../fish/guestfish-actions.pod:4407
24105 msgid "vg-activate-all"
24106 msgstr ""
24107
24108 # type: verbatim
24109 #: ../fish/guestfish-actions.pod:4409
24110 #, no-wrap
24111 msgid ""
24112 " vg-activate-all true|false\n"
24113 "\n"
24114 msgstr ""
24115
24116 # type: =head2
24117 #: ../fish/guestfish-actions.pod:4419
24118 msgid "vgcreate"
24119 msgstr ""
24120
24121 # type: verbatim
24122 #: ../fish/guestfish-actions.pod:4421
24123 #, no-wrap
24124 msgid ""
24125 " vgcreate volgroup 'physvols ...'\n"
24126 "\n"
24127 msgstr ""
24128
24129 # type: =head2
24130 #: ../fish/guestfish-actions.pod:4426
24131 msgid "vglvuuids"
24132 msgstr ""
24133
24134 # type: verbatim
24135 #: ../fish/guestfish-actions.pod:4428
24136 #, no-wrap
24137 msgid ""
24138 " vglvuuids vgname\n"
24139 "\n"
24140 msgstr ""
24141
24142 # type: textblock
24143 #: ../fish/guestfish-actions.pod:4433
24144 msgid ""
24145 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24146 "logical volumes and volume groups."
24147 msgstr ""
24148
24149 # type: textblock
24150 #: ../fish/guestfish-actions.pod:4436
24151 msgid "See also L</vgpvuuids>."
24152 msgstr ""
24153
24154 # type: =head2
24155 #: ../fish/guestfish-actions.pod:4438
24156 msgid "vgpvuuids"
24157 msgstr ""
24158
24159 # type: verbatim
24160 #: ../fish/guestfish-actions.pod:4440
24161 #, no-wrap
24162 msgid ""
24163 " vgpvuuids vgname\n"
24164 "\n"
24165 msgstr ""
24166
24167 # type: textblock
24168 #: ../fish/guestfish-actions.pod:4445
24169 msgid ""
24170 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24171 "physical volumes and volume groups."
24172 msgstr ""
24173
24174 # type: textblock
24175 #: ../fish/guestfish-actions.pod:4448
24176 msgid "See also L</vglvuuids>."
24177 msgstr ""
24178
24179 # type: =head2
24180 #: ../fish/guestfish-actions.pod:4450
24181 msgid "vgremove"
24182 msgstr ""
24183
24184 # type: verbatim
24185 #: ../fish/guestfish-actions.pod:4452
24186 #, no-wrap
24187 msgid ""
24188 " vgremove vgname\n"
24189 "\n"
24190 msgstr ""
24191
24192 # type: =head2
24193 #: ../fish/guestfish-actions.pod:4459
24194 msgid "vgrename"
24195 msgstr ""
24196
24197 # type: verbatim
24198 #: ../fish/guestfish-actions.pod:4461
24199 #, no-wrap
24200 msgid ""
24201 " vgrename volgroup newvolgroup\n"
24202 "\n"
24203 msgstr ""
24204
24205 # type: =head2
24206 #: ../fish/guestfish-actions.pod:4465
24207 msgid "vgs"
24208 msgstr ""
24209
24210 # type: verbatim
24211 #: ../fish/guestfish-actions.pod:4467
24212 #, no-wrap
24213 msgid ""
24214 " vgs\n"
24215 "\n"
24216 msgstr ""
24217
24218 # type: textblock
24219 #: ../fish/guestfish-actions.pod:4475
24220 msgid "See also L</vgs-full>."
24221 msgstr ""
24222
24223 # type: =head2
24224 #: ../fish/guestfish-actions.pod:4477
24225 msgid "vgs-full"
24226 msgstr ""
24227
24228 # type: verbatim
24229 #: ../fish/guestfish-actions.pod:4479
24230 #, no-wrap
24231 msgid ""
24232 " vgs-full\n"
24233 "\n"
24234 msgstr ""
24235
24236 # type: =head2
24237 #: ../fish/guestfish-actions.pod:4484
24238 msgid "vgscan"
24239 msgstr ""
24240
24241 # type: verbatim
24242 #: ../fish/guestfish-actions.pod:4486
24243 #, no-wrap
24244 msgid ""
24245 " vgscan\n"
24246 "\n"
24247 msgstr ""
24248
24249 # type: =head2
24250 #: ../fish/guestfish-actions.pod:4491
24251 msgid "vguuid"
24252 msgstr ""
24253
24254 # type: verbatim
24255 #: ../fish/guestfish-actions.pod:4493
24256 #, no-wrap
24257 msgid ""
24258 " vguuid vgname\n"
24259 "\n"
24260 msgstr ""
24261
24262 # type: =head2
24263 #: ../fish/guestfish-actions.pod:4497
24264 msgid "wc-c"
24265 msgstr ""
24266
24267 # type: verbatim
24268 #: ../fish/guestfish-actions.pod:4499
24269 #, no-wrap
24270 msgid ""
24271 " wc-c path\n"
24272 "\n"
24273 msgstr ""
24274
24275 # type: =head2
24276 #: ../fish/guestfish-actions.pod:4504
24277 msgid "wc-l"
24278 msgstr ""
24279
24280 # type: verbatim
24281 #: ../fish/guestfish-actions.pod:4506
24282 #, no-wrap
24283 msgid ""
24284 " wc-l path\n"
24285 "\n"
24286 msgstr ""
24287
24288 # type: =head2
24289 #: ../fish/guestfish-actions.pod:4511
24290 msgid "wc-w"
24291 msgstr ""
24292
24293 # type: verbatim
24294 #: ../fish/guestfish-actions.pod:4513
24295 #, no-wrap
24296 msgid ""
24297 " wc-w path\n"
24298 "\n"
24299 msgstr ""
24300
24301 # type: =head2
24302 #: ../fish/guestfish-actions.pod:4518
24303 msgid "write"
24304 msgstr ""
24305
24306 # type: verbatim
24307 #: ../fish/guestfish-actions.pod:4520
24308 #, no-wrap
24309 msgid ""
24310 " write path content\n"
24311 "\n"
24312 msgstr ""
24313
24314 # type: =head2
24315 #: ../fish/guestfish-actions.pod:4528
24316 msgid "write-file"
24317 msgstr ""
24318
24319 # type: verbatim
24320 #: ../fish/guestfish-actions.pod:4530
24321 #, no-wrap
24322 msgid ""
24323 " write-file path content size\n"
24324 "\n"
24325 msgstr ""
24326
24327 # type: =head2
24328 #: ../fish/guestfish-actions.pod:4553
24329 msgid "zegrep"
24330 msgstr ""
24331
24332 # type: verbatim
24333 #: ../fish/guestfish-actions.pod:4555
24334 #, no-wrap
24335 msgid ""
24336 " zegrep regex path\n"
24337 "\n"
24338 msgstr ""
24339
24340 # type: =head2
24341 #: ../fish/guestfish-actions.pod:4563
24342 msgid "zegrepi"
24343 msgstr ""
24344
24345 # type: verbatim
24346 #: ../fish/guestfish-actions.pod:4565
24347 #, no-wrap
24348 msgid ""
24349 " zegrepi regex path\n"
24350 "\n"
24351 msgstr ""
24352
24353 # type: =head2
24354 #: ../fish/guestfish-actions.pod:4573
24355 msgid "zero"
24356 msgstr ""
24357
24358 # type: verbatim
24359 #: ../fish/guestfish-actions.pod:4575
24360 #, no-wrap
24361 msgid ""
24362 " zero device\n"
24363 "\n"
24364 msgstr ""
24365
24366 # type: textblock
24367 #: ../fish/guestfish-actions.pod:4583
24368 msgid "See also: L</zero-device>, L</scrub-device>."
24369 msgstr ""
24370
24371 # type: =head2
24372 #: ../fish/guestfish-actions.pod:4585
24373 msgid "zero-device"
24374 msgstr ""
24375
24376 # type: verbatim
24377 #: ../fish/guestfish-actions.pod:4587
24378 #, no-wrap
24379 msgid ""
24380 " zero-device device\n"
24381 "\n"
24382 msgstr ""
24383
24384 # type: textblock
24385 #: ../fish/guestfish-actions.pod:4589
24386 msgid ""
24387 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24388 "which just zeroes the first few blocks of a device."
24389 msgstr ""
24390
24391 # type: =head2
24392 #: ../fish/guestfish-actions.pod:4596
24393 msgid "zerofree"
24394 msgstr ""
24395
24396 # type: verbatim
24397 #: ../fish/guestfish-actions.pod:4598
24398 #, no-wrap
24399 msgid ""
24400 " zerofree device\n"
24401 "\n"
24402 msgstr ""
24403
24404 # type: =head2
24405 #: ../fish/guestfish-actions.pod:4611
24406 msgid "zfgrep"
24407 msgstr ""
24408
24409 # type: verbatim
24410 #: ../fish/guestfish-actions.pod:4613
24411 #, no-wrap
24412 msgid ""
24413 " zfgrep pattern path\n"
24414 "\n"
24415 msgstr ""
24416
24417 # type: =head2
24418 #: ../fish/guestfish-actions.pod:4621
24419 msgid "zfgrepi"
24420 msgstr ""
24421
24422 # type: verbatim
24423 #: ../fish/guestfish-actions.pod:4623
24424 #, no-wrap
24425 msgid ""
24426 " zfgrepi pattern path\n"
24427 "\n"
24428 msgstr ""
24429
24430 # type: =head2
24431 #: ../fish/guestfish-actions.pod:4631
24432 msgid "zfile"
24433 msgstr ""
24434
24435 # type: verbatim
24436 #: ../fish/guestfish-actions.pod:4633
24437 #, no-wrap
24438 msgid ""
24439 " zfile meth path\n"
24440 "\n"
24441 msgstr ""
24442
24443 # type: textblock
24444 #: ../fish/guestfish-actions.pod:4640
24445 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
24446 msgstr ""
24447
24448 # type: =head2
24449 #: ../fish/guestfish-actions.pod:4650
24450 msgid "zgrep"
24451 msgstr ""
24452
24453 # type: verbatim
24454 #: ../fish/guestfish-actions.pod:4652
24455 #, no-wrap
24456 msgid ""
24457 " zgrep regex path\n"
24458 "\n"
24459 msgstr ""
24460
24461 # type: =head2
24462 #: ../fish/guestfish-actions.pod:4660
24463 msgid "zgrepi"
24464 msgstr ""
24465
24466 # type: verbatim
24467 #: ../fish/guestfish-actions.pod:4662
24468 #, no-wrap
24469 msgid ""
24470 " zgrepi regex path\n"
24471 "\n"
24472 msgstr ""
24473
24474 # type: =head2
24475 #: ../fish/guestfish-commands.pod:1
24476 msgid "alloc"
24477 msgstr ""
24478
24479 # type: =head2
24480 #: ../fish/guestfish-commands.pod:3
24481 msgid "allocate"
24482 msgstr ""
24483
24484 # type: verbatim
24485 #: ../fish/guestfish-commands.pod:5
24486 #, no-wrap
24487 msgid ""
24488 " alloc filename size\n"
24489 "\n"
24490 msgstr ""
24491
24492 # type: textblock
24493 #: ../fish/guestfish-commands.pod:7
24494 msgid ""
24495 "This creates an empty (zeroed) file of the given size, and then adds so it "
24496 "can be further examined."
24497 msgstr ""
24498
24499 # type: textblock
24500 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24501 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24502 msgstr ""
24503
24504 # type: textblock
24505 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24506 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24507 msgstr ""
24508
24509 # type: textblock
24510 #: ../fish/guestfish-commands.pod:14
24511 msgid ""
24512 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24513 "image, see L</PREPARED DISK IMAGES>."
24514 msgstr ""
24515
24516 # type: =head2
24517 #: ../fish/guestfish-commands.pod:17
24518 msgid "copy-in"
24519 msgstr ""
24520
24521 # type: verbatim
24522 #: ../fish/guestfish-commands.pod:19
24523 #, no-wrap
24524 msgid ""
24525 " copy-in local [local ...] /remotedir\n"
24526 "\n"
24527 msgstr ""
24528
24529 # type: textblock
24530 #: ../fish/guestfish-commands.pod:21
24531 msgid ""
24532 "C<copy-in> copies local files or directories recursively into the disk "
24533 "image, placing them in the directory called C</remotedir> (which must "
24534 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24535 "other commands as necessary."
24536 msgstr ""
24537
24538 # type: textblock
24539 #: ../fish/guestfish-commands.pod:26
24540 msgid ""
24541 "Multiple local files and directories can be specified, but the last "
24542 "parameter must always be a remote directory.  Wildcards cannot be used."
24543 msgstr ""
24544
24545 # type: =head2
24546 #: ../fish/guestfish-commands.pod:30
24547 msgid "copy-out"
24548 msgstr ""
24549
24550 # type: verbatim
24551 #: ../fish/guestfish-commands.pod:32
24552 #, no-wrap
24553 msgid ""
24554 " copy-out remote [remote ...] localdir\n"
24555 "\n"
24556 msgstr ""
24557
24558 # type: textblock
24559 #: ../fish/guestfish-commands.pod:34
24560 msgid ""
24561 "C<copy-out> copies remote files or directories recursively out of the disk "
24562 "image, placing them on the host disk in a local directory called C<localdir> "
24563 "(which must exist).  This guestfish meta-command turns into a sequence of "
24564 "L</download>, L</tar-out> and other commands as necessary."
24565 msgstr ""
24566
24567 # type: textblock
24568 #: ../fish/guestfish-commands.pod:40
24569 msgid ""
24570 "Multiple remote files and directories can be specified, but the last "
24571 "parameter must always be a local directory.  To download to the current "
24572 "directory, use C<.> as in:"
24573 msgstr ""
24574
24575 # type: verbatim
24576 #: ../fish/guestfish-commands.pod:44
24577 #, no-wrap
24578 msgid ""
24579 " copy-out /home .\n"
24580 "\n"
24581 msgstr ""
24582
24583 # type: textblock
24584 #: ../fish/guestfish-commands.pod:46
24585 msgid ""
24586 "Wildcards cannot be used in the ordinary command, but you can use them with "
24587 "the help of L</glob> like this:"
24588 msgstr ""
24589
24590 # type: verbatim
24591 #: ../fish/guestfish-commands.pod:49
24592 #, no-wrap
24593 msgid ""
24594 " glob copy-out /home/* .\n"
24595 "\n"
24596 msgstr ""
24597
24598 # type: =head2
24599 #: ../fish/guestfish-commands.pod:51
24600 msgid "echo"
24601 msgstr ""
24602
24603 # type: verbatim
24604 #: ../fish/guestfish-commands.pod:53
24605 #, no-wrap
24606 msgid ""
24607 " echo [params ...]\n"
24608 "\n"
24609 msgstr ""
24610
24611 # type: textblock
24612 #: ../fish/guestfish-commands.pod:55
24613 msgid "This echos the parameters to the terminal."
24614 msgstr ""
24615
24616 # type: =head2
24617 #: ../fish/guestfish-commands.pod:57
24618 msgid "edit"
24619 msgstr ""
24620
24621 # type: =head2
24622 #: ../fish/guestfish-commands.pod:59
24623 msgid "vi"
24624 msgstr ""
24625
24626 # type: =head2
24627 #: ../fish/guestfish-commands.pod:61
24628 msgid "emacs"
24629 msgstr ""
24630
24631 # type: verbatim
24632 #: ../fish/guestfish-commands.pod:63
24633 #, no-wrap
24634 msgid ""
24635 " edit filename\n"
24636 "\n"
24637 msgstr ""
24638
24639 # type: textblock
24640 #: ../fish/guestfish-commands.pod:65
24641 msgid ""
24642 "This is used to edit a file.  It downloads the file, edits it locally using "
24643 "your editor, then uploads the result."
24644 msgstr ""
24645
24646 # type: textblock
24647 #: ../fish/guestfish-commands.pod:68
24648 msgid ""
24649 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24650 "or C<emacs> you will get those corresponding editors."
24651 msgstr ""
24652
24653 # type: =head2
24654 #: ../fish/guestfish-commands.pod:72
24655 msgid "glob"
24656 msgstr ""
24657
24658 # type: verbatim
24659 #: ../fish/guestfish-commands.pod:74
24660 #, no-wrap
24661 msgid ""
24662 " glob command args...\n"
24663 "\n"
24664 msgstr ""
24665
24666 # type: textblock
24667 #: ../fish/guestfish-commands.pod:76
24668 msgid ""
24669 "Expand wildcards in any paths in the args list, and run C<command> "
24670 "repeatedly on each matching path."
24671 msgstr ""
24672
24673 # type: textblock
24674 #: ../fish/guestfish-commands.pod:79
24675 msgid "See L</WILDCARDS AND GLOBBING>."
24676 msgstr ""
24677
24678 # type: =head2
24679 #: ../fish/guestfish-commands.pod:81
24680 msgid "hexedit"
24681 msgstr ""
24682
24683 # type: verbatim
24684 #: ../fish/guestfish-commands.pod:83
24685 #, no-wrap
24686 msgid ""
24687 " hexedit <filename|device>\n"
24688 " hexedit <filename|device> <max>\n"
24689 " hexedit <filename|device> <start> <max>\n"
24690 "\n"
24691 msgstr ""
24692
24693 # type: textblock
24694 #: ../fish/guestfish-commands.pod:87
24695 msgid ""
24696 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24697 "device."
24698 msgstr ""
24699
24700 # type: textblock
24701 #: ../fish/guestfish-commands.pod:90
24702 msgid ""
24703 "This command works by downloading potentially the whole file or device, "
24704 "editing it locally, then uploading it.  If the file or device is large, you "
24705 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24706 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24707 "usual modifiers allowed such as C<1M> (1 megabyte)."
24708 msgstr ""
24709
24710 # type: textblock
24711 #: ../fish/guestfish-commands.pod:97
24712 msgid "For example to edit the first few sectors of a disk you might do:"
24713 msgstr ""
24714
24715 # type: verbatim
24716 #: ../fish/guestfish-commands.pod:100
24717 #, no-wrap
24718 msgid ""
24719 " hexedit /dev/sda 1M\n"
24720 "\n"
24721 msgstr ""
24722
24723 # type: textblock
24724 #: ../fish/guestfish-commands.pod:102
24725 msgid ""
24726 "which would allow you to edit anywhere within the first megabyte of the "
24727 "disk."
24728 msgstr ""
24729
24730 # type: textblock
24731 #: ../fish/guestfish-commands.pod:105
24732 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24733 msgstr ""
24734
24735 # type: verbatim
24736 #: ../fish/guestfish-commands.pod:107
24737 #, no-wrap
24738 msgid ""
24739 " hexedit /dev/sda1 0x400 0x400\n"
24740 "\n"
24741 msgstr ""
24742
24743 # type: textblock
24744 #: ../fish/guestfish-commands.pod:109
24745 msgid "(assuming the superblock is in the standard location)."
24746 msgstr ""
24747
24748 # type: textblock
24749 #: ../fish/guestfish-commands.pod:111
24750 msgid ""
24751 "This command requires the external L<hexedit(1)> program.  You can specify "
24752 "another program to use by setting the C<HEXEDITOR> environment variable."
24753 msgstr ""
24754
24755 # type: textblock
24756 #: ../fish/guestfish-commands.pod:115
24757 msgid "See also L</hexdump>."
24758 msgstr ""
24759
24760 # type: =head2
24761 #: ../fish/guestfish-commands.pod:117
24762 msgid "lcd"
24763 msgstr ""
24764
24765 # type: verbatim
24766 #: ../fish/guestfish-commands.pod:119
24767 #, no-wrap
24768 msgid ""
24769 " lcd directory\n"
24770 "\n"
24771 msgstr ""
24772
24773 # type: textblock
24774 #: ../fish/guestfish-commands.pod:121
24775 msgid "Change the local directory, ie. the current directory of guestfish itself."
24776 msgstr ""
24777
24778 # type: textblock
24779 #: ../fish/guestfish-commands.pod:124
24780 msgid "Note that C<!cd> won't do what you might expect."
24781 msgstr ""
24782
24783 # type: =head2
24784 #: ../fish/guestfish-commands.pod:126
24785 msgid "man"
24786 msgstr ""
24787
24788 # type: =head2
24789 #: ../fish/guestfish-commands.pod:128
24790 msgid "manual"
24791 msgstr ""
24792
24793 # type: verbatim
24794 #: ../fish/guestfish-commands.pod:130
24795 #, no-wrap
24796 msgid ""
24797 "  man\n"
24798 "\n"
24799 msgstr ""
24800
24801 # type: textblock
24802 #: ../fish/guestfish-commands.pod:132
24803 msgid "Opens the manual page for guestfish."
24804 msgstr ""
24805
24806 # type: =head2
24807 #: ../fish/guestfish-commands.pod:134
24808 msgid "more"
24809 msgstr ""
24810
24811 # type: =head2
24812 #: ../fish/guestfish-commands.pod:136
24813 msgid "less"
24814 msgstr ""
24815
24816 # type: verbatim
24817 #: ../fish/guestfish-commands.pod:138
24818 #, no-wrap
24819 msgid ""
24820 " more filename\n"
24821 "\n"
24822 msgstr ""
24823
24824 # type: verbatim
24825 #: ../fish/guestfish-commands.pod:140
24826 #, no-wrap
24827 msgid ""
24828 " less filename\n"
24829 "\n"
24830 msgstr ""
24831
24832 # type: textblock
24833 #: ../fish/guestfish-commands.pod:142
24834 msgid "This is used to view a file."
24835 msgstr ""
24836
24837 # type: textblock
24838 #: ../fish/guestfish-commands.pod:144
24839 msgid ""
24840 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24841 "C<less> you will get the C<less> command specifically."
24842 msgstr ""
24843
24844 # type: =head2
24845 #: ../fish/guestfish-commands.pod:147
24846 msgid "reopen"
24847 msgstr ""
24848
24849 # type: verbatim
24850 #: ../fish/guestfish-commands.pod:149
24851 #, no-wrap
24852 msgid ""
24853 "  reopen\n"
24854 "\n"
24855 msgstr ""
24856
24857 # type: textblock
24858 #: ../fish/guestfish-commands.pod:151
24859 msgid ""
24860 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24861 "normally, because the handle is closed properly when guestfish exits.  "
24862 "However this is occasionally useful for testing."
24863 msgstr ""
24864
24865 # type: =head2
24866 #: ../fish/guestfish-commands.pod:155
24867 msgid "sparse"
24868 msgstr ""
24869
24870 # type: verbatim
24871 #: ../fish/guestfish-commands.pod:157
24872 #, no-wrap
24873 msgid ""
24874 " sparse filename size\n"
24875 "\n"
24876 msgstr ""
24877
24878 # type: textblock
24879 #: ../fish/guestfish-commands.pod:159
24880 msgid ""
24881 "This creates an empty sparse file of the given size, and then adds so it can "
24882 "be further examined."
24883 msgstr ""
24884
24885 # type: textblock
24886 #: ../fish/guestfish-commands.pod:162
24887 msgid ""
24888 "In all respects it works the same as the L</alloc> command, except that the "
24889 "image file is allocated sparsely, which means that disk blocks are not "
24890 "assigned to the file until they are needed.  Sparse disk files only use "
24891 "space when written to, but they are slower and there is a danger you could "
24892 "run out of real disk space during a write operation."
24893 msgstr ""
24894
24895 # type: =head2
24896 #: ../fish/guestfish-commands.pod:172
24897 msgid "supported"
24898 msgstr ""
24899
24900 # type: verbatim
24901 #: ../fish/guestfish-commands.pod:174
24902 #, no-wrap
24903 msgid ""
24904 " supported\n"
24905 "\n"
24906 msgstr ""
24907
24908 # type: textblock
24909 #: ../fish/guestfish-commands.pod:176
24910 msgid ""
24911 "This command returns a list of the optional groups known to the daemon, and "
24912 "indicates which ones are supported by this build of the libguestfs "
24913 "appliance."
24914 msgstr ""
24915
24916 # type: textblock
24917 #: ../fish/guestfish-commands.pod:180
24918 msgid "See also L<guestfs(3)/AVAILABILITY>."
24919 msgstr ""
24920
24921 # type: =head2
24922 #: ../fish/guestfish-commands.pod:182
24923 msgid "time"
24924 msgstr ""
24925
24926 # type: verbatim
24927 #: ../fish/guestfish-commands.pod:184
24928 #, no-wrap
24929 msgid ""
24930 " time command args...\n"
24931 "\n"
24932 msgstr ""
24933
24934 # type: textblock
24935 #: ../fish/guestfish-commands.pod:186
24936 msgid ""
24937 "Run the command as usual, but print the elapsed time afterwards.  This can "
24938 "be useful for benchmarking operations."
24939 msgstr ""
24940
24941 # type: textblock
24942 #: ../test-tool/libguestfs-test-tool.pod:5
24943 msgid "libguestfs-test-tool - End user tests for libguestfs"
24944 msgstr ""
24945
24946 # type: verbatim
24947 #: ../test-tool/libguestfs-test-tool.pod:9
24948 #, no-wrap
24949 msgid ""
24950 " libguestfs-test-tool [--options]\n"
24951 "\n"
24952 msgstr ""
24953
24954 # type: textblock
24955 #: ../test-tool/libguestfs-test-tool.pod:13
24956 msgid ""
24957 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24958 "and developers, to allow them to check basic libguestfs functionality is "
24959 "working.  This is needed because libguestfs occasionally breaks for reasons "
24960 "beyond our control: usually because of changes in the underlying qemu or "
24961 "kernel packages, or the host environment."
24962 msgstr ""
24963
24964 # type: textblock
24965 #: ../test-tool/libguestfs-test-tool.pod:20
24966 msgid "If you suspect a problem in libguestfs, then just run:"
24967 msgstr ""
24968
24969 # type: verbatim
24970 #: ../test-tool/libguestfs-test-tool.pod:22
24971 #, no-wrap
24972 msgid ""
24973 " libguestfs-test-tool\n"
24974 "\n"
24975 msgstr ""
24976
24977 # type: textblock
24978 #: ../test-tool/libguestfs-test-tool.pod:24
24979 msgid "It will print lots of diagnostic messages."
24980 msgstr ""
24981
24982 # type: textblock
24983 #: ../test-tool/libguestfs-test-tool.pod:26
24984 msgid "If it runs to completion successfully, you will see this near the end:"
24985 msgstr ""
24986
24987 # type: verbatim
24988 #: ../test-tool/libguestfs-test-tool.pod:28
24989 #, no-wrap
24990 msgid ""
24991 " ===== TEST FINISHED OK =====\n"
24992 "\n"
24993 msgstr ""
24994
24995 # type: textblock
24996 #: ../test-tool/libguestfs-test-tool.pod:30
24997 msgid "and the test tool will exit with code 0."
24998 msgstr ""
24999
25000 # type: textblock
25001 #: ../test-tool/libguestfs-test-tool.pod:32
25002 msgid ""
25003 "If it fails (and/or exits with non-zero error code), please paste the "
25004 "B<complete, unedited> output of the test tool into a bug report.  More "
25005 "information about reporting bugs can be found on the "
25006 "L<http://libguestfs.org/> website."
25007 msgstr ""
25008
25009 # type: =item
25010 #: ../test-tool/libguestfs-test-tool.pod:41
25011 msgid "I<--help>"
25012 msgstr ""
25013
25014 # type: textblock
25015 #: ../test-tool/libguestfs-test-tool.pod:43
25016 msgid "Display short usage information and exit."
25017 msgstr ""
25018
25019 # type: =item
25020 #: ../test-tool/libguestfs-test-tool.pod:45
25021 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25022 msgstr ""
25023
25024 # type: textblock
25025 #: ../test-tool/libguestfs-test-tool.pod:47
25026 msgid ""
25027 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25028 "normally look in the C<$libexec> directory that was configured when the tool "
25029 "was built."
25030 msgstr ""
25031
25032 # type: =item
25033 #: ../test-tool/libguestfs-test-tool.pod:51
25034 msgid "I<--qemu qemu_binary>"
25035 msgstr ""
25036
25037 # type: textblock
25038 #: ../test-tool/libguestfs-test-tool.pod:53
25039 msgid ""
25040 "If you have downloaded another qemu binary, point this option at the full "
25041 "path of the binary to try it."
25042 msgstr ""
25043
25044 # type: =item
25045 #: ../test-tool/libguestfs-test-tool.pod:56
25046 msgid "I<--qemudir qemu_source_dir>"
25047 msgstr ""
25048
25049 # type: textblock
25050 #: ../test-tool/libguestfs-test-tool.pod:58
25051 msgid ""
25052 "If you have compiled qemu from source, point this option at the source "
25053 "directory to try it."
25054 msgstr ""
25055
25056 # type: =item
25057 #: ../test-tool/libguestfs-test-tool.pod:61
25058 msgid "I<--timeout N>"
25059 msgstr ""
25060
25061 # type: textblock
25062 #: ../test-tool/libguestfs-test-tool.pod:63
25063 msgid ""
25064 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25065 "does not usually need to be adjusted unless your machine is very slow."
25066 msgstr ""
25067
25068 # type: =head1
25069 #: ../test-tool/libguestfs-test-tool.pod:69
25070 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25071 msgstr ""
25072
25073 # type: textblock
25074 #: ../test-tool/libguestfs-test-tool.pod:71
25075 msgid ""
25076 "If you have compiled another version of qemu from source and would like to "
25077 "try that, then you can use the I<--qemudir> option to point to the qemu "
25078 "source directory."
25079 msgstr ""
25080
25081 # type: textblock
25082 #: ../test-tool/libguestfs-test-tool.pod:75
25083 msgid ""
25084 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25085 "option to point to the binary."
25086 msgstr ""
25087
25088 # type: textblock
25089 #: ../test-tool/libguestfs-test-tool.pod:78
25090 msgid ""
25091 "When using an alternate qemu with libguestfs, usually you would need to "
25092 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
25093 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
25094 "when you use either of the I<--qemudir> or I<--qemu> options."
25095 msgstr ""
25096
25097 # type: textblock
25098 #: ../test-tool/libguestfs-test-tool.pod:85
25099 msgid ""
25100 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25101 "I<1> if there was an error."
25102 msgstr ""
25103
25104 # type: =item
25105 #: ../test-tool/libguestfs-test-tool.pod:92
25106 msgid "/usr/libexec/libguestfs-test-tool-helper"
25107 msgstr ""
25108
25109 # type: textblock
25110 #: ../test-tool/libguestfs-test-tool.pod:94
25111 msgid ""
25112 "This helper program is run inside the appliance and provides additional "
25113 "tests."
25114 msgstr ""
25115
25116 # type: =item
25117 #: ../test-tool/libguestfs-test-tool.pod:97
25118 msgid "/usr/bin/mkisofs"
25119 msgstr ""
25120
25121 # type: textblock
25122 #: ../test-tool/libguestfs-test-tool.pod:99
25123 msgid ""
25124 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25125 "which is used as part of the tests."
25126 msgstr ""
25127
25128 # type: textblock
25129 #: ../test-tool/libguestfs-test-tool.pod:106
25130 msgid ""
25131 "For the full list of environment variables which may affect libguestfs, "
25132 "please see the L<guestfs(3)> manual page."
25133 msgstr ""
25134
25135 # type: textblock
25136 #: ../test-tool/libguestfs-test-tool.pod:111
25137 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25138 msgstr ""
25139
25140 # type: textblock
25141 #: ../test-tool/libguestfs-test-tool.pod:121
25142 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25143 msgstr ""
25144
25145 # type: textblock
25146 #: ../fuse/guestmount.pod:5
25147 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25148 msgstr ""
25149
25150 # type: verbatim
25151 #: ../fuse/guestmount.pod:9
25152 #, no-wrap
25153 msgid ""
25154 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25155 "\n"
25156 msgstr ""
25157
25158 # type: verbatim
25159 #: ../fuse/guestmount.pod:11
25160 #, no-wrap
25161 msgid ""
25162 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25163 "\n"
25164 msgstr ""
25165
25166 # type: verbatim
25167 #: ../fuse/guestmount.pod:13
25168 #, no-wrap
25169 msgid ""
25170 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25171 "\n"
25172 msgstr ""
25173
25174 # type: textblock
25175 #: ../fuse/guestmount.pod:17
25176 msgid ""
25177 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25178 "machines.  If you do this, you risk disk corruption in the VM."
25179 msgstr ""
25180
25181 # type: textblock
25182 #: ../fuse/guestmount.pod:22
25183 msgid ""
25184 "The guestmount program can be used to mount virtual machine filesystems and "
25185 "other disk images on the host.  It uses libguestfs for access to the guest "
25186 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25187 "a mountable device."
25188 msgstr ""
25189
25190 # type: textblock
25191 #: ../fuse/guestmount.pod:27
25192 msgid ""
25193 "Along with other options, you have to give at least one device (I<-a> "
25194 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25195 "option) or use the I<-i> inspection option.  How this works is better "
25196 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25197 "below."
25198 msgstr ""
25199
25200 # type: textblock
25201 #: ../fuse/guestmount.pod:33
25202 msgid ""
25203 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25204 "by you, and the filesystem will not be visible to any other users unless you "
25205 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25206 "the filesystem, use the C<fusermount -u> command."
25207 msgstr ""
25208
25209 # type: textblock
25210 #: ../fuse/guestmount.pod:41
25211 msgid ""
25212 "For a typical Windows guest which has its main filesystem on the first "
25213 "partition:"
25214 msgstr ""
25215
25216 # type: verbatim
25217 #: ../fuse/guestmount.pod:44
25218 #, no-wrap
25219 msgid ""
25220 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25221 "\n"
25222 msgstr ""
25223
25224 # type: textblock
25225 #: ../fuse/guestmount.pod:46
25226 msgid ""
25227 "For a typical Linux guest which has a /boot filesystem on the first "
25228 "partition, and the root filesystem on a logical volume:"
25229 msgstr ""
25230
25231 # type: verbatim
25232 #: ../fuse/guestmount.pod:49
25233 #, no-wrap
25234 msgid ""
25235 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25236 "\n"
25237 msgstr ""
25238
25239 # type: textblock
25240 #: ../fuse/guestmount.pod:51
25241 msgid "To get libguestfs to detect guest mountpoints for you:"
25242 msgstr ""
25243
25244 # type: verbatim
25245 #: ../fuse/guestmount.pod:53
25246 #, no-wrap
25247 msgid ""
25248 " guestmount -a guest.img -i --ro /mnt\n"
25249 "\n"
25250 msgstr ""
25251
25252 # type: textblock
25253 #: ../fuse/guestmount.pod:55
25254 msgid "For a libvirt guest called \"Guest\" you could do:"
25255 msgstr ""
25256
25257 # type: verbatim
25258 #: ../fuse/guestmount.pod:57
25259 #, no-wrap
25260 msgid ""
25261 " guestmount -d Guest -i --ro /mnt\n"
25262 "\n"
25263 msgstr ""
25264
25265 # type: textblock
25266 #: ../fuse/guestmount.pod:59
25267 msgid ""
25268 "If you don't know what filesystems are contained in a guest or disk image, "
25269 "use L<virt-filesystems(1)> first:"
25270 msgstr ""
25271
25272 # type: verbatim
25273 #: ../fuse/guestmount.pod:62
25274 #, no-wrap
25275 msgid ""
25276 " virt-filesystems MyGuest\n"
25277 "\n"
25278 msgstr ""
25279
25280 # type: textblock
25281 #: ../fuse/guestmount.pod:64
25282 msgid ""
25283 "If you want to trace the libguestfs calls but without excessive debugging "
25284 "information, we recommend:"
25285 msgstr ""
25286
25287 # type: verbatim
25288 #: ../fuse/guestmount.pod:67
25289 #, no-wrap
25290 msgid ""
25291 " guestmount [...] --trace /mnt\n"
25292 "\n"
25293 msgstr ""
25294
25295 # type: textblock
25296 #: ../fuse/guestmount.pod:69
25297 msgid "If you want to debug the program, we recommend:"
25298 msgstr ""
25299
25300 # type: verbatim
25301 #: ../fuse/guestmount.pod:71
25302 #, no-wrap
25303 msgid ""
25304 " guestmount [...] --trace --verbose /mnt\n"
25305 "\n"
25306 msgstr ""
25307
25308 # type: textblock
25309 #: ../fuse/guestmount.pod:79
25310 msgid "Add a block device or virtual machine image."
25311 msgstr ""
25312
25313 # type: =item
25314 #: ../fuse/guestmount.pod:96
25315 msgid "B<--dir-cache-timeout N>"
25316 msgstr ""
25317
25318 # type: textblock
25319 #: ../fuse/guestmount.pod:98
25320 msgid ""
25321 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25322 "seconds.  The readdir cache [actually, there are several semi-independent "
25323 "caches] is populated after a readdir(2) call with the stat and extended "
25324 "attributes of the files in the directory, in anticipation that they will be "
25325 "requested soon after."
25326 msgstr ""
25327
25328 # type: textblock
25329 #: ../fuse/guestmount.pod:104
25330 msgid ""
25331 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25332 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25333 "requests, only cache existing ones."
25334 msgstr ""
25335
25336 # type: textblock
25337 #: ../fuse/guestmount.pod:122
25338 msgid ""
25339 "If you have untrusted raw-format guest disk images, you should use this "
25340 "option to specify the disk format.  This avoids a possible security problem "
25341 "with malicious guests (CVE-2010-3851).  See also "
25342 "L<guestfs(3)/guestfs_add_drive_opts>."
25343 msgstr ""
25344
25345 # type: =item
25346 #: ../fuse/guestmount.pod:127
25347 msgid "B<--fuse-help>"
25348 msgstr ""
25349
25350 # type: textblock
25351 #: ../fuse/guestmount.pod:129
25352 msgid "Display help on special FUSE options (see I<-o> below)."
25353 msgstr ""
25354
25355 # type: textblock
25356 #: ../fuse/guestmount.pod:133
25357 msgid "Display brief help and exit."
25358 msgstr ""
25359
25360 # type: =item
25361 #: ../fuse/guestmount.pod:146
25362 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25363 msgstr ""
25364
25365 # type: textblock
25366 #: ../fuse/guestmount.pod:148
25367 msgid ""
25368 "Mount the named partition or logical volume on the given mountpoint B<in the "
25369 "guest> (this has nothing to do with mountpoints in the host)."
25370 msgstr ""
25371
25372 # type: textblock
25373 #: ../fuse/guestmount.pod:151
25374 msgid ""
25375 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25376 "something on C</>."
25377 msgstr ""
25378
25379 # type: textblock
25380 #: ../fuse/guestmount.pod:156
25381 msgid ""
25382 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25383 "unmounted.  If you specify this option, then we don't attempt to sync the "
25384 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25385 msgstr ""
25386
25387 # type: =item
25388 #: ../fuse/guestmount.pod:161
25389 msgid "B<-o option> | B<--option option>"
25390 msgstr ""
25391
25392 # type: textblock
25393 #: ../fuse/guestmount.pod:163
25394 msgid "Pass extra options to FUSE."
25395 msgstr ""
25396
25397 # type: textblock
25398 #: ../fuse/guestmount.pod:165
25399 msgid ""
25400 "To get a list of all the extra options supported by FUSE, use the command "
25401 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25402 "of them are a good idea."
25403 msgstr ""
25404
25405 # type: verbatim
25406 #: ../fuse/guestmount.pod:169
25407 #, no-wrap
25408 msgid ""
25409 " guestmount --fuse-help\n"
25410 "\n"
25411 msgstr ""
25412
25413 # type: textblock
25414 #: ../fuse/guestmount.pod:171
25415 msgid "Some potentially useful FUSE options:"
25416 msgstr ""
25417
25418 # type: =item
25419 #: ../fuse/guestmount.pod:175
25420 msgid "B<-o allow_other>"
25421 msgstr ""
25422
25423 # type: textblock
25424 #: ../fuse/guestmount.pod:177
25425 msgid "Allow other users to see the filesystem."
25426 msgstr ""
25427
25428 # type: =item
25429 #: ../fuse/guestmount.pod:179
25430 msgid "B<-o attr_timeout=N>"
25431 msgstr ""
25432
25433 # type: textblock
25434 #: ../fuse/guestmount.pod:181
25435 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25436 msgstr ""
25437
25438 # type: =item
25439 #: ../fuse/guestmount.pod:183
25440 msgid "B<-o kernel_cache>"
25441 msgstr ""
25442
25443 # type: textblock
25444 #: ../fuse/guestmount.pod:185
25445 msgid ""
25446 "Allow the kernel to cache files (reduces the number of reads that have to go "
25447 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25448 "afford the extra memory usage."
25449 msgstr ""
25450
25451 # type: =item
25452 #: ../fuse/guestmount.pod:189
25453 msgid "B<-o uid=N> B<-o gid=N>"
25454 msgstr ""
25455
25456 # type: textblock
25457 #: ../fuse/guestmount.pod:191
25458 msgid ""
25459 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25460 "the chosen values."
25461 msgstr ""
25462
25463 # type: textblock
25464 #: ../fuse/guestmount.pod:198
25465 msgid ""
25466 "Add devices and mount everything read-only.  Also disallow writes and make "
25467 "the disk appear read-only to FUSE."
25468 msgstr ""
25469
25470 # type: textblock
25471 #: ../fuse/guestmount.pod:201
25472 msgid ""
25473 "This is highly recommended if you are not going to edit the guest disk.  If "
25474 "the guest is running and this option is I<not> supplied, then there is a "
25475 "strong risk of disk corruption in the guest.  We try to prevent this from "
25476 "happening, but it is not always possible."
25477 msgstr ""
25478
25479 # type: textblock
25480 #: ../fuse/guestmount.pod:206
25481 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25482 msgstr ""
25483
25484 # type: textblock
25485 #: ../fuse/guestmount.pod:210
25486 msgid "Enable SELinux support for the guest."
25487 msgstr ""
25488
25489 # type: textblock
25490 #: ../fuse/guestmount.pod:214
25491 msgid "Enable verbose messages from underlying libguestfs."
25492 msgstr ""
25493
25494 # type: textblock
25495 #: ../fuse/guestmount.pod:218
25496 msgid "Display the program version and exit."
25497 msgstr ""
25498
25499 # type: textblock
25500 #: ../fuse/guestmount.pod:222
25501 msgid ""
25502 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25503 "FOR READ AND WRITE>."
25504 msgstr ""
25505
25506 # type: =item
25507 #: ../fuse/guestmount.pod:225
25508 msgid "B<-x> | B<--trace>"
25509 msgstr ""
25510
25511 # type: textblock
25512 #: ../fuse/guestmount.pod:227
25513 msgid "Trace libguestfs calls."
25514 msgstr ""
25515
25516 # type: textblock
25517 #: ../fuse/guestmount.pod:229
25518 msgid "This also stops the daemon from forking into the background."
25519 msgstr ""
25520
25521 # type: textblock
25522 #: ../fuse/guestmount.pod:235
25523 msgid ""
25524 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25525 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
25526 "L<http://fuse.sf.net/>."
25527 msgstr ""
25528
25529 # type: textblock
25530 #: ../tools/virt-edit.pl:34
25531 msgid "virt-edit - Edit a file in a virtual machine"
25532 msgstr ""
25533
25534 # type: verbatim
25535 #: ../tools/virt-edit.pl:38
25536 #, no-wrap
25537 msgid ""
25538 " virt-edit [--options] domname file\n"
25539 "\n"
25540 msgstr ""
25541
25542 # type: verbatim
25543 #: ../tools/virt-edit.pl:40
25544 #, no-wrap
25545 msgid ""
25546 " virt-edit [--options] disk.img [disk.img ...] file\n"
25547 "\n"
25548 msgstr ""
25549
25550 # type: verbatim
25551 #: ../tools/virt-edit.pl:42
25552 #, no-wrap
25553 msgid ""
25554 " virt-edit [domname|disk.img] file -e 'expr'\n"
25555 "\n"
25556 msgstr ""
25557
25558 # type: textblock
25559 #: ../tools/virt-edit.pl:46
25560 msgid ""
25561 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25562 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25563 "doing this, but doesn't catch all cases."
25564 msgstr ""
25565
25566 # type: textblock
25567 #: ../tools/virt-edit.pl:52
25568 msgid ""
25569 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25570 "the named virtual machine (or disk image)."
25571 msgstr ""
25572
25573 # type: textblock
25574 #: ../tools/virt-edit.pl:55
25575 msgid ""
25576 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25577 "you should look at the L<guestfish(1)> tool."
25578 msgstr ""
25579
25580 # type: textblock
25581 #: ../tools/virt-edit.pl:60
25582 msgid "Edit the named files interactively:"
25583 msgstr ""
25584
25585 # type: verbatim
25586 #: ../tools/virt-edit.pl:62
25587 #, no-wrap
25588 msgid ""
25589 " virt-edit mydomain /boot/grub/grub.conf\n"
25590 "\n"
25591 msgstr ""
25592
25593 # type: verbatim
25594 #: ../tools/virt-edit.pl:64
25595 #, no-wrap
25596 msgid ""
25597 " virt-edit mydomain /etc/passwd\n"
25598 "\n"
25599 msgstr ""
25600
25601 # type: textblock
25602 #: ../tools/virt-edit.pl:66
25603 msgid ""
25604 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25605 "below).  To change the init default level to 5:"
25606 msgstr ""
25607
25608 # type: verbatim
25609 #: ../tools/virt-edit.pl:70
25610 #, no-wrap
25611 msgid ""
25612 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25613 "\n"
25614 msgstr ""
25615
25616 # type: textblock
25617 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:181 ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
25618 msgid "Display brief help."
25619 msgstr ""
25620
25621 # type: =item
25622 #: ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:187 ../tools/virt-resize.pl:270 ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:114 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
25623 msgid "B<--version>"
25624 msgstr ""
25625
25626 # type: textblock
25627 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:189 ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71 ../tools/virt-tar.pl:116 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:72
25628 msgid "Display version number and exit."
25629 msgstr ""
25630
25631 # type: =item
25632 #: ../tools/virt-edit.pl:96
25633 msgid "B<--backup extension> | B<-b extension>"
25634 msgstr ""
25635
25636 # type: textblock
25637 #: ../tools/virt-edit.pl:98
25638 msgid ""
25639 "Create a backup of the original file I<in the guest disk image>.  The backup "
25640 "has the original filename with C<extension> added."
25641 msgstr ""
25642
25643 # type: textblock
25644 #: ../tools/virt-edit.pl:101
25645 msgid ""
25646 "Usually the first character of C<extension> would be a dot C<.> so you would "
25647 "write:"
25648 msgstr ""
25649
25650 # type: verbatim
25651 #: ../tools/virt-edit.pl:104
25652 #, no-wrap
25653 msgid ""
25654 " virt-edit -b .orig [etc]\n"
25655 "\n"
25656 msgstr ""
25657
25658 # type: textblock
25659 #: ../tools/virt-edit.pl:106
25660 msgid "By default, no backup file is made."
25661 msgstr ""
25662
25663 # type: =item
25664 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:203 ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122 ../tools/virt-list-partitions.pl:78
25665 msgid "B<--connect URI> | B<-c URI>"
25666 msgstr ""
25667
25668 # type: textblock
25669 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:205 ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124 ../tools/virt-list-partitions.pl:80
25670 msgid ""
25671 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25672 "to the default libvirt hypervisor."
25673 msgstr ""
25674
25675 # type: textblock
25676 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:208 ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:83
25677 msgid ""
25678 "If you specify guest block devices directly, then libvirt is not used at "
25679 "all."
25680 msgstr ""
25681
25682 # type: =item
25683 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:215 ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
25684 msgid "B<--format> raw"
25685 msgstr ""
25686
25687 # type: textblock
25688 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:217 ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136 ../tools/virt-list-partitions.pl:92
25689 msgid ""
25690 "Specify the format of disk images given on the command line.  If this is "
25691 "omitted then the format is autodetected from the content of the disk image."
25692 msgstr ""
25693
25694 # type: textblock
25695 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:221 ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140 ../tools/virt-list-partitions.pl:96
25696 msgid ""
25697 "If disk images are requested from libvirt, then this program asks libvirt "
25698 "for this information.  In this case, the value of the format parameter is "
25699 "ignored."
25700 msgstr ""
25701
25702 # type: textblock
25703 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:225 ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540 ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144 ../tools/virt-list-partitions.pl:100
25704 msgid ""
25705 "If working with untrusted raw-format guest disk images, you should ensure "
25706 "the format is always specified."
25707 msgstr ""
25708
25709 # type: =item
25710 #: ../tools/virt-edit.pl:141
25711 msgid "B<--expr EXPR> | B<-e EXPR>"
25712 msgstr ""
25713
25714 # type: textblock
25715 #: ../tools/virt-edit.pl:143
25716 msgid ""
25717 "Instead of launching the external editor, non-interactively apply the Perl "
25718 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25719 "EDITING> below."
25720 msgstr ""
25721
25722 # type: textblock
25723 #: ../tools/virt-edit.pl:147
25724 msgid ""
25725 "Be careful to properly quote the expression to prevent it from being altered "
25726 "by the shell."
25727 msgstr ""
25728
25729 # type: =head1
25730 #: ../tools/virt-edit.pl:268
25731 msgid "NON-INTERACTIVE EDITING"
25732 msgstr ""
25733
25734 # type: textblock
25735 #: ../tools/virt-edit.pl:270
25736 msgid ""
25737 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25738 "administrator can interactively edit the file."
25739 msgstr ""
25740
25741 # type: textblock
25742 #: ../tools/virt-edit.pl:273
25743 msgid ""
25744 "There are two ways also to use C<virt-edit> from scripts in order to make "
25745 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25746 "like this, it's less error-prone to write scripts directly using the "
25747 "libguestfs API and Augeas for configuration file editing.)"
25748 msgstr ""
25749
25750 # type: textblock
25751 #: ../tools/virt-edit.pl:279
25752 msgid ""
25753 "The first method is to temporarily set C<$EDITOR> to any script or program "
25754 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25755 "update C<tmpfile> in place however it likes."
25756 msgstr ""
25757
25758 # type: textblock
25759 #: ../tools/virt-edit.pl:283
25760 msgid ""
25761 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25762 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25763 "instances of C<foo> with C<bar> in a file:"
25764 msgstr ""
25765
25766 # type: verbatim
25767 #: ../tools/virt-edit.pl:287
25768 #, no-wrap
25769 msgid ""
25770 " virt-edit domname filename -e 's/foo/bar/'\n"
25771 "\n"
25772 msgstr ""
25773
25774 # type: textblock
25775 #: ../tools/virt-edit.pl:289
25776 msgid ""
25777 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25778 "For example to delete root's password you could do:"
25779 msgstr ""
25780
25781 # type: verbatim
25782 #: ../tools/virt-edit.pl:292
25783 #, no-wrap
25784 msgid ""
25785 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25786 "\n"
25787 msgstr ""
25788
25789 # type: textblock
25790 #: ../tools/virt-edit.pl:294
25791 msgid ""
25792 "What really happens is that the snippet is evaluated as a Perl expression "
25793 "for each line of the file.  The line, including the final C<\\n>, is passed "
25794 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25795 msgstr ""
25796
25797 # type: textblock
25798 #: ../tools/virt-edit.pl:299
25799 msgid ""
25800 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25801 "C<apache> user account from the password file you can do:"
25802 msgstr ""
25803
25804 # type: verbatim
25805 #: ../tools/virt-edit.pl:302
25806 #, no-wrap
25807 msgid ""
25808 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25809 "\n"
25810 msgstr ""
25811
25812 # type: textblock
25813 #: ../tools/virt-edit.pl:304
25814 msgid ""
25815 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25816 "the end of the file is rather difficult this way since there is no concept "
25817 "of \"last line of the file\" - your expression just doesn't get called "
25818 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25819 "want to do this."
25820 msgstr ""
25821
25822 # type: textblock
25823 #: ../tools/virt-edit.pl:310
25824 msgid ""
25825 "The variable C<$lineno> contains the current line number.  As is "
25826 "traditional, the first line in the file is number C<1>."
25827 msgstr ""
25828
25829 # type: textblock
25830 #: ../tools/virt-edit.pl:313
25831 msgid ""
25832 "The return value from the expression is ignored, but the expression may call "
25833 "C<die> in order to abort the whole program, leaving the original file "
25834 "untouched."
25835 msgstr ""
25836
25837 # type: textblock
25838 #: ../tools/virt-edit.pl:317
25839 msgid ""
25840 "Remember when matching the end of a line that C<$_> may contain the final "
25841 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25842 "newline then neither of these.  Thus to match or substitute some text at the "
25843 "end of a line, use this regular expression:"
25844 msgstr ""
25845
25846 # type: verbatim
25847 #: ../tools/virt-edit.pl:322
25848 #, no-wrap
25849 msgid ""
25850 " /some text(\\r?\\n)?$/\n"
25851 "\n"
25852 msgstr ""
25853
25854 # type: textblock
25855 #: ../tools/virt-edit.pl:324
25856 msgid ""
25857 "Alternately, use the perl C<chomp> function, being careful not to chomp "
25858 "C<$_> itself (since that would remove all newlines from the file):"
25859 msgstr ""
25860
25861 # type: verbatim
25862 #: ../tools/virt-edit.pl:328
25863 #, no-wrap
25864 msgid ""
25865 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25866 "\n"
25867 msgstr ""
25868
25869 # type: =item
25870 #: ../tools/virt-edit.pl:334
25871 msgid "C<EDITOR>"
25872 msgstr ""
25873
25874 # type: textblock
25875 #: ../tools/virt-edit.pl:336
25876 msgid ""
25877 "If set, this string is used as the editor.  It may contain arguments, "
25878 "eg. C<\"emacs -nw\">"
25879 msgstr ""
25880
25881 # type: textblock
25882 #: ../tools/virt-edit.pl:339
25883 msgid "If not set, C<vi> is used."
25884 msgstr ""
25885
25886 # type: =head1
25887 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:141 ../tools/virt-win-reg.pl:477 ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:274 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:250
25888 msgid "SHELL QUOTING"
25889 msgstr ""
25890
25891 # type: textblock
25892 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:479 ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:276 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:252
25893 msgid ""
25894 "Libvirt guest names can contain arbitrary characters, some of which have "
25895 "meaning to the shell such as C<#> and space.  You may need to quote or "
25896 "escape these characters on the command line.  See the shell manual page "
25897 "L<sh(1)> for details."
25898 msgstr ""
25899
25900 # type: textblock
25901 #: ../tools/virt-edit.pl:352
25902 msgid ""
25903 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25904 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
25905 "L<perl(1)>, L<perlre(1)>."
25906 msgstr ""
25907
25908 # type: =head1
25909 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:510 ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:292 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:269
25910 msgid "AUTHOR"
25911 msgstr ""
25912
25913 # type: textblock
25914 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:512 ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:294 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:271
25915 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25916 msgstr ""
25917
25918 # type: textblock
25919 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
25920 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25921 msgstr ""
25922
25923 # type: textblock
25924 #: ../tools/virt-win-reg.pl:37
25925 msgid ""
25926 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25927 "guest"
25928 msgstr ""
25929
25930 # type: verbatim
25931 #: ../tools/virt-win-reg.pl:41
25932 #, no-wrap
25933 msgid ""
25934 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25935 "\n"
25936 msgstr ""
25937
25938 # type: verbatim
25939 #: ../tools/virt-win-reg.pl:43
25940 #, no-wrap
25941 msgid ""
25942 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25943 "\n"
25944 msgstr ""
25945
25946 # type: verbatim
25947 #: ../tools/virt-win-reg.pl:45
25948 #, no-wrap
25949 msgid ""
25950 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25951 "\n"
25952 msgstr ""
25953
25954 # type: verbatim
25955 #: ../tools/virt-win-reg.pl:47
25956 #, no-wrap
25957 msgid ""
25958 " virt-win-reg --merge domname [input.reg ...]\n"
25959 "\n"
25960 msgstr ""
25961
25962 # type: verbatim
25963 #: ../tools/virt-win-reg.pl:49
25964 #, no-wrap
25965 msgid ""
25966 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25967 "\n"
25968 msgstr ""
25969
25970 # type: textblock
25971 #: ../tools/virt-win-reg.pl:53
25972 msgid ""
25973 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25974 "virtual machines.  If you do this, you I<will> get irreversible disk "
25975 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25976 "but doesn't catch all cases."
25977 msgstr ""
25978
25979 # type: textblock
25980 #: ../tools/virt-win-reg.pl:58
25981 msgid ""
25982 "Modifying the Windows Registry is an inherently risky operation.  The format "
25983 "is deliberately obscure and undocumented, and Registry changes can leave the "
25984 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25985 "you have a reliable backup first."
25986 msgstr ""
25987
25988 # type: textblock
25989 #: ../tools/virt-win-reg.pl:65
25990 msgid ""
25991 "This program can export and merge Windows Registry entries from a Windows "
25992 "guest."
25993 msgstr ""
25994
25995 # type: textblock
25996 #: ../tools/virt-win-reg.pl:68
25997 msgid ""
25998 "The first parameter is the libvirt guest name or the raw disk image of a "
25999 "Windows guest."
26000 msgstr ""
26001
26002 # type: textblock
26003 #: ../tools/virt-win-reg.pl:71
26004 msgid ""
26005 "If C<--merge> is I<not> specified, then the chosen registry key is "
26006 "displayed/exported (recursively).  For example:"
26007 msgstr ""
26008
26009 # type: verbatim
26010 #: ../tools/virt-win-reg.pl:74
26011 #, no-wrap
26012 msgid ""
26013 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26014 "\n"
26015 msgstr ""
26016
26017 # type: textblock
26018 #: ../tools/virt-win-reg.pl:76
26019 msgid "You can also display single values from within registry keys, for example:"
26020 msgstr ""
26021
26022 # type: verbatim
26023 #: ../tools/virt-win-reg.pl:79
26024 #, no-wrap
26025 msgid ""
26026 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26027 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26028 " Windows 7 Enterprise\n"
26029 "\n"
26030 msgstr ""
26031
26032 # type: textblock
26033 #: ../tools/virt-win-reg.pl:83
26034 msgid ""
26035 "With C<--merge>, you can merge a textual regedit file into the Windows "
26036 "Registry:"
26037 msgstr ""
26038
26039 # type: verbatim
26040 #: ../tools/virt-win-reg.pl:86
26041 #, no-wrap
26042 msgid ""
26043 " $ virt-win-reg --merge Windows7 changes.reg\n"
26044 "\n"
26045 msgstr ""
26046
26047 # type: =head2
26048 #: ../tools/virt-win-reg.pl:88
26049 msgid "SUPPORTED SYSTEMS"
26050 msgstr ""
26051
26052 # type: textblock
26053 #: ../tools/virt-win-reg.pl:90
26054 msgid ""
26055 "The program currently supports Windows NT-derived guests starting with "
26056 "Windows XP through to at least Windows 7."
26057 msgstr ""
26058
26059 # type: textblock
26060 #: ../tools/virt-win-reg.pl:93
26061 msgid ""
26062 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26063 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26064 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26065 msgstr ""
26066
26067 # type: textblock
26068 #: ../tools/virt-win-reg.pl:97
26069 msgid ""
26070 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26071 "C<HKEY_USERS>."
26072 msgstr ""
26073
26074 # type: textblock
26075 #: ../tools/virt-win-reg.pl:100
26076 msgid ""
26077 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26078 "time."
26079 msgstr ""
26080
26081 # type: =head2
26082 #: ../tools/virt-win-reg.pl:103
26083 msgid "NOTE"
26084 msgstr ""
26085
26086 # type: textblock
26087 #: ../tools/virt-win-reg.pl:105
26088 msgid ""
26089 "This program is only meant for simple access to the registry.  If you want "
26090 "to do complicated things with the registry, we suggest you download the "
26091 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26092 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26093 "L<hivexregedit(1)>."
26094 msgstr ""
26095
26096 # type: =head2
26097 #: ../tools/virt-win-reg.pl:111
26098 msgid "ENCODING"
26099 msgstr ""
26100
26101 # type: textblock
26102 #: ../tools/virt-win-reg.pl:113
26103 msgid ""
26104 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26105 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26106 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26107 "with Windows-style line endings, you may need to reencode the whole file "
26108 "before or after processing."
26109 msgstr ""
26110
26111 # type: textblock
26112 #: ../tools/virt-win-reg.pl:119
26113 msgid ""
26114 "To reencode a file from Windows format to Linux (before processing it with "
26115 "the C<--merge> option), you would do something like this:"
26116 msgstr ""
26117
26118 # type: verbatim
26119 #: ../tools/virt-win-reg.pl:122
26120 #, no-wrap
26121 msgid ""
26122 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26123 "\n"
26124 msgstr ""
26125
26126 # type: textblock
26127 #: ../tools/virt-win-reg.pl:124
26128 msgid ""
26129 "To go in the opposite direction, after exporting and before sending the file "
26130 "to a Windows user, do something like this:"
26131 msgstr ""
26132
26133 # type: verbatim
26134 #: ../tools/virt-win-reg.pl:127
26135 #, no-wrap
26136 msgid ""
26137 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26138 "\n"
26139 msgstr ""
26140
26141 # type: textblock
26142 #: ../tools/virt-win-reg.pl:129
26143 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26144 msgstr ""
26145
26146 # type: textblock
26147 #: ../tools/virt-win-reg.pl:131
26148 msgid ""
26149 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26150 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26151 "Windows-style (CRLF) line endings, like this:"
26152 msgstr ""
26153
26154 # type: verbatim
26155 #: ../tools/virt-win-reg.pl:135
26156 #, no-wrap
26157 msgid ""
26158 " $ file software.reg\n"
26159 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26160 " with CRLF line terminators\n"
26161 "\n"
26162 msgstr ""
26163
26164 # type: textblock
26165 #: ../tools/virt-win-reg.pl:139
26166 msgid "This file would need conversion before you could C<--merge> it."
26167 msgstr ""
26168
26169 # type: textblock
26170 #: ../tools/virt-win-reg.pl:143
26171 msgid ""
26172 "Be careful when passing parameters containing C<\\> (backslash) in the "
26173 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26174 "(but not both) to protect them from the shell."
26175 msgstr ""
26176
26177 # type: textblock
26178 #: ../tools/virt-win-reg.pl:147
26179 msgid "Paths and value names are case-insensitive."
26180 msgstr ""
26181
26182 # type: =head2
26183 #: ../tools/virt-win-reg.pl:149
26184 msgid "CurrentControlSet etc."
26185 msgstr ""
26186
26187 # type: textblock
26188 #: ../tools/virt-win-reg.pl:151
26189 msgid ""
26190 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26191 "Registry at the level of the hive file, and therefore you cannot modify "
26192 "these."
26193 msgstr ""
26194
26195 # type: textblock
26196 #: ../tools/virt-win-reg.pl:155
26197 msgid ""
26198 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26199 "circumstances it might refer to another control set.  The way to find out is "
26200 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26201 msgstr ""
26202
26203 # type: verbatim
26204 #: ../tools/virt-win-reg.pl:159
26205 #, no-wrap
26206 msgid ""
26207 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26208 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26209 " \"Current\"=dword:00000001\n"
26210 " \"Default\"=dword:00000001\n"
26211 " \"Failed\"=dword:00000000\n"
26212 " \"LastKnownGood\"=dword:00000002\n"
26213 "\n"
26214 msgstr ""
26215
26216 # type: textblock
26217 #: ../tools/virt-win-reg.pl:166
26218 msgid "\"Current\" is the one which Windows will choose when it boots."
26219 msgstr ""
26220
26221 # type: textblock
26222 #: ../tools/virt-win-reg.pl:168
26223 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26224 msgstr ""
26225
26226 # type: =item
26227 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26228 msgid "B<--debug>"
26229 msgstr ""
26230
26231 # type: textblock
26232 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:498
26233 msgid "Enable debugging messages."
26234 msgstr ""
26235
26236 # type: =item
26237 #: ../tools/virt-win-reg.pl:232
26238 msgid "B<--merge>"
26239 msgstr ""
26240
26241 # type: textblock
26242 #: ../tools/virt-win-reg.pl:234
26243 msgid ""
26244 "In merge mode, this merges a textual regedit file into the Windows Registry "
26245 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26246 "displays or exports Registry entries instead."
26247 msgstr ""
26248
26249 # type: textblock
26250 #: ../tools/virt-win-reg.pl:238
26251 msgid ""
26252 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26253 "result in disk corruption.  However exporting (without this flag)  is always "
26254 "safe."
26255 msgstr ""
26256
26257 # type: =item
26258 #: ../tools/virt-win-reg.pl:246
26259 msgid "B<--encoding> UTF-16LE|ASCII"
26260 msgstr ""
26261
26262 # type: textblock
26263 #: ../tools/virt-win-reg.pl:248
26264 msgid ""
26265 "When merging (only), you may need to specify the encoding for strings to be "
26266 "used in the hive file.  This is explained in detail in "
26267 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26268 msgstr ""
26269
26270 # type: textblock
26271 #: ../tools/virt-win-reg.pl:252
26272 msgid ""
26273 "The default is to use UTF-16LE, which should work with recent versions of "
26274 "Windows."
26275 msgstr ""
26276
26277 # type: textblock
26278 #: ../tools/virt-win-reg.pl:486
26279 msgid ""
26280 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26281 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26282 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26283 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26284 msgstr ""
26285
26286 # type: textblock
26287 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26288 msgid ""
26289 "When reporting bugs, please enable debugging and capture the I<complete> "
26290 "output:"
26291 msgstr ""
26292
26293 # type: verbatim
26294 #: ../tools/virt-win-reg.pl:504
26295 #, no-wrap
26296 msgid ""
26297 " export LIBGUESTFS_DEBUG=1\n"
26298 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26299 "\n"
26300 msgstr ""
26301
26302 # type: textblock
26303 #: ../tools/virt-win-reg.pl:507
26304 msgid ""
26305 "Attach /tmp/virt-win-reg.log to a new bug report at "
26306 "L<https://bugzilla.redhat.com/>"
26307 msgstr ""
26308
26309 # type: textblock
26310 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1510 ../tools/virt-make-fs.pl:565
26311 msgid "Copyright (C) 2010 Red Hat Inc."
26312 msgstr ""
26313
26314 # type: textblock
26315 #: ../tools/virt-resize.pl:42
26316 msgid "virt-resize - Resize a virtual machine disk"
26317 msgstr ""
26318
26319 # type: verbatim
26320 #: ../tools/virt-resize.pl:46
26321 #, no-wrap
26322 msgid ""
26323 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26324 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26325 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26326 "\n"
26327 msgstr ""
26328
26329 # type: textblock
26330 #: ../tools/virt-resize.pl:52
26331 msgid ""
26332 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26333 "larger or smaller overall, and resizing or deleting any partitions contained "
26334 "within."
26335 msgstr ""
26336
26337 # type: textblock
26338 #: ../tools/virt-resize.pl:56
26339 msgid ""
26340 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26341 "not> be used on live virtual machines - for consistent results, shut the "
26342 "virtual machine down before resizing it."
26343 msgstr ""
26344
26345 # type: textblock
26346 #: ../tools/virt-resize.pl:60
26347 msgid ""
26348 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
26349 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
26350 msgstr ""
26351
26352 # type: textblock
26353 #: ../tools/virt-resize.pl:66
26354 msgid ""
26355 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26356 "fill the extra 5GB of space."
26357 msgstr ""
26358
26359 # type: verbatim
26360 #: ../tools/virt-resize.pl:69
26361 #, no-wrap
26362 msgid ""
26363 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26364 " virt-filesystems --long --h --all -a olddisk\n"
26365 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26366 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26367 "\n"
26368 msgstr ""
26369
26370 # type: textblock
26371 #: ../tools/virt-resize.pl:74
26372 msgid ""
26373 "As above, but make the /boot partition 200MB bigger, while giving the "
26374 "remaining space to /dev/sda2:"
26375 msgstr ""
26376
26377 # type: verbatim
26378 #: ../tools/virt-resize.pl:77
26379 #, no-wrap
26380 msgid ""
26381 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26382 "\n"
26383 msgstr ""
26384
26385 # type: textblock
26386 #: ../tools/virt-resize.pl:79
26387 msgid "As above, but the output format will be uncompressed qcow2:"
26388 msgstr ""
26389
26390 # type: verbatim
26391 #: ../tools/virt-resize.pl:81
26392 #, no-wrap
26393 msgid ""
26394 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26395 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26396 "\n"
26397 msgstr ""
26398
26399 # type: =head1
26400 #: ../tools/virt-resize.pl:84
26401 msgid "DETAILED USAGE"
26402 msgstr ""
26403
26404 # type: =head2
26405 #: ../tools/virt-resize.pl:86
26406 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26407 msgstr ""
26408
26409 # type: =item
26410 #: ../tools/virt-resize.pl:90
26411 msgid "1. Shut down the virtual machine"
26412 msgstr ""
26413
26414 # type: =item
26415 #: ../tools/virt-resize.pl:92
26416 msgid "2. Locate input disk image"
26417 msgstr ""
26418
26419 # type: textblock
26420 #: ../tools/virt-resize.pl:94
26421 msgid ""
26422 "Locate the input disk image (ie. the file or device on the host containing "
26423 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26424 "dumpxml> like this to find the disk image name:"
26425 msgstr ""
26426
26427 # type: verbatim
26428 #: ../tools/virt-resize.pl:98
26429 #, no-wrap
26430 msgid ""
26431 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26432 " Found 1 nodes:\n"
26433 " -- NODE --\n"
26434 " <source dev=\"/dev/vg/lv_guest\" />\n"
26435 "\n"
26436 msgstr ""
26437
26438 # type: =item
26439 #: ../tools/virt-resize.pl:103
26440 msgid "3. Look at current sizing"
26441 msgstr ""
26442
26443 # type: textblock
26444 #: ../tools/virt-resize.pl:105
26445 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
26446 msgstr ""
26447
26448 # type: verbatim
26449 #: ../tools/virt-resize.pl:108
26450 #, no-wrap
26451 msgid ""
26452 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
26453 " Name       Type       Size  Parent\n"
26454 " /dev/sda1  partition  101M  /dev/sda\n"
26455 " /dev/sda2  partition  7.9G  /dev/sda\n"
26456 " /dev/sda   device     8.0G  -\n"
26457 "\n"
26458 msgstr ""
26459
26460 # type: textblock
26461 #: ../tools/virt-resize.pl:114
26462 msgid ""
26463 "(This example is a virtual machine with an 8 GB disk which we would like to "
26464 "expand up to 10 GB)."
26465 msgstr ""
26466
26467 # type: =item
26468 #: ../tools/virt-resize.pl:117
26469 msgid "4. Create output disk"
26470 msgstr ""
26471
26472 # type: textblock
26473 #: ../tools/virt-resize.pl:119
26474 msgid ""
26475 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26476 "to store the resized output disk."
26477 msgstr ""
26478
26479 # type: textblock
26480 #: ../tools/virt-resize.pl:122
26481 msgid "To store the resized disk image in a file, create a file of a suitable size:"
26482 msgstr ""
26483
26484 # type: verbatim
26485 #: ../tools/virt-resize.pl:125
26486 #, no-wrap
26487 msgid ""
26488 " # rm -f outdisk\n"
26489 " # truncate -s 10G outdisk\n"
26490 "\n"
26491 msgstr ""
26492
26493 # type: textblock
26494 #: ../tools/virt-resize.pl:128
26495 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26496 msgstr ""
26497
26498 # type: verbatim
26499 #: ../tools/virt-resize.pl:130
26500 #, no-wrap
26501 msgid ""
26502 " # lvcreate -L 10G -n lv_name vg_name\n"
26503 "\n"
26504 msgstr ""
26505
26506 # type: textblock
26507 #: ../tools/virt-resize.pl:132
26508 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26509 msgstr ""
26510
26511 # type: verbatim
26512 #: ../tools/virt-resize.pl:134
26513 #, no-wrap
26514 msgid ""
26515 " # virsh pool-list\n"
26516 " # virsh vol-create-as poolname newvol 10G\n"
26517 "\n"
26518 msgstr ""
26519
26520 # type: =item
26521 #: ../tools/virt-resize.pl:137
26522 msgid "5. Resize"
26523 msgstr ""
26524
26525 # type: textblock
26526 #: ../tools/virt-resize.pl:139
26527 msgid ""
26528 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26529 "file) and the output disk.  The output disk is the one created in the "
26530 "previous step."
26531 msgstr ""
26532
26533 # type: verbatim
26534 #: ../tools/virt-resize.pl:143
26535 #, no-wrap
26536 msgid ""
26537 " # virt-resize indisk outdisk\n"
26538 "\n"
26539 msgstr ""
26540
26541 # type: textblock
26542 #: ../tools/virt-resize.pl:145
26543 msgid ""
26544 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26545 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26546 "larger, then an extra, empty partition is created at the end of the disk "
26547 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26548 "error."
26549 msgstr ""
26550
26551 # type: textblock
26552 #: ../tools/virt-resize.pl:151
26553 msgid ""
26554 "More realistically you'd want to expand existing partitions in the disk "
26555 "image by passing extra options (for the full list see the L</OPTIONS> "
26556 "section below)."
26557 msgstr ""
26558
26559 # type: textblock
26560 #: ../tools/virt-resize.pl:155
26561 msgid ""
26562 "L</--expand> is the most useful option.  It expands the named partition "
26563 "within the disk to fill any extra space:"
26564 msgstr ""
26565
26566 # type: verbatim
26567 #: ../tools/virt-resize.pl:158
26568 #, no-wrap
26569 msgid ""
26570 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26571 "\n"
26572 msgstr ""
26573
26574 # type: textblock
26575 #: ../tools/virt-resize.pl:160
26576 msgid ""
26577 "(In this case, an extra partition is I<not> created at the end of the disk, "
26578 "because there will be no unused space)."
26579 msgstr ""
26580
26581 # type: textblock
26582 #: ../tools/virt-resize.pl:163
26583 msgid ""
26584 "L</--resize> is the other commonly used option.  The following would "
26585 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26586 "rest of the available space:"
26587 msgstr ""
26588
26589 # type: verbatim
26590 #: ../tools/virt-resize.pl:167
26591 #, no-wrap
26592 msgid ""
26593 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26594 "     indisk outdisk\n"
26595 "\n"
26596 msgstr ""
26597
26598 # type: textblock
26599 #: ../tools/virt-resize.pl:170
26600 msgid ""
26601 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26602 "if virt-resize knows how, it will resize the contents, the equivalent of "
26603 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
26604 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
26605 "filesystems, so you would have to online resize them after booting the "
26606 "guest."
26607 msgstr ""
26608
26609 # type: textblock
26610 #: ../tools/virt-resize.pl:177
26611 msgid "Other options are covered below."
26612 msgstr ""
26613
26614 # type: =item
26615 #: ../tools/virt-resize.pl:179
26616 msgid "6. Test"
26617 msgstr ""
26618
26619 # type: textblock
26620 #: ../tools/virt-resize.pl:181
26621 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26622 msgstr ""
26623
26624 # type: textblock
26625 #: ../tools/virt-resize.pl:183
26626 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26627 msgstr ""
26628
26629 # type: verbatim
26630 #: ../tools/virt-resize.pl:185
26631 #, no-wrap
26632 msgid ""
26633 " # virsh edit guestname\n"
26634 "\n"
26635 msgstr ""
26636
26637 # type: textblock
26638 #: ../tools/virt-resize.pl:187
26639 msgid ""
26640 "Change E<lt>source ...E<gt>, see "
26641 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
26642 msgstr ""
26643
26644 # type: textblock
26645 #: ../tools/virt-resize.pl:190
26646 msgid "Then start up the domain with the new, resized disk:"
26647 msgstr ""
26648
26649 # type: verbatim
26650 #: ../tools/virt-resize.pl:192
26651 #, no-wrap
26652 msgid ""
26653 " # virsh start guestname\n"
26654 "\n"
26655 msgstr ""
26656
26657 # type: textblock
26658 #: ../tools/virt-resize.pl:194
26659 msgid ""
26660 "and check that it still works.  See also the L</NOTES> section below for "
26661 "additional information."
26662 msgstr ""
26663
26664 # type: =item
26665 #: ../tools/virt-resize.pl:197
26666 msgid "7. Resize LVs etc inside the guest"
26667 msgstr ""
26668
26669 # type: textblock
26670 #: ../tools/virt-resize.pl:199
26671 msgid "(This can also be done offline using L<guestfish(1)>)"
26672 msgstr ""
26673
26674 # type: textblock
26675 #: ../tools/virt-resize.pl:201
26676 msgid ""
26677 "Once the guest has booted you should see the new space available, at least "
26678 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26679 "may need to resize LVs inside PVs, and also resize filesystem types that "
26680 "virt-resize does not know how to expand."
26681 msgstr ""
26682
26683 # type: =head2
26684 #: ../tools/virt-resize.pl:208
26685 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26686 msgstr ""
26687
26688 # type: textblock
26689 #: ../tools/virt-resize.pl:210
26690 msgid ""
26691 "Shrinking is somewhat more complex than expanding, and only an overview is "
26692 "given here."
26693 msgstr ""
26694
26695 # type: textblock
26696 #: ../tools/virt-resize.pl:213
26697 msgid ""
26698 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26699 "filesystems).  The user has to shrink content before passing the disk image "
26700 "to virt-resize, and virt-resize will check that the content has been shrunk "
26701 "properly."
26702 msgstr ""
26703
26704 # type: textblock
26705 #: ../tools/virt-resize.pl:218
26706 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26707 msgstr ""
26708
26709 # type: textblock
26710 #: ../tools/virt-resize.pl:220
26711 msgid ""
26712 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26713 "steps 3 and 4 above to allocate a new disk image."
26714 msgstr ""
26715
26716 # type: textblock
26717 #: ../tools/virt-resize.pl:223
26718 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26719 msgstr ""
26720
26721 # type: =head2
26722 #: ../tools/virt-resize.pl:226
26723 msgid "IGNORING OR DELETING PARTITIONS"
26724 msgstr ""
26725
26726 # type: textblock
26727 #: ../tools/virt-resize.pl:228
26728 msgid ""
26729 "virt-resize also gives a convenient way to ignore or delete partitions when "
26730 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26731 "up the copy where you don't care about the existing contents of a "
26732 "partition.  Deleting a partition removes it completely, but note that it "
26733 "also renumbers any partitions after the one which is deleted, which can "
26734 "leave some guests unbootable."
26735 msgstr ""
26736
26737 # type: =head2
26738 #: ../tools/virt-resize.pl:235
26739 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26740 msgstr ""
26741
26742 # type: textblock
26743 #: ../tools/virt-resize.pl:237
26744 msgid ""
26745 "If the input disk is in qcow2 format, then you may prefer that the output is "
26746 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26747 "the fly.  The output format is simply determined by the format of the empty "
26748 "output container that you provide.  Thus to create qcow2 output, use:"
26749 msgstr ""
26750
26751 # type: verbatim
26752 #: ../tools/virt-resize.pl:243
26753 #, no-wrap
26754 msgid ""
26755 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26756 "\n"
26757 msgstr ""
26758
26759 # type: textblock
26760 #: ../tools/virt-resize.pl:245
26761 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26762 msgstr ""
26763
26764 # type: textblock
26765 #: ../tools/virt-resize.pl:247
26766 msgid "Similarly, to get non-sparse raw output use:"
26767 msgstr ""
26768
26769 # type: verbatim
26770 #: ../tools/virt-resize.pl:249
26771 #, no-wrap
26772 msgid ""
26773 " fallocate -l size outdisk\n"
26774 "\n"
26775 msgstr ""
26776
26777 # type: textblock
26778 #: ../tools/virt-resize.pl:251
26779 msgid ""
26780 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
26781 "if=/dev/zero of=outdisk bs=1M count=..>)"
26782 msgstr ""
26783
26784 # type: textblock
26785 #: ../tools/virt-resize.pl:264
26786 msgid "Display help."
26787 msgstr ""
26788
26789 # type: =item
26790 #: ../tools/virt-resize.pl:278
26791 msgid "B<--resize part=size>"
26792 msgstr ""
26793
26794 # type: textblock
26795 #: ../tools/virt-resize.pl:280
26796 msgid ""
26797 "Resize the named partition (expanding or shrinking it) so that it has the "
26798 "given size."
26799 msgstr ""
26800
26801 # type: textblock
26802 #: ../tools/virt-resize.pl:283
26803 msgid ""
26804 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26805 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26806 "Exabytes; or as a percentage of the current size; or as a relative number or "
26807 "percentage.  For example:"
26808 msgstr ""
26809
26810 # type: verbatim
26811 #: ../tools/virt-resize.pl:288
26812 #, no-wrap
26813 msgid ""
26814 " --resize /dev/sda2=10G\n"
26815 "\n"
26816 msgstr ""
26817
26818 # type: verbatim
26819 #: ../tools/virt-resize.pl:290
26820 #, no-wrap
26821 msgid ""
26822 " --resize /dev/sda4=90%\n"
26823 "\n"
26824 msgstr ""
26825
26826 # type: verbatim
26827 #: ../tools/virt-resize.pl:292
26828 #, no-wrap
26829 msgid ""
26830 " --resize /dev/sda2=+1G\n"
26831 "\n"
26832 msgstr ""
26833
26834 # type: verbatim
26835 #: ../tools/virt-resize.pl:294
26836 #, no-wrap
26837 msgid ""
26838 " --resize /dev/sda2=-200M\n"
26839 "\n"
26840 msgstr ""
26841
26842 # type: verbatim
26843 #: ../tools/virt-resize.pl:296
26844 #, no-wrap
26845 msgid ""
26846 " --resize /dev/sda1=+128K\n"
26847 "\n"
26848 msgstr ""
26849
26850 # type: verbatim
26851 #: ../tools/virt-resize.pl:298
26852 #, no-wrap
26853 msgid ""
26854 " --resize /dev/sda1=+10%\n"
26855 "\n"
26856 msgstr ""
26857
26858 # type: verbatim
26859 #: ../tools/virt-resize.pl:300
26860 #, no-wrap
26861 msgid ""
26862 " --resize /dev/sda1=-10%\n"
26863 "\n"
26864 msgstr ""
26865
26866 # type: textblock
26867 #: ../tools/virt-resize.pl:302
26868 msgid ""
26869 "You can increase the size of any partition.  Virt-resize will expand the "
26870 "direct content of the partition if it knows how (see C<--expand> below)."
26871 msgstr ""
26872
26873 # type: textblock
26874 #: ../tools/virt-resize.pl:306
26875 msgid ""
26876 "You can only I<decrease> the size of partitions that contain filesystems or "
26877 "PVs which have already been shrunk.  Virt-resize will check this has been "
26878 "done before proceeding, or else will print an error (see also "
26879 "C<--resize-force>)."
26880 msgstr ""
26881
26882 # type: textblock
26883 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403 ../tools/virt-resize.pl:420
26884 msgid "You can give this option multiple times."
26885 msgstr ""
26886
26887 # type: =item
26888 #: ../tools/virt-resize.pl:317
26889 msgid "B<--resize-force part=size>"
26890 msgstr ""
26891
26892 # type: textblock
26893 #: ../tools/virt-resize.pl:319
26894 msgid ""
26895 "This is the same as C<--resize> except that it will let you decrease the "
26896 "size of any partition.  Generally this means you will lose any data which "
26897 "was at the end of the partition you shrink, but you may not care about that "
26898 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26899 "as a swap partition)."
26900 msgstr ""
26901
26902 # type: textblock
26903 #: ../tools/virt-resize.pl:325
26904 msgid "See also the C<--ignore> option."
26905 msgstr ""
26906
26907 # type: =item
26908 #: ../tools/virt-resize.pl:331
26909 msgid "B<--expand part>"
26910 msgstr ""
26911
26912 # type: textblock
26913 #: ../tools/virt-resize.pl:333
26914 msgid ""
26915 "Expand the named partition so it uses up all extra space (space left over "
26916 "after any other resize changes that you request have been done)."
26917 msgstr ""
26918
26919 # type: textblock
26920 #: ../tools/virt-resize.pl:336
26921 msgid ""
26922 "If virt-resize knows how, it will expand the direct content of the "
26923 "partition.  For example, if the partition is an LVM PV, it will expand the "
26924 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26925 "content it doesn't know about alone."
26926 msgstr ""
26927
26928 # type: textblock
26929 #: ../tools/virt-resize.pl:341
26930 msgid "Currently virt-resize can resize:"
26931 msgstr ""
26932
26933 # type: textblock
26934 #: ../tools/virt-resize.pl:347
26935 msgid ""
26936 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26937 "partition."
26938 msgstr ""
26939
26940 # type: textblock
26941 #: ../tools/virt-resize.pl:352
26942 msgid ""
26943 "NTFS filesystems contained directly in a partition, if libguestfs was "
26944 "compiled with support for NTFS."
26945 msgstr ""
26946
26947 # type: textblock
26948 #: ../tools/virt-resize.pl:355
26949 msgid ""
26950 "The filesystem must have been shut down consistently last time it was used.  "
26951 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26952 "consistency check, so at the first boot after resizing Windows will check "
26953 "the disk."
26954 msgstr ""
26955
26956 # type: textblock
26957 #: ../tools/virt-resize.pl:362
26958 msgid ""
26959 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
26960 "inside the PV, but see the C<--LV-expand> option.  The user could also "
26961 "resize LVs as desired after boot."
26962 msgstr ""
26963
26964 # type: textblock
26965 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
26966 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26967 msgstr ""
26968
26969 # type: =item
26970 #: ../tools/virt-resize.pl:374
26971 msgid "B<--shrink part>"
26972 msgstr ""
26973
26974 # type: textblock
26975 #: ../tools/virt-resize.pl:376
26976 msgid ""
26977 "Shrink the named partition until the overall disk image fits in the "
26978 "destination.  The named partition B<must> contain a filesystem or PV which "
26979 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26980 "online tools).  Virt-resize will check this and give an error if it has not "
26981 "been done."
26982 msgstr ""
26983
26984 # type: textblock
26985 #: ../tools/virt-resize.pl:382
26986 msgid ""
26987 "The amount by which the overall disk must be shrunk (after carrying out all "
26988 "other operations requested by the user) is called the \"deficit\".  For "
26989 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26990 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26991 "would give an error unless the user specified a partition to shrink and that "
26992 "partition had more than a gigabyte of free space."
26993 msgstr ""
26994
26995 # type: =item
26996 #: ../tools/virt-resize.pl:396
26997 msgid "B<--ignore part>"
26998 msgstr ""
26999
27000 # type: textblock
27001 #: ../tools/virt-resize.pl:398
27002 msgid ""
27003 "Ignore the named partition.  Effectively this means the partition is "
27004 "allocated on the destination disk, but the content is not copied across from "
27005 "the source disk.  The content of the partition will be blank (all zero "
27006 "bytes)."
27007 msgstr ""
27008
27009 # type: =item
27010 #: ../tools/virt-resize.pl:409
27011 msgid "B<--delete part>"
27012 msgstr ""
27013
27014 # type: textblock
27015 #: ../tools/virt-resize.pl:411
27016 msgid ""
27017 "Delete the named partition.  It would be more accurate to describe this as "
27018 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27019 "the original disk image is left intact."
27020 msgstr ""
27021
27022 # type: textblock
27023 #: ../tools/virt-resize.pl:415
27024 msgid ""
27025 "Note that when you delete a partition, then anything contained in the "
27026 "partition is also deleted.  Furthermore, this causes any partitions that "
27027 "come after to be I<renumbered>, which can easily make your guest unbootable."
27028 msgstr ""
27029
27030 # type: =item
27031 #: ../tools/virt-resize.pl:426
27032 msgid "B<--LV-expand logvol>"
27033 msgstr ""
27034
27035 # type: textblock
27036 #: ../tools/virt-resize.pl:428
27037 msgid ""
27038 "This takes the logical volume and, as a final step, expands it to fill all "
27039 "the space available in its volume group.  A typical usage, assuming a Linux "
27040 "guest with a single PV C</dev/sda2> and a root device called "
27041 "C</dev/vg_guest/lv_root> would be:"
27042 msgstr ""
27043
27044 # type: verbatim
27045 #: ../tools/virt-resize.pl:433
27046 #, no-wrap
27047 msgid ""
27048 " virt-resize indisk outdisk \\\n"
27049 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27050 "\n"
27051 msgstr ""
27052
27053 # type: textblock
27054 #: ../tools/virt-resize.pl:436
27055 msgid ""
27056 "This would first expand the partition (and PV), and then expand the root "
27057 "device to fill the extra space in the PV."
27058 msgstr ""
27059
27060 # type: textblock
27061 #: ../tools/virt-resize.pl:439
27062 msgid ""
27063 "The contents of the LV are also resized if virt-resize knows how to do "
27064 "that.  You can stop virt-resize from trying to expand the content by using "
27065 "the option C<--no-expand-content>."
27066 msgstr ""
27067
27068 # type: textblock
27069 #: ../tools/virt-resize.pl:443
27070 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27071 msgstr ""
27072
27073 # type: textblock
27074 #: ../tools/virt-resize.pl:446
27075 msgid ""
27076 "You can give this option multiple times, I<but> it doesn't make sense to do "
27077 "this unless the logical volumes you specify are all in different volume "
27078 "groups."
27079 msgstr ""
27080
27081 # type: =item
27082 #: ../tools/virt-resize.pl:454
27083 msgid "B<--no-copy-boot-loader>"
27084 msgstr ""
27085
27086 # type: textblock
27087 #: ../tools/virt-resize.pl:456
27088 msgid ""
27089 "By default, virt-resize copies over some sectors at the start of the disk "
27090 "(up to the beginning of the first partition).  Commonly these sectors "
27091 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27092 "in order for the guest to boot correctly."
27093 msgstr ""
27094
27095 # type: textblock
27096 #: ../tools/virt-resize.pl:461
27097 msgid ""
27098 "If you specify this flag, then this initial copy is not done.  You may need "
27099 "to reinstall the boot loader in this case."
27100 msgstr ""
27101
27102 # type: =item
27103 #: ../tools/virt-resize.pl:469
27104 msgid "B<--no-extra-partition>"
27105 msgstr ""
27106
27107 # type: textblock
27108 #: ../tools/virt-resize.pl:471
27109 msgid ""
27110 "By default, virt-resize creates an extra partition if there is any extra, "
27111 "unused space after all resizing has happened.  Use this option to prevent "
27112 "the extra partition from being created.  If you do this then the extra space "
27113 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27114 "tool in the guest."
27115 msgstr ""
27116
27117 # type: textblock
27118 #: ../tools/virt-resize.pl:477
27119 msgid ""
27120 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27121 "will be created."
27122 msgstr ""
27123
27124 # type: =item
27125 #: ../tools/virt-resize.pl:484
27126 msgid "B<--no-expand-content>"
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-resize.pl:486
27131 msgid ""
27132 "By default, virt-resize will try to expand the direct contents of "
27133 "partitions, if it knows how (see C<--expand> option above)."
27134 msgstr ""
27135
27136 # type: textblock
27137 #: ../tools/virt-resize.pl:489
27138 msgid ""
27139 "If you give the C<--no-expand-content> option then virt-resize will not "
27140 "attempt this."
27141 msgstr ""
27142
27143 # type: =item
27144 #: ../tools/virt-resize.pl:496
27145 msgid "B<-d> | B<--debug>"
27146 msgstr ""
27147
27148 # type: =item
27149 #: ../tools/virt-resize.pl:504
27150 msgid "B<-n> | B<--dryrun>"
27151 msgstr ""
27152
27153 # type: textblock
27154 #: ../tools/virt-resize.pl:506
27155 msgid "Print a summary of what would be done, but don't do anything."
27156 msgstr ""
27157
27158 # type: =item
27159 #: ../tools/virt-resize.pl:512
27160 msgid "B<-q> | B<--quiet>"
27161 msgstr ""
27162
27163 # type: textblock
27164 #: ../tools/virt-resize.pl:514
27165 msgid "Don't print the summary."
27166 msgstr ""
27167
27168 # type: textblock
27169 #: ../tools/virt-resize.pl:522
27170 msgid ""
27171 "Specify the format of the input disk image.  If this flag is not given then "
27172 "it is auto-detected from the image itself."
27173 msgstr ""
27174
27175 # type: textblock
27176 #: ../tools/virt-resize.pl:528
27177 msgid ""
27178 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27179 "AND NON-SPARSE RAW FORMATS>."
27180 msgstr ""
27181
27182 # type: =item
27183 #: ../tools/virt-resize.pl:535
27184 msgid "B<--output-format> raw"
27185 msgstr ""
27186
27187 # type: textblock
27188 #: ../tools/virt-resize.pl:537
27189 msgid ""
27190 "Specify the format of the output disk image.  If this flag is not given then "
27191 "it is auto-detected from the image itself."
27192 msgstr ""
27193
27194 # type: textblock
27195 #: ../tools/virt-resize.pl:543
27196 msgid ""
27197 "Note that you still need to create the output disk with the right format.  "
27198 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27199 msgstr ""
27200
27201 # type: =head1
27202 #: ../tools/virt-resize.pl:1419
27203 msgid "NOTES"
27204 msgstr ""
27205
27206 # type: =head2
27207 #: ../tools/virt-resize.pl:1421
27208 msgid "\"Partition 1 does not end on cylinder boundary.\""
27209 msgstr ""
27210
27211 # type: textblock
27212 #: ../tools/virt-resize.pl:1423
27213 msgid ""
27214 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27215 "means the partitions will not be aligned to the ancient CHS geometry.  "
27216 "However CHS geometry is meaningless for disks manufactured since the early "
27217 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27218 "cylinders is not required by any modern operating system."
27219 msgstr ""
27220
27221 # type: =head2
27222 #: ../tools/virt-resize.pl:1430
27223 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27224 msgstr ""
27225
27226 # type: textblock
27227 #: ../tools/virt-resize.pl:1432
27228 msgid ""
27229 "In Windows Vista and later versions, Microsoft switched to using a separate "
27230 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27231 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27232 "the boot partition.  Doing so seems to break the guest completely.  However "
27233 "expanding the second partition (ie. C: drive) should work."
27234 msgstr ""
27235
27236 # type: textblock
27237 #: ../tools/virt-resize.pl:1439
27238 msgid ""
27239 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27240 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27241 "it find errors) is nothing to worry about."
27242 msgstr ""
27243
27244 # type: =head2
27245 #: ../tools/virt-resize.pl:1443
27246 msgid "GUEST BOOT STUCK AT \"GRUB\""
27247 msgstr ""
27248
27249 # type: textblock
27250 #: ../tools/virt-resize.pl:1445
27251 msgid ""
27252 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27253 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27254 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27255 "although we think is to do with partition alignment."
27256 msgstr ""
27257
27258 # type: verbatim
27259 #: ../tools/virt-resize.pl:1450
27260 #, no-wrap
27261 msgid ""
27262 " guestfish -i -a newdisk\n"
27263 " ><fs> cat /boot/grub/device.map\n"
27264 " # check the contents of this file are sensible or\n"
27265 " # edit the file if necessary\n"
27266 " ><fs> grub-install / /dev/vda\n"
27267 " ><fs> exit\n"
27268 "\n"
27269 msgstr ""
27270
27271 # type: textblock
27272 #: ../tools/virt-resize.pl:1457
27273 msgid ""
27274 "For more flexible guest reconfiguration, including if you need to specify "
27275 "other parameters to grub-install, use L<virt-rescue(1)>."
27276 msgstr ""
27277
27278 # type: =head1
27279 #: ../tools/virt-resize.pl:1460
27280 msgid "ALTERNATIVE TOOLS"
27281 msgstr ""
27282
27283 # type: textblock
27284 #: ../tools/virt-resize.pl:1462
27285 msgid ""
27286 "There are several proprietary tools for resizing partitions.  We won't "
27287 "mention any here."
27288 msgstr ""
27289
27290 # type: textblock
27291 #: ../tools/virt-resize.pl:1465
27292 msgid ""
27293 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27294 "operations on disk images.  They can resize and move partitions, but I don't "
27295 "think they can do anything with the contents, and they certainly don't "
27296 "understand LVM."
27297 msgstr ""
27298
27299 # type: textblock
27300 #: ../tools/virt-resize.pl:1470
27301 msgid ""
27302 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27303 "but at a much lower level.  You will probably end up hand-calculating sector "
27304 "offsets, which is something that virt-resize was designed to avoid.  If you "
27305 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27306 "C<--debug> flag."
27307 msgstr ""
27308
27309 # type: textblock
27310 #: ../tools/virt-resize.pl:1485
27311 msgid ""
27312 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
27313 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
27314 "L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
27315 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27316 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27317 msgstr ""
27318
27319 # type: textblock
27320 #: ../tools/virt-list-filesystems.pl:32
27321 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27322 msgstr ""
27323
27324 # type: verbatim
27325 #: ../tools/virt-list-filesystems.pl:36
27326 #, no-wrap
27327 msgid ""
27328 " virt-list-filesystems [--options] domname\n"
27329 "\n"
27330 msgstr ""
27331
27332 # type: verbatim
27333 #: ../tools/virt-list-filesystems.pl:38
27334 #, no-wrap
27335 msgid ""
27336 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27337 "\n"
27338 msgstr ""
27339
27340 # type: textblock
27341 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
27342 msgid ""
27343 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
27344 "replacement."
27345 msgstr ""
27346
27347 # type: textblock
27348 #: ../tools/virt-list-filesystems.pl:45
27349 msgid ""
27350 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27351 "are contained in a virtual machine or disk image."
27352 msgstr ""
27353
27354 # type: textblock
27355 #: ../tools/virt-list-filesystems.pl:49
27356 msgid ""
27357 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27358 "functionality.  For more complex cases you should look at the "
27359 "L<guestfish(1)> tool."
27360 msgstr ""
27361
27362 # type: =item
27363 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
27364 msgid "B<-l> | B<--long>"
27365 msgstr ""
27366
27367 # type: textblock
27368 #: ../tools/virt-list-filesystems.pl:108
27369 msgid ""
27370 "With this option, C<virt-list-filesystems> displays the type of each "
27371 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27372 msgstr ""
27373
27374 # type: =item
27375 #: ../tools/virt-list-filesystems.pl:115
27376 msgid "B<-a> | B<--all>"
27377 msgstr ""
27378
27379 # type: textblock
27380 #: ../tools/virt-list-filesystems.pl:117
27381 msgid ""
27382 "Normally we only show mountable filesystems.  If this option is given then "
27383 "swap devices are shown too."
27384 msgstr ""
27385
27386 # type: textblock
27387 #: ../tools/virt-list-filesystems.pl:191
27388 msgid ""
27389 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
27390 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
27391 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27392 msgstr ""
27393
27394 # type: textblock
27395 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
27396 msgid "Copyright (C) 2009 Red Hat Inc."
27397 msgstr ""
27398
27399 # type: textblock
27400 #: ../tools/virt-tar.pl:33
27401 msgid "virt-tar - Extract or upload files to a virtual machine"
27402 msgstr ""
27403
27404 # type: verbatim
27405 #: ../tools/virt-tar.pl:37
27406 #, no-wrap
27407 msgid ""
27408 " virt-tar [--options] -x domname directory tarball\n"
27409 "\n"
27410 msgstr ""
27411
27412 # type: verbatim
27413 #: ../tools/virt-tar.pl:39
27414 #, no-wrap
27415 msgid ""
27416 " virt-tar [--options] -u domname tarball directory\n"
27417 "\n"
27418 msgstr ""
27419
27420 # type: verbatim
27421 #: ../tools/virt-tar.pl:41
27422 #, no-wrap
27423 msgid ""
27424 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27425 "\n"
27426 msgstr ""
27427
27428 # type: verbatim
27429 #: ../tools/virt-tar.pl:43
27430 #, no-wrap
27431 msgid ""
27432 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27433 "\n"
27434 msgstr ""
27435
27436 # type: textblock
27437 #: ../tools/virt-tar.pl:47
27438 msgid "Download C</home> from the VM into a local tarball:"
27439 msgstr ""
27440
27441 # type: verbatim
27442 #: ../tools/virt-tar.pl:49
27443 #, no-wrap
27444 msgid ""
27445 " virt-tar -x domname /home home.tar\n"
27446 "\n"
27447 msgstr ""
27448
27449 # type: verbatim
27450 #: ../tools/virt-tar.pl:51
27451 #, no-wrap
27452 msgid ""
27453 " virt-tar -zx domname /home home.tar.gz\n"
27454 "\n"
27455 msgstr ""
27456
27457 # type: textblock
27458 #: ../tools/virt-tar.pl:53
27459 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27460 msgstr ""
27461
27462 # type: verbatim
27463 #: ../tools/virt-tar.pl:55
27464 #, no-wrap
27465 msgid ""
27466 " virt-tar -u domname uploadstuff.tar /tmp\n"
27467 "\n"
27468 msgstr ""
27469
27470 # type: verbatim
27471 #: ../tools/virt-tar.pl:57
27472 #, no-wrap
27473 msgid ""
27474 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27475 "\n"
27476 msgstr ""
27477
27478 # type: textblock
27479 #: ../tools/virt-tar.pl:61
27480 msgid ""
27481 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27482 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27483 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27484 msgstr ""
27485
27486 # type: textblock
27487 #: ../tools/virt-tar.pl:66
27488 msgid ""
27489 "You can use C<-x> (extract) on live virtual machines, but you might get "
27490 "inconsistent results or errors if there is filesystem activity inside the "
27491 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27492 "work, but the only way to guarantee consistent results is if the virtual "
27493 "machine is shut down."
27494 msgstr ""
27495
27496 # type: textblock
27497 #: ../tools/virt-tar.pl:74
27498 msgid ""
27499 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27500 "parts of a guest filesystem.  There are many possibilities: making backups, "
27501 "uploading data files, snooping on guest activity, fixing or customizing "
27502 "guests, etc."
27503 msgstr ""
27504
27505 # type: textblock
27506 #: ../tools/virt-tar.pl:79
27507 msgid ""
27508 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27509 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27510 "should look at the L<guestfish(1)> tool."
27511 msgstr ""
27512
27513 # type: textblock
27514 #: ../tools/virt-tar.pl:83
27515 msgid ""
27516 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27517 "its contents (recursively) from the virtual machine into a local tarball.  "
27518 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27519 "virtual machine.  You cannot use these two options together."
27520 msgstr ""
27521
27522 # type: textblock
27523 #: ../tools/virt-tar.pl:89
27524 msgid ""
27525 "In addition, you may need to use the C<-z> (gZip) option to enable "
27526 "compression.  When uploading, you have to specify C<-z> if the upload file "
27527 "is compressed because virt-tar won't detect this on its own."
27528 msgstr ""
27529
27530 # type: textblock
27531 #: ../tools/virt-tar.pl:93
27532 msgid ""
27533 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27534 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27535 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27536 "the L<libguestfs(3)> API)."
27537 msgstr ""
27538
27539 # type: =item
27540 #: ../tools/virt-tar.pl:151
27541 msgid "B<-x> | B<--extract> | B<--download>"
27542 msgstr ""
27543
27544 # type: =item
27545 #: ../tools/virt-tar.pl:153
27546 msgid "B<-u> | B<--upload>"
27547 msgstr ""
27548
27549 # type: textblock
27550 #: ../tools/virt-tar.pl:155
27551 msgid ""
27552 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27553 "local tarball."
27554 msgstr ""
27555
27556 # type: textblock
27557 #: ../tools/virt-tar.pl:158
27558 msgid ""
27559 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27560 "Please read the L</WARNING> section above before using this option."
27561 msgstr ""
27562
27563 # type: textblock
27564 #: ../tools/virt-tar.pl:162
27565 msgid "You must specify exactly one of these options."
27566 msgstr ""
27567
27568 # type: =item
27569 #: ../tools/virt-tar.pl:168
27570 msgid "B<-z> | B<--gzip>"
27571 msgstr ""
27572
27573 # type: textblock
27574 #: ../tools/virt-tar.pl:170
27575 msgid "Specify that the input or output tarball is gzip-compressed."
27576 msgstr ""
27577
27578 # type: textblock
27579 #: ../tools/virt-tar.pl:283
27580 msgid ""
27581 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27582 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
27583 "L<http://libguestfs.org/>."
27584 msgstr ""
27585
27586 # type: textblock
27587 #: ../tools/virt-make-fs.pl:37
27588 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27589 msgstr ""
27590
27591 # type: verbatim
27592 #: ../tools/virt-make-fs.pl:41
27593 #, no-wrap
27594 msgid ""
27595 " virt-make-fs [--options] input.tar output.img\n"
27596 "\n"
27597 msgstr ""
27598
27599 # type: verbatim
27600 #: ../tools/virt-make-fs.pl:43
27601 #, no-wrap
27602 msgid ""
27603 " virt-make-fs [--options] input.tar.gz output.img\n"
27604 "\n"
27605 msgstr ""
27606
27607 # type: verbatim
27608 #: ../tools/virt-make-fs.pl:45
27609 #, no-wrap
27610 msgid ""
27611 " virt-make-fs [--options] directory output.img\n"
27612 "\n"
27613 msgstr ""
27614
27615 # type: textblock
27616 #: ../tools/virt-make-fs.pl:49
27617 msgid ""
27618 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27619 "archive or some files in a directory.  It is similar to tools like "
27620 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
27621 "it can create common filesystem types like ext2/3 or NTFS, which can be "
27622 "useful if you want to attach these filesystems to existing virtual machines "
27623 "(eg. to import large amounts of read-only data to a VM)."
27624 msgstr ""
27625
27626 # type: textblock
27627 #: ../tools/virt-make-fs.pl:57
27628 msgid "Basic usage is:"
27629 msgstr ""
27630
27631 # type: verbatim
27632 #: ../tools/virt-make-fs.pl:59
27633 #, no-wrap
27634 msgid ""
27635 " virt-make-fs input output\n"
27636 "\n"
27637 msgstr ""
27638
27639 # type: textblock
27640 #: ../tools/virt-make-fs.pl:61
27641 msgid ""
27642 "where C<input> is either a directory containing files that you want to add, "
27643 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27644 "C<output> is a disk image.  The input type is detected automatically.  The "
27645 "output disk image defaults to a raw ext2 image unless you specify extra "
27646 "flags (see L</OPTIONS> below)."
27647 msgstr ""
27648
27649 # type: =head2
27650 #: ../tools/virt-make-fs.pl:67
27651 msgid "EXTRA SPACE"
27652 msgstr ""
27653
27654 # type: textblock
27655 #: ../tools/virt-make-fs.pl:69
27656 msgid ""
27657 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27658 "the files that it contains, but might have extra space.  Depending on how "
27659 "you are going to use the output, you might think this extra space is wasted "
27660 "and want to minimize it, or you might want to leave space so that more files "
27661 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27662 "but you can use the C<--size> flag to leave space in the filesystem if you "
27663 "want it."
27664 msgstr ""
27665
27666 # type: textblock
27667 #: ../tools/virt-make-fs.pl:77
27668 msgid ""
27669 "An alternative way to leave extra space but not make the output image any "
27670 "bigger is to use an alternative disk image format (instead of the default "
27671 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27672 "image format (check your hypervisor supports this before using it).  This "
27673 "allows you to choose a large C<--size> but the extra space won't actually be "
27674 "allocated in the image until you try to store something in it."
27675 msgstr ""
27676
27677 # type: textblock
27678 #: ../tools/virt-make-fs.pl:85
27679 msgid ""
27680 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27681 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
27682 "virt-make-resize to build another image from scratch."
27683 msgstr ""
27684
27685 # type: =head3
27686 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
27687 msgid "EXAMPLE"
27688 msgstr ""
27689
27690 # type: verbatim
27691 #: ../tools/virt-make-fs.pl:91
27692 #, no-wrap
27693 msgid ""
27694 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27695 "\n"
27696 msgstr ""
27697
27698 # type: =head2
27699 #: ../tools/virt-make-fs.pl:93
27700 msgid "FILESYSTEM TYPE"
27701 msgstr ""
27702
27703 # type: textblock
27704 #: ../tools/virt-make-fs.pl:95
27705 msgid ""
27706 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27707 "libguestfs supports can be used (but I<not> read-only formats like "
27708 "ISO9660).  Here are some of the more common choices:"
27709 msgstr ""
27710
27711 # type: =item
27712 #: ../tools/virt-make-fs.pl:101
27713 msgid "I<ext3>"
27714 msgstr ""
27715
27716 # type: textblock
27717 #: ../tools/virt-make-fs.pl:103
27718 msgid ""
27719 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27720 "you are not going to use the filesystem in a way that requires the journal, "
27721 "then this is just wasted overhead."
27722 msgstr ""
27723
27724 # type: =item
27725 #: ../tools/virt-make-fs.pl:107
27726 msgid "I<ntfs> or I<vfat>"
27727 msgstr ""
27728
27729 # type: textblock
27730 #: ../tools/virt-make-fs.pl:109
27731 msgid "Useful if exporting data to a Windows guest."
27732 msgstr ""
27733
27734 # type: textblock
27735 #: ../tools/virt-make-fs.pl:111
27736 msgid ""
27737 "I<Note for vfat>: The tar archive or local directory must only contain files "
27738 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27739 "program running within libguestfs is unable to change the ownership of "
27740 "non-root files, since vfat itself does not support this."
27741 msgstr ""
27742
27743 # type: =item
27744 #: ../tools/virt-make-fs.pl:116
27745 msgid "I<minix>"
27746 msgstr ""
27747
27748 # type: textblock
27749 #: ../tools/virt-make-fs.pl:118
27750 msgid ""
27751 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27752 "total filesystem size."
27753 msgstr ""
27754
27755 # type: verbatim
27756 #: ../tools/virt-make-fs.pl:125
27757 #, no-wrap
27758 msgid ""
27759 " virt-make-fs --type=minix input minixfs.img\n"
27760 "\n"
27761 msgstr ""
27762
27763 # type: =head2
27764 #: ../tools/virt-make-fs.pl:127
27765 msgid "TO PARTITION OR NOT TO PARTITION"
27766 msgstr ""
27767
27768 # type: textblock
27769 #: ../tools/virt-make-fs.pl:129
27770 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27771 msgstr ""
27772
27773 # type: textblock
27774 #: ../tools/virt-make-fs.pl:131
27775 msgid ""
27776 "Adding a partition can make the disk image more compatible with certain "
27777 "virtualized operating systems which don't expect to see a filesystem "
27778 "directly located on a block device (Linux doesn't care and will happily "
27779 "handle both types)."
27780 msgstr ""
27781
27782 # type: textblock
27783 #: ../tools/virt-make-fs.pl:136
27784 msgid ""
27785 "On the other hand, if you have a partition table then the output image is no "
27786 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27787 "directly on a partitioned disk image.  (However libguestfs tools such as "
27788 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27789 msgstr ""
27790
27791 # type: textblock
27792 #: ../tools/virt-make-fs.pl:144
27793 msgid "Add an MBR partition:"
27794 msgstr ""
27795
27796 # type: verbatim
27797 #: ../tools/virt-make-fs.pl:146
27798 #, no-wrap
27799 msgid ""
27800 " virt-make-fs --partition -- input disk.img\n"
27801 "\n"
27802 msgstr ""
27803
27804 # type: textblock
27805 #: ../tools/virt-make-fs.pl:148
27806 msgid ""
27807 "If the output disk image could be terabyte-sized or larger, it's better to "
27808 "use an EFI/GPT-compatible partition table:"
27809 msgstr ""
27810
27811 # type: verbatim
27812 #: ../tools/virt-make-fs.pl:151
27813 #, no-wrap
27814 msgid ""
27815 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27816 "\n"
27817 msgstr ""
27818
27819 # type: textblock
27820 #: ../tools/virt-make-fs.pl:179
27821 msgid "Enable debugging information."
27822 msgstr ""
27823
27824 # type: =item
27825 #: ../tools/virt-make-fs.pl:185
27826 msgid "B<--size=E<lt>NE<gt>>"
27827 msgstr ""
27828
27829 # type: =item
27830 #: ../tools/virt-make-fs.pl:187
27831 msgid "B<--size=+E<lt>NE<gt>>"
27832 msgstr ""
27833
27834 # type: =item
27835 #: ../tools/virt-make-fs.pl:189
27836 msgid "B<-s E<lt>NE<gt>>"
27837 msgstr ""
27838
27839 # type: =item
27840 #: ../tools/virt-make-fs.pl:191
27841 msgid "B<-s +E<lt>NE<gt>>"
27842 msgstr ""
27843
27844 # type: textblock
27845 #: ../tools/virt-make-fs.pl:193
27846 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27847 msgstr ""
27848
27849 # type: textblock
27850 #: ../tools/virt-make-fs.pl:196
27851 msgid ""
27852 "If this option is I<not> given, then the output image will be just large "
27853 "enough to contain all the files, with not much wasted space."
27854 msgstr ""
27855
27856 # type: textblock
27857 #: ../tools/virt-make-fs.pl:199
27858 msgid ""
27859 "To choose a fixed size output disk, specify an absolute number followed by "
27860 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27861 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27862 "files, else you will get an error."
27863 msgstr ""
27864
27865 # type: textblock
27866 #: ../tools/virt-make-fs.pl:204
27867 msgid ""
27868 "To leave extra space, specify C<+> (plus sign) and a number followed by "
27869 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27870 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27871 "the input files, and (approximately) an extra 200 MB free space."
27872 msgstr ""
27873
27874 # type: textblock
27875 #: ../tools/virt-make-fs.pl:210
27876 msgid ""
27877 "Note that virt-make-fs estimates free space, and therefore will not produce "
27878 "filesystems containing precisely the free space requested.  (It is much more "
27879 "expensive and time-consuming to produce a filesystem which has precisely the "
27880 "desired free space)."
27881 msgstr ""
27882
27883 # type: =item
27884 #: ../tools/virt-make-fs.pl:219
27885 msgid "B<--format=E<lt>fmtE<gt>>"
27886 msgstr ""
27887
27888 # type: =item
27889 #: ../tools/virt-make-fs.pl:221
27890 msgid "B<-F E<lt>fmtE<gt>>"
27891 msgstr ""
27892
27893 # type: textblock
27894 #: ../tools/virt-make-fs.pl:223
27895 msgid "Choose the output disk image format."
27896 msgstr ""
27897
27898 # type: textblock
27899 #: ../tools/virt-make-fs.pl:225
27900 msgid "The default is C<raw> (raw disk image)."
27901 msgstr ""
27902
27903 # type: textblock
27904 #: ../tools/virt-make-fs.pl:227
27905 msgid ""
27906 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27907 "that would really make sense here is C<qcow2>."
27908 msgstr ""
27909
27910 # type: =item
27911 #: ../tools/virt-make-fs.pl:234
27912 msgid "B<--type=E<lt>fsE<gt>>"
27913 msgstr ""
27914
27915 # type: =item
27916 #: ../tools/virt-make-fs.pl:236
27917 msgid "B<-t E<lt>fsE<gt>>"
27918 msgstr ""
27919
27920 # type: textblock
27921 #: ../tools/virt-make-fs.pl:238
27922 msgid "Choose the output filesystem type."
27923 msgstr ""
27924
27925 # type: textblock
27926 #: ../tools/virt-make-fs.pl:240
27927 msgid "The default is C<ext2>."
27928 msgstr ""
27929
27930 # type: textblock
27931 #: ../tools/virt-make-fs.pl:242
27932 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
27933 msgstr ""
27934
27935 # type: =item
27936 #: ../tools/virt-make-fs.pl:249
27937 msgid "B<--partition>"
27938 msgstr ""
27939
27940 # type: =item
27941 #: ../tools/virt-make-fs.pl:251
27942 msgid "B<--partition=E<lt>parttypeE<gt>>"
27943 msgstr ""
27944
27945 # type: textblock
27946 #: ../tools/virt-make-fs.pl:253
27947 msgid ""
27948 "If specified, this flag adds an MBR partition table to the output disk "
27949 "image."
27950 msgstr ""
27951
27952 # type: textblock
27953 #: ../tools/virt-make-fs.pl:256
27954 msgid ""
27955 "You can change the partition table type, eg. C<--partition=gpt> for large "
27956 "disks."
27957 msgstr ""
27958
27959 # type: textblock
27960 #: ../tools/virt-make-fs.pl:259
27961 msgid ""
27962 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27963 "might consider the next parameter to be the partition type.  For example:"
27964 msgstr ""
27965
27966 # type: verbatim
27967 #: ../tools/virt-make-fs.pl:263
27968 #, no-wrap
27969 msgid ""
27970 " virt-make-fs --partition input.tar ...\n"
27971 "\n"
27972 msgstr ""
27973
27974 # type: textblock
27975 #: ../tools/virt-make-fs.pl:265
27976 msgid ""
27977 "would cause virt-make-fs to think you wanted to use a partition type of "
27978 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27979 "dash) between options and the input file argument:"
27980 msgstr ""
27981
27982 # type: verbatim
27983 #: ../tools/virt-make-fs.pl:269
27984 #, no-wrap
27985 msgid ""
27986 " virt-make-fs --partition -- input.tar ...\n"
27987 "\n"
27988 msgstr ""
27989
27990 # type: textblock
27991 #: ../tools/virt-make-fs.pl:536
27992 msgid ""
27993 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
27994 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
27995 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27996 msgstr ""
27997
27998 # type: verbatim
27999 #: ../tools/virt-make-fs.pl:553
28000 #, no-wrap
28001 msgid ""
28002 " export LIBGUESTFS_DEBUG=1\n"
28003 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28004 "\n"
28005 msgstr ""
28006
28007 # type: textblock
28008 #: ../tools/virt-make-fs.pl:556
28009 msgid ""
28010 "Attach /tmp/virt-make-fs.log to a new bug report at "
28011 "L<https://bugzilla.redhat.com/>"
28012 msgstr ""
28013
28014 # type: textblock
28015 #: ../tools/virt-list-partitions.pl:32
28016 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28017 msgstr ""
28018
28019 # type: verbatim
28020 #: ../tools/virt-list-partitions.pl:36
28021 #, no-wrap
28022 msgid ""
28023 " virt-list-partitions [--options] domname\n"
28024 "\n"
28025 msgstr ""
28026
28027 # type: verbatim
28028 #: ../tools/virt-list-partitions.pl:38
28029 #, no-wrap
28030 msgid ""
28031 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28032 "\n"
28033 msgstr ""
28034
28035 # type: textblock
28036 #: ../tools/virt-list-partitions.pl:45
28037 msgid ""
28038 "C<virt-list-partitions> is a command line tool to list the partitions that "
28039 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28040 "first step to using L<virt-resize(1)>."
28041 msgstr ""
28042
28043 # type: textblock
28044 #: ../tools/virt-list-partitions.pl:50
28045 msgid ""
28046 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28047 "functionality.  For more complex cases you should look at the "
28048 "L<guestfish(1)> tool."
28049 msgstr ""
28050
28051 # type: =item
28052 #: ../tools/virt-list-partitions.pl:107
28053 msgid "B<-h> | B<--human-readable>"
28054 msgstr ""
28055
28056 # type: textblock
28057 #: ../tools/virt-list-partitions.pl:109
28058 msgid "Show sizes in human-readable form (eg. \"1G\")."
28059 msgstr ""
28060
28061 # type: textblock
28062 #: ../tools/virt-list-partitions.pl:117
28063 msgid ""
28064 "With this option, C<virt-list-partitions> displays the type and size of each "
28065 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28066 msgstr ""
28067
28068 # type: =item
28069 #: ../tools/virt-list-partitions.pl:124
28070 msgid "B<-t> | B<--total>"
28071 msgstr ""
28072
28073 # type: textblock
28074 #: ../tools/virt-list-partitions.pl:126
28075 msgid "Display the total size of each block device (as a separate row or rows)."
28076 msgstr ""
28077
28078 # type: textblock
28079 #: ../tools/virt-list-partitions.pl:259
28080 msgid ""
28081 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
28082 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
28083 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28084 msgstr ""