1fc9e708005b3665d55e170344b64b882a7c8fc7
[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.18\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-12-01 17:35+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:2007 ../src/guestfs.pod:2013 ../src/guestfs.pod:2018 ../src/guestfs.pod:2024 ../src/guestfs.pod:2136 ../src/guestfs.pod:2140 ../src/guestfs.pod:2144 ../src/guestfs.pod:2148 ../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 ""
3587 "For functions that take optional arguments, the optional arguments are "
3588 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3589 "arguments.  A bitmask in the header indicates which optional arguments are "
3590 "meaningful.  The bitmask is also checked to see if it contains bits set "
3591 "which the daemon does not know about (eg. if more optional arguments were "
3592 "added in a later version of the library), and this causes the call to be "
3593 "rejected."
3594 msgstr ""
3595
3596 # type: textblock
3597 #: ../src/guestfs.pod:1866
3598 msgid "The reply message for ordinary functions is:"
3599 msgstr ""
3600
3601 # type: verbatim
3602 #: ../src/guestfs.pod:1868
3603 #, no-wrap
3604 msgid ""
3605 " total length (header + ret,\n"
3606 "      but not including the length word itself)\n"
3607 " struct guestfs_message_header (encoded as XDR)\n"
3608 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3609 "\n"
3610 msgstr ""
3611
3612 # type: textblock
3613 #: ../src/guestfs.pod:1873
3614 msgid ""
3615 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3616 "functions that return no formal return values."
3617 msgstr ""
3618
3619 # type: textblock
3620 #: ../src/guestfs.pod:1876
3621 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3622 msgstr ""
3623
3624 # type: textblock
3625 #: ../src/guestfs.pod:1879
3626 msgid ""
3627 "In the case of an error, a flag is set in the header, and the reply message "
3628 "is slightly changed:"
3629 msgstr ""
3630
3631 # type: verbatim
3632 #: ../src/guestfs.pod:1882
3633 #, no-wrap
3634 msgid ""
3635 " total length (header + error,\n"
3636 "      but not including the length word itself)\n"
3637 " struct guestfs_message_header (encoded as XDR)\n"
3638 " struct guestfs_message_error (encoded as XDR)\n"
3639 "\n"
3640 msgstr ""
3641
3642 # type: textblock
3643 #: ../src/guestfs.pod:1887
3644 msgid ""
3645 "The C<guestfs_message_error> structure contains the error message as a "
3646 "string."
3647 msgstr ""
3648
3649 # type: =head3
3650 #: ../src/guestfs.pod:1890
3651 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3652 msgstr ""
3653
3654 # type: textblock
3655 #: ../src/guestfs.pod:1892
3656 msgid ""
3657 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3658 "The normal request message is sent (see above).  However this is followed by "
3659 "a sequence of file chunks."
3660 msgstr ""
3661
3662 # type: verbatim
3663 #: ../src/guestfs.pod:1896
3664 #, no-wrap
3665 msgid ""
3666 " total length (header + arguments,\n"
3667 "      but not including the length word itself,\n"
3668 "      and not including the chunks)\n"
3669 " struct guestfs_message_header (encoded as XDR)\n"
3670 " struct guestfs_<foo>_args (encoded as XDR)\n"
3671 " sequence of chunks for FileIn param #0\n"
3672 " sequence of chunks for FileIn param #1 etc.\n"
3673 "\n"
3674 msgstr ""
3675
3676 # type: textblock
3677 #: ../src/guestfs.pod:1904
3678 msgid "The \"sequence of chunks\" is:"
3679 msgstr ""
3680
3681 # type: verbatim
3682 #: ../src/guestfs.pod:1906
3683 #, no-wrap
3684 msgid ""
3685 " length of chunk (not including length word itself)\n"
3686 " struct guestfs_chunk (encoded as XDR)\n"
3687 " length of chunk\n"
3688 " struct guestfs_chunk (encoded as XDR)\n"
3689 "   ...\n"
3690 " length of chunk\n"
3691 " struct guestfs_chunk (with data.data_len == 0)\n"
3692 "\n"
3693 msgstr ""
3694
3695 # type: textblock
3696 #: ../src/guestfs.pod:1914
3697 msgid ""
3698 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3699 "is set in the final chunk to indicate either successful completion or early "
3700 "cancellation."
3701 msgstr ""
3702
3703 # type: textblock
3704 #: ../src/guestfs.pod:1918
3705 msgid ""
3706 "At time of writing there are no functions that have more than one FileIn "
3707 "parameter.  However this is (theoretically) supported, by sending the "
3708 "sequence of chunks for each FileIn parameter one after another (from left to "
3709 "right)."
3710 msgstr ""
3711
3712 # type: textblock
3713 #: ../src/guestfs.pod:1923
3714 msgid ""
3715 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3716 "transfer.  The library does this by sending a chunk with a special flag set "
3717 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3718 "RPC, does I<not> send any reply, and goes back to reading the next request."
3719 msgstr ""
3720
3721 # type: textblock
3722 #: ../src/guestfs.pod:1929
3723 msgid ""
3724 "The daemon may also cancel.  It does this by writing a special word "
3725 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3726 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3727 "cancel chunk).  The special word is chosen so that even if cancellation "
3728 "happens right at the end of the transfer (after the library has finished "
3729 "writing and has started listening for the reply), the \"spurious\" cancel "
3730 "flag will not be confused with the reply message."
3731 msgstr ""
3732
3733 # type: textblock
3734 #: ../src/guestfs.pod:1938
3735 msgid ""
3736 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3737 "limit), and also files where the size is not known in advance (eg. from "
3738 "pipes or sockets).  However the chunks are rather small "
3739 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3740 "to keep much in memory."
3741 msgstr ""
3742
3743 # type: =head3
3744 #: ../src/guestfs.pod:1944
3745 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3746 msgstr ""
3747
3748 # type: textblock
3749 #: ../src/guestfs.pod:1946
3750 msgid ""
3751 "The protocol for FileOut parameters is exactly the same as for FileIn "
3752 "parameters, but with the roles of daemon and library reversed."
3753 msgstr ""
3754
3755 # type: verbatim
3756 #: ../src/guestfs.pod:1949
3757 #, no-wrap
3758 msgid ""
3759 " total length (header + ret,\n"
3760 "      but not including the length word itself,\n"
3761 "      and not including the chunks)\n"
3762 " struct guestfs_message_header (encoded as XDR)\n"
3763 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3764 " sequence of chunks for FileOut param #0\n"
3765 " sequence of chunks for FileOut param #1 etc.\n"
3766 "\n"
3767 msgstr ""
3768
3769 # type: =head3
3770 #: ../src/guestfs.pod:1957
3771 msgid "INITIAL MESSAGE"
3772 msgstr ""
3773
3774 # type: textblock
3775 #: ../src/guestfs.pod:1959
3776 msgid ""
3777 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3778 "which indicates that the guest and daemon is alive.  This is what "
3779 "L</guestfs_launch> waits for."
3780 msgstr ""
3781
3782 # type: =head3
3783 #: ../src/guestfs.pod:1963
3784 msgid "PROGRESS NOTIFICATION MESSAGES"
3785 msgstr ""
3786
3787 # type: textblock
3788 #: ../src/guestfs.pod:1965
3789 msgid ""
3790 "The daemon may send progress notification messages at any time.  These are "
3791 "distinguished by the normal length word being replaced by "
3792 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3793 msgstr ""
3794
3795 # type: textblock
3796 #: ../src/guestfs.pod:1969
3797 msgid ""
3798 "The library turns them into progress callbacks (see "
3799 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3800 "discards them if not."
3801 msgstr ""
3802
3803 # type: textblock
3804 #: ../src/guestfs.pod:1973
3805 msgid ""
3806 "The daemon self-limits the frequency of progress messages it sends (see "
3807 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3808 "messages."
3809 msgstr ""
3810
3811 # type: =head1
3812 #: ../src/guestfs.pod:1977
3813 msgid "LIBGUESTFS VERSION NUMBERS"
3814 msgstr ""
3815
3816 # type: textblock
3817 #: ../src/guestfs.pod:1979
3818 msgid ""
3819 "Since April 2010, libguestfs has started to make separate development and "
3820 "stable releases, along with corresponding branches in our git repository.  "
3821 "These separate releases can be identified by version number:"
3822 msgstr ""
3823
3824 # type: verbatim
3825 #: ../src/guestfs.pod:1984
3826 #, no-wrap
3827 msgid ""
3828 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3829 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3830 "       |\n"
3831 "       v\n"
3832 " 1  .  3  .  5\n"
3833 " ^           ^\n"
3834 " |           |\n"
3835 " |           `-------- sub-version\n"
3836 " |\n"
3837 " `------ always '1' because we don't change the ABI\n"
3838 "\n"
3839 msgstr ""
3840
3841 # type: textblock
3842 #: ../src/guestfs.pod:1995
3843 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3844 msgstr ""
3845
3846 # type: textblock
3847 #: ../src/guestfs.pod:1997
3848 msgid ""
3849 "As time passes we cherry pick fixes from the development branch and backport "
3850 "those into the stable branch, the effect being that the stable branch should "
3851 "get more stable and less buggy over time.  So the stable releases are ideal "
3852 "for people who don't need new features but would just like the software to "
3853 "work."
3854 msgstr ""
3855
3856 # type: textblock
3857 #: ../src/guestfs.pod:2003
3858 msgid "Our criteria for backporting changes are:"
3859 msgstr ""
3860
3861 # type: textblock
3862 #: ../src/guestfs.pod:2009
3863 msgid ""
3864 "Documentation changes which don't affect any code are backported unless the "
3865 "documentation refers to a future feature which is not in stable."
3866 msgstr ""
3867
3868 # type: textblock
3869 #: ../src/guestfs.pod:2015
3870 msgid ""
3871 "Bug fixes which are not controversial, fix obvious problems, and have been "
3872 "well tested are backported."
3873 msgstr ""
3874
3875 # type: textblock
3876 #: ../src/guestfs.pod:2020
3877 msgid ""
3878 "Simple rearrangements of code which shouldn't affect how it works get "
3879 "backported.  This is so that the code in the two branches doesn't get too "
3880 "far out of step, allowing us to backport future fixes more easily."
3881 msgstr ""
3882
3883 # type: textblock
3884 #: ../src/guestfs.pod:2026
3885 msgid ""
3886 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3887 "exceptional case: the new feature is required in order to implement an "
3888 "important bug fix."
3889 msgstr ""
3890
3891 # type: textblock
3892 #: ../src/guestfs.pod:2032
3893 msgid ""
3894 "A new stable branch starts when we think the new features in development are "
3895 "substantial and compelling enough over the current stable branch to warrant "
3896 "it.  When that happens we create new stable and development versions 1.N.0 "
3897 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3898 "stable at this point, but by backporting fixes from development, that branch "
3899 "will stabilize over time."
3900 msgstr ""
3901
3902 # type: =head1
3903 #: ../src/guestfs.pod:2040 ../fish/guestfish.pod:915 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3904 msgid "ENVIRONMENT VARIABLES"
3905 msgstr ""
3906
3907 # type: =item
3908 #: ../src/guestfs.pod:2044 ../fish/guestfish.pod:941
3909 msgid "LIBGUESTFS_APPEND"
3910 msgstr ""
3911
3912 # type: textblock
3913 #: ../src/guestfs.pod:2046 ../fish/guestfish.pod:943
3914 msgid "Pass additional options to the guest kernel."
3915 msgstr ""
3916
3917 # type: =item
3918 #: ../src/guestfs.pod:2048 ../fish/guestfish.pod:945
3919 msgid "LIBGUESTFS_DEBUG"
3920 msgstr ""
3921
3922 # type: textblock
3923 #: ../src/guestfs.pod:2050
3924 msgid ""
3925 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3926 "effect as calling C<guestfs_set_verbose (g, 1)>."
3927 msgstr ""
3928
3929 # type: =item
3930 #: ../src/guestfs.pod:2053 ../fish/guestfish.pod:950
3931 msgid "LIBGUESTFS_MEMSIZE"
3932 msgstr ""
3933
3934 # type: textblock
3935 #: ../src/guestfs.pod:2055 ../fish/guestfish.pod:952
3936 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3937 msgstr ""
3938
3939 # type: verbatim
3940 #: ../src/guestfs.pod:2058 ../fish/guestfish.pod:955
3941 #, no-wrap
3942 msgid ""
3943 " LIBGUESTFS_MEMSIZE=700\n"
3944 "\n"
3945 msgstr ""
3946
3947 # type: =item
3948 #: ../src/guestfs.pod:2060 ../fish/guestfish.pod:957
3949 msgid "LIBGUESTFS_PATH"
3950 msgstr ""
3951
3952 # type: textblock
3953 #: ../src/guestfs.pod:2062
3954 msgid ""
3955 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3956 "the discussion of paths in section PATH above."
3957 msgstr ""
3958
3959 # type: =item
3960 #: ../src/guestfs.pod:2065 ../fish/guestfish.pod:962
3961 msgid "LIBGUESTFS_QEMU"
3962 msgstr ""
3963
3964 # type: textblock
3965 #: ../src/guestfs.pod:2067 ../fish/guestfish.pod:964
3966 msgid ""
3967 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3968 "which was found at compile time by the configure script is used."
3969 msgstr ""
3970
3971 # type: textblock
3972 #: ../src/guestfs.pod:2071
3973 msgid "See also L</QEMU WRAPPERS> above."
3974 msgstr ""
3975
3976 # type: =item
3977 #: ../src/guestfs.pod:2073 ../fish/guestfish.pod:968
3978 msgid "LIBGUESTFS_TRACE"
3979 msgstr ""
3980
3981 # type: textblock
3982 #: ../src/guestfs.pod:2075
3983 msgid ""
3984 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3985 "effect as calling C<guestfs_set_trace (g, 1)>."
3986 msgstr ""
3987
3988 # type: =item
3989 #: ../src/guestfs.pod:2078 ../fish/guestfish.pod:977
3990 msgid "TMPDIR"
3991 msgstr ""
3992
3993 # type: textblock
3994 #: ../src/guestfs.pod:2080 ../fish/guestfish.pod:979
3995 msgid "Location of temporary directory, defaults to C</tmp>."
3996 msgstr ""
3997
3998 # type: textblock
3999 #: ../src/guestfs.pod:2082 ../fish/guestfish.pod:981
4000 msgid ""
4001 "If libguestfs was compiled to use the supermin appliance then the real "
4002 "appliance is cached in this directory, shared between all handles belonging "
4003 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4004 "use in case C</tmp> is not large enough."
4005 msgstr ""
4006
4007 # type: =head1
4008 #: ../src/guestfs.pod:2090 ../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
4009 msgid "SEE ALSO"
4010 msgstr ""
4011
4012 # type: textblock
4013 #: ../src/guestfs.pod:2092
4014 msgid ""
4015 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
4016 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
4017 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
4018 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
4019 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
4020 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4021 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4022 msgstr ""
4023
4024 # type: textblock
4025 #: ../src/guestfs.pod:2115
4026 msgid ""
4027 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
4028 "L<lvm(8)>, L<disktype(1)>."
4029 msgstr ""
4030
4031 # type: =head1
4032 #: ../src/guestfs.pod:2122 ../tools/virt-win-reg.pl:499 ../tools/virt-make-fs.pl:548
4033 msgid "BUGS"
4034 msgstr ""
4035
4036 # type: textblock
4037 #: ../src/guestfs.pod:2124
4038 msgid "To get a list of bugs against libguestfs use this link:"
4039 msgstr ""
4040
4041 # type: textblock
4042 #: ../src/guestfs.pod:2126
4043 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
4044 msgstr ""
4045
4046 # type: textblock
4047 #: ../src/guestfs.pod:2128
4048 msgid "To report a new bug against libguestfs use this link:"
4049 msgstr ""
4050
4051 # type: textblock
4052 #: ../src/guestfs.pod:2130
4053 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
4054 msgstr ""
4055
4056 # type: textblock
4057 #: ../src/guestfs.pod:2132
4058 msgid "When reporting a bug, please check:"
4059 msgstr ""
4060
4061 # type: textblock
4062 #: ../src/guestfs.pod:2138
4063 msgid "That the bug hasn't been reported already."
4064 msgstr ""
4065
4066 # type: textblock
4067 #: ../src/guestfs.pod:2142
4068 msgid "That you are testing a recent version."
4069 msgstr ""
4070
4071 # type: textblock
4072 #: ../src/guestfs.pod:2146
4073 msgid "Describe the bug accurately, and give a way to reproduce it."
4074 msgstr ""
4075
4076 # type: textblock
4077 #: ../src/guestfs.pod:2150
4078 msgid ""
4079 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4080 "bug report."
4081 msgstr ""
4082
4083 # type: =head1
4084 #: ../src/guestfs.pod:2155 ../fish/guestfish.pod:1058 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4085 msgid "AUTHORS"
4086 msgstr ""
4087
4088 # type: textblock
4089 #: ../src/guestfs.pod:2157 ../fish/guestfish.pod:1060 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4090 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4091 msgstr ""
4092
4093 # type: =head1
4094 #: ../src/guestfs.pod:2159 ../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
4095 msgid "COPYRIGHT"
4096 msgstr ""
4097
4098 # type: textblock
4099 #: ../src/guestfs.pod:2161 ../fish/guestfish.pod:1064 ../fuse/guestmount.pod:250
4100 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4101 msgstr ""
4102
4103 # type: textblock
4104 #: ../src/guestfs.pod:2164
4105 msgid ""
4106 "This library is free software; you can redistribute it and/or modify it "
4107 "under the terms of the GNU Lesser General Public License as published by the "
4108 "Free Software Foundation; either version 2 of the License, or (at your "
4109 "option) any later version."
4110 msgstr ""
4111
4112 # type: textblock
4113 #: ../src/guestfs.pod:2169
4114 msgid ""
4115 "This library is distributed in the hope that it will be useful, but WITHOUT "
4116 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4117 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4118 "for more details."
4119 msgstr ""
4120
4121 # type: textblock
4122 #: ../src/guestfs.pod:2174
4123 msgid ""
4124 "You should have received a copy of the GNU Lesser General Public License "
4125 "along with this library; if not, write to the Free Software Foundation, "
4126 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4127 msgstr ""
4128
4129 # type: =head2
4130 #: ../src/guestfs-actions.pod:1
4131 msgid "guestfs_add_cdrom"
4132 msgstr ""
4133
4134 # type: verbatim
4135 #: ../src/guestfs-actions.pod:3
4136 #, no-wrap
4137 msgid ""
4138 " int\n"
4139 " guestfs_add_cdrom (guestfs_h *g,\n"
4140 "                    const char *filename);\n"
4141 "\n"
4142 msgstr ""
4143
4144 # type: textblock
4145 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4146 msgid "This function adds a virtual CD-ROM disk image to the guest."
4147 msgstr ""
4148
4149 # type: textblock
4150 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4151 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4152 msgstr ""
4153
4154 # type: textblock
4155 #: ../src/guestfs-actions.pod:17
4156 msgid ""
4157 "This call checks for the existence of C<filename>.  This stops you from "
4158 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4159 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4160 "instead."
4161 msgstr ""
4162
4163 # type: textblock
4164 #: ../src/guestfs-actions.pod:24
4165 msgid ""
4166 "If you just want to add an ISO file (often you use this as an efficient way "
4167 "to transfer large files into the guest), then you should probably use "
4168 "C<guestfs_add_drive_ro> instead."
4169 msgstr ""
4170
4171 # type: textblock
4172 #: ../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:6422 ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6577 ../src/guestfs-actions.pod:6595 ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6809 ../src/guestfs-actions.pod:6835 ../src/guestfs-actions.pod:6901 ../src/guestfs-actions.pod:6920 ../src/guestfs-actions.pod:6949
4173 msgid "This function returns 0 on success or -1 on error."
4174 msgstr ""
4175
4176 # type: textblock
4177 #: ../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
4178 msgid ""
4179 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4180 "instead."
4181 msgstr ""
4182
4183 # type: textblock
4184 #: ../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:6843 ../src/guestfs-actions.pod:7012 ../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
4185 msgid ""
4186 "Deprecated functions will not be removed from the API, but the fact that "
4187 "they are deprecated indicates that there are problems with correct use of "
4188 "these functions."
4189 msgstr ""
4190
4191 # type: textblock
4192 #: ../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:6757
4193 msgid "(Added in 0.3)"
4194 msgstr ""
4195
4196 # type: =head2
4197 #: ../src/guestfs-actions.pod:41
4198 msgid "guestfs_add_domain"
4199 msgstr ""
4200
4201 # type: verbatim
4202 #: ../src/guestfs-actions.pod:43
4203 #, no-wrap
4204 msgid ""
4205 " int\n"
4206 " guestfs_add_domain (guestfs_h *g,\n"
4207 "                     const char *dom,\n"
4208 "                     ...);\n"
4209 "\n"
4210 msgstr ""
4211
4212 # type: textblock
4213 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139
4214 msgid ""
4215 "You may supply a list of optional arguments to this call.  Use zero or more "
4216 "of the following pairs of parameters, and terminate the list with C<-1> on "
4217 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4218 msgstr ""
4219
4220 # type: verbatim
4221 #: ../src/guestfs-actions.pod:53
4222 #, no-wrap
4223 msgid ""
4224 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4225 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4226 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4227 "\n"
4228 msgstr ""
4229
4230 # type: textblock
4231 #: ../src/guestfs-actions.pod:57
4232 msgid ""
4233 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4234 "It works by connecting to libvirt, requesting the domain and domain XML from "
4235 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4236 "one."
4237 msgstr ""
4238
4239 # type: textblock
4240 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4241 msgid ""
4242 "The number of disks added is returned.  This operation is atomic: if an "
4243 "error is returned, then no disks are added."
4244 msgstr ""
4245
4246 # type: textblock
4247 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4248 msgid ""
4249 "This function does some minimal checks to make sure the libvirt domain is "
4250 "not running (unless C<readonly> is true).  In a future version we will try "
4251 "to acquire the libvirt lock on each disk."
4252 msgstr ""
4253
4254 # type: textblock
4255 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4256 msgid ""
4257 "Disks must be accessible locally.  This often means that adding disks from a "
4258 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4259 "unless those disks are accessible via the same device path locally too."
4260 msgstr ""
4261
4262 # type: textblock
4263 #: ../src/guestfs-actions.pod:74
4264 msgid ""
4265 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4266 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4267 "default libvirt URI (or one set through an environment variable, see the "
4268 "libvirt documentation for full details).  If you are using the C API "
4269 "directly then it is more flexible to create the libvirt connection object "
4270 "yourself, get the domain object, and call C<guestfs_add_libvirt_dom>."
4271 msgstr ""
4272
4273 # type: textblock
4274 #: ../src/guestfs-actions.pod:82
4275 msgid ""
4276 "The other optional parameters are passed directly through to "
4277 "C<guestfs_add_drive_opts>."
4278 msgstr ""
4279
4280 # type: textblock
4281 #: ../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:6768 ../src/guestfs-actions.pod:6781 ../src/guestfs-actions.pod:6794
4282 msgid "On error this function returns -1."
4283 msgstr ""
4284
4285 # type: textblock
4286 #: ../src/guestfs-actions.pod:87
4287 msgid "(Added in 1.7.4)"
4288 msgstr ""
4289
4290 # type: =head2
4291 #: ../src/guestfs-actions.pod:89
4292 msgid "guestfs_add_domain_va"
4293 msgstr ""
4294
4295 # type: verbatim
4296 #: ../src/guestfs-actions.pod:91
4297 #, no-wrap
4298 msgid ""
4299 " int\n"
4300 " guestfs_add_domain_va (guestfs_h *g,\n"
4301 "                        const char *dom,\n"
4302 "                        va_list args);\n"
4303 "\n"
4304 msgstr ""
4305
4306 # type: textblock
4307 #: ../src/guestfs-actions.pod:96
4308 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4309 msgstr ""
4310
4311 # type: textblock
4312 #: ../src/guestfs-actions.pod:98 ../src/guestfs-actions.pod:109 ../src/guestfs-actions.pod:202 ../src/guestfs-actions.pod:213
4313 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4314 msgstr ""
4315
4316 # type: =head2
4317 #: ../src/guestfs-actions.pod:100
4318 msgid "guestfs_add_domain_argv"
4319 msgstr ""
4320
4321 # type: verbatim
4322 #: ../src/guestfs-actions.pod:102
4323 #, no-wrap
4324 msgid ""
4325 " int\n"
4326 " guestfs_add_domain_argv (guestfs_h *g,\n"
4327 "                          const char *dom,\n"
4328 "                          const struct guestfs_add_domain_argv *optargs);\n"
4329 "\n"
4330 msgstr ""
4331
4332 # type: textblock
4333 #: ../src/guestfs-actions.pod:107
4334 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4335 msgstr ""
4336
4337 # type: =head2
4338 #: ../src/guestfs-actions.pod:111
4339 msgid "guestfs_add_drive"
4340 msgstr ""
4341
4342 # type: verbatim
4343 #: ../src/guestfs-actions.pod:113
4344 #, no-wrap
4345 msgid ""
4346 " int\n"
4347 " guestfs_add_drive (guestfs_h *g,\n"
4348 "                    const char *filename);\n"
4349 "\n"
4350 msgstr ""
4351
4352 # type: textblock
4353 #: ../src/guestfs-actions.pod:117
4354 msgid ""
4355 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4356 "optional parameters, so the disk is added writable, with the format being "
4357 "detected automatically."
4358 msgstr ""
4359
4360 # type: textblock
4361 #: ../src/guestfs-actions.pod:121
4362 msgid ""
4363 "Automatic detection of the format opens you up to a potential security hole "
4364 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4365 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4366 "you should think about replacing calls to this function with calls to "
4367 "C<guestfs_add_drive_opts>, and specifying the format."
4368 msgstr ""
4369
4370 # type: =head2
4371 #: ../src/guestfs-actions.pod:132
4372 msgid "guestfs_add_drive_opts"
4373 msgstr ""
4374
4375 # type: verbatim
4376 #: ../src/guestfs-actions.pod:134
4377 #, no-wrap
4378 msgid ""
4379 " int\n"
4380 " guestfs_add_drive_opts (guestfs_h *g,\n"
4381 "                         const char *filename,\n"
4382 "                         ...);\n"
4383 "\n"
4384 msgstr ""
4385
4386 # type: verbatim
4387 #: ../src/guestfs-actions.pod:144
4388 #, no-wrap
4389 msgid ""
4390 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4391 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4392 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4393 "\n"
4394 msgstr ""
4395
4396 # type: textblock
4397 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4398 msgid ""
4399 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4400 "The first time you call this function, the disk appears as C</dev/sda>, the "
4401 "second time as C</dev/sdb>, and so on."
4402 msgstr ""
4403
4404 # type: textblock
4405 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4406 msgid ""
4407 "You don't necessarily need to be root when using libguestfs.  However you "
4408 "obviously do need sufficient permissions to access the filename for whatever "
4409 "operations you want to perform (ie. read access if you just want to read the "
4410 "image or write access if you want to modify the image)."
4411 msgstr ""
4412
4413 # type: textblock
4414 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4415 msgid "This call checks that C<filename> exists."
4416 msgstr ""
4417
4418 # type: textblock
4419 #: ../src/guestfs-actions.pod:161 ../fish/guestfish-actions.pod:105
4420 msgid "The optional arguments are:"
4421 msgstr ""
4422
4423 # type: =item
4424 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4425 msgid "C<readonly>"
4426 msgstr ""
4427
4428 # type: textblock
4429 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4430 msgid ""
4431 "If true then the image is treated as read-only.  Writes are still allowed, "
4432 "but they are stored in a temporary snapshot overlay which is discarded at "
4433 "the end.  The disk that you add is not modified."
4434 msgstr ""
4435
4436 # type: =item
4437 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4438 msgid "C<format>"
4439 msgstr ""
4440
4441 # type: textblock
4442 #: ../src/guestfs-actions.pod:173
4443 msgid ""
4444 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4445 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4446 "Possible formats include C<raw> and C<qcow2>."
4447 msgstr ""
4448
4449 # type: textblock
4450 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4451 msgid ""
4452 "Automatic detection of the format opens you up to a potential security hole "
4453 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4454 "RHBZ#642934.  Specifying the format closes this security hole."
4455 msgstr ""
4456
4457 # type: =item
4458 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4459 msgid "C<iface>"
4460 msgstr ""
4461
4462 # type: textblock
4463 #: ../src/guestfs-actions.pod:184
4464 msgid ""
4465 "This rarely-used option lets you emulate the behaviour of the deprecated "
4466 "C<guestfs_add_drive_with_if> call (q.v.)"
4467 msgstr ""
4468
4469 # type: textblock
4470 #: ../src/guestfs-actions.pod:191
4471 msgid "(Added in 1.5.23)"
4472 msgstr ""
4473
4474 # type: =head2
4475 #: ../src/guestfs-actions.pod:193
4476 msgid "guestfs_add_drive_opts_va"
4477 msgstr ""
4478
4479 # type: verbatim
4480 #: ../src/guestfs-actions.pod:195
4481 #, no-wrap
4482 msgid ""
4483 " int\n"
4484 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4485 "                            const char *filename,\n"
4486 "                            va_list args);\n"
4487 "\n"
4488 msgstr ""
4489
4490 # type: textblock
4491 #: ../src/guestfs-actions.pod:200
4492 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4493 msgstr ""
4494
4495 # type: =head2
4496 #: ../src/guestfs-actions.pod:204
4497 msgid "guestfs_add_drive_opts_argv"
4498 msgstr ""
4499
4500 # type: verbatim
4501 #: ../src/guestfs-actions.pod:206
4502 #, no-wrap
4503 msgid ""
4504 " int\n"
4505 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4506 "                              const char *filename,\n"
4507 "                              const struct guestfs_add_drive_opts_argv "
4508 "*optargs);\n"
4509 "\n"
4510 msgstr ""
4511
4512 # type: textblock
4513 #: ../src/guestfs-actions.pod:211
4514 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4515 msgstr ""
4516
4517 # type: =head2
4518 #: ../src/guestfs-actions.pod:215
4519 msgid "guestfs_add_drive_ro"
4520 msgstr ""
4521
4522 # type: verbatim
4523 #: ../src/guestfs-actions.pod:217
4524 #, no-wrap
4525 msgid ""
4526 " int\n"
4527 " guestfs_add_drive_ro (guestfs_h *g,\n"
4528 "                       const char *filename);\n"
4529 "\n"
4530 msgstr ""
4531
4532 # type: textblock
4533 #: ../src/guestfs-actions.pod:221
4534 msgid ""
4535 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4536 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4537 "disk is added read-only, with the format being detected automatically."
4538 msgstr ""
4539
4540 # type: textblock
4541 #: ../src/guestfs-actions.pod:228
4542 msgid "(Added in 1.0.38)"
4543 msgstr ""
4544
4545 # type: =head2
4546 #: ../src/guestfs-actions.pod:230
4547 msgid "guestfs_add_drive_ro_with_if"
4548 msgstr ""
4549
4550 # type: verbatim
4551 #: ../src/guestfs-actions.pod:232
4552 #, no-wrap
4553 msgid ""
4554 " int\n"
4555 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4556 "                               const char *filename,\n"
4557 "                               const char *iface);\n"
4558 "\n"
4559 msgstr ""
4560
4561 # type: textblock
4562 #: ../src/guestfs-actions.pod:237
4563 msgid ""
4564 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4565 "QEMU interface emulation to use at run time."
4566 msgstr ""
4567
4568 # type: textblock
4569 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270 ../src/guestfs-actions.pod:2305
4570 msgid "(Added in 1.0.84)"
4571 msgstr ""
4572
4573 # type: =head2
4574 #: ../src/guestfs-actions.pod:251
4575 msgid "guestfs_add_drive_with_if"
4576 msgstr ""
4577
4578 # type: verbatim
4579 #: ../src/guestfs-actions.pod:253
4580 #, no-wrap
4581 msgid ""
4582 " int\n"
4583 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4584 "                            const char *filename,\n"
4585 "                            const char *iface);\n"
4586 "\n"
4587 msgstr ""
4588
4589 # type: textblock
4590 #: ../src/guestfs-actions.pod:258
4591 msgid ""
4592 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4593 "QEMU interface emulation to use at run time."
4594 msgstr ""
4595
4596 # type: =head2
4597 #: ../src/guestfs-actions.pod:272
4598 msgid "guestfs_aug_clear"
4599 msgstr ""
4600
4601 # type: verbatim
4602 #: ../src/guestfs-actions.pod:274
4603 #, no-wrap
4604 msgid ""
4605 " int\n"
4606 " guestfs_aug_clear (guestfs_h *g,\n"
4607 "                    const char *augpath);\n"
4608 "\n"
4609 msgstr ""
4610
4611 # type: textblock
4612 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4613 msgid ""
4614 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4615 "L<augtool(1)> C<clear> command."
4616 msgstr ""
4617
4618 # type: textblock
4619 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4620 msgid "(Added in 1.3.4)"
4621 msgstr ""
4622
4623 # type: =head2
4624 #: ../src/guestfs-actions.pod:285
4625 msgid "guestfs_aug_close"
4626 msgstr ""
4627
4628 # type: verbatim
4629 #: ../src/guestfs-actions.pod:287
4630 #, no-wrap
4631 msgid ""
4632 " int\n"
4633 " guestfs_aug_close (guestfs_h *g);\n"
4634 "\n"
4635 msgstr ""
4636
4637 # type: textblock
4638 #: ../src/guestfs-actions.pod:290
4639 msgid ""
4640 "Close the current Augeas handle and free up any resources used by it.  After "
4641 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4642 "any other Augeas functions."
4643 msgstr ""
4644
4645 # type: textblock
4646 #: ../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
4647 msgid "(Added in 0.7)"
4648 msgstr ""
4649
4650 # type: =head2
4651 #: ../src/guestfs-actions.pod:299
4652 msgid "guestfs_aug_defnode"
4653 msgstr ""
4654
4655 # type: verbatim
4656 #: ../src/guestfs-actions.pod:301
4657 #, no-wrap
4658 msgid ""
4659 " struct guestfs_int_bool *\n"
4660 " guestfs_aug_defnode (guestfs_h *g,\n"
4661 "                      const char *name,\n"
4662 "                      const char *expr,\n"
4663 "                      const char *val);\n"
4664 "\n"
4665 msgstr ""
4666
4667 # type: textblock
4668 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4669 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4670 msgstr ""
4671
4672 # type: textblock
4673 #: ../src/guestfs-actions.pod:310
4674 msgid ""
4675 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4676 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4677 "containing that single node."
4678 msgstr ""
4679
4680 # type: textblock
4681 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4682 msgid ""
4683 "On success this returns a pair containing the number of nodes in the "
4684 "nodeset, and a boolean flag if a node was created."
4685 msgstr ""
4686
4687 # type: textblock
4688 #: ../src/guestfs-actions.pod:318
4689 msgid ""
4690 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4691 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4692 msgstr ""
4693
4694 # type: =head2
4695 #: ../src/guestfs-actions.pod:324
4696 msgid "guestfs_aug_defvar"
4697 msgstr ""
4698
4699 # type: verbatim
4700 #: ../src/guestfs-actions.pod:326
4701 #, no-wrap
4702 msgid ""
4703 " int\n"
4704 " guestfs_aug_defvar (guestfs_h *g,\n"
4705 "                     const char *name,\n"
4706 "                     const char *expr);\n"
4707 "\n"
4708 msgstr ""
4709
4710 # type: textblock
4711 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
4712 msgid ""
4713 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4714 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4715 msgstr ""
4716
4717 # type: textblock
4718 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
4719 msgid ""
4720 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4721 "evaluates to something which is not a nodeset."
4722 msgstr ""
4723
4724 # type: =head2
4725 #: ../src/guestfs-actions.pod:342
4726 msgid "guestfs_aug_get"
4727 msgstr ""
4728
4729 # type: verbatim
4730 #: ../src/guestfs-actions.pod:344
4731 #, no-wrap
4732 msgid ""
4733 " char *\n"
4734 " guestfs_aug_get (guestfs_h *g,\n"
4735 "                  const char *augpath);\n"
4736 "\n"
4737 msgstr ""
4738
4739 # type: textblock
4740 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
4741 msgid ""
4742 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4743 "node, the C<value> is returned."
4744 msgstr ""
4745
4746 # type: textblock
4747 #: ../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:6517 ../src/guestfs-actions.pod:6536 ../src/guestfs-actions.pod:6554 ../src/guestfs-actions.pod:6734 ../src/guestfs-actions.pod:7006
4748 msgid ""
4749 "This function returns a string, or NULL on error.  I<The caller must free "
4750 "the returned string after use>."
4751 msgstr ""
4752
4753 # type: =head2
4754 #: ../src/guestfs-actions.pod:356
4755 msgid "guestfs_aug_init"
4756 msgstr ""
4757
4758 # type: verbatim
4759 #: ../src/guestfs-actions.pod:358
4760 #, no-wrap
4761 msgid ""
4762 " int\n"
4763 " guestfs_aug_init (guestfs_h *g,\n"
4764 "                   const char *root,\n"
4765 "                   int flags);\n"
4766 "\n"
4767 msgstr ""
4768
4769 # type: textblock
4770 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
4771 msgid ""
4772 "Create a new Augeas handle for editing configuration files.  If there was "
4773 "any previous Augeas handle associated with this guestfs session, then it is "
4774 "closed."
4775 msgstr ""
4776
4777 # type: textblock
4778 #: ../src/guestfs-actions.pod:367
4779 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4780 msgstr ""
4781
4782 # type: textblock
4783 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
4784 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4785 msgstr ""
4786
4787 # type: textblock
4788 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
4789 msgid ""
4790 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4791 "logical I<or> of the following integers:"
4792 msgstr ""
4793
4794 # type: =item
4795 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
4796 msgid "C<AUG_SAVE_BACKUP> = 1"
4797 msgstr ""
4798
4799 # type: textblock
4800 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
4801 msgid "Keep the original file with a C<.augsave> extension."
4802 msgstr ""
4803
4804 # type: =item
4805 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
4806 msgid "C<AUG_SAVE_NEWFILE> = 2"
4807 msgstr ""
4808
4809 # type: textblock
4810 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
4811 msgid ""
4812 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4813 "original.  Overrides C<AUG_SAVE_BACKUP>."
4814 msgstr ""
4815
4816 # type: =item
4817 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
4818 msgid "C<AUG_TYPE_CHECK> = 4"
4819 msgstr ""
4820
4821 # type: textblock
4822 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
4823 msgid "Typecheck lenses (can be expensive)."
4824 msgstr ""
4825
4826 # type: =item
4827 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
4828 msgid "C<AUG_NO_STDINC> = 8"
4829 msgstr ""
4830
4831 # type: textblock
4832 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
4833 msgid "Do not use standard load path for modules."
4834 msgstr ""
4835
4836 # type: =item
4837 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
4838 msgid "C<AUG_SAVE_NOOP> = 16"
4839 msgstr ""
4840
4841 # type: textblock
4842 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
4843 msgid "Make save a no-op, just record what would have been changed."
4844 msgstr ""
4845
4846 # type: =item
4847 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
4848 msgid "C<AUG_NO_LOAD> = 32"
4849 msgstr ""
4850
4851 # type: textblock
4852 #: ../src/guestfs-actions.pod:402
4853 msgid "Do not load the tree in C<guestfs_aug_init>."
4854 msgstr ""
4855
4856 # type: textblock
4857 #: ../src/guestfs-actions.pod:406
4858 msgid "To close the handle, you can call C<guestfs_aug_close>."
4859 msgstr ""
4860
4861 # type: textblock
4862 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
4863 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4864 msgstr ""
4865
4866 # type: =head2
4867 #: ../src/guestfs-actions.pod:414
4868 msgid "guestfs_aug_insert"
4869 msgstr ""
4870
4871 # type: verbatim
4872 #: ../src/guestfs-actions.pod:416
4873 #, no-wrap
4874 msgid ""
4875 " int\n"
4876 " guestfs_aug_insert (guestfs_h *g,\n"
4877 "                     const char *augpath,\n"
4878 "                     const char *label,\n"
4879 "                     int before);\n"
4880 "\n"
4881 msgstr ""
4882
4883 # type: textblock
4884 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
4885 msgid ""
4886 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4887 "or after C<path> (depending on the boolean flag C<before>)."
4888 msgstr ""
4889
4890 # type: textblock
4891 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
4892 msgid ""
4893 "C<path> must match exactly one existing node in the tree, and C<label> must "
4894 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4895 msgstr ""
4896
4897 # type: =head2
4898 #: ../src/guestfs-actions.pod:434
4899 msgid "guestfs_aug_load"
4900 msgstr ""
4901
4902 # type: verbatim
4903 #: ../src/guestfs-actions.pod:436
4904 #, no-wrap
4905 msgid ""
4906 " int\n"
4907 " guestfs_aug_load (guestfs_h *g);\n"
4908 "\n"
4909 msgstr ""
4910
4911 # type: textblock
4912 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
4913 msgid "Load files into the tree."
4914 msgstr ""
4915
4916 # type: textblock
4917 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
4918 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4919 msgstr ""
4920
4921 # type: =head2
4922 #: ../src/guestfs-actions.pod:448
4923 msgid "guestfs_aug_ls"
4924 msgstr ""
4925
4926 # type: verbatim
4927 #: ../src/guestfs-actions.pod:450
4928 #, no-wrap
4929 msgid ""
4930 " char **\n"
4931 " guestfs_aug_ls (guestfs_h *g,\n"
4932 "                 const char *augpath);\n"
4933 "\n"
4934 msgstr ""
4935
4936 # type: textblock
4937 #: ../src/guestfs-actions.pod:454
4938 msgid ""
4939 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4940 "sorting the resulting nodes into alphabetical order."
4941 msgstr ""
4942
4943 # type: textblock
4944 #: ../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:6627 ../src/guestfs-actions.pod:6647 ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6859 ../src/guestfs-actions.pod:6878 ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7047
4945 msgid ""
4946 "This function returns a NULL-terminated array of strings (like "
4947 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4948 "strings and the array after use>."
4949 msgstr ""
4950
4951 # type: textblock
4952 #: ../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:6611 ../src/guestfs-actions.pod:6814 ../src/guestfs-actions.pod:6847
4953 msgid "(Added in 0.8)"
4954 msgstr ""
4955
4956 # type: =head2
4957 #: ../src/guestfs-actions.pod:463
4958 msgid "guestfs_aug_match"
4959 msgstr ""
4960
4961 # type: verbatim
4962 #: ../src/guestfs-actions.pod:465
4963 #, no-wrap
4964 msgid ""
4965 " char **\n"
4966 " guestfs_aug_match (guestfs_h *g,\n"
4967 "                    const char *augpath);\n"
4968 "\n"
4969 msgstr ""
4970
4971 # type: textblock
4972 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
4973 msgid ""
4974 "Returns a list of paths which match the path expression C<path>.  The "
4975 "returned paths are sufficiently qualified so that they match exactly one "
4976 "node in the current tree."
4977 msgstr ""
4978
4979 # type: =head2
4980 #: ../src/guestfs-actions.pod:479
4981 msgid "guestfs_aug_mv"
4982 msgstr ""
4983
4984 # type: verbatim
4985 #: ../src/guestfs-actions.pod:481
4986 #, no-wrap
4987 msgid ""
4988 " int\n"
4989 " guestfs_aug_mv (guestfs_h *g,\n"
4990 "                 const char *src,\n"
4991 "                 const char *dest);\n"
4992 "\n"
4993 msgstr ""
4994
4995 # type: textblock
4996 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
4997 msgid ""
4998 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4999 "C<dest> is overwritten if it exists."
5000 msgstr ""
5001
5002 # type: =head2
5003 #: ../src/guestfs-actions.pod:493
5004 msgid "guestfs_aug_rm"
5005 msgstr ""
5006
5007 # type: verbatim
5008 #: ../src/guestfs-actions.pod:495
5009 #, no-wrap
5010 msgid ""
5011 " int\n"
5012 " guestfs_aug_rm (guestfs_h *g,\n"
5013 "                 const char *augpath);\n"
5014 "\n"
5015 msgstr ""
5016
5017 # type: textblock
5018 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5019 msgid "Remove C<path> and all of its children."
5020 msgstr ""
5021
5022 # type: textblock
5023 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5024 msgid "On success this returns the number of entries which were removed."
5025 msgstr ""
5026
5027 # type: =head2
5028 #: ../src/guestfs-actions.pod:507
5029 msgid "guestfs_aug_save"
5030 msgstr ""
5031
5032 # type: verbatim
5033 #: ../src/guestfs-actions.pod:509
5034 #, no-wrap
5035 msgid ""
5036 " int\n"
5037 " guestfs_aug_save (guestfs_h *g);\n"
5038 "\n"
5039 msgstr ""
5040
5041 # type: textblock
5042 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5043 msgid "This writes all pending changes to disk."
5044 msgstr ""
5045
5046 # type: textblock
5047 #: ../src/guestfs-actions.pod:514
5048 msgid ""
5049 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5050 "are saved."
5051 msgstr ""
5052
5053 # type: =head2
5054 #: ../src/guestfs-actions.pod:521
5055 msgid "guestfs_aug_set"
5056 msgstr ""
5057
5058 # type: verbatim
5059 #: ../src/guestfs-actions.pod:523
5060 #, no-wrap
5061 msgid ""
5062 " int\n"
5063 " guestfs_aug_set (guestfs_h *g,\n"
5064 "                  const char *augpath,\n"
5065 "                  const char *val);\n"
5066 "\n"
5067 msgstr ""
5068
5069 # type: textblock
5070 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5071 msgid "Set the value associated with C<path> to C<val>."
5072 msgstr ""
5073
5074 # type: textblock
5075 #: ../src/guestfs-actions.pod:530
5076 msgid ""
5077 "In the Augeas API, it is possible to clear a node by setting the value to "
5078 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5079 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5080 msgstr ""
5081
5082 # type: =head2
5083 #: ../src/guestfs-actions.pod:539
5084 msgid "guestfs_available"
5085 msgstr ""
5086
5087 # type: verbatim
5088 #: ../src/guestfs-actions.pod:541
5089 #, no-wrap
5090 msgid ""
5091 " int\n"
5092 " guestfs_available (guestfs_h *g,\n"
5093 "                    char *const *groups);\n"
5094 "\n"
5095 msgstr ""
5096
5097 # type: textblock
5098 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5099 msgid ""
5100 "This command is used to check the availability of some groups of "
5101 "functionality in the appliance, which not all builds of the libguestfs "
5102 "appliance will be able to provide."
5103 msgstr ""
5104
5105 # type: textblock
5106 #: ../src/guestfs-actions.pod:549
5107 msgid ""
5108 "The libguestfs groups, and the functions that those groups correspond to, "
5109 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5110 "runtime by calling C<guestfs_available_all_groups>."
5111 msgstr ""
5112
5113 # type: textblock
5114 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5115 msgid ""
5116 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
5117 "\"augeas\"]> would check for the availability of the Linux inotify functions "
5118 "and Augeas (configuration file editing) functions."
5119 msgstr ""
5120
5121 # type: textblock
5122 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5123 msgid "The command returns no error if I<all> requested groups are available."
5124 msgstr ""
5125
5126 # type: textblock
5127 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5128 msgid ""
5129 "It fails with an error if one or more of the requested groups is unavailable "
5130 "in the appliance."
5131 msgstr ""
5132
5133 # type: textblock
5134 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5135 msgid ""
5136 "If an unknown group name is included in the list of groups then an error is "
5137 "always returned."
5138 msgstr ""
5139
5140 # type: textblock
5141 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5142 msgid "I<Notes:>"
5143 msgstr ""
5144
5145 # type: textblock
5146 #: ../src/guestfs-actions.pod:573
5147 msgid "You must call C<guestfs_launch> before calling this function."
5148 msgstr ""
5149
5150 # type: textblock
5151 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5152 msgid ""
5153 "The reason is because we don't know what groups are supported by the "
5154 "appliance/daemon until it is running and can be queried."
5155 msgstr ""
5156
5157 # type: textblock
5158 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5159 msgid ""
5160 "If a group of functions is available, this does not necessarily mean that "
5161 "they will work.  You still have to check for errors when calling individual "
5162 "API functions even if they are available."
5163 msgstr ""
5164
5165 # type: textblock
5166 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5167 msgid ""
5168 "It is usually the job of distro packagers to build complete functionality "
5169 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5170 "with all requirements satisfied, will support everything."
5171 msgstr ""
5172
5173 # type: textblock
5174 #: ../src/guestfs-actions.pod:595
5175 msgid ""
5176 "This call was added in version C<1.0.80>.  In previous versions of "
5177 "libguestfs all you could do would be to speculatively execute a command to "
5178 "find out if the daemon implemented it.  See also C<guestfs_version>."
5179 msgstr ""
5180
5181 # type: textblock
5182 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5183 msgid "(Added in 1.0.80)"
5184 msgstr ""
5185
5186 # type: =head2
5187 #: ../src/guestfs-actions.pod:606
5188 msgid "guestfs_available_all_groups"
5189 msgstr ""
5190
5191 # type: verbatim
5192 #: ../src/guestfs-actions.pod:608
5193 #, no-wrap
5194 msgid ""
5195 " char **\n"
5196 " guestfs_available_all_groups (guestfs_h *g);\n"
5197 "\n"
5198 msgstr ""
5199
5200 # type: textblock
5201 #: ../src/guestfs-actions.pod:611
5202 msgid ""
5203 "This command returns a list of all optional groups that this daemon knows "
5204 "about.  Note this returns both supported and unsupported groups.  To find "
5205 "out which ones the daemon can actually support you have to call "
5206 "C<guestfs_available> on each member of the returned list."
5207 msgstr ""
5208
5209 # type: textblock
5210 #: ../src/guestfs-actions.pod:617
5211 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5212 msgstr ""
5213
5214 # type: textblock
5215 #: ../src/guestfs-actions.pod:623
5216 msgid "(Added in 1.3.15)"
5217 msgstr ""
5218
5219 # type: =head2
5220 #: ../src/guestfs-actions.pod:625
5221 msgid "guestfs_base64_in"
5222 msgstr ""
5223
5224 # type: verbatim
5225 #: ../src/guestfs-actions.pod:627
5226 #, no-wrap
5227 msgid ""
5228 " int\n"
5229 " guestfs_base64_in (guestfs_h *g,\n"
5230 "                    const char *base64file,\n"
5231 "                    const char *filename);\n"
5232 "\n"
5233 msgstr ""
5234
5235 # type: textblock
5236 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5237 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5238 msgstr ""
5239
5240 # type: textblock
5241 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5242 msgid "(Added in 1.3.5)"
5243 msgstr ""
5244
5245 # type: =head2
5246 #: ../src/guestfs-actions.pod:639
5247 msgid "guestfs_base64_out"
5248 msgstr ""
5249
5250 # type: verbatim
5251 #: ../src/guestfs-actions.pod:641
5252 #, no-wrap
5253 msgid ""
5254 " int\n"
5255 " guestfs_base64_out (guestfs_h *g,\n"
5256 "                     const char *filename,\n"
5257 "                     const char *base64file);\n"
5258 "\n"
5259 msgstr ""
5260
5261 # type: textblock
5262 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5263 msgid ""
5264 "This command downloads the contents of C<filename>, writing it out to local "
5265 "file C<base64file> encoded as base64."
5266 msgstr ""
5267
5268 # type: =head2
5269 #: ../src/guestfs-actions.pod:653
5270 msgid "guestfs_blockdev_flushbufs"
5271 msgstr ""
5272
5273 # type: verbatim
5274 #: ../src/guestfs-actions.pod:655
5275 #, no-wrap
5276 msgid ""
5277 " int\n"
5278 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5279 "                             const char *device);\n"
5280 "\n"
5281 msgstr ""
5282
5283 # type: textblock
5284 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5285 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5286 msgstr ""
5287
5288 # type: textblock
5289 #: ../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
5290 msgid "This uses the L<blockdev(8)> command."
5291 msgstr ""
5292
5293 # type: textblock
5294 #: ../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
5295 msgid "(Added in 0.9.3)"
5296 msgstr ""
5297
5298 # type: =head2
5299 #: ../src/guestfs-actions.pod:668
5300 msgid "guestfs_blockdev_getbsz"
5301 msgstr ""
5302
5303 # type: verbatim
5304 #: ../src/guestfs-actions.pod:670
5305 #, no-wrap
5306 msgid ""
5307 " int\n"
5308 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5309 "                          const char *device);\n"
5310 "\n"
5311 msgstr ""
5312
5313 # type: textblock
5314 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5315 msgid "This returns the block size of a device."
5316 msgstr ""
5317
5318 # type: textblock
5319 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776 ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5320 msgid ""
5321 "(Note this is different from both I<size in blocks> and I<filesystem block "
5322 "size>)."
5323 msgstr ""
5324
5325 # type: =head2
5326 #: ../src/guestfs-actions.pod:685
5327 msgid "guestfs_blockdev_getro"
5328 msgstr ""
5329
5330 # type: verbatim
5331 #: ../src/guestfs-actions.pod:687
5332 #, no-wrap
5333 msgid ""
5334 " int\n"
5335 " guestfs_blockdev_getro (guestfs_h *g,\n"
5336 "                         const char *device);\n"
5337 "\n"
5338 msgstr ""
5339
5340 # type: textblock
5341 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5342 msgid ""
5343 "Returns a boolean indicating if the block device is read-only (true if "
5344 "read-only, false if not)."
5345 msgstr ""
5346
5347 # type: textblock
5348 #: ../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
5349 msgid "This function returns a C truth value on success or -1 on error."
5350 msgstr ""
5351
5352 # type: =head2
5353 #: ../src/guestfs-actions.pod:700
5354 msgid "guestfs_blockdev_getsize64"
5355 msgstr ""
5356
5357 # type: verbatim
5358 #: ../src/guestfs-actions.pod:702
5359 #, no-wrap
5360 msgid ""
5361 " int64_t\n"
5362 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5363 "                             const char *device);\n"
5364 "\n"
5365 msgstr ""
5366
5367 # type: textblock
5368 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5369 msgid "This returns the size of the device in bytes."
5370 msgstr ""
5371
5372 # type: textblock
5373 #: ../src/guestfs-actions.pod:708
5374 msgid "See also C<guestfs_blockdev_getsz>."
5375 msgstr ""
5376
5377 # type: =head2
5378 #: ../src/guestfs-actions.pod:716
5379 msgid "guestfs_blockdev_getss"
5380 msgstr ""
5381
5382 # type: verbatim
5383 #: ../src/guestfs-actions.pod:718
5384 #, no-wrap
5385 msgid ""
5386 " int\n"
5387 " guestfs_blockdev_getss (guestfs_h *g,\n"
5388 "                         const char *device);\n"
5389 "\n"
5390 msgstr ""
5391
5392 # type: textblock
5393 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5394 msgid ""
5395 "This returns the size of sectors on a block device.  Usually 512, but can be "
5396 "larger for modern devices."
5397 msgstr ""
5398
5399 # type: textblock
5400 #: ../src/guestfs-actions.pod:725
5401 msgid ""
5402 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5403 "that)."
5404 msgstr ""
5405
5406 # type: =head2
5407 #: ../src/guestfs-actions.pod:734
5408 msgid "guestfs_blockdev_getsz"
5409 msgstr ""
5410
5411 # type: verbatim
5412 #: ../src/guestfs-actions.pod:736
5413 #, no-wrap
5414 msgid ""
5415 " int64_t\n"
5416 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5417 "                         const char *device);\n"
5418 "\n"
5419 msgstr ""
5420
5421 # type: textblock
5422 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5423 msgid ""
5424 "This returns the size of the device in units of 512-byte sectors (even if "
5425 "the sectorsize isn't 512 bytes ... weird)."
5426 msgstr ""
5427
5428 # type: textblock
5429 #: ../src/guestfs-actions.pod:743
5430 msgid ""
5431 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5432 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5433 msgstr ""
5434
5435 # type: =head2
5436 #: ../src/guestfs-actions.pod:753
5437 msgid "guestfs_blockdev_rereadpt"
5438 msgstr ""
5439
5440 # type: verbatim
5441 #: ../src/guestfs-actions.pod:755
5442 #, no-wrap
5443 msgid ""
5444 " int\n"
5445 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5446 "                            const char *device);\n"
5447 "\n"
5448 msgstr ""
5449
5450 # type: textblock
5451 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5452 msgid "Reread the partition table on C<device>."
5453 msgstr ""
5454
5455 # type: =head2
5456 #: ../src/guestfs-actions.pod:767
5457 msgid "guestfs_blockdev_setbsz"
5458 msgstr ""
5459
5460 # type: verbatim
5461 #: ../src/guestfs-actions.pod:769
5462 #, no-wrap
5463 msgid ""
5464 " int\n"
5465 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5466 "                          const char *device,\n"
5467 "                          int blocksize);\n"
5468 "\n"
5469 msgstr ""
5470
5471 # type: textblock
5472 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5473 msgid "This sets the block size of a device."
5474 msgstr ""
5475
5476 # type: =head2
5477 #: ../src/guestfs-actions.pod:785
5478 msgid "guestfs_blockdev_setro"
5479 msgstr ""
5480
5481 # type: verbatim
5482 #: ../src/guestfs-actions.pod:787
5483 #, no-wrap
5484 msgid ""
5485 " int\n"
5486 " guestfs_blockdev_setro (guestfs_h *g,\n"
5487 "                         const char *device);\n"
5488 "\n"
5489 msgstr ""
5490
5491 # type: textblock
5492 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5493 msgid "Sets the block device named C<device> to read-only."
5494 msgstr ""
5495
5496 # type: =head2
5497 #: ../src/guestfs-actions.pod:799
5498 msgid "guestfs_blockdev_setrw"
5499 msgstr ""
5500
5501 # type: verbatim
5502 #: ../src/guestfs-actions.pod:801
5503 #, no-wrap
5504 msgid ""
5505 " int\n"
5506 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5507 "                         const char *device);\n"
5508 "\n"
5509 msgstr ""
5510
5511 # type: textblock
5512 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5513 msgid "Sets the block device named C<device> to read-write."
5514 msgstr ""
5515
5516 # type: =head2
5517 #: ../src/guestfs-actions.pod:813
5518 msgid "guestfs_case_sensitive_path"
5519 msgstr ""
5520
5521 # type: verbatim
5522 #: ../src/guestfs-actions.pod:815
5523 #, no-wrap
5524 msgid ""
5525 " char *\n"
5526 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5527 "                              const char *path);\n"
5528 "\n"
5529 msgstr ""
5530
5531 # type: textblock
5532 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5533 msgid ""
5534 "This can be used to resolve case insensitive paths on a filesystem which is "
5535 "case sensitive.  The use case is to resolve paths which you have read from "
5536 "Windows configuration files or the Windows Registry, to the true path."
5537 msgstr ""
5538
5539 # type: textblock
5540 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5541 msgid ""
5542 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5543 "(and probably others), which is that although the underlying filesystem is "
5544 "case-insensitive, the driver exports the filesystem to Linux as "
5545 "case-sensitive."
5546 msgstr ""
5547
5548 # type: textblock
5549 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5550 msgid ""
5551 "One consequence of this is that special directories such as C<c:\\windows> "
5552 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5553 "precise details of how they were created.  In Windows itself this would not "
5554 "be a problem."
5555 msgstr ""
5556
5557 # type: textblock
5558 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5559 msgid ""
5560 "Bug or feature? You decide: "
5561 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5562 msgstr ""
5563
5564 # type: textblock
5565 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5566 msgid ""
5567 "This function resolves the true case of each element in the path and returns "
5568 "the case-sensitive path."
5569 msgstr ""
5570
5571 # type: textblock
5572 #: ../src/guestfs-actions.pod:841
5573 msgid ""
5574 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5575 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5576 "how the directories were originally created under Windows)."
5577 msgstr ""
5578
5579 # type: textblock
5580 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5581 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5582 msgstr ""
5583
5584 # type: textblock
5585 #: ../src/guestfs-actions.pod:849
5586 msgid "See also C<guestfs_realpath>."
5587 msgstr ""
5588
5589 # type: textblock
5590 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6539
5591 msgid "(Added in 1.0.75)"
5592 msgstr ""
5593
5594 # type: =head2
5595 #: ../src/guestfs-actions.pod:856
5596 msgid "guestfs_cat"
5597 msgstr ""
5598
5599 # type: verbatim
5600 #: ../src/guestfs-actions.pod:858
5601 #, no-wrap
5602 msgid ""
5603 " char *\n"
5604 " guestfs_cat (guestfs_h *g,\n"
5605 "              const char *path);\n"
5606 "\n"
5607 msgstr ""
5608
5609 # type: textblock
5610 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5084 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3393
5611 msgid "Return the contents of the file named C<path>."
5612 msgstr ""
5613
5614 # type: textblock
5615 #: ../src/guestfs-actions.pod:864
5616 msgid ""
5617 "Note that this function cannot correctly handle binary files (specifically, "
5618 "files containing C<\\0> character which is treated as end of string).  For "
5619 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5620 "functions which have a more complex interface."
5621 msgstr ""
5622
5623 # type: textblock
5624 #: ../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:6811 ../src/guestfs-actions.pod:6837 ../src/guestfs-actions.pod:6863 ../src/guestfs-actions.pod:6882 ../src/guestfs-actions.pod:6967 ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7051 ../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
5625 msgid ""
5626 "Because of the message protocol, there is a transfer limit of somewhere "
5627 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5628 msgstr ""
5629
5630 # type: textblock
5631 #: ../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:6698 ../src/guestfs-actions.pod:6712
5632 msgid "(Added in 0.4)"
5633 msgstr ""
5634
5635 # type: =head2
5636 #: ../src/guestfs-actions.pod:877
5637 msgid "guestfs_checksum"
5638 msgstr ""
5639
5640 # type: verbatim
5641 #: ../src/guestfs-actions.pod:879
5642 #, no-wrap
5643 msgid ""
5644 " char *\n"
5645 " guestfs_checksum (guestfs_h *g,\n"
5646 "                   const char *csumtype,\n"
5647 "                   const char *path);\n"
5648 "\n"
5649 msgstr ""
5650
5651 # type: textblock
5652 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
5653 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5654 msgstr ""
5655
5656 # type: textblock
5657 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
5658 msgid ""
5659 "The type of checksum to compute is given by the C<csumtype> parameter which "
5660 "must have one of the following values:"
5661 msgstr ""
5662
5663 # type: =item
5664 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
5665 msgid "C<crc>"
5666 msgstr ""
5667
5668 # type: textblock
5669 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
5670 msgid ""
5671 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5672 "C<cksum> command."
5673 msgstr ""
5674
5675 # type: =item
5676 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
5677 msgid "C<md5>"
5678 msgstr ""
5679
5680 # type: textblock
5681 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
5682 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5683 msgstr ""
5684
5685 # type: =item
5686 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
5687 msgid "C<sha1>"
5688 msgstr ""
5689
5690 # type: textblock
5691 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
5692 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5693 msgstr ""
5694
5695 # type: =item
5696 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
5697 msgid "C<sha224>"
5698 msgstr ""
5699
5700 # type: textblock
5701 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
5702 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5703 msgstr ""
5704
5705 # type: =item
5706 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
5707 msgid "C<sha256>"
5708 msgstr ""
5709
5710 # type: textblock
5711 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
5712 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5713 msgstr ""
5714
5715 # type: =item
5716 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
5717 msgid "C<sha384>"
5718 msgstr ""
5719
5720 # type: textblock
5721 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
5722 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5723 msgstr ""
5724
5725 # type: =item
5726 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
5727 msgid "C<sha512>"
5728 msgstr ""
5729
5730 # type: textblock
5731 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
5732 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5733 msgstr ""
5734
5735 # type: textblock
5736 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
5737 msgid "The checksum is returned as a printable string."
5738 msgstr ""
5739
5740 # type: textblock
5741 #: ../src/guestfs-actions.pod:925
5742 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5743 msgstr ""
5744
5745 # type: textblock
5746 #: ../src/guestfs-actions.pod:927
5747 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5748 msgstr ""
5749
5750 # type: textblock
5751 #: ../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:6395
5752 msgid "(Added in 1.0.2)"
5753 msgstr ""
5754
5755 # type: =head2
5756 #: ../src/guestfs-actions.pod:934
5757 msgid "guestfs_checksum_device"
5758 msgstr ""
5759
5760 # type: verbatim
5761 #: ../src/guestfs-actions.pod:936
5762 #, no-wrap
5763 msgid ""
5764 " char *\n"
5765 " guestfs_checksum_device (guestfs_h *g,\n"
5766 "                          const char *csumtype,\n"
5767 "                          const char *device);\n"
5768 "\n"
5769 msgstr ""
5770
5771 # type: textblock
5772 #: ../src/guestfs-actions.pod:941
5773 msgid ""
5774 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5775 "device named C<device>.  For the types of checksums supported see the "
5776 "C<guestfs_checksum> command."
5777 msgstr ""
5778
5779 # type: textblock
5780 #: ../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:6724
5781 msgid "(Added in 1.3.2)"
5782 msgstr ""
5783
5784 # type: =head2
5785 #: ../src/guestfs-actions.pod:950
5786 msgid "guestfs_checksums_out"
5787 msgstr ""
5788
5789 # type: verbatim
5790 #: ../src/guestfs-actions.pod:952
5791 #, no-wrap
5792 msgid ""
5793 " int\n"
5794 " guestfs_checksums_out (guestfs_h *g,\n"
5795 "                        const char *csumtype,\n"
5796 "                        const char *directory,\n"
5797 "                        const char *sumsfile);\n"
5798 "\n"
5799 msgstr ""
5800
5801 # type: textblock
5802 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
5803 msgid ""
5804 "This command computes the checksums of all regular files in C<directory> and "
5805 "then emits a list of those checksums to the local output file C<sumsfile>."
5806 msgstr ""
5807
5808 # type: textblock
5809 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
5810 msgid ""
5811 "This can be used for verifying the integrity of a virtual machine.  However "
5812 "to be properly secure you should pay attention to the output of the checksum "
5813 "command (it uses the ones from GNU coreutils).  In particular when the "
5814 "filename is not printable, coreutils uses a special backslash syntax.  For "
5815 "more information, see the GNU coreutils info file."
5816 msgstr ""
5817
5818 # type: textblock
5819 #: ../src/guestfs-actions.pod:972
5820 msgid "(Added in 1.3.7)"
5821 msgstr ""
5822
5823 # type: =head2
5824 #: ../src/guestfs-actions.pod:974
5825 msgid "guestfs_chmod"
5826 msgstr ""
5827
5828 # type: verbatim
5829 #: ../src/guestfs-actions.pod:976
5830 #, no-wrap
5831 msgid ""
5832 " int\n"
5833 " guestfs_chmod (guestfs_h *g,\n"
5834 "                int mode,\n"
5835 "                const char *path);\n"
5836 "\n"
5837 msgstr ""
5838
5839 # type: textblock
5840 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
5841 msgid ""
5842 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5843 "supported."
5844 msgstr ""
5845
5846 # type: textblock
5847 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
5848 msgid ""
5849 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5850 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5851 "C<700>."
5852 msgstr ""
5853
5854 # type: textblock
5855 #: ../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
5856 msgid "The mode actually set is affected by the umask."
5857 msgstr ""
5858
5859 # type: =head2
5860 #: ../src/guestfs-actions.pod:994
5861 msgid "guestfs_chown"
5862 msgstr ""
5863
5864 # type: verbatim
5865 #: ../src/guestfs-actions.pod:996
5866 #, no-wrap
5867 msgid ""
5868 " int\n"
5869 " guestfs_chown (guestfs_h *g,\n"
5870 "                int owner,\n"
5871 "                int group,\n"
5872 "                const char *path);\n"
5873 "\n"
5874 msgstr ""
5875
5876 # type: textblock
5877 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
5878 msgid "Change the file owner to C<owner> and group to C<group>."
5879 msgstr ""
5880
5881 # type: textblock
5882 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3225 ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
5883 msgid ""
5884 "Only numeric uid and gid are supported.  If you want to use names, you will "
5885 "need to locate and parse the password file yourself (Augeas support makes "
5886 "this relatively easy)."
5887 msgstr ""
5888
5889 # type: =head2
5890 #: ../src/guestfs-actions.pod:1012
5891 msgid "guestfs_command"
5892 msgstr ""
5893
5894 # type: verbatim
5895 #: ../src/guestfs-actions.pod:1014
5896 #, no-wrap
5897 msgid ""
5898 " char *\n"
5899 " guestfs_command (guestfs_h *g,\n"
5900 "                  char *const *arguments);\n"
5901 "\n"
5902 msgstr ""
5903
5904 # type: textblock
5905 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
5906 msgid ""
5907 "This call runs a command from the guest filesystem.  The filesystem must be "
5908 "mounted, and must contain a compatible operating system (ie. something "
5909 "Linux, with the same or compatible processor architecture)."
5910 msgstr ""
5911
5912 # type: textblock
5913 #: ../src/guestfs-actions.pod:1023
5914 msgid ""
5915 "The single parameter is an argv-style list of arguments.  The first element "
5916 "is the name of the program to run.  Subsequent elements are parameters.  The "
5917 "list must be non-empty (ie. must contain a program name).  Note that the "
5918 "command runs directly, and is I<not> invoked via the shell (see "
5919 "C<guestfs_sh>)."
5920 msgstr ""
5921
5922 # type: textblock
5923 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
5924 msgid "The return value is anything printed to I<stdout> by the command."
5925 msgstr ""
5926
5927 # type: textblock
5928 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
5929 msgid ""
5930 "If the command returns a non-zero exit status, then this function returns an "
5931 "error message.  The error message string is the content of I<stderr> from "
5932 "the command."
5933 msgstr ""
5934
5935 # type: textblock
5936 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
5937 msgid ""
5938 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5939 "C</bin>.  If you require a program from another location, you should provide "
5940 "the full path in the first parameter."
5941 msgstr ""
5942
5943 # type: textblock
5944 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
5945 msgid ""
5946 "Shared libraries and data files required by the program must be available on "
5947 "filesystems which are mounted in the correct places.  It is the caller's "
5948 "responsibility to ensure all filesystems that are needed are mounted at the "
5949 "right locations."
5950 msgstr ""
5951
5952 # type: textblock
5953 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1537
5954 msgid "(Added in 0.9.1)"
5955 msgstr ""
5956
5957 # type: =head2
5958 #: ../src/guestfs-actions.pod:1056
5959 msgid "guestfs_command_lines"
5960 msgstr ""
5961
5962 # type: verbatim
5963 #: ../src/guestfs-actions.pod:1058
5964 #, no-wrap
5965 msgid ""
5966 " char **\n"
5967 " guestfs_command_lines (guestfs_h *g,\n"
5968 "                        char *const *arguments);\n"
5969 "\n"
5970 msgstr ""
5971
5972 # type: textblock
5973 #: ../src/guestfs-actions.pod:1062
5974 msgid ""
5975 "This is the same as C<guestfs_command>, but splits the result into a list of "
5976 "lines."
5977 msgstr ""
5978
5979 # type: textblock
5980 #: ../src/guestfs-actions.pod:1065
5981 msgid "See also: C<guestfs_sh_lines>"
5982 msgstr ""
5983
5984 # type: =head2
5985 #: ../src/guestfs-actions.pod:1076
5986 msgid "guestfs_config"
5987 msgstr ""
5988
5989 # type: verbatim
5990 #: ../src/guestfs-actions.pod:1078
5991 #, no-wrap
5992 msgid ""
5993 " int\n"
5994 " guestfs_config (guestfs_h *g,\n"
5995 "                 const char *qemuparam,\n"
5996 "                 const char *qemuvalue);\n"
5997 "\n"
5998 msgstr ""
5999
6000 # type: textblock
6001 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6002 msgid ""
6003 "This can be used to add arbitrary qemu command line parameters of the form "
6004 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6005 "setting some parameters which would interfere with parameters that we use."
6006 msgstr ""
6007
6008 # type: textblock
6009 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6010 msgid "The first character of C<param> string must be a C<-> (dash)."
6011 msgstr ""
6012
6013 # type: textblock
6014 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6015 msgid "C<value> can be NULL."
6016 msgstr ""
6017
6018 # type: =head2
6019 #: ../src/guestfs-actions.pod:1096
6020 msgid "guestfs_copy_size"
6021 msgstr ""
6022
6023 # type: verbatim
6024 #: ../src/guestfs-actions.pod:1098
6025 #, no-wrap
6026 msgid ""
6027 " int\n"
6028 " guestfs_copy_size (guestfs_h *g,\n"
6029 "                    const char *src,\n"
6030 "                    const char *dest,\n"
6031 "                    int64_t size);\n"
6032 "\n"
6033 msgstr ""
6034
6035 # type: textblock
6036 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6037 msgid ""
6038 "This command copies exactly C<size> bytes from one source device or file "
6039 "C<src> to another destination device or file C<dest>."
6040 msgstr ""
6041
6042 # type: textblock
6043 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6044 msgid ""
6045 "Note this will fail if the source is too short or if the destination is not "
6046 "large enough."
6047 msgstr ""
6048
6049 # type: textblock
6050 #: ../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:6390 ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6922
6051 msgid ""
6052 "This long-running command can generate progress notification messages so "
6053 "that the caller can display a progress bar or indicator.  To receive these "
6054 "messages, the caller must register a progress callback.  See "
6055 "L<guestfs(3)/guestfs_set_progress_callback>."
6056 msgstr ""
6057
6058 # type: textblock
6059 #: ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:4999 ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6737
6060 msgid "(Added in 1.0.87)"
6061 msgstr ""
6062
6063 # type: =head2
6064 #: ../src/guestfs-actions.pod:1119
6065 msgid "guestfs_cp"
6066 msgstr ""
6067
6068 # type: verbatim
6069 #: ../src/guestfs-actions.pod:1121
6070 #, no-wrap
6071 msgid ""
6072 " int\n"
6073 " guestfs_cp (guestfs_h *g,\n"
6074 "             const char *src,\n"
6075 "             const char *dest);\n"
6076 "\n"
6077 msgstr ""
6078
6079 # type: textblock
6080 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6081 msgid ""
6082 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6083 "destination filename or destination directory."
6084 msgstr ""
6085
6086 # type: textblock
6087 #: ../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
6088 msgid "(Added in 1.0.18)"
6089 msgstr ""
6090
6091 # type: =head2
6092 #: ../src/guestfs-actions.pod:1133
6093 msgid "guestfs_cp_a"
6094 msgstr ""
6095
6096 # type: verbatim
6097 #: ../src/guestfs-actions.pod:1135
6098 #, no-wrap
6099 msgid ""
6100 " int\n"
6101 " guestfs_cp_a (guestfs_h *g,\n"
6102 "               const char *src,\n"
6103 "               const char *dest);\n"
6104 "\n"
6105 msgstr ""
6106
6107 # type: textblock
6108 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6109 msgid ""
6110 "This copies a file or directory from C<src> to C<dest> recursively using the "
6111 "C<cp -a> command."
6112 msgstr ""
6113
6114 # type: =head2
6115 #: ../src/guestfs-actions.pod:1147
6116 msgid "guestfs_dd"
6117 msgstr ""
6118
6119 # type: verbatim
6120 #: ../src/guestfs-actions.pod:1149
6121 #, no-wrap
6122 msgid ""
6123 " int\n"
6124 " guestfs_dd (guestfs_h *g,\n"
6125 "             const char *src,\n"
6126 "             const char *dest);\n"
6127 "\n"
6128 msgstr ""
6129
6130 # type: textblock
6131 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6132 msgid ""
6133 "This command copies from one source device or file C<src> to another "
6134 "destination device or file C<dest>.  Normally you would use this to copy to "
6135 "or from a device or partition, for example to duplicate a filesystem."
6136 msgstr ""
6137
6138 # type: textblock
6139 #: ../src/guestfs-actions.pod:1159
6140 msgid ""
6141 "If the destination is a device, it must be as large or larger than the "
6142 "source file or device, otherwise the copy will fail.  This command cannot do "
6143 "partial copies (see C<guestfs_copy_size>)."
6144 msgstr ""
6145
6146 # type: =head2
6147 #: ../src/guestfs-actions.pod:1167
6148 msgid "guestfs_df"
6149 msgstr ""
6150
6151 # type: verbatim
6152 #: ../src/guestfs-actions.pod:1169
6153 #, no-wrap
6154 msgid ""
6155 " char *\n"
6156 " guestfs_df (guestfs_h *g);\n"
6157 "\n"
6158 msgstr ""
6159
6160 # type: textblock
6161 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6162 msgid "This command runs the C<df> command to report disk space used."
6163 msgstr ""
6164
6165 # type: textblock
6166 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191 ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6167 msgid ""
6168 "This command is mostly useful for interactive sessions.  It is I<not> "
6169 "intended that you try to parse the output string.  Use C<statvfs> from "
6170 "programs."
6171 msgstr ""
6172
6173 # type: textblock
6174 #: ../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:6770 ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6796
6175 msgid "(Added in 1.0.54)"
6176 msgstr ""
6177
6178 # type: =head2
6179 #: ../src/guestfs-actions.pod:1183
6180 msgid "guestfs_df_h"
6181 msgstr ""
6182
6183 # type: verbatim
6184 #: ../src/guestfs-actions.pod:1185
6185 #, no-wrap
6186 msgid ""
6187 " char *\n"
6188 " guestfs_df_h (guestfs_h *g);\n"
6189 "\n"
6190 msgstr ""
6191
6192 # type: textblock
6193 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6194 msgid ""
6195 "This command runs the C<df -h> command to report disk space used in "
6196 "human-readable format."
6197 msgstr ""
6198
6199 # type: =head2
6200 #: ../src/guestfs-actions.pod:1200
6201 msgid "guestfs_dmesg"
6202 msgstr ""
6203
6204 # type: verbatim
6205 #: ../src/guestfs-actions.pod:1202
6206 #, no-wrap
6207 msgid ""
6208 " char *\n"
6209 " guestfs_dmesg (guestfs_h *g);\n"
6210 "\n"
6211 msgstr ""
6212
6213 # type: textblock
6214 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6215 msgid ""
6216 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6217 "This is sometimes useful for extended debugging of problems."
6218 msgstr ""
6219
6220 # type: textblock
6221 #: ../src/guestfs-actions.pod:1209
6222 msgid ""
6223 "Another way to get the same information is to enable verbose messages with "
6224 "C<guestfs_set_verbose> or by setting the environment variable "
6225 "C<LIBGUESTFS_DEBUG=1> before running the program."
6226 msgstr ""
6227
6228 # type: =head2
6229 #: ../src/guestfs-actions.pod:1219
6230 msgid "guestfs_download"
6231 msgstr ""
6232
6233 # type: verbatim
6234 #: ../src/guestfs-actions.pod:1221
6235 #, no-wrap
6236 msgid ""
6237 " int\n"
6238 " guestfs_download (guestfs_h *g,\n"
6239 "                   const char *remotefilename,\n"
6240 "                   const char *filename);\n"
6241 "\n"
6242 msgstr ""
6243
6244 # type: textblock
6245 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6246 msgid ""
6247 "Download file C<remotefilename> and save it as C<filename> on the local "
6248 "machine."
6249 msgstr ""
6250
6251 # type: textblock
6252 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6384 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4273
6253 msgid "C<filename> can also be a named pipe."
6254 msgstr ""
6255
6256 # type: textblock
6257 #: ../src/guestfs-actions.pod:1231
6258 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6259 msgstr ""
6260
6261 # type: =head2
6262 #: ../src/guestfs-actions.pod:1242
6263 msgid "guestfs_download_offset"
6264 msgstr ""
6265
6266 # type: verbatim
6267 #: ../src/guestfs-actions.pod:1244
6268 #, no-wrap
6269 msgid ""
6270 " int\n"
6271 " guestfs_download_offset (guestfs_h *g,\n"
6272 "                          const char *remotefilename,\n"
6273 "                          const char *filename,\n"
6274 "                          int64_t offset,\n"
6275 "                          int64_t size);\n"
6276 "\n"
6277 msgstr ""
6278
6279 # type: textblock
6280 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6281 msgid ""
6282 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6283 "region must be within the file or device)."
6284 msgstr ""
6285
6286 # type: textblock
6287 #: ../src/guestfs-actions.pod:1257
6288 msgid ""
6289 "Note that there is no limit on the amount of data that can be downloaded "
6290 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6291 "full amount unless an error occurs."
6292 msgstr ""
6293
6294 # type: textblock
6295 #: ../src/guestfs-actions.pod:1262
6296 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6297 msgstr ""
6298
6299 # type: textblock
6300 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6429
6301 msgid "(Added in 1.5.17)"
6302 msgstr ""
6303
6304 # type: =head2
6305 #: ../src/guestfs-actions.pod:1273
6306 msgid "guestfs_drop_caches"
6307 msgstr ""
6308
6309 # type: verbatim
6310 #: ../src/guestfs-actions.pod:1275
6311 #, no-wrap
6312 msgid ""
6313 " int\n"
6314 " guestfs_drop_caches (guestfs_h *g,\n"
6315 "                      int whattodrop);\n"
6316 "\n"
6317 msgstr ""
6318
6319 # type: textblock
6320 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6321 msgid ""
6322 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6323 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6324 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6325 msgstr ""
6326
6327 # type: textblock
6328 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6329 msgid "Setting C<whattodrop> to 3 should drop everything."
6330 msgstr ""
6331
6332 # type: textblock
6333 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6334 msgid ""
6335 "This automatically calls L<sync(2)> before the operation, so that the "
6336 "maximum guest memory is freed."
6337 msgstr ""
6338
6339 # type: =head2
6340 #: ../src/guestfs-actions.pod:1293
6341 msgid "guestfs_du"
6342 msgstr ""
6343
6344 # type: verbatim
6345 #: ../src/guestfs-actions.pod:1295
6346 #, no-wrap
6347 msgid ""
6348 " int64_t\n"
6349 " guestfs_du (guestfs_h *g,\n"
6350 "             const char *path);\n"
6351 "\n"
6352 msgstr ""
6353
6354 # type: textblock
6355 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6356 msgid ""
6357 "This command runs the C<du -s> command to estimate file space usage for "
6358 "C<path>."
6359 msgstr ""
6360
6361 # type: textblock
6362 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6363 msgid ""
6364 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6365 "estimate includes the contents of the directory and all subdirectories "
6366 "(recursively)."
6367 msgstr ""
6368
6369 # type: textblock
6370 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6371 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6372 msgstr ""
6373
6374 # type: =head2
6375 #: ../src/guestfs-actions.pod:1313
6376 msgid "guestfs_e2fsck_f"
6377 msgstr ""
6378
6379 # type: verbatim
6380 #: ../src/guestfs-actions.pod:1315
6381 #, no-wrap
6382 msgid ""
6383 " int\n"
6384 " guestfs_e2fsck_f (guestfs_h *g,\n"
6385 "                   const char *device);\n"
6386 "\n"
6387 msgstr ""
6388
6389 # type: textblock
6390 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6391 msgid ""
6392 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6393 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6394 "clean (C<-f>)."
6395 msgstr ""
6396
6397 # type: textblock
6398 #: ../src/guestfs-actions.pod:1323
6399 msgid ""
6400 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6401 "Normally you should use C<guestfs_fsck>."
6402 msgstr ""
6403
6404 # type: textblock
6405 #: ../src/guestfs-actions.pod:1328
6406 msgid "(Added in 1.0.29)"
6407 msgstr ""
6408
6409 # type: =head2
6410 #: ../src/guestfs-actions.pod:1330
6411 msgid "guestfs_echo_daemon"
6412 msgstr ""
6413
6414 # type: verbatim
6415 #: ../src/guestfs-actions.pod:1332
6416 #, no-wrap
6417 msgid ""
6418 " char *\n"
6419 " guestfs_echo_daemon (guestfs_h *g,\n"
6420 "                      char *const *words);\n"
6421 "\n"
6422 msgstr ""
6423
6424 # type: textblock
6425 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6426 msgid ""
6427 "This command concatenates the list of C<words> passed with single spaces "
6428 "between them and returns the resulting string."
6429 msgstr ""
6430
6431 # type: textblock
6432 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6433 msgid "You can use this command to test the connection through to the daemon."
6434 msgstr ""
6435
6436 # type: textblock
6437 #: ../src/guestfs-actions.pod:1341
6438 msgid "See also C<guestfs_ping_daemon>."
6439 msgstr ""
6440
6441 # type: textblock
6442 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5632
6443 msgid "(Added in 1.0.69)"
6444 msgstr ""
6445
6446 # type: =head2
6447 #: ../src/guestfs-actions.pod:1348
6448 msgid "guestfs_egrep"
6449 msgstr ""
6450
6451 # type: verbatim
6452 #: ../src/guestfs-actions.pod:1350
6453 #, no-wrap
6454 msgid ""
6455 " char **\n"
6456 " guestfs_egrep (guestfs_h *g,\n"
6457 "                const char *regex,\n"
6458 "                const char *path);\n"
6459 "\n"
6460 msgstr ""
6461
6462 # type: textblock
6463 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6464 msgid "This calls the external C<egrep> program and returns the matching lines."
6465 msgstr ""
6466
6467 # type: textblock
6468 #: ../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:6866 ../src/guestfs-actions.pod:6885 ../src/guestfs-actions.pod:6970 ../src/guestfs-actions.pod:6989 ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7054
6469 msgid "(Added in 1.0.66)"
6470 msgstr ""
6471
6472 # type: =head2
6473 #: ../src/guestfs-actions.pod:1367
6474 msgid "guestfs_egrepi"
6475 msgstr ""
6476
6477 # type: verbatim
6478 #: ../src/guestfs-actions.pod:1369
6479 #, no-wrap
6480 msgid ""
6481 " char **\n"
6482 " guestfs_egrepi (guestfs_h *g,\n"
6483 "                 const char *regex,\n"
6484 "                 const char *path);\n"
6485 "\n"
6486 msgstr ""
6487
6488 # type: textblock
6489 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6490 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6491 msgstr ""
6492
6493 # type: =head2
6494 #: ../src/guestfs-actions.pod:1386
6495 msgid "guestfs_equal"
6496 msgstr ""
6497
6498 # type: verbatim
6499 #: ../src/guestfs-actions.pod:1388
6500 #, no-wrap
6501 msgid ""
6502 " int\n"
6503 " guestfs_equal (guestfs_h *g,\n"
6504 "                const char *file1,\n"
6505 "                const char *file2);\n"
6506 "\n"
6507 msgstr ""
6508
6509 # type: textblock
6510 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6511 msgid ""
6512 "This compares the two files C<file1> and C<file2> and returns true if their "
6513 "content is exactly equal, or false otherwise."
6514 msgstr ""
6515
6516 # type: textblock
6517 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6518 msgid "The external L<cmp(1)> program is used for the comparison."
6519 msgstr ""
6520
6521 # type: =head2
6522 #: ../src/guestfs-actions.pod:1402
6523 msgid "guestfs_exists"
6524 msgstr ""
6525
6526 # type: verbatim
6527 #: ../src/guestfs-actions.pod:1404
6528 #, no-wrap
6529 msgid ""
6530 " int\n"
6531 " guestfs_exists (guestfs_h *g,\n"
6532 "                 const char *path);\n"
6533 "\n"
6534 msgstr ""
6535
6536 # type: textblock
6537 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6538 msgid ""
6539 "This returns C<true> if and only if there is a file, directory (or anything) "
6540 "with the given C<path> name."
6541 msgstr ""
6542
6543 # type: textblock
6544 #: ../src/guestfs-actions.pod:1411
6545 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6546 msgstr ""
6547
6548 # type: =head2
6549 #: ../src/guestfs-actions.pod:1417
6550 msgid "guestfs_fallocate"
6551 msgstr ""
6552
6553 # type: verbatim
6554 #: ../src/guestfs-actions.pod:1419
6555 #, no-wrap
6556 msgid ""
6557 " int\n"
6558 " guestfs_fallocate (guestfs_h *g,\n"
6559 "                    const char *path,\n"
6560 "                    int len);\n"
6561 "\n"
6562 msgstr ""
6563
6564 # type: textblock
6565 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6566 msgid ""
6567 "This command preallocates a file (containing zero bytes) named C<path> of "
6568 "size C<len> bytes.  If the file exists already, it is overwritten."
6569 msgstr ""
6570
6571 # type: textblock
6572 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
6573 msgid ""
6574 "Do not confuse this with the guestfish-specific C<alloc> command which "
6575 "allocates a file in the host and attaches it as a device."
6576 msgstr ""
6577
6578 # type: textblock
6579 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
6580 msgid ""
6581 "This function is deprecated.  In new code, use the C<fallocate64> call "
6582 "instead."
6583 msgstr ""
6584
6585 # type: =head2
6586 #: ../src/guestfs-actions.pod:1443
6587 msgid "guestfs_fallocate64"
6588 msgstr ""
6589
6590 # type: verbatim
6591 #: ../src/guestfs-actions.pod:1445
6592 #, no-wrap
6593 msgid ""
6594 " int\n"
6595 " guestfs_fallocate64 (guestfs_h *g,\n"
6596 "                      const char *path,\n"
6597 "                      int64_t len);\n"
6598 "\n"
6599 msgstr ""
6600
6601 # type: textblock
6602 #: ../src/guestfs-actions.pod:1454
6603 msgid ""
6604 "Note that this call allocates disk blocks for the file.  To create a sparse "
6605 "file use C<guestfs_truncate_size> instead."
6606 msgstr ""
6607
6608 # type: textblock
6609 #: ../src/guestfs-actions.pod:1457
6610 msgid ""
6611 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6612 "oversight it only allowed 30 bit lengths to be specified, effectively "
6613 "limiting the maximum size of files created through that call to 1GB."
6614 msgstr ""
6615
6616 # type: textblock
6617 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
6618 msgid ""
6619 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6620 "commands which create a file in the host and attach it as a device."
6621 msgstr ""
6622
6623 # type: textblock
6624 #: ../src/guestfs-actions.pod:1468
6625 msgid "(Added in 1.3.17)"
6626 msgstr ""
6627
6628 # type: =head2
6629 #: ../src/guestfs-actions.pod:1470
6630 msgid "guestfs_fgrep"
6631 msgstr ""
6632
6633 # type: verbatim
6634 #: ../src/guestfs-actions.pod:1472
6635 #, no-wrap
6636 msgid ""
6637 " char **\n"
6638 " guestfs_fgrep (guestfs_h *g,\n"
6639 "                const char *pattern,\n"
6640 "                const char *path);\n"
6641 "\n"
6642 msgstr ""
6643
6644 # type: textblock
6645 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
6646 msgid "This calls the external C<fgrep> program and returns the matching lines."
6647 msgstr ""
6648
6649 # type: =head2
6650 #: ../src/guestfs-actions.pod:1489
6651 msgid "guestfs_fgrepi"
6652 msgstr ""
6653
6654 # type: verbatim
6655 #: ../src/guestfs-actions.pod:1491
6656 #, no-wrap
6657 msgid ""
6658 " char **\n"
6659 " guestfs_fgrepi (guestfs_h *g,\n"
6660 "                 const char *pattern,\n"
6661 "                 const char *path);\n"
6662 "\n"
6663 msgstr ""
6664
6665 # type: textblock
6666 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
6667 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6668 msgstr ""
6669
6670 # type: =head2
6671 #: ../src/guestfs-actions.pod:1508
6672 msgid "guestfs_file"
6673 msgstr ""
6674
6675 # type: verbatim
6676 #: ../src/guestfs-actions.pod:1510
6677 #, no-wrap
6678 msgid ""
6679 " char *\n"
6680 " guestfs_file (guestfs_h *g,\n"
6681 "               const char *path);\n"
6682 "\n"
6683 msgstr ""
6684
6685 # type: textblock
6686 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
6687 msgid ""
6688 "This call uses the standard L<file(1)> command to determine the type or "
6689 "contents of the file."
6690 msgstr ""
6691
6692 # type: textblock
6693 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
6694 msgid ""
6695 "This call will also transparently look inside various types of compressed "
6696 "file."
6697 msgstr ""
6698
6699 # type: textblock
6700 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
6701 msgid ""
6702 "The exact command which runs is C<file -zb path>.  Note in particular that "
6703 "the filename is not prepended to the output (the C<-b> option)."
6704 msgstr ""
6705
6706 # type: textblock
6707 #: ../src/guestfs-actions.pod:1524
6708 msgid ""
6709 "This command can also be used on C</dev/> devices (and partitions, LV "
6710 "names).  You can for example use this to determine if a device contains a "
6711 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6712 msgstr ""
6713
6714 # type: textblock
6715 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
6716 msgid ""
6717 "If the C<path> does not begin with C</dev/> then this command only works for "
6718 "the content of regular files.  For other file types (directory, symbolic "
6719 "link etc) it will just return the string C<directory> etc."
6720 msgstr ""
6721
6722 # type: =head2
6723 #: ../src/guestfs-actions.pod:1539
6724 msgid "guestfs_file_architecture"
6725 msgstr ""
6726
6727 # type: verbatim
6728 #: ../src/guestfs-actions.pod:1541
6729 #, no-wrap
6730 msgid ""
6731 " char *\n"
6732 " guestfs_file_architecture (guestfs_h *g,\n"
6733 "                            const char *filename);\n"
6734 "\n"
6735 msgstr ""
6736
6737 # type: textblock
6738 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
6739 msgid ""
6740 "This detects the architecture of the binary C<filename>, and returns it if "
6741 "known."
6742 msgstr ""
6743
6744 # type: textblock
6745 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
6746 msgid "Currently defined architectures are:"
6747 msgstr ""
6748
6749 # type: =item
6750 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
6751 msgid "\"i386\""
6752 msgstr ""
6753
6754 # type: textblock
6755 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
6756 msgid ""
6757 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6758 "irrespective of the precise processor requirements of the binary."
6759 msgstr ""
6760
6761 # type: =item
6762 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
6763 msgid "\"x86_64\""
6764 msgstr ""
6765
6766 # type: textblock
6767 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
6768 msgid "64 bit x86-64."
6769 msgstr ""
6770
6771 # type: =item
6772 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
6773 msgid "\"sparc\""
6774 msgstr ""
6775
6776 # type: textblock
6777 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
6778 msgid "32 bit SPARC."
6779 msgstr ""
6780
6781 # type: =item
6782 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
6783 msgid "\"sparc64\""
6784 msgstr ""
6785
6786 # type: textblock
6787 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
6788 msgid "64 bit SPARC V9 and above."
6789 msgstr ""
6790
6791 # type: =item
6792 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
6793 msgid "\"ia64\""
6794 msgstr ""
6795
6796 # type: textblock
6797 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
6798 msgid "Intel Itanium."
6799 msgstr ""
6800
6801 # type: =item
6802 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
6803 msgid "\"ppc\""
6804 msgstr ""
6805
6806 # type: textblock
6807 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
6808 msgid "32 bit Power PC."
6809 msgstr ""
6810
6811 # type: =item
6812 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
6813 msgid "\"ppc64\""
6814 msgstr ""
6815
6816 # type: textblock
6817 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
6818 msgid "64 bit Power PC."
6819 msgstr ""
6820
6821 # type: textblock
6822 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
6823 msgid "Libguestfs may return other architecture strings in future."
6824 msgstr ""
6825
6826 # type: textblock
6827 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
6828 msgid "The function works on at least the following types of files:"
6829 msgstr ""
6830
6831 # type: textblock
6832 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
6833 msgid "many types of Un*x and Linux binary"
6834 msgstr ""
6835
6836 # type: textblock
6837 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
6838 msgid "many types of Un*x and Linux shared library"
6839 msgstr ""
6840
6841 # type: textblock
6842 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
6843 msgid "Windows Win32 and Win64 binaries"
6844 msgstr ""
6845
6846 # type: textblock
6847 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
6848 msgid "Windows Win32 and Win64 DLLs"
6849 msgstr ""
6850
6851 # type: textblock
6852 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
6853 msgid "Win32 binaries and DLLs return C<i386>."
6854 msgstr ""
6855
6856 # type: textblock
6857 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
6858 msgid "Win64 binaries and DLLs return C<x86_64>."
6859 msgstr ""
6860
6861 # type: textblock
6862 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
6863 msgid "Linux kernel modules"
6864 msgstr ""
6865
6866 # type: textblock
6867 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
6868 msgid "Linux new-style initrd images"
6869 msgstr ""
6870
6871 # type: textblock
6872 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
6873 msgid "some non-x86 Linux vmlinuz kernels"
6874 msgstr ""
6875
6876 # type: textblock
6877 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
6878 msgid "What it can't do currently:"
6879 msgstr ""
6880
6881 # type: textblock
6882 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
6883 msgid "static libraries (libfoo.a)"
6884 msgstr ""
6885
6886 # type: textblock
6887 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
6888 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6889 msgstr ""
6890
6891 # type: textblock
6892 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
6893 msgid "x86 Linux vmlinuz kernels"
6894 msgstr ""
6895
6896 # type: textblock
6897 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
6898 msgid ""
6899 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6900 "compressed code, and are horribly hard to unpack.  If you want to find the "
6901 "architecture of a kernel, use the architecture of the associated initrd or "
6902 "kernel module(s) instead."
6903 msgstr ""
6904
6905 # type: textblock
6906 #: ../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
6907 msgid "(Added in 1.5.3)"
6908 msgstr ""
6909
6910 # type: =head2
6911 #: ../src/guestfs-actions.pod:1651
6912 msgid "guestfs_filesize"
6913 msgstr ""
6914
6915 # type: verbatim
6916 #: ../src/guestfs-actions.pod:1653
6917 #, no-wrap
6918 msgid ""
6919 " int64_t\n"
6920 " guestfs_filesize (guestfs_h *g,\n"
6921 "                   const char *file);\n"
6922 "\n"
6923 msgstr ""
6924
6925 # type: textblock
6926 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
6927 msgid "This command returns the size of C<file> in bytes."
6928 msgstr ""
6929
6930 # type: textblock
6931 #: ../src/guestfs-actions.pod:1659
6932 msgid ""
6933 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6934 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6935 "devices, use C<guestfs_blockdev_getsize64>."
6936 msgstr ""
6937
6938 # type: textblock
6939 #: ../src/guestfs-actions.pod:1665
6940 msgid "(Added in 1.0.82)"
6941 msgstr ""
6942
6943 # type: =head2
6944 #: ../src/guestfs-actions.pod:1667
6945 msgid "guestfs_fill"
6946 msgstr ""
6947
6948 # type: verbatim
6949 #: ../src/guestfs-actions.pod:1669
6950 #, no-wrap
6951 msgid ""
6952 " int\n"
6953 " guestfs_fill (guestfs_h *g,\n"
6954 "               int c,\n"
6955 "               int len,\n"
6956 "               const char *path);\n"
6957 "\n"
6958 msgstr ""
6959
6960 # type: textblock
6961 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
6962 msgid ""
6963 "This command creates a new file called C<path>.  The initial content of the "
6964 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6965 "C<[0..255]>."
6966 msgstr ""
6967
6968 # type: textblock
6969 #: ../src/guestfs-actions.pod:1679
6970 msgid ""
6971 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6972 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6973 "bytes use C<guestfs_fill_pattern>."
6974 msgstr ""
6975
6976 # type: textblock
6977 #: ../src/guestfs-actions.pod:1691
6978 msgid "(Added in 1.0.79)"
6979 msgstr ""
6980
6981 # type: =head2
6982 #: ../src/guestfs-actions.pod:1693
6983 msgid "guestfs_fill_pattern"
6984 msgstr ""
6985
6986 # type: verbatim
6987 #: ../src/guestfs-actions.pod:1695
6988 #, no-wrap
6989 msgid ""
6990 " int\n"
6991 " guestfs_fill_pattern (guestfs_h *g,\n"
6992 "                       const char *pattern,\n"
6993 "                       int len,\n"
6994 "                       const char *path);\n"
6995 "\n"
6996 msgstr ""
6997
6998 # type: textblock
6999 #: ../src/guestfs-actions.pod:1701
7000 msgid ""
7001 "This function is like C<guestfs_fill> except that it creates a new file of "
7002 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7003 "pattern is truncated if necessary to ensure the length of the file is "
7004 "exactly C<len> bytes."
7005 msgstr ""
7006
7007 # type: textblock
7008 #: ../src/guestfs-actions.pod:1713
7009 msgid "(Added in 1.3.12)"
7010 msgstr ""
7011
7012 # type: =head2
7013 #: ../src/guestfs-actions.pod:1715
7014 msgid "guestfs_find"
7015 msgstr ""
7016
7017 # type: verbatim
7018 #: ../src/guestfs-actions.pod:1717
7019 #, no-wrap
7020 msgid ""
7021 " char **\n"
7022 " guestfs_find (guestfs_h *g,\n"
7023 "               const char *directory);\n"
7024 "\n"
7025 msgstr ""
7026
7027 # type: textblock
7028 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7029 msgid ""
7030 "This command lists out all files and directories, recursively, starting at "
7031 "C<directory>.  It is essentially equivalent to running the shell command "
7032 "C<find directory -print> but some post-processing happens on the output, "
7033 "described below."
7034 msgstr ""
7035
7036 # type: textblock
7037 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7038 msgid ""
7039 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7040 "structure was:"
7041 msgstr ""
7042
7043 # type: verbatim
7044 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7045 #, no-wrap
7046 msgid ""
7047 " /tmp/a\n"
7048 " /tmp/b\n"
7049 " /tmp/c/d\n"
7050 "\n"
7051 msgstr ""
7052
7053 # type: textblock
7054 #: ../src/guestfs-actions.pod:1733
7055 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7056 msgstr ""
7057
7058 # type: verbatim
7059 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7060 #, no-wrap
7061 msgid ""
7062 " a\n"
7063 " b\n"
7064 " c\n"
7065 " c/d\n"
7066 "\n"
7067 msgstr ""
7068
7069 # type: textblock
7070 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7071 msgid "If C<directory> is not a directory, then this command returns an error."
7072 msgstr ""
7073
7074 # type: textblock
7075 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7076 msgid "The returned list is sorted."
7077 msgstr ""
7078
7079 # type: textblock
7080 #: ../src/guestfs-actions.pod:1746
7081 msgid "See also C<guestfs_find0>."
7082 msgstr ""
7083
7084 # type: textblock
7085 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:5261
7086 msgid "(Added in 1.0.27)"
7087 msgstr ""
7088
7089 # type: =head2
7090 #: ../src/guestfs-actions.pod:1757
7091 msgid "guestfs_find0"
7092 msgstr ""
7093
7094 # type: verbatim
7095 #: ../src/guestfs-actions.pod:1759
7096 #, no-wrap
7097 msgid ""
7098 " int\n"
7099 " guestfs_find0 (guestfs_h *g,\n"
7100 "                const char *directory,\n"
7101 "                const char *files);\n"
7102 "\n"
7103 msgstr ""
7104
7105 # type: textblock
7106 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7107 msgid ""
7108 "This command lists out all files and directories, recursively, starting at "
7109 "C<directory>, placing the resulting list in the external file called "
7110 "C<files>."
7111 msgstr ""
7112
7113 # type: textblock
7114 #: ../src/guestfs-actions.pod:1768
7115 msgid ""
7116 "This command works the same way as C<guestfs_find> with the following "
7117 "exceptions:"
7118 msgstr ""
7119
7120 # type: textblock
7121 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7122 msgid "The resulting list is written to an external file."
7123 msgstr ""
7124
7125 # type: textblock
7126 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7127 msgid ""
7128 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7129 "L<find(1)> option I<-print0>."
7130 msgstr ""
7131
7132 # type: textblock
7133 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7134 msgid "This command is not limited in the number of names that it can return."
7135 msgstr ""
7136
7137 # type: textblock
7138 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7139 msgid "The result list is not sorted."
7140 msgstr ""
7141
7142 # type: textblock
7143 #: ../src/guestfs-actions.pod:1795
7144 msgid "(Added in 1.0.74)"
7145 msgstr ""
7146
7147 # type: =head2
7148 #: ../src/guestfs-actions.pod:1797
7149 msgid "guestfs_findfs_label"
7150 msgstr ""
7151
7152 # type: verbatim
7153 #: ../src/guestfs-actions.pod:1799
7154 #, no-wrap
7155 msgid ""
7156 " char *\n"
7157 " guestfs_findfs_label (guestfs_h *g,\n"
7158 "                       const char *label);\n"
7159 "\n"
7160 msgstr ""
7161
7162 # type: textblock
7163 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7164 msgid ""
7165 "This command searches the filesystems and returns the one which has the "
7166 "given label.  An error is returned if no such filesystem can be found."
7167 msgstr ""
7168
7169 # type: textblock
7170 #: ../src/guestfs-actions.pod:1807
7171 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7172 msgstr ""
7173
7174 # type: =head2
7175 #: ../src/guestfs-actions.pod:1814
7176 msgid "guestfs_findfs_uuid"
7177 msgstr ""
7178
7179 # type: verbatim
7180 #: ../src/guestfs-actions.pod:1816
7181 #, no-wrap
7182 msgid ""
7183 " char *\n"
7184 " guestfs_findfs_uuid (guestfs_h *g,\n"
7185 "                      const char *uuid);\n"
7186 "\n"
7187 msgstr ""
7188
7189 # type: textblock
7190 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7191 msgid ""
7192 "This command searches the filesystems and returns the one which has the "
7193 "given UUID.  An error is returned if no such filesystem can be found."
7194 msgstr ""
7195
7196 # type: textblock
7197 #: ../src/guestfs-actions.pod:1824
7198 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7199 msgstr ""
7200
7201 # type: =head2
7202 #: ../src/guestfs-actions.pod:1831
7203 msgid "guestfs_fsck"
7204 msgstr ""
7205
7206 # type: verbatim
7207 #: ../src/guestfs-actions.pod:1833
7208 #, no-wrap
7209 msgid ""
7210 " int\n"
7211 " guestfs_fsck (guestfs_h *g,\n"
7212 "               const char *fstype,\n"
7213 "               const char *device);\n"
7214 "\n"
7215 msgstr ""
7216
7217 # type: textblock
7218 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7219 msgid ""
7220 "This runs the filesystem checker (fsck) on C<device> which should have "
7221 "filesystem type C<fstype>."
7222 msgstr ""
7223
7224 # type: textblock
7225 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7226 msgid ""
7227 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7228 "codes from C<fsck>."
7229 msgstr ""
7230
7231 # type: textblock
7232 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7233 msgid "Multiple status codes can be summed together."
7234 msgstr ""
7235
7236 # type: textblock
7237 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7238 msgid ""
7239 "A non-zero return code can mean \"success\", for example if errors have been "
7240 "corrected on the filesystem."
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7245 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7246 msgstr ""
7247
7248 # type: textblock
7249 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7250 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7251 msgstr ""
7252
7253 # type: textblock
7254 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:6908
7255 msgid "(Added in 1.0.16)"
7256 msgstr ""
7257
7258 # type: =head2
7259 #: ../src/guestfs-actions.pod:1870
7260 msgid "guestfs_get_append"
7261 msgstr ""
7262
7263 # type: verbatim
7264 #: ../src/guestfs-actions.pod:1872
7265 #, no-wrap
7266 msgid ""
7267 " const char *\n"
7268 " guestfs_get_append (guestfs_h *g);\n"
7269 "\n"
7270 msgstr ""
7271
7272 # type: textblock
7273 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7274 msgid ""
7275 "Return the additional kernel options which are added to the guest kernel "
7276 "command line."
7277 msgstr ""
7278
7279 # type: textblock
7280 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7281 msgid "If C<NULL> then no options are added."
7282 msgstr ""
7283
7284 # type: textblock
7285 #: ../src/guestfs-actions.pod:1880
7286 msgid ""
7287 "This function returns a string which may be NULL.  There is no way to return "
7288 "an error from this function.  The string is owned by the guest handle and "
7289 "must I<not> be freed."
7290 msgstr ""
7291
7292 # type: textblock
7293 #: ../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:6579 ../src/guestfs-actions.pod:6597 ../src/guestfs-actions.pod:6951
7294 msgid "(Added in 1.0.26)"
7295 msgstr ""
7296
7297 # type: =head2
7298 #: ../src/guestfs-actions.pod:1886
7299 msgid "guestfs_get_autosync"
7300 msgstr ""
7301
7302 # type: verbatim
7303 #: ../src/guestfs-actions.pod:1888
7304 #, no-wrap
7305 msgid ""
7306 " int\n"
7307 " guestfs_get_autosync (guestfs_h *g);\n"
7308 "\n"
7309 msgstr ""
7310
7311 # type: textblock
7312 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7313 msgid "Get the autosync flag."
7314 msgstr ""
7315
7316 # type: =head2
7317 #: ../src/guestfs-actions.pod:1897
7318 msgid "guestfs_get_direct"
7319 msgstr ""
7320
7321 # type: verbatim
7322 #: ../src/guestfs-actions.pod:1899
7323 #, no-wrap
7324 msgid ""
7325 " int\n"
7326 " guestfs_get_direct (guestfs_h *g);\n"
7327 "\n"
7328 msgstr ""
7329
7330 # type: textblock
7331 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7332 msgid "Return the direct appliance mode flag."
7333 msgstr ""
7334
7335 # type: textblock
7336 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5443
7337 msgid "(Added in 1.0.72)"
7338 msgstr ""
7339
7340 # type: =head2
7341 #: ../src/guestfs-actions.pod:1908
7342 msgid "guestfs_get_e2label"
7343 msgstr ""
7344
7345 # type: verbatim
7346 #: ../src/guestfs-actions.pod:1910
7347 #, no-wrap
7348 msgid ""
7349 " char *\n"
7350 " guestfs_get_e2label (guestfs_h *g,\n"
7351 "                      const char *device);\n"
7352 "\n"
7353 msgstr ""
7354
7355 # type: textblock
7356 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7357 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7358 msgstr ""
7359
7360 # type: textblock
7361 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7362 msgid ""
7363 "This function is deprecated.  In new code, use the C<vfs_label> call "
7364 "instead."
7365 msgstr ""
7366
7367 # type: textblock
7368 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5480
7369 msgid "(Added in 1.0.15)"
7370 msgstr ""
7371
7372 # type: =head2
7373 #: ../src/guestfs-actions.pod:1929
7374 msgid "guestfs_get_e2uuid"
7375 msgstr ""
7376
7377 # type: verbatim
7378 #: ../src/guestfs-actions.pod:1931
7379 #, no-wrap
7380 msgid ""
7381 " char *\n"
7382 " guestfs_get_e2uuid (guestfs_h *g,\n"
7383 "                     const char *device);\n"
7384 "\n"
7385 msgstr ""
7386
7387 # type: textblock
7388 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7389 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7390 msgstr ""
7391
7392 # type: textblock
7393 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7394 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7395 msgstr ""
7396
7397 # type: =head2
7398 #: ../src/guestfs-actions.pod:1950
7399 msgid "guestfs_get_memsize"
7400 msgstr ""
7401
7402 # type: verbatim
7403 #: ../src/guestfs-actions.pod:1952
7404 #, no-wrap
7405 msgid ""
7406 " int\n"
7407 " guestfs_get_memsize (guestfs_h *g);\n"
7408 "\n"
7409 msgstr ""
7410
7411 # type: textblock
7412 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7413 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7414 msgstr ""
7415
7416 # type: textblock
7417 #: ../src/guestfs-actions.pod:1958
7418 msgid ""
7419 "If C<guestfs_set_memsize> was not called on this handle, and if "
7420 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7421 "value for memsize."
7422 msgstr ""
7423
7424 # type: textblock
7425 #: ../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
7426 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7427 msgstr ""
7428
7429 # type: textblock
7430 #: ../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
7431 msgid "(Added in 1.0.55)"
7432 msgstr ""
7433
7434 # type: =head2
7435 #: ../src/guestfs-actions.pod:1969
7436 msgid "guestfs_get_network"
7437 msgstr ""
7438
7439 # type: verbatim
7440 #: ../src/guestfs-actions.pod:1971
7441 #, no-wrap
7442 msgid ""
7443 " int\n"
7444 " guestfs_get_network (guestfs_h *g);\n"
7445 "\n"
7446 msgstr ""
7447
7448 # type: textblock
7449 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7450 msgid "This returns the enable network flag."
7451 msgstr ""
7452
7453 # type: textblock
7454 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5520
7455 msgid "(Added in 1.5.4)"
7456 msgstr ""
7457
7458 # type: =head2
7459 #: ../src/guestfs-actions.pod:1980
7460 msgid "guestfs_get_path"
7461 msgstr ""
7462
7463 # type: verbatim
7464 #: ../src/guestfs-actions.pod:1982
7465 #, no-wrap
7466 msgid ""
7467 " const char *\n"
7468 " guestfs_get_path (guestfs_h *g);\n"
7469 "\n"
7470 msgstr ""
7471
7472 # type: textblock
7473 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7474 msgid "Return the current search path."
7475 msgstr ""
7476
7477 # type: textblock
7478 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7479 msgid ""
7480 "This is always non-NULL.  If it wasn't set already, then this will return "
7481 "the default path."
7482 msgstr ""
7483
7484 # type: textblock
7485 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7486 msgid ""
7487 "This function returns a string, or NULL on error.  The string is owned by "
7488 "the guest handle and must I<not> be freed."
7489 msgstr ""
7490
7491 # type: =head2
7492 #: ../src/guestfs-actions.pod:1995
7493 msgid "guestfs_get_pid"
7494 msgstr ""
7495
7496 # type: verbatim
7497 #: ../src/guestfs-actions.pod:1997
7498 #, no-wrap
7499 msgid ""
7500 " int\n"
7501 " guestfs_get_pid (guestfs_h *g);\n"
7502 "\n"
7503 msgstr ""
7504
7505 # type: textblock
7506 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7507 msgid ""
7508 "Return the process ID of the qemu subprocess.  If there is no qemu "
7509 "subprocess, then this will return an error."
7510 msgstr ""
7511
7512 # type: textblock
7513 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7514 msgid "This is an internal call used for debugging and testing."
7515 msgstr ""
7516
7517 # type: textblock
7518 #: ../src/guestfs-actions.pod:2007
7519 msgid "(Added in 1.0.56)"
7520 msgstr ""
7521
7522 # type: =head2
7523 #: ../src/guestfs-actions.pod:2009
7524 msgid "guestfs_get_qemu"
7525 msgstr ""
7526
7527 # type: verbatim
7528 #: ../src/guestfs-actions.pod:2011
7529 #, no-wrap
7530 msgid ""
7531 " const char *\n"
7532 " guestfs_get_qemu (guestfs_h *g);\n"
7533 "\n"
7534 msgstr ""
7535
7536 # type: textblock
7537 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
7538 msgid "Return the current qemu binary."
7539 msgstr ""
7540
7541 # type: textblock
7542 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
7543 msgid ""
7544 "This is always non-NULL.  If it wasn't set already, then this will return "
7545 "the default qemu binary name."
7546 msgstr ""
7547
7548 # type: textblock
7549 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5565
7550 msgid "(Added in 1.0.6)"
7551 msgstr ""
7552
7553 # type: =head2
7554 #: ../src/guestfs-actions.pod:2024
7555 msgid "guestfs_get_recovery_proc"
7556 msgstr ""
7557
7558 # type: verbatim
7559 #: ../src/guestfs-actions.pod:2026
7560 #, no-wrap
7561 msgid ""
7562 " int\n"
7563 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7564 "\n"
7565 msgstr ""
7566
7567 # type: textblock
7568 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
7569 msgid "Return the recovery process enabled flag."
7570 msgstr ""
7571
7572 # type: textblock
7573 #: ../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:6460
7574 msgid "(Added in 1.0.77)"
7575 msgstr ""
7576
7577 # type: =head2
7578 #: ../src/guestfs-actions.pod:2035
7579 msgid "guestfs_get_selinux"
7580 msgstr ""
7581
7582 # type: verbatim
7583 #: ../src/guestfs-actions.pod:2037
7584 #, no-wrap
7585 msgid ""
7586 " int\n"
7587 " guestfs_get_selinux (guestfs_h *g);\n"
7588 "\n"
7589 msgstr ""
7590
7591 # type: textblock
7592 #: ../src/guestfs-actions.pod:2040
7593 msgid ""
7594 "This returns the current setting of the selinux flag which is passed to the "
7595 "appliance at boot time.  See C<guestfs_set_selinux>."
7596 msgstr ""
7597
7598 # type: textblock
7599 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:5608 ../src/guestfs-actions.pod:5662
7600 msgid "(Added in 1.0.67)"
7601 msgstr ""
7602
7603 # type: =head2
7604 #: ../src/guestfs-actions.pod:2050
7605 msgid "guestfs_get_state"
7606 msgstr ""
7607
7608 # type: verbatim
7609 #: ../src/guestfs-actions.pod:2052
7610 #, no-wrap
7611 msgid ""
7612 " int\n"
7613 " guestfs_get_state (guestfs_h *g);\n"
7614 "\n"
7615 msgstr ""
7616
7617 # type: textblock
7618 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
7619 msgid ""
7620 "This returns the current state as an opaque integer.  This is only useful "
7621 "for printing debug and internal error messages."
7622 msgstr ""
7623
7624 # type: textblock
7625 #: ../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
7626 msgid "For more information on states, see L<guestfs(3)>."
7627 msgstr ""
7628
7629 # type: =head2
7630 #: ../src/guestfs-actions.pod:2064
7631 msgid "guestfs_get_trace"
7632 msgstr ""
7633
7634 # type: verbatim
7635 #: ../src/guestfs-actions.pod:2066
7636 #, no-wrap
7637 msgid ""
7638 " int\n"
7639 " guestfs_get_trace (guestfs_h *g);\n"
7640 "\n"
7641 msgstr ""
7642
7643 # type: textblock
7644 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
7645 msgid "Return the command trace flag."
7646 msgstr ""
7647
7648 # type: =head2
7649 #: ../src/guestfs-actions.pod:2075
7650 msgid "guestfs_get_umask"
7651 msgstr ""
7652
7653 # type: verbatim
7654 #: ../src/guestfs-actions.pod:2077
7655 #, no-wrap
7656 msgid ""
7657 " int\n"
7658 " guestfs_get_umask (guestfs_h *g);\n"
7659 "\n"
7660 msgstr ""
7661
7662 # type: textblock
7663 #: ../src/guestfs-actions.pod:2080
7664 msgid ""
7665 "Return the current umask.  By default the umask is C<022> unless it has been "
7666 "set by calling C<guestfs_umask>."
7667 msgstr ""
7668
7669 # type: =head2
7670 #: ../src/guestfs-actions.pod:2087
7671 msgid "guestfs_get_verbose"
7672 msgstr ""
7673
7674 # type: verbatim
7675 #: ../src/guestfs-actions.pod:2089
7676 #, no-wrap
7677 msgid ""
7678 " int\n"
7679 " guestfs_get_verbose (guestfs_h *g);\n"
7680 "\n"
7681 msgstr ""
7682
7683 # type: textblock
7684 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
7685 msgid "This returns the verbose messages flag."
7686 msgstr ""
7687
7688 # type: =head2
7689 #: ../src/guestfs-actions.pod:2098
7690 msgid "guestfs_getcon"
7691 msgstr ""
7692
7693 # type: verbatim
7694 #: ../src/guestfs-actions.pod:2100
7695 #, no-wrap
7696 msgid ""
7697 " char *\n"
7698 " guestfs_getcon (guestfs_h *g);\n"
7699 "\n"
7700 msgstr ""
7701
7702 # type: textblock
7703 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
7704 msgid "This gets the SELinux security context of the daemon."
7705 msgstr ""
7706
7707 # type: textblock
7708 #: ../src/guestfs-actions.pod:2105
7709 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7710 msgstr ""
7711
7712 # type: =head2
7713 #: ../src/guestfs-actions.pod:2113
7714 msgid "guestfs_getxattrs"
7715 msgstr ""
7716
7717 # type: verbatim
7718 #: ../src/guestfs-actions.pod:2115
7719 #, no-wrap
7720 msgid ""
7721 " struct guestfs_xattr_list *\n"
7722 " guestfs_getxattrs (guestfs_h *g,\n"
7723 "                    const char *path);\n"
7724 "\n"
7725 msgstr ""
7726
7727 # type: textblock
7728 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1432
7729 msgid "This call lists the extended attributes of the file or directory C<path>."
7730 msgstr ""
7731
7732 # type: textblock
7733 #: ../src/guestfs-actions.pod:2122 ../fish/guestfish-actions.pod:1435
7734 msgid ""
7735 "At the system call level, this is a combination of the L<listxattr(2)> and "
7736 "L<getxattr(2)> calls."
7737 msgstr ""
7738
7739 # type: textblock
7740 #: ../src/guestfs-actions.pod:2125
7741 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7742 msgstr ""
7743
7744 # type: textblock
7745 #: ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:3243 ../src/guestfs-actions.pod:3894
7746 msgid ""
7747 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7748 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7749 msgstr ""
7750
7751 # type: textblock
7752 #: ../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:7016
7753 msgid "(Added in 1.0.59)"
7754 msgstr ""
7755
7756 # type: =head2
7757 #: ../src/guestfs-actions.pod:2133
7758 msgid "guestfs_glob_expand"
7759 msgstr ""
7760
7761 # type: verbatim
7762 #: ../src/guestfs-actions.pod:2135
7763 #, no-wrap
7764 msgid ""
7765 " char **\n"
7766 " guestfs_glob_expand (guestfs_h *g,\n"
7767 "                      const char *pattern);\n"
7768 "\n"
7769 msgstr ""
7770
7771 # type: textblock
7772 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1444
7773 msgid ""
7774 "This command searches for all the pathnames matching C<pattern> according to "
7775 "the wildcard expansion rules used by the shell."
7776 msgstr ""
7777
7778 # type: textblock
7779 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1448
7780 msgid "If no paths match, then this returns an empty list (note: not an error)."
7781 msgstr ""
7782
7783 # type: textblock
7784 #: ../src/guestfs-actions.pod:2146 ../fish/guestfish-actions.pod:1451
7785 msgid ""
7786 "It is just a wrapper around the C L<glob(3)> function with flags "
7787 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7788 msgstr ""
7789
7790 # type: textblock
7791 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:5846 ../src/guestfs-actions.pod:5863
7792 msgid "(Added in 1.0.50)"
7793 msgstr ""
7794
7795 # type: =head2
7796 #: ../src/guestfs-actions.pod:2156
7797 msgid "guestfs_grep"
7798 msgstr ""
7799
7800 # type: verbatim
7801 #: ../src/guestfs-actions.pod:2158
7802 #, no-wrap
7803 msgid ""
7804 " char **\n"
7805 " guestfs_grep (guestfs_h *g,\n"
7806 "               const char *regex,\n"
7807 "               const char *path);\n"
7808 "\n"
7809 msgstr ""
7810
7811 # type: textblock
7812 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1459
7813 msgid "This calls the external C<grep> program and returns the matching lines."
7814 msgstr ""
7815
7816 # type: =head2
7817 #: ../src/guestfs-actions.pod:2175
7818 msgid "guestfs_grepi"
7819 msgstr ""
7820
7821 # type: verbatim
7822 #: ../src/guestfs-actions.pod:2177
7823 #, no-wrap
7824 msgid ""
7825 " char **\n"
7826 " guestfs_grepi (guestfs_h *g,\n"
7827 "                const char *regex,\n"
7828 "                const char *path);\n"
7829 "\n"
7830 msgstr ""
7831
7832 # type: textblock
7833 #: ../src/guestfs-actions.pod:2182 ../fish/guestfish-actions.pod:1469
7834 msgid "This calls the external C<grep -i> program and returns the matching lines."
7835 msgstr ""
7836
7837 # type: =head2
7838 #: ../src/guestfs-actions.pod:2194
7839 msgid "guestfs_grub_install"
7840 msgstr ""
7841
7842 # type: verbatim
7843 #: ../src/guestfs-actions.pod:2196
7844 #, no-wrap
7845 msgid ""
7846 " int\n"
7847 " guestfs_grub_install (guestfs_h *g,\n"
7848 "                       const char *root,\n"
7849 "                       const char *device);\n"
7850 "\n"
7851 msgstr ""
7852
7853 # type: textblock
7854 #: ../src/guestfs-actions.pod:2201 ../fish/guestfish-actions.pod:1479
7855 msgid ""
7856 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7857 "the root directory being C<root>."
7858 msgstr ""
7859
7860 # type: textblock
7861 #: ../src/guestfs-actions.pod:2204 ../fish/guestfish-actions.pod:1482
7862 msgid ""
7863 "Note: If grub-install reports the error \"No suitable drive was found in the "
7864 "generated device map.\" it may be that you need to create a "
7865 "C</boot/grub/device.map> file first that contains the mapping between grub "
7866 "device names and Linux device names.  It is usually sufficient to create a "
7867 "file containing:"
7868 msgstr ""
7869
7870 # type: verbatim
7871 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1489
7872 #, no-wrap
7873 msgid ""
7874 " (hd0) /dev/vda\n"
7875 "\n"
7876 msgstr ""
7877
7878 # type: textblock
7879 #: ../src/guestfs-actions.pod:2213 ../fish/guestfish-actions.pod:1491
7880 msgid "replacing C</dev/vda> with the name of the installation device."
7881 msgstr ""
7882
7883 # type: textblock
7884 #: ../src/guestfs-actions.pod:2217
7885 msgid "(Added in 1.0.17)"
7886 msgstr ""
7887
7888 # type: =head2
7889 #: ../src/guestfs-actions.pod:2219
7890 msgid "guestfs_head"
7891 msgstr ""
7892
7893 # type: verbatim
7894 #: ../src/guestfs-actions.pod:2221
7895 #, no-wrap
7896 msgid ""
7897 " char **\n"
7898 " guestfs_head (guestfs_h *g,\n"
7899 "               const char *path);\n"
7900 "\n"
7901 msgstr ""
7902
7903 # type: textblock
7904 #: ../src/guestfs-actions.pod:2225 ../fish/guestfish-actions.pod:1497
7905 msgid ""
7906 "This command returns up to the first 10 lines of a file as a list of "
7907 "strings."
7908 msgstr ""
7909
7910 # type: =head2
7911 #: ../src/guestfs-actions.pod:2237
7912 msgid "guestfs_head_n"
7913 msgstr ""
7914
7915 # type: verbatim
7916 #: ../src/guestfs-actions.pod:2239
7917 #, no-wrap
7918 msgid ""
7919 " char **\n"
7920 " guestfs_head_n (guestfs_h *g,\n"
7921 "                 int nrlines,\n"
7922 "                 const char *path);\n"
7923 "\n"
7924 msgstr ""
7925
7926 # type: textblock
7927 #: ../src/guestfs-actions.pod:2244 ../fish/guestfish-actions.pod:1507
7928 msgid ""
7929 "If the parameter C<nrlines> is a positive number, this returns the first "
7930 "C<nrlines> lines of the file C<path>."
7931 msgstr ""
7932
7933 # type: textblock
7934 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1510
7935 msgid ""
7936 "If the parameter C<nrlines> is a negative number, this returns lines from "
7937 "the file C<path>, excluding the last C<nrlines> lines."
7938 msgstr ""
7939
7940 # type: textblock
7941 #: ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:6143 ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4113
7942 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7943 msgstr ""
7944
7945 # type: =head2
7946 #: ../src/guestfs-actions.pod:2261
7947 msgid "guestfs_hexdump"
7948 msgstr ""
7949
7950 # type: verbatim
7951 #: ../src/guestfs-actions.pod:2263
7952 #, no-wrap
7953 msgid ""
7954 " char *\n"
7955 " guestfs_hexdump (guestfs_h *g,\n"
7956 "                  const char *path);\n"
7957 "\n"
7958 msgstr ""
7959
7960 # type: textblock
7961 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1522
7962 msgid ""
7963 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7964 "human-readable, canonical hex dump of the file."
7965 msgstr ""
7966
7967 # type: textblock
7968 #: ../src/guestfs-actions.pod:2276 ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:5982
7969 msgid "(Added in 1.0.22)"
7970 msgstr ""
7971
7972 # type: =head2
7973 #: ../src/guestfs-actions.pod:2278
7974 msgid "guestfs_initrd_cat"
7975 msgstr ""
7976
7977 # type: verbatim
7978 #: ../src/guestfs-actions.pod:2280
7979 #, no-wrap
7980 msgid ""
7981 " char *\n"
7982 " guestfs_initrd_cat (guestfs_h *g,\n"
7983 "                     const char *initrdpath,\n"
7984 "                     const char *filename,\n"
7985 "                     size_t *size_r);\n"
7986 "\n"
7987 msgstr ""
7988
7989 # type: textblock
7990 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1532
7991 msgid ""
7992 "This command unpacks the file C<filename> from the initrd file called "
7993 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7994 "character."
7995 msgstr ""
7996
7997 # type: textblock
7998 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1536
7999 msgid ""
8000 "For example, in guestfish you could use the following command to examine the "
8001 "boot script (usually called C</init>)  contained in a Linux initrd or "
8002 "initramfs image:"
8003 msgstr ""
8004
8005 # type: verbatim
8006 #: ../src/guestfs-actions.pod:2294 ../fish/guestfish-actions.pod:1540
8007 #, no-wrap
8008 msgid ""
8009 " initrd-cat /boot/initrd-<version>.img init\n"
8010 "\n"
8011 msgstr ""
8012
8013 # type: textblock
8014 #: ../src/guestfs-actions.pod:2296
8015 msgid "See also C<guestfs_initrd_list>."
8016 msgstr ""
8017
8018 # type: textblock
8019 #: ../src/guestfs-actions.pod:2298 ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4888 ../src/guestfs-actions.pod:5069
8020 msgid ""
8021 "This function returns a buffer, or NULL on error.  The size of the returned "
8022 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8023 "after use>."
8024 msgstr ""
8025
8026 # type: =head2
8027 #: ../src/guestfs-actions.pod:2307
8028 msgid "guestfs_initrd_list"
8029 msgstr ""
8030
8031 # type: verbatim
8032 #: ../src/guestfs-actions.pod:2309
8033 #, no-wrap
8034 msgid ""
8035 " char **\n"
8036 " guestfs_initrd_list (guestfs_h *g,\n"
8037 "                      const char *path);\n"
8038 "\n"
8039 msgstr ""
8040
8041 # type: textblock
8042 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1551
8043 msgid "This command lists out files contained in an initrd."
8044 msgstr ""
8045
8046 # type: textblock
8047 #: ../src/guestfs-actions.pod:2315 ../fish/guestfish-actions.pod:1553
8048 msgid ""
8049 "The files are listed without any initial C</> character.  The files are "
8050 "listed in the order they appear (not necessarily alphabetical).  Directory "
8051 "names are listed as separate items."
8052 msgstr ""
8053
8054 # type: textblock
8055 #: ../src/guestfs-actions.pod:2319 ../fish/guestfish-actions.pod:1557
8056 msgid ""
8057 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8058 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8059 "files)."
8060 msgstr ""
8061
8062 # type: =head2
8063 #: ../src/guestfs-actions.pod:2329
8064 msgid "guestfs_inotify_add_watch"
8065 msgstr ""
8066
8067 # type: verbatim
8068 #: ../src/guestfs-actions.pod:2331
8069 #, no-wrap
8070 msgid ""
8071 " int64_t\n"
8072 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8073 "                            const char *path,\n"
8074 "                            int mask);\n"
8075 "\n"
8076 msgstr ""
8077
8078 # type: textblock
8079 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1565
8080 msgid "Watch C<path> for the events listed in C<mask>."
8081 msgstr ""
8082
8083 # type: textblock
8084 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1567
8085 msgid ""
8086 "Note that if C<path> is a directory then events within that directory are "
8087 "watched, but this does I<not> happen recursively (in subdirectories)."
8088 msgstr ""
8089
8090 # type: textblock
8091 #: ../src/guestfs-actions.pod:2342 ../fish/guestfish-actions.pod:1571
8092 msgid ""
8093 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8094 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8095 msgstr ""
8096
8097 # type: =head2
8098 #: ../src/guestfs-actions.pod:2350
8099 msgid "guestfs_inotify_close"
8100 msgstr ""
8101
8102 # type: verbatim
8103 #: ../src/guestfs-actions.pod:2352
8104 #, no-wrap
8105 msgid ""
8106 " int\n"
8107 " guestfs_inotify_close (guestfs_h *g);\n"
8108 "\n"
8109 msgstr ""
8110
8111 # type: textblock
8112 #: ../src/guestfs-actions.pod:2355 ../fish/guestfish-actions.pod:1579
8113 msgid ""
8114 "This closes the inotify handle which was previously opened by inotify_init.  "
8115 "It removes all watches, throws away any pending events, and deallocates all "
8116 "resources."
8117 msgstr ""
8118
8119 # type: =head2
8120 #: ../src/guestfs-actions.pod:2363
8121 msgid "guestfs_inotify_files"
8122 msgstr ""
8123
8124 # type: verbatim
8125 #: ../src/guestfs-actions.pod:2365
8126 #, no-wrap
8127 msgid ""
8128 " char **\n"
8129 " guestfs_inotify_files (guestfs_h *g);\n"
8130 "\n"
8131 msgstr ""
8132
8133 # type: textblock
8134 #: ../src/guestfs-actions.pod:2368
8135 msgid ""
8136 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8137 "returns a list of pathnames of objects that were touched.  The returned "
8138 "pathnames are sorted and deduplicated."
8139 msgstr ""
8140
8141 # type: =head2
8142 #: ../src/guestfs-actions.pod:2378
8143 msgid "guestfs_inotify_init"
8144 msgstr ""
8145
8146 # type: verbatim
8147 #: ../src/guestfs-actions.pod:2380
8148 #, no-wrap
8149 msgid ""
8150 " int\n"
8151 " guestfs_inotify_init (guestfs_h *g,\n"
8152 "                       int maxevents);\n"
8153 "\n"
8154 msgstr ""
8155
8156 # type: textblock
8157 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1595
8158 msgid ""
8159 "This command creates a new inotify handle.  The inotify subsystem can be "
8160 "used to notify events which happen to objects in the guest filesystem."
8161 msgstr ""
8162
8163 # type: textblock
8164 #: ../src/guestfs-actions.pod:2388
8165 msgid ""
8166 "C<maxevents> is the maximum number of events which will be queued up between "
8167 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8168 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8169 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8170 "throws away events, but records the fact that it threw them away by setting "
8171 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8172 "C<guestfs_inotify_read>)."
8173 msgstr ""
8174
8175 # type: textblock
8176 #: ../src/guestfs-actions.pod:2398
8177 msgid ""
8178 "Before any events are generated, you have to add some watches to the "
8179 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8180 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8181 msgstr ""
8182
8183 # type: textblock
8184 #: ../src/guestfs-actions.pod:2404
8185 msgid ""
8186 "Queued up events should be read periodically by calling "
8187 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8188 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8189 "often enough then you risk the internal queue overflowing."
8190 msgstr ""
8191
8192 # type: textblock
8193 #: ../src/guestfs-actions.pod:2411
8194 msgid ""
8195 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8196 "This also removes any watches automatically."
8197 msgstr ""
8198
8199 # type: textblock
8200 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1626
8201 msgid ""
8202 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8203 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8204 "that there is one global inotify handle per libguestfs instance."
8205 msgstr ""
8206
8207 # type: =head2
8208 #: ../src/guestfs-actions.pod:2424
8209 msgid "guestfs_inotify_read"
8210 msgstr ""
8211
8212 # type: verbatim
8213 #: ../src/guestfs-actions.pod:2426
8214 #, no-wrap
8215 msgid ""
8216 " struct guestfs_inotify_event_list *\n"
8217 " guestfs_inotify_read (guestfs_h *g);\n"
8218 "\n"
8219 msgstr ""
8220
8221 # type: textblock
8222 #: ../src/guestfs-actions.pod:2429 ../fish/guestfish-actions.pod:1635
8223 msgid ""
8224 "Return the complete queue of events that have happened since the previous "
8225 "read call."
8226 msgstr ""
8227
8228 # type: textblock
8229 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1638
8230 msgid "If no events have happened, this returns an empty list."
8231 msgstr ""
8232
8233 # type: textblock
8234 #: ../src/guestfs-actions.pod:2434 ../fish/guestfish-actions.pod:1640
8235 msgid ""
8236 "I<Note>: In order to make sure that all events have been read, you must call "
8237 "this function repeatedly until it returns an empty list.  The reason is that "
8238 "the call will read events up to the maximum appliance-to-host message size "
8239 "and leave remaining events in the queue."
8240 msgstr ""
8241
8242 # type: textblock
8243 #: ../src/guestfs-actions.pod:2440
8244 msgid ""
8245 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8246 "there was an error.  I<The caller must call "
8247 "C<guestfs_free_inotify_event_list> after use>."
8248 msgstr ""
8249
8250 # type: =head2
8251 #: ../src/guestfs-actions.pod:2446
8252 msgid "guestfs_inotify_rm_watch"
8253 msgstr ""
8254
8255 # type: verbatim
8256 #: ../src/guestfs-actions.pod:2448
8257 #, no-wrap
8258 msgid ""
8259 " int\n"
8260 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8261 "                           int wd);\n"
8262 "\n"
8263 msgstr ""
8264
8265 # type: textblock
8266 #: ../src/guestfs-actions.pod:2452
8267 msgid ""
8268 "Remove a previously defined inotify watch.  See "
8269 "C<guestfs_inotify_add_watch>."
8270 msgstr ""
8271
8272 # type: =head2
8273 #: ../src/guestfs-actions.pod:2459
8274 msgid "guestfs_inspect_get_arch"
8275 msgstr ""
8276
8277 # type: verbatim
8278 #: ../src/guestfs-actions.pod:2461
8279 #, no-wrap
8280 msgid ""
8281 " char *\n"
8282 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8283 "                           const char *root);\n"
8284 "\n"
8285 msgstr ""
8286
8287 # type: textblock
8288 #: ../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
8289 msgid ""
8290 "This function should only be called with a root device string as returned by "
8291 "C<guestfs_inspect_os>."
8292 msgstr ""
8293
8294 # type: textblock
8295 #: ../src/guestfs-actions.pod:2468
8296 msgid ""
8297 "This returns the architecture of the inspected operating system.  The "
8298 "possible return values are listed under C<guestfs_file_architecture>."
8299 msgstr ""
8300
8301 # type: textblock
8302 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1664
8303 msgid ""
8304 "If the architecture could not be determined, then the string C<unknown> is "
8305 "returned."
8306 msgstr ""
8307
8308 # type: textblock
8309 #: ../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
8310 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8311 msgstr ""
8312
8313 # type: =head2
8314 #: ../src/guestfs-actions.pod:2482
8315 msgid "guestfs_inspect_get_distro"
8316 msgstr ""
8317
8318 # type: verbatim
8319 #: ../src/guestfs-actions.pod:2484
8320 #, no-wrap
8321 msgid ""
8322 " char *\n"
8323 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8324 "                             const char *root);\n"
8325 "\n"
8326 msgstr ""
8327
8328 # type: textblock
8329 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1676
8330 msgid "This returns the distro (distribution) of the inspected operating system."
8331 msgstr ""
8332
8333 # type: textblock
8334 #: ../src/guestfs-actions.pod:2494 ../fish/guestfish-actions.pod:1679
8335 msgid "Currently defined distros are:"
8336 msgstr ""
8337
8338 # type: =item
8339 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1683
8340 msgid "\"archlinux\""
8341 msgstr ""
8342
8343 # type: textblock
8344 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1685
8345 msgid "Arch Linux."
8346 msgstr ""
8347
8348 # type: =item
8349 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1687
8350 msgid "\"debian\""
8351 msgstr ""
8352
8353 # type: textblock
8354 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1689
8355 msgid "Debian."
8356 msgstr ""
8357
8358 # type: =item
8359 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1691
8360 msgid "\"fedora\""
8361 msgstr ""
8362
8363 # type: textblock
8364 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1693
8365 msgid "Fedora."
8366 msgstr ""
8367
8368 # type: =item
8369 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1695
8370 msgid "\"gentoo\""
8371 msgstr ""
8372
8373 # type: textblock
8374 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1697
8375 msgid "Gentoo."
8376 msgstr ""
8377
8378 # type: =item
8379 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1699
8380 msgid "\"linuxmint\""
8381 msgstr ""
8382
8383 # type: textblock
8384 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1701
8385 msgid "Linux Mint."
8386 msgstr ""
8387
8388 # type: =item
8389 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1703
8390 msgid "\"mandriva\""
8391 msgstr ""
8392
8393 # type: textblock
8394 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1705
8395 msgid "Mandriva."
8396 msgstr ""
8397
8398 # type: =item
8399 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1707
8400 msgid "\"meego\""
8401 msgstr ""
8402
8403 # type: textblock
8404 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1709
8405 msgid "MeeGo."
8406 msgstr ""
8407
8408 # type: =item
8409 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1711
8410 msgid "\"pardus\""
8411 msgstr ""
8412
8413 # type: textblock
8414 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1713
8415 msgid "Pardus."
8416 msgstr ""
8417
8418 # type: =item
8419 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1715
8420 msgid "\"redhat-based\""
8421 msgstr ""
8422
8423 # type: textblock
8424 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1717
8425 msgid "Some Red Hat-derived distro."
8426 msgstr ""
8427
8428 # type: =item
8429 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1719
8430 msgid "\"rhel\""
8431 msgstr ""
8432
8433 # type: textblock
8434 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1721
8435 msgid "Red Hat Enterprise Linux and some derivatives."
8436 msgstr ""
8437
8438 # type: =item
8439 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1723
8440 msgid "\"ubuntu\""
8441 msgstr ""
8442
8443 # type: textblock
8444 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1725
8445 msgid "Ubuntu."
8446 msgstr ""
8447
8448 # type: =item
8449 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2822 ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8450 msgid "\"unknown\""
8451 msgstr ""
8452
8453 # type: textblock
8454 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1729
8455 msgid "The distro could not be determined."
8456 msgstr ""
8457
8458 # type: =item
8459 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8460 msgid "\"windows\""
8461 msgstr ""
8462
8463 # type: textblock
8464 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1733
8465 msgid ""
8466 "Windows does not have distributions.  This string is returned if the OS type "
8467 "is Windows."
8468 msgstr ""
8469
8470 # type: textblock
8471 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8472 msgid ""
8473 "Future versions of libguestfs may return other strings here.  The caller "
8474 "should be prepared to handle any string."
8475 msgstr ""
8476
8477 # type: =head2
8478 #: ../src/guestfs-actions.pod:2563
8479 msgid "guestfs_inspect_get_filesystems"
8480 msgstr ""
8481
8482 # type: verbatim
8483 #: ../src/guestfs-actions.pod:2565
8484 #, no-wrap
8485 msgid ""
8486 " char **\n"
8487 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8488 "                                  const char *root);\n"
8489 "\n"
8490 msgstr ""
8491
8492 # type: textblock
8493 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1750
8494 msgid ""
8495 "This returns a list of all the filesystems that we think are associated with "
8496 "this operating system.  This includes the root filesystem, other ordinary "
8497 "filesystems, and non-mounted devices like swap partitions."
8498 msgstr ""
8499
8500 # type: textblock
8501 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1755
8502 msgid ""
8503 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8504 "to be shared between operating systems."
8505 msgstr ""
8506
8507 # type: textblock
8508 #: ../src/guestfs-actions.pod:2580
8509 msgid ""
8510 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8511 "C<guestfs_inspect_get_mountpoints>."
8512 msgstr ""
8513
8514 # type: =head2
8515 #: ../src/guestfs-actions.pod:2589
8516 msgid "guestfs_inspect_get_hostname"
8517 msgstr ""
8518
8519 # type: verbatim
8520 #: ../src/guestfs-actions.pod:2591
8521 #, no-wrap
8522 msgid ""
8523 " char *\n"
8524 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8525 "                               const char *root);\n"
8526 "\n"
8527 msgstr ""
8528
8529 # type: textblock
8530 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1768
8531 msgid ""
8532 "This function returns the hostname of the operating system as found by "
8533 "inspection of the guest's configuration files."
8534 msgstr ""
8535
8536 # type: textblock
8537 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1771
8538 msgid ""
8539 "If the hostname could not be determined, then the string C<unknown> is "
8540 "returned."
8541 msgstr ""
8542
8543 # type: textblock
8544 #: ../src/guestfs-actions.pod:2609
8545 msgid "(Added in 1.7.9)"
8546 msgstr ""
8547
8548 # type: =head2
8549 #: ../src/guestfs-actions.pod:2611
8550 msgid "guestfs_inspect_get_major_version"
8551 msgstr ""
8552
8553 # type: verbatim
8554 #: ../src/guestfs-actions.pod:2613
8555 #, no-wrap
8556 msgid ""
8557 " int\n"
8558 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8559 "                                    const char *root);\n"
8560 "\n"
8561 msgstr ""
8562
8563 # type: textblock
8564 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1783
8565 msgid "This returns the major version number of the inspected operating system."
8566 msgstr ""
8567
8568 # type: textblock
8569 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1786
8570 msgid ""
8571 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8572 "popular public names used by the operating system.  Notably the operating "
8573 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8574 "1).  You can find out the real versions corresponding to releases of Windows "
8575 "by consulting Wikipedia or MSDN."
8576 msgstr ""
8577
8578 # type: textblock
8579 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
8580 msgid "If the version could not be determined, then C<0> is returned."
8581 msgstr ""
8582
8583 # type: =head2
8584 #: ../src/guestfs-actions.pod:2638
8585 msgid "guestfs_inspect_get_minor_version"
8586 msgstr ""
8587
8588 # type: verbatim
8589 #: ../src/guestfs-actions.pod:2640
8590 #, no-wrap
8591 msgid ""
8592 " int\n"
8593 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8594 "                                    const char *root);\n"
8595 "\n"
8596 msgstr ""
8597
8598 # type: textblock
8599 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1804
8600 msgid "This returns the minor version number of the inspected operating system."
8601 msgstr ""
8602
8603 # type: textblock
8604 #: ../src/guestfs-actions.pod:2652
8605 msgid ""
8606 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8607 "C<guestfs_inspect_get_major_version>."
8608 msgstr ""
8609
8610 # type: =head2
8611 #: ../src/guestfs-actions.pod:2659
8612 msgid "guestfs_inspect_get_mountpoints"
8613 msgstr ""
8614
8615 # type: verbatim
8616 #: ../src/guestfs-actions.pod:2661
8617 #, no-wrap
8618 msgid ""
8619 " char **\n"
8620 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8621 "                                  const char *root);\n"
8622 "\n"
8623 msgstr ""
8624
8625 # type: textblock
8626 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1819
8627 msgid ""
8628 "This returns a hash of where we think the filesystems associated with this "
8629 "operating system should be mounted.  Callers should note that this is at "
8630 "best an educated guess made by reading configuration files such as "
8631 "C</etc/fstab>."
8632 msgstr ""
8633
8634 # type: textblock
8635 #: ../src/guestfs-actions.pod:2673 ../fish/guestfish-actions.pod:1824
8636 msgid ""
8637 "Each element in the returned hashtable has a key which is the path of the "
8638 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8639 "mounted there (eg. C</dev/sda1>)."
8640 msgstr ""
8641
8642 # type: textblock
8643 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1829
8644 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8645 msgstr ""
8646
8647 # type: textblock
8648 #: ../src/guestfs-actions.pod:2681
8649 msgid ""
8650 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8651 "C<guestfs_inspect_get_filesystems>."
8652 msgstr ""
8653
8654 # type: textblock
8655 #: ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:3300 ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:6284
8656 msgid ""
8657 "This function returns a NULL-terminated array of strings, or NULL if there "
8658 "was an error.  The array of strings will always have length C<2n+1>, where "
8659 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8660 "caller must free the strings and the array after use>."
8661 msgstr ""
8662
8663 # type: =head2
8664 #: ../src/guestfs-actions.pod:2692
8665 msgid "guestfs_inspect_get_package_format"
8666 msgstr ""
8667
8668 # type: verbatim
8669 #: ../src/guestfs-actions.pod:2694
8670 #, no-wrap
8671 msgid ""
8672 " char *\n"
8673 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8674 "                                     const char *root);\n"
8675 "\n"
8676 msgstr ""
8677
8678 # type: textblock
8679 #: ../src/guestfs-actions.pod:2701
8680 msgid ""
8681 "This function and C<guestfs_inspect_get_package_management> return the "
8682 "package format and package management tool used by the inspected operating "
8683 "system.  For example for Fedora these functions would return C<rpm> (package "
8684 "format) and C<yum> (package management)."
8685 msgstr ""
8686
8687 # type: textblock
8688 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1848
8689 msgid ""
8690 "This returns the string C<unknown> if we could not determine the package "
8691 "format I<or> if the operating system does not have a real packaging system "
8692 "(eg. Windows)."
8693 msgstr ""
8694
8695 # type: textblock
8696 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
8697 msgid ""
8698 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8699 "Future versions of libguestfs may return other strings."
8700 msgstr ""
8701
8702 # type: textblock
8703 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2750
8704 msgid "(Added in 1.7.5)"
8705 msgstr ""
8706
8707 # type: =head2
8708 #: ../src/guestfs-actions.pod:2721
8709 msgid "guestfs_inspect_get_package_management"
8710 msgstr ""
8711
8712 # type: verbatim
8713 #: ../src/guestfs-actions.pod:2723
8714 #, no-wrap
8715 msgid ""
8716 " char *\n"
8717 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8718 "                                         const char *root);\n"
8719 "\n"
8720 msgstr ""
8721
8722 # type: textblock
8723 #: ../src/guestfs-actions.pod:2730
8724 msgid ""
8725 "C<guestfs_inspect_get_package_format> and this function return the package "
8726 "format and package management tool used by the inspected operating system.  "
8727 "For example for Fedora these functions would return C<rpm> (package format) "
8728 "and C<yum> (package management)."
8729 msgstr ""
8730
8731 # type: textblock
8732 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1870
8733 msgid ""
8734 "This returns the string C<unknown> if we could not determine the package "
8735 "management tool I<or> if the operating system does not have a real packaging "
8736 "system (eg. Windows)."
8737 msgstr ""
8738
8739 # type: textblock
8740 #: ../src/guestfs-actions.pod:2740 ../fish/guestfish-actions.pod:1874
8741 msgid ""
8742 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8743 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8744 "libguestfs may return other strings."
8745 msgstr ""
8746
8747 # type: =head2
8748 #: ../src/guestfs-actions.pod:2752
8749 msgid "guestfs_inspect_get_product_name"
8750 msgstr ""
8751
8752 # type: verbatim
8753 #: ../src/guestfs-actions.pod:2754
8754 #, no-wrap
8755 msgid ""
8756 " char *\n"
8757 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8758 "                                   const char *root);\n"
8759 "\n"
8760 msgstr ""
8761
8762 # type: textblock
8763 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:1888
8764 msgid ""
8765 "This returns the product name of the inspected operating system.  The "
8766 "product name is generally some freeform string which can be displayed to the "
8767 "user, but should not be parsed by programs."
8768 msgstr ""
8769
8770 # type: textblock
8771 #: ../src/guestfs-actions.pod:2766 ../fish/guestfish-actions.pod:1893
8772 msgid ""
8773 "If the product name could not be determined, then the string C<unknown> is "
8774 "returned."
8775 msgstr ""
8776
8777 # type: =head2
8778 #: ../src/guestfs-actions.pod:2776
8779 msgid "guestfs_inspect_get_roots"
8780 msgstr ""
8781
8782 # type: verbatim
8783 #: ../src/guestfs-actions.pod:2778
8784 #, no-wrap
8785 msgid ""
8786 " char **\n"
8787 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8788 "\n"
8789 msgstr ""
8790
8791 # type: textblock
8792 #: ../src/guestfs-actions.pod:2781
8793 msgid ""
8794 "This function is a convenient way to get the list of root devices, as "
8795 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8796 "the whole inspection process."
8797 msgstr ""
8798
8799 # type: textblock
8800 #: ../src/guestfs-actions.pod:2785
8801 msgid ""
8802 "This returns an empty list if either no root devices were found or the "
8803 "caller has not called C<guestfs_inspect_os>."
8804 msgstr ""
8805
8806 # type: textblock
8807 #: ../src/guestfs-actions.pod:2794
8808 msgid "(Added in 1.7.3)"
8809 msgstr ""
8810
8811 # type: =head2
8812 #: ../src/guestfs-actions.pod:2796
8813 msgid "guestfs_inspect_get_type"
8814 msgstr ""
8815
8816 # type: verbatim
8817 #: ../src/guestfs-actions.pod:2798
8818 #, no-wrap
8819 msgid ""
8820 " char *\n"
8821 " guestfs_inspect_get_type (guestfs_h *g,\n"
8822 "                           const char *root);\n"
8823 "\n"
8824 msgstr ""
8825
8826 # type: textblock
8827 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1918
8828 msgid ""
8829 "This returns the type of the inspected operating system.  Currently defined "
8830 "types are:"
8831 msgstr ""
8832
8833 # type: =item
8834 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1923
8835 msgid "\"linux\""
8836 msgstr ""
8837
8838 # type: textblock
8839 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1925
8840 msgid "Any Linux-based operating system."
8841 msgstr ""
8842
8843 # type: textblock
8844 #: ../src/guestfs-actions.pod:2816 ../fish/guestfish-actions.pod:1929
8845 msgid "Any Microsoft Windows operating system."
8846 msgstr ""
8847
8848 # type: =item
8849 #: ../src/guestfs-actions.pod:2818 ../fish/guestfish-actions.pod:1931
8850 msgid "\"freebsd\""
8851 msgstr ""
8852
8853 # type: textblock
8854 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1933
8855 msgid "FreeBSD."
8856 msgstr ""
8857
8858 # type: textblock
8859 #: ../src/guestfs-actions.pod:2824 ../fish/guestfish-actions.pod:1937
8860 msgid "The operating system type could not be determined."
8861 msgstr ""
8862
8863 # type: =head2
8864 #: ../src/guestfs-actions.pod:2838
8865 msgid "guestfs_inspect_get_windows_systemroot"
8866 msgstr ""
8867
8868 # type: verbatim
8869 #: ../src/guestfs-actions.pod:2840
8870 #, no-wrap
8871 msgid ""
8872 " char *\n"
8873 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8874 "                                         const char *root);\n"
8875 "\n"
8876 msgstr ""
8877
8878 # type: textblock
8879 #: ../src/guestfs-actions.pod:2847 ../fish/guestfish-actions.pod:1953
8880 msgid ""
8881 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8882 "is a directory path such as C</WINDOWS>."
8883 msgstr ""
8884
8885 # type: textblock
8886 #: ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1956
8887 msgid ""
8888 "This call assumes that the guest is Windows and that the systemroot could be "
8889 "determined by inspection.  If this is not the case then an error is "
8890 "returned."
8891 msgstr ""
8892
8893 # type: textblock
8894 #: ../src/guestfs-actions.pod:2859
8895 msgid "(Added in 1.5.25)"
8896 msgstr ""
8897
8898 # type: =head2
8899 #: ../src/guestfs-actions.pod:2861
8900 msgid "guestfs_inspect_list_applications"
8901 msgstr ""
8902
8903 # type: verbatim
8904 #: ../src/guestfs-actions.pod:2863
8905 #, no-wrap
8906 msgid ""
8907 " struct guestfs_application_list *\n"
8908 " guestfs_inspect_list_applications (guestfs_h *g,\n"
8909 "                                    const char *root);\n"
8910 "\n"
8911 msgstr ""
8912
8913 # type: textblock
8914 #: ../src/guestfs-actions.pod:2870 ../fish/guestfish-actions.pod:1969
8915 msgid "Return the list of applications installed in the operating system."
8916 msgstr ""
8917
8918 # type: textblock
8919 #: ../src/guestfs-actions.pod:2872
8920 msgid ""
8921 "I<Note:> This call works differently from other parts of the inspection "
8922 "API.  You have to call C<guestfs_inspect_os>, then "
8923 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
8924 "this.  Listing applications is a significantly more difficult operation "
8925 "which requires access to the full filesystem.  Also note that unlike the "
8926 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
8927 "the libguestfs handle, this call actually reads parts of the mounted "
8928 "filesystems during the call."
8929 msgstr ""
8930
8931 # type: textblock
8932 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1981
8933 msgid ""
8934 "This returns an empty list if the inspection code was not able to determine "
8935 "the list of applications."
8936 msgstr ""
8937
8938 # type: textblock
8939 #: ../src/guestfs-actions.pod:2885 ../fish/guestfish-actions.pod:1984
8940 msgid "The application structure contains the following fields:"
8941 msgstr ""
8942
8943 # type: =item
8944 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1988
8945 msgid "C<app_name>"
8946 msgstr ""
8947
8948 # type: textblock
8949 #: ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:1990
8950 msgid ""
8951 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8952 "guests, this is the package name."
8953 msgstr ""
8954
8955 # type: =item
8956 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1993
8957 msgid "C<app_display_name>"
8958 msgstr ""
8959
8960 # type: textblock
8961 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:1995
8962 msgid ""
8963 "The display name of the application, sometimes localized to the install "
8964 "language of the guest operating system."
8965 msgstr ""
8966
8967 # type: textblock
8968 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1998
8969 msgid ""
8970 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8971 "to display something can use C<app_name> instead."
8972 msgstr ""
8973
8974 # type: =item
8975 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2001
8976 msgid "C<app_epoch>"
8977 msgstr ""
8978
8979 # type: textblock
8980 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2003
8981 msgid ""
8982 "For package managers which use epochs, this contains the epoch of the "
8983 "package (an integer).  If unavailable, this is returned as C<0>."
8984 msgstr ""
8985
8986 # type: =item
8987 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2006
8988 msgid "C<app_version>"
8989 msgstr ""
8990
8991 # type: textblock
8992 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2008
8993 msgid ""
8994 "The version string of the application or package.  If unavailable this is "
8995 "returned as an empty string C<\"\">."
8996 msgstr ""
8997
8998 # type: =item
8999 #: ../src/guestfs-actions.pod:2912 ../fish/guestfish-actions.pod:2011
9000 msgid "C<app_release>"
9001 msgstr ""
9002
9003 # type: textblock
9004 #: ../src/guestfs-actions.pod:2914 ../fish/guestfish-actions.pod:2013
9005 msgid ""
9006 "The release string of the application or package, for package managers that "
9007 "use this.  If unavailable this is returned as an empty string C<\"\">."
9008 msgstr ""
9009
9010 # type: =item
9011 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2017
9012 msgid "C<app_install_path>"
9013 msgstr ""
9014
9015 # type: textblock
9016 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:2019
9017 msgid ""
9018 "The installation path of the application (on operating systems such as "
9019 "Windows which use installation paths).  This path is in the format used by "
9020 "the guest operating system, it is not a libguestfs path."
9021 msgstr ""
9022
9023 # type: textblock
9024 #: ../src/guestfs-actions.pod:2925 ../fish/guestfish-actions.pod:2024
9025 msgid "If unavailable this is returned as an empty string C<\"\">."
9026 msgstr ""
9027
9028 # type: =item
9029 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2026
9030 msgid "C<app_trans_path>"
9031 msgstr ""
9032
9033 # type: textblock
9034 #: ../src/guestfs-actions.pod:2929 ../fish/guestfish-actions.pod:2028
9035 msgid ""
9036 "The install path translated into a libguestfs path.  If unavailable this is "
9037 "returned as an empty string C<\"\">."
9038 msgstr ""
9039
9040 # type: =item
9041 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2031
9042 msgid "C<app_publisher>"
9043 msgstr ""
9044
9045 # type: textblock
9046 #: ../src/guestfs-actions.pod:2934 ../fish/guestfish-actions.pod:2033
9047 msgid ""
9048 "The name of the publisher of the application, for package managers that use "
9049 "this.  If unavailable this is returned as an empty string C<\"\">."
9050 msgstr ""
9051
9052 # type: =item
9053 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2037
9054 msgid "C<app_url>"
9055 msgstr ""
9056
9057 # type: textblock
9058 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2039
9059 msgid ""
9060 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9061 "returned as an empty string C<\"\">."
9062 msgstr ""
9063
9064 # type: =item
9065 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2042
9066 msgid "C<app_source_package>"
9067 msgstr ""
9068
9069 # type: textblock
9070 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2044
9071 msgid ""
9072 "For packaging systems which support this, the name of the source package.  "
9073 "If unavailable this is returned as an empty string C<\"\">."
9074 msgstr ""
9075
9076 # type: =item
9077 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2047
9078 msgid "C<app_summary>"
9079 msgstr ""
9080
9081 # type: textblock
9082 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2049
9083 msgid ""
9084 "A short (usually one line) description of the application or package.  If "
9085 "unavailable this is returned as an empty string C<\"\">."
9086 msgstr ""
9087
9088 # type: =item
9089 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2052
9090 msgid "C<app_description>"
9091 msgstr ""
9092
9093 # type: textblock
9094 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2054
9095 msgid ""
9096 "A longer description of the application or package.  If unavailable this is "
9097 "returned as an empty string C<\"\">."
9098 msgstr ""
9099
9100 # type: textblock
9101 #: ../src/guestfs-actions.pod:2962
9102 msgid ""
9103 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9104 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9105 "after use>."
9106 msgstr ""
9107
9108 # type: textblock
9109 #: ../src/guestfs-actions.pod:2966
9110 msgid "(Added in 1.7.8)"
9111 msgstr ""
9112
9113 # type: =head2
9114 #: ../src/guestfs-actions.pod:2968
9115 msgid "guestfs_inspect_os"
9116 msgstr ""
9117
9118 # type: verbatim
9119 #: ../src/guestfs-actions.pod:2970
9120 #, no-wrap
9121 msgid ""
9122 " char **\n"
9123 " guestfs_inspect_os (guestfs_h *g);\n"
9124 "\n"
9125 msgstr ""
9126
9127 # type: textblock
9128 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2065
9129 msgid ""
9130 "This function uses other libguestfs functions and certain heuristics to "
9131 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9132 "for operating systems."
9133 msgstr ""
9134
9135 # type: textblock
9136 #: ../src/guestfs-actions.pod:2977 ../fish/guestfish-actions.pod:2069
9137 msgid "The list returned is empty if no operating systems were found."
9138 msgstr ""
9139
9140 # type: textblock
9141 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2071
9142 msgid ""
9143 "If one operating system was found, then this returns a list with a single "
9144 "element, which is the name of the root filesystem of this operating system.  "
9145 "It is also possible for this function to return a list containing more than "
9146 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9147 "element being the root filesystem of one of the operating systems."
9148 msgstr ""
9149
9150 # type: textblock
9151 #: ../src/guestfs-actions.pod:2986
9152 msgid ""
9153 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9154 "functions in order to query further information about each operating system, "
9155 "such as the name and version."
9156 msgstr ""
9157
9158 # type: textblock
9159 #: ../src/guestfs-actions.pod:2991
9160 msgid ""
9161 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9162 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9163 "the contents.  This should be called with no disks currently mounted.  The "
9164 "function may also use Augeas, so any existing Augeas handle will be closed."
9165 msgstr ""
9166
9167 # type: textblock
9168 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2089
9169 msgid ""
9170 "This function cannot decrypt encrypted disks.  The caller must do that first "
9171 "(supplying the necessary keys) if the disk is encrypted."
9172 msgstr ""
9173
9174 # type: textblock
9175 #: ../src/guestfs-actions.pod:3003 ../src/guestfs-actions.pod:3258 ../src/guestfs-actions.pod:3320
9176 msgid "See also C<guestfs_list_filesystems>."
9177 msgstr ""
9178
9179 # type: =head2
9180 #: ../src/guestfs-actions.pod:3011
9181 msgid "guestfs_is_blockdev"
9182 msgstr ""
9183
9184 # type: verbatim
9185 #: ../src/guestfs-actions.pod:3013
9186 #, no-wrap
9187 msgid ""
9188 " int\n"
9189 " guestfs_is_blockdev (guestfs_h *g,\n"
9190 "                      const char *path);\n"
9191 "\n"
9192 msgstr ""
9193
9194 # type: textblock
9195 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2101
9196 msgid ""
9197 "This returns C<true> if and only if there is a block device with the given "
9198 "C<path> name."
9199 msgstr ""
9200
9201 # type: textblock
9202 #: ../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
9203 msgid "See also C<guestfs_stat>."
9204 msgstr ""
9205
9206 # type: textblock
9207 #: ../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
9208 msgid "(Added in 1.5.10)"
9209 msgstr ""
9210
9211 # type: =head2
9212 #: ../src/guestfs-actions.pod:3026
9213 msgid "guestfs_is_busy"
9214 msgstr ""
9215
9216 # type: verbatim
9217 #: ../src/guestfs-actions.pod:3028
9218 #, no-wrap
9219 msgid ""
9220 " int\n"
9221 " guestfs_is_busy (guestfs_h *g);\n"
9222 "\n"
9223 msgstr ""
9224
9225 # type: textblock
9226 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2110
9227 msgid ""
9228 "This returns true iff this handle is busy processing a command (in the "
9229 "C<BUSY> state)."
9230 msgstr ""
9231
9232 # type: =head2
9233 #: ../src/guestfs-actions.pod:3040
9234 msgid "guestfs_is_chardev"
9235 msgstr ""
9236
9237 # type: verbatim
9238 #: ../src/guestfs-actions.pod:3042
9239 #, no-wrap
9240 msgid ""
9241 " int\n"
9242 " guestfs_is_chardev (guestfs_h *g,\n"
9243 "                     const char *path);\n"
9244 "\n"
9245 msgstr ""
9246
9247 # type: textblock
9248 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2119
9249 msgid ""
9250 "This returns C<true> if and only if there is a character device with the "
9251 "given C<path> name."
9252 msgstr ""
9253
9254 # type: =head2
9255 #: ../src/guestfs-actions.pod:3055
9256 msgid "guestfs_is_config"
9257 msgstr ""
9258
9259 # type: verbatim
9260 #: ../src/guestfs-actions.pod:3057
9261 #, no-wrap
9262 msgid ""
9263 " int\n"
9264 " guestfs_is_config (guestfs_h *g);\n"
9265 "\n"
9266 msgstr ""
9267
9268 # type: textblock
9269 #: ../src/guestfs-actions.pod:3060 ../fish/guestfish-actions.pod:2128
9270 msgid ""
9271 "This returns true iff this handle is being configured (in the C<CONFIG> "
9272 "state)."
9273 msgstr ""
9274
9275 # type: =head2
9276 #: ../src/guestfs-actions.pod:3069
9277 msgid "guestfs_is_dir"
9278 msgstr ""
9279
9280 # type: verbatim
9281 #: ../src/guestfs-actions.pod:3071
9282 #, no-wrap
9283 msgid ""
9284 " int\n"
9285 " guestfs_is_dir (guestfs_h *g,\n"
9286 "                 const char *path);\n"
9287 "\n"
9288 msgstr ""
9289
9290 # type: textblock
9291 #: ../src/guestfs-actions.pod:3075 ../fish/guestfish-actions.pod:2137
9292 msgid ""
9293 "This returns C<true> if and only if there is a directory with the given "
9294 "C<path> name.  Note that it returns false for other objects like files."
9295 msgstr ""
9296
9297 # type: =head2
9298 #: ../src/guestfs-actions.pod:3085
9299 msgid "guestfs_is_fifo"
9300 msgstr ""
9301
9302 # type: verbatim
9303 #: ../src/guestfs-actions.pod:3087
9304 #, no-wrap
9305 msgid ""
9306 " int\n"
9307 " guestfs_is_fifo (guestfs_h *g,\n"
9308 "                  const char *path);\n"
9309 "\n"
9310 msgstr ""
9311
9312 # type: textblock
9313 #: ../src/guestfs-actions.pod:3091 ../fish/guestfish-actions.pod:2147
9314 msgid ""
9315 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9316 "given C<path> name."
9317 msgstr ""
9318
9319 # type: =head2
9320 #: ../src/guestfs-actions.pod:3100
9321 msgid "guestfs_is_file"
9322 msgstr ""
9323
9324 # type: verbatim
9325 #: ../src/guestfs-actions.pod:3102
9326 #, no-wrap
9327 msgid ""
9328 " int\n"
9329 " guestfs_is_file (guestfs_h *g,\n"
9330 "                  const char *path);\n"
9331 "\n"
9332 msgstr ""
9333
9334 # type: textblock
9335 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2156
9336 msgid ""
9337 "This returns C<true> if and only if there is a regular file with the given "
9338 "C<path> name.  Note that it returns false for other objects like "
9339 "directories."
9340 msgstr ""
9341
9342 # type: =head2
9343 #: ../src/guestfs-actions.pod:3116
9344 msgid "guestfs_is_launching"
9345 msgstr ""
9346
9347 # type: verbatim
9348 #: ../src/guestfs-actions.pod:3118
9349 #, no-wrap
9350 msgid ""
9351 " int\n"
9352 " guestfs_is_launching (guestfs_h *g);\n"
9353 "\n"
9354 msgstr ""
9355
9356 # type: textblock
9357 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2166
9358 msgid ""
9359 "This returns true iff this handle is launching the subprocess (in the "
9360 "C<LAUNCHING> state)."
9361 msgstr ""
9362
9363 # type: =head2
9364 #: ../src/guestfs-actions.pod:3130
9365 msgid "guestfs_is_lv"
9366 msgstr ""
9367
9368 # type: verbatim
9369 #: ../src/guestfs-actions.pod:3132
9370 #, no-wrap
9371 msgid ""
9372 " int\n"
9373 " guestfs_is_lv (guestfs_h *g,\n"
9374 "                const char *device);\n"
9375 "\n"
9376 msgstr ""
9377
9378 # type: textblock
9379 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2175
9380 msgid ""
9381 "This command tests whether C<device> is a logical volume, and returns true "
9382 "iff this is the case."
9383 msgstr ""
9384
9385 # type: =head2
9386 #: ../src/guestfs-actions.pod:3143
9387 msgid "guestfs_is_ready"
9388 msgstr ""
9389
9390 # type: verbatim
9391 #: ../src/guestfs-actions.pod:3145
9392 #, no-wrap
9393 msgid ""
9394 " int\n"
9395 " guestfs_is_ready (guestfs_h *g);\n"
9396 "\n"
9397 msgstr ""
9398
9399 # type: textblock
9400 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2182
9401 msgid ""
9402 "This returns true iff this handle is ready to accept commands (in the "
9403 "C<READY> state)."
9404 msgstr ""
9405
9406 # type: =head2
9407 #: ../src/guestfs-actions.pod:3157
9408 msgid "guestfs_is_socket"
9409 msgstr ""
9410
9411 # type: verbatim
9412 #: ../src/guestfs-actions.pod:3159
9413 #, no-wrap
9414 msgid ""
9415 " int\n"
9416 " guestfs_is_socket (guestfs_h *g,\n"
9417 "                    const char *path);\n"
9418 "\n"
9419 msgstr ""
9420
9421 # type: textblock
9422 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2191
9423 msgid ""
9424 "This returns C<true> if and only if there is a Unix domain socket with the "
9425 "given C<path> name."
9426 msgstr ""
9427
9428 # type: =head2
9429 #: ../src/guestfs-actions.pod:3172
9430 msgid "guestfs_is_symlink"
9431 msgstr ""
9432
9433 # type: verbatim
9434 #: ../src/guestfs-actions.pod:3174
9435 #, no-wrap
9436 msgid ""
9437 " int\n"
9438 " guestfs_is_symlink (guestfs_h *g,\n"
9439 "                     const char *path);\n"
9440 "\n"
9441 msgstr ""
9442
9443 # type: textblock
9444 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2200
9445 msgid ""
9446 "This returns C<true> if and only if there is a symbolic link with the given "
9447 "C<path> name."
9448 msgstr ""
9449
9450 # type: =head2
9451 #: ../src/guestfs-actions.pod:3187
9452 msgid "guestfs_kill_subprocess"
9453 msgstr ""
9454
9455 # type: verbatim
9456 #: ../src/guestfs-actions.pod:3189
9457 #, no-wrap
9458 msgid ""
9459 " int\n"
9460 " guestfs_kill_subprocess (guestfs_h *g);\n"
9461 "\n"
9462 msgstr ""
9463
9464 # type: textblock
9465 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2209
9466 msgid "This kills the qemu subprocess.  You should never need to call this."
9467 msgstr ""
9468
9469 # type: =head2
9470 #: ../src/guestfs-actions.pod:3198
9471 msgid "guestfs_launch"
9472 msgstr ""
9473
9474 # type: verbatim
9475 #: ../src/guestfs-actions.pod:3200
9476 #, no-wrap
9477 msgid ""
9478 " int\n"
9479 " guestfs_launch (guestfs_h *g);\n"
9480 "\n"
9481 msgstr ""
9482
9483 # type: textblock
9484 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2217
9485 msgid ""
9486 "Internally libguestfs is implemented by running a virtual machine using "
9487 "L<qemu(1)>."
9488 msgstr ""
9489
9490 # type: textblock
9491 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
9492 msgid ""
9493 "You should call this after configuring the handle (eg. adding drives) but "
9494 "before performing any actions."
9495 msgstr ""
9496
9497 # type: =head2
9498 #: ../src/guestfs-actions.pod:3213
9499 msgid "guestfs_lchown"
9500 msgstr ""
9501
9502 # type: verbatim
9503 #: ../src/guestfs-actions.pod:3215
9504 #, no-wrap
9505 msgid ""
9506 " int\n"
9507 " guestfs_lchown (guestfs_h *g,\n"
9508 "                 int owner,\n"
9509 "                 int group,\n"
9510 "                 const char *path);\n"
9511 "\n"
9512 msgstr ""
9513
9514 # type: textblock
9515 #: ../src/guestfs-actions.pod:3221
9516 msgid ""
9517 "Change the file owner to C<owner> and group to C<group>.  This is like "
9518 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9519 "changed, not the target."
9520 msgstr ""
9521
9522 # type: =head2
9523 #: ../src/guestfs-actions.pod:3233
9524 msgid "guestfs_lgetxattrs"
9525 msgstr ""
9526
9527 # type: verbatim
9528 #: ../src/guestfs-actions.pod:3235
9529 #, no-wrap
9530 msgid ""
9531 " struct guestfs_xattr_list *\n"
9532 " guestfs_lgetxattrs (guestfs_h *g,\n"
9533 "                     const char *path);\n"
9534 "\n"
9535 msgstr ""
9536
9537 # type: textblock
9538 #: ../src/guestfs-actions.pod:3239
9539 msgid ""
9540 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9541 "then it returns the extended attributes of the link itself."
9542 msgstr ""
9543
9544 # type: =head2
9545 #: ../src/guestfs-actions.pod:3249
9546 msgid "guestfs_list_devices"
9547 msgstr ""
9548
9549 # type: verbatim
9550 #: ../src/guestfs-actions.pod:3251
9551 #, no-wrap
9552 msgid ""
9553 " char **\n"
9554 " guestfs_list_devices (guestfs_h *g);\n"
9555 "\n"
9556 msgstr ""
9557
9558 # type: textblock
9559 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2247
9560 msgid "List all the block devices."
9561 msgstr ""
9562
9563 # type: textblock
9564 #: ../src/guestfs-actions.pod:3256 ../fish/guestfish-actions.pod:2249
9565 msgid "The full block device names are returned, eg. C</dev/sda>."
9566 msgstr ""
9567
9568 # type: =head2
9569 #: ../src/guestfs-actions.pod:3266
9570 msgid "guestfs_list_filesystems"
9571 msgstr ""
9572
9573 # type: verbatim
9574 #: ../src/guestfs-actions.pod:3268
9575 #, no-wrap
9576 msgid ""
9577 " char **\n"
9578 " guestfs_list_filesystems (guestfs_h *g);\n"
9579 "\n"
9580 msgstr ""
9581
9582 # type: textblock
9583 #: ../src/guestfs-actions.pod:3271 ../fish/guestfish-actions.pod:2257
9584 msgid ""
9585 "This inspection command looks for filesystems on partitions, block devices "
9586 "and logical volumes, returning a list of devices containing filesystems and "
9587 "their type."
9588 msgstr ""
9589
9590 # type: textblock
9591 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2261
9592 msgid ""
9593 "The return value is a hash, where the keys are the devices containing "
9594 "filesystems, and the values are the filesystem types.  For example:"
9595 msgstr ""
9596
9597 # type: verbatim
9598 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2265
9599 #, no-wrap
9600 msgid ""
9601 " \"/dev/sda1\" => \"ntfs\"\n"
9602 " \"/dev/sda2\" => \"ext2\"\n"
9603 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9604 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9605 "\n"
9606 msgstr ""
9607
9608 # type: textblock
9609 #: ../src/guestfs-actions.pod:3284 ../fish/guestfish-actions.pod:2270
9610 msgid ""
9611 "The value can have the special value \"unknown\", meaning the content of the "
9612 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9613 msgstr ""
9614
9615 # type: textblock
9616 #: ../src/guestfs-actions.pod:3288
9617 msgid ""
9618 "This command runs other libguestfs commands, which might include "
9619 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9620 "soon after launch and only when nothing is mounted."
9621 msgstr ""
9622
9623 # type: textblock
9624 #: ../src/guestfs-actions.pod:3292
9625 msgid ""
9626 "Not all of the filesystems returned will be mountable.  In particular, swap "
9627 "partitions are returned in the list.  Also this command does not check that "
9628 "each filesystem found is valid and mountable, and some filesystems might be "
9629 "mountable but require special options.  Filesystems may not all belong to a "
9630 "single logical operating system (use C<guestfs_inspect_os> to look for "
9631 "OSes)."
9632 msgstr ""
9633
9634 # type: textblock
9635 #: ../src/guestfs-actions.pod:3306 ../src/guestfs-actions.pod:4829
9636 msgid "(Added in 1.5.15)"
9637 msgstr ""
9638
9639 # type: =head2
9640 #: ../src/guestfs-actions.pod:3308
9641 msgid "guestfs_list_partitions"
9642 msgstr ""
9643
9644 # type: verbatim
9645 #: ../src/guestfs-actions.pod:3310
9646 #, no-wrap
9647 msgid ""
9648 " char **\n"
9649 " guestfs_list_partitions (guestfs_h *g);\n"
9650 "\n"
9651 msgstr ""
9652
9653 # type: textblock
9654 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:2290
9655 msgid "List all the partitions detected on all block devices."
9656 msgstr ""
9657
9658 # type: textblock
9659 #: ../src/guestfs-actions.pod:3315 ../fish/guestfish-actions.pod:2292
9660 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9661 msgstr ""
9662
9663 # type: textblock
9664 #: ../src/guestfs-actions.pod:3317
9665 msgid ""
9666 "This does not return logical volumes.  For that you will need to call "
9667 "C<guestfs_lvs>."
9668 msgstr ""
9669
9670 # type: =head2
9671 #: ../src/guestfs-actions.pod:3328
9672 msgid "guestfs_ll"
9673 msgstr ""
9674
9675 # type: verbatim
9676 #: ../src/guestfs-actions.pod:3330
9677 #, no-wrap
9678 msgid ""
9679 " char *\n"
9680 " guestfs_ll (guestfs_h *g,\n"
9681 "             const char *directory);\n"
9682 "\n"
9683 msgstr ""
9684
9685 # type: textblock
9686 #: ../src/guestfs-actions.pod:3334 ../fish/guestfish-actions.pod:2303
9687 msgid ""
9688 "List the files in C<directory> (relative to the root directory, there is no "
9689 "cwd) in the format of 'ls -la'."
9690 msgstr ""
9691
9692 # type: textblock
9693 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2306
9694 msgid ""
9695 "This command is mostly useful for interactive sessions.  It is I<not> "
9696 "intended that you try to parse the output string."
9697 msgstr ""
9698
9699 # type: =head2
9700 #: ../src/guestfs-actions.pod:3345
9701 msgid "guestfs_ln"
9702 msgstr ""
9703
9704 # type: verbatim
9705 #: ../src/guestfs-actions.pod:3347
9706 #, no-wrap
9707 msgid ""
9708 " int\n"
9709 " guestfs_ln (guestfs_h *g,\n"
9710 "             const char *target,\n"
9711 "             const char *linkname);\n"
9712 "\n"
9713 msgstr ""
9714
9715 # type: textblock
9716 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2313
9717 msgid "This command creates a hard link using the C<ln> command."
9718 msgstr ""
9719
9720 # type: =head2
9721 #: ../src/guestfs-actions.pod:3358
9722 msgid "guestfs_ln_f"
9723 msgstr ""
9724
9725 # type: verbatim
9726 #: ../src/guestfs-actions.pod:3360
9727 #, no-wrap
9728 msgid ""
9729 " int\n"
9730 " guestfs_ln_f (guestfs_h *g,\n"
9731 "               const char *target,\n"
9732 "               const char *linkname);\n"
9733 "\n"
9734 msgstr ""
9735
9736 # type: textblock
9737 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2319
9738 msgid ""
9739 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9740 "option removes the link (C<linkname>) if it exists already."
9741 msgstr ""
9742
9743 # type: =head2
9744 #: ../src/guestfs-actions.pod:3372
9745 msgid "guestfs_ln_s"
9746 msgstr ""
9747
9748 # type: verbatim
9749 #: ../src/guestfs-actions.pod:3374
9750 #, no-wrap
9751 msgid ""
9752 " int\n"
9753 " guestfs_ln_s (guestfs_h *g,\n"
9754 "               const char *target,\n"
9755 "               const char *linkname);\n"
9756 "\n"
9757 msgstr ""
9758
9759 # type: textblock
9760 #: ../src/guestfs-actions.pod:3379 ../fish/guestfish-actions.pod:2326
9761 msgid "This command creates a symbolic link using the C<ln -s> command."
9762 msgstr ""
9763
9764 # type: =head2
9765 #: ../src/guestfs-actions.pod:3385
9766 msgid "guestfs_ln_sf"
9767 msgstr ""
9768
9769 # type: verbatim
9770 #: ../src/guestfs-actions.pod:3387
9771 #, no-wrap
9772 msgid ""
9773 " int\n"
9774 " guestfs_ln_sf (guestfs_h *g,\n"
9775 "                const char *target,\n"
9776 "                const char *linkname);\n"
9777 "\n"
9778 msgstr ""
9779
9780 # type: textblock
9781 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2332
9782 msgid ""
9783 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9784 "option removes the link (C<linkname>) if it exists already."
9785 msgstr ""
9786
9787 # type: =head2
9788 #: ../src/guestfs-actions.pod:3399
9789 msgid "guestfs_lremovexattr"
9790 msgstr ""
9791
9792 # type: verbatim
9793 #: ../src/guestfs-actions.pod:3401
9794 #, no-wrap
9795 msgid ""
9796 " int\n"
9797 " guestfs_lremovexattr (guestfs_h *g,\n"
9798 "                       const char *xattr,\n"
9799 "                       const char *path);\n"
9800 "\n"
9801 msgstr ""
9802
9803 # type: textblock
9804 #: ../src/guestfs-actions.pod:3406
9805 msgid ""
9806 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9807 "link, then it removes an extended attribute of the link itself."
9808 msgstr ""
9809
9810 # type: =head2
9811 #: ../src/guestfs-actions.pod:3414
9812 msgid "guestfs_ls"
9813 msgstr ""
9814
9815 # type: verbatim
9816 #: ../src/guestfs-actions.pod:3416
9817 #, no-wrap
9818 msgid ""
9819 " char **\n"
9820 " guestfs_ls (guestfs_h *g,\n"
9821 "             const char *directory);\n"
9822 "\n"
9823 msgstr ""
9824
9825 # type: textblock
9826 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2347
9827 msgid ""
9828 "List the files in C<directory> (relative to the root directory, there is no "
9829 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9830 "shown."
9831 msgstr ""
9832
9833 # type: textblock
9834 #: ../src/guestfs-actions.pod:3424
9835 msgid ""
9836 "This command is mostly useful for interactive sessions.  Programs should "
9837 "probably use C<guestfs_readdir> instead."
9838 msgstr ""
9839
9840 # type: =head2
9841 #: ../src/guestfs-actions.pod:3433
9842 msgid "guestfs_lsetxattr"
9843 msgstr ""
9844
9845 # type: verbatim
9846 #: ../src/guestfs-actions.pod:3435
9847 #, no-wrap
9848 msgid ""
9849 " int\n"
9850 " guestfs_lsetxattr (guestfs_h *g,\n"
9851 "                    const char *xattr,\n"
9852 "                    const char *val,\n"
9853 "                    int vallen,\n"
9854 "                    const char *path);\n"
9855 "\n"
9856 msgstr ""
9857
9858 # type: textblock
9859 #: ../src/guestfs-actions.pod:3442
9860 msgid ""
9861 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9862 "then it sets an extended attribute of the link itself."
9863 msgstr ""
9864
9865 # type: =head2
9866 #: ../src/guestfs-actions.pod:3450
9867 msgid "guestfs_lstat"
9868 msgstr ""
9869
9870 # type: verbatim
9871 #: ../src/guestfs-actions.pod:3452
9872 #, no-wrap
9873 msgid ""
9874 " struct guestfs_stat *\n"
9875 " guestfs_lstat (guestfs_h *g,\n"
9876 "                const char *path);\n"
9877 "\n"
9878 msgstr ""
9879
9880 # type: textblock
9881 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5883 ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3948
9882 msgid "Returns file information for the given C<path>."
9883 msgstr ""
9884
9885 # type: textblock
9886 #: ../src/guestfs-actions.pod:3458
9887 msgid ""
9888 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9889 "link, then the link is stat-ed, not the file it refers to."
9890 msgstr ""
9891
9892 # type: textblock
9893 #: ../src/guestfs-actions.pod:3462 ../fish/guestfish-actions.pod:2372
9894 msgid "This is the same as the C<lstat(2)> system call."
9895 msgstr ""
9896
9897 # type: textblock
9898 #: ../src/guestfs-actions.pod:3464 ../src/guestfs-actions.pod:5887
9899 msgid ""
9900 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9901 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9902 msgstr ""
9903
9904 # type: textblock
9905 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:5891 ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:6290
9906 msgid "(Added in 0.9.2)"
9907 msgstr ""
9908
9909 # type: =head2
9910 #: ../src/guestfs-actions.pod:3470
9911 msgid "guestfs_lstatlist"
9912 msgstr ""
9913
9914 # type: verbatim
9915 #: ../src/guestfs-actions.pod:3472
9916 #, no-wrap
9917 msgid ""
9918 " struct guestfs_stat_list *\n"
9919 " guestfs_lstatlist (guestfs_h *g,\n"
9920 "                    const char *path,\n"
9921 "                    char *const *names);\n"
9922 "\n"
9923 msgstr ""
9924
9925 # type: textblock
9926 #: ../src/guestfs-actions.pod:3477
9927 msgid ""
9928 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9929 "files, where all files are in the directory C<path>.  C<names> is the list "
9930 "of files from this directory."
9931 msgstr ""
9932
9933 # type: textblock
9934 #: ../src/guestfs-actions.pod:3481 ../fish/guestfish-actions.pod:2382
9935 msgid ""
9936 "On return you get a list of stat structs, with a one-to-one correspondence "
9937 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9938 "then the C<ino> field of that structure is set to C<-1>."
9939 msgstr ""
9940
9941 # type: textblock
9942 #: ../src/guestfs-actions.pod:3486
9943 msgid ""
9944 "This call is intended for programs that want to efficiently list a directory "
9945 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9946 "for a similarly efficient call for getting extended attributes.  Very long "
9947 "directory listings might cause the protocol message size to be exceeded, "
9948 "causing this call to fail.  The caller must split up such requests into "
9949 "smaller groups of names."
9950 msgstr ""
9951
9952 # type: textblock
9953 #: ../src/guestfs-actions.pod:3494
9954 msgid ""
9955 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
9956 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
9957 msgstr ""
9958
9959 # type: =head2
9960 #: ../src/guestfs-actions.pod:3500
9961 msgid "guestfs_luks_add_key"
9962 msgstr ""
9963
9964 # type: verbatim
9965 #: ../src/guestfs-actions.pod:3502
9966 #, no-wrap
9967 msgid ""
9968 " int\n"
9969 " guestfs_luks_add_key (guestfs_h *g,\n"
9970 "                       const char *device,\n"
9971 "                       const char *key,\n"
9972 "                       const char *newkey,\n"
9973 "                       int keyslot);\n"
9974 "\n"
9975 msgstr ""
9976
9977 # type: textblock
9978 #: ../src/guestfs-actions.pod:3509 ../fish/guestfish-actions.pod:2399
9979 msgid ""
9980 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9981 "existing key, and is used to access the device.  C<newkey> is the new key to "
9982 "add.  C<keyslot> is the key slot that will be replaced."
9983 msgstr ""
9984
9985 # type: textblock
9986 #: ../src/guestfs-actions.pod:3514
9987 msgid ""
9988 "Note that if C<keyslot> already contains a key, then this command will "
9989 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9990 msgstr ""
9991
9992 # type: textblock
9993 #: ../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
9994 msgid ""
9995 "This function takes a key or passphrase parameter which could contain "
9996 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9997 "information."
9998 msgstr ""
9999
10000 # type: textblock
10001 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3564 ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3607
10002 msgid "(Added in 1.5.2)"
10003 msgstr ""
10004
10005 # type: =head2
10006 #: ../src/guestfs-actions.pod:3526
10007 msgid "guestfs_luks_close"
10008 msgstr ""
10009
10010 # type: verbatim
10011 #: ../src/guestfs-actions.pod:3528
10012 #, no-wrap
10013 msgid ""
10014 " int\n"
10015 " guestfs_luks_close (guestfs_h *g,\n"
10016 "                     const char *device);\n"
10017 "\n"
10018 msgstr ""
10019
10020 # type: textblock
10021 #: ../src/guestfs-actions.pod:3532
10022 msgid ""
10023 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10024 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10025 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10026 "underlying block device."
10027 msgstr ""
10028
10029 # type: textblock
10030 #: ../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
10031 msgid "(Added in 1.5.1)"
10032 msgstr ""
10033
10034 # type: =head2
10035 #: ../src/guestfs-actions.pod:3542
10036 msgid "guestfs_luks_format"
10037 msgstr ""
10038
10039 # type: verbatim
10040 #: ../src/guestfs-actions.pod:3544
10041 #, no-wrap
10042 msgid ""
10043 " int\n"
10044 " guestfs_luks_format (guestfs_h *g,\n"
10045 "                      const char *device,\n"
10046 "                      const char *key,\n"
10047 "                      int keyslot);\n"
10048 "\n"
10049 msgstr ""
10050
10051 # type: textblock
10052 #: ../src/guestfs-actions.pod:3550 ../fish/guestfish-actions.pod:2425
10053 msgid ""
10054 "This command erases existing data on C<device> and formats the device as a "
10055 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10056 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10057 msgstr ""
10058
10059 # type: textblock
10060 #: ../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:6927 ../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
10061 msgid ""
10062 "B<This command is dangerous.  Without careful use you can easily destroy all "
10063 "your data>."
10064 msgstr ""
10065
10066 # type: =head2
10067 #: ../src/guestfs-actions.pod:3566
10068 msgid "guestfs_luks_format_cipher"
10069 msgstr ""
10070
10071 # type: verbatim
10072 #: ../src/guestfs-actions.pod:3568
10073 #, no-wrap
10074 msgid ""
10075 " int\n"
10076 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10077 "                             const char *device,\n"
10078 "                             const char *key,\n"
10079 "                             int keyslot,\n"
10080 "                             const char *cipher);\n"
10081 "\n"
10082 msgstr ""
10083
10084 # type: textblock
10085 #: ../src/guestfs-actions.pod:3575
10086 msgid ""
10087 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10088 "set the C<cipher> used."
10089 msgstr ""
10090
10091 # type: =head2
10092 #: ../src/guestfs-actions.pod:3589
10093 msgid "guestfs_luks_kill_slot"
10094 msgstr ""
10095
10096 # type: verbatim
10097 #: ../src/guestfs-actions.pod:3591
10098 #, no-wrap
10099 msgid ""
10100 " int\n"
10101 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10102 "                         const char *device,\n"
10103 "                         const char *key,\n"
10104 "                         int keyslot);\n"
10105 "\n"
10106 msgstr ""
10107
10108 # type: textblock
10109 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2453
10110 msgid ""
10111 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10112 "device C<device>.  C<key> must be one of the I<other> keys."
10113 msgstr ""
10114
10115 # type: =head2
10116 #: ../src/guestfs-actions.pod:3609
10117 msgid "guestfs_luks_open"
10118 msgstr ""
10119
10120 # type: verbatim
10121 #: ../src/guestfs-actions.pod:3611
10122 #, no-wrap
10123 msgid ""
10124 " int\n"
10125 " guestfs_luks_open (guestfs_h *g,\n"
10126 "                    const char *device,\n"
10127 "                    const char *key,\n"
10128 "                    const char *mapname);\n"
10129 "\n"
10130 msgstr ""
10131
10132 # type: textblock
10133 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2464
10134 msgid ""
10135 "This command opens a block device which has been encrypted according to the "
10136 "Linux Unified Key Setup (LUKS) standard."
10137 msgstr ""
10138
10139 # type: textblock
10140 #: ../src/guestfs-actions.pod:3620 ../fish/guestfish-actions.pod:2467
10141 msgid "C<device> is the encrypted block device or partition."
10142 msgstr ""
10143
10144 # type: textblock
10145 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2469
10146 msgid ""
10147 "The caller must supply one of the keys associated with the LUKS block "
10148 "device, in the C<key> parameter."
10149 msgstr ""
10150
10151 # type: textblock
10152 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2472
10153 msgid ""
10154 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10155 "writes to this block device are decrypted from and encrypted to the "
10156 "underlying C<device> respectively."
10157 msgstr ""
10158
10159 # type: textblock
10160 #: ../src/guestfs-actions.pod:3629
10161 msgid ""
10162 "If this block device contains LVM volume groups, then calling "
10163 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10164 "visible."
10165 msgstr ""
10166
10167 # type: =head2
10168 #: ../src/guestfs-actions.pod:3641
10169 msgid "guestfs_luks_open_ro"
10170 msgstr ""
10171
10172 # type: verbatim
10173 #: ../src/guestfs-actions.pod:3643
10174 #, no-wrap
10175 msgid ""
10176 " int\n"
10177 " guestfs_luks_open_ro (guestfs_h *g,\n"
10178 "                       const char *device,\n"
10179 "                       const char *key,\n"
10180 "                       const char *mapname);\n"
10181 "\n"
10182 msgstr ""
10183
10184 # type: textblock
10185 #: ../src/guestfs-actions.pod:3649
10186 msgid ""
10187 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10188 "created."
10189 msgstr ""
10190
10191 # type: =head2
10192 #: ../src/guestfs-actions.pod:3660
10193 msgid "guestfs_lvcreate"
10194 msgstr ""
10195
10196 # type: verbatim
10197 #: ../src/guestfs-actions.pod:3662
10198 #, no-wrap
10199 msgid ""
10200 " int\n"
10201 " guestfs_lvcreate (guestfs_h *g,\n"
10202 "                   const char *logvol,\n"
10203 "                   const char *volgroup,\n"
10204 "                   int mbytes);\n"
10205 "\n"
10206 msgstr ""
10207
10208 # type: textblock
10209 #: ../src/guestfs-actions.pod:3668 ../fish/guestfish-actions.pod:2497
10210 msgid ""
10211 "This creates an LVM logical volume called C<logvol> on the volume group "
10212 "C<volgroup>, with C<size> megabytes."
10213 msgstr ""
10214
10215 # type: =head2
10216 #: ../src/guestfs-actions.pod:3675
10217 msgid "guestfs_lvm_canonical_lv_name"
10218 msgstr ""
10219
10220 # type: verbatim
10221 #: ../src/guestfs-actions.pod:3677
10222 #, no-wrap
10223 msgid ""
10224 " char *\n"
10225 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10226 "                                const char *lvname);\n"
10227 "\n"
10228 msgstr ""
10229
10230 # type: textblock
10231 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2504
10232 msgid ""
10233 "This converts alternative naming schemes for LVs that you might find to the "
10234 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
10235 "C</dev/VG/LV>."
10236 msgstr ""
10237
10238 # type: textblock
10239 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2508
10240 msgid ""
10241 "This command returns an error if the C<lvname> parameter does not refer to a "
10242 "logical volume."
10243 msgstr ""
10244
10245 # type: textblock
10246 #: ../src/guestfs-actions.pod:3688
10247 msgid "See also C<guestfs_is_lv>."
10248 msgstr ""
10249
10250 # type: textblock
10251 #: ../src/guestfs-actions.pod:3693
10252 msgid "(Added in 1.5.24)"
10253 msgstr ""
10254
10255 # type: =head2
10256 #: ../src/guestfs-actions.pod:3695
10257 msgid "guestfs_lvm_clear_filter"
10258 msgstr ""
10259
10260 # type: verbatim
10261 #: ../src/guestfs-actions.pod:3697
10262 #, no-wrap
10263 msgid ""
10264 " int\n"
10265 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10266 "\n"
10267 msgstr ""
10268
10269 # type: textblock
10270 #: ../src/guestfs-actions.pod:3700
10271 msgid ""
10272 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10273 "see every block device."
10274 msgstr ""
10275
10276 # type: textblock
10277 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3745 ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10278 msgid "This command also clears the LVM cache and performs a volume group scan."
10279 msgstr ""
10280
10281 # type: =head2
10282 #: ../src/guestfs-actions.pod:3710
10283 msgid "guestfs_lvm_remove_all"
10284 msgstr ""
10285
10286 # type: verbatim
10287 #: ../src/guestfs-actions.pod:3712
10288 #, no-wrap
10289 msgid ""
10290 " int\n"
10291 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10292 "\n"
10293 msgstr ""
10294
10295 # type: textblock
10296 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2527
10297 msgid ""
10298 "This command removes all LVM logical volumes, volume groups and physical "
10299 "volumes."
10300 msgstr ""
10301
10302 # type: =head2
10303 #: ../src/guestfs-actions.pod:3725
10304 msgid "guestfs_lvm_set_filter"
10305 msgstr ""
10306
10307 # type: verbatim
10308 #: ../src/guestfs-actions.pod:3727
10309 #, no-wrap
10310 msgid ""
10311 " int\n"
10312 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10313 "                         char *const *devices);\n"
10314 "\n"
10315 msgstr ""
10316
10317 # type: textblock
10318 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2537
10319 msgid ""
10320 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10321 "block devices in the list C<devices>, and will ignore all other attached "
10322 "block devices."
10323 msgstr ""
10324
10325 # type: textblock
10326 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2541
10327 msgid ""
10328 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10329 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10330 "there are two types of duplication possible: either cloned PVs/VGs which "
10331 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10332 "same name.  In normal operation you cannot create this situation, but you "
10333 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10334 "inside the LVM metadata."
10335 msgstr ""
10336
10337 # type: textblock
10338 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2554
10339 msgid "You can filter whole block devices or individual partitions."
10340 msgstr ""
10341
10342 # type: textblock
10343 #: ../src/guestfs-actions.pod:3750 ../fish/guestfish-actions.pod:2556
10344 msgid ""
10345 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10346 "filesystem), even if you are not filtering out that VG."
10347 msgstr ""
10348
10349 # type: =head2
10350 #: ../src/guestfs-actions.pod:3758
10351 msgid "guestfs_lvremove"
10352 msgstr ""
10353
10354 # type: verbatim
10355 #: ../src/guestfs-actions.pod:3760
10356 #, no-wrap
10357 msgid ""
10358 " int\n"
10359 " guestfs_lvremove (guestfs_h *g,\n"
10360 "                   const char *device);\n"
10361 "\n"
10362 msgstr ""
10363
10364 # type: textblock
10365 #: ../src/guestfs-actions.pod:3764 ../fish/guestfish-actions.pod:2564
10366 msgid ""
10367 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10368 "LV, such as C</dev/VG/LV>."
10369 msgstr ""
10370
10371 # type: textblock
10372 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2567
10373 msgid ""
10374 "You can also remove all LVs in a volume group by specifying the VG name, "
10375 "C</dev/VG>."
10376 msgstr ""
10377
10378 # type: textblock
10379 #: ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:4926 ../src/guestfs-actions.pod:6666
10380 msgid "(Added in 1.0.13)"
10381 msgstr ""
10382
10383 # type: =head2
10384 #: ../src/guestfs-actions.pod:3774
10385 msgid "guestfs_lvrename"
10386 msgstr ""
10387
10388 # type: verbatim
10389 #: ../src/guestfs-actions.pod:3776
10390 #, no-wrap
10391 msgid ""
10392 " int\n"
10393 " guestfs_lvrename (guestfs_h *g,\n"
10394 "                   const char *logvol,\n"
10395 "                   const char *newlogvol);\n"
10396 "\n"
10397 msgstr ""
10398
10399 # type: textblock
10400 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2574
10401 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10402 msgstr ""
10403
10404 # type: textblock
10405 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:6679
10406 msgid "(Added in 1.0.83)"
10407 msgstr ""
10408
10409 # type: =head2
10410 #: ../src/guestfs-actions.pod:3787
10411 msgid "guestfs_lvresize"
10412 msgstr ""
10413
10414 # type: verbatim
10415 #: ../src/guestfs-actions.pod:3789
10416 #, no-wrap
10417 msgid ""
10418 " int\n"
10419 " guestfs_lvresize (guestfs_h *g,\n"
10420 "                   const char *device,\n"
10421 "                   int mbytes);\n"
10422 "\n"
10423 msgstr ""
10424
10425 # type: textblock
10426 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2580
10427 msgid ""
10428 "This resizes (expands or shrinks) an existing LVM logical volume to "
10429 "C<mbytes>.  When reducing, data in the reduced part is lost."
10430 msgstr ""
10431
10432 # type: =head2
10433 #: ../src/guestfs-actions.pod:3802
10434 msgid "guestfs_lvresize_free"
10435 msgstr ""
10436
10437 # type: verbatim
10438 #: ../src/guestfs-actions.pod:3804
10439 #, no-wrap
10440 msgid ""
10441 " int\n"
10442 " guestfs_lvresize_free (guestfs_h *g,\n"
10443 "                        const char *lv,\n"
10444 "                        int percent);\n"
10445 "\n"
10446 msgstr ""
10447
10448 # type: textblock
10449 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2588
10450 msgid ""
10451 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10452 "remaining free space in the volume group.  Commonly you would call this with "
10453 "pc = 100 which expands the logical volume as much as possible, using all "
10454 "remaining free space in the volume group."
10455 msgstr ""
10456
10457 # type: textblock
10458 #: ../src/guestfs-actions.pod:3817
10459 msgid "(Added in 1.3.3)"
10460 msgstr ""
10461
10462 # type: =head2
10463 #: ../src/guestfs-actions.pod:3819
10464 msgid "guestfs_lvs"
10465 msgstr ""
10466
10467 # type: verbatim
10468 #: ../src/guestfs-actions.pod:3821
10469 #, no-wrap
10470 msgid ""
10471 " char **\n"
10472 " guestfs_lvs (guestfs_h *g);\n"
10473 "\n"
10474 msgstr ""
10475
10476 # type: textblock
10477 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2598
10478 msgid ""
10479 "List all the logical volumes detected.  This is the equivalent of the "
10480 "L<lvs(8)> command."
10481 msgstr ""
10482
10483 # type: textblock
10484 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2601
10485 msgid ""
10486 "This returns a list of the logical volume device names "
10487 "(eg. C</dev/VolGroup00/LogVol00>)."
10488 msgstr ""
10489
10490 # type: textblock
10491 #: ../src/guestfs-actions.pod:3830
10492 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10493 msgstr ""
10494
10495 # type: =head2
10496 #: ../src/guestfs-actions.pod:3838
10497 msgid "guestfs_lvs_full"
10498 msgstr ""
10499
10500 # type: verbatim
10501 #: ../src/guestfs-actions.pod:3840
10502 #, no-wrap
10503 msgid ""
10504 " struct guestfs_lvm_lv_list *\n"
10505 " guestfs_lvs_full (guestfs_h *g);\n"
10506 "\n"
10507 msgstr ""
10508
10509 # type: textblock
10510 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2610
10511 msgid ""
10512 "List all the logical volumes detected.  This is the equivalent of the "
10513 "L<lvs(8)> command.  The \"full\" version includes all fields."
10514 msgstr ""
10515
10516 # type: textblock
10517 #: ../src/guestfs-actions.pod:3846
10518 msgid ""
10519 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10520 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
10521 "use>."
10522 msgstr ""
10523
10524 # type: =head2
10525 #: ../src/guestfs-actions.pod:3852
10526 msgid "guestfs_lvuuid"
10527 msgstr ""
10528
10529 # type: verbatim
10530 #: ../src/guestfs-actions.pod:3854
10531 #, no-wrap
10532 msgid ""
10533 " char *\n"
10534 " guestfs_lvuuid (guestfs_h *g,\n"
10535 "                 const char *device);\n"
10536 "\n"
10537 msgstr ""
10538
10539 # type: textblock
10540 #: ../src/guestfs-actions.pod:3858 ../fish/guestfish-actions.pod:2617
10541 msgid "This command returns the UUID of the LVM LV C<device>."
10542 msgstr ""
10543
10544 # type: =head2
10545 #: ../src/guestfs-actions.pod:3865
10546 msgid "guestfs_lxattrlist"
10547 msgstr ""
10548
10549 # type: verbatim
10550 #: ../src/guestfs-actions.pod:3867
10551 #, no-wrap
10552 msgid ""
10553 " struct guestfs_xattr_list *\n"
10554 " guestfs_lxattrlist (guestfs_h *g,\n"
10555 "                     const char *path,\n"
10556 "                     char *const *names);\n"
10557 "\n"
10558 msgstr ""
10559
10560 # type: textblock
10561 #: ../src/guestfs-actions.pod:3872 ../fish/guestfish-actions.pod:2623
10562 msgid ""
10563 "This call allows you to get the extended attributes of multiple files, where "
10564 "all files are in the directory C<path>.  C<names> is the list of files from "
10565 "this directory."
10566 msgstr ""
10567
10568 # type: textblock
10569 #: ../src/guestfs-actions.pod:3876 ../fish/guestfish-actions.pod:2627
10570 msgid ""
10571 "On return you get a flat list of xattr structs which must be interpreted "
10572 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10573 "C<attrval> in this struct is zero-length to indicate there was an error "
10574 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10575 "number (the number of following attributes for this file, which could be "
10576 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10577 "attributes for the first named file.  This repeats for the second and "
10578 "subsequent files."
10579 msgstr ""
10580
10581 # type: textblock
10582 #: ../src/guestfs-actions.pod:3886
10583 msgid ""
10584 "This call is intended for programs that want to efficiently list a directory "
10585 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10586 "a similarly efficient call for getting standard stats.  Very long directory "
10587 "listings might cause the protocol message size to be exceeded, causing this "
10588 "call to fail.  The caller must split up such requests into smaller groups of "
10589 "names."
10590 msgstr ""
10591
10592 # type: =head2
10593 #: ../src/guestfs-actions.pod:3900
10594 msgid "guestfs_mkdir"
10595 msgstr ""
10596
10597 # type: verbatim
10598 #: ../src/guestfs-actions.pod:3902
10599 #, no-wrap
10600 msgid ""
10601 " int\n"
10602 " guestfs_mkdir (guestfs_h *g,\n"
10603 "                const char *path);\n"
10604 "\n"
10605 msgstr ""
10606
10607 # type: textblock
10608 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:2649
10609 msgid "Create a directory named C<path>."
10610 msgstr ""
10611
10612 # type: =head2
10613 #: ../src/guestfs-actions.pod:3912
10614 msgid "guestfs_mkdir_mode"
10615 msgstr ""
10616
10617 # type: verbatim
10618 #: ../src/guestfs-actions.pod:3914
10619 #, no-wrap
10620 msgid ""
10621 " int\n"
10622 " guestfs_mkdir_mode (guestfs_h *g,\n"
10623 "                     const char *path,\n"
10624 "                     int mode);\n"
10625 "\n"
10626 msgstr ""
10627
10628 # type: textblock
10629 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2655
10630 msgid ""
10631 "This command creates a directory, setting the initial permissions of the "
10632 "directory to C<mode>."
10633 msgstr ""
10634
10635 # type: textblock
10636 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2658
10637 msgid ""
10638 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10639 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10640 "other ways."
10641 msgstr ""
10642
10643 # type: textblock
10644 #: ../src/guestfs-actions.pod:3926
10645 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10646 msgstr ""
10647
10648 # type: =head2
10649 #: ../src/guestfs-actions.pod:3932
10650 msgid "guestfs_mkdir_p"
10651 msgstr ""
10652
10653 # type: verbatim
10654 #: ../src/guestfs-actions.pod:3934
10655 #, no-wrap
10656 msgid ""
10657 " int\n"
10658 " guestfs_mkdir_p (guestfs_h *g,\n"
10659 "                  const char *path);\n"
10660 "\n"
10661 msgstr ""
10662
10663 # type: textblock
10664 #: ../src/guestfs-actions.pod:3938 ../fish/guestfish-actions.pod:2668
10665 msgid ""
10666 "Create a directory named C<path>, creating any parent directories as "
10667 "necessary.  This is like the C<mkdir -p> shell command."
10668 msgstr ""
10669
10670 # type: =head2
10671 #: ../src/guestfs-actions.pod:3945
10672 msgid "guestfs_mkdtemp"
10673 msgstr ""
10674
10675 # type: verbatim
10676 #: ../src/guestfs-actions.pod:3947
10677 #, no-wrap
10678 msgid ""
10679 " char *\n"
10680 " guestfs_mkdtemp (guestfs_h *g,\n"
10681 "                  const char *template);\n"
10682 "\n"
10683 msgstr ""
10684
10685 # type: textblock
10686 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2675
10687 msgid ""
10688 "This command creates a temporary directory.  The C<template> parameter "
10689 "should be a full pathname for the temporary directory name with the final "
10690 "six characters being \"XXXXXX\"."
10691 msgstr ""
10692
10693 # type: textblock
10694 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2680
10695 msgid ""
10696 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10697 "being suitable for Windows filesystems."
10698 msgstr ""
10699
10700 # type: textblock
10701 #: ../src/guestfs-actions.pod:3959 ../fish/guestfish-actions.pod:2683
10702 msgid "The name of the temporary directory that was created is returned."
10703 msgstr ""
10704
10705 # type: textblock
10706 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2686
10707 msgid "The temporary directory is created with mode 0700 and is owned by root."
10708 msgstr ""
10709
10710 # type: textblock
10711 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2689
10712 msgid ""
10713 "The caller is responsible for deleting the temporary directory and its "
10714 "contents after use."
10715 msgstr ""
10716
10717 # type: textblock
10718 #: ../src/guestfs-actions.pod:3968 ../fish/guestfish-actions.pod:2692
10719 msgid "See also: L<mkdtemp(3)>"
10720 msgstr ""
10721
10722 # type: =head2
10723 #: ../src/guestfs-actions.pod:3975
10724 msgid "guestfs_mke2fs_J"
10725 msgstr ""
10726
10727 # type: verbatim
10728 #: ../src/guestfs-actions.pod:3977
10729 #, no-wrap
10730 msgid ""
10731 " int\n"
10732 " guestfs_mke2fs_J (guestfs_h *g,\n"
10733 "                   const char *fstype,\n"
10734 "                   int blocksize,\n"
10735 "                   const char *device,\n"
10736 "                   const char *journal);\n"
10737 "\n"
10738 msgstr ""
10739
10740 # type: textblock
10741 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:2698
10742 msgid ""
10743 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10744 "C<journal>.  It is equivalent to the command:"
10745 msgstr ""
10746
10747 # type: verbatim
10748 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:2702
10749 #, no-wrap
10750 msgid ""
10751 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10752 "\n"
10753 msgstr ""
10754
10755 # type: textblock
10756 #: ../src/guestfs-actions.pod:3990
10757 msgid "See also C<guestfs_mke2journal>."
10758 msgstr ""
10759
10760 # type: textblock
10761 #: ../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
10762 msgid "(Added in 1.0.68)"
10763 msgstr ""
10764
10765 # type: =head2
10766 #: ../src/guestfs-actions.pod:3996
10767 msgid "guestfs_mke2fs_JL"
10768 msgstr ""
10769
10770 # type: verbatim
10771 #: ../src/guestfs-actions.pod:3998
10772 #, no-wrap
10773 msgid ""
10774 " int\n"
10775 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10776 "                    const char *fstype,\n"
10777 "                    int blocksize,\n"
10778 "                    const char *device,\n"
10779 "                    const char *label);\n"
10780 "\n"
10781 msgstr ""
10782
10783 # type: textblock
10784 #: ../src/guestfs-actions.pod:4005 ../fish/guestfish-actions.pod:2710
10785 msgid ""
10786 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10787 "the journal labeled C<label>."
10788 msgstr ""
10789
10790 # type: textblock
10791 #: ../src/guestfs-actions.pod:4008
10792 msgid "See also C<guestfs_mke2journal_L>."
10793 msgstr ""
10794
10795 # type: =head2
10796 #: ../src/guestfs-actions.pod:4014
10797 msgid "guestfs_mke2fs_JU"
10798 msgstr ""
10799
10800 # type: verbatim
10801 #: ../src/guestfs-actions.pod:4016
10802 #, no-wrap
10803 msgid ""
10804 " int\n"
10805 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10806 "                    const char *fstype,\n"
10807 "                    int blocksize,\n"
10808 "                    const char *device,\n"
10809 "                    const char *uuid);\n"
10810 "\n"
10811 msgstr ""
10812
10813 # type: textblock
10814 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2719
10815 msgid ""
10816 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10817 "the journal with UUID C<uuid>."
10818 msgstr ""
10819
10820 # type: textblock
10821 #: ../src/guestfs-actions.pod:4026
10822 msgid "See also C<guestfs_mke2journal_U>."
10823 msgstr ""
10824
10825 # type: =head2
10826 #: ../src/guestfs-actions.pod:4032
10827 msgid "guestfs_mke2journal"
10828 msgstr ""
10829
10830 # type: verbatim
10831 #: ../src/guestfs-actions.pod:4034
10832 #, no-wrap
10833 msgid ""
10834 " int\n"
10835 " guestfs_mke2journal (guestfs_h *g,\n"
10836 "                      int blocksize,\n"
10837 "                      const char *device);\n"
10838 "\n"
10839 msgstr ""
10840
10841 # type: textblock
10842 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:2728
10843 msgid ""
10844 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10845 "command:"
10846 msgstr ""
10847
10848 # type: verbatim
10849 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2731
10850 #, no-wrap
10851 msgid ""
10852 " mke2fs -O journal_dev -b blocksize device\n"
10853 "\n"
10854 msgstr ""
10855
10856 # type: =head2
10857 #: ../src/guestfs-actions.pod:4048
10858 msgid "guestfs_mke2journal_L"
10859 msgstr ""
10860
10861 # type: verbatim
10862 #: ../src/guestfs-actions.pod:4050
10863 #, no-wrap
10864 msgid ""
10865 " int\n"
10866 " guestfs_mke2journal_L (guestfs_h *g,\n"
10867 "                        int blocksize,\n"
10868 "                        const char *label,\n"
10869 "                        const char *device);\n"
10870 "\n"
10871 msgstr ""
10872
10873 # type: textblock
10874 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2737
10875 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10876 msgstr ""
10877
10878 # type: =head2
10879 #: ../src/guestfs-actions.pod:4062
10880 msgid "guestfs_mke2journal_U"
10881 msgstr ""
10882
10883 # type: verbatim
10884 #: ../src/guestfs-actions.pod:4064
10885 #, no-wrap
10886 msgid ""
10887 " int\n"
10888 " guestfs_mke2journal_U (guestfs_h *g,\n"
10889 "                        int blocksize,\n"
10890 "                        const char *uuid,\n"
10891 "                        const char *device);\n"
10892 "\n"
10893 msgstr ""
10894
10895 # type: textblock
10896 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:2743
10897 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10898 msgstr ""
10899
10900 # type: =head2
10901 #: ../src/guestfs-actions.pod:4076
10902 msgid "guestfs_mkfifo"
10903 msgstr ""
10904
10905 # type: verbatim
10906 #: ../src/guestfs-actions.pod:4078
10907 #, no-wrap
10908 msgid ""
10909 " int\n"
10910 " guestfs_mkfifo (guestfs_h *g,\n"
10911 "                 int mode,\n"
10912 "                 const char *path);\n"
10913 "\n"
10914 msgstr ""
10915
10916 # type: textblock
10917 #: ../src/guestfs-actions.pod:4083
10918 msgid ""
10919 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10920 "is just a convenient wrapper around C<guestfs_mknod>."
10921 msgstr ""
10922
10923 # type: =head2
10924 #: ../src/guestfs-actions.pod:4093
10925 msgid "guestfs_mkfs"
10926 msgstr ""
10927
10928 # type: verbatim
10929 #: ../src/guestfs-actions.pod:4095
10930 #, no-wrap
10931 msgid ""
10932 " int\n"
10933 " guestfs_mkfs (guestfs_h *g,\n"
10934 "               const char *fstype,\n"
10935 "               const char *device);\n"
10936 "\n"
10937 msgstr ""
10938
10939 # type: textblock
10940 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2759
10941 msgid ""
10942 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10943 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10944 msgstr ""
10945
10946 # type: =head2
10947 #: ../src/guestfs-actions.pod:4108
10948 msgid "guestfs_mkfs_b"
10949 msgstr ""
10950
10951 # type: verbatim
10952 #: ../src/guestfs-actions.pod:4110
10953 #, no-wrap
10954 msgid ""
10955 " int\n"
10956 " guestfs_mkfs_b (guestfs_h *g,\n"
10957 "                 const char *fstype,\n"
10958 "                 int blocksize,\n"
10959 "                 const char *device);\n"
10960 "\n"
10961 msgstr ""
10962
10963 # type: textblock
10964 #: ../src/guestfs-actions.pod:4116
10965 msgid ""
10966 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10967 "block size of the resulting filesystem.  Supported block sizes depend on the "
10968 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10969 msgstr ""
10970
10971 # type: textblock
10972 #: ../src/guestfs-actions.pod:4121 ../fish/guestfish-actions.pod:2772
10973 msgid ""
10974 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10975 "cluster size."
10976 msgstr ""
10977
10978 # type: =head2
10979 #: ../src/guestfs-actions.pod:4128
10980 msgid "guestfs_mkmountpoint"
10981 msgstr ""
10982
10983 # type: verbatim
10984 #: ../src/guestfs-actions.pod:4130
10985 #, no-wrap
10986 msgid ""
10987 " int\n"
10988 " guestfs_mkmountpoint (guestfs_h *g,\n"
10989 "                       const char *exemptpath);\n"
10990 "\n"
10991 msgstr ""
10992
10993 # type: textblock
10994 #: ../src/guestfs-actions.pod:4134
10995 msgid ""
10996 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
10997 "that can be used to create extra mountpoints before mounting the first "
10998 "filesystem."
10999 msgstr ""
11000
11001 # type: textblock
11002 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:2783
11003 msgid ""
11004 "These calls are I<only> necessary in some very limited circumstances, mainly "
11005 "the case where you want to mount a mix of unrelated and/or read-only "
11006 "filesystems together."
11007 msgstr ""
11008
11009 # type: textblock
11010 #: ../src/guestfs-actions.pod:4142 ../fish/guestfish-actions.pod:2787
11011 msgid ""
11012 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11013 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11014 "inside that.  You can unpack this as follows in guestfish:"
11015 msgstr ""
11016
11017 # type: verbatim
11018 #: ../src/guestfs-actions.pod:4147 ../fish/guestfish-actions.pod:2792
11019 #, no-wrap
11020 msgid ""
11021 " add-ro Fedora-11-i686-Live.iso\n"
11022 " run\n"
11023 " mkmountpoint /cd\n"
11024 " mkmountpoint /sqsh\n"
11025 " mkmountpoint /ext3fs\n"
11026 " mount /dev/sda /cd\n"
11027 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11028 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11029 "\n"
11030 msgstr ""
11031
11032 # type: textblock
11033 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2801
11034 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11035 msgstr ""
11036
11037 # type: textblock
11038 #: ../src/guestfs-actions.pod:4158
11039 msgid ""
11040 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11041 "may get unexpected errors if you try to mix these calls.  It is safest to "
11042 "manually unmount filesystems and remove mountpoints after use."
11043 msgstr ""
11044
11045 # type: textblock
11046 #: ../src/guestfs-actions.pod:4162
11047 msgid ""
11048 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11049 "first, so for this to work for manual mountpoints, you must ensure that the "
11050 "innermost mountpoints have the longest pathnames, as in the example code "
11051 "above."
11052 msgstr ""
11053
11054 # type: textblock
11055 #: ../src/guestfs-actions.pod:4167 ../fish/guestfish-actions.pod:2812
11056 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11057 msgstr ""
11058
11059 # type: textblock
11060 #: ../src/guestfs-actions.pod:4169
11061 msgid ""
11062 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11063 "means that C<guestfs_umount_all> is called when the handle is closed which "
11064 "can also trigger these issues."
11065 msgstr ""
11066
11067 # type: textblock
11068 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5327
11069 msgid "(Added in 1.0.62)"
11070 msgstr ""
11071
11072 # type: =head2
11073 #: ../src/guestfs-actions.pod:4177
11074 msgid "guestfs_mknod"
11075 msgstr ""
11076
11077 # type: verbatim
11078 #: ../src/guestfs-actions.pod:4179
11079 #, no-wrap
11080 msgid ""
11081 " int\n"
11082 " guestfs_mknod (guestfs_h *g,\n"
11083 "                int mode,\n"
11084 "                int devmajor,\n"
11085 "                int devminor,\n"
11086 "                const char *path);\n"
11087 "\n"
11088 msgstr ""
11089
11090 # type: textblock
11091 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:2822
11092 msgid ""
11093 "This call creates block or character special devices, or named pipes "
11094 "(FIFOs)."
11095 msgstr ""
11096
11097 # type: textblock
11098 #: ../src/guestfs-actions.pod:4189 ../fish/guestfish-actions.pod:2825
11099 msgid ""
11100 "The C<mode> parameter should be the mode, using the standard constants.  "
11101 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11102 "used when creating block and character special devices."
11103 msgstr ""
11104
11105 # type: textblock
11106 #: ../src/guestfs-actions.pod:4194
11107 msgid ""
11108 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11109 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11110 "regular file).  These constants are available in the standard Linux header "
11111 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11112 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11113 "the appropriate constant for you."
11114 msgstr ""
11115
11116 # type: =head2
11117 #: ../src/guestfs-actions.pod:4208
11118 msgid "guestfs_mknod_b"
11119 msgstr ""
11120
11121 # type: verbatim
11122 #: ../src/guestfs-actions.pod:4210
11123 #, no-wrap
11124 msgid ""
11125 " int\n"
11126 " guestfs_mknod_b (guestfs_h *g,\n"
11127 "                  int mode,\n"
11128 "                  int devmajor,\n"
11129 "                  int devminor,\n"
11130 "                  const char *path);\n"
11131 "\n"
11132 msgstr ""
11133
11134 # type: textblock
11135 #: ../src/guestfs-actions.pod:4217
11136 msgid ""
11137 "This call creates a block device node called C<path> with mode C<mode> and "
11138 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11139 "wrapper around C<guestfs_mknod>."
11140 msgstr ""
11141
11142 # type: =head2
11143 #: ../src/guestfs-actions.pod:4227
11144 msgid "guestfs_mknod_c"
11145 msgstr ""
11146
11147 # type: verbatim
11148 #: ../src/guestfs-actions.pod:4229
11149 #, no-wrap
11150 msgid ""
11151 " int\n"
11152 " guestfs_mknod_c (guestfs_h *g,\n"
11153 "                  int mode,\n"
11154 "                  int devmajor,\n"
11155 "                  int devminor,\n"
11156 "                  const char *path);\n"
11157 "\n"
11158 msgstr ""
11159
11160 # type: textblock
11161 #: ../src/guestfs-actions.pod:4236
11162 msgid ""
11163 "This call creates a char device node called C<path> with mode C<mode> and "
11164 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11165 "wrapper around C<guestfs_mknod>."
11166 msgstr ""
11167
11168 # type: =head2
11169 #: ../src/guestfs-actions.pod:4246
11170 msgid "guestfs_mkswap"
11171 msgstr ""
11172
11173 # type: verbatim
11174 #: ../src/guestfs-actions.pod:4248
11175 #, no-wrap
11176 msgid ""
11177 " int\n"
11178 " guestfs_mkswap (guestfs_h *g,\n"
11179 "                 const char *device);\n"
11180 "\n"
11181 msgstr ""
11182
11183 # type: textblock
11184 #: ../src/guestfs-actions.pod:4252 ../fish/guestfish-actions.pod:2864
11185 msgid "Create a swap partition on C<device>."
11186 msgstr ""
11187
11188 # type: =head2
11189 #: ../src/guestfs-actions.pod:4258
11190 msgid "guestfs_mkswap_L"
11191 msgstr ""
11192
11193 # type: verbatim
11194 #: ../src/guestfs-actions.pod:4260
11195 #, no-wrap
11196 msgid ""
11197 " int\n"
11198 " guestfs_mkswap_L (guestfs_h *g,\n"
11199 "                   const char *label,\n"
11200 "                   const char *device);\n"
11201 "\n"
11202 msgstr ""
11203
11204 # type: textblock
11205 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:2870
11206 msgid "Create a swap partition on C<device> with label C<label>."
11207 msgstr ""
11208
11209 # type: textblock
11210 #: ../src/guestfs-actions.pod:4267 ../fish/guestfish-actions.pod:2872
11211 msgid ""
11212 "Note that you cannot attach a swap label to a block device "
11213 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11214 "the kernel or swap tools."
11215 msgstr ""
11216
11217 # type: =head2
11218 #: ../src/guestfs-actions.pod:4275
11219 msgid "guestfs_mkswap_U"
11220 msgstr ""
11221
11222 # type: verbatim
11223 #: ../src/guestfs-actions.pod:4277
11224 #, no-wrap
11225 msgid ""
11226 " int\n"
11227 " guestfs_mkswap_U (guestfs_h *g,\n"
11228 "                   const char *uuid,\n"
11229 "                   const char *device);\n"
11230 "\n"
11231 msgstr ""
11232
11233 # type: textblock
11234 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2880
11235 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11236 msgstr ""
11237
11238 # type: =head2
11239 #: ../src/guestfs-actions.pod:4288
11240 msgid "guestfs_mkswap_file"
11241 msgstr ""
11242
11243 # type: verbatim
11244 #: ../src/guestfs-actions.pod:4290
11245 #, no-wrap
11246 msgid ""
11247 " int\n"
11248 " guestfs_mkswap_file (guestfs_h *g,\n"
11249 "                      const char *path);\n"
11250 "\n"
11251 msgstr ""
11252
11253 # type: textblock
11254 #: ../src/guestfs-actions.pod:4294 ../fish/guestfish-actions.pod:2886
11255 msgid "Create a swap file."
11256 msgstr ""
11257
11258 # type: textblock
11259 #: ../src/guestfs-actions.pod:4296
11260 msgid ""
11261 "This command just writes a swap file signature to an existing file.  To "
11262 "create the file itself, use something like C<guestfs_fallocate>."
11263 msgstr ""
11264
11265 # type: =head2
11266 #: ../src/guestfs-actions.pod:4303
11267 msgid "guestfs_modprobe"
11268 msgstr ""
11269
11270 # type: verbatim
11271 #: ../src/guestfs-actions.pod:4305
11272 #, no-wrap
11273 msgid ""
11274 " int\n"
11275 " guestfs_modprobe (guestfs_h *g,\n"
11276 "                   const char *modulename);\n"
11277 "\n"
11278 msgstr ""
11279
11280 # type: textblock
11281 #: ../src/guestfs-actions.pod:4309 ../fish/guestfish-actions.pod:2895
11282 msgid "This loads a kernel module in the appliance."
11283 msgstr ""
11284
11285 # type: textblock
11286 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2897
11287 msgid ""
11288 "The kernel module must have been whitelisted when libguestfs was built (see "
11289 "C<appliance/kmod.whitelist.in> in the source)."
11290 msgstr ""
11291
11292 # type: =head2
11293 #: ../src/guestfs-actions.pod:4318
11294 msgid "guestfs_mount"
11295 msgstr ""
11296
11297 # type: verbatim
11298 #: ../src/guestfs-actions.pod:4320
11299 #, no-wrap
11300 msgid ""
11301 " int\n"
11302 " guestfs_mount (guestfs_h *g,\n"
11303 "                const char *device,\n"
11304 "                const char *mountpoint);\n"
11305 "\n"
11306 msgstr ""
11307
11308 # type: textblock
11309 #: ../src/guestfs-actions.pod:4325 ../fish/guestfish-actions.pod:2904
11310 msgid ""
11311 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11312 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11313 "those block devices contain partitions, they will have the usual names "
11314 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11315 msgstr ""
11316
11317 # type: textblock
11318 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2910
11319 msgid ""
11320 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11321 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11322 "mounted on directories which already exist."
11323 msgstr ""
11324
11325 # type: textblock
11326 #: ../src/guestfs-actions.pod:4336 ../fish/guestfish-actions.pod:2915
11327 msgid ""
11328 "The mounted filesystem is writable, if we have sufficient permissions on the "
11329 "underlying device."
11330 msgstr ""
11331
11332 # type: textblock
11333 #: ../src/guestfs-actions.pod:4339
11334 msgid ""
11335 "B<Important note:> When you use this call, the filesystem options C<sync> "
11336 "and C<noatime> are set implicitly.  This was originally done because we "
11337 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11338 "very large negative performance impact and negligible effect on "
11339 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11340 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11341 "(use an empty string for the first parameter if you don't want any options)."
11342 msgstr ""
11343
11344 # type: =head2
11345 #: ../src/guestfs-actions.pod:4353
11346 msgid "guestfs_mount_loop"
11347 msgstr ""
11348
11349 # type: verbatim
11350 #: ../src/guestfs-actions.pod:4355
11351 #, no-wrap
11352 msgid ""
11353 " int\n"
11354 " guestfs_mount_loop (guestfs_h *g,\n"
11355 "                     const char *file,\n"
11356 "                     const char *mountpoint);\n"
11357 "\n"
11358 msgstr ""
11359
11360 # type: textblock
11361 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2932
11362 msgid ""
11363 "This command lets you mount C<file> (a filesystem image in a file) on a "
11364 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11365 "mountpoint>."
11366 msgstr ""
11367
11368 # type: =head2
11369 #: ../src/guestfs-actions.pod:4368
11370 msgid "guestfs_mount_options"
11371 msgstr ""
11372
11373 # type: verbatim
11374 #: ../src/guestfs-actions.pod:4370
11375 #, no-wrap
11376 msgid ""
11377 " int\n"
11378 " guestfs_mount_options (guestfs_h *g,\n"
11379 "                        const char *options,\n"
11380 "                        const char *device,\n"
11381 "                        const char *mountpoint);\n"
11382 "\n"
11383 msgstr ""
11384
11385 # type: textblock
11386 #: ../src/guestfs-actions.pod:4376
11387 msgid ""
11388 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11389 "the mount options as for the L<mount(8)> I<-o> flag."
11390 msgstr ""
11391
11392 # type: textblock
11393 #: ../src/guestfs-actions.pod:4380 ../fish/guestfish-actions.pod:2944
11394 msgid ""
11395 "If the C<options> parameter is an empty string, then no options are passed "
11396 "(all options default to whatever the filesystem uses)."
11397 msgstr ""
11398
11399 # type: textblock
11400 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4400 ../src/guestfs-actions.pod:4417
11401 msgid "(Added in 1.0.10)"
11402 msgstr ""
11403
11404 # type: =head2
11405 #: ../src/guestfs-actions.pod:4388
11406 msgid "guestfs_mount_ro"
11407 msgstr ""
11408
11409 # type: verbatim
11410 #: ../src/guestfs-actions.pod:4390
11411 #, no-wrap
11412 msgid ""
11413 " int\n"
11414 " guestfs_mount_ro (guestfs_h *g,\n"
11415 "                   const char *device,\n"
11416 "                   const char *mountpoint);\n"
11417 "\n"
11418 msgstr ""
11419
11420 # type: textblock
11421 #: ../src/guestfs-actions.pod:4395
11422 msgid ""
11423 "This is the same as the C<guestfs_mount> command, but it mounts the "
11424 "filesystem with the read-only (I<-o ro>) flag."
11425 msgstr ""
11426
11427 # type: =head2
11428 #: ../src/guestfs-actions.pod:4402
11429 msgid "guestfs_mount_vfs"
11430 msgstr ""
11431
11432 # type: verbatim
11433 #: ../src/guestfs-actions.pod:4404
11434 #, no-wrap
11435 msgid ""
11436 " int\n"
11437 " guestfs_mount_vfs (guestfs_h *g,\n"
11438 "                    const char *options,\n"
11439 "                    const char *vfstype,\n"
11440 "                    const char *device,\n"
11441 "                    const char *mountpoint);\n"
11442 "\n"
11443 msgstr ""
11444
11445 # type: textblock
11446 #: ../src/guestfs-actions.pod:4411
11447 msgid ""
11448 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11449 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
11450 "I<-t> flags."
11451 msgstr ""
11452
11453 # type: =head2
11454 #: ../src/guestfs-actions.pod:4419
11455 msgid "guestfs_mountpoints"
11456 msgstr ""
11457
11458 # type: verbatim
11459 #: ../src/guestfs-actions.pod:4421
11460 #, no-wrap
11461 msgid ""
11462 " char **\n"
11463 " guestfs_mountpoints (guestfs_h *g);\n"
11464 "\n"
11465 msgstr ""
11466
11467 # type: textblock
11468 #: ../src/guestfs-actions.pod:4424
11469 msgid ""
11470 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11471 "devices.  This one returns a hash table (map) of device name to directory "
11472 "where the device is mounted."
11473 msgstr ""
11474
11475 # type: =head2
11476 #: ../src/guestfs-actions.pod:4436
11477 msgid "guestfs_mounts"
11478 msgstr ""
11479
11480 # type: verbatim
11481 #: ../src/guestfs-actions.pod:4438
11482 #, no-wrap
11483 msgid ""
11484 " char **\n"
11485 " guestfs_mounts (guestfs_h *g);\n"
11486 "\n"
11487 msgstr ""
11488
11489 # type: textblock
11490 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:2975
11491 msgid ""
11492 "This returns the list of currently mounted filesystems.  It returns the list "
11493 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11494 msgstr ""
11495
11496 # type: textblock
11497 #: ../src/guestfs-actions.pod:4444 ../fish/guestfish-actions.pod:2978
11498 msgid "Some internal mounts are not shown."
11499 msgstr ""
11500
11501 # type: textblock
11502 #: ../src/guestfs-actions.pod:4446
11503 msgid "See also: C<guestfs_mountpoints>"
11504 msgstr ""
11505
11506 # type: =head2
11507 #: ../src/guestfs-actions.pod:4454
11508 msgid "guestfs_mv"
11509 msgstr ""
11510
11511 # type: verbatim
11512 #: ../src/guestfs-actions.pod:4456
11513 #, no-wrap
11514 msgid ""
11515 " int\n"
11516 " guestfs_mv (guestfs_h *g,\n"
11517 "             const char *src,\n"
11518 "             const char *dest);\n"
11519 "\n"
11520 msgstr ""
11521
11522 # type: textblock
11523 #: ../src/guestfs-actions.pod:4461 ../fish/guestfish-actions.pod:2986
11524 msgid ""
11525 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11526 "destination filename or destination directory."
11527 msgstr ""
11528
11529 # type: =head2
11530 #: ../src/guestfs-actions.pod:4468
11531 msgid "guestfs_ntfs_3g_probe"
11532 msgstr ""
11533
11534 # type: verbatim
11535 #: ../src/guestfs-actions.pod:4470
11536 #, no-wrap
11537 msgid ""
11538 " int\n"
11539 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11540 "                        int rw,\n"
11541 "                        const char *device);\n"
11542 "\n"
11543 msgstr ""
11544
11545 # type: textblock
11546 #: ../src/guestfs-actions.pod:4475 ../fish/guestfish-actions.pod:2993
11547 msgid ""
11548 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11549 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11550 "read-write, and some cannot be mounted at all)."
11551 msgstr ""
11552
11553 # type: textblock
11554 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:2997
11555 msgid ""
11556 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11557 "can be mounted read-write.  Set it to false if you want to test if the "
11558 "volume can be mounted read-only."
11559 msgstr ""
11560
11561 # type: textblock
11562 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3001
11563 msgid ""
11564 "The return value is an integer which C<0> if the operation would succeed, or "
11565 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11566 msgstr ""
11567
11568 # type: textblock
11569 #: ../src/guestfs-actions.pod:4489
11570 msgid "(Added in 1.0.43)"
11571 msgstr ""
11572
11573 # type: =head2
11574 #: ../src/guestfs-actions.pod:4491
11575 msgid "guestfs_ntfsresize"
11576 msgstr ""
11577
11578 # type: verbatim
11579 #: ../src/guestfs-actions.pod:4493
11580 #, no-wrap
11581 msgid ""
11582 " int\n"
11583 " guestfs_ntfsresize (guestfs_h *g,\n"
11584 "                     const char *device);\n"
11585 "\n"
11586 msgstr ""
11587
11588 # type: textblock
11589 #: ../src/guestfs-actions.pod:4497 ../fish/guestfish-actions.pod:3009
11590 msgid ""
11591 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11592 "size of the underlying device.  See also L<ntfsresize(8)>."
11593 msgstr ""
11594
11595 # type: =head2
11596 #: ../src/guestfs-actions.pod:4505
11597 msgid "guestfs_ntfsresize_size"
11598 msgstr ""
11599
11600 # type: verbatim
11601 #: ../src/guestfs-actions.pod:4507
11602 #, no-wrap
11603 msgid ""
11604 " int\n"
11605 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11606 "                          const char *device,\n"
11607 "                          int64_t size);\n"
11608 "\n"
11609 msgstr ""
11610
11611 # type: textblock
11612 #: ../src/guestfs-actions.pod:4512
11613 msgid ""
11614 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11615 "to specify the new size (in bytes) explicitly."
11616 msgstr ""
11617
11618 # type: textblock
11619 #: ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4953 ../src/guestfs-actions.pod:5026 ../src/guestfs-actions.pod:5275
11620 msgid "(Added in 1.3.14)"
11621 msgstr ""
11622
11623 # type: =head2
11624 #: ../src/guestfs-actions.pod:4519
11625 msgid "guestfs_part_add"
11626 msgstr ""
11627
11628 # type: verbatim
11629 #: ../src/guestfs-actions.pod:4521
11630 #, no-wrap
11631 msgid ""
11632 " int\n"
11633 " guestfs_part_add (guestfs_h *g,\n"
11634 "                   const char *device,\n"
11635 "                   const char *prlogex,\n"
11636 "                   int64_t startsect,\n"
11637 "                   int64_t endsect);\n"
11638 "\n"
11639 msgstr ""
11640
11641 # type: textblock
11642 #: ../src/guestfs-actions.pod:4528
11643 msgid ""
11644 "This command adds a partition to C<device>.  If there is no partition table "
11645 "on the device, call C<guestfs_part_init> first."
11646 msgstr ""
11647
11648 # type: textblock
11649 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3027
11650 msgid ""
11651 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11652 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11653 "C<logical>) and C<e> (or C<extended>) partition types."
11654 msgstr ""
11655
11656 # type: textblock
11657 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3032
11658 msgid ""
11659 "C<startsect> and C<endsect> are the start and end of the partition in "
11660 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11661 "from the end of the disk (C<-1> is the last sector)."
11662 msgstr ""
11663
11664 # type: textblock
11665 #: ../src/guestfs-actions.pod:4540
11666 msgid ""
11667 "Creating a partition which covers the whole disk is not so easy.  Use "
11668 "C<guestfs_part_disk> to do that."
11669 msgstr ""
11670
11671 # type: textblock
11672 #: ../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
11673 msgid "(Added in 1.0.78)"
11674 msgstr ""
11675
11676 # type: =head2
11677 #: ../src/guestfs-actions.pod:4547
11678 msgid "guestfs_part_del"
11679 msgstr ""
11680
11681 # type: verbatim
11682 #: ../src/guestfs-actions.pod:4549
11683 #, no-wrap
11684 msgid ""
11685 " int\n"
11686 " guestfs_part_del (guestfs_h *g,\n"
11687 "                   const char *device,\n"
11688 "                   int partnum);\n"
11689 "\n"
11690 msgstr ""
11691
11692 # type: textblock
11693 #: ../src/guestfs-actions.pod:4554 ../fish/guestfish-actions.pod:3043
11694 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11695 msgstr ""
11696
11697 # type: textblock
11698 #: ../src/guestfs-actions.pod:4556 ../fish/guestfish-actions.pod:3045
11699 msgid ""
11700 "Note that in the case of MBR partitioning, deleting an extended partition "
11701 "also deletes any logical partitions it contains."
11702 msgstr ""
11703
11704 # type: =head2
11705 #: ../src/guestfs-actions.pod:4564
11706 msgid "guestfs_part_disk"
11707 msgstr ""
11708
11709 # type: verbatim
11710 #: ../src/guestfs-actions.pod:4566
11711 #, no-wrap
11712 msgid ""
11713 " int\n"
11714 " guestfs_part_disk (guestfs_h *g,\n"
11715 "                    const char *device,\n"
11716 "                    const char *parttype);\n"
11717 "\n"
11718 msgstr ""
11719
11720 # type: textblock
11721 #: ../src/guestfs-actions.pod:4571
11722 msgid ""
11723 "This command is simply a combination of C<guestfs_part_init> followed by "
11724 "C<guestfs_part_add> to create a single primary partition covering the whole "
11725 "disk."
11726 msgstr ""
11727
11728 # type: textblock
11729 #: ../src/guestfs-actions.pod:4575
11730 msgid ""
11731 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11732 "possible values are described in C<guestfs_part_init>."
11733 msgstr ""
11734
11735 # type: =head2
11736 #: ../src/guestfs-actions.pod:4585
11737 msgid "guestfs_part_get_bootable"
11738 msgstr ""
11739
11740 # type: verbatim
11741 #: ../src/guestfs-actions.pod:4587
11742 #, no-wrap
11743 msgid ""
11744 " int\n"
11745 " guestfs_part_get_bootable (guestfs_h *g,\n"
11746 "                            const char *device,\n"
11747 "                            int partnum);\n"
11748 "\n"
11749 msgstr ""
11750
11751 # type: textblock
11752 #: ../src/guestfs-actions.pod:4592 ../fish/guestfish-actions.pod:3067
11753 msgid ""
11754 "This command returns true if the partition C<partnum> on C<device> has the "
11755 "bootable flag set."
11756 msgstr ""
11757
11758 # type: textblock
11759 #: ../src/guestfs-actions.pod:4595
11760 msgid "See also C<guestfs_part_set_bootable>."
11761 msgstr ""
11762
11763 # type: =head2
11764 #: ../src/guestfs-actions.pod:4601
11765 msgid "guestfs_part_get_mbr_id"
11766 msgstr ""
11767
11768 # type: verbatim
11769 #: ../src/guestfs-actions.pod:4603
11770 #, no-wrap
11771 msgid ""
11772 " int\n"
11773 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11774 "                          const char *device,\n"
11775 "                          int partnum);\n"
11776 "\n"
11777 msgstr ""
11778
11779 # type: textblock
11780 #: ../src/guestfs-actions.pod:4608 ../fish/guestfish-actions.pod:3076
11781 msgid ""
11782 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11783 "partition C<partnum>."
11784 msgstr ""
11785
11786 # type: textblock
11787 #: ../src/guestfs-actions.pod:4611 ../src/guestfs-actions.pod:4787
11788 msgid ""
11789 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11790 "undefined results for other partition table types (see "
11791 "C<guestfs_part_get_parttype>)."
11792 msgstr ""
11793
11794 # type: =head2
11795 #: ../src/guestfs-actions.pod:4619
11796 msgid "guestfs_part_get_parttype"
11797 msgstr ""
11798
11799 # type: verbatim
11800 #: ../src/guestfs-actions.pod:4621
11801 #, no-wrap
11802 msgid ""
11803 " char *\n"
11804 " guestfs_part_get_parttype (guestfs_h *g,\n"
11805 "                            const char *device);\n"
11806 "\n"
11807 msgstr ""
11808
11809 # type: textblock
11810 #: ../src/guestfs-actions.pod:4625 ../fish/guestfish-actions.pod:3087
11811 msgid ""
11812 "This command examines the partition table on C<device> and returns the "
11813 "partition table type (format) being used."
11814 msgstr ""
11815
11816 # type: textblock
11817 #: ../src/guestfs-actions.pod:4628
11818 msgid ""
11819 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11820 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11821 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11822 msgstr ""
11823
11824 # type: =head2
11825 #: ../src/guestfs-actions.pod:4638
11826 msgid "guestfs_part_init"
11827 msgstr ""
11828
11829 # type: verbatim
11830 #: ../src/guestfs-actions.pod:4640
11831 #, no-wrap
11832 msgid ""
11833 " int\n"
11834 " guestfs_part_init (guestfs_h *g,\n"
11835 "                    const char *device,\n"
11836 "                    const char *parttype);\n"
11837 "\n"
11838 msgstr ""
11839
11840 # type: textblock
11841 #: ../src/guestfs-actions.pod:4645 ../fish/guestfish-actions.pod:3099
11842 msgid ""
11843 "This creates an empty partition table on C<device> of one of the partition "
11844 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11845 "(for large disks)."
11846 msgstr ""
11847
11848 # type: textblock
11849 #: ../src/guestfs-actions.pod:4649
11850 msgid ""
11851 "Initially there are no partitions.  Following this, you should call "
11852 "C<guestfs_part_add> for each partition required."
11853 msgstr ""
11854
11855 # type: textblock
11856 #: ../src/guestfs-actions.pod:4652 ../fish/guestfish-actions.pod:3106
11857 msgid "Possible values for C<parttype> are:"
11858 msgstr ""
11859
11860 # type: =item
11861 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3110
11862 msgid "B<efi> | B<gpt>"
11863 msgstr ""
11864
11865 # type: textblock
11866 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3112
11867 msgid "Intel EFI / GPT partition table."
11868 msgstr ""
11869
11870 # type: textblock
11871 #: ../src/guestfs-actions.pod:4660 ../fish/guestfish-actions.pod:3114
11872 msgid ""
11873 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11874 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11875 "the C<mbr> format."
11876 msgstr ""
11877
11878 # type: =item
11879 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3118
11880 msgid "B<mbr> | B<msdos>"
11881 msgstr ""
11882
11883 # type: textblock
11884 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3120
11885 msgid ""
11886 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11887 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11888 "TB.  For large disks we recommend using C<gpt>."
11889 msgstr ""
11890
11891 # type: textblock
11892 #: ../src/guestfs-actions.pod:4673 ../fish/guestfish-actions.pod:3127
11893 msgid "Other partition table types that may work but are not supported include:"
11894 msgstr ""
11895
11896 # type: =item
11897 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3132
11898 msgid "B<aix>"
11899 msgstr ""
11900
11901 # type: textblock
11902 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3134
11903 msgid "AIX disk labels."
11904 msgstr ""
11905
11906 # type: =item
11907 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3136
11908 msgid "B<amiga> | B<rdb>"
11909 msgstr ""
11910
11911 # type: textblock
11912 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3138
11913 msgid "Amiga \"Rigid Disk Block\" format."
11914 msgstr ""
11915
11916 # type: =item
11917 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3140
11918 msgid "B<bsd>"
11919 msgstr ""
11920
11921 # type: textblock
11922 #: ../src/guestfs-actions.pod:4688 ../fish/guestfish-actions.pod:3142
11923 msgid "BSD disk labels."
11924 msgstr ""
11925
11926 # type: =item
11927 #: ../src/guestfs-actions.pod:4690 ../fish/guestfish-actions.pod:3144
11928 msgid "B<dasd>"
11929 msgstr ""
11930
11931 # type: textblock
11932 #: ../src/guestfs-actions.pod:4692 ../fish/guestfish-actions.pod:3146
11933 msgid "DASD, used on IBM mainframes."
11934 msgstr ""
11935
11936 # type: =item
11937 #: ../src/guestfs-actions.pod:4694 ../fish/guestfish-actions.pod:3148
11938 msgid "B<dvh>"
11939 msgstr ""
11940
11941 # type: textblock
11942 #: ../src/guestfs-actions.pod:4696 ../fish/guestfish-actions.pod:3150
11943 msgid "MIPS/SGI volumes."
11944 msgstr ""
11945
11946 # type: =item
11947 #: ../src/guestfs-actions.pod:4698 ../fish/guestfish-actions.pod:3152
11948 msgid "B<mac>"
11949 msgstr ""
11950
11951 # type: textblock
11952 #: ../src/guestfs-actions.pod:4700 ../fish/guestfish-actions.pod:3154
11953 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11954 msgstr ""
11955
11956 # type: =item
11957 #: ../src/guestfs-actions.pod:4702 ../fish/guestfish-actions.pod:3156
11958 msgid "B<pc98>"
11959 msgstr ""
11960
11961 # type: textblock
11962 #: ../src/guestfs-actions.pod:4704 ../fish/guestfish-actions.pod:3158
11963 msgid "NEC PC-98 format, common in Japan apparently."
11964 msgstr ""
11965
11966 # type: =item
11967 #: ../src/guestfs-actions.pod:4706 ../fish/guestfish-actions.pod:3160
11968 msgid "B<sun>"
11969 msgstr ""
11970
11971 # type: textblock
11972 #: ../src/guestfs-actions.pod:4708 ../fish/guestfish-actions.pod:3162
11973 msgid "Sun disk labels."
11974 msgstr ""
11975
11976 # type: =head2
11977 #: ../src/guestfs-actions.pod:4716
11978 msgid "guestfs_part_list"
11979 msgstr ""
11980
11981 # type: verbatim
11982 #: ../src/guestfs-actions.pod:4718
11983 #, no-wrap
11984 msgid ""
11985 " struct guestfs_partition_list *\n"
11986 " guestfs_part_list (guestfs_h *g,\n"
11987 "                    const char *device);\n"
11988 "\n"
11989 msgstr ""
11990
11991 # type: textblock
11992 #: ../src/guestfs-actions.pod:4722 ../fish/guestfish-actions.pod:3170
11993 msgid ""
11994 "This command parses the partition table on C<device> and returns the list of "
11995 "partitions found."
11996 msgstr ""
11997
11998 # type: textblock
11999 #: ../src/guestfs-actions.pod:4725 ../fish/guestfish-actions.pod:3173
12000 msgid "The fields in the returned structure are:"
12001 msgstr ""
12002
12003 # type: =item
12004 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3177
12005 msgid "B<part_num>"
12006 msgstr ""
12007
12008 # type: textblock
12009 #: ../src/guestfs-actions.pod:4731 ../fish/guestfish-actions.pod:3179
12010 msgid "Partition number, counting from 1."
12011 msgstr ""
12012
12013 # type: =item
12014 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3181
12015 msgid "B<part_start>"
12016 msgstr ""
12017
12018 # type: textblock
12019 #: ../src/guestfs-actions.pod:4735
12020 msgid ""
12021 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12022 "the device's sector size, see C<guestfs_blockdev_getss>."
12023 msgstr ""
12024
12025 # type: =item
12026 #: ../src/guestfs-actions.pod:4738 ../fish/guestfish-actions.pod:3186
12027 msgid "B<part_end>"
12028 msgstr ""
12029
12030 # type: textblock
12031 #: ../src/guestfs-actions.pod:4740 ../fish/guestfish-actions.pod:3188
12032 msgid "End of the partition in bytes."
12033 msgstr ""
12034
12035 # type: =item
12036 #: ../src/guestfs-actions.pod:4742 ../fish/guestfish-actions.pod:3190
12037 msgid "B<part_size>"
12038 msgstr ""
12039
12040 # type: textblock
12041 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3192
12042 msgid "Size of the partition in bytes."
12043 msgstr ""
12044
12045 # type: textblock
12046 #: ../src/guestfs-actions.pod:4748
12047 msgid ""
12048 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12049 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12050 "use>."
12051 msgstr ""
12052
12053 # type: =head2
12054 #: ../src/guestfs-actions.pod:4754
12055 msgid "guestfs_part_set_bootable"
12056 msgstr ""
12057
12058 # type: verbatim
12059 #: ../src/guestfs-actions.pod:4756
12060 #, no-wrap
12061 msgid ""
12062 " int\n"
12063 " guestfs_part_set_bootable (guestfs_h *g,\n"
12064 "                            const char *device,\n"
12065 "                            int partnum,\n"
12066 "                            int bootable);\n"
12067 "\n"
12068 msgstr ""
12069
12070 # type: textblock
12071 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3200
12072 msgid ""
12073 "This sets the bootable flag on partition numbered C<partnum> on device "
12074 "C<device>.  Note that partitions are numbered from 1."
12075 msgstr ""
12076
12077 # type: textblock
12078 #: ../src/guestfs-actions.pod:4765 ../fish/guestfish-actions.pod:3203
12079 msgid ""
12080 "The bootable flag is used by some operating systems (notably Windows) to "
12081 "determine which partition to boot from.  It is by no means universally "
12082 "recognized."
12083 msgstr ""
12084
12085 # type: =head2
12086 #: ../src/guestfs-actions.pod:4773
12087 msgid "guestfs_part_set_mbr_id"
12088 msgstr ""
12089
12090 # type: verbatim
12091 #: ../src/guestfs-actions.pod:4775
12092 #, no-wrap
12093 msgid ""
12094 " int\n"
12095 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12096 "                          const char *device,\n"
12097 "                          int partnum,\n"
12098 "                          int idbyte);\n"
12099 "\n"
12100 msgstr ""
12101
12102 # type: textblock
12103 #: ../src/guestfs-actions.pod:4781 ../fish/guestfish-actions.pod:3211
12104 msgid ""
12105 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12106 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12107 "documentation are in fact hexadecimal numbers, but usually documented "
12108 "without any leading \"0x\" which might be confusing."
12109 msgstr ""
12110
12111 # type: =head2
12112 #: ../src/guestfs-actions.pod:4795
12113 msgid "guestfs_part_set_name"
12114 msgstr ""
12115
12116 # type: verbatim
12117 #: ../src/guestfs-actions.pod:4797
12118 #, no-wrap
12119 msgid ""
12120 " int\n"
12121 " guestfs_part_set_name (guestfs_h *g,\n"
12122 "                        const char *device,\n"
12123 "                        int partnum,\n"
12124 "                        const char *name);\n"
12125 "\n"
12126 msgstr ""
12127
12128 # type: textblock
12129 #: ../src/guestfs-actions.pod:4803 ../fish/guestfish-actions.pod:3225
12130 msgid ""
12131 "This sets the partition name on partition numbered C<partnum> on device "
12132 "C<device>.  Note that partitions are numbered from 1."
12133 msgstr ""
12134
12135 # type: textblock
12136 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3228
12137 msgid ""
12138 "The partition name can only be set on certain types of partition table.  "
12139 "This works on C<gpt> but not on C<mbr> partitions."
12140 msgstr ""
12141
12142 # type: =head2
12143 #: ../src/guestfs-actions.pod:4813
12144 msgid "guestfs_part_to_dev"
12145 msgstr ""
12146
12147 # type: verbatim
12148 #: ../src/guestfs-actions.pod:4815
12149 #, no-wrap
12150 msgid ""
12151 " char *\n"
12152 " guestfs_part_to_dev (guestfs_h *g,\n"
12153 "                      const char *partition);\n"
12154 "\n"
12155 msgstr ""
12156
12157 # type: textblock
12158 #: ../src/guestfs-actions.pod:4819 ../fish/guestfish-actions.pod:3235
12159 msgid ""
12160 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12161 "partition number, returning the device name (eg. \"/dev/sdb\")."
12162 msgstr ""
12163
12164 # type: textblock
12165 #: ../src/guestfs-actions.pod:4823
12166 msgid ""
12167 "The named partition must exist, for example as a string returned from "
12168 "C<guestfs_list_partitions>."
12169 msgstr ""
12170
12171 # type: =head2
12172 #: ../src/guestfs-actions.pod:4831
12173 msgid "guestfs_ping_daemon"
12174 msgstr ""
12175
12176 # type: verbatim
12177 #: ../src/guestfs-actions.pod:4833
12178 #, no-wrap
12179 msgid ""
12180 " int\n"
12181 " guestfs_ping_daemon (guestfs_h *g);\n"
12182 "\n"
12183 msgstr ""
12184
12185 # type: textblock
12186 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3246
12187 msgid ""
12188 "This is a test probe into the guestfs daemon running inside the qemu "
12189 "subprocess.  Calling this function checks that the daemon responds to the "
12190 "ping message, without affecting the daemon or attached block device(s) in "
12191 "any other way."
12192 msgstr ""
12193
12194 # type: =head2
12195 #: ../src/guestfs-actions.pod:4845
12196 msgid "guestfs_pread"
12197 msgstr ""
12198
12199 # type: verbatim
12200 #: ../src/guestfs-actions.pod:4847
12201 #, no-wrap
12202 msgid ""
12203 " char *\n"
12204 " guestfs_pread (guestfs_h *g,\n"
12205 "                const char *path,\n"
12206 "                int count,\n"
12207 "                int64_t offset,\n"
12208 "                size_t *size_r);\n"
12209 "\n"
12210 msgstr ""
12211
12212 # type: textblock
12213 #: ../src/guestfs-actions.pod:4854 ../fish/guestfish-actions.pod:3255
12214 msgid ""
12215 "This command lets you read part of a file.  It reads C<count> bytes of the "
12216 "file, starting at C<offset>, from file C<path>."
12217 msgstr ""
12218
12219 # type: textblock
12220 #: ../src/guestfs-actions.pod:4857 ../src/guestfs-actions.pod:4883 ../fish/guestfish-actions.pod:3258 ../fish/guestfish-actions.pod:3273
12221 msgid ""
12222 "This may read fewer bytes than requested.  For further details see the "
12223 "L<pread(2)> system call."
12224 msgstr ""
12225
12226 # type: textblock
12227 #: ../src/guestfs-actions.pod:4860
12228 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12229 msgstr ""
12230
12231 # type: =head2
12232 #: ../src/guestfs-actions.pod:4871
12233 msgid "guestfs_pread_device"
12234 msgstr ""
12235
12236 # type: verbatim
12237 #: ../src/guestfs-actions.pod:4873
12238 #, no-wrap
12239 msgid ""
12240 " char *\n"
12241 " guestfs_pread_device (guestfs_h *g,\n"
12242 "                       const char *device,\n"
12243 "                       int count,\n"
12244 "                       int64_t offset,\n"
12245 "                       size_t *size_r);\n"
12246 "\n"
12247 msgstr ""
12248
12249 # type: textblock
12250 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3270
12251 msgid ""
12252 "This command lets you read part of a file.  It reads C<count> bytes of "
12253 "C<device>, starting at C<offset>."
12254 msgstr ""
12255
12256 # type: textblock
12257 #: ../src/guestfs-actions.pod:4886
12258 msgid "See also C<guestfs_pread>."
12259 msgstr ""
12260
12261 # type: textblock
12262 #: ../src/guestfs-actions.pod:4895
12263 msgid "(Added in 1.5.21)"
12264 msgstr ""
12265
12266 # type: =head2
12267 #: ../src/guestfs-actions.pod:4897
12268 msgid "guestfs_pvcreate"
12269 msgstr ""
12270
12271 # type: verbatim
12272 #: ../src/guestfs-actions.pod:4899
12273 #, no-wrap
12274 msgid ""
12275 " int\n"
12276 " guestfs_pvcreate (guestfs_h *g,\n"
12277 "                   const char *device);\n"
12278 "\n"
12279 msgstr ""
12280
12281 # type: textblock
12282 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3285
12283 msgid ""
12284 "This creates an LVM physical volume on the named C<device>, where C<device> "
12285 "should usually be a partition name such as C</dev/sda1>."
12286 msgstr ""
12287
12288 # type: =head2
12289 #: ../src/guestfs-actions.pod:4911
12290 msgid "guestfs_pvremove"
12291 msgstr ""
12292
12293 # type: verbatim
12294 #: ../src/guestfs-actions.pod:4913
12295 #, no-wrap
12296 msgid ""
12297 " int\n"
12298 " guestfs_pvremove (guestfs_h *g,\n"
12299 "                   const char *device);\n"
12300 "\n"
12301 msgstr ""
12302
12303 # type: textblock
12304 #: ../src/guestfs-actions.pod:4917 ../fish/guestfish-actions.pod:3293
12305 msgid ""
12306 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12307 "it."
12308 msgstr ""
12309
12310 # type: textblock
12311 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3296
12312 msgid ""
12313 "The implementation uses the C<pvremove> command which refuses to wipe "
12314 "physical volumes that contain any volume groups, so you have to remove those "
12315 "first."
12316 msgstr ""
12317
12318 # type: =head2
12319 #: ../src/guestfs-actions.pod:4928
12320 msgid "guestfs_pvresize"
12321 msgstr ""
12322
12323 # type: verbatim
12324 #: ../src/guestfs-actions.pod:4930
12325 #, no-wrap
12326 msgid ""
12327 " int\n"
12328 " guestfs_pvresize (guestfs_h *g,\n"
12329 "                   const char *device);\n"
12330 "\n"
12331 msgstr ""
12332
12333 # type: textblock
12334 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3304
12335 msgid ""
12336 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12337 "the new size of the underlying device."
12338 msgstr ""
12339
12340 # type: =head2
12341 #: ../src/guestfs-actions.pod:4941
12342 msgid "guestfs_pvresize_size"
12343 msgstr ""
12344
12345 # type: verbatim
12346 #: ../src/guestfs-actions.pod:4943
12347 #, no-wrap
12348 msgid ""
12349 " int\n"
12350 " guestfs_pvresize_size (guestfs_h *g,\n"
12351 "                        const char *device,\n"
12352 "                        int64_t size);\n"
12353 "\n"
12354 msgstr ""
12355
12356 # type: textblock
12357 #: ../src/guestfs-actions.pod:4948
12358 msgid ""
12359 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12360 "specify the new size (in bytes) explicitly."
12361 msgstr ""
12362
12363 # type: =head2
12364 #: ../src/guestfs-actions.pod:4955
12365 msgid "guestfs_pvs"
12366 msgstr ""
12367
12368 # type: verbatim
12369 #: ../src/guestfs-actions.pod:4957
12370 #, no-wrap
12371 msgid ""
12372 " char **\n"
12373 " guestfs_pvs (guestfs_h *g);\n"
12374 "\n"
12375 msgstr ""
12376
12377 # type: textblock
12378 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3318
12379 msgid ""
12380 "List all the physical volumes detected.  This is the equivalent of the "
12381 "L<pvs(8)> command."
12382 msgstr ""
12383
12384 # type: textblock
12385 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3321
12386 msgid ""
12387 "This returns a list of just the device names that contain PVs "
12388 "(eg. C</dev/sda2>)."
12389 msgstr ""
12390
12391 # type: textblock
12392 #: ../src/guestfs-actions.pod:4966
12393 msgid "See also C<guestfs_pvs_full>."
12394 msgstr ""
12395
12396 # type: =head2
12397 #: ../src/guestfs-actions.pod:4974
12398 msgid "guestfs_pvs_full"
12399 msgstr ""
12400
12401 # type: verbatim
12402 #: ../src/guestfs-actions.pod:4976
12403 #, no-wrap
12404 msgid ""
12405 " struct guestfs_lvm_pv_list *\n"
12406 " guestfs_pvs_full (guestfs_h *g);\n"
12407 "\n"
12408 msgstr ""
12409
12410 # type: textblock
12411 #: ../src/guestfs-actions.pod:4979 ../fish/guestfish-actions.pod:3330
12412 msgid ""
12413 "List all the physical volumes detected.  This is the equivalent of the "
12414 "L<pvs(8)> command.  The \"full\" version includes all fields."
12415 msgstr ""
12416
12417 # type: textblock
12418 #: ../src/guestfs-actions.pod:4982
12419 msgid ""
12420 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12421 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
12422 "use>."
12423 msgstr ""
12424
12425 # type: =head2
12426 #: ../src/guestfs-actions.pod:4988
12427 msgid "guestfs_pvuuid"
12428 msgstr ""
12429
12430 # type: verbatim
12431 #: ../src/guestfs-actions.pod:4990
12432 #, no-wrap
12433 msgid ""
12434 " char *\n"
12435 " guestfs_pvuuid (guestfs_h *g,\n"
12436 "                 const char *device);\n"
12437 "\n"
12438 msgstr ""
12439
12440 # type: textblock
12441 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3337
12442 msgid "This command returns the UUID of the LVM PV C<device>."
12443 msgstr ""
12444
12445 # type: =head2
12446 #: ../src/guestfs-actions.pod:5001
12447 msgid "guestfs_pwrite"
12448 msgstr ""
12449
12450 # type: verbatim
12451 #: ../src/guestfs-actions.pod:5003
12452 #, no-wrap
12453 msgid ""
12454 " int\n"
12455 " guestfs_pwrite (guestfs_h *g,\n"
12456 "                 const char *path,\n"
12457 "                 const char *content,\n"
12458 "                 size_t content_size,\n"
12459 "                 int64_t offset);\n"
12460 "\n"
12461 msgstr ""
12462
12463 # type: textblock
12464 #: ../src/guestfs-actions.pod:5010 ../fish/guestfish-actions.pod:3343
12465 msgid ""
12466 "This command writes to part of a file.  It writes the data buffer C<content> "
12467 "to the file C<path> starting at offset C<offset>."
12468 msgstr ""
12469
12470 # type: textblock
12471 #: ../src/guestfs-actions.pod:5013 ../fish/guestfish-actions.pod:3346
12472 msgid ""
12473 "This command implements the L<pwrite(2)> system call, and like that system "
12474 "call it may not write the full data requested.  The return value is the "
12475 "number of bytes that were actually written to the file.  This could even be "
12476 "0, although short writes are unlikely for regular files in ordinary "
12477 "circumstances."
12478 msgstr ""
12479
12480 # type: textblock
12481 #: ../src/guestfs-actions.pod:5019
12482 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12483 msgstr ""
12484
12485 # type: =head2
12486 #: ../src/guestfs-actions.pod:5028
12487 msgid "guestfs_pwrite_device"
12488 msgstr ""
12489
12490 # type: verbatim
12491 #: ../src/guestfs-actions.pod:5030
12492 #, no-wrap
12493 msgid ""
12494 " int\n"
12495 " guestfs_pwrite_device (guestfs_h *g,\n"
12496 "                        const char *device,\n"
12497 "                        const char *content,\n"
12498 "                        size_t content_size,\n"
12499 "                        int64_t offset);\n"
12500 "\n"
12501 msgstr ""
12502
12503 # type: textblock
12504 #: ../src/guestfs-actions.pod:5037 ../fish/guestfish-actions.pod:3361
12505 msgid ""
12506 "This command writes to part of a device.  It writes the data buffer "
12507 "C<content> to C<device> starting at offset C<offset>."
12508 msgstr ""
12509
12510 # type: textblock
12511 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3364
12512 msgid ""
12513 "This command implements the L<pwrite(2)> system call, and like that system "
12514 "call it may not write the full data requested (although short writes to disk "
12515 "devices and partitions are probably impossible with standard Linux kernels)."
12516 msgstr ""
12517
12518 # type: textblock
12519 #: ../src/guestfs-actions.pod:5045
12520 msgid "See also C<guestfs_pwrite>."
12521 msgstr ""
12522
12523 # type: textblock
12524 #: ../src/guestfs-actions.pod:5052
12525 msgid "(Added in 1.5.20)"
12526 msgstr ""
12527
12528 # type: =head2
12529 #: ../src/guestfs-actions.pod:5054
12530 msgid "guestfs_read_file"
12531 msgstr ""
12532
12533 # type: verbatim
12534 #: ../src/guestfs-actions.pod:5056
12535 #, no-wrap
12536 msgid ""
12537 " char *\n"
12538 " guestfs_read_file (guestfs_h *g,\n"
12539 "                    const char *path,\n"
12540 "                    size_t *size_r);\n"
12541 "\n"
12542 msgstr ""
12543
12544 # type: textblock
12545 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3378
12546 msgid "This calls returns the contents of the file C<path> as a buffer."
12547 msgstr ""
12548
12549 # type: textblock
12550 #: ../src/guestfs-actions.pod:5064
12551 msgid ""
12552 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12553 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12554 "function is limited in the total size of file that can be handled."
12555 msgstr ""
12556
12557 # type: textblock
12558 #: ../src/guestfs-actions.pod:5076
12559 msgid "(Added in 1.0.63)"
12560 msgstr ""
12561
12562 # type: =head2
12563 #: ../src/guestfs-actions.pod:5078
12564 msgid "guestfs_read_lines"
12565 msgstr ""
12566
12567 # type: verbatim
12568 #: ../src/guestfs-actions.pod:5080
12569 #, no-wrap
12570 msgid ""
12571 " char **\n"
12572 " guestfs_read_lines (guestfs_h *g,\n"
12573 "                     const char *path);\n"
12574 "\n"
12575 msgstr ""
12576
12577 # type: textblock
12578 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3395
12579 msgid ""
12580 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12581 "C<CRLF> character sequences are I<not> returned."
12582 msgstr ""
12583
12584 # type: textblock
12585 #: ../src/guestfs-actions.pod:5089
12586 msgid ""
12587 "Note that this function cannot correctly handle binary files (specifically, "
12588 "files containing C<\\0> character which is treated as end of line).  For "
12589 "those you need to use the C<guestfs_read_file> function which has a more "
12590 "complex interface."
12591 msgstr ""
12592
12593 # type: =head2
12594 #: ../src/guestfs-actions.pod:5100
12595 msgid "guestfs_readdir"
12596 msgstr ""
12597
12598 # type: verbatim
12599 #: ../src/guestfs-actions.pod:5102
12600 #, no-wrap
12601 msgid ""
12602 " struct guestfs_dirent_list *\n"
12603 " guestfs_readdir (guestfs_h *g,\n"
12604 "                  const char *dir);\n"
12605 "\n"
12606 msgstr ""
12607
12608 # type: textblock
12609 #: ../src/guestfs-actions.pod:5106 ../fish/guestfish-actions.pod:3407
12610 msgid "This returns the list of directory entries in directory C<dir>."
12611 msgstr ""
12612
12613 # type: textblock
12614 #: ../src/guestfs-actions.pod:5108 ../fish/guestfish-actions.pod:3409
12615 msgid ""
12616 "All entries in the directory are returned, including C<.> and C<..>.  The "
12617 "entries are I<not> sorted, but returned in the same order as the underlying "
12618 "filesystem."
12619 msgstr ""
12620
12621 # type: textblock
12622 #: ../src/guestfs-actions.pod:5112 ../fish/guestfish-actions.pod:3413
12623 msgid ""
12624 "Also this call returns basic file type information about each file.  The "
12625 "C<ftyp> field will contain one of the following characters:"
12626 msgstr ""
12627
12628 # type: =item
12629 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3418
12630 msgid "'b'"
12631 msgstr ""
12632
12633 # type: textblock
12634 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3420
12635 msgid "Block special"
12636 msgstr ""
12637
12638 # type: =item
12639 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3422
12640 msgid "'c'"
12641 msgstr ""
12642
12643 # type: textblock
12644 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3424
12645 msgid "Char special"
12646 msgstr ""
12647
12648 # type: =item
12649 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3426
12650 msgid "'d'"
12651 msgstr ""
12652
12653 # type: textblock
12654 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3428
12655 msgid "Directory"
12656 msgstr ""
12657
12658 # type: =item
12659 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3430
12660 msgid "'f'"
12661 msgstr ""
12662
12663 # type: textblock
12664 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3432
12665 msgid "FIFO (named pipe)"
12666 msgstr ""
12667
12668 # type: =item
12669 #: ../src/guestfs-actions.pod:5133 ../fish/guestfish-actions.pod:3434
12670 msgid "'l'"
12671 msgstr ""
12672
12673 # type: textblock
12674 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3436
12675 msgid "Symbolic link"
12676 msgstr ""
12677
12678 # type: =item
12679 #: ../src/guestfs-actions.pod:5137 ../fish/guestfish-actions.pod:3438
12680 msgid "'r'"
12681 msgstr ""
12682
12683 # type: textblock
12684 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3440
12685 msgid "Regular file"
12686 msgstr ""
12687
12688 # type: =item
12689 #: ../src/guestfs-actions.pod:5141 ../fish/guestfish-actions.pod:3442
12690 msgid "'s'"
12691 msgstr ""
12692
12693 # type: textblock
12694 #: ../src/guestfs-actions.pod:5143 ../fish/guestfish-actions.pod:3444
12695 msgid "Socket"
12696 msgstr ""
12697
12698 # type: =item
12699 #: ../src/guestfs-actions.pod:5145 ../fish/guestfish-actions.pod:3446
12700 msgid "'u'"
12701 msgstr ""
12702
12703 # type: textblock
12704 #: ../src/guestfs-actions.pod:5147 ../fish/guestfish-actions.pod:3448
12705 msgid "Unknown file type"
12706 msgstr ""
12707
12708 # type: =item
12709 #: ../src/guestfs-actions.pod:5149 ../fish/guestfish-actions.pod:3450
12710 msgid "'?'"
12711 msgstr ""
12712
12713 # type: textblock
12714 #: ../src/guestfs-actions.pod:5151 ../fish/guestfish-actions.pod:3452
12715 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12716 msgstr ""
12717
12718 # type: textblock
12719 #: ../src/guestfs-actions.pod:5156
12720 msgid ""
12721 "This function is primarily intended for use by programs.  To get a simple "
12722 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12723 "consumption, use C<guestfs_ll>."
12724 msgstr ""
12725
12726 # type: textblock
12727 #: ../src/guestfs-actions.pod:5160
12728 msgid ""
12729 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12730 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
12731 "use>."
12732 msgstr ""
12733
12734 # type: =head2
12735 #: ../src/guestfs-actions.pod:5166
12736 msgid "guestfs_readlink"
12737 msgstr ""
12738
12739 # type: verbatim
12740 #: ../src/guestfs-actions.pod:5168
12741 #, no-wrap
12742 msgid ""
12743 " char *\n"
12744 " guestfs_readlink (guestfs_h *g,\n"
12745 "                   const char *path);\n"
12746 "\n"
12747 msgstr ""
12748
12749 # type: textblock
12750 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3465
12751 msgid "This command reads the target of a symbolic link."
12752 msgstr ""
12753
12754 # type: =head2
12755 #: ../src/guestfs-actions.pod:5179
12756 msgid "guestfs_readlinklist"
12757 msgstr ""
12758
12759 # type: verbatim
12760 #: ../src/guestfs-actions.pod:5181
12761 #, no-wrap
12762 msgid ""
12763 " char **\n"
12764 " guestfs_readlinklist (guestfs_h *g,\n"
12765 "                       const char *path,\n"
12766 "                       char *const *names);\n"
12767 "\n"
12768 msgstr ""
12769
12770 # type: textblock
12771 #: ../src/guestfs-actions.pod:5186 ../fish/guestfish-actions.pod:3471
12772 msgid ""
12773 "This call allows you to do a C<readlink> operation on multiple files, where "
12774 "all files are in the directory C<path>.  C<names> is the list of files from "
12775 "this directory."
12776 msgstr ""
12777
12778 # type: textblock
12779 #: ../src/guestfs-actions.pod:5190 ../fish/guestfish-actions.pod:3475
12780 msgid ""
12781 "On return you get a list of strings, with a one-to-one correspondence to the "
12782 "C<names> list.  Each string is the value of the symbolic link."
12783 msgstr ""
12784
12785 # type: textblock
12786 #: ../src/guestfs-actions.pod:5194 ../fish/guestfish-actions.pod:3479
12787 msgid ""
12788 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12789 "result string is the empty string C<\"\">.  However the whole operation is "
12790 "completed even if there were C<readlink(2)> errors, and so you can call this "
12791 "function with names where you don't know if they are symbolic links already "
12792 "(albeit slightly less efficient)."
12793 msgstr ""
12794
12795 # type: textblock
12796 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3486
12797 msgid ""
12798 "This call is intended for programs that want to efficiently list a directory "
12799 "contents without making many round-trips.  Very long directory listings "
12800 "might cause the protocol message size to be exceeded, causing this call to "
12801 "fail.  The caller must split up such requests into smaller groups of names."
12802 msgstr ""
12803
12804 # type: =head2
12805 #: ../src/guestfs-actions.pod:5214
12806 msgid "guestfs_realpath"
12807 msgstr ""
12808
12809 # type: verbatim
12810 #: ../src/guestfs-actions.pod:5216
12811 #, no-wrap
12812 msgid ""
12813 " char *\n"
12814 " guestfs_realpath (guestfs_h *g,\n"
12815 "                   const char *path);\n"
12816 "\n"
12817 msgstr ""
12818
12819 # type: textblock
12820 #: ../src/guestfs-actions.pod:5220 ../fish/guestfish-actions.pod:3497
12821 msgid ""
12822 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12823 "has no C<.>, C<..> or symbolic link path elements."
12824 msgstr ""
12825
12826 # type: =head2
12827 #: ../src/guestfs-actions.pod:5228
12828 msgid "guestfs_removexattr"
12829 msgstr ""
12830
12831 # type: verbatim
12832 #: ../src/guestfs-actions.pod:5230
12833 #, no-wrap
12834 msgid ""
12835 " int\n"
12836 " guestfs_removexattr (guestfs_h *g,\n"
12837 "                      const char *xattr,\n"
12838 "                      const char *path);\n"
12839 "\n"
12840 msgstr ""
12841
12842 # type: textblock
12843 #: ../src/guestfs-actions.pod:5235 ../fish/guestfish-actions.pod:3504
12844 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12845 msgstr ""
12846
12847 # type: textblock
12848 #: ../src/guestfs-actions.pod:5238
12849 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12850 msgstr ""
12851
12852 # type: =head2
12853 #: ../src/guestfs-actions.pod:5244
12854 msgid "guestfs_resize2fs"
12855 msgstr ""
12856
12857 # type: verbatim
12858 #: ../src/guestfs-actions.pod:5246
12859 #, no-wrap
12860 msgid ""
12861 " int\n"
12862 " guestfs_resize2fs (guestfs_h *g,\n"
12863 "                    const char *device);\n"
12864 "\n"
12865 msgstr ""
12866
12867 # type: textblock
12868 #: ../src/guestfs-actions.pod:5250 ../fish/guestfish-actions.pod:3513
12869 msgid ""
12870 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12871 "underlying device."
12872 msgstr ""
12873
12874 # type: textblock
12875 #: ../src/guestfs-actions.pod:5253
12876 msgid ""
12877 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12878 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12879 "sometimes gives an error about this and sometimes not.  In any case, it is "
12880 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12881 msgstr ""
12882
12883 # type: =head2
12884 #: ../src/guestfs-actions.pod:5263
12885 msgid "guestfs_resize2fs_size"
12886 msgstr ""
12887
12888 # type: verbatim
12889 #: ../src/guestfs-actions.pod:5265
12890 #, no-wrap
12891 msgid ""
12892 " int\n"
12893 " guestfs_resize2fs_size (guestfs_h *g,\n"
12894 "                         const char *device,\n"
12895 "                         int64_t size);\n"
12896 "\n"
12897 msgstr ""
12898
12899 # type: textblock
12900 #: ../src/guestfs-actions.pod:5270
12901 msgid ""
12902 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12903 "to specify the new size (in bytes) explicitly."
12904 msgstr ""
12905
12906 # type: =head2
12907 #: ../src/guestfs-actions.pod:5277
12908 msgid "guestfs_rm"
12909 msgstr ""
12910
12911 # type: verbatim
12912 #: ../src/guestfs-actions.pod:5279
12913 #, no-wrap
12914 msgid ""
12915 " int\n"
12916 " guestfs_rm (guestfs_h *g,\n"
12917 "             const char *path);\n"
12918 "\n"
12919 msgstr ""
12920
12921 # type: textblock
12922 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3533
12923 msgid "Remove the single file C<path>."
12924 msgstr ""
12925
12926 # type: =head2
12927 #: ../src/guestfs-actions.pod:5289
12928 msgid "guestfs_rm_rf"
12929 msgstr ""
12930
12931 # type: verbatim
12932 #: ../src/guestfs-actions.pod:5291
12933 #, no-wrap
12934 msgid ""
12935 " int\n"
12936 " guestfs_rm_rf (guestfs_h *g,\n"
12937 "                const char *path);\n"
12938 "\n"
12939 msgstr ""
12940
12941 # type: textblock
12942 #: ../src/guestfs-actions.pod:5295 ../fish/guestfish-actions.pod:3539
12943 msgid ""
12944 "Remove the file or directory C<path>, recursively removing the contents if "
12945 "its a directory.  This is like the C<rm -rf> shell command."
12946 msgstr ""
12947
12948 # type: =head2
12949 #: ../src/guestfs-actions.pod:5303
12950 msgid "guestfs_rmdir"
12951 msgstr ""
12952
12953 # type: verbatim
12954 #: ../src/guestfs-actions.pod:5305
12955 #, no-wrap
12956 msgid ""
12957 " int\n"
12958 " guestfs_rmdir (guestfs_h *g,\n"
12959 "                const char *path);\n"
12960 "\n"
12961 msgstr ""
12962
12963 # type: textblock
12964 #: ../src/guestfs-actions.pod:5309 ../fish/guestfish-actions.pod:3547
12965 msgid "Remove the single directory C<path>."
12966 msgstr ""
12967
12968 # type: =head2
12969 #: ../src/guestfs-actions.pod:5315
12970 msgid "guestfs_rmmountpoint"
12971 msgstr ""
12972
12973 # type: verbatim
12974 #: ../src/guestfs-actions.pod:5317
12975 #, no-wrap
12976 msgid ""
12977 " int\n"
12978 " guestfs_rmmountpoint (guestfs_h *g,\n"
12979 "                       const char *exemptpath);\n"
12980 "\n"
12981 msgstr ""
12982
12983 # type: textblock
12984 #: ../src/guestfs-actions.pod:5321
12985 msgid ""
12986 "This calls removes a mountpoint that was previously created with "
12987 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
12988 msgstr ""
12989
12990 # type: =head2
12991 #: ../src/guestfs-actions.pod:5329
12992 msgid "guestfs_scrub_device"
12993 msgstr ""
12994
12995 # type: verbatim
12996 #: ../src/guestfs-actions.pod:5331
12997 #, no-wrap
12998 msgid ""
12999 " int\n"
13000 " guestfs_scrub_device (guestfs_h *g,\n"
13001 "                       const char *device);\n"
13002 "\n"
13003 msgstr ""
13004
13005 # type: textblock
13006 #: ../src/guestfs-actions.pod:5335 ../fish/guestfish-actions.pod:3561
13007 msgid ""
13008 "This command writes patterns over C<device> to make data retrieval more "
13009 "difficult."
13010 msgstr ""
13011
13012 # type: textblock
13013 #: ../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
13014 msgid ""
13015 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13016 "more details."
13017 msgstr ""
13018
13019 # type: textblock
13020 #: ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5383
13021 msgid "(Added in 1.0.52)"
13022 msgstr ""
13023
13024 # type: =head2
13025 #: ../src/guestfs-actions.pod:5348
13026 msgid "guestfs_scrub_file"
13027 msgstr ""
13028
13029 # type: verbatim
13030 #: ../src/guestfs-actions.pod:5350
13031 #, no-wrap
13032 msgid ""
13033 " int\n"
13034 " guestfs_scrub_file (guestfs_h *g,\n"
13035 "                     const char *file);\n"
13036 "\n"
13037 msgstr ""
13038
13039 # type: textblock
13040 #: ../src/guestfs-actions.pod:5354 ../fish/guestfish-actions.pod:3574
13041 msgid ""
13042 "This command writes patterns over a file to make data retrieval more "
13043 "difficult."
13044 msgstr ""
13045
13046 # type: textblock
13047 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3577
13048 msgid "The file is I<removed> after scrubbing."
13049 msgstr ""
13050
13051 # type: =head2
13052 #: ../src/guestfs-actions.pod:5366
13053 msgid "guestfs_scrub_freespace"
13054 msgstr ""
13055
13056 # type: verbatim
13057 #: ../src/guestfs-actions.pod:5368
13058 #, no-wrap
13059 msgid ""
13060 " int\n"
13061 " guestfs_scrub_freespace (guestfs_h *g,\n"
13062 "                          const char *dir);\n"
13063 "\n"
13064 msgstr ""
13065
13066 # type: textblock
13067 #: ../src/guestfs-actions.pod:5372
13068 msgid ""
13069 "This command creates the directory C<dir> and then fills it with files until "
13070 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13071 "and deletes them.  The intention is to scrub any free space on the partition "
13072 "containing C<dir>."
13073 msgstr ""
13074
13075 # type: =head2
13076 #: ../src/guestfs-actions.pod:5385
13077 msgid "guestfs_set_append"
13078 msgstr ""
13079
13080 # type: verbatim
13081 #: ../src/guestfs-actions.pod:5387
13082 #, no-wrap
13083 msgid ""
13084 " int\n"
13085 " guestfs_set_append (guestfs_h *g,\n"
13086 "                     const char *append);\n"
13087 "\n"
13088 msgstr ""
13089
13090 # type: textblock
13091 #: ../src/guestfs-actions.pod:5391 ../fish/guestfish-actions.pod:3601
13092 msgid ""
13093 "This function is used to add additional options to the guest kernel command "
13094 "line."
13095 msgstr ""
13096
13097 # type: textblock
13098 #: ../src/guestfs-actions.pod:5394 ../fish/guestfish-actions.pod:3604
13099 msgid ""
13100 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13101 "environment variable."
13102 msgstr ""
13103
13104 # type: textblock
13105 #: ../src/guestfs-actions.pod:5397 ../fish/guestfish-actions.pod:3607
13106 msgid ""
13107 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13108 "(libguestfs always adds a few of its own)."
13109 msgstr ""
13110
13111 # type: =head2
13112 #: ../src/guestfs-actions.pod:5404
13113 msgid "guestfs_set_autosync"
13114 msgstr ""
13115
13116 # type: verbatim
13117 #: ../src/guestfs-actions.pod:5406
13118 #, no-wrap
13119 msgid ""
13120 " int\n"
13121 " guestfs_set_autosync (guestfs_h *g,\n"
13122 "                       int autosync);\n"
13123 "\n"
13124 msgstr ""
13125
13126 # type: textblock
13127 #: ../src/guestfs-actions.pod:5410
13128 msgid ""
13129 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13130 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13131 "the handle is closed (also if the program exits without closing handles)."
13132 msgstr ""
13133
13134 # type: textblock
13135 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:3621
13136 msgid ""
13137 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13138 "disabled by default)."
13139 msgstr ""
13140
13141 # type: =head2
13142 #: ../src/guestfs-actions.pod:5422
13143 msgid "guestfs_set_direct"
13144 msgstr ""
13145
13146 # type: verbatim
13147 #: ../src/guestfs-actions.pod:5424
13148 #, no-wrap
13149 msgid ""
13150 " int\n"
13151 " guestfs_set_direct (guestfs_h *g,\n"
13152 "                     int direct);\n"
13153 "\n"
13154 msgstr ""
13155
13156 # type: textblock
13157 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3630
13158 msgid ""
13159 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13160 "passed directly through to the appliance once it is launched."
13161 msgstr ""
13162
13163 # type: textblock
13164 #: ../src/guestfs-actions.pod:5432
13165 msgid ""
13166 "One consequence of this is that log messages aren't caught by the library "
13167 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13168 "stdout."
13169 msgstr ""
13170
13171 # type: textblock
13172 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3638
13173 msgid "You probably don't want to use this unless you know what you are doing."
13174 msgstr ""
13175
13176 # type: textblock
13177 #: ../src/guestfs-actions.pod:5439 ../fish/guestfish-actions.pod:3641
13178 msgid "The default is disabled."
13179 msgstr ""
13180
13181 # type: =head2
13182 #: ../src/guestfs-actions.pod:5445
13183 msgid "guestfs_set_e2label"
13184 msgstr ""
13185
13186 # type: verbatim
13187 #: ../src/guestfs-actions.pod:5447
13188 #, no-wrap
13189 msgid ""
13190 " int\n"
13191 " guestfs_set_e2label (guestfs_h *g,\n"
13192 "                      const char *device,\n"
13193 "                      const char *label);\n"
13194 "\n"
13195 msgstr ""
13196
13197 # type: textblock
13198 #: ../src/guestfs-actions.pod:5452 ../fish/guestfish-actions.pod:3647
13199 msgid ""
13200 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13201 "C<label>.  Filesystem labels are limited to 16 characters."
13202 msgstr ""
13203
13204 # type: textblock
13205 #: ../src/guestfs-actions.pod:5456
13206 msgid ""
13207 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13208 "the existing label on a filesystem."
13209 msgstr ""
13210
13211 # type: =head2
13212 #: ../src/guestfs-actions.pod:5463
13213 msgid "guestfs_set_e2uuid"
13214 msgstr ""
13215
13216 # type: verbatim
13217 #: ../src/guestfs-actions.pod:5465
13218 #, no-wrap
13219 msgid ""
13220 " int\n"
13221 " guestfs_set_e2uuid (guestfs_h *g,\n"
13222 "                     const char *device,\n"
13223 "                     const char *uuid);\n"
13224 "\n"
13225 msgstr ""
13226
13227 # type: textblock
13228 #: ../src/guestfs-actions.pod:5470 ../fish/guestfish-actions.pod:3658
13229 msgid ""
13230 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13231 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13232 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13233 msgstr ""
13234
13235 # type: textblock
13236 #: ../src/guestfs-actions.pod:5475
13237 msgid ""
13238 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13239 "the existing UUID of a filesystem."
13240 msgstr ""
13241
13242 # type: =head2
13243 #: ../src/guestfs-actions.pod:5482
13244 msgid "guestfs_set_memsize"
13245 msgstr ""
13246
13247 # type: verbatim
13248 #: ../src/guestfs-actions.pod:5484
13249 #, no-wrap
13250 msgid ""
13251 " int\n"
13252 " guestfs_set_memsize (guestfs_h *g,\n"
13253 "                      int memsize);\n"
13254 "\n"
13255 msgstr ""
13256
13257 # type: textblock
13258 #: ../src/guestfs-actions.pod:5488
13259 msgid ""
13260 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13261 "This only has any effect if called before C<guestfs_launch>."
13262 msgstr ""
13263
13264 # type: textblock
13265 #: ../src/guestfs-actions.pod:5492 ../fish/guestfish-actions.pod:3676
13266 msgid ""
13267 "You can also change this by setting the environment variable "
13268 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13269 msgstr ""
13270
13271 # type: =head2
13272 #: ../src/guestfs-actions.pod:5503
13273 msgid "guestfs_set_network"
13274 msgstr ""
13275
13276 # type: verbatim
13277 #: ../src/guestfs-actions.pod:5505
13278 #, no-wrap
13279 msgid ""
13280 " int\n"
13281 " guestfs_set_network (guestfs_h *g,\n"
13282 "                      int network);\n"
13283 "\n"
13284 msgstr ""
13285
13286 # type: textblock
13287 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3689
13288 msgid ""
13289 "If C<network> is true, then the network is enabled in the libguestfs "
13290 "appliance.  The default is false."
13291 msgstr ""
13292
13293 # type: textblock
13294 #: ../src/guestfs-actions.pod:5512 ../fish/guestfish-actions.pod:3692
13295 msgid ""
13296 "This affects whether commands are able to access the network (see "
13297 "L<guestfs(3)/RUNNING COMMANDS>)."
13298 msgstr ""
13299
13300 # type: textblock
13301 #: ../src/guestfs-actions.pod:5515
13302 msgid ""
13303 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13304 "effect."
13305 msgstr ""
13306
13307 # type: =head2
13308 #: ../src/guestfs-actions.pod:5522
13309 msgid "guestfs_set_path"
13310 msgstr ""
13311
13312 # type: verbatim
13313 #: ../src/guestfs-actions.pod:5524
13314 #, no-wrap
13315 msgid ""
13316 " int\n"
13317 " guestfs_set_path (guestfs_h *g,\n"
13318 "                   const char *searchpath);\n"
13319 "\n"
13320 msgstr ""
13321
13322 # type: textblock
13323 #: ../src/guestfs-actions.pod:5528 ../fish/guestfish-actions.pod:3704
13324 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13325 msgstr ""
13326
13327 # type: textblock
13328 #: ../src/guestfs-actions.pod:5530 ../fish/guestfish-actions.pod:3706
13329 msgid ""
13330 "The default is C<$libdir/guestfs> unless overridden by setting "
13331 "C<LIBGUESTFS_PATH> environment variable."
13332 msgstr ""
13333
13334 # type: textblock
13335 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3709
13336 msgid "Setting C<path> to C<NULL> restores the default path."
13337 msgstr ""
13338
13339 # type: =head2
13340 #: ../src/guestfs-actions.pod:5539
13341 msgid "guestfs_set_qemu"
13342 msgstr ""
13343
13344 # type: verbatim
13345 #: ../src/guestfs-actions.pod:5541
13346 #, no-wrap
13347 msgid ""
13348 " int\n"
13349 " guestfs_set_qemu (guestfs_h *g,\n"
13350 "                   const char *qemu);\n"
13351 "\n"
13352 msgstr ""
13353
13354 # type: textblock
13355 #: ../src/guestfs-actions.pod:5545 ../fish/guestfish-actions.pod:3717
13356 msgid "Set the qemu binary that we will use."
13357 msgstr ""
13358
13359 # type: textblock
13360 #: ../src/guestfs-actions.pod:5547 ../fish/guestfish-actions.pod:3719
13361 msgid "The default is chosen when the library was compiled by the configure script."
13362 msgstr ""
13363
13364 # type: textblock
13365 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:3722
13366 msgid ""
13367 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13368 "variable."
13369 msgstr ""
13370
13371 # type: textblock
13372 #: ../src/guestfs-actions.pod:5553 ../fish/guestfish-actions.pod:3725
13373 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13374 msgstr ""
13375
13376 # type: textblock
13377 #: ../src/guestfs-actions.pod:5555 ../fish/guestfish-actions.pod:3727
13378 msgid ""
13379 "Note that you should call this function as early as possible after creating "
13380 "the handle.  This is because some pre-launch operations depend on testing "
13381 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13382 "don't retest features, and so you might see inconsistent results.  Using the "
13383 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13384 "the qemu binary at the same time as the handle is created."
13385 msgstr ""
13386
13387 # type: =head2
13388 #: ../src/guestfs-actions.pod:5567
13389 msgid "guestfs_set_recovery_proc"
13390 msgstr ""
13391
13392 # type: verbatim
13393 #: ../src/guestfs-actions.pod:5569
13394 #, no-wrap
13395 msgid ""
13396 " int\n"
13397 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13398 "                            int recoveryproc);\n"
13399 "\n"
13400 msgstr ""
13401
13402 # type: textblock
13403 #: ../src/guestfs-actions.pod:5573
13404 msgid ""
13405 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13406 "not create a recovery process.  The purpose of the recovery process is to "
13407 "stop runaway qemu processes in the case where the main program aborts "
13408 "abruptly."
13409 msgstr ""
13410
13411 # type: textblock
13412 #: ../src/guestfs-actions.pod:5578
13413 msgid ""
13414 "This only has any effect if called before C<guestfs_launch>, and the default "
13415 "is true."
13416 msgstr ""
13417
13418 # type: textblock
13419 #: ../src/guestfs-actions.pod:5581 ../fish/guestfish-actions.pod:3749
13420 msgid ""
13421 "About the only time when you would want to disable this is if the main "
13422 "process will fork itself into the background (\"daemonize\" itself).  In "
13423 "this case the recovery process thinks that the main program has disappeared "
13424 "and so kills qemu, which is not very helpful."
13425 msgstr ""
13426
13427 # type: =head2
13428 #: ../src/guestfs-actions.pod:5591
13429 msgid "guestfs_set_selinux"
13430 msgstr ""
13431
13432 # type: verbatim
13433 #: ../src/guestfs-actions.pod:5593
13434 #, no-wrap
13435 msgid ""
13436 " int\n"
13437 " guestfs_set_selinux (guestfs_h *g,\n"
13438 "                      int selinux);\n"
13439 "\n"
13440 msgstr ""
13441
13442 # type: textblock
13443 #: ../src/guestfs-actions.pod:5597 ../fish/guestfish-actions.pod:3761
13444 msgid ""
13445 "This sets the selinux flag that is passed to the appliance at boot time.  "
13446 "The default is C<selinux=0> (disabled)."
13447 msgstr ""
13448
13449 # type: textblock
13450 #: ../src/guestfs-actions.pod:5600 ../fish/guestfish-actions.pod:3764
13451 msgid ""
13452 "Note that if SELinux is enabled, it is always in Permissive mode "
13453 "(C<enforcing=0>)."
13454 msgstr ""
13455
13456 # type: =head2
13457 #: ../src/guestfs-actions.pod:5610
13458 msgid "guestfs_set_trace"
13459 msgstr ""
13460
13461 # type: verbatim
13462 #: ../src/guestfs-actions.pod:5612
13463 #, no-wrap
13464 msgid ""
13465 " int\n"
13466 " guestfs_set_trace (guestfs_h *g,\n"
13467 "                    int trace);\n"
13468 "\n"
13469 msgstr ""
13470
13471 # type: textblock
13472 #: ../src/guestfs-actions.pod:5616 ../fish/guestfish-actions.pod:3776
13473 msgid ""
13474 "If the command trace flag is set to 1, then commands are printed on stderr "
13475 "before they are executed in a format which is very similar to the one used "
13476 "by guestfish.  In other words, you can run a program with this enabled, and "
13477 "you will get out a script which you can feed to guestfish to perform the "
13478 "same set of actions."
13479 msgstr ""
13480
13481 # type: textblock
13482 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:3783
13483 msgid ""
13484 "If you want to trace C API calls into libguestfs (and other libraries) then "
13485 "possibly a better way is to use the external ltrace(1) command."
13486 msgstr ""
13487
13488 # type: textblock
13489 #: ../src/guestfs-actions.pod:5627 ../fish/guestfish-actions.pod:3787
13490 msgid ""
13491 "Command traces are disabled unless the environment variable "
13492 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13493 msgstr ""
13494
13495 # type: =head2
13496 #: ../src/guestfs-actions.pod:5634
13497 msgid "guestfs_set_verbose"
13498 msgstr ""
13499
13500 # type: verbatim
13501 #: ../src/guestfs-actions.pod:5636
13502 #, no-wrap
13503 msgid ""
13504 " int\n"
13505 " guestfs_set_verbose (guestfs_h *g,\n"
13506 "                      int verbose);\n"
13507 "\n"
13508 msgstr ""
13509
13510 # type: textblock
13511 #: ../src/guestfs-actions.pod:5640 ../fish/guestfish-actions.pod:3796
13512 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13513 msgstr ""
13514
13515 # type: textblock
13516 #: ../src/guestfs-actions.pod:5642 ../fish/guestfish-actions.pod:3798
13517 msgid ""
13518 "Verbose messages are disabled unless the environment variable "
13519 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13520 msgstr ""
13521
13522 # type: =head2
13523 #: ../src/guestfs-actions.pod:5649
13524 msgid "guestfs_setcon"
13525 msgstr ""
13526
13527 # type: verbatim
13528 #: ../src/guestfs-actions.pod:5651
13529 #, no-wrap
13530 msgid ""
13531 " int\n"
13532 " guestfs_setcon (guestfs_h *g,\n"
13533 "                 const char *context);\n"
13534 "\n"
13535 msgstr ""
13536
13537 # type: textblock
13538 #: ../src/guestfs-actions.pod:5655 ../fish/guestfish-actions.pod:3805
13539 msgid ""
13540 "This sets the SELinux security context of the daemon to the string "
13541 "C<context>."
13542 msgstr ""
13543
13544 # type: textblock
13545 #: ../src/guestfs-actions.pod:5658 ../fish/guestfish-actions.pod:3808
13546 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13547 msgstr ""
13548
13549 # type: =head2
13550 #: ../src/guestfs-actions.pod:5664
13551 msgid "guestfs_setxattr"
13552 msgstr ""
13553
13554 # type: verbatim
13555 #: ../src/guestfs-actions.pod:5666
13556 #, no-wrap
13557 msgid ""
13558 " int\n"
13559 " guestfs_setxattr (guestfs_h *g,\n"
13560 "                   const char *xattr,\n"
13561 "                   const char *val,\n"
13562 "                   int vallen,\n"
13563 "                   const char *path);\n"
13564 "\n"
13565 msgstr ""
13566
13567 # type: textblock
13568 #: ../src/guestfs-actions.pod:5673 ../fish/guestfish-actions.pod:3814
13569 msgid ""
13570 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13571 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13572 msgstr ""
13573
13574 # type: textblock
13575 #: ../src/guestfs-actions.pod:5677
13576 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13577 msgstr ""
13578
13579 # type: =head2
13580 #: ../src/guestfs-actions.pod:5683
13581 msgid "guestfs_sfdisk"
13582 msgstr ""
13583
13584 # type: verbatim
13585 #: ../src/guestfs-actions.pod:5685
13586 #, no-wrap
13587 msgid ""
13588 " int\n"
13589 " guestfs_sfdisk (guestfs_h *g,\n"
13590 "                 const char *device,\n"
13591 "                 int cyls,\n"
13592 "                 int heads,\n"
13593 "                 int sectors,\n"
13594 "                 char *const *lines);\n"
13595 "\n"
13596 msgstr ""
13597
13598 # type: textblock
13599 #: ../src/guestfs-actions.pod:5693 ../fish/guestfish-actions.pod:3824
13600 msgid ""
13601 "This is a direct interface to the L<sfdisk(8)> program for creating "
13602 "partitions on block devices."
13603 msgstr ""
13604
13605 # type: textblock
13606 #: ../src/guestfs-actions.pod:5696 ../fish/guestfish-actions.pod:3827
13607 msgid "C<device> should be a block device, for example C</dev/sda>."
13608 msgstr ""
13609
13610 # type: textblock
13611 #: ../src/guestfs-actions.pod:5698 ../fish/guestfish-actions.pod:3829
13612 msgid ""
13613 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13614 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13615 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13616 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13617 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13618 "the kernel) cannot work out the right geometry and you will need to tell it."
13619 msgstr ""
13620
13621 # type: textblock
13622 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3837
13623 msgid ""
13624 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13625 "refer to the L<sfdisk(8)> manpage."
13626 msgstr ""
13627
13628 # type: textblock
13629 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3840
13630 msgid ""
13631 "To create a single partition occupying the whole disk, you would pass "
13632 "C<lines> as a single element list, when the single element being the string "
13633 "C<,> (comma)."
13634 msgstr ""
13635
13636 # type: textblock
13637 #: ../src/guestfs-actions.pod:5713
13638 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13639 msgstr ""
13640
13641 # type: =head2
13642 #: ../src/guestfs-actions.pod:5723
13643 msgid "guestfs_sfdiskM"
13644 msgstr ""
13645
13646 # type: verbatim
13647 #: ../src/guestfs-actions.pod:5725
13648 #, no-wrap
13649 msgid ""
13650 " int\n"
13651 " guestfs_sfdiskM (guestfs_h *g,\n"
13652 "                  const char *device,\n"
13653 "                  char *const *lines);\n"
13654 "\n"
13655 msgstr ""
13656
13657 # type: textblock
13658 #: ../src/guestfs-actions.pod:5730
13659 msgid ""
13660 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13661 "partition sizes are specified in megabytes only (rounded to the nearest "
13662 "cylinder) and you don't need to specify the cyls, heads and sectors "
13663 "parameters which were rarely if ever used anyway."
13664 msgstr ""
13665
13666 # type: textblock
13667 #: ../src/guestfs-actions.pod:5736
13668 msgid ""
13669 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13670 "C<guestfs_part_disk>"
13671 msgstr ""
13672
13673 # type: =head2
13674 #: ../src/guestfs-actions.pod:5746
13675 msgid "guestfs_sfdisk_N"
13676 msgstr ""
13677
13678 # type: verbatim
13679 #: ../src/guestfs-actions.pod:5748
13680 #, no-wrap
13681 msgid ""
13682 " int\n"
13683 " guestfs_sfdisk_N (guestfs_h *g,\n"
13684 "                   const char *device,\n"
13685 "                   int partnum,\n"
13686 "                   int cyls,\n"
13687 "                   int heads,\n"
13688 "                   int sectors,\n"
13689 "                   const char *line);\n"
13690 "\n"
13691 msgstr ""
13692
13693 # type: textblock
13694 #: ../src/guestfs-actions.pod:5757 ../fish/guestfish-actions.pod:3870
13695 msgid ""
13696 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13697 "(note: C<n> counts from 1)."
13698 msgstr ""
13699
13700 # type: textblock
13701 #: ../src/guestfs-actions.pod:5760
13702 msgid ""
13703 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13704 "for the cyls/heads/sectors parameters."
13705 msgstr ""
13706
13707 # type: textblock
13708 #: ../src/guestfs-actions.pod:5763
13709 msgid "See also: C<guestfs_part_add>"
13710 msgstr ""
13711
13712 # type: =head2
13713 #: ../src/guestfs-actions.pod:5772
13714 msgid "guestfs_sfdisk_disk_geometry"
13715 msgstr ""
13716
13717 # type: verbatim
13718 #: ../src/guestfs-actions.pod:5774
13719 #, no-wrap
13720 msgid ""
13721 " char *\n"
13722 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13723 "                               const char *device);\n"
13724 "\n"
13725 msgstr ""
13726
13727 # type: textblock
13728 #: ../src/guestfs-actions.pod:5778
13729 msgid ""
13730 "This displays the disk geometry of C<device> read from the partition table.  "
13731 "Especially in the case where the underlying block device has been resized, "
13732 "this can be different from the kernel's idea of the geometry (see "
13733 "C<guestfs_sfdisk_kernel_geometry>)."
13734 msgstr ""
13735
13736 # type: textblock
13737 #: ../src/guestfs-actions.pod:5783 ../src/guestfs-actions.pod:5799 ../fish/guestfish-actions.pod:3890 ../fish/guestfish-actions.pod:3899
13738 msgid "The result is in human-readable format, and not designed to be parsed."
13739 msgstr ""
13740
13741 # type: =head2
13742 #: ../src/guestfs-actions.pod:5791
13743 msgid "guestfs_sfdisk_kernel_geometry"
13744 msgstr ""
13745
13746 # type: verbatim
13747 #: ../src/guestfs-actions.pod:5793
13748 #, no-wrap
13749 msgid ""
13750 " char *\n"
13751 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13752 "                                 const char *device);\n"
13753 "\n"
13754 msgstr ""
13755
13756 # type: textblock
13757 #: ../src/guestfs-actions.pod:5797 ../fish/guestfish-actions.pod:3897
13758 msgid "This displays the kernel's idea of the geometry of C<device>."
13759 msgstr ""
13760
13761 # type: =head2
13762 #: ../src/guestfs-actions.pod:5807
13763 msgid "guestfs_sfdisk_l"
13764 msgstr ""
13765
13766 # type: verbatim
13767 #: ../src/guestfs-actions.pod:5809
13768 #, no-wrap
13769 msgid ""
13770 " char *\n"
13771 " guestfs_sfdisk_l (guestfs_h *g,\n"
13772 "                   const char *device);\n"
13773 "\n"
13774 msgstr ""
13775
13776 # type: textblock
13777 #: ../src/guestfs-actions.pod:5813 ../fish/guestfish-actions.pod:3906
13778 msgid ""
13779 "This displays the partition table on C<device>, in the human-readable output "
13780 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13781 msgstr ""
13782
13783 # type: textblock
13784 #: ../src/guestfs-actions.pod:5817
13785 msgid "See also: C<guestfs_part_list>"
13786 msgstr ""
13787
13788 # type: =head2
13789 #: ../src/guestfs-actions.pod:5824
13790 msgid "guestfs_sh"
13791 msgstr ""
13792
13793 # type: verbatim
13794 #: ../src/guestfs-actions.pod:5826
13795 #, no-wrap
13796 msgid ""
13797 " char *\n"
13798 " guestfs_sh (guestfs_h *g,\n"
13799 "             const char *command);\n"
13800 "\n"
13801 msgstr ""
13802
13803 # type: textblock
13804 #: ../src/guestfs-actions.pod:5830 ../fish/guestfish-actions.pod:3916
13805 msgid ""
13806 "This call runs a command from the guest filesystem via the guest's "
13807 "C</bin/sh>."
13808 msgstr ""
13809
13810 # type: textblock
13811 #: ../src/guestfs-actions.pod:5833
13812 msgid "This is like C<guestfs_command>, but passes the command to:"
13813 msgstr ""
13814
13815 # type: verbatim
13816 #: ../src/guestfs-actions.pod:5835 ../fish/guestfish-actions.pod:3921
13817 #, no-wrap
13818 msgid ""
13819 " /bin/sh -c \"command\"\n"
13820 "\n"
13821 msgstr ""
13822
13823 # type: textblock
13824 #: ../src/guestfs-actions.pod:5837 ../fish/guestfish-actions.pod:3923
13825 msgid ""
13826 "Depending on the guest's shell, this usually results in wildcards being "
13827 "expanded, shell expressions being interpolated and so on."
13828 msgstr ""
13829
13830 # type: textblock
13831 #: ../src/guestfs-actions.pod:5841
13832 msgid "All the provisos about C<guestfs_command> apply to this call."
13833 msgstr ""
13834
13835 # type: =head2
13836 #: ../src/guestfs-actions.pod:5848
13837 msgid "guestfs_sh_lines"
13838 msgstr ""
13839
13840 # type: verbatim
13841 #: ../src/guestfs-actions.pod:5850
13842 #, no-wrap
13843 msgid ""
13844 " char **\n"
13845 " guestfs_sh_lines (guestfs_h *g,\n"
13846 "                   const char *command);\n"
13847 "\n"
13848 msgstr ""
13849
13850 # type: textblock
13851 #: ../src/guestfs-actions.pod:5854
13852 msgid ""
13853 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13854 "lines."
13855 msgstr ""
13856
13857 # type: textblock
13858 #: ../src/guestfs-actions.pod:5857
13859 msgid "See also: C<guestfs_command_lines>"
13860 msgstr ""
13861
13862 # type: =head2
13863 #: ../src/guestfs-actions.pod:5865
13864 msgid "guestfs_sleep"
13865 msgstr ""
13866
13867 # type: verbatim
13868 #: ../src/guestfs-actions.pod:5867
13869 #, no-wrap
13870 msgid ""
13871 " int\n"
13872 " guestfs_sleep (guestfs_h *g,\n"
13873 "                int secs);\n"
13874 "\n"
13875 msgstr ""
13876
13877 # type: textblock
13878 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3942
13879 msgid "Sleep for C<secs> seconds."
13880 msgstr ""
13881
13882 # type: textblock
13883 #: ../src/guestfs-actions.pod:5875
13884 msgid "(Added in 1.0.41)"
13885 msgstr ""
13886
13887 # type: =head2
13888 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-structs.pod:109
13889 msgid "guestfs_stat"
13890 msgstr ""
13891
13892 # type: verbatim
13893 #: ../src/guestfs-actions.pod:5879
13894 #, no-wrap
13895 msgid ""
13896 " struct guestfs_stat *\n"
13897 " guestfs_stat (guestfs_h *g,\n"
13898 "               const char *path);\n"
13899 "\n"
13900 msgstr ""
13901
13902 # type: textblock
13903 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3950
13904 msgid "This is the same as the C<stat(2)> system call."
13905 msgstr ""
13906
13907 # type: =head2
13908 #: ../src/guestfs-actions.pod:5893 ../src/guestfs-structs.pod:135
13909 msgid "guestfs_statvfs"
13910 msgstr ""
13911
13912 # type: verbatim
13913 #: ../src/guestfs-actions.pod:5895
13914 #, no-wrap
13915 msgid ""
13916 " struct guestfs_statvfs *\n"
13917 " guestfs_statvfs (guestfs_h *g,\n"
13918 "                  const char *path);\n"
13919 "\n"
13920 msgstr ""
13921
13922 # type: textblock
13923 #: ../src/guestfs-actions.pod:5899 ../fish/guestfish-actions.pod:3956
13924 msgid ""
13925 "Returns file system statistics for any mounted file system.  C<path> should "
13926 "be a file or directory in the mounted file system (typically it is the mount "
13927 "point itself, but it doesn't need to be)."
13928 msgstr ""
13929
13930 # type: textblock
13931 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3960
13932 msgid "This is the same as the C<statvfs(2)> system call."
13933 msgstr ""
13934
13935 # type: textblock
13936 #: ../src/guestfs-actions.pod:5905
13937 msgid ""
13938 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
13939 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
13940 msgstr ""
13941
13942 # type: =head2
13943 #: ../src/guestfs-actions.pod:5911
13944 msgid "guestfs_strings"
13945 msgstr ""
13946
13947 # type: verbatim
13948 #: ../src/guestfs-actions.pod:5913
13949 #, no-wrap
13950 msgid ""
13951 " char **\n"
13952 " guestfs_strings (guestfs_h *g,\n"
13953 "                  const char *path);\n"
13954 "\n"
13955 msgstr ""
13956
13957 # type: textblock
13958 #: ../src/guestfs-actions.pod:5917 ../fish/guestfish-actions.pod:3966
13959 msgid ""
13960 "This runs the L<strings(1)> command on a file and returns the list of "
13961 "printable strings found."
13962 msgstr ""
13963
13964 # type: =head2
13965 #: ../src/guestfs-actions.pod:5929
13966 msgid "guestfs_strings_e"
13967 msgstr ""
13968
13969 # type: verbatim
13970 #: ../src/guestfs-actions.pod:5931
13971 #, no-wrap
13972 msgid ""
13973 " char **\n"
13974 " guestfs_strings_e (guestfs_h *g,\n"
13975 "                    const char *encoding,\n"
13976 "                    const char *path);\n"
13977 "\n"
13978 msgstr ""
13979
13980 # type: textblock
13981 #: ../src/guestfs-actions.pod:5936
13982 msgid ""
13983 "This is like the C<guestfs_strings> command, but allows you to specify the "
13984 "encoding of strings that are looked for in the source file C<path>."
13985 msgstr ""
13986
13987 # type: textblock
13988 #: ../src/guestfs-actions.pod:5940 ../fish/guestfish-actions.pod:3980
13989 msgid "Allowed encodings are:"
13990 msgstr ""
13991
13992 # type: =item
13993 #: ../src/guestfs-actions.pod:5944 ../fish/guestfish-actions.pod:3984
13994 msgid "s"
13995 msgstr ""
13996
13997 # type: textblock
13998 #: ../src/guestfs-actions.pod:5946
13999 msgid ""
14000 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14001 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14002 msgstr ""
14003
14004 # type: =item
14005 #: ../src/guestfs-actions.pod:5949 ../fish/guestfish-actions.pod:3989
14006 msgid "S"
14007 msgstr ""
14008
14009 # type: textblock
14010 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:3991
14011 msgid "Single 8-bit-byte characters."
14012 msgstr ""
14013
14014 # type: =item
14015 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:3993
14016 msgid "b"
14017 msgstr ""
14018
14019 # type: textblock
14020 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:3995
14021 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14022 msgstr ""
14023
14024 # type: =item
14025 #: ../src/guestfs-actions.pod:5958 ../fish/guestfish-actions.pod:3998
14026 msgid "l (lower case letter L)"
14027 msgstr ""
14028
14029 # type: textblock
14030 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:4000
14031 msgid ""
14032 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14033 "examining binaries in Windows guests."
14034 msgstr ""
14035
14036 # type: =item
14037 #: ../src/guestfs-actions.pod:5963 ../fish/guestfish-actions.pod:4003
14038 msgid "B"
14039 msgstr ""
14040
14041 # type: textblock
14042 #: ../src/guestfs-actions.pod:5965 ../fish/guestfish-actions.pod:4005
14043 msgid "32-bit big endian such as UCS-4BE."
14044 msgstr ""
14045
14046 # type: =item
14047 #: ../src/guestfs-actions.pod:5967 ../fish/guestfish-actions.pod:4007
14048 msgid "L"
14049 msgstr ""
14050
14051 # type: textblock
14052 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:4009
14053 msgid "32-bit little endian such as UCS-4LE."
14054 msgstr ""
14055
14056 # type: textblock
14057 #: ../src/guestfs-actions.pod:5973 ../fish/guestfish-actions.pod:4013
14058 msgid "The returned strings are transcoded to UTF-8."
14059 msgstr ""
14060
14061 # type: =head2
14062 #: ../src/guestfs-actions.pod:5984
14063 msgid "guestfs_swapoff_device"
14064 msgstr ""
14065
14066 # type: verbatim
14067 #: ../src/guestfs-actions.pod:5986
14068 #, no-wrap
14069 msgid ""
14070 " int\n"
14071 " guestfs_swapoff_device (guestfs_h *g,\n"
14072 "                         const char *device);\n"
14073 "\n"
14074 msgstr ""
14075
14076 # type: textblock
14077 #: ../src/guestfs-actions.pod:5990
14078 msgid ""
14079 "This command disables the libguestfs appliance swap device or partition "
14080 "named C<device>.  See C<guestfs_swapon_device>."
14081 msgstr ""
14082
14083 # type: =head2
14084 #: ../src/guestfs-actions.pod:5998
14085 msgid "guestfs_swapoff_file"
14086 msgstr ""
14087
14088 # type: verbatim
14089 #: ../src/guestfs-actions.pod:6000
14090 #, no-wrap
14091 msgid ""
14092 " int\n"
14093 " guestfs_swapoff_file (guestfs_h *g,\n"
14094 "                       const char *file);\n"
14095 "\n"
14096 msgstr ""
14097
14098 # type: textblock
14099 #: ../src/guestfs-actions.pod:6004 ../fish/guestfish-actions.pod:4030
14100 msgid "This command disables the libguestfs appliance swap on file."
14101 msgstr ""
14102
14103 # type: =head2
14104 #: ../src/guestfs-actions.pod:6010
14105 msgid "guestfs_swapoff_label"
14106 msgstr ""
14107
14108 # type: verbatim
14109 #: ../src/guestfs-actions.pod:6012
14110 #, no-wrap
14111 msgid ""
14112 " int\n"
14113 " guestfs_swapoff_label (guestfs_h *g,\n"
14114 "                        const char *label);\n"
14115 "\n"
14116 msgstr ""
14117
14118 # type: textblock
14119 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:4036
14120 msgid ""
14121 "This command disables the libguestfs appliance swap on labeled swap "
14122 "partition."
14123 msgstr ""
14124
14125 # type: =head2
14126 #: ../src/guestfs-actions.pod:6023
14127 msgid "guestfs_swapoff_uuid"
14128 msgstr ""
14129
14130 # type: verbatim
14131 #: ../src/guestfs-actions.pod:6025
14132 #, no-wrap
14133 msgid ""
14134 " int\n"
14135 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14136 "                       const char *uuid);\n"
14137 "\n"
14138 msgstr ""
14139
14140 # type: textblock
14141 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4043
14142 msgid ""
14143 "This command disables the libguestfs appliance swap partition with the given "
14144 "UUID."
14145 msgstr ""
14146
14147 # type: =head2
14148 #: ../src/guestfs-actions.pod:6036
14149 msgid "guestfs_swapon_device"
14150 msgstr ""
14151
14152 # type: verbatim
14153 #: ../src/guestfs-actions.pod:6038
14154 #, no-wrap
14155 msgid ""
14156 " int\n"
14157 " guestfs_swapon_device (guestfs_h *g,\n"
14158 "                        const char *device);\n"
14159 "\n"
14160 msgstr ""
14161
14162 # type: textblock
14163 #: ../src/guestfs-actions.pod:6042
14164 msgid ""
14165 "This command enables the libguestfs appliance to use the swap device or "
14166 "partition named C<device>.  The increased memory is made available for all "
14167 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14168 msgstr ""
14169
14170 # type: textblock
14171 #: ../src/guestfs-actions.pod:6047 ../fish/guestfish-actions.pod:4055
14172 msgid ""
14173 "Note that you should not swap to existing guest swap partitions unless you "
14174 "know what you are doing.  They may contain hibernation information, or other "
14175 "information that the guest doesn't want you to trash.  You also risk leaking "
14176 "information about the host to the guest this way.  Instead, attach a new "
14177 "host device to the guest and swap on that."
14178 msgstr ""
14179
14180 # type: =head2
14181 #: ../src/guestfs-actions.pod:6058
14182 msgid "guestfs_swapon_file"
14183 msgstr ""
14184
14185 # type: verbatim
14186 #: ../src/guestfs-actions.pod:6060
14187 #, no-wrap
14188 msgid ""
14189 " int\n"
14190 " guestfs_swapon_file (guestfs_h *g,\n"
14191 "                      const char *file);\n"
14192 "\n"
14193 msgstr ""
14194
14195 # type: textblock
14196 #: ../src/guestfs-actions.pod:6064
14197 msgid ""
14198 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14199 "notes."
14200 msgstr ""
14201
14202 # type: =head2
14203 #: ../src/guestfs-actions.pod:6071
14204 msgid "guestfs_swapon_label"
14205 msgstr ""
14206
14207 # type: verbatim
14208 #: ../src/guestfs-actions.pod:6073
14209 #, no-wrap
14210 msgid ""
14211 " int\n"
14212 " guestfs_swapon_label (guestfs_h *g,\n"
14213 "                       const char *label);\n"
14214 "\n"
14215 msgstr ""
14216
14217 # type: textblock
14218 #: ../src/guestfs-actions.pod:6077
14219 msgid ""
14220 "This command enables swap to a labeled swap partition.  See "
14221 "C<guestfs_swapon_device> for other notes."
14222 msgstr ""
14223
14224 # type: =head2
14225 #: ../src/guestfs-actions.pod:6084
14226 msgid "guestfs_swapon_uuid"
14227 msgstr ""
14228
14229 # type: verbatim
14230 #: ../src/guestfs-actions.pod:6086
14231 #, no-wrap
14232 msgid ""
14233 " int\n"
14234 " guestfs_swapon_uuid (guestfs_h *g,\n"
14235 "                      const char *uuid);\n"
14236 "\n"
14237 msgstr ""
14238
14239 # type: textblock
14240 #: ../src/guestfs-actions.pod:6090
14241 msgid ""
14242 "This command enables swap to a swap partition with the given UUID.  See "
14243 "C<guestfs_swapon_device> for other notes."
14244 msgstr ""
14245
14246 # type: =head2
14247 #: ../src/guestfs-actions.pod:6097
14248 msgid "guestfs_sync"
14249 msgstr ""
14250
14251 # type: verbatim
14252 #: ../src/guestfs-actions.pod:6099
14253 #, no-wrap
14254 msgid ""
14255 " int\n"
14256 " guestfs_sync (guestfs_h *g);\n"
14257 "\n"
14258 msgstr ""
14259
14260 # type: textblock
14261 #: ../src/guestfs-actions.pod:6102 ../fish/guestfish-actions.pod:4087
14262 msgid ""
14263 "This syncs the disk, so that any writes are flushed through to the "
14264 "underlying disk image."
14265 msgstr ""
14266
14267 # type: textblock
14268 #: ../src/guestfs-actions.pod:6105 ../fish/guestfish-actions.pod:4090
14269 msgid ""
14270 "You should always call this if you have modified a disk image, before "
14271 "closing the handle."
14272 msgstr ""
14273
14274 # type: =head2
14275 #: ../src/guestfs-actions.pod:6112
14276 msgid "guestfs_tail"
14277 msgstr ""
14278
14279 # type: verbatim
14280 #: ../src/guestfs-actions.pod:6114
14281 #, no-wrap
14282 msgid ""
14283 " char **\n"
14284 " guestfs_tail (guestfs_h *g,\n"
14285 "               const char *path);\n"
14286 "\n"
14287 msgstr ""
14288
14289 # type: textblock
14290 #: ../src/guestfs-actions.pod:6118 ../fish/guestfish-actions.pod:4097
14291 msgid "This command returns up to the last 10 lines of a file as a list of strings."
14292 msgstr ""
14293
14294 # type: =head2
14295 #: ../src/guestfs-actions.pod:6130
14296 msgid "guestfs_tail_n"
14297 msgstr ""
14298
14299 # type: verbatim
14300 #: ../src/guestfs-actions.pod:6132
14301 #, no-wrap
14302 msgid ""
14303 " char **\n"
14304 " guestfs_tail_n (guestfs_h *g,\n"
14305 "                 int nrlines,\n"
14306 "                 const char *path);\n"
14307 "\n"
14308 msgstr ""
14309
14310 # type: textblock
14311 #: ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4107
14312 msgid ""
14313 "If the parameter C<nrlines> is a positive number, this returns the last "
14314 "C<nrlines> lines of the file C<path>."
14315 msgstr ""
14316
14317 # type: textblock
14318 #: ../src/guestfs-actions.pod:6140 ../fish/guestfish-actions.pod:4110
14319 msgid ""
14320 "If the parameter C<nrlines> is a negative number, this returns lines from "
14321 "the file C<path>, starting with the C<-nrlines>th line."
14322 msgstr ""
14323
14324 # type: =head2
14325 #: ../src/guestfs-actions.pod:6154
14326 msgid "guestfs_tar_in"
14327 msgstr ""
14328
14329 # type: verbatim
14330 #: ../src/guestfs-actions.pod:6156
14331 #, no-wrap
14332 msgid ""
14333 " int\n"
14334 " guestfs_tar_in (guestfs_h *g,\n"
14335 "                 const char *tarfile,\n"
14336 "                 const char *directory);\n"
14337 "\n"
14338 msgstr ""
14339
14340 # type: textblock
14341 #: ../src/guestfs-actions.pod:6161 ../fish/guestfish-actions.pod:4122
14342 msgid ""
14343 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14344 "tar file) into C<directory>."
14345 msgstr ""
14346
14347 # type: textblock
14348 #: ../src/guestfs-actions.pod:6164
14349 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14350 msgstr ""
14351
14352 # type: textblock
14353 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6186 ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6218
14354 msgid "(Added in 1.0.3)"
14355 msgstr ""
14356
14357 # type: =head2
14358 #: ../src/guestfs-actions.pod:6171
14359 msgid "guestfs_tar_out"
14360 msgstr ""
14361
14362 # type: verbatim
14363 #: ../src/guestfs-actions.pod:6173
14364 #, no-wrap
14365 msgid ""
14366 " int\n"
14367 " guestfs_tar_out (guestfs_h *g,\n"
14368 "                  const char *directory,\n"
14369 "                  const char *tarfile);\n"
14370 "\n"
14371 msgstr ""
14372
14373 # type: textblock
14374 #: ../src/guestfs-actions.pod:6178 ../fish/guestfish-actions.pod:4134
14375 msgid ""
14376 "This command packs the contents of C<directory> and downloads it to local "
14377 "file C<tarfile>."
14378 msgstr ""
14379
14380 # type: textblock
14381 #: ../src/guestfs-actions.pod:6181
14382 msgid ""
14383 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14384 "C<guestfs_txz_out>."
14385 msgstr ""
14386
14387 # type: =head2
14388 #: ../src/guestfs-actions.pod:6188
14389 msgid "guestfs_tgz_in"
14390 msgstr ""
14391
14392 # type: verbatim
14393 #: ../src/guestfs-actions.pod:6190
14394 #, no-wrap
14395 msgid ""
14396 " int\n"
14397 " guestfs_tgz_in (guestfs_h *g,\n"
14398 "                 const char *tarball,\n"
14399 "                 const char *directory);\n"
14400 "\n"
14401 msgstr ""
14402
14403 # type: textblock
14404 #: ../src/guestfs-actions.pod:6195 ../fish/guestfish-actions.pod:4146
14405 msgid ""
14406 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14407 "tar file) into C<directory>."
14408 msgstr ""
14409
14410 # type: textblock
14411 #: ../src/guestfs-actions.pod:6198
14412 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14413 msgstr ""
14414
14415 # type: =head2
14416 #: ../src/guestfs-actions.pod:6204
14417 msgid "guestfs_tgz_out"
14418 msgstr ""
14419
14420 # type: verbatim
14421 #: ../src/guestfs-actions.pod:6206
14422 #, no-wrap
14423 msgid ""
14424 " int\n"
14425 " guestfs_tgz_out (guestfs_h *g,\n"
14426 "                  const char *directory,\n"
14427 "                  const char *tarball);\n"
14428 "\n"
14429 msgstr ""
14430
14431 # type: textblock
14432 #: ../src/guestfs-actions.pod:6211 ../fish/guestfish-actions.pod:4157
14433 msgid ""
14434 "This command packs the contents of C<directory> and downloads it to local "
14435 "file C<tarball>."
14436 msgstr ""
14437
14438 # type: textblock
14439 #: ../src/guestfs-actions.pod:6214
14440 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14441 msgstr ""
14442
14443 # type: =head2
14444 #: ../src/guestfs-actions.pod:6220
14445 msgid "guestfs_touch"
14446 msgstr ""
14447
14448 # type: verbatim
14449 #: ../src/guestfs-actions.pod:6222
14450 #, no-wrap
14451 msgid ""
14452 " int\n"
14453 " guestfs_touch (guestfs_h *g,\n"
14454 "                const char *path);\n"
14455 "\n"
14456 msgstr ""
14457
14458 # type: textblock
14459 #: ../src/guestfs-actions.pod:6226 ../fish/guestfish-actions.pod:4168
14460 msgid ""
14461 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14462 "timestamps on a file, or, if the file does not exist, to create a new "
14463 "zero-length file."
14464 msgstr ""
14465
14466 # type: textblock
14467 #: ../src/guestfs-actions.pod:6230 ../fish/guestfish-actions.pod:4172
14468 msgid ""
14469 "This command only works on regular files, and will fail on other file types "
14470 "such as directories, symbolic links, block special etc."
14471 msgstr ""
14472
14473 # type: =head2
14474 #: ../src/guestfs-actions.pod:6237
14475 msgid "guestfs_truncate"
14476 msgstr ""
14477
14478 # type: verbatim
14479 #: ../src/guestfs-actions.pod:6239
14480 #, no-wrap
14481 msgid ""
14482 " int\n"
14483 " guestfs_truncate (guestfs_h *g,\n"
14484 "                   const char *path);\n"
14485 "\n"
14486 msgstr ""
14487
14488 # type: textblock
14489 #: ../src/guestfs-actions.pod:6243 ../fish/guestfish-actions.pod:4179
14490 msgid ""
14491 "This command truncates C<path> to a zero-length file.  The file must exist "
14492 "already."
14493 msgstr ""
14494
14495 # type: =head2
14496 #: ../src/guestfs-actions.pod:6250
14497 msgid "guestfs_truncate_size"
14498 msgstr ""
14499
14500 # type: verbatim
14501 #: ../src/guestfs-actions.pod:6252
14502 #, no-wrap
14503 msgid ""
14504 " int\n"
14505 " guestfs_truncate_size (guestfs_h *g,\n"
14506 "                        const char *path,\n"
14507 "                        int64_t size);\n"
14508 "\n"
14509 msgstr ""
14510
14511 # type: textblock
14512 #: ../src/guestfs-actions.pod:6257 ../fish/guestfish-actions.pod:4186
14513 msgid ""
14514 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14515 "already."
14516 msgstr ""
14517
14518 # type: textblock
14519 #: ../src/guestfs-actions.pod:6260
14520 msgid ""
14521 "If the current file size is less than C<size> then the file is extended to "
14522 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14523 "blocks are not allocated for the file until you write to it).  To create a "
14524 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14525 msgstr ""
14526
14527 # type: =head2
14528 #: ../src/guestfs-actions.pod:6270
14529 msgid "guestfs_tune2fs_l"
14530 msgstr ""
14531
14532 # type: verbatim
14533 #: ../src/guestfs-actions.pod:6272
14534 #, no-wrap
14535 msgid ""
14536 " char **\n"
14537 " guestfs_tune2fs_l (guestfs_h *g,\n"
14538 "                    const char *device);\n"
14539 "\n"
14540 msgstr ""
14541
14542 # type: textblock
14543 #: ../src/guestfs-actions.pod:6276 ../fish/guestfish-actions.pod:4199
14544 msgid ""
14545 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14546 "C<device>."
14547 msgstr ""
14548
14549 # type: textblock
14550 #: ../src/guestfs-actions.pod:6279 ../fish/guestfish-actions.pod:4202
14551 msgid ""
14552 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14553 "for more details.  The list of fields returned isn't clearly defined, and "
14554 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14555 "and the filesystem itself."
14556 msgstr ""
14557
14558 # type: =head2
14559 #: ../src/guestfs-actions.pod:6292
14560 msgid "guestfs_txz_in"
14561 msgstr ""
14562
14563 # type: verbatim
14564 #: ../src/guestfs-actions.pod:6294
14565 #, no-wrap
14566 msgid ""
14567 " int\n"
14568 " guestfs_txz_in (guestfs_h *g,\n"
14569 "                 const char *tarball,\n"
14570 "                 const char *directory);\n"
14571 "\n"
14572 msgstr ""
14573
14574 # type: textblock
14575 #: ../src/guestfs-actions.pod:6299 ../fish/guestfish-actions.pod:4211
14576 msgid ""
14577 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14578 "tar file) into C<directory>."
14579 msgstr ""
14580
14581 # type: =head2
14582 #: ../src/guestfs-actions.pod:6306
14583 msgid "guestfs_txz_out"
14584 msgstr ""
14585
14586 # type: verbatim
14587 #: ../src/guestfs-actions.pod:6308
14588 #, no-wrap
14589 msgid ""
14590 " int\n"
14591 " guestfs_txz_out (guestfs_h *g,\n"
14592 "                  const char *directory,\n"
14593 "                  const char *tarball);\n"
14594 "\n"
14595 msgstr ""
14596
14597 # type: textblock
14598 #: ../src/guestfs-actions.pod:6313 ../fish/guestfish-actions.pod:4220
14599 msgid ""
14600 "This command packs the contents of C<directory> and downloads it to local "
14601 "file C<tarball> (as an xz compressed tar archive)."
14602 msgstr ""
14603
14604 # type: =head2
14605 #: ../src/guestfs-actions.pod:6320
14606 msgid "guestfs_umask"
14607 msgstr ""
14608
14609 # type: verbatim
14610 #: ../src/guestfs-actions.pod:6322
14611 #, no-wrap
14612 msgid ""
14613 " int\n"
14614 " guestfs_umask (guestfs_h *g,\n"
14615 "                int mask);\n"
14616 "\n"
14617 msgstr ""
14618
14619 # type: textblock
14620 #: ../src/guestfs-actions.pod:6326 ../fish/guestfish-actions.pod:4229
14621 msgid ""
14622 "This function sets the mask used for creating new files and device nodes to "
14623 "C<mask & 0777>."
14624 msgstr ""
14625
14626 # type: textblock
14627 #: ../src/guestfs-actions.pod:6329 ../fish/guestfish-actions.pod:4232
14628 msgid ""
14629 "Typical umask values would be C<022> which creates new files with "
14630 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14631 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14632 msgstr ""
14633
14634 # type: textblock
14635 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4237
14636 msgid ""
14637 "The default umask is C<022>.  This is important because it means that "
14638 "directories and device nodes will be created with C<0644> or C<0755> mode "
14639 "even if you specify C<0777>."
14640 msgstr ""
14641
14642 # type: textblock
14643 #: ../src/guestfs-actions.pod:6338
14644 msgid ""
14645 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14646 "C<guestfs_mkdir>."
14647 msgstr ""
14648
14649 # type: textblock
14650 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4244
14651 msgid "This call returns the previous umask."
14652 msgstr ""
14653
14654 # type: =head2
14655 #: ../src/guestfs-actions.pod:6347
14656 msgid "guestfs_umount"
14657 msgstr ""
14658
14659 # type: verbatim
14660 #: ../src/guestfs-actions.pod:6349
14661 #, no-wrap
14662 msgid ""
14663 " int\n"
14664 " guestfs_umount (guestfs_h *g,\n"
14665 "                 const char *pathordevice);\n"
14666 "\n"
14667 msgstr ""
14668
14669 # type: textblock
14670 #: ../src/guestfs-actions.pod:6353 ../fish/guestfish-actions.pod:4252
14671 msgid ""
14672 "This unmounts the given filesystem.  The filesystem may be specified either "
14673 "by its mountpoint (path) or the device which contains the filesystem."
14674 msgstr ""
14675
14676 # type: =head2
14677 #: ../src/guestfs-actions.pod:6361
14678 msgid "guestfs_umount_all"
14679 msgstr ""
14680
14681 # type: verbatim
14682 #: ../src/guestfs-actions.pod:6363
14683 #, no-wrap
14684 msgid ""
14685 " int\n"
14686 " guestfs_umount_all (guestfs_h *g);\n"
14687 "\n"
14688 msgstr ""
14689
14690 # type: textblock
14691 #: ../src/guestfs-actions.pod:6366 ../fish/guestfish-actions.pod:4262
14692 msgid "This unmounts all mounted filesystems."
14693 msgstr ""
14694
14695 # type: textblock
14696 #: ../src/guestfs-actions.pod:6368 ../fish/guestfish-actions.pod:4264
14697 msgid "Some internal mounts are not unmounted by this call."
14698 msgstr ""
14699
14700 # type: =head2
14701 #: ../src/guestfs-actions.pod:6374
14702 msgid "guestfs_upload"
14703 msgstr ""
14704
14705 # type: verbatim
14706 #: ../src/guestfs-actions.pod:6376
14707 #, no-wrap
14708 msgid ""
14709 " int\n"
14710 " guestfs_upload (guestfs_h *g,\n"
14711 "                 const char *filename,\n"
14712 "                 const char *remotefilename);\n"
14713 "\n"
14714 msgstr ""
14715
14716 # type: textblock
14717 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6405 ../fish/guestfish-actions.pod:4270 ../fish/guestfish-actions.pod:4283
14718 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14719 msgstr ""
14720
14721 # type: textblock
14722 #: ../src/guestfs-actions.pod:6386
14723 msgid "See also C<guestfs_download>."
14724 msgstr ""
14725
14726 # type: =head2
14727 #: ../src/guestfs-actions.pod:6397
14728 msgid "guestfs_upload_offset"
14729 msgstr ""
14730
14731 # type: verbatim
14732 #: ../src/guestfs-actions.pod:6399
14733 #, no-wrap
14734 msgid ""
14735 " int\n"
14736 " guestfs_upload_offset (guestfs_h *g,\n"
14737 "                        const char *filename,\n"
14738 "                        const char *remotefilename,\n"
14739 "                        int64_t offset);\n"
14740 "\n"
14741 msgstr ""
14742
14743 # type: textblock
14744 #: ../src/guestfs-actions.pod:6408 ../fish/guestfish-actions.pod:4286
14745 msgid ""
14746 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14747 "The intention is to overwrite parts of existing files or devices, although "
14748 "if a non-existant file is specified then it is created with a \"hole\" "
14749 "before C<offset>.  The size of the data written is implicit in the size of "
14750 "the source C<filename>."
14751 msgstr ""
14752
14753 # type: textblock
14754 #: ../src/guestfs-actions.pod:6415
14755 msgid ""
14756 "Note that there is no limit on the amount of data that can be uploaded with "
14757 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14758 "full amount unless an error occurs."
14759 msgstr ""
14760
14761 # type: textblock
14762 #: ../src/guestfs-actions.pod:6420
14763 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14764 msgstr ""
14765
14766 # type: =head2
14767 #: ../src/guestfs-actions.pod:6431
14768 msgid "guestfs_utimens"
14769 msgstr ""
14770
14771 # type: verbatim
14772 #: ../src/guestfs-actions.pod:6433
14773 #, no-wrap
14774 msgid ""
14775 " int\n"
14776 " guestfs_utimens (guestfs_h *g,\n"
14777 "                  const char *path,\n"
14778 "                  int64_t atsecs,\n"
14779 "                  int64_t atnsecs,\n"
14780 "                  int64_t mtsecs,\n"
14781 "                  int64_t mtnsecs);\n"
14782 "\n"
14783 msgstr ""
14784
14785 # type: textblock
14786 #: ../src/guestfs-actions.pod:6441 ../fish/guestfish-actions.pod:4306
14787 msgid "This command sets the timestamps of a file with nanosecond precision."
14788 msgstr ""
14789
14790 # type: textblock
14791 #: ../src/guestfs-actions.pod:6444 ../fish/guestfish-actions.pod:4309
14792 msgid ""
14793 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14794 "from the epoch."
14795 msgstr ""
14796
14797 # type: textblock
14798 #: ../src/guestfs-actions.pod:6447 ../fish/guestfish-actions.pod:4312
14799 msgid ""
14800 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14801 "nanoseconds from the epoch."
14802 msgstr ""
14803
14804 # type: textblock
14805 #: ../src/guestfs-actions.pod:6450 ../fish/guestfish-actions.pod:4315
14806 msgid ""
14807 "If the C<*nsecs> field contains the special value C<-1> then the "
14808 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14809 "ignored in this case)."
14810 msgstr ""
14811
14812 # type: textblock
14813 #: ../src/guestfs-actions.pod:6454 ../fish/guestfish-actions.pod:4319
14814 msgid ""
14815 "If the C<*nsecs> field contains the special value C<-2> then the "
14816 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14817 "in this case)."
14818 msgstr ""
14819
14820 # type: =head2
14821 #: ../src/guestfs-actions.pod:6462 ../src/guestfs-structs.pod:175
14822 msgid "guestfs_version"
14823 msgstr ""
14824
14825 # type: verbatim
14826 #: ../src/guestfs-actions.pod:6464
14827 #, no-wrap
14828 msgid ""
14829 " struct guestfs_version *\n"
14830 " guestfs_version (guestfs_h *g);\n"
14831 "\n"
14832 msgstr ""
14833
14834 # type: textblock
14835 #: ../src/guestfs-actions.pod:6467 ../fish/guestfish-actions.pod:4327
14836 msgid "Return the libguestfs version number that the program is linked against."
14837 msgstr ""
14838
14839 # type: textblock
14840 #: ../src/guestfs-actions.pod:6470 ../fish/guestfish-actions.pod:4330
14841 msgid ""
14842 "Note that because of dynamic linking this is not necessarily the version of "
14843 "libguestfs that you compiled against.  You can compile the program, and then "
14844 "at runtime dynamically link against a completely different C<libguestfs.so> "
14845 "library."
14846 msgstr ""
14847
14848 # type: textblock
14849 #: ../src/guestfs-actions.pod:6475 ../fish/guestfish-actions.pod:4335
14850 msgid ""
14851 "This call was added in version C<1.0.58>.  In previous versions of "
14852 "libguestfs there was no way to get the version number.  From C code you can "
14853 "use dynamic linker functions to find out if this symbol exists (if it "
14854 "doesn't, then it's an earlier version)."
14855 msgstr ""
14856
14857 # type: textblock
14858 #: ../src/guestfs-actions.pod:6481 ../fish/guestfish-actions.pod:4341
14859 msgid ""
14860 "The call returns a structure with four elements.  The first three (C<major>, "
14861 "C<minor> and C<release>) are numbers and correspond to the usual version "
14862 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14863 "but may be used for distro-specific information."
14864 msgstr ""
14865
14866 # type: textblock
14867 #: ../src/guestfs-actions.pod:6487 ../fish/guestfish-actions.pod:4347
14868 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14869 msgstr ""
14870
14871 # type: textblock
14872 #: ../src/guestfs-actions.pod:6490 ../fish/guestfish-actions.pod:4350
14873 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14874 msgstr ""
14875
14876 # type: textblock
14877 #: ../src/guestfs-actions.pod:6492
14878 msgid ""
14879 "I<Note:> Don't use this call to test for availability of features.  In "
14880 "enterprise distributions we backport features from later versions into "
14881 "earlier versions, making this an unreliable way to test for features.  Use "
14882 "C<guestfs_available> instead."
14883 msgstr ""
14884
14885 # type: textblock
14886 #: ../src/guestfs-actions.pod:6498
14887 msgid ""
14888 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14889 "error.  I<The caller must call C<guestfs_free_version> after use>."
14890 msgstr ""
14891
14892 # type: textblock
14893 #: ../src/guestfs-actions.pod:6502
14894 msgid "(Added in 1.0.58)"
14895 msgstr ""
14896
14897 # type: =head2
14898 #: ../src/guestfs-actions.pod:6504
14899 msgid "guestfs_vfs_label"
14900 msgstr ""
14901
14902 # type: verbatim
14903 #: ../src/guestfs-actions.pod:6506
14904 #, no-wrap
14905 msgid ""
14906 " char *\n"
14907 " guestfs_vfs_label (guestfs_h *g,\n"
14908 "                    const char *device);\n"
14909 "\n"
14910 msgstr ""
14911
14912 # type: textblock
14913 #: ../src/guestfs-actions.pod:6510 ../fish/guestfish-actions.pod:4362
14914 msgid "This returns the filesystem label of the filesystem on C<device>."
14915 msgstr ""
14916
14917 # type: textblock
14918 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4365
14919 msgid "If the filesystem is unlabeled, this returns the empty string."
14920 msgstr ""
14921
14922 # type: textblock
14923 #: ../src/guestfs-actions.pod:6515
14924 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
14925 msgstr ""
14926
14927 # type: textblock
14928 #: ../src/guestfs-actions.pod:6520 ../src/guestfs-actions.pod:6557
14929 msgid "(Added in 1.3.18)"
14930 msgstr ""
14931
14932 # type: =head2
14933 #: ../src/guestfs-actions.pod:6522
14934 msgid "guestfs_vfs_type"
14935 msgstr ""
14936
14937 # type: verbatim
14938 #: ../src/guestfs-actions.pod:6524
14939 #, no-wrap
14940 msgid ""
14941 " char *\n"
14942 " guestfs_vfs_type (guestfs_h *g,\n"
14943 "                   const char *device);\n"
14944 "\n"
14945 msgstr ""
14946
14947 # type: textblock
14948 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4373
14949 msgid ""
14950 "This command gets the filesystem type corresponding to the filesystem on "
14951 "C<device>."
14952 msgstr ""
14953
14954 # type: textblock
14955 #: ../src/guestfs-actions.pod:6531 ../fish/guestfish-actions.pod:4376
14956 msgid ""
14957 "For most filesystems, the result is the name of the Linux VFS module which "
14958 "would be used to mount this filesystem if you mounted it without specifying "
14959 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14960 msgstr ""
14961
14962 # type: =head2
14963 #: ../src/guestfs-actions.pod:6541
14964 msgid "guestfs_vfs_uuid"
14965 msgstr ""
14966
14967 # type: verbatim
14968 #: ../src/guestfs-actions.pod:6543
14969 #, no-wrap
14970 msgid ""
14971 " char *\n"
14972 " guestfs_vfs_uuid (guestfs_h *g,\n"
14973 "                   const char *device);\n"
14974 "\n"
14975 msgstr ""
14976
14977 # type: textblock
14978 #: ../src/guestfs-actions.pod:6547 ../fish/guestfish-actions.pod:4385
14979 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14980 msgstr ""
14981
14982 # type: textblock
14983 #: ../src/guestfs-actions.pod:6550 ../fish/guestfish-actions.pod:4388
14984 msgid "If the filesystem does not have a UUID, this returns the empty string."
14985 msgstr ""
14986
14987 # type: textblock
14988 #: ../src/guestfs-actions.pod:6552
14989 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
14990 msgstr ""
14991
14992 # type: =head2
14993 #: ../src/guestfs-actions.pod:6559
14994 msgid "guestfs_vg_activate"
14995 msgstr ""
14996
14997 # type: verbatim
14998 #: ../src/guestfs-actions.pod:6561
14999 #, no-wrap
15000 msgid ""
15001 " int\n"
15002 " guestfs_vg_activate (guestfs_h *g,\n"
15003 "                      int activate,\n"
15004 "                      char *const *volgroups);\n"
15005 "\n"
15006 msgstr ""
15007
15008 # type: textblock
15009 #: ../src/guestfs-actions.pod:6566 ../fish/guestfish-actions.pod:4396
15010 msgid ""
15011 "This command activates or (if C<activate> is false) deactivates all logical "
15012 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15013 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15014 "deactivated, then those devices disappear."
15015 msgstr ""
15016
15017 # type: textblock
15018 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4402
15019 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15020 msgstr ""
15021
15022 # type: textblock
15023 #: ../src/guestfs-actions.pod:6574 ../fish/guestfish-actions.pod:4404
15024 msgid ""
15025 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15026 "activated or deactivated."
15027 msgstr ""
15028
15029 # type: =head2
15030 #: ../src/guestfs-actions.pod:6581
15031 msgid "guestfs_vg_activate_all"
15032 msgstr ""
15033
15034 # type: verbatim
15035 #: ../src/guestfs-actions.pod:6583
15036 #, no-wrap
15037 msgid ""
15038 " int\n"
15039 " guestfs_vg_activate_all (guestfs_h *g,\n"
15040 "                          int activate);\n"
15041 "\n"
15042 msgstr ""
15043
15044 # type: textblock
15045 #: ../src/guestfs-actions.pod:6587 ../fish/guestfish-actions.pod:4411
15046 msgid ""
15047 "This command activates or (if C<activate> is false) deactivates all logical "
15048 "volumes in all volume groups.  If activated, then they are made known to the "
15049 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15050 "those devices disappear."
15051 msgstr ""
15052
15053 # type: textblock
15054 #: ../src/guestfs-actions.pod:6593 ../fish/guestfish-actions.pod:4417
15055 msgid "This command is the same as running C<vgchange -a y|n>"
15056 msgstr ""
15057
15058 # type: =head2
15059 #: ../src/guestfs-actions.pod:6599
15060 msgid "guestfs_vgcreate"
15061 msgstr ""
15062
15063 # type: verbatim
15064 #: ../src/guestfs-actions.pod:6601
15065 #, no-wrap
15066 msgid ""
15067 " int\n"
15068 " guestfs_vgcreate (guestfs_h *g,\n"
15069 "                   const char *volgroup,\n"
15070 "                   char *const *physvols);\n"
15071 "\n"
15072 msgstr ""
15073
15074 # type: textblock
15075 #: ../src/guestfs-actions.pod:6606 ../fish/guestfish-actions.pod:4423
15076 msgid ""
15077 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15078 "of physical volumes C<physvols>."
15079 msgstr ""
15080
15081 # type: =head2
15082 #: ../src/guestfs-actions.pod:6613
15083 msgid "guestfs_vglvuuids"
15084 msgstr ""
15085
15086 # type: verbatim
15087 #: ../src/guestfs-actions.pod:6615
15088 #, no-wrap
15089 msgid ""
15090 " char **\n"
15091 " guestfs_vglvuuids (guestfs_h *g,\n"
15092 "                    const char *vgname);\n"
15093 "\n"
15094 msgstr ""
15095
15096 # type: textblock
15097 #: ../src/guestfs-actions.pod:6619 ../fish/guestfish-actions.pod:4430
15098 msgid ""
15099 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15100 "volumes created in this volume group."
15101 msgstr ""
15102
15103 # type: textblock
15104 #: ../src/guestfs-actions.pod:6622
15105 msgid ""
15106 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15107 "associate logical volumes and volume groups."
15108 msgstr ""
15109
15110 # type: textblock
15111 #: ../src/guestfs-actions.pod:6625
15112 msgid "See also C<guestfs_vgpvuuids>."
15113 msgstr ""
15114
15115 # type: =head2
15116 #: ../src/guestfs-actions.pod:6633
15117 msgid "guestfs_vgpvuuids"
15118 msgstr ""
15119
15120 # type: verbatim
15121 #: ../src/guestfs-actions.pod:6635
15122 #, no-wrap
15123 msgid ""
15124 " char **\n"
15125 " guestfs_vgpvuuids (guestfs_h *g,\n"
15126 "                    const char *vgname);\n"
15127 "\n"
15128 msgstr ""
15129
15130 # type: textblock
15131 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4442
15132 msgid ""
15133 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15134 "volumes that this volume group resides on."
15135 msgstr ""
15136
15137 # type: textblock
15138 #: ../src/guestfs-actions.pod:6642
15139 msgid ""
15140 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15141 "associate physical volumes and volume groups."
15142 msgstr ""
15143
15144 # type: textblock
15145 #: ../src/guestfs-actions.pod:6645
15146 msgid "See also C<guestfs_vglvuuids>."
15147 msgstr ""
15148
15149 # type: =head2
15150 #: ../src/guestfs-actions.pod:6653
15151 msgid "guestfs_vgremove"
15152 msgstr ""
15153
15154 # type: verbatim
15155 #: ../src/guestfs-actions.pod:6655
15156 #, no-wrap
15157 msgid ""
15158 " int\n"
15159 " guestfs_vgremove (guestfs_h *g,\n"
15160 "                   const char *vgname);\n"
15161 "\n"
15162 msgstr ""
15163
15164 # type: textblock
15165 #: ../src/guestfs-actions.pod:6659 ../fish/guestfish-actions.pod:4454
15166 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15167 msgstr ""
15168
15169 # type: textblock
15170 #: ../src/guestfs-actions.pod:6661 ../fish/guestfish-actions.pod:4456
15171 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15172 msgstr ""
15173
15174 # type: =head2
15175 #: ../src/guestfs-actions.pod:6668
15176 msgid "guestfs_vgrename"
15177 msgstr ""
15178
15179 # type: verbatim
15180 #: ../src/guestfs-actions.pod:6670
15181 #, no-wrap
15182 msgid ""
15183 " int\n"
15184 " guestfs_vgrename (guestfs_h *g,\n"
15185 "                   const char *volgroup,\n"
15186 "                   const char *newvolgroup);\n"
15187 "\n"
15188 msgstr ""
15189
15190 # type: textblock
15191 #: ../src/guestfs-actions.pod:6675 ../fish/guestfish-actions.pod:4463
15192 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15193 msgstr ""
15194
15195 # type: =head2
15196 #: ../src/guestfs-actions.pod:6681
15197 msgid "guestfs_vgs"
15198 msgstr ""
15199
15200 # type: verbatim
15201 #: ../src/guestfs-actions.pod:6683
15202 #, no-wrap
15203 msgid ""
15204 " char **\n"
15205 " guestfs_vgs (guestfs_h *g);\n"
15206 "\n"
15207 msgstr ""
15208
15209 # type: textblock
15210 #: ../src/guestfs-actions.pod:6686 ../fish/guestfish-actions.pod:4469
15211 msgid ""
15212 "List all the volumes groups detected.  This is the equivalent of the "
15213 "L<vgs(8)> command."
15214 msgstr ""
15215
15216 # type: textblock
15217 #: ../src/guestfs-actions.pod:6689 ../fish/guestfish-actions.pod:4472
15218 msgid ""
15219 "This returns a list of just the volume group names that were detected "
15220 "(eg. C<VolGroup00>)."
15221 msgstr ""
15222
15223 # type: textblock
15224 #: ../src/guestfs-actions.pod:6692
15225 msgid "See also C<guestfs_vgs_full>."
15226 msgstr ""
15227
15228 # type: =head2
15229 #: ../src/guestfs-actions.pod:6700
15230 msgid "guestfs_vgs_full"
15231 msgstr ""
15232
15233 # type: verbatim
15234 #: ../src/guestfs-actions.pod:6702
15235 #, no-wrap
15236 msgid ""
15237 " struct guestfs_lvm_vg_list *\n"
15238 " guestfs_vgs_full (guestfs_h *g);\n"
15239 "\n"
15240 msgstr ""
15241
15242 # type: textblock
15243 #: ../src/guestfs-actions.pod:6705 ../fish/guestfish-actions.pod:4481
15244 msgid ""
15245 "List all the volumes groups detected.  This is the equivalent of the "
15246 "L<vgs(8)> command.  The \"full\" version includes all fields."
15247 msgstr ""
15248
15249 # type: textblock
15250 #: ../src/guestfs-actions.pod:6708
15251 msgid ""
15252 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15253 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
15254 "use>."
15255 msgstr ""
15256
15257 # type: =head2
15258 #: ../src/guestfs-actions.pod:6714
15259 msgid "guestfs_vgscan"
15260 msgstr ""
15261
15262 # type: verbatim
15263 #: ../src/guestfs-actions.pod:6716
15264 #, no-wrap
15265 msgid ""
15266 " int\n"
15267 " guestfs_vgscan (guestfs_h *g);\n"
15268 "\n"
15269 msgstr ""
15270
15271 # type: textblock
15272 #: ../src/guestfs-actions.pod:6719 ../fish/guestfish-actions.pod:4488
15273 msgid ""
15274 "This rescans all block devices and rebuilds the list of LVM physical "
15275 "volumes, volume groups and logical volumes."
15276 msgstr ""
15277
15278 # type: =head2
15279 #: ../src/guestfs-actions.pod:6726
15280 msgid "guestfs_vguuid"
15281 msgstr ""
15282
15283 # type: verbatim
15284 #: ../src/guestfs-actions.pod:6728
15285 #, no-wrap
15286 msgid ""
15287 " char *\n"
15288 " guestfs_vguuid (guestfs_h *g,\n"
15289 "                 const char *vgname);\n"
15290 "\n"
15291 msgstr ""
15292
15293 # type: textblock
15294 #: ../src/guestfs-actions.pod:6732 ../fish/guestfish-actions.pod:4495
15295 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15296 msgstr ""
15297
15298 # type: =head2
15299 #: ../src/guestfs-actions.pod:6739
15300 msgid "guestfs_wait_ready"
15301 msgstr ""
15302
15303 # type: verbatim
15304 #: ../src/guestfs-actions.pod:6741
15305 #, no-wrap
15306 msgid ""
15307 " int\n"
15308 " guestfs_wait_ready (guestfs_h *g);\n"
15309 "\n"
15310 msgstr ""
15311
15312 # type: textblock
15313 #: ../src/guestfs-actions.pod:6744
15314 msgid "This function is a no op."
15315 msgstr ""
15316
15317 # type: textblock
15318 #: ../src/guestfs-actions.pod:6746
15319 msgid ""
15320 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15321 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15322 "is no longer necessary because C<guestfs_launch> now does the waiting."
15323 msgstr ""
15324
15325 # type: textblock
15326 #: ../src/guestfs-actions.pod:6751
15327 msgid ""
15328 "If you see any calls to this function in code then you can just remove them, "
15329 "unless you want to retain compatibility with older versions of the API."
15330 msgstr ""
15331
15332 # type: =head2
15333 #: ../src/guestfs-actions.pod:6759
15334 msgid "guestfs_wc_c"
15335 msgstr ""
15336
15337 # type: verbatim
15338 #: ../src/guestfs-actions.pod:6761
15339 #, no-wrap
15340 msgid ""
15341 " int\n"
15342 " guestfs_wc_c (guestfs_h *g,\n"
15343 "               const char *path);\n"
15344 "\n"
15345 msgstr ""
15346
15347 # type: textblock
15348 #: ../src/guestfs-actions.pod:6765 ../fish/guestfish-actions.pod:4501
15349 msgid ""
15350 "This command counts the characters in a file, using the C<wc -c> external "
15351 "command."
15352 msgstr ""
15353
15354 # type: =head2
15355 #: ../src/guestfs-actions.pod:6772
15356 msgid "guestfs_wc_l"
15357 msgstr ""
15358
15359 # type: verbatim
15360 #: ../src/guestfs-actions.pod:6774
15361 #, no-wrap
15362 msgid ""
15363 " int\n"
15364 " guestfs_wc_l (guestfs_h *g,\n"
15365 "               const char *path);\n"
15366 "\n"
15367 msgstr ""
15368
15369 # type: textblock
15370 #: ../src/guestfs-actions.pod:6778 ../fish/guestfish-actions.pod:4508
15371 msgid ""
15372 "This command counts the lines in a file, using the C<wc -l> external "
15373 "command."
15374 msgstr ""
15375
15376 # type: =head2
15377 #: ../src/guestfs-actions.pod:6785
15378 msgid "guestfs_wc_w"
15379 msgstr ""
15380
15381 # type: verbatim
15382 #: ../src/guestfs-actions.pod:6787
15383 #, no-wrap
15384 msgid ""
15385 " int\n"
15386 " guestfs_wc_w (guestfs_h *g,\n"
15387 "               const char *path);\n"
15388 "\n"
15389 msgstr ""
15390
15391 # type: textblock
15392 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4515
15393 msgid ""
15394 "This command counts the words in a file, using the C<wc -w> external "
15395 "command."
15396 msgstr ""
15397
15398 # type: =head2
15399 #: ../src/guestfs-actions.pod:6798
15400 msgid "guestfs_write"
15401 msgstr ""
15402
15403 # type: verbatim
15404 #: ../src/guestfs-actions.pod:6800
15405 #, no-wrap
15406 msgid ""
15407 " int\n"
15408 " guestfs_write (guestfs_h *g,\n"
15409 "                const char *path,\n"
15410 "                const char *content,\n"
15411 "                size_t content_size);\n"
15412 "\n"
15413 msgstr ""
15414
15415 # type: textblock
15416 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4522
15417 msgid ""
15418 "This call creates a file called C<path>.  The content of the file is the "
15419 "string C<content> (which can contain any 8 bit data)."
15420 msgstr ""
15421
15422 # type: =head2
15423 #: ../src/guestfs-actions.pod:6816
15424 msgid "guestfs_write_file"
15425 msgstr ""
15426
15427 # type: verbatim
15428 #: ../src/guestfs-actions.pod:6818
15429 #, no-wrap
15430 msgid ""
15431 " int\n"
15432 " guestfs_write_file (guestfs_h *g,\n"
15433 "                     const char *path,\n"
15434 "                     const char *content,\n"
15435 "                     int size);\n"
15436 "\n"
15437 msgstr ""
15438
15439 # type: textblock
15440 #: ../src/guestfs-actions.pod:6824 ../fish/guestfish-actions.pod:4532
15441 msgid ""
15442 "This call creates a file called C<path>.  The contents of the file is the "
15443 "string C<content> (which can contain any 8 bit data), with length C<size>."
15444 msgstr ""
15445
15446 # type: textblock
15447 #: ../src/guestfs-actions.pod:6828 ../fish/guestfish-actions.pod:4536
15448 msgid ""
15449 "As a special case, if C<size> is C<0> then the length is calculated using "
15450 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15451 msgstr ""
15452
15453 # type: textblock
15454 #: ../src/guestfs-actions.pod:6832 ../fish/guestfish-actions.pod:4540
15455 msgid ""
15456 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15457 "I<not> work, even if the length is specified."
15458 msgstr ""
15459
15460 # type: textblock
15461 #: ../src/guestfs-actions.pod:6840 ../fish/guestfish-actions.pod:4546
15462 msgid "This function is deprecated.  In new code, use the C<write> call instead."
15463 msgstr ""
15464
15465 # type: =head2
15466 #: ../src/guestfs-actions.pod:6849
15467 msgid "guestfs_zegrep"
15468 msgstr ""
15469
15470 # type: verbatim
15471 #: ../src/guestfs-actions.pod:6851
15472 #, no-wrap
15473 msgid ""
15474 " char **\n"
15475 " guestfs_zegrep (guestfs_h *g,\n"
15476 "                 const char *regex,\n"
15477 "                 const char *path);\n"
15478 "\n"
15479 msgstr ""
15480
15481 # type: textblock
15482 #: ../src/guestfs-actions.pod:6856 ../fish/guestfish-actions.pod:4557
15483 msgid "This calls the external C<zegrep> program and returns the matching lines."
15484 msgstr ""
15485
15486 # type: =head2
15487 #: ../src/guestfs-actions.pod:6868
15488 msgid "guestfs_zegrepi"
15489 msgstr ""
15490
15491 # type: verbatim
15492 #: ../src/guestfs-actions.pod:6870
15493 #, no-wrap
15494 msgid ""
15495 " char **\n"
15496 " guestfs_zegrepi (guestfs_h *g,\n"
15497 "                  const char *regex,\n"
15498 "                  const char *path);\n"
15499 "\n"
15500 msgstr ""
15501
15502 # type: textblock
15503 #: ../src/guestfs-actions.pod:6875 ../fish/guestfish-actions.pod:4567
15504 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15505 msgstr ""
15506
15507 # type: =head2
15508 #: ../src/guestfs-actions.pod:6887
15509 msgid "guestfs_zero"
15510 msgstr ""
15511
15512 # type: verbatim
15513 #: ../src/guestfs-actions.pod:6889
15514 #, no-wrap
15515 msgid ""
15516 " int\n"
15517 " guestfs_zero (guestfs_h *g,\n"
15518 "               const char *device);\n"
15519 "\n"
15520 msgstr ""
15521
15522 # type: textblock
15523 #: ../src/guestfs-actions.pod:6893 ../fish/guestfish-actions.pod:4577
15524 msgid "This command writes zeroes over the first few blocks of C<device>."
15525 msgstr ""
15526
15527 # type: textblock
15528 #: ../src/guestfs-actions.pod:6895 ../fish/guestfish-actions.pod:4579
15529 msgid ""
15530 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15531 "securely wipe the device).  It should be sufficient to remove any partition "
15532 "tables, filesystem superblocks and so on."
15533 msgstr ""
15534
15535 # type: textblock
15536 #: ../src/guestfs-actions.pod:6899
15537 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15538 msgstr ""
15539
15540 # type: =head2
15541 #: ../src/guestfs-actions.pod:6910
15542 msgid "guestfs_zero_device"
15543 msgstr ""
15544
15545 # type: verbatim
15546 #: ../src/guestfs-actions.pod:6912
15547 #, no-wrap
15548 msgid ""
15549 " int\n"
15550 " guestfs_zero_device (guestfs_h *g,\n"
15551 "                      const char *device);\n"
15552 "\n"
15553 msgstr ""
15554
15555 # type: textblock
15556 #: ../src/guestfs-actions.pod:6916
15557 msgid ""
15558 "This command writes zeroes over the entire C<device>.  Compare with "
15559 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15560 msgstr ""
15561
15562 # type: textblock
15563 #: ../src/guestfs-actions.pod:6930
15564 msgid "(Added in 1.3.1)"
15565 msgstr ""
15566
15567 # type: =head2
15568 #: ../src/guestfs-actions.pod:6932
15569 msgid "guestfs_zerofree"
15570 msgstr ""
15571
15572 # type: verbatim
15573 #: ../src/guestfs-actions.pod:6934
15574 #, no-wrap
15575 msgid ""
15576 " int\n"
15577 " guestfs_zerofree (guestfs_h *g,\n"
15578 "                   const char *device);\n"
15579 "\n"
15580 msgstr ""
15581
15582 # type: textblock
15583 #: ../src/guestfs-actions.pod:6938 ../fish/guestfish-actions.pod:4600
15584 msgid ""
15585 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15586 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15587 "possible to compress the filesystem more effectively."
15588 msgstr ""
15589
15590 # type: textblock
15591 #: ../src/guestfs-actions.pod:6943 ../fish/guestfish-actions.pod:4605
15592 msgid "You should B<not> run this program if the filesystem is mounted."
15593 msgstr ""
15594
15595 # type: textblock
15596 #: ../src/guestfs-actions.pod:6946 ../fish/guestfish-actions.pod:4608
15597 msgid ""
15598 "It is possible that using this program can damage the filesystem or data on "
15599 "the filesystem."
15600 msgstr ""
15601
15602 # type: =head2
15603 #: ../src/guestfs-actions.pod:6953
15604 msgid "guestfs_zfgrep"
15605 msgstr ""
15606
15607 # type: verbatim
15608 #: ../src/guestfs-actions.pod:6955
15609 #, no-wrap
15610 msgid ""
15611 " char **\n"
15612 " guestfs_zfgrep (guestfs_h *g,\n"
15613 "                 const char *pattern,\n"
15614 "                 const char *path);\n"
15615 "\n"
15616 msgstr ""
15617
15618 # type: textblock
15619 #: ../src/guestfs-actions.pod:6960 ../fish/guestfish-actions.pod:4615
15620 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15621 msgstr ""
15622
15623 # type: =head2
15624 #: ../src/guestfs-actions.pod:6972
15625 msgid "guestfs_zfgrepi"
15626 msgstr ""
15627
15628 # type: verbatim
15629 #: ../src/guestfs-actions.pod:6974
15630 #, no-wrap
15631 msgid ""
15632 " char **\n"
15633 " guestfs_zfgrepi (guestfs_h *g,\n"
15634 "                  const char *pattern,\n"
15635 "                  const char *path);\n"
15636 "\n"
15637 msgstr ""
15638
15639 # type: textblock
15640 #: ../src/guestfs-actions.pod:6979 ../fish/guestfish-actions.pod:4625
15641 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15642 msgstr ""
15643
15644 # type: =head2
15645 #: ../src/guestfs-actions.pod:6991
15646 msgid "guestfs_zfile"
15647 msgstr ""
15648
15649 # type: verbatim
15650 #: ../src/guestfs-actions.pod:6993
15651 #, no-wrap
15652 msgid ""
15653 " char *\n"
15654 " guestfs_zfile (guestfs_h *g,\n"
15655 "                const char *meth,\n"
15656 "                const char *path);\n"
15657 "\n"
15658 msgstr ""
15659
15660 # type: textblock
15661 #: ../src/guestfs-actions.pod:6998 ../fish/guestfish-actions.pod:4635
15662 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15663 msgstr ""
15664
15665 # type: textblock
15666 #: ../src/guestfs-actions.pod:7001 ../fish/guestfish-actions.pod:4638
15667 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15668 msgstr ""
15669
15670 # type: textblock
15671 #: ../src/guestfs-actions.pod:7003
15672 msgid ""
15673 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15674 "files."
15675 msgstr ""
15676
15677 # type: textblock
15678 #: ../src/guestfs-actions.pod:7009 ../fish/guestfish-actions.pod:4643
15679 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15680 msgstr ""
15681
15682 # type: =head2
15683 #: ../src/guestfs-actions.pod:7018
15684 msgid "guestfs_zgrep"
15685 msgstr ""
15686
15687 # type: verbatim
15688 #: ../src/guestfs-actions.pod:7020
15689 #, no-wrap
15690 msgid ""
15691 " char **\n"
15692 " guestfs_zgrep (guestfs_h *g,\n"
15693 "                const char *regex,\n"
15694 "                const char *path);\n"
15695 "\n"
15696 msgstr ""
15697
15698 # type: textblock
15699 #: ../src/guestfs-actions.pod:7025 ../fish/guestfish-actions.pod:4654
15700 msgid "This calls the external C<zgrep> program and returns the matching lines."
15701 msgstr ""
15702
15703 # type: =head2
15704 #: ../src/guestfs-actions.pod:7037
15705 msgid "guestfs_zgrepi"
15706 msgstr ""
15707
15708 # type: verbatim
15709 #: ../src/guestfs-actions.pod:7039
15710 #, no-wrap
15711 msgid ""
15712 " char **\n"
15713 " guestfs_zgrepi (guestfs_h *g,\n"
15714 "                 const char *regex,\n"
15715 "                 const char *path);\n"
15716 "\n"
15717 msgstr ""
15718
15719 # type: textblock
15720 #: ../src/guestfs-actions.pod:7044 ../fish/guestfish-actions.pod:4664
15721 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15722 msgstr ""
15723
15724 # type: =item
15725 #: ../src/guestfs-availability.pod:3
15726 msgid "B<augeas>"
15727 msgstr ""
15728
15729 # type: textblock
15730 #: ../src/guestfs-availability.pod:5
15731 msgid ""
15732 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15733 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15734 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15735 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15736 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15737 msgstr ""
15738
15739 # type: =item
15740 #: ../src/guestfs-availability.pod:21
15741 msgid "B<inotify>"
15742 msgstr ""
15743
15744 # type: textblock
15745 #: ../src/guestfs-availability.pod:23
15746 msgid ""
15747 "The following functions: L</guestfs_inotify_add_watch> "
15748 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15749 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15750 msgstr ""
15751
15752 # type: =item
15753 #: ../src/guestfs-availability.pod:31
15754 msgid "B<linuxfsuuid>"
15755 msgstr ""
15756
15757 # type: textblock
15758 #: ../src/guestfs-availability.pod:33
15759 msgid ""
15760 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15761 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15762 msgstr ""
15763
15764 # type: =item
15765 #: ../src/guestfs-availability.pod:40
15766 msgid "B<linuxmodules>"
15767 msgstr ""
15768
15769 # type: textblock
15770 #: ../src/guestfs-availability.pod:42
15771 msgid "The following functions: L</guestfs_modprobe>"
15772 msgstr ""
15773
15774 # type: =item
15775 #: ../src/guestfs-availability.pod:45
15776 msgid "B<linuxxattrs>"
15777 msgstr ""
15778
15779 # type: textblock
15780 #: ../src/guestfs-availability.pod:47
15781 msgid ""
15782 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15783 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15784 "L</guestfs_removexattr> L</guestfs_setxattr>"
15785 msgstr ""
15786
15787 # type: =item
15788 #: ../src/guestfs-availability.pod:56
15789 msgid "B<luks>"
15790 msgstr ""
15791
15792 # type: textblock
15793 #: ../src/guestfs-availability.pod:58
15794 msgid ""
15795 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15796 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15797 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15798 msgstr ""
15799
15800 # type: =item
15801 #: ../src/guestfs-availability.pod:67
15802 msgid "B<lvm2>"
15803 msgstr ""
15804
15805 # type: textblock
15806 #: ../src/guestfs-availability.pod:69
15807 msgid ""
15808 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15809 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15810 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15811 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15812 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15813 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15814 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15815 "L</guestfs_vgs_full>"
15816 msgstr ""
15817
15818 # type: =item
15819 #: ../src/guestfs-availability.pod:92
15820 msgid "B<mknod>"
15821 msgstr ""
15822
15823 # type: textblock
15824 #: ../src/guestfs-availability.pod:94
15825 msgid ""
15826 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15827 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15828 msgstr ""
15829
15830 # type: =item
15831 #: ../src/guestfs-availability.pod:100
15832 msgid "B<ntfs3g>"
15833 msgstr ""
15834
15835 # type: textblock
15836 #: ../src/guestfs-availability.pod:102
15837 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15838 msgstr ""
15839
15840 # type: =item
15841 #: ../src/guestfs-availability.pod:105
15842 msgid "B<ntfsprogs>"
15843 msgstr ""
15844
15845 # type: textblock
15846 #: ../src/guestfs-availability.pod:107
15847 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15848 msgstr ""
15849
15850 # type: =item
15851 #: ../src/guestfs-availability.pod:111
15852 msgid "B<realpath>"
15853 msgstr ""
15854
15855 # type: textblock
15856 #: ../src/guestfs-availability.pod:113
15857 msgid "The following functions: L</guestfs_realpath>"
15858 msgstr ""
15859
15860 # type: =item
15861 #: ../src/guestfs-availability.pod:116
15862 msgid "B<scrub>"
15863 msgstr ""
15864
15865 # type: textblock
15866 #: ../src/guestfs-availability.pod:118
15867 msgid ""
15868 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15869 "L</guestfs_scrub_freespace>"
15870 msgstr ""
15871
15872 # type: =item
15873 #: ../src/guestfs-availability.pod:123
15874 msgid "B<selinux>"
15875 msgstr ""
15876
15877 # type: textblock
15878 #: ../src/guestfs-availability.pod:125
15879 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15880 msgstr ""
15881
15882 # type: =item
15883 #: ../src/guestfs-availability.pod:129
15884 msgid "B<xz>"
15885 msgstr ""
15886
15887 # type: textblock
15888 #: ../src/guestfs-availability.pod:131
15889 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15890 msgstr ""
15891
15892 # type: =item
15893 #: ../src/guestfs-availability.pod:135
15894 msgid "B<zerofree>"
15895 msgstr ""
15896
15897 # type: textblock
15898 #: ../src/guestfs-availability.pod:137
15899 msgid "The following functions: L</guestfs_zerofree>"
15900 msgstr ""
15901
15902 # type: =head2
15903 #: ../src/guestfs-structs.pod:1
15904 msgid "guestfs_int_bool"
15905 msgstr ""
15906
15907 # type: verbatim
15908 #: ../src/guestfs-structs.pod:3
15909 #, no-wrap
15910 msgid ""
15911 " struct guestfs_int_bool {\n"
15912 "   int32_t i;\n"
15913 "   int32_t b;\n"
15914 " };\n"
15915 " \n"
15916 msgstr ""
15917
15918 # type: verbatim
15919 #: ../src/guestfs-structs.pod:8
15920 #, no-wrap
15921 msgid ""
15922 " struct guestfs_int_bool_list {\n"
15923 "   uint32_t len; /* Number of elements in list. */\n"
15924 "   struct guestfs_int_bool *val; /* Elements. */\n"
15925 " };\n"
15926 " \n"
15927 msgstr ""
15928
15929 # type: verbatim
15930 #: ../src/guestfs-structs.pod:13
15931 #, no-wrap
15932 msgid ""
15933 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
15934 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
15935 "\n"
15936 msgstr ""
15937
15938 # type: =head2
15939 #: ../src/guestfs-structs.pod:16
15940 msgid "guestfs_lvm_pv"
15941 msgstr ""
15942
15943 # type: verbatim
15944 #: ../src/guestfs-structs.pod:18
15945 #, no-wrap
15946 msgid ""
15947 " struct guestfs_lvm_pv {\n"
15948 "   char *pv_name;\n"
15949 "   /* The next field is NOT nul-terminated, be careful when printing it: "
15950 "*/\n"
15951 "   char pv_uuid[32];\n"
15952 "   char *pv_fmt;\n"
15953 "   uint64_t pv_size;\n"
15954 "   uint64_t dev_size;\n"
15955 "   uint64_t pv_free;\n"
15956 "   uint64_t pv_used;\n"
15957 "   char *pv_attr;\n"
15958 "   int64_t pv_pe_count;\n"
15959 "   int64_t pv_pe_alloc_count;\n"
15960 "   char *pv_tags;\n"
15961 "   uint64_t pe_start;\n"
15962 "   int64_t pv_mda_count;\n"
15963 "   uint64_t pv_mda_free;\n"
15964 " };\n"
15965 " \n"
15966 msgstr ""
15967
15968 # type: verbatim
15969 #: ../src/guestfs-structs.pod:36
15970 #, no-wrap
15971 msgid ""
15972 " struct guestfs_lvm_pv_list {\n"
15973 "   uint32_t len; /* Number of elements in list. */\n"
15974 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
15975 " };\n"
15976 " \n"
15977 msgstr ""
15978
15979 # type: verbatim
15980 #: ../src/guestfs-structs.pod:41
15981 #, no-wrap
15982 msgid ""
15983 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
15984 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
15985 "\n"
15986 msgstr ""
15987
15988 # type: =head2
15989 #: ../src/guestfs-structs.pod:44
15990 msgid "guestfs_lvm_vg"
15991 msgstr ""
15992
15993 # type: verbatim
15994 #: ../src/guestfs-structs.pod:46
15995 #, no-wrap
15996 msgid ""
15997 " struct guestfs_lvm_vg {\n"
15998 "   char *vg_name;\n"
15999 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16000 "*/\n"
16001 "   char vg_uuid[32];\n"
16002 "   char *vg_fmt;\n"
16003 "   char *vg_attr;\n"
16004 "   uint64_t vg_size;\n"
16005 "   uint64_t vg_free;\n"
16006 "   char *vg_sysid;\n"
16007 "   uint64_t vg_extent_size;\n"
16008 "   int64_t vg_extent_count;\n"
16009 "   int64_t vg_free_count;\n"
16010 "   int64_t max_lv;\n"
16011 "   int64_t max_pv;\n"
16012 "   int64_t pv_count;\n"
16013 "   int64_t lv_count;\n"
16014 "   int64_t snap_count;\n"
16015 "   int64_t vg_seqno;\n"
16016 "   char *vg_tags;\n"
16017 "   int64_t vg_mda_count;\n"
16018 "   uint64_t vg_mda_free;\n"
16019 " };\n"
16020 " \n"
16021 msgstr ""
16022
16023 # type: verbatim
16024 #: ../src/guestfs-structs.pod:69
16025 #, no-wrap
16026 msgid ""
16027 " struct guestfs_lvm_vg_list {\n"
16028 "   uint32_t len; /* Number of elements in list. */\n"
16029 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16030 " };\n"
16031 " \n"
16032 msgstr ""
16033
16034 # type: verbatim
16035 #: ../src/guestfs-structs.pod:74
16036 #, no-wrap
16037 msgid ""
16038 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16039 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16040 "\n"
16041 msgstr ""
16042
16043 # type: =head2
16044 #: ../src/guestfs-structs.pod:77
16045 msgid "guestfs_lvm_lv"
16046 msgstr ""
16047
16048 # type: verbatim
16049 #: ../src/guestfs-structs.pod:79
16050 #, no-wrap
16051 msgid ""
16052 " struct guestfs_lvm_lv {\n"
16053 "   char *lv_name;\n"
16054 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16055 "*/\n"
16056 "   char lv_uuid[32];\n"
16057 "   char *lv_attr;\n"
16058 "   int64_t lv_major;\n"
16059 "   int64_t lv_minor;\n"
16060 "   int64_t lv_kernel_major;\n"
16061 "   int64_t lv_kernel_minor;\n"
16062 "   uint64_t lv_size;\n"
16063 "   int64_t seg_count;\n"
16064 "   char *origin;\n"
16065 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16066 "   float snap_percent;\n"
16067 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16068 "   float copy_percent;\n"
16069 "   char *move_pv;\n"
16070 "   char *lv_tags;\n"
16071 "   char *mirror_log;\n"
16072 "   char *modules;\n"
16073 " };\n"
16074 " \n"
16075 msgstr ""
16076
16077 # type: verbatim
16078 #: ../src/guestfs-structs.pod:101
16079 #, no-wrap
16080 msgid ""
16081 " struct guestfs_lvm_lv_list {\n"
16082 "   uint32_t len; /* Number of elements in list. */\n"
16083 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16084 " };\n"
16085 " \n"
16086 msgstr ""
16087
16088 # type: verbatim
16089 #: ../src/guestfs-structs.pod:106
16090 #, no-wrap
16091 msgid ""
16092 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16093 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16094 "\n"
16095 msgstr ""
16096
16097 # type: verbatim
16098 #: ../src/guestfs-structs.pod:111
16099 #, no-wrap
16100 msgid ""
16101 " struct guestfs_stat {\n"
16102 "   int64_t dev;\n"
16103 "   int64_t ino;\n"
16104 "   int64_t mode;\n"
16105 "   int64_t nlink;\n"
16106 "   int64_t uid;\n"
16107 "   int64_t gid;\n"
16108 "   int64_t rdev;\n"
16109 "   int64_t size;\n"
16110 "   int64_t blksize;\n"
16111 "   int64_t blocks;\n"
16112 "   int64_t atime;\n"
16113 "   int64_t mtime;\n"
16114 "   int64_t ctime;\n"
16115 " };\n"
16116 " \n"
16117 msgstr ""
16118
16119 # type: verbatim
16120 #: ../src/guestfs-structs.pod:127
16121 #, no-wrap
16122 msgid ""
16123 " struct guestfs_stat_list {\n"
16124 "   uint32_t len; /* Number of elements in list. */\n"
16125 "   struct guestfs_stat *val; /* Elements. */\n"
16126 " };\n"
16127 " \n"
16128 msgstr ""
16129
16130 # type: verbatim
16131 #: ../src/guestfs-structs.pod:132
16132 #, no-wrap
16133 msgid ""
16134 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16135 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16136 "\n"
16137 msgstr ""
16138
16139 # type: verbatim
16140 #: ../src/guestfs-structs.pod:137
16141 #, no-wrap
16142 msgid ""
16143 " struct guestfs_statvfs {\n"
16144 "   int64_t bsize;\n"
16145 "   int64_t frsize;\n"
16146 "   int64_t blocks;\n"
16147 "   int64_t bfree;\n"
16148 "   int64_t bavail;\n"
16149 "   int64_t files;\n"
16150 "   int64_t ffree;\n"
16151 "   int64_t favail;\n"
16152 "   int64_t fsid;\n"
16153 "   int64_t flag;\n"
16154 "   int64_t namemax;\n"
16155 " };\n"
16156 " \n"
16157 msgstr ""
16158
16159 # type: verbatim
16160 #: ../src/guestfs-structs.pod:151
16161 #, no-wrap
16162 msgid ""
16163 " struct guestfs_statvfs_list {\n"
16164 "   uint32_t len; /* Number of elements in list. */\n"
16165 "   struct guestfs_statvfs *val; /* Elements. */\n"
16166 " };\n"
16167 " \n"
16168 msgstr ""
16169
16170 # type: verbatim
16171 #: ../src/guestfs-structs.pod:156
16172 #, no-wrap
16173 msgid ""
16174 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16175 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16176 "\n"
16177 msgstr ""
16178
16179 # type: =head2
16180 #: ../src/guestfs-structs.pod:159
16181 msgid "guestfs_dirent"
16182 msgstr ""
16183
16184 # type: verbatim
16185 #: ../src/guestfs-structs.pod:161
16186 #, no-wrap
16187 msgid ""
16188 " struct guestfs_dirent {\n"
16189 "   int64_t ino;\n"
16190 "   char ftyp;\n"
16191 "   char *name;\n"
16192 " };\n"
16193 " \n"
16194 msgstr ""
16195
16196 # type: verbatim
16197 #: ../src/guestfs-structs.pod:167
16198 #, no-wrap
16199 msgid ""
16200 " struct guestfs_dirent_list {\n"
16201 "   uint32_t len; /* Number of elements in list. */\n"
16202 "   struct guestfs_dirent *val; /* Elements. */\n"
16203 " };\n"
16204 " \n"
16205 msgstr ""
16206
16207 # type: verbatim
16208 #: ../src/guestfs-structs.pod:172
16209 #, no-wrap
16210 msgid ""
16211 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16212 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16213 "\n"
16214 msgstr ""
16215
16216 # type: verbatim
16217 #: ../src/guestfs-structs.pod:177
16218 #, no-wrap
16219 msgid ""
16220 " struct guestfs_version {\n"
16221 "   int64_t major;\n"
16222 "   int64_t minor;\n"
16223 "   int64_t release;\n"
16224 "   char *extra;\n"
16225 " };\n"
16226 " \n"
16227 msgstr ""
16228
16229 # type: verbatim
16230 #: ../src/guestfs-structs.pod:184
16231 #, no-wrap
16232 msgid ""
16233 " struct guestfs_version_list {\n"
16234 "   uint32_t len; /* Number of elements in list. */\n"
16235 "   struct guestfs_version *val; /* Elements. */\n"
16236 " };\n"
16237 " \n"
16238 msgstr ""
16239
16240 # type: verbatim
16241 #: ../src/guestfs-structs.pod:189
16242 #, no-wrap
16243 msgid ""
16244 " void guestfs_free_version (struct guestfs_free_version *);\n"
16245 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16246 "\n"
16247 msgstr ""
16248
16249 # type: =head2
16250 #: ../src/guestfs-structs.pod:192
16251 msgid "guestfs_xattr"
16252 msgstr ""
16253
16254 # type: verbatim
16255 #: ../src/guestfs-structs.pod:194
16256 #, no-wrap
16257 msgid ""
16258 " struct guestfs_xattr {\n"
16259 "   char *attrname;\n"
16260 "   /* The next two fields describe a byte array. */\n"
16261 "   uint32_t attrval_len;\n"
16262 "   char *attrval;\n"
16263 " };\n"
16264 " \n"
16265 msgstr ""
16266
16267 # type: verbatim
16268 #: ../src/guestfs-structs.pod:201
16269 #, no-wrap
16270 msgid ""
16271 " struct guestfs_xattr_list {\n"
16272 "   uint32_t len; /* Number of elements in list. */\n"
16273 "   struct guestfs_xattr *val; /* Elements. */\n"
16274 " };\n"
16275 " \n"
16276 msgstr ""
16277
16278 # type: verbatim
16279 #: ../src/guestfs-structs.pod:206
16280 #, no-wrap
16281 msgid ""
16282 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16283 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16284 "\n"
16285 msgstr ""
16286
16287 # type: =head2
16288 #: ../src/guestfs-structs.pod:209
16289 msgid "guestfs_inotify_event"
16290 msgstr ""
16291
16292 # type: verbatim
16293 #: ../src/guestfs-structs.pod:211
16294 #, no-wrap
16295 msgid ""
16296 " struct guestfs_inotify_event {\n"
16297 "   int64_t in_wd;\n"
16298 "   uint32_t in_mask;\n"
16299 "   uint32_t in_cookie;\n"
16300 "   char *in_name;\n"
16301 " };\n"
16302 " \n"
16303 msgstr ""
16304
16305 # type: verbatim
16306 #: ../src/guestfs-structs.pod:218
16307 #, no-wrap
16308 msgid ""
16309 " struct guestfs_inotify_event_list {\n"
16310 "   uint32_t len; /* Number of elements in list. */\n"
16311 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16312 " };\n"
16313 " \n"
16314 msgstr ""
16315
16316 # type: verbatim
16317 #: ../src/guestfs-structs.pod:223
16318 #, no-wrap
16319 msgid ""
16320 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16321 " void guestfs_free_inotify_event_list (struct "
16322 "guestfs_free_inotify_event_list *);\n"
16323 "\n"
16324 msgstr ""
16325
16326 # type: =head2
16327 #: ../src/guestfs-structs.pod:226
16328 msgid "guestfs_partition"
16329 msgstr ""
16330
16331 # type: verbatim
16332 #: ../src/guestfs-structs.pod:228
16333 #, no-wrap
16334 msgid ""
16335 " struct guestfs_partition {\n"
16336 "   int32_t part_num;\n"
16337 "   uint64_t part_start;\n"
16338 "   uint64_t part_end;\n"
16339 "   uint64_t part_size;\n"
16340 " };\n"
16341 " \n"
16342 msgstr ""
16343
16344 # type: verbatim
16345 #: ../src/guestfs-structs.pod:235
16346 #, no-wrap
16347 msgid ""
16348 " struct guestfs_partition_list {\n"
16349 "   uint32_t len; /* Number of elements in list. */\n"
16350 "   struct guestfs_partition *val; /* Elements. */\n"
16351 " };\n"
16352 " \n"
16353 msgstr ""
16354
16355 # type: verbatim
16356 #: ../src/guestfs-structs.pod:240
16357 #, no-wrap
16358 msgid ""
16359 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16360 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16361 "\n"
16362 msgstr ""
16363
16364 # type: =head2
16365 #: ../src/guestfs-structs.pod:243
16366 msgid "guestfs_application"
16367 msgstr ""
16368
16369 # type: verbatim
16370 #: ../src/guestfs-structs.pod:245
16371 #, no-wrap
16372 msgid ""
16373 " struct guestfs_application {\n"
16374 "   char *app_name;\n"
16375 "   char *app_display_name;\n"
16376 "   int32_t app_epoch;\n"
16377 "   char *app_version;\n"
16378 "   char *app_release;\n"
16379 "   char *app_install_path;\n"
16380 "   char *app_trans_path;\n"
16381 "   char *app_publisher;\n"
16382 "   char *app_url;\n"
16383 "   char *app_source_package;\n"
16384 "   char *app_summary;\n"
16385 "   char *app_description;\n"
16386 " };\n"
16387 " \n"
16388 msgstr ""
16389
16390 # type: verbatim
16391 #: ../src/guestfs-structs.pod:260
16392 #, no-wrap
16393 msgid ""
16394 " struct guestfs_application_list {\n"
16395 "   uint32_t len; /* Number of elements in list. */\n"
16396 "   struct guestfs_application *val; /* Elements. */\n"
16397 " };\n"
16398 " \n"
16399 msgstr ""
16400
16401 # type: verbatim
16402 #: ../src/guestfs-structs.pod:265
16403 #, no-wrap
16404 msgid ""
16405 " void guestfs_free_application (struct guestfs_free_application *);\n"
16406 " void guestfs_free_application_list (struct guestfs_free_application_list "
16407 "*);\n"
16408 "\n"
16409 msgstr ""
16410
16411 # type: textblock
16412 #: ../fish/guestfish.pod:5
16413 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16414 msgstr ""
16415
16416 # type: verbatim
16417 #: ../fish/guestfish.pod:9
16418 #, no-wrap
16419 msgid ""
16420 " guestfish [--options] [commands]\n"
16421 "\n"
16422 msgstr ""
16423
16424 # type: verbatim
16425 #: ../fish/guestfish.pod:11
16426 #, no-wrap
16427 msgid ""
16428 " guestfish\n"
16429 "\n"
16430 msgstr ""
16431
16432 # type: verbatim
16433 #: ../fish/guestfish.pod:13
16434 #, no-wrap
16435 msgid ""
16436 " guestfish [--ro|--rw] -a disk.img\n"
16437 "\n"
16438 msgstr ""
16439
16440 # type: verbatim
16441 #: ../fish/guestfish.pod:15
16442 #, no-wrap
16443 msgid ""
16444 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16445 "\n"
16446 msgstr ""
16447
16448 # type: verbatim
16449 #: ../fish/guestfish.pod:17
16450 #, no-wrap
16451 msgid ""
16452 " guestfish -d libvirt-domain\n"
16453 "\n"
16454 msgstr ""
16455
16456 # type: verbatim
16457 #: ../fish/guestfish.pod:19
16458 #, no-wrap
16459 msgid ""
16460 " guestfish [--ro|--rw] -a disk.img -i\n"
16461 "\n"
16462 msgstr ""
16463
16464 # type: verbatim
16465 #: ../fish/guestfish.pod:21
16466 #, no-wrap
16467 msgid ""
16468 " guestfish -d libvirt-domain -i\n"
16469 "\n"
16470 msgstr ""
16471
16472 # type: =head1
16473 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16474 msgid "WARNING"
16475 msgstr ""
16476
16477 # type: textblock
16478 #: ../fish/guestfish.pod:25
16479 msgid ""
16480 "Using guestfish in read/write mode on live virtual machines can be "
16481 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16482 "option to use guestfish safely if the disk image or virtual machine might be "
16483 "live."
16484 msgstr ""
16485
16486 # type: textblock
16487 #: ../fish/guestfish.pod:32
16488 msgid ""
16489 "Guestfish is a shell and command-line tool for examining and modifying "
16490 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16491 "functionality of the guestfs API, see L<guestfs(3)>."
16492 msgstr ""
16493
16494 # type: textblock
16495 #: ../fish/guestfish.pod:36
16496 msgid ""
16497 "Guestfish gives you structured access to the libguestfs API, from shell "
16498 "scripts or the command line or interactively.  If you want to rescue a "
16499 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16500 "command."
16501 msgstr ""
16502
16503 # type: =head1
16504 #: ../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
16505 msgid "EXAMPLES"
16506 msgstr ""
16507
16508 # type: =head2
16509 #: ../fish/guestfish.pod:43
16510 msgid "As an interactive shell"
16511 msgstr ""
16512
16513 # type: verbatim
16514 #: ../fish/guestfish.pod:45
16515 #, no-wrap
16516 msgid ""
16517 " $ guestfish\n"
16518 " \n"
16519 msgstr ""
16520
16521 # type: verbatim
16522 #: ../fish/guestfish.pod:47
16523 #, no-wrap
16524 msgid ""
16525 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16526 " editing virtual machine filesystems.\n"
16527 " \n"
16528 msgstr ""
16529
16530 # type: verbatim
16531 #: ../fish/guestfish.pod:50
16532 #, no-wrap
16533 msgid ""
16534 " Type: 'help' for a list of commands\n"
16535 "       'man' to read the manual\n"
16536 "       'quit' to quit the shell\n"
16537 " \n"
16538 msgstr ""
16539
16540 # type: verbatim
16541 #: ../fish/guestfish.pod:54
16542 #, no-wrap
16543 msgid ""
16544 " ><fs> add-ro disk.img\n"
16545 " ><fs> run\n"
16546 " ><fs> list-filesystems\n"
16547 " /dev/sda1: ext4\n"
16548 " /dev/vg_guest/lv_root: ext4\n"
16549 " /dev/vg_guest/lv_swap: swap\n"
16550 " ><fs> mount /dev/vg_guest/lv_root /\n"
16551 " ><fs> cat /etc/fstab\n"
16552 " # /etc/fstab\n"
16553 " # Created by anaconda\n"
16554 " [...]\n"
16555 " ><fs> exit\n"
16556 "\n"
16557 msgstr ""
16558
16559 # type: =head2
16560 #: ../fish/guestfish.pod:67
16561 msgid "From shell scripts"
16562 msgstr ""
16563
16564 # type: textblock
16565 #: ../fish/guestfish.pod:69
16566 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16567 msgstr ""
16568
16569 # type: verbatim
16570 #: ../fish/guestfish.pod:71
16571 #, no-wrap
16572 msgid ""
16573 " guestfish <<_EOF_\n"
16574 " add disk.img\n"
16575 " run\n"
16576 " mount /dev/vg_guest/lv_root /\n"
16577 " write /etc/motd \"Welcome, new users\"\n"
16578 " _EOF_\n"
16579 "\n"
16580 msgstr ""
16581
16582 # type: textblock
16583 #: ../fish/guestfish.pod:78
16584 msgid "List the LVM logical volumes in a disk image:"
16585 msgstr ""
16586
16587 # type: verbatim
16588 #: ../fish/guestfish.pod:80
16589 #, no-wrap
16590 msgid ""
16591 " guestfish -a disk.img --ro <<_EOF_\n"
16592 " run\n"
16593 " lvs\n"
16594 " _EOF_\n"
16595 "\n"
16596 msgstr ""
16597
16598 # type: textblock
16599 #: ../fish/guestfish.pod:85
16600 msgid "List all the filesystems in a disk image:"
16601 msgstr ""
16602
16603 # type: verbatim
16604 #: ../fish/guestfish.pod:87
16605 #, no-wrap
16606 msgid ""
16607 " guestfish -a disk.img --ro <<_EOF_\n"
16608 " run\n"
16609 " list-filesystems\n"
16610 " _EOF_\n"
16611 "\n"
16612 msgstr ""
16613
16614 # type: =head2
16615 #: ../fish/guestfish.pod:92
16616 msgid "On one command line"
16617 msgstr ""
16618
16619 # type: textblock
16620 #: ../fish/guestfish.pod:94
16621 msgid "Update C</etc/resolv.conf> in a guest:"
16622 msgstr ""
16623
16624 # type: verbatim
16625 #: ../fish/guestfish.pod:96
16626 #, no-wrap
16627 msgid ""
16628 " guestfish \\\n"
16629 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16630 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16631 "\n"
16632 msgstr ""
16633
16634 # type: textblock
16635 #: ../fish/guestfish.pod:100
16636 msgid "Edit C</boot/grub/grub.conf> interactively:"
16637 msgstr ""
16638
16639 # type: verbatim
16640 #: ../fish/guestfish.pod:102
16641 #, no-wrap
16642 msgid ""
16643 " guestfish --rw --add disk.img \\\n"
16644 "   --mount /dev/vg_guest/lv_root \\\n"
16645 "   --mount /dev/sda1:/boot \\\n"
16646 "   edit /boot/grub/grub.conf\n"
16647 "\n"
16648 msgstr ""
16649
16650 # type: =head2
16651 #: ../fish/guestfish.pod:107
16652 msgid "Mount disks automatically"
16653 msgstr ""
16654
16655 # type: textblock
16656 #: ../fish/guestfish.pod:109
16657 msgid ""
16658 "Use the I<-i> option to automatically mount the disks from a virtual "
16659 "machine:"
16660 msgstr ""
16661
16662 # type: verbatim
16663 #: ../fish/guestfish.pod:112
16664 #, no-wrap
16665 msgid ""
16666 " guestfish --ro -a disk.img -i cat /etc/group\n"
16667 "\n"
16668 msgstr ""
16669
16670 # type: verbatim
16671 #: ../fish/guestfish.pod:114
16672 #, no-wrap
16673 msgid ""
16674 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16675 "\n"
16676 msgstr ""
16677
16678 # type: textblock
16679 #: ../fish/guestfish.pod:116
16680 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16681 msgstr ""
16682
16683 # type: verbatim
16684 #: ../fish/guestfish.pod:118
16685 #, no-wrap
16686 msgid ""
16687 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16688 "\n"
16689 msgstr ""
16690
16691 # type: =head2
16692 #: ../fish/guestfish.pod:120
16693 msgid "As a script interpreter"
16694 msgstr ""
16695
16696 # type: textblock
16697 #: ../fish/guestfish.pod:122
16698 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16699 msgstr ""
16700
16701 # type: verbatim
16702 #: ../fish/guestfish.pod:124
16703 #, no-wrap
16704 msgid ""
16705 " #!/usr/bin/guestfish -f\n"
16706 " sparse test1.img 100M\n"
16707 " run\n"
16708 " part-disk /dev/sda mbr\n"
16709 " mkfs ext2 /dev/sda1\n"
16710 "\n"
16711 msgstr ""
16712
16713 # type: =head2
16714 #: ../fish/guestfish.pod:130
16715 msgid "Start with a prepared disk"
16716 msgstr ""
16717
16718 # type: textblock
16719 #: ../fish/guestfish.pod:132
16720 msgid ""
16721 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16722 "single ext2-formatted partition:"
16723 msgstr ""
16724
16725 # type: verbatim
16726 #: ../fish/guestfish.pod:135
16727 #, no-wrap
16728 msgid ""
16729 " guestfish -N fs\n"
16730 "\n"
16731 msgstr ""
16732
16733 # type: textblock
16734 #: ../fish/guestfish.pod:137
16735 msgid "To list what is available do:"
16736 msgstr ""
16737
16738 # type: verbatim
16739 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
16740 #, no-wrap
16741 msgid ""
16742 " guestfish -N help | less\n"
16743 "\n"
16744 msgstr ""
16745
16746 # type: =head2
16747 #: ../fish/guestfish.pod:141
16748 msgid "Remote control"
16749 msgstr ""
16750
16751 # type: verbatim
16752 #: ../fish/guestfish.pod:143
16753 #, no-wrap
16754 msgid ""
16755 " eval \"`guestfish --listen`\"\n"
16756 " guestfish --remote add-ro disk.img\n"
16757 " guestfish --remote run\n"
16758 " guestfish --remote lvs\n"
16759 "\n"
16760 msgstr ""
16761
16762 # type: =head1
16763 #: ../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
16764 msgid "OPTIONS"
16765 msgstr ""
16766
16767 # type: =item
16768 #: ../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
16769 msgid "B<--help>"
16770 msgstr ""
16771
16772 # type: textblock
16773 #: ../fish/guestfish.pod:154
16774 msgid "Displays general help on options."
16775 msgstr ""
16776
16777 # type: =item
16778 #: ../fish/guestfish.pod:156
16779 msgid "B<-h> | B<--cmd-help>"
16780 msgstr ""
16781
16782 # type: textblock
16783 #: ../fish/guestfish.pod:158
16784 msgid "Lists all available guestfish commands."
16785 msgstr ""
16786
16787 # type: =item
16788 #: ../fish/guestfish.pod:160
16789 msgid "B<-h cmd> | B<--cmd-help cmd>"
16790 msgstr ""
16791
16792 # type: textblock
16793 #: ../fish/guestfish.pod:162
16794 msgid "Displays detailed help on a single command C<cmd>."
16795 msgstr ""
16796
16797 # type: =item
16798 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16799 msgid "B<-a image> | B<--add image>"
16800 msgstr ""
16801
16802 # type: textblock
16803 #: ../fish/guestfish.pod:166
16804 msgid "Add a block device or virtual machine image to the shell."
16805 msgstr ""
16806
16807 # type: textblock
16808 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16809 msgid ""
16810 "The format of the disk image is auto-detected.  To override this and force a "
16811 "particular format use the I<--format=..> option."
16812 msgstr ""
16813
16814 # type: =item
16815 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16816 msgid "B<-c URI> | B<--connect URI>"
16817 msgstr ""
16818
16819 # type: textblock
16820 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16821 msgid ""
16822 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16823 "URI to use.  The default is to use the default libvirt connection."
16824 msgstr ""
16825
16826 # type: =item
16827 #: ../fish/guestfish.pod:177
16828 msgid "B<--csh>"
16829 msgstr ""
16830
16831 # type: textblock
16832 #: ../fish/guestfish.pod:179
16833 msgid ""
16834 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16835 "section L</REMOTE CONTROL AND CSH> below."
16836 msgstr ""
16837
16838 # type: =item
16839 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16840 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16841 msgstr ""
16842
16843 # type: textblock
16844 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16845 msgid ""
16846 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16847 "used, then any libvirt domain can be used.  However in write mode, only "
16848 "libvirt domains which are shut down can be named here."
16849 msgstr ""
16850
16851 # type: =item
16852 #: ../fish/guestfish.pod:188
16853 msgid "B<-D> | B<--no-dest-paths>"
16854 msgstr ""
16855
16856 # type: textblock
16857 #: ../fish/guestfish.pod:190
16858 msgid ""
16859 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16860 "to hit the tab key to complete paths on the guest filesystem, but this "
16861 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16862 "allow this feature to be disabled."
16863 msgstr ""
16864
16865 # type: =item
16866 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16867 msgid "B<--echo-keys>"
16868 msgstr ""
16869
16870 # type: textblock
16871 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16872 msgid ""
16873 "When prompting for keys and passphrases, guestfish normally turns echoing "
16874 "off so you cannot see what you are typing.  If you are not worried about "
16875 "Tempest attacks and there is no one else in the room you can specify this "
16876 "flag to see what you are typing."
16877 msgstr ""
16878
16879 # type: =item
16880 #: ../fish/guestfish.pod:202
16881 msgid "B<-f file> | B<--file file>"
16882 msgstr ""
16883
16884 # type: textblock
16885 #: ../fish/guestfish.pod:204
16886 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16887 msgstr ""
16888
16889 # type: verbatim
16890 #: ../fish/guestfish.pod:207
16891 #, no-wrap
16892 msgid ""
16893 " #!/usr/bin/guestfish -f\n"
16894 "\n"
16895 msgstr ""
16896
16897 # type: =item
16898 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16899 msgid "B<--format=raw|qcow2|..> | B<--format>"
16900 msgstr ""
16901
16902 # type: textblock
16903 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
16904 msgid ""
16905 "The default for the I<-a> option is to auto-detect the format of the disk "
16906 "image.  Using this forces the disk format for I<-a> options which follow on "
16907 "the command line.  Using I<--format> with no argument switches back to "
16908 "auto-detection for subsequent I<-a> options."
16909 msgstr ""
16910
16911 # type: textblock
16912 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
16913 msgid "For example:"
16914 msgstr ""
16915
16916 # type: verbatim
16917 #: ../fish/guestfish.pod:218
16918 #, no-wrap
16919 msgid ""
16920 " guestfish --format=raw -a disk.img\n"
16921 "\n"
16922 msgstr ""
16923
16924 # type: textblock
16925 #: ../fish/guestfish.pod:220
16926 msgid "forces raw format (no auto-detection) for C<disk.img>."
16927 msgstr ""
16928
16929 # type: verbatim
16930 #: ../fish/guestfish.pod:222
16931 #, no-wrap
16932 msgid ""
16933 " guestfish --format=raw -a disk.img --format -a another.img\n"
16934 "\n"
16935 msgstr ""
16936
16937 # type: textblock
16938 #: ../fish/guestfish.pod:224
16939 msgid ""
16940 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
16941 "auto-detection for C<another.img>."
16942 msgstr ""
16943
16944 # type: textblock
16945 #: ../fish/guestfish.pod:227
16946 msgid ""
16947 "If you have untrusted raw-format guest disk images, you should use this "
16948 "option to specify the disk format.  This avoids a possible security problem "
16949 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16950 msgstr ""
16951
16952 # type: =item
16953 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
16954 msgid "B<-i> | B<--inspector>"
16955 msgstr ""
16956
16957 # type: textblock
16958 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
16959 msgid ""
16960 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16961 "system and mount filesystems as they would be mounted on the real virtual "
16962 "machine."
16963 msgstr ""
16964
16965 # type: textblock
16966 #: ../fish/guestfish.pod:238
16967 msgid "Typical usage is either:"
16968 msgstr ""
16969
16970 # type: verbatim
16971 #: ../fish/guestfish.pod:240
16972 #, no-wrap
16973 msgid ""
16974 " guestfish -d myguest -i\n"
16975 "\n"
16976 msgstr ""
16977
16978 # type: textblock
16979 #: ../fish/guestfish.pod:242
16980 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16981 msgstr ""
16982
16983 # type: verbatim
16984 #: ../fish/guestfish.pod:244
16985 #, no-wrap
16986 msgid ""
16987 " guestfish --ro -d myguest -i\n"
16988 "\n"
16989 msgstr ""
16990
16991 # type: textblock
16992 #: ../fish/guestfish.pod:246
16993 msgid "(for active domains, readonly), or specify the block device directly:"
16994 msgstr ""
16995
16996 # type: verbatim
16997 #: ../fish/guestfish.pod:248
16998 #, no-wrap
16999 msgid ""
17000 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17001 "\n"
17002 msgstr ""
17003
17004 # type: textblock
17005 #: ../fish/guestfish.pod:250
17006 msgid ""
17007 "Note that the command line syntax changed slightly over older versions of "
17008 "guestfish.  You can still use the old syntax:"
17009 msgstr ""
17010
17011 # type: verbatim
17012 #: ../fish/guestfish.pod:253
17013 #, no-wrap
17014 msgid ""
17015 " guestfish [--ro] -i disk.img\n"
17016 "\n"
17017 msgstr ""
17018
17019 # type: verbatim
17020 #: ../fish/guestfish.pod:255
17021 #, no-wrap
17022 msgid ""
17023 " guestfish [--ro] -i libvirt-domain\n"
17024 "\n"
17025 msgstr ""
17026
17027 # type: =item
17028 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17029 msgid "B<--keys-from-stdin>"
17030 msgstr ""
17031
17032 # type: textblock
17033 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17034 msgid ""
17035 "Read key or passphrase parameters from stdin.  The default is to try to read "
17036 "passphrases from the user by opening C</dev/tty>."
17037 msgstr ""
17038
17039 # type: =item
17040 #: ../fish/guestfish.pod:262
17041 msgid "B<--listen>"
17042 msgstr ""
17043
17044 # type: textblock
17045 #: ../fish/guestfish.pod:264
17046 msgid ""
17047 "Fork into the background and listen for remote commands.  See section "
17048 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17049 msgstr ""
17050
17051 # type: =item
17052 #: ../fish/guestfish.pod:267
17053 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17054 msgstr ""
17055
17056 # type: textblock
17057 #: ../fish/guestfish.pod:269
17058 msgid "Mount the named partition or logical volume on the given mountpoint."
17059 msgstr ""
17060
17061 # type: textblock
17062 #: ../fish/guestfish.pod:271
17063 msgid "If the mountpoint is omitted, it defaults to C</>."
17064 msgstr ""
17065
17066 # type: textblock
17067 #: ../fish/guestfish.pod:273
17068 msgid "You have to mount something on C</> before most commands will work."
17069 msgstr ""
17070
17071 # type: textblock
17072 #: ../fish/guestfish.pod:275
17073 msgid ""
17074 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17075 "launched."
17076 msgstr ""
17077
17078 # type: textblock
17079 #: ../fish/guestfish.pod:278
17080 msgid ""
17081 "If you don't know what filesystems a disk image contains, you can either run "
17082 "guestfish without this option, then list the partitions, filesystems and LVs "
17083 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17084 "commands), or you can use the L<virt-filesystems(1)> program."
17085 msgstr ""
17086
17087 # type: =item
17088 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17089 msgid "B<-n> | B<--no-sync>"
17090 msgstr ""
17091
17092 # type: textblock
17093 #: ../fish/guestfish.pod:286
17094 msgid ""
17095 "Disable autosync.  This is enabled by default.  See the discussion of "
17096 "autosync in the L<guestfs(3)> manpage."
17097 msgstr ""
17098
17099 # type: =item
17100 #: ../fish/guestfish.pod:289
17101 msgid "B<-N type> | B<--new type> | B<-N help>"
17102 msgstr ""
17103
17104 # type: textblock
17105 #: ../fish/guestfish.pod:291
17106 msgid ""
17107 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17108 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17109 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17110 "IMAGES> below."
17111 msgstr ""
17112
17113 # type: =item
17114 #: ../fish/guestfish.pod:296
17115 msgid "B<--progress-bars>"
17116 msgstr ""
17117
17118 # type: textblock
17119 #: ../fish/guestfish.pod:298
17120 msgid "Enable progress bars, even when guestfish is used non-interactively."
17121 msgstr ""
17122
17123 # type: textblock
17124 #: ../fish/guestfish.pod:300
17125 msgid ""
17126 "Progress bars are enabled by default when guestfish is used as an "
17127 "interactive shell."
17128 msgstr ""
17129
17130 # type: =item
17131 #: ../fish/guestfish.pod:303
17132 msgid "B<--no-progress-bars>"
17133 msgstr ""
17134
17135 # type: textblock
17136 #: ../fish/guestfish.pod:305
17137 msgid "Disable progress bars."
17138 msgstr ""
17139
17140 # type: =item
17141 #: ../fish/guestfish.pod:307
17142 msgid "B<--remote[=pid]>"
17143 msgstr ""
17144
17145 # type: textblock
17146 #: ../fish/guestfish.pod:309
17147 msgid ""
17148 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17149 "CONTROL GUESTFISH OVER A SOCKET> below."
17150 msgstr ""
17151
17152 # type: =item
17153 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17154 msgid "B<-r> | B<--ro>"
17155 msgstr ""
17156
17157 # type: textblock
17158 #: ../fish/guestfish.pod:314
17159 msgid ""
17160 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17161 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17162 msgstr ""
17163
17164 # type: textblock
17165 #: ../fish/guestfish.pod:317
17166 msgid ""
17167 "The option must always be used if the disk image or virtual machine might be "
17168 "running, and is generally recommended in cases where you don't need write "
17169 "access to the disk."
17170 msgstr ""
17171
17172 # type: textblock
17173 #: ../fish/guestfish.pod:321
17174 msgid ""
17175 "Note that prepared disk images created with I<-N> are not affected by the "
17176 "I<--ro> option."
17177 msgstr ""
17178
17179 # type: textblock
17180 #: ../fish/guestfish.pod:324
17181 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17182 msgstr ""
17183
17184 # type: =item
17185 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208
17186 msgid "B<--selinux>"
17187 msgstr ""
17188
17189 # type: textblock
17190 #: ../fish/guestfish.pod:328
17191 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17192 msgstr ""
17193
17194 # type: =item
17195 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17196 msgid "B<-v> | B<--verbose>"
17197 msgstr ""
17198
17199 # type: textblock
17200 #: ../fish/guestfish.pod:332
17201 msgid ""
17202 "Enable very verbose messages.  This is particularly useful if you find a "
17203 "bug."
17204 msgstr ""
17205
17206 # type: =item
17207 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17208 msgid "B<-V> | B<--version>"
17209 msgstr ""
17210
17211 # type: textblock
17212 #: ../fish/guestfish.pod:337
17213 msgid "Display the guestfish / libguestfs version number and exit."
17214 msgstr ""
17215
17216 # type: =item
17217 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17218 msgid "B<-w> | B<--rw>"
17219 msgstr ""
17220
17221 # type: textblock
17222 #: ../fish/guestfish.pod:341
17223 msgid ""
17224 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17225 "WRITE> below."
17226 msgstr ""
17227
17228 # type: =item
17229 #: ../fish/guestfish.pod:344
17230 msgid "B<-x>"
17231 msgstr ""
17232
17233 # type: textblock
17234 #: ../fish/guestfish.pod:346
17235 msgid "Echo each command before executing it."
17236 msgstr ""
17237
17238 # type: =head1
17239 #: ../fish/guestfish.pod:350
17240 msgid "COMMANDS ON COMMAND LINE"
17241 msgstr ""
17242
17243 # type: textblock
17244 #: ../fish/guestfish.pod:352
17245 msgid "Any additional (non-option) arguments are treated as commands to execute."
17246 msgstr ""
17247
17248 # type: textblock
17249 #: ../fish/guestfish.pod:355
17250 msgid ""
17251 "Commands to execute should be separated by a colon (C<:>), where the colon "
17252 "is a separate parameter.  Thus:"
17253 msgstr ""
17254
17255 # type: verbatim
17256 #: ../fish/guestfish.pod:358
17257 #, no-wrap
17258 msgid ""
17259 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17260 "\n"
17261 msgstr ""
17262
17263 # type: textblock
17264 #: ../fish/guestfish.pod:360
17265 msgid ""
17266 "If there are no additional arguments, then we enter a shell, either an "
17267 "interactive shell with a prompt (if the input is a terminal) or a "
17268 "non-interactive shell."
17269 msgstr ""
17270
17271 # type: textblock
17272 #: ../fish/guestfish.pod:364
17273 msgid ""
17274 "In either command line mode or non-interactive shell, the first command that "
17275 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17276 "prompt) if a command fails, you can continue to enter commands."
17277 msgstr ""
17278
17279 # type: =head1
17280 #: ../fish/guestfish.pod:369
17281 msgid "USING launch (OR run)"
17282 msgstr ""
17283
17284 # type: textblock
17285 #: ../fish/guestfish.pod:371
17286 msgid ""
17287 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17288 "then launch it, then mount any disks you need, and finally issue "
17289 "actions/commands.  So the general order of the day is:"
17290 msgstr ""
17291
17292 # type: textblock
17293 #: ../fish/guestfish.pod:379
17294 msgid "add or -a/--add"
17295 msgstr ""
17296
17297 # type: textblock
17298 #: ../fish/guestfish.pod:383
17299 msgid "launch (aka run)"
17300 msgstr ""
17301
17302 # type: textblock
17303 #: ../fish/guestfish.pod:387
17304 msgid "mount or -m/--mount"
17305 msgstr ""
17306
17307 # type: textblock
17308 #: ../fish/guestfish.pod:391
17309 msgid "any other commands"
17310 msgstr ""
17311
17312 # type: textblock
17313 #: ../fish/guestfish.pod:395
17314 msgid ""
17315 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17316 "guest before mounting or performing any other commands."
17317 msgstr ""
17318
17319 # type: textblock
17320 #: ../fish/guestfish.pod:398
17321 msgid ""
17322 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17323 "I<--new> options were given then C<run> is done automatically, simply "
17324 "because guestfish can't perform the action you asked for without doing this."
17325 msgstr ""
17326
17327 # type: =head1
17328 #: ../fish/guestfish.pod:403
17329 msgid "OPENING DISKS FOR READ AND WRITE"
17330 msgstr ""
17331
17332 # type: textblock
17333 #: ../fish/guestfish.pod:405
17334 msgid ""
17335 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17336 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17337 "open disk images read-only or for writing."
17338 msgstr ""
17339
17340 # type: textblock
17341 #: ../fish/guestfish.pod:409
17342 msgid ""
17343 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17344 "disk images supplied on the command line for write.  To open a disk image "
17345 "read-only you have to do I<-a image --ro>."
17346 msgstr ""
17347
17348 # type: textblock
17349 #: ../fish/guestfish.pod:413
17350 msgid ""
17351 "This matters: If you accidentally open a live VM disk image writable then "
17352 "you will cause irreversible disk corruption."
17353 msgstr ""
17354
17355 # type: textblock
17356 #: ../fish/guestfish.pod:416
17357 msgid ""
17358 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17359 "images will be opened read-only.  You will have to either specify "
17360 "I<guestfish --rw> or change a configuration file in order to get write "
17361 "access for disk images specified by those other command line options."
17362 msgstr ""
17363
17364 # type: textblock
17365 #: ../fish/guestfish.pod:421
17366 msgid ""
17367 "This version of guestfish has a I<--rw> option which does nothing (it is "
17368 "already the default).  However it is highly recommended that you use this "
17369 "option to indicate that guestfish needs write access, and to prepare your "
17370 "scripts for the day when this option will be required for write access."
17371 msgstr ""
17372
17373 # type: textblock
17374 #: ../fish/guestfish.pod:427
17375 msgid ""
17376 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17377 "other libguestfs program apart from guestfish and guestmount."
17378 msgstr ""
17379
17380 # type: =head1
17381 #: ../fish/guestfish.pod:430
17382 msgid "QUOTING"
17383 msgstr ""
17384
17385 # type: textblock
17386 #: ../fish/guestfish.pod:432
17387 msgid ""
17388 "You can quote ordinary parameters using either single or double quotes.  For "
17389 "example:"
17390 msgstr ""
17391
17392 # type: verbatim
17393 #: ../fish/guestfish.pod:435
17394 #, no-wrap
17395 msgid ""
17396 " add \"file with a space.img\"\n"
17397 "\n"
17398 msgstr ""
17399
17400 # type: verbatim
17401 #: ../fish/guestfish.pod:437
17402 #, no-wrap
17403 msgid ""
17404 " rm '/file name'\n"
17405 "\n"
17406 msgstr ""
17407
17408 # type: verbatim
17409 #: ../fish/guestfish.pod:439
17410 #, no-wrap
17411 msgid ""
17412 " rm '/\"'\n"
17413 "\n"
17414 msgstr ""
17415
17416 # type: textblock
17417 #: ../fish/guestfish.pod:441
17418 msgid ""
17419 "A few commands require a list of strings to be passed.  For these, use a "
17420 "whitespace-separated list, enclosed in quotes.  Strings containing "
17421 "whitespace to be passed through must be enclosed in single quotes.  A "
17422 "literal single quote must be escaped with a backslash."
17423 msgstr ""
17424
17425 # type: verbatim
17426 #: ../fish/guestfish.pod:446
17427 #, no-wrap
17428 msgid ""
17429 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17430 " command \"/bin/echo 'foo      bar'\"\n"
17431 " command \"/bin/echo \\'foo\\'\"\n"
17432 "\n"
17433 msgstr ""
17434
17435 # type: =head1
17436 #: ../fish/guestfish.pod:450
17437 msgid "OPTIONAL ARGUMENTS"
17438 msgstr ""
17439
17440 # type: textblock
17441 #: ../fish/guestfish.pod:452
17442 msgid ""
17443 "Some commands take optional arguments.  These arguments appear in this "
17444 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17445 msgstr ""
17446
17447 # type: verbatim
17448 #: ../fish/guestfish.pod:456
17449 #, no-wrap
17450 msgid ""
17451 " add-drive-opts filename\n"
17452 "\n"
17453 msgstr ""
17454
17455 # type: verbatim
17456 #: ../fish/guestfish.pod:458
17457 #, no-wrap
17458 msgid ""
17459 " add-drive-opts filename readonly:true\n"
17460 "\n"
17461 msgstr ""
17462
17463 # type: verbatim
17464 #: ../fish/guestfish.pod:460
17465 #, no-wrap
17466 msgid ""
17467 " add-drive-opts filename format:qcow2 readonly:false\n"
17468 "\n"
17469 msgstr ""
17470
17471 # type: textblock
17472 #: ../fish/guestfish.pod:462
17473 msgid ""
17474 "Each optional argument can appear at most once.  All optional arguments must "
17475 "appear after the required ones."
17476 msgstr ""
17477
17478 # type: =head1
17479 #: ../fish/guestfish.pod:465
17480 msgid "NUMBERS"
17481 msgstr ""
17482
17483 # type: textblock
17484 #: ../fish/guestfish.pod:467
17485 msgid "This section applies to all commands which can take integers as parameters."
17486 msgstr ""
17487
17488 # type: =head2
17489 #: ../fish/guestfish.pod:470
17490 msgid "SIZE SUFFIX"
17491 msgstr ""
17492
17493 # type: textblock
17494 #: ../fish/guestfish.pod:472
17495 msgid ""
17496 "When the command takes a parameter measured in bytes, you can use one of the "
17497 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17498 msgstr ""
17499
17500 # type: =item
17501 #: ../fish/guestfish.pod:478
17502 msgid "B<k> or B<K> or B<KiB>"
17503 msgstr ""
17504
17505 # type: textblock
17506 #: ../fish/guestfish.pod:480
17507 msgid "The size in kilobytes (multiplied by 1024)."
17508 msgstr ""
17509
17510 # type: =item
17511 #: ../fish/guestfish.pod:482
17512 msgid "B<KB>"
17513 msgstr ""
17514
17515 # type: textblock
17516 #: ../fish/guestfish.pod:484
17517 msgid "The size in SI 1000 byte units."
17518 msgstr ""
17519
17520 # type: =item
17521 #: ../fish/guestfish.pod:486
17522 msgid "B<M> or B<MiB>"
17523 msgstr ""
17524
17525 # type: textblock
17526 #: ../fish/guestfish.pod:488
17527 msgid "The size in megabytes (multiplied by 1048576)."
17528 msgstr ""
17529
17530 # type: =item
17531 #: ../fish/guestfish.pod:490
17532 msgid "B<MB>"
17533 msgstr ""
17534
17535 # type: textblock
17536 #: ../fish/guestfish.pod:492
17537 msgid "The size in SI 1000000 byte units."
17538 msgstr ""
17539
17540 # type: =item
17541 #: ../fish/guestfish.pod:494
17542 msgid "B<G> or B<GiB>"
17543 msgstr ""
17544
17545 # type: textblock
17546 #: ../fish/guestfish.pod:496
17547 msgid "The size in gigabytes (multiplied by 2**30)."
17548 msgstr ""
17549
17550 # type: =item
17551 #: ../fish/guestfish.pod:498
17552 msgid "B<GB>"
17553 msgstr ""
17554
17555 # type: textblock
17556 #: ../fish/guestfish.pod:500
17557 msgid "The size in SI 10**9 byte units."
17558 msgstr ""
17559
17560 # type: =item
17561 #: ../fish/guestfish.pod:502
17562 msgid "B<T> or B<TiB>"
17563 msgstr ""
17564
17565 # type: textblock
17566 #: ../fish/guestfish.pod:504
17567 msgid "The size in terabytes (multiplied by 2**40)."
17568 msgstr ""
17569
17570 # type: =item
17571 #: ../fish/guestfish.pod:506
17572 msgid "B<TB>"
17573 msgstr ""
17574
17575 # type: textblock
17576 #: ../fish/guestfish.pod:508
17577 msgid "The size in SI 10**12 byte units."
17578 msgstr ""
17579
17580 # type: =item
17581 #: ../fish/guestfish.pod:510
17582 msgid "B<P> or B<PiB>"
17583 msgstr ""
17584
17585 # type: textblock
17586 #: ../fish/guestfish.pod:512
17587 msgid "The size in petabytes (multiplied by 2**50)."
17588 msgstr ""
17589
17590 # type: =item
17591 #: ../fish/guestfish.pod:514
17592 msgid "B<PB>"
17593 msgstr ""
17594
17595 # type: textblock
17596 #: ../fish/guestfish.pod:516
17597 msgid "The size in SI 10**15 byte units."
17598 msgstr ""
17599
17600 # type: =item
17601 #: ../fish/guestfish.pod:518
17602 msgid "B<E> or B<EiB>"
17603 msgstr ""
17604
17605 # type: textblock
17606 #: ../fish/guestfish.pod:520
17607 msgid "The size in exabytes (multiplied by 2**60)."
17608 msgstr ""
17609
17610 # type: =item
17611 #: ../fish/guestfish.pod:522
17612 msgid "B<EB>"
17613 msgstr ""
17614
17615 # type: textblock
17616 #: ../fish/guestfish.pod:524
17617 msgid "The size in SI 10**18 byte units."
17618 msgstr ""
17619
17620 # type: =item
17621 #: ../fish/guestfish.pod:526
17622 msgid "B<Z> or B<ZiB>"
17623 msgstr ""
17624
17625 # type: textblock
17626 #: ../fish/guestfish.pod:528
17627 msgid "The size in zettabytes (multiplied by 2**70)."
17628 msgstr ""
17629
17630 # type: =item
17631 #: ../fish/guestfish.pod:530
17632 msgid "B<ZB>"
17633 msgstr ""
17634
17635 # type: textblock
17636 #: ../fish/guestfish.pod:532
17637 msgid "The size in SI 10**21 byte units."
17638 msgstr ""
17639
17640 # type: =item
17641 #: ../fish/guestfish.pod:534
17642 msgid "B<Y> or B<YiB>"
17643 msgstr ""
17644
17645 # type: textblock
17646 #: ../fish/guestfish.pod:536
17647 msgid "The size in yottabytes (multiplied by 2**80)."
17648 msgstr ""
17649
17650 # type: =item
17651 #: ../fish/guestfish.pod:538
17652 msgid "B<YB>"
17653 msgstr ""
17654
17655 # type: textblock
17656 #: ../fish/guestfish.pod:540
17657 msgid "The size in SI 10**24 byte units."
17658 msgstr ""
17659
17660 # type: verbatim
17661 #: ../fish/guestfish.pod:546
17662 #, no-wrap
17663 msgid ""
17664 " truncate-size /file 1G\n"
17665 "\n"
17666 msgstr ""
17667
17668 # type: textblock
17669 #: ../fish/guestfish.pod:548
17670 msgid "would truncate the file to 1 gigabyte."
17671 msgstr ""
17672
17673 # type: textblock
17674 #: ../fish/guestfish.pod:550
17675 msgid ""
17676 "Be careful because a few commands take sizes in kilobytes or megabytes "
17677 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17678 "Adding a suffix will probably not do what you expect."
17679 msgstr ""
17680
17681 # type: =head2
17682 #: ../fish/guestfish.pod:554
17683 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17684 msgstr ""
17685
17686 # type: textblock
17687 #: ../fish/guestfish.pod:556
17688 msgid ""
17689 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17690 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17691 msgstr ""
17692
17693 # type: verbatim
17694 #: ../fish/guestfish.pod:559
17695 #, no-wrap
17696 msgid ""
17697 " 1234      decimal number 1234\n"
17698 " 02322     octal number, equivalent to decimal 1234\n"
17699 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17700 "\n"
17701 msgstr ""
17702
17703 # type: textblock
17704 #: ../fish/guestfish.pod:563
17705 msgid ""
17706 "When using the C<chmod> command, you almost always want to specify an octal "
17707 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17708 "L<chmod(1)> program):"
17709 msgstr ""
17710
17711 # type: verbatim
17712 #: ../fish/guestfish.pod:567
17713 #, no-wrap
17714 msgid ""
17715 " chmod 0777 /public  # OK\n"
17716 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17717 "\n"
17718 msgstr ""
17719
17720 # type: textblock
17721 #: ../fish/guestfish.pod:570
17722 msgid ""
17723 "Commands that return numbers usually print them in decimal, but some "
17724 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17725 "octal, preceeded by C<0>)."
17726 msgstr ""
17727
17728 # type: =head1
17729 #: ../fish/guestfish.pod:574
17730 msgid "WILDCARDS AND GLOBBING"
17731 msgstr ""
17732
17733 # type: textblock
17734 #: ../fish/guestfish.pod:576
17735 msgid ""
17736 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17737 "(globbing) by default.  So for example the following will not do what you "
17738 "expect:"
17739 msgstr ""
17740
17741 # type: verbatim
17742 #: ../fish/guestfish.pod:580
17743 #, no-wrap
17744 msgid ""
17745 " rm-rf /home/*\n"
17746 "\n"
17747 msgstr ""
17748
17749 # type: textblock
17750 #: ../fish/guestfish.pod:582
17751 msgid ""
17752 "Assuming you don't have a directory called literally C</home/*> then the "
17753 "above command will return an error."
17754 msgstr ""
17755
17756 # type: textblock
17757 #: ../fish/guestfish.pod:585
17758 msgid "To perform wildcard expansion, use the C<glob> command."
17759 msgstr ""
17760
17761 # type: verbatim
17762 #: ../fish/guestfish.pod:587
17763 #, no-wrap
17764 msgid ""
17765 " glob rm-rf /home/*\n"
17766 "\n"
17767 msgstr ""
17768
17769 # type: textblock
17770 #: ../fish/guestfish.pod:589
17771 msgid ""
17772 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17773 "many times), equivalent to:"
17774 msgstr ""
17775
17776 # type: verbatim
17777 #: ../fish/guestfish.pod:592
17778 #, no-wrap
17779 msgid ""
17780 " rm-rf /home/jim\n"
17781 " rm-rf /home/joe\n"
17782 " rm-rf /home/mary\n"
17783 "\n"
17784 msgstr ""
17785
17786 # type: textblock
17787 #: ../fish/guestfish.pod:596
17788 msgid "C<glob> only works on simple guest paths and not on device names."
17789 msgstr ""
17790
17791 # type: textblock
17792 #: ../fish/guestfish.pod:598
17793 msgid ""
17794 "If you have several parameters, each containing a wildcard, then glob will "
17795 "perform a Cartesian product."
17796 msgstr ""
17797
17798 # type: =head1
17799 #: ../fish/guestfish.pod:601
17800 msgid "COMMENTS"
17801 msgstr ""
17802
17803 # type: textblock
17804 #: ../fish/guestfish.pod:603
17805 msgid ""
17806 "Any line which starts with a I<#> character is treated as a comment and "
17807 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17808 "a command.  For example:"
17809 msgstr ""
17810
17811 # type: verbatim
17812 #: ../fish/guestfish.pod:607
17813 #, no-wrap
17814 msgid ""
17815 " # this is a comment\n"
17816 "         # this is a comment\n"
17817 " foo # NOT a comment\n"
17818 "\n"
17819 msgstr ""
17820
17821 # type: textblock
17822 #: ../fish/guestfish.pod:611
17823 msgid "Blank lines are also ignored."
17824 msgstr ""
17825
17826 # type: =head1
17827 #: ../fish/guestfish.pod:613
17828 msgid "RUNNING COMMANDS LOCALLY"
17829 msgstr ""
17830
17831 # type: textblock
17832 #: ../fish/guestfish.pod:615
17833 msgid ""
17834 "Any line which starts with a I<!> character is treated as a command sent to "
17835 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17836 msgstr ""
17837
17838 # type: verbatim
17839 #: ../fish/guestfish.pod:619
17840 #, no-wrap
17841 msgid ""
17842 " !mkdir local\n"
17843 " tgz-out /remote local/remote-data.tar.gz\n"
17844 "\n"
17845 msgstr ""
17846
17847 # type: textblock
17848 #: ../fish/guestfish.pod:622
17849 msgid ""
17850 "will create a directory C<local> on the host, and then export the contents "
17851 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17852 "(See C<tgz-out>)."
17853 msgstr ""
17854
17855 # type: textblock
17856 #: ../fish/guestfish.pod:626
17857 msgid ""
17858 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17859 "effect, due to the way that subprocesses work in Unix."
17860 msgstr ""
17861
17862 # type: =head1
17863 #: ../fish/guestfish.pod:629
17864 msgid "PIPES"
17865 msgstr ""
17866
17867 # type: textblock
17868 #: ../fish/guestfish.pod:631
17869 msgid ""
17870 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17871 "command (a guestfish command) to the second command (any host command).  For "
17872 "example:"
17873 msgstr ""
17874
17875 # type: verbatim
17876 #: ../fish/guestfish.pod:635
17877 #, no-wrap
17878 msgid ""
17879 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17880 "\n"
17881 msgstr ""
17882
17883 # type: textblock
17884 #: ../fish/guestfish.pod:637
17885 msgid ""
17886 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17887 "program).  The above command would list all accounts in the guest filesystem "
17888 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17889 msgstr ""
17890
17891 # type: verbatim
17892 #: ../fish/guestfish.pod:642
17893 #, no-wrap
17894 msgid ""
17895 " hexdump /bin/ls | head\n"
17896 " list-devices | tail -1\n"
17897 " tgz-out / - | tar ztf -\n"
17898 "\n"
17899 msgstr ""
17900
17901 # type: textblock
17902 #: ../fish/guestfish.pod:646
17903 msgid ""
17904 "The space before the pipe symbol is required, any space after the pipe "
17905 "symbol is optional.  Everything after the pipe symbol is just passed "
17906 "straight to the host shell, so it can contain redirections, globs and "
17907 "anything else that makes sense on the host side."
17908 msgstr ""
17909
17910 # type: textblock
17911 #: ../fish/guestfish.pod:651
17912 msgid ""
17913 "To use a literal argument which begins with a pipe symbol, you have to quote "
17914 "it, eg:"
17915 msgstr ""
17916
17917 # type: verbatim
17918 #: ../fish/guestfish.pod:654
17919 #, no-wrap
17920 msgid ""
17921 " echo \"|\"\n"
17922 "\n"
17923 msgstr ""
17924
17925 # type: =head1
17926 #: ../fish/guestfish.pod:656
17927 msgid "HOME DIRECTORIES"
17928 msgstr ""
17929
17930 # type: textblock
17931 #: ../fish/guestfish.pod:658
17932 msgid ""
17933 "If a parameter starts with the character C<~> then the tilde may be expanded "
17934 "as a home directory path (either C<~> for the current user's home directory, "
17935 "or C<~user> for another user)."
17936 msgstr ""
17937
17938 # type: textblock
17939 #: ../fish/guestfish.pod:662
17940 msgid ""
17941 "Note that home directory expansion happens for users known I<on the host>, "
17942 "not in the guest filesystem."
17943 msgstr ""
17944
17945 # type: textblock
17946 #: ../fish/guestfish.pod:665
17947 msgid ""
17948 "To use a literal argument which begins with a tilde, you have to quote it, "
17949 "eg:"
17950 msgstr ""
17951
17952 # type: verbatim
17953 #: ../fish/guestfish.pod:668
17954 #, no-wrap
17955 msgid ""
17956 " echo \"~\"\n"
17957 "\n"
17958 msgstr ""
17959
17960 # type: textblock
17961 #: ../fish/guestfish.pod:672
17962 msgid ""
17963 "Libguestfs has some support for Linux guests encrypted according to the "
17964 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17965 "disk encryption systems used by modern Linux guests.  Currently only "
17966 "LVM-on-LUKS is supported."
17967 msgstr ""
17968
17969 # type: textblock
17970 #: ../fish/guestfish.pod:677
17971 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17972 msgstr ""
17973
17974 # type: verbatim
17975 #: ../fish/guestfish.pod:679
17976 #, no-wrap
17977 msgid ""
17978 " ><fs> vfs-type /dev/sda2\n"
17979 " crypto_LUKS\n"
17980 "\n"
17981 msgstr ""
17982
17983 # type: textblock
17984 #: ../fish/guestfish.pod:682
17985 msgid ""
17986 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17987 "device called C</dev/mapper/luksdev>."
17988 msgstr ""
17989
17990 # type: verbatim
17991 #: ../fish/guestfish.pod:685
17992 #, no-wrap
17993 msgid ""
17994 " ><fs> luks-open /dev/sda2 luksdev\n"
17995 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17996 "\n"
17997 msgstr ""
17998
17999 # type: textblock
18000 #: ../fish/guestfish.pod:688
18001 msgid ""
18002 "Finally you have to tell LVM to scan for volume groups on the newly created "
18003 "mapper device:"
18004 msgstr ""
18005
18006 # type: verbatim
18007 #: ../fish/guestfish.pod:691
18008 #, no-wrap
18009 msgid ""
18010 " vgscan\n"
18011 " vg-activate-all true\n"
18012 "\n"
18013 msgstr ""
18014
18015 # type: textblock
18016 #: ../fish/guestfish.pod:694
18017 msgid "The logical volume(s) can now be mounted in the usual way."
18018 msgstr ""
18019
18020 # type: textblock
18021 #: ../fish/guestfish.pod:696
18022 msgid ""
18023 "Before closing a LUKS device you must unmount any logical volumes on it and "
18024 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18025 "one.  Then you can close the mapper device:"
18026 msgstr ""
18027
18028 # type: verbatim
18029 #: ../fish/guestfish.pod:700
18030 #, no-wrap
18031 msgid ""
18032 " vg-activate false /dev/VG\n"
18033 " luks-close /dev/mapper/luksdev\n"
18034 "\n"
18035 msgstr ""
18036
18037 # type: =head1
18038 #: ../fish/guestfish.pod:703
18039 msgid "WINDOWS PATHS"
18040 msgstr ""
18041
18042 # type: textblock
18043 #: ../fish/guestfish.pod:705
18044 msgid ""
18045 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18046 "(with some limitations).  The following commands are equivalent:"
18047 msgstr ""
18048
18049 # type: verbatim
18050 #: ../fish/guestfish.pod:708
18051 #, no-wrap
18052 msgid ""
18053 " file /WINDOWS/system32/config/system.LOG\n"
18054 "\n"
18055 msgstr ""
18056
18057 # type: verbatim
18058 #: ../fish/guestfish.pod:710
18059 #, no-wrap
18060 msgid ""
18061 " file win:/windows/system32/config/system.log\n"
18062 "\n"
18063 msgstr ""
18064
18065 # type: verbatim
18066 #: ../fish/guestfish.pod:712
18067 #, no-wrap
18068 msgid ""
18069 " file win:\\windows\\system32\\config\\system.log\n"
18070 "\n"
18071 msgstr ""
18072
18073 # type: verbatim
18074 #: ../fish/guestfish.pod:714
18075 #, no-wrap
18076 msgid ""
18077 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18078 "\n"
18079 msgstr ""
18080
18081 # type: textblock
18082 #: ../fish/guestfish.pod:716
18083 msgid ""
18084 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18085 "handles case insensitivity like Windows would.  This only works in argument "
18086 "positions that expect a path."
18087 msgstr ""
18088
18089 # type: =head1
18090 #: ../fish/guestfish.pod:720
18091 msgid "UPLOADING AND DOWNLOADING FILES"
18092 msgstr ""
18093
18094 # type: textblock
18095 #: ../fish/guestfish.pod:722
18096 msgid ""
18097 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18098 "others which upload from or download to a local file, you can use the "
18099 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18100 msgstr ""
18101
18102 # type: verbatim
18103 #: ../fish/guestfish.pod:726
18104 #, no-wrap
18105 msgid ""
18106 " upload - /foo\n"
18107 "\n"
18108 msgstr ""
18109
18110 # type: textblock
18111 #: ../fish/guestfish.pod:728
18112 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
18113 msgstr ""
18114
18115 # type: verbatim
18116 #: ../fish/guestfish.pod:731
18117 #, no-wrap
18118 msgid ""
18119 " tar-out /etc - | tar tf -\n"
18120 "\n"
18121 msgstr ""
18122
18123 # type: textblock
18124 #: ../fish/guestfish.pod:733
18125 msgid ""
18126 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18127 "command (see L</PIPES>)."
18128 msgstr ""
18129
18130 # type: textblock
18131 #: ../fish/guestfish.pod:736
18132 msgid ""
18133 "When using C<-> to read from stdin, the input is read up to the end of "
18134 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18135 "some arbitrary end marker:"
18136 msgstr ""
18137
18138 # type: verbatim
18139 #: ../fish/guestfish.pod:740
18140 #, no-wrap
18141 msgid ""
18142 " upload -<<END /foo\n"
18143 " input line 1\n"
18144 " input line 2\n"
18145 " input line 3\n"
18146 " END\n"
18147 "\n"
18148 msgstr ""
18149
18150 # type: textblock
18151 #: ../fish/guestfish.pod:746
18152 msgid ""
18153 "Any string of characters can be used instead of C<END>.  The end marker must "
18154 "appear on a line of its own, without any preceeding or following characters "
18155 "(not even spaces)."
18156 msgstr ""
18157
18158 # type: textblock
18159 #: ../fish/guestfish.pod:750
18160 msgid ""
18161 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18162 "upload local files (so-called \"FileIn\" parameters in the generator)."
18163 msgstr ""
18164
18165 # type: =head1
18166 #: ../fish/guestfish.pod:753
18167 msgid "EXIT ON ERROR BEHAVIOUR"
18168 msgstr ""
18169
18170 # type: textblock
18171 #: ../fish/guestfish.pod:755
18172 msgid ""
18173 "By default, guestfish will ignore any errors when in interactive mode "
18174 "(ie. taking commands from a human over a tty), and will exit on the first "
18175 "error in non-interactive mode (scripts, commands given on the command line)."
18176 msgstr ""
18177
18178 # type: textblock
18179 #: ../fish/guestfish.pod:760
18180 msgid ""
18181 "If you prefix a command with a I<-> character, then that command will not "
18182 "cause guestfish to exit, even if that (one) command returns an error."
18183 msgstr ""
18184
18185 # type: =head1
18186 #: ../fish/guestfish.pod:764
18187 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18188 msgstr ""
18189
18190 # type: textblock
18191 #: ../fish/guestfish.pod:766
18192 msgid ""
18193 "Guestfish can be remote-controlled over a socket.  This is useful "
18194 "particularly in shell scripts where you want to make several different "
18195 "changes to a filesystem, but you don't want the overhead of starting up a "
18196 "guestfish process each time."
18197 msgstr ""
18198
18199 # type: textblock
18200 #: ../fish/guestfish.pod:771
18201 msgid "Start a guestfish server process using:"
18202 msgstr ""
18203
18204 # type: verbatim
18205 #: ../fish/guestfish.pod:773
18206 #, no-wrap
18207 msgid ""
18208 " eval \"`guestfish --listen`\"\n"
18209 "\n"
18210 msgstr ""
18211
18212 # type: textblock
18213 #: ../fish/guestfish.pod:775
18214 msgid "and then send it commands by doing:"
18215 msgstr ""
18216
18217 # type: verbatim
18218 #: ../fish/guestfish.pod:777
18219 #, no-wrap
18220 msgid ""
18221 " guestfish --remote cmd [...]\n"
18222 "\n"
18223 msgstr ""
18224
18225 # type: textblock
18226 #: ../fish/guestfish.pod:779
18227 msgid "To cause the server to exit, send it the exit command:"
18228 msgstr ""
18229
18230 # type: verbatim
18231 #: ../fish/guestfish.pod:781
18232 #, no-wrap
18233 msgid ""
18234 " guestfish --remote exit\n"
18235 "\n"
18236 msgstr ""
18237
18238 # type: textblock
18239 #: ../fish/guestfish.pod:783
18240 msgid ""
18241 "Note that the server will normally exit if there is an error in a command.  "
18242 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18243 "BEHAVIOUR>."
18244 msgstr ""
18245
18246 # type: =head2
18247 #: ../fish/guestfish.pod:787
18248 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18249 msgstr ""
18250
18251 # type: textblock
18252 #: ../fish/guestfish.pod:789
18253 msgid ""
18254 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18255 "is how the I<--remote> option knows where to send the commands.  You can "
18256 "have several guestfish listener processes running using:"
18257 msgstr ""
18258
18259 # type: verbatim
18260 #: ../fish/guestfish.pod:793
18261 #, no-wrap
18262 msgid ""
18263 " eval \"`guestfish --listen`\"\n"
18264 " pid1=$GUESTFISH_PID\n"
18265 " eval \"`guestfish --listen`\"\n"
18266 " pid2=$GUESTFISH_PID\n"
18267 " ...\n"
18268 " guestfish --remote=$pid1 cmd\n"
18269 " guestfish --remote=$pid2 cmd\n"
18270 "\n"
18271 msgstr ""
18272
18273 # type: =head2
18274 #: ../fish/guestfish.pod:801
18275 msgid "REMOTE CONTROL AND CSH"
18276 msgstr ""
18277
18278 # type: textblock
18279 #: ../fish/guestfish.pod:803
18280 msgid ""
18281 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18282 "option:"
18283 msgstr ""
18284
18285 # type: verbatim
18286 #: ../fish/guestfish.pod:806
18287 #, no-wrap
18288 msgid ""
18289 " eval \"`guestfish --listen --csh`\"\n"
18290 "\n"
18291 msgstr ""
18292
18293 # type: =head2
18294 #: ../fish/guestfish.pod:808
18295 msgid "REMOTE CONTROL DETAILS"
18296 msgstr ""
18297
18298 # type: textblock
18299 #: ../fish/guestfish.pod:810
18300 msgid ""
18301 "Remote control happens over a Unix domain socket called "
18302 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18303 "of the process, and C<$PID> is the process ID of the server."
18304 msgstr ""
18305
18306 # type: textblock
18307 #: ../fish/guestfish.pod:814
18308 msgid "Guestfish client and server versions must match exactly."
18309 msgstr ""
18310
18311 # type: =head1
18312 #: ../fish/guestfish.pod:816
18313 msgid "PREPARED DISK IMAGES"
18314 msgstr ""
18315
18316 # type: textblock
18317 #: ../fish/guestfish.pod:818
18318 msgid ""
18319 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18320 "preformatted disk images that guestfish can make for you to save typing.  "
18321 "This is particularly useful for testing purposes.  This option is used "
18322 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18323 "can be mixed with I<-a>)."
18324 msgstr ""
18325
18326 # type: textblock
18327 #: ../fish/guestfish.pod:824
18328 msgid ""
18329 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18330 "the second and so on.  Existing files in the current directory are "
18331 "I<overwritten>."
18332 msgstr ""
18333
18334 # type: textblock
18335 #: ../fish/guestfish.pod:828
18336 msgid ""
18337 "The type briefly describes how the disk should be sized, partitioned, how "
18338 "filesystem(s) should be created, and how content should be added.  "
18339 "Optionally the type can be followed by extra parameters, separated by C<:> "
18340 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
18341 "sparsely-allocated disk, containing a single partition, with the partition "
18342 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
18343 "on a 1GB disk instead."
18344 msgstr ""
18345
18346 # type: textblock
18347 #: ../fish/guestfish.pod:836
18348 msgid "To list the available types and any extra parameters they take, run:"
18349 msgstr ""
18350
18351 # type: textblock
18352 #: ../fish/guestfish.pod:840
18353 msgid ""
18354 "Note that the prepared filesystem is not mounted.  You would usually have to "
18355 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18356 msgstr ""
18357
18358 # type: textblock
18359 #: ../fish/guestfish.pod:844
18360 msgid ""
18361 "If any I<-N> or I<--new> options are given, the guest is automatically "
18362 "launched."
18363 msgstr ""
18364
18365 # type: textblock
18366 #: ../fish/guestfish.pod:849
18367 msgid "Create a 100MB disk with an ext4-formatted partition:"
18368 msgstr ""
18369
18370 # type: verbatim
18371 #: ../fish/guestfish.pod:851
18372 #, no-wrap
18373 msgid ""
18374 " guestfish -N fs:ext4\n"
18375 "\n"
18376 msgstr ""
18377
18378 # type: textblock
18379 #: ../fish/guestfish.pod:853
18380 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18381 msgstr ""
18382
18383 # type: verbatim
18384 #: ../fish/guestfish.pod:855
18385 #, no-wrap
18386 msgid ""
18387 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18388 "\n"
18389 msgstr ""
18390
18391 # type: textblock
18392 #: ../fish/guestfish.pod:857
18393 msgid "Create a blank 200MB disk:"
18394 msgstr ""
18395
18396 # type: verbatim
18397 #: ../fish/guestfish.pod:859
18398 #, no-wrap
18399 msgid ""
18400 " guestfish -N disk:200M\n"
18401 "\n"
18402 msgstr ""
18403
18404 # type: =head1
18405 #: ../fish/guestfish.pod:861
18406 msgid "PROGRESS BARS"
18407 msgstr ""
18408
18409 # type: textblock
18410 #: ../fish/guestfish.pod:863
18411 msgid ""
18412 "Some (not all) long-running commands send progress notification messages as "
18413 "they are running.  Guestfish turns these messages into progress bars."
18414 msgstr ""
18415
18416 # type: textblock
18417 #: ../fish/guestfish.pod:867
18418 msgid ""
18419 "When a command that supports progress bars takes longer than two seconds to "
18420 "run, and if progress bars are enabled, then you will see one appearing below "
18421 "the command:"
18422 msgstr ""
18423
18424 # type: verbatim
18425 #: ../fish/guestfish.pod:871
18426 #, no-wrap
18427 msgid ""
18428 " ><fs> copy-size /large-file /another-file 2048M\n"
18429 " / 10% [#####-----------------------------------------] 00:30\n"
18430 "\n"
18431 msgstr ""
18432
18433 # type: textblock
18434 #: ../fish/guestfish.pod:874
18435 msgid ""
18436 "The spinner on the left hand side moves round once for every progress "
18437 "notification received from the backend.  This is a (reasonably) golden "
18438 "assurance that the command is \"doing something\" even if the progress bar "
18439 "is not moving, because the command is able to send the progress "
18440 "notifications.  When the bar reaches 100% and the command finishes, the "
18441 "spinner disappears."
18442 msgstr ""
18443
18444 # type: textblock
18445 #: ../fish/guestfish.pod:881
18446 msgid ""
18447 "Progress bars are enabled by default when guestfish is used interactively.  "
18448 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18449 "and you can disable them completely using I<--no-progress-bars>."
18450 msgstr ""
18451
18452 # type: =head1
18453 #: ../fish/guestfish.pod:886
18454 msgid "GUESTFISH COMMANDS"
18455 msgstr ""
18456
18457 # type: textblock
18458 #: ../fish/guestfish.pod:888
18459 msgid ""
18460 "The commands in this section are guestfish convenience commands, in other "
18461 "words, they are not part of the L<guestfs(3)> API."
18462 msgstr ""
18463
18464 # type: =head2
18465 #: ../fish/guestfish.pod:891
18466 msgid "help"
18467 msgstr ""
18468
18469 # type: verbatim
18470 #: ../fish/guestfish.pod:893
18471 #, no-wrap
18472 msgid ""
18473 " help\n"
18474 " help cmd\n"
18475 "\n"
18476 msgstr ""
18477
18478 # type: textblock
18479 #: ../fish/guestfish.pod:896
18480 msgid "Without any parameter, this provides general help."
18481 msgstr ""
18482
18483 # type: textblock
18484 #: ../fish/guestfish.pod:898
18485 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18486 msgstr ""
18487
18488 # type: =head2
18489 #: ../fish/guestfish.pod:900
18490 msgid "quit | exit"
18491 msgstr ""
18492
18493 # type: textblock
18494 #: ../fish/guestfish.pod:902
18495 msgid "This exits guestfish.  You can also use C<^D> key."
18496 msgstr ""
18497
18498 # type: textblock
18499 #: ../fish/guestfish.pod:904
18500 msgid "@FISH_COMMANDS@"
18501 msgstr ""
18502
18503 # type: =head1
18504 #: ../fish/guestfish.pod:906
18505 msgid "COMMANDS"
18506 msgstr ""
18507
18508 # type: =head1
18509 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
18510 msgid "EXIT CODE"
18511 msgstr ""
18512
18513 # type: textblock
18514 #: ../fish/guestfish.pod:912
18515 msgid ""
18516 "guestfish returns 0 if the commands completed without error, or 1 if there "
18517 "was an error."
18518 msgstr ""
18519
18520 # type: =item
18521 #: ../fish/guestfish.pod:919
18522 msgid "EDITOR"
18523 msgstr ""
18524
18525 # type: textblock
18526 #: ../fish/guestfish.pod:921
18527 msgid ""
18528 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18529 "C<vi>."
18530 msgstr ""
18531
18532 # type: =item
18533 #: ../fish/guestfish.pod:924
18534 msgid "GUESTFISH_PID"
18535 msgstr ""
18536
18537 # type: textblock
18538 #: ../fish/guestfish.pod:926
18539 msgid ""
18540 "Used with the I<--remote> option to specify the remote guestfish process to "
18541 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18542 msgstr ""
18543
18544 # type: =item
18545 #: ../fish/guestfish.pod:930
18546 msgid "HEXEDITOR"
18547 msgstr ""
18548
18549 # type: textblock
18550 #: ../fish/guestfish.pod:932
18551 msgid ""
18552 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18553 "not specified, the external L<hexedit(1)> program is used."
18554 msgstr ""
18555
18556 # type: =item
18557 #: ../fish/guestfish.pod:936
18558 msgid "HOME"
18559 msgstr ""
18560
18561 # type: textblock
18562 #: ../fish/guestfish.pod:938
18563 msgid ""
18564 "If compiled with GNU readline support, various files in the home directory "
18565 "can be used.  See L</FILES>."
18566 msgstr ""
18567
18568 # type: textblock
18569 #: ../fish/guestfish.pod:947
18570 msgid ""
18571 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18572 "effect as using the B<-v> option."
18573 msgstr ""
18574
18575 # type: textblock
18576 #: ../fish/guestfish.pod:959
18577 msgid ""
18578 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18579 "the discussion of paths in L<guestfs(3)>."
18580 msgstr ""
18581
18582 # type: textblock
18583 #: ../fish/guestfish.pod:970
18584 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18585 msgstr ""
18586
18587 # type: =item
18588 #: ../fish/guestfish.pod:972
18589 msgid "PAGER"
18590 msgstr ""
18591
18592 # type: textblock
18593 #: ../fish/guestfish.pod:974
18594 msgid ""
18595 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18596 "C<more>."
18597 msgstr ""
18598
18599 # type: =head1
18600 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
18601 msgid "FILES"
18602 msgstr ""
18603
18604 # type: =item
18605 #: ../fish/guestfish.pod:993
18606 msgid "$HOME/.guestfish"
18607 msgstr ""
18608
18609 # type: textblock
18610 #: ../fish/guestfish.pod:995
18611 msgid ""
18612 "If compiled with GNU readline support, then the command history is saved in "
18613 "this file."
18614 msgstr ""
18615
18616 # type: =item
18617 #: ../fish/guestfish.pod:998
18618 msgid "$HOME/.inputrc"
18619 msgstr ""
18620
18621 # type: =item
18622 #: ../fish/guestfish.pod:1000
18623 msgid "/etc/inputrc"
18624 msgstr ""
18625
18626 # type: textblock
18627 #: ../fish/guestfish.pod:1002
18628 msgid ""
18629 "If compiled with GNU readline support, then these files can be used to "
18630 "configure readline.  For further information, please see "
18631 "L<readline(3)/INITIALIZATION FILE>."
18632 msgstr ""
18633
18634 # type: textblock
18635 #: ../fish/guestfish.pod:1006
18636 msgid "To write rules which only apply to guestfish, use:"
18637 msgstr ""
18638
18639 # type: verbatim
18640 #: ../fish/guestfish.pod:1008
18641 #, no-wrap
18642 msgid ""
18643 " $if guestfish\n"
18644 " ...\n"
18645 " $endif\n"
18646 "\n"
18647 msgstr ""
18648
18649 # type: textblock
18650 #: ../fish/guestfish.pod:1012
18651 msgid ""
18652 "Variables that you can set in inputrc that change the behaviour of guestfish "
18653 "in useful ways include:"
18654 msgstr ""
18655
18656 # type: =item
18657 #: ../fish/guestfish.pod:1017
18658 msgid "completion-ignore-case (default: on)"
18659 msgstr ""
18660
18661 # type: textblock
18662 #: ../fish/guestfish.pod:1019
18663 msgid ""
18664 "By default, guestfish will ignore case when tab-completing paths on the "
18665 "disk.  Use:"
18666 msgstr ""
18667
18668 # type: verbatim
18669 #: ../fish/guestfish.pod:1022
18670 #, no-wrap
18671 msgid ""
18672 " set completion-ignore-case off\n"
18673 "\n"
18674 msgstr ""
18675
18676 # type: textblock
18677 #: ../fish/guestfish.pod:1024
18678 msgid "to make guestfish case sensitive."
18679 msgstr ""
18680
18681 # type: =item
18682 #: ../fish/guestfish.pod:1028
18683 msgid "test1.img"
18684 msgstr ""
18685
18686 # type: =item
18687 #: ../fish/guestfish.pod:1030
18688 msgid "test2.img (etc)"
18689 msgstr ""
18690
18691 # type: textblock
18692 #: ../fish/guestfish.pod:1032
18693 msgid ""
18694 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18695 "will be created in the file C<test1.img> in the current directory.  The "
18696 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18697 "the same name will be overwritten."
18698 msgstr ""
18699
18700 # type: textblock
18701 #: ../fish/guestfish.pod:1041
18702 msgid ""
18703 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18704 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
18705 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
18706 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, "
18707 "L<virt-win-reg(1)>, L<hexedit(1)>."
18708 msgstr ""
18709
18710 # type: textblock
18711 #: ../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
18712 msgid ""
18713 "This program is free software; you can redistribute it and/or modify it "
18714 "under the terms of the GNU General Public License as published by the Free "
18715 "Software Foundation; either version 2 of the License, or (at your option) "
18716 "any later version."
18717 msgstr ""
18718
18719 # type: textblock
18720 #: ../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
18721 msgid ""
18722 "This program is distributed in the hope that it will be useful, but WITHOUT "
18723 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18724 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18725 "more details."
18726 msgstr ""
18727
18728 # type: textblock
18729 #: ../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
18730 msgid ""
18731 "You should have received a copy of the GNU General Public License along with "
18732 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18733 "Ave, Cambridge, MA 02139, USA."
18734 msgstr ""
18735
18736 # type: =head2
18737 #: ../fish/guestfish-actions.pod:1
18738 msgid "add-cdrom"
18739 msgstr ""
18740
18741 # type: verbatim
18742 #: ../fish/guestfish-actions.pod:3
18743 #, no-wrap
18744 msgid ""
18745 " add-cdrom filename\n"
18746 "\n"
18747 msgstr ""
18748
18749 # type: textblock
18750 #: ../fish/guestfish-actions.pod:15
18751 msgid ""
18752 "This call checks for the existence of C<filename>.  This stops you from "
18753 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18754 "and C<http:> URLs.  To specify those, use the general L</config> call "
18755 "instead."
18756 msgstr ""
18757
18758 # type: textblock
18759 #: ../fish/guestfish-actions.pod:22
18760 msgid ""
18761 "If you just want to add an ISO file (often you use this as an efficient way "
18762 "to transfer large files into the guest), then you should probably use "
18763 "L</add-drive-ro> instead."
18764 msgstr ""
18765
18766 # type: =head2
18767 #: ../fish/guestfish-actions.pod:35
18768 msgid "add-domain"
18769 msgstr ""
18770
18771 # type: =head2
18772 #: ../fish/guestfish-actions.pod:37
18773 msgid "domain"
18774 msgstr ""
18775
18776 # type: verbatim
18777 #: ../fish/guestfish-actions.pod:39
18778 #, no-wrap
18779 msgid ""
18780 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18781 "\n"
18782 msgstr ""
18783
18784 # type: textblock
18785 #: ../fish/guestfish-actions.pod:41
18786 msgid ""
18787 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18788 "It works by connecting to libvirt, requesting the domain and domain XML from "
18789 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18790 msgstr ""
18791
18792 # type: textblock
18793 #: ../fish/guestfish-actions.pod:58
18794 msgid ""
18795 "The optional C<libvirturi> parameter sets the libvirt URI (see "
18796 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
18797 "default libvirt URI (or one set through an environment variable, see the "
18798 "libvirt documentation for full details).  If you are using the C API "
18799 "directly then it is more flexible to create the libvirt connection object "
18800 "yourself, get the domain object, and call L</add-libvirt-dom>."
18801 msgstr ""
18802
18803 # type: textblock
18804 #: ../fish/guestfish-actions.pod:66
18805 msgid ""
18806 "The other optional parameters are passed directly through to "
18807 "L</add-drive-opts>."
18808 msgstr ""
18809
18810 # type: textblock
18811 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
18812 msgid ""
18813 "This command has one or more optional arguments.  See L</OPTIONAL "
18814 "ARGUMENTS>."
18815 msgstr ""
18816
18817 # type: =head2
18818 #: ../fish/guestfish-actions.pod:71
18819 msgid "add-drive"
18820 msgstr ""
18821
18822 # type: verbatim
18823 #: ../fish/guestfish-actions.pod:73
18824 #, no-wrap
18825 msgid ""
18826 " add-drive filename\n"
18827 "\n"
18828 msgstr ""
18829
18830 # type: textblock
18831 #: ../fish/guestfish-actions.pod:75
18832 msgid ""
18833 "This function is the equivalent of calling L</add-drive-opts> with no "
18834 "optional parameters, so the disk is added writable, with the format being "
18835 "detected automatically."
18836 msgstr ""
18837
18838 # type: textblock
18839 #: ../fish/guestfish-actions.pod:79
18840 msgid ""
18841 "Automatic detection of the format opens you up to a potential security hole "
18842 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18843 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18844 "you should think about replacing calls to this function with calls to "
18845 "L</add-drive-opts>, and specifying the format."
18846 msgstr ""
18847
18848 # type: =head2
18849 #: ../fish/guestfish-actions.pod:86
18850 msgid "add-drive-opts"
18851 msgstr ""
18852
18853 # type: =head2
18854 #: ../fish/guestfish-actions.pod:88
18855 msgid "add"
18856 msgstr ""
18857
18858 # type: verbatim
18859 #: ../fish/guestfish-actions.pod:90
18860 #, no-wrap
18861 msgid ""
18862 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18863 "\n"
18864 msgstr ""
18865
18866 # type: textblock
18867 #: ../fish/guestfish-actions.pod:117
18868 msgid ""
18869 "This forces the image format.  If you omit this (or use L</add-drive> or "
18870 "L</add-drive-ro>) then the format is automatically detected.  Possible "
18871 "formats include C<raw> and C<qcow2>."
18872 msgstr ""
18873
18874 # type: textblock
18875 #: ../fish/guestfish-actions.pod:128
18876 msgid ""
18877 "This rarely-used option lets you emulate the behaviour of the deprecated "
18878 "L</add-drive-with-if> call (q.v.)"
18879 msgstr ""
18880
18881 # type: =head2
18882 #: ../fish/guestfish-actions.pod:135
18883 msgid "add-drive-ro"
18884 msgstr ""
18885
18886 # type: =head2
18887 #: ../fish/guestfish-actions.pod:137
18888 msgid "add-ro"
18889 msgstr ""
18890
18891 # type: verbatim
18892 #: ../fish/guestfish-actions.pod:139
18893 #, no-wrap
18894 msgid ""
18895 " add-drive-ro filename\n"
18896 "\n"
18897 msgstr ""
18898
18899 # type: textblock
18900 #: ../fish/guestfish-actions.pod:141
18901 msgid ""
18902 "This function is the equivalent of calling L</add-drive-opts> with the "
18903 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
18904 "is added read-only, with the format being detected automatically."
18905 msgstr ""
18906
18907 # type: =head2
18908 #: ../fish/guestfish-actions.pod:146
18909 msgid "add-drive-ro-with-if"
18910 msgstr ""
18911
18912 # type: verbatim
18913 #: ../fish/guestfish-actions.pod:148
18914 #, no-wrap
18915 msgid ""
18916 " add-drive-ro-with-if filename iface\n"
18917 "\n"
18918 msgstr ""
18919
18920 # type: textblock
18921 #: ../fish/guestfish-actions.pod:150
18922 msgid ""
18923 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
18924 "interface emulation to use at run time."
18925 msgstr ""
18926
18927 # type: =head2
18928 #: ../fish/guestfish-actions.pod:160
18929 msgid "add-drive-with-if"
18930 msgstr ""
18931
18932 # type: verbatim
18933 #: ../fish/guestfish-actions.pod:162
18934 #, no-wrap
18935 msgid ""
18936 " add-drive-with-if filename iface\n"
18937 "\n"
18938 msgstr ""
18939
18940 # type: textblock
18941 #: ../fish/guestfish-actions.pod:164
18942 msgid ""
18943 "This is the same as L</add-drive> but it allows you to specify the QEMU "
18944 "interface emulation to use at run time."
18945 msgstr ""
18946
18947 # type: =head2
18948 #: ../fish/guestfish-actions.pod:174
18949 msgid "aug-clear"
18950 msgstr ""
18951
18952 # type: verbatim
18953 #: ../fish/guestfish-actions.pod:176
18954 #, no-wrap
18955 msgid ""
18956 " aug-clear augpath\n"
18957 "\n"
18958 msgstr ""
18959
18960 # type: =head2
18961 #: ../fish/guestfish-actions.pod:181
18962 msgid "aug-close"
18963 msgstr ""
18964
18965 # type: verbatim
18966 #: ../fish/guestfish-actions.pod:183
18967 #, no-wrap
18968 msgid ""
18969 " aug-close\n"
18970 "\n"
18971 msgstr ""
18972
18973 # type: textblock
18974 #: ../fish/guestfish-actions.pod:185
18975 msgid ""
18976 "Close the current Augeas handle and free up any resources used by it.  After "
18977 "calling this, you have to call L</aug-init> again before you can use any "
18978 "other Augeas functions."
18979 msgstr ""
18980
18981 # type: =head2
18982 #: ../fish/guestfish-actions.pod:190
18983 msgid "aug-defnode"
18984 msgstr ""
18985
18986 # type: verbatim
18987 #: ../fish/guestfish-actions.pod:192
18988 #, no-wrap
18989 msgid ""
18990 " aug-defnode name expr val\n"
18991 "\n"
18992 msgstr ""
18993
18994 # type: textblock
18995 #: ../fish/guestfish-actions.pod:197
18996 msgid ""
18997 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
18998 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
18999 "containing that single node."
19000 msgstr ""
19001
19002 # type: =head2
19003 #: ../fish/guestfish-actions.pod:205
19004 msgid "aug-defvar"
19005 msgstr ""
19006
19007 # type: verbatim
19008 #: ../fish/guestfish-actions.pod:207
19009 #, no-wrap
19010 msgid ""
19011 " aug-defvar name expr\n"
19012 "\n"
19013 msgstr ""
19014
19015 # type: =head2
19016 #: ../fish/guestfish-actions.pod:216
19017 msgid "aug-get"
19018 msgstr ""
19019
19020 # type: verbatim
19021 #: ../fish/guestfish-actions.pod:218
19022 #, no-wrap
19023 msgid ""
19024 " aug-get augpath\n"
19025 "\n"
19026 msgstr ""
19027
19028 # type: =head2
19029 #: ../fish/guestfish-actions.pod:223
19030 msgid "aug-init"
19031 msgstr ""
19032
19033 # type: verbatim
19034 #: ../fish/guestfish-actions.pod:225
19035 #, no-wrap
19036 msgid ""
19037 " aug-init root flags\n"
19038 "\n"
19039 msgstr ""
19040
19041 # type: textblock
19042 #: ../fish/guestfish-actions.pod:231
19043 msgid "You must call this before using any other L</aug-*> commands."
19044 msgstr ""
19045
19046 # type: textblock
19047 #: ../fish/guestfish-actions.pod:266
19048 msgid "Do not load the tree in L</aug-init>."
19049 msgstr ""
19050
19051 # type: textblock
19052 #: ../fish/guestfish-actions.pod:270
19053 msgid "To close the handle, you can call L</aug-close>."
19054 msgstr ""
19055
19056 # type: =head2
19057 #: ../fish/guestfish-actions.pod:274
19058 msgid "aug-insert"
19059 msgstr ""
19060
19061 # type: verbatim
19062 #: ../fish/guestfish-actions.pod:276
19063 #, no-wrap
19064 msgid ""
19065 " aug-insert augpath label true|false\n"
19066 "\n"
19067 msgstr ""
19068
19069 # type: =head2
19070 #: ../fish/guestfish-actions.pod:286
19071 msgid "aug-load"
19072 msgstr ""
19073
19074 # type: verbatim
19075 #: ../fish/guestfish-actions.pod:288
19076 #, no-wrap
19077 msgid ""
19078 " aug-load\n"
19079 "\n"
19080 msgstr ""
19081
19082 # type: =head2
19083 #: ../fish/guestfish-actions.pod:295
19084 msgid "aug-ls"
19085 msgstr ""
19086
19087 # type: verbatim
19088 #: ../fish/guestfish-actions.pod:297
19089 #, no-wrap
19090 msgid ""
19091 " aug-ls augpath\n"
19092 "\n"
19093 msgstr ""
19094
19095 # type: textblock
19096 #: ../fish/guestfish-actions.pod:299
19097 msgid ""
19098 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19099 "resulting nodes into alphabetical order."
19100 msgstr ""
19101
19102 # type: =head2
19103 #: ../fish/guestfish-actions.pod:302
19104 msgid "aug-match"
19105 msgstr ""
19106
19107 # type: verbatim
19108 #: ../fish/guestfish-actions.pod:304
19109 #, no-wrap
19110 msgid ""
19111 " aug-match augpath\n"
19112 "\n"
19113 msgstr ""
19114
19115 # type: =head2
19116 #: ../fish/guestfish-actions.pod:310
19117 msgid "aug-mv"
19118 msgstr ""
19119
19120 # type: verbatim
19121 #: ../fish/guestfish-actions.pod:312
19122 #, no-wrap
19123 msgid ""
19124 " aug-mv src dest\n"
19125 "\n"
19126 msgstr ""
19127
19128 # type: =head2
19129 #: ../fish/guestfish-actions.pod:317
19130 msgid "aug-rm"
19131 msgstr ""
19132
19133 # type: verbatim
19134 #: ../fish/guestfish-actions.pod:319
19135 #, no-wrap
19136 msgid ""
19137 " aug-rm augpath\n"
19138 "\n"
19139 msgstr ""
19140
19141 # type: =head2
19142 #: ../fish/guestfish-actions.pod:325
19143 msgid "aug-save"
19144 msgstr ""
19145
19146 # type: verbatim
19147 #: ../fish/guestfish-actions.pod:327
19148 #, no-wrap
19149 msgid ""
19150 " aug-save\n"
19151 "\n"
19152 msgstr ""
19153
19154 # type: textblock
19155 #: ../fish/guestfish-actions.pod:331
19156 msgid ""
19157 "The flags which were passed to L</aug-init> affect exactly how files are "
19158 "saved."
19159 msgstr ""
19160
19161 # type: =head2
19162 #: ../fish/guestfish-actions.pod:334
19163 msgid "aug-set"
19164 msgstr ""
19165
19166 # type: verbatim
19167 #: ../fish/guestfish-actions.pod:336
19168 #, no-wrap
19169 msgid ""
19170 " aug-set augpath val\n"
19171 "\n"
19172 msgstr ""
19173
19174 # type: textblock
19175 #: ../fish/guestfish-actions.pod:340
19176 msgid ""
19177 "In the Augeas API, it is possible to clear a node by setting the value to "
19178 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19179 "this call.  Instead you must use the L</aug-clear> call."
19180 msgstr ""
19181
19182 # type: =head2
19183 #: ../fish/guestfish-actions.pod:345
19184 msgid "available"
19185 msgstr ""
19186
19187 # type: verbatim
19188 #: ../fish/guestfish-actions.pod:347
19189 #, no-wrap
19190 msgid ""
19191 " available 'groups ...'\n"
19192 "\n"
19193 msgstr ""
19194
19195 # type: textblock
19196 #: ../fish/guestfish-actions.pod:353
19197 msgid ""
19198 "The libguestfs groups, and the functions that those groups correspond to, "
19199 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19200 "runtime by calling L</available-all-groups>."
19201 msgstr ""
19202
19203 # type: textblock
19204 #: ../fish/guestfish-actions.pod:377
19205 msgid "You must call L</launch> before calling this function."
19206 msgstr ""
19207
19208 # type: textblock
19209 #: ../fish/guestfish-actions.pod:399
19210 msgid ""
19211 "This call was added in version C<1.0.80>.  In previous versions of "
19212 "libguestfs all you could do would be to speculatively execute a command to "
19213 "find out if the daemon implemented it.  See also L</version>."
19214 msgstr ""
19215
19216 # type: =head2
19217 #: ../fish/guestfish-actions.pod:406
19218 msgid "available-all-groups"
19219 msgstr ""
19220
19221 # type: verbatim
19222 #: ../fish/guestfish-actions.pod:408
19223 #, no-wrap
19224 msgid ""
19225 " available-all-groups\n"
19226 "\n"
19227 msgstr ""
19228
19229 # type: textblock
19230 #: ../fish/guestfish-actions.pod:410
19231 msgid ""
19232 "This command returns a list of all optional groups that this daemon knows "
19233 "about.  Note this returns both supported and unsupported groups.  To find "
19234 "out which ones the daemon can actually support you have to call "
19235 "L</available> on each member of the returned list."
19236 msgstr ""
19237
19238 # type: textblock
19239 #: ../fish/guestfish-actions.pod:416
19240 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19241 msgstr ""
19242
19243 # type: =head2
19244 #: ../fish/guestfish-actions.pod:418
19245 msgid "base64-in"
19246 msgstr ""
19247
19248 # type: verbatim
19249 #: ../fish/guestfish-actions.pod:420
19250 #, no-wrap
19251 msgid ""
19252 " base64-in (base64file|-) filename\n"
19253 "\n"
19254 msgstr ""
19255
19256 # type: textblock
19257 #: ../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
19258 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19259 msgstr ""
19260
19261 # type: =head2
19262 #: ../fish/guestfish-actions.pod:427
19263 msgid "base64-out"
19264 msgstr ""
19265
19266 # type: verbatim
19267 #: ../fish/guestfish-actions.pod:429
19268 #, no-wrap
19269 msgid ""
19270 " base64-out filename (base64file|-)\n"
19271 "\n"
19272 msgstr ""
19273
19274 # type: =head2
19275 #: ../fish/guestfish-actions.pod:436
19276 msgid "blockdev-flushbufs"
19277 msgstr ""
19278
19279 # type: verbatim
19280 #: ../fish/guestfish-actions.pod:438
19281 #, no-wrap
19282 msgid ""
19283 " blockdev-flushbufs device\n"
19284 "\n"
19285 msgstr ""
19286
19287 # type: =head2
19288 #: ../fish/guestfish-actions.pod:445
19289 msgid "blockdev-getbsz"
19290 msgstr ""
19291
19292 # type: verbatim
19293 #: ../fish/guestfish-actions.pod:447
19294 #, no-wrap
19295 msgid ""
19296 " blockdev-getbsz device\n"
19297 "\n"
19298 msgstr ""
19299
19300 # type: =head2
19301 #: ../fish/guestfish-actions.pod:456
19302 msgid "blockdev-getro"
19303 msgstr ""
19304
19305 # type: verbatim
19306 #: ../fish/guestfish-actions.pod:458
19307 #, no-wrap
19308 msgid ""
19309 " blockdev-getro device\n"
19310 "\n"
19311 msgstr ""
19312
19313 # type: =head2
19314 #: ../fish/guestfish-actions.pod:465
19315 msgid "blockdev-getsize64"
19316 msgstr ""
19317
19318 # type: verbatim
19319 #: ../fish/guestfish-actions.pod:467
19320 #, no-wrap
19321 msgid ""
19322 " blockdev-getsize64 device\n"
19323 "\n"
19324 msgstr ""
19325
19326 # type: textblock
19327 #: ../fish/guestfish-actions.pod:471
19328 msgid "See also L</blockdev-getsz>."
19329 msgstr ""
19330
19331 # type: =head2
19332 #: ../fish/guestfish-actions.pod:475
19333 msgid "blockdev-getss"
19334 msgstr ""
19335
19336 # type: verbatim
19337 #: ../fish/guestfish-actions.pod:477
19338 #, no-wrap
19339 msgid ""
19340 " blockdev-getss device\n"
19341 "\n"
19342 msgstr ""
19343
19344 # type: textblock
19345 #: ../fish/guestfish-actions.pod:482
19346 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19347 msgstr ""
19348
19349 # type: =head2
19350 #: ../fish/guestfish-actions.pod:487
19351 msgid "blockdev-getsz"
19352 msgstr ""
19353
19354 # type: verbatim
19355 #: ../fish/guestfish-actions.pod:489
19356 #, no-wrap
19357 msgid ""
19358 " blockdev-getsz device\n"
19359 "\n"
19360 msgstr ""
19361
19362 # type: textblock
19363 #: ../fish/guestfish-actions.pod:494
19364 msgid ""
19365 "See also L</blockdev-getss> for the real sector size of the device, and "
19366 "L</blockdev-getsize64> for the more useful I<size in bytes>."
19367 msgstr ""
19368
19369 # type: =head2
19370 #: ../fish/guestfish-actions.pod:500
19371 msgid "blockdev-rereadpt"
19372 msgstr ""
19373
19374 # type: verbatim
19375 #: ../fish/guestfish-actions.pod:502
19376 #, no-wrap
19377 msgid ""
19378 " blockdev-rereadpt device\n"
19379 "\n"
19380 msgstr ""
19381
19382 # type: =head2
19383 #: ../fish/guestfish-actions.pod:508
19384 msgid "blockdev-setbsz"
19385 msgstr ""
19386
19387 # type: verbatim
19388 #: ../fish/guestfish-actions.pod:510
19389 #, no-wrap
19390 msgid ""
19391 " blockdev-setbsz device blocksize\n"
19392 "\n"
19393 msgstr ""
19394
19395 # type: =head2
19396 #: ../fish/guestfish-actions.pod:519
19397 msgid "blockdev-setro"
19398 msgstr ""
19399
19400 # type: verbatim
19401 #: ../fish/guestfish-actions.pod:521
19402 #, no-wrap
19403 msgid ""
19404 " blockdev-setro device\n"
19405 "\n"
19406 msgstr ""
19407
19408 # type: =head2
19409 #: ../fish/guestfish-actions.pod:527
19410 msgid "blockdev-setrw"
19411 msgstr ""
19412
19413 # type: verbatim
19414 #: ../fish/guestfish-actions.pod:529
19415 #, no-wrap
19416 msgid ""
19417 " blockdev-setrw device\n"
19418 "\n"
19419 msgstr ""
19420
19421 # type: =head2
19422 #: ../fish/guestfish-actions.pod:535
19423 msgid "case-sensitive-path"
19424 msgstr ""
19425
19426 # type: verbatim
19427 #: ../fish/guestfish-actions.pod:537
19428 #, no-wrap
19429 msgid ""
19430 " case-sensitive-path path\n"
19431 "\n"
19432 msgstr ""
19433
19434 # type: textblock
19435 #: ../fish/guestfish-actions.pod:561
19436 msgid ""
19437 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
19438 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
19439 "how the directories were originally created under Windows)."
19440 msgstr ""
19441
19442 # type: textblock
19443 #: ../fish/guestfish-actions.pod:569
19444 msgid "See also L</realpath>."
19445 msgstr ""
19446
19447 # type: =head2
19448 #: ../fish/guestfish-actions.pod:571
19449 msgid "cat"
19450 msgstr ""
19451
19452 # type: verbatim
19453 #: ../fish/guestfish-actions.pod:573
19454 #, no-wrap
19455 msgid ""
19456 " cat path\n"
19457 "\n"
19458 msgstr ""
19459
19460 # type: textblock
19461 #: ../fish/guestfish-actions.pod:577
19462 msgid ""
19463 "Note that this function cannot correctly handle binary files (specifically, "
19464 "files containing C<\\0> character which is treated as end of string).  For "
19465 "those you need to use the L</read-file> or L</download> functions which have "
19466 "a more complex interface."
19467 msgstr ""
19468
19469 # type: =head2
19470 #: ../fish/guestfish-actions.pod:585
19471 msgid "checksum"
19472 msgstr ""
19473
19474 # type: verbatim
19475 #: ../fish/guestfish-actions.pod:587
19476 #, no-wrap
19477 msgid ""
19478 " checksum csumtype path\n"
19479 "\n"
19480 msgstr ""
19481
19482 # type: textblock
19483 #: ../fish/guestfish-actions.pod:630
19484 msgid "To get the checksum for a device, use L</checksum-device>."
19485 msgstr ""
19486
19487 # type: textblock
19488 #: ../fish/guestfish-actions.pod:632
19489 msgid "To get the checksums for many files, use L</checksums-out>."
19490 msgstr ""
19491
19492 # type: =head2
19493 #: ../fish/guestfish-actions.pod:634
19494 msgid "checksum-device"
19495 msgstr ""
19496
19497 # type: verbatim
19498 #: ../fish/guestfish-actions.pod:636
19499 #, no-wrap
19500 msgid ""
19501 " checksum-device csumtype device\n"
19502 "\n"
19503 msgstr ""
19504
19505 # type: textblock
19506 #: ../fish/guestfish-actions.pod:638
19507 msgid ""
19508 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19509 "device named C<device>.  For the types of checksums supported see the "
19510 "L</checksum> command."
19511 msgstr ""
19512
19513 # type: =head2
19514 #: ../fish/guestfish-actions.pod:642
19515 msgid "checksums-out"
19516 msgstr ""
19517
19518 # type: verbatim
19519 #: ../fish/guestfish-actions.pod:644
19520 #, no-wrap
19521 msgid ""
19522 " checksums-out csumtype directory (sumsfile|-)\n"
19523 "\n"
19524 msgstr ""
19525
19526 # type: =head2
19527 #: ../fish/guestfish-actions.pod:660
19528 msgid "chmod"
19529 msgstr ""
19530
19531 # type: verbatim
19532 #: ../fish/guestfish-actions.pod:662
19533 #, no-wrap
19534 msgid ""
19535 " chmod mode path\n"
19536 "\n"
19537 msgstr ""
19538
19539 # type: =head2
19540 #: ../fish/guestfish-actions.pod:673
19541 msgid "chown"
19542 msgstr ""
19543
19544 # type: verbatim
19545 #: ../fish/guestfish-actions.pod:675
19546 #, no-wrap
19547 msgid ""
19548 " chown owner group path\n"
19549 "\n"
19550 msgstr ""
19551
19552 # type: =head2
19553 #: ../fish/guestfish-actions.pod:683
19554 msgid "command"
19555 msgstr ""
19556
19557 # type: verbatim
19558 #: ../fish/guestfish-actions.pod:685
19559 #, no-wrap
19560 msgid ""
19561 " command 'arguments ...'\n"
19562 "\n"
19563 msgstr ""
19564
19565 # type: textblock
19566 #: ../fish/guestfish-actions.pod:692
19567 msgid ""
19568 "The single parameter is an argv-style list of arguments.  The first element "
19569 "is the name of the program to run.  Subsequent elements are parameters.  The "
19570 "list must be non-empty (ie. must contain a program name).  Note that the "
19571 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19572 msgstr ""
19573
19574 # type: =head2
19575 #: ../fish/guestfish-actions.pod:720
19576 msgid "command-lines"
19577 msgstr ""
19578
19579 # type: verbatim
19580 #: ../fish/guestfish-actions.pod:722
19581 #, no-wrap
19582 msgid ""
19583 " command-lines 'arguments ...'\n"
19584 "\n"
19585 msgstr ""
19586
19587 # type: textblock
19588 #: ../fish/guestfish-actions.pod:724
19589 msgid "This is the same as L</command>, but splits the result into a list of lines."
19590 msgstr ""
19591
19592 # type: textblock
19593 #: ../fish/guestfish-actions.pod:727
19594 msgid "See also: L</sh-lines>"
19595 msgstr ""
19596
19597 # type: =head2
19598 #: ../fish/guestfish-actions.pod:732
19599 msgid "config"
19600 msgstr ""
19601
19602 # type: verbatim
19603 #: ../fish/guestfish-actions.pod:734
19604 #, no-wrap
19605 msgid ""
19606 " config qemuparam qemuvalue\n"
19607 "\n"
19608 msgstr ""
19609
19610 # type: =head2
19611 #: ../fish/guestfish-actions.pod:745
19612 msgid "copy-size"
19613 msgstr ""
19614
19615 # type: verbatim
19616 #: ../fish/guestfish-actions.pod:747
19617 #, no-wrap
19618 msgid ""
19619 " copy-size src dest size\n"
19620 "\n"
19621 msgstr ""
19622
19623 # type: =head2
19624 #: ../fish/guestfish-actions.pod:755
19625 msgid "cp"
19626 msgstr ""
19627
19628 # type: verbatim
19629 #: ../fish/guestfish-actions.pod:757
19630 #, no-wrap
19631 msgid ""
19632 " cp src dest\n"
19633 "\n"
19634 msgstr ""
19635
19636 # type: =head2
19637 #: ../fish/guestfish-actions.pod:762
19638 msgid "cp-a"
19639 msgstr ""
19640
19641 # type: verbatim
19642 #: ../fish/guestfish-actions.pod:764
19643 #, no-wrap
19644 msgid ""
19645 " cp-a src dest\n"
19646 "\n"
19647 msgstr ""
19648
19649 # type: =head2
19650 #: ../fish/guestfish-actions.pod:769
19651 msgid "dd"
19652 msgstr ""
19653
19654 # type: verbatim
19655 #: ../fish/guestfish-actions.pod:771
19656 #, no-wrap
19657 msgid ""
19658 " dd src dest\n"
19659 "\n"
19660 msgstr ""
19661
19662 # type: textblock
19663 #: ../fish/guestfish-actions.pod:778
19664 msgid ""
19665 "If the destination is a device, it must be as large or larger than the "
19666 "source file or device, otherwise the copy will fail.  This command cannot do "
19667 "partial copies (see L</copy-size>)."
19668 msgstr ""
19669
19670 # type: =head2
19671 #: ../fish/guestfish-actions.pod:782
19672 msgid "df"
19673 msgstr ""
19674
19675 # type: verbatim
19676 #: ../fish/guestfish-actions.pod:784
19677 #, no-wrap
19678 msgid ""
19679 " df\n"
19680 "\n"
19681 msgstr ""
19682
19683 # type: =head2
19684 #: ../fish/guestfish-actions.pod:792
19685 msgid "df-h"
19686 msgstr ""
19687
19688 # type: verbatim
19689 #: ../fish/guestfish-actions.pod:794
19690 #, no-wrap
19691 msgid ""
19692 " df-h\n"
19693 "\n"
19694 msgstr ""
19695
19696 # type: =head2
19697 #: ../fish/guestfish-actions.pod:803
19698 msgid "dmesg"
19699 msgstr ""
19700
19701 # type: verbatim
19702 #: ../fish/guestfish-actions.pod:805
19703 #, no-wrap
19704 msgid ""
19705 " dmesg\n"
19706 "\n"
19707 msgstr ""
19708
19709 # type: textblock
19710 #: ../fish/guestfish-actions.pod:811
19711 msgid ""
19712 "Another way to get the same information is to enable verbose messages with "
19713 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19714 "before running the program."
19715 msgstr ""
19716
19717 # type: =head2
19718 #: ../fish/guestfish-actions.pod:816
19719 msgid "download"
19720 msgstr ""
19721
19722 # type: verbatim
19723 #: ../fish/guestfish-actions.pod:818
19724 #, no-wrap
19725 msgid ""
19726 " download remotefilename (filename|-)\n"
19727 "\n"
19728 msgstr ""
19729
19730 # type: textblock
19731 #: ../fish/guestfish-actions.pod:825
19732 msgid "See also L</upload>, L</cat>."
19733 msgstr ""
19734
19735 # type: =head2
19736 #: ../fish/guestfish-actions.pod:829
19737 msgid "download-offset"
19738 msgstr ""
19739
19740 # type: verbatim
19741 #: ../fish/guestfish-actions.pod:831
19742 #, no-wrap
19743 msgid ""
19744 " download-offset remotefilename (filename|-) offset size\n"
19745 "\n"
19746 msgstr ""
19747
19748 # type: textblock
19749 #: ../fish/guestfish-actions.pod:839
19750 msgid ""
19751 "Note that there is no limit on the amount of data that can be downloaded "
19752 "with this call, unlike with L</pread>, and this call always reads the full "
19753 "amount unless an error occurs."
19754 msgstr ""
19755
19756 # type: textblock
19757 #: ../fish/guestfish-actions.pod:844
19758 msgid "See also L</download>, L</pread>."
19759 msgstr ""
19760
19761 # type: =head2
19762 #: ../fish/guestfish-actions.pod:848
19763 msgid "drop-caches"
19764 msgstr ""
19765
19766 # type: verbatim
19767 #: ../fish/guestfish-actions.pod:850
19768 #, no-wrap
19769 msgid ""
19770 " drop-caches whattodrop\n"
19771 "\n"
19772 msgstr ""
19773
19774 # type: =head2
19775 #: ../fish/guestfish-actions.pod:862
19776 msgid "du"
19777 msgstr ""
19778
19779 # type: verbatim
19780 #: ../fish/guestfish-actions.pod:864
19781 #, no-wrap
19782 msgid ""
19783 " du path\n"
19784 "\n"
19785 msgstr ""
19786
19787 # type: =head2
19788 #: ../fish/guestfish-actions.pod:876
19789 msgid "e2fsck-f"
19790 msgstr ""
19791
19792 # type: verbatim
19793 #: ../fish/guestfish-actions.pod:878
19794 #, no-wrap
19795 msgid ""
19796 " e2fsck-f device\n"
19797 "\n"
19798 msgstr ""
19799
19800 # type: textblock
19801 #: ../fish/guestfish-actions.pod:884
19802 msgid ""
19803 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19804 "should use L</fsck>."
19805 msgstr ""
19806
19807 # type: =head2
19808 #: ../fish/guestfish-actions.pod:887
19809 msgid "echo-daemon"
19810 msgstr ""
19811
19812 # type: verbatim
19813 #: ../fish/guestfish-actions.pod:889
19814 #, no-wrap
19815 msgid ""
19816 " echo-daemon 'words ...'\n"
19817 "\n"
19818 msgstr ""
19819
19820 # type: textblock
19821 #: ../fish/guestfish-actions.pod:896
19822 msgid "See also L</ping-daemon>."
19823 msgstr ""
19824
19825 # type: =head2
19826 #: ../fish/guestfish-actions.pod:898
19827 msgid "egrep"
19828 msgstr ""
19829
19830 # type: verbatim
19831 #: ../fish/guestfish-actions.pod:900
19832 #, no-wrap
19833 msgid ""
19834 " egrep regex path\n"
19835 "\n"
19836 msgstr ""
19837
19838 # type: =head2
19839 #: ../fish/guestfish-actions.pod:908
19840 msgid "egrepi"
19841 msgstr ""
19842
19843 # type: verbatim
19844 #: ../fish/guestfish-actions.pod:910
19845 #, no-wrap
19846 msgid ""
19847 " egrepi regex path\n"
19848 "\n"
19849 msgstr ""
19850
19851 # type: =head2
19852 #: ../fish/guestfish-actions.pod:918
19853 msgid "equal"
19854 msgstr ""
19855
19856 # type: verbatim
19857 #: ../fish/guestfish-actions.pod:920
19858 #, no-wrap
19859 msgid ""
19860 " equal file1 file2\n"
19861 "\n"
19862 msgstr ""
19863
19864 # type: =head2
19865 #: ../fish/guestfish-actions.pod:927
19866 msgid "exists"
19867 msgstr ""
19868
19869 # type: verbatim
19870 #: ../fish/guestfish-actions.pod:929
19871 #, no-wrap
19872 msgid ""
19873 " exists path\n"
19874 "\n"
19875 msgstr ""
19876
19877 # type: textblock
19878 #: ../fish/guestfish-actions.pod:934
19879 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19880 msgstr ""
19881
19882 # type: =head2
19883 #: ../fish/guestfish-actions.pod:936
19884 msgid "fallocate"
19885 msgstr ""
19886
19887 # type: verbatim
19888 #: ../fish/guestfish-actions.pod:938
19889 #, no-wrap
19890 msgid ""
19891 " fallocate path len\n"
19892 "\n"
19893 msgstr ""
19894
19895 # type: =head2
19896 #: ../fish/guestfish-actions.pod:955
19897 msgid "fallocate64"
19898 msgstr ""
19899
19900 # type: verbatim
19901 #: ../fish/guestfish-actions.pod:957
19902 #, no-wrap
19903 msgid ""
19904 " fallocate64 path len\n"
19905 "\n"
19906 msgstr ""
19907
19908 # type: textblock
19909 #: ../fish/guestfish-actions.pod:963
19910 msgid ""
19911 "Note that this call allocates disk blocks for the file.  To create a sparse "
19912 "file use L</truncate-size> instead."
19913 msgstr ""
19914
19915 # type: textblock
19916 #: ../fish/guestfish-actions.pod:966
19917 msgid ""
19918 "The deprecated call L</fallocate> does the same, but owing to an oversight "
19919 "it only allowed 30 bit lengths to be specified, effectively limiting the "
19920 "maximum size of files created through that call to 1GB."
19921 msgstr ""
19922
19923 # type: =head2
19924 #: ../fish/guestfish-actions.pod:975
19925 msgid "fgrep"
19926 msgstr ""
19927
19928 # type: verbatim
19929 #: ../fish/guestfish-actions.pod:977
19930 #, no-wrap
19931 msgid ""
19932 " fgrep pattern path\n"
19933 "\n"
19934 msgstr ""
19935
19936 # type: =head2
19937 #: ../fish/guestfish-actions.pod:985
19938 msgid "fgrepi"
19939 msgstr ""
19940
19941 # type: verbatim
19942 #: ../fish/guestfish-actions.pod:987
19943 #, no-wrap
19944 msgid ""
19945 " fgrepi pattern path\n"
19946 "\n"
19947 msgstr ""
19948
19949 # type: =head2
19950 #: ../fish/guestfish-actions.pod:995
19951 msgid "file"
19952 msgstr ""
19953
19954 # type: verbatim
19955 #: ../fish/guestfish-actions.pod:997
19956 #, no-wrap
19957 msgid ""
19958 " file path\n"
19959 "\n"
19960 msgstr ""
19961
19962 # type: textblock
19963 #: ../fish/guestfish-actions.pod:1009
19964 msgid ""
19965 "This command can also be used on C</dev/> devices (and partitions, LV "
19966 "names).  You can for example use this to determine if a device contains a "
19967 "filesystem, although it's usually better to use L</vfs-type>."
19968 msgstr ""
19969
19970 # type: =head2
19971 #: ../fish/guestfish-actions.pod:1019
19972 msgid "file-architecture"
19973 msgstr ""
19974
19975 # type: verbatim
19976 #: ../fish/guestfish-actions.pod:1021
19977 #, no-wrap
19978 msgid ""
19979 " file-architecture filename\n"
19980 "\n"
19981 msgstr ""
19982
19983 # type: =head2
19984 #: ../fish/guestfish-actions.pod:1124
19985 msgid "filesize"
19986 msgstr ""
19987
19988 # type: verbatim
19989 #: ../fish/guestfish-actions.pod:1126
19990 #, no-wrap
19991 msgid ""
19992 " filesize file\n"
19993 "\n"
19994 msgstr ""
19995
19996 # type: textblock
19997 #: ../fish/guestfish-actions.pod:1130
19998 msgid ""
19999 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
20000 "L</is-file> etc.  To get the size of block devices, use "
20001 "L</blockdev-getsize64>."
20002 msgstr ""
20003
20004 # type: =head2
20005 #: ../fish/guestfish-actions.pod:1134
20006 msgid "fill"
20007 msgstr ""
20008
20009 # type: verbatim
20010 #: ../fish/guestfish-actions.pod:1136
20011 #, no-wrap
20012 msgid ""
20013 " fill c len path\n"
20014 "\n"
20015 msgstr ""
20016
20017 # type: textblock
20018 #: ../fish/guestfish-actions.pod:1142
20019 msgid ""
20020 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20021 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20022 "L</fill-pattern>."
20023 msgstr ""
20024
20025 # type: =head2
20026 #: ../fish/guestfish-actions.pod:1147
20027 msgid "fill-pattern"
20028 msgstr ""
20029
20030 # type: verbatim
20031 #: ../fish/guestfish-actions.pod:1149
20032 #, no-wrap
20033 msgid ""
20034 " fill-pattern pattern len path\n"
20035 "\n"
20036 msgstr ""
20037
20038 # type: textblock
20039 #: ../fish/guestfish-actions.pod:1151
20040 msgid ""
20041 "This function is like L</fill> except that it creates a new file of length "
20042 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20043 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20044 "bytes."
20045 msgstr ""
20046
20047 # type: =head2
20048 #: ../fish/guestfish-actions.pod:1156
20049 msgid "find"
20050 msgstr ""
20051
20052 # type: verbatim
20053 #: ../fish/guestfish-actions.pod:1158
20054 #, no-wrap
20055 msgid ""
20056 " find directory\n"
20057 "\n"
20058 msgstr ""
20059
20060 # type: textblock
20061 #: ../fish/guestfish-actions.pod:1172
20062 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20063 msgstr ""
20064
20065 # type: textblock
20066 #: ../fish/guestfish-actions.pod:1185
20067 msgid "See also L</find0>."
20068 msgstr ""
20069
20070 # type: =head2
20071 #: ../fish/guestfish-actions.pod:1190
20072 msgid "find0"
20073 msgstr ""
20074
20075 # type: verbatim
20076 #: ../fish/guestfish-actions.pod:1192
20077 #, no-wrap
20078 msgid ""
20079 " find0 directory (files|-)\n"
20080 "\n"
20081 msgstr ""
20082
20083 # type: textblock
20084 #: ../fish/guestfish-actions.pod:1198
20085 msgid "This command works the same way as L</find> with the following exceptions:"
20086 msgstr ""
20087
20088 # type: =head2
20089 #: ../fish/guestfish-actions.pod:1225
20090 msgid "findfs-label"
20091 msgstr ""
20092
20093 # type: verbatim
20094 #: ../fish/guestfish-actions.pod:1227
20095 #, no-wrap
20096 msgid ""
20097 " findfs-label label\n"
20098 "\n"
20099 msgstr ""
20100
20101 # type: textblock
20102 #: ../fish/guestfish-actions.pod:1233
20103 msgid "To find the label of a filesystem, use L</vfs-label>."
20104 msgstr ""
20105
20106 # type: =head2
20107 #: ../fish/guestfish-actions.pod:1235
20108 msgid "findfs-uuid"
20109 msgstr ""
20110
20111 # type: verbatim
20112 #: ../fish/guestfish-actions.pod:1237
20113 #, no-wrap
20114 msgid ""
20115 " findfs-uuid uuid\n"
20116 "\n"
20117 msgstr ""
20118
20119 # type: textblock
20120 #: ../fish/guestfish-actions.pod:1243
20121 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20122 msgstr ""
20123
20124 # type: =head2
20125 #: ../fish/guestfish-actions.pod:1245
20126 msgid "fsck"
20127 msgstr ""
20128
20129 # type: verbatim
20130 #: ../fish/guestfish-actions.pod:1247
20131 #, no-wrap
20132 msgid ""
20133 " fsck fstype device\n"
20134 "\n"
20135 msgstr ""
20136
20137 # type: =head2
20138 #: ../fish/guestfish-actions.pod:1277
20139 msgid "get-append"
20140 msgstr ""
20141
20142 # type: verbatim
20143 #: ../fish/guestfish-actions.pod:1279
20144 #, no-wrap
20145 msgid ""
20146 " get-append\n"
20147 "\n"
20148 msgstr ""
20149
20150 # type: =head2
20151 #: ../fish/guestfish-actions.pod:1286
20152 msgid "get-autosync"
20153 msgstr ""
20154
20155 # type: verbatim
20156 #: ../fish/guestfish-actions.pod:1288
20157 #, no-wrap
20158 msgid ""
20159 " get-autosync\n"
20160 "\n"
20161 msgstr ""
20162
20163 # type: =head2
20164 #: ../fish/guestfish-actions.pod:1292
20165 msgid "get-direct"
20166 msgstr ""
20167
20168 # type: verbatim
20169 #: ../fish/guestfish-actions.pod:1294
20170 #, no-wrap
20171 msgid ""
20172 " get-direct\n"
20173 "\n"
20174 msgstr ""
20175
20176 # type: =head2
20177 #: ../fish/guestfish-actions.pod:1298
20178 msgid "get-e2label"
20179 msgstr ""
20180
20181 # type: verbatim
20182 #: ../fish/guestfish-actions.pod:1300
20183 #, no-wrap
20184 msgid ""
20185 " get-e2label device\n"
20186 "\n"
20187 msgstr ""
20188
20189 # type: =head2
20190 #: ../fish/guestfish-actions.pod:1312
20191 msgid "get-e2uuid"
20192 msgstr ""
20193
20194 # type: verbatim
20195 #: ../fish/guestfish-actions.pod:1314
20196 #, no-wrap
20197 msgid ""
20198 " get-e2uuid device\n"
20199 "\n"
20200 msgstr ""
20201
20202 # type: =head2
20203 #: ../fish/guestfish-actions.pod:1326
20204 msgid "get-memsize"
20205 msgstr ""
20206
20207 # type: verbatim
20208 #: ../fish/guestfish-actions.pod:1328
20209 #, no-wrap
20210 msgid ""
20211 " get-memsize\n"
20212 "\n"
20213 msgstr ""
20214
20215 # type: textblock
20216 #: ../fish/guestfish-actions.pod:1333
20217 msgid ""
20218 "If L</set-memsize> was not called on this handle, and if "
20219 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20220 "value for memsize."
20221 msgstr ""
20222
20223 # type: =head2
20224 #: ../fish/guestfish-actions.pod:1340
20225 msgid "get-network"
20226 msgstr ""
20227
20228 # type: verbatim
20229 #: ../fish/guestfish-actions.pod:1342
20230 #, no-wrap
20231 msgid ""
20232 " get-network\n"
20233 "\n"
20234 msgstr ""
20235
20236 # type: =head2
20237 #: ../fish/guestfish-actions.pod:1346
20238 msgid "get-path"
20239 msgstr ""
20240
20241 # type: verbatim
20242 #: ../fish/guestfish-actions.pod:1348
20243 #, no-wrap
20244 msgid ""
20245 " get-path\n"
20246 "\n"
20247 msgstr ""
20248
20249 # type: =head2
20250 #: ../fish/guestfish-actions.pod:1355
20251 msgid "get-pid"
20252 msgstr ""
20253
20254 # type: =head2
20255 #: ../fish/guestfish-actions.pod:1357
20256 msgid "pid"
20257 msgstr ""
20258
20259 # type: verbatim
20260 #: ../fish/guestfish-actions.pod:1359
20261 #, no-wrap
20262 msgid ""
20263 " get-pid\n"
20264 "\n"
20265 msgstr ""
20266
20267 # type: =head2
20268 #: ../fish/guestfish-actions.pod:1366
20269 msgid "get-qemu"
20270 msgstr ""
20271
20272 # type: verbatim
20273 #: ../fish/guestfish-actions.pod:1368
20274 #, no-wrap
20275 msgid ""
20276 " get-qemu\n"
20277 "\n"
20278 msgstr ""
20279
20280 # type: =head2
20281 #: ../fish/guestfish-actions.pod:1375
20282 msgid "get-recovery-proc"
20283 msgstr ""
20284
20285 # type: verbatim
20286 #: ../fish/guestfish-actions.pod:1377
20287 #, no-wrap
20288 msgid ""
20289 " get-recovery-proc\n"
20290 "\n"
20291 msgstr ""
20292
20293 # type: =head2
20294 #: ../fish/guestfish-actions.pod:1381
20295 msgid "get-selinux"
20296 msgstr ""
20297
20298 # type: verbatim
20299 #: ../fish/guestfish-actions.pod:1383
20300 #, no-wrap
20301 msgid ""
20302 " get-selinux\n"
20303 "\n"
20304 msgstr ""
20305
20306 # type: textblock
20307 #: ../fish/guestfish-actions.pod:1385
20308 msgid ""
20309 "This returns the current setting of the selinux flag which is passed to the "
20310 "appliance at boot time.  See L</set-selinux>."
20311 msgstr ""
20312
20313 # type: =head2
20314 #: ../fish/guestfish-actions.pod:1391
20315 msgid "get-state"
20316 msgstr ""
20317
20318 # type: verbatim
20319 #: ../fish/guestfish-actions.pod:1393
20320 #, no-wrap
20321 msgid ""
20322 " get-state\n"
20323 "\n"
20324 msgstr ""
20325
20326 # type: =head2
20327 #: ../fish/guestfish-actions.pod:1400
20328 msgid "get-trace"
20329 msgstr ""
20330
20331 # type: verbatim
20332 #: ../fish/guestfish-actions.pod:1402
20333 #, no-wrap
20334 msgid ""
20335 " get-trace\n"
20336 "\n"
20337 msgstr ""
20338
20339 # type: =head2
20340 #: ../fish/guestfish-actions.pod:1406
20341 msgid "get-umask"
20342 msgstr ""
20343
20344 # type: verbatim
20345 #: ../fish/guestfish-actions.pod:1408
20346 #, no-wrap
20347 msgid ""
20348 " get-umask\n"
20349 "\n"
20350 msgstr ""
20351
20352 # type: textblock
20353 #: ../fish/guestfish-actions.pod:1410
20354 msgid ""
20355 "Return the current umask.  By default the umask is C<022> unless it has been "
20356 "set by calling L</umask>."
20357 msgstr ""
20358
20359 # type: =head2
20360 #: ../fish/guestfish-actions.pod:1413
20361 msgid "get-verbose"
20362 msgstr ""
20363
20364 # type: verbatim
20365 #: ../fish/guestfish-actions.pod:1415
20366 #, no-wrap
20367 msgid ""
20368 " get-verbose\n"
20369 "\n"
20370 msgstr ""
20371
20372 # type: =head2
20373 #: ../fish/guestfish-actions.pod:1419
20374 msgid "getcon"
20375 msgstr ""
20376
20377 # type: verbatim
20378 #: ../fish/guestfish-actions.pod:1421
20379 #, no-wrap
20380 msgid ""
20381 " getcon\n"
20382 "\n"
20383 msgstr ""
20384
20385 # type: textblock
20386 #: ../fish/guestfish-actions.pod:1425
20387 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20388 msgstr ""
20389
20390 # type: =head2
20391 #: ../fish/guestfish-actions.pod:1428
20392 msgid "getxattrs"
20393 msgstr ""
20394
20395 # type: verbatim
20396 #: ../fish/guestfish-actions.pod:1430
20397 #, no-wrap
20398 msgid ""
20399 " getxattrs path\n"
20400 "\n"
20401 msgstr ""
20402
20403 # type: textblock
20404 #: ../fish/guestfish-actions.pod:1438
20405 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20406 msgstr ""
20407
20408 # type: =head2
20409 #: ../fish/guestfish-actions.pod:1440
20410 msgid "glob-expand"
20411 msgstr ""
20412
20413 # type: verbatim
20414 #: ../fish/guestfish-actions.pod:1442
20415 #, no-wrap
20416 msgid ""
20417 " glob-expand pattern\n"
20418 "\n"
20419 msgstr ""
20420
20421 # type: =head2
20422 #: ../fish/guestfish-actions.pod:1455
20423 msgid "grep"
20424 msgstr ""
20425
20426 # type: verbatim
20427 #: ../fish/guestfish-actions.pod:1457
20428 #, no-wrap
20429 msgid ""
20430 " grep regex path\n"
20431 "\n"
20432 msgstr ""
20433
20434 # type: =head2
20435 #: ../fish/guestfish-actions.pod:1465
20436 msgid "grepi"
20437 msgstr ""
20438
20439 # type: verbatim
20440 #: ../fish/guestfish-actions.pod:1467
20441 #, no-wrap
20442 msgid ""
20443 " grepi regex path\n"
20444 "\n"
20445 msgstr ""
20446
20447 # type: =head2
20448 #: ../fish/guestfish-actions.pod:1475
20449 msgid "grub-install"
20450 msgstr ""
20451
20452 # type: verbatim
20453 #: ../fish/guestfish-actions.pod:1477
20454 #, no-wrap
20455 msgid ""
20456 " grub-install root device\n"
20457 "\n"
20458 msgstr ""
20459
20460 # type: =head2
20461 #: ../fish/guestfish-actions.pod:1493
20462 msgid "head"
20463 msgstr ""
20464
20465 # type: verbatim
20466 #: ../fish/guestfish-actions.pod:1495
20467 #, no-wrap
20468 msgid ""
20469 " head path\n"
20470 "\n"
20471 msgstr ""
20472
20473 # type: =head2
20474 #: ../fish/guestfish-actions.pod:1503
20475 msgid "head-n"
20476 msgstr ""
20477
20478 # type: verbatim
20479 #: ../fish/guestfish-actions.pod:1505
20480 #, no-wrap
20481 msgid ""
20482 " head-n nrlines path\n"
20483 "\n"
20484 msgstr ""
20485
20486 # type: =head2
20487 #: ../fish/guestfish-actions.pod:1518
20488 msgid "hexdump"
20489 msgstr ""
20490
20491 # type: verbatim
20492 #: ../fish/guestfish-actions.pod:1520
20493 #, no-wrap
20494 msgid ""
20495 " hexdump path\n"
20496 "\n"
20497 msgstr ""
20498
20499 # type: =head2
20500 #: ../fish/guestfish-actions.pod:1528
20501 msgid "initrd-cat"
20502 msgstr ""
20503
20504 # type: verbatim
20505 #: ../fish/guestfish-actions.pod:1530
20506 #, no-wrap
20507 msgid ""
20508 " initrd-cat initrdpath filename\n"
20509 "\n"
20510 msgstr ""
20511
20512 # type: textblock
20513 #: ../fish/guestfish-actions.pod:1542
20514 msgid "See also L</initrd-list>."
20515 msgstr ""
20516
20517 # type: =head2
20518 #: ../fish/guestfish-actions.pod:1547
20519 msgid "initrd-list"
20520 msgstr ""
20521
20522 # type: verbatim
20523 #: ../fish/guestfish-actions.pod:1549
20524 #, no-wrap
20525 msgid ""
20526 " initrd-list path\n"
20527 "\n"
20528 msgstr ""
20529
20530 # type: =head2
20531 #: ../fish/guestfish-actions.pod:1561
20532 msgid "inotify-add-watch"
20533 msgstr ""
20534
20535 # type: verbatim
20536 #: ../fish/guestfish-actions.pod:1563
20537 #, no-wrap
20538 msgid ""
20539 " inotify-add-watch path mask\n"
20540 "\n"
20541 msgstr ""
20542
20543 # type: =head2
20544 #: ../fish/guestfish-actions.pod:1575
20545 msgid "inotify-close"
20546 msgstr ""
20547
20548 # type: verbatim
20549 #: ../fish/guestfish-actions.pod:1577
20550 #, no-wrap
20551 msgid ""
20552 " inotify-close\n"
20553 "\n"
20554 msgstr ""
20555
20556 # type: =head2
20557 #: ../fish/guestfish-actions.pod:1583
20558 msgid "inotify-files"
20559 msgstr ""
20560
20561 # type: verbatim
20562 #: ../fish/guestfish-actions.pod:1585
20563 #, no-wrap
20564 msgid ""
20565 " inotify-files\n"
20566 "\n"
20567 msgstr ""
20568
20569 # type: textblock
20570 #: ../fish/guestfish-actions.pod:1587
20571 msgid ""
20572 "This function is a helpful wrapper around L</inotify-read> which just "
20573 "returns a list of pathnames of objects that were touched.  The returned "
20574 "pathnames are sorted and deduplicated."
20575 msgstr ""
20576
20577 # type: =head2
20578 #: ../fish/guestfish-actions.pod:1591
20579 msgid "inotify-init"
20580 msgstr ""
20581
20582 # type: verbatim
20583 #: ../fish/guestfish-actions.pod:1593
20584 #, no-wrap
20585 msgid ""
20586 " inotify-init maxevents\n"
20587 "\n"
20588 msgstr ""
20589
20590 # type: textblock
20591 #: ../fish/guestfish-actions.pod:1599
20592 msgid ""
20593 "C<maxevents> is the maximum number of events which will be queued up between "
20594 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20595 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20596 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20597 "but records the fact that it threw them away by setting a flag "
20598 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20599 msgstr ""
20600
20601 # type: textblock
20602 #: ../fish/guestfish-actions.pod:1609
20603 msgid ""
20604 "Before any events are generated, you have to add some watches to the "
20605 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20606 "L</inotify-watch-all>."
20607 msgstr ""
20608
20609 # type: textblock
20610 #: ../fish/guestfish-actions.pod:1615
20611 msgid ""
20612 "Queued up events should be read periodically by calling L</inotify-read> (or "
20613 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20614 "If you don't read the events out often enough then you risk the internal "
20615 "queue overflowing."
20616 msgstr ""
20617
20618 # type: textblock
20619 #: ../fish/guestfish-actions.pod:1622
20620 msgid ""
20621 "The handle should be closed after use by calling L</inotify-close>.  This "
20622 "also removes any watches automatically."
20623 msgstr ""
20624
20625 # type: =head2
20626 #: ../fish/guestfish-actions.pod:1631
20627 msgid "inotify-read"
20628 msgstr ""
20629
20630 # type: verbatim
20631 #: ../fish/guestfish-actions.pod:1633
20632 #, no-wrap
20633 msgid ""
20634 " inotify-read\n"
20635 "\n"
20636 msgstr ""
20637
20638 # type: =head2
20639 #: ../fish/guestfish-actions.pod:1646
20640 msgid "inotify-rm-watch"
20641 msgstr ""
20642
20643 # type: verbatim
20644 #: ../fish/guestfish-actions.pod:1648
20645 #, no-wrap
20646 msgid ""
20647 " inotify-rm-watch wd\n"
20648 "\n"
20649 msgstr ""
20650
20651 # type: textblock
20652 #: ../fish/guestfish-actions.pod:1650
20653 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20654 msgstr ""
20655
20656 # type: =head2
20657 #: ../fish/guestfish-actions.pod:1653
20658 msgid "inspect-get-arch"
20659 msgstr ""
20660
20661 # type: verbatim
20662 #: ../fish/guestfish-actions.pod:1655
20663 #, no-wrap
20664 msgid ""
20665 " inspect-get-arch root\n"
20666 "\n"
20667 msgstr ""
20668
20669 # type: textblock
20670 #: ../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
20671 msgid ""
20672 "This function should only be called with a root device string as returned by "
20673 "L</inspect-os>."
20674 msgstr ""
20675
20676 # type: textblock
20677 #: ../fish/guestfish-actions.pod:1660
20678 msgid ""
20679 "This returns the architecture of the inspected operating system.  The "
20680 "possible return values are listed under L</file-architecture>."
20681 msgstr ""
20682
20683 # type: =head2
20684 #: ../fish/guestfish-actions.pod:1669
20685 msgid "inspect-get-distro"
20686 msgstr ""
20687
20688 # type: verbatim
20689 #: ../fish/guestfish-actions.pod:1671
20690 #, no-wrap
20691 msgid ""
20692 " inspect-get-distro root\n"
20693 "\n"
20694 msgstr ""
20695
20696 # type: =head2
20697 #: ../fish/guestfish-actions.pod:1743
20698 msgid "inspect-get-filesystems"
20699 msgstr ""
20700
20701 # type: verbatim
20702 #: ../fish/guestfish-actions.pod:1745
20703 #, no-wrap
20704 msgid ""
20705 " inspect-get-filesystems root\n"
20706 "\n"
20707 msgstr ""
20708
20709 # type: textblock
20710 #: ../fish/guestfish-actions.pod:1758
20711 msgid ""
20712 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20713 "L</inspect-get-mountpoints>."
20714 msgstr ""
20715
20716 # type: =head2
20717 #: ../fish/guestfish-actions.pod:1761
20718 msgid "inspect-get-hostname"
20719 msgstr ""
20720
20721 # type: verbatim
20722 #: ../fish/guestfish-actions.pod:1763
20723 #, no-wrap
20724 msgid ""
20725 " inspect-get-hostname root\n"
20726 "\n"
20727 msgstr ""
20728
20729 # type: =head2
20730 #: ../fish/guestfish-actions.pod:1776
20731 msgid "inspect-get-major-version"
20732 msgstr ""
20733
20734 # type: verbatim
20735 #: ../fish/guestfish-actions.pod:1778
20736 #, no-wrap
20737 msgid ""
20738 " inspect-get-major-version root\n"
20739 "\n"
20740 msgstr ""
20741
20742 # type: =head2
20743 #: ../fish/guestfish-actions.pod:1797
20744 msgid "inspect-get-minor-version"
20745 msgstr ""
20746
20747 # type: verbatim
20748 #: ../fish/guestfish-actions.pod:1799
20749 #, no-wrap
20750 msgid ""
20751 " inspect-get-minor-version root\n"
20752 "\n"
20753 msgstr ""
20754
20755 # type: textblock
20756 #: ../fish/guestfish-actions.pod:1809
20757 msgid ""
20758 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20759 "L</inspect-get-major-version>."
20760 msgstr ""
20761
20762 # type: =head2
20763 #: ../fish/guestfish-actions.pod:1812
20764 msgid "inspect-get-mountpoints"
20765 msgstr ""
20766
20767 # type: verbatim
20768 #: ../fish/guestfish-actions.pod:1814
20769 #, no-wrap
20770 msgid ""
20771 " inspect-get-mountpoints root\n"
20772 "\n"
20773 msgstr ""
20774
20775 # type: textblock
20776 #: ../fish/guestfish-actions.pod:1832
20777 msgid ""
20778 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20779 "L</inspect-get-filesystems>."
20780 msgstr ""
20781
20782 # type: =head2
20783 #: ../fish/guestfish-actions.pod:1835
20784 msgid "inspect-get-package-format"
20785 msgstr ""
20786
20787 # type: verbatim
20788 #: ../fish/guestfish-actions.pod:1837
20789 #, no-wrap
20790 msgid ""
20791 " inspect-get-package-format root\n"
20792 "\n"
20793 msgstr ""
20794
20795 # type: textblock
20796 #: ../fish/guestfish-actions.pod:1842
20797 msgid ""
20798 "This function and L</inspect-get-package-management> return the package "
20799 "format and package management tool used by the inspected operating system.  "
20800 "For example for Fedora these functions would return C<rpm> (package format) "
20801 "and C<yum> (package management)."
20802 msgstr ""
20803
20804 # type: =head2
20805 #: ../fish/guestfish-actions.pod:1857
20806 msgid "inspect-get-package-management"
20807 msgstr ""
20808
20809 # type: verbatim
20810 #: ../fish/guestfish-actions.pod:1859
20811 #, no-wrap
20812 msgid ""
20813 " inspect-get-package-management root\n"
20814 "\n"
20815 msgstr ""
20816
20817 # type: textblock
20818 #: ../fish/guestfish-actions.pod:1864
20819 msgid ""
20820 "L</inspect-get-package-format> and this function return the package format "
20821 "and package management tool used by the inspected operating system.  For "
20822 "example for Fedora these functions would return C<rpm> (package format) and "
20823 "C<yum> (package management)."
20824 msgstr ""
20825
20826 # type: =head2
20827 #: ../fish/guestfish-actions.pod:1881
20828 msgid "inspect-get-product-name"
20829 msgstr ""
20830
20831 # type: verbatim
20832 #: ../fish/guestfish-actions.pod:1883
20833 #, no-wrap
20834 msgid ""
20835 " inspect-get-product-name root\n"
20836 "\n"
20837 msgstr ""
20838
20839 # type: =head2
20840 #: ../fish/guestfish-actions.pod:1898
20841 msgid "inspect-get-roots"
20842 msgstr ""
20843
20844 # type: verbatim
20845 #: ../fish/guestfish-actions.pod:1900
20846 #, no-wrap
20847 msgid ""
20848 " inspect-get-roots\n"
20849 "\n"
20850 msgstr ""
20851
20852 # type: textblock
20853 #: ../fish/guestfish-actions.pod:1902
20854 msgid ""
20855 "This function is a convenient way to get the list of root devices, as "
20856 "returned from a previous call to L</inspect-os>, but without redoing the "
20857 "whole inspection process."
20858 msgstr ""
20859
20860 # type: textblock
20861 #: ../fish/guestfish-actions.pod:1906
20862 msgid ""
20863 "This returns an empty list if either no root devices were found or the "
20864 "caller has not called L</inspect-os>."
20865 msgstr ""
20866
20867 # type: =head2
20868 #: ../fish/guestfish-actions.pod:1911
20869 msgid "inspect-get-type"
20870 msgstr ""
20871
20872 # type: verbatim
20873 #: ../fish/guestfish-actions.pod:1913
20874 #, no-wrap
20875 msgid ""
20876 " inspect-get-type root\n"
20877 "\n"
20878 msgstr ""
20879
20880 # type: =head2
20881 #: ../fish/guestfish-actions.pod:1946
20882 msgid "inspect-get-windows-systemroot"
20883 msgstr ""
20884
20885 # type: verbatim
20886 #: ../fish/guestfish-actions.pod:1948
20887 #, no-wrap
20888 msgid ""
20889 " inspect-get-windows-systemroot root\n"
20890 "\n"
20891 msgstr ""
20892
20893 # type: =head2
20894 #: ../fish/guestfish-actions.pod:1962
20895 msgid "inspect-list-applications"
20896 msgstr ""
20897
20898 # type: verbatim
20899 #: ../fish/guestfish-actions.pod:1964
20900 #, no-wrap
20901 msgid ""
20902 " inspect-list-applications root\n"
20903 "\n"
20904 msgstr ""
20905
20906 # type: textblock
20907 #: ../fish/guestfish-actions.pod:1971
20908 msgid ""
20909 "I<Note:> This call works differently from other parts of the inspection "
20910 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
20911 "then mount up the disks, before calling this.  Listing applications is a "
20912 "significantly more difficult operation which requires access to the full "
20913 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
20914 "are just returning data cached in the libguestfs handle, this call actually "
20915 "reads parts of the mounted filesystems during the call."
20916 msgstr ""
20917
20918 # type: =head2
20919 #: ../fish/guestfish-actions.pod:2061
20920 msgid "inspect-os"
20921 msgstr ""
20922
20923 # type: verbatim
20924 #: ../fish/guestfish-actions.pod:2063
20925 #, no-wrap
20926 msgid ""
20927 " inspect-os\n"
20928 "\n"
20929 msgstr ""
20930
20931 # type: textblock
20932 #: ../fish/guestfish-actions.pod:2078
20933 msgid ""
20934 "You can pass the root string(s) returned to other L</inspect-get-*> "
20935 "functions in order to query further information about each operating system, "
20936 "such as the name and version."
20937 msgstr ""
20938
20939 # type: textblock
20940 #: ../fish/guestfish-actions.pod:2083
20941 msgid ""
20942 "This function uses other libguestfs features such as L</mount-ro> and "
20943 "L</umount-all> in order to mount and unmount filesystems and look at the "
20944 "contents.  This should be called with no disks currently mounted.  The "
20945 "function may also use Augeas, so any existing Augeas handle will be closed."
20946 msgstr ""
20947
20948 # type: textblock
20949 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2297
20950 msgid "See also L</list-filesystems>."
20951 msgstr ""
20952
20953 # type: =head2
20954 #: ../fish/guestfish-actions.pod:2097
20955 msgid "is-blockdev"
20956 msgstr ""
20957
20958 # type: verbatim
20959 #: ../fish/guestfish-actions.pod:2099
20960 #, no-wrap
20961 msgid ""
20962 " is-blockdev path\n"
20963 "\n"
20964 msgstr ""
20965
20966 # type: textblock
20967 #: ../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
20968 msgid "See also L</stat>."
20969 msgstr ""
20970
20971 # type: =head2
20972 #: ../fish/guestfish-actions.pod:2106
20973 msgid "is-busy"
20974 msgstr ""
20975
20976 # type: verbatim
20977 #: ../fish/guestfish-actions.pod:2108
20978 #, no-wrap
20979 msgid ""
20980 " is-busy\n"
20981 "\n"
20982 msgstr ""
20983
20984 # type: =head2
20985 #: ../fish/guestfish-actions.pod:2115
20986 msgid "is-chardev"
20987 msgstr ""
20988
20989 # type: verbatim
20990 #: ../fish/guestfish-actions.pod:2117
20991 #, no-wrap
20992 msgid ""
20993 " is-chardev path\n"
20994 "\n"
20995 msgstr ""
20996
20997 # type: =head2
20998 #: ../fish/guestfish-actions.pod:2124
20999 msgid "is-config"
21000 msgstr ""
21001
21002 # type: verbatim
21003 #: ../fish/guestfish-actions.pod:2126
21004 #, no-wrap
21005 msgid ""
21006 " is-config\n"
21007 "\n"
21008 msgstr ""
21009
21010 # type: =head2
21011 #: ../fish/guestfish-actions.pod:2133
21012 msgid "is-dir"
21013 msgstr ""
21014
21015 # type: verbatim
21016 #: ../fish/guestfish-actions.pod:2135
21017 #, no-wrap
21018 msgid ""
21019 " is-dir path\n"
21020 "\n"
21021 msgstr ""
21022
21023 # type: =head2
21024 #: ../fish/guestfish-actions.pod:2143
21025 msgid "is-fifo"
21026 msgstr ""
21027
21028 # type: verbatim
21029 #: ../fish/guestfish-actions.pod:2145
21030 #, no-wrap
21031 msgid ""
21032 " is-fifo path\n"
21033 "\n"
21034 msgstr ""
21035
21036 # type: =head2
21037 #: ../fish/guestfish-actions.pod:2152
21038 msgid "is-file"
21039 msgstr ""
21040
21041 # type: verbatim
21042 #: ../fish/guestfish-actions.pod:2154
21043 #, no-wrap
21044 msgid ""
21045 " is-file path\n"
21046 "\n"
21047 msgstr ""
21048
21049 # type: =head2
21050 #: ../fish/guestfish-actions.pod:2162
21051 msgid "is-launching"
21052 msgstr ""
21053
21054 # type: verbatim
21055 #: ../fish/guestfish-actions.pod:2164
21056 #, no-wrap
21057 msgid ""
21058 " is-launching\n"
21059 "\n"
21060 msgstr ""
21061
21062 # type: =head2
21063 #: ../fish/guestfish-actions.pod:2171
21064 msgid "is-lv"
21065 msgstr ""
21066
21067 # type: verbatim
21068 #: ../fish/guestfish-actions.pod:2173
21069 #, no-wrap
21070 msgid ""
21071 " is-lv device\n"
21072 "\n"
21073 msgstr ""
21074
21075 # type: =head2
21076 #: ../fish/guestfish-actions.pod:2178
21077 msgid "is-ready"
21078 msgstr ""
21079
21080 # type: verbatim
21081 #: ../fish/guestfish-actions.pod:2180
21082 #, no-wrap
21083 msgid ""
21084 " is-ready\n"
21085 "\n"
21086 msgstr ""
21087
21088 # type: =head2
21089 #: ../fish/guestfish-actions.pod:2187
21090 msgid "is-socket"
21091 msgstr ""
21092
21093 # type: verbatim
21094 #: ../fish/guestfish-actions.pod:2189
21095 #, no-wrap
21096 msgid ""
21097 " is-socket path\n"
21098 "\n"
21099 msgstr ""
21100
21101 # type: =head2
21102 #: ../fish/guestfish-actions.pod:2196
21103 msgid "is-symlink"
21104 msgstr ""
21105
21106 # type: verbatim
21107 #: ../fish/guestfish-actions.pod:2198
21108 #, no-wrap
21109 msgid ""
21110 " is-symlink path\n"
21111 "\n"
21112 msgstr ""
21113
21114 # type: =head2
21115 #: ../fish/guestfish-actions.pod:2205
21116 msgid "kill-subprocess"
21117 msgstr ""
21118
21119 # type: verbatim
21120 #: ../fish/guestfish-actions.pod:2207
21121 #, no-wrap
21122 msgid ""
21123 " kill-subprocess\n"
21124 "\n"
21125 msgstr ""
21126
21127 # type: =head2
21128 #: ../fish/guestfish-actions.pod:2211
21129 msgid "launch"
21130 msgstr ""
21131
21132 # type: =head2
21133 #: ../fish/guestfish-actions.pod:2213
21134 msgid "run"
21135 msgstr ""
21136
21137 # type: verbatim
21138 #: ../fish/guestfish-actions.pod:2215
21139 #, no-wrap
21140 msgid ""
21141 " launch\n"
21142 "\n"
21143 msgstr ""
21144
21145 # type: =head2
21146 #: ../fish/guestfish-actions.pod:2223
21147 msgid "lchown"
21148 msgstr ""
21149
21150 # type: verbatim
21151 #: ../fish/guestfish-actions.pod:2225
21152 #, no-wrap
21153 msgid ""
21154 " lchown owner group path\n"
21155 "\n"
21156 msgstr ""
21157
21158 # type: textblock
21159 #: ../fish/guestfish-actions.pod:2227
21160 msgid ""
21161 "Change the file owner to C<owner> and group to C<group>.  This is like "
21162 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
21163 "the target."
21164 msgstr ""
21165
21166 # type: =head2
21167 #: ../fish/guestfish-actions.pod:2235
21168 msgid "lgetxattrs"
21169 msgstr ""
21170
21171 # type: verbatim
21172 #: ../fish/guestfish-actions.pod:2237
21173 #, no-wrap
21174 msgid ""
21175 " lgetxattrs path\n"
21176 "\n"
21177 msgstr ""
21178
21179 # type: textblock
21180 #: ../fish/guestfish-actions.pod:2239
21181 msgid ""
21182 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21183 "it returns the extended attributes of the link itself."
21184 msgstr ""
21185
21186 # type: =head2
21187 #: ../fish/guestfish-actions.pod:2243
21188 msgid "list-devices"
21189 msgstr ""
21190
21191 # type: verbatim
21192 #: ../fish/guestfish-actions.pod:2245
21193 #, no-wrap
21194 msgid ""
21195 " list-devices\n"
21196 "\n"
21197 msgstr ""
21198
21199 # type: =head2
21200 #: ../fish/guestfish-actions.pod:2253
21201 msgid "list-filesystems"
21202 msgstr ""
21203
21204 # type: verbatim
21205 #: ../fish/guestfish-actions.pod:2255
21206 #, no-wrap
21207 msgid ""
21208 " list-filesystems\n"
21209 "\n"
21210 msgstr ""
21211
21212 # type: textblock
21213 #: ../fish/guestfish-actions.pod:2274
21214 msgid ""
21215 "This command runs other libguestfs commands, which might include L</mount> "
21216 "and L</umount>, and therefore you should use this soon after launch and only "
21217 "when nothing is mounted."
21218 msgstr ""
21219
21220 # type: textblock
21221 #: ../fish/guestfish-actions.pod:2278
21222 msgid ""
21223 "Not all of the filesystems returned will be mountable.  In particular, swap "
21224 "partitions are returned in the list.  Also this command does not check that "
21225 "each filesystem found is valid and mountable, and some filesystems might be "
21226 "mountable but require special options.  Filesystems may not all belong to a "
21227 "single logical operating system (use L</inspect-os> to look for OSes)."
21228 msgstr ""
21229
21230 # type: =head2
21231 #: ../fish/guestfish-actions.pod:2286
21232 msgid "list-partitions"
21233 msgstr ""
21234
21235 # type: verbatim
21236 #: ../fish/guestfish-actions.pod:2288
21237 #, no-wrap
21238 msgid ""
21239 " list-partitions\n"
21240 "\n"
21241 msgstr ""
21242
21243 # type: textblock
21244 #: ../fish/guestfish-actions.pod:2294
21245 msgid ""
21246 "This does not return logical volumes.  For that you will need to call "
21247 "L</lvs>."
21248 msgstr ""
21249
21250 # type: =head2
21251 #: ../fish/guestfish-actions.pod:2299
21252 msgid "ll"
21253 msgstr ""
21254
21255 # type: verbatim
21256 #: ../fish/guestfish-actions.pod:2301
21257 #, no-wrap
21258 msgid ""
21259 " ll directory\n"
21260 "\n"
21261 msgstr ""
21262
21263 # type: =head2
21264 #: ../fish/guestfish-actions.pod:2309
21265 msgid "ln"
21266 msgstr ""
21267
21268 # type: verbatim
21269 #: ../fish/guestfish-actions.pod:2311
21270 #, no-wrap
21271 msgid ""
21272 " ln target linkname\n"
21273 "\n"
21274 msgstr ""
21275
21276 # type: =head2
21277 #: ../fish/guestfish-actions.pod:2315
21278 msgid "ln-f"
21279 msgstr ""
21280
21281 # type: verbatim
21282 #: ../fish/guestfish-actions.pod:2317
21283 #, no-wrap
21284 msgid ""
21285 " ln-f target linkname\n"
21286 "\n"
21287 msgstr ""
21288
21289 # type: =head2
21290 #: ../fish/guestfish-actions.pod:2322
21291 msgid "ln-s"
21292 msgstr ""
21293
21294 # type: verbatim
21295 #: ../fish/guestfish-actions.pod:2324
21296 #, no-wrap
21297 msgid ""
21298 " ln-s target linkname\n"
21299 "\n"
21300 msgstr ""
21301
21302 # type: =head2
21303 #: ../fish/guestfish-actions.pod:2328
21304 msgid "ln-sf"
21305 msgstr ""
21306
21307 # type: verbatim
21308 #: ../fish/guestfish-actions.pod:2330
21309 #, no-wrap
21310 msgid ""
21311 " ln-sf target linkname\n"
21312 "\n"
21313 msgstr ""
21314
21315 # type: =head2
21316 #: ../fish/guestfish-actions.pod:2335
21317 msgid "lremovexattr"
21318 msgstr ""
21319
21320 # type: verbatim
21321 #: ../fish/guestfish-actions.pod:2337
21322 #, no-wrap
21323 msgid ""
21324 " lremovexattr xattr path\n"
21325 "\n"
21326 msgstr ""
21327
21328 # type: textblock
21329 #: ../fish/guestfish-actions.pod:2339
21330 msgid ""
21331 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21332 "it removes an extended attribute of the link itself."
21333 msgstr ""
21334
21335 # type: =head2
21336 #: ../fish/guestfish-actions.pod:2343
21337 msgid "ls"
21338 msgstr ""
21339
21340 # type: verbatim
21341 #: ../fish/guestfish-actions.pod:2345
21342 #, no-wrap
21343 msgid ""
21344 " ls directory\n"
21345 "\n"
21346 msgstr ""
21347
21348 # type: textblock
21349 #: ../fish/guestfish-actions.pod:2351
21350 msgid ""
21351 "This command is mostly useful for interactive sessions.  Programs should "
21352 "probably use L</readdir> instead."
21353 msgstr ""
21354
21355 # type: =head2
21356 #: ../fish/guestfish-actions.pod:2354
21357 msgid "lsetxattr"
21358 msgstr ""
21359
21360 # type: verbatim
21361 #: ../fish/guestfish-actions.pod:2356
21362 #, no-wrap
21363 msgid ""
21364 " lsetxattr xattr val vallen path\n"
21365 "\n"
21366 msgstr ""
21367
21368 # type: textblock
21369 #: ../fish/guestfish-actions.pod:2358
21370 msgid ""
21371 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21372 "sets an extended attribute of the link itself."
21373 msgstr ""
21374
21375 # type: =head2
21376 #: ../fish/guestfish-actions.pod:2362
21377 msgid "lstat"
21378 msgstr ""
21379
21380 # type: verbatim
21381 #: ../fish/guestfish-actions.pod:2364
21382 #, no-wrap
21383 msgid ""
21384 " lstat path\n"
21385 "\n"
21386 msgstr ""
21387
21388 # type: textblock
21389 #: ../fish/guestfish-actions.pod:2368
21390 msgid ""
21391 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21392 "the link is stat-ed, not the file it refers to."
21393 msgstr ""
21394
21395 # type: =head2
21396 #: ../fish/guestfish-actions.pod:2374
21397 msgid "lstatlist"
21398 msgstr ""
21399
21400 # type: verbatim
21401 #: ../fish/guestfish-actions.pod:2376
21402 #, no-wrap
21403 msgid ""
21404 " lstatlist path 'names ...'\n"
21405 "\n"
21406 msgstr ""
21407
21408 # type: textblock
21409 #: ../fish/guestfish-actions.pod:2378
21410 msgid ""
21411 "This call allows you to perform the L</lstat> operation on multiple files, "
21412 "where all files are in the directory C<path>.  C<names> is the list of files "
21413 "from this directory."
21414 msgstr ""
21415
21416 # type: textblock
21417 #: ../fish/guestfish-actions.pod:2387
21418 msgid ""
21419 "This call is intended for programs that want to efficiently list a directory "
21420 "contents without making many round-trips.  See also L</lxattrlist> for a "
21421 "similarly efficient call for getting extended attributes.  Very long "
21422 "directory listings might cause the protocol message size to be exceeded, "
21423 "causing this call to fail.  The caller must split up such requests into "
21424 "smaller groups of names."
21425 msgstr ""
21426
21427 # type: =head2
21428 #: ../fish/guestfish-actions.pod:2395
21429 msgid "luks-add-key"
21430 msgstr ""
21431
21432 # type: verbatim
21433 #: ../fish/guestfish-actions.pod:2397
21434 #, no-wrap
21435 msgid ""
21436 " luks-add-key device keyslot\n"
21437 "\n"
21438 msgstr ""
21439
21440 # type: textblock
21441 #: ../fish/guestfish-actions.pod:2404
21442 msgid ""
21443 "Note that if C<keyslot> already contains a key, then this command will "
21444 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21445 msgstr ""
21446
21447 # type: textblock
21448 #: ../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
21449 msgid ""
21450 "This command has one or more key or passphrase parameters.  Guestfish will "
21451 "prompt for these separately."
21452 msgstr ""
21453
21454 # type: =head2
21455 #: ../fish/guestfish-actions.pod:2411
21456 msgid "luks-close"
21457 msgstr ""
21458
21459 # type: verbatim
21460 #: ../fish/guestfish-actions.pod:2413
21461 #, no-wrap
21462 msgid ""
21463 " luks-close device\n"
21464 "\n"
21465 msgstr ""
21466
21467 # type: textblock
21468 #: ../fish/guestfish-actions.pod:2415
21469 msgid ""
21470 "This closes a LUKS device that was created earlier by L</luks-open> or "
21471 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
21472 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
21473 "underlying block device."
21474 msgstr ""
21475
21476 # type: =head2
21477 #: ../fish/guestfish-actions.pod:2421
21478 msgid "luks-format"
21479 msgstr ""
21480
21481 # type: verbatim
21482 #: ../fish/guestfish-actions.pod:2423
21483 #, no-wrap
21484 msgid ""
21485 " luks-format device keyslot\n"
21486 "\n"
21487 msgstr ""
21488
21489 # type: =head2
21490 #: ../fish/guestfish-actions.pod:2436
21491 msgid "luks-format-cipher"
21492 msgstr ""
21493
21494 # type: verbatim
21495 #: ../fish/guestfish-actions.pod:2438
21496 #, no-wrap
21497 msgid ""
21498 " luks-format-cipher device keyslot cipher\n"
21499 "\n"
21500 msgstr ""
21501
21502 # type: textblock
21503 #: ../fish/guestfish-actions.pod:2440
21504 msgid ""
21505 "This command is the same as L</luks-format> but it also allows you to set "
21506 "the C<cipher> used."
21507 msgstr ""
21508
21509 # type: =head2
21510 #: ../fish/guestfish-actions.pod:2449
21511 msgid "luks-kill-slot"
21512 msgstr ""
21513
21514 # type: verbatim
21515 #: ../fish/guestfish-actions.pod:2451
21516 #, no-wrap
21517 msgid ""
21518 " luks-kill-slot device keyslot\n"
21519 "\n"
21520 msgstr ""
21521
21522 # type: =head2
21523 #: ../fish/guestfish-actions.pod:2460
21524 msgid "luks-open"
21525 msgstr ""
21526
21527 # type: verbatim
21528 #: ../fish/guestfish-actions.pod:2462
21529 #, no-wrap
21530 msgid ""
21531 " luks-open device mapname\n"
21532 "\n"
21533 msgstr ""
21534
21535 # type: textblock
21536 #: ../fish/guestfish-actions.pod:2476
21537 msgid ""
21538 "If this block device contains LVM volume groups, then calling L</vgscan> "
21539 "followed by L</vg-activate-all> will make them visible."
21540 msgstr ""
21541
21542 # type: =head2
21543 #: ../fish/guestfish-actions.pod:2483
21544 msgid "luks-open-ro"
21545 msgstr ""
21546
21547 # type: verbatim
21548 #: ../fish/guestfish-actions.pod:2485
21549 #, no-wrap
21550 msgid ""
21551 " luks-open-ro device mapname\n"
21552 "\n"
21553 msgstr ""
21554
21555 # type: textblock
21556 #: ../fish/guestfish-actions.pod:2487
21557 msgid ""
21558 "This is the same as L</luks-open> except that a read-only mapping is "
21559 "created."
21560 msgstr ""
21561
21562 # type: =head2
21563 #: ../fish/guestfish-actions.pod:2493
21564 msgid "lvcreate"
21565 msgstr ""
21566
21567 # type: verbatim
21568 #: ../fish/guestfish-actions.pod:2495
21569 #, no-wrap
21570 msgid ""
21571 " lvcreate logvol volgroup mbytes\n"
21572 "\n"
21573 msgstr ""
21574
21575 # type: =head2
21576 #: ../fish/guestfish-actions.pod:2500
21577 msgid "lvm-canonical-lv-name"
21578 msgstr ""
21579
21580 # type: verbatim
21581 #: ../fish/guestfish-actions.pod:2502
21582 #, no-wrap
21583 msgid ""
21584 " lvm-canonical-lv-name lvname\n"
21585 "\n"
21586 msgstr ""
21587
21588 # type: textblock
21589 #: ../fish/guestfish-actions.pod:2511
21590 msgid "See also L</is-lv>."
21591 msgstr ""
21592
21593 # type: =head2
21594 #: ../fish/guestfish-actions.pod:2513
21595 msgid "lvm-clear-filter"
21596 msgstr ""
21597
21598 # type: verbatim
21599 #: ../fish/guestfish-actions.pod:2515
21600 #, no-wrap
21601 msgid ""
21602 " lvm-clear-filter\n"
21603 "\n"
21604 msgstr ""
21605
21606 # type: textblock
21607 #: ../fish/guestfish-actions.pod:2517
21608 msgid ""
21609 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21610 "block device."
21611 msgstr ""
21612
21613 # type: =head2
21614 #: ../fish/guestfish-actions.pod:2523
21615 msgid "lvm-remove-all"
21616 msgstr ""
21617
21618 # type: verbatim
21619 #: ../fish/guestfish-actions.pod:2525
21620 #, no-wrap
21621 msgid ""
21622 " lvm-remove-all\n"
21623 "\n"
21624 msgstr ""
21625
21626 # type: =head2
21627 #: ../fish/guestfish-actions.pod:2533
21628 msgid "lvm-set-filter"
21629 msgstr ""
21630
21631 # type: verbatim
21632 #: ../fish/guestfish-actions.pod:2535
21633 #, no-wrap
21634 msgid ""
21635 " lvm-set-filter 'devices ...'\n"
21636 "\n"
21637 msgstr ""
21638
21639 # type: =head2
21640 #: ../fish/guestfish-actions.pod:2560
21641 msgid "lvremove"
21642 msgstr ""
21643
21644 # type: verbatim
21645 #: ../fish/guestfish-actions.pod:2562
21646 #, no-wrap
21647 msgid ""
21648 " lvremove device\n"
21649 "\n"
21650 msgstr ""
21651
21652 # type: =head2
21653 #: ../fish/guestfish-actions.pod:2570
21654 msgid "lvrename"
21655 msgstr ""
21656
21657 # type: verbatim
21658 #: ../fish/guestfish-actions.pod:2572
21659 #, no-wrap
21660 msgid ""
21661 " lvrename logvol newlogvol\n"
21662 "\n"
21663 msgstr ""
21664
21665 # type: =head2
21666 #: ../fish/guestfish-actions.pod:2576
21667 msgid "lvresize"
21668 msgstr ""
21669
21670 # type: verbatim
21671 #: ../fish/guestfish-actions.pod:2578
21672 #, no-wrap
21673 msgid ""
21674 " lvresize device mbytes\n"
21675 "\n"
21676 msgstr ""
21677
21678 # type: =head2
21679 #: ../fish/guestfish-actions.pod:2584
21680 msgid "lvresize-free"
21681 msgstr ""
21682
21683 # type: verbatim
21684 #: ../fish/guestfish-actions.pod:2586
21685 #, no-wrap
21686 msgid ""
21687 " lvresize-free lv percent\n"
21688 "\n"
21689 msgstr ""
21690
21691 # type: =head2
21692 #: ../fish/guestfish-actions.pod:2594
21693 msgid "lvs"
21694 msgstr ""
21695
21696 # type: verbatim
21697 #: ../fish/guestfish-actions.pod:2596
21698 #, no-wrap
21699 msgid ""
21700 " lvs\n"
21701 "\n"
21702 msgstr ""
21703
21704 # type: textblock
21705 #: ../fish/guestfish-actions.pod:2604
21706 msgid "See also L</lvs-full>, L</list-filesystems>."
21707 msgstr ""
21708
21709 # type: =head2
21710 #: ../fish/guestfish-actions.pod:2606
21711 msgid "lvs-full"
21712 msgstr ""
21713
21714 # type: verbatim
21715 #: ../fish/guestfish-actions.pod:2608
21716 #, no-wrap
21717 msgid ""
21718 " lvs-full\n"
21719 "\n"
21720 msgstr ""
21721
21722 # type: =head2
21723 #: ../fish/guestfish-actions.pod:2613
21724 msgid "lvuuid"
21725 msgstr ""
21726
21727 # type: verbatim
21728 #: ../fish/guestfish-actions.pod:2615
21729 #, no-wrap
21730 msgid ""
21731 " lvuuid device\n"
21732 "\n"
21733 msgstr ""
21734
21735 # type: =head2
21736 #: ../fish/guestfish-actions.pod:2619
21737 msgid "lxattrlist"
21738 msgstr ""
21739
21740 # type: verbatim
21741 #: ../fish/guestfish-actions.pod:2621
21742 #, no-wrap
21743 msgid ""
21744 " lxattrlist path 'names ...'\n"
21745 "\n"
21746 msgstr ""
21747
21748 # type: textblock
21749 #: ../fish/guestfish-actions.pod:2637
21750 msgid ""
21751 "This call is intended for programs that want to efficiently list a directory "
21752 "contents without making many round-trips.  See also L</lstatlist> for a "
21753 "similarly efficient call for getting standard stats.  Very long directory "
21754 "listings might cause the protocol message size to be exceeded, causing this "
21755 "call to fail.  The caller must split up such requests into smaller groups of "
21756 "names."
21757 msgstr ""
21758
21759 # type: =head2
21760 #: ../fish/guestfish-actions.pod:2645
21761 msgid "mkdir"
21762 msgstr ""
21763
21764 # type: verbatim
21765 #: ../fish/guestfish-actions.pod:2647
21766 #, no-wrap
21767 msgid ""
21768 " mkdir path\n"
21769 "\n"
21770 msgstr ""
21771
21772 # type: =head2
21773 #: ../fish/guestfish-actions.pod:2651
21774 msgid "mkdir-mode"
21775 msgstr ""
21776
21777 # type: verbatim
21778 #: ../fish/guestfish-actions.pod:2653
21779 #, no-wrap
21780 msgid ""
21781 " mkdir-mode path mode\n"
21782 "\n"
21783 msgstr ""
21784
21785 # type: textblock
21786 #: ../fish/guestfish-actions.pod:2662
21787 msgid "See also L</mkdir>, L</umask>"
21788 msgstr ""
21789
21790 # type: =head2
21791 #: ../fish/guestfish-actions.pod:2664
21792 msgid "mkdir-p"
21793 msgstr ""
21794
21795 # type: verbatim
21796 #: ../fish/guestfish-actions.pod:2666
21797 #, no-wrap
21798 msgid ""
21799 " mkdir-p path\n"
21800 "\n"
21801 msgstr ""
21802
21803 # type: =head2
21804 #: ../fish/guestfish-actions.pod:2671
21805 msgid "mkdtemp"
21806 msgstr ""
21807
21808 # type: verbatim
21809 #: ../fish/guestfish-actions.pod:2673
21810 #, no-wrap
21811 msgid ""
21812 " mkdtemp template\n"
21813 "\n"
21814 msgstr ""
21815
21816 # type: =head2
21817 #: ../fish/guestfish-actions.pod:2694
21818 msgid "mke2fs-J"
21819 msgstr ""
21820
21821 # type: verbatim
21822 #: ../fish/guestfish-actions.pod:2696
21823 #, no-wrap
21824 msgid ""
21825 " mke2fs-J fstype blocksize device journal\n"
21826 "\n"
21827 msgstr ""
21828
21829 # type: textblock
21830 #: ../fish/guestfish-actions.pod:2704
21831 msgid "See also L</mke2journal>."
21832 msgstr ""
21833
21834 # type: =head2
21835 #: ../fish/guestfish-actions.pod:2706
21836 msgid "mke2fs-JL"
21837 msgstr ""
21838
21839 # type: verbatim
21840 #: ../fish/guestfish-actions.pod:2708
21841 #, no-wrap
21842 msgid ""
21843 " mke2fs-JL fstype blocksize device label\n"
21844 "\n"
21845 msgstr ""
21846
21847 # type: textblock
21848 #: ../fish/guestfish-actions.pod:2713
21849 msgid "See also L</mke2journal-L>."
21850 msgstr ""
21851
21852 # type: =head2
21853 #: ../fish/guestfish-actions.pod:2715
21854 msgid "mke2fs-JU"
21855 msgstr ""
21856
21857 # type: verbatim
21858 #: ../fish/guestfish-actions.pod:2717
21859 #, no-wrap
21860 msgid ""
21861 " mke2fs-JU fstype blocksize device uuid\n"
21862 "\n"
21863 msgstr ""
21864
21865 # type: textblock
21866 #: ../fish/guestfish-actions.pod:2722
21867 msgid "See also L</mke2journal-U>."
21868 msgstr ""
21869
21870 # type: =head2
21871 #: ../fish/guestfish-actions.pod:2724
21872 msgid "mke2journal"
21873 msgstr ""
21874
21875 # type: verbatim
21876 #: ../fish/guestfish-actions.pod:2726
21877 #, no-wrap
21878 msgid ""
21879 " mke2journal blocksize device\n"
21880 "\n"
21881 msgstr ""
21882
21883 # type: =head2
21884 #: ../fish/guestfish-actions.pod:2733
21885 msgid "mke2journal-L"
21886 msgstr ""
21887
21888 # type: verbatim
21889 #: ../fish/guestfish-actions.pod:2735
21890 #, no-wrap
21891 msgid ""
21892 " mke2journal-L blocksize label device\n"
21893 "\n"
21894 msgstr ""
21895
21896 # type: =head2
21897 #: ../fish/guestfish-actions.pod:2739
21898 msgid "mke2journal-U"
21899 msgstr ""
21900
21901 # type: verbatim
21902 #: ../fish/guestfish-actions.pod:2741
21903 #, no-wrap
21904 msgid ""
21905 " mke2journal-U blocksize uuid device\n"
21906 "\n"
21907 msgstr ""
21908
21909 # type: =head2
21910 #: ../fish/guestfish-actions.pod:2745
21911 msgid "mkfifo"
21912 msgstr ""
21913
21914 # type: verbatim
21915 #: ../fish/guestfish-actions.pod:2747
21916 #, no-wrap
21917 msgid ""
21918 " mkfifo mode path\n"
21919 "\n"
21920 msgstr ""
21921
21922 # type: textblock
21923 #: ../fish/guestfish-actions.pod:2749
21924 msgid ""
21925 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
21926 "is just a convenient wrapper around L</mknod>."
21927 msgstr ""
21928
21929 # type: =head2
21930 #: ../fish/guestfish-actions.pod:2755
21931 msgid "mkfs"
21932 msgstr ""
21933
21934 # type: verbatim
21935 #: ../fish/guestfish-actions.pod:2757
21936 #, no-wrap
21937 msgid ""
21938 " mkfs fstype device\n"
21939 "\n"
21940 msgstr ""
21941
21942 # type: =head2
21943 #: ../fish/guestfish-actions.pod:2763
21944 msgid "mkfs-b"
21945 msgstr ""
21946
21947 # type: verbatim
21948 #: ../fish/guestfish-actions.pod:2765
21949 #, no-wrap
21950 msgid ""
21951 " mkfs-b fstype blocksize device\n"
21952 "\n"
21953 msgstr ""
21954
21955 # type: textblock
21956 #: ../fish/guestfish-actions.pod:2767
21957 msgid ""
21958 "This call is similar to L</mkfs>, but it allows you to control the block "
21959 "size of the resulting filesystem.  Supported block sizes depend on the "
21960 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
21961 msgstr ""
21962
21963 # type: =head2
21964 #: ../fish/guestfish-actions.pod:2775
21965 msgid "mkmountpoint"
21966 msgstr ""
21967
21968 # type: verbatim
21969 #: ../fish/guestfish-actions.pod:2777
21970 #, no-wrap
21971 msgid ""
21972 " mkmountpoint exemptpath\n"
21973 "\n"
21974 msgstr ""
21975
21976 # type: textblock
21977 #: ../fish/guestfish-actions.pod:2779
21978 msgid ""
21979 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
21980 "to create extra mountpoints before mounting the first filesystem."
21981 msgstr ""
21982
21983 # type: textblock
21984 #: ../fish/guestfish-actions.pod:2803
21985 msgid ""
21986 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
21987 "unexpected errors if you try to mix these calls.  It is safest to manually "
21988 "unmount filesystems and remove mountpoints after use."
21989 msgstr ""
21990
21991 # type: textblock
21992 #: ../fish/guestfish-actions.pod:2807
21993 msgid ""
21994 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
21995 "for this to work for manual mountpoints, you must ensure that the innermost "
21996 "mountpoints have the longest pathnames, as in the example code above."
21997 msgstr ""
21998
21999 # type: textblock
22000 #: ../fish/guestfish-actions.pod:2814
22001 msgid ""
22002 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22003 "that L</umount-all> is called when the handle is closed which can also "
22004 "trigger these issues."
22005 msgstr ""
22006
22007 # type: =head2
22008 #: ../fish/guestfish-actions.pod:2818
22009 msgid "mknod"
22010 msgstr ""
22011
22012 # type: verbatim
22013 #: ../fish/guestfish-actions.pod:2820
22014 #, no-wrap
22015 msgid ""
22016 " mknod mode devmajor devminor path\n"
22017 "\n"
22018 msgstr ""
22019
22020 # type: textblock
22021 #: ../fish/guestfish-actions.pod:2830
22022 msgid ""
22023 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22024 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22025 "regular file).  These constants are available in the standard Linux header "
22026 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22027 "wrappers around this command which bitwise OR in the appropriate constant "
22028 "for you."
22029 msgstr ""
22030
22031 # type: =head2
22032 #: ../fish/guestfish-actions.pod:2840
22033 msgid "mknod-b"
22034 msgstr ""
22035
22036 # type: verbatim
22037 #: ../fish/guestfish-actions.pod:2842
22038 #, no-wrap
22039 msgid ""
22040 " mknod-b mode devmajor devminor path\n"
22041 "\n"
22042 msgstr ""
22043
22044 # type: textblock
22045 #: ../fish/guestfish-actions.pod:2844
22046 msgid ""
22047 "This call creates a block device node called C<path> with mode C<mode> and "
22048 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22049 "wrapper around L</mknod>."
22050 msgstr ""
22051
22052 # type: =head2
22053 #: ../fish/guestfish-actions.pod:2850
22054 msgid "mknod-c"
22055 msgstr ""
22056
22057 # type: verbatim
22058 #: ../fish/guestfish-actions.pod:2852
22059 #, no-wrap
22060 msgid ""
22061 " mknod-c mode devmajor devminor path\n"
22062 "\n"
22063 msgstr ""
22064
22065 # type: textblock
22066 #: ../fish/guestfish-actions.pod:2854
22067 msgid ""
22068 "This call creates a char device node called C<path> with mode C<mode> and "
22069 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22070 "wrapper around L</mknod>."
22071 msgstr ""
22072
22073 # type: =head2
22074 #: ../fish/guestfish-actions.pod:2860
22075 msgid "mkswap"
22076 msgstr ""
22077
22078 # type: verbatim
22079 #: ../fish/guestfish-actions.pod:2862
22080 #, no-wrap
22081 msgid ""
22082 " mkswap device\n"
22083 "\n"
22084 msgstr ""
22085
22086 # type: =head2
22087 #: ../fish/guestfish-actions.pod:2866
22088 msgid "mkswap-L"
22089 msgstr ""
22090
22091 # type: verbatim
22092 #: ../fish/guestfish-actions.pod:2868
22093 #, no-wrap
22094 msgid ""
22095 " mkswap-L label device\n"
22096 "\n"
22097 msgstr ""
22098
22099 # type: =head2
22100 #: ../fish/guestfish-actions.pod:2876
22101 msgid "mkswap-U"
22102 msgstr ""
22103
22104 # type: verbatim
22105 #: ../fish/guestfish-actions.pod:2878
22106 #, no-wrap
22107 msgid ""
22108 " mkswap-U uuid device\n"
22109 "\n"
22110 msgstr ""
22111
22112 # type: =head2
22113 #: ../fish/guestfish-actions.pod:2882
22114 msgid "mkswap-file"
22115 msgstr ""
22116
22117 # type: verbatim
22118 #: ../fish/guestfish-actions.pod:2884
22119 #, no-wrap
22120 msgid ""
22121 " mkswap-file path\n"
22122 "\n"
22123 msgstr ""
22124
22125 # type: textblock
22126 #: ../fish/guestfish-actions.pod:2888
22127 msgid ""
22128 "This command just writes a swap file signature to an existing file.  To "
22129 "create the file itself, use something like L</fallocate>."
22130 msgstr ""
22131
22132 # type: =head2
22133 #: ../fish/guestfish-actions.pod:2891
22134 msgid "modprobe"
22135 msgstr ""
22136
22137 # type: verbatim
22138 #: ../fish/guestfish-actions.pod:2893
22139 #, no-wrap
22140 msgid ""
22141 " modprobe modulename\n"
22142 "\n"
22143 msgstr ""
22144
22145 # type: =head2
22146 #: ../fish/guestfish-actions.pod:2900
22147 msgid "mount"
22148 msgstr ""
22149
22150 # type: verbatim
22151 #: ../fish/guestfish-actions.pod:2902
22152 #, no-wrap
22153 msgid ""
22154 " mount device mountpoint\n"
22155 "\n"
22156 msgstr ""
22157
22158 # type: textblock
22159 #: ../fish/guestfish-actions.pod:2918
22160 msgid ""
22161 "B<Important note:> When you use this call, the filesystem options C<sync> "
22162 "and C<noatime> are set implicitly.  This was originally done because we "
22163 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22164 "very large negative performance impact and negligible effect on "
22165 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22166 "code that needs performance, and instead use L</mount-options> (use an empty "
22167 "string for the first parameter if you don't want any options)."
22168 msgstr ""
22169
22170 # type: =head2
22171 #: ../fish/guestfish-actions.pod:2928
22172 msgid "mount-loop"
22173 msgstr ""
22174
22175 # type: verbatim
22176 #: ../fish/guestfish-actions.pod:2930
22177 #, no-wrap
22178 msgid ""
22179 " mount-loop file mountpoint\n"
22180 "\n"
22181 msgstr ""
22182
22183 # type: =head2
22184 #: ../fish/guestfish-actions.pod:2936
22185 msgid "mount-options"
22186 msgstr ""
22187
22188 # type: verbatim
22189 #: ../fish/guestfish-actions.pod:2938
22190 #, no-wrap
22191 msgid ""
22192 " mount-options options device mountpoint\n"
22193 "\n"
22194 msgstr ""
22195
22196 # type: textblock
22197 #: ../fish/guestfish-actions.pod:2940
22198 msgid ""
22199 "This is the same as the L</mount> command, but it allows you to set the "
22200 "mount options as for the L<mount(8)> I<-o> flag."
22201 msgstr ""
22202
22203 # type: =head2
22204 #: ../fish/guestfish-actions.pod:2948
22205 msgid "mount-ro"
22206 msgstr ""
22207
22208 # type: verbatim
22209 #: ../fish/guestfish-actions.pod:2950
22210 #, no-wrap
22211 msgid ""
22212 " mount-ro device mountpoint\n"
22213 "\n"
22214 msgstr ""
22215
22216 # type: textblock
22217 #: ../fish/guestfish-actions.pod:2952
22218 msgid ""
22219 "This is the same as the L</mount> command, but it mounts the filesystem with "
22220 "the read-only (I<-o ro>) flag."
22221 msgstr ""
22222
22223 # type: =head2
22224 #: ../fish/guestfish-actions.pod:2955
22225 msgid "mount-vfs"
22226 msgstr ""
22227
22228 # type: verbatim
22229 #: ../fish/guestfish-actions.pod:2957
22230 #, no-wrap
22231 msgid ""
22232 " mount-vfs options vfstype device mountpoint\n"
22233 "\n"
22234 msgstr ""
22235
22236 # type: textblock
22237 #: ../fish/guestfish-actions.pod:2959
22238 msgid ""
22239 "This is the same as the L</mount> command, but it allows you to set both the "
22240 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22241 msgstr ""
22242
22243 # type: =head2
22244 #: ../fish/guestfish-actions.pod:2963
22245 msgid "mountpoints"
22246 msgstr ""
22247
22248 # type: verbatim
22249 #: ../fish/guestfish-actions.pod:2965
22250 #, no-wrap
22251 msgid ""
22252 " mountpoints\n"
22253 "\n"
22254 msgstr ""
22255
22256 # type: textblock
22257 #: ../fish/guestfish-actions.pod:2967
22258 msgid ""
22259 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22260 "This one returns a hash table (map) of device name to directory where the "
22261 "device is mounted."
22262 msgstr ""
22263
22264 # type: =head2
22265 #: ../fish/guestfish-actions.pod:2971
22266 msgid "mounts"
22267 msgstr ""
22268
22269 # type: verbatim
22270 #: ../fish/guestfish-actions.pod:2973
22271 #, no-wrap
22272 msgid ""
22273 " mounts\n"
22274 "\n"
22275 msgstr ""
22276
22277 # type: textblock
22278 #: ../fish/guestfish-actions.pod:2980
22279 msgid "See also: L</mountpoints>"
22280 msgstr ""
22281
22282 # type: =head2
22283 #: ../fish/guestfish-actions.pod:2982
22284 msgid "mv"
22285 msgstr ""
22286
22287 # type: verbatim
22288 #: ../fish/guestfish-actions.pod:2984
22289 #, no-wrap
22290 msgid ""
22291 " mv src dest\n"
22292 "\n"
22293 msgstr ""
22294
22295 # type: =head2
22296 #: ../fish/guestfish-actions.pod:2989
22297 msgid "ntfs-3g-probe"
22298 msgstr ""
22299
22300 # type: verbatim
22301 #: ../fish/guestfish-actions.pod:2991
22302 #, no-wrap
22303 msgid ""
22304 " ntfs-3g-probe true|false device\n"
22305 "\n"
22306 msgstr ""
22307
22308 # type: =head2
22309 #: ../fish/guestfish-actions.pod:3005
22310 msgid "ntfsresize"
22311 msgstr ""
22312
22313 # type: verbatim
22314 #: ../fish/guestfish-actions.pod:3007
22315 #, no-wrap
22316 msgid ""
22317 " ntfsresize device\n"
22318 "\n"
22319 msgstr ""
22320
22321 # type: =head2
22322 #: ../fish/guestfish-actions.pod:3013
22323 msgid "ntfsresize-size"
22324 msgstr ""
22325
22326 # type: verbatim
22327 #: ../fish/guestfish-actions.pod:3015
22328 #, no-wrap
22329 msgid ""
22330 " ntfsresize-size device size\n"
22331 "\n"
22332 msgstr ""
22333
22334 # type: textblock
22335 #: ../fish/guestfish-actions.pod:3017
22336 msgid ""
22337 "This command is the same as L</ntfsresize> except that it allows you to "
22338 "specify the new size (in bytes) explicitly."
22339 msgstr ""
22340
22341 # type: =head2
22342 #: ../fish/guestfish-actions.pod:3020
22343 msgid "part-add"
22344 msgstr ""
22345
22346 # type: verbatim
22347 #: ../fish/guestfish-actions.pod:3022
22348 #, no-wrap
22349 msgid ""
22350 " part-add device prlogex startsect endsect\n"
22351 "\n"
22352 msgstr ""
22353
22354 # type: textblock
22355 #: ../fish/guestfish-actions.pod:3024
22356 msgid ""
22357 "This command adds a partition to C<device>.  If there is no partition table "
22358 "on the device, call L</part-init> first."
22359 msgstr ""
22360
22361 # type: textblock
22362 #: ../fish/guestfish-actions.pod:3036
22363 msgid ""
22364 "Creating a partition which covers the whole disk is not so easy.  Use "
22365 "L</part-disk> to do that."
22366 msgstr ""
22367
22368 # type: =head2
22369 #: ../fish/guestfish-actions.pod:3039
22370 msgid "part-del"
22371 msgstr ""
22372
22373 # type: verbatim
22374 #: ../fish/guestfish-actions.pod:3041
22375 #, no-wrap
22376 msgid ""
22377 " part-del device partnum\n"
22378 "\n"
22379 msgstr ""
22380
22381 # type: =head2
22382 #: ../fish/guestfish-actions.pod:3049
22383 msgid "part-disk"
22384 msgstr ""
22385
22386 # type: verbatim
22387 #: ../fish/guestfish-actions.pod:3051
22388 #, no-wrap
22389 msgid ""
22390 " part-disk device parttype\n"
22391 "\n"
22392 msgstr ""
22393
22394 # type: textblock
22395 #: ../fish/guestfish-actions.pod:3053
22396 msgid ""
22397 "This command is simply a combination of L</part-init> followed by "
22398 "L</part-add> to create a single primary partition covering the whole disk."
22399 msgstr ""
22400
22401 # type: textblock
22402 #: ../fish/guestfish-actions.pod:3057
22403 msgid ""
22404 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22405 "possible values are described in L</part-init>."
22406 msgstr ""
22407
22408 # type: =head2
22409 #: ../fish/guestfish-actions.pod:3063
22410 msgid "part-get-bootable"
22411 msgstr ""
22412
22413 # type: verbatim
22414 #: ../fish/guestfish-actions.pod:3065
22415 #, no-wrap
22416 msgid ""
22417 " part-get-bootable device partnum\n"
22418 "\n"
22419 msgstr ""
22420
22421 # type: textblock
22422 #: ../fish/guestfish-actions.pod:3070
22423 msgid "See also L</part-set-bootable>."
22424 msgstr ""
22425
22426 # type: =head2
22427 #: ../fish/guestfish-actions.pod:3072
22428 msgid "part-get-mbr-id"
22429 msgstr ""
22430
22431 # type: verbatim
22432 #: ../fish/guestfish-actions.pod:3074
22433 #, no-wrap
22434 msgid ""
22435 " part-get-mbr-id device partnum\n"
22436 "\n"
22437 msgstr ""
22438
22439 # type: textblock
22440 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3217
22441 msgid ""
22442 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22443 "undefined results for other partition table types (see "
22444 "L</part-get-parttype>)."
22445 msgstr ""
22446
22447 # type: =head2
22448 #: ../fish/guestfish-actions.pod:3083
22449 msgid "part-get-parttype"
22450 msgstr ""
22451
22452 # type: verbatim
22453 #: ../fish/guestfish-actions.pod:3085
22454 #, no-wrap
22455 msgid ""
22456 " part-get-parttype device\n"
22457 "\n"
22458 msgstr ""
22459
22460 # type: textblock
22461 #: ../fish/guestfish-actions.pod:3090
22462 msgid ""
22463 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22464 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22465 "possible, although unusual.  See L</part-init> for a full list."
22466 msgstr ""
22467
22468 # type: =head2
22469 #: ../fish/guestfish-actions.pod:3095
22470 msgid "part-init"
22471 msgstr ""
22472
22473 # type: verbatim
22474 #: ../fish/guestfish-actions.pod:3097
22475 #, no-wrap
22476 msgid ""
22477 " part-init device parttype\n"
22478 "\n"
22479 msgstr ""
22480
22481 # type: textblock
22482 #: ../fish/guestfish-actions.pod:3103
22483 msgid ""
22484 "Initially there are no partitions.  Following this, you should call "
22485 "L</part-add> for each partition required."
22486 msgstr ""
22487
22488 # type: =head2
22489 #: ../fish/guestfish-actions.pod:3166
22490 msgid "part-list"
22491 msgstr ""
22492
22493 # type: verbatim
22494 #: ../fish/guestfish-actions.pod:3168
22495 #, no-wrap
22496 msgid ""
22497 " part-list device\n"
22498 "\n"
22499 msgstr ""
22500
22501 # type: textblock
22502 #: ../fish/guestfish-actions.pod:3183
22503 msgid ""
22504 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22505 "the device's sector size, see L</blockdev-getss>."
22506 msgstr ""
22507
22508 # type: =head2
22509 #: ../fish/guestfish-actions.pod:3196
22510 msgid "part-set-bootable"
22511 msgstr ""
22512
22513 # type: verbatim
22514 #: ../fish/guestfish-actions.pod:3198
22515 #, no-wrap
22516 msgid ""
22517 " part-set-bootable device partnum true|false\n"
22518 "\n"
22519 msgstr ""
22520
22521 # type: =head2
22522 #: ../fish/guestfish-actions.pod:3207
22523 msgid "part-set-mbr-id"
22524 msgstr ""
22525
22526 # type: verbatim
22527 #: ../fish/guestfish-actions.pod:3209
22528 #, no-wrap
22529 msgid ""
22530 " part-set-mbr-id device partnum idbyte\n"
22531 "\n"
22532 msgstr ""
22533
22534 # type: =head2
22535 #: ../fish/guestfish-actions.pod:3221
22536 msgid "part-set-name"
22537 msgstr ""
22538
22539 # type: verbatim
22540 #: ../fish/guestfish-actions.pod:3223
22541 #, no-wrap
22542 msgid ""
22543 " part-set-name device partnum name\n"
22544 "\n"
22545 msgstr ""
22546
22547 # type: =head2
22548 #: ../fish/guestfish-actions.pod:3231
22549 msgid "part-to-dev"
22550 msgstr ""
22551
22552 # type: verbatim
22553 #: ../fish/guestfish-actions.pod:3233
22554 #, no-wrap
22555 msgid ""
22556 " part-to-dev partition\n"
22557 "\n"
22558 msgstr ""
22559
22560 # type: textblock
22561 #: ../fish/guestfish-actions.pod:3239
22562 msgid ""
22563 "The named partition must exist, for example as a string returned from "
22564 "L</list-partitions>."
22565 msgstr ""
22566
22567 # type: =head2
22568 #: ../fish/guestfish-actions.pod:3242
22569 msgid "ping-daemon"
22570 msgstr ""
22571
22572 # type: verbatim
22573 #: ../fish/guestfish-actions.pod:3244
22574 #, no-wrap
22575 msgid ""
22576 " ping-daemon\n"
22577 "\n"
22578 msgstr ""
22579
22580 # type: =head2
22581 #: ../fish/guestfish-actions.pod:3251
22582 msgid "pread"
22583 msgstr ""
22584
22585 # type: verbatim
22586 #: ../fish/guestfish-actions.pod:3253
22587 #, no-wrap
22588 msgid ""
22589 " pread path count offset\n"
22590 "\n"
22591 msgstr ""
22592
22593 # type: textblock
22594 #: ../fish/guestfish-actions.pod:3261
22595 msgid "See also L</pwrite>, L</pread-device>."
22596 msgstr ""
22597
22598 # type: =head2
22599 #: ../fish/guestfish-actions.pod:3266
22600 msgid "pread-device"
22601 msgstr ""
22602
22603 # type: verbatim
22604 #: ../fish/guestfish-actions.pod:3268
22605 #, no-wrap
22606 msgid ""
22607 " pread-device device count offset\n"
22608 "\n"
22609 msgstr ""
22610
22611 # type: textblock
22612 #: ../fish/guestfish-actions.pod:3276
22613 msgid "See also L</pread>."
22614 msgstr ""
22615
22616 # type: =head2
22617 #: ../fish/guestfish-actions.pod:3281
22618 msgid "pvcreate"
22619 msgstr ""
22620
22621 # type: verbatim
22622 #: ../fish/guestfish-actions.pod:3283
22623 #, no-wrap
22624 msgid ""
22625 " pvcreate device\n"
22626 "\n"
22627 msgstr ""
22628
22629 # type: =head2
22630 #: ../fish/guestfish-actions.pod:3289
22631 msgid "pvremove"
22632 msgstr ""
22633
22634 # type: verbatim
22635 #: ../fish/guestfish-actions.pod:3291
22636 #, no-wrap
22637 msgid ""
22638 " pvremove device\n"
22639 "\n"
22640 msgstr ""
22641
22642 # type: =head2
22643 #: ../fish/guestfish-actions.pod:3300
22644 msgid "pvresize"
22645 msgstr ""
22646
22647 # type: verbatim
22648 #: ../fish/guestfish-actions.pod:3302
22649 #, no-wrap
22650 msgid ""
22651 " pvresize device\n"
22652 "\n"
22653 msgstr ""
22654
22655 # type: =head2
22656 #: ../fish/guestfish-actions.pod:3307
22657 msgid "pvresize-size"
22658 msgstr ""
22659
22660 # type: verbatim
22661 #: ../fish/guestfish-actions.pod:3309
22662 #, no-wrap
22663 msgid ""
22664 " pvresize-size device size\n"
22665 "\n"
22666 msgstr ""
22667
22668 # type: textblock
22669 #: ../fish/guestfish-actions.pod:3311
22670 msgid ""
22671 "This command is the same as L</pvresize> except that it allows you to "
22672 "specify the new size (in bytes) explicitly."
22673 msgstr ""
22674
22675 # type: =head2
22676 #: ../fish/guestfish-actions.pod:3314
22677 msgid "pvs"
22678 msgstr ""
22679
22680 # type: verbatim
22681 #: ../fish/guestfish-actions.pod:3316
22682 #, no-wrap
22683 msgid ""
22684 " pvs\n"
22685 "\n"
22686 msgstr ""
22687
22688 # type: textblock
22689 #: ../fish/guestfish-actions.pod:3324
22690 msgid "See also L</pvs-full>."
22691 msgstr ""
22692
22693 # type: =head2
22694 #: ../fish/guestfish-actions.pod:3326
22695 msgid "pvs-full"
22696 msgstr ""
22697
22698 # type: verbatim
22699 #: ../fish/guestfish-actions.pod:3328
22700 #, no-wrap
22701 msgid ""
22702 " pvs-full\n"
22703 "\n"
22704 msgstr ""
22705
22706 # type: =head2
22707 #: ../fish/guestfish-actions.pod:3333
22708 msgid "pvuuid"
22709 msgstr ""
22710
22711 # type: verbatim
22712 #: ../fish/guestfish-actions.pod:3335
22713 #, no-wrap
22714 msgid ""
22715 " pvuuid device\n"
22716 "\n"
22717 msgstr ""
22718
22719 # type: =head2
22720 #: ../fish/guestfish-actions.pod:3339
22721 msgid "pwrite"
22722 msgstr ""
22723
22724 # type: verbatim
22725 #: ../fish/guestfish-actions.pod:3341
22726 #, no-wrap
22727 msgid ""
22728 " pwrite path content offset\n"
22729 "\n"
22730 msgstr ""
22731
22732 # type: textblock
22733 #: ../fish/guestfish-actions.pod:3352
22734 msgid "See also L</pread>, L</pwrite-device>."
22735 msgstr ""
22736
22737 # type: =head2
22738 #: ../fish/guestfish-actions.pod:3357
22739 msgid "pwrite-device"
22740 msgstr ""
22741
22742 # type: verbatim
22743 #: ../fish/guestfish-actions.pod:3359
22744 #, no-wrap
22745 msgid ""
22746 " pwrite-device device content offset\n"
22747 "\n"
22748 msgstr ""
22749
22750 # type: textblock
22751 #: ../fish/guestfish-actions.pod:3369
22752 msgid "See also L</pwrite>."
22753 msgstr ""
22754
22755 # type: =head2
22756 #: ../fish/guestfish-actions.pod:3374
22757 msgid "read-file"
22758 msgstr ""
22759
22760 # type: verbatim
22761 #: ../fish/guestfish-actions.pod:3376
22762 #, no-wrap
22763 msgid ""
22764 " read-file path\n"
22765 "\n"
22766 msgstr ""
22767
22768 # type: textblock
22769 #: ../fish/guestfish-actions.pod:3381
22770 msgid ""
22771 "Unlike L</cat>, this function can correctly handle files that contain "
22772 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22773 "is limited in the total size of file that can be handled."
22774 msgstr ""
22775
22776 # type: =head2
22777 #: ../fish/guestfish-actions.pod:3389
22778 msgid "read-lines"
22779 msgstr ""
22780
22781 # type: verbatim
22782 #: ../fish/guestfish-actions.pod:3391
22783 #, no-wrap
22784 msgid ""
22785 " read-lines path\n"
22786 "\n"
22787 msgstr ""
22788
22789 # type: textblock
22790 #: ../fish/guestfish-actions.pod:3398
22791 msgid ""
22792 "Note that this function cannot correctly handle binary files (specifically, "
22793 "files containing C<\\0> character which is treated as end of line).  For "
22794 "those you need to use the L</read-file> function which has a more complex "
22795 "interface."
22796 msgstr ""
22797
22798 # type: =head2
22799 #: ../fish/guestfish-actions.pod:3403
22800 msgid "readdir"
22801 msgstr ""
22802
22803 # type: verbatim
22804 #: ../fish/guestfish-actions.pod:3405
22805 #, no-wrap
22806 msgid ""
22807 " readdir dir\n"
22808 "\n"
22809 msgstr ""
22810
22811 # type: textblock
22812 #: ../fish/guestfish-actions.pod:3457
22813 msgid ""
22814 "This function is primarily intended for use by programs.  To get a simple "
22815 "list of names, use L</ls>.  To get a printable directory for human "
22816 "consumption, use L</ll>."
22817 msgstr ""
22818
22819 # type: =head2
22820 #: ../fish/guestfish-actions.pod:3461
22821 msgid "readlink"
22822 msgstr ""
22823
22824 # type: verbatim
22825 #: ../fish/guestfish-actions.pod:3463
22826 #, no-wrap
22827 msgid ""
22828 " readlink path\n"
22829 "\n"
22830 msgstr ""
22831
22832 # type: =head2
22833 #: ../fish/guestfish-actions.pod:3467
22834 msgid "readlinklist"
22835 msgstr ""
22836
22837 # type: verbatim
22838 #: ../fish/guestfish-actions.pod:3469
22839 #, no-wrap
22840 msgid ""
22841 " readlinklist path 'names ...'\n"
22842 "\n"
22843 msgstr ""
22844
22845 # type: =head2
22846 #: ../fish/guestfish-actions.pod:3493
22847 msgid "realpath"
22848 msgstr ""
22849
22850 # type: verbatim
22851 #: ../fish/guestfish-actions.pod:3495
22852 #, no-wrap
22853 msgid ""
22854 " realpath path\n"
22855 "\n"
22856 msgstr ""
22857
22858 # type: =head2
22859 #: ../fish/guestfish-actions.pod:3500
22860 msgid "removexattr"
22861 msgstr ""
22862
22863 # type: verbatim
22864 #: ../fish/guestfish-actions.pod:3502
22865 #, no-wrap
22866 msgid ""
22867 " removexattr xattr path\n"
22868 "\n"
22869 msgstr ""
22870
22871 # type: textblock
22872 #: ../fish/guestfish-actions.pod:3507
22873 msgid "See also: L</lremovexattr>, L<attr(5)>."
22874 msgstr ""
22875
22876 # type: =head2
22877 #: ../fish/guestfish-actions.pod:3509
22878 msgid "resize2fs"
22879 msgstr ""
22880
22881 # type: verbatim
22882 #: ../fish/guestfish-actions.pod:3511
22883 #, no-wrap
22884 msgid ""
22885 " resize2fs device\n"
22886 "\n"
22887 msgstr ""
22888
22889 # type: textblock
22890 #: ../fish/guestfish-actions.pod:3516
22891 msgid ""
22892 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
22893 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
22894 "gives an error about this and sometimes not.  In any case, it is always safe "
22895 "to call L</e2fsck-f> before calling this function."
22896 msgstr ""
22897
22898 # type: =head2
22899 #: ../fish/guestfish-actions.pod:3522
22900 msgid "resize2fs-size"
22901 msgstr ""
22902
22903 # type: verbatim
22904 #: ../fish/guestfish-actions.pod:3524
22905 #, no-wrap
22906 msgid ""
22907 " resize2fs-size device size\n"
22908 "\n"
22909 msgstr ""
22910
22911 # type: textblock
22912 #: ../fish/guestfish-actions.pod:3526
22913 msgid ""
22914 "This command is the same as L</resize2fs> except that it allows you to "
22915 "specify the new size (in bytes) explicitly."
22916 msgstr ""
22917
22918 # type: =head2
22919 #: ../fish/guestfish-actions.pod:3529
22920 msgid "rm"
22921 msgstr ""
22922
22923 # type: verbatim
22924 #: ../fish/guestfish-actions.pod:3531
22925 #, no-wrap
22926 msgid ""
22927 " rm path\n"
22928 "\n"
22929 msgstr ""
22930
22931 # type: =head2
22932 #: ../fish/guestfish-actions.pod:3535
22933 msgid "rm-rf"
22934 msgstr ""
22935
22936 # type: verbatim
22937 #: ../fish/guestfish-actions.pod:3537
22938 #, no-wrap
22939 msgid ""
22940 " rm-rf path\n"
22941 "\n"
22942 msgstr ""
22943
22944 # type: =head2
22945 #: ../fish/guestfish-actions.pod:3543
22946 msgid "rmdir"
22947 msgstr ""
22948
22949 # type: verbatim
22950 #: ../fish/guestfish-actions.pod:3545
22951 #, no-wrap
22952 msgid ""
22953 " rmdir path\n"
22954 "\n"
22955 msgstr ""
22956
22957 # type: =head2
22958 #: ../fish/guestfish-actions.pod:3549
22959 msgid "rmmountpoint"
22960 msgstr ""
22961
22962 # type: verbatim
22963 #: ../fish/guestfish-actions.pod:3551
22964 #, no-wrap
22965 msgid ""
22966 " rmmountpoint exemptpath\n"
22967 "\n"
22968 msgstr ""
22969
22970 # type: textblock
22971 #: ../fish/guestfish-actions.pod:3553
22972 msgid ""
22973 "This calls removes a mountpoint that was previously created with "
22974 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
22975 msgstr ""
22976
22977 # type: =head2
22978 #: ../fish/guestfish-actions.pod:3557
22979 msgid "scrub-device"
22980 msgstr ""
22981
22982 # type: verbatim
22983 #: ../fish/guestfish-actions.pod:3559
22984 #, no-wrap
22985 msgid ""
22986 " scrub-device device\n"
22987 "\n"
22988 msgstr ""
22989
22990 # type: =head2
22991 #: ../fish/guestfish-actions.pod:3570
22992 msgid "scrub-file"
22993 msgstr ""
22994
22995 # type: verbatim
22996 #: ../fish/guestfish-actions.pod:3572
22997 #, no-wrap
22998 msgid ""
22999 " scrub-file file\n"
23000 "\n"
23001 msgstr ""
23002
23003 # type: =head2
23004 #: ../fish/guestfish-actions.pod:3582
23005 msgid "scrub-freespace"
23006 msgstr ""
23007
23008 # type: verbatim
23009 #: ../fish/guestfish-actions.pod:3584
23010 #, no-wrap
23011 msgid ""
23012 " scrub-freespace dir\n"
23013 "\n"
23014 msgstr ""
23015
23016 # type: textblock
23017 #: ../fish/guestfish-actions.pod:3586
23018 msgid ""
23019 "This command creates the directory C<dir> and then fills it with files until "
23020 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23021 "deletes them.  The intention is to scrub any free space on the partition "
23022 "containing C<dir>."
23023 msgstr ""
23024
23025 # type: =head2
23026 #: ../fish/guestfish-actions.pod:3595
23027 msgid "set-append"
23028 msgstr ""
23029
23030 # type: =head2
23031 #: ../fish/guestfish-actions.pod:3597
23032 msgid "append"
23033 msgstr ""
23034
23035 # type: verbatim
23036 #: ../fish/guestfish-actions.pod:3599
23037 #, no-wrap
23038 msgid ""
23039 " set-append append\n"
23040 "\n"
23041 msgstr ""
23042
23043 # type: =head2
23044 #: ../fish/guestfish-actions.pod:3610
23045 msgid "set-autosync"
23046 msgstr ""
23047
23048 # type: =head2
23049 #: ../fish/guestfish-actions.pod:3612
23050 msgid "autosync"
23051 msgstr ""
23052
23053 # type: verbatim
23054 #: ../fish/guestfish-actions.pod:3614
23055 #, no-wrap
23056 msgid ""
23057 " set-autosync true|false\n"
23058 "\n"
23059 msgstr ""
23060
23061 # type: textblock
23062 #: ../fish/guestfish-actions.pod:3616
23063 msgid ""
23064 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23065 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23066 "closed (also if the program exits without closing handles)."
23067 msgstr ""
23068
23069 # type: =head2
23070 #: ../fish/guestfish-actions.pod:3624
23071 msgid "set-direct"
23072 msgstr ""
23073
23074 # type: =head2
23075 #: ../fish/guestfish-actions.pod:3626
23076 msgid "direct"
23077 msgstr ""
23078
23079 # type: verbatim
23080 #: ../fish/guestfish-actions.pod:3628
23081 #, no-wrap
23082 msgid ""
23083 " set-direct true|false\n"
23084 "\n"
23085 msgstr ""
23086
23087 # type: textblock
23088 #: ../fish/guestfish-actions.pod:3634
23089 msgid ""
23090 "One consequence of this is that log messages aren't caught by the library "
23091 "and handled by L</set-log-message-callback>, but go straight to stdout."
23092 msgstr ""
23093
23094 # type: =head2
23095 #: ../fish/guestfish-actions.pod:3643
23096 msgid "set-e2label"
23097 msgstr ""
23098
23099 # type: verbatim
23100 #: ../fish/guestfish-actions.pod:3645
23101 #, no-wrap
23102 msgid ""
23103 " set-e2label device label\n"
23104 "\n"
23105 msgstr ""
23106
23107 # type: textblock
23108 #: ../fish/guestfish-actions.pod:3651
23109 msgid ""
23110 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23111 "label on a filesystem."
23112 msgstr ""
23113
23114 # type: =head2
23115 #: ../fish/guestfish-actions.pod:3654
23116 msgid "set-e2uuid"
23117 msgstr ""
23118
23119 # type: verbatim
23120 #: ../fish/guestfish-actions.pod:3656
23121 #, no-wrap
23122 msgid ""
23123 " set-e2uuid device uuid\n"
23124 "\n"
23125 msgstr ""
23126
23127 # type: textblock
23128 #: ../fish/guestfish-actions.pod:3663
23129 msgid ""
23130 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23131 "UUID of a filesystem."
23132 msgstr ""
23133
23134 # type: =head2
23135 #: ../fish/guestfish-actions.pod:3666
23136 msgid "set-memsize"
23137 msgstr ""
23138
23139 # type: =head2
23140 #: ../fish/guestfish-actions.pod:3668
23141 msgid "memsize"
23142 msgstr ""
23143
23144 # type: verbatim
23145 #: ../fish/guestfish-actions.pod:3670
23146 #, no-wrap
23147 msgid ""
23148 " set-memsize memsize\n"
23149 "\n"
23150 msgstr ""
23151
23152 # type: textblock
23153 #: ../fish/guestfish-actions.pod:3672
23154 msgid ""
23155 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23156 "This only has any effect if called before L</launch>."
23157 msgstr ""
23158
23159 # type: =head2
23160 #: ../fish/guestfish-actions.pod:3683
23161 msgid "set-network"
23162 msgstr ""
23163
23164 # type: =head2
23165 #: ../fish/guestfish-actions.pod:3685
23166 msgid "network"
23167 msgstr ""
23168
23169 # type: verbatim
23170 #: ../fish/guestfish-actions.pod:3687
23171 #, no-wrap
23172 msgid ""
23173 " set-network true|false\n"
23174 "\n"
23175 msgstr ""
23176
23177 # type: textblock
23178 #: ../fish/guestfish-actions.pod:3695
23179 msgid "You must call this before calling L</launch>, otherwise it has no effect."
23180 msgstr ""
23181
23182 # type: =head2
23183 #: ../fish/guestfish-actions.pod:3698
23184 msgid "set-path"
23185 msgstr ""
23186
23187 # type: =head2
23188 #: ../fish/guestfish-actions.pod:3700
23189 msgid "path"
23190 msgstr ""
23191
23192 # type: verbatim
23193 #: ../fish/guestfish-actions.pod:3702
23194 #, no-wrap
23195 msgid ""
23196 " set-path searchpath\n"
23197 "\n"
23198 msgstr ""
23199
23200 # type: =head2
23201 #: ../fish/guestfish-actions.pod:3711
23202 msgid "set-qemu"
23203 msgstr ""
23204
23205 # type: =head2
23206 #: ../fish/guestfish-actions.pod:3713
23207 msgid "qemu"
23208 msgstr ""
23209
23210 # type: verbatim
23211 #: ../fish/guestfish-actions.pod:3715
23212 #, no-wrap
23213 msgid ""
23214 " set-qemu qemu\n"
23215 "\n"
23216 msgstr ""
23217
23218 # type: =head2
23219 #: ../fish/guestfish-actions.pod:3735
23220 msgid "set-recovery-proc"
23221 msgstr ""
23222
23223 # type: =head2
23224 #: ../fish/guestfish-actions.pod:3737
23225 msgid "recovery-proc"
23226 msgstr ""
23227
23228 # type: verbatim
23229 #: ../fish/guestfish-actions.pod:3739
23230 #, no-wrap
23231 msgid ""
23232 " set-recovery-proc true|false\n"
23233 "\n"
23234 msgstr ""
23235
23236 # type: textblock
23237 #: ../fish/guestfish-actions.pod:3741
23238 msgid ""
23239 "If this is called with the parameter C<false> then L</launch> does not "
23240 "create a recovery process.  The purpose of the recovery process is to stop "
23241 "runaway qemu processes in the case where the main program aborts abruptly."
23242 msgstr ""
23243
23244 # type: textblock
23245 #: ../fish/guestfish-actions.pod:3746
23246 msgid ""
23247 "This only has any effect if called before L</launch>, and the default is "
23248 "true."
23249 msgstr ""
23250
23251 # type: =head2
23252 #: ../fish/guestfish-actions.pod:3755
23253 msgid "set-selinux"
23254 msgstr ""
23255
23256 # type: =head2
23257 #: ../fish/guestfish-actions.pod:3757
23258 msgid "selinux"
23259 msgstr ""
23260
23261 # type: verbatim
23262 #: ../fish/guestfish-actions.pod:3759
23263 #, no-wrap
23264 msgid ""
23265 " set-selinux true|false\n"
23266 "\n"
23267 msgstr ""
23268
23269 # type: =head2
23270 #: ../fish/guestfish-actions.pod:3770
23271 msgid "set-trace"
23272 msgstr ""
23273
23274 # type: =head2
23275 #: ../fish/guestfish-actions.pod:3772
23276 msgid "trace"
23277 msgstr ""
23278
23279 # type: verbatim
23280 #: ../fish/guestfish-actions.pod:3774
23281 #, no-wrap
23282 msgid ""
23283 " set-trace true|false\n"
23284 "\n"
23285 msgstr ""
23286
23287 # type: =head2
23288 #: ../fish/guestfish-actions.pod:3790
23289 msgid "set-verbose"
23290 msgstr ""
23291
23292 # type: =head2
23293 #: ../fish/guestfish-actions.pod:3792
23294 msgid "verbose"
23295 msgstr ""
23296
23297 # type: verbatim
23298 #: ../fish/guestfish-actions.pod:3794
23299 #, no-wrap
23300 msgid ""
23301 " set-verbose true|false\n"
23302 "\n"
23303 msgstr ""
23304
23305 # type: =head2
23306 #: ../fish/guestfish-actions.pod:3801
23307 msgid "setcon"
23308 msgstr ""
23309
23310 # type: verbatim
23311 #: ../fish/guestfish-actions.pod:3803
23312 #, no-wrap
23313 msgid ""
23314 " setcon context\n"
23315 "\n"
23316 msgstr ""
23317
23318 # type: =head2
23319 #: ../fish/guestfish-actions.pod:3810
23320 msgid "setxattr"
23321 msgstr ""
23322
23323 # type: verbatim
23324 #: ../fish/guestfish-actions.pod:3812
23325 #, no-wrap
23326 msgid ""
23327 " setxattr xattr val vallen path\n"
23328 "\n"
23329 msgstr ""
23330
23331 # type: textblock
23332 #: ../fish/guestfish-actions.pod:3818
23333 msgid "See also: L</lsetxattr>, L<attr(5)>."
23334 msgstr ""
23335
23336 # type: =head2
23337 #: ../fish/guestfish-actions.pod:3820
23338 msgid "sfdisk"
23339 msgstr ""
23340
23341 # type: verbatim
23342 #: ../fish/guestfish-actions.pod:3822
23343 #, no-wrap
23344 msgid ""
23345 " sfdisk device cyls heads sectors 'lines ...'\n"
23346 "\n"
23347 msgstr ""
23348
23349 # type: textblock
23350 #: ../fish/guestfish-actions.pod:3844
23351 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23352 msgstr ""
23353
23354 # type: =head2
23355 #: ../fish/guestfish-actions.pod:3850
23356 msgid "sfdiskM"
23357 msgstr ""
23358
23359 # type: verbatim
23360 #: ../fish/guestfish-actions.pod:3852
23361 #, no-wrap
23362 msgid ""
23363 " sfdiskM device 'lines ...'\n"
23364 "\n"
23365 msgstr ""
23366
23367 # type: textblock
23368 #: ../fish/guestfish-actions.pod:3854
23369 msgid ""
23370 "This is a simplified interface to the L</sfdisk> command, where partition "
23371 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23372 "you don't need to specify the cyls, heads and sectors parameters which were "
23373 "rarely if ever used anyway."
23374 msgstr ""
23375
23376 # type: textblock
23377 #: ../fish/guestfish-actions.pod:3860
23378 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23379 msgstr ""
23380
23381 # type: =head2
23382 #: ../fish/guestfish-actions.pod:3866
23383 msgid "sfdisk-N"
23384 msgstr ""
23385
23386 # type: verbatim
23387 #: ../fish/guestfish-actions.pod:3868
23388 #, no-wrap
23389 msgid ""
23390 " sfdisk-N device partnum cyls heads sectors line\n"
23391 "\n"
23392 msgstr ""
23393
23394 # type: textblock
23395 #: ../fish/guestfish-actions.pod:3873
23396 msgid ""
23397 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23398 "cyls/heads/sectors parameters."
23399 msgstr ""
23400
23401 # type: textblock
23402 #: ../fish/guestfish-actions.pod:3876
23403 msgid "See also: L</part-add>"
23404 msgstr ""
23405
23406 # type: =head2
23407 #: ../fish/guestfish-actions.pod:3881
23408 msgid "sfdisk-disk-geometry"
23409 msgstr ""
23410
23411 # type: verbatim
23412 #: ../fish/guestfish-actions.pod:3883
23413 #, no-wrap
23414 msgid ""
23415 " sfdisk-disk-geometry device\n"
23416 "\n"
23417 msgstr ""
23418
23419 # type: textblock
23420 #: ../fish/guestfish-actions.pod:3885
23421 msgid ""
23422 "This displays the disk geometry of C<device> read from the partition table.  "
23423 "Especially in the case where the underlying block device has been resized, "
23424 "this can be different from the kernel's idea of the geometry (see "
23425 "L</sfdisk-kernel-geometry>)."
23426 msgstr ""
23427
23428 # type: =head2
23429 #: ../fish/guestfish-actions.pod:3893
23430 msgid "sfdisk-kernel-geometry"
23431 msgstr ""
23432
23433 # type: verbatim
23434 #: ../fish/guestfish-actions.pod:3895
23435 #, no-wrap
23436 msgid ""
23437 " sfdisk-kernel-geometry device\n"
23438 "\n"
23439 msgstr ""
23440
23441 # type: =head2
23442 #: ../fish/guestfish-actions.pod:3902
23443 msgid "sfdisk-l"
23444 msgstr ""
23445
23446 # type: verbatim
23447 #: ../fish/guestfish-actions.pod:3904
23448 #, no-wrap
23449 msgid ""
23450 " sfdisk-l device\n"
23451 "\n"
23452 msgstr ""
23453
23454 # type: textblock
23455 #: ../fish/guestfish-actions.pod:3910
23456 msgid "See also: L</part-list>"
23457 msgstr ""
23458
23459 # type: =head2
23460 #: ../fish/guestfish-actions.pod:3912
23461 msgid "sh"
23462 msgstr ""
23463
23464 # type: verbatim
23465 #: ../fish/guestfish-actions.pod:3914
23466 #, no-wrap
23467 msgid ""
23468 " sh command\n"
23469 "\n"
23470 msgstr ""
23471
23472 # type: textblock
23473 #: ../fish/guestfish-actions.pod:3919
23474 msgid "This is like L</command>, but passes the command to:"
23475 msgstr ""
23476
23477 # type: textblock
23478 #: ../fish/guestfish-actions.pod:3927
23479 msgid "All the provisos about L</command> apply to this call."
23480 msgstr ""
23481
23482 # type: =head2
23483 #: ../fish/guestfish-actions.pod:3929
23484 msgid "sh-lines"
23485 msgstr ""
23486
23487 # type: verbatim
23488 #: ../fish/guestfish-actions.pod:3931
23489 #, no-wrap
23490 msgid ""
23491 " sh-lines command\n"
23492 "\n"
23493 msgstr ""
23494
23495 # type: textblock
23496 #: ../fish/guestfish-actions.pod:3933
23497 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23498 msgstr ""
23499
23500 # type: textblock
23501 #: ../fish/guestfish-actions.pod:3936
23502 msgid "See also: L</command-lines>"
23503 msgstr ""
23504
23505 # type: =head2
23506 #: ../fish/guestfish-actions.pod:3938
23507 msgid "sleep"
23508 msgstr ""
23509
23510 # type: verbatim
23511 #: ../fish/guestfish-actions.pod:3940
23512 #, no-wrap
23513 msgid ""
23514 " sleep secs\n"
23515 "\n"
23516 msgstr ""
23517
23518 # type: =head2
23519 #: ../fish/guestfish-actions.pod:3944
23520 msgid "stat"
23521 msgstr ""
23522
23523 # type: verbatim
23524 #: ../fish/guestfish-actions.pod:3946
23525 #, no-wrap
23526 msgid ""
23527 " stat path\n"
23528 "\n"
23529 msgstr ""
23530
23531 # type: =head2
23532 #: ../fish/guestfish-actions.pod:3952
23533 msgid "statvfs"
23534 msgstr ""
23535
23536 # type: verbatim
23537 #: ../fish/guestfish-actions.pod:3954
23538 #, no-wrap
23539 msgid ""
23540 " statvfs path\n"
23541 "\n"
23542 msgstr ""
23543
23544 # type: =head2
23545 #: ../fish/guestfish-actions.pod:3962
23546 msgid "strings"
23547 msgstr ""
23548
23549 # type: verbatim
23550 #: ../fish/guestfish-actions.pod:3964
23551 #, no-wrap
23552 msgid ""
23553 " strings path\n"
23554 "\n"
23555 msgstr ""
23556
23557 # type: =head2
23558 #: ../fish/guestfish-actions.pod:3972
23559 msgid "strings-e"
23560 msgstr ""
23561
23562 # type: verbatim
23563 #: ../fish/guestfish-actions.pod:3974
23564 #, no-wrap
23565 msgid ""
23566 " strings-e encoding path\n"
23567 "\n"
23568 msgstr ""
23569
23570 # type: textblock
23571 #: ../fish/guestfish-actions.pod:3976
23572 msgid ""
23573 "This is like the L</strings> command, but allows you to specify the encoding "
23574 "of strings that are looked for in the source file C<path>."
23575 msgstr ""
23576
23577 # type: textblock
23578 #: ../fish/guestfish-actions.pod:3986
23579 msgid ""
23580 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23581 "ISO-8859-X (this is what L</strings> uses)."
23582 msgstr ""
23583
23584 # type: =head2
23585 #: ../fish/guestfish-actions.pod:4018
23586 msgid "swapoff-device"
23587 msgstr ""
23588
23589 # type: verbatim
23590 #: ../fish/guestfish-actions.pod:4020
23591 #, no-wrap
23592 msgid ""
23593 " swapoff-device device\n"
23594 "\n"
23595 msgstr ""
23596
23597 # type: textblock
23598 #: ../fish/guestfish-actions.pod:4022
23599 msgid ""
23600 "This command disables the libguestfs appliance swap device or partition "
23601 "named C<device>.  See L</swapon-device>."
23602 msgstr ""
23603
23604 # type: =head2
23605 #: ../fish/guestfish-actions.pod:4026
23606 msgid "swapoff-file"
23607 msgstr ""
23608
23609 # type: verbatim
23610 #: ../fish/guestfish-actions.pod:4028
23611 #, no-wrap
23612 msgid ""
23613 " swapoff-file file\n"
23614 "\n"
23615 msgstr ""
23616
23617 # type: =head2
23618 #: ../fish/guestfish-actions.pod:4032
23619 msgid "swapoff-label"
23620 msgstr ""
23621
23622 # type: verbatim
23623 #: ../fish/guestfish-actions.pod:4034
23624 #, no-wrap
23625 msgid ""
23626 " swapoff-label label\n"
23627 "\n"
23628 msgstr ""
23629
23630 # type: =head2
23631 #: ../fish/guestfish-actions.pod:4039
23632 msgid "swapoff-uuid"
23633 msgstr ""
23634
23635 # type: verbatim
23636 #: ../fish/guestfish-actions.pod:4041
23637 #, no-wrap
23638 msgid ""
23639 " swapoff-uuid uuid\n"
23640 "\n"
23641 msgstr ""
23642
23643 # type: =head2
23644 #: ../fish/guestfish-actions.pod:4046
23645 msgid "swapon-device"
23646 msgstr ""
23647
23648 # type: verbatim
23649 #: ../fish/guestfish-actions.pod:4048
23650 #, no-wrap
23651 msgid ""
23652 " swapon-device device\n"
23653 "\n"
23654 msgstr ""
23655
23656 # type: textblock
23657 #: ../fish/guestfish-actions.pod:4050
23658 msgid ""
23659 "This command enables the libguestfs appliance to use the swap device or "
23660 "partition named C<device>.  The increased memory is made available for all "
23661 "commands, for example those run using L</command> or L</sh>."
23662 msgstr ""
23663
23664 # type: =head2
23665 #: ../fish/guestfish-actions.pod:4062
23666 msgid "swapon-file"
23667 msgstr ""
23668
23669 # type: verbatim
23670 #: ../fish/guestfish-actions.pod:4064
23671 #, no-wrap
23672 msgid ""
23673 " swapon-file file\n"
23674 "\n"
23675 msgstr ""
23676
23677 # type: textblock
23678 #: ../fish/guestfish-actions.pod:4066
23679 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
23680 msgstr ""
23681
23682 # type: =head2
23683 #: ../fish/guestfish-actions.pod:4069
23684 msgid "swapon-label"
23685 msgstr ""
23686
23687 # type: verbatim
23688 #: ../fish/guestfish-actions.pod:4071
23689 #, no-wrap
23690 msgid ""
23691 " swapon-label label\n"
23692 "\n"
23693 msgstr ""
23694
23695 # type: textblock
23696 #: ../fish/guestfish-actions.pod:4073
23697 msgid ""
23698 "This command enables swap to a labeled swap partition.  See "
23699 "L</swapon-device> for other notes."
23700 msgstr ""
23701
23702 # type: =head2
23703 #: ../fish/guestfish-actions.pod:4076
23704 msgid "swapon-uuid"
23705 msgstr ""
23706
23707 # type: verbatim
23708 #: ../fish/guestfish-actions.pod:4078
23709 #, no-wrap
23710 msgid ""
23711 " swapon-uuid uuid\n"
23712 "\n"
23713 msgstr ""
23714
23715 # type: textblock
23716 #: ../fish/guestfish-actions.pod:4080
23717 msgid ""
23718 "This command enables swap to a swap partition with the given UUID.  See "
23719 "L</swapon-device> for other notes."
23720 msgstr ""
23721
23722 # type: =head2
23723 #: ../fish/guestfish-actions.pod:4083
23724 msgid "sync"
23725 msgstr ""
23726
23727 # type: verbatim
23728 #: ../fish/guestfish-actions.pod:4085
23729 #, no-wrap
23730 msgid ""
23731 " sync\n"
23732 "\n"
23733 msgstr ""
23734
23735 # type: =head2
23736 #: ../fish/guestfish-actions.pod:4093
23737 msgid "tail"
23738 msgstr ""
23739
23740 # type: verbatim
23741 #: ../fish/guestfish-actions.pod:4095
23742 #, no-wrap
23743 msgid ""
23744 " tail path\n"
23745 "\n"
23746 msgstr ""
23747
23748 # type: =head2
23749 #: ../fish/guestfish-actions.pod:4103
23750 msgid "tail-n"
23751 msgstr ""
23752
23753 # type: verbatim
23754 #: ../fish/guestfish-actions.pod:4105
23755 #, no-wrap
23756 msgid ""
23757 " tail-n nrlines path\n"
23758 "\n"
23759 msgstr ""
23760
23761 # type: =head2
23762 #: ../fish/guestfish-actions.pod:4118
23763 msgid "tar-in"
23764 msgstr ""
23765
23766 # type: verbatim
23767 #: ../fish/guestfish-actions.pod:4120
23768 #, no-wrap
23769 msgid ""
23770 " tar-in (tarfile|-) directory\n"
23771 "\n"
23772 msgstr ""
23773
23774 # type: textblock
23775 #: ../fish/guestfish-actions.pod:4125
23776 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23777 msgstr ""
23778
23779 # type: =head2
23780 #: ../fish/guestfish-actions.pod:4130
23781 msgid "tar-out"
23782 msgstr ""
23783
23784 # type: verbatim
23785 #: ../fish/guestfish-actions.pod:4132
23786 #, no-wrap
23787 msgid ""
23788 " tar-out directory (tarfile|-)\n"
23789 "\n"
23790 msgstr ""
23791
23792 # type: textblock
23793 #: ../fish/guestfish-actions.pod:4137
23794 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23795 msgstr ""
23796
23797 # type: =head2
23798 #: ../fish/guestfish-actions.pod:4142
23799 msgid "tgz-in"
23800 msgstr ""
23801
23802 # type: verbatim
23803 #: ../fish/guestfish-actions.pod:4144
23804 #, no-wrap
23805 msgid ""
23806 " tgz-in (tarball|-) directory\n"
23807 "\n"
23808 msgstr ""
23809
23810 # type: textblock
23811 #: ../fish/guestfish-actions.pod:4149
23812 msgid "To upload an uncompressed tarball, use L</tar-in>."
23813 msgstr ""
23814
23815 # type: =head2
23816 #: ../fish/guestfish-actions.pod:4153
23817 msgid "tgz-out"
23818 msgstr ""
23819
23820 # type: verbatim
23821 #: ../fish/guestfish-actions.pod:4155
23822 #, no-wrap
23823 msgid ""
23824 " tgz-out directory (tarball|-)\n"
23825 "\n"
23826 msgstr ""
23827
23828 # type: textblock
23829 #: ../fish/guestfish-actions.pod:4160
23830 msgid "To download an uncompressed tarball, use L</tar-out>."
23831 msgstr ""
23832
23833 # type: =head2
23834 #: ../fish/guestfish-actions.pod:4164
23835 msgid "touch"
23836 msgstr ""
23837
23838 # type: verbatim
23839 #: ../fish/guestfish-actions.pod:4166
23840 #, no-wrap
23841 msgid ""
23842 " touch path\n"
23843 "\n"
23844 msgstr ""
23845
23846 # type: =head2
23847 #: ../fish/guestfish-actions.pod:4175
23848 msgid "truncate"
23849 msgstr ""
23850
23851 # type: verbatim
23852 #: ../fish/guestfish-actions.pod:4177
23853 #, no-wrap
23854 msgid ""
23855 " truncate path\n"
23856 "\n"
23857 msgstr ""
23858
23859 # type: =head2
23860 #: ../fish/guestfish-actions.pod:4182
23861 msgid "truncate-size"
23862 msgstr ""
23863
23864 # type: verbatim
23865 #: ../fish/guestfish-actions.pod:4184
23866 #, no-wrap
23867 msgid ""
23868 " truncate-size path size\n"
23869 "\n"
23870 msgstr ""
23871
23872 # type: textblock
23873 #: ../fish/guestfish-actions.pod:4189
23874 msgid ""
23875 "If the current file size is less than C<size> then the file is extended to "
23876 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23877 "blocks are not allocated for the file until you write to it).  To create a "
23878 "non-sparse file of zeroes, use L</fallocate64> instead."
23879 msgstr ""
23880
23881 # type: =head2
23882 #: ../fish/guestfish-actions.pod:4195
23883 msgid "tune2fs-l"
23884 msgstr ""
23885
23886 # type: verbatim
23887 #: ../fish/guestfish-actions.pod:4197
23888 #, no-wrap
23889 msgid ""
23890 " tune2fs-l device\n"
23891 "\n"
23892 msgstr ""
23893
23894 # type: =head2
23895 #: ../fish/guestfish-actions.pod:4207
23896 msgid "txz-in"
23897 msgstr ""
23898
23899 # type: verbatim
23900 #: ../fish/guestfish-actions.pod:4209
23901 #, no-wrap
23902 msgid ""
23903 " txz-in (tarball|-) directory\n"
23904 "\n"
23905 msgstr ""
23906
23907 # type: =head2
23908 #: ../fish/guestfish-actions.pod:4216
23909 msgid "txz-out"
23910 msgstr ""
23911
23912 # type: verbatim
23913 #: ../fish/guestfish-actions.pod:4218
23914 #, no-wrap
23915 msgid ""
23916 " txz-out directory (tarball|-)\n"
23917 "\n"
23918 msgstr ""
23919
23920 # type: =head2
23921 #: ../fish/guestfish-actions.pod:4225
23922 msgid "umask"
23923 msgstr ""
23924
23925 # type: verbatim
23926 #: ../fish/guestfish-actions.pod:4227
23927 #, no-wrap
23928 msgid ""
23929 " umask mask\n"
23930 "\n"
23931 msgstr ""
23932
23933 # type: textblock
23934 #: ../fish/guestfish-actions.pod:4241
23935 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
23936 msgstr ""
23937
23938 # type: =head2
23939 #: ../fish/guestfish-actions.pod:4246
23940 msgid "umount"
23941 msgstr ""
23942
23943 # type: =head2
23944 #: ../fish/guestfish-actions.pod:4248
23945 msgid "unmount"
23946 msgstr ""
23947
23948 # type: verbatim
23949 #: ../fish/guestfish-actions.pod:4250
23950 #, no-wrap
23951 msgid ""
23952 " umount pathordevice\n"
23953 "\n"
23954 msgstr ""
23955
23956 # type: =head2
23957 #: ../fish/guestfish-actions.pod:4256
23958 msgid "umount-all"
23959 msgstr ""
23960
23961 # type: =head2
23962 #: ../fish/guestfish-actions.pod:4258
23963 msgid "unmount-all"
23964 msgstr ""
23965
23966 # type: verbatim
23967 #: ../fish/guestfish-actions.pod:4260
23968 #, no-wrap
23969 msgid ""
23970 " umount-all\n"
23971 "\n"
23972 msgstr ""
23973
23974 # type: =head2
23975 #: ../fish/guestfish-actions.pod:4266
23976 msgid "upload"
23977 msgstr ""
23978
23979 # type: verbatim
23980 #: ../fish/guestfish-actions.pod:4268
23981 #, no-wrap
23982 msgid ""
23983 " upload (filename|-) remotefilename\n"
23984 "\n"
23985 msgstr ""
23986
23987 # type: textblock
23988 #: ../fish/guestfish-actions.pod:4275
23989 msgid "See also L</download>."
23990 msgstr ""
23991
23992 # type: =head2
23993 #: ../fish/guestfish-actions.pod:4279
23994 msgid "upload-offset"
23995 msgstr ""
23996
23997 # type: verbatim
23998 #: ../fish/guestfish-actions.pod:4281
23999 #, no-wrap
24000 msgid ""
24001 " upload-offset (filename|-) remotefilename offset\n"
24002 "\n"
24003 msgstr ""
24004
24005 # type: textblock
24006 #: ../fish/guestfish-actions.pod:4293
24007 msgid ""
24008 "Note that there is no limit on the amount of data that can be uploaded with "
24009 "this call, unlike with L</pwrite>, and this call always writes the full "
24010 "amount unless an error occurs."
24011 msgstr ""
24012
24013 # type: textblock
24014 #: ../fish/guestfish-actions.pod:4298
24015 msgid "See also L</upload>, L</pwrite>."
24016 msgstr ""
24017
24018 # type: =head2
24019 #: ../fish/guestfish-actions.pod:4302
24020 msgid "utimens"
24021 msgstr ""
24022
24023 # type: verbatim
24024 #: ../fish/guestfish-actions.pod:4304
24025 #, no-wrap
24026 msgid ""
24027 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24028 "\n"
24029 msgstr ""
24030
24031 # type: =head2
24032 #: ../fish/guestfish-actions.pod:4323
24033 msgid "version"
24034 msgstr ""
24035
24036 # type: verbatim
24037 #: ../fish/guestfish-actions.pod:4325
24038 #, no-wrap
24039 msgid ""
24040 " version\n"
24041 "\n"
24042 msgstr ""
24043
24044 # type: textblock
24045 #: ../fish/guestfish-actions.pod:4352
24046 msgid ""
24047 "I<Note:> Don't use this call to test for availability of features.  In "
24048 "enterprise distributions we backport features from later versions into "
24049 "earlier versions, making this an unreliable way to test for features.  Use "
24050 "L</available> instead."
24051 msgstr ""
24052
24053 # type: =head2
24054 #: ../fish/guestfish-actions.pod:4358
24055 msgid "vfs-label"
24056 msgstr ""
24057
24058 # type: verbatim
24059 #: ../fish/guestfish-actions.pod:4360
24060 #, no-wrap
24061 msgid ""
24062 " vfs-label device\n"
24063 "\n"
24064 msgstr ""
24065
24066 # type: textblock
24067 #: ../fish/guestfish-actions.pod:4367
24068 msgid "To find a filesystem from the label, use L</findfs-label>."
24069 msgstr ""
24070
24071 # type: =head2
24072 #: ../fish/guestfish-actions.pod:4369
24073 msgid "vfs-type"
24074 msgstr ""
24075
24076 # type: verbatim
24077 #: ../fish/guestfish-actions.pod:4371
24078 #, no-wrap
24079 msgid ""
24080 " vfs-type device\n"
24081 "\n"
24082 msgstr ""
24083
24084 # type: =head2
24085 #: ../fish/guestfish-actions.pod:4381
24086 msgid "vfs-uuid"
24087 msgstr ""
24088
24089 # type: verbatim
24090 #: ../fish/guestfish-actions.pod:4383
24091 #, no-wrap
24092 msgid ""
24093 " vfs-uuid device\n"
24094 "\n"
24095 msgstr ""
24096
24097 # type: textblock
24098 #: ../fish/guestfish-actions.pod:4390
24099 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24100 msgstr ""
24101
24102 # type: =head2
24103 #: ../fish/guestfish-actions.pod:4392
24104 msgid "vg-activate"
24105 msgstr ""
24106
24107 # type: verbatim
24108 #: ../fish/guestfish-actions.pod:4394
24109 #, no-wrap
24110 msgid ""
24111 " vg-activate true|false 'volgroups ...'\n"
24112 "\n"
24113 msgstr ""
24114
24115 # type: =head2
24116 #: ../fish/guestfish-actions.pod:4407
24117 msgid "vg-activate-all"
24118 msgstr ""
24119
24120 # type: verbatim
24121 #: ../fish/guestfish-actions.pod:4409
24122 #, no-wrap
24123 msgid ""
24124 " vg-activate-all true|false\n"
24125 "\n"
24126 msgstr ""
24127
24128 # type: =head2
24129 #: ../fish/guestfish-actions.pod:4419
24130 msgid "vgcreate"
24131 msgstr ""
24132
24133 # type: verbatim
24134 #: ../fish/guestfish-actions.pod:4421
24135 #, no-wrap
24136 msgid ""
24137 " vgcreate volgroup 'physvols ...'\n"
24138 "\n"
24139 msgstr ""
24140
24141 # type: =head2
24142 #: ../fish/guestfish-actions.pod:4426
24143 msgid "vglvuuids"
24144 msgstr ""
24145
24146 # type: verbatim
24147 #: ../fish/guestfish-actions.pod:4428
24148 #, no-wrap
24149 msgid ""
24150 " vglvuuids vgname\n"
24151 "\n"
24152 msgstr ""
24153
24154 # type: textblock
24155 #: ../fish/guestfish-actions.pod:4433
24156 msgid ""
24157 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24158 "logical volumes and volume groups."
24159 msgstr ""
24160
24161 # type: textblock
24162 #: ../fish/guestfish-actions.pod:4436
24163 msgid "See also L</vgpvuuids>."
24164 msgstr ""
24165
24166 # type: =head2
24167 #: ../fish/guestfish-actions.pod:4438
24168 msgid "vgpvuuids"
24169 msgstr ""
24170
24171 # type: verbatim
24172 #: ../fish/guestfish-actions.pod:4440
24173 #, no-wrap
24174 msgid ""
24175 " vgpvuuids vgname\n"
24176 "\n"
24177 msgstr ""
24178
24179 # type: textblock
24180 #: ../fish/guestfish-actions.pod:4445
24181 msgid ""
24182 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24183 "physical volumes and volume groups."
24184 msgstr ""
24185
24186 # type: textblock
24187 #: ../fish/guestfish-actions.pod:4448
24188 msgid "See also L</vglvuuids>."
24189 msgstr ""
24190
24191 # type: =head2
24192 #: ../fish/guestfish-actions.pod:4450
24193 msgid "vgremove"
24194 msgstr ""
24195
24196 # type: verbatim
24197 #: ../fish/guestfish-actions.pod:4452
24198 #, no-wrap
24199 msgid ""
24200 " vgremove vgname\n"
24201 "\n"
24202 msgstr ""
24203
24204 # type: =head2
24205 #: ../fish/guestfish-actions.pod:4459
24206 msgid "vgrename"
24207 msgstr ""
24208
24209 # type: verbatim
24210 #: ../fish/guestfish-actions.pod:4461
24211 #, no-wrap
24212 msgid ""
24213 " vgrename volgroup newvolgroup\n"
24214 "\n"
24215 msgstr ""
24216
24217 # type: =head2
24218 #: ../fish/guestfish-actions.pod:4465
24219 msgid "vgs"
24220 msgstr ""
24221
24222 # type: verbatim
24223 #: ../fish/guestfish-actions.pod:4467
24224 #, no-wrap
24225 msgid ""
24226 " vgs\n"
24227 "\n"
24228 msgstr ""
24229
24230 # type: textblock
24231 #: ../fish/guestfish-actions.pod:4475
24232 msgid "See also L</vgs-full>."
24233 msgstr ""
24234
24235 # type: =head2
24236 #: ../fish/guestfish-actions.pod:4477
24237 msgid "vgs-full"
24238 msgstr ""
24239
24240 # type: verbatim
24241 #: ../fish/guestfish-actions.pod:4479
24242 #, no-wrap
24243 msgid ""
24244 " vgs-full\n"
24245 "\n"
24246 msgstr ""
24247
24248 # type: =head2
24249 #: ../fish/guestfish-actions.pod:4484
24250 msgid "vgscan"
24251 msgstr ""
24252
24253 # type: verbatim
24254 #: ../fish/guestfish-actions.pod:4486
24255 #, no-wrap
24256 msgid ""
24257 " vgscan\n"
24258 "\n"
24259 msgstr ""
24260
24261 # type: =head2
24262 #: ../fish/guestfish-actions.pod:4491
24263 msgid "vguuid"
24264 msgstr ""
24265
24266 # type: verbatim
24267 #: ../fish/guestfish-actions.pod:4493
24268 #, no-wrap
24269 msgid ""
24270 " vguuid vgname\n"
24271 "\n"
24272 msgstr ""
24273
24274 # type: =head2
24275 #: ../fish/guestfish-actions.pod:4497
24276 msgid "wc-c"
24277 msgstr ""
24278
24279 # type: verbatim
24280 #: ../fish/guestfish-actions.pod:4499
24281 #, no-wrap
24282 msgid ""
24283 " wc-c path\n"
24284 "\n"
24285 msgstr ""
24286
24287 # type: =head2
24288 #: ../fish/guestfish-actions.pod:4504
24289 msgid "wc-l"
24290 msgstr ""
24291
24292 # type: verbatim
24293 #: ../fish/guestfish-actions.pod:4506
24294 #, no-wrap
24295 msgid ""
24296 " wc-l path\n"
24297 "\n"
24298 msgstr ""
24299
24300 # type: =head2
24301 #: ../fish/guestfish-actions.pod:4511
24302 msgid "wc-w"
24303 msgstr ""
24304
24305 # type: verbatim
24306 #: ../fish/guestfish-actions.pod:4513
24307 #, no-wrap
24308 msgid ""
24309 " wc-w path\n"
24310 "\n"
24311 msgstr ""
24312
24313 # type: =head2
24314 #: ../fish/guestfish-actions.pod:4518
24315 msgid "write"
24316 msgstr ""
24317
24318 # type: verbatim
24319 #: ../fish/guestfish-actions.pod:4520
24320 #, no-wrap
24321 msgid ""
24322 " write path content\n"
24323 "\n"
24324 msgstr ""
24325
24326 # type: =head2
24327 #: ../fish/guestfish-actions.pod:4528
24328 msgid "write-file"
24329 msgstr ""
24330
24331 # type: verbatim
24332 #: ../fish/guestfish-actions.pod:4530
24333 #, no-wrap
24334 msgid ""
24335 " write-file path content size\n"
24336 "\n"
24337 msgstr ""
24338
24339 # type: =head2
24340 #: ../fish/guestfish-actions.pod:4553
24341 msgid "zegrep"
24342 msgstr ""
24343
24344 # type: verbatim
24345 #: ../fish/guestfish-actions.pod:4555
24346 #, no-wrap
24347 msgid ""
24348 " zegrep regex path\n"
24349 "\n"
24350 msgstr ""
24351
24352 # type: =head2
24353 #: ../fish/guestfish-actions.pod:4563
24354 msgid "zegrepi"
24355 msgstr ""
24356
24357 # type: verbatim
24358 #: ../fish/guestfish-actions.pod:4565
24359 #, no-wrap
24360 msgid ""
24361 " zegrepi regex path\n"
24362 "\n"
24363 msgstr ""
24364
24365 # type: =head2
24366 #: ../fish/guestfish-actions.pod:4573
24367 msgid "zero"
24368 msgstr ""
24369
24370 # type: verbatim
24371 #: ../fish/guestfish-actions.pod:4575
24372 #, no-wrap
24373 msgid ""
24374 " zero device\n"
24375 "\n"
24376 msgstr ""
24377
24378 # type: textblock
24379 #: ../fish/guestfish-actions.pod:4583
24380 msgid "See also: L</zero-device>, L</scrub-device>."
24381 msgstr ""
24382
24383 # type: =head2
24384 #: ../fish/guestfish-actions.pod:4585
24385 msgid "zero-device"
24386 msgstr ""
24387
24388 # type: verbatim
24389 #: ../fish/guestfish-actions.pod:4587
24390 #, no-wrap
24391 msgid ""
24392 " zero-device device\n"
24393 "\n"
24394 msgstr ""
24395
24396 # type: textblock
24397 #: ../fish/guestfish-actions.pod:4589
24398 msgid ""
24399 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24400 "which just zeroes the first few blocks of a device."
24401 msgstr ""
24402
24403 # type: =head2
24404 #: ../fish/guestfish-actions.pod:4596
24405 msgid "zerofree"
24406 msgstr ""
24407
24408 # type: verbatim
24409 #: ../fish/guestfish-actions.pod:4598
24410 #, no-wrap
24411 msgid ""
24412 " zerofree device\n"
24413 "\n"
24414 msgstr ""
24415
24416 # type: =head2
24417 #: ../fish/guestfish-actions.pod:4611
24418 msgid "zfgrep"
24419 msgstr ""
24420
24421 # type: verbatim
24422 #: ../fish/guestfish-actions.pod:4613
24423 #, no-wrap
24424 msgid ""
24425 " zfgrep pattern path\n"
24426 "\n"
24427 msgstr ""
24428
24429 # type: =head2
24430 #: ../fish/guestfish-actions.pod:4621
24431 msgid "zfgrepi"
24432 msgstr ""
24433
24434 # type: verbatim
24435 #: ../fish/guestfish-actions.pod:4623
24436 #, no-wrap
24437 msgid ""
24438 " zfgrepi pattern path\n"
24439 "\n"
24440 msgstr ""
24441
24442 # type: =head2
24443 #: ../fish/guestfish-actions.pod:4631
24444 msgid "zfile"
24445 msgstr ""
24446
24447 # type: verbatim
24448 #: ../fish/guestfish-actions.pod:4633
24449 #, no-wrap
24450 msgid ""
24451 " zfile meth path\n"
24452 "\n"
24453 msgstr ""
24454
24455 # type: textblock
24456 #: ../fish/guestfish-actions.pod:4640
24457 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
24458 msgstr ""
24459
24460 # type: =head2
24461 #: ../fish/guestfish-actions.pod:4650
24462 msgid "zgrep"
24463 msgstr ""
24464
24465 # type: verbatim
24466 #: ../fish/guestfish-actions.pod:4652
24467 #, no-wrap
24468 msgid ""
24469 " zgrep regex path\n"
24470 "\n"
24471 msgstr ""
24472
24473 # type: =head2
24474 #: ../fish/guestfish-actions.pod:4660
24475 msgid "zgrepi"
24476 msgstr ""
24477
24478 # type: verbatim
24479 #: ../fish/guestfish-actions.pod:4662
24480 #, no-wrap
24481 msgid ""
24482 " zgrepi regex path\n"
24483 "\n"
24484 msgstr ""
24485
24486 # type: =head2
24487 #: ../fish/guestfish-commands.pod:1
24488 msgid "alloc"
24489 msgstr ""
24490
24491 # type: =head2
24492 #: ../fish/guestfish-commands.pod:3
24493 msgid "allocate"
24494 msgstr ""
24495
24496 # type: verbatim
24497 #: ../fish/guestfish-commands.pod:5
24498 #, no-wrap
24499 msgid ""
24500 " alloc filename size\n"
24501 "\n"
24502 msgstr ""
24503
24504 # type: textblock
24505 #: ../fish/guestfish-commands.pod:7
24506 msgid ""
24507 "This creates an empty (zeroed) file of the given size, and then adds so it "
24508 "can be further examined."
24509 msgstr ""
24510
24511 # type: textblock
24512 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24513 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24514 msgstr ""
24515
24516 # type: textblock
24517 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24518 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24519 msgstr ""
24520
24521 # type: textblock
24522 #: ../fish/guestfish-commands.pod:14
24523 msgid ""
24524 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24525 "image, see L</PREPARED DISK IMAGES>."
24526 msgstr ""
24527
24528 # type: =head2
24529 #: ../fish/guestfish-commands.pod:17
24530 msgid "copy-in"
24531 msgstr ""
24532
24533 # type: verbatim
24534 #: ../fish/guestfish-commands.pod:19
24535 #, no-wrap
24536 msgid ""
24537 " copy-in local [local ...] /remotedir\n"
24538 "\n"
24539 msgstr ""
24540
24541 # type: textblock
24542 #: ../fish/guestfish-commands.pod:21
24543 msgid ""
24544 "C<copy-in> copies local files or directories recursively into the disk "
24545 "image, placing them in the directory called C</remotedir> (which must "
24546 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24547 "other commands as necessary."
24548 msgstr ""
24549
24550 # type: textblock
24551 #: ../fish/guestfish-commands.pod:26
24552 msgid ""
24553 "Multiple local files and directories can be specified, but the last "
24554 "parameter must always be a remote directory.  Wildcards cannot be used."
24555 msgstr ""
24556
24557 # type: =head2
24558 #: ../fish/guestfish-commands.pod:30
24559 msgid "copy-out"
24560 msgstr ""
24561
24562 # type: verbatim
24563 #: ../fish/guestfish-commands.pod:32
24564 #, no-wrap
24565 msgid ""
24566 " copy-out remote [remote ...] localdir\n"
24567 "\n"
24568 msgstr ""
24569
24570 # type: textblock
24571 #: ../fish/guestfish-commands.pod:34
24572 msgid ""
24573 "C<copy-out> copies remote files or directories recursively out of the disk "
24574 "image, placing them on the host disk in a local directory called C<localdir> "
24575 "(which must exist).  This guestfish meta-command turns into a sequence of "
24576 "L</download>, L</tar-out> and other commands as necessary."
24577 msgstr ""
24578
24579 # type: textblock
24580 #: ../fish/guestfish-commands.pod:40
24581 msgid ""
24582 "Multiple remote files and directories can be specified, but the last "
24583 "parameter must always be a local directory.  To download to the current "
24584 "directory, use C<.> as in:"
24585 msgstr ""
24586
24587 # type: verbatim
24588 #: ../fish/guestfish-commands.pod:44
24589 #, no-wrap
24590 msgid ""
24591 " copy-out /home .\n"
24592 "\n"
24593 msgstr ""
24594
24595 # type: textblock
24596 #: ../fish/guestfish-commands.pod:46
24597 msgid ""
24598 "Wildcards cannot be used in the ordinary command, but you can use them with "
24599 "the help of L</glob> like this:"
24600 msgstr ""
24601
24602 # type: verbatim
24603 #: ../fish/guestfish-commands.pod:49
24604 #, no-wrap
24605 msgid ""
24606 " glob copy-out /home/* .\n"
24607 "\n"
24608 msgstr ""
24609
24610 # type: =head2
24611 #: ../fish/guestfish-commands.pod:51
24612 msgid "echo"
24613 msgstr ""
24614
24615 # type: verbatim
24616 #: ../fish/guestfish-commands.pod:53
24617 #, no-wrap
24618 msgid ""
24619 " echo [params ...]\n"
24620 "\n"
24621 msgstr ""
24622
24623 # type: textblock
24624 #: ../fish/guestfish-commands.pod:55
24625 msgid "This echos the parameters to the terminal."
24626 msgstr ""
24627
24628 # type: =head2
24629 #: ../fish/guestfish-commands.pod:57
24630 msgid "edit"
24631 msgstr ""
24632
24633 # type: =head2
24634 #: ../fish/guestfish-commands.pod:59
24635 msgid "vi"
24636 msgstr ""
24637
24638 # type: =head2
24639 #: ../fish/guestfish-commands.pod:61
24640 msgid "emacs"
24641 msgstr ""
24642
24643 # type: verbatim
24644 #: ../fish/guestfish-commands.pod:63
24645 #, no-wrap
24646 msgid ""
24647 " edit filename\n"
24648 "\n"
24649 msgstr ""
24650
24651 # type: textblock
24652 #: ../fish/guestfish-commands.pod:65
24653 msgid ""
24654 "This is used to edit a file.  It downloads the file, edits it locally using "
24655 "your editor, then uploads the result."
24656 msgstr ""
24657
24658 # type: textblock
24659 #: ../fish/guestfish-commands.pod:68
24660 msgid ""
24661 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24662 "or C<emacs> you will get those corresponding editors."
24663 msgstr ""
24664
24665 # type: =head2
24666 #: ../fish/guestfish-commands.pod:72
24667 msgid "glob"
24668 msgstr ""
24669
24670 # type: verbatim
24671 #: ../fish/guestfish-commands.pod:74
24672 #, no-wrap
24673 msgid ""
24674 " glob command args...\n"
24675 "\n"
24676 msgstr ""
24677
24678 # type: textblock
24679 #: ../fish/guestfish-commands.pod:76
24680 msgid ""
24681 "Expand wildcards in any paths in the args list, and run C<command> "
24682 "repeatedly on each matching path."
24683 msgstr ""
24684
24685 # type: textblock
24686 #: ../fish/guestfish-commands.pod:79
24687 msgid "See L</WILDCARDS AND GLOBBING>."
24688 msgstr ""
24689
24690 # type: =head2
24691 #: ../fish/guestfish-commands.pod:81
24692 msgid "hexedit"
24693 msgstr ""
24694
24695 # type: verbatim
24696 #: ../fish/guestfish-commands.pod:83
24697 #, no-wrap
24698 msgid ""
24699 " hexedit <filename|device>\n"
24700 " hexedit <filename|device> <max>\n"
24701 " hexedit <filename|device> <start> <max>\n"
24702 "\n"
24703 msgstr ""
24704
24705 # type: textblock
24706 #: ../fish/guestfish-commands.pod:87
24707 msgid ""
24708 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24709 "device."
24710 msgstr ""
24711
24712 # type: textblock
24713 #: ../fish/guestfish-commands.pod:90
24714 msgid ""
24715 "This command works by downloading potentially the whole file or device, "
24716 "editing it locally, then uploading it.  If the file or device is large, you "
24717 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24718 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24719 "usual modifiers allowed such as C<1M> (1 megabyte)."
24720 msgstr ""
24721
24722 # type: textblock
24723 #: ../fish/guestfish-commands.pod:97
24724 msgid "For example to edit the first few sectors of a disk you might do:"
24725 msgstr ""
24726
24727 # type: verbatim
24728 #: ../fish/guestfish-commands.pod:100
24729 #, no-wrap
24730 msgid ""
24731 " hexedit /dev/sda 1M\n"
24732 "\n"
24733 msgstr ""
24734
24735 # type: textblock
24736 #: ../fish/guestfish-commands.pod:102
24737 msgid ""
24738 "which would allow you to edit anywhere within the first megabyte of the "
24739 "disk."
24740 msgstr ""
24741
24742 # type: textblock
24743 #: ../fish/guestfish-commands.pod:105
24744 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24745 msgstr ""
24746
24747 # type: verbatim
24748 #: ../fish/guestfish-commands.pod:107
24749 #, no-wrap
24750 msgid ""
24751 " hexedit /dev/sda1 0x400 0x400\n"
24752 "\n"
24753 msgstr ""
24754
24755 # type: textblock
24756 #: ../fish/guestfish-commands.pod:109
24757 msgid "(assuming the superblock is in the standard location)."
24758 msgstr ""
24759
24760 # type: textblock
24761 #: ../fish/guestfish-commands.pod:111
24762 msgid ""
24763 "This command requires the external L<hexedit(1)> program.  You can specify "
24764 "another program to use by setting the C<HEXEDITOR> environment variable."
24765 msgstr ""
24766
24767 # type: textblock
24768 #: ../fish/guestfish-commands.pod:115
24769 msgid "See also L</hexdump>."
24770 msgstr ""
24771
24772 # type: =head2
24773 #: ../fish/guestfish-commands.pod:117
24774 msgid "lcd"
24775 msgstr ""
24776
24777 # type: verbatim
24778 #: ../fish/guestfish-commands.pod:119
24779 #, no-wrap
24780 msgid ""
24781 " lcd directory\n"
24782 "\n"
24783 msgstr ""
24784
24785 # type: textblock
24786 #: ../fish/guestfish-commands.pod:121
24787 msgid "Change the local directory, ie. the current directory of guestfish itself."
24788 msgstr ""
24789
24790 # type: textblock
24791 #: ../fish/guestfish-commands.pod:124
24792 msgid "Note that C<!cd> won't do what you might expect."
24793 msgstr ""
24794
24795 # type: =head2
24796 #: ../fish/guestfish-commands.pod:126
24797 msgid "man"
24798 msgstr ""
24799
24800 # type: =head2
24801 #: ../fish/guestfish-commands.pod:128
24802 msgid "manual"
24803 msgstr ""
24804
24805 # type: verbatim
24806 #: ../fish/guestfish-commands.pod:130
24807 #, no-wrap
24808 msgid ""
24809 "  man\n"
24810 "\n"
24811 msgstr ""
24812
24813 # type: textblock
24814 #: ../fish/guestfish-commands.pod:132
24815 msgid "Opens the manual page for guestfish."
24816 msgstr ""
24817
24818 # type: =head2
24819 #: ../fish/guestfish-commands.pod:134
24820 msgid "more"
24821 msgstr ""
24822
24823 # type: =head2
24824 #: ../fish/guestfish-commands.pod:136
24825 msgid "less"
24826 msgstr ""
24827
24828 # type: verbatim
24829 #: ../fish/guestfish-commands.pod:138
24830 #, no-wrap
24831 msgid ""
24832 " more filename\n"
24833 "\n"
24834 msgstr ""
24835
24836 # type: verbatim
24837 #: ../fish/guestfish-commands.pod:140
24838 #, no-wrap
24839 msgid ""
24840 " less filename\n"
24841 "\n"
24842 msgstr ""
24843
24844 # type: textblock
24845 #: ../fish/guestfish-commands.pod:142
24846 msgid "This is used to view a file."
24847 msgstr ""
24848
24849 # type: textblock
24850 #: ../fish/guestfish-commands.pod:144
24851 msgid ""
24852 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24853 "C<less> you will get the C<less> command specifically."
24854 msgstr ""
24855
24856 # type: =head2
24857 #: ../fish/guestfish-commands.pod:147
24858 msgid "reopen"
24859 msgstr ""
24860
24861 # type: verbatim
24862 #: ../fish/guestfish-commands.pod:149
24863 #, no-wrap
24864 msgid ""
24865 "  reopen\n"
24866 "\n"
24867 msgstr ""
24868
24869 # type: textblock
24870 #: ../fish/guestfish-commands.pod:151
24871 msgid ""
24872 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24873 "normally, because the handle is closed properly when guestfish exits.  "
24874 "However this is occasionally useful for testing."
24875 msgstr ""
24876
24877 # type: =head2
24878 #: ../fish/guestfish-commands.pod:155
24879 msgid "sparse"
24880 msgstr ""
24881
24882 # type: verbatim
24883 #: ../fish/guestfish-commands.pod:157
24884 #, no-wrap
24885 msgid ""
24886 " sparse filename size\n"
24887 "\n"
24888 msgstr ""
24889
24890 # type: textblock
24891 #: ../fish/guestfish-commands.pod:159
24892 msgid ""
24893 "This creates an empty sparse file of the given size, and then adds so it can "
24894 "be further examined."
24895 msgstr ""
24896
24897 # type: textblock
24898 #: ../fish/guestfish-commands.pod:162
24899 msgid ""
24900 "In all respects it works the same as the L</alloc> command, except that the "
24901 "image file is allocated sparsely, which means that disk blocks are not "
24902 "assigned to the file until they are needed.  Sparse disk files only use "
24903 "space when written to, but they are slower and there is a danger you could "
24904 "run out of real disk space during a write operation."
24905 msgstr ""
24906
24907 # type: =head2
24908 #: ../fish/guestfish-commands.pod:172
24909 msgid "supported"
24910 msgstr ""
24911
24912 # type: verbatim
24913 #: ../fish/guestfish-commands.pod:174
24914 #, no-wrap
24915 msgid ""
24916 " supported\n"
24917 "\n"
24918 msgstr ""
24919
24920 # type: textblock
24921 #: ../fish/guestfish-commands.pod:176
24922 msgid ""
24923 "This command returns a list of the optional groups known to the daemon, and "
24924 "indicates which ones are supported by this build of the libguestfs "
24925 "appliance."
24926 msgstr ""
24927
24928 # type: textblock
24929 #: ../fish/guestfish-commands.pod:180
24930 msgid "See also L<guestfs(3)/AVAILABILITY>."
24931 msgstr ""
24932
24933 # type: =head2
24934 #: ../fish/guestfish-commands.pod:182
24935 msgid "time"
24936 msgstr ""
24937
24938 # type: verbatim
24939 #: ../fish/guestfish-commands.pod:184
24940 #, no-wrap
24941 msgid ""
24942 " time command args...\n"
24943 "\n"
24944 msgstr ""
24945
24946 # type: textblock
24947 #: ../fish/guestfish-commands.pod:186
24948 msgid ""
24949 "Run the command as usual, but print the elapsed time afterwards.  This can "
24950 "be useful for benchmarking operations."
24951 msgstr ""
24952
24953 # type: textblock
24954 #: ../test-tool/libguestfs-test-tool.pod:5
24955 msgid "libguestfs-test-tool - End user tests for libguestfs"
24956 msgstr ""
24957
24958 # type: verbatim
24959 #: ../test-tool/libguestfs-test-tool.pod:9
24960 #, no-wrap
24961 msgid ""
24962 " libguestfs-test-tool [--options]\n"
24963 "\n"
24964 msgstr ""
24965
24966 # type: textblock
24967 #: ../test-tool/libguestfs-test-tool.pod:13
24968 msgid ""
24969 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
24970 "and developers, to allow them to check basic libguestfs functionality is "
24971 "working.  This is needed because libguestfs occasionally breaks for reasons "
24972 "beyond our control: usually because of changes in the underlying qemu or "
24973 "kernel packages, or the host environment."
24974 msgstr ""
24975
24976 # type: textblock
24977 #: ../test-tool/libguestfs-test-tool.pod:20
24978 msgid "If you suspect a problem in libguestfs, then just run:"
24979 msgstr ""
24980
24981 # type: verbatim
24982 #: ../test-tool/libguestfs-test-tool.pod:22
24983 #, no-wrap
24984 msgid ""
24985 " libguestfs-test-tool\n"
24986 "\n"
24987 msgstr ""
24988
24989 # type: textblock
24990 #: ../test-tool/libguestfs-test-tool.pod:24
24991 msgid "It will print lots of diagnostic messages."
24992 msgstr ""
24993
24994 # type: textblock
24995 #: ../test-tool/libguestfs-test-tool.pod:26
24996 msgid "If it runs to completion successfully, you will see this near the end:"
24997 msgstr ""
24998
24999 # type: verbatim
25000 #: ../test-tool/libguestfs-test-tool.pod:28
25001 #, no-wrap
25002 msgid ""
25003 " ===== TEST FINISHED OK =====\n"
25004 "\n"
25005 msgstr ""
25006
25007 # type: textblock
25008 #: ../test-tool/libguestfs-test-tool.pod:30
25009 msgid "and the test tool will exit with code 0."
25010 msgstr ""
25011
25012 # type: textblock
25013 #: ../test-tool/libguestfs-test-tool.pod:32
25014 msgid ""
25015 "If it fails (and/or exits with non-zero error code), please paste the "
25016 "B<complete, unedited> output of the test tool into a bug report.  More "
25017 "information about reporting bugs can be found on the "
25018 "L<http://libguestfs.org/> website."
25019 msgstr ""
25020
25021 # type: =item
25022 #: ../test-tool/libguestfs-test-tool.pod:41
25023 msgid "I<--help>"
25024 msgstr ""
25025
25026 # type: textblock
25027 #: ../test-tool/libguestfs-test-tool.pod:43
25028 msgid "Display short usage information and exit."
25029 msgstr ""
25030
25031 # type: =item
25032 #: ../test-tool/libguestfs-test-tool.pod:45
25033 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25034 msgstr ""
25035
25036 # type: textblock
25037 #: ../test-tool/libguestfs-test-tool.pod:47
25038 msgid ""
25039 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25040 "normally look in the C<$libexec> directory that was configured when the tool "
25041 "was built."
25042 msgstr ""
25043
25044 # type: =item
25045 #: ../test-tool/libguestfs-test-tool.pod:51
25046 msgid "I<--qemu qemu_binary>"
25047 msgstr ""
25048
25049 # type: textblock
25050 #: ../test-tool/libguestfs-test-tool.pod:53
25051 msgid ""
25052 "If you have downloaded another qemu binary, point this option at the full "
25053 "path of the binary to try it."
25054 msgstr ""
25055
25056 # type: =item
25057 #: ../test-tool/libguestfs-test-tool.pod:56
25058 msgid "I<--qemudir qemu_source_dir>"
25059 msgstr ""
25060
25061 # type: textblock
25062 #: ../test-tool/libguestfs-test-tool.pod:58
25063 msgid ""
25064 "If you have compiled qemu from source, point this option at the source "
25065 "directory to try it."
25066 msgstr ""
25067
25068 # type: =item
25069 #: ../test-tool/libguestfs-test-tool.pod:61
25070 msgid "I<--timeout N>"
25071 msgstr ""
25072
25073 # type: textblock
25074 #: ../test-tool/libguestfs-test-tool.pod:63
25075 msgid ""
25076 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25077 "does not usually need to be adjusted unless your machine is very slow."
25078 msgstr ""
25079
25080 # type: =head1
25081 #: ../test-tool/libguestfs-test-tool.pod:69
25082 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25083 msgstr ""
25084
25085 # type: textblock
25086 #: ../test-tool/libguestfs-test-tool.pod:71
25087 msgid ""
25088 "If you have compiled another version of qemu from source and would like to "
25089 "try that, then you can use the I<--qemudir> option to point to the qemu "
25090 "source directory."
25091 msgstr ""
25092
25093 # type: textblock
25094 #: ../test-tool/libguestfs-test-tool.pod:75
25095 msgid ""
25096 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25097 "option to point to the binary."
25098 msgstr ""
25099
25100 # type: textblock
25101 #: ../test-tool/libguestfs-test-tool.pod:78
25102 msgid ""
25103 "When using an alternate qemu with libguestfs, usually you would need to "
25104 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
25105 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
25106 "when you use either of the I<--qemudir> or I<--qemu> options."
25107 msgstr ""
25108
25109 # type: textblock
25110 #: ../test-tool/libguestfs-test-tool.pod:85
25111 msgid ""
25112 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25113 "I<1> if there was an error."
25114 msgstr ""
25115
25116 # type: =item
25117 #: ../test-tool/libguestfs-test-tool.pod:92
25118 msgid "/usr/libexec/libguestfs-test-tool-helper"
25119 msgstr ""
25120
25121 # type: textblock
25122 #: ../test-tool/libguestfs-test-tool.pod:94
25123 msgid ""
25124 "This helper program is run inside the appliance and provides additional "
25125 "tests."
25126 msgstr ""
25127
25128 # type: =item
25129 #: ../test-tool/libguestfs-test-tool.pod:97
25130 msgid "/usr/bin/mkisofs"
25131 msgstr ""
25132
25133 # type: textblock
25134 #: ../test-tool/libguestfs-test-tool.pod:99
25135 msgid ""
25136 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25137 "which is used as part of the tests."
25138 msgstr ""
25139
25140 # type: textblock
25141 #: ../test-tool/libguestfs-test-tool.pod:106
25142 msgid ""
25143 "For the full list of environment variables which may affect libguestfs, "
25144 "please see the L<guestfs(3)> manual page."
25145 msgstr ""
25146
25147 # type: textblock
25148 #: ../test-tool/libguestfs-test-tool.pod:111
25149 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25150 msgstr ""
25151
25152 # type: textblock
25153 #: ../test-tool/libguestfs-test-tool.pod:121
25154 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25155 msgstr ""
25156
25157 # type: textblock
25158 #: ../fuse/guestmount.pod:5
25159 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25160 msgstr ""
25161
25162 # type: verbatim
25163 #: ../fuse/guestmount.pod:9
25164 #, no-wrap
25165 msgid ""
25166 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25167 "\n"
25168 msgstr ""
25169
25170 # type: verbatim
25171 #: ../fuse/guestmount.pod:11
25172 #, no-wrap
25173 msgid ""
25174 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25175 "\n"
25176 msgstr ""
25177
25178 # type: verbatim
25179 #: ../fuse/guestmount.pod:13
25180 #, no-wrap
25181 msgid ""
25182 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25183 "\n"
25184 msgstr ""
25185
25186 # type: textblock
25187 #: ../fuse/guestmount.pod:17
25188 msgid ""
25189 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25190 "machines.  If you do this, you risk disk corruption in the VM."
25191 msgstr ""
25192
25193 # type: textblock
25194 #: ../fuse/guestmount.pod:22
25195 msgid ""
25196 "The guestmount program can be used to mount virtual machine filesystems and "
25197 "other disk images on the host.  It uses libguestfs for access to the guest "
25198 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25199 "a mountable device."
25200 msgstr ""
25201
25202 # type: textblock
25203 #: ../fuse/guestmount.pod:27
25204 msgid ""
25205 "Along with other options, you have to give at least one device (I<-a> "
25206 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25207 "option) or use the I<-i> inspection option.  How this works is better "
25208 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25209 "below."
25210 msgstr ""
25211
25212 # type: textblock
25213 #: ../fuse/guestmount.pod:33
25214 msgid ""
25215 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25216 "by you, and the filesystem will not be visible to any other users unless you "
25217 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25218 "the filesystem, use the C<fusermount -u> command."
25219 msgstr ""
25220
25221 # type: textblock
25222 #: ../fuse/guestmount.pod:41
25223 msgid ""
25224 "For a typical Windows guest which has its main filesystem on the first "
25225 "partition:"
25226 msgstr ""
25227
25228 # type: verbatim
25229 #: ../fuse/guestmount.pod:44
25230 #, no-wrap
25231 msgid ""
25232 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25233 "\n"
25234 msgstr ""
25235
25236 # type: textblock
25237 #: ../fuse/guestmount.pod:46
25238 msgid ""
25239 "For a typical Linux guest which has a /boot filesystem on the first "
25240 "partition, and the root filesystem on a logical volume:"
25241 msgstr ""
25242
25243 # type: verbatim
25244 #: ../fuse/guestmount.pod:49
25245 #, no-wrap
25246 msgid ""
25247 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25248 "\n"
25249 msgstr ""
25250
25251 # type: textblock
25252 #: ../fuse/guestmount.pod:51
25253 msgid "To get libguestfs to detect guest mountpoints for you:"
25254 msgstr ""
25255
25256 # type: verbatim
25257 #: ../fuse/guestmount.pod:53
25258 #, no-wrap
25259 msgid ""
25260 " guestmount -a guest.img -i --ro /mnt\n"
25261 "\n"
25262 msgstr ""
25263
25264 # type: textblock
25265 #: ../fuse/guestmount.pod:55
25266 msgid "For a libvirt guest called \"Guest\" you could do:"
25267 msgstr ""
25268
25269 # type: verbatim
25270 #: ../fuse/guestmount.pod:57
25271 #, no-wrap
25272 msgid ""
25273 " guestmount -d Guest -i --ro /mnt\n"
25274 "\n"
25275 msgstr ""
25276
25277 # type: textblock
25278 #: ../fuse/guestmount.pod:59
25279 msgid ""
25280 "If you don't know what filesystems are contained in a guest or disk image, "
25281 "use L<virt-filesystems(1)> first:"
25282 msgstr ""
25283
25284 # type: verbatim
25285 #: ../fuse/guestmount.pod:62
25286 #, no-wrap
25287 msgid ""
25288 " virt-filesystems MyGuest\n"
25289 "\n"
25290 msgstr ""
25291
25292 # type: textblock
25293 #: ../fuse/guestmount.pod:64
25294 msgid ""
25295 "If you want to trace the libguestfs calls but without excessive debugging "
25296 "information, we recommend:"
25297 msgstr ""
25298
25299 # type: verbatim
25300 #: ../fuse/guestmount.pod:67
25301 #, no-wrap
25302 msgid ""
25303 " guestmount [...] --trace /mnt\n"
25304 "\n"
25305 msgstr ""
25306
25307 # type: textblock
25308 #: ../fuse/guestmount.pod:69
25309 msgid "If you want to debug the program, we recommend:"
25310 msgstr ""
25311
25312 # type: verbatim
25313 #: ../fuse/guestmount.pod:71
25314 #, no-wrap
25315 msgid ""
25316 " guestmount [...] --trace --verbose /mnt\n"
25317 "\n"
25318 msgstr ""
25319
25320 # type: textblock
25321 #: ../fuse/guestmount.pod:79
25322 msgid "Add a block device or virtual machine image."
25323 msgstr ""
25324
25325 # type: =item
25326 #: ../fuse/guestmount.pod:96
25327 msgid "B<--dir-cache-timeout N>"
25328 msgstr ""
25329
25330 # type: textblock
25331 #: ../fuse/guestmount.pod:98
25332 msgid ""
25333 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25334 "seconds.  The readdir cache [actually, there are several semi-independent "
25335 "caches] is populated after a readdir(2) call with the stat and extended "
25336 "attributes of the files in the directory, in anticipation that they will be "
25337 "requested soon after."
25338 msgstr ""
25339
25340 # type: textblock
25341 #: ../fuse/guestmount.pod:104
25342 msgid ""
25343 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25344 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25345 "requests, only cache existing ones."
25346 msgstr ""
25347
25348 # type: textblock
25349 #: ../fuse/guestmount.pod:122
25350 msgid ""
25351 "If you have untrusted raw-format guest disk images, you should use this "
25352 "option to specify the disk format.  This avoids a possible security problem "
25353 "with malicious guests (CVE-2010-3851).  See also "
25354 "L<guestfs(3)/guestfs_add_drive_opts>."
25355 msgstr ""
25356
25357 # type: =item
25358 #: ../fuse/guestmount.pod:127
25359 msgid "B<--fuse-help>"
25360 msgstr ""
25361
25362 # type: textblock
25363 #: ../fuse/guestmount.pod:129
25364 msgid "Display help on special FUSE options (see I<-o> below)."
25365 msgstr ""
25366
25367 # type: textblock
25368 #: ../fuse/guestmount.pod:133
25369 msgid "Display brief help and exit."
25370 msgstr ""
25371
25372 # type: =item
25373 #: ../fuse/guestmount.pod:146
25374 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25375 msgstr ""
25376
25377 # type: textblock
25378 #: ../fuse/guestmount.pod:148
25379 msgid ""
25380 "Mount the named partition or logical volume on the given mountpoint B<in the "
25381 "guest> (this has nothing to do with mountpoints in the host)."
25382 msgstr ""
25383
25384 # type: textblock
25385 #: ../fuse/guestmount.pod:151
25386 msgid ""
25387 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25388 "something on C</>."
25389 msgstr ""
25390
25391 # type: textblock
25392 #: ../fuse/guestmount.pod:156
25393 msgid ""
25394 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25395 "unmounted.  If you specify this option, then we don't attempt to sync the "
25396 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25397 msgstr ""
25398
25399 # type: =item
25400 #: ../fuse/guestmount.pod:161
25401 msgid "B<-o option> | B<--option option>"
25402 msgstr ""
25403
25404 # type: textblock
25405 #: ../fuse/guestmount.pod:163
25406 msgid "Pass extra options to FUSE."
25407 msgstr ""
25408
25409 # type: textblock
25410 #: ../fuse/guestmount.pod:165
25411 msgid ""
25412 "To get a list of all the extra options supported by FUSE, use the command "
25413 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25414 "of them are a good idea."
25415 msgstr ""
25416
25417 # type: verbatim
25418 #: ../fuse/guestmount.pod:169
25419 #, no-wrap
25420 msgid ""
25421 " guestmount --fuse-help\n"
25422 "\n"
25423 msgstr ""
25424
25425 # type: textblock
25426 #: ../fuse/guestmount.pod:171
25427 msgid "Some potentially useful FUSE options:"
25428 msgstr ""
25429
25430 # type: =item
25431 #: ../fuse/guestmount.pod:175
25432 msgid "B<-o allow_other>"
25433 msgstr ""
25434
25435 # type: textblock
25436 #: ../fuse/guestmount.pod:177
25437 msgid "Allow other users to see the filesystem."
25438 msgstr ""
25439
25440 # type: =item
25441 #: ../fuse/guestmount.pod:179
25442 msgid "B<-o attr_timeout=N>"
25443 msgstr ""
25444
25445 # type: textblock
25446 #: ../fuse/guestmount.pod:181
25447 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25448 msgstr ""
25449
25450 # type: =item
25451 #: ../fuse/guestmount.pod:183
25452 msgid "B<-o kernel_cache>"
25453 msgstr ""
25454
25455 # type: textblock
25456 #: ../fuse/guestmount.pod:185
25457 msgid ""
25458 "Allow the kernel to cache files (reduces the number of reads that have to go "
25459 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25460 "afford the extra memory usage."
25461 msgstr ""
25462
25463 # type: =item
25464 #: ../fuse/guestmount.pod:189
25465 msgid "B<-o uid=N> B<-o gid=N>"
25466 msgstr ""
25467
25468 # type: textblock
25469 #: ../fuse/guestmount.pod:191
25470 msgid ""
25471 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25472 "the chosen values."
25473 msgstr ""
25474
25475 # type: textblock
25476 #: ../fuse/guestmount.pod:198
25477 msgid ""
25478 "Add devices and mount everything read-only.  Also disallow writes and make "
25479 "the disk appear read-only to FUSE."
25480 msgstr ""
25481
25482 # type: textblock
25483 #: ../fuse/guestmount.pod:201
25484 msgid ""
25485 "This is highly recommended if you are not going to edit the guest disk.  If "
25486 "the guest is running and this option is I<not> supplied, then there is a "
25487 "strong risk of disk corruption in the guest.  We try to prevent this from "
25488 "happening, but it is not always possible."
25489 msgstr ""
25490
25491 # type: textblock
25492 #: ../fuse/guestmount.pod:206
25493 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25494 msgstr ""
25495
25496 # type: textblock
25497 #: ../fuse/guestmount.pod:210
25498 msgid "Enable SELinux support for the guest."
25499 msgstr ""
25500
25501 # type: textblock
25502 #: ../fuse/guestmount.pod:214
25503 msgid "Enable verbose messages from underlying libguestfs."
25504 msgstr ""
25505
25506 # type: textblock
25507 #: ../fuse/guestmount.pod:218
25508 msgid "Display the program version and exit."
25509 msgstr ""
25510
25511 # type: textblock
25512 #: ../fuse/guestmount.pod:222
25513 msgid ""
25514 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25515 "FOR READ AND WRITE>."
25516 msgstr ""
25517
25518 # type: =item
25519 #: ../fuse/guestmount.pod:225
25520 msgid "B<-x> | B<--trace>"
25521 msgstr ""
25522
25523 # type: textblock
25524 #: ../fuse/guestmount.pod:227
25525 msgid "Trace libguestfs calls."
25526 msgstr ""
25527
25528 # type: textblock
25529 #: ../fuse/guestmount.pod:229
25530 msgid "This also stops the daemon from forking into the background."
25531 msgstr ""
25532
25533 # type: textblock
25534 #: ../fuse/guestmount.pod:235
25535 msgid ""
25536 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25537 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
25538 "L<http://fuse.sf.net/>."
25539 msgstr ""
25540
25541 # type: textblock
25542 #: ../tools/virt-edit.pl:34
25543 msgid "virt-edit - Edit a file in a virtual machine"
25544 msgstr ""
25545
25546 # type: verbatim
25547 #: ../tools/virt-edit.pl:38
25548 #, no-wrap
25549 msgid ""
25550 " virt-edit [--options] domname file\n"
25551 "\n"
25552 msgstr ""
25553
25554 # type: verbatim
25555 #: ../tools/virt-edit.pl:40
25556 #, no-wrap
25557 msgid ""
25558 " virt-edit [--options] disk.img [disk.img ...] file\n"
25559 "\n"
25560 msgstr ""
25561
25562 # type: verbatim
25563 #: ../tools/virt-edit.pl:42
25564 #, no-wrap
25565 msgid ""
25566 " virt-edit [domname|disk.img] file -e 'expr'\n"
25567 "\n"
25568 msgstr ""
25569
25570 # type: textblock
25571 #: ../tools/virt-edit.pl:46
25572 msgid ""
25573 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25574 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25575 "doing this, but doesn't catch all cases."
25576 msgstr ""
25577
25578 # type: textblock
25579 #: ../tools/virt-edit.pl:52
25580 msgid ""
25581 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25582 "the named virtual machine (or disk image)."
25583 msgstr ""
25584
25585 # type: textblock
25586 #: ../tools/virt-edit.pl:55
25587 msgid ""
25588 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25589 "you should look at the L<guestfish(1)> tool."
25590 msgstr ""
25591
25592 # type: textblock
25593 #: ../tools/virt-edit.pl:60
25594 msgid "Edit the named files interactively:"
25595 msgstr ""
25596
25597 # type: verbatim
25598 #: ../tools/virt-edit.pl:62
25599 #, no-wrap
25600 msgid ""
25601 " virt-edit mydomain /boot/grub/grub.conf\n"
25602 "\n"
25603 msgstr ""
25604
25605 # type: verbatim
25606 #: ../tools/virt-edit.pl:64
25607 #, no-wrap
25608 msgid ""
25609 " virt-edit mydomain /etc/passwd\n"
25610 "\n"
25611 msgstr ""
25612
25613 # type: textblock
25614 #: ../tools/virt-edit.pl:66
25615 msgid ""
25616 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25617 "below).  To change the init default level to 5:"
25618 msgstr ""
25619
25620 # type: verbatim
25621 #: ../tools/virt-edit.pl:70
25622 #, no-wrap
25623 msgid ""
25624 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25625 "\n"
25626 msgstr ""
25627
25628 # type: textblock
25629 #: ../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
25630 msgid "Display brief help."
25631 msgstr ""
25632
25633 # type: =item
25634 #: ../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
25635 msgid "B<--version>"
25636 msgstr ""
25637
25638 # type: textblock
25639 #: ../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
25640 msgid "Display version number and exit."
25641 msgstr ""
25642
25643 # type: =item
25644 #: ../tools/virt-edit.pl:96
25645 msgid "B<--backup extension> | B<-b extension>"
25646 msgstr ""
25647
25648 # type: textblock
25649 #: ../tools/virt-edit.pl:98
25650 msgid ""
25651 "Create a backup of the original file I<in the guest disk image>.  The backup "
25652 "has the original filename with C<extension> added."
25653 msgstr ""
25654
25655 # type: textblock
25656 #: ../tools/virt-edit.pl:101
25657 msgid ""
25658 "Usually the first character of C<extension> would be a dot C<.> so you would "
25659 "write:"
25660 msgstr ""
25661
25662 # type: verbatim
25663 #: ../tools/virt-edit.pl:104
25664 #, no-wrap
25665 msgid ""
25666 " virt-edit -b .orig [etc]\n"
25667 "\n"
25668 msgstr ""
25669
25670 # type: textblock
25671 #: ../tools/virt-edit.pl:106
25672 msgid "By default, no backup file is made."
25673 msgstr ""
25674
25675 # type: =item
25676 #: ../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
25677 msgid "B<--connect URI> | B<-c URI>"
25678 msgstr ""
25679
25680 # type: textblock
25681 #: ../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
25682 msgid ""
25683 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25684 "to the default libvirt hypervisor."
25685 msgstr ""
25686
25687 # type: textblock
25688 #: ../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
25689 msgid ""
25690 "If you specify guest block devices directly, then libvirt is not used at "
25691 "all."
25692 msgstr ""
25693
25694 # type: =item
25695 #: ../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
25696 msgid "B<--format> raw"
25697 msgstr ""
25698
25699 # type: textblock
25700 #: ../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
25701 msgid ""
25702 "Specify the format of disk images given on the command line.  If this is "
25703 "omitted then the format is autodetected from the content of the disk image."
25704 msgstr ""
25705
25706 # type: textblock
25707 #: ../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
25708 msgid ""
25709 "If disk images are requested from libvirt, then this program asks libvirt "
25710 "for this information.  In this case, the value of the format parameter is "
25711 "ignored."
25712 msgstr ""
25713
25714 # type: textblock
25715 #: ../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
25716 msgid ""
25717 "If working with untrusted raw-format guest disk images, you should ensure "
25718 "the format is always specified."
25719 msgstr ""
25720
25721 # type: =item
25722 #: ../tools/virt-edit.pl:141
25723 msgid "B<--expr EXPR> | B<-e EXPR>"
25724 msgstr ""
25725
25726 # type: textblock
25727 #: ../tools/virt-edit.pl:143
25728 msgid ""
25729 "Instead of launching the external editor, non-interactively apply the Perl "
25730 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25731 "EDITING> below."
25732 msgstr ""
25733
25734 # type: textblock
25735 #: ../tools/virt-edit.pl:147
25736 msgid ""
25737 "Be careful to properly quote the expression to prevent it from being altered "
25738 "by the shell."
25739 msgstr ""
25740
25741 # type: =head1
25742 #: ../tools/virt-edit.pl:268
25743 msgid "NON-INTERACTIVE EDITING"
25744 msgstr ""
25745
25746 # type: textblock
25747 #: ../tools/virt-edit.pl:270
25748 msgid ""
25749 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25750 "administrator can interactively edit the file."
25751 msgstr ""
25752
25753 # type: textblock
25754 #: ../tools/virt-edit.pl:273
25755 msgid ""
25756 "There are two ways also to use C<virt-edit> from scripts in order to make "
25757 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25758 "like this, it's less error-prone to write scripts directly using the "
25759 "libguestfs API and Augeas for configuration file editing.)"
25760 msgstr ""
25761
25762 # type: textblock
25763 #: ../tools/virt-edit.pl:279
25764 msgid ""
25765 "The first method is to temporarily set C<$EDITOR> to any script or program "
25766 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25767 "update C<tmpfile> in place however it likes."
25768 msgstr ""
25769
25770 # type: textblock
25771 #: ../tools/virt-edit.pl:283
25772 msgid ""
25773 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25774 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25775 "instances of C<foo> with C<bar> in a file:"
25776 msgstr ""
25777
25778 # type: verbatim
25779 #: ../tools/virt-edit.pl:287
25780 #, no-wrap
25781 msgid ""
25782 " virt-edit domname filename -e 's/foo/bar/'\n"
25783 "\n"
25784 msgstr ""
25785
25786 # type: textblock
25787 #: ../tools/virt-edit.pl:289
25788 msgid ""
25789 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25790 "For example to delete root's password you could do:"
25791 msgstr ""
25792
25793 # type: verbatim
25794 #: ../tools/virt-edit.pl:292
25795 #, no-wrap
25796 msgid ""
25797 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25798 "\n"
25799 msgstr ""
25800
25801 # type: textblock
25802 #: ../tools/virt-edit.pl:294
25803 msgid ""
25804 "What really happens is that the snippet is evaluated as a Perl expression "
25805 "for each line of the file.  The line, including the final C<\\n>, is passed "
25806 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25807 msgstr ""
25808
25809 # type: textblock
25810 #: ../tools/virt-edit.pl:299
25811 msgid ""
25812 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25813 "C<apache> user account from the password file you can do:"
25814 msgstr ""
25815
25816 # type: verbatim
25817 #: ../tools/virt-edit.pl:302
25818 #, no-wrap
25819 msgid ""
25820 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25821 "\n"
25822 msgstr ""
25823
25824 # type: textblock
25825 #: ../tools/virt-edit.pl:304
25826 msgid ""
25827 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25828 "the end of the file is rather difficult this way since there is no concept "
25829 "of \"last line of the file\" - your expression just doesn't get called "
25830 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25831 "want to do this."
25832 msgstr ""
25833
25834 # type: textblock
25835 #: ../tools/virt-edit.pl:310
25836 msgid ""
25837 "The variable C<$lineno> contains the current line number.  As is "
25838 "traditional, the first line in the file is number C<1>."
25839 msgstr ""
25840
25841 # type: textblock
25842 #: ../tools/virt-edit.pl:313
25843 msgid ""
25844 "The return value from the expression is ignored, but the expression may call "
25845 "C<die> in order to abort the whole program, leaving the original file "
25846 "untouched."
25847 msgstr ""
25848
25849 # type: textblock
25850 #: ../tools/virt-edit.pl:317
25851 msgid ""
25852 "Remember when matching the end of a line that C<$_> may contain the final "
25853 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25854 "newline then neither of these.  Thus to match or substitute some text at the "
25855 "end of a line, use this regular expression:"
25856 msgstr ""
25857
25858 # type: verbatim
25859 #: ../tools/virt-edit.pl:322
25860 #, no-wrap
25861 msgid ""
25862 " /some text(\\r?\\n)?$/\n"
25863 "\n"
25864 msgstr ""
25865
25866 # type: textblock
25867 #: ../tools/virt-edit.pl:324
25868 msgid ""
25869 "Alternately, use the perl C<chomp> function, being careful not to chomp "
25870 "C<$_> itself (since that would remove all newlines from the file):"
25871 msgstr ""
25872
25873 # type: verbatim
25874 #: ../tools/virt-edit.pl:328
25875 #, no-wrap
25876 msgid ""
25877 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25878 "\n"
25879 msgstr ""
25880
25881 # type: =item
25882 #: ../tools/virt-edit.pl:334
25883 msgid "C<EDITOR>"
25884 msgstr ""
25885
25886 # type: textblock
25887 #: ../tools/virt-edit.pl:336
25888 msgid ""
25889 "If set, this string is used as the editor.  It may contain arguments, "
25890 "eg. C<\"emacs -nw\">"
25891 msgstr ""
25892
25893 # type: textblock
25894 #: ../tools/virt-edit.pl:339
25895 msgid "If not set, C<vi> is used."
25896 msgstr ""
25897
25898 # type: =head1
25899 #: ../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
25900 msgid "SHELL QUOTING"
25901 msgstr ""
25902
25903 # type: textblock
25904 #: ../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
25905 msgid ""
25906 "Libvirt guest names can contain arbitrary characters, some of which have "
25907 "meaning to the shell such as C<#> and space.  You may need to quote or "
25908 "escape these characters on the command line.  See the shell manual page "
25909 "L<sh(1)> for details."
25910 msgstr ""
25911
25912 # type: textblock
25913 #: ../tools/virt-edit.pl:352
25914 msgid ""
25915 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
25916 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
25917 "L<perl(1)>, L<perlre(1)>."
25918 msgstr ""
25919
25920 # type: =head1
25921 #: ../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
25922 msgid "AUTHOR"
25923 msgstr ""
25924
25925 # type: textblock
25926 #: ../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
25927 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
25928 msgstr ""
25929
25930 # type: textblock
25931 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
25932 msgid "Copyright (C) 2009-2010 Red Hat Inc."
25933 msgstr ""
25934
25935 # type: textblock
25936 #: ../tools/virt-win-reg.pl:37
25937 msgid ""
25938 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
25939 "guest"
25940 msgstr ""
25941
25942 # type: verbatim
25943 #: ../tools/virt-win-reg.pl:41
25944 #, no-wrap
25945 msgid ""
25946 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
25947 "\n"
25948 msgstr ""
25949
25950 # type: verbatim
25951 #: ../tools/virt-win-reg.pl:43
25952 #, no-wrap
25953 msgid ""
25954 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
25955 "\n"
25956 msgstr ""
25957
25958 # type: verbatim
25959 #: ../tools/virt-win-reg.pl:45
25960 #, no-wrap
25961 msgid ""
25962 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
25963 "\n"
25964 msgstr ""
25965
25966 # type: verbatim
25967 #: ../tools/virt-win-reg.pl:47
25968 #, no-wrap
25969 msgid ""
25970 " virt-win-reg --merge domname [input.reg ...]\n"
25971 "\n"
25972 msgstr ""
25973
25974 # type: verbatim
25975 #: ../tools/virt-win-reg.pl:49
25976 #, no-wrap
25977 msgid ""
25978 " virt-win-reg [--options] disk.img ... # instead of domname\n"
25979 "\n"
25980 msgstr ""
25981
25982 # type: textblock
25983 #: ../tools/virt-win-reg.pl:53
25984 msgid ""
25985 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
25986 "virtual machines.  If you do this, you I<will> get irreversible disk "
25987 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
25988 "but doesn't catch all cases."
25989 msgstr ""
25990
25991 # type: textblock
25992 #: ../tools/virt-win-reg.pl:58
25993 msgid ""
25994 "Modifying the Windows Registry is an inherently risky operation.  The format "
25995 "is deliberately obscure and undocumented, and Registry changes can leave the "
25996 "system unbootable.  Therefore when using the C<--merge> option, make sure "
25997 "you have a reliable backup first."
25998 msgstr ""
25999
26000 # type: textblock
26001 #: ../tools/virt-win-reg.pl:65
26002 msgid ""
26003 "This program can export and merge Windows Registry entries from a Windows "
26004 "guest."
26005 msgstr ""
26006
26007 # type: textblock
26008 #: ../tools/virt-win-reg.pl:68
26009 msgid ""
26010 "The first parameter is the libvirt guest name or the raw disk image of a "
26011 "Windows guest."
26012 msgstr ""
26013
26014 # type: textblock
26015 #: ../tools/virt-win-reg.pl:71
26016 msgid ""
26017 "If C<--merge> is I<not> specified, then the chosen registry key is "
26018 "displayed/exported (recursively).  For example:"
26019 msgstr ""
26020
26021 # type: verbatim
26022 #: ../tools/virt-win-reg.pl:74
26023 #, no-wrap
26024 msgid ""
26025 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26026 "\n"
26027 msgstr ""
26028
26029 # type: textblock
26030 #: ../tools/virt-win-reg.pl:76
26031 msgid "You can also display single values from within registry keys, for example:"
26032 msgstr ""
26033
26034 # type: verbatim
26035 #: ../tools/virt-win-reg.pl:79
26036 #, no-wrap
26037 msgid ""
26038 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26039 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26040 " Windows 7 Enterprise\n"
26041 "\n"
26042 msgstr ""
26043
26044 # type: textblock
26045 #: ../tools/virt-win-reg.pl:83
26046 msgid ""
26047 "With C<--merge>, you can merge a textual regedit file into the Windows "
26048 "Registry:"
26049 msgstr ""
26050
26051 # type: verbatim
26052 #: ../tools/virt-win-reg.pl:86
26053 #, no-wrap
26054 msgid ""
26055 " $ virt-win-reg --merge Windows7 changes.reg\n"
26056 "\n"
26057 msgstr ""
26058
26059 # type: =head2
26060 #: ../tools/virt-win-reg.pl:88
26061 msgid "SUPPORTED SYSTEMS"
26062 msgstr ""
26063
26064 # type: textblock
26065 #: ../tools/virt-win-reg.pl:90
26066 msgid ""
26067 "The program currently supports Windows NT-derived guests starting with "
26068 "Windows XP through to at least Windows 7."
26069 msgstr ""
26070
26071 # type: textblock
26072 #: ../tools/virt-win-reg.pl:93
26073 msgid ""
26074 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26075 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26076 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26077 msgstr ""
26078
26079 # type: textblock
26080 #: ../tools/virt-win-reg.pl:97
26081 msgid ""
26082 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26083 "C<HKEY_USERS>."
26084 msgstr ""
26085
26086 # type: textblock
26087 #: ../tools/virt-win-reg.pl:100
26088 msgid ""
26089 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26090 "time."
26091 msgstr ""
26092
26093 # type: =head2
26094 #: ../tools/virt-win-reg.pl:103
26095 msgid "NOTE"
26096 msgstr ""
26097
26098 # type: textblock
26099 #: ../tools/virt-win-reg.pl:105
26100 msgid ""
26101 "This program is only meant for simple access to the registry.  If you want "
26102 "to do complicated things with the registry, we suggest you download the "
26103 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26104 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26105 "L<hivexregedit(1)>."
26106 msgstr ""
26107
26108 # type: =head2
26109 #: ../tools/virt-win-reg.pl:111
26110 msgid "ENCODING"
26111 msgstr ""
26112
26113 # type: textblock
26114 #: ../tools/virt-win-reg.pl:113
26115 msgid ""
26116 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26117 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26118 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26119 "with Windows-style line endings, you may need to reencode the whole file "
26120 "before or after processing."
26121 msgstr ""
26122
26123 # type: textblock
26124 #: ../tools/virt-win-reg.pl:119
26125 msgid ""
26126 "To reencode a file from Windows format to Linux (before processing it with "
26127 "the C<--merge> option), you would do something like this:"
26128 msgstr ""
26129
26130 # type: verbatim
26131 #: ../tools/virt-win-reg.pl:122
26132 #, no-wrap
26133 msgid ""
26134 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26135 "\n"
26136 msgstr ""
26137
26138 # type: textblock
26139 #: ../tools/virt-win-reg.pl:124
26140 msgid ""
26141 "To go in the opposite direction, after exporting and before sending the file "
26142 "to a Windows user, do something like this:"
26143 msgstr ""
26144
26145 # type: verbatim
26146 #: ../tools/virt-win-reg.pl:127
26147 #, no-wrap
26148 msgid ""
26149 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26150 "\n"
26151 msgstr ""
26152
26153 # type: textblock
26154 #: ../tools/virt-win-reg.pl:129
26155 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26156 msgstr ""
26157
26158 # type: textblock
26159 #: ../tools/virt-win-reg.pl:131
26160 msgid ""
26161 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26162 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26163 "Windows-style (CRLF) line endings, like this:"
26164 msgstr ""
26165
26166 # type: verbatim
26167 #: ../tools/virt-win-reg.pl:135
26168 #, no-wrap
26169 msgid ""
26170 " $ file software.reg\n"
26171 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26172 " with CRLF line terminators\n"
26173 "\n"
26174 msgstr ""
26175
26176 # type: textblock
26177 #: ../tools/virt-win-reg.pl:139
26178 msgid "This file would need conversion before you could C<--merge> it."
26179 msgstr ""
26180
26181 # type: textblock
26182 #: ../tools/virt-win-reg.pl:143
26183 msgid ""
26184 "Be careful when passing parameters containing C<\\> (backslash) in the "
26185 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26186 "(but not both) to protect them from the shell."
26187 msgstr ""
26188
26189 # type: textblock
26190 #: ../tools/virt-win-reg.pl:147
26191 msgid "Paths and value names are case-insensitive."
26192 msgstr ""
26193
26194 # type: =head2
26195 #: ../tools/virt-win-reg.pl:149
26196 msgid "CurrentControlSet etc."
26197 msgstr ""
26198
26199 # type: textblock
26200 #: ../tools/virt-win-reg.pl:151
26201 msgid ""
26202 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26203 "Registry at the level of the hive file, and therefore you cannot modify "
26204 "these."
26205 msgstr ""
26206
26207 # type: textblock
26208 #: ../tools/virt-win-reg.pl:155
26209 msgid ""
26210 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26211 "circumstances it might refer to another control set.  The way to find out is "
26212 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26213 msgstr ""
26214
26215 # type: verbatim
26216 #: ../tools/virt-win-reg.pl:159
26217 #, no-wrap
26218 msgid ""
26219 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26220 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26221 " \"Current\"=dword:00000001\n"
26222 " \"Default\"=dword:00000001\n"
26223 " \"Failed\"=dword:00000000\n"
26224 " \"LastKnownGood\"=dword:00000002\n"
26225 "\n"
26226 msgstr ""
26227
26228 # type: textblock
26229 #: ../tools/virt-win-reg.pl:166
26230 msgid "\"Current\" is the one which Windows will choose when it boots."
26231 msgstr ""
26232
26233 # type: textblock
26234 #: ../tools/virt-win-reg.pl:168
26235 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26236 msgstr ""
26237
26238 # type: =item
26239 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26240 msgid "B<--debug>"
26241 msgstr ""
26242
26243 # type: textblock
26244 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:498
26245 msgid "Enable debugging messages."
26246 msgstr ""
26247
26248 # type: =item
26249 #: ../tools/virt-win-reg.pl:232
26250 msgid "B<--merge>"
26251 msgstr ""
26252
26253 # type: textblock
26254 #: ../tools/virt-win-reg.pl:234
26255 msgid ""
26256 "In merge mode, this merges a textual regedit file into the Windows Registry "
26257 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26258 "displays or exports Registry entries instead."
26259 msgstr ""
26260
26261 # type: textblock
26262 #: ../tools/virt-win-reg.pl:238
26263 msgid ""
26264 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26265 "result in disk corruption.  However exporting (without this flag)  is always "
26266 "safe."
26267 msgstr ""
26268
26269 # type: =item
26270 #: ../tools/virt-win-reg.pl:246
26271 msgid "B<--encoding> UTF-16LE|ASCII"
26272 msgstr ""
26273
26274 # type: textblock
26275 #: ../tools/virt-win-reg.pl:248
26276 msgid ""
26277 "When merging (only), you may need to specify the encoding for strings to be "
26278 "used in the hive file.  This is explained in detail in "
26279 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26280 msgstr ""
26281
26282 # type: textblock
26283 #: ../tools/virt-win-reg.pl:252
26284 msgid ""
26285 "The default is to use UTF-16LE, which should work with recent versions of "
26286 "Windows."
26287 msgstr ""
26288
26289 # type: textblock
26290 #: ../tools/virt-win-reg.pl:486
26291 msgid ""
26292 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26293 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26294 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26295 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26296 msgstr ""
26297
26298 # type: textblock
26299 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26300 msgid ""
26301 "When reporting bugs, please enable debugging and capture the I<complete> "
26302 "output:"
26303 msgstr ""
26304
26305 # type: verbatim
26306 #: ../tools/virt-win-reg.pl:504
26307 #, no-wrap
26308 msgid ""
26309 " export LIBGUESTFS_DEBUG=1\n"
26310 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26311 "\n"
26312 msgstr ""
26313
26314 # type: textblock
26315 #: ../tools/virt-win-reg.pl:507
26316 msgid ""
26317 "Attach /tmp/virt-win-reg.log to a new bug report at "
26318 "L<https://bugzilla.redhat.com/>"
26319 msgstr ""
26320
26321 # type: textblock
26322 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1510 ../tools/virt-make-fs.pl:565
26323 msgid "Copyright (C) 2010 Red Hat Inc."
26324 msgstr ""
26325
26326 # type: textblock
26327 #: ../tools/virt-resize.pl:42
26328 msgid "virt-resize - Resize a virtual machine disk"
26329 msgstr ""
26330
26331 # type: verbatim
26332 #: ../tools/virt-resize.pl:46
26333 #, no-wrap
26334 msgid ""
26335 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26336 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26337 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26338 "\n"
26339 msgstr ""
26340
26341 # type: textblock
26342 #: ../tools/virt-resize.pl:52
26343 msgid ""
26344 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26345 "larger or smaller overall, and resizing or deleting any partitions contained "
26346 "within."
26347 msgstr ""
26348
26349 # type: textblock
26350 #: ../tools/virt-resize.pl:56
26351 msgid ""
26352 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26353 "not> be used on live virtual machines - for consistent results, shut the "
26354 "virtual machine down before resizing it."
26355 msgstr ""
26356
26357 # type: textblock
26358 #: ../tools/virt-resize.pl:60
26359 msgid ""
26360 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
26361 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
26362 msgstr ""
26363
26364 # type: textblock
26365 #: ../tools/virt-resize.pl:66
26366 msgid ""
26367 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26368 "fill the extra 5GB of space."
26369 msgstr ""
26370
26371 # type: verbatim
26372 #: ../tools/virt-resize.pl:69
26373 #, no-wrap
26374 msgid ""
26375 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26376 " virt-filesystems --long --h --all -a olddisk\n"
26377 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26378 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26379 "\n"
26380 msgstr ""
26381
26382 # type: textblock
26383 #: ../tools/virt-resize.pl:74
26384 msgid ""
26385 "As above, but make the /boot partition 200MB bigger, while giving the "
26386 "remaining space to /dev/sda2:"
26387 msgstr ""
26388
26389 # type: verbatim
26390 #: ../tools/virt-resize.pl:77
26391 #, no-wrap
26392 msgid ""
26393 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26394 "\n"
26395 msgstr ""
26396
26397 # type: textblock
26398 #: ../tools/virt-resize.pl:79
26399 msgid "As above, but the output format will be uncompressed qcow2:"
26400 msgstr ""
26401
26402 # type: verbatim
26403 #: ../tools/virt-resize.pl:81
26404 #, no-wrap
26405 msgid ""
26406 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26407 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26408 "\n"
26409 msgstr ""
26410
26411 # type: =head1
26412 #: ../tools/virt-resize.pl:84
26413 msgid "DETAILED USAGE"
26414 msgstr ""
26415
26416 # type: =head2
26417 #: ../tools/virt-resize.pl:86
26418 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26419 msgstr ""
26420
26421 # type: =item
26422 #: ../tools/virt-resize.pl:90
26423 msgid "1. Shut down the virtual machine"
26424 msgstr ""
26425
26426 # type: =item
26427 #: ../tools/virt-resize.pl:92
26428 msgid "2. Locate input disk image"
26429 msgstr ""
26430
26431 # type: textblock
26432 #: ../tools/virt-resize.pl:94
26433 msgid ""
26434 "Locate the input disk image (ie. the file or device on the host containing "
26435 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26436 "dumpxml> like this to find the disk image name:"
26437 msgstr ""
26438
26439 # type: verbatim
26440 #: ../tools/virt-resize.pl:98
26441 #, no-wrap
26442 msgid ""
26443 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26444 " Found 1 nodes:\n"
26445 " -- NODE --\n"
26446 " <source dev=\"/dev/vg/lv_guest\" />\n"
26447 "\n"
26448 msgstr ""
26449
26450 # type: =item
26451 #: ../tools/virt-resize.pl:103
26452 msgid "3. Look at current sizing"
26453 msgstr ""
26454
26455 # type: textblock
26456 #: ../tools/virt-resize.pl:105
26457 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
26458 msgstr ""
26459
26460 # type: verbatim
26461 #: ../tools/virt-resize.pl:108
26462 #, no-wrap
26463 msgid ""
26464 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
26465 " Name       Type       Size  Parent\n"
26466 " /dev/sda1  partition  101M  /dev/sda\n"
26467 " /dev/sda2  partition  7.9G  /dev/sda\n"
26468 " /dev/sda   device     8.0G  -\n"
26469 "\n"
26470 msgstr ""
26471
26472 # type: textblock
26473 #: ../tools/virt-resize.pl:114
26474 msgid ""
26475 "(This example is a virtual machine with an 8 GB disk which we would like to "
26476 "expand up to 10 GB)."
26477 msgstr ""
26478
26479 # type: =item
26480 #: ../tools/virt-resize.pl:117
26481 msgid "4. Create output disk"
26482 msgstr ""
26483
26484 # type: textblock
26485 #: ../tools/virt-resize.pl:119
26486 msgid ""
26487 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26488 "to store the resized output disk."
26489 msgstr ""
26490
26491 # type: textblock
26492 #: ../tools/virt-resize.pl:122
26493 msgid "To store the resized disk image in a file, create a file of a suitable size:"
26494 msgstr ""
26495
26496 # type: verbatim
26497 #: ../tools/virt-resize.pl:125
26498 #, no-wrap
26499 msgid ""
26500 " # rm -f outdisk\n"
26501 " # truncate -s 10G outdisk\n"
26502 "\n"
26503 msgstr ""
26504
26505 # type: textblock
26506 #: ../tools/virt-resize.pl:128
26507 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26508 msgstr ""
26509
26510 # type: verbatim
26511 #: ../tools/virt-resize.pl:130
26512 #, no-wrap
26513 msgid ""
26514 " # lvcreate -L 10G -n lv_name vg_name\n"
26515 "\n"
26516 msgstr ""
26517
26518 # type: textblock
26519 #: ../tools/virt-resize.pl:132
26520 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26521 msgstr ""
26522
26523 # type: verbatim
26524 #: ../tools/virt-resize.pl:134
26525 #, no-wrap
26526 msgid ""
26527 " # virsh pool-list\n"
26528 " # virsh vol-create-as poolname newvol 10G\n"
26529 "\n"
26530 msgstr ""
26531
26532 # type: =item
26533 #: ../tools/virt-resize.pl:137
26534 msgid "5. Resize"
26535 msgstr ""
26536
26537 # type: textblock
26538 #: ../tools/virt-resize.pl:139
26539 msgid ""
26540 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26541 "file) and the output disk.  The output disk is the one created in the "
26542 "previous step."
26543 msgstr ""
26544
26545 # type: verbatim
26546 #: ../tools/virt-resize.pl:143
26547 #, no-wrap
26548 msgid ""
26549 " # virt-resize indisk outdisk\n"
26550 "\n"
26551 msgstr ""
26552
26553 # type: textblock
26554 #: ../tools/virt-resize.pl:145
26555 msgid ""
26556 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26557 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26558 "larger, then an extra, empty partition is created at the end of the disk "
26559 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26560 "error."
26561 msgstr ""
26562
26563 # type: textblock
26564 #: ../tools/virt-resize.pl:151
26565 msgid ""
26566 "More realistically you'd want to expand existing partitions in the disk "
26567 "image by passing extra options (for the full list see the L</OPTIONS> "
26568 "section below)."
26569 msgstr ""
26570
26571 # type: textblock
26572 #: ../tools/virt-resize.pl:155
26573 msgid ""
26574 "L</--expand> is the most useful option.  It expands the named partition "
26575 "within the disk to fill any extra space:"
26576 msgstr ""
26577
26578 # type: verbatim
26579 #: ../tools/virt-resize.pl:158
26580 #, no-wrap
26581 msgid ""
26582 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26583 "\n"
26584 msgstr ""
26585
26586 # type: textblock
26587 #: ../tools/virt-resize.pl:160
26588 msgid ""
26589 "(In this case, an extra partition is I<not> created at the end of the disk, "
26590 "because there will be no unused space)."
26591 msgstr ""
26592
26593 # type: textblock
26594 #: ../tools/virt-resize.pl:163
26595 msgid ""
26596 "L</--resize> is the other commonly used option.  The following would "
26597 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26598 "rest of the available space:"
26599 msgstr ""
26600
26601 # type: verbatim
26602 #: ../tools/virt-resize.pl:167
26603 #, no-wrap
26604 msgid ""
26605 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26606 "     indisk outdisk\n"
26607 "\n"
26608 msgstr ""
26609
26610 # type: textblock
26611 #: ../tools/virt-resize.pl:170
26612 msgid ""
26613 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26614 "if virt-resize knows how, it will resize the contents, the equivalent of "
26615 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
26616 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
26617 "filesystems, so you would have to online resize them after booting the "
26618 "guest."
26619 msgstr ""
26620
26621 # type: textblock
26622 #: ../tools/virt-resize.pl:177
26623 msgid "Other options are covered below."
26624 msgstr ""
26625
26626 # type: =item
26627 #: ../tools/virt-resize.pl:179
26628 msgid "6. Test"
26629 msgstr ""
26630
26631 # type: textblock
26632 #: ../tools/virt-resize.pl:181
26633 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26634 msgstr ""
26635
26636 # type: textblock
26637 #: ../tools/virt-resize.pl:183
26638 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26639 msgstr ""
26640
26641 # type: verbatim
26642 #: ../tools/virt-resize.pl:185
26643 #, no-wrap
26644 msgid ""
26645 " # virsh edit guestname\n"
26646 "\n"
26647 msgstr ""
26648
26649 # type: textblock
26650 #: ../tools/virt-resize.pl:187
26651 msgid ""
26652 "Change E<lt>source ...E<gt>, see "
26653 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
26654 msgstr ""
26655
26656 # type: textblock
26657 #: ../tools/virt-resize.pl:190
26658 msgid "Then start up the domain with the new, resized disk:"
26659 msgstr ""
26660
26661 # type: verbatim
26662 #: ../tools/virt-resize.pl:192
26663 #, no-wrap
26664 msgid ""
26665 " # virsh start guestname\n"
26666 "\n"
26667 msgstr ""
26668
26669 # type: textblock
26670 #: ../tools/virt-resize.pl:194
26671 msgid ""
26672 "and check that it still works.  See also the L</NOTES> section below for "
26673 "additional information."
26674 msgstr ""
26675
26676 # type: =item
26677 #: ../tools/virt-resize.pl:197
26678 msgid "7. Resize LVs etc inside the guest"
26679 msgstr ""
26680
26681 # type: textblock
26682 #: ../tools/virt-resize.pl:199
26683 msgid "(This can also be done offline using L<guestfish(1)>)"
26684 msgstr ""
26685
26686 # type: textblock
26687 #: ../tools/virt-resize.pl:201
26688 msgid ""
26689 "Once the guest has booted you should see the new space available, at least "
26690 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26691 "may need to resize LVs inside PVs, and also resize filesystem types that "
26692 "virt-resize does not know how to expand."
26693 msgstr ""
26694
26695 # type: =head2
26696 #: ../tools/virt-resize.pl:208
26697 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26698 msgstr ""
26699
26700 # type: textblock
26701 #: ../tools/virt-resize.pl:210
26702 msgid ""
26703 "Shrinking is somewhat more complex than expanding, and only an overview is "
26704 "given here."
26705 msgstr ""
26706
26707 # type: textblock
26708 #: ../tools/virt-resize.pl:213
26709 msgid ""
26710 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26711 "filesystems).  The user has to shrink content before passing the disk image "
26712 "to virt-resize, and virt-resize will check that the content has been shrunk "
26713 "properly."
26714 msgstr ""
26715
26716 # type: textblock
26717 #: ../tools/virt-resize.pl:218
26718 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26719 msgstr ""
26720
26721 # type: textblock
26722 #: ../tools/virt-resize.pl:220
26723 msgid ""
26724 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26725 "steps 3 and 4 above to allocate a new disk image."
26726 msgstr ""
26727
26728 # type: textblock
26729 #: ../tools/virt-resize.pl:223
26730 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26731 msgstr ""
26732
26733 # type: =head2
26734 #: ../tools/virt-resize.pl:226
26735 msgid "IGNORING OR DELETING PARTITIONS"
26736 msgstr ""
26737
26738 # type: textblock
26739 #: ../tools/virt-resize.pl:228
26740 msgid ""
26741 "virt-resize also gives a convenient way to ignore or delete partitions when "
26742 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26743 "up the copy where you don't care about the existing contents of a "
26744 "partition.  Deleting a partition removes it completely, but note that it "
26745 "also renumbers any partitions after the one which is deleted, which can "
26746 "leave some guests unbootable."
26747 msgstr ""
26748
26749 # type: =head2
26750 #: ../tools/virt-resize.pl:235
26751 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26752 msgstr ""
26753
26754 # type: textblock
26755 #: ../tools/virt-resize.pl:237
26756 msgid ""
26757 "If the input disk is in qcow2 format, then you may prefer that the output is "
26758 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26759 "the fly.  The output format is simply determined by the format of the empty "
26760 "output container that you provide.  Thus to create qcow2 output, use:"
26761 msgstr ""
26762
26763 # type: verbatim
26764 #: ../tools/virt-resize.pl:243
26765 #, no-wrap
26766 msgid ""
26767 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26768 "\n"
26769 msgstr ""
26770
26771 # type: textblock
26772 #: ../tools/virt-resize.pl:245
26773 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26774 msgstr ""
26775
26776 # type: textblock
26777 #: ../tools/virt-resize.pl:247
26778 msgid "Similarly, to get non-sparse raw output use:"
26779 msgstr ""
26780
26781 # type: verbatim
26782 #: ../tools/virt-resize.pl:249
26783 #, no-wrap
26784 msgid ""
26785 " fallocate -l size outdisk\n"
26786 "\n"
26787 msgstr ""
26788
26789 # type: textblock
26790 #: ../tools/virt-resize.pl:251
26791 msgid ""
26792 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
26793 "if=/dev/zero of=outdisk bs=1M count=..>)"
26794 msgstr ""
26795
26796 # type: textblock
26797 #: ../tools/virt-resize.pl:264
26798 msgid "Display help."
26799 msgstr ""
26800
26801 # type: =item
26802 #: ../tools/virt-resize.pl:278
26803 msgid "B<--resize part=size>"
26804 msgstr ""
26805
26806 # type: textblock
26807 #: ../tools/virt-resize.pl:280
26808 msgid ""
26809 "Resize the named partition (expanding or shrinking it) so that it has the "
26810 "given size."
26811 msgstr ""
26812
26813 # type: textblock
26814 #: ../tools/virt-resize.pl:283
26815 msgid ""
26816 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26817 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26818 "Exabytes; or as a percentage of the current size; or as a relative number or "
26819 "percentage.  For example:"
26820 msgstr ""
26821
26822 # type: verbatim
26823 #: ../tools/virt-resize.pl:288
26824 #, no-wrap
26825 msgid ""
26826 " --resize /dev/sda2=10G\n"
26827 "\n"
26828 msgstr ""
26829
26830 # type: verbatim
26831 #: ../tools/virt-resize.pl:290
26832 #, no-wrap
26833 msgid ""
26834 " --resize /dev/sda4=90%\n"
26835 "\n"
26836 msgstr ""
26837
26838 # type: verbatim
26839 #: ../tools/virt-resize.pl:292
26840 #, no-wrap
26841 msgid ""
26842 " --resize /dev/sda2=+1G\n"
26843 "\n"
26844 msgstr ""
26845
26846 # type: verbatim
26847 #: ../tools/virt-resize.pl:294
26848 #, no-wrap
26849 msgid ""
26850 " --resize /dev/sda2=-200M\n"
26851 "\n"
26852 msgstr ""
26853
26854 # type: verbatim
26855 #: ../tools/virt-resize.pl:296
26856 #, no-wrap
26857 msgid ""
26858 " --resize /dev/sda1=+128K\n"
26859 "\n"
26860 msgstr ""
26861
26862 # type: verbatim
26863 #: ../tools/virt-resize.pl:298
26864 #, no-wrap
26865 msgid ""
26866 " --resize /dev/sda1=+10%\n"
26867 "\n"
26868 msgstr ""
26869
26870 # type: verbatim
26871 #: ../tools/virt-resize.pl:300
26872 #, no-wrap
26873 msgid ""
26874 " --resize /dev/sda1=-10%\n"
26875 "\n"
26876 msgstr ""
26877
26878 # type: textblock
26879 #: ../tools/virt-resize.pl:302
26880 msgid ""
26881 "You can increase the size of any partition.  Virt-resize will expand the "
26882 "direct content of the partition if it knows how (see C<--expand> below)."
26883 msgstr ""
26884
26885 # type: textblock
26886 #: ../tools/virt-resize.pl:306
26887 msgid ""
26888 "You can only I<decrease> the size of partitions that contain filesystems or "
26889 "PVs which have already been shrunk.  Virt-resize will check this has been "
26890 "done before proceeding, or else will print an error (see also "
26891 "C<--resize-force>)."
26892 msgstr ""
26893
26894 # type: textblock
26895 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403 ../tools/virt-resize.pl:420
26896 msgid "You can give this option multiple times."
26897 msgstr ""
26898
26899 # type: =item
26900 #: ../tools/virt-resize.pl:317
26901 msgid "B<--resize-force part=size>"
26902 msgstr ""
26903
26904 # type: textblock
26905 #: ../tools/virt-resize.pl:319
26906 msgid ""
26907 "This is the same as C<--resize> except that it will let you decrease the "
26908 "size of any partition.  Generally this means you will lose any data which "
26909 "was at the end of the partition you shrink, but you may not care about that "
26910 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26911 "as a swap partition)."
26912 msgstr ""
26913
26914 # type: textblock
26915 #: ../tools/virt-resize.pl:325
26916 msgid "See also the C<--ignore> option."
26917 msgstr ""
26918
26919 # type: =item
26920 #: ../tools/virt-resize.pl:331
26921 msgid "B<--expand part>"
26922 msgstr ""
26923
26924 # type: textblock
26925 #: ../tools/virt-resize.pl:333
26926 msgid ""
26927 "Expand the named partition so it uses up all extra space (space left over "
26928 "after any other resize changes that you request have been done)."
26929 msgstr ""
26930
26931 # type: textblock
26932 #: ../tools/virt-resize.pl:336
26933 msgid ""
26934 "If virt-resize knows how, it will expand the direct content of the "
26935 "partition.  For example, if the partition is an LVM PV, it will expand the "
26936 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
26937 "content it doesn't know about alone."
26938 msgstr ""
26939
26940 # type: textblock
26941 #: ../tools/virt-resize.pl:341
26942 msgid "Currently virt-resize can resize:"
26943 msgstr ""
26944
26945 # type: textblock
26946 #: ../tools/virt-resize.pl:347
26947 msgid ""
26948 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
26949 "partition."
26950 msgstr ""
26951
26952 # type: textblock
26953 #: ../tools/virt-resize.pl:352
26954 msgid ""
26955 "NTFS filesystems contained directly in a partition, if libguestfs was "
26956 "compiled with support for NTFS."
26957 msgstr ""
26958
26959 # type: textblock
26960 #: ../tools/virt-resize.pl:355
26961 msgid ""
26962 "The filesystem must have been shut down consistently last time it was used.  "
26963 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
26964 "consistency check, so at the first boot after resizing Windows will check "
26965 "the disk."
26966 msgstr ""
26967
26968 # type: textblock
26969 #: ../tools/virt-resize.pl:362
26970 msgid ""
26971 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
26972 "inside the PV, but see the C<--LV-expand> option.  The user could also "
26973 "resize LVs as desired after boot."
26974 msgstr ""
26975
26976 # type: textblock
26977 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
26978 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
26979 msgstr ""
26980
26981 # type: =item
26982 #: ../tools/virt-resize.pl:374
26983 msgid "B<--shrink part>"
26984 msgstr ""
26985
26986 # type: textblock
26987 #: ../tools/virt-resize.pl:376
26988 msgid ""
26989 "Shrink the named partition until the overall disk image fits in the "
26990 "destination.  The named partition B<must> contain a filesystem or PV which "
26991 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26992 "online tools).  Virt-resize will check this and give an error if it has not "
26993 "been done."
26994 msgstr ""
26995
26996 # type: textblock
26997 #: ../tools/virt-resize.pl:382
26998 msgid ""
26999 "The amount by which the overall disk must be shrunk (after carrying out all "
27000 "other operations requested by the user) is called the \"deficit\".  For "
27001 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27002 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27003 "would give an error unless the user specified a partition to shrink and that "
27004 "partition had more than a gigabyte of free space."
27005 msgstr ""
27006
27007 # type: =item
27008 #: ../tools/virt-resize.pl:396
27009 msgid "B<--ignore part>"
27010 msgstr ""
27011
27012 # type: textblock
27013 #: ../tools/virt-resize.pl:398
27014 msgid ""
27015 "Ignore the named partition.  Effectively this means the partition is "
27016 "allocated on the destination disk, but the content is not copied across from "
27017 "the source disk.  The content of the partition will be blank (all zero "
27018 "bytes)."
27019 msgstr ""
27020
27021 # type: =item
27022 #: ../tools/virt-resize.pl:409
27023 msgid "B<--delete part>"
27024 msgstr ""
27025
27026 # type: textblock
27027 #: ../tools/virt-resize.pl:411
27028 msgid ""
27029 "Delete the named partition.  It would be more accurate to describe this as "
27030 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27031 "the original disk image is left intact."
27032 msgstr ""
27033
27034 # type: textblock
27035 #: ../tools/virt-resize.pl:415
27036 msgid ""
27037 "Note that when you delete a partition, then anything contained in the "
27038 "partition is also deleted.  Furthermore, this causes any partitions that "
27039 "come after to be I<renumbered>, which can easily make your guest unbootable."
27040 msgstr ""
27041
27042 # type: =item
27043 #: ../tools/virt-resize.pl:426
27044 msgid "B<--LV-expand logvol>"
27045 msgstr ""
27046
27047 # type: textblock
27048 #: ../tools/virt-resize.pl:428
27049 msgid ""
27050 "This takes the logical volume and, as a final step, expands it to fill all "
27051 "the space available in its volume group.  A typical usage, assuming a Linux "
27052 "guest with a single PV C</dev/sda2> and a root device called "
27053 "C</dev/vg_guest/lv_root> would be:"
27054 msgstr ""
27055
27056 # type: verbatim
27057 #: ../tools/virt-resize.pl:433
27058 #, no-wrap
27059 msgid ""
27060 " virt-resize indisk outdisk \\\n"
27061 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27062 "\n"
27063 msgstr ""
27064
27065 # type: textblock
27066 #: ../tools/virt-resize.pl:436
27067 msgid ""
27068 "This would first expand the partition (and PV), and then expand the root "
27069 "device to fill the extra space in the PV."
27070 msgstr ""
27071
27072 # type: textblock
27073 #: ../tools/virt-resize.pl:439
27074 msgid ""
27075 "The contents of the LV are also resized if virt-resize knows how to do "
27076 "that.  You can stop virt-resize from trying to expand the content by using "
27077 "the option C<--no-expand-content>."
27078 msgstr ""
27079
27080 # type: textblock
27081 #: ../tools/virt-resize.pl:443
27082 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27083 msgstr ""
27084
27085 # type: textblock
27086 #: ../tools/virt-resize.pl:446
27087 msgid ""
27088 "You can give this option multiple times, I<but> it doesn't make sense to do "
27089 "this unless the logical volumes you specify are all in different volume "
27090 "groups."
27091 msgstr ""
27092
27093 # type: =item
27094 #: ../tools/virt-resize.pl:454
27095 msgid "B<--no-copy-boot-loader>"
27096 msgstr ""
27097
27098 # type: textblock
27099 #: ../tools/virt-resize.pl:456
27100 msgid ""
27101 "By default, virt-resize copies over some sectors at the start of the disk "
27102 "(up to the beginning of the first partition).  Commonly these sectors "
27103 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27104 "in order for the guest to boot correctly."
27105 msgstr ""
27106
27107 # type: textblock
27108 #: ../tools/virt-resize.pl:461
27109 msgid ""
27110 "If you specify this flag, then this initial copy is not done.  You may need "
27111 "to reinstall the boot loader in this case."
27112 msgstr ""
27113
27114 # type: =item
27115 #: ../tools/virt-resize.pl:469
27116 msgid "B<--no-extra-partition>"
27117 msgstr ""
27118
27119 # type: textblock
27120 #: ../tools/virt-resize.pl:471
27121 msgid ""
27122 "By default, virt-resize creates an extra partition if there is any extra, "
27123 "unused space after all resizing has happened.  Use this option to prevent "
27124 "the extra partition from being created.  If you do this then the extra space "
27125 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27126 "tool in the guest."
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-resize.pl:477
27131 msgid ""
27132 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27133 "will be created."
27134 msgstr ""
27135
27136 # type: =item
27137 #: ../tools/virt-resize.pl:484
27138 msgid "B<--no-expand-content>"
27139 msgstr ""
27140
27141 # type: textblock
27142 #: ../tools/virt-resize.pl:486
27143 msgid ""
27144 "By default, virt-resize will try to expand the direct contents of "
27145 "partitions, if it knows how (see C<--expand> option above)."
27146 msgstr ""
27147
27148 # type: textblock
27149 #: ../tools/virt-resize.pl:489
27150 msgid ""
27151 "If you give the C<--no-expand-content> option then virt-resize will not "
27152 "attempt this."
27153 msgstr ""
27154
27155 # type: =item
27156 #: ../tools/virt-resize.pl:496
27157 msgid "B<-d> | B<--debug>"
27158 msgstr ""
27159
27160 # type: =item
27161 #: ../tools/virt-resize.pl:504
27162 msgid "B<-n> | B<--dryrun>"
27163 msgstr ""
27164
27165 # type: textblock
27166 #: ../tools/virt-resize.pl:506
27167 msgid "Print a summary of what would be done, but don't do anything."
27168 msgstr ""
27169
27170 # type: =item
27171 #: ../tools/virt-resize.pl:512
27172 msgid "B<-q> | B<--quiet>"
27173 msgstr ""
27174
27175 # type: textblock
27176 #: ../tools/virt-resize.pl:514
27177 msgid "Don't print the summary."
27178 msgstr ""
27179
27180 # type: textblock
27181 #: ../tools/virt-resize.pl:522
27182 msgid ""
27183 "Specify the format of the input disk image.  If this flag is not given then "
27184 "it is auto-detected from the image itself."
27185 msgstr ""
27186
27187 # type: textblock
27188 #: ../tools/virt-resize.pl:528
27189 msgid ""
27190 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27191 "AND NON-SPARSE RAW FORMATS>."
27192 msgstr ""
27193
27194 # type: =item
27195 #: ../tools/virt-resize.pl:535
27196 msgid "B<--output-format> raw"
27197 msgstr ""
27198
27199 # type: textblock
27200 #: ../tools/virt-resize.pl:537
27201 msgid ""
27202 "Specify the format of the output disk image.  If this flag is not given then "
27203 "it is auto-detected from the image itself."
27204 msgstr ""
27205
27206 # type: textblock
27207 #: ../tools/virt-resize.pl:543
27208 msgid ""
27209 "Note that you still need to create the output disk with the right format.  "
27210 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27211 msgstr ""
27212
27213 # type: =head1
27214 #: ../tools/virt-resize.pl:1419
27215 msgid "NOTES"
27216 msgstr ""
27217
27218 # type: =head2
27219 #: ../tools/virt-resize.pl:1421
27220 msgid "\"Partition 1 does not end on cylinder boundary.\""
27221 msgstr ""
27222
27223 # type: textblock
27224 #: ../tools/virt-resize.pl:1423
27225 msgid ""
27226 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27227 "means the partitions will not be aligned to the ancient CHS geometry.  "
27228 "However CHS geometry is meaningless for disks manufactured since the early "
27229 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27230 "cylinders is not required by any modern operating system."
27231 msgstr ""
27232
27233 # type: =head2
27234 #: ../tools/virt-resize.pl:1430
27235 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27236 msgstr ""
27237
27238 # type: textblock
27239 #: ../tools/virt-resize.pl:1432
27240 msgid ""
27241 "In Windows Vista and later versions, Microsoft switched to using a separate "
27242 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27243 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27244 "the boot partition.  Doing so seems to break the guest completely.  However "
27245 "expanding the second partition (ie. C: drive) should work."
27246 msgstr ""
27247
27248 # type: textblock
27249 #: ../tools/virt-resize.pl:1439
27250 msgid ""
27251 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27252 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27253 "it find errors) is nothing to worry about."
27254 msgstr ""
27255
27256 # type: =head2
27257 #: ../tools/virt-resize.pl:1443
27258 msgid "GUEST BOOT STUCK AT \"GRUB\""
27259 msgstr ""
27260
27261 # type: textblock
27262 #: ../tools/virt-resize.pl:1445
27263 msgid ""
27264 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27265 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27266 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27267 "although we think is to do with partition alignment."
27268 msgstr ""
27269
27270 # type: verbatim
27271 #: ../tools/virt-resize.pl:1450
27272 #, no-wrap
27273 msgid ""
27274 " guestfish -i -a newdisk\n"
27275 " ><fs> cat /boot/grub/device.map\n"
27276 " # check the contents of this file are sensible or\n"
27277 " # edit the file if necessary\n"
27278 " ><fs> grub-install / /dev/vda\n"
27279 " ><fs> exit\n"
27280 "\n"
27281 msgstr ""
27282
27283 # type: textblock
27284 #: ../tools/virt-resize.pl:1457
27285 msgid ""
27286 "For more flexible guest reconfiguration, including if you need to specify "
27287 "other parameters to grub-install, use L<virt-rescue(1)>."
27288 msgstr ""
27289
27290 # type: =head1
27291 #: ../tools/virt-resize.pl:1460
27292 msgid "ALTERNATIVE TOOLS"
27293 msgstr ""
27294
27295 # type: textblock
27296 #: ../tools/virt-resize.pl:1462
27297 msgid ""
27298 "There are several proprietary tools for resizing partitions.  We won't "
27299 "mention any here."
27300 msgstr ""
27301
27302 # type: textblock
27303 #: ../tools/virt-resize.pl:1465
27304 msgid ""
27305 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27306 "operations on disk images.  They can resize and move partitions, but I don't "
27307 "think they can do anything with the contents, and they certainly don't "
27308 "understand LVM."
27309 msgstr ""
27310
27311 # type: textblock
27312 #: ../tools/virt-resize.pl:1470
27313 msgid ""
27314 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27315 "but at a much lower level.  You will probably end up hand-calculating sector "
27316 "offsets, which is something that virt-resize was designed to avoid.  If you "
27317 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27318 "C<--debug> flag."
27319 msgstr ""
27320
27321 # type: textblock
27322 #: ../tools/virt-resize.pl:1485
27323 msgid ""
27324 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
27325 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
27326 "L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
27327 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27328 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27329 msgstr ""
27330
27331 # type: textblock
27332 #: ../tools/virt-list-filesystems.pl:32
27333 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27334 msgstr ""
27335
27336 # type: verbatim
27337 #: ../tools/virt-list-filesystems.pl:36
27338 #, no-wrap
27339 msgid ""
27340 " virt-list-filesystems [--options] domname\n"
27341 "\n"
27342 msgstr ""
27343
27344 # type: verbatim
27345 #: ../tools/virt-list-filesystems.pl:38
27346 #, no-wrap
27347 msgid ""
27348 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27349 "\n"
27350 msgstr ""
27351
27352 # type: textblock
27353 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
27354 msgid ""
27355 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
27356 "replacement."
27357 msgstr ""
27358
27359 # type: textblock
27360 #: ../tools/virt-list-filesystems.pl:45
27361 msgid ""
27362 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27363 "are contained in a virtual machine or disk image."
27364 msgstr ""
27365
27366 # type: textblock
27367 #: ../tools/virt-list-filesystems.pl:49
27368 msgid ""
27369 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27370 "functionality.  For more complex cases you should look at the "
27371 "L<guestfish(1)> tool."
27372 msgstr ""
27373
27374 # type: =item
27375 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
27376 msgid "B<-l> | B<--long>"
27377 msgstr ""
27378
27379 # type: textblock
27380 #: ../tools/virt-list-filesystems.pl:108
27381 msgid ""
27382 "With this option, C<virt-list-filesystems> displays the type of each "
27383 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27384 msgstr ""
27385
27386 # type: =item
27387 #: ../tools/virt-list-filesystems.pl:115
27388 msgid "B<-a> | B<--all>"
27389 msgstr ""
27390
27391 # type: textblock
27392 #: ../tools/virt-list-filesystems.pl:117
27393 msgid ""
27394 "Normally we only show mountable filesystems.  If this option is given then "
27395 "swap devices are shown too."
27396 msgstr ""
27397
27398 # type: textblock
27399 #: ../tools/virt-list-filesystems.pl:191
27400 msgid ""
27401 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
27402 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
27403 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27404 msgstr ""
27405
27406 # type: textblock
27407 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
27408 msgid "Copyright (C) 2009 Red Hat Inc."
27409 msgstr ""
27410
27411 # type: textblock
27412 #: ../tools/virt-tar.pl:33
27413 msgid "virt-tar - Extract or upload files to a virtual machine"
27414 msgstr ""
27415
27416 # type: verbatim
27417 #: ../tools/virt-tar.pl:37
27418 #, no-wrap
27419 msgid ""
27420 " virt-tar [--options] -x domname directory tarball\n"
27421 "\n"
27422 msgstr ""
27423
27424 # type: verbatim
27425 #: ../tools/virt-tar.pl:39
27426 #, no-wrap
27427 msgid ""
27428 " virt-tar [--options] -u domname tarball directory\n"
27429 "\n"
27430 msgstr ""
27431
27432 # type: verbatim
27433 #: ../tools/virt-tar.pl:41
27434 #, no-wrap
27435 msgid ""
27436 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27437 "\n"
27438 msgstr ""
27439
27440 # type: verbatim
27441 #: ../tools/virt-tar.pl:43
27442 #, no-wrap
27443 msgid ""
27444 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27445 "\n"
27446 msgstr ""
27447
27448 # type: textblock
27449 #: ../tools/virt-tar.pl:47
27450 msgid "Download C</home> from the VM into a local tarball:"
27451 msgstr ""
27452
27453 # type: verbatim
27454 #: ../tools/virt-tar.pl:49
27455 #, no-wrap
27456 msgid ""
27457 " virt-tar -x domname /home home.tar\n"
27458 "\n"
27459 msgstr ""
27460
27461 # type: verbatim
27462 #: ../tools/virt-tar.pl:51
27463 #, no-wrap
27464 msgid ""
27465 " virt-tar -zx domname /home home.tar.gz\n"
27466 "\n"
27467 msgstr ""
27468
27469 # type: textblock
27470 #: ../tools/virt-tar.pl:53
27471 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27472 msgstr ""
27473
27474 # type: verbatim
27475 #: ../tools/virt-tar.pl:55
27476 #, no-wrap
27477 msgid ""
27478 " virt-tar -u domname uploadstuff.tar /tmp\n"
27479 "\n"
27480 msgstr ""
27481
27482 # type: verbatim
27483 #: ../tools/virt-tar.pl:57
27484 #, no-wrap
27485 msgid ""
27486 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27487 "\n"
27488 msgstr ""
27489
27490 # type: textblock
27491 #: ../tools/virt-tar.pl:61
27492 msgid ""
27493 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27494 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27495 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27496 msgstr ""
27497
27498 # type: textblock
27499 #: ../tools/virt-tar.pl:66
27500 msgid ""
27501 "You can use C<-x> (extract) on live virtual machines, but you might get "
27502 "inconsistent results or errors if there is filesystem activity inside the "
27503 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27504 "work, but the only way to guarantee consistent results is if the virtual "
27505 "machine is shut down."
27506 msgstr ""
27507
27508 # type: textblock
27509 #: ../tools/virt-tar.pl:74
27510 msgid ""
27511 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27512 "parts of a guest filesystem.  There are many possibilities: making backups, "
27513 "uploading data files, snooping on guest activity, fixing or customizing "
27514 "guests, etc."
27515 msgstr ""
27516
27517 # type: textblock
27518 #: ../tools/virt-tar.pl:79
27519 msgid ""
27520 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27521 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27522 "should look at the L<guestfish(1)> tool."
27523 msgstr ""
27524
27525 # type: textblock
27526 #: ../tools/virt-tar.pl:83
27527 msgid ""
27528 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27529 "its contents (recursively) from the virtual machine into a local tarball.  "
27530 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27531 "virtual machine.  You cannot use these two options together."
27532 msgstr ""
27533
27534 # type: textblock
27535 #: ../tools/virt-tar.pl:89
27536 msgid ""
27537 "In addition, you may need to use the C<-z> (gZip) option to enable "
27538 "compression.  When uploading, you have to specify C<-z> if the upload file "
27539 "is compressed because virt-tar won't detect this on its own."
27540 msgstr ""
27541
27542 # type: textblock
27543 #: ../tools/virt-tar.pl:93
27544 msgid ""
27545 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27546 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27547 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27548 "the L<libguestfs(3)> API)."
27549 msgstr ""
27550
27551 # type: =item
27552 #: ../tools/virt-tar.pl:151
27553 msgid "B<-x> | B<--extract> | B<--download>"
27554 msgstr ""
27555
27556 # type: =item
27557 #: ../tools/virt-tar.pl:153
27558 msgid "B<-u> | B<--upload>"
27559 msgstr ""
27560
27561 # type: textblock
27562 #: ../tools/virt-tar.pl:155
27563 msgid ""
27564 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27565 "local tarball."
27566 msgstr ""
27567
27568 # type: textblock
27569 #: ../tools/virt-tar.pl:158
27570 msgid ""
27571 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27572 "Please read the L</WARNING> section above before using this option."
27573 msgstr ""
27574
27575 # type: textblock
27576 #: ../tools/virt-tar.pl:162
27577 msgid "You must specify exactly one of these options."
27578 msgstr ""
27579
27580 # type: =item
27581 #: ../tools/virt-tar.pl:168
27582 msgid "B<-z> | B<--gzip>"
27583 msgstr ""
27584
27585 # type: textblock
27586 #: ../tools/virt-tar.pl:170
27587 msgid "Specify that the input or output tarball is gzip-compressed."
27588 msgstr ""
27589
27590 # type: textblock
27591 #: ../tools/virt-tar.pl:283
27592 msgid ""
27593 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27594 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
27595 "L<http://libguestfs.org/>."
27596 msgstr ""
27597
27598 # type: textblock
27599 #: ../tools/virt-make-fs.pl:37
27600 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27601 msgstr ""
27602
27603 # type: verbatim
27604 #: ../tools/virt-make-fs.pl:41
27605 #, no-wrap
27606 msgid ""
27607 " virt-make-fs [--options] input.tar output.img\n"
27608 "\n"
27609 msgstr ""
27610
27611 # type: verbatim
27612 #: ../tools/virt-make-fs.pl:43
27613 #, no-wrap
27614 msgid ""
27615 " virt-make-fs [--options] input.tar.gz output.img\n"
27616 "\n"
27617 msgstr ""
27618
27619 # type: verbatim
27620 #: ../tools/virt-make-fs.pl:45
27621 #, no-wrap
27622 msgid ""
27623 " virt-make-fs [--options] directory output.img\n"
27624 "\n"
27625 msgstr ""
27626
27627 # type: textblock
27628 #: ../tools/virt-make-fs.pl:49
27629 msgid ""
27630 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27631 "archive or some files in a directory.  It is similar to tools like "
27632 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
27633 "it can create common filesystem types like ext2/3 or NTFS, which can be "
27634 "useful if you want to attach these filesystems to existing virtual machines "
27635 "(eg. to import large amounts of read-only data to a VM)."
27636 msgstr ""
27637
27638 # type: textblock
27639 #: ../tools/virt-make-fs.pl:57
27640 msgid "Basic usage is:"
27641 msgstr ""
27642
27643 # type: verbatim
27644 #: ../tools/virt-make-fs.pl:59
27645 #, no-wrap
27646 msgid ""
27647 " virt-make-fs input output\n"
27648 "\n"
27649 msgstr ""
27650
27651 # type: textblock
27652 #: ../tools/virt-make-fs.pl:61
27653 msgid ""
27654 "where C<input> is either a directory containing files that you want to add, "
27655 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27656 "C<output> is a disk image.  The input type is detected automatically.  The "
27657 "output disk image defaults to a raw ext2 image unless you specify extra "
27658 "flags (see L</OPTIONS> below)."
27659 msgstr ""
27660
27661 # type: =head2
27662 #: ../tools/virt-make-fs.pl:67
27663 msgid "EXTRA SPACE"
27664 msgstr ""
27665
27666 # type: textblock
27667 #: ../tools/virt-make-fs.pl:69
27668 msgid ""
27669 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27670 "the files that it contains, but might have extra space.  Depending on how "
27671 "you are going to use the output, you might think this extra space is wasted "
27672 "and want to minimize it, or you might want to leave space so that more files "
27673 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27674 "but you can use the C<--size> flag to leave space in the filesystem if you "
27675 "want it."
27676 msgstr ""
27677
27678 # type: textblock
27679 #: ../tools/virt-make-fs.pl:77
27680 msgid ""
27681 "An alternative way to leave extra space but not make the output image any "
27682 "bigger is to use an alternative disk image format (instead of the default "
27683 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27684 "image format (check your hypervisor supports this before using it).  This "
27685 "allows you to choose a large C<--size> but the extra space won't actually be "
27686 "allocated in the image until you try to store something in it."
27687 msgstr ""
27688
27689 # type: textblock
27690 #: ../tools/virt-make-fs.pl:85
27691 msgid ""
27692 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27693 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
27694 "virt-make-resize to build another image from scratch."
27695 msgstr ""
27696
27697 # type: =head3
27698 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
27699 msgid "EXAMPLE"
27700 msgstr ""
27701
27702 # type: verbatim
27703 #: ../tools/virt-make-fs.pl:91
27704 #, no-wrap
27705 msgid ""
27706 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27707 "\n"
27708 msgstr ""
27709
27710 # type: =head2
27711 #: ../tools/virt-make-fs.pl:93
27712 msgid "FILESYSTEM TYPE"
27713 msgstr ""
27714
27715 # type: textblock
27716 #: ../tools/virt-make-fs.pl:95
27717 msgid ""
27718 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27719 "libguestfs supports can be used (but I<not> read-only formats like "
27720 "ISO9660).  Here are some of the more common choices:"
27721 msgstr ""
27722
27723 # type: =item
27724 #: ../tools/virt-make-fs.pl:101
27725 msgid "I<ext3>"
27726 msgstr ""
27727
27728 # type: textblock
27729 #: ../tools/virt-make-fs.pl:103
27730 msgid ""
27731 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27732 "you are not going to use the filesystem in a way that requires the journal, "
27733 "then this is just wasted overhead."
27734 msgstr ""
27735
27736 # type: =item
27737 #: ../tools/virt-make-fs.pl:107
27738 msgid "I<ntfs> or I<vfat>"
27739 msgstr ""
27740
27741 # type: textblock
27742 #: ../tools/virt-make-fs.pl:109
27743 msgid "Useful if exporting data to a Windows guest."
27744 msgstr ""
27745
27746 # type: textblock
27747 #: ../tools/virt-make-fs.pl:111
27748 msgid ""
27749 "I<Note for vfat>: The tar archive or local directory must only contain files "
27750 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27751 "program running within libguestfs is unable to change the ownership of "
27752 "non-root files, since vfat itself does not support this."
27753 msgstr ""
27754
27755 # type: =item
27756 #: ../tools/virt-make-fs.pl:116
27757 msgid "I<minix>"
27758 msgstr ""
27759
27760 # type: textblock
27761 #: ../tools/virt-make-fs.pl:118
27762 msgid ""
27763 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27764 "total filesystem size."
27765 msgstr ""
27766
27767 # type: verbatim
27768 #: ../tools/virt-make-fs.pl:125
27769 #, no-wrap
27770 msgid ""
27771 " virt-make-fs --type=minix input minixfs.img\n"
27772 "\n"
27773 msgstr ""
27774
27775 # type: =head2
27776 #: ../tools/virt-make-fs.pl:127
27777 msgid "TO PARTITION OR NOT TO PARTITION"
27778 msgstr ""
27779
27780 # type: textblock
27781 #: ../tools/virt-make-fs.pl:129
27782 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27783 msgstr ""
27784
27785 # type: textblock
27786 #: ../tools/virt-make-fs.pl:131
27787 msgid ""
27788 "Adding a partition can make the disk image more compatible with certain "
27789 "virtualized operating systems which don't expect to see a filesystem "
27790 "directly located on a block device (Linux doesn't care and will happily "
27791 "handle both types)."
27792 msgstr ""
27793
27794 # type: textblock
27795 #: ../tools/virt-make-fs.pl:136
27796 msgid ""
27797 "On the other hand, if you have a partition table then the output image is no "
27798 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27799 "directly on a partitioned disk image.  (However libguestfs tools such as "
27800 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27801 msgstr ""
27802
27803 # type: textblock
27804 #: ../tools/virt-make-fs.pl:144
27805 msgid "Add an MBR partition:"
27806 msgstr ""
27807
27808 # type: verbatim
27809 #: ../tools/virt-make-fs.pl:146
27810 #, no-wrap
27811 msgid ""
27812 " virt-make-fs --partition -- input disk.img\n"
27813 "\n"
27814 msgstr ""
27815
27816 # type: textblock
27817 #: ../tools/virt-make-fs.pl:148
27818 msgid ""
27819 "If the output disk image could be terabyte-sized or larger, it's better to "
27820 "use an EFI/GPT-compatible partition table:"
27821 msgstr ""
27822
27823 # type: verbatim
27824 #: ../tools/virt-make-fs.pl:151
27825 #, no-wrap
27826 msgid ""
27827 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27828 "\n"
27829 msgstr ""
27830
27831 # type: textblock
27832 #: ../tools/virt-make-fs.pl:179
27833 msgid "Enable debugging information."
27834 msgstr ""
27835
27836 # type: =item
27837 #: ../tools/virt-make-fs.pl:185
27838 msgid "B<--size=E<lt>NE<gt>>"
27839 msgstr ""
27840
27841 # type: =item
27842 #: ../tools/virt-make-fs.pl:187
27843 msgid "B<--size=+E<lt>NE<gt>>"
27844 msgstr ""
27845
27846 # type: =item
27847 #: ../tools/virt-make-fs.pl:189
27848 msgid "B<-s E<lt>NE<gt>>"
27849 msgstr ""
27850
27851 # type: =item
27852 #: ../tools/virt-make-fs.pl:191
27853 msgid "B<-s +E<lt>NE<gt>>"
27854 msgstr ""
27855
27856 # type: textblock
27857 #: ../tools/virt-make-fs.pl:193
27858 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27859 msgstr ""
27860
27861 # type: textblock
27862 #: ../tools/virt-make-fs.pl:196
27863 msgid ""
27864 "If this option is I<not> given, then the output image will be just large "
27865 "enough to contain all the files, with not much wasted space."
27866 msgstr ""
27867
27868 # type: textblock
27869 #: ../tools/virt-make-fs.pl:199
27870 msgid ""
27871 "To choose a fixed size output disk, specify an absolute number followed by "
27872 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27873 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27874 "files, else you will get an error."
27875 msgstr ""
27876
27877 # type: textblock
27878 #: ../tools/virt-make-fs.pl:204
27879 msgid ""
27880 "To leave extra space, specify C<+> (plus sign) and a number followed by "
27881 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27882 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27883 "the input files, and (approximately) an extra 200 MB free space."
27884 msgstr ""
27885
27886 # type: textblock
27887 #: ../tools/virt-make-fs.pl:210
27888 msgid ""
27889 "Note that virt-make-fs estimates free space, and therefore will not produce "
27890 "filesystems containing precisely the free space requested.  (It is much more "
27891 "expensive and time-consuming to produce a filesystem which has precisely the "
27892 "desired free space)."
27893 msgstr ""
27894
27895 # type: =item
27896 #: ../tools/virt-make-fs.pl:219
27897 msgid "B<--format=E<lt>fmtE<gt>>"
27898 msgstr ""
27899
27900 # type: =item
27901 #: ../tools/virt-make-fs.pl:221
27902 msgid "B<-F E<lt>fmtE<gt>>"
27903 msgstr ""
27904
27905 # type: textblock
27906 #: ../tools/virt-make-fs.pl:223
27907 msgid "Choose the output disk image format."
27908 msgstr ""
27909
27910 # type: textblock
27911 #: ../tools/virt-make-fs.pl:225
27912 msgid "The default is C<raw> (raw disk image)."
27913 msgstr ""
27914
27915 # type: textblock
27916 #: ../tools/virt-make-fs.pl:227
27917 msgid ""
27918 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
27919 "that would really make sense here is C<qcow2>."
27920 msgstr ""
27921
27922 # type: =item
27923 #: ../tools/virt-make-fs.pl:234
27924 msgid "B<--type=E<lt>fsE<gt>>"
27925 msgstr ""
27926
27927 # type: =item
27928 #: ../tools/virt-make-fs.pl:236
27929 msgid "B<-t E<lt>fsE<gt>>"
27930 msgstr ""
27931
27932 # type: textblock
27933 #: ../tools/virt-make-fs.pl:238
27934 msgid "Choose the output filesystem type."
27935 msgstr ""
27936
27937 # type: textblock
27938 #: ../tools/virt-make-fs.pl:240
27939 msgid "The default is C<ext2>."
27940 msgstr ""
27941
27942 # type: textblock
27943 #: ../tools/virt-make-fs.pl:242
27944 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
27945 msgstr ""
27946
27947 # type: =item
27948 #: ../tools/virt-make-fs.pl:249
27949 msgid "B<--partition>"
27950 msgstr ""
27951
27952 # type: =item
27953 #: ../tools/virt-make-fs.pl:251
27954 msgid "B<--partition=E<lt>parttypeE<gt>>"
27955 msgstr ""
27956
27957 # type: textblock
27958 #: ../tools/virt-make-fs.pl:253
27959 msgid ""
27960 "If specified, this flag adds an MBR partition table to the output disk "
27961 "image."
27962 msgstr ""
27963
27964 # type: textblock
27965 #: ../tools/virt-make-fs.pl:256
27966 msgid ""
27967 "You can change the partition table type, eg. C<--partition=gpt> for large "
27968 "disks."
27969 msgstr ""
27970
27971 # type: textblock
27972 #: ../tools/virt-make-fs.pl:259
27973 msgid ""
27974 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
27975 "might consider the next parameter to be the partition type.  For example:"
27976 msgstr ""
27977
27978 # type: verbatim
27979 #: ../tools/virt-make-fs.pl:263
27980 #, no-wrap
27981 msgid ""
27982 " virt-make-fs --partition input.tar ...\n"
27983 "\n"
27984 msgstr ""
27985
27986 # type: textblock
27987 #: ../tools/virt-make-fs.pl:265
27988 msgid ""
27989 "would cause virt-make-fs to think you wanted to use a partition type of "
27990 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
27991 "dash) between options and the input file argument:"
27992 msgstr ""
27993
27994 # type: verbatim
27995 #: ../tools/virt-make-fs.pl:269
27996 #, no-wrap
27997 msgid ""
27998 " virt-make-fs --partition -- input.tar ...\n"
27999 "\n"
28000 msgstr ""
28001
28002 # type: textblock
28003 #: ../tools/virt-make-fs.pl:536
28004 msgid ""
28005 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28006 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28007 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28008 msgstr ""
28009
28010 # type: verbatim
28011 #: ../tools/virt-make-fs.pl:553
28012 #, no-wrap
28013 msgid ""
28014 " export LIBGUESTFS_DEBUG=1\n"
28015 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28016 "\n"
28017 msgstr ""
28018
28019 # type: textblock
28020 #: ../tools/virt-make-fs.pl:556
28021 msgid ""
28022 "Attach /tmp/virt-make-fs.log to a new bug report at "
28023 "L<https://bugzilla.redhat.com/>"
28024 msgstr ""
28025
28026 # type: textblock
28027 #: ../tools/virt-list-partitions.pl:32
28028 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28029 msgstr ""
28030
28031 # type: verbatim
28032 #: ../tools/virt-list-partitions.pl:36
28033 #, no-wrap
28034 msgid ""
28035 " virt-list-partitions [--options] domname\n"
28036 "\n"
28037 msgstr ""
28038
28039 # type: verbatim
28040 #: ../tools/virt-list-partitions.pl:38
28041 #, no-wrap
28042 msgid ""
28043 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28044 "\n"
28045 msgstr ""
28046
28047 # type: textblock
28048 #: ../tools/virt-list-partitions.pl:45
28049 msgid ""
28050 "C<virt-list-partitions> is a command line tool to list the partitions that "
28051 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28052 "first step to using L<virt-resize(1)>."
28053 msgstr ""
28054
28055 # type: textblock
28056 #: ../tools/virt-list-partitions.pl:50
28057 msgid ""
28058 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28059 "functionality.  For more complex cases you should look at the "
28060 "L<guestfish(1)> tool."
28061 msgstr ""
28062
28063 # type: =item
28064 #: ../tools/virt-list-partitions.pl:107
28065 msgid "B<-h> | B<--human-readable>"
28066 msgstr ""
28067
28068 # type: textblock
28069 #: ../tools/virt-list-partitions.pl:109
28070 msgid "Show sizes in human-readable form (eg. \"1G\")."
28071 msgstr ""
28072
28073 # type: textblock
28074 #: ../tools/virt-list-partitions.pl:117
28075 msgid ""
28076 "With this option, C<virt-list-partitions> displays the type and size of each "
28077 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28078 msgstr ""
28079
28080 # type: =item
28081 #: ../tools/virt-list-partitions.pl:124
28082 msgid "B<-t> | B<--total>"
28083 msgstr ""
28084
28085 # type: textblock
28086 #: ../tools/virt-list-partitions.pl:126
28087 msgid "Display the total size of each block device (as a separate row or rows)."
28088 msgstr ""
28089
28090 # type: textblock
28091 #: ../tools/virt-list-partitions.pl:259
28092 msgid ""
28093 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
28094 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
28095 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28096 msgstr ""