Version 1.7.19.
[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.19\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-12-05 10: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:4168 ../src/guestfs-actions.pod:4239 ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4308 ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4337 ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4365 ../src/guestfs-actions.pod:4380 ../src/guestfs-actions.pod:4415 ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4464 ../src/guestfs-actions.pod:4481 ../src/guestfs-actions.pod:4530 ../src/guestfs-actions.pod:4567 ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4609 ../src/guestfs-actions.pod:4626 ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:4778 ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4857 ../src/guestfs-actions.pod:4875 ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4973 ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5003 ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5339 ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5365 ../src/guestfs-actions.pod:5377 ../src/guestfs-actions.pod:5391 ../src/guestfs-actions.pod:5407 ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5507 ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5601 ../src/guestfs-actions.pod:5629 ../src/guestfs-actions.pod:5653 ../src/guestfs-actions.pod:5672 ../src/guestfs-actions.pod:5696 ../src/guestfs-actions.pod:5711 ../src/guestfs-actions.pod:5726 ../src/guestfs-actions.pod:5745 ../src/guestfs-actions.pod:5782 ../src/guestfs-actions.pod:5805 ../src/guestfs-actions.pod:5831 ../src/guestfs-actions.pod:5939 ../src/guestfs-actions.pod:6060 ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6085 ../src/guestfs-actions.pod:6098 ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6146 ../src/guestfs-actions.pod:6159 ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6233 ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6266 ../src/guestfs-actions.pod:6282 ../src/guestfs-actions.pod:6299 ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6368 ../src/guestfs-actions.pod:6382 ../src/guestfs-actions.pod:6423 ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6454 ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6524 ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6730 ../src/guestfs-actions.pod:6743 ../src/guestfs-actions.pod:6788 ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6875 ../src/guestfs-actions.pod:6901 ../src/guestfs-actions.pod:6967 ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7015
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:4129 ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:7078 ../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:2778 ../fish/guestfish-actions.pod:4580 ../fish/guestfish-actions.pod:4677
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:4417 ../src/guestfs-actions.pod:5486 ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5713 ../src/guestfs-actions.pod:6176 ../src/guestfs-actions.pod:6301 ../src/guestfs-actions.pod:6823
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 ../src/guestfs-actions.pod:4143
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:4553 ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:5087 ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6409 ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6860
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 ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4192
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 ../src/guestfs-actions.pod:4153 ../fish/guestfish-actions.pod:105 ../fish/guestfish-actions.pod:2789
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:5164
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:4699 ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5852 ../src/guestfs-actions.pod:5868 ../src/guestfs-actions.pod:5885 ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:6620 ../src/guestfs-actions.pod:6800 ../src/guestfs-actions.pod:7072
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:4514 ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5160 ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:6041 ../src/guestfs-actions.pod:6187 ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6693 ../src/guestfs-actions.pod:6713 ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6925 ../src/guestfs-actions.pod:6944 ../src/guestfs-actions.pod:7029 ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7113
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:4518 ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5367 ../src/guestfs-actions.pod:5379 ../src/guestfs-actions.pod:5787 ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:6913
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:4663
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:6605
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:5150 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3424
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:4932 ../src/guestfs-actions.pod:4958 ../src/guestfs-actions.pod:5089 ../src/guestfs-actions.pod:5115 ../src/guestfs-actions.pod:5139 ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6045 ../src/guestfs-actions.pod:6191 ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6877 ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:7033 ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7098 ../src/guestfs-actions.pod:7117 ../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:3294 ../fish/guestfish-actions.pod:3309 ../fish/guestfish-actions.pod:3385 ../fish/guestfish-actions.pod:3402 ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:4000 ../fish/guestfish-actions.pod:4046 ../fish/guestfish-actions.pod:4131 ../fish/guestfish-actions.pod:4146 ../fish/guestfish-actions.pod:4556 ../fish/guestfish-actions.pod:4574 ../fish/guestfish-actions.pod:4591 ../fish/guestfish-actions.pod:4601 ../fish/guestfish-actions.pod:4649 ../fish/guestfish-actions.pod:4659 ../fish/guestfish-actions.pod:4688 ../fish/guestfish-actions.pod:4698
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:5038 ../src/guestfs-actions.pod:5052 ../src/guestfs-actions.pod:6764 ../src/guestfs-actions.pod:6778
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:6461
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:4569 ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:4859 ../src/guestfs-actions.pod:6370 ../src/guestfs-actions.pod:6384 ../src/guestfs-actions.pod:6790
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:4268 ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306 ../fish/guestfish-actions.pod:671 ../fish/guestfish-actions.pod:2753 ../fish/guestfish-actions.pod:2869 ../fish/guestfish-actions.pod:2879 ../fish/guestfish-actions.pod:2889
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:6456 ../src/guestfs-actions.pod:6490 ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6988
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:5065 ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:6803
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:4532 ../src/guestfs-actions.pod:4909
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:4432 ../src/guestfs-actions.pod:6194 ../src/guestfs-actions.pod:6218 ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6862
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:6450 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4304
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:6495
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:5698
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:4367 ../src/guestfs-actions.pod:5243 ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:6062 ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6100 ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6161 ../src/guestfs-actions.pod:6932 ../src/guestfs-actions.pod:6951 ../src/guestfs-actions.pod:7036 ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7120
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:5327
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:6974
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:5005 ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5836 ../src/guestfs-actions.pod:5855 ../src/guestfs-actions.pod:5871 ../src/guestfs-actions.pod:5888 ../src/guestfs-actions.pod:6645 ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:7017
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:5509
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:5527 ../src/guestfs-actions.pod:5546
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:5562 ../src/guestfs-actions.pod:5669 ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388 ../fish/guestfish-actions.pod:3711 ../fish/guestfish-actions.pod:3798
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:4272 ../src/guestfs-actions.pod:4291 ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4322 ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:5230 ../src/guestfs-actions.pod:5567 ../src/guestfs-actions.pod:5810 ../src/guestfs-actions.pod:6411
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:5586
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:5631
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:4935 ../src/guestfs-actions.pod:5278 ../src/guestfs-actions.pod:5655 ../src/guestfs-actions.pod:6314 ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6526
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:5674 ../src/guestfs-actions.pod:5728
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:5308 ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:7082
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:5912 ../src/guestfs-actions.pod:5929
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:6209 ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4144
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:5993 ../src/guestfs-actions.pod:6048
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:4928 ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:5135
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:4494 ../src/guestfs-actions.pod:6350
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:4895
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:5949 ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3979
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:5953
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:5957 ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:6356
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:4646 ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5784 ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5833 ../src/guestfs-actions.pod:6993 ../fish/guestfish-actions.pod:2433 ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2530 ../fish/guestfish-actions.pod:3091 ../fish/guestfish-actions.pod:3598 ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3894 ../fish/guestfish-actions.pod:3909 ../fish/guestfish-actions.pod:4624
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:4992 ../src/guestfs-actions.pod:6732
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:6745
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:4133 ../src/guestfs-actions.pod:4382
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 ../src/guestfs-actions.pod:4163 ../fish/guestfish-actions.pod:2772 ../fish/guestfish-actions.pod:2799
10973 msgid ""
10974 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10975 "cluster size."
10976 msgstr ""
10977
10978 # type: textblock
10979 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2775
10980 msgid ""
10981 "This function is deprecated.  In new code, use the C<mkfs_opts> call "
10982 "instead."
10983 msgstr ""
10984
10985 # type: =head2
10986 #: ../src/guestfs-actions.pod:4135
10987 msgid "guestfs_mkfs_opts"
10988 msgstr ""
10989
10990 # type: verbatim
10991 #: ../src/guestfs-actions.pod:4137
10992 #, no-wrap
10993 msgid ""
10994 " int\n"
10995 " guestfs_mkfs_opts (guestfs_h *g,\n"
10996 "                    const char *fstype,\n"
10997 "                    const char *device,\n"
10998 "                    ...);\n"
10999 "\n"
11000 msgstr ""
11001
11002 # type: verbatim
11003 #: ../src/guestfs-actions.pod:4148
11004 #, no-wrap
11005 msgid ""
11006 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
11007 "\n"
11008 msgstr ""
11009
11010 # type: textblock
11011 #: ../src/guestfs-actions.pod:4150 ../fish/guestfish-actions.pod:2786
11012 msgid ""
11013 "This function creates a filesystem on C<device>.  The filesystem type is "
11014 "C<fstype>, for example C<ext3>."
11015 msgstr ""
11016
11017 # type: =item
11018 #: ../src/guestfs-actions.pod:4157 ../fish/guestfish-actions.pod:2793
11019 msgid "C<blocksize>"
11020 msgstr ""
11021
11022 # type: textblock
11023 #: ../src/guestfs-actions.pod:4159 ../fish/guestfish-actions.pod:2795
11024 msgid ""
11025 "The filesystem block size.  Supported block sizes depend on the filesystem "
11026 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11027 "filesystems."
11028 msgstr ""
11029
11030 # type: =head2
11031 #: ../src/guestfs-actions.pod:4170
11032 msgid "guestfs_mkfs_opts_va"
11033 msgstr ""
11034
11035 # type: verbatim
11036 #: ../src/guestfs-actions.pod:4172
11037 #, no-wrap
11038 msgid ""
11039 " int\n"
11040 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
11041 "                       const char *fstype,\n"
11042 "                       const char *device,\n"
11043 "                       va_list args);\n"
11044 "\n"
11045 msgstr ""
11046
11047 # type: textblock
11048 #: ../src/guestfs-actions.pod:4178
11049 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
11050 msgstr ""
11051
11052 # type: =head2
11053 #: ../src/guestfs-actions.pod:4182
11054 msgid "guestfs_mkfs_opts_argv"
11055 msgstr ""
11056
11057 # type: verbatim
11058 #: ../src/guestfs-actions.pod:4184
11059 #, no-wrap
11060 msgid ""
11061 " int\n"
11062 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
11063 "                         const char *fstype,\n"
11064 "                         const char *device,\n"
11065 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
11066 "\n"
11067 msgstr ""
11068
11069 # type: textblock
11070 #: ../src/guestfs-actions.pod:4190
11071 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
11072 msgstr ""
11073
11074 # type: =head2
11075 #: ../src/guestfs-actions.pod:4194
11076 msgid "guestfs_mkmountpoint"
11077 msgstr ""
11078
11079 # type: verbatim
11080 #: ../src/guestfs-actions.pod:4196
11081 #, no-wrap
11082 msgid ""
11083 " int\n"
11084 " guestfs_mkmountpoint (guestfs_h *g,\n"
11085 "                       const char *exemptpath);\n"
11086 "\n"
11087 msgstr ""
11088
11089 # type: textblock
11090 #: ../src/guestfs-actions.pod:4200
11091 msgid ""
11092 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11093 "that can be used to create extra mountpoints before mounting the first "
11094 "filesystem."
11095 msgstr ""
11096
11097 # type: textblock
11098 #: ../src/guestfs-actions.pod:4204 ../fish/guestfish-actions.pod:2814
11099 msgid ""
11100 "These calls are I<only> necessary in some very limited circumstances, mainly "
11101 "the case where you want to mount a mix of unrelated and/or read-only "
11102 "filesystems together."
11103 msgstr ""
11104
11105 # type: textblock
11106 #: ../src/guestfs-actions.pod:4208 ../fish/guestfish-actions.pod:2818
11107 msgid ""
11108 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11109 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11110 "inside that.  You can unpack this as follows in guestfish:"
11111 msgstr ""
11112
11113 # type: verbatim
11114 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2823
11115 #, no-wrap
11116 msgid ""
11117 " add-ro Fedora-11-i686-Live.iso\n"
11118 " run\n"
11119 " mkmountpoint /cd\n"
11120 " mkmountpoint /sqsh\n"
11121 " mkmountpoint /ext3fs\n"
11122 " mount /dev/sda /cd\n"
11123 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11124 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11125 "\n"
11126 msgstr ""
11127
11128 # type: textblock
11129 #: ../src/guestfs-actions.pod:4222 ../fish/guestfish-actions.pod:2832
11130 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11131 msgstr ""
11132
11133 # type: textblock
11134 #: ../src/guestfs-actions.pod:4224
11135 msgid ""
11136 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11137 "may get unexpected errors if you try to mix these calls.  It is safest to "
11138 "manually unmount filesystems and remove mountpoints after use."
11139 msgstr ""
11140
11141 # type: textblock
11142 #: ../src/guestfs-actions.pod:4228
11143 msgid ""
11144 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11145 "first, so for this to work for manual mountpoints, you must ensure that the "
11146 "innermost mountpoints have the longest pathnames, as in the example code "
11147 "above."
11148 msgstr ""
11149
11150 # type: textblock
11151 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2843
11152 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11153 msgstr ""
11154
11155 # type: textblock
11156 #: ../src/guestfs-actions.pod:4235
11157 msgid ""
11158 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11159 "means that C<guestfs_umount_all> is called when the handle is closed which "
11160 "can also trigger these issues."
11161 msgstr ""
11162
11163 # type: textblock
11164 #: ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:5393
11165 msgid "(Added in 1.0.62)"
11166 msgstr ""
11167
11168 # type: =head2
11169 #: ../src/guestfs-actions.pod:4243
11170 msgid "guestfs_mknod"
11171 msgstr ""
11172
11173 # type: verbatim
11174 #: ../src/guestfs-actions.pod:4245
11175 #, no-wrap
11176 msgid ""
11177 " int\n"
11178 " guestfs_mknod (guestfs_h *g,\n"
11179 "                int mode,\n"
11180 "                int devmajor,\n"
11181 "                int devminor,\n"
11182 "                const char *path);\n"
11183 "\n"
11184 msgstr ""
11185
11186 # type: textblock
11187 #: ../src/guestfs-actions.pod:4252 ../fish/guestfish-actions.pod:2853
11188 msgid ""
11189 "This call creates block or character special devices, or named pipes "
11190 "(FIFOs)."
11191 msgstr ""
11192
11193 # type: textblock
11194 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2856
11195 msgid ""
11196 "The C<mode> parameter should be the mode, using the standard constants.  "
11197 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11198 "used when creating block and character special devices."
11199 msgstr ""
11200
11201 # type: textblock
11202 #: ../src/guestfs-actions.pod:4260
11203 msgid ""
11204 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11205 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11206 "regular file).  These constants are available in the standard Linux header "
11207 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11208 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11209 "the appropriate constant for you."
11210 msgstr ""
11211
11212 # type: =head2
11213 #: ../src/guestfs-actions.pod:4274
11214 msgid "guestfs_mknod_b"
11215 msgstr ""
11216
11217 # type: verbatim
11218 #: ../src/guestfs-actions.pod:4276
11219 #, no-wrap
11220 msgid ""
11221 " int\n"
11222 " guestfs_mknod_b (guestfs_h *g,\n"
11223 "                  int mode,\n"
11224 "                  int devmajor,\n"
11225 "                  int devminor,\n"
11226 "                  const char *path);\n"
11227 "\n"
11228 msgstr ""
11229
11230 # type: textblock
11231 #: ../src/guestfs-actions.pod:4283
11232 msgid ""
11233 "This call creates a block device node called C<path> with mode C<mode> and "
11234 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11235 "wrapper around C<guestfs_mknod>."
11236 msgstr ""
11237
11238 # type: =head2
11239 #: ../src/guestfs-actions.pod:4293
11240 msgid "guestfs_mknod_c"
11241 msgstr ""
11242
11243 # type: verbatim
11244 #: ../src/guestfs-actions.pod:4295
11245 #, no-wrap
11246 msgid ""
11247 " int\n"
11248 " guestfs_mknod_c (guestfs_h *g,\n"
11249 "                  int mode,\n"
11250 "                  int devmajor,\n"
11251 "                  int devminor,\n"
11252 "                  const char *path);\n"
11253 "\n"
11254 msgstr ""
11255
11256 # type: textblock
11257 #: ../src/guestfs-actions.pod:4302
11258 msgid ""
11259 "This call creates a char device node called C<path> with mode C<mode> and "
11260 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11261 "wrapper around C<guestfs_mknod>."
11262 msgstr ""
11263
11264 # type: =head2
11265 #: ../src/guestfs-actions.pod:4312
11266 msgid "guestfs_mkswap"
11267 msgstr ""
11268
11269 # type: verbatim
11270 #: ../src/guestfs-actions.pod:4314
11271 #, no-wrap
11272 msgid ""
11273 " int\n"
11274 " guestfs_mkswap (guestfs_h *g,\n"
11275 "                 const char *device);\n"
11276 "\n"
11277 msgstr ""
11278
11279 # type: textblock
11280 #: ../src/guestfs-actions.pod:4318 ../fish/guestfish-actions.pod:2895
11281 msgid "Create a swap partition on C<device>."
11282 msgstr ""
11283
11284 # type: =head2
11285 #: ../src/guestfs-actions.pod:4324
11286 msgid "guestfs_mkswap_L"
11287 msgstr ""
11288
11289 # type: verbatim
11290 #: ../src/guestfs-actions.pod:4326
11291 #, no-wrap
11292 msgid ""
11293 " int\n"
11294 " guestfs_mkswap_L (guestfs_h *g,\n"
11295 "                   const char *label,\n"
11296 "                   const char *device);\n"
11297 "\n"
11298 msgstr ""
11299
11300 # type: textblock
11301 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2901
11302 msgid "Create a swap partition on C<device> with label C<label>."
11303 msgstr ""
11304
11305 # type: textblock
11306 #: ../src/guestfs-actions.pod:4333 ../fish/guestfish-actions.pod:2903
11307 msgid ""
11308 "Note that you cannot attach a swap label to a block device "
11309 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11310 "the kernel or swap tools."
11311 msgstr ""
11312
11313 # type: =head2
11314 #: ../src/guestfs-actions.pod:4341
11315 msgid "guestfs_mkswap_U"
11316 msgstr ""
11317
11318 # type: verbatim
11319 #: ../src/guestfs-actions.pod:4343
11320 #, no-wrap
11321 msgid ""
11322 " int\n"
11323 " guestfs_mkswap_U (guestfs_h *g,\n"
11324 "                   const char *uuid,\n"
11325 "                   const char *device);\n"
11326 "\n"
11327 msgstr ""
11328
11329 # type: textblock
11330 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2911
11331 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11332 msgstr ""
11333
11334 # type: =head2
11335 #: ../src/guestfs-actions.pod:4354
11336 msgid "guestfs_mkswap_file"
11337 msgstr ""
11338
11339 # type: verbatim
11340 #: ../src/guestfs-actions.pod:4356
11341 #, no-wrap
11342 msgid ""
11343 " int\n"
11344 " guestfs_mkswap_file (guestfs_h *g,\n"
11345 "                      const char *path);\n"
11346 "\n"
11347 msgstr ""
11348
11349 # type: textblock
11350 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2917
11351 msgid "Create a swap file."
11352 msgstr ""
11353
11354 # type: textblock
11355 #: ../src/guestfs-actions.pod:4362
11356 msgid ""
11357 "This command just writes a swap file signature to an existing file.  To "
11358 "create the file itself, use something like C<guestfs_fallocate>."
11359 msgstr ""
11360
11361 # type: =head2
11362 #: ../src/guestfs-actions.pod:4369
11363 msgid "guestfs_modprobe"
11364 msgstr ""
11365
11366 # type: verbatim
11367 #: ../src/guestfs-actions.pod:4371
11368 #, no-wrap
11369 msgid ""
11370 " int\n"
11371 " guestfs_modprobe (guestfs_h *g,\n"
11372 "                   const char *modulename);\n"
11373 "\n"
11374 msgstr ""
11375
11376 # type: textblock
11377 #: ../src/guestfs-actions.pod:4375 ../fish/guestfish-actions.pod:2926
11378 msgid "This loads a kernel module in the appliance."
11379 msgstr ""
11380
11381 # type: textblock
11382 #: ../src/guestfs-actions.pod:4377 ../fish/guestfish-actions.pod:2928
11383 msgid ""
11384 "The kernel module must have been whitelisted when libguestfs was built (see "
11385 "C<appliance/kmod.whitelist.in> in the source)."
11386 msgstr ""
11387
11388 # type: =head2
11389 #: ../src/guestfs-actions.pod:4384
11390 msgid "guestfs_mount"
11391 msgstr ""
11392
11393 # type: verbatim
11394 #: ../src/guestfs-actions.pod:4386
11395 #, no-wrap
11396 msgid ""
11397 " int\n"
11398 " guestfs_mount (guestfs_h *g,\n"
11399 "                const char *device,\n"
11400 "                const char *mountpoint);\n"
11401 "\n"
11402 msgstr ""
11403
11404 # type: textblock
11405 #: ../src/guestfs-actions.pod:4391 ../fish/guestfish-actions.pod:2935
11406 msgid ""
11407 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11408 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11409 "those block devices contain partitions, they will have the usual names "
11410 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11411 msgstr ""
11412
11413 # type: textblock
11414 #: ../src/guestfs-actions.pod:4397 ../fish/guestfish-actions.pod:2941
11415 msgid ""
11416 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11417 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11418 "mounted on directories which already exist."
11419 msgstr ""
11420
11421 # type: textblock
11422 #: ../src/guestfs-actions.pod:4402 ../fish/guestfish-actions.pod:2946
11423 msgid ""
11424 "The mounted filesystem is writable, if we have sufficient permissions on the "
11425 "underlying device."
11426 msgstr ""
11427
11428 # type: textblock
11429 #: ../src/guestfs-actions.pod:4405
11430 msgid ""
11431 "B<Important note:> When you use this call, the filesystem options C<sync> "
11432 "and C<noatime> are set implicitly.  This was originally done because we "
11433 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11434 "very large negative performance impact and negligible effect on "
11435 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11436 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11437 "(use an empty string for the first parameter if you don't want any options)."
11438 msgstr ""
11439
11440 # type: =head2
11441 #: ../src/guestfs-actions.pod:4419
11442 msgid "guestfs_mount_loop"
11443 msgstr ""
11444
11445 # type: verbatim
11446 #: ../src/guestfs-actions.pod:4421
11447 #, no-wrap
11448 msgid ""
11449 " int\n"
11450 " guestfs_mount_loop (guestfs_h *g,\n"
11451 "                     const char *file,\n"
11452 "                     const char *mountpoint);\n"
11453 "\n"
11454 msgstr ""
11455
11456 # type: textblock
11457 #: ../src/guestfs-actions.pod:4426 ../fish/guestfish-actions.pod:2963
11458 msgid ""
11459 "This command lets you mount C<file> (a filesystem image in a file) on a "
11460 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11461 "mountpoint>."
11462 msgstr ""
11463
11464 # type: =head2
11465 #: ../src/guestfs-actions.pod:4434
11466 msgid "guestfs_mount_options"
11467 msgstr ""
11468
11469 # type: verbatim
11470 #: ../src/guestfs-actions.pod:4436
11471 #, no-wrap
11472 msgid ""
11473 " int\n"
11474 " guestfs_mount_options (guestfs_h *g,\n"
11475 "                        const char *options,\n"
11476 "                        const char *device,\n"
11477 "                        const char *mountpoint);\n"
11478 "\n"
11479 msgstr ""
11480
11481 # type: textblock
11482 #: ../src/guestfs-actions.pod:4442
11483 msgid ""
11484 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11485 "the mount options as for the L<mount(8)> I<-o> flag."
11486 msgstr ""
11487
11488 # type: textblock
11489 #: ../src/guestfs-actions.pod:4446 ../fish/guestfish-actions.pod:2975
11490 msgid ""
11491 "If the C<options> parameter is an empty string, then no options are passed "
11492 "(all options default to whatever the filesystem uses)."
11493 msgstr ""
11494
11495 # type: textblock
11496 #: ../src/guestfs-actions.pod:4452 ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4483
11497 msgid "(Added in 1.0.10)"
11498 msgstr ""
11499
11500 # type: =head2
11501 #: ../src/guestfs-actions.pod:4454
11502 msgid "guestfs_mount_ro"
11503 msgstr ""
11504
11505 # type: verbatim
11506 #: ../src/guestfs-actions.pod:4456
11507 #, no-wrap
11508 msgid ""
11509 " int\n"
11510 " guestfs_mount_ro (guestfs_h *g,\n"
11511 "                   const char *device,\n"
11512 "                   const char *mountpoint);\n"
11513 "\n"
11514 msgstr ""
11515
11516 # type: textblock
11517 #: ../src/guestfs-actions.pod:4461
11518 msgid ""
11519 "This is the same as the C<guestfs_mount> command, but it mounts the "
11520 "filesystem with the read-only (I<-o ro>) flag."
11521 msgstr ""
11522
11523 # type: =head2
11524 #: ../src/guestfs-actions.pod:4468
11525 msgid "guestfs_mount_vfs"
11526 msgstr ""
11527
11528 # type: verbatim
11529 #: ../src/guestfs-actions.pod:4470
11530 #, no-wrap
11531 msgid ""
11532 " int\n"
11533 " guestfs_mount_vfs (guestfs_h *g,\n"
11534 "                    const char *options,\n"
11535 "                    const char *vfstype,\n"
11536 "                    const char *device,\n"
11537 "                    const char *mountpoint);\n"
11538 "\n"
11539 msgstr ""
11540
11541 # type: textblock
11542 #: ../src/guestfs-actions.pod:4477
11543 msgid ""
11544 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11545 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
11546 "I<-t> flags."
11547 msgstr ""
11548
11549 # type: =head2
11550 #: ../src/guestfs-actions.pod:4485
11551 msgid "guestfs_mountpoints"
11552 msgstr ""
11553
11554 # type: verbatim
11555 #: ../src/guestfs-actions.pod:4487
11556 #, no-wrap
11557 msgid ""
11558 " char **\n"
11559 " guestfs_mountpoints (guestfs_h *g);\n"
11560 "\n"
11561 msgstr ""
11562
11563 # type: textblock
11564 #: ../src/guestfs-actions.pod:4490
11565 msgid ""
11566 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11567 "devices.  This one returns a hash table (map) of device name to directory "
11568 "where the device is mounted."
11569 msgstr ""
11570
11571 # type: =head2
11572 #: ../src/guestfs-actions.pod:4502
11573 msgid "guestfs_mounts"
11574 msgstr ""
11575
11576 # type: verbatim
11577 #: ../src/guestfs-actions.pod:4504
11578 #, no-wrap
11579 msgid ""
11580 " char **\n"
11581 " guestfs_mounts (guestfs_h *g);\n"
11582 "\n"
11583 msgstr ""
11584
11585 # type: textblock
11586 #: ../src/guestfs-actions.pod:4507 ../fish/guestfish-actions.pod:3006
11587 msgid ""
11588 "This returns the list of currently mounted filesystems.  It returns the list "
11589 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11590 msgstr ""
11591
11592 # type: textblock
11593 #: ../src/guestfs-actions.pod:4510 ../fish/guestfish-actions.pod:3009
11594 msgid "Some internal mounts are not shown."
11595 msgstr ""
11596
11597 # type: textblock
11598 #: ../src/guestfs-actions.pod:4512
11599 msgid "See also: C<guestfs_mountpoints>"
11600 msgstr ""
11601
11602 # type: =head2
11603 #: ../src/guestfs-actions.pod:4520
11604 msgid "guestfs_mv"
11605 msgstr ""
11606
11607 # type: verbatim
11608 #: ../src/guestfs-actions.pod:4522
11609 #, no-wrap
11610 msgid ""
11611 " int\n"
11612 " guestfs_mv (guestfs_h *g,\n"
11613 "             const char *src,\n"
11614 "             const char *dest);\n"
11615 "\n"
11616 msgstr ""
11617
11618 # type: textblock
11619 #: ../src/guestfs-actions.pod:4527 ../fish/guestfish-actions.pod:3017
11620 msgid ""
11621 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11622 "destination filename or destination directory."
11623 msgstr ""
11624
11625 # type: =head2
11626 #: ../src/guestfs-actions.pod:4534
11627 msgid "guestfs_ntfs_3g_probe"
11628 msgstr ""
11629
11630 # type: verbatim
11631 #: ../src/guestfs-actions.pod:4536
11632 #, no-wrap
11633 msgid ""
11634 " int\n"
11635 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11636 "                        int rw,\n"
11637 "                        const char *device);\n"
11638 "\n"
11639 msgstr ""
11640
11641 # type: textblock
11642 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3024
11643 msgid ""
11644 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11645 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11646 "read-write, and some cannot be mounted at all)."
11647 msgstr ""
11648
11649 # type: textblock
11650 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3028
11651 msgid ""
11652 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11653 "can be mounted read-write.  Set it to false if you want to test if the "
11654 "volume can be mounted read-only."
11655 msgstr ""
11656
11657 # type: textblock
11658 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3032
11659 msgid ""
11660 "The return value is an integer which C<0> if the operation would succeed, or "
11661 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11662 msgstr ""
11663
11664 # type: textblock
11665 #: ../src/guestfs-actions.pod:4555
11666 msgid "(Added in 1.0.43)"
11667 msgstr ""
11668
11669 # type: =head2
11670 #: ../src/guestfs-actions.pod:4557
11671 msgid "guestfs_ntfsresize"
11672 msgstr ""
11673
11674 # type: verbatim
11675 #: ../src/guestfs-actions.pod:4559
11676 #, no-wrap
11677 msgid ""
11678 " int\n"
11679 " guestfs_ntfsresize (guestfs_h *g,\n"
11680 "                     const char *device);\n"
11681 "\n"
11682 msgstr ""
11683
11684 # type: textblock
11685 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3040
11686 msgid ""
11687 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11688 "size of the underlying device.  See also L<ntfsresize(8)>."
11689 msgstr ""
11690
11691 # type: =head2
11692 #: ../src/guestfs-actions.pod:4571
11693 msgid "guestfs_ntfsresize_size"
11694 msgstr ""
11695
11696 # type: verbatim
11697 #: ../src/guestfs-actions.pod:4573
11698 #, no-wrap
11699 msgid ""
11700 " int\n"
11701 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11702 "                          const char *device,\n"
11703 "                          int64_t size);\n"
11704 "\n"
11705 msgstr ""
11706
11707 # type: textblock
11708 #: ../src/guestfs-actions.pod:4578
11709 msgid ""
11710 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11711 "to specify the new size (in bytes) explicitly."
11712 msgstr ""
11713
11714 # type: textblock
11715 #: ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5341
11716 msgid "(Added in 1.3.14)"
11717 msgstr ""
11718
11719 # type: =head2
11720 #: ../src/guestfs-actions.pod:4585
11721 msgid "guestfs_part_add"
11722 msgstr ""
11723
11724 # type: verbatim
11725 #: ../src/guestfs-actions.pod:4587
11726 #, no-wrap
11727 msgid ""
11728 " int\n"
11729 " guestfs_part_add (guestfs_h *g,\n"
11730 "                   const char *device,\n"
11731 "                   const char *prlogex,\n"
11732 "                   int64_t startsect,\n"
11733 "                   int64_t endsect);\n"
11734 "\n"
11735 msgstr ""
11736
11737 # type: textblock
11738 #: ../src/guestfs-actions.pod:4594
11739 msgid ""
11740 "This command adds a partition to C<device>.  If there is no partition table "
11741 "on the device, call C<guestfs_part_init> first."
11742 msgstr ""
11743
11744 # type: textblock
11745 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3058
11746 msgid ""
11747 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11748 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11749 "C<logical>) and C<e> (or C<extended>) partition types."
11750 msgstr ""
11751
11752 # type: textblock
11753 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3063
11754 msgid ""
11755 "C<startsect> and C<endsect> are the start and end of the partition in "
11756 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11757 "from the end of the disk (C<-1> is the last sector)."
11758 msgstr ""
11759
11760 # type: textblock
11761 #: ../src/guestfs-actions.pod:4606
11762 msgid ""
11763 "Creating a partition which covers the whole disk is not so easy.  Use "
11764 "C<guestfs_part_disk> to do that."
11765 msgstr ""
11766
11767 # type: textblock
11768 #: ../src/guestfs-actions.pod:4611 ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:4877
11769 msgid "(Added in 1.0.78)"
11770 msgstr ""
11771
11772 # type: =head2
11773 #: ../src/guestfs-actions.pod:4613
11774 msgid "guestfs_part_del"
11775 msgstr ""
11776
11777 # type: verbatim
11778 #: ../src/guestfs-actions.pod:4615
11779 #, no-wrap
11780 msgid ""
11781 " int\n"
11782 " guestfs_part_del (guestfs_h *g,\n"
11783 "                   const char *device,\n"
11784 "                   int partnum);\n"
11785 "\n"
11786 msgstr ""
11787
11788 # type: textblock
11789 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3074
11790 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11791 msgstr ""
11792
11793 # type: textblock
11794 #: ../src/guestfs-actions.pod:4622 ../fish/guestfish-actions.pod:3076
11795 msgid ""
11796 "Note that in the case of MBR partitioning, deleting an extended partition "
11797 "also deletes any logical partitions it contains."
11798 msgstr ""
11799
11800 # type: =head2
11801 #: ../src/guestfs-actions.pod:4630
11802 msgid "guestfs_part_disk"
11803 msgstr ""
11804
11805 # type: verbatim
11806 #: ../src/guestfs-actions.pod:4632
11807 #, no-wrap
11808 msgid ""
11809 " int\n"
11810 " guestfs_part_disk (guestfs_h *g,\n"
11811 "                    const char *device,\n"
11812 "                    const char *parttype);\n"
11813 "\n"
11814 msgstr ""
11815
11816 # type: textblock
11817 #: ../src/guestfs-actions.pod:4637
11818 msgid ""
11819 "This command is simply a combination of C<guestfs_part_init> followed by "
11820 "C<guestfs_part_add> to create a single primary partition covering the whole "
11821 "disk."
11822 msgstr ""
11823
11824 # type: textblock
11825 #: ../src/guestfs-actions.pod:4641
11826 msgid ""
11827 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11828 "possible values are described in C<guestfs_part_init>."
11829 msgstr ""
11830
11831 # type: =head2
11832 #: ../src/guestfs-actions.pod:4651
11833 msgid "guestfs_part_get_bootable"
11834 msgstr ""
11835
11836 # type: verbatim
11837 #: ../src/guestfs-actions.pod:4653
11838 #, no-wrap
11839 msgid ""
11840 " int\n"
11841 " guestfs_part_get_bootable (guestfs_h *g,\n"
11842 "                            const char *device,\n"
11843 "                            int partnum);\n"
11844 "\n"
11845 msgstr ""
11846
11847 # type: textblock
11848 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3098
11849 msgid ""
11850 "This command returns true if the partition C<partnum> on C<device> has the "
11851 "bootable flag set."
11852 msgstr ""
11853
11854 # type: textblock
11855 #: ../src/guestfs-actions.pod:4661
11856 msgid "See also C<guestfs_part_set_bootable>."
11857 msgstr ""
11858
11859 # type: =head2
11860 #: ../src/guestfs-actions.pod:4667
11861 msgid "guestfs_part_get_mbr_id"
11862 msgstr ""
11863
11864 # type: verbatim
11865 #: ../src/guestfs-actions.pod:4669
11866 #, no-wrap
11867 msgid ""
11868 " int\n"
11869 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11870 "                          const char *device,\n"
11871 "                          int partnum);\n"
11872 "\n"
11873 msgstr ""
11874
11875 # type: textblock
11876 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3107
11877 msgid ""
11878 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11879 "partition C<partnum>."
11880 msgstr ""
11881
11882 # type: textblock
11883 #: ../src/guestfs-actions.pod:4677 ../src/guestfs-actions.pod:4853
11884 msgid ""
11885 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11886 "undefined results for other partition table types (see "
11887 "C<guestfs_part_get_parttype>)."
11888 msgstr ""
11889
11890 # type: =head2
11891 #: ../src/guestfs-actions.pod:4685
11892 msgid "guestfs_part_get_parttype"
11893 msgstr ""
11894
11895 # type: verbatim
11896 #: ../src/guestfs-actions.pod:4687
11897 #, no-wrap
11898 msgid ""
11899 " char *\n"
11900 " guestfs_part_get_parttype (guestfs_h *g,\n"
11901 "                            const char *device);\n"
11902 "\n"
11903 msgstr ""
11904
11905 # type: textblock
11906 #: ../src/guestfs-actions.pod:4691 ../fish/guestfish-actions.pod:3118
11907 msgid ""
11908 "This command examines the partition table on C<device> and returns the "
11909 "partition table type (format) being used."
11910 msgstr ""
11911
11912 # type: textblock
11913 #: ../src/guestfs-actions.pod:4694
11914 msgid ""
11915 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11916 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11917 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11918 msgstr ""
11919
11920 # type: =head2
11921 #: ../src/guestfs-actions.pod:4704
11922 msgid "guestfs_part_init"
11923 msgstr ""
11924
11925 # type: verbatim
11926 #: ../src/guestfs-actions.pod:4706
11927 #, no-wrap
11928 msgid ""
11929 " int\n"
11930 " guestfs_part_init (guestfs_h *g,\n"
11931 "                    const char *device,\n"
11932 "                    const char *parttype);\n"
11933 "\n"
11934 msgstr ""
11935
11936 # type: textblock
11937 #: ../src/guestfs-actions.pod:4711 ../fish/guestfish-actions.pod:3130
11938 msgid ""
11939 "This creates an empty partition table on C<device> of one of the partition "
11940 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11941 "(for large disks)."
11942 msgstr ""
11943
11944 # type: textblock
11945 #: ../src/guestfs-actions.pod:4715
11946 msgid ""
11947 "Initially there are no partitions.  Following this, you should call "
11948 "C<guestfs_part_add> for each partition required."
11949 msgstr ""
11950
11951 # type: textblock
11952 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3137
11953 msgid "Possible values for C<parttype> are:"
11954 msgstr ""
11955
11956 # type: =item
11957 #: ../src/guestfs-actions.pod:4722 ../fish/guestfish-actions.pod:3141
11958 msgid "B<efi> | B<gpt>"
11959 msgstr ""
11960
11961 # type: textblock
11962 #: ../src/guestfs-actions.pod:4724 ../fish/guestfish-actions.pod:3143
11963 msgid "Intel EFI / GPT partition table."
11964 msgstr ""
11965
11966 # type: textblock
11967 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3145
11968 msgid ""
11969 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11970 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11971 "the C<mbr> format."
11972 msgstr ""
11973
11974 # type: =item
11975 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3149
11976 msgid "B<mbr> | B<msdos>"
11977 msgstr ""
11978
11979 # type: textblock
11980 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3151
11981 msgid ""
11982 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11983 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11984 "TB.  For large disks we recommend using C<gpt>."
11985 msgstr ""
11986
11987 # type: textblock
11988 #: ../src/guestfs-actions.pod:4739 ../fish/guestfish-actions.pod:3158
11989 msgid "Other partition table types that may work but are not supported include:"
11990 msgstr ""
11991
11992 # type: =item
11993 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3163
11994 msgid "B<aix>"
11995 msgstr ""
11996
11997 # type: textblock
11998 #: ../src/guestfs-actions.pod:4746 ../fish/guestfish-actions.pod:3165
11999 msgid "AIX disk labels."
12000 msgstr ""
12001
12002 # type: =item
12003 #: ../src/guestfs-actions.pod:4748 ../fish/guestfish-actions.pod:3167
12004 msgid "B<amiga> | B<rdb>"
12005 msgstr ""
12006
12007 # type: textblock
12008 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3169
12009 msgid "Amiga \"Rigid Disk Block\" format."
12010 msgstr ""
12011
12012 # type: =item
12013 #: ../src/guestfs-actions.pod:4752 ../fish/guestfish-actions.pod:3171
12014 msgid "B<bsd>"
12015 msgstr ""
12016
12017 # type: textblock
12018 #: ../src/guestfs-actions.pod:4754 ../fish/guestfish-actions.pod:3173
12019 msgid "BSD disk labels."
12020 msgstr ""
12021
12022 # type: =item
12023 #: ../src/guestfs-actions.pod:4756 ../fish/guestfish-actions.pod:3175
12024 msgid "B<dasd>"
12025 msgstr ""
12026
12027 # type: textblock
12028 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3177
12029 msgid "DASD, used on IBM mainframes."
12030 msgstr ""
12031
12032 # type: =item
12033 #: ../src/guestfs-actions.pod:4760 ../fish/guestfish-actions.pod:3179
12034 msgid "B<dvh>"
12035 msgstr ""
12036
12037 # type: textblock
12038 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3181
12039 msgid "MIPS/SGI volumes."
12040 msgstr ""
12041
12042 # type: =item
12043 #: ../src/guestfs-actions.pod:4764 ../fish/guestfish-actions.pod:3183
12044 msgid "B<mac>"
12045 msgstr ""
12046
12047 # type: textblock
12048 #: ../src/guestfs-actions.pod:4766 ../fish/guestfish-actions.pod:3185
12049 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12050 msgstr ""
12051
12052 # type: =item
12053 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3187
12054 msgid "B<pc98>"
12055 msgstr ""
12056
12057 # type: textblock
12058 #: ../src/guestfs-actions.pod:4770 ../fish/guestfish-actions.pod:3189
12059 msgid "NEC PC-98 format, common in Japan apparently."
12060 msgstr ""
12061
12062 # type: =item
12063 #: ../src/guestfs-actions.pod:4772 ../fish/guestfish-actions.pod:3191
12064 msgid "B<sun>"
12065 msgstr ""
12066
12067 # type: textblock
12068 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3193
12069 msgid "Sun disk labels."
12070 msgstr ""
12071
12072 # type: =head2
12073 #: ../src/guestfs-actions.pod:4782
12074 msgid "guestfs_part_list"
12075 msgstr ""
12076
12077 # type: verbatim
12078 #: ../src/guestfs-actions.pod:4784
12079 #, no-wrap
12080 msgid ""
12081 " struct guestfs_partition_list *\n"
12082 " guestfs_part_list (guestfs_h *g,\n"
12083 "                    const char *device);\n"
12084 "\n"
12085 msgstr ""
12086
12087 # type: textblock
12088 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3201
12089 msgid ""
12090 "This command parses the partition table on C<device> and returns the list of "
12091 "partitions found."
12092 msgstr ""
12093
12094 # type: textblock
12095 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3204
12096 msgid "The fields in the returned structure are:"
12097 msgstr ""
12098
12099 # type: =item
12100 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3208
12101 msgid "B<part_num>"
12102 msgstr ""
12103
12104 # type: textblock
12105 #: ../src/guestfs-actions.pod:4797 ../fish/guestfish-actions.pod:3210
12106 msgid "Partition number, counting from 1."
12107 msgstr ""
12108
12109 # type: =item
12110 #: ../src/guestfs-actions.pod:4799 ../fish/guestfish-actions.pod:3212
12111 msgid "B<part_start>"
12112 msgstr ""
12113
12114 # type: textblock
12115 #: ../src/guestfs-actions.pod:4801
12116 msgid ""
12117 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12118 "the device's sector size, see C<guestfs_blockdev_getss>."
12119 msgstr ""
12120
12121 # type: =item
12122 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3217
12123 msgid "B<part_end>"
12124 msgstr ""
12125
12126 # type: textblock
12127 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3219
12128 msgid "End of the partition in bytes."
12129 msgstr ""
12130
12131 # type: =item
12132 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3221
12133 msgid "B<part_size>"
12134 msgstr ""
12135
12136 # type: textblock
12137 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3223
12138 msgid "Size of the partition in bytes."
12139 msgstr ""
12140
12141 # type: textblock
12142 #: ../src/guestfs-actions.pod:4814
12143 msgid ""
12144 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12145 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12146 "use>."
12147 msgstr ""
12148
12149 # type: =head2
12150 #: ../src/guestfs-actions.pod:4820
12151 msgid "guestfs_part_set_bootable"
12152 msgstr ""
12153
12154 # type: verbatim
12155 #: ../src/guestfs-actions.pod:4822
12156 #, no-wrap
12157 msgid ""
12158 " int\n"
12159 " guestfs_part_set_bootable (guestfs_h *g,\n"
12160 "                            const char *device,\n"
12161 "                            int partnum,\n"
12162 "                            int bootable);\n"
12163 "\n"
12164 msgstr ""
12165
12166 # type: textblock
12167 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3231
12168 msgid ""
12169 "This sets the bootable flag on partition numbered C<partnum> on device "
12170 "C<device>.  Note that partitions are numbered from 1."
12171 msgstr ""
12172
12173 # type: textblock
12174 #: ../src/guestfs-actions.pod:4831 ../fish/guestfish-actions.pod:3234
12175 msgid ""
12176 "The bootable flag is used by some operating systems (notably Windows) to "
12177 "determine which partition to boot from.  It is by no means universally "
12178 "recognized."
12179 msgstr ""
12180
12181 # type: =head2
12182 #: ../src/guestfs-actions.pod:4839
12183 msgid "guestfs_part_set_mbr_id"
12184 msgstr ""
12185
12186 # type: verbatim
12187 #: ../src/guestfs-actions.pod:4841
12188 #, no-wrap
12189 msgid ""
12190 " int\n"
12191 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12192 "                          const char *device,\n"
12193 "                          int partnum,\n"
12194 "                          int idbyte);\n"
12195 "\n"
12196 msgstr ""
12197
12198 # type: textblock
12199 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3242
12200 msgid ""
12201 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12202 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12203 "documentation are in fact hexadecimal numbers, but usually documented "
12204 "without any leading \"0x\" which might be confusing."
12205 msgstr ""
12206
12207 # type: =head2
12208 #: ../src/guestfs-actions.pod:4861
12209 msgid "guestfs_part_set_name"
12210 msgstr ""
12211
12212 # type: verbatim
12213 #: ../src/guestfs-actions.pod:4863
12214 #, no-wrap
12215 msgid ""
12216 " int\n"
12217 " guestfs_part_set_name (guestfs_h *g,\n"
12218 "                        const char *device,\n"
12219 "                        int partnum,\n"
12220 "                        const char *name);\n"
12221 "\n"
12222 msgstr ""
12223
12224 # type: textblock
12225 #: ../src/guestfs-actions.pod:4869 ../fish/guestfish-actions.pod:3256
12226 msgid ""
12227 "This sets the partition name on partition numbered C<partnum> on device "
12228 "C<device>.  Note that partitions are numbered from 1."
12229 msgstr ""
12230
12231 # type: textblock
12232 #: ../src/guestfs-actions.pod:4872 ../fish/guestfish-actions.pod:3259
12233 msgid ""
12234 "The partition name can only be set on certain types of partition table.  "
12235 "This works on C<gpt> but not on C<mbr> partitions."
12236 msgstr ""
12237
12238 # type: =head2
12239 #: ../src/guestfs-actions.pod:4879
12240 msgid "guestfs_part_to_dev"
12241 msgstr ""
12242
12243 # type: verbatim
12244 #: ../src/guestfs-actions.pod:4881
12245 #, no-wrap
12246 msgid ""
12247 " char *\n"
12248 " guestfs_part_to_dev (guestfs_h *g,\n"
12249 "                      const char *partition);\n"
12250 "\n"
12251 msgstr ""
12252
12253 # type: textblock
12254 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3266
12255 msgid ""
12256 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12257 "partition number, returning the device name (eg. \"/dev/sdb\")."
12258 msgstr ""
12259
12260 # type: textblock
12261 #: ../src/guestfs-actions.pod:4889
12262 msgid ""
12263 "The named partition must exist, for example as a string returned from "
12264 "C<guestfs_list_partitions>."
12265 msgstr ""
12266
12267 # type: =head2
12268 #: ../src/guestfs-actions.pod:4897
12269 msgid "guestfs_ping_daemon"
12270 msgstr ""
12271
12272 # type: verbatim
12273 #: ../src/guestfs-actions.pod:4899
12274 #, no-wrap
12275 msgid ""
12276 " int\n"
12277 " guestfs_ping_daemon (guestfs_h *g);\n"
12278 "\n"
12279 msgstr ""
12280
12281 # type: textblock
12282 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3277
12283 msgid ""
12284 "This is a test probe into the guestfs daemon running inside the qemu "
12285 "subprocess.  Calling this function checks that the daemon responds to the "
12286 "ping message, without affecting the daemon or attached block device(s) in "
12287 "any other way."
12288 msgstr ""
12289
12290 # type: =head2
12291 #: ../src/guestfs-actions.pod:4911
12292 msgid "guestfs_pread"
12293 msgstr ""
12294
12295 # type: verbatim
12296 #: ../src/guestfs-actions.pod:4913
12297 #, no-wrap
12298 msgid ""
12299 " char *\n"
12300 " guestfs_pread (guestfs_h *g,\n"
12301 "                const char *path,\n"
12302 "                int count,\n"
12303 "                int64_t offset,\n"
12304 "                size_t *size_r);\n"
12305 "\n"
12306 msgstr ""
12307
12308 # type: textblock
12309 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3286
12310 msgid ""
12311 "This command lets you read part of a file.  It reads C<count> bytes of the "
12312 "file, starting at C<offset>, from file C<path>."
12313 msgstr ""
12314
12315 # type: textblock
12316 #: ../src/guestfs-actions.pod:4923 ../src/guestfs-actions.pod:4949 ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3304
12317 msgid ""
12318 "This may read fewer bytes than requested.  For further details see the "
12319 "L<pread(2)> system call."
12320 msgstr ""
12321
12322 # type: textblock
12323 #: ../src/guestfs-actions.pod:4926
12324 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12325 msgstr ""
12326
12327 # type: =head2
12328 #: ../src/guestfs-actions.pod:4937
12329 msgid "guestfs_pread_device"
12330 msgstr ""
12331
12332 # type: verbatim
12333 #: ../src/guestfs-actions.pod:4939
12334 #, no-wrap
12335 msgid ""
12336 " char *\n"
12337 " guestfs_pread_device (guestfs_h *g,\n"
12338 "                       const char *device,\n"
12339 "                       int count,\n"
12340 "                       int64_t offset,\n"
12341 "                       size_t *size_r);\n"
12342 "\n"
12343 msgstr ""
12344
12345 # type: textblock
12346 #: ../src/guestfs-actions.pod:4946 ../fish/guestfish-actions.pod:3301
12347 msgid ""
12348 "This command lets you read part of a file.  It reads C<count> bytes of "
12349 "C<device>, starting at C<offset>."
12350 msgstr ""
12351
12352 # type: textblock
12353 #: ../src/guestfs-actions.pod:4952
12354 msgid "See also C<guestfs_pread>."
12355 msgstr ""
12356
12357 # type: textblock
12358 #: ../src/guestfs-actions.pod:4961
12359 msgid "(Added in 1.5.21)"
12360 msgstr ""
12361
12362 # type: =head2
12363 #: ../src/guestfs-actions.pod:4963
12364 msgid "guestfs_pvcreate"
12365 msgstr ""
12366
12367 # type: verbatim
12368 #: ../src/guestfs-actions.pod:4965
12369 #, no-wrap
12370 msgid ""
12371 " int\n"
12372 " guestfs_pvcreate (guestfs_h *g,\n"
12373 "                   const char *device);\n"
12374 "\n"
12375 msgstr ""
12376
12377 # type: textblock
12378 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3316
12379 msgid ""
12380 "This creates an LVM physical volume on the named C<device>, where C<device> "
12381 "should usually be a partition name such as C</dev/sda1>."
12382 msgstr ""
12383
12384 # type: =head2
12385 #: ../src/guestfs-actions.pod:4977
12386 msgid "guestfs_pvremove"
12387 msgstr ""
12388
12389 # type: verbatim
12390 #: ../src/guestfs-actions.pod:4979
12391 #, no-wrap
12392 msgid ""
12393 " int\n"
12394 " guestfs_pvremove (guestfs_h *g,\n"
12395 "                   const char *device);\n"
12396 "\n"
12397 msgstr ""
12398
12399 # type: textblock
12400 #: ../src/guestfs-actions.pod:4983 ../fish/guestfish-actions.pod:3324
12401 msgid ""
12402 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12403 "it."
12404 msgstr ""
12405
12406 # type: textblock
12407 #: ../src/guestfs-actions.pod:4986 ../fish/guestfish-actions.pod:3327
12408 msgid ""
12409 "The implementation uses the C<pvremove> command which refuses to wipe "
12410 "physical volumes that contain any volume groups, so you have to remove those "
12411 "first."
12412 msgstr ""
12413
12414 # type: =head2
12415 #: ../src/guestfs-actions.pod:4994
12416 msgid "guestfs_pvresize"
12417 msgstr ""
12418
12419 # type: verbatim
12420 #: ../src/guestfs-actions.pod:4996
12421 #, no-wrap
12422 msgid ""
12423 " int\n"
12424 " guestfs_pvresize (guestfs_h *g,\n"
12425 "                   const char *device);\n"
12426 "\n"
12427 msgstr ""
12428
12429 # type: textblock
12430 #: ../src/guestfs-actions.pod:5000 ../fish/guestfish-actions.pod:3335
12431 msgid ""
12432 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12433 "the new size of the underlying device."
12434 msgstr ""
12435
12436 # type: =head2
12437 #: ../src/guestfs-actions.pod:5007
12438 msgid "guestfs_pvresize_size"
12439 msgstr ""
12440
12441 # type: verbatim
12442 #: ../src/guestfs-actions.pod:5009
12443 #, no-wrap
12444 msgid ""
12445 " int\n"
12446 " guestfs_pvresize_size (guestfs_h *g,\n"
12447 "                        const char *device,\n"
12448 "                        int64_t size);\n"
12449 "\n"
12450 msgstr ""
12451
12452 # type: textblock
12453 #: ../src/guestfs-actions.pod:5014
12454 msgid ""
12455 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12456 "specify the new size (in bytes) explicitly."
12457 msgstr ""
12458
12459 # type: =head2
12460 #: ../src/guestfs-actions.pod:5021
12461 msgid "guestfs_pvs"
12462 msgstr ""
12463
12464 # type: verbatim
12465 #: ../src/guestfs-actions.pod:5023
12466 #, no-wrap
12467 msgid ""
12468 " char **\n"
12469 " guestfs_pvs (guestfs_h *g);\n"
12470 "\n"
12471 msgstr ""
12472
12473 # type: textblock
12474 #: ../src/guestfs-actions.pod:5026 ../fish/guestfish-actions.pod:3349
12475 msgid ""
12476 "List all the physical volumes detected.  This is the equivalent of the "
12477 "L<pvs(8)> command."
12478 msgstr ""
12479
12480 # type: textblock
12481 #: ../src/guestfs-actions.pod:5029 ../fish/guestfish-actions.pod:3352
12482 msgid ""
12483 "This returns a list of just the device names that contain PVs "
12484 "(eg. C</dev/sda2>)."
12485 msgstr ""
12486
12487 # type: textblock
12488 #: ../src/guestfs-actions.pod:5032
12489 msgid "See also C<guestfs_pvs_full>."
12490 msgstr ""
12491
12492 # type: =head2
12493 #: ../src/guestfs-actions.pod:5040
12494 msgid "guestfs_pvs_full"
12495 msgstr ""
12496
12497 # type: verbatim
12498 #: ../src/guestfs-actions.pod:5042
12499 #, no-wrap
12500 msgid ""
12501 " struct guestfs_lvm_pv_list *\n"
12502 " guestfs_pvs_full (guestfs_h *g);\n"
12503 "\n"
12504 msgstr ""
12505
12506 # type: textblock
12507 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3361
12508 msgid ""
12509 "List all the physical volumes detected.  This is the equivalent of the "
12510 "L<pvs(8)> command.  The \"full\" version includes all fields."
12511 msgstr ""
12512
12513 # type: textblock
12514 #: ../src/guestfs-actions.pod:5048
12515 msgid ""
12516 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12517 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
12518 "use>."
12519 msgstr ""
12520
12521 # type: =head2
12522 #: ../src/guestfs-actions.pod:5054
12523 msgid "guestfs_pvuuid"
12524 msgstr ""
12525
12526 # type: verbatim
12527 #: ../src/guestfs-actions.pod:5056
12528 #, no-wrap
12529 msgid ""
12530 " char *\n"
12531 " guestfs_pvuuid (guestfs_h *g,\n"
12532 "                 const char *device);\n"
12533 "\n"
12534 msgstr ""
12535
12536 # type: textblock
12537 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3368
12538 msgid "This command returns the UUID of the LVM PV C<device>."
12539 msgstr ""
12540
12541 # type: =head2
12542 #: ../src/guestfs-actions.pod:5067
12543 msgid "guestfs_pwrite"
12544 msgstr ""
12545
12546 # type: verbatim
12547 #: ../src/guestfs-actions.pod:5069
12548 #, no-wrap
12549 msgid ""
12550 " int\n"
12551 " guestfs_pwrite (guestfs_h *g,\n"
12552 "                 const char *path,\n"
12553 "                 const char *content,\n"
12554 "                 size_t content_size,\n"
12555 "                 int64_t offset);\n"
12556 "\n"
12557 msgstr ""
12558
12559 # type: textblock
12560 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3374
12561 msgid ""
12562 "This command writes to part of a file.  It writes the data buffer C<content> "
12563 "to the file C<path> starting at offset C<offset>."
12564 msgstr ""
12565
12566 # type: textblock
12567 #: ../src/guestfs-actions.pod:5079 ../fish/guestfish-actions.pod:3377
12568 msgid ""
12569 "This command implements the L<pwrite(2)> system call, and like that system "
12570 "call it may not write the full data requested.  The return value is the "
12571 "number of bytes that were actually written to the file.  This could even be "
12572 "0, although short writes are unlikely for regular files in ordinary "
12573 "circumstances."
12574 msgstr ""
12575
12576 # type: textblock
12577 #: ../src/guestfs-actions.pod:5085
12578 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12579 msgstr ""
12580
12581 # type: =head2
12582 #: ../src/guestfs-actions.pod:5094
12583 msgid "guestfs_pwrite_device"
12584 msgstr ""
12585
12586 # type: verbatim
12587 #: ../src/guestfs-actions.pod:5096
12588 #, no-wrap
12589 msgid ""
12590 " int\n"
12591 " guestfs_pwrite_device (guestfs_h *g,\n"
12592 "                        const char *device,\n"
12593 "                        const char *content,\n"
12594 "                        size_t content_size,\n"
12595 "                        int64_t offset);\n"
12596 "\n"
12597 msgstr ""
12598
12599 # type: textblock
12600 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3392
12601 msgid ""
12602 "This command writes to part of a device.  It writes the data buffer "
12603 "C<content> to C<device> starting at offset C<offset>."
12604 msgstr ""
12605
12606 # type: textblock
12607 #: ../src/guestfs-actions.pod:5106 ../fish/guestfish-actions.pod:3395
12608 msgid ""
12609 "This command implements the L<pwrite(2)> system call, and like that system "
12610 "call it may not write the full data requested (although short writes to disk "
12611 "devices and partitions are probably impossible with standard Linux kernels)."
12612 msgstr ""
12613
12614 # type: textblock
12615 #: ../src/guestfs-actions.pod:5111
12616 msgid "See also C<guestfs_pwrite>."
12617 msgstr ""
12618
12619 # type: textblock
12620 #: ../src/guestfs-actions.pod:5118
12621 msgid "(Added in 1.5.20)"
12622 msgstr ""
12623
12624 # type: =head2
12625 #: ../src/guestfs-actions.pod:5120
12626 msgid "guestfs_read_file"
12627 msgstr ""
12628
12629 # type: verbatim
12630 #: ../src/guestfs-actions.pod:5122
12631 #, no-wrap
12632 msgid ""
12633 " char *\n"
12634 " guestfs_read_file (guestfs_h *g,\n"
12635 "                    const char *path,\n"
12636 "                    size_t *size_r);\n"
12637 "\n"
12638 msgstr ""
12639
12640 # type: textblock
12641 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3409
12642 msgid "This calls returns the contents of the file C<path> as a buffer."
12643 msgstr ""
12644
12645 # type: textblock
12646 #: ../src/guestfs-actions.pod:5130
12647 msgid ""
12648 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12649 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12650 "function is limited in the total size of file that can be handled."
12651 msgstr ""
12652
12653 # type: textblock
12654 #: ../src/guestfs-actions.pod:5142
12655 msgid "(Added in 1.0.63)"
12656 msgstr ""
12657
12658 # type: =head2
12659 #: ../src/guestfs-actions.pod:5144
12660 msgid "guestfs_read_lines"
12661 msgstr ""
12662
12663 # type: verbatim
12664 #: ../src/guestfs-actions.pod:5146
12665 #, no-wrap
12666 msgid ""
12667 " char **\n"
12668 " guestfs_read_lines (guestfs_h *g,\n"
12669 "                     const char *path);\n"
12670 "\n"
12671 msgstr ""
12672
12673 # type: textblock
12674 #: ../src/guestfs-actions.pod:5152 ../fish/guestfish-actions.pod:3426
12675 msgid ""
12676 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12677 "C<CRLF> character sequences are I<not> returned."
12678 msgstr ""
12679
12680 # type: textblock
12681 #: ../src/guestfs-actions.pod:5155
12682 msgid ""
12683 "Note that this function cannot correctly handle binary files (specifically, "
12684 "files containing C<\\0> character which is treated as end of line).  For "
12685 "those you need to use the C<guestfs_read_file> function which has a more "
12686 "complex interface."
12687 msgstr ""
12688
12689 # type: =head2
12690 #: ../src/guestfs-actions.pod:5166
12691 msgid "guestfs_readdir"
12692 msgstr ""
12693
12694 # type: verbatim
12695 #: ../src/guestfs-actions.pod:5168
12696 #, no-wrap
12697 msgid ""
12698 " struct guestfs_dirent_list *\n"
12699 " guestfs_readdir (guestfs_h *g,\n"
12700 "                  const char *dir);\n"
12701 "\n"
12702 msgstr ""
12703
12704 # type: textblock
12705 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3438
12706 msgid "This returns the list of directory entries in directory C<dir>."
12707 msgstr ""
12708
12709 # type: textblock
12710 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3440
12711 msgid ""
12712 "All entries in the directory are returned, including C<.> and C<..>.  The "
12713 "entries are I<not> sorted, but returned in the same order as the underlying "
12714 "filesystem."
12715 msgstr ""
12716
12717 # type: textblock
12718 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3444
12719 msgid ""
12720 "Also this call returns basic file type information about each file.  The "
12721 "C<ftyp> field will contain one of the following characters:"
12722 msgstr ""
12723
12724 # type: =item
12725 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3449
12726 msgid "'b'"
12727 msgstr ""
12728
12729 # type: textblock
12730 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3451
12731 msgid "Block special"
12732 msgstr ""
12733
12734 # type: =item
12735 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:3453
12736 msgid "'c'"
12737 msgstr ""
12738
12739 # type: textblock
12740 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3455
12741 msgid "Char special"
12742 msgstr ""
12743
12744 # type: =item
12745 #: ../src/guestfs-actions.pod:5191 ../fish/guestfish-actions.pod:3457
12746 msgid "'d'"
12747 msgstr ""
12748
12749 # type: textblock
12750 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3459
12751 msgid "Directory"
12752 msgstr ""
12753
12754 # type: =item
12755 #: ../src/guestfs-actions.pod:5195 ../fish/guestfish-actions.pod:3461
12756 msgid "'f'"
12757 msgstr ""
12758
12759 # type: textblock
12760 #: ../src/guestfs-actions.pod:5197 ../fish/guestfish-actions.pod:3463
12761 msgid "FIFO (named pipe)"
12762 msgstr ""
12763
12764 # type: =item
12765 #: ../src/guestfs-actions.pod:5199 ../fish/guestfish-actions.pod:3465
12766 msgid "'l'"
12767 msgstr ""
12768
12769 # type: textblock
12770 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3467
12771 msgid "Symbolic link"
12772 msgstr ""
12773
12774 # type: =item
12775 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3469
12776 msgid "'r'"
12777 msgstr ""
12778
12779 # type: textblock
12780 #: ../src/guestfs-actions.pod:5205 ../fish/guestfish-actions.pod:3471
12781 msgid "Regular file"
12782 msgstr ""
12783
12784 # type: =item
12785 #: ../src/guestfs-actions.pod:5207 ../fish/guestfish-actions.pod:3473
12786 msgid "'s'"
12787 msgstr ""
12788
12789 # type: textblock
12790 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3475
12791 msgid "Socket"
12792 msgstr ""
12793
12794 # type: =item
12795 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:3477
12796 msgid "'u'"
12797 msgstr ""
12798
12799 # type: textblock
12800 #: ../src/guestfs-actions.pod:5213 ../fish/guestfish-actions.pod:3479
12801 msgid "Unknown file type"
12802 msgstr ""
12803
12804 # type: =item
12805 #: ../src/guestfs-actions.pod:5215 ../fish/guestfish-actions.pod:3481
12806 msgid "'?'"
12807 msgstr ""
12808
12809 # type: textblock
12810 #: ../src/guestfs-actions.pod:5217 ../fish/guestfish-actions.pod:3483
12811 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12812 msgstr ""
12813
12814 # type: textblock
12815 #: ../src/guestfs-actions.pod:5222
12816 msgid ""
12817 "This function is primarily intended for use by programs.  To get a simple "
12818 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12819 "consumption, use C<guestfs_ll>."
12820 msgstr ""
12821
12822 # type: textblock
12823 #: ../src/guestfs-actions.pod:5226
12824 msgid ""
12825 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12826 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
12827 "use>."
12828 msgstr ""
12829
12830 # type: =head2
12831 #: ../src/guestfs-actions.pod:5232
12832 msgid "guestfs_readlink"
12833 msgstr ""
12834
12835 # type: verbatim
12836 #: ../src/guestfs-actions.pod:5234
12837 #, no-wrap
12838 msgid ""
12839 " char *\n"
12840 " guestfs_readlink (guestfs_h *g,\n"
12841 "                   const char *path);\n"
12842 "\n"
12843 msgstr ""
12844
12845 # type: textblock
12846 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3496
12847 msgid "This command reads the target of a symbolic link."
12848 msgstr ""
12849
12850 # type: =head2
12851 #: ../src/guestfs-actions.pod:5245
12852 msgid "guestfs_readlinklist"
12853 msgstr ""
12854
12855 # type: verbatim
12856 #: ../src/guestfs-actions.pod:5247
12857 #, no-wrap
12858 msgid ""
12859 " char **\n"
12860 " guestfs_readlinklist (guestfs_h *g,\n"
12861 "                       const char *path,\n"
12862 "                       char *const *names);\n"
12863 "\n"
12864 msgstr ""
12865
12866 # type: textblock
12867 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:3502
12868 msgid ""
12869 "This call allows you to do a C<readlink> operation on multiple files, where "
12870 "all files are in the directory C<path>.  C<names> is the list of files from "
12871 "this directory."
12872 msgstr ""
12873
12874 # type: textblock
12875 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:3506
12876 msgid ""
12877 "On return you get a list of strings, with a one-to-one correspondence to the "
12878 "C<names> list.  Each string is the value of the symbolic link."
12879 msgstr ""
12880
12881 # type: textblock
12882 #: ../src/guestfs-actions.pod:5260 ../fish/guestfish-actions.pod:3510
12883 msgid ""
12884 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12885 "result string is the empty string C<\"\">.  However the whole operation is "
12886 "completed even if there were C<readlink(2)> errors, and so you can call this "
12887 "function with names where you don't know if they are symbolic links already "
12888 "(albeit slightly less efficient)."
12889 msgstr ""
12890
12891 # type: textblock
12892 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3517
12893 msgid ""
12894 "This call is intended for programs that want to efficiently list a directory "
12895 "contents without making many round-trips.  Very long directory listings "
12896 "might cause the protocol message size to be exceeded, causing this call to "
12897 "fail.  The caller must split up such requests into smaller groups of names."
12898 msgstr ""
12899
12900 # type: =head2
12901 #: ../src/guestfs-actions.pod:5280
12902 msgid "guestfs_realpath"
12903 msgstr ""
12904
12905 # type: verbatim
12906 #: ../src/guestfs-actions.pod:5282
12907 #, no-wrap
12908 msgid ""
12909 " char *\n"
12910 " guestfs_realpath (guestfs_h *g,\n"
12911 "                   const char *path);\n"
12912 "\n"
12913 msgstr ""
12914
12915 # type: textblock
12916 #: ../src/guestfs-actions.pod:5286 ../fish/guestfish-actions.pod:3528
12917 msgid ""
12918 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12919 "has no C<.>, C<..> or symbolic link path elements."
12920 msgstr ""
12921
12922 # type: =head2
12923 #: ../src/guestfs-actions.pod:5294
12924 msgid "guestfs_removexattr"
12925 msgstr ""
12926
12927 # type: verbatim
12928 #: ../src/guestfs-actions.pod:5296
12929 #, no-wrap
12930 msgid ""
12931 " int\n"
12932 " guestfs_removexattr (guestfs_h *g,\n"
12933 "                      const char *xattr,\n"
12934 "                      const char *path);\n"
12935 "\n"
12936 msgstr ""
12937
12938 # type: textblock
12939 #: ../src/guestfs-actions.pod:5301 ../fish/guestfish-actions.pod:3535
12940 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12941 msgstr ""
12942
12943 # type: textblock
12944 #: ../src/guestfs-actions.pod:5304
12945 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12946 msgstr ""
12947
12948 # type: =head2
12949 #: ../src/guestfs-actions.pod:5310
12950 msgid "guestfs_resize2fs"
12951 msgstr ""
12952
12953 # type: verbatim
12954 #: ../src/guestfs-actions.pod:5312
12955 #, no-wrap
12956 msgid ""
12957 " int\n"
12958 " guestfs_resize2fs (guestfs_h *g,\n"
12959 "                    const char *device);\n"
12960 "\n"
12961 msgstr ""
12962
12963 # type: textblock
12964 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3544
12965 msgid ""
12966 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12967 "underlying device."
12968 msgstr ""
12969
12970 # type: textblock
12971 #: ../src/guestfs-actions.pod:5319
12972 msgid ""
12973 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12974 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12975 "sometimes gives an error about this and sometimes not.  In any case, it is "
12976 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12977 msgstr ""
12978
12979 # type: =head2
12980 #: ../src/guestfs-actions.pod:5329
12981 msgid "guestfs_resize2fs_size"
12982 msgstr ""
12983
12984 # type: verbatim
12985 #: ../src/guestfs-actions.pod:5331
12986 #, no-wrap
12987 msgid ""
12988 " int\n"
12989 " guestfs_resize2fs_size (guestfs_h *g,\n"
12990 "                         const char *device,\n"
12991 "                         int64_t size);\n"
12992 "\n"
12993 msgstr ""
12994
12995 # type: textblock
12996 #: ../src/guestfs-actions.pod:5336
12997 msgid ""
12998 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12999 "to specify the new size (in bytes) explicitly."
13000 msgstr ""
13001
13002 # type: =head2
13003 #: ../src/guestfs-actions.pod:5343
13004 msgid "guestfs_rm"
13005 msgstr ""
13006
13007 # type: verbatim
13008 #: ../src/guestfs-actions.pod:5345
13009 #, no-wrap
13010 msgid ""
13011 " int\n"
13012 " guestfs_rm (guestfs_h *g,\n"
13013 "             const char *path);\n"
13014 "\n"
13015 msgstr ""
13016
13017 # type: textblock
13018 #: ../src/guestfs-actions.pod:5349 ../fish/guestfish-actions.pod:3564
13019 msgid "Remove the single file C<path>."
13020 msgstr ""
13021
13022 # type: =head2
13023 #: ../src/guestfs-actions.pod:5355
13024 msgid "guestfs_rm_rf"
13025 msgstr ""
13026
13027 # type: verbatim
13028 #: ../src/guestfs-actions.pod:5357
13029 #, no-wrap
13030 msgid ""
13031 " int\n"
13032 " guestfs_rm_rf (guestfs_h *g,\n"
13033 "                const char *path);\n"
13034 "\n"
13035 msgstr ""
13036
13037 # type: textblock
13038 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3570
13039 msgid ""
13040 "Remove the file or directory C<path>, recursively removing the contents if "
13041 "its a directory.  This is like the C<rm -rf> shell command."
13042 msgstr ""
13043
13044 # type: =head2
13045 #: ../src/guestfs-actions.pod:5369
13046 msgid "guestfs_rmdir"
13047 msgstr ""
13048
13049 # type: verbatim
13050 #: ../src/guestfs-actions.pod:5371
13051 #, no-wrap
13052 msgid ""
13053 " int\n"
13054 " guestfs_rmdir (guestfs_h *g,\n"
13055 "                const char *path);\n"
13056 "\n"
13057 msgstr ""
13058
13059 # type: textblock
13060 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:3578
13061 msgid "Remove the single directory C<path>."
13062 msgstr ""
13063
13064 # type: =head2
13065 #: ../src/guestfs-actions.pod:5381
13066 msgid "guestfs_rmmountpoint"
13067 msgstr ""
13068
13069 # type: verbatim
13070 #: ../src/guestfs-actions.pod:5383
13071 #, no-wrap
13072 msgid ""
13073 " int\n"
13074 " guestfs_rmmountpoint (guestfs_h *g,\n"
13075 "                       const char *exemptpath);\n"
13076 "\n"
13077 msgstr ""
13078
13079 # type: textblock
13080 #: ../src/guestfs-actions.pod:5387
13081 msgid ""
13082 "This calls removes a mountpoint that was previously created with "
13083 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13084 msgstr ""
13085
13086 # type: =head2
13087 #: ../src/guestfs-actions.pod:5395
13088 msgid "guestfs_scrub_device"
13089 msgstr ""
13090
13091 # type: verbatim
13092 #: ../src/guestfs-actions.pod:5397
13093 #, no-wrap
13094 msgid ""
13095 " int\n"
13096 " guestfs_scrub_device (guestfs_h *g,\n"
13097 "                       const char *device);\n"
13098 "\n"
13099 msgstr ""
13100
13101 # type: textblock
13102 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3592
13103 msgid ""
13104 "This command writes patterns over C<device> to make data retrieval more "
13105 "difficult."
13106 msgstr ""
13107
13108 # type: textblock
13109 #: ../src/guestfs-actions.pod:5404 ../src/guestfs-actions.pod:5425 ../src/guestfs-actions.pod:5444 ../fish/guestfish-actions.pod:3595 ../fish/guestfish-actions.pod:3610 ../fish/guestfish-actions.pod:3623
13110 msgid ""
13111 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13112 "more details."
13113 msgstr ""
13114
13115 # type: textblock
13116 #: ../src/guestfs-actions.pod:5412 ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5449
13117 msgid "(Added in 1.0.52)"
13118 msgstr ""
13119
13120 # type: =head2
13121 #: ../src/guestfs-actions.pod:5414
13122 msgid "guestfs_scrub_file"
13123 msgstr ""
13124
13125 # type: verbatim
13126 #: ../src/guestfs-actions.pod:5416
13127 #, no-wrap
13128 msgid ""
13129 " int\n"
13130 " guestfs_scrub_file (guestfs_h *g,\n"
13131 "                     const char *file);\n"
13132 "\n"
13133 msgstr ""
13134
13135 # type: textblock
13136 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3605
13137 msgid ""
13138 "This command writes patterns over a file to make data retrieval more "
13139 "difficult."
13140 msgstr ""
13141
13142 # type: textblock
13143 #: ../src/guestfs-actions.pod:5423 ../fish/guestfish-actions.pod:3608
13144 msgid "The file is I<removed> after scrubbing."
13145 msgstr ""
13146
13147 # type: =head2
13148 #: ../src/guestfs-actions.pod:5432
13149 msgid "guestfs_scrub_freespace"
13150 msgstr ""
13151
13152 # type: verbatim
13153 #: ../src/guestfs-actions.pod:5434
13154 #, no-wrap
13155 msgid ""
13156 " int\n"
13157 " guestfs_scrub_freespace (guestfs_h *g,\n"
13158 "                          const char *dir);\n"
13159 "\n"
13160 msgstr ""
13161
13162 # type: textblock
13163 #: ../src/guestfs-actions.pod:5438
13164 msgid ""
13165 "This command creates the directory C<dir> and then fills it with files until "
13166 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13167 "and deletes them.  The intention is to scrub any free space on the partition "
13168 "containing C<dir>."
13169 msgstr ""
13170
13171 # type: =head2
13172 #: ../src/guestfs-actions.pod:5451
13173 msgid "guestfs_set_append"
13174 msgstr ""
13175
13176 # type: verbatim
13177 #: ../src/guestfs-actions.pod:5453
13178 #, no-wrap
13179 msgid ""
13180 " int\n"
13181 " guestfs_set_append (guestfs_h *g,\n"
13182 "                     const char *append);\n"
13183 "\n"
13184 msgstr ""
13185
13186 # type: textblock
13187 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3632
13188 msgid ""
13189 "This function is used to add additional options to the guest kernel command "
13190 "line."
13191 msgstr ""
13192
13193 # type: textblock
13194 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:3635
13195 msgid ""
13196 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13197 "environment variable."
13198 msgstr ""
13199
13200 # type: textblock
13201 #: ../src/guestfs-actions.pod:5463 ../fish/guestfish-actions.pod:3638
13202 msgid ""
13203 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13204 "(libguestfs always adds a few of its own)."
13205 msgstr ""
13206
13207 # type: =head2
13208 #: ../src/guestfs-actions.pod:5470
13209 msgid "guestfs_set_autosync"
13210 msgstr ""
13211
13212 # type: verbatim
13213 #: ../src/guestfs-actions.pod:5472
13214 #, no-wrap
13215 msgid ""
13216 " int\n"
13217 " guestfs_set_autosync (guestfs_h *g,\n"
13218 "                       int autosync);\n"
13219 "\n"
13220 msgstr ""
13221
13222 # type: textblock
13223 #: ../src/guestfs-actions.pod:5476
13224 msgid ""
13225 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13226 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13227 "the handle is closed (also if the program exits without closing handles)."
13228 msgstr ""
13229
13230 # type: textblock
13231 #: ../src/guestfs-actions.pod:5481 ../fish/guestfish-actions.pod:3652
13232 msgid ""
13233 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13234 "disabled by default)."
13235 msgstr ""
13236
13237 # type: =head2
13238 #: ../src/guestfs-actions.pod:5488
13239 msgid "guestfs_set_direct"
13240 msgstr ""
13241
13242 # type: verbatim
13243 #: ../src/guestfs-actions.pod:5490
13244 #, no-wrap
13245 msgid ""
13246 " int\n"
13247 " guestfs_set_direct (guestfs_h *g,\n"
13248 "                     int direct);\n"
13249 "\n"
13250 msgstr ""
13251
13252 # type: textblock
13253 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:3661
13254 msgid ""
13255 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13256 "passed directly through to the appliance once it is launched."
13257 msgstr ""
13258
13259 # type: textblock
13260 #: ../src/guestfs-actions.pod:5498
13261 msgid ""
13262 "One consequence of this is that log messages aren't caught by the library "
13263 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13264 "stdout."
13265 msgstr ""
13266
13267 # type: textblock
13268 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:3669
13269 msgid "You probably don't want to use this unless you know what you are doing."
13270 msgstr ""
13271
13272 # type: textblock
13273 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3672
13274 msgid "The default is disabled."
13275 msgstr ""
13276
13277 # type: =head2
13278 #: ../src/guestfs-actions.pod:5511
13279 msgid "guestfs_set_e2label"
13280 msgstr ""
13281
13282 # type: verbatim
13283 #: ../src/guestfs-actions.pod:5513
13284 #, no-wrap
13285 msgid ""
13286 " int\n"
13287 " guestfs_set_e2label (guestfs_h *g,\n"
13288 "                      const char *device,\n"
13289 "                      const char *label);\n"
13290 "\n"
13291 msgstr ""
13292
13293 # type: textblock
13294 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3678
13295 msgid ""
13296 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13297 "C<label>.  Filesystem labels are limited to 16 characters."
13298 msgstr ""
13299
13300 # type: textblock
13301 #: ../src/guestfs-actions.pod:5522
13302 msgid ""
13303 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13304 "the existing label on a filesystem."
13305 msgstr ""
13306
13307 # type: =head2
13308 #: ../src/guestfs-actions.pod:5529
13309 msgid "guestfs_set_e2uuid"
13310 msgstr ""
13311
13312 # type: verbatim
13313 #: ../src/guestfs-actions.pod:5531
13314 #, no-wrap
13315 msgid ""
13316 " int\n"
13317 " guestfs_set_e2uuid (guestfs_h *g,\n"
13318 "                     const char *device,\n"
13319 "                     const char *uuid);\n"
13320 "\n"
13321 msgstr ""
13322
13323 # type: textblock
13324 #: ../src/guestfs-actions.pod:5536 ../fish/guestfish-actions.pod:3689
13325 msgid ""
13326 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13327 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13328 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13329 msgstr ""
13330
13331 # type: textblock
13332 #: ../src/guestfs-actions.pod:5541
13333 msgid ""
13334 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13335 "the existing UUID of a filesystem."
13336 msgstr ""
13337
13338 # type: =head2
13339 #: ../src/guestfs-actions.pod:5548
13340 msgid "guestfs_set_memsize"
13341 msgstr ""
13342
13343 # type: verbatim
13344 #: ../src/guestfs-actions.pod:5550
13345 #, no-wrap
13346 msgid ""
13347 " int\n"
13348 " guestfs_set_memsize (guestfs_h *g,\n"
13349 "                      int memsize);\n"
13350 "\n"
13351 msgstr ""
13352
13353 # type: textblock
13354 #: ../src/guestfs-actions.pod:5554
13355 msgid ""
13356 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13357 "This only has any effect if called before C<guestfs_launch>."
13358 msgstr ""
13359
13360 # type: textblock
13361 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3707
13362 msgid ""
13363 "You can also change this by setting the environment variable "
13364 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13365 msgstr ""
13366
13367 # type: =head2
13368 #: ../src/guestfs-actions.pod:5569
13369 msgid "guestfs_set_network"
13370 msgstr ""
13371
13372 # type: verbatim
13373 #: ../src/guestfs-actions.pod:5571
13374 #, no-wrap
13375 msgid ""
13376 " int\n"
13377 " guestfs_set_network (guestfs_h *g,\n"
13378 "                      int network);\n"
13379 "\n"
13380 msgstr ""
13381
13382 # type: textblock
13383 #: ../src/guestfs-actions.pod:5575 ../fish/guestfish-actions.pod:3720
13384 msgid ""
13385 "If C<network> is true, then the network is enabled in the libguestfs "
13386 "appliance.  The default is false."
13387 msgstr ""
13388
13389 # type: textblock
13390 #: ../src/guestfs-actions.pod:5578 ../fish/guestfish-actions.pod:3723
13391 msgid ""
13392 "This affects whether commands are able to access the network (see "
13393 "L<guestfs(3)/RUNNING COMMANDS>)."
13394 msgstr ""
13395
13396 # type: textblock
13397 #: ../src/guestfs-actions.pod:5581
13398 msgid ""
13399 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13400 "effect."
13401 msgstr ""
13402
13403 # type: =head2
13404 #: ../src/guestfs-actions.pod:5588
13405 msgid "guestfs_set_path"
13406 msgstr ""
13407
13408 # type: verbatim
13409 #: ../src/guestfs-actions.pod:5590
13410 #, no-wrap
13411 msgid ""
13412 " int\n"
13413 " guestfs_set_path (guestfs_h *g,\n"
13414 "                   const char *searchpath);\n"
13415 "\n"
13416 msgstr ""
13417
13418 # type: textblock
13419 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3735
13420 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13421 msgstr ""
13422
13423 # type: textblock
13424 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:3737
13425 msgid ""
13426 "The default is C<$libdir/guestfs> unless overridden by setting "
13427 "C<LIBGUESTFS_PATH> environment variable."
13428 msgstr ""
13429
13430 # type: textblock
13431 #: ../src/guestfs-actions.pod:5599 ../fish/guestfish-actions.pod:3740
13432 msgid "Setting C<path> to C<NULL> restores the default path."
13433 msgstr ""
13434
13435 # type: =head2
13436 #: ../src/guestfs-actions.pod:5605
13437 msgid "guestfs_set_qemu"
13438 msgstr ""
13439
13440 # type: verbatim
13441 #: ../src/guestfs-actions.pod:5607
13442 #, no-wrap
13443 msgid ""
13444 " int\n"
13445 " guestfs_set_qemu (guestfs_h *g,\n"
13446 "                   const char *qemu);\n"
13447 "\n"
13448 msgstr ""
13449
13450 # type: textblock
13451 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3748
13452 msgid "Set the qemu binary that we will use."
13453 msgstr ""
13454
13455 # type: textblock
13456 #: ../src/guestfs-actions.pod:5613 ../fish/guestfish-actions.pod:3750
13457 msgid "The default is chosen when the library was compiled by the configure script."
13458 msgstr ""
13459
13460 # type: textblock
13461 #: ../src/guestfs-actions.pod:5616 ../fish/guestfish-actions.pod:3753
13462 msgid ""
13463 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13464 "variable."
13465 msgstr ""
13466
13467 # type: textblock
13468 #: ../src/guestfs-actions.pod:5619 ../fish/guestfish-actions.pod:3756
13469 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13470 msgstr ""
13471
13472 # type: textblock
13473 #: ../src/guestfs-actions.pod:5621 ../fish/guestfish-actions.pod:3758
13474 msgid ""
13475 "Note that you should call this function as early as possible after creating "
13476 "the handle.  This is because some pre-launch operations depend on testing "
13477 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13478 "don't retest features, and so you might see inconsistent results.  Using the "
13479 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13480 "the qemu binary at the same time as the handle is created."
13481 msgstr ""
13482
13483 # type: =head2
13484 #: ../src/guestfs-actions.pod:5633
13485 msgid "guestfs_set_recovery_proc"
13486 msgstr ""
13487
13488 # type: verbatim
13489 #: ../src/guestfs-actions.pod:5635
13490 #, no-wrap
13491 msgid ""
13492 " int\n"
13493 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13494 "                            int recoveryproc);\n"
13495 "\n"
13496 msgstr ""
13497
13498 # type: textblock
13499 #: ../src/guestfs-actions.pod:5639
13500 msgid ""
13501 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13502 "not create a recovery process.  The purpose of the recovery process is to "
13503 "stop runaway qemu processes in the case where the main program aborts "
13504 "abruptly."
13505 msgstr ""
13506
13507 # type: textblock
13508 #: ../src/guestfs-actions.pod:5644
13509 msgid ""
13510 "This only has any effect if called before C<guestfs_launch>, and the default "
13511 "is true."
13512 msgstr ""
13513
13514 # type: textblock
13515 #: ../src/guestfs-actions.pod:5647 ../fish/guestfish-actions.pod:3780
13516 msgid ""
13517 "About the only time when you would want to disable this is if the main "
13518 "process will fork itself into the background (\"daemonize\" itself).  In "
13519 "this case the recovery process thinks that the main program has disappeared "
13520 "and so kills qemu, which is not very helpful."
13521 msgstr ""
13522
13523 # type: =head2
13524 #: ../src/guestfs-actions.pod:5657
13525 msgid "guestfs_set_selinux"
13526 msgstr ""
13527
13528 # type: verbatim
13529 #: ../src/guestfs-actions.pod:5659
13530 #, no-wrap
13531 msgid ""
13532 " int\n"
13533 " guestfs_set_selinux (guestfs_h *g,\n"
13534 "                      int selinux);\n"
13535 "\n"
13536 msgstr ""
13537
13538 # type: textblock
13539 #: ../src/guestfs-actions.pod:5663 ../fish/guestfish-actions.pod:3792
13540 msgid ""
13541 "This sets the selinux flag that is passed to the appliance at boot time.  "
13542 "The default is C<selinux=0> (disabled)."
13543 msgstr ""
13544
13545 # type: textblock
13546 #: ../src/guestfs-actions.pod:5666 ../fish/guestfish-actions.pod:3795
13547 msgid ""
13548 "Note that if SELinux is enabled, it is always in Permissive mode "
13549 "(C<enforcing=0>)."
13550 msgstr ""
13551
13552 # type: =head2
13553 #: ../src/guestfs-actions.pod:5676
13554 msgid "guestfs_set_trace"
13555 msgstr ""
13556
13557 # type: verbatim
13558 #: ../src/guestfs-actions.pod:5678
13559 #, no-wrap
13560 msgid ""
13561 " int\n"
13562 " guestfs_set_trace (guestfs_h *g,\n"
13563 "                    int trace);\n"
13564 "\n"
13565 msgstr ""
13566
13567 # type: textblock
13568 #: ../src/guestfs-actions.pod:5682 ../fish/guestfish-actions.pod:3807
13569 msgid ""
13570 "If the command trace flag is set to 1, then commands are printed on stderr "
13571 "before they are executed in a format which is very similar to the one used "
13572 "by guestfish.  In other words, you can run a program with this enabled, and "
13573 "you will get out a script which you can feed to guestfish to perform the "
13574 "same set of actions."
13575 msgstr ""
13576
13577 # type: textblock
13578 #: ../src/guestfs-actions.pod:5689 ../fish/guestfish-actions.pod:3814
13579 msgid ""
13580 "If you want to trace C API calls into libguestfs (and other libraries) then "
13581 "possibly a better way is to use the external ltrace(1) command."
13582 msgstr ""
13583
13584 # type: textblock
13585 #: ../src/guestfs-actions.pod:5693 ../fish/guestfish-actions.pod:3818
13586 msgid ""
13587 "Command traces are disabled unless the environment variable "
13588 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13589 msgstr ""
13590
13591 # type: =head2
13592 #: ../src/guestfs-actions.pod:5700
13593 msgid "guestfs_set_verbose"
13594 msgstr ""
13595
13596 # type: verbatim
13597 #: ../src/guestfs-actions.pod:5702
13598 #, no-wrap
13599 msgid ""
13600 " int\n"
13601 " guestfs_set_verbose (guestfs_h *g,\n"
13602 "                      int verbose);\n"
13603 "\n"
13604 msgstr ""
13605
13606 # type: textblock
13607 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3827
13608 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13609 msgstr ""
13610
13611 # type: textblock
13612 #: ../src/guestfs-actions.pod:5708 ../fish/guestfish-actions.pod:3829
13613 msgid ""
13614 "Verbose messages are disabled unless the environment variable "
13615 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13616 msgstr ""
13617
13618 # type: =head2
13619 #: ../src/guestfs-actions.pod:5715
13620 msgid "guestfs_setcon"
13621 msgstr ""
13622
13623 # type: verbatim
13624 #: ../src/guestfs-actions.pod:5717
13625 #, no-wrap
13626 msgid ""
13627 " int\n"
13628 " guestfs_setcon (guestfs_h *g,\n"
13629 "                 const char *context);\n"
13630 "\n"
13631 msgstr ""
13632
13633 # type: textblock
13634 #: ../src/guestfs-actions.pod:5721 ../fish/guestfish-actions.pod:3836
13635 msgid ""
13636 "This sets the SELinux security context of the daemon to the string "
13637 "C<context>."
13638 msgstr ""
13639
13640 # type: textblock
13641 #: ../src/guestfs-actions.pod:5724 ../fish/guestfish-actions.pod:3839
13642 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13643 msgstr ""
13644
13645 # type: =head2
13646 #: ../src/guestfs-actions.pod:5730
13647 msgid "guestfs_setxattr"
13648 msgstr ""
13649
13650 # type: verbatim
13651 #: ../src/guestfs-actions.pod:5732
13652 #, no-wrap
13653 msgid ""
13654 " int\n"
13655 " guestfs_setxattr (guestfs_h *g,\n"
13656 "                   const char *xattr,\n"
13657 "                   const char *val,\n"
13658 "                   int vallen,\n"
13659 "                   const char *path);\n"
13660 "\n"
13661 msgstr ""
13662
13663 # type: textblock
13664 #: ../src/guestfs-actions.pod:5739 ../fish/guestfish-actions.pod:3845
13665 msgid ""
13666 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13667 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13668 msgstr ""
13669
13670 # type: textblock
13671 #: ../src/guestfs-actions.pod:5743
13672 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13673 msgstr ""
13674
13675 # type: =head2
13676 #: ../src/guestfs-actions.pod:5749
13677 msgid "guestfs_sfdisk"
13678 msgstr ""
13679
13680 # type: verbatim
13681 #: ../src/guestfs-actions.pod:5751
13682 #, no-wrap
13683 msgid ""
13684 " int\n"
13685 " guestfs_sfdisk (guestfs_h *g,\n"
13686 "                 const char *device,\n"
13687 "                 int cyls,\n"
13688 "                 int heads,\n"
13689 "                 int sectors,\n"
13690 "                 char *const *lines);\n"
13691 "\n"
13692 msgstr ""
13693
13694 # type: textblock
13695 #: ../src/guestfs-actions.pod:5759 ../fish/guestfish-actions.pod:3855
13696 msgid ""
13697 "This is a direct interface to the L<sfdisk(8)> program for creating "
13698 "partitions on block devices."
13699 msgstr ""
13700
13701 # type: textblock
13702 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3858
13703 msgid "C<device> should be a block device, for example C</dev/sda>."
13704 msgstr ""
13705
13706 # type: textblock
13707 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:3860
13708 msgid ""
13709 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13710 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13711 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13712 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13713 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13714 "the kernel) cannot work out the right geometry and you will need to tell it."
13715 msgstr ""
13716
13717 # type: textblock
13718 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:3868
13719 msgid ""
13720 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13721 "refer to the L<sfdisk(8)> manpage."
13722 msgstr ""
13723
13724 # type: textblock
13725 #: ../src/guestfs-actions.pod:5775 ../fish/guestfish-actions.pod:3871
13726 msgid ""
13727 "To create a single partition occupying the whole disk, you would pass "
13728 "C<lines> as a single element list, when the single element being the string "
13729 "C<,> (comma)."
13730 msgstr ""
13731
13732 # type: textblock
13733 #: ../src/guestfs-actions.pod:5779
13734 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13735 msgstr ""
13736
13737 # type: =head2
13738 #: ../src/guestfs-actions.pod:5789
13739 msgid "guestfs_sfdiskM"
13740 msgstr ""
13741
13742 # type: verbatim
13743 #: ../src/guestfs-actions.pod:5791
13744 #, no-wrap
13745 msgid ""
13746 " int\n"
13747 " guestfs_sfdiskM (guestfs_h *g,\n"
13748 "                  const char *device,\n"
13749 "                  char *const *lines);\n"
13750 "\n"
13751 msgstr ""
13752
13753 # type: textblock
13754 #: ../src/guestfs-actions.pod:5796
13755 msgid ""
13756 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13757 "partition sizes are specified in megabytes only (rounded to the nearest "
13758 "cylinder) and you don't need to specify the cyls, heads and sectors "
13759 "parameters which were rarely if ever used anyway."
13760 msgstr ""
13761
13762 # type: textblock
13763 #: ../src/guestfs-actions.pod:5802
13764 msgid ""
13765 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13766 "C<guestfs_part_disk>"
13767 msgstr ""
13768
13769 # type: =head2
13770 #: ../src/guestfs-actions.pod:5812
13771 msgid "guestfs_sfdisk_N"
13772 msgstr ""
13773
13774 # type: verbatim
13775 #: ../src/guestfs-actions.pod:5814
13776 #, no-wrap
13777 msgid ""
13778 " int\n"
13779 " guestfs_sfdisk_N (guestfs_h *g,\n"
13780 "                   const char *device,\n"
13781 "                   int partnum,\n"
13782 "                   int cyls,\n"
13783 "                   int heads,\n"
13784 "                   int sectors,\n"
13785 "                   const char *line);\n"
13786 "\n"
13787 msgstr ""
13788
13789 # type: textblock
13790 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3901
13791 msgid ""
13792 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13793 "(note: C<n> counts from 1)."
13794 msgstr ""
13795
13796 # type: textblock
13797 #: ../src/guestfs-actions.pod:5826
13798 msgid ""
13799 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13800 "for the cyls/heads/sectors parameters."
13801 msgstr ""
13802
13803 # type: textblock
13804 #: ../src/guestfs-actions.pod:5829
13805 msgid "See also: C<guestfs_part_add>"
13806 msgstr ""
13807
13808 # type: =head2
13809 #: ../src/guestfs-actions.pod:5838
13810 msgid "guestfs_sfdisk_disk_geometry"
13811 msgstr ""
13812
13813 # type: verbatim
13814 #: ../src/guestfs-actions.pod:5840
13815 #, no-wrap
13816 msgid ""
13817 " char *\n"
13818 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13819 "                               const char *device);\n"
13820 "\n"
13821 msgstr ""
13822
13823 # type: textblock
13824 #: ../src/guestfs-actions.pod:5844
13825 msgid ""
13826 "This displays the disk geometry of C<device> read from the partition table.  "
13827 "Especially in the case where the underlying block device has been resized, "
13828 "this can be different from the kernel's idea of the geometry (see "
13829 "C<guestfs_sfdisk_kernel_geometry>)."
13830 msgstr ""
13831
13832 # type: textblock
13833 #: ../src/guestfs-actions.pod:5849 ../src/guestfs-actions.pod:5865 ../fish/guestfish-actions.pod:3921 ../fish/guestfish-actions.pod:3930
13834 msgid "The result is in human-readable format, and not designed to be parsed."
13835 msgstr ""
13836
13837 # type: =head2
13838 #: ../src/guestfs-actions.pod:5857
13839 msgid "guestfs_sfdisk_kernel_geometry"
13840 msgstr ""
13841
13842 # type: verbatim
13843 #: ../src/guestfs-actions.pod:5859
13844 #, no-wrap
13845 msgid ""
13846 " char *\n"
13847 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13848 "                                 const char *device);\n"
13849 "\n"
13850 msgstr ""
13851
13852 # type: textblock
13853 #: ../src/guestfs-actions.pod:5863 ../fish/guestfish-actions.pod:3928
13854 msgid "This displays the kernel's idea of the geometry of C<device>."
13855 msgstr ""
13856
13857 # type: =head2
13858 #: ../src/guestfs-actions.pod:5873
13859 msgid "guestfs_sfdisk_l"
13860 msgstr ""
13861
13862 # type: verbatim
13863 #: ../src/guestfs-actions.pod:5875
13864 #, no-wrap
13865 msgid ""
13866 " char *\n"
13867 " guestfs_sfdisk_l (guestfs_h *g,\n"
13868 "                   const char *device);\n"
13869 "\n"
13870 msgstr ""
13871
13872 # type: textblock
13873 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3937
13874 msgid ""
13875 "This displays the partition table on C<device>, in the human-readable output "
13876 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13877 msgstr ""
13878
13879 # type: textblock
13880 #: ../src/guestfs-actions.pod:5883
13881 msgid "See also: C<guestfs_part_list>"
13882 msgstr ""
13883
13884 # type: =head2
13885 #: ../src/guestfs-actions.pod:5890
13886 msgid "guestfs_sh"
13887 msgstr ""
13888
13889 # type: verbatim
13890 #: ../src/guestfs-actions.pod:5892
13891 #, no-wrap
13892 msgid ""
13893 " char *\n"
13894 " guestfs_sh (guestfs_h *g,\n"
13895 "             const char *command);\n"
13896 "\n"
13897 msgstr ""
13898
13899 # type: textblock
13900 #: ../src/guestfs-actions.pod:5896 ../fish/guestfish-actions.pod:3947
13901 msgid ""
13902 "This call runs a command from the guest filesystem via the guest's "
13903 "C</bin/sh>."
13904 msgstr ""
13905
13906 # type: textblock
13907 #: ../src/guestfs-actions.pod:5899
13908 msgid "This is like C<guestfs_command>, but passes the command to:"
13909 msgstr ""
13910
13911 # type: verbatim
13912 #: ../src/guestfs-actions.pod:5901 ../fish/guestfish-actions.pod:3952
13913 #, no-wrap
13914 msgid ""
13915 " /bin/sh -c \"command\"\n"
13916 "\n"
13917 msgstr ""
13918
13919 # type: textblock
13920 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3954
13921 msgid ""
13922 "Depending on the guest's shell, this usually results in wildcards being "
13923 "expanded, shell expressions being interpolated and so on."
13924 msgstr ""
13925
13926 # type: textblock
13927 #: ../src/guestfs-actions.pod:5907
13928 msgid "All the provisos about C<guestfs_command> apply to this call."
13929 msgstr ""
13930
13931 # type: =head2
13932 #: ../src/guestfs-actions.pod:5914
13933 msgid "guestfs_sh_lines"
13934 msgstr ""
13935
13936 # type: verbatim
13937 #: ../src/guestfs-actions.pod:5916
13938 #, no-wrap
13939 msgid ""
13940 " char **\n"
13941 " guestfs_sh_lines (guestfs_h *g,\n"
13942 "                   const char *command);\n"
13943 "\n"
13944 msgstr ""
13945
13946 # type: textblock
13947 #: ../src/guestfs-actions.pod:5920
13948 msgid ""
13949 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13950 "lines."
13951 msgstr ""
13952
13953 # type: textblock
13954 #: ../src/guestfs-actions.pod:5923
13955 msgid "See also: C<guestfs_command_lines>"
13956 msgstr ""
13957
13958 # type: =head2
13959 #: ../src/guestfs-actions.pod:5931
13960 msgid "guestfs_sleep"
13961 msgstr ""
13962
13963 # type: verbatim
13964 #: ../src/guestfs-actions.pod:5933
13965 #, no-wrap
13966 msgid ""
13967 " int\n"
13968 " guestfs_sleep (guestfs_h *g,\n"
13969 "                int secs);\n"
13970 "\n"
13971 msgstr ""
13972
13973 # type: textblock
13974 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3973
13975 msgid "Sleep for C<secs> seconds."
13976 msgstr ""
13977
13978 # type: textblock
13979 #: ../src/guestfs-actions.pod:5941
13980 msgid "(Added in 1.0.41)"
13981 msgstr ""
13982
13983 # type: =head2
13984 #: ../src/guestfs-actions.pod:5943 ../src/guestfs-structs.pod:109
13985 msgid "guestfs_stat"
13986 msgstr ""
13987
13988 # type: verbatim
13989 #: ../src/guestfs-actions.pod:5945
13990 #, no-wrap
13991 msgid ""
13992 " struct guestfs_stat *\n"
13993 " guestfs_stat (guestfs_h *g,\n"
13994 "               const char *path);\n"
13995 "\n"
13996 msgstr ""
13997
13998 # type: textblock
13999 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:3981
14000 msgid "This is the same as the C<stat(2)> system call."
14001 msgstr ""
14002
14003 # type: =head2
14004 #: ../src/guestfs-actions.pod:5959 ../src/guestfs-structs.pod:135
14005 msgid "guestfs_statvfs"
14006 msgstr ""
14007
14008 # type: verbatim
14009 #: ../src/guestfs-actions.pod:5961
14010 #, no-wrap
14011 msgid ""
14012 " struct guestfs_statvfs *\n"
14013 " guestfs_statvfs (guestfs_h *g,\n"
14014 "                  const char *path);\n"
14015 "\n"
14016 msgstr ""
14017
14018 # type: textblock
14019 #: ../src/guestfs-actions.pod:5965 ../fish/guestfish-actions.pod:3987
14020 msgid ""
14021 "Returns file system statistics for any mounted file system.  C<path> should "
14022 "be a file or directory in the mounted file system (typically it is the mount "
14023 "point itself, but it doesn't need to be)."
14024 msgstr ""
14025
14026 # type: textblock
14027 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:3991
14028 msgid "This is the same as the C<statvfs(2)> system call."
14029 msgstr ""
14030
14031 # type: textblock
14032 #: ../src/guestfs-actions.pod:5971
14033 msgid ""
14034 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14035 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14036 msgstr ""
14037
14038 # type: =head2
14039 #: ../src/guestfs-actions.pod:5977
14040 msgid "guestfs_strings"
14041 msgstr ""
14042
14043 # type: verbatim
14044 #: ../src/guestfs-actions.pod:5979
14045 #, no-wrap
14046 msgid ""
14047 " char **\n"
14048 " guestfs_strings (guestfs_h *g,\n"
14049 "                  const char *path);\n"
14050 "\n"
14051 msgstr ""
14052
14053 # type: textblock
14054 #: ../src/guestfs-actions.pod:5983 ../fish/guestfish-actions.pod:3997
14055 msgid ""
14056 "This runs the L<strings(1)> command on a file and returns the list of "
14057 "printable strings found."
14058 msgstr ""
14059
14060 # type: =head2
14061 #: ../src/guestfs-actions.pod:5995
14062 msgid "guestfs_strings_e"
14063 msgstr ""
14064
14065 # type: verbatim
14066 #: ../src/guestfs-actions.pod:5997
14067 #, no-wrap
14068 msgid ""
14069 " char **\n"
14070 " guestfs_strings_e (guestfs_h *g,\n"
14071 "                    const char *encoding,\n"
14072 "                    const char *path);\n"
14073 "\n"
14074 msgstr ""
14075
14076 # type: textblock
14077 #: ../src/guestfs-actions.pod:6002
14078 msgid ""
14079 "This is like the C<guestfs_strings> command, but allows you to specify the "
14080 "encoding of strings that are looked for in the source file C<path>."
14081 msgstr ""
14082
14083 # type: textblock
14084 #: ../src/guestfs-actions.pod:6006 ../fish/guestfish-actions.pod:4011
14085 msgid "Allowed encodings are:"
14086 msgstr ""
14087
14088 # type: =item
14089 #: ../src/guestfs-actions.pod:6010 ../fish/guestfish-actions.pod:4015
14090 msgid "s"
14091 msgstr ""
14092
14093 # type: textblock
14094 #: ../src/guestfs-actions.pod:6012
14095 msgid ""
14096 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14097 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14098 msgstr ""
14099
14100 # type: =item
14101 #: ../src/guestfs-actions.pod:6015 ../fish/guestfish-actions.pod:4020
14102 msgid "S"
14103 msgstr ""
14104
14105 # type: textblock
14106 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4022
14107 msgid "Single 8-bit-byte characters."
14108 msgstr ""
14109
14110 # type: =item
14111 #: ../src/guestfs-actions.pod:6019 ../fish/guestfish-actions.pod:4024
14112 msgid "b"
14113 msgstr ""
14114
14115 # type: textblock
14116 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:4026
14117 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14118 msgstr ""
14119
14120 # type: =item
14121 #: ../src/guestfs-actions.pod:6024 ../fish/guestfish-actions.pod:4029
14122 msgid "l (lower case letter L)"
14123 msgstr ""
14124
14125 # type: textblock
14126 #: ../src/guestfs-actions.pod:6026 ../fish/guestfish-actions.pod:4031
14127 msgid ""
14128 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14129 "examining binaries in Windows guests."
14130 msgstr ""
14131
14132 # type: =item
14133 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4034
14134 msgid "B"
14135 msgstr ""
14136
14137 # type: textblock
14138 #: ../src/guestfs-actions.pod:6031 ../fish/guestfish-actions.pod:4036
14139 msgid "32-bit big endian such as UCS-4BE."
14140 msgstr ""
14141
14142 # type: =item
14143 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4038
14144 msgid "L"
14145 msgstr ""
14146
14147 # type: textblock
14148 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4040
14149 msgid "32-bit little endian such as UCS-4LE."
14150 msgstr ""
14151
14152 # type: textblock
14153 #: ../src/guestfs-actions.pod:6039 ../fish/guestfish-actions.pod:4044
14154 msgid "The returned strings are transcoded to UTF-8."
14155 msgstr ""
14156
14157 # type: =head2
14158 #: ../src/guestfs-actions.pod:6050
14159 msgid "guestfs_swapoff_device"
14160 msgstr ""
14161
14162 # type: verbatim
14163 #: ../src/guestfs-actions.pod:6052
14164 #, no-wrap
14165 msgid ""
14166 " int\n"
14167 " guestfs_swapoff_device (guestfs_h *g,\n"
14168 "                         const char *device);\n"
14169 "\n"
14170 msgstr ""
14171
14172 # type: textblock
14173 #: ../src/guestfs-actions.pod:6056
14174 msgid ""
14175 "This command disables the libguestfs appliance swap device or partition "
14176 "named C<device>.  See C<guestfs_swapon_device>."
14177 msgstr ""
14178
14179 # type: =head2
14180 #: ../src/guestfs-actions.pod:6064
14181 msgid "guestfs_swapoff_file"
14182 msgstr ""
14183
14184 # type: verbatim
14185 #: ../src/guestfs-actions.pod:6066
14186 #, no-wrap
14187 msgid ""
14188 " int\n"
14189 " guestfs_swapoff_file (guestfs_h *g,\n"
14190 "                       const char *file);\n"
14191 "\n"
14192 msgstr ""
14193
14194 # type: textblock
14195 #: ../src/guestfs-actions.pod:6070 ../fish/guestfish-actions.pod:4061
14196 msgid "This command disables the libguestfs appliance swap on file."
14197 msgstr ""
14198
14199 # type: =head2
14200 #: ../src/guestfs-actions.pod:6076
14201 msgid "guestfs_swapoff_label"
14202 msgstr ""
14203
14204 # type: verbatim
14205 #: ../src/guestfs-actions.pod:6078
14206 #, no-wrap
14207 msgid ""
14208 " int\n"
14209 " guestfs_swapoff_label (guestfs_h *g,\n"
14210 "                        const char *label);\n"
14211 "\n"
14212 msgstr ""
14213
14214 # type: textblock
14215 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4067
14216 msgid ""
14217 "This command disables the libguestfs appliance swap on labeled swap "
14218 "partition."
14219 msgstr ""
14220
14221 # type: =head2
14222 #: ../src/guestfs-actions.pod:6089
14223 msgid "guestfs_swapoff_uuid"
14224 msgstr ""
14225
14226 # type: verbatim
14227 #: ../src/guestfs-actions.pod:6091
14228 #, no-wrap
14229 msgid ""
14230 " int\n"
14231 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14232 "                       const char *uuid);\n"
14233 "\n"
14234 msgstr ""
14235
14236 # type: textblock
14237 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4074
14238 msgid ""
14239 "This command disables the libguestfs appliance swap partition with the given "
14240 "UUID."
14241 msgstr ""
14242
14243 # type: =head2
14244 #: ../src/guestfs-actions.pod:6102
14245 msgid "guestfs_swapon_device"
14246 msgstr ""
14247
14248 # type: verbatim
14249 #: ../src/guestfs-actions.pod:6104
14250 #, no-wrap
14251 msgid ""
14252 " int\n"
14253 " guestfs_swapon_device (guestfs_h *g,\n"
14254 "                        const char *device);\n"
14255 "\n"
14256 msgstr ""
14257
14258 # type: textblock
14259 #: ../src/guestfs-actions.pod:6108
14260 msgid ""
14261 "This command enables the libguestfs appliance to use the swap device or "
14262 "partition named C<device>.  The increased memory is made available for all "
14263 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14264 msgstr ""
14265
14266 # type: textblock
14267 #: ../src/guestfs-actions.pod:6113 ../fish/guestfish-actions.pod:4086
14268 msgid ""
14269 "Note that you should not swap to existing guest swap partitions unless you "
14270 "know what you are doing.  They may contain hibernation information, or other "
14271 "information that the guest doesn't want you to trash.  You also risk leaking "
14272 "information about the host to the guest this way.  Instead, attach a new "
14273 "host device to the guest and swap on that."
14274 msgstr ""
14275
14276 # type: =head2
14277 #: ../src/guestfs-actions.pod:6124
14278 msgid "guestfs_swapon_file"
14279 msgstr ""
14280
14281 # type: verbatim
14282 #: ../src/guestfs-actions.pod:6126
14283 #, no-wrap
14284 msgid ""
14285 " int\n"
14286 " guestfs_swapon_file (guestfs_h *g,\n"
14287 "                      const char *file);\n"
14288 "\n"
14289 msgstr ""
14290
14291 # type: textblock
14292 #: ../src/guestfs-actions.pod:6130
14293 msgid ""
14294 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14295 "notes."
14296 msgstr ""
14297
14298 # type: =head2
14299 #: ../src/guestfs-actions.pod:6137
14300 msgid "guestfs_swapon_label"
14301 msgstr ""
14302
14303 # type: verbatim
14304 #: ../src/guestfs-actions.pod:6139
14305 #, no-wrap
14306 msgid ""
14307 " int\n"
14308 " guestfs_swapon_label (guestfs_h *g,\n"
14309 "                       const char *label);\n"
14310 "\n"
14311 msgstr ""
14312
14313 # type: textblock
14314 #: ../src/guestfs-actions.pod:6143
14315 msgid ""
14316 "This command enables swap to a labeled swap partition.  See "
14317 "C<guestfs_swapon_device> for other notes."
14318 msgstr ""
14319
14320 # type: =head2
14321 #: ../src/guestfs-actions.pod:6150
14322 msgid "guestfs_swapon_uuid"
14323 msgstr ""
14324
14325 # type: verbatim
14326 #: ../src/guestfs-actions.pod:6152
14327 #, no-wrap
14328 msgid ""
14329 " int\n"
14330 " guestfs_swapon_uuid (guestfs_h *g,\n"
14331 "                      const char *uuid);\n"
14332 "\n"
14333 msgstr ""
14334
14335 # type: textblock
14336 #: ../src/guestfs-actions.pod:6156
14337 msgid ""
14338 "This command enables swap to a swap partition with the given UUID.  See "
14339 "C<guestfs_swapon_device> for other notes."
14340 msgstr ""
14341
14342 # type: =head2
14343 #: ../src/guestfs-actions.pod:6163
14344 msgid "guestfs_sync"
14345 msgstr ""
14346
14347 # type: verbatim
14348 #: ../src/guestfs-actions.pod:6165
14349 #, no-wrap
14350 msgid ""
14351 " int\n"
14352 " guestfs_sync (guestfs_h *g);\n"
14353 "\n"
14354 msgstr ""
14355
14356 # type: textblock
14357 #: ../src/guestfs-actions.pod:6168 ../fish/guestfish-actions.pod:4118
14358 msgid ""
14359 "This syncs the disk, so that any writes are flushed through to the "
14360 "underlying disk image."
14361 msgstr ""
14362
14363 # type: textblock
14364 #: ../src/guestfs-actions.pod:6171 ../fish/guestfish-actions.pod:4121
14365 msgid ""
14366 "You should always call this if you have modified a disk image, before "
14367 "closing the handle."
14368 msgstr ""
14369
14370 # type: =head2
14371 #: ../src/guestfs-actions.pod:6178
14372 msgid "guestfs_tail"
14373 msgstr ""
14374
14375 # type: verbatim
14376 #: ../src/guestfs-actions.pod:6180
14377 #, no-wrap
14378 msgid ""
14379 " char **\n"
14380 " guestfs_tail (guestfs_h *g,\n"
14381 "               const char *path);\n"
14382 "\n"
14383 msgstr ""
14384
14385 # type: textblock
14386 #: ../src/guestfs-actions.pod:6184 ../fish/guestfish-actions.pod:4128
14387 msgid "This command returns up to the last 10 lines of a file as a list of strings."
14388 msgstr ""
14389
14390 # type: =head2
14391 #: ../src/guestfs-actions.pod:6196
14392 msgid "guestfs_tail_n"
14393 msgstr ""
14394
14395 # type: verbatim
14396 #: ../src/guestfs-actions.pod:6198
14397 #, no-wrap
14398 msgid ""
14399 " char **\n"
14400 " guestfs_tail_n (guestfs_h *g,\n"
14401 "                 int nrlines,\n"
14402 "                 const char *path);\n"
14403 "\n"
14404 msgstr ""
14405
14406 # type: textblock
14407 #: ../src/guestfs-actions.pod:6203 ../fish/guestfish-actions.pod:4138
14408 msgid ""
14409 "If the parameter C<nrlines> is a positive number, this returns the last "
14410 "C<nrlines> lines of the file C<path>."
14411 msgstr ""
14412
14413 # type: textblock
14414 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4141
14415 msgid ""
14416 "If the parameter C<nrlines> is a negative number, this returns lines from "
14417 "the file C<path>, starting with the C<-nrlines>th line."
14418 msgstr ""
14419
14420 # type: =head2
14421 #: ../src/guestfs-actions.pod:6220
14422 msgid "guestfs_tar_in"
14423 msgstr ""
14424
14425 # type: verbatim
14426 #: ../src/guestfs-actions.pod:6222
14427 #, no-wrap
14428 msgid ""
14429 " int\n"
14430 " guestfs_tar_in (guestfs_h *g,\n"
14431 "                 const char *tarfile,\n"
14432 "                 const char *directory);\n"
14433 "\n"
14434 msgstr ""
14435
14436 # type: textblock
14437 #: ../src/guestfs-actions.pod:6227 ../fish/guestfish-actions.pod:4153
14438 msgid ""
14439 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14440 "tar file) into C<directory>."
14441 msgstr ""
14442
14443 # type: textblock
14444 #: ../src/guestfs-actions.pod:6230
14445 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14446 msgstr ""
14447
14448 # type: textblock
14449 #: ../src/guestfs-actions.pod:6235 ../src/guestfs-actions.pod:6252 ../src/guestfs-actions.pod:6268 ../src/guestfs-actions.pod:6284
14450 msgid "(Added in 1.0.3)"
14451 msgstr ""
14452
14453 # type: =head2
14454 #: ../src/guestfs-actions.pod:6237
14455 msgid "guestfs_tar_out"
14456 msgstr ""
14457
14458 # type: verbatim
14459 #: ../src/guestfs-actions.pod:6239
14460 #, no-wrap
14461 msgid ""
14462 " int\n"
14463 " guestfs_tar_out (guestfs_h *g,\n"
14464 "                  const char *directory,\n"
14465 "                  const char *tarfile);\n"
14466 "\n"
14467 msgstr ""
14468
14469 # type: textblock
14470 #: ../src/guestfs-actions.pod:6244 ../fish/guestfish-actions.pod:4165
14471 msgid ""
14472 "This command packs the contents of C<directory> and downloads it to local "
14473 "file C<tarfile>."
14474 msgstr ""
14475
14476 # type: textblock
14477 #: ../src/guestfs-actions.pod:6247
14478 msgid ""
14479 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14480 "C<guestfs_txz_out>."
14481 msgstr ""
14482
14483 # type: =head2
14484 #: ../src/guestfs-actions.pod:6254
14485 msgid "guestfs_tgz_in"
14486 msgstr ""
14487
14488 # type: verbatim
14489 #: ../src/guestfs-actions.pod:6256
14490 #, no-wrap
14491 msgid ""
14492 " int\n"
14493 " guestfs_tgz_in (guestfs_h *g,\n"
14494 "                 const char *tarball,\n"
14495 "                 const char *directory);\n"
14496 "\n"
14497 msgstr ""
14498
14499 # type: textblock
14500 #: ../src/guestfs-actions.pod:6261 ../fish/guestfish-actions.pod:4177
14501 msgid ""
14502 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14503 "tar file) into C<directory>."
14504 msgstr ""
14505
14506 # type: textblock
14507 #: ../src/guestfs-actions.pod:6264
14508 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14509 msgstr ""
14510
14511 # type: =head2
14512 #: ../src/guestfs-actions.pod:6270
14513 msgid "guestfs_tgz_out"
14514 msgstr ""
14515
14516 # type: verbatim
14517 #: ../src/guestfs-actions.pod:6272
14518 #, no-wrap
14519 msgid ""
14520 " int\n"
14521 " guestfs_tgz_out (guestfs_h *g,\n"
14522 "                  const char *directory,\n"
14523 "                  const char *tarball);\n"
14524 "\n"
14525 msgstr ""
14526
14527 # type: textblock
14528 #: ../src/guestfs-actions.pod:6277 ../fish/guestfish-actions.pod:4188
14529 msgid ""
14530 "This command packs the contents of C<directory> and downloads it to local "
14531 "file C<tarball>."
14532 msgstr ""
14533
14534 # type: textblock
14535 #: ../src/guestfs-actions.pod:6280
14536 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14537 msgstr ""
14538
14539 # type: =head2
14540 #: ../src/guestfs-actions.pod:6286
14541 msgid "guestfs_touch"
14542 msgstr ""
14543
14544 # type: verbatim
14545 #: ../src/guestfs-actions.pod:6288
14546 #, no-wrap
14547 msgid ""
14548 " int\n"
14549 " guestfs_touch (guestfs_h *g,\n"
14550 "                const char *path);\n"
14551 "\n"
14552 msgstr ""
14553
14554 # type: textblock
14555 #: ../src/guestfs-actions.pod:6292 ../fish/guestfish-actions.pod:4199
14556 msgid ""
14557 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14558 "timestamps on a file, or, if the file does not exist, to create a new "
14559 "zero-length file."
14560 msgstr ""
14561
14562 # type: textblock
14563 #: ../src/guestfs-actions.pod:6296 ../fish/guestfish-actions.pod:4203
14564 msgid ""
14565 "This command only works on regular files, and will fail on other file types "
14566 "such as directories, symbolic links, block special etc."
14567 msgstr ""
14568
14569 # type: =head2
14570 #: ../src/guestfs-actions.pod:6303
14571 msgid "guestfs_truncate"
14572 msgstr ""
14573
14574 # type: verbatim
14575 #: ../src/guestfs-actions.pod:6305
14576 #, no-wrap
14577 msgid ""
14578 " int\n"
14579 " guestfs_truncate (guestfs_h *g,\n"
14580 "                   const char *path);\n"
14581 "\n"
14582 msgstr ""
14583
14584 # type: textblock
14585 #: ../src/guestfs-actions.pod:6309 ../fish/guestfish-actions.pod:4210
14586 msgid ""
14587 "This command truncates C<path> to a zero-length file.  The file must exist "
14588 "already."
14589 msgstr ""
14590
14591 # type: =head2
14592 #: ../src/guestfs-actions.pod:6316
14593 msgid "guestfs_truncate_size"
14594 msgstr ""
14595
14596 # type: verbatim
14597 #: ../src/guestfs-actions.pod:6318
14598 #, no-wrap
14599 msgid ""
14600 " int\n"
14601 " guestfs_truncate_size (guestfs_h *g,\n"
14602 "                        const char *path,\n"
14603 "                        int64_t size);\n"
14604 "\n"
14605 msgstr ""
14606
14607 # type: textblock
14608 #: ../src/guestfs-actions.pod:6323 ../fish/guestfish-actions.pod:4217
14609 msgid ""
14610 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14611 "already."
14612 msgstr ""
14613
14614 # type: textblock
14615 #: ../src/guestfs-actions.pod:6326
14616 msgid ""
14617 "If the current file size is less than C<size> then the file is extended to "
14618 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14619 "blocks are not allocated for the file until you write to it).  To create a "
14620 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14621 msgstr ""
14622
14623 # type: =head2
14624 #: ../src/guestfs-actions.pod:6336
14625 msgid "guestfs_tune2fs_l"
14626 msgstr ""
14627
14628 # type: verbatim
14629 #: ../src/guestfs-actions.pod:6338
14630 #, no-wrap
14631 msgid ""
14632 " char **\n"
14633 " guestfs_tune2fs_l (guestfs_h *g,\n"
14634 "                    const char *device);\n"
14635 "\n"
14636 msgstr ""
14637
14638 # type: textblock
14639 #: ../src/guestfs-actions.pod:6342 ../fish/guestfish-actions.pod:4230
14640 msgid ""
14641 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14642 "C<device>."
14643 msgstr ""
14644
14645 # type: textblock
14646 #: ../src/guestfs-actions.pod:6345 ../fish/guestfish-actions.pod:4233
14647 msgid ""
14648 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14649 "for more details.  The list of fields returned isn't clearly defined, and "
14650 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14651 "and the filesystem itself."
14652 msgstr ""
14653
14654 # type: =head2
14655 #: ../src/guestfs-actions.pod:6358
14656 msgid "guestfs_txz_in"
14657 msgstr ""
14658
14659 # type: verbatim
14660 #: ../src/guestfs-actions.pod:6360
14661 #, no-wrap
14662 msgid ""
14663 " int\n"
14664 " guestfs_txz_in (guestfs_h *g,\n"
14665 "                 const char *tarball,\n"
14666 "                 const char *directory);\n"
14667 "\n"
14668 msgstr ""
14669
14670 # type: textblock
14671 #: ../src/guestfs-actions.pod:6365 ../fish/guestfish-actions.pod:4242
14672 msgid ""
14673 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14674 "tar file) into C<directory>."
14675 msgstr ""
14676
14677 # type: =head2
14678 #: ../src/guestfs-actions.pod:6372
14679 msgid "guestfs_txz_out"
14680 msgstr ""
14681
14682 # type: verbatim
14683 #: ../src/guestfs-actions.pod:6374
14684 #, no-wrap
14685 msgid ""
14686 " int\n"
14687 " guestfs_txz_out (guestfs_h *g,\n"
14688 "                  const char *directory,\n"
14689 "                  const char *tarball);\n"
14690 "\n"
14691 msgstr ""
14692
14693 # type: textblock
14694 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4251
14695 msgid ""
14696 "This command packs the contents of C<directory> and downloads it to local "
14697 "file C<tarball> (as an xz compressed tar archive)."
14698 msgstr ""
14699
14700 # type: =head2
14701 #: ../src/guestfs-actions.pod:6386
14702 msgid "guestfs_umask"
14703 msgstr ""
14704
14705 # type: verbatim
14706 #: ../src/guestfs-actions.pod:6388
14707 #, no-wrap
14708 msgid ""
14709 " int\n"
14710 " guestfs_umask (guestfs_h *g,\n"
14711 "                int mask);\n"
14712 "\n"
14713 msgstr ""
14714
14715 # type: textblock
14716 #: ../src/guestfs-actions.pod:6392 ../fish/guestfish-actions.pod:4260
14717 msgid ""
14718 "This function sets the mask used for creating new files and device nodes to "
14719 "C<mask & 0777>."
14720 msgstr ""
14721
14722 # type: textblock
14723 #: ../src/guestfs-actions.pod:6395 ../fish/guestfish-actions.pod:4263
14724 msgid ""
14725 "Typical umask values would be C<022> which creates new files with "
14726 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14727 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14728 msgstr ""
14729
14730 # type: textblock
14731 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4268
14732 msgid ""
14733 "The default umask is C<022>.  This is important because it means that "
14734 "directories and device nodes will be created with C<0644> or C<0755> mode "
14735 "even if you specify C<0777>."
14736 msgstr ""
14737
14738 # type: textblock
14739 #: ../src/guestfs-actions.pod:6404
14740 msgid ""
14741 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14742 "C<guestfs_mkdir>."
14743 msgstr ""
14744
14745 # type: textblock
14746 #: ../src/guestfs-actions.pod:6407 ../fish/guestfish-actions.pod:4275
14747 msgid "This call returns the previous umask."
14748 msgstr ""
14749
14750 # type: =head2
14751 #: ../src/guestfs-actions.pod:6413
14752 msgid "guestfs_umount"
14753 msgstr ""
14754
14755 # type: verbatim
14756 #: ../src/guestfs-actions.pod:6415
14757 #, no-wrap
14758 msgid ""
14759 " int\n"
14760 " guestfs_umount (guestfs_h *g,\n"
14761 "                 const char *pathordevice);\n"
14762 "\n"
14763 msgstr ""
14764
14765 # type: textblock
14766 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4283
14767 msgid ""
14768 "This unmounts the given filesystem.  The filesystem may be specified either "
14769 "by its mountpoint (path) or the device which contains the filesystem."
14770 msgstr ""
14771
14772 # type: =head2
14773 #: ../src/guestfs-actions.pod:6427
14774 msgid "guestfs_umount_all"
14775 msgstr ""
14776
14777 # type: verbatim
14778 #: ../src/guestfs-actions.pod:6429
14779 #, no-wrap
14780 msgid ""
14781 " int\n"
14782 " guestfs_umount_all (guestfs_h *g);\n"
14783 "\n"
14784 msgstr ""
14785
14786 # type: textblock
14787 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4293
14788 msgid "This unmounts all mounted filesystems."
14789 msgstr ""
14790
14791 # type: textblock
14792 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4295
14793 msgid "Some internal mounts are not unmounted by this call."
14794 msgstr ""
14795
14796 # type: =head2
14797 #: ../src/guestfs-actions.pod:6440
14798 msgid "guestfs_upload"
14799 msgstr ""
14800
14801 # type: verbatim
14802 #: ../src/guestfs-actions.pod:6442
14803 #, no-wrap
14804 msgid ""
14805 " int\n"
14806 " guestfs_upload (guestfs_h *g,\n"
14807 "                 const char *filename,\n"
14808 "                 const char *remotefilename);\n"
14809 "\n"
14810 msgstr ""
14811
14812 # type: textblock
14813 #: ../src/guestfs-actions.pod:6447 ../src/guestfs-actions.pod:6471 ../fish/guestfish-actions.pod:4301 ../fish/guestfish-actions.pod:4314
14814 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14815 msgstr ""
14816
14817 # type: textblock
14818 #: ../src/guestfs-actions.pod:6452
14819 msgid "See also C<guestfs_download>."
14820 msgstr ""
14821
14822 # type: =head2
14823 #: ../src/guestfs-actions.pod:6463
14824 msgid "guestfs_upload_offset"
14825 msgstr ""
14826
14827 # type: verbatim
14828 #: ../src/guestfs-actions.pod:6465
14829 #, no-wrap
14830 msgid ""
14831 " int\n"
14832 " guestfs_upload_offset (guestfs_h *g,\n"
14833 "                        const char *filename,\n"
14834 "                        const char *remotefilename,\n"
14835 "                        int64_t offset);\n"
14836 "\n"
14837 msgstr ""
14838
14839 # type: textblock
14840 #: ../src/guestfs-actions.pod:6474 ../fish/guestfish-actions.pod:4317
14841 msgid ""
14842 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14843 "The intention is to overwrite parts of existing files or devices, although "
14844 "if a non-existant file is specified then it is created with a \"hole\" "
14845 "before C<offset>.  The size of the data written is implicit in the size of "
14846 "the source C<filename>."
14847 msgstr ""
14848
14849 # type: textblock
14850 #: ../src/guestfs-actions.pod:6481
14851 msgid ""
14852 "Note that there is no limit on the amount of data that can be uploaded with "
14853 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14854 "full amount unless an error occurs."
14855 msgstr ""
14856
14857 # type: textblock
14858 #: ../src/guestfs-actions.pod:6486
14859 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14860 msgstr ""
14861
14862 # type: =head2
14863 #: ../src/guestfs-actions.pod:6497
14864 msgid "guestfs_utimens"
14865 msgstr ""
14866
14867 # type: verbatim
14868 #: ../src/guestfs-actions.pod:6499
14869 #, no-wrap
14870 msgid ""
14871 " int\n"
14872 " guestfs_utimens (guestfs_h *g,\n"
14873 "                  const char *path,\n"
14874 "                  int64_t atsecs,\n"
14875 "                  int64_t atnsecs,\n"
14876 "                  int64_t mtsecs,\n"
14877 "                  int64_t mtnsecs);\n"
14878 "\n"
14879 msgstr ""
14880
14881 # type: textblock
14882 #: ../src/guestfs-actions.pod:6507 ../fish/guestfish-actions.pod:4337
14883 msgid "This command sets the timestamps of a file with nanosecond precision."
14884 msgstr ""
14885
14886 # type: textblock
14887 #: ../src/guestfs-actions.pod:6510 ../fish/guestfish-actions.pod:4340
14888 msgid ""
14889 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14890 "from the epoch."
14891 msgstr ""
14892
14893 # type: textblock
14894 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4343
14895 msgid ""
14896 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14897 "nanoseconds from the epoch."
14898 msgstr ""
14899
14900 # type: textblock
14901 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4346
14902 msgid ""
14903 "If the C<*nsecs> field contains the special value C<-1> then the "
14904 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14905 "ignored in this case)."
14906 msgstr ""
14907
14908 # type: textblock
14909 #: ../src/guestfs-actions.pod:6520 ../fish/guestfish-actions.pod:4350
14910 msgid ""
14911 "If the C<*nsecs> field contains the special value C<-2> then the "
14912 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14913 "in this case)."
14914 msgstr ""
14915
14916 # type: =head2
14917 #: ../src/guestfs-actions.pod:6528 ../src/guestfs-structs.pod:175
14918 msgid "guestfs_version"
14919 msgstr ""
14920
14921 # type: verbatim
14922 #: ../src/guestfs-actions.pod:6530
14923 #, no-wrap
14924 msgid ""
14925 " struct guestfs_version *\n"
14926 " guestfs_version (guestfs_h *g);\n"
14927 "\n"
14928 msgstr ""
14929
14930 # type: textblock
14931 #: ../src/guestfs-actions.pod:6533 ../fish/guestfish-actions.pod:4358
14932 msgid "Return the libguestfs version number that the program is linked against."
14933 msgstr ""
14934
14935 # type: textblock
14936 #: ../src/guestfs-actions.pod:6536 ../fish/guestfish-actions.pod:4361
14937 msgid ""
14938 "Note that because of dynamic linking this is not necessarily the version of "
14939 "libguestfs that you compiled against.  You can compile the program, and then "
14940 "at runtime dynamically link against a completely different C<libguestfs.so> "
14941 "library."
14942 msgstr ""
14943
14944 # type: textblock
14945 #: ../src/guestfs-actions.pod:6541 ../fish/guestfish-actions.pod:4366
14946 msgid ""
14947 "This call was added in version C<1.0.58>.  In previous versions of "
14948 "libguestfs there was no way to get the version number.  From C code you can "
14949 "use dynamic linker functions to find out if this symbol exists (if it "
14950 "doesn't, then it's an earlier version)."
14951 msgstr ""
14952
14953 # type: textblock
14954 #: ../src/guestfs-actions.pod:6547 ../fish/guestfish-actions.pod:4372
14955 msgid ""
14956 "The call returns a structure with four elements.  The first three (C<major>, "
14957 "C<minor> and C<release>) are numbers and correspond to the usual version "
14958 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14959 "but may be used for distro-specific information."
14960 msgstr ""
14961
14962 # type: textblock
14963 #: ../src/guestfs-actions.pod:6553 ../fish/guestfish-actions.pod:4378
14964 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14965 msgstr ""
14966
14967 # type: textblock
14968 #: ../src/guestfs-actions.pod:6556 ../fish/guestfish-actions.pod:4381
14969 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14970 msgstr ""
14971
14972 # type: textblock
14973 #: ../src/guestfs-actions.pod:6558
14974 msgid ""
14975 "I<Note:> Don't use this call to test for availability of features.  In "
14976 "enterprise distributions we backport features from later versions into "
14977 "earlier versions, making this an unreliable way to test for features.  Use "
14978 "C<guestfs_available> instead."
14979 msgstr ""
14980
14981 # type: textblock
14982 #: ../src/guestfs-actions.pod:6564
14983 msgid ""
14984 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14985 "error.  I<The caller must call C<guestfs_free_version> after use>."
14986 msgstr ""
14987
14988 # type: textblock
14989 #: ../src/guestfs-actions.pod:6568
14990 msgid "(Added in 1.0.58)"
14991 msgstr ""
14992
14993 # type: =head2
14994 #: ../src/guestfs-actions.pod:6570
14995 msgid "guestfs_vfs_label"
14996 msgstr ""
14997
14998 # type: verbatim
14999 #: ../src/guestfs-actions.pod:6572
15000 #, no-wrap
15001 msgid ""
15002 " char *\n"
15003 " guestfs_vfs_label (guestfs_h *g,\n"
15004 "                    const char *device);\n"
15005 "\n"
15006 msgstr ""
15007
15008 # type: textblock
15009 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4393
15010 msgid "This returns the filesystem label of the filesystem on C<device>."
15011 msgstr ""
15012
15013 # type: textblock
15014 #: ../src/guestfs-actions.pod:6579 ../fish/guestfish-actions.pod:4396
15015 msgid "If the filesystem is unlabeled, this returns the empty string."
15016 msgstr ""
15017
15018 # type: textblock
15019 #: ../src/guestfs-actions.pod:6581
15020 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15021 msgstr ""
15022
15023 # type: textblock
15024 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6623
15025 msgid "(Added in 1.3.18)"
15026 msgstr ""
15027
15028 # type: =head2
15029 #: ../src/guestfs-actions.pod:6588
15030 msgid "guestfs_vfs_type"
15031 msgstr ""
15032
15033 # type: verbatim
15034 #: ../src/guestfs-actions.pod:6590
15035 #, no-wrap
15036 msgid ""
15037 " char *\n"
15038 " guestfs_vfs_type (guestfs_h *g,\n"
15039 "                   const char *device);\n"
15040 "\n"
15041 msgstr ""
15042
15043 # type: textblock
15044 #: ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4404
15045 msgid ""
15046 "This command gets the filesystem type corresponding to the filesystem on "
15047 "C<device>."
15048 msgstr ""
15049
15050 # type: textblock
15051 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4407
15052 msgid ""
15053 "For most filesystems, the result is the name of the Linux VFS module which "
15054 "would be used to mount this filesystem if you mounted it without specifying "
15055 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15056 msgstr ""
15057
15058 # type: =head2
15059 #: ../src/guestfs-actions.pod:6607
15060 msgid "guestfs_vfs_uuid"
15061 msgstr ""
15062
15063 # type: verbatim
15064 #: ../src/guestfs-actions.pod:6609
15065 #, no-wrap
15066 msgid ""
15067 " char *\n"
15068 " guestfs_vfs_uuid (guestfs_h *g,\n"
15069 "                   const char *device);\n"
15070 "\n"
15071 msgstr ""
15072
15073 # type: textblock
15074 #: ../src/guestfs-actions.pod:6613 ../fish/guestfish-actions.pod:4416
15075 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15076 msgstr ""
15077
15078 # type: textblock
15079 #: ../src/guestfs-actions.pod:6616 ../fish/guestfish-actions.pod:4419
15080 msgid "If the filesystem does not have a UUID, this returns the empty string."
15081 msgstr ""
15082
15083 # type: textblock
15084 #: ../src/guestfs-actions.pod:6618
15085 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15086 msgstr ""
15087
15088 # type: =head2
15089 #: ../src/guestfs-actions.pod:6625
15090 msgid "guestfs_vg_activate"
15091 msgstr ""
15092
15093 # type: verbatim
15094 #: ../src/guestfs-actions.pod:6627
15095 #, no-wrap
15096 msgid ""
15097 " int\n"
15098 " guestfs_vg_activate (guestfs_h *g,\n"
15099 "                      int activate,\n"
15100 "                      char *const *volgroups);\n"
15101 "\n"
15102 msgstr ""
15103
15104 # type: textblock
15105 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4427
15106 msgid ""
15107 "This command activates or (if C<activate> is false) deactivates all logical "
15108 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15109 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15110 "deactivated, then those devices disappear."
15111 msgstr ""
15112
15113 # type: textblock
15114 #: ../src/guestfs-actions.pod:6638 ../fish/guestfish-actions.pod:4433
15115 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15116 msgstr ""
15117
15118 # type: textblock
15119 #: ../src/guestfs-actions.pod:6640 ../fish/guestfish-actions.pod:4435
15120 msgid ""
15121 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15122 "activated or deactivated."
15123 msgstr ""
15124
15125 # type: =head2
15126 #: ../src/guestfs-actions.pod:6647
15127 msgid "guestfs_vg_activate_all"
15128 msgstr ""
15129
15130 # type: verbatim
15131 #: ../src/guestfs-actions.pod:6649
15132 #, no-wrap
15133 msgid ""
15134 " int\n"
15135 " guestfs_vg_activate_all (guestfs_h *g,\n"
15136 "                          int activate);\n"
15137 "\n"
15138 msgstr ""
15139
15140 # type: textblock
15141 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4442
15142 msgid ""
15143 "This command activates or (if C<activate> is false) deactivates all logical "
15144 "volumes in all volume groups.  If activated, then they are made known to the "
15145 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15146 "those devices disappear."
15147 msgstr ""
15148
15149 # type: textblock
15150 #: ../src/guestfs-actions.pod:6659 ../fish/guestfish-actions.pod:4448
15151 msgid "This command is the same as running C<vgchange -a y|n>"
15152 msgstr ""
15153
15154 # type: =head2
15155 #: ../src/guestfs-actions.pod:6665
15156 msgid "guestfs_vgcreate"
15157 msgstr ""
15158
15159 # type: verbatim
15160 #: ../src/guestfs-actions.pod:6667
15161 #, no-wrap
15162 msgid ""
15163 " int\n"
15164 " guestfs_vgcreate (guestfs_h *g,\n"
15165 "                   const char *volgroup,\n"
15166 "                   char *const *physvols);\n"
15167 "\n"
15168 msgstr ""
15169
15170 # type: textblock
15171 #: ../src/guestfs-actions.pod:6672 ../fish/guestfish-actions.pod:4454
15172 msgid ""
15173 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15174 "of physical volumes C<physvols>."
15175 msgstr ""
15176
15177 # type: =head2
15178 #: ../src/guestfs-actions.pod:6679
15179 msgid "guestfs_vglvuuids"
15180 msgstr ""
15181
15182 # type: verbatim
15183 #: ../src/guestfs-actions.pod:6681
15184 #, no-wrap
15185 msgid ""
15186 " char **\n"
15187 " guestfs_vglvuuids (guestfs_h *g,\n"
15188 "                    const char *vgname);\n"
15189 "\n"
15190 msgstr ""
15191
15192 # type: textblock
15193 #: ../src/guestfs-actions.pod:6685 ../fish/guestfish-actions.pod:4461
15194 msgid ""
15195 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15196 "volumes created in this volume group."
15197 msgstr ""
15198
15199 # type: textblock
15200 #: ../src/guestfs-actions.pod:6688
15201 msgid ""
15202 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15203 "associate logical volumes and volume groups."
15204 msgstr ""
15205
15206 # type: textblock
15207 #: ../src/guestfs-actions.pod:6691
15208 msgid "See also C<guestfs_vgpvuuids>."
15209 msgstr ""
15210
15211 # type: =head2
15212 #: ../src/guestfs-actions.pod:6699
15213 msgid "guestfs_vgpvuuids"
15214 msgstr ""
15215
15216 # type: verbatim
15217 #: ../src/guestfs-actions.pod:6701
15218 #, no-wrap
15219 msgid ""
15220 " char **\n"
15221 " guestfs_vgpvuuids (guestfs_h *g,\n"
15222 "                    const char *vgname);\n"
15223 "\n"
15224 msgstr ""
15225
15226 # type: textblock
15227 #: ../src/guestfs-actions.pod:6705 ../fish/guestfish-actions.pod:4473
15228 msgid ""
15229 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15230 "volumes that this volume group resides on."
15231 msgstr ""
15232
15233 # type: textblock
15234 #: ../src/guestfs-actions.pod:6708
15235 msgid ""
15236 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15237 "associate physical volumes and volume groups."
15238 msgstr ""
15239
15240 # type: textblock
15241 #: ../src/guestfs-actions.pod:6711
15242 msgid "See also C<guestfs_vglvuuids>."
15243 msgstr ""
15244
15245 # type: =head2
15246 #: ../src/guestfs-actions.pod:6719
15247 msgid "guestfs_vgremove"
15248 msgstr ""
15249
15250 # type: verbatim
15251 #: ../src/guestfs-actions.pod:6721
15252 #, no-wrap
15253 msgid ""
15254 " int\n"
15255 " guestfs_vgremove (guestfs_h *g,\n"
15256 "                   const char *vgname);\n"
15257 "\n"
15258 msgstr ""
15259
15260 # type: textblock
15261 #: ../src/guestfs-actions.pod:6725 ../fish/guestfish-actions.pod:4485
15262 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15263 msgstr ""
15264
15265 # type: textblock
15266 #: ../src/guestfs-actions.pod:6727 ../fish/guestfish-actions.pod:4487
15267 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15268 msgstr ""
15269
15270 # type: =head2
15271 #: ../src/guestfs-actions.pod:6734
15272 msgid "guestfs_vgrename"
15273 msgstr ""
15274
15275 # type: verbatim
15276 #: ../src/guestfs-actions.pod:6736
15277 #, no-wrap
15278 msgid ""
15279 " int\n"
15280 " guestfs_vgrename (guestfs_h *g,\n"
15281 "                   const char *volgroup,\n"
15282 "                   const char *newvolgroup);\n"
15283 "\n"
15284 msgstr ""
15285
15286 # type: textblock
15287 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4494
15288 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15289 msgstr ""
15290
15291 # type: =head2
15292 #: ../src/guestfs-actions.pod:6747
15293 msgid "guestfs_vgs"
15294 msgstr ""
15295
15296 # type: verbatim
15297 #: ../src/guestfs-actions.pod:6749
15298 #, no-wrap
15299 msgid ""
15300 " char **\n"
15301 " guestfs_vgs (guestfs_h *g);\n"
15302 "\n"
15303 msgstr ""
15304
15305 # type: textblock
15306 #: ../src/guestfs-actions.pod:6752 ../fish/guestfish-actions.pod:4500
15307 msgid ""
15308 "List all the volumes groups detected.  This is the equivalent of the "
15309 "L<vgs(8)> command."
15310 msgstr ""
15311
15312 # type: textblock
15313 #: ../src/guestfs-actions.pod:6755 ../fish/guestfish-actions.pod:4503
15314 msgid ""
15315 "This returns a list of just the volume group names that were detected "
15316 "(eg. C<VolGroup00>)."
15317 msgstr ""
15318
15319 # type: textblock
15320 #: ../src/guestfs-actions.pod:6758
15321 msgid "See also C<guestfs_vgs_full>."
15322 msgstr ""
15323
15324 # type: =head2
15325 #: ../src/guestfs-actions.pod:6766
15326 msgid "guestfs_vgs_full"
15327 msgstr ""
15328
15329 # type: verbatim
15330 #: ../src/guestfs-actions.pod:6768
15331 #, no-wrap
15332 msgid ""
15333 " struct guestfs_lvm_vg_list *\n"
15334 " guestfs_vgs_full (guestfs_h *g);\n"
15335 "\n"
15336 msgstr ""
15337
15338 # type: textblock
15339 #: ../src/guestfs-actions.pod:6771 ../fish/guestfish-actions.pod:4512
15340 msgid ""
15341 "List all the volumes groups detected.  This is the equivalent of the "
15342 "L<vgs(8)> command.  The \"full\" version includes all fields."
15343 msgstr ""
15344
15345 # type: textblock
15346 #: ../src/guestfs-actions.pod:6774
15347 msgid ""
15348 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15349 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
15350 "use>."
15351 msgstr ""
15352
15353 # type: =head2
15354 #: ../src/guestfs-actions.pod:6780
15355 msgid "guestfs_vgscan"
15356 msgstr ""
15357
15358 # type: verbatim
15359 #: ../src/guestfs-actions.pod:6782
15360 #, no-wrap
15361 msgid ""
15362 " int\n"
15363 " guestfs_vgscan (guestfs_h *g);\n"
15364 "\n"
15365 msgstr ""
15366
15367 # type: textblock
15368 #: ../src/guestfs-actions.pod:6785 ../fish/guestfish-actions.pod:4519
15369 msgid ""
15370 "This rescans all block devices and rebuilds the list of LVM physical "
15371 "volumes, volume groups and logical volumes."
15372 msgstr ""
15373
15374 # type: =head2
15375 #: ../src/guestfs-actions.pod:6792
15376 msgid "guestfs_vguuid"
15377 msgstr ""
15378
15379 # type: verbatim
15380 #: ../src/guestfs-actions.pod:6794
15381 #, no-wrap
15382 msgid ""
15383 " char *\n"
15384 " guestfs_vguuid (guestfs_h *g,\n"
15385 "                 const char *vgname);\n"
15386 "\n"
15387 msgstr ""
15388
15389 # type: textblock
15390 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4526
15391 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15392 msgstr ""
15393
15394 # type: =head2
15395 #: ../src/guestfs-actions.pod:6805
15396 msgid "guestfs_wait_ready"
15397 msgstr ""
15398
15399 # type: verbatim
15400 #: ../src/guestfs-actions.pod:6807
15401 #, no-wrap
15402 msgid ""
15403 " int\n"
15404 " guestfs_wait_ready (guestfs_h *g);\n"
15405 "\n"
15406 msgstr ""
15407
15408 # type: textblock
15409 #: ../src/guestfs-actions.pod:6810
15410 msgid "This function is a no op."
15411 msgstr ""
15412
15413 # type: textblock
15414 #: ../src/guestfs-actions.pod:6812
15415 msgid ""
15416 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15417 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15418 "is no longer necessary because C<guestfs_launch> now does the waiting."
15419 msgstr ""
15420
15421 # type: textblock
15422 #: ../src/guestfs-actions.pod:6817
15423 msgid ""
15424 "If you see any calls to this function in code then you can just remove them, "
15425 "unless you want to retain compatibility with older versions of the API."
15426 msgstr ""
15427
15428 # type: =head2
15429 #: ../src/guestfs-actions.pod:6825
15430 msgid "guestfs_wc_c"
15431 msgstr ""
15432
15433 # type: verbatim
15434 #: ../src/guestfs-actions.pod:6827
15435 #, no-wrap
15436 msgid ""
15437 " int\n"
15438 " guestfs_wc_c (guestfs_h *g,\n"
15439 "               const char *path);\n"
15440 "\n"
15441 msgstr ""
15442
15443 # type: textblock
15444 #: ../src/guestfs-actions.pod:6831 ../fish/guestfish-actions.pod:4532
15445 msgid ""
15446 "This command counts the characters in a file, using the C<wc -c> external "
15447 "command."
15448 msgstr ""
15449
15450 # type: =head2
15451 #: ../src/guestfs-actions.pod:6838
15452 msgid "guestfs_wc_l"
15453 msgstr ""
15454
15455 # type: verbatim
15456 #: ../src/guestfs-actions.pod:6840
15457 #, no-wrap
15458 msgid ""
15459 " int\n"
15460 " guestfs_wc_l (guestfs_h *g,\n"
15461 "               const char *path);\n"
15462 "\n"
15463 msgstr ""
15464
15465 # type: textblock
15466 #: ../src/guestfs-actions.pod:6844 ../fish/guestfish-actions.pod:4539
15467 msgid ""
15468 "This command counts the lines in a file, using the C<wc -l> external "
15469 "command."
15470 msgstr ""
15471
15472 # type: =head2
15473 #: ../src/guestfs-actions.pod:6851
15474 msgid "guestfs_wc_w"
15475 msgstr ""
15476
15477 # type: verbatim
15478 #: ../src/guestfs-actions.pod:6853
15479 #, no-wrap
15480 msgid ""
15481 " int\n"
15482 " guestfs_wc_w (guestfs_h *g,\n"
15483 "               const char *path);\n"
15484 "\n"
15485 msgstr ""
15486
15487 # type: textblock
15488 #: ../src/guestfs-actions.pod:6857 ../fish/guestfish-actions.pod:4546
15489 msgid ""
15490 "This command counts the words in a file, using the C<wc -w> external "
15491 "command."
15492 msgstr ""
15493
15494 # type: =head2
15495 #: ../src/guestfs-actions.pod:6864
15496 msgid "guestfs_write"
15497 msgstr ""
15498
15499 # type: verbatim
15500 #: ../src/guestfs-actions.pod:6866
15501 #, no-wrap
15502 msgid ""
15503 " int\n"
15504 " guestfs_write (guestfs_h *g,\n"
15505 "                const char *path,\n"
15506 "                const char *content,\n"
15507 "                size_t content_size);\n"
15508 "\n"
15509 msgstr ""
15510
15511 # type: textblock
15512 #: ../src/guestfs-actions.pod:6872 ../fish/guestfish-actions.pod:4553
15513 msgid ""
15514 "This call creates a file called C<path>.  The content of the file is the "
15515 "string C<content> (which can contain any 8 bit data)."
15516 msgstr ""
15517
15518 # type: =head2
15519 #: ../src/guestfs-actions.pod:6882
15520 msgid "guestfs_write_file"
15521 msgstr ""
15522
15523 # type: verbatim
15524 #: ../src/guestfs-actions.pod:6884
15525 #, no-wrap
15526 msgid ""
15527 " int\n"
15528 " guestfs_write_file (guestfs_h *g,\n"
15529 "                     const char *path,\n"
15530 "                     const char *content,\n"
15531 "                     int size);\n"
15532 "\n"
15533 msgstr ""
15534
15535 # type: textblock
15536 #: ../src/guestfs-actions.pod:6890 ../fish/guestfish-actions.pod:4563
15537 msgid ""
15538 "This call creates a file called C<path>.  The contents of the file is the "
15539 "string C<content> (which can contain any 8 bit data), with length C<size>."
15540 msgstr ""
15541
15542 # type: textblock
15543 #: ../src/guestfs-actions.pod:6894 ../fish/guestfish-actions.pod:4567
15544 msgid ""
15545 "As a special case, if C<size> is C<0> then the length is calculated using "
15546 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15547 msgstr ""
15548
15549 # type: textblock
15550 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4571
15551 msgid ""
15552 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15553 "I<not> work, even if the length is specified."
15554 msgstr ""
15555
15556 # type: textblock
15557 #: ../src/guestfs-actions.pod:6906 ../fish/guestfish-actions.pod:4577
15558 msgid "This function is deprecated.  In new code, use the C<write> call instead."
15559 msgstr ""
15560
15561 # type: =head2
15562 #: ../src/guestfs-actions.pod:6915
15563 msgid "guestfs_zegrep"
15564 msgstr ""
15565
15566 # type: verbatim
15567 #: ../src/guestfs-actions.pod:6917
15568 #, no-wrap
15569 msgid ""
15570 " char **\n"
15571 " guestfs_zegrep (guestfs_h *g,\n"
15572 "                 const char *regex,\n"
15573 "                 const char *path);\n"
15574 "\n"
15575 msgstr ""
15576
15577 # type: textblock
15578 #: ../src/guestfs-actions.pod:6922 ../fish/guestfish-actions.pod:4588
15579 msgid "This calls the external C<zegrep> program and returns the matching lines."
15580 msgstr ""
15581
15582 # type: =head2
15583 #: ../src/guestfs-actions.pod:6934
15584 msgid "guestfs_zegrepi"
15585 msgstr ""
15586
15587 # type: verbatim
15588 #: ../src/guestfs-actions.pod:6936
15589 #, no-wrap
15590 msgid ""
15591 " char **\n"
15592 " guestfs_zegrepi (guestfs_h *g,\n"
15593 "                  const char *regex,\n"
15594 "                  const char *path);\n"
15595 "\n"
15596 msgstr ""
15597
15598 # type: textblock
15599 #: ../src/guestfs-actions.pod:6941 ../fish/guestfish-actions.pod:4598
15600 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15601 msgstr ""
15602
15603 # type: =head2
15604 #: ../src/guestfs-actions.pod:6953
15605 msgid "guestfs_zero"
15606 msgstr ""
15607
15608 # type: verbatim
15609 #: ../src/guestfs-actions.pod:6955
15610 #, no-wrap
15611 msgid ""
15612 " int\n"
15613 " guestfs_zero (guestfs_h *g,\n"
15614 "               const char *device);\n"
15615 "\n"
15616 msgstr ""
15617
15618 # type: textblock
15619 #: ../src/guestfs-actions.pod:6959 ../fish/guestfish-actions.pod:4608
15620 msgid "This command writes zeroes over the first few blocks of C<device>."
15621 msgstr ""
15622
15623 # type: textblock
15624 #: ../src/guestfs-actions.pod:6961 ../fish/guestfish-actions.pod:4610
15625 msgid ""
15626 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15627 "securely wipe the device).  It should be sufficient to remove any partition "
15628 "tables, filesystem superblocks and so on."
15629 msgstr ""
15630
15631 # type: textblock
15632 #: ../src/guestfs-actions.pod:6965
15633 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15634 msgstr ""
15635
15636 # type: =head2
15637 #: ../src/guestfs-actions.pod:6976
15638 msgid "guestfs_zero_device"
15639 msgstr ""
15640
15641 # type: verbatim
15642 #: ../src/guestfs-actions.pod:6978
15643 #, no-wrap
15644 msgid ""
15645 " int\n"
15646 " guestfs_zero_device (guestfs_h *g,\n"
15647 "                      const char *device);\n"
15648 "\n"
15649 msgstr ""
15650
15651 # type: textblock
15652 #: ../src/guestfs-actions.pod:6982
15653 msgid ""
15654 "This command writes zeroes over the entire C<device>.  Compare with "
15655 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15656 msgstr ""
15657
15658 # type: textblock
15659 #: ../src/guestfs-actions.pod:6996
15660 msgid "(Added in 1.3.1)"
15661 msgstr ""
15662
15663 # type: =head2
15664 #: ../src/guestfs-actions.pod:6998
15665 msgid "guestfs_zerofree"
15666 msgstr ""
15667
15668 # type: verbatim
15669 #: ../src/guestfs-actions.pod:7000
15670 #, no-wrap
15671 msgid ""
15672 " int\n"
15673 " guestfs_zerofree (guestfs_h *g,\n"
15674 "                   const char *device);\n"
15675 "\n"
15676 msgstr ""
15677
15678 # type: textblock
15679 #: ../src/guestfs-actions.pod:7004 ../fish/guestfish-actions.pod:4631
15680 msgid ""
15681 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15682 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15683 "possible to compress the filesystem more effectively."
15684 msgstr ""
15685
15686 # type: textblock
15687 #: ../src/guestfs-actions.pod:7009 ../fish/guestfish-actions.pod:4636
15688 msgid "You should B<not> run this program if the filesystem is mounted."
15689 msgstr ""
15690
15691 # type: textblock
15692 #: ../src/guestfs-actions.pod:7012 ../fish/guestfish-actions.pod:4639
15693 msgid ""
15694 "It is possible that using this program can damage the filesystem or data on "
15695 "the filesystem."
15696 msgstr ""
15697
15698 # type: =head2
15699 #: ../src/guestfs-actions.pod:7019
15700 msgid "guestfs_zfgrep"
15701 msgstr ""
15702
15703 # type: verbatim
15704 #: ../src/guestfs-actions.pod:7021
15705 #, no-wrap
15706 msgid ""
15707 " char **\n"
15708 " guestfs_zfgrep (guestfs_h *g,\n"
15709 "                 const char *pattern,\n"
15710 "                 const char *path);\n"
15711 "\n"
15712 msgstr ""
15713
15714 # type: textblock
15715 #: ../src/guestfs-actions.pod:7026 ../fish/guestfish-actions.pod:4646
15716 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15717 msgstr ""
15718
15719 # type: =head2
15720 #: ../src/guestfs-actions.pod:7038
15721 msgid "guestfs_zfgrepi"
15722 msgstr ""
15723
15724 # type: verbatim
15725 #: ../src/guestfs-actions.pod:7040
15726 #, no-wrap
15727 msgid ""
15728 " char **\n"
15729 " guestfs_zfgrepi (guestfs_h *g,\n"
15730 "                  const char *pattern,\n"
15731 "                  const char *path);\n"
15732 "\n"
15733 msgstr ""
15734
15735 # type: textblock
15736 #: ../src/guestfs-actions.pod:7045 ../fish/guestfish-actions.pod:4656
15737 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15738 msgstr ""
15739
15740 # type: =head2
15741 #: ../src/guestfs-actions.pod:7057
15742 msgid "guestfs_zfile"
15743 msgstr ""
15744
15745 # type: verbatim
15746 #: ../src/guestfs-actions.pod:7059
15747 #, no-wrap
15748 msgid ""
15749 " char *\n"
15750 " guestfs_zfile (guestfs_h *g,\n"
15751 "                const char *meth,\n"
15752 "                const char *path);\n"
15753 "\n"
15754 msgstr ""
15755
15756 # type: textblock
15757 #: ../src/guestfs-actions.pod:7064 ../fish/guestfish-actions.pod:4666
15758 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15759 msgstr ""
15760
15761 # type: textblock
15762 #: ../src/guestfs-actions.pod:7067 ../fish/guestfish-actions.pod:4669
15763 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15764 msgstr ""
15765
15766 # type: textblock
15767 #: ../src/guestfs-actions.pod:7069
15768 msgid ""
15769 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15770 "files."
15771 msgstr ""
15772
15773 # type: textblock
15774 #: ../src/guestfs-actions.pod:7075 ../fish/guestfish-actions.pod:4674
15775 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15776 msgstr ""
15777
15778 # type: =head2
15779 #: ../src/guestfs-actions.pod:7084
15780 msgid "guestfs_zgrep"
15781 msgstr ""
15782
15783 # type: verbatim
15784 #: ../src/guestfs-actions.pod:7086
15785 #, no-wrap
15786 msgid ""
15787 " char **\n"
15788 " guestfs_zgrep (guestfs_h *g,\n"
15789 "                const char *regex,\n"
15790 "                const char *path);\n"
15791 "\n"
15792 msgstr ""
15793
15794 # type: textblock
15795 #: ../src/guestfs-actions.pod:7091 ../fish/guestfish-actions.pod:4685
15796 msgid "This calls the external C<zgrep> program and returns the matching lines."
15797 msgstr ""
15798
15799 # type: =head2
15800 #: ../src/guestfs-actions.pod:7103
15801 msgid "guestfs_zgrepi"
15802 msgstr ""
15803
15804 # type: verbatim
15805 #: ../src/guestfs-actions.pod:7105
15806 #, no-wrap
15807 msgid ""
15808 " char **\n"
15809 " guestfs_zgrepi (guestfs_h *g,\n"
15810 "                 const char *regex,\n"
15811 "                 const char *path);\n"
15812 "\n"
15813 msgstr ""
15814
15815 # type: textblock
15816 #: ../src/guestfs-actions.pod:7110 ../fish/guestfish-actions.pod:4695
15817 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15818 msgstr ""
15819
15820 # type: =item
15821 #: ../src/guestfs-availability.pod:3
15822 msgid "B<augeas>"
15823 msgstr ""
15824
15825 # type: textblock
15826 #: ../src/guestfs-availability.pod:5
15827 msgid ""
15828 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15829 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15830 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15831 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15832 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15833 msgstr ""
15834
15835 # type: =item
15836 #: ../src/guestfs-availability.pod:21
15837 msgid "B<inotify>"
15838 msgstr ""
15839
15840 # type: textblock
15841 #: ../src/guestfs-availability.pod:23
15842 msgid ""
15843 "The following functions: L</guestfs_inotify_add_watch> "
15844 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15845 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15846 msgstr ""
15847
15848 # type: =item
15849 #: ../src/guestfs-availability.pod:31
15850 msgid "B<linuxfsuuid>"
15851 msgstr ""
15852
15853 # type: textblock
15854 #: ../src/guestfs-availability.pod:33
15855 msgid ""
15856 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15857 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15858 msgstr ""
15859
15860 # type: =item
15861 #: ../src/guestfs-availability.pod:40
15862 msgid "B<linuxmodules>"
15863 msgstr ""
15864
15865 # type: textblock
15866 #: ../src/guestfs-availability.pod:42
15867 msgid "The following functions: L</guestfs_modprobe>"
15868 msgstr ""
15869
15870 # type: =item
15871 #: ../src/guestfs-availability.pod:45
15872 msgid "B<linuxxattrs>"
15873 msgstr ""
15874
15875 # type: textblock
15876 #: ../src/guestfs-availability.pod:47
15877 msgid ""
15878 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15879 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15880 "L</guestfs_removexattr> L</guestfs_setxattr>"
15881 msgstr ""
15882
15883 # type: =item
15884 #: ../src/guestfs-availability.pod:56
15885 msgid "B<luks>"
15886 msgstr ""
15887
15888 # type: textblock
15889 #: ../src/guestfs-availability.pod:58
15890 msgid ""
15891 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15892 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15893 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15894 msgstr ""
15895
15896 # type: =item
15897 #: ../src/guestfs-availability.pod:67
15898 msgid "B<lvm2>"
15899 msgstr ""
15900
15901 # type: textblock
15902 #: ../src/guestfs-availability.pod:69
15903 msgid ""
15904 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15905 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15906 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15907 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15908 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15909 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15910 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15911 "L</guestfs_vgs_full>"
15912 msgstr ""
15913
15914 # type: =item
15915 #: ../src/guestfs-availability.pod:92
15916 msgid "B<mknod>"
15917 msgstr ""
15918
15919 # type: textblock
15920 #: ../src/guestfs-availability.pod:94
15921 msgid ""
15922 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15923 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15924 msgstr ""
15925
15926 # type: =item
15927 #: ../src/guestfs-availability.pod:100
15928 msgid "B<ntfs3g>"
15929 msgstr ""
15930
15931 # type: textblock
15932 #: ../src/guestfs-availability.pod:102
15933 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15934 msgstr ""
15935
15936 # type: =item
15937 #: ../src/guestfs-availability.pod:105
15938 msgid "B<ntfsprogs>"
15939 msgstr ""
15940
15941 # type: textblock
15942 #: ../src/guestfs-availability.pod:107
15943 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15944 msgstr ""
15945
15946 # type: =item
15947 #: ../src/guestfs-availability.pod:111
15948 msgid "B<realpath>"
15949 msgstr ""
15950
15951 # type: textblock
15952 #: ../src/guestfs-availability.pod:113
15953 msgid "The following functions: L</guestfs_realpath>"
15954 msgstr ""
15955
15956 # type: =item
15957 #: ../src/guestfs-availability.pod:116
15958 msgid "B<scrub>"
15959 msgstr ""
15960
15961 # type: textblock
15962 #: ../src/guestfs-availability.pod:118
15963 msgid ""
15964 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15965 "L</guestfs_scrub_freespace>"
15966 msgstr ""
15967
15968 # type: =item
15969 #: ../src/guestfs-availability.pod:123
15970 msgid "B<selinux>"
15971 msgstr ""
15972
15973 # type: textblock
15974 #: ../src/guestfs-availability.pod:125
15975 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15976 msgstr ""
15977
15978 # type: =item
15979 #: ../src/guestfs-availability.pod:129
15980 msgid "B<xz>"
15981 msgstr ""
15982
15983 # type: textblock
15984 #: ../src/guestfs-availability.pod:131
15985 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15986 msgstr ""
15987
15988 # type: =item
15989 #: ../src/guestfs-availability.pod:135
15990 msgid "B<zerofree>"
15991 msgstr ""
15992
15993 # type: textblock
15994 #: ../src/guestfs-availability.pod:137
15995 msgid "The following functions: L</guestfs_zerofree>"
15996 msgstr ""
15997
15998 # type: =head2
15999 #: ../src/guestfs-structs.pod:1
16000 msgid "guestfs_int_bool"
16001 msgstr ""
16002
16003 # type: verbatim
16004 #: ../src/guestfs-structs.pod:3
16005 #, no-wrap
16006 msgid ""
16007 " struct guestfs_int_bool {\n"
16008 "   int32_t i;\n"
16009 "   int32_t b;\n"
16010 " };\n"
16011 " \n"
16012 msgstr ""
16013
16014 # type: verbatim
16015 #: ../src/guestfs-structs.pod:8
16016 #, no-wrap
16017 msgid ""
16018 " struct guestfs_int_bool_list {\n"
16019 "   uint32_t len; /* Number of elements in list. */\n"
16020 "   struct guestfs_int_bool *val; /* Elements. */\n"
16021 " };\n"
16022 " \n"
16023 msgstr ""
16024
16025 # type: verbatim
16026 #: ../src/guestfs-structs.pod:13
16027 #, no-wrap
16028 msgid ""
16029 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16030 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16031 "\n"
16032 msgstr ""
16033
16034 # type: =head2
16035 #: ../src/guestfs-structs.pod:16
16036 msgid "guestfs_lvm_pv"
16037 msgstr ""
16038
16039 # type: verbatim
16040 #: ../src/guestfs-structs.pod:18
16041 #, no-wrap
16042 msgid ""
16043 " struct guestfs_lvm_pv {\n"
16044 "   char *pv_name;\n"
16045 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16046 "*/\n"
16047 "   char pv_uuid[32];\n"
16048 "   char *pv_fmt;\n"
16049 "   uint64_t pv_size;\n"
16050 "   uint64_t dev_size;\n"
16051 "   uint64_t pv_free;\n"
16052 "   uint64_t pv_used;\n"
16053 "   char *pv_attr;\n"
16054 "   int64_t pv_pe_count;\n"
16055 "   int64_t pv_pe_alloc_count;\n"
16056 "   char *pv_tags;\n"
16057 "   uint64_t pe_start;\n"
16058 "   int64_t pv_mda_count;\n"
16059 "   uint64_t pv_mda_free;\n"
16060 " };\n"
16061 " \n"
16062 msgstr ""
16063
16064 # type: verbatim
16065 #: ../src/guestfs-structs.pod:36
16066 #, no-wrap
16067 msgid ""
16068 " struct guestfs_lvm_pv_list {\n"
16069 "   uint32_t len; /* Number of elements in list. */\n"
16070 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16071 " };\n"
16072 " \n"
16073 msgstr ""
16074
16075 # type: verbatim
16076 #: ../src/guestfs-structs.pod:41
16077 #, no-wrap
16078 msgid ""
16079 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16080 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16081 "\n"
16082 msgstr ""
16083
16084 # type: =head2
16085 #: ../src/guestfs-structs.pod:44
16086 msgid "guestfs_lvm_vg"
16087 msgstr ""
16088
16089 # type: verbatim
16090 #: ../src/guestfs-structs.pod:46
16091 #, no-wrap
16092 msgid ""
16093 " struct guestfs_lvm_vg {\n"
16094 "   char *vg_name;\n"
16095 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16096 "*/\n"
16097 "   char vg_uuid[32];\n"
16098 "   char *vg_fmt;\n"
16099 "   char *vg_attr;\n"
16100 "   uint64_t vg_size;\n"
16101 "   uint64_t vg_free;\n"
16102 "   char *vg_sysid;\n"
16103 "   uint64_t vg_extent_size;\n"
16104 "   int64_t vg_extent_count;\n"
16105 "   int64_t vg_free_count;\n"
16106 "   int64_t max_lv;\n"
16107 "   int64_t max_pv;\n"
16108 "   int64_t pv_count;\n"
16109 "   int64_t lv_count;\n"
16110 "   int64_t snap_count;\n"
16111 "   int64_t vg_seqno;\n"
16112 "   char *vg_tags;\n"
16113 "   int64_t vg_mda_count;\n"
16114 "   uint64_t vg_mda_free;\n"
16115 " };\n"
16116 " \n"
16117 msgstr ""
16118
16119 # type: verbatim
16120 #: ../src/guestfs-structs.pod:69
16121 #, no-wrap
16122 msgid ""
16123 " struct guestfs_lvm_vg_list {\n"
16124 "   uint32_t len; /* Number of elements in list. */\n"
16125 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16126 " };\n"
16127 " \n"
16128 msgstr ""
16129
16130 # type: verbatim
16131 #: ../src/guestfs-structs.pod:74
16132 #, no-wrap
16133 msgid ""
16134 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16135 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16136 "\n"
16137 msgstr ""
16138
16139 # type: =head2
16140 #: ../src/guestfs-structs.pod:77
16141 msgid "guestfs_lvm_lv"
16142 msgstr ""
16143
16144 # type: verbatim
16145 #: ../src/guestfs-structs.pod:79
16146 #, no-wrap
16147 msgid ""
16148 " struct guestfs_lvm_lv {\n"
16149 "   char *lv_name;\n"
16150 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16151 "*/\n"
16152 "   char lv_uuid[32];\n"
16153 "   char *lv_attr;\n"
16154 "   int64_t lv_major;\n"
16155 "   int64_t lv_minor;\n"
16156 "   int64_t lv_kernel_major;\n"
16157 "   int64_t lv_kernel_minor;\n"
16158 "   uint64_t lv_size;\n"
16159 "   int64_t seg_count;\n"
16160 "   char *origin;\n"
16161 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16162 "   float snap_percent;\n"
16163 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16164 "   float copy_percent;\n"
16165 "   char *move_pv;\n"
16166 "   char *lv_tags;\n"
16167 "   char *mirror_log;\n"
16168 "   char *modules;\n"
16169 " };\n"
16170 " \n"
16171 msgstr ""
16172
16173 # type: verbatim
16174 #: ../src/guestfs-structs.pod:101
16175 #, no-wrap
16176 msgid ""
16177 " struct guestfs_lvm_lv_list {\n"
16178 "   uint32_t len; /* Number of elements in list. */\n"
16179 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16180 " };\n"
16181 " \n"
16182 msgstr ""
16183
16184 # type: verbatim
16185 #: ../src/guestfs-structs.pod:106
16186 #, no-wrap
16187 msgid ""
16188 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16189 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16190 "\n"
16191 msgstr ""
16192
16193 # type: verbatim
16194 #: ../src/guestfs-structs.pod:111
16195 #, no-wrap
16196 msgid ""
16197 " struct guestfs_stat {\n"
16198 "   int64_t dev;\n"
16199 "   int64_t ino;\n"
16200 "   int64_t mode;\n"
16201 "   int64_t nlink;\n"
16202 "   int64_t uid;\n"
16203 "   int64_t gid;\n"
16204 "   int64_t rdev;\n"
16205 "   int64_t size;\n"
16206 "   int64_t blksize;\n"
16207 "   int64_t blocks;\n"
16208 "   int64_t atime;\n"
16209 "   int64_t mtime;\n"
16210 "   int64_t ctime;\n"
16211 " };\n"
16212 " \n"
16213 msgstr ""
16214
16215 # type: verbatim
16216 #: ../src/guestfs-structs.pod:127
16217 #, no-wrap
16218 msgid ""
16219 " struct guestfs_stat_list {\n"
16220 "   uint32_t len; /* Number of elements in list. */\n"
16221 "   struct guestfs_stat *val; /* Elements. */\n"
16222 " };\n"
16223 " \n"
16224 msgstr ""
16225
16226 # type: verbatim
16227 #: ../src/guestfs-structs.pod:132
16228 #, no-wrap
16229 msgid ""
16230 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16231 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16232 "\n"
16233 msgstr ""
16234
16235 # type: verbatim
16236 #: ../src/guestfs-structs.pod:137
16237 #, no-wrap
16238 msgid ""
16239 " struct guestfs_statvfs {\n"
16240 "   int64_t bsize;\n"
16241 "   int64_t frsize;\n"
16242 "   int64_t blocks;\n"
16243 "   int64_t bfree;\n"
16244 "   int64_t bavail;\n"
16245 "   int64_t files;\n"
16246 "   int64_t ffree;\n"
16247 "   int64_t favail;\n"
16248 "   int64_t fsid;\n"
16249 "   int64_t flag;\n"
16250 "   int64_t namemax;\n"
16251 " };\n"
16252 " \n"
16253 msgstr ""
16254
16255 # type: verbatim
16256 #: ../src/guestfs-structs.pod:151
16257 #, no-wrap
16258 msgid ""
16259 " struct guestfs_statvfs_list {\n"
16260 "   uint32_t len; /* Number of elements in list. */\n"
16261 "   struct guestfs_statvfs *val; /* Elements. */\n"
16262 " };\n"
16263 " \n"
16264 msgstr ""
16265
16266 # type: verbatim
16267 #: ../src/guestfs-structs.pod:156
16268 #, no-wrap
16269 msgid ""
16270 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16271 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16272 "\n"
16273 msgstr ""
16274
16275 # type: =head2
16276 #: ../src/guestfs-structs.pod:159
16277 msgid "guestfs_dirent"
16278 msgstr ""
16279
16280 # type: verbatim
16281 #: ../src/guestfs-structs.pod:161
16282 #, no-wrap
16283 msgid ""
16284 " struct guestfs_dirent {\n"
16285 "   int64_t ino;\n"
16286 "   char ftyp;\n"
16287 "   char *name;\n"
16288 " };\n"
16289 " \n"
16290 msgstr ""
16291
16292 # type: verbatim
16293 #: ../src/guestfs-structs.pod:167
16294 #, no-wrap
16295 msgid ""
16296 " struct guestfs_dirent_list {\n"
16297 "   uint32_t len; /* Number of elements in list. */\n"
16298 "   struct guestfs_dirent *val; /* Elements. */\n"
16299 " };\n"
16300 " \n"
16301 msgstr ""
16302
16303 # type: verbatim
16304 #: ../src/guestfs-structs.pod:172
16305 #, no-wrap
16306 msgid ""
16307 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16308 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16309 "\n"
16310 msgstr ""
16311
16312 # type: verbatim
16313 #: ../src/guestfs-structs.pod:177
16314 #, no-wrap
16315 msgid ""
16316 " struct guestfs_version {\n"
16317 "   int64_t major;\n"
16318 "   int64_t minor;\n"
16319 "   int64_t release;\n"
16320 "   char *extra;\n"
16321 " };\n"
16322 " \n"
16323 msgstr ""
16324
16325 # type: verbatim
16326 #: ../src/guestfs-structs.pod:184
16327 #, no-wrap
16328 msgid ""
16329 " struct guestfs_version_list {\n"
16330 "   uint32_t len; /* Number of elements in list. */\n"
16331 "   struct guestfs_version *val; /* Elements. */\n"
16332 " };\n"
16333 " \n"
16334 msgstr ""
16335
16336 # type: verbatim
16337 #: ../src/guestfs-structs.pod:189
16338 #, no-wrap
16339 msgid ""
16340 " void guestfs_free_version (struct guestfs_free_version *);\n"
16341 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16342 "\n"
16343 msgstr ""
16344
16345 # type: =head2
16346 #: ../src/guestfs-structs.pod:192
16347 msgid "guestfs_xattr"
16348 msgstr ""
16349
16350 # type: verbatim
16351 #: ../src/guestfs-structs.pod:194
16352 #, no-wrap
16353 msgid ""
16354 " struct guestfs_xattr {\n"
16355 "   char *attrname;\n"
16356 "   /* The next two fields describe a byte array. */\n"
16357 "   uint32_t attrval_len;\n"
16358 "   char *attrval;\n"
16359 " };\n"
16360 " \n"
16361 msgstr ""
16362
16363 # type: verbatim
16364 #: ../src/guestfs-structs.pod:201
16365 #, no-wrap
16366 msgid ""
16367 " struct guestfs_xattr_list {\n"
16368 "   uint32_t len; /* Number of elements in list. */\n"
16369 "   struct guestfs_xattr *val; /* Elements. */\n"
16370 " };\n"
16371 " \n"
16372 msgstr ""
16373
16374 # type: verbatim
16375 #: ../src/guestfs-structs.pod:206
16376 #, no-wrap
16377 msgid ""
16378 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16379 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16380 "\n"
16381 msgstr ""
16382
16383 # type: =head2
16384 #: ../src/guestfs-structs.pod:209
16385 msgid "guestfs_inotify_event"
16386 msgstr ""
16387
16388 # type: verbatim
16389 #: ../src/guestfs-structs.pod:211
16390 #, no-wrap
16391 msgid ""
16392 " struct guestfs_inotify_event {\n"
16393 "   int64_t in_wd;\n"
16394 "   uint32_t in_mask;\n"
16395 "   uint32_t in_cookie;\n"
16396 "   char *in_name;\n"
16397 " };\n"
16398 " \n"
16399 msgstr ""
16400
16401 # type: verbatim
16402 #: ../src/guestfs-structs.pod:218
16403 #, no-wrap
16404 msgid ""
16405 " struct guestfs_inotify_event_list {\n"
16406 "   uint32_t len; /* Number of elements in list. */\n"
16407 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16408 " };\n"
16409 " \n"
16410 msgstr ""
16411
16412 # type: verbatim
16413 #: ../src/guestfs-structs.pod:223
16414 #, no-wrap
16415 msgid ""
16416 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16417 " void guestfs_free_inotify_event_list (struct "
16418 "guestfs_free_inotify_event_list *);\n"
16419 "\n"
16420 msgstr ""
16421
16422 # type: =head2
16423 #: ../src/guestfs-structs.pod:226
16424 msgid "guestfs_partition"
16425 msgstr ""
16426
16427 # type: verbatim
16428 #: ../src/guestfs-structs.pod:228
16429 #, no-wrap
16430 msgid ""
16431 " struct guestfs_partition {\n"
16432 "   int32_t part_num;\n"
16433 "   uint64_t part_start;\n"
16434 "   uint64_t part_end;\n"
16435 "   uint64_t part_size;\n"
16436 " };\n"
16437 " \n"
16438 msgstr ""
16439
16440 # type: verbatim
16441 #: ../src/guestfs-structs.pod:235
16442 #, no-wrap
16443 msgid ""
16444 " struct guestfs_partition_list {\n"
16445 "   uint32_t len; /* Number of elements in list. */\n"
16446 "   struct guestfs_partition *val; /* Elements. */\n"
16447 " };\n"
16448 " \n"
16449 msgstr ""
16450
16451 # type: verbatim
16452 #: ../src/guestfs-structs.pod:240
16453 #, no-wrap
16454 msgid ""
16455 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16456 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16457 "\n"
16458 msgstr ""
16459
16460 # type: =head2
16461 #: ../src/guestfs-structs.pod:243
16462 msgid "guestfs_application"
16463 msgstr ""
16464
16465 # type: verbatim
16466 #: ../src/guestfs-structs.pod:245
16467 #, no-wrap
16468 msgid ""
16469 " struct guestfs_application {\n"
16470 "   char *app_name;\n"
16471 "   char *app_display_name;\n"
16472 "   int32_t app_epoch;\n"
16473 "   char *app_version;\n"
16474 "   char *app_release;\n"
16475 "   char *app_install_path;\n"
16476 "   char *app_trans_path;\n"
16477 "   char *app_publisher;\n"
16478 "   char *app_url;\n"
16479 "   char *app_source_package;\n"
16480 "   char *app_summary;\n"
16481 "   char *app_description;\n"
16482 " };\n"
16483 " \n"
16484 msgstr ""
16485
16486 # type: verbatim
16487 #: ../src/guestfs-structs.pod:260
16488 #, no-wrap
16489 msgid ""
16490 " struct guestfs_application_list {\n"
16491 "   uint32_t len; /* Number of elements in list. */\n"
16492 "   struct guestfs_application *val; /* Elements. */\n"
16493 " };\n"
16494 " \n"
16495 msgstr ""
16496
16497 # type: verbatim
16498 #: ../src/guestfs-structs.pod:265
16499 #, no-wrap
16500 msgid ""
16501 " void guestfs_free_application (struct guestfs_free_application *);\n"
16502 " void guestfs_free_application_list (struct guestfs_free_application_list "
16503 "*);\n"
16504 "\n"
16505 msgstr ""
16506
16507 # type: textblock
16508 #: ../fish/guestfish.pod:5
16509 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16510 msgstr ""
16511
16512 # type: verbatim
16513 #: ../fish/guestfish.pod:9
16514 #, no-wrap
16515 msgid ""
16516 " guestfish [--options] [commands]\n"
16517 "\n"
16518 msgstr ""
16519
16520 # type: verbatim
16521 #: ../fish/guestfish.pod:11
16522 #, no-wrap
16523 msgid ""
16524 " guestfish\n"
16525 "\n"
16526 msgstr ""
16527
16528 # type: verbatim
16529 #: ../fish/guestfish.pod:13
16530 #, no-wrap
16531 msgid ""
16532 " guestfish [--ro|--rw] -a disk.img\n"
16533 "\n"
16534 msgstr ""
16535
16536 # type: verbatim
16537 #: ../fish/guestfish.pod:15
16538 #, no-wrap
16539 msgid ""
16540 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16541 "\n"
16542 msgstr ""
16543
16544 # type: verbatim
16545 #: ../fish/guestfish.pod:17
16546 #, no-wrap
16547 msgid ""
16548 " guestfish -d libvirt-domain\n"
16549 "\n"
16550 msgstr ""
16551
16552 # type: verbatim
16553 #: ../fish/guestfish.pod:19
16554 #, no-wrap
16555 msgid ""
16556 " guestfish [--ro|--rw] -a disk.img -i\n"
16557 "\n"
16558 msgstr ""
16559
16560 # type: verbatim
16561 #: ../fish/guestfish.pod:21
16562 #, no-wrap
16563 msgid ""
16564 " guestfish -d libvirt-domain -i\n"
16565 "\n"
16566 msgstr ""
16567
16568 # type: =head1
16569 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16570 msgid "WARNING"
16571 msgstr ""
16572
16573 # type: textblock
16574 #: ../fish/guestfish.pod:25
16575 msgid ""
16576 "Using guestfish in read/write mode on live virtual machines can be "
16577 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16578 "option to use guestfish safely if the disk image or virtual machine might be "
16579 "live."
16580 msgstr ""
16581
16582 # type: textblock
16583 #: ../fish/guestfish.pod:32
16584 msgid ""
16585 "Guestfish is a shell and command-line tool for examining and modifying "
16586 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16587 "functionality of the guestfs API, see L<guestfs(3)>."
16588 msgstr ""
16589
16590 # type: textblock
16591 #: ../fish/guestfish.pod:36
16592 msgid ""
16593 "Guestfish gives you structured access to the libguestfs API, from shell "
16594 "scripts or the command line or interactively.  If you want to rescue a "
16595 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16596 "command."
16597 msgstr ""
16598
16599 # type: =head1
16600 #: ../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
16601 msgid "EXAMPLES"
16602 msgstr ""
16603
16604 # type: =head2
16605 #: ../fish/guestfish.pod:43
16606 msgid "As an interactive shell"
16607 msgstr ""
16608
16609 # type: verbatim
16610 #: ../fish/guestfish.pod:45
16611 #, no-wrap
16612 msgid ""
16613 " $ guestfish\n"
16614 " \n"
16615 msgstr ""
16616
16617 # type: verbatim
16618 #: ../fish/guestfish.pod:47
16619 #, no-wrap
16620 msgid ""
16621 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16622 " editing virtual machine filesystems.\n"
16623 " \n"
16624 msgstr ""
16625
16626 # type: verbatim
16627 #: ../fish/guestfish.pod:50
16628 #, no-wrap
16629 msgid ""
16630 " Type: 'help' for a list of commands\n"
16631 "       'man' to read the manual\n"
16632 "       'quit' to quit the shell\n"
16633 " \n"
16634 msgstr ""
16635
16636 # type: verbatim
16637 #: ../fish/guestfish.pod:54
16638 #, no-wrap
16639 msgid ""
16640 " ><fs> add-ro disk.img\n"
16641 " ><fs> run\n"
16642 " ><fs> list-filesystems\n"
16643 " /dev/sda1: ext4\n"
16644 " /dev/vg_guest/lv_root: ext4\n"
16645 " /dev/vg_guest/lv_swap: swap\n"
16646 " ><fs> mount /dev/vg_guest/lv_root /\n"
16647 " ><fs> cat /etc/fstab\n"
16648 " # /etc/fstab\n"
16649 " # Created by anaconda\n"
16650 " [...]\n"
16651 " ><fs> exit\n"
16652 "\n"
16653 msgstr ""
16654
16655 # type: =head2
16656 #: ../fish/guestfish.pod:67
16657 msgid "From shell scripts"
16658 msgstr ""
16659
16660 # type: textblock
16661 #: ../fish/guestfish.pod:69
16662 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16663 msgstr ""
16664
16665 # type: verbatim
16666 #: ../fish/guestfish.pod:71
16667 #, no-wrap
16668 msgid ""
16669 " guestfish <<_EOF_\n"
16670 " add disk.img\n"
16671 " run\n"
16672 " mount /dev/vg_guest/lv_root /\n"
16673 " write /etc/motd \"Welcome, new users\"\n"
16674 " _EOF_\n"
16675 "\n"
16676 msgstr ""
16677
16678 # type: textblock
16679 #: ../fish/guestfish.pod:78
16680 msgid "List the LVM logical volumes in a disk image:"
16681 msgstr ""
16682
16683 # type: verbatim
16684 #: ../fish/guestfish.pod:80
16685 #, no-wrap
16686 msgid ""
16687 " guestfish -a disk.img --ro <<_EOF_\n"
16688 " run\n"
16689 " lvs\n"
16690 " _EOF_\n"
16691 "\n"
16692 msgstr ""
16693
16694 # type: textblock
16695 #: ../fish/guestfish.pod:85
16696 msgid "List all the filesystems in a disk image:"
16697 msgstr ""
16698
16699 # type: verbatim
16700 #: ../fish/guestfish.pod:87
16701 #, no-wrap
16702 msgid ""
16703 " guestfish -a disk.img --ro <<_EOF_\n"
16704 " run\n"
16705 " list-filesystems\n"
16706 " _EOF_\n"
16707 "\n"
16708 msgstr ""
16709
16710 # type: =head2
16711 #: ../fish/guestfish.pod:92
16712 msgid "On one command line"
16713 msgstr ""
16714
16715 # type: textblock
16716 #: ../fish/guestfish.pod:94
16717 msgid "Update C</etc/resolv.conf> in a guest:"
16718 msgstr ""
16719
16720 # type: verbatim
16721 #: ../fish/guestfish.pod:96
16722 #, no-wrap
16723 msgid ""
16724 " guestfish \\\n"
16725 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16726 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16727 "\n"
16728 msgstr ""
16729
16730 # type: textblock
16731 #: ../fish/guestfish.pod:100
16732 msgid "Edit C</boot/grub/grub.conf> interactively:"
16733 msgstr ""
16734
16735 # type: verbatim
16736 #: ../fish/guestfish.pod:102
16737 #, no-wrap
16738 msgid ""
16739 " guestfish --rw --add disk.img \\\n"
16740 "   --mount /dev/vg_guest/lv_root \\\n"
16741 "   --mount /dev/sda1:/boot \\\n"
16742 "   edit /boot/grub/grub.conf\n"
16743 "\n"
16744 msgstr ""
16745
16746 # type: =head2
16747 #: ../fish/guestfish.pod:107
16748 msgid "Mount disks automatically"
16749 msgstr ""
16750
16751 # type: textblock
16752 #: ../fish/guestfish.pod:109
16753 msgid ""
16754 "Use the I<-i> option to automatically mount the disks from a virtual "
16755 "machine:"
16756 msgstr ""
16757
16758 # type: verbatim
16759 #: ../fish/guestfish.pod:112
16760 #, no-wrap
16761 msgid ""
16762 " guestfish --ro -a disk.img -i cat /etc/group\n"
16763 "\n"
16764 msgstr ""
16765
16766 # type: verbatim
16767 #: ../fish/guestfish.pod:114
16768 #, no-wrap
16769 msgid ""
16770 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16771 "\n"
16772 msgstr ""
16773
16774 # type: textblock
16775 #: ../fish/guestfish.pod:116
16776 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16777 msgstr ""
16778
16779 # type: verbatim
16780 #: ../fish/guestfish.pod:118
16781 #, no-wrap
16782 msgid ""
16783 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16784 "\n"
16785 msgstr ""
16786
16787 # type: =head2
16788 #: ../fish/guestfish.pod:120
16789 msgid "As a script interpreter"
16790 msgstr ""
16791
16792 # type: textblock
16793 #: ../fish/guestfish.pod:122
16794 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16795 msgstr ""
16796
16797 # type: verbatim
16798 #: ../fish/guestfish.pod:124
16799 #, no-wrap
16800 msgid ""
16801 " #!/usr/bin/guestfish -f\n"
16802 " sparse test1.img 100M\n"
16803 " run\n"
16804 " part-disk /dev/sda mbr\n"
16805 " mkfs ext2 /dev/sda1\n"
16806 "\n"
16807 msgstr ""
16808
16809 # type: =head2
16810 #: ../fish/guestfish.pod:130
16811 msgid "Start with a prepared disk"
16812 msgstr ""
16813
16814 # type: textblock
16815 #: ../fish/guestfish.pod:132
16816 msgid ""
16817 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16818 "single ext2-formatted partition:"
16819 msgstr ""
16820
16821 # type: verbatim
16822 #: ../fish/guestfish.pod:135
16823 #, no-wrap
16824 msgid ""
16825 " guestfish -N fs\n"
16826 "\n"
16827 msgstr ""
16828
16829 # type: textblock
16830 #: ../fish/guestfish.pod:137
16831 msgid "To list what is available do:"
16832 msgstr ""
16833
16834 # type: verbatim
16835 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:838
16836 #, no-wrap
16837 msgid ""
16838 " guestfish -N help | less\n"
16839 "\n"
16840 msgstr ""
16841
16842 # type: =head2
16843 #: ../fish/guestfish.pod:141
16844 msgid "Remote control"
16845 msgstr ""
16846
16847 # type: verbatim
16848 #: ../fish/guestfish.pod:143
16849 #, no-wrap
16850 msgid ""
16851 " eval \"`guestfish --listen`\"\n"
16852 " guestfish --remote add-ro disk.img\n"
16853 " guestfish --remote run\n"
16854 " guestfish --remote lvs\n"
16855 "\n"
16856 msgstr ""
16857
16858 # type: =head1
16859 #: ../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
16860 msgid "OPTIONS"
16861 msgstr ""
16862
16863 # type: =item
16864 #: ../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
16865 msgid "B<--help>"
16866 msgstr ""
16867
16868 # type: textblock
16869 #: ../fish/guestfish.pod:154
16870 msgid "Displays general help on options."
16871 msgstr ""
16872
16873 # type: =item
16874 #: ../fish/guestfish.pod:156
16875 msgid "B<-h> | B<--cmd-help>"
16876 msgstr ""
16877
16878 # type: textblock
16879 #: ../fish/guestfish.pod:158
16880 msgid "Lists all available guestfish commands."
16881 msgstr ""
16882
16883 # type: =item
16884 #: ../fish/guestfish.pod:160
16885 msgid "B<-h cmd> | B<--cmd-help cmd>"
16886 msgstr ""
16887
16888 # type: textblock
16889 #: ../fish/guestfish.pod:162
16890 msgid "Displays detailed help on a single command C<cmd>."
16891 msgstr ""
16892
16893 # type: =item
16894 #: ../fish/guestfish.pod:164 ../fuse/guestmount.pod:77
16895 msgid "B<-a image> | B<--add image>"
16896 msgstr ""
16897
16898 # type: textblock
16899 #: ../fish/guestfish.pod:166
16900 msgid "Add a block device or virtual machine image to the shell."
16901 msgstr ""
16902
16903 # type: textblock
16904 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:81
16905 msgid ""
16906 "The format of the disk image is auto-detected.  To override this and force a "
16907 "particular format use the I<--format=..> option."
16908 msgstr ""
16909
16910 # type: =item
16911 #: ../fish/guestfish.pod:171 ../fuse/guestmount.pod:84
16912 msgid "B<-c URI> | B<--connect URI>"
16913 msgstr ""
16914
16915 # type: textblock
16916 #: ../fish/guestfish.pod:173 ../fuse/guestmount.pod:86
16917 msgid ""
16918 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16919 "URI to use.  The default is to use the default libvirt connection."
16920 msgstr ""
16921
16922 # type: =item
16923 #: ../fish/guestfish.pod:177
16924 msgid "B<--csh>"
16925 msgstr ""
16926
16927 # type: textblock
16928 #: ../fish/guestfish.pod:179
16929 msgid ""
16930 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16931 "section L</REMOTE CONTROL AND CSH> below."
16932 msgstr ""
16933
16934 # type: =item
16935 #: ../fish/guestfish.pod:182 ../fuse/guestmount.pod:90
16936 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
16937 msgstr ""
16938
16939 # type: textblock
16940 #: ../fish/guestfish.pod:184 ../fuse/guestmount.pod:92
16941 msgid ""
16942 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16943 "used, then any libvirt domain can be used.  However in write mode, only "
16944 "libvirt domains which are shut down can be named here."
16945 msgstr ""
16946
16947 # type: =item
16948 #: ../fish/guestfish.pod:188
16949 msgid "B<-D> | B<--no-dest-paths>"
16950 msgstr ""
16951
16952 # type: textblock
16953 #: ../fish/guestfish.pod:190
16954 msgid ""
16955 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16956 "to hit the tab key to complete paths on the guest filesystem, but this "
16957 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16958 "allow this feature to be disabled."
16959 msgstr ""
16960
16961 # type: =item
16962 #: ../fish/guestfish.pod:195 ../fuse/guestmount.pod:108
16963 msgid "B<--echo-keys>"
16964 msgstr ""
16965
16966 # type: textblock
16967 #: ../fish/guestfish.pod:197 ../fuse/guestmount.pod:110
16968 msgid ""
16969 "When prompting for keys and passphrases, guestfish normally turns echoing "
16970 "off so you cannot see what you are typing.  If you are not worried about "
16971 "Tempest attacks and there is no one else in the room you can specify this "
16972 "flag to see what you are typing."
16973 msgstr ""
16974
16975 # type: =item
16976 #: ../fish/guestfish.pod:202
16977 msgid "B<-f file> | B<--file file>"
16978 msgstr ""
16979
16980 # type: textblock
16981 #: ../fish/guestfish.pod:204
16982 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16983 msgstr ""
16984
16985 # type: verbatim
16986 #: ../fish/guestfish.pod:207
16987 #, no-wrap
16988 msgid ""
16989 " #!/usr/bin/guestfish -f\n"
16990 "\n"
16991 msgstr ""
16992
16993 # type: =item
16994 #: ../fish/guestfish.pod:209 ../fuse/guestmount.pod:115
16995 msgid "B<--format=raw|qcow2|..> | B<--format>"
16996 msgstr ""
16997
16998 # type: textblock
16999 #: ../fish/guestfish.pod:211 ../fuse/guestmount.pod:117
17000 msgid ""
17001 "The default for the I<-a> option is to auto-detect the format of the disk "
17002 "image.  Using this forces the disk format for I<-a> options which follow on "
17003 "the command line.  Using I<--format> with no argument switches back to "
17004 "auto-detection for subsequent I<-a> options."
17005 msgstr ""
17006
17007 # type: textblock
17008 #: ../fish/guestfish.pod:216 ../fish/guestfish.pod:544
17009 msgid "For example:"
17010 msgstr ""
17011
17012 # type: verbatim
17013 #: ../fish/guestfish.pod:218
17014 #, no-wrap
17015 msgid ""
17016 " guestfish --format=raw -a disk.img\n"
17017 "\n"
17018 msgstr ""
17019
17020 # type: textblock
17021 #: ../fish/guestfish.pod:220
17022 msgid "forces raw format (no auto-detection) for C<disk.img>."
17023 msgstr ""
17024
17025 # type: verbatim
17026 #: ../fish/guestfish.pod:222
17027 #, no-wrap
17028 msgid ""
17029 " guestfish --format=raw -a disk.img --format -a another.img\n"
17030 "\n"
17031 msgstr ""
17032
17033 # type: textblock
17034 #: ../fish/guestfish.pod:224
17035 msgid ""
17036 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
17037 "auto-detection for C<another.img>."
17038 msgstr ""
17039
17040 # type: textblock
17041 #: ../fish/guestfish.pod:227
17042 msgid ""
17043 "If you have untrusted raw-format guest disk images, you should use this "
17044 "option to specify the disk format.  This avoids a possible security problem "
17045 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17046 msgstr ""
17047
17048 # type: =item
17049 #: ../fish/guestfish.pod:232 ../fuse/guestmount.pod:135
17050 msgid "B<-i> | B<--inspector>"
17051 msgstr ""
17052
17053 # type: textblock
17054 #: ../fish/guestfish.pod:234 ../fuse/guestmount.pod:137
17055 msgid ""
17056 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17057 "system and mount filesystems as they would be mounted on the real virtual "
17058 "machine."
17059 msgstr ""
17060
17061 # type: textblock
17062 #: ../fish/guestfish.pod:238
17063 msgid "Typical usage is either:"
17064 msgstr ""
17065
17066 # type: verbatim
17067 #: ../fish/guestfish.pod:240
17068 #, no-wrap
17069 msgid ""
17070 " guestfish -d myguest -i\n"
17071 "\n"
17072 msgstr ""
17073
17074 # type: textblock
17075 #: ../fish/guestfish.pod:242
17076 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17077 msgstr ""
17078
17079 # type: verbatim
17080 #: ../fish/guestfish.pod:244
17081 #, no-wrap
17082 msgid ""
17083 " guestfish --ro -d myguest -i\n"
17084 "\n"
17085 msgstr ""
17086
17087 # type: textblock
17088 #: ../fish/guestfish.pod:246
17089 msgid "(for active domains, readonly), or specify the block device directly:"
17090 msgstr ""
17091
17092 # type: verbatim
17093 #: ../fish/guestfish.pod:248
17094 #, no-wrap
17095 msgid ""
17096 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17097 "\n"
17098 msgstr ""
17099
17100 # type: textblock
17101 #: ../fish/guestfish.pod:250
17102 msgid ""
17103 "Note that the command line syntax changed slightly over older versions of "
17104 "guestfish.  You can still use the old syntax:"
17105 msgstr ""
17106
17107 # type: verbatim
17108 #: ../fish/guestfish.pod:253
17109 #, no-wrap
17110 msgid ""
17111 " guestfish [--ro] -i disk.img\n"
17112 "\n"
17113 msgstr ""
17114
17115 # type: verbatim
17116 #: ../fish/guestfish.pod:255
17117 #, no-wrap
17118 msgid ""
17119 " guestfish [--ro] -i libvirt-domain\n"
17120 "\n"
17121 msgstr ""
17122
17123 # type: =item
17124 #: ../fish/guestfish.pod:257 ../fuse/guestmount.pod:141
17125 msgid "B<--keys-from-stdin>"
17126 msgstr ""
17127
17128 # type: textblock
17129 #: ../fish/guestfish.pod:259 ../fuse/guestmount.pod:143
17130 msgid ""
17131 "Read key or passphrase parameters from stdin.  The default is to try to read "
17132 "passphrases from the user by opening C</dev/tty>."
17133 msgstr ""
17134
17135 # type: =item
17136 #: ../fish/guestfish.pod:262
17137 msgid "B<--listen>"
17138 msgstr ""
17139
17140 # type: textblock
17141 #: ../fish/guestfish.pod:264
17142 msgid ""
17143 "Fork into the background and listen for remote commands.  See section "
17144 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17145 msgstr ""
17146
17147 # type: =item
17148 #: ../fish/guestfish.pod:267
17149 msgid "B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>"
17150 msgstr ""
17151
17152 # type: textblock
17153 #: ../fish/guestfish.pod:269
17154 msgid "Mount the named partition or logical volume on the given mountpoint."
17155 msgstr ""
17156
17157 # type: textblock
17158 #: ../fish/guestfish.pod:271
17159 msgid "If the mountpoint is omitted, it defaults to C</>."
17160 msgstr ""
17161
17162 # type: textblock
17163 #: ../fish/guestfish.pod:273
17164 msgid "You have to mount something on C</> before most commands will work."
17165 msgstr ""
17166
17167 # type: textblock
17168 #: ../fish/guestfish.pod:275
17169 msgid ""
17170 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17171 "launched."
17172 msgstr ""
17173
17174 # type: textblock
17175 #: ../fish/guestfish.pod:278
17176 msgid ""
17177 "If you don't know what filesystems a disk image contains, you can either run "
17178 "guestfish without this option, then list the partitions, filesystems and LVs "
17179 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17180 "commands), or you can use the L<virt-filesystems(1)> program."
17181 msgstr ""
17182
17183 # type: =item
17184 #: ../fish/guestfish.pod:284 ../fuse/guestmount.pod:154
17185 msgid "B<-n> | B<--no-sync>"
17186 msgstr ""
17187
17188 # type: textblock
17189 #: ../fish/guestfish.pod:286
17190 msgid ""
17191 "Disable autosync.  This is enabled by default.  See the discussion of "
17192 "autosync in the L<guestfs(3)> manpage."
17193 msgstr ""
17194
17195 # type: =item
17196 #: ../fish/guestfish.pod:289
17197 msgid "B<-N type> | B<--new type> | B<-N help>"
17198 msgstr ""
17199
17200 # type: textblock
17201 #: ../fish/guestfish.pod:291
17202 msgid ""
17203 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17204 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17205 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17206 "IMAGES> below."
17207 msgstr ""
17208
17209 # type: =item
17210 #: ../fish/guestfish.pod:296
17211 msgid "B<--progress-bars>"
17212 msgstr ""
17213
17214 # type: textblock
17215 #: ../fish/guestfish.pod:298
17216 msgid "Enable progress bars, even when guestfish is used non-interactively."
17217 msgstr ""
17218
17219 # type: textblock
17220 #: ../fish/guestfish.pod:300
17221 msgid ""
17222 "Progress bars are enabled by default when guestfish is used as an "
17223 "interactive shell."
17224 msgstr ""
17225
17226 # type: =item
17227 #: ../fish/guestfish.pod:303
17228 msgid "B<--no-progress-bars>"
17229 msgstr ""
17230
17231 # type: textblock
17232 #: ../fish/guestfish.pod:305
17233 msgid "Disable progress bars."
17234 msgstr ""
17235
17236 # type: =item
17237 #: ../fish/guestfish.pod:307
17238 msgid "B<--remote[=pid]>"
17239 msgstr ""
17240
17241 # type: textblock
17242 #: ../fish/guestfish.pod:309
17243 msgid ""
17244 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17245 "CONTROL GUESTFISH OVER A SOCKET> below."
17246 msgstr ""
17247
17248 # type: =item
17249 #: ../fish/guestfish.pod:312 ../fuse/guestmount.pod:196
17250 msgid "B<-r> | B<--ro>"
17251 msgstr ""
17252
17253 # type: textblock
17254 #: ../fish/guestfish.pod:314
17255 msgid ""
17256 "This changes the I<-a> and I<-m> options so that disks are added and mounts "
17257 "are done read-only (see L<guestfs(3)/guestfs_mount_ro>)."
17258 msgstr ""
17259
17260 # type: textblock
17261 #: ../fish/guestfish.pod:317
17262 msgid ""
17263 "The option must always be used if the disk image or virtual machine might be "
17264 "running, and is generally recommended in cases where you don't need write "
17265 "access to the disk."
17266 msgstr ""
17267
17268 # type: textblock
17269 #: ../fish/guestfish.pod:321
17270 msgid ""
17271 "Note that prepared disk images created with I<-N> are not affected by the "
17272 "I<--ro> option."
17273 msgstr ""
17274
17275 # type: textblock
17276 #: ../fish/guestfish.pod:324
17277 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17278 msgstr ""
17279
17280 # type: =item
17281 #: ../fish/guestfish.pod:326 ../fuse/guestmount.pod:208
17282 msgid "B<--selinux>"
17283 msgstr ""
17284
17285 # type: textblock
17286 #: ../fish/guestfish.pod:328
17287 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17288 msgstr ""
17289
17290 # type: =item
17291 #: ../fish/guestfish.pod:330 ../fuse/guestmount.pod:212
17292 msgid "B<-v> | B<--verbose>"
17293 msgstr ""
17294
17295 # type: textblock
17296 #: ../fish/guestfish.pod:332
17297 msgid ""
17298 "Enable very verbose messages.  This is particularly useful if you find a "
17299 "bug."
17300 msgstr ""
17301
17302 # type: =item
17303 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:216
17304 msgid "B<-V> | B<--version>"
17305 msgstr ""
17306
17307 # type: textblock
17308 #: ../fish/guestfish.pod:337
17309 msgid "Display the guestfish / libguestfs version number and exit."
17310 msgstr ""
17311
17312 # type: =item
17313 #: ../fish/guestfish.pod:339 ../fuse/guestmount.pod:220
17314 msgid "B<-w> | B<--rw>"
17315 msgstr ""
17316
17317 # type: textblock
17318 #: ../fish/guestfish.pod:341
17319 msgid ""
17320 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17321 "WRITE> below."
17322 msgstr ""
17323
17324 # type: =item
17325 #: ../fish/guestfish.pod:344
17326 msgid "B<-x>"
17327 msgstr ""
17328
17329 # type: textblock
17330 #: ../fish/guestfish.pod:346
17331 msgid "Echo each command before executing it."
17332 msgstr ""
17333
17334 # type: =head1
17335 #: ../fish/guestfish.pod:350
17336 msgid "COMMANDS ON COMMAND LINE"
17337 msgstr ""
17338
17339 # type: textblock
17340 #: ../fish/guestfish.pod:352
17341 msgid "Any additional (non-option) arguments are treated as commands to execute."
17342 msgstr ""
17343
17344 # type: textblock
17345 #: ../fish/guestfish.pod:355
17346 msgid ""
17347 "Commands to execute should be separated by a colon (C<:>), where the colon "
17348 "is a separate parameter.  Thus:"
17349 msgstr ""
17350
17351 # type: verbatim
17352 #: ../fish/guestfish.pod:358
17353 #, no-wrap
17354 msgid ""
17355 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17356 "\n"
17357 msgstr ""
17358
17359 # type: textblock
17360 #: ../fish/guestfish.pod:360
17361 msgid ""
17362 "If there are no additional arguments, then we enter a shell, either an "
17363 "interactive shell with a prompt (if the input is a terminal) or a "
17364 "non-interactive shell."
17365 msgstr ""
17366
17367 # type: textblock
17368 #: ../fish/guestfish.pod:364
17369 msgid ""
17370 "In either command line mode or non-interactive shell, the first command that "
17371 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17372 "prompt) if a command fails, you can continue to enter commands."
17373 msgstr ""
17374
17375 # type: =head1
17376 #: ../fish/guestfish.pod:369
17377 msgid "USING launch (OR run)"
17378 msgstr ""
17379
17380 # type: textblock
17381 #: ../fish/guestfish.pod:371
17382 msgid ""
17383 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17384 "then launch it, then mount any disks you need, and finally issue "
17385 "actions/commands.  So the general order of the day is:"
17386 msgstr ""
17387
17388 # type: textblock
17389 #: ../fish/guestfish.pod:379
17390 msgid "add or -a/--add"
17391 msgstr ""
17392
17393 # type: textblock
17394 #: ../fish/guestfish.pod:383
17395 msgid "launch (aka run)"
17396 msgstr ""
17397
17398 # type: textblock
17399 #: ../fish/guestfish.pod:387
17400 msgid "mount or -m/--mount"
17401 msgstr ""
17402
17403 # type: textblock
17404 #: ../fish/guestfish.pod:391
17405 msgid "any other commands"
17406 msgstr ""
17407
17408 # type: textblock
17409 #: ../fish/guestfish.pod:395
17410 msgid ""
17411 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17412 "guest before mounting or performing any other commands."
17413 msgstr ""
17414
17415 # type: textblock
17416 #: ../fish/guestfish.pod:398
17417 msgid ""
17418 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17419 "I<--new> options were given then C<run> is done automatically, simply "
17420 "because guestfish can't perform the action you asked for without doing this."
17421 msgstr ""
17422
17423 # type: =head1
17424 #: ../fish/guestfish.pod:403
17425 msgid "OPENING DISKS FOR READ AND WRITE"
17426 msgstr ""
17427
17428 # type: textblock
17429 #: ../fish/guestfish.pod:405
17430 msgid ""
17431 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17432 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17433 "open disk images read-only or for writing."
17434 msgstr ""
17435
17436 # type: textblock
17437 #: ../fish/guestfish.pod:409
17438 msgid ""
17439 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17440 "disk images supplied on the command line for write.  To open a disk image "
17441 "read-only you have to do I<-a image --ro>."
17442 msgstr ""
17443
17444 # type: textblock
17445 #: ../fish/guestfish.pod:413
17446 msgid ""
17447 "This matters: If you accidentally open a live VM disk image writable then "
17448 "you will cause irreversible disk corruption."
17449 msgstr ""
17450
17451 # type: textblock
17452 #: ../fish/guestfish.pod:416
17453 msgid ""
17454 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17455 "images will be opened read-only.  You will have to either specify "
17456 "I<guestfish --rw> or change a configuration file in order to get write "
17457 "access for disk images specified by those other command line options."
17458 msgstr ""
17459
17460 # type: textblock
17461 #: ../fish/guestfish.pod:421
17462 msgid ""
17463 "This version of guestfish has a I<--rw> option which does nothing (it is "
17464 "already the default).  However it is highly recommended that you use this "
17465 "option to indicate that guestfish needs write access, and to prepare your "
17466 "scripts for the day when this option will be required for write access."
17467 msgstr ""
17468
17469 # type: textblock
17470 #: ../fish/guestfish.pod:427
17471 msgid ""
17472 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17473 "other libguestfs program apart from guestfish and guestmount."
17474 msgstr ""
17475
17476 # type: =head1
17477 #: ../fish/guestfish.pod:430
17478 msgid "QUOTING"
17479 msgstr ""
17480
17481 # type: textblock
17482 #: ../fish/guestfish.pod:432
17483 msgid ""
17484 "You can quote ordinary parameters using either single or double quotes.  For "
17485 "example:"
17486 msgstr ""
17487
17488 # type: verbatim
17489 #: ../fish/guestfish.pod:435
17490 #, no-wrap
17491 msgid ""
17492 " add \"file with a space.img\"\n"
17493 "\n"
17494 msgstr ""
17495
17496 # type: verbatim
17497 #: ../fish/guestfish.pod:437
17498 #, no-wrap
17499 msgid ""
17500 " rm '/file name'\n"
17501 "\n"
17502 msgstr ""
17503
17504 # type: verbatim
17505 #: ../fish/guestfish.pod:439
17506 #, no-wrap
17507 msgid ""
17508 " rm '/\"'\n"
17509 "\n"
17510 msgstr ""
17511
17512 # type: textblock
17513 #: ../fish/guestfish.pod:441
17514 msgid ""
17515 "A few commands require a list of strings to be passed.  For these, use a "
17516 "whitespace-separated list, enclosed in quotes.  Strings containing "
17517 "whitespace to be passed through must be enclosed in single quotes.  A "
17518 "literal single quote must be escaped with a backslash."
17519 msgstr ""
17520
17521 # type: verbatim
17522 #: ../fish/guestfish.pod:446
17523 #, no-wrap
17524 msgid ""
17525 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17526 " command \"/bin/echo 'foo      bar'\"\n"
17527 " command \"/bin/echo \\'foo\\'\"\n"
17528 "\n"
17529 msgstr ""
17530
17531 # type: =head1
17532 #: ../fish/guestfish.pod:450
17533 msgid "OPTIONAL ARGUMENTS"
17534 msgstr ""
17535
17536 # type: textblock
17537 #: ../fish/guestfish.pod:452
17538 msgid ""
17539 "Some commands take optional arguments.  These arguments appear in this "
17540 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17541 msgstr ""
17542
17543 # type: verbatim
17544 #: ../fish/guestfish.pod:456
17545 #, no-wrap
17546 msgid ""
17547 " add-drive-opts filename\n"
17548 "\n"
17549 msgstr ""
17550
17551 # type: verbatim
17552 #: ../fish/guestfish.pod:458
17553 #, no-wrap
17554 msgid ""
17555 " add-drive-opts filename readonly:true\n"
17556 "\n"
17557 msgstr ""
17558
17559 # type: verbatim
17560 #: ../fish/guestfish.pod:460
17561 #, no-wrap
17562 msgid ""
17563 " add-drive-opts filename format:qcow2 readonly:false\n"
17564 "\n"
17565 msgstr ""
17566
17567 # type: textblock
17568 #: ../fish/guestfish.pod:462
17569 msgid ""
17570 "Each optional argument can appear at most once.  All optional arguments must "
17571 "appear after the required ones."
17572 msgstr ""
17573
17574 # type: =head1
17575 #: ../fish/guestfish.pod:465
17576 msgid "NUMBERS"
17577 msgstr ""
17578
17579 # type: textblock
17580 #: ../fish/guestfish.pod:467
17581 msgid "This section applies to all commands which can take integers as parameters."
17582 msgstr ""
17583
17584 # type: =head2
17585 #: ../fish/guestfish.pod:470
17586 msgid "SIZE SUFFIX"
17587 msgstr ""
17588
17589 # type: textblock
17590 #: ../fish/guestfish.pod:472
17591 msgid ""
17592 "When the command takes a parameter measured in bytes, you can use one of the "
17593 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17594 msgstr ""
17595
17596 # type: =item
17597 #: ../fish/guestfish.pod:478
17598 msgid "B<k> or B<K> or B<KiB>"
17599 msgstr ""
17600
17601 # type: textblock
17602 #: ../fish/guestfish.pod:480
17603 msgid "The size in kilobytes (multiplied by 1024)."
17604 msgstr ""
17605
17606 # type: =item
17607 #: ../fish/guestfish.pod:482
17608 msgid "B<KB>"
17609 msgstr ""
17610
17611 # type: textblock
17612 #: ../fish/guestfish.pod:484
17613 msgid "The size in SI 1000 byte units."
17614 msgstr ""
17615
17616 # type: =item
17617 #: ../fish/guestfish.pod:486
17618 msgid "B<M> or B<MiB>"
17619 msgstr ""
17620
17621 # type: textblock
17622 #: ../fish/guestfish.pod:488
17623 msgid "The size in megabytes (multiplied by 1048576)."
17624 msgstr ""
17625
17626 # type: =item
17627 #: ../fish/guestfish.pod:490
17628 msgid "B<MB>"
17629 msgstr ""
17630
17631 # type: textblock
17632 #: ../fish/guestfish.pod:492
17633 msgid "The size in SI 1000000 byte units."
17634 msgstr ""
17635
17636 # type: =item
17637 #: ../fish/guestfish.pod:494
17638 msgid "B<G> or B<GiB>"
17639 msgstr ""
17640
17641 # type: textblock
17642 #: ../fish/guestfish.pod:496
17643 msgid "The size in gigabytes (multiplied by 2**30)."
17644 msgstr ""
17645
17646 # type: =item
17647 #: ../fish/guestfish.pod:498
17648 msgid "B<GB>"
17649 msgstr ""
17650
17651 # type: textblock
17652 #: ../fish/guestfish.pod:500
17653 msgid "The size in SI 10**9 byte units."
17654 msgstr ""
17655
17656 # type: =item
17657 #: ../fish/guestfish.pod:502
17658 msgid "B<T> or B<TiB>"
17659 msgstr ""
17660
17661 # type: textblock
17662 #: ../fish/guestfish.pod:504
17663 msgid "The size in terabytes (multiplied by 2**40)."
17664 msgstr ""
17665
17666 # type: =item
17667 #: ../fish/guestfish.pod:506
17668 msgid "B<TB>"
17669 msgstr ""
17670
17671 # type: textblock
17672 #: ../fish/guestfish.pod:508
17673 msgid "The size in SI 10**12 byte units."
17674 msgstr ""
17675
17676 # type: =item
17677 #: ../fish/guestfish.pod:510
17678 msgid "B<P> or B<PiB>"
17679 msgstr ""
17680
17681 # type: textblock
17682 #: ../fish/guestfish.pod:512
17683 msgid "The size in petabytes (multiplied by 2**50)."
17684 msgstr ""
17685
17686 # type: =item
17687 #: ../fish/guestfish.pod:514
17688 msgid "B<PB>"
17689 msgstr ""
17690
17691 # type: textblock
17692 #: ../fish/guestfish.pod:516
17693 msgid "The size in SI 10**15 byte units."
17694 msgstr ""
17695
17696 # type: =item
17697 #: ../fish/guestfish.pod:518
17698 msgid "B<E> or B<EiB>"
17699 msgstr ""
17700
17701 # type: textblock
17702 #: ../fish/guestfish.pod:520
17703 msgid "The size in exabytes (multiplied by 2**60)."
17704 msgstr ""
17705
17706 # type: =item
17707 #: ../fish/guestfish.pod:522
17708 msgid "B<EB>"
17709 msgstr ""
17710
17711 # type: textblock
17712 #: ../fish/guestfish.pod:524
17713 msgid "The size in SI 10**18 byte units."
17714 msgstr ""
17715
17716 # type: =item
17717 #: ../fish/guestfish.pod:526
17718 msgid "B<Z> or B<ZiB>"
17719 msgstr ""
17720
17721 # type: textblock
17722 #: ../fish/guestfish.pod:528
17723 msgid "The size in zettabytes (multiplied by 2**70)."
17724 msgstr ""
17725
17726 # type: =item
17727 #: ../fish/guestfish.pod:530
17728 msgid "B<ZB>"
17729 msgstr ""
17730
17731 # type: textblock
17732 #: ../fish/guestfish.pod:532
17733 msgid "The size in SI 10**21 byte units."
17734 msgstr ""
17735
17736 # type: =item
17737 #: ../fish/guestfish.pod:534
17738 msgid "B<Y> or B<YiB>"
17739 msgstr ""
17740
17741 # type: textblock
17742 #: ../fish/guestfish.pod:536
17743 msgid "The size in yottabytes (multiplied by 2**80)."
17744 msgstr ""
17745
17746 # type: =item
17747 #: ../fish/guestfish.pod:538
17748 msgid "B<YB>"
17749 msgstr ""
17750
17751 # type: textblock
17752 #: ../fish/guestfish.pod:540
17753 msgid "The size in SI 10**24 byte units."
17754 msgstr ""
17755
17756 # type: verbatim
17757 #: ../fish/guestfish.pod:546
17758 #, no-wrap
17759 msgid ""
17760 " truncate-size /file 1G\n"
17761 "\n"
17762 msgstr ""
17763
17764 # type: textblock
17765 #: ../fish/guestfish.pod:548
17766 msgid "would truncate the file to 1 gigabyte."
17767 msgstr ""
17768
17769 # type: textblock
17770 #: ../fish/guestfish.pod:550
17771 msgid ""
17772 "Be careful because a few commands take sizes in kilobytes or megabytes "
17773 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17774 "Adding a suffix will probably not do what you expect."
17775 msgstr ""
17776
17777 # type: =head2
17778 #: ../fish/guestfish.pod:554
17779 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17780 msgstr ""
17781
17782 # type: textblock
17783 #: ../fish/guestfish.pod:556
17784 msgid ""
17785 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17786 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17787 msgstr ""
17788
17789 # type: verbatim
17790 #: ../fish/guestfish.pod:559
17791 #, no-wrap
17792 msgid ""
17793 " 1234      decimal number 1234\n"
17794 " 02322     octal number, equivalent to decimal 1234\n"
17795 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17796 "\n"
17797 msgstr ""
17798
17799 # type: textblock
17800 #: ../fish/guestfish.pod:563
17801 msgid ""
17802 "When using the C<chmod> command, you almost always want to specify an octal "
17803 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17804 "L<chmod(1)> program):"
17805 msgstr ""
17806
17807 # type: verbatim
17808 #: ../fish/guestfish.pod:567
17809 #, no-wrap
17810 msgid ""
17811 " chmod 0777 /public  # OK\n"
17812 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17813 "\n"
17814 msgstr ""
17815
17816 # type: textblock
17817 #: ../fish/guestfish.pod:570
17818 msgid ""
17819 "Commands that return numbers usually print them in decimal, but some "
17820 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17821 "octal, preceeded by C<0>)."
17822 msgstr ""
17823
17824 # type: =head1
17825 #: ../fish/guestfish.pod:574
17826 msgid "WILDCARDS AND GLOBBING"
17827 msgstr ""
17828
17829 # type: textblock
17830 #: ../fish/guestfish.pod:576
17831 msgid ""
17832 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17833 "(globbing) by default.  So for example the following will not do what you "
17834 "expect:"
17835 msgstr ""
17836
17837 # type: verbatim
17838 #: ../fish/guestfish.pod:580
17839 #, no-wrap
17840 msgid ""
17841 " rm-rf /home/*\n"
17842 "\n"
17843 msgstr ""
17844
17845 # type: textblock
17846 #: ../fish/guestfish.pod:582
17847 msgid ""
17848 "Assuming you don't have a directory called literally C</home/*> then the "
17849 "above command will return an error."
17850 msgstr ""
17851
17852 # type: textblock
17853 #: ../fish/guestfish.pod:585
17854 msgid "To perform wildcard expansion, use the C<glob> command."
17855 msgstr ""
17856
17857 # type: verbatim
17858 #: ../fish/guestfish.pod:587
17859 #, no-wrap
17860 msgid ""
17861 " glob rm-rf /home/*\n"
17862 "\n"
17863 msgstr ""
17864
17865 # type: textblock
17866 #: ../fish/guestfish.pod:589
17867 msgid ""
17868 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17869 "many times), equivalent to:"
17870 msgstr ""
17871
17872 # type: verbatim
17873 #: ../fish/guestfish.pod:592
17874 #, no-wrap
17875 msgid ""
17876 " rm-rf /home/jim\n"
17877 " rm-rf /home/joe\n"
17878 " rm-rf /home/mary\n"
17879 "\n"
17880 msgstr ""
17881
17882 # type: textblock
17883 #: ../fish/guestfish.pod:596
17884 msgid "C<glob> only works on simple guest paths and not on device names."
17885 msgstr ""
17886
17887 # type: textblock
17888 #: ../fish/guestfish.pod:598
17889 msgid ""
17890 "If you have several parameters, each containing a wildcard, then glob will "
17891 "perform a Cartesian product."
17892 msgstr ""
17893
17894 # type: =head1
17895 #: ../fish/guestfish.pod:601
17896 msgid "COMMENTS"
17897 msgstr ""
17898
17899 # type: textblock
17900 #: ../fish/guestfish.pod:603
17901 msgid ""
17902 "Any line which starts with a I<#> character is treated as a comment and "
17903 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17904 "a command.  For example:"
17905 msgstr ""
17906
17907 # type: verbatim
17908 #: ../fish/guestfish.pod:607
17909 #, no-wrap
17910 msgid ""
17911 " # this is a comment\n"
17912 "         # this is a comment\n"
17913 " foo # NOT a comment\n"
17914 "\n"
17915 msgstr ""
17916
17917 # type: textblock
17918 #: ../fish/guestfish.pod:611
17919 msgid "Blank lines are also ignored."
17920 msgstr ""
17921
17922 # type: =head1
17923 #: ../fish/guestfish.pod:613
17924 msgid "RUNNING COMMANDS LOCALLY"
17925 msgstr ""
17926
17927 # type: textblock
17928 #: ../fish/guestfish.pod:615
17929 msgid ""
17930 "Any line which starts with a I<!> character is treated as a command sent to "
17931 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17932 msgstr ""
17933
17934 # type: verbatim
17935 #: ../fish/guestfish.pod:619
17936 #, no-wrap
17937 msgid ""
17938 " !mkdir local\n"
17939 " tgz-out /remote local/remote-data.tar.gz\n"
17940 "\n"
17941 msgstr ""
17942
17943 # type: textblock
17944 #: ../fish/guestfish.pod:622
17945 msgid ""
17946 "will create a directory C<local> on the host, and then export the contents "
17947 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17948 "(See C<tgz-out>)."
17949 msgstr ""
17950
17951 # type: textblock
17952 #: ../fish/guestfish.pod:626
17953 msgid ""
17954 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17955 "effect, due to the way that subprocesses work in Unix."
17956 msgstr ""
17957
17958 # type: =head1
17959 #: ../fish/guestfish.pod:629
17960 msgid "PIPES"
17961 msgstr ""
17962
17963 # type: textblock
17964 #: ../fish/guestfish.pod:631
17965 msgid ""
17966 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17967 "command (a guestfish command) to the second command (any host command).  For "
17968 "example:"
17969 msgstr ""
17970
17971 # type: verbatim
17972 #: ../fish/guestfish.pod:635
17973 #, no-wrap
17974 msgid ""
17975 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17976 "\n"
17977 msgstr ""
17978
17979 # type: textblock
17980 #: ../fish/guestfish.pod:637
17981 msgid ""
17982 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17983 "program).  The above command would list all accounts in the guest filesystem "
17984 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17985 msgstr ""
17986
17987 # type: verbatim
17988 #: ../fish/guestfish.pod:642
17989 #, no-wrap
17990 msgid ""
17991 " hexdump /bin/ls | head\n"
17992 " list-devices | tail -1\n"
17993 " tgz-out / - | tar ztf -\n"
17994 "\n"
17995 msgstr ""
17996
17997 # type: textblock
17998 #: ../fish/guestfish.pod:646
17999 msgid ""
18000 "The space before the pipe symbol is required, any space after the pipe "
18001 "symbol is optional.  Everything after the pipe symbol is just passed "
18002 "straight to the host shell, so it can contain redirections, globs and "
18003 "anything else that makes sense on the host side."
18004 msgstr ""
18005
18006 # type: textblock
18007 #: ../fish/guestfish.pod:651
18008 msgid ""
18009 "To use a literal argument which begins with a pipe symbol, you have to quote "
18010 "it, eg:"
18011 msgstr ""
18012
18013 # type: verbatim
18014 #: ../fish/guestfish.pod:654
18015 #, no-wrap
18016 msgid ""
18017 " echo \"|\"\n"
18018 "\n"
18019 msgstr ""
18020
18021 # type: =head1
18022 #: ../fish/guestfish.pod:656
18023 msgid "HOME DIRECTORIES"
18024 msgstr ""
18025
18026 # type: textblock
18027 #: ../fish/guestfish.pod:658
18028 msgid ""
18029 "If a parameter starts with the character C<~> then the tilde may be expanded "
18030 "as a home directory path (either C<~> for the current user's home directory, "
18031 "or C<~user> for another user)."
18032 msgstr ""
18033
18034 # type: textblock
18035 #: ../fish/guestfish.pod:662
18036 msgid ""
18037 "Note that home directory expansion happens for users known I<on the host>, "
18038 "not in the guest filesystem."
18039 msgstr ""
18040
18041 # type: textblock
18042 #: ../fish/guestfish.pod:665
18043 msgid ""
18044 "To use a literal argument which begins with a tilde, you have to quote it, "
18045 "eg:"
18046 msgstr ""
18047
18048 # type: verbatim
18049 #: ../fish/guestfish.pod:668
18050 #, no-wrap
18051 msgid ""
18052 " echo \"~\"\n"
18053 "\n"
18054 msgstr ""
18055
18056 # type: textblock
18057 #: ../fish/guestfish.pod:672
18058 msgid ""
18059 "Libguestfs has some support for Linux guests encrypted according to the "
18060 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18061 "disk encryption systems used by modern Linux guests.  Currently only "
18062 "LVM-on-LUKS is supported."
18063 msgstr ""
18064
18065 # type: textblock
18066 #: ../fish/guestfish.pod:677
18067 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18068 msgstr ""
18069
18070 # type: verbatim
18071 #: ../fish/guestfish.pod:679
18072 #, no-wrap
18073 msgid ""
18074 " ><fs> vfs-type /dev/sda2\n"
18075 " crypto_LUKS\n"
18076 "\n"
18077 msgstr ""
18078
18079 # type: textblock
18080 #: ../fish/guestfish.pod:682
18081 msgid ""
18082 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18083 "device called C</dev/mapper/luksdev>."
18084 msgstr ""
18085
18086 # type: verbatim
18087 #: ../fish/guestfish.pod:685
18088 #, no-wrap
18089 msgid ""
18090 " ><fs> luks-open /dev/sda2 luksdev\n"
18091 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18092 "\n"
18093 msgstr ""
18094
18095 # type: textblock
18096 #: ../fish/guestfish.pod:688
18097 msgid ""
18098 "Finally you have to tell LVM to scan for volume groups on the newly created "
18099 "mapper device:"
18100 msgstr ""
18101
18102 # type: verbatim
18103 #: ../fish/guestfish.pod:691
18104 #, no-wrap
18105 msgid ""
18106 " vgscan\n"
18107 " vg-activate-all true\n"
18108 "\n"
18109 msgstr ""
18110
18111 # type: textblock
18112 #: ../fish/guestfish.pod:694
18113 msgid "The logical volume(s) can now be mounted in the usual way."
18114 msgstr ""
18115
18116 # type: textblock
18117 #: ../fish/guestfish.pod:696
18118 msgid ""
18119 "Before closing a LUKS device you must unmount any logical volumes on it and "
18120 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18121 "one.  Then you can close the mapper device:"
18122 msgstr ""
18123
18124 # type: verbatim
18125 #: ../fish/guestfish.pod:700
18126 #, no-wrap
18127 msgid ""
18128 " vg-activate false /dev/VG\n"
18129 " luks-close /dev/mapper/luksdev\n"
18130 "\n"
18131 msgstr ""
18132
18133 # type: =head1
18134 #: ../fish/guestfish.pod:703
18135 msgid "WINDOWS PATHS"
18136 msgstr ""
18137
18138 # type: textblock
18139 #: ../fish/guestfish.pod:705
18140 msgid ""
18141 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18142 "(with some limitations).  The following commands are equivalent:"
18143 msgstr ""
18144
18145 # type: verbatim
18146 #: ../fish/guestfish.pod:708
18147 #, no-wrap
18148 msgid ""
18149 " file /WINDOWS/system32/config/system.LOG\n"
18150 "\n"
18151 msgstr ""
18152
18153 # type: verbatim
18154 #: ../fish/guestfish.pod:710
18155 #, no-wrap
18156 msgid ""
18157 " file win:/windows/system32/config/system.log\n"
18158 "\n"
18159 msgstr ""
18160
18161 # type: verbatim
18162 #: ../fish/guestfish.pod:712
18163 #, no-wrap
18164 msgid ""
18165 " file win:\\windows\\system32\\config\\system.log\n"
18166 "\n"
18167 msgstr ""
18168
18169 # type: verbatim
18170 #: ../fish/guestfish.pod:714
18171 #, no-wrap
18172 msgid ""
18173 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18174 "\n"
18175 msgstr ""
18176
18177 # type: textblock
18178 #: ../fish/guestfish.pod:716
18179 msgid ""
18180 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18181 "handles case insensitivity like Windows would.  This only works in argument "
18182 "positions that expect a path."
18183 msgstr ""
18184
18185 # type: =head1
18186 #: ../fish/guestfish.pod:720
18187 msgid "UPLOADING AND DOWNLOADING FILES"
18188 msgstr ""
18189
18190 # type: textblock
18191 #: ../fish/guestfish.pod:722
18192 msgid ""
18193 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18194 "others which upload from or download to a local file, you can use the "
18195 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18196 msgstr ""
18197
18198 # type: verbatim
18199 #: ../fish/guestfish.pod:726
18200 #, no-wrap
18201 msgid ""
18202 " upload - /foo\n"
18203 "\n"
18204 msgstr ""
18205
18206 # type: textblock
18207 #: ../fish/guestfish.pod:728
18208 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
18209 msgstr ""
18210
18211 # type: verbatim
18212 #: ../fish/guestfish.pod:731
18213 #, no-wrap
18214 msgid ""
18215 " tar-out /etc - | tar tf -\n"
18216 "\n"
18217 msgstr ""
18218
18219 # type: textblock
18220 #: ../fish/guestfish.pod:733
18221 msgid ""
18222 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18223 "command (see L</PIPES>)."
18224 msgstr ""
18225
18226 # type: textblock
18227 #: ../fish/guestfish.pod:736
18228 msgid ""
18229 "When using C<-> to read from stdin, the input is read up to the end of "
18230 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18231 "some arbitrary end marker:"
18232 msgstr ""
18233
18234 # type: verbatim
18235 #: ../fish/guestfish.pod:740
18236 #, no-wrap
18237 msgid ""
18238 " upload -<<END /foo\n"
18239 " input line 1\n"
18240 " input line 2\n"
18241 " input line 3\n"
18242 " END\n"
18243 "\n"
18244 msgstr ""
18245
18246 # type: textblock
18247 #: ../fish/guestfish.pod:746
18248 msgid ""
18249 "Any string of characters can be used instead of C<END>.  The end marker must "
18250 "appear on a line of its own, without any preceeding or following characters "
18251 "(not even spaces)."
18252 msgstr ""
18253
18254 # type: textblock
18255 #: ../fish/guestfish.pod:750
18256 msgid ""
18257 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18258 "upload local files (so-called \"FileIn\" parameters in the generator)."
18259 msgstr ""
18260
18261 # type: =head1
18262 #: ../fish/guestfish.pod:753
18263 msgid "EXIT ON ERROR BEHAVIOUR"
18264 msgstr ""
18265
18266 # type: textblock
18267 #: ../fish/guestfish.pod:755
18268 msgid ""
18269 "By default, guestfish will ignore any errors when in interactive mode "
18270 "(ie. taking commands from a human over a tty), and will exit on the first "
18271 "error in non-interactive mode (scripts, commands given on the command line)."
18272 msgstr ""
18273
18274 # type: textblock
18275 #: ../fish/guestfish.pod:760
18276 msgid ""
18277 "If you prefix a command with a I<-> character, then that command will not "
18278 "cause guestfish to exit, even if that (one) command returns an error."
18279 msgstr ""
18280
18281 # type: =head1
18282 #: ../fish/guestfish.pod:764
18283 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18284 msgstr ""
18285
18286 # type: textblock
18287 #: ../fish/guestfish.pod:766
18288 msgid ""
18289 "Guestfish can be remote-controlled over a socket.  This is useful "
18290 "particularly in shell scripts where you want to make several different "
18291 "changes to a filesystem, but you don't want the overhead of starting up a "
18292 "guestfish process each time."
18293 msgstr ""
18294
18295 # type: textblock
18296 #: ../fish/guestfish.pod:771
18297 msgid "Start a guestfish server process using:"
18298 msgstr ""
18299
18300 # type: verbatim
18301 #: ../fish/guestfish.pod:773
18302 #, no-wrap
18303 msgid ""
18304 " eval \"`guestfish --listen`\"\n"
18305 "\n"
18306 msgstr ""
18307
18308 # type: textblock
18309 #: ../fish/guestfish.pod:775
18310 msgid "and then send it commands by doing:"
18311 msgstr ""
18312
18313 # type: verbatim
18314 #: ../fish/guestfish.pod:777
18315 #, no-wrap
18316 msgid ""
18317 " guestfish --remote cmd [...]\n"
18318 "\n"
18319 msgstr ""
18320
18321 # type: textblock
18322 #: ../fish/guestfish.pod:779
18323 msgid "To cause the server to exit, send it the exit command:"
18324 msgstr ""
18325
18326 # type: verbatim
18327 #: ../fish/guestfish.pod:781
18328 #, no-wrap
18329 msgid ""
18330 " guestfish --remote exit\n"
18331 "\n"
18332 msgstr ""
18333
18334 # type: textblock
18335 #: ../fish/guestfish.pod:783
18336 msgid ""
18337 "Note that the server will normally exit if there is an error in a command.  "
18338 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18339 "BEHAVIOUR>."
18340 msgstr ""
18341
18342 # type: =head2
18343 #: ../fish/guestfish.pod:787
18344 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18345 msgstr ""
18346
18347 # type: textblock
18348 #: ../fish/guestfish.pod:789
18349 msgid ""
18350 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18351 "is how the I<--remote> option knows where to send the commands.  You can "
18352 "have several guestfish listener processes running using:"
18353 msgstr ""
18354
18355 # type: verbatim
18356 #: ../fish/guestfish.pod:793
18357 #, no-wrap
18358 msgid ""
18359 " eval \"`guestfish --listen`\"\n"
18360 " pid1=$GUESTFISH_PID\n"
18361 " eval \"`guestfish --listen`\"\n"
18362 " pid2=$GUESTFISH_PID\n"
18363 " ...\n"
18364 " guestfish --remote=$pid1 cmd\n"
18365 " guestfish --remote=$pid2 cmd\n"
18366 "\n"
18367 msgstr ""
18368
18369 # type: =head2
18370 #: ../fish/guestfish.pod:801
18371 msgid "REMOTE CONTROL AND CSH"
18372 msgstr ""
18373
18374 # type: textblock
18375 #: ../fish/guestfish.pod:803
18376 msgid ""
18377 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18378 "option:"
18379 msgstr ""
18380
18381 # type: verbatim
18382 #: ../fish/guestfish.pod:806
18383 #, no-wrap
18384 msgid ""
18385 " eval \"`guestfish --listen --csh`\"\n"
18386 "\n"
18387 msgstr ""
18388
18389 # type: =head2
18390 #: ../fish/guestfish.pod:808
18391 msgid "REMOTE CONTROL DETAILS"
18392 msgstr ""
18393
18394 # type: textblock
18395 #: ../fish/guestfish.pod:810
18396 msgid ""
18397 "Remote control happens over a Unix domain socket called "
18398 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18399 "of the process, and C<$PID> is the process ID of the server."
18400 msgstr ""
18401
18402 # type: textblock
18403 #: ../fish/guestfish.pod:814
18404 msgid "Guestfish client and server versions must match exactly."
18405 msgstr ""
18406
18407 # type: =head1
18408 #: ../fish/guestfish.pod:816
18409 msgid "PREPARED DISK IMAGES"
18410 msgstr ""
18411
18412 # type: textblock
18413 #: ../fish/guestfish.pod:818
18414 msgid ""
18415 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18416 "preformatted disk images that guestfish can make for you to save typing.  "
18417 "This is particularly useful for testing purposes.  This option is used "
18418 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18419 "can be mixed with I<-a>)."
18420 msgstr ""
18421
18422 # type: textblock
18423 #: ../fish/guestfish.pod:824
18424 msgid ""
18425 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18426 "the second and so on.  Existing files in the current directory are "
18427 "I<overwritten>."
18428 msgstr ""
18429
18430 # type: textblock
18431 #: ../fish/guestfish.pod:828
18432 msgid ""
18433 "The type briefly describes how the disk should be sized, partitioned, how "
18434 "filesystem(s) should be created, and how content should be added.  "
18435 "Optionally the type can be followed by extra parameters, separated by C<:> "
18436 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
18437 "sparsely-allocated disk, containing a single partition, with the partition "
18438 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
18439 "on a 1GB disk instead."
18440 msgstr ""
18441
18442 # type: textblock
18443 #: ../fish/guestfish.pod:836
18444 msgid "To list the available types and any extra parameters they take, run:"
18445 msgstr ""
18446
18447 # type: textblock
18448 #: ../fish/guestfish.pod:840
18449 msgid ""
18450 "Note that the prepared filesystem is not mounted.  You would usually have to "
18451 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18452 msgstr ""
18453
18454 # type: textblock
18455 #: ../fish/guestfish.pod:844
18456 msgid ""
18457 "If any I<-N> or I<--new> options are given, the guest is automatically "
18458 "launched."
18459 msgstr ""
18460
18461 # type: textblock
18462 #: ../fish/guestfish.pod:849
18463 msgid "Create a 100MB disk with an ext4-formatted partition:"
18464 msgstr ""
18465
18466 # type: verbatim
18467 #: ../fish/guestfish.pod:851
18468 #, no-wrap
18469 msgid ""
18470 " guestfish -N fs:ext4\n"
18471 "\n"
18472 msgstr ""
18473
18474 # type: textblock
18475 #: ../fish/guestfish.pod:853
18476 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18477 msgstr ""
18478
18479 # type: verbatim
18480 #: ../fish/guestfish.pod:855
18481 #, no-wrap
18482 msgid ""
18483 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18484 "\n"
18485 msgstr ""
18486
18487 # type: textblock
18488 #: ../fish/guestfish.pod:857
18489 msgid "Create a blank 200MB disk:"
18490 msgstr ""
18491
18492 # type: verbatim
18493 #: ../fish/guestfish.pod:859
18494 #, no-wrap
18495 msgid ""
18496 " guestfish -N disk:200M\n"
18497 "\n"
18498 msgstr ""
18499
18500 # type: =head1
18501 #: ../fish/guestfish.pod:861
18502 msgid "PROGRESS BARS"
18503 msgstr ""
18504
18505 # type: textblock
18506 #: ../fish/guestfish.pod:863
18507 msgid ""
18508 "Some (not all) long-running commands send progress notification messages as "
18509 "they are running.  Guestfish turns these messages into progress bars."
18510 msgstr ""
18511
18512 # type: textblock
18513 #: ../fish/guestfish.pod:867
18514 msgid ""
18515 "When a command that supports progress bars takes longer than two seconds to "
18516 "run, and if progress bars are enabled, then you will see one appearing below "
18517 "the command:"
18518 msgstr ""
18519
18520 # type: verbatim
18521 #: ../fish/guestfish.pod:871
18522 #, no-wrap
18523 msgid ""
18524 " ><fs> copy-size /large-file /another-file 2048M\n"
18525 " / 10% [#####-----------------------------------------] 00:30\n"
18526 "\n"
18527 msgstr ""
18528
18529 # type: textblock
18530 #: ../fish/guestfish.pod:874
18531 msgid ""
18532 "The spinner on the left hand side moves round once for every progress "
18533 "notification received from the backend.  This is a (reasonably) golden "
18534 "assurance that the command is \"doing something\" even if the progress bar "
18535 "is not moving, because the command is able to send the progress "
18536 "notifications.  When the bar reaches 100% and the command finishes, the "
18537 "spinner disappears."
18538 msgstr ""
18539
18540 # type: textblock
18541 #: ../fish/guestfish.pod:881
18542 msgid ""
18543 "Progress bars are enabled by default when guestfish is used interactively.  "
18544 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18545 "and you can disable them completely using I<--no-progress-bars>."
18546 msgstr ""
18547
18548 # type: =head1
18549 #: ../fish/guestfish.pod:886
18550 msgid "GUESTFISH COMMANDS"
18551 msgstr ""
18552
18553 # type: textblock
18554 #: ../fish/guestfish.pod:888
18555 msgid ""
18556 "The commands in this section are guestfish convenience commands, in other "
18557 "words, they are not part of the L<guestfs(3)> API."
18558 msgstr ""
18559
18560 # type: =head2
18561 #: ../fish/guestfish.pod:891
18562 msgid "help"
18563 msgstr ""
18564
18565 # type: verbatim
18566 #: ../fish/guestfish.pod:893
18567 #, no-wrap
18568 msgid ""
18569 " help\n"
18570 " help cmd\n"
18571 "\n"
18572 msgstr ""
18573
18574 # type: textblock
18575 #: ../fish/guestfish.pod:896
18576 msgid "Without any parameter, this provides general help."
18577 msgstr ""
18578
18579 # type: textblock
18580 #: ../fish/guestfish.pod:898
18581 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18582 msgstr ""
18583
18584 # type: =head2
18585 #: ../fish/guestfish.pod:900
18586 msgid "quit | exit"
18587 msgstr ""
18588
18589 # type: textblock
18590 #: ../fish/guestfish.pod:902
18591 msgid "This exits guestfish.  You can also use C<^D> key."
18592 msgstr ""
18593
18594 # type: textblock
18595 #: ../fish/guestfish.pod:904
18596 msgid "@FISH_COMMANDS@"
18597 msgstr ""
18598
18599 # type: =head1
18600 #: ../fish/guestfish.pod:906
18601 msgid "COMMANDS"
18602 msgstr ""
18603
18604 # type: =head1
18605 #: ../fish/guestfish.pod:910 ../test-tool/libguestfs-test-tool.pod:83
18606 msgid "EXIT CODE"
18607 msgstr ""
18608
18609 # type: textblock
18610 #: ../fish/guestfish.pod:912
18611 msgid ""
18612 "guestfish returns 0 if the commands completed without error, or 1 if there "
18613 "was an error."
18614 msgstr ""
18615
18616 # type: =item
18617 #: ../fish/guestfish.pod:919
18618 msgid "EDITOR"
18619 msgstr ""
18620
18621 # type: textblock
18622 #: ../fish/guestfish.pod:921
18623 msgid ""
18624 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18625 "C<vi>."
18626 msgstr ""
18627
18628 # type: =item
18629 #: ../fish/guestfish.pod:924
18630 msgid "GUESTFISH_PID"
18631 msgstr ""
18632
18633 # type: textblock
18634 #: ../fish/guestfish.pod:926
18635 msgid ""
18636 "Used with the I<--remote> option to specify the remote guestfish process to "
18637 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18638 msgstr ""
18639
18640 # type: =item
18641 #: ../fish/guestfish.pod:930
18642 msgid "HEXEDITOR"
18643 msgstr ""
18644
18645 # type: textblock
18646 #: ../fish/guestfish.pod:932
18647 msgid ""
18648 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18649 "not specified, the external L<hexedit(1)> program is used."
18650 msgstr ""
18651
18652 # type: =item
18653 #: ../fish/guestfish.pod:936
18654 msgid "HOME"
18655 msgstr ""
18656
18657 # type: textblock
18658 #: ../fish/guestfish.pod:938
18659 msgid ""
18660 "If compiled with GNU readline support, various files in the home directory "
18661 "can be used.  See L</FILES>."
18662 msgstr ""
18663
18664 # type: textblock
18665 #: ../fish/guestfish.pod:947
18666 msgid ""
18667 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18668 "effect as using the B<-v> option."
18669 msgstr ""
18670
18671 # type: textblock
18672 #: ../fish/guestfish.pod:959
18673 msgid ""
18674 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18675 "the discussion of paths in L<guestfs(3)>."
18676 msgstr ""
18677
18678 # type: textblock
18679 #: ../fish/guestfish.pod:970
18680 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18681 msgstr ""
18682
18683 # type: =item
18684 #: ../fish/guestfish.pod:972
18685 msgid "PAGER"
18686 msgstr ""
18687
18688 # type: textblock
18689 #: ../fish/guestfish.pod:974
18690 msgid ""
18691 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18692 "C<more>."
18693 msgstr ""
18694
18695 # type: =head1
18696 #: ../fish/guestfish.pod:989 ../test-tool/libguestfs-test-tool.pod:88
18697 msgid "FILES"
18698 msgstr ""
18699
18700 # type: =item
18701 #: ../fish/guestfish.pod:993
18702 msgid "$HOME/.guestfish"
18703 msgstr ""
18704
18705 # type: textblock
18706 #: ../fish/guestfish.pod:995
18707 msgid ""
18708 "If compiled with GNU readline support, then the command history is saved in "
18709 "this file."
18710 msgstr ""
18711
18712 # type: =item
18713 #: ../fish/guestfish.pod:998
18714 msgid "$HOME/.inputrc"
18715 msgstr ""
18716
18717 # type: =item
18718 #: ../fish/guestfish.pod:1000
18719 msgid "/etc/inputrc"
18720 msgstr ""
18721
18722 # type: textblock
18723 #: ../fish/guestfish.pod:1002
18724 msgid ""
18725 "If compiled with GNU readline support, then these files can be used to "
18726 "configure readline.  For further information, please see "
18727 "L<readline(3)/INITIALIZATION FILE>."
18728 msgstr ""
18729
18730 # type: textblock
18731 #: ../fish/guestfish.pod:1006
18732 msgid "To write rules which only apply to guestfish, use:"
18733 msgstr ""
18734
18735 # type: verbatim
18736 #: ../fish/guestfish.pod:1008
18737 #, no-wrap
18738 msgid ""
18739 " $if guestfish\n"
18740 " ...\n"
18741 " $endif\n"
18742 "\n"
18743 msgstr ""
18744
18745 # type: textblock
18746 #: ../fish/guestfish.pod:1012
18747 msgid ""
18748 "Variables that you can set in inputrc that change the behaviour of guestfish "
18749 "in useful ways include:"
18750 msgstr ""
18751
18752 # type: =item
18753 #: ../fish/guestfish.pod:1017
18754 msgid "completion-ignore-case (default: on)"
18755 msgstr ""
18756
18757 # type: textblock
18758 #: ../fish/guestfish.pod:1019
18759 msgid ""
18760 "By default, guestfish will ignore case when tab-completing paths on the "
18761 "disk.  Use:"
18762 msgstr ""
18763
18764 # type: verbatim
18765 #: ../fish/guestfish.pod:1022
18766 #, no-wrap
18767 msgid ""
18768 " set completion-ignore-case off\n"
18769 "\n"
18770 msgstr ""
18771
18772 # type: textblock
18773 #: ../fish/guestfish.pod:1024
18774 msgid "to make guestfish case sensitive."
18775 msgstr ""
18776
18777 # type: =item
18778 #: ../fish/guestfish.pod:1028
18779 msgid "test1.img"
18780 msgstr ""
18781
18782 # type: =item
18783 #: ../fish/guestfish.pod:1030
18784 msgid "test2.img (etc)"
18785 msgstr ""
18786
18787 # type: textblock
18788 #: ../fish/guestfish.pod:1032
18789 msgid ""
18790 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18791 "will be created in the file C<test1.img> in the current directory.  The "
18792 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18793 "the same name will be overwritten."
18794 msgstr ""
18795
18796 # type: textblock
18797 #: ../fish/guestfish.pod:1041
18798 msgid ""
18799 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18800 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
18801 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
18802 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, "
18803 "L<virt-win-reg(1)>, L<hexedit(1)>."
18804 msgstr ""
18805
18806 # type: textblock
18807 #: ../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
18808 msgid ""
18809 "This program is free software; you can redistribute it and/or modify it "
18810 "under the terms of the GNU General Public License as published by the Free "
18811 "Software Foundation; either version 2 of the License, or (at your option) "
18812 "any later version."
18813 msgstr ""
18814
18815 # type: textblock
18816 #: ../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
18817 msgid ""
18818 "This program is distributed in the hope that it will be useful, but WITHOUT "
18819 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18820 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18821 "more details."
18822 msgstr ""
18823
18824 # type: textblock
18825 #: ../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
18826 msgid ""
18827 "You should have received a copy of the GNU General Public License along with "
18828 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18829 "Ave, Cambridge, MA 02139, USA."
18830 msgstr ""
18831
18832 # type: =head2
18833 #: ../fish/guestfish-actions.pod:1
18834 msgid "add-cdrom"
18835 msgstr ""
18836
18837 # type: verbatim
18838 #: ../fish/guestfish-actions.pod:3
18839 #, no-wrap
18840 msgid ""
18841 " add-cdrom filename\n"
18842 "\n"
18843 msgstr ""
18844
18845 # type: textblock
18846 #: ../fish/guestfish-actions.pod:15
18847 msgid ""
18848 "This call checks for the existence of C<filename>.  This stops you from "
18849 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18850 "and C<http:> URLs.  To specify those, use the general L</config> call "
18851 "instead."
18852 msgstr ""
18853
18854 # type: textblock
18855 #: ../fish/guestfish-actions.pod:22
18856 msgid ""
18857 "If you just want to add an ISO file (often you use this as an efficient way "
18858 "to transfer large files into the guest), then you should probably use "
18859 "L</add-drive-ro> instead."
18860 msgstr ""
18861
18862 # type: =head2
18863 #: ../fish/guestfish-actions.pod:35
18864 msgid "add-domain"
18865 msgstr ""
18866
18867 # type: =head2
18868 #: ../fish/guestfish-actions.pod:37
18869 msgid "domain"
18870 msgstr ""
18871
18872 # type: verbatim
18873 #: ../fish/guestfish-actions.pod:39
18874 #, no-wrap
18875 msgid ""
18876 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18877 "\n"
18878 msgstr ""
18879
18880 # type: textblock
18881 #: ../fish/guestfish-actions.pod:41
18882 msgid ""
18883 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18884 "It works by connecting to libvirt, requesting the domain and domain XML from "
18885 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
18886 msgstr ""
18887
18888 # type: textblock
18889 #: ../fish/guestfish-actions.pod:58
18890 msgid ""
18891 "The optional C<libvirturi> parameter sets the libvirt URI (see "
18892 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
18893 "default libvirt URI (or one set through an environment variable, see the "
18894 "libvirt documentation for full details).  If you are using the C API "
18895 "directly then it is more flexible to create the libvirt connection object "
18896 "yourself, get the domain object, and call L</add-libvirt-dom>."
18897 msgstr ""
18898
18899 # type: textblock
18900 #: ../fish/guestfish-actions.pod:66
18901 msgid ""
18902 "The other optional parameters are passed directly through to "
18903 "L</add-drive-opts>."
18904 msgstr ""
18905
18906 # type: textblock
18907 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133 ../fish/guestfish-actions.pod:2804
18908 msgid ""
18909 "This command has one or more optional arguments.  See L</OPTIONAL "
18910 "ARGUMENTS>."
18911 msgstr ""
18912
18913 # type: =head2
18914 #: ../fish/guestfish-actions.pod:71
18915 msgid "add-drive"
18916 msgstr ""
18917
18918 # type: verbatim
18919 #: ../fish/guestfish-actions.pod:73
18920 #, no-wrap
18921 msgid ""
18922 " add-drive filename\n"
18923 "\n"
18924 msgstr ""
18925
18926 # type: textblock
18927 #: ../fish/guestfish-actions.pod:75
18928 msgid ""
18929 "This function is the equivalent of calling L</add-drive-opts> with no "
18930 "optional parameters, so the disk is added writable, with the format being "
18931 "detected automatically."
18932 msgstr ""
18933
18934 # type: textblock
18935 #: ../fish/guestfish-actions.pod:79
18936 msgid ""
18937 "Automatic detection of the format opens you up to a potential security hole "
18938 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
18939 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
18940 "you should think about replacing calls to this function with calls to "
18941 "L</add-drive-opts>, and specifying the format."
18942 msgstr ""
18943
18944 # type: =head2
18945 #: ../fish/guestfish-actions.pod:86
18946 msgid "add-drive-opts"
18947 msgstr ""
18948
18949 # type: =head2
18950 #: ../fish/guestfish-actions.pod:88
18951 msgid "add"
18952 msgstr ""
18953
18954 # type: verbatim
18955 #: ../fish/guestfish-actions.pod:90
18956 #, no-wrap
18957 msgid ""
18958 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
18959 "\n"
18960 msgstr ""
18961
18962 # type: textblock
18963 #: ../fish/guestfish-actions.pod:117
18964 msgid ""
18965 "This forces the image format.  If you omit this (or use L</add-drive> or "
18966 "L</add-drive-ro>) then the format is automatically detected.  Possible "
18967 "formats include C<raw> and C<qcow2>."
18968 msgstr ""
18969
18970 # type: textblock
18971 #: ../fish/guestfish-actions.pod:128
18972 msgid ""
18973 "This rarely-used option lets you emulate the behaviour of the deprecated "
18974 "L</add-drive-with-if> call (q.v.)"
18975 msgstr ""
18976
18977 # type: =head2
18978 #: ../fish/guestfish-actions.pod:135
18979 msgid "add-drive-ro"
18980 msgstr ""
18981
18982 # type: =head2
18983 #: ../fish/guestfish-actions.pod:137
18984 msgid "add-ro"
18985 msgstr ""
18986
18987 # type: verbatim
18988 #: ../fish/guestfish-actions.pod:139
18989 #, no-wrap
18990 msgid ""
18991 " add-drive-ro filename\n"
18992 "\n"
18993 msgstr ""
18994
18995 # type: textblock
18996 #: ../fish/guestfish-actions.pod:141
18997 msgid ""
18998 "This function is the equivalent of calling L</add-drive-opts> with the "
18999 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19000 "is added read-only, with the format being detected automatically."
19001 msgstr ""
19002
19003 # type: =head2
19004 #: ../fish/guestfish-actions.pod:146
19005 msgid "add-drive-ro-with-if"
19006 msgstr ""
19007
19008 # type: verbatim
19009 #: ../fish/guestfish-actions.pod:148
19010 #, no-wrap
19011 msgid ""
19012 " add-drive-ro-with-if filename iface\n"
19013 "\n"
19014 msgstr ""
19015
19016 # type: textblock
19017 #: ../fish/guestfish-actions.pod:150
19018 msgid ""
19019 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19020 "interface emulation to use at run time."
19021 msgstr ""
19022
19023 # type: =head2
19024 #: ../fish/guestfish-actions.pod:160
19025 msgid "add-drive-with-if"
19026 msgstr ""
19027
19028 # type: verbatim
19029 #: ../fish/guestfish-actions.pod:162
19030 #, no-wrap
19031 msgid ""
19032 " add-drive-with-if filename iface\n"
19033 "\n"
19034 msgstr ""
19035
19036 # type: textblock
19037 #: ../fish/guestfish-actions.pod:164
19038 msgid ""
19039 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19040 "interface emulation to use at run time."
19041 msgstr ""
19042
19043 # type: =head2
19044 #: ../fish/guestfish-actions.pod:174
19045 msgid "aug-clear"
19046 msgstr ""
19047
19048 # type: verbatim
19049 #: ../fish/guestfish-actions.pod:176
19050 #, no-wrap
19051 msgid ""
19052 " aug-clear augpath\n"
19053 "\n"
19054 msgstr ""
19055
19056 # type: =head2
19057 #: ../fish/guestfish-actions.pod:181
19058 msgid "aug-close"
19059 msgstr ""
19060
19061 # type: verbatim
19062 #: ../fish/guestfish-actions.pod:183
19063 #, no-wrap
19064 msgid ""
19065 " aug-close\n"
19066 "\n"
19067 msgstr ""
19068
19069 # type: textblock
19070 #: ../fish/guestfish-actions.pod:185
19071 msgid ""
19072 "Close the current Augeas handle and free up any resources used by it.  After "
19073 "calling this, you have to call L</aug-init> again before you can use any "
19074 "other Augeas functions."
19075 msgstr ""
19076
19077 # type: =head2
19078 #: ../fish/guestfish-actions.pod:190
19079 msgid "aug-defnode"
19080 msgstr ""
19081
19082 # type: verbatim
19083 #: ../fish/guestfish-actions.pod:192
19084 #, no-wrap
19085 msgid ""
19086 " aug-defnode name expr val\n"
19087 "\n"
19088 msgstr ""
19089
19090 # type: textblock
19091 #: ../fish/guestfish-actions.pod:197
19092 msgid ""
19093 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19094 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19095 "containing that single node."
19096 msgstr ""
19097
19098 # type: =head2
19099 #: ../fish/guestfish-actions.pod:205
19100 msgid "aug-defvar"
19101 msgstr ""
19102
19103 # type: verbatim
19104 #: ../fish/guestfish-actions.pod:207
19105 #, no-wrap
19106 msgid ""
19107 " aug-defvar name expr\n"
19108 "\n"
19109 msgstr ""
19110
19111 # type: =head2
19112 #: ../fish/guestfish-actions.pod:216
19113 msgid "aug-get"
19114 msgstr ""
19115
19116 # type: verbatim
19117 #: ../fish/guestfish-actions.pod:218
19118 #, no-wrap
19119 msgid ""
19120 " aug-get augpath\n"
19121 "\n"
19122 msgstr ""
19123
19124 # type: =head2
19125 #: ../fish/guestfish-actions.pod:223
19126 msgid "aug-init"
19127 msgstr ""
19128
19129 # type: verbatim
19130 #: ../fish/guestfish-actions.pod:225
19131 #, no-wrap
19132 msgid ""
19133 " aug-init root flags\n"
19134 "\n"
19135 msgstr ""
19136
19137 # type: textblock
19138 #: ../fish/guestfish-actions.pod:231
19139 msgid "You must call this before using any other L</aug-*> commands."
19140 msgstr ""
19141
19142 # type: textblock
19143 #: ../fish/guestfish-actions.pod:266
19144 msgid "Do not load the tree in L</aug-init>."
19145 msgstr ""
19146
19147 # type: textblock
19148 #: ../fish/guestfish-actions.pod:270
19149 msgid "To close the handle, you can call L</aug-close>."
19150 msgstr ""
19151
19152 # type: =head2
19153 #: ../fish/guestfish-actions.pod:274
19154 msgid "aug-insert"
19155 msgstr ""
19156
19157 # type: verbatim
19158 #: ../fish/guestfish-actions.pod:276
19159 #, no-wrap
19160 msgid ""
19161 " aug-insert augpath label true|false\n"
19162 "\n"
19163 msgstr ""
19164
19165 # type: =head2
19166 #: ../fish/guestfish-actions.pod:286
19167 msgid "aug-load"
19168 msgstr ""
19169
19170 # type: verbatim
19171 #: ../fish/guestfish-actions.pod:288
19172 #, no-wrap
19173 msgid ""
19174 " aug-load\n"
19175 "\n"
19176 msgstr ""
19177
19178 # type: =head2
19179 #: ../fish/guestfish-actions.pod:295
19180 msgid "aug-ls"
19181 msgstr ""
19182
19183 # type: verbatim
19184 #: ../fish/guestfish-actions.pod:297
19185 #, no-wrap
19186 msgid ""
19187 " aug-ls augpath\n"
19188 "\n"
19189 msgstr ""
19190
19191 # type: textblock
19192 #: ../fish/guestfish-actions.pod:299
19193 msgid ""
19194 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19195 "resulting nodes into alphabetical order."
19196 msgstr ""
19197
19198 # type: =head2
19199 #: ../fish/guestfish-actions.pod:302
19200 msgid "aug-match"
19201 msgstr ""
19202
19203 # type: verbatim
19204 #: ../fish/guestfish-actions.pod:304
19205 #, no-wrap
19206 msgid ""
19207 " aug-match augpath\n"
19208 "\n"
19209 msgstr ""
19210
19211 # type: =head2
19212 #: ../fish/guestfish-actions.pod:310
19213 msgid "aug-mv"
19214 msgstr ""
19215
19216 # type: verbatim
19217 #: ../fish/guestfish-actions.pod:312
19218 #, no-wrap
19219 msgid ""
19220 " aug-mv src dest\n"
19221 "\n"
19222 msgstr ""
19223
19224 # type: =head2
19225 #: ../fish/guestfish-actions.pod:317
19226 msgid "aug-rm"
19227 msgstr ""
19228
19229 # type: verbatim
19230 #: ../fish/guestfish-actions.pod:319
19231 #, no-wrap
19232 msgid ""
19233 " aug-rm augpath\n"
19234 "\n"
19235 msgstr ""
19236
19237 # type: =head2
19238 #: ../fish/guestfish-actions.pod:325
19239 msgid "aug-save"
19240 msgstr ""
19241
19242 # type: verbatim
19243 #: ../fish/guestfish-actions.pod:327
19244 #, no-wrap
19245 msgid ""
19246 " aug-save\n"
19247 "\n"
19248 msgstr ""
19249
19250 # type: textblock
19251 #: ../fish/guestfish-actions.pod:331
19252 msgid ""
19253 "The flags which were passed to L</aug-init> affect exactly how files are "
19254 "saved."
19255 msgstr ""
19256
19257 # type: =head2
19258 #: ../fish/guestfish-actions.pod:334
19259 msgid "aug-set"
19260 msgstr ""
19261
19262 # type: verbatim
19263 #: ../fish/guestfish-actions.pod:336
19264 #, no-wrap
19265 msgid ""
19266 " aug-set augpath val\n"
19267 "\n"
19268 msgstr ""
19269
19270 # type: textblock
19271 #: ../fish/guestfish-actions.pod:340
19272 msgid ""
19273 "In the Augeas API, it is possible to clear a node by setting the value to "
19274 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19275 "this call.  Instead you must use the L</aug-clear> call."
19276 msgstr ""
19277
19278 # type: =head2
19279 #: ../fish/guestfish-actions.pod:345
19280 msgid "available"
19281 msgstr ""
19282
19283 # type: verbatim
19284 #: ../fish/guestfish-actions.pod:347
19285 #, no-wrap
19286 msgid ""
19287 " available 'groups ...'\n"
19288 "\n"
19289 msgstr ""
19290
19291 # type: textblock
19292 #: ../fish/guestfish-actions.pod:353
19293 msgid ""
19294 "The libguestfs groups, and the functions that those groups correspond to, "
19295 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19296 "runtime by calling L</available-all-groups>."
19297 msgstr ""
19298
19299 # type: textblock
19300 #: ../fish/guestfish-actions.pod:377
19301 msgid "You must call L</launch> before calling this function."
19302 msgstr ""
19303
19304 # type: textblock
19305 #: ../fish/guestfish-actions.pod:399
19306 msgid ""
19307 "This call was added in version C<1.0.80>.  In previous versions of "
19308 "libguestfs all you could do would be to speculatively execute a command to "
19309 "find out if the daemon implemented it.  See also L</version>."
19310 msgstr ""
19311
19312 # type: =head2
19313 #: ../fish/guestfish-actions.pod:406
19314 msgid "available-all-groups"
19315 msgstr ""
19316
19317 # type: verbatim
19318 #: ../fish/guestfish-actions.pod:408
19319 #, no-wrap
19320 msgid ""
19321 " available-all-groups\n"
19322 "\n"
19323 msgstr ""
19324
19325 # type: textblock
19326 #: ../fish/guestfish-actions.pod:410
19327 msgid ""
19328 "This command returns a list of all optional groups that this daemon knows "
19329 "about.  Note this returns both supported and unsupported groups.  To find "
19330 "out which ones the daemon can actually support you have to call "
19331 "L</available> on each member of the returned list."
19332 msgstr ""
19333
19334 # type: textblock
19335 #: ../fish/guestfish-actions.pod:416
19336 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19337 msgstr ""
19338
19339 # type: =head2
19340 #: ../fish/guestfish-actions.pod:418
19341 msgid "base64-in"
19342 msgstr ""
19343
19344 # type: verbatim
19345 #: ../fish/guestfish-actions.pod:420
19346 #, no-wrap
19347 msgid ""
19348 " base64-in (base64file|-) filename\n"
19349 "\n"
19350 msgstr ""
19351
19352 # type: textblock
19353 #: ../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:4159 ../fish/guestfish-actions.pod:4171 ../fish/guestfish-actions.pod:4182 ../fish/guestfish-actions.pod:4193 ../fish/guestfish-actions.pod:4245 ../fish/guestfish-actions.pod:4254 ../fish/guestfish-actions.pod:4308 ../fish/guestfish-actions.pod:4331
19354 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19355 msgstr ""
19356
19357 # type: =head2
19358 #: ../fish/guestfish-actions.pod:427
19359 msgid "base64-out"
19360 msgstr ""
19361
19362 # type: verbatim
19363 #: ../fish/guestfish-actions.pod:429
19364 #, no-wrap
19365 msgid ""
19366 " base64-out filename (base64file|-)\n"
19367 "\n"
19368 msgstr ""
19369
19370 # type: =head2
19371 #: ../fish/guestfish-actions.pod:436
19372 msgid "blockdev-flushbufs"
19373 msgstr ""
19374
19375 # type: verbatim
19376 #: ../fish/guestfish-actions.pod:438
19377 #, no-wrap
19378 msgid ""
19379 " blockdev-flushbufs device\n"
19380 "\n"
19381 msgstr ""
19382
19383 # type: =head2
19384 #: ../fish/guestfish-actions.pod:445
19385 msgid "blockdev-getbsz"
19386 msgstr ""
19387
19388 # type: verbatim
19389 #: ../fish/guestfish-actions.pod:447
19390 #, no-wrap
19391 msgid ""
19392 " blockdev-getbsz device\n"
19393 "\n"
19394 msgstr ""
19395
19396 # type: =head2
19397 #: ../fish/guestfish-actions.pod:456
19398 msgid "blockdev-getro"
19399 msgstr ""
19400
19401 # type: verbatim
19402 #: ../fish/guestfish-actions.pod:458
19403 #, no-wrap
19404 msgid ""
19405 " blockdev-getro device\n"
19406 "\n"
19407 msgstr ""
19408
19409 # type: =head2
19410 #: ../fish/guestfish-actions.pod:465
19411 msgid "blockdev-getsize64"
19412 msgstr ""
19413
19414 # type: verbatim
19415 #: ../fish/guestfish-actions.pod:467
19416 #, no-wrap
19417 msgid ""
19418 " blockdev-getsize64 device\n"
19419 "\n"
19420 msgstr ""
19421
19422 # type: textblock
19423 #: ../fish/guestfish-actions.pod:471
19424 msgid "See also L</blockdev-getsz>."
19425 msgstr ""
19426
19427 # type: =head2
19428 #: ../fish/guestfish-actions.pod:475
19429 msgid "blockdev-getss"
19430 msgstr ""
19431
19432 # type: verbatim
19433 #: ../fish/guestfish-actions.pod:477
19434 #, no-wrap
19435 msgid ""
19436 " blockdev-getss device\n"
19437 "\n"
19438 msgstr ""
19439
19440 # type: textblock
19441 #: ../fish/guestfish-actions.pod:482
19442 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19443 msgstr ""
19444
19445 # type: =head2
19446 #: ../fish/guestfish-actions.pod:487
19447 msgid "blockdev-getsz"
19448 msgstr ""
19449
19450 # type: verbatim
19451 #: ../fish/guestfish-actions.pod:489
19452 #, no-wrap
19453 msgid ""
19454 " blockdev-getsz device\n"
19455 "\n"
19456 msgstr ""
19457
19458 # type: textblock
19459 #: ../fish/guestfish-actions.pod:494
19460 msgid ""
19461 "See also L</blockdev-getss> for the real sector size of the device, and "
19462 "L</blockdev-getsize64> for the more useful I<size in bytes>."
19463 msgstr ""
19464
19465 # type: =head2
19466 #: ../fish/guestfish-actions.pod:500
19467 msgid "blockdev-rereadpt"
19468 msgstr ""
19469
19470 # type: verbatim
19471 #: ../fish/guestfish-actions.pod:502
19472 #, no-wrap
19473 msgid ""
19474 " blockdev-rereadpt device\n"
19475 "\n"
19476 msgstr ""
19477
19478 # type: =head2
19479 #: ../fish/guestfish-actions.pod:508
19480 msgid "blockdev-setbsz"
19481 msgstr ""
19482
19483 # type: verbatim
19484 #: ../fish/guestfish-actions.pod:510
19485 #, no-wrap
19486 msgid ""
19487 " blockdev-setbsz device blocksize\n"
19488 "\n"
19489 msgstr ""
19490
19491 # type: =head2
19492 #: ../fish/guestfish-actions.pod:519
19493 msgid "blockdev-setro"
19494 msgstr ""
19495
19496 # type: verbatim
19497 #: ../fish/guestfish-actions.pod:521
19498 #, no-wrap
19499 msgid ""
19500 " blockdev-setro device\n"
19501 "\n"
19502 msgstr ""
19503
19504 # type: =head2
19505 #: ../fish/guestfish-actions.pod:527
19506 msgid "blockdev-setrw"
19507 msgstr ""
19508
19509 # type: verbatim
19510 #: ../fish/guestfish-actions.pod:529
19511 #, no-wrap
19512 msgid ""
19513 " blockdev-setrw device\n"
19514 "\n"
19515 msgstr ""
19516
19517 # type: =head2
19518 #: ../fish/guestfish-actions.pod:535
19519 msgid "case-sensitive-path"
19520 msgstr ""
19521
19522 # type: verbatim
19523 #: ../fish/guestfish-actions.pod:537
19524 #, no-wrap
19525 msgid ""
19526 " case-sensitive-path path\n"
19527 "\n"
19528 msgstr ""
19529
19530 # type: textblock
19531 #: ../fish/guestfish-actions.pod:561
19532 msgid ""
19533 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
19534 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
19535 "how the directories were originally created under Windows)."
19536 msgstr ""
19537
19538 # type: textblock
19539 #: ../fish/guestfish-actions.pod:569
19540 msgid "See also L</realpath>."
19541 msgstr ""
19542
19543 # type: =head2
19544 #: ../fish/guestfish-actions.pod:571
19545 msgid "cat"
19546 msgstr ""
19547
19548 # type: verbatim
19549 #: ../fish/guestfish-actions.pod:573
19550 #, no-wrap
19551 msgid ""
19552 " cat path\n"
19553 "\n"
19554 msgstr ""
19555
19556 # type: textblock
19557 #: ../fish/guestfish-actions.pod:577
19558 msgid ""
19559 "Note that this function cannot correctly handle binary files (specifically, "
19560 "files containing C<\\0> character which is treated as end of string).  For "
19561 "those you need to use the L</read-file> or L</download> functions which have "
19562 "a more complex interface."
19563 msgstr ""
19564
19565 # type: =head2
19566 #: ../fish/guestfish-actions.pod:585
19567 msgid "checksum"
19568 msgstr ""
19569
19570 # type: verbatim
19571 #: ../fish/guestfish-actions.pod:587
19572 #, no-wrap
19573 msgid ""
19574 " checksum csumtype path\n"
19575 "\n"
19576 msgstr ""
19577
19578 # type: textblock
19579 #: ../fish/guestfish-actions.pod:630
19580 msgid "To get the checksum for a device, use L</checksum-device>."
19581 msgstr ""
19582
19583 # type: textblock
19584 #: ../fish/guestfish-actions.pod:632
19585 msgid "To get the checksums for many files, use L</checksums-out>."
19586 msgstr ""
19587
19588 # type: =head2
19589 #: ../fish/guestfish-actions.pod:634
19590 msgid "checksum-device"
19591 msgstr ""
19592
19593 # type: verbatim
19594 #: ../fish/guestfish-actions.pod:636
19595 #, no-wrap
19596 msgid ""
19597 " checksum-device csumtype device\n"
19598 "\n"
19599 msgstr ""
19600
19601 # type: textblock
19602 #: ../fish/guestfish-actions.pod:638
19603 msgid ""
19604 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19605 "device named C<device>.  For the types of checksums supported see the "
19606 "L</checksum> command."
19607 msgstr ""
19608
19609 # type: =head2
19610 #: ../fish/guestfish-actions.pod:642
19611 msgid "checksums-out"
19612 msgstr ""
19613
19614 # type: verbatim
19615 #: ../fish/guestfish-actions.pod:644
19616 #, no-wrap
19617 msgid ""
19618 " checksums-out csumtype directory (sumsfile|-)\n"
19619 "\n"
19620 msgstr ""
19621
19622 # type: =head2
19623 #: ../fish/guestfish-actions.pod:660
19624 msgid "chmod"
19625 msgstr ""
19626
19627 # type: verbatim
19628 #: ../fish/guestfish-actions.pod:662
19629 #, no-wrap
19630 msgid ""
19631 " chmod mode path\n"
19632 "\n"
19633 msgstr ""
19634
19635 # type: =head2
19636 #: ../fish/guestfish-actions.pod:673
19637 msgid "chown"
19638 msgstr ""
19639
19640 # type: verbatim
19641 #: ../fish/guestfish-actions.pod:675
19642 #, no-wrap
19643 msgid ""
19644 " chown owner group path\n"
19645 "\n"
19646 msgstr ""
19647
19648 # type: =head2
19649 #: ../fish/guestfish-actions.pod:683
19650 msgid "command"
19651 msgstr ""
19652
19653 # type: verbatim
19654 #: ../fish/guestfish-actions.pod:685
19655 #, no-wrap
19656 msgid ""
19657 " command 'arguments ...'\n"
19658 "\n"
19659 msgstr ""
19660
19661 # type: textblock
19662 #: ../fish/guestfish-actions.pod:692
19663 msgid ""
19664 "The single parameter is an argv-style list of arguments.  The first element "
19665 "is the name of the program to run.  Subsequent elements are parameters.  The "
19666 "list must be non-empty (ie. must contain a program name).  Note that the "
19667 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19668 msgstr ""
19669
19670 # type: =head2
19671 #: ../fish/guestfish-actions.pod:720
19672 msgid "command-lines"
19673 msgstr ""
19674
19675 # type: verbatim
19676 #: ../fish/guestfish-actions.pod:722
19677 #, no-wrap
19678 msgid ""
19679 " command-lines 'arguments ...'\n"
19680 "\n"
19681 msgstr ""
19682
19683 # type: textblock
19684 #: ../fish/guestfish-actions.pod:724
19685 msgid "This is the same as L</command>, but splits the result into a list of lines."
19686 msgstr ""
19687
19688 # type: textblock
19689 #: ../fish/guestfish-actions.pod:727
19690 msgid "See also: L</sh-lines>"
19691 msgstr ""
19692
19693 # type: =head2
19694 #: ../fish/guestfish-actions.pod:732
19695 msgid "config"
19696 msgstr ""
19697
19698 # type: verbatim
19699 #: ../fish/guestfish-actions.pod:734
19700 #, no-wrap
19701 msgid ""
19702 " config qemuparam qemuvalue\n"
19703 "\n"
19704 msgstr ""
19705
19706 # type: =head2
19707 #: ../fish/guestfish-actions.pod:745
19708 msgid "copy-size"
19709 msgstr ""
19710
19711 # type: verbatim
19712 #: ../fish/guestfish-actions.pod:747
19713 #, no-wrap
19714 msgid ""
19715 " copy-size src dest size\n"
19716 "\n"
19717 msgstr ""
19718
19719 # type: =head2
19720 #: ../fish/guestfish-actions.pod:755
19721 msgid "cp"
19722 msgstr ""
19723
19724 # type: verbatim
19725 #: ../fish/guestfish-actions.pod:757
19726 #, no-wrap
19727 msgid ""
19728 " cp src dest\n"
19729 "\n"
19730 msgstr ""
19731
19732 # type: =head2
19733 #: ../fish/guestfish-actions.pod:762
19734 msgid "cp-a"
19735 msgstr ""
19736
19737 # type: verbatim
19738 #: ../fish/guestfish-actions.pod:764
19739 #, no-wrap
19740 msgid ""
19741 " cp-a src dest\n"
19742 "\n"
19743 msgstr ""
19744
19745 # type: =head2
19746 #: ../fish/guestfish-actions.pod:769
19747 msgid "dd"
19748 msgstr ""
19749
19750 # type: verbatim
19751 #: ../fish/guestfish-actions.pod:771
19752 #, no-wrap
19753 msgid ""
19754 " dd src dest\n"
19755 "\n"
19756 msgstr ""
19757
19758 # type: textblock
19759 #: ../fish/guestfish-actions.pod:778
19760 msgid ""
19761 "If the destination is a device, it must be as large or larger than the "
19762 "source file or device, otherwise the copy will fail.  This command cannot do "
19763 "partial copies (see L</copy-size>)."
19764 msgstr ""
19765
19766 # type: =head2
19767 #: ../fish/guestfish-actions.pod:782
19768 msgid "df"
19769 msgstr ""
19770
19771 # type: verbatim
19772 #: ../fish/guestfish-actions.pod:784
19773 #, no-wrap
19774 msgid ""
19775 " df\n"
19776 "\n"
19777 msgstr ""
19778
19779 # type: =head2
19780 #: ../fish/guestfish-actions.pod:792
19781 msgid "df-h"
19782 msgstr ""
19783
19784 # type: verbatim
19785 #: ../fish/guestfish-actions.pod:794
19786 #, no-wrap
19787 msgid ""
19788 " df-h\n"
19789 "\n"
19790 msgstr ""
19791
19792 # type: =head2
19793 #: ../fish/guestfish-actions.pod:803
19794 msgid "dmesg"
19795 msgstr ""
19796
19797 # type: verbatim
19798 #: ../fish/guestfish-actions.pod:805
19799 #, no-wrap
19800 msgid ""
19801 " dmesg\n"
19802 "\n"
19803 msgstr ""
19804
19805 # type: textblock
19806 #: ../fish/guestfish-actions.pod:811
19807 msgid ""
19808 "Another way to get the same information is to enable verbose messages with "
19809 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19810 "before running the program."
19811 msgstr ""
19812
19813 # type: =head2
19814 #: ../fish/guestfish-actions.pod:816
19815 msgid "download"
19816 msgstr ""
19817
19818 # type: verbatim
19819 #: ../fish/guestfish-actions.pod:818
19820 #, no-wrap
19821 msgid ""
19822 " download remotefilename (filename|-)\n"
19823 "\n"
19824 msgstr ""
19825
19826 # type: textblock
19827 #: ../fish/guestfish-actions.pod:825
19828 msgid "See also L</upload>, L</cat>."
19829 msgstr ""
19830
19831 # type: =head2
19832 #: ../fish/guestfish-actions.pod:829
19833 msgid "download-offset"
19834 msgstr ""
19835
19836 # type: verbatim
19837 #: ../fish/guestfish-actions.pod:831
19838 #, no-wrap
19839 msgid ""
19840 " download-offset remotefilename (filename|-) offset size\n"
19841 "\n"
19842 msgstr ""
19843
19844 # type: textblock
19845 #: ../fish/guestfish-actions.pod:839
19846 msgid ""
19847 "Note that there is no limit on the amount of data that can be downloaded "
19848 "with this call, unlike with L</pread>, and this call always reads the full "
19849 "amount unless an error occurs."
19850 msgstr ""
19851
19852 # type: textblock
19853 #: ../fish/guestfish-actions.pod:844
19854 msgid "See also L</download>, L</pread>."
19855 msgstr ""
19856
19857 # type: =head2
19858 #: ../fish/guestfish-actions.pod:848
19859 msgid "drop-caches"
19860 msgstr ""
19861
19862 # type: verbatim
19863 #: ../fish/guestfish-actions.pod:850
19864 #, no-wrap
19865 msgid ""
19866 " drop-caches whattodrop\n"
19867 "\n"
19868 msgstr ""
19869
19870 # type: =head2
19871 #: ../fish/guestfish-actions.pod:862
19872 msgid "du"
19873 msgstr ""
19874
19875 # type: verbatim
19876 #: ../fish/guestfish-actions.pod:864
19877 #, no-wrap
19878 msgid ""
19879 " du path\n"
19880 "\n"
19881 msgstr ""
19882
19883 # type: =head2
19884 #: ../fish/guestfish-actions.pod:876
19885 msgid "e2fsck-f"
19886 msgstr ""
19887
19888 # type: verbatim
19889 #: ../fish/guestfish-actions.pod:878
19890 #, no-wrap
19891 msgid ""
19892 " e2fsck-f device\n"
19893 "\n"
19894 msgstr ""
19895
19896 # type: textblock
19897 #: ../fish/guestfish-actions.pod:884
19898 msgid ""
19899 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
19900 "should use L</fsck>."
19901 msgstr ""
19902
19903 # type: =head2
19904 #: ../fish/guestfish-actions.pod:887
19905 msgid "echo-daemon"
19906 msgstr ""
19907
19908 # type: verbatim
19909 #: ../fish/guestfish-actions.pod:889
19910 #, no-wrap
19911 msgid ""
19912 " echo-daemon 'words ...'\n"
19913 "\n"
19914 msgstr ""
19915
19916 # type: textblock
19917 #: ../fish/guestfish-actions.pod:896
19918 msgid "See also L</ping-daemon>."
19919 msgstr ""
19920
19921 # type: =head2
19922 #: ../fish/guestfish-actions.pod:898
19923 msgid "egrep"
19924 msgstr ""
19925
19926 # type: verbatim
19927 #: ../fish/guestfish-actions.pod:900
19928 #, no-wrap
19929 msgid ""
19930 " egrep regex path\n"
19931 "\n"
19932 msgstr ""
19933
19934 # type: =head2
19935 #: ../fish/guestfish-actions.pod:908
19936 msgid "egrepi"
19937 msgstr ""
19938
19939 # type: verbatim
19940 #: ../fish/guestfish-actions.pod:910
19941 #, no-wrap
19942 msgid ""
19943 " egrepi regex path\n"
19944 "\n"
19945 msgstr ""
19946
19947 # type: =head2
19948 #: ../fish/guestfish-actions.pod:918
19949 msgid "equal"
19950 msgstr ""
19951
19952 # type: verbatim
19953 #: ../fish/guestfish-actions.pod:920
19954 #, no-wrap
19955 msgid ""
19956 " equal file1 file2\n"
19957 "\n"
19958 msgstr ""
19959
19960 # type: =head2
19961 #: ../fish/guestfish-actions.pod:927
19962 msgid "exists"
19963 msgstr ""
19964
19965 # type: verbatim
19966 #: ../fish/guestfish-actions.pod:929
19967 #, no-wrap
19968 msgid ""
19969 " exists path\n"
19970 "\n"
19971 msgstr ""
19972
19973 # type: textblock
19974 #: ../fish/guestfish-actions.pod:934
19975 msgid "See also L</is-file>, L</is-dir>, L</stat>."
19976 msgstr ""
19977
19978 # type: =head2
19979 #: ../fish/guestfish-actions.pod:936
19980 msgid "fallocate"
19981 msgstr ""
19982
19983 # type: verbatim
19984 #: ../fish/guestfish-actions.pod:938
19985 #, no-wrap
19986 msgid ""
19987 " fallocate path len\n"
19988 "\n"
19989 msgstr ""
19990
19991 # type: =head2
19992 #: ../fish/guestfish-actions.pod:955
19993 msgid "fallocate64"
19994 msgstr ""
19995
19996 # type: verbatim
19997 #: ../fish/guestfish-actions.pod:957
19998 #, no-wrap
19999 msgid ""
20000 " fallocate64 path len\n"
20001 "\n"
20002 msgstr ""
20003
20004 # type: textblock
20005 #: ../fish/guestfish-actions.pod:963
20006 msgid ""
20007 "Note that this call allocates disk blocks for the file.  To create a sparse "
20008 "file use L</truncate-size> instead."
20009 msgstr ""
20010
20011 # type: textblock
20012 #: ../fish/guestfish-actions.pod:966
20013 msgid ""
20014 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20015 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20016 "maximum size of files created through that call to 1GB."
20017 msgstr ""
20018
20019 # type: =head2
20020 #: ../fish/guestfish-actions.pod:975
20021 msgid "fgrep"
20022 msgstr ""
20023
20024 # type: verbatim
20025 #: ../fish/guestfish-actions.pod:977
20026 #, no-wrap
20027 msgid ""
20028 " fgrep pattern path\n"
20029 "\n"
20030 msgstr ""
20031
20032 # type: =head2
20033 #: ../fish/guestfish-actions.pod:985
20034 msgid "fgrepi"
20035 msgstr ""
20036
20037 # type: verbatim
20038 #: ../fish/guestfish-actions.pod:987
20039 #, no-wrap
20040 msgid ""
20041 " fgrepi pattern path\n"
20042 "\n"
20043 msgstr ""
20044
20045 # type: =head2
20046 #: ../fish/guestfish-actions.pod:995
20047 msgid "file"
20048 msgstr ""
20049
20050 # type: verbatim
20051 #: ../fish/guestfish-actions.pod:997
20052 #, no-wrap
20053 msgid ""
20054 " file path\n"
20055 "\n"
20056 msgstr ""
20057
20058 # type: textblock
20059 #: ../fish/guestfish-actions.pod:1009
20060 msgid ""
20061 "This command can also be used on C</dev/> devices (and partitions, LV "
20062 "names).  You can for example use this to determine if a device contains a "
20063 "filesystem, although it's usually better to use L</vfs-type>."
20064 msgstr ""
20065
20066 # type: =head2
20067 #: ../fish/guestfish-actions.pod:1019
20068 msgid "file-architecture"
20069 msgstr ""
20070
20071 # type: verbatim
20072 #: ../fish/guestfish-actions.pod:1021
20073 #, no-wrap
20074 msgid ""
20075 " file-architecture filename\n"
20076 "\n"
20077 msgstr ""
20078
20079 # type: =head2
20080 #: ../fish/guestfish-actions.pod:1124
20081 msgid "filesize"
20082 msgstr ""
20083
20084 # type: verbatim
20085 #: ../fish/guestfish-actions.pod:1126
20086 #, no-wrap
20087 msgid ""
20088 " filesize file\n"
20089 "\n"
20090 msgstr ""
20091
20092 # type: textblock
20093 #: ../fish/guestfish-actions.pod:1130
20094 msgid ""
20095 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
20096 "L</is-file> etc.  To get the size of block devices, use "
20097 "L</blockdev-getsize64>."
20098 msgstr ""
20099
20100 # type: =head2
20101 #: ../fish/guestfish-actions.pod:1134
20102 msgid "fill"
20103 msgstr ""
20104
20105 # type: verbatim
20106 #: ../fish/guestfish-actions.pod:1136
20107 #, no-wrap
20108 msgid ""
20109 " fill c len path\n"
20110 "\n"
20111 msgstr ""
20112
20113 # type: textblock
20114 #: ../fish/guestfish-actions.pod:1142
20115 msgid ""
20116 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20117 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20118 "L</fill-pattern>."
20119 msgstr ""
20120
20121 # type: =head2
20122 #: ../fish/guestfish-actions.pod:1147
20123 msgid "fill-pattern"
20124 msgstr ""
20125
20126 # type: verbatim
20127 #: ../fish/guestfish-actions.pod:1149
20128 #, no-wrap
20129 msgid ""
20130 " fill-pattern pattern len path\n"
20131 "\n"
20132 msgstr ""
20133
20134 # type: textblock
20135 #: ../fish/guestfish-actions.pod:1151
20136 msgid ""
20137 "This function is like L</fill> except that it creates a new file of length "
20138 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20139 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20140 "bytes."
20141 msgstr ""
20142
20143 # type: =head2
20144 #: ../fish/guestfish-actions.pod:1156
20145 msgid "find"
20146 msgstr ""
20147
20148 # type: verbatim
20149 #: ../fish/guestfish-actions.pod:1158
20150 #, no-wrap
20151 msgid ""
20152 " find directory\n"
20153 "\n"
20154 msgstr ""
20155
20156 # type: textblock
20157 #: ../fish/guestfish-actions.pod:1172
20158 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20159 msgstr ""
20160
20161 # type: textblock
20162 #: ../fish/guestfish-actions.pod:1185
20163 msgid "See also L</find0>."
20164 msgstr ""
20165
20166 # type: =head2
20167 #: ../fish/guestfish-actions.pod:1190
20168 msgid "find0"
20169 msgstr ""
20170
20171 # type: verbatim
20172 #: ../fish/guestfish-actions.pod:1192
20173 #, no-wrap
20174 msgid ""
20175 " find0 directory (files|-)\n"
20176 "\n"
20177 msgstr ""
20178
20179 # type: textblock
20180 #: ../fish/guestfish-actions.pod:1198
20181 msgid "This command works the same way as L</find> with the following exceptions:"
20182 msgstr ""
20183
20184 # type: =head2
20185 #: ../fish/guestfish-actions.pod:1225
20186 msgid "findfs-label"
20187 msgstr ""
20188
20189 # type: verbatim
20190 #: ../fish/guestfish-actions.pod:1227
20191 #, no-wrap
20192 msgid ""
20193 " findfs-label label\n"
20194 "\n"
20195 msgstr ""
20196
20197 # type: textblock
20198 #: ../fish/guestfish-actions.pod:1233
20199 msgid "To find the label of a filesystem, use L</vfs-label>."
20200 msgstr ""
20201
20202 # type: =head2
20203 #: ../fish/guestfish-actions.pod:1235
20204 msgid "findfs-uuid"
20205 msgstr ""
20206
20207 # type: verbatim
20208 #: ../fish/guestfish-actions.pod:1237
20209 #, no-wrap
20210 msgid ""
20211 " findfs-uuid uuid\n"
20212 "\n"
20213 msgstr ""
20214
20215 # type: textblock
20216 #: ../fish/guestfish-actions.pod:1243
20217 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20218 msgstr ""
20219
20220 # type: =head2
20221 #: ../fish/guestfish-actions.pod:1245
20222 msgid "fsck"
20223 msgstr ""
20224
20225 # type: verbatim
20226 #: ../fish/guestfish-actions.pod:1247
20227 #, no-wrap
20228 msgid ""
20229 " fsck fstype device\n"
20230 "\n"
20231 msgstr ""
20232
20233 # type: =head2
20234 #: ../fish/guestfish-actions.pod:1277
20235 msgid "get-append"
20236 msgstr ""
20237
20238 # type: verbatim
20239 #: ../fish/guestfish-actions.pod:1279
20240 #, no-wrap
20241 msgid ""
20242 " get-append\n"
20243 "\n"
20244 msgstr ""
20245
20246 # type: =head2
20247 #: ../fish/guestfish-actions.pod:1286
20248 msgid "get-autosync"
20249 msgstr ""
20250
20251 # type: verbatim
20252 #: ../fish/guestfish-actions.pod:1288
20253 #, no-wrap
20254 msgid ""
20255 " get-autosync\n"
20256 "\n"
20257 msgstr ""
20258
20259 # type: =head2
20260 #: ../fish/guestfish-actions.pod:1292
20261 msgid "get-direct"
20262 msgstr ""
20263
20264 # type: verbatim
20265 #: ../fish/guestfish-actions.pod:1294
20266 #, no-wrap
20267 msgid ""
20268 " get-direct\n"
20269 "\n"
20270 msgstr ""
20271
20272 # type: =head2
20273 #: ../fish/guestfish-actions.pod:1298
20274 msgid "get-e2label"
20275 msgstr ""
20276
20277 # type: verbatim
20278 #: ../fish/guestfish-actions.pod:1300
20279 #, no-wrap
20280 msgid ""
20281 " get-e2label device\n"
20282 "\n"
20283 msgstr ""
20284
20285 # type: =head2
20286 #: ../fish/guestfish-actions.pod:1312
20287 msgid "get-e2uuid"
20288 msgstr ""
20289
20290 # type: verbatim
20291 #: ../fish/guestfish-actions.pod:1314
20292 #, no-wrap
20293 msgid ""
20294 " get-e2uuid device\n"
20295 "\n"
20296 msgstr ""
20297
20298 # type: =head2
20299 #: ../fish/guestfish-actions.pod:1326
20300 msgid "get-memsize"
20301 msgstr ""
20302
20303 # type: verbatim
20304 #: ../fish/guestfish-actions.pod:1328
20305 #, no-wrap
20306 msgid ""
20307 " get-memsize\n"
20308 "\n"
20309 msgstr ""
20310
20311 # type: textblock
20312 #: ../fish/guestfish-actions.pod:1333
20313 msgid ""
20314 "If L</set-memsize> was not called on this handle, and if "
20315 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20316 "value for memsize."
20317 msgstr ""
20318
20319 # type: =head2
20320 #: ../fish/guestfish-actions.pod:1340
20321 msgid "get-network"
20322 msgstr ""
20323
20324 # type: verbatim
20325 #: ../fish/guestfish-actions.pod:1342
20326 #, no-wrap
20327 msgid ""
20328 " get-network\n"
20329 "\n"
20330 msgstr ""
20331
20332 # type: =head2
20333 #: ../fish/guestfish-actions.pod:1346
20334 msgid "get-path"
20335 msgstr ""
20336
20337 # type: verbatim
20338 #: ../fish/guestfish-actions.pod:1348
20339 #, no-wrap
20340 msgid ""
20341 " get-path\n"
20342 "\n"
20343 msgstr ""
20344
20345 # type: =head2
20346 #: ../fish/guestfish-actions.pod:1355
20347 msgid "get-pid"
20348 msgstr ""
20349
20350 # type: =head2
20351 #: ../fish/guestfish-actions.pod:1357
20352 msgid "pid"
20353 msgstr ""
20354
20355 # type: verbatim
20356 #: ../fish/guestfish-actions.pod:1359
20357 #, no-wrap
20358 msgid ""
20359 " get-pid\n"
20360 "\n"
20361 msgstr ""
20362
20363 # type: =head2
20364 #: ../fish/guestfish-actions.pod:1366
20365 msgid "get-qemu"
20366 msgstr ""
20367
20368 # type: verbatim
20369 #: ../fish/guestfish-actions.pod:1368
20370 #, no-wrap
20371 msgid ""
20372 " get-qemu\n"
20373 "\n"
20374 msgstr ""
20375
20376 # type: =head2
20377 #: ../fish/guestfish-actions.pod:1375
20378 msgid "get-recovery-proc"
20379 msgstr ""
20380
20381 # type: verbatim
20382 #: ../fish/guestfish-actions.pod:1377
20383 #, no-wrap
20384 msgid ""
20385 " get-recovery-proc\n"
20386 "\n"
20387 msgstr ""
20388
20389 # type: =head2
20390 #: ../fish/guestfish-actions.pod:1381
20391 msgid "get-selinux"
20392 msgstr ""
20393
20394 # type: verbatim
20395 #: ../fish/guestfish-actions.pod:1383
20396 #, no-wrap
20397 msgid ""
20398 " get-selinux\n"
20399 "\n"
20400 msgstr ""
20401
20402 # type: textblock
20403 #: ../fish/guestfish-actions.pod:1385
20404 msgid ""
20405 "This returns the current setting of the selinux flag which is passed to the "
20406 "appliance at boot time.  See L</set-selinux>."
20407 msgstr ""
20408
20409 # type: =head2
20410 #: ../fish/guestfish-actions.pod:1391
20411 msgid "get-state"
20412 msgstr ""
20413
20414 # type: verbatim
20415 #: ../fish/guestfish-actions.pod:1393
20416 #, no-wrap
20417 msgid ""
20418 " get-state\n"
20419 "\n"
20420 msgstr ""
20421
20422 # type: =head2
20423 #: ../fish/guestfish-actions.pod:1400
20424 msgid "get-trace"
20425 msgstr ""
20426
20427 # type: verbatim
20428 #: ../fish/guestfish-actions.pod:1402
20429 #, no-wrap
20430 msgid ""
20431 " get-trace\n"
20432 "\n"
20433 msgstr ""
20434
20435 # type: =head2
20436 #: ../fish/guestfish-actions.pod:1406
20437 msgid "get-umask"
20438 msgstr ""
20439
20440 # type: verbatim
20441 #: ../fish/guestfish-actions.pod:1408
20442 #, no-wrap
20443 msgid ""
20444 " get-umask\n"
20445 "\n"
20446 msgstr ""
20447
20448 # type: textblock
20449 #: ../fish/guestfish-actions.pod:1410
20450 msgid ""
20451 "Return the current umask.  By default the umask is C<022> unless it has been "
20452 "set by calling L</umask>."
20453 msgstr ""
20454
20455 # type: =head2
20456 #: ../fish/guestfish-actions.pod:1413
20457 msgid "get-verbose"
20458 msgstr ""
20459
20460 # type: verbatim
20461 #: ../fish/guestfish-actions.pod:1415
20462 #, no-wrap
20463 msgid ""
20464 " get-verbose\n"
20465 "\n"
20466 msgstr ""
20467
20468 # type: =head2
20469 #: ../fish/guestfish-actions.pod:1419
20470 msgid "getcon"
20471 msgstr ""
20472
20473 # type: verbatim
20474 #: ../fish/guestfish-actions.pod:1421
20475 #, no-wrap
20476 msgid ""
20477 " getcon\n"
20478 "\n"
20479 msgstr ""
20480
20481 # type: textblock
20482 #: ../fish/guestfish-actions.pod:1425
20483 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20484 msgstr ""
20485
20486 # type: =head2
20487 #: ../fish/guestfish-actions.pod:1428
20488 msgid "getxattrs"
20489 msgstr ""
20490
20491 # type: verbatim
20492 #: ../fish/guestfish-actions.pod:1430
20493 #, no-wrap
20494 msgid ""
20495 " getxattrs path\n"
20496 "\n"
20497 msgstr ""
20498
20499 # type: textblock
20500 #: ../fish/guestfish-actions.pod:1438
20501 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20502 msgstr ""
20503
20504 # type: =head2
20505 #: ../fish/guestfish-actions.pod:1440
20506 msgid "glob-expand"
20507 msgstr ""
20508
20509 # type: verbatim
20510 #: ../fish/guestfish-actions.pod:1442
20511 #, no-wrap
20512 msgid ""
20513 " glob-expand pattern\n"
20514 "\n"
20515 msgstr ""
20516
20517 # type: =head2
20518 #: ../fish/guestfish-actions.pod:1455
20519 msgid "grep"
20520 msgstr ""
20521
20522 # type: verbatim
20523 #: ../fish/guestfish-actions.pod:1457
20524 #, no-wrap
20525 msgid ""
20526 " grep regex path\n"
20527 "\n"
20528 msgstr ""
20529
20530 # type: =head2
20531 #: ../fish/guestfish-actions.pod:1465
20532 msgid "grepi"
20533 msgstr ""
20534
20535 # type: verbatim
20536 #: ../fish/guestfish-actions.pod:1467
20537 #, no-wrap
20538 msgid ""
20539 " grepi regex path\n"
20540 "\n"
20541 msgstr ""
20542
20543 # type: =head2
20544 #: ../fish/guestfish-actions.pod:1475
20545 msgid "grub-install"
20546 msgstr ""
20547
20548 # type: verbatim
20549 #: ../fish/guestfish-actions.pod:1477
20550 #, no-wrap
20551 msgid ""
20552 " grub-install root device\n"
20553 "\n"
20554 msgstr ""
20555
20556 # type: =head2
20557 #: ../fish/guestfish-actions.pod:1493
20558 msgid "head"
20559 msgstr ""
20560
20561 # type: verbatim
20562 #: ../fish/guestfish-actions.pod:1495
20563 #, no-wrap
20564 msgid ""
20565 " head path\n"
20566 "\n"
20567 msgstr ""
20568
20569 # type: =head2
20570 #: ../fish/guestfish-actions.pod:1503
20571 msgid "head-n"
20572 msgstr ""
20573
20574 # type: verbatim
20575 #: ../fish/guestfish-actions.pod:1505
20576 #, no-wrap
20577 msgid ""
20578 " head-n nrlines path\n"
20579 "\n"
20580 msgstr ""
20581
20582 # type: =head2
20583 #: ../fish/guestfish-actions.pod:1518
20584 msgid "hexdump"
20585 msgstr ""
20586
20587 # type: verbatim
20588 #: ../fish/guestfish-actions.pod:1520
20589 #, no-wrap
20590 msgid ""
20591 " hexdump path\n"
20592 "\n"
20593 msgstr ""
20594
20595 # type: =head2
20596 #: ../fish/guestfish-actions.pod:1528
20597 msgid "initrd-cat"
20598 msgstr ""
20599
20600 # type: verbatim
20601 #: ../fish/guestfish-actions.pod:1530
20602 #, no-wrap
20603 msgid ""
20604 " initrd-cat initrdpath filename\n"
20605 "\n"
20606 msgstr ""
20607
20608 # type: textblock
20609 #: ../fish/guestfish-actions.pod:1542
20610 msgid "See also L</initrd-list>."
20611 msgstr ""
20612
20613 # type: =head2
20614 #: ../fish/guestfish-actions.pod:1547
20615 msgid "initrd-list"
20616 msgstr ""
20617
20618 # type: verbatim
20619 #: ../fish/guestfish-actions.pod:1549
20620 #, no-wrap
20621 msgid ""
20622 " initrd-list path\n"
20623 "\n"
20624 msgstr ""
20625
20626 # type: =head2
20627 #: ../fish/guestfish-actions.pod:1561
20628 msgid "inotify-add-watch"
20629 msgstr ""
20630
20631 # type: verbatim
20632 #: ../fish/guestfish-actions.pod:1563
20633 #, no-wrap
20634 msgid ""
20635 " inotify-add-watch path mask\n"
20636 "\n"
20637 msgstr ""
20638
20639 # type: =head2
20640 #: ../fish/guestfish-actions.pod:1575
20641 msgid "inotify-close"
20642 msgstr ""
20643
20644 # type: verbatim
20645 #: ../fish/guestfish-actions.pod:1577
20646 #, no-wrap
20647 msgid ""
20648 " inotify-close\n"
20649 "\n"
20650 msgstr ""
20651
20652 # type: =head2
20653 #: ../fish/guestfish-actions.pod:1583
20654 msgid "inotify-files"
20655 msgstr ""
20656
20657 # type: verbatim
20658 #: ../fish/guestfish-actions.pod:1585
20659 #, no-wrap
20660 msgid ""
20661 " inotify-files\n"
20662 "\n"
20663 msgstr ""
20664
20665 # type: textblock
20666 #: ../fish/guestfish-actions.pod:1587
20667 msgid ""
20668 "This function is a helpful wrapper around L</inotify-read> which just "
20669 "returns a list of pathnames of objects that were touched.  The returned "
20670 "pathnames are sorted and deduplicated."
20671 msgstr ""
20672
20673 # type: =head2
20674 #: ../fish/guestfish-actions.pod:1591
20675 msgid "inotify-init"
20676 msgstr ""
20677
20678 # type: verbatim
20679 #: ../fish/guestfish-actions.pod:1593
20680 #, no-wrap
20681 msgid ""
20682 " inotify-init maxevents\n"
20683 "\n"
20684 msgstr ""
20685
20686 # type: textblock
20687 #: ../fish/guestfish-actions.pod:1599
20688 msgid ""
20689 "C<maxevents> is the maximum number of events which will be queued up between "
20690 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20691 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20692 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20693 "but records the fact that it threw them away by setting a flag "
20694 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20695 msgstr ""
20696
20697 # type: textblock
20698 #: ../fish/guestfish-actions.pod:1609
20699 msgid ""
20700 "Before any events are generated, you have to add some watches to the "
20701 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20702 "L</inotify-watch-all>."
20703 msgstr ""
20704
20705 # type: textblock
20706 #: ../fish/guestfish-actions.pod:1615
20707 msgid ""
20708 "Queued up events should be read periodically by calling L</inotify-read> (or "
20709 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20710 "If you don't read the events out often enough then you risk the internal "
20711 "queue overflowing."
20712 msgstr ""
20713
20714 # type: textblock
20715 #: ../fish/guestfish-actions.pod:1622
20716 msgid ""
20717 "The handle should be closed after use by calling L</inotify-close>.  This "
20718 "also removes any watches automatically."
20719 msgstr ""
20720
20721 # type: =head2
20722 #: ../fish/guestfish-actions.pod:1631
20723 msgid "inotify-read"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #: ../fish/guestfish-actions.pod:1633
20728 #, no-wrap
20729 msgid ""
20730 " inotify-read\n"
20731 "\n"
20732 msgstr ""
20733
20734 # type: =head2
20735 #: ../fish/guestfish-actions.pod:1646
20736 msgid "inotify-rm-watch"
20737 msgstr ""
20738
20739 # type: verbatim
20740 #: ../fish/guestfish-actions.pod:1648
20741 #, no-wrap
20742 msgid ""
20743 " inotify-rm-watch wd\n"
20744 "\n"
20745 msgstr ""
20746
20747 # type: textblock
20748 #: ../fish/guestfish-actions.pod:1650
20749 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20750 msgstr ""
20751
20752 # type: =head2
20753 #: ../fish/guestfish-actions.pod:1653
20754 msgid "inspect-get-arch"
20755 msgstr ""
20756
20757 # type: verbatim
20758 #: ../fish/guestfish-actions.pod:1655
20759 #, no-wrap
20760 msgid ""
20761 " inspect-get-arch root\n"
20762 "\n"
20763 msgstr ""
20764
20765 # type: textblock
20766 #: ../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
20767 msgid ""
20768 "This function should only be called with a root device string as returned by "
20769 "L</inspect-os>."
20770 msgstr ""
20771
20772 # type: textblock
20773 #: ../fish/guestfish-actions.pod:1660
20774 msgid ""
20775 "This returns the architecture of the inspected operating system.  The "
20776 "possible return values are listed under L</file-architecture>."
20777 msgstr ""
20778
20779 # type: =head2
20780 #: ../fish/guestfish-actions.pod:1669
20781 msgid "inspect-get-distro"
20782 msgstr ""
20783
20784 # type: verbatim
20785 #: ../fish/guestfish-actions.pod:1671
20786 #, no-wrap
20787 msgid ""
20788 " inspect-get-distro root\n"
20789 "\n"
20790 msgstr ""
20791
20792 # type: =head2
20793 #: ../fish/guestfish-actions.pod:1743
20794 msgid "inspect-get-filesystems"
20795 msgstr ""
20796
20797 # type: verbatim
20798 #: ../fish/guestfish-actions.pod:1745
20799 #, no-wrap
20800 msgid ""
20801 " inspect-get-filesystems root\n"
20802 "\n"
20803 msgstr ""
20804
20805 # type: textblock
20806 #: ../fish/guestfish-actions.pod:1758
20807 msgid ""
20808 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20809 "L</inspect-get-mountpoints>."
20810 msgstr ""
20811
20812 # type: =head2
20813 #: ../fish/guestfish-actions.pod:1761
20814 msgid "inspect-get-hostname"
20815 msgstr ""
20816
20817 # type: verbatim
20818 #: ../fish/guestfish-actions.pod:1763
20819 #, no-wrap
20820 msgid ""
20821 " inspect-get-hostname root\n"
20822 "\n"
20823 msgstr ""
20824
20825 # type: =head2
20826 #: ../fish/guestfish-actions.pod:1776
20827 msgid "inspect-get-major-version"
20828 msgstr ""
20829
20830 # type: verbatim
20831 #: ../fish/guestfish-actions.pod:1778
20832 #, no-wrap
20833 msgid ""
20834 " inspect-get-major-version root\n"
20835 "\n"
20836 msgstr ""
20837
20838 # type: =head2
20839 #: ../fish/guestfish-actions.pod:1797
20840 msgid "inspect-get-minor-version"
20841 msgstr ""
20842
20843 # type: verbatim
20844 #: ../fish/guestfish-actions.pod:1799
20845 #, no-wrap
20846 msgid ""
20847 " inspect-get-minor-version root\n"
20848 "\n"
20849 msgstr ""
20850
20851 # type: textblock
20852 #: ../fish/guestfish-actions.pod:1809
20853 msgid ""
20854 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20855 "L</inspect-get-major-version>."
20856 msgstr ""
20857
20858 # type: =head2
20859 #: ../fish/guestfish-actions.pod:1812
20860 msgid "inspect-get-mountpoints"
20861 msgstr ""
20862
20863 # type: verbatim
20864 #: ../fish/guestfish-actions.pod:1814
20865 #, no-wrap
20866 msgid ""
20867 " inspect-get-mountpoints root\n"
20868 "\n"
20869 msgstr ""
20870
20871 # type: textblock
20872 #: ../fish/guestfish-actions.pod:1832
20873 msgid ""
20874 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20875 "L</inspect-get-filesystems>."
20876 msgstr ""
20877
20878 # type: =head2
20879 #: ../fish/guestfish-actions.pod:1835
20880 msgid "inspect-get-package-format"
20881 msgstr ""
20882
20883 # type: verbatim
20884 #: ../fish/guestfish-actions.pod:1837
20885 #, no-wrap
20886 msgid ""
20887 " inspect-get-package-format root\n"
20888 "\n"
20889 msgstr ""
20890
20891 # type: textblock
20892 #: ../fish/guestfish-actions.pod:1842
20893 msgid ""
20894 "This function and L</inspect-get-package-management> return the package "
20895 "format and package management tool used by the inspected operating system.  "
20896 "For example for Fedora these functions would return C<rpm> (package format) "
20897 "and C<yum> (package management)."
20898 msgstr ""
20899
20900 # type: =head2
20901 #: ../fish/guestfish-actions.pod:1857
20902 msgid "inspect-get-package-management"
20903 msgstr ""
20904
20905 # type: verbatim
20906 #: ../fish/guestfish-actions.pod:1859
20907 #, no-wrap
20908 msgid ""
20909 " inspect-get-package-management root\n"
20910 "\n"
20911 msgstr ""
20912
20913 # type: textblock
20914 #: ../fish/guestfish-actions.pod:1864
20915 msgid ""
20916 "L</inspect-get-package-format> and this function return the package format "
20917 "and package management tool used by the inspected operating system.  For "
20918 "example for Fedora these functions would return C<rpm> (package format) and "
20919 "C<yum> (package management)."
20920 msgstr ""
20921
20922 # type: =head2
20923 #: ../fish/guestfish-actions.pod:1881
20924 msgid "inspect-get-product-name"
20925 msgstr ""
20926
20927 # type: verbatim
20928 #: ../fish/guestfish-actions.pod:1883
20929 #, no-wrap
20930 msgid ""
20931 " inspect-get-product-name root\n"
20932 "\n"
20933 msgstr ""
20934
20935 # type: =head2
20936 #: ../fish/guestfish-actions.pod:1898
20937 msgid "inspect-get-roots"
20938 msgstr ""
20939
20940 # type: verbatim
20941 #: ../fish/guestfish-actions.pod:1900
20942 #, no-wrap
20943 msgid ""
20944 " inspect-get-roots\n"
20945 "\n"
20946 msgstr ""
20947
20948 # type: textblock
20949 #: ../fish/guestfish-actions.pod:1902
20950 msgid ""
20951 "This function is a convenient way to get the list of root devices, as "
20952 "returned from a previous call to L</inspect-os>, but without redoing the "
20953 "whole inspection process."
20954 msgstr ""
20955
20956 # type: textblock
20957 #: ../fish/guestfish-actions.pod:1906
20958 msgid ""
20959 "This returns an empty list if either no root devices were found or the "
20960 "caller has not called L</inspect-os>."
20961 msgstr ""
20962
20963 # type: =head2
20964 #: ../fish/guestfish-actions.pod:1911
20965 msgid "inspect-get-type"
20966 msgstr ""
20967
20968 # type: verbatim
20969 #: ../fish/guestfish-actions.pod:1913
20970 #, no-wrap
20971 msgid ""
20972 " inspect-get-type root\n"
20973 "\n"
20974 msgstr ""
20975
20976 # type: =head2
20977 #: ../fish/guestfish-actions.pod:1946
20978 msgid "inspect-get-windows-systemroot"
20979 msgstr ""
20980
20981 # type: verbatim
20982 #: ../fish/guestfish-actions.pod:1948
20983 #, no-wrap
20984 msgid ""
20985 " inspect-get-windows-systemroot root\n"
20986 "\n"
20987 msgstr ""
20988
20989 # type: =head2
20990 #: ../fish/guestfish-actions.pod:1962
20991 msgid "inspect-list-applications"
20992 msgstr ""
20993
20994 # type: verbatim
20995 #: ../fish/guestfish-actions.pod:1964
20996 #, no-wrap
20997 msgid ""
20998 " inspect-list-applications root\n"
20999 "\n"
21000 msgstr ""
21001
21002 # type: textblock
21003 #: ../fish/guestfish-actions.pod:1971
21004 msgid ""
21005 "I<Note:> This call works differently from other parts of the inspection "
21006 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21007 "then mount up the disks, before calling this.  Listing applications is a "
21008 "significantly more difficult operation which requires access to the full "
21009 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21010 "are just returning data cached in the libguestfs handle, this call actually "
21011 "reads parts of the mounted filesystems during the call."
21012 msgstr ""
21013
21014 # type: =head2
21015 #: ../fish/guestfish-actions.pod:2061
21016 msgid "inspect-os"
21017 msgstr ""
21018
21019 # type: verbatim
21020 #: ../fish/guestfish-actions.pod:2063
21021 #, no-wrap
21022 msgid ""
21023 " inspect-os\n"
21024 "\n"
21025 msgstr ""
21026
21027 # type: textblock
21028 #: ../fish/guestfish-actions.pod:2078
21029 msgid ""
21030 "You can pass the root string(s) returned to other L</inspect-get-*> "
21031 "functions in order to query further information about each operating system, "
21032 "such as the name and version."
21033 msgstr ""
21034
21035 # type: textblock
21036 #: ../fish/guestfish-actions.pod:2083
21037 msgid ""
21038 "This function uses other libguestfs features such as L</mount-ro> and "
21039 "L</umount-all> in order to mount and unmount filesystems and look at the "
21040 "contents.  This should be called with no disks currently mounted.  The "
21041 "function may also use Augeas, so any existing Augeas handle will be closed."
21042 msgstr ""
21043
21044 # type: textblock
21045 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2297
21046 msgid "See also L</list-filesystems>."
21047 msgstr ""
21048
21049 # type: =head2
21050 #: ../fish/guestfish-actions.pod:2097
21051 msgid "is-blockdev"
21052 msgstr ""
21053
21054 # type: verbatim
21055 #: ../fish/guestfish-actions.pod:2099
21056 #, no-wrap
21057 msgid ""
21058 " is-blockdev path\n"
21059 "\n"
21060 msgstr ""
21061
21062 # type: textblock
21063 #: ../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
21064 msgid "See also L</stat>."
21065 msgstr ""
21066
21067 # type: =head2
21068 #: ../fish/guestfish-actions.pod:2106
21069 msgid "is-busy"
21070 msgstr ""
21071
21072 # type: verbatim
21073 #: ../fish/guestfish-actions.pod:2108
21074 #, no-wrap
21075 msgid ""
21076 " is-busy\n"
21077 "\n"
21078 msgstr ""
21079
21080 # type: =head2
21081 #: ../fish/guestfish-actions.pod:2115
21082 msgid "is-chardev"
21083 msgstr ""
21084
21085 # type: verbatim
21086 #: ../fish/guestfish-actions.pod:2117
21087 #, no-wrap
21088 msgid ""
21089 " is-chardev path\n"
21090 "\n"
21091 msgstr ""
21092
21093 # type: =head2
21094 #: ../fish/guestfish-actions.pod:2124
21095 msgid "is-config"
21096 msgstr ""
21097
21098 # type: verbatim
21099 #: ../fish/guestfish-actions.pod:2126
21100 #, no-wrap
21101 msgid ""
21102 " is-config\n"
21103 "\n"
21104 msgstr ""
21105
21106 # type: =head2
21107 #: ../fish/guestfish-actions.pod:2133
21108 msgid "is-dir"
21109 msgstr ""
21110
21111 # type: verbatim
21112 #: ../fish/guestfish-actions.pod:2135
21113 #, no-wrap
21114 msgid ""
21115 " is-dir path\n"
21116 "\n"
21117 msgstr ""
21118
21119 # type: =head2
21120 #: ../fish/guestfish-actions.pod:2143
21121 msgid "is-fifo"
21122 msgstr ""
21123
21124 # type: verbatim
21125 #: ../fish/guestfish-actions.pod:2145
21126 #, no-wrap
21127 msgid ""
21128 " is-fifo path\n"
21129 "\n"
21130 msgstr ""
21131
21132 # type: =head2
21133 #: ../fish/guestfish-actions.pod:2152
21134 msgid "is-file"
21135 msgstr ""
21136
21137 # type: verbatim
21138 #: ../fish/guestfish-actions.pod:2154
21139 #, no-wrap
21140 msgid ""
21141 " is-file path\n"
21142 "\n"
21143 msgstr ""
21144
21145 # type: =head2
21146 #: ../fish/guestfish-actions.pod:2162
21147 msgid "is-launching"
21148 msgstr ""
21149
21150 # type: verbatim
21151 #: ../fish/guestfish-actions.pod:2164
21152 #, no-wrap
21153 msgid ""
21154 " is-launching\n"
21155 "\n"
21156 msgstr ""
21157
21158 # type: =head2
21159 #: ../fish/guestfish-actions.pod:2171
21160 msgid "is-lv"
21161 msgstr ""
21162
21163 # type: verbatim
21164 #: ../fish/guestfish-actions.pod:2173
21165 #, no-wrap
21166 msgid ""
21167 " is-lv device\n"
21168 "\n"
21169 msgstr ""
21170
21171 # type: =head2
21172 #: ../fish/guestfish-actions.pod:2178
21173 msgid "is-ready"
21174 msgstr ""
21175
21176 # type: verbatim
21177 #: ../fish/guestfish-actions.pod:2180
21178 #, no-wrap
21179 msgid ""
21180 " is-ready\n"
21181 "\n"
21182 msgstr ""
21183
21184 # type: =head2
21185 #: ../fish/guestfish-actions.pod:2187
21186 msgid "is-socket"
21187 msgstr ""
21188
21189 # type: verbatim
21190 #: ../fish/guestfish-actions.pod:2189
21191 #, no-wrap
21192 msgid ""
21193 " is-socket path\n"
21194 "\n"
21195 msgstr ""
21196
21197 # type: =head2
21198 #: ../fish/guestfish-actions.pod:2196
21199 msgid "is-symlink"
21200 msgstr ""
21201
21202 # type: verbatim
21203 #: ../fish/guestfish-actions.pod:2198
21204 #, no-wrap
21205 msgid ""
21206 " is-symlink path\n"
21207 "\n"
21208 msgstr ""
21209
21210 # type: =head2
21211 #: ../fish/guestfish-actions.pod:2205
21212 msgid "kill-subprocess"
21213 msgstr ""
21214
21215 # type: verbatim
21216 #: ../fish/guestfish-actions.pod:2207
21217 #, no-wrap
21218 msgid ""
21219 " kill-subprocess\n"
21220 "\n"
21221 msgstr ""
21222
21223 # type: =head2
21224 #: ../fish/guestfish-actions.pod:2211
21225 msgid "launch"
21226 msgstr ""
21227
21228 # type: =head2
21229 #: ../fish/guestfish-actions.pod:2213
21230 msgid "run"
21231 msgstr ""
21232
21233 # type: verbatim
21234 #: ../fish/guestfish-actions.pod:2215
21235 #, no-wrap
21236 msgid ""
21237 " launch\n"
21238 "\n"
21239 msgstr ""
21240
21241 # type: =head2
21242 #: ../fish/guestfish-actions.pod:2223
21243 msgid "lchown"
21244 msgstr ""
21245
21246 # type: verbatim
21247 #: ../fish/guestfish-actions.pod:2225
21248 #, no-wrap
21249 msgid ""
21250 " lchown owner group path\n"
21251 "\n"
21252 msgstr ""
21253
21254 # type: textblock
21255 #: ../fish/guestfish-actions.pod:2227
21256 msgid ""
21257 "Change the file owner to C<owner> and group to C<group>.  This is like "
21258 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
21259 "the target."
21260 msgstr ""
21261
21262 # type: =head2
21263 #: ../fish/guestfish-actions.pod:2235
21264 msgid "lgetxattrs"
21265 msgstr ""
21266
21267 # type: verbatim
21268 #: ../fish/guestfish-actions.pod:2237
21269 #, no-wrap
21270 msgid ""
21271 " lgetxattrs path\n"
21272 "\n"
21273 msgstr ""
21274
21275 # type: textblock
21276 #: ../fish/guestfish-actions.pod:2239
21277 msgid ""
21278 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21279 "it returns the extended attributes of the link itself."
21280 msgstr ""
21281
21282 # type: =head2
21283 #: ../fish/guestfish-actions.pod:2243
21284 msgid "list-devices"
21285 msgstr ""
21286
21287 # type: verbatim
21288 #: ../fish/guestfish-actions.pod:2245
21289 #, no-wrap
21290 msgid ""
21291 " list-devices\n"
21292 "\n"
21293 msgstr ""
21294
21295 # type: =head2
21296 #: ../fish/guestfish-actions.pod:2253
21297 msgid "list-filesystems"
21298 msgstr ""
21299
21300 # type: verbatim
21301 #: ../fish/guestfish-actions.pod:2255
21302 #, no-wrap
21303 msgid ""
21304 " list-filesystems\n"
21305 "\n"
21306 msgstr ""
21307
21308 # type: textblock
21309 #: ../fish/guestfish-actions.pod:2274
21310 msgid ""
21311 "This command runs other libguestfs commands, which might include L</mount> "
21312 "and L</umount>, and therefore you should use this soon after launch and only "
21313 "when nothing is mounted."
21314 msgstr ""
21315
21316 # type: textblock
21317 #: ../fish/guestfish-actions.pod:2278
21318 msgid ""
21319 "Not all of the filesystems returned will be mountable.  In particular, swap "
21320 "partitions are returned in the list.  Also this command does not check that "
21321 "each filesystem found is valid and mountable, and some filesystems might be "
21322 "mountable but require special options.  Filesystems may not all belong to a "
21323 "single logical operating system (use L</inspect-os> to look for OSes)."
21324 msgstr ""
21325
21326 # type: =head2
21327 #: ../fish/guestfish-actions.pod:2286
21328 msgid "list-partitions"
21329 msgstr ""
21330
21331 # type: verbatim
21332 #: ../fish/guestfish-actions.pod:2288
21333 #, no-wrap
21334 msgid ""
21335 " list-partitions\n"
21336 "\n"
21337 msgstr ""
21338
21339 # type: textblock
21340 #: ../fish/guestfish-actions.pod:2294
21341 msgid ""
21342 "This does not return logical volumes.  For that you will need to call "
21343 "L</lvs>."
21344 msgstr ""
21345
21346 # type: =head2
21347 #: ../fish/guestfish-actions.pod:2299
21348 msgid "ll"
21349 msgstr ""
21350
21351 # type: verbatim
21352 #: ../fish/guestfish-actions.pod:2301
21353 #, no-wrap
21354 msgid ""
21355 " ll directory\n"
21356 "\n"
21357 msgstr ""
21358
21359 # type: =head2
21360 #: ../fish/guestfish-actions.pod:2309
21361 msgid "ln"
21362 msgstr ""
21363
21364 # type: verbatim
21365 #: ../fish/guestfish-actions.pod:2311
21366 #, no-wrap
21367 msgid ""
21368 " ln target linkname\n"
21369 "\n"
21370 msgstr ""
21371
21372 # type: =head2
21373 #: ../fish/guestfish-actions.pod:2315
21374 msgid "ln-f"
21375 msgstr ""
21376
21377 # type: verbatim
21378 #: ../fish/guestfish-actions.pod:2317
21379 #, no-wrap
21380 msgid ""
21381 " ln-f target linkname\n"
21382 "\n"
21383 msgstr ""
21384
21385 # type: =head2
21386 #: ../fish/guestfish-actions.pod:2322
21387 msgid "ln-s"
21388 msgstr ""
21389
21390 # type: verbatim
21391 #: ../fish/guestfish-actions.pod:2324
21392 #, no-wrap
21393 msgid ""
21394 " ln-s target linkname\n"
21395 "\n"
21396 msgstr ""
21397
21398 # type: =head2
21399 #: ../fish/guestfish-actions.pod:2328
21400 msgid "ln-sf"
21401 msgstr ""
21402
21403 # type: verbatim
21404 #: ../fish/guestfish-actions.pod:2330
21405 #, no-wrap
21406 msgid ""
21407 " ln-sf target linkname\n"
21408 "\n"
21409 msgstr ""
21410
21411 # type: =head2
21412 #: ../fish/guestfish-actions.pod:2335
21413 msgid "lremovexattr"
21414 msgstr ""
21415
21416 # type: verbatim
21417 #: ../fish/guestfish-actions.pod:2337
21418 #, no-wrap
21419 msgid ""
21420 " lremovexattr xattr path\n"
21421 "\n"
21422 msgstr ""
21423
21424 # type: textblock
21425 #: ../fish/guestfish-actions.pod:2339
21426 msgid ""
21427 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21428 "it removes an extended attribute of the link itself."
21429 msgstr ""
21430
21431 # type: =head2
21432 #: ../fish/guestfish-actions.pod:2343
21433 msgid "ls"
21434 msgstr ""
21435
21436 # type: verbatim
21437 #: ../fish/guestfish-actions.pod:2345
21438 #, no-wrap
21439 msgid ""
21440 " ls directory\n"
21441 "\n"
21442 msgstr ""
21443
21444 # type: textblock
21445 #: ../fish/guestfish-actions.pod:2351
21446 msgid ""
21447 "This command is mostly useful for interactive sessions.  Programs should "
21448 "probably use L</readdir> instead."
21449 msgstr ""
21450
21451 # type: =head2
21452 #: ../fish/guestfish-actions.pod:2354
21453 msgid "lsetxattr"
21454 msgstr ""
21455
21456 # type: verbatim
21457 #: ../fish/guestfish-actions.pod:2356
21458 #, no-wrap
21459 msgid ""
21460 " lsetxattr xattr val vallen path\n"
21461 "\n"
21462 msgstr ""
21463
21464 # type: textblock
21465 #: ../fish/guestfish-actions.pod:2358
21466 msgid ""
21467 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21468 "sets an extended attribute of the link itself."
21469 msgstr ""
21470
21471 # type: =head2
21472 #: ../fish/guestfish-actions.pod:2362
21473 msgid "lstat"
21474 msgstr ""
21475
21476 # type: verbatim
21477 #: ../fish/guestfish-actions.pod:2364
21478 #, no-wrap
21479 msgid ""
21480 " lstat path\n"
21481 "\n"
21482 msgstr ""
21483
21484 # type: textblock
21485 #: ../fish/guestfish-actions.pod:2368
21486 msgid ""
21487 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21488 "the link is stat-ed, not the file it refers to."
21489 msgstr ""
21490
21491 # type: =head2
21492 #: ../fish/guestfish-actions.pod:2374
21493 msgid "lstatlist"
21494 msgstr ""
21495
21496 # type: verbatim
21497 #: ../fish/guestfish-actions.pod:2376
21498 #, no-wrap
21499 msgid ""
21500 " lstatlist path 'names ...'\n"
21501 "\n"
21502 msgstr ""
21503
21504 # type: textblock
21505 #: ../fish/guestfish-actions.pod:2378
21506 msgid ""
21507 "This call allows you to perform the L</lstat> operation on multiple files, "
21508 "where all files are in the directory C<path>.  C<names> is the list of files "
21509 "from this directory."
21510 msgstr ""
21511
21512 # type: textblock
21513 #: ../fish/guestfish-actions.pod:2387
21514 msgid ""
21515 "This call is intended for programs that want to efficiently list a directory "
21516 "contents without making many round-trips.  See also L</lxattrlist> for a "
21517 "similarly efficient call for getting extended attributes.  Very long "
21518 "directory listings might cause the protocol message size to be exceeded, "
21519 "causing this call to fail.  The caller must split up such requests into "
21520 "smaller groups of names."
21521 msgstr ""
21522
21523 # type: =head2
21524 #: ../fish/guestfish-actions.pod:2395
21525 msgid "luks-add-key"
21526 msgstr ""
21527
21528 # type: verbatim
21529 #: ../fish/guestfish-actions.pod:2397
21530 #, no-wrap
21531 msgid ""
21532 " luks-add-key device keyslot\n"
21533 "\n"
21534 msgstr ""
21535
21536 # type: textblock
21537 #: ../fish/guestfish-actions.pod:2404
21538 msgid ""
21539 "Note that if C<keyslot> already contains a key, then this command will "
21540 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21541 msgstr ""
21542
21543 # type: textblock
21544 #: ../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
21545 msgid ""
21546 "This command has one or more key or passphrase parameters.  Guestfish will "
21547 "prompt for these separately."
21548 msgstr ""
21549
21550 # type: =head2
21551 #: ../fish/guestfish-actions.pod:2411
21552 msgid "luks-close"
21553 msgstr ""
21554
21555 # type: verbatim
21556 #: ../fish/guestfish-actions.pod:2413
21557 #, no-wrap
21558 msgid ""
21559 " luks-close device\n"
21560 "\n"
21561 msgstr ""
21562
21563 # type: textblock
21564 #: ../fish/guestfish-actions.pod:2415
21565 msgid ""
21566 "This closes a LUKS device that was created earlier by L</luks-open> or "
21567 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
21568 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
21569 "underlying block device."
21570 msgstr ""
21571
21572 # type: =head2
21573 #: ../fish/guestfish-actions.pod:2421
21574 msgid "luks-format"
21575 msgstr ""
21576
21577 # type: verbatim
21578 #: ../fish/guestfish-actions.pod:2423
21579 #, no-wrap
21580 msgid ""
21581 " luks-format device keyslot\n"
21582 "\n"
21583 msgstr ""
21584
21585 # type: =head2
21586 #: ../fish/guestfish-actions.pod:2436
21587 msgid "luks-format-cipher"
21588 msgstr ""
21589
21590 # type: verbatim
21591 #: ../fish/guestfish-actions.pod:2438
21592 #, no-wrap
21593 msgid ""
21594 " luks-format-cipher device keyslot cipher\n"
21595 "\n"
21596 msgstr ""
21597
21598 # type: textblock
21599 #: ../fish/guestfish-actions.pod:2440
21600 msgid ""
21601 "This command is the same as L</luks-format> but it also allows you to set "
21602 "the C<cipher> used."
21603 msgstr ""
21604
21605 # type: =head2
21606 #: ../fish/guestfish-actions.pod:2449
21607 msgid "luks-kill-slot"
21608 msgstr ""
21609
21610 # type: verbatim
21611 #: ../fish/guestfish-actions.pod:2451
21612 #, no-wrap
21613 msgid ""
21614 " luks-kill-slot device keyslot\n"
21615 "\n"
21616 msgstr ""
21617
21618 # type: =head2
21619 #: ../fish/guestfish-actions.pod:2460
21620 msgid "luks-open"
21621 msgstr ""
21622
21623 # type: verbatim
21624 #: ../fish/guestfish-actions.pod:2462
21625 #, no-wrap
21626 msgid ""
21627 " luks-open device mapname\n"
21628 "\n"
21629 msgstr ""
21630
21631 # type: textblock
21632 #: ../fish/guestfish-actions.pod:2476
21633 msgid ""
21634 "If this block device contains LVM volume groups, then calling L</vgscan> "
21635 "followed by L</vg-activate-all> will make them visible."
21636 msgstr ""
21637
21638 # type: =head2
21639 #: ../fish/guestfish-actions.pod:2483
21640 msgid "luks-open-ro"
21641 msgstr ""
21642
21643 # type: verbatim
21644 #: ../fish/guestfish-actions.pod:2485
21645 #, no-wrap
21646 msgid ""
21647 " luks-open-ro device mapname\n"
21648 "\n"
21649 msgstr ""
21650
21651 # type: textblock
21652 #: ../fish/guestfish-actions.pod:2487
21653 msgid ""
21654 "This is the same as L</luks-open> except that a read-only mapping is "
21655 "created."
21656 msgstr ""
21657
21658 # type: =head2
21659 #: ../fish/guestfish-actions.pod:2493
21660 msgid "lvcreate"
21661 msgstr ""
21662
21663 # type: verbatim
21664 #: ../fish/guestfish-actions.pod:2495
21665 #, no-wrap
21666 msgid ""
21667 " lvcreate logvol volgroup mbytes\n"
21668 "\n"
21669 msgstr ""
21670
21671 # type: =head2
21672 #: ../fish/guestfish-actions.pod:2500
21673 msgid "lvm-canonical-lv-name"
21674 msgstr ""
21675
21676 # type: verbatim
21677 #: ../fish/guestfish-actions.pod:2502
21678 #, no-wrap
21679 msgid ""
21680 " lvm-canonical-lv-name lvname\n"
21681 "\n"
21682 msgstr ""
21683
21684 # type: textblock
21685 #: ../fish/guestfish-actions.pod:2511
21686 msgid "See also L</is-lv>."
21687 msgstr ""
21688
21689 # type: =head2
21690 #: ../fish/guestfish-actions.pod:2513
21691 msgid "lvm-clear-filter"
21692 msgstr ""
21693
21694 # type: verbatim
21695 #: ../fish/guestfish-actions.pod:2515
21696 #, no-wrap
21697 msgid ""
21698 " lvm-clear-filter\n"
21699 "\n"
21700 msgstr ""
21701
21702 # type: textblock
21703 #: ../fish/guestfish-actions.pod:2517
21704 msgid ""
21705 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21706 "block device."
21707 msgstr ""
21708
21709 # type: =head2
21710 #: ../fish/guestfish-actions.pod:2523
21711 msgid "lvm-remove-all"
21712 msgstr ""
21713
21714 # type: verbatim
21715 #: ../fish/guestfish-actions.pod:2525
21716 #, no-wrap
21717 msgid ""
21718 " lvm-remove-all\n"
21719 "\n"
21720 msgstr ""
21721
21722 # type: =head2
21723 #: ../fish/guestfish-actions.pod:2533
21724 msgid "lvm-set-filter"
21725 msgstr ""
21726
21727 # type: verbatim
21728 #: ../fish/guestfish-actions.pod:2535
21729 #, no-wrap
21730 msgid ""
21731 " lvm-set-filter 'devices ...'\n"
21732 "\n"
21733 msgstr ""
21734
21735 # type: =head2
21736 #: ../fish/guestfish-actions.pod:2560
21737 msgid "lvremove"
21738 msgstr ""
21739
21740 # type: verbatim
21741 #: ../fish/guestfish-actions.pod:2562
21742 #, no-wrap
21743 msgid ""
21744 " lvremove device\n"
21745 "\n"
21746 msgstr ""
21747
21748 # type: =head2
21749 #: ../fish/guestfish-actions.pod:2570
21750 msgid "lvrename"
21751 msgstr ""
21752
21753 # type: verbatim
21754 #: ../fish/guestfish-actions.pod:2572
21755 #, no-wrap
21756 msgid ""
21757 " lvrename logvol newlogvol\n"
21758 "\n"
21759 msgstr ""
21760
21761 # type: =head2
21762 #: ../fish/guestfish-actions.pod:2576
21763 msgid "lvresize"
21764 msgstr ""
21765
21766 # type: verbatim
21767 #: ../fish/guestfish-actions.pod:2578
21768 #, no-wrap
21769 msgid ""
21770 " lvresize device mbytes\n"
21771 "\n"
21772 msgstr ""
21773
21774 # type: =head2
21775 #: ../fish/guestfish-actions.pod:2584
21776 msgid "lvresize-free"
21777 msgstr ""
21778
21779 # type: verbatim
21780 #: ../fish/guestfish-actions.pod:2586
21781 #, no-wrap
21782 msgid ""
21783 " lvresize-free lv percent\n"
21784 "\n"
21785 msgstr ""
21786
21787 # type: =head2
21788 #: ../fish/guestfish-actions.pod:2594
21789 msgid "lvs"
21790 msgstr ""
21791
21792 # type: verbatim
21793 #: ../fish/guestfish-actions.pod:2596
21794 #, no-wrap
21795 msgid ""
21796 " lvs\n"
21797 "\n"
21798 msgstr ""
21799
21800 # type: textblock
21801 #: ../fish/guestfish-actions.pod:2604
21802 msgid "See also L</lvs-full>, L</list-filesystems>."
21803 msgstr ""
21804
21805 # type: =head2
21806 #: ../fish/guestfish-actions.pod:2606
21807 msgid "lvs-full"
21808 msgstr ""
21809
21810 # type: verbatim
21811 #: ../fish/guestfish-actions.pod:2608
21812 #, no-wrap
21813 msgid ""
21814 " lvs-full\n"
21815 "\n"
21816 msgstr ""
21817
21818 # type: =head2
21819 #: ../fish/guestfish-actions.pod:2613
21820 msgid "lvuuid"
21821 msgstr ""
21822
21823 # type: verbatim
21824 #: ../fish/guestfish-actions.pod:2615
21825 #, no-wrap
21826 msgid ""
21827 " lvuuid device\n"
21828 "\n"
21829 msgstr ""
21830
21831 # type: =head2
21832 #: ../fish/guestfish-actions.pod:2619
21833 msgid "lxattrlist"
21834 msgstr ""
21835
21836 # type: verbatim
21837 #: ../fish/guestfish-actions.pod:2621
21838 #, no-wrap
21839 msgid ""
21840 " lxattrlist path 'names ...'\n"
21841 "\n"
21842 msgstr ""
21843
21844 # type: textblock
21845 #: ../fish/guestfish-actions.pod:2637
21846 msgid ""
21847 "This call is intended for programs that want to efficiently list a directory "
21848 "contents without making many round-trips.  See also L</lstatlist> for a "
21849 "similarly efficient call for getting standard stats.  Very long directory "
21850 "listings might cause the protocol message size to be exceeded, causing this "
21851 "call to fail.  The caller must split up such requests into smaller groups of "
21852 "names."
21853 msgstr ""
21854
21855 # type: =head2
21856 #: ../fish/guestfish-actions.pod:2645
21857 msgid "mkdir"
21858 msgstr ""
21859
21860 # type: verbatim
21861 #: ../fish/guestfish-actions.pod:2647
21862 #, no-wrap
21863 msgid ""
21864 " mkdir path\n"
21865 "\n"
21866 msgstr ""
21867
21868 # type: =head2
21869 #: ../fish/guestfish-actions.pod:2651
21870 msgid "mkdir-mode"
21871 msgstr ""
21872
21873 # type: verbatim
21874 #: ../fish/guestfish-actions.pod:2653
21875 #, no-wrap
21876 msgid ""
21877 " mkdir-mode path mode\n"
21878 "\n"
21879 msgstr ""
21880
21881 # type: textblock
21882 #: ../fish/guestfish-actions.pod:2662
21883 msgid "See also L</mkdir>, L</umask>"
21884 msgstr ""
21885
21886 # type: =head2
21887 #: ../fish/guestfish-actions.pod:2664
21888 msgid "mkdir-p"
21889 msgstr ""
21890
21891 # type: verbatim
21892 #: ../fish/guestfish-actions.pod:2666
21893 #, no-wrap
21894 msgid ""
21895 " mkdir-p path\n"
21896 "\n"
21897 msgstr ""
21898
21899 # type: =head2
21900 #: ../fish/guestfish-actions.pod:2671
21901 msgid "mkdtemp"
21902 msgstr ""
21903
21904 # type: verbatim
21905 #: ../fish/guestfish-actions.pod:2673
21906 #, no-wrap
21907 msgid ""
21908 " mkdtemp template\n"
21909 "\n"
21910 msgstr ""
21911
21912 # type: =head2
21913 #: ../fish/guestfish-actions.pod:2694
21914 msgid "mke2fs-J"
21915 msgstr ""
21916
21917 # type: verbatim
21918 #: ../fish/guestfish-actions.pod:2696
21919 #, no-wrap
21920 msgid ""
21921 " mke2fs-J fstype blocksize device journal\n"
21922 "\n"
21923 msgstr ""
21924
21925 # type: textblock
21926 #: ../fish/guestfish-actions.pod:2704
21927 msgid "See also L</mke2journal>."
21928 msgstr ""
21929
21930 # type: =head2
21931 #: ../fish/guestfish-actions.pod:2706
21932 msgid "mke2fs-JL"
21933 msgstr ""
21934
21935 # type: verbatim
21936 #: ../fish/guestfish-actions.pod:2708
21937 #, no-wrap
21938 msgid ""
21939 " mke2fs-JL fstype blocksize device label\n"
21940 "\n"
21941 msgstr ""
21942
21943 # type: textblock
21944 #: ../fish/guestfish-actions.pod:2713
21945 msgid "See also L</mke2journal-L>."
21946 msgstr ""
21947
21948 # type: =head2
21949 #: ../fish/guestfish-actions.pod:2715
21950 msgid "mke2fs-JU"
21951 msgstr ""
21952
21953 # type: verbatim
21954 #: ../fish/guestfish-actions.pod:2717
21955 #, no-wrap
21956 msgid ""
21957 " mke2fs-JU fstype blocksize device uuid\n"
21958 "\n"
21959 msgstr ""
21960
21961 # type: textblock
21962 #: ../fish/guestfish-actions.pod:2722
21963 msgid "See also L</mke2journal-U>."
21964 msgstr ""
21965
21966 # type: =head2
21967 #: ../fish/guestfish-actions.pod:2724
21968 msgid "mke2journal"
21969 msgstr ""
21970
21971 # type: verbatim
21972 #: ../fish/guestfish-actions.pod:2726
21973 #, no-wrap
21974 msgid ""
21975 " mke2journal blocksize device\n"
21976 "\n"
21977 msgstr ""
21978
21979 # type: =head2
21980 #: ../fish/guestfish-actions.pod:2733
21981 msgid "mke2journal-L"
21982 msgstr ""
21983
21984 # type: verbatim
21985 #: ../fish/guestfish-actions.pod:2735
21986 #, no-wrap
21987 msgid ""
21988 " mke2journal-L blocksize label device\n"
21989 "\n"
21990 msgstr ""
21991
21992 # type: =head2
21993 #: ../fish/guestfish-actions.pod:2739
21994 msgid "mke2journal-U"
21995 msgstr ""
21996
21997 # type: verbatim
21998 #: ../fish/guestfish-actions.pod:2741
21999 #, no-wrap
22000 msgid ""
22001 " mke2journal-U blocksize uuid device\n"
22002 "\n"
22003 msgstr ""
22004
22005 # type: =head2
22006 #: ../fish/guestfish-actions.pod:2745
22007 msgid "mkfifo"
22008 msgstr ""
22009
22010 # type: verbatim
22011 #: ../fish/guestfish-actions.pod:2747
22012 #, no-wrap
22013 msgid ""
22014 " mkfifo mode path\n"
22015 "\n"
22016 msgstr ""
22017
22018 # type: textblock
22019 #: ../fish/guestfish-actions.pod:2749
22020 msgid ""
22021 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22022 "is just a convenient wrapper around L</mknod>."
22023 msgstr ""
22024
22025 # type: =head2
22026 #: ../fish/guestfish-actions.pod:2755
22027 msgid "mkfs"
22028 msgstr ""
22029
22030 # type: verbatim
22031 #: ../fish/guestfish-actions.pod:2757
22032 #, no-wrap
22033 msgid ""
22034 " mkfs fstype device\n"
22035 "\n"
22036 msgstr ""
22037
22038 # type: =head2
22039 #: ../fish/guestfish-actions.pod:2763
22040 msgid "mkfs-b"
22041 msgstr ""
22042
22043 # type: verbatim
22044 #: ../fish/guestfish-actions.pod:2765
22045 #, no-wrap
22046 msgid ""
22047 " mkfs-b fstype blocksize device\n"
22048 "\n"
22049 msgstr ""
22050
22051 # type: textblock
22052 #: ../fish/guestfish-actions.pod:2767
22053 msgid ""
22054 "This call is similar to L</mkfs>, but it allows you to control the block "
22055 "size of the resulting filesystem.  Supported block sizes depend on the "
22056 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22057 msgstr ""
22058
22059 # type: =head2
22060 #: ../fish/guestfish-actions.pod:2782
22061 msgid "mkfs-opts"
22062 msgstr ""
22063
22064 # type: verbatim
22065 #: ../fish/guestfish-actions.pod:2784
22066 #, no-wrap
22067 msgid ""
22068 " mkfs-opts fstype device [blocksize:..]\n"
22069 "\n"
22070 msgstr ""
22071
22072 # type: =head2
22073 #: ../fish/guestfish-actions.pod:2806
22074 msgid "mkmountpoint"
22075 msgstr ""
22076
22077 # type: verbatim
22078 #: ../fish/guestfish-actions.pod:2808
22079 #, no-wrap
22080 msgid ""
22081 " mkmountpoint exemptpath\n"
22082 "\n"
22083 msgstr ""
22084
22085 # type: textblock
22086 #: ../fish/guestfish-actions.pod:2810
22087 msgid ""
22088 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22089 "to create extra mountpoints before mounting the first filesystem."
22090 msgstr ""
22091
22092 # type: textblock
22093 #: ../fish/guestfish-actions.pod:2834
22094 msgid ""
22095 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22096 "unexpected errors if you try to mix these calls.  It is safest to manually "
22097 "unmount filesystems and remove mountpoints after use."
22098 msgstr ""
22099
22100 # type: textblock
22101 #: ../fish/guestfish-actions.pod:2838
22102 msgid ""
22103 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22104 "for this to work for manual mountpoints, you must ensure that the innermost "
22105 "mountpoints have the longest pathnames, as in the example code above."
22106 msgstr ""
22107
22108 # type: textblock
22109 #: ../fish/guestfish-actions.pod:2845
22110 msgid ""
22111 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22112 "that L</umount-all> is called when the handle is closed which can also "
22113 "trigger these issues."
22114 msgstr ""
22115
22116 # type: =head2
22117 #: ../fish/guestfish-actions.pod:2849
22118 msgid "mknod"
22119 msgstr ""
22120
22121 # type: verbatim
22122 #: ../fish/guestfish-actions.pod:2851
22123 #, no-wrap
22124 msgid ""
22125 " mknod mode devmajor devminor path\n"
22126 "\n"
22127 msgstr ""
22128
22129 # type: textblock
22130 #: ../fish/guestfish-actions.pod:2861
22131 msgid ""
22132 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22133 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22134 "regular file).  These constants are available in the standard Linux header "
22135 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22136 "wrappers around this command which bitwise OR in the appropriate constant "
22137 "for you."
22138 msgstr ""
22139
22140 # type: =head2
22141 #: ../fish/guestfish-actions.pod:2871
22142 msgid "mknod-b"
22143 msgstr ""
22144
22145 # type: verbatim
22146 #: ../fish/guestfish-actions.pod:2873
22147 #, no-wrap
22148 msgid ""
22149 " mknod-b mode devmajor devminor path\n"
22150 "\n"
22151 msgstr ""
22152
22153 # type: textblock
22154 #: ../fish/guestfish-actions.pod:2875
22155 msgid ""
22156 "This call creates a block device node called C<path> with mode C<mode> and "
22157 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22158 "wrapper around L</mknod>."
22159 msgstr ""
22160
22161 # type: =head2
22162 #: ../fish/guestfish-actions.pod:2881
22163 msgid "mknod-c"
22164 msgstr ""
22165
22166 # type: verbatim
22167 #: ../fish/guestfish-actions.pod:2883
22168 #, no-wrap
22169 msgid ""
22170 " mknod-c mode devmajor devminor path\n"
22171 "\n"
22172 msgstr ""
22173
22174 # type: textblock
22175 #: ../fish/guestfish-actions.pod:2885
22176 msgid ""
22177 "This call creates a char device node called C<path> with mode C<mode> and "
22178 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22179 "wrapper around L</mknod>."
22180 msgstr ""
22181
22182 # type: =head2
22183 #: ../fish/guestfish-actions.pod:2891
22184 msgid "mkswap"
22185 msgstr ""
22186
22187 # type: verbatim
22188 #: ../fish/guestfish-actions.pod:2893
22189 #, no-wrap
22190 msgid ""
22191 " mkswap device\n"
22192 "\n"
22193 msgstr ""
22194
22195 # type: =head2
22196 #: ../fish/guestfish-actions.pod:2897
22197 msgid "mkswap-L"
22198 msgstr ""
22199
22200 # type: verbatim
22201 #: ../fish/guestfish-actions.pod:2899
22202 #, no-wrap
22203 msgid ""
22204 " mkswap-L label device\n"
22205 "\n"
22206 msgstr ""
22207
22208 # type: =head2
22209 #: ../fish/guestfish-actions.pod:2907
22210 msgid "mkswap-U"
22211 msgstr ""
22212
22213 # type: verbatim
22214 #: ../fish/guestfish-actions.pod:2909
22215 #, no-wrap
22216 msgid ""
22217 " mkswap-U uuid device\n"
22218 "\n"
22219 msgstr ""
22220
22221 # type: =head2
22222 #: ../fish/guestfish-actions.pod:2913
22223 msgid "mkswap-file"
22224 msgstr ""
22225
22226 # type: verbatim
22227 #: ../fish/guestfish-actions.pod:2915
22228 #, no-wrap
22229 msgid ""
22230 " mkswap-file path\n"
22231 "\n"
22232 msgstr ""
22233
22234 # type: textblock
22235 #: ../fish/guestfish-actions.pod:2919
22236 msgid ""
22237 "This command just writes a swap file signature to an existing file.  To "
22238 "create the file itself, use something like L</fallocate>."
22239 msgstr ""
22240
22241 # type: =head2
22242 #: ../fish/guestfish-actions.pod:2922
22243 msgid "modprobe"
22244 msgstr ""
22245
22246 # type: verbatim
22247 #: ../fish/guestfish-actions.pod:2924
22248 #, no-wrap
22249 msgid ""
22250 " modprobe modulename\n"
22251 "\n"
22252 msgstr ""
22253
22254 # type: =head2
22255 #: ../fish/guestfish-actions.pod:2931
22256 msgid "mount"
22257 msgstr ""
22258
22259 # type: verbatim
22260 #: ../fish/guestfish-actions.pod:2933
22261 #, no-wrap
22262 msgid ""
22263 " mount device mountpoint\n"
22264 "\n"
22265 msgstr ""
22266
22267 # type: textblock
22268 #: ../fish/guestfish-actions.pod:2949
22269 msgid ""
22270 "B<Important note:> When you use this call, the filesystem options C<sync> "
22271 "and C<noatime> are set implicitly.  This was originally done because we "
22272 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22273 "very large negative performance impact and negligible effect on "
22274 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22275 "code that needs performance, and instead use L</mount-options> (use an empty "
22276 "string for the first parameter if you don't want any options)."
22277 msgstr ""
22278
22279 # type: =head2
22280 #: ../fish/guestfish-actions.pod:2959
22281 msgid "mount-loop"
22282 msgstr ""
22283
22284 # type: verbatim
22285 #: ../fish/guestfish-actions.pod:2961
22286 #, no-wrap
22287 msgid ""
22288 " mount-loop file mountpoint\n"
22289 "\n"
22290 msgstr ""
22291
22292 # type: =head2
22293 #: ../fish/guestfish-actions.pod:2967
22294 msgid "mount-options"
22295 msgstr ""
22296
22297 # type: verbatim
22298 #: ../fish/guestfish-actions.pod:2969
22299 #, no-wrap
22300 msgid ""
22301 " mount-options options device mountpoint\n"
22302 "\n"
22303 msgstr ""
22304
22305 # type: textblock
22306 #: ../fish/guestfish-actions.pod:2971
22307 msgid ""
22308 "This is the same as the L</mount> command, but it allows you to set the "
22309 "mount options as for the L<mount(8)> I<-o> flag."
22310 msgstr ""
22311
22312 # type: =head2
22313 #: ../fish/guestfish-actions.pod:2979
22314 msgid "mount-ro"
22315 msgstr ""
22316
22317 # type: verbatim
22318 #: ../fish/guestfish-actions.pod:2981
22319 #, no-wrap
22320 msgid ""
22321 " mount-ro device mountpoint\n"
22322 "\n"
22323 msgstr ""
22324
22325 # type: textblock
22326 #: ../fish/guestfish-actions.pod:2983
22327 msgid ""
22328 "This is the same as the L</mount> command, but it mounts the filesystem with "
22329 "the read-only (I<-o ro>) flag."
22330 msgstr ""
22331
22332 # type: =head2
22333 #: ../fish/guestfish-actions.pod:2986
22334 msgid "mount-vfs"
22335 msgstr ""
22336
22337 # type: verbatim
22338 #: ../fish/guestfish-actions.pod:2988
22339 #, no-wrap
22340 msgid ""
22341 " mount-vfs options vfstype device mountpoint\n"
22342 "\n"
22343 msgstr ""
22344
22345 # type: textblock
22346 #: ../fish/guestfish-actions.pod:2990
22347 msgid ""
22348 "This is the same as the L</mount> command, but it allows you to set both the "
22349 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22350 msgstr ""
22351
22352 # type: =head2
22353 #: ../fish/guestfish-actions.pod:2994
22354 msgid "mountpoints"
22355 msgstr ""
22356
22357 # type: verbatim
22358 #: ../fish/guestfish-actions.pod:2996
22359 #, no-wrap
22360 msgid ""
22361 " mountpoints\n"
22362 "\n"
22363 msgstr ""
22364
22365 # type: textblock
22366 #: ../fish/guestfish-actions.pod:2998
22367 msgid ""
22368 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22369 "This one returns a hash table (map) of device name to directory where the "
22370 "device is mounted."
22371 msgstr ""
22372
22373 # type: =head2
22374 #: ../fish/guestfish-actions.pod:3002
22375 msgid "mounts"
22376 msgstr ""
22377
22378 # type: verbatim
22379 #: ../fish/guestfish-actions.pod:3004
22380 #, no-wrap
22381 msgid ""
22382 " mounts\n"
22383 "\n"
22384 msgstr ""
22385
22386 # type: textblock
22387 #: ../fish/guestfish-actions.pod:3011
22388 msgid "See also: L</mountpoints>"
22389 msgstr ""
22390
22391 # type: =head2
22392 #: ../fish/guestfish-actions.pod:3013
22393 msgid "mv"
22394 msgstr ""
22395
22396 # type: verbatim
22397 #: ../fish/guestfish-actions.pod:3015
22398 #, no-wrap
22399 msgid ""
22400 " mv src dest\n"
22401 "\n"
22402 msgstr ""
22403
22404 # type: =head2
22405 #: ../fish/guestfish-actions.pod:3020
22406 msgid "ntfs-3g-probe"
22407 msgstr ""
22408
22409 # type: verbatim
22410 #: ../fish/guestfish-actions.pod:3022
22411 #, no-wrap
22412 msgid ""
22413 " ntfs-3g-probe true|false device\n"
22414 "\n"
22415 msgstr ""
22416
22417 # type: =head2
22418 #: ../fish/guestfish-actions.pod:3036
22419 msgid "ntfsresize"
22420 msgstr ""
22421
22422 # type: verbatim
22423 #: ../fish/guestfish-actions.pod:3038
22424 #, no-wrap
22425 msgid ""
22426 " ntfsresize device\n"
22427 "\n"
22428 msgstr ""
22429
22430 # type: =head2
22431 #: ../fish/guestfish-actions.pod:3044
22432 msgid "ntfsresize-size"
22433 msgstr ""
22434
22435 # type: verbatim
22436 #: ../fish/guestfish-actions.pod:3046
22437 #, no-wrap
22438 msgid ""
22439 " ntfsresize-size device size\n"
22440 "\n"
22441 msgstr ""
22442
22443 # type: textblock
22444 #: ../fish/guestfish-actions.pod:3048
22445 msgid ""
22446 "This command is the same as L</ntfsresize> except that it allows you to "
22447 "specify the new size (in bytes) explicitly."
22448 msgstr ""
22449
22450 # type: =head2
22451 #: ../fish/guestfish-actions.pod:3051
22452 msgid "part-add"
22453 msgstr ""
22454
22455 # type: verbatim
22456 #: ../fish/guestfish-actions.pod:3053
22457 #, no-wrap
22458 msgid ""
22459 " part-add device prlogex startsect endsect\n"
22460 "\n"
22461 msgstr ""
22462
22463 # type: textblock
22464 #: ../fish/guestfish-actions.pod:3055
22465 msgid ""
22466 "This command adds a partition to C<device>.  If there is no partition table "
22467 "on the device, call L</part-init> first."
22468 msgstr ""
22469
22470 # type: textblock
22471 #: ../fish/guestfish-actions.pod:3067
22472 msgid ""
22473 "Creating a partition which covers the whole disk is not so easy.  Use "
22474 "L</part-disk> to do that."
22475 msgstr ""
22476
22477 # type: =head2
22478 #: ../fish/guestfish-actions.pod:3070
22479 msgid "part-del"
22480 msgstr ""
22481
22482 # type: verbatim
22483 #: ../fish/guestfish-actions.pod:3072
22484 #, no-wrap
22485 msgid ""
22486 " part-del device partnum\n"
22487 "\n"
22488 msgstr ""
22489
22490 # type: =head2
22491 #: ../fish/guestfish-actions.pod:3080
22492 msgid "part-disk"
22493 msgstr ""
22494
22495 # type: verbatim
22496 #: ../fish/guestfish-actions.pod:3082
22497 #, no-wrap
22498 msgid ""
22499 " part-disk device parttype\n"
22500 "\n"
22501 msgstr ""
22502
22503 # type: textblock
22504 #: ../fish/guestfish-actions.pod:3084
22505 msgid ""
22506 "This command is simply a combination of L</part-init> followed by "
22507 "L</part-add> to create a single primary partition covering the whole disk."
22508 msgstr ""
22509
22510 # type: textblock
22511 #: ../fish/guestfish-actions.pod:3088
22512 msgid ""
22513 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22514 "possible values are described in L</part-init>."
22515 msgstr ""
22516
22517 # type: =head2
22518 #: ../fish/guestfish-actions.pod:3094
22519 msgid "part-get-bootable"
22520 msgstr ""
22521
22522 # type: verbatim
22523 #: ../fish/guestfish-actions.pod:3096
22524 #, no-wrap
22525 msgid ""
22526 " part-get-bootable device partnum\n"
22527 "\n"
22528 msgstr ""
22529
22530 # type: textblock
22531 #: ../fish/guestfish-actions.pod:3101
22532 msgid "See also L</part-set-bootable>."
22533 msgstr ""
22534
22535 # type: =head2
22536 #: ../fish/guestfish-actions.pod:3103
22537 msgid "part-get-mbr-id"
22538 msgstr ""
22539
22540 # type: verbatim
22541 #: ../fish/guestfish-actions.pod:3105
22542 #, no-wrap
22543 msgid ""
22544 " part-get-mbr-id device partnum\n"
22545 "\n"
22546 msgstr ""
22547
22548 # type: textblock
22549 #: ../fish/guestfish-actions.pod:3110 ../fish/guestfish-actions.pod:3248
22550 msgid ""
22551 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22552 "undefined results for other partition table types (see "
22553 "L</part-get-parttype>)."
22554 msgstr ""
22555
22556 # type: =head2
22557 #: ../fish/guestfish-actions.pod:3114
22558 msgid "part-get-parttype"
22559 msgstr ""
22560
22561 # type: verbatim
22562 #: ../fish/guestfish-actions.pod:3116
22563 #, no-wrap
22564 msgid ""
22565 " part-get-parttype device\n"
22566 "\n"
22567 msgstr ""
22568
22569 # type: textblock
22570 #: ../fish/guestfish-actions.pod:3121
22571 msgid ""
22572 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22573 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22574 "possible, although unusual.  See L</part-init> for a full list."
22575 msgstr ""
22576
22577 # type: =head2
22578 #: ../fish/guestfish-actions.pod:3126
22579 msgid "part-init"
22580 msgstr ""
22581
22582 # type: verbatim
22583 #: ../fish/guestfish-actions.pod:3128
22584 #, no-wrap
22585 msgid ""
22586 " part-init device parttype\n"
22587 "\n"
22588 msgstr ""
22589
22590 # type: textblock
22591 #: ../fish/guestfish-actions.pod:3134
22592 msgid ""
22593 "Initially there are no partitions.  Following this, you should call "
22594 "L</part-add> for each partition required."
22595 msgstr ""
22596
22597 # type: =head2
22598 #: ../fish/guestfish-actions.pod:3197
22599 msgid "part-list"
22600 msgstr ""
22601
22602 # type: verbatim
22603 #: ../fish/guestfish-actions.pod:3199
22604 #, no-wrap
22605 msgid ""
22606 " part-list device\n"
22607 "\n"
22608 msgstr ""
22609
22610 # type: textblock
22611 #: ../fish/guestfish-actions.pod:3214
22612 msgid ""
22613 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22614 "the device's sector size, see L</blockdev-getss>."
22615 msgstr ""
22616
22617 # type: =head2
22618 #: ../fish/guestfish-actions.pod:3227
22619 msgid "part-set-bootable"
22620 msgstr ""
22621
22622 # type: verbatim
22623 #: ../fish/guestfish-actions.pod:3229
22624 #, no-wrap
22625 msgid ""
22626 " part-set-bootable device partnum true|false\n"
22627 "\n"
22628 msgstr ""
22629
22630 # type: =head2
22631 #: ../fish/guestfish-actions.pod:3238
22632 msgid "part-set-mbr-id"
22633 msgstr ""
22634
22635 # type: verbatim
22636 #: ../fish/guestfish-actions.pod:3240
22637 #, no-wrap
22638 msgid ""
22639 " part-set-mbr-id device partnum idbyte\n"
22640 "\n"
22641 msgstr ""
22642
22643 # type: =head2
22644 #: ../fish/guestfish-actions.pod:3252
22645 msgid "part-set-name"
22646 msgstr ""
22647
22648 # type: verbatim
22649 #: ../fish/guestfish-actions.pod:3254
22650 #, no-wrap
22651 msgid ""
22652 " part-set-name device partnum name\n"
22653 "\n"
22654 msgstr ""
22655
22656 # type: =head2
22657 #: ../fish/guestfish-actions.pod:3262
22658 msgid "part-to-dev"
22659 msgstr ""
22660
22661 # type: verbatim
22662 #: ../fish/guestfish-actions.pod:3264
22663 #, no-wrap
22664 msgid ""
22665 " part-to-dev partition\n"
22666 "\n"
22667 msgstr ""
22668
22669 # type: textblock
22670 #: ../fish/guestfish-actions.pod:3270
22671 msgid ""
22672 "The named partition must exist, for example as a string returned from "
22673 "L</list-partitions>."
22674 msgstr ""
22675
22676 # type: =head2
22677 #: ../fish/guestfish-actions.pod:3273
22678 msgid "ping-daemon"
22679 msgstr ""
22680
22681 # type: verbatim
22682 #: ../fish/guestfish-actions.pod:3275
22683 #, no-wrap
22684 msgid ""
22685 " ping-daemon\n"
22686 "\n"
22687 msgstr ""
22688
22689 # type: =head2
22690 #: ../fish/guestfish-actions.pod:3282
22691 msgid "pread"
22692 msgstr ""
22693
22694 # type: verbatim
22695 #: ../fish/guestfish-actions.pod:3284
22696 #, no-wrap
22697 msgid ""
22698 " pread path count offset\n"
22699 "\n"
22700 msgstr ""
22701
22702 # type: textblock
22703 #: ../fish/guestfish-actions.pod:3292
22704 msgid "See also L</pwrite>, L</pread-device>."
22705 msgstr ""
22706
22707 # type: =head2
22708 #: ../fish/guestfish-actions.pod:3297
22709 msgid "pread-device"
22710 msgstr ""
22711
22712 # type: verbatim
22713 #: ../fish/guestfish-actions.pod:3299
22714 #, no-wrap
22715 msgid ""
22716 " pread-device device count offset\n"
22717 "\n"
22718 msgstr ""
22719
22720 # type: textblock
22721 #: ../fish/guestfish-actions.pod:3307
22722 msgid "See also L</pread>."
22723 msgstr ""
22724
22725 # type: =head2
22726 #: ../fish/guestfish-actions.pod:3312
22727 msgid "pvcreate"
22728 msgstr ""
22729
22730 # type: verbatim
22731 #: ../fish/guestfish-actions.pod:3314
22732 #, no-wrap
22733 msgid ""
22734 " pvcreate device\n"
22735 "\n"
22736 msgstr ""
22737
22738 # type: =head2
22739 #: ../fish/guestfish-actions.pod:3320
22740 msgid "pvremove"
22741 msgstr ""
22742
22743 # type: verbatim
22744 #: ../fish/guestfish-actions.pod:3322
22745 #, no-wrap
22746 msgid ""
22747 " pvremove device\n"
22748 "\n"
22749 msgstr ""
22750
22751 # type: =head2
22752 #: ../fish/guestfish-actions.pod:3331
22753 msgid "pvresize"
22754 msgstr ""
22755
22756 # type: verbatim
22757 #: ../fish/guestfish-actions.pod:3333
22758 #, no-wrap
22759 msgid ""
22760 " pvresize device\n"
22761 "\n"
22762 msgstr ""
22763
22764 # type: =head2
22765 #: ../fish/guestfish-actions.pod:3338
22766 msgid "pvresize-size"
22767 msgstr ""
22768
22769 # type: verbatim
22770 #: ../fish/guestfish-actions.pod:3340
22771 #, no-wrap
22772 msgid ""
22773 " pvresize-size device size\n"
22774 "\n"
22775 msgstr ""
22776
22777 # type: textblock
22778 #: ../fish/guestfish-actions.pod:3342
22779 msgid ""
22780 "This command is the same as L</pvresize> except that it allows you to "
22781 "specify the new size (in bytes) explicitly."
22782 msgstr ""
22783
22784 # type: =head2
22785 #: ../fish/guestfish-actions.pod:3345
22786 msgid "pvs"
22787 msgstr ""
22788
22789 # type: verbatim
22790 #: ../fish/guestfish-actions.pod:3347
22791 #, no-wrap
22792 msgid ""
22793 " pvs\n"
22794 "\n"
22795 msgstr ""
22796
22797 # type: textblock
22798 #: ../fish/guestfish-actions.pod:3355
22799 msgid "See also L</pvs-full>."
22800 msgstr ""
22801
22802 # type: =head2
22803 #: ../fish/guestfish-actions.pod:3357
22804 msgid "pvs-full"
22805 msgstr ""
22806
22807 # type: verbatim
22808 #: ../fish/guestfish-actions.pod:3359
22809 #, no-wrap
22810 msgid ""
22811 " pvs-full\n"
22812 "\n"
22813 msgstr ""
22814
22815 # type: =head2
22816 #: ../fish/guestfish-actions.pod:3364
22817 msgid "pvuuid"
22818 msgstr ""
22819
22820 # type: verbatim
22821 #: ../fish/guestfish-actions.pod:3366
22822 #, no-wrap
22823 msgid ""
22824 " pvuuid device\n"
22825 "\n"
22826 msgstr ""
22827
22828 # type: =head2
22829 #: ../fish/guestfish-actions.pod:3370
22830 msgid "pwrite"
22831 msgstr ""
22832
22833 # type: verbatim
22834 #: ../fish/guestfish-actions.pod:3372
22835 #, no-wrap
22836 msgid ""
22837 " pwrite path content offset\n"
22838 "\n"
22839 msgstr ""
22840
22841 # type: textblock
22842 #: ../fish/guestfish-actions.pod:3383
22843 msgid "See also L</pread>, L</pwrite-device>."
22844 msgstr ""
22845
22846 # type: =head2
22847 #: ../fish/guestfish-actions.pod:3388
22848 msgid "pwrite-device"
22849 msgstr ""
22850
22851 # type: verbatim
22852 #: ../fish/guestfish-actions.pod:3390
22853 #, no-wrap
22854 msgid ""
22855 " pwrite-device device content offset\n"
22856 "\n"
22857 msgstr ""
22858
22859 # type: textblock
22860 #: ../fish/guestfish-actions.pod:3400
22861 msgid "See also L</pwrite>."
22862 msgstr ""
22863
22864 # type: =head2
22865 #: ../fish/guestfish-actions.pod:3405
22866 msgid "read-file"
22867 msgstr ""
22868
22869 # type: verbatim
22870 #: ../fish/guestfish-actions.pod:3407
22871 #, no-wrap
22872 msgid ""
22873 " read-file path\n"
22874 "\n"
22875 msgstr ""
22876
22877 # type: textblock
22878 #: ../fish/guestfish-actions.pod:3412
22879 msgid ""
22880 "Unlike L</cat>, this function can correctly handle files that contain "
22881 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22882 "is limited in the total size of file that can be handled."
22883 msgstr ""
22884
22885 # type: =head2
22886 #: ../fish/guestfish-actions.pod:3420
22887 msgid "read-lines"
22888 msgstr ""
22889
22890 # type: verbatim
22891 #: ../fish/guestfish-actions.pod:3422
22892 #, no-wrap
22893 msgid ""
22894 " read-lines path\n"
22895 "\n"
22896 msgstr ""
22897
22898 # type: textblock
22899 #: ../fish/guestfish-actions.pod:3429
22900 msgid ""
22901 "Note that this function cannot correctly handle binary files (specifically, "
22902 "files containing C<\\0> character which is treated as end of line).  For "
22903 "those you need to use the L</read-file> function which has a more complex "
22904 "interface."
22905 msgstr ""
22906
22907 # type: =head2
22908 #: ../fish/guestfish-actions.pod:3434
22909 msgid "readdir"
22910 msgstr ""
22911
22912 # type: verbatim
22913 #: ../fish/guestfish-actions.pod:3436
22914 #, no-wrap
22915 msgid ""
22916 " readdir dir\n"
22917 "\n"
22918 msgstr ""
22919
22920 # type: textblock
22921 #: ../fish/guestfish-actions.pod:3488
22922 msgid ""
22923 "This function is primarily intended for use by programs.  To get a simple "
22924 "list of names, use L</ls>.  To get a printable directory for human "
22925 "consumption, use L</ll>."
22926 msgstr ""
22927
22928 # type: =head2
22929 #: ../fish/guestfish-actions.pod:3492
22930 msgid "readlink"
22931 msgstr ""
22932
22933 # type: verbatim
22934 #: ../fish/guestfish-actions.pod:3494
22935 #, no-wrap
22936 msgid ""
22937 " readlink path\n"
22938 "\n"
22939 msgstr ""
22940
22941 # type: =head2
22942 #: ../fish/guestfish-actions.pod:3498
22943 msgid "readlinklist"
22944 msgstr ""
22945
22946 # type: verbatim
22947 #: ../fish/guestfish-actions.pod:3500
22948 #, no-wrap
22949 msgid ""
22950 " readlinklist path 'names ...'\n"
22951 "\n"
22952 msgstr ""
22953
22954 # type: =head2
22955 #: ../fish/guestfish-actions.pod:3524
22956 msgid "realpath"
22957 msgstr ""
22958
22959 # type: verbatim
22960 #: ../fish/guestfish-actions.pod:3526
22961 #, no-wrap
22962 msgid ""
22963 " realpath path\n"
22964 "\n"
22965 msgstr ""
22966
22967 # type: =head2
22968 #: ../fish/guestfish-actions.pod:3531
22969 msgid "removexattr"
22970 msgstr ""
22971
22972 # type: verbatim
22973 #: ../fish/guestfish-actions.pod:3533
22974 #, no-wrap
22975 msgid ""
22976 " removexattr xattr path\n"
22977 "\n"
22978 msgstr ""
22979
22980 # type: textblock
22981 #: ../fish/guestfish-actions.pod:3538
22982 msgid "See also: L</lremovexattr>, L<attr(5)>."
22983 msgstr ""
22984
22985 # type: =head2
22986 #: ../fish/guestfish-actions.pod:3540
22987 msgid "resize2fs"
22988 msgstr ""
22989
22990 # type: verbatim
22991 #: ../fish/guestfish-actions.pod:3542
22992 #, no-wrap
22993 msgid ""
22994 " resize2fs device\n"
22995 "\n"
22996 msgstr ""
22997
22998 # type: textblock
22999 #: ../fish/guestfish-actions.pod:3547
23000 msgid ""
23001 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23002 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23003 "gives an error about this and sometimes not.  In any case, it is always safe "
23004 "to call L</e2fsck-f> before calling this function."
23005 msgstr ""
23006
23007 # type: =head2
23008 #: ../fish/guestfish-actions.pod:3553
23009 msgid "resize2fs-size"
23010 msgstr ""
23011
23012 # type: verbatim
23013 #: ../fish/guestfish-actions.pod:3555
23014 #, no-wrap
23015 msgid ""
23016 " resize2fs-size device size\n"
23017 "\n"
23018 msgstr ""
23019
23020 # type: textblock
23021 #: ../fish/guestfish-actions.pod:3557
23022 msgid ""
23023 "This command is the same as L</resize2fs> except that it allows you to "
23024 "specify the new size (in bytes) explicitly."
23025 msgstr ""
23026
23027 # type: =head2
23028 #: ../fish/guestfish-actions.pod:3560
23029 msgid "rm"
23030 msgstr ""
23031
23032 # type: verbatim
23033 #: ../fish/guestfish-actions.pod:3562
23034 #, no-wrap
23035 msgid ""
23036 " rm path\n"
23037 "\n"
23038 msgstr ""
23039
23040 # type: =head2
23041 #: ../fish/guestfish-actions.pod:3566
23042 msgid "rm-rf"
23043 msgstr ""
23044
23045 # type: verbatim
23046 #: ../fish/guestfish-actions.pod:3568
23047 #, no-wrap
23048 msgid ""
23049 " rm-rf path\n"
23050 "\n"
23051 msgstr ""
23052
23053 # type: =head2
23054 #: ../fish/guestfish-actions.pod:3574
23055 msgid "rmdir"
23056 msgstr ""
23057
23058 # type: verbatim
23059 #: ../fish/guestfish-actions.pod:3576
23060 #, no-wrap
23061 msgid ""
23062 " rmdir path\n"
23063 "\n"
23064 msgstr ""
23065
23066 # type: =head2
23067 #: ../fish/guestfish-actions.pod:3580
23068 msgid "rmmountpoint"
23069 msgstr ""
23070
23071 # type: verbatim
23072 #: ../fish/guestfish-actions.pod:3582
23073 #, no-wrap
23074 msgid ""
23075 " rmmountpoint exemptpath\n"
23076 "\n"
23077 msgstr ""
23078
23079 # type: textblock
23080 #: ../fish/guestfish-actions.pod:3584
23081 msgid ""
23082 "This calls removes a mountpoint that was previously created with "
23083 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
23084 msgstr ""
23085
23086 # type: =head2
23087 #: ../fish/guestfish-actions.pod:3588
23088 msgid "scrub-device"
23089 msgstr ""
23090
23091 # type: verbatim
23092 #: ../fish/guestfish-actions.pod:3590
23093 #, no-wrap
23094 msgid ""
23095 " scrub-device device\n"
23096 "\n"
23097 msgstr ""
23098
23099 # type: =head2
23100 #: ../fish/guestfish-actions.pod:3601
23101 msgid "scrub-file"
23102 msgstr ""
23103
23104 # type: verbatim
23105 #: ../fish/guestfish-actions.pod:3603
23106 #, no-wrap
23107 msgid ""
23108 " scrub-file file\n"
23109 "\n"
23110 msgstr ""
23111
23112 # type: =head2
23113 #: ../fish/guestfish-actions.pod:3613
23114 msgid "scrub-freespace"
23115 msgstr ""
23116
23117 # type: verbatim
23118 #: ../fish/guestfish-actions.pod:3615
23119 #, no-wrap
23120 msgid ""
23121 " scrub-freespace dir\n"
23122 "\n"
23123 msgstr ""
23124
23125 # type: textblock
23126 #: ../fish/guestfish-actions.pod:3617
23127 msgid ""
23128 "This command creates the directory C<dir> and then fills it with files until "
23129 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23130 "deletes them.  The intention is to scrub any free space on the partition "
23131 "containing C<dir>."
23132 msgstr ""
23133
23134 # type: =head2
23135 #: ../fish/guestfish-actions.pod:3626
23136 msgid "set-append"
23137 msgstr ""
23138
23139 # type: =head2
23140 #: ../fish/guestfish-actions.pod:3628
23141 msgid "append"
23142 msgstr ""
23143
23144 # type: verbatim
23145 #: ../fish/guestfish-actions.pod:3630
23146 #, no-wrap
23147 msgid ""
23148 " set-append append\n"
23149 "\n"
23150 msgstr ""
23151
23152 # type: =head2
23153 #: ../fish/guestfish-actions.pod:3641
23154 msgid "set-autosync"
23155 msgstr ""
23156
23157 # type: =head2
23158 #: ../fish/guestfish-actions.pod:3643
23159 msgid "autosync"
23160 msgstr ""
23161
23162 # type: verbatim
23163 #: ../fish/guestfish-actions.pod:3645
23164 #, no-wrap
23165 msgid ""
23166 " set-autosync true|false\n"
23167 "\n"
23168 msgstr ""
23169
23170 # type: textblock
23171 #: ../fish/guestfish-actions.pod:3647
23172 msgid ""
23173 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23174 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23175 "closed (also if the program exits without closing handles)."
23176 msgstr ""
23177
23178 # type: =head2
23179 #: ../fish/guestfish-actions.pod:3655
23180 msgid "set-direct"
23181 msgstr ""
23182
23183 # type: =head2
23184 #: ../fish/guestfish-actions.pod:3657
23185 msgid "direct"
23186 msgstr ""
23187
23188 # type: verbatim
23189 #: ../fish/guestfish-actions.pod:3659
23190 #, no-wrap
23191 msgid ""
23192 " set-direct true|false\n"
23193 "\n"
23194 msgstr ""
23195
23196 # type: textblock
23197 #: ../fish/guestfish-actions.pod:3665
23198 msgid ""
23199 "One consequence of this is that log messages aren't caught by the library "
23200 "and handled by L</set-log-message-callback>, but go straight to stdout."
23201 msgstr ""
23202
23203 # type: =head2
23204 #: ../fish/guestfish-actions.pod:3674
23205 msgid "set-e2label"
23206 msgstr ""
23207
23208 # type: verbatim
23209 #: ../fish/guestfish-actions.pod:3676
23210 #, no-wrap
23211 msgid ""
23212 " set-e2label device label\n"
23213 "\n"
23214 msgstr ""
23215
23216 # type: textblock
23217 #: ../fish/guestfish-actions.pod:3682
23218 msgid ""
23219 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23220 "label on a filesystem."
23221 msgstr ""
23222
23223 # type: =head2
23224 #: ../fish/guestfish-actions.pod:3685
23225 msgid "set-e2uuid"
23226 msgstr ""
23227
23228 # type: verbatim
23229 #: ../fish/guestfish-actions.pod:3687
23230 #, no-wrap
23231 msgid ""
23232 " set-e2uuid device uuid\n"
23233 "\n"
23234 msgstr ""
23235
23236 # type: textblock
23237 #: ../fish/guestfish-actions.pod:3694
23238 msgid ""
23239 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23240 "UUID of a filesystem."
23241 msgstr ""
23242
23243 # type: =head2
23244 #: ../fish/guestfish-actions.pod:3697
23245 msgid "set-memsize"
23246 msgstr ""
23247
23248 # type: =head2
23249 #: ../fish/guestfish-actions.pod:3699
23250 msgid "memsize"
23251 msgstr ""
23252
23253 # type: verbatim
23254 #: ../fish/guestfish-actions.pod:3701
23255 #, no-wrap
23256 msgid ""
23257 " set-memsize memsize\n"
23258 "\n"
23259 msgstr ""
23260
23261 # type: textblock
23262 #: ../fish/guestfish-actions.pod:3703
23263 msgid ""
23264 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23265 "This only has any effect if called before L</launch>."
23266 msgstr ""
23267
23268 # type: =head2
23269 #: ../fish/guestfish-actions.pod:3714
23270 msgid "set-network"
23271 msgstr ""
23272
23273 # type: =head2
23274 #: ../fish/guestfish-actions.pod:3716
23275 msgid "network"
23276 msgstr ""
23277
23278 # type: verbatim
23279 #: ../fish/guestfish-actions.pod:3718
23280 #, no-wrap
23281 msgid ""
23282 " set-network true|false\n"
23283 "\n"
23284 msgstr ""
23285
23286 # type: textblock
23287 #: ../fish/guestfish-actions.pod:3726
23288 msgid "You must call this before calling L</launch>, otherwise it has no effect."
23289 msgstr ""
23290
23291 # type: =head2
23292 #: ../fish/guestfish-actions.pod:3729
23293 msgid "set-path"
23294 msgstr ""
23295
23296 # type: =head2
23297 #: ../fish/guestfish-actions.pod:3731
23298 msgid "path"
23299 msgstr ""
23300
23301 # type: verbatim
23302 #: ../fish/guestfish-actions.pod:3733
23303 #, no-wrap
23304 msgid ""
23305 " set-path searchpath\n"
23306 "\n"
23307 msgstr ""
23308
23309 # type: =head2
23310 #: ../fish/guestfish-actions.pod:3742
23311 msgid "set-qemu"
23312 msgstr ""
23313
23314 # type: =head2
23315 #: ../fish/guestfish-actions.pod:3744
23316 msgid "qemu"
23317 msgstr ""
23318
23319 # type: verbatim
23320 #: ../fish/guestfish-actions.pod:3746
23321 #, no-wrap
23322 msgid ""
23323 " set-qemu qemu\n"
23324 "\n"
23325 msgstr ""
23326
23327 # type: =head2
23328 #: ../fish/guestfish-actions.pod:3766
23329 msgid "set-recovery-proc"
23330 msgstr ""
23331
23332 # type: =head2
23333 #: ../fish/guestfish-actions.pod:3768
23334 msgid "recovery-proc"
23335 msgstr ""
23336
23337 # type: verbatim
23338 #: ../fish/guestfish-actions.pod:3770
23339 #, no-wrap
23340 msgid ""
23341 " set-recovery-proc true|false\n"
23342 "\n"
23343 msgstr ""
23344
23345 # type: textblock
23346 #: ../fish/guestfish-actions.pod:3772
23347 msgid ""
23348 "If this is called with the parameter C<false> then L</launch> does not "
23349 "create a recovery process.  The purpose of the recovery process is to stop "
23350 "runaway qemu processes in the case where the main program aborts abruptly."
23351 msgstr ""
23352
23353 # type: textblock
23354 #: ../fish/guestfish-actions.pod:3777
23355 msgid ""
23356 "This only has any effect if called before L</launch>, and the default is "
23357 "true."
23358 msgstr ""
23359
23360 # type: =head2
23361 #: ../fish/guestfish-actions.pod:3786
23362 msgid "set-selinux"
23363 msgstr ""
23364
23365 # type: =head2
23366 #: ../fish/guestfish-actions.pod:3788
23367 msgid "selinux"
23368 msgstr ""
23369
23370 # type: verbatim
23371 #: ../fish/guestfish-actions.pod:3790
23372 #, no-wrap
23373 msgid ""
23374 " set-selinux true|false\n"
23375 "\n"
23376 msgstr ""
23377
23378 # type: =head2
23379 #: ../fish/guestfish-actions.pod:3801
23380 msgid "set-trace"
23381 msgstr ""
23382
23383 # type: =head2
23384 #: ../fish/guestfish-actions.pod:3803
23385 msgid "trace"
23386 msgstr ""
23387
23388 # type: verbatim
23389 #: ../fish/guestfish-actions.pod:3805
23390 #, no-wrap
23391 msgid ""
23392 " set-trace true|false\n"
23393 "\n"
23394 msgstr ""
23395
23396 # type: =head2
23397 #: ../fish/guestfish-actions.pod:3821
23398 msgid "set-verbose"
23399 msgstr ""
23400
23401 # type: =head2
23402 #: ../fish/guestfish-actions.pod:3823
23403 msgid "verbose"
23404 msgstr ""
23405
23406 # type: verbatim
23407 #: ../fish/guestfish-actions.pod:3825
23408 #, no-wrap
23409 msgid ""
23410 " set-verbose true|false\n"
23411 "\n"
23412 msgstr ""
23413
23414 # type: =head2
23415 #: ../fish/guestfish-actions.pod:3832
23416 msgid "setcon"
23417 msgstr ""
23418
23419 # type: verbatim
23420 #: ../fish/guestfish-actions.pod:3834
23421 #, no-wrap
23422 msgid ""
23423 " setcon context\n"
23424 "\n"
23425 msgstr ""
23426
23427 # type: =head2
23428 #: ../fish/guestfish-actions.pod:3841
23429 msgid "setxattr"
23430 msgstr ""
23431
23432 # type: verbatim
23433 #: ../fish/guestfish-actions.pod:3843
23434 #, no-wrap
23435 msgid ""
23436 " setxattr xattr val vallen path\n"
23437 "\n"
23438 msgstr ""
23439
23440 # type: textblock
23441 #: ../fish/guestfish-actions.pod:3849
23442 msgid "See also: L</lsetxattr>, L<attr(5)>."
23443 msgstr ""
23444
23445 # type: =head2
23446 #: ../fish/guestfish-actions.pod:3851
23447 msgid "sfdisk"
23448 msgstr ""
23449
23450 # type: verbatim
23451 #: ../fish/guestfish-actions.pod:3853
23452 #, no-wrap
23453 msgid ""
23454 " sfdisk device cyls heads sectors 'lines ...'\n"
23455 "\n"
23456 msgstr ""
23457
23458 # type: textblock
23459 #: ../fish/guestfish-actions.pod:3875
23460 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23461 msgstr ""
23462
23463 # type: =head2
23464 #: ../fish/guestfish-actions.pod:3881
23465 msgid "sfdiskM"
23466 msgstr ""
23467
23468 # type: verbatim
23469 #: ../fish/guestfish-actions.pod:3883
23470 #, no-wrap
23471 msgid ""
23472 " sfdiskM device 'lines ...'\n"
23473 "\n"
23474 msgstr ""
23475
23476 # type: textblock
23477 #: ../fish/guestfish-actions.pod:3885
23478 msgid ""
23479 "This is a simplified interface to the L</sfdisk> command, where partition "
23480 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23481 "you don't need to specify the cyls, heads and sectors parameters which were "
23482 "rarely if ever used anyway."
23483 msgstr ""
23484
23485 # type: textblock
23486 #: ../fish/guestfish-actions.pod:3891
23487 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23488 msgstr ""
23489
23490 # type: =head2
23491 #: ../fish/guestfish-actions.pod:3897
23492 msgid "sfdisk-N"
23493 msgstr ""
23494
23495 # type: verbatim
23496 #: ../fish/guestfish-actions.pod:3899
23497 #, no-wrap
23498 msgid ""
23499 " sfdisk-N device partnum cyls heads sectors line\n"
23500 "\n"
23501 msgstr ""
23502
23503 # type: textblock
23504 #: ../fish/guestfish-actions.pod:3904
23505 msgid ""
23506 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23507 "cyls/heads/sectors parameters."
23508 msgstr ""
23509
23510 # type: textblock
23511 #: ../fish/guestfish-actions.pod:3907
23512 msgid "See also: L</part-add>"
23513 msgstr ""
23514
23515 # type: =head2
23516 #: ../fish/guestfish-actions.pod:3912
23517 msgid "sfdisk-disk-geometry"
23518 msgstr ""
23519
23520 # type: verbatim
23521 #: ../fish/guestfish-actions.pod:3914
23522 #, no-wrap
23523 msgid ""
23524 " sfdisk-disk-geometry device\n"
23525 "\n"
23526 msgstr ""
23527
23528 # type: textblock
23529 #: ../fish/guestfish-actions.pod:3916
23530 msgid ""
23531 "This displays the disk geometry of C<device> read from the partition table.  "
23532 "Especially in the case where the underlying block device has been resized, "
23533 "this can be different from the kernel's idea of the geometry (see "
23534 "L</sfdisk-kernel-geometry>)."
23535 msgstr ""
23536
23537 # type: =head2
23538 #: ../fish/guestfish-actions.pod:3924
23539 msgid "sfdisk-kernel-geometry"
23540 msgstr ""
23541
23542 # type: verbatim
23543 #: ../fish/guestfish-actions.pod:3926
23544 #, no-wrap
23545 msgid ""
23546 " sfdisk-kernel-geometry device\n"
23547 "\n"
23548 msgstr ""
23549
23550 # type: =head2
23551 #: ../fish/guestfish-actions.pod:3933
23552 msgid "sfdisk-l"
23553 msgstr ""
23554
23555 # type: verbatim
23556 #: ../fish/guestfish-actions.pod:3935
23557 #, no-wrap
23558 msgid ""
23559 " sfdisk-l device\n"
23560 "\n"
23561 msgstr ""
23562
23563 # type: textblock
23564 #: ../fish/guestfish-actions.pod:3941
23565 msgid "See also: L</part-list>"
23566 msgstr ""
23567
23568 # type: =head2
23569 #: ../fish/guestfish-actions.pod:3943
23570 msgid "sh"
23571 msgstr ""
23572
23573 # type: verbatim
23574 #: ../fish/guestfish-actions.pod:3945
23575 #, no-wrap
23576 msgid ""
23577 " sh command\n"
23578 "\n"
23579 msgstr ""
23580
23581 # type: textblock
23582 #: ../fish/guestfish-actions.pod:3950
23583 msgid "This is like L</command>, but passes the command to:"
23584 msgstr ""
23585
23586 # type: textblock
23587 #: ../fish/guestfish-actions.pod:3958
23588 msgid "All the provisos about L</command> apply to this call."
23589 msgstr ""
23590
23591 # type: =head2
23592 #: ../fish/guestfish-actions.pod:3960
23593 msgid "sh-lines"
23594 msgstr ""
23595
23596 # type: verbatim
23597 #: ../fish/guestfish-actions.pod:3962
23598 #, no-wrap
23599 msgid ""
23600 " sh-lines command\n"
23601 "\n"
23602 msgstr ""
23603
23604 # type: textblock
23605 #: ../fish/guestfish-actions.pod:3964
23606 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23607 msgstr ""
23608
23609 # type: textblock
23610 #: ../fish/guestfish-actions.pod:3967
23611 msgid "See also: L</command-lines>"
23612 msgstr ""
23613
23614 # type: =head2
23615 #: ../fish/guestfish-actions.pod:3969
23616 msgid "sleep"
23617 msgstr ""
23618
23619 # type: verbatim
23620 #: ../fish/guestfish-actions.pod:3971
23621 #, no-wrap
23622 msgid ""
23623 " sleep secs\n"
23624 "\n"
23625 msgstr ""
23626
23627 # type: =head2
23628 #: ../fish/guestfish-actions.pod:3975
23629 msgid "stat"
23630 msgstr ""
23631
23632 # type: verbatim
23633 #: ../fish/guestfish-actions.pod:3977
23634 #, no-wrap
23635 msgid ""
23636 " stat path\n"
23637 "\n"
23638 msgstr ""
23639
23640 # type: =head2
23641 #: ../fish/guestfish-actions.pod:3983
23642 msgid "statvfs"
23643 msgstr ""
23644
23645 # type: verbatim
23646 #: ../fish/guestfish-actions.pod:3985
23647 #, no-wrap
23648 msgid ""
23649 " statvfs path\n"
23650 "\n"
23651 msgstr ""
23652
23653 # type: =head2
23654 #: ../fish/guestfish-actions.pod:3993
23655 msgid "strings"
23656 msgstr ""
23657
23658 # type: verbatim
23659 #: ../fish/guestfish-actions.pod:3995
23660 #, no-wrap
23661 msgid ""
23662 " strings path\n"
23663 "\n"
23664 msgstr ""
23665
23666 # type: =head2
23667 #: ../fish/guestfish-actions.pod:4003
23668 msgid "strings-e"
23669 msgstr ""
23670
23671 # type: verbatim
23672 #: ../fish/guestfish-actions.pod:4005
23673 #, no-wrap
23674 msgid ""
23675 " strings-e encoding path\n"
23676 "\n"
23677 msgstr ""
23678
23679 # type: textblock
23680 #: ../fish/guestfish-actions.pod:4007
23681 msgid ""
23682 "This is like the L</strings> command, but allows you to specify the encoding "
23683 "of strings that are looked for in the source file C<path>."
23684 msgstr ""
23685
23686 # type: textblock
23687 #: ../fish/guestfish-actions.pod:4017
23688 msgid ""
23689 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23690 "ISO-8859-X (this is what L</strings> uses)."
23691 msgstr ""
23692
23693 # type: =head2
23694 #: ../fish/guestfish-actions.pod:4049
23695 msgid "swapoff-device"
23696 msgstr ""
23697
23698 # type: verbatim
23699 #: ../fish/guestfish-actions.pod:4051
23700 #, no-wrap
23701 msgid ""
23702 " swapoff-device device\n"
23703 "\n"
23704 msgstr ""
23705
23706 # type: textblock
23707 #: ../fish/guestfish-actions.pod:4053
23708 msgid ""
23709 "This command disables the libguestfs appliance swap device or partition "
23710 "named C<device>.  See L</swapon-device>."
23711 msgstr ""
23712
23713 # type: =head2
23714 #: ../fish/guestfish-actions.pod:4057
23715 msgid "swapoff-file"
23716 msgstr ""
23717
23718 # type: verbatim
23719 #: ../fish/guestfish-actions.pod:4059
23720 #, no-wrap
23721 msgid ""
23722 " swapoff-file file\n"
23723 "\n"
23724 msgstr ""
23725
23726 # type: =head2
23727 #: ../fish/guestfish-actions.pod:4063
23728 msgid "swapoff-label"
23729 msgstr ""
23730
23731 # type: verbatim
23732 #: ../fish/guestfish-actions.pod:4065
23733 #, no-wrap
23734 msgid ""
23735 " swapoff-label label\n"
23736 "\n"
23737 msgstr ""
23738
23739 # type: =head2
23740 #: ../fish/guestfish-actions.pod:4070
23741 msgid "swapoff-uuid"
23742 msgstr ""
23743
23744 # type: verbatim
23745 #: ../fish/guestfish-actions.pod:4072
23746 #, no-wrap
23747 msgid ""
23748 " swapoff-uuid uuid\n"
23749 "\n"
23750 msgstr ""
23751
23752 # type: =head2
23753 #: ../fish/guestfish-actions.pod:4077
23754 msgid "swapon-device"
23755 msgstr ""
23756
23757 # type: verbatim
23758 #: ../fish/guestfish-actions.pod:4079
23759 #, no-wrap
23760 msgid ""
23761 " swapon-device device\n"
23762 "\n"
23763 msgstr ""
23764
23765 # type: textblock
23766 #: ../fish/guestfish-actions.pod:4081
23767 msgid ""
23768 "This command enables the libguestfs appliance to use the swap device or "
23769 "partition named C<device>.  The increased memory is made available for all "
23770 "commands, for example those run using L</command> or L</sh>."
23771 msgstr ""
23772
23773 # type: =head2
23774 #: ../fish/guestfish-actions.pod:4093
23775 msgid "swapon-file"
23776 msgstr ""
23777
23778 # type: verbatim
23779 #: ../fish/guestfish-actions.pod:4095
23780 #, no-wrap
23781 msgid ""
23782 " swapon-file file\n"
23783 "\n"
23784 msgstr ""
23785
23786 # type: textblock
23787 #: ../fish/guestfish-actions.pod:4097
23788 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
23789 msgstr ""
23790
23791 # type: =head2
23792 #: ../fish/guestfish-actions.pod:4100
23793 msgid "swapon-label"
23794 msgstr ""
23795
23796 # type: verbatim
23797 #: ../fish/guestfish-actions.pod:4102
23798 #, no-wrap
23799 msgid ""
23800 " swapon-label label\n"
23801 "\n"
23802 msgstr ""
23803
23804 # type: textblock
23805 #: ../fish/guestfish-actions.pod:4104
23806 msgid ""
23807 "This command enables swap to a labeled swap partition.  See "
23808 "L</swapon-device> for other notes."
23809 msgstr ""
23810
23811 # type: =head2
23812 #: ../fish/guestfish-actions.pod:4107
23813 msgid "swapon-uuid"
23814 msgstr ""
23815
23816 # type: verbatim
23817 #: ../fish/guestfish-actions.pod:4109
23818 #, no-wrap
23819 msgid ""
23820 " swapon-uuid uuid\n"
23821 "\n"
23822 msgstr ""
23823
23824 # type: textblock
23825 #: ../fish/guestfish-actions.pod:4111
23826 msgid ""
23827 "This command enables swap to a swap partition with the given UUID.  See "
23828 "L</swapon-device> for other notes."
23829 msgstr ""
23830
23831 # type: =head2
23832 #: ../fish/guestfish-actions.pod:4114
23833 msgid "sync"
23834 msgstr ""
23835
23836 # type: verbatim
23837 #: ../fish/guestfish-actions.pod:4116
23838 #, no-wrap
23839 msgid ""
23840 " sync\n"
23841 "\n"
23842 msgstr ""
23843
23844 # type: =head2
23845 #: ../fish/guestfish-actions.pod:4124
23846 msgid "tail"
23847 msgstr ""
23848
23849 # type: verbatim
23850 #: ../fish/guestfish-actions.pod:4126
23851 #, no-wrap
23852 msgid ""
23853 " tail path\n"
23854 "\n"
23855 msgstr ""
23856
23857 # type: =head2
23858 #: ../fish/guestfish-actions.pod:4134
23859 msgid "tail-n"
23860 msgstr ""
23861
23862 # type: verbatim
23863 #: ../fish/guestfish-actions.pod:4136
23864 #, no-wrap
23865 msgid ""
23866 " tail-n nrlines path\n"
23867 "\n"
23868 msgstr ""
23869
23870 # type: =head2
23871 #: ../fish/guestfish-actions.pod:4149
23872 msgid "tar-in"
23873 msgstr ""
23874
23875 # type: verbatim
23876 #: ../fish/guestfish-actions.pod:4151
23877 #, no-wrap
23878 msgid ""
23879 " tar-in (tarfile|-) directory\n"
23880 "\n"
23881 msgstr ""
23882
23883 # type: textblock
23884 #: ../fish/guestfish-actions.pod:4156
23885 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
23886 msgstr ""
23887
23888 # type: =head2
23889 #: ../fish/guestfish-actions.pod:4161
23890 msgid "tar-out"
23891 msgstr ""
23892
23893 # type: verbatim
23894 #: ../fish/guestfish-actions.pod:4163
23895 #, no-wrap
23896 msgid ""
23897 " tar-out directory (tarfile|-)\n"
23898 "\n"
23899 msgstr ""
23900
23901 # type: textblock
23902 #: ../fish/guestfish-actions.pod:4168
23903 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
23904 msgstr ""
23905
23906 # type: =head2
23907 #: ../fish/guestfish-actions.pod:4173
23908 msgid "tgz-in"
23909 msgstr ""
23910
23911 # type: verbatim
23912 #: ../fish/guestfish-actions.pod:4175
23913 #, no-wrap
23914 msgid ""
23915 " tgz-in (tarball|-) directory\n"
23916 "\n"
23917 msgstr ""
23918
23919 # type: textblock
23920 #: ../fish/guestfish-actions.pod:4180
23921 msgid "To upload an uncompressed tarball, use L</tar-in>."
23922 msgstr ""
23923
23924 # type: =head2
23925 #: ../fish/guestfish-actions.pod:4184
23926 msgid "tgz-out"
23927 msgstr ""
23928
23929 # type: verbatim
23930 #: ../fish/guestfish-actions.pod:4186
23931 #, no-wrap
23932 msgid ""
23933 " tgz-out directory (tarball|-)\n"
23934 "\n"
23935 msgstr ""
23936
23937 # type: textblock
23938 #: ../fish/guestfish-actions.pod:4191
23939 msgid "To download an uncompressed tarball, use L</tar-out>."
23940 msgstr ""
23941
23942 # type: =head2
23943 #: ../fish/guestfish-actions.pod:4195
23944 msgid "touch"
23945 msgstr ""
23946
23947 # type: verbatim
23948 #: ../fish/guestfish-actions.pod:4197
23949 #, no-wrap
23950 msgid ""
23951 " touch path\n"
23952 "\n"
23953 msgstr ""
23954
23955 # type: =head2
23956 #: ../fish/guestfish-actions.pod:4206
23957 msgid "truncate"
23958 msgstr ""
23959
23960 # type: verbatim
23961 #: ../fish/guestfish-actions.pod:4208
23962 #, no-wrap
23963 msgid ""
23964 " truncate path\n"
23965 "\n"
23966 msgstr ""
23967
23968 # type: =head2
23969 #: ../fish/guestfish-actions.pod:4213
23970 msgid "truncate-size"
23971 msgstr ""
23972
23973 # type: verbatim
23974 #: ../fish/guestfish-actions.pod:4215
23975 #, no-wrap
23976 msgid ""
23977 " truncate-size path size\n"
23978 "\n"
23979 msgstr ""
23980
23981 # type: textblock
23982 #: ../fish/guestfish-actions.pod:4220
23983 msgid ""
23984 "If the current file size is less than C<size> then the file is extended to "
23985 "the required size with zero bytes.  This creates a sparse file (ie. disk "
23986 "blocks are not allocated for the file until you write to it).  To create a "
23987 "non-sparse file of zeroes, use L</fallocate64> instead."
23988 msgstr ""
23989
23990 # type: =head2
23991 #: ../fish/guestfish-actions.pod:4226
23992 msgid "tune2fs-l"
23993 msgstr ""
23994
23995 # type: verbatim
23996 #: ../fish/guestfish-actions.pod:4228
23997 #, no-wrap
23998 msgid ""
23999 " tune2fs-l device\n"
24000 "\n"
24001 msgstr ""
24002
24003 # type: =head2
24004 #: ../fish/guestfish-actions.pod:4238
24005 msgid "txz-in"
24006 msgstr ""
24007
24008 # type: verbatim
24009 #: ../fish/guestfish-actions.pod:4240
24010 #, no-wrap
24011 msgid ""
24012 " txz-in (tarball|-) directory\n"
24013 "\n"
24014 msgstr ""
24015
24016 # type: =head2
24017 #: ../fish/guestfish-actions.pod:4247
24018 msgid "txz-out"
24019 msgstr ""
24020
24021 # type: verbatim
24022 #: ../fish/guestfish-actions.pod:4249
24023 #, no-wrap
24024 msgid ""
24025 " txz-out directory (tarball|-)\n"
24026 "\n"
24027 msgstr ""
24028
24029 # type: =head2
24030 #: ../fish/guestfish-actions.pod:4256
24031 msgid "umask"
24032 msgstr ""
24033
24034 # type: verbatim
24035 #: ../fish/guestfish-actions.pod:4258
24036 #, no-wrap
24037 msgid ""
24038 " umask mask\n"
24039 "\n"
24040 msgstr ""
24041
24042 # type: textblock
24043 #: ../fish/guestfish-actions.pod:4272
24044 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24045 msgstr ""
24046
24047 # type: =head2
24048 #: ../fish/guestfish-actions.pod:4277
24049 msgid "umount"
24050 msgstr ""
24051
24052 # type: =head2
24053 #: ../fish/guestfish-actions.pod:4279
24054 msgid "unmount"
24055 msgstr ""
24056
24057 # type: verbatim
24058 #: ../fish/guestfish-actions.pod:4281
24059 #, no-wrap
24060 msgid ""
24061 " umount pathordevice\n"
24062 "\n"
24063 msgstr ""
24064
24065 # type: =head2
24066 #: ../fish/guestfish-actions.pod:4287
24067 msgid "umount-all"
24068 msgstr ""
24069
24070 # type: =head2
24071 #: ../fish/guestfish-actions.pod:4289
24072 msgid "unmount-all"
24073 msgstr ""
24074
24075 # type: verbatim
24076 #: ../fish/guestfish-actions.pod:4291
24077 #, no-wrap
24078 msgid ""
24079 " umount-all\n"
24080 "\n"
24081 msgstr ""
24082
24083 # type: =head2
24084 #: ../fish/guestfish-actions.pod:4297
24085 msgid "upload"
24086 msgstr ""
24087
24088 # type: verbatim
24089 #: ../fish/guestfish-actions.pod:4299
24090 #, no-wrap
24091 msgid ""
24092 " upload (filename|-) remotefilename\n"
24093 "\n"
24094 msgstr ""
24095
24096 # type: textblock
24097 #: ../fish/guestfish-actions.pod:4306
24098 msgid "See also L</download>."
24099 msgstr ""
24100
24101 # type: =head2
24102 #: ../fish/guestfish-actions.pod:4310
24103 msgid "upload-offset"
24104 msgstr ""
24105
24106 # type: verbatim
24107 #: ../fish/guestfish-actions.pod:4312
24108 #, no-wrap
24109 msgid ""
24110 " upload-offset (filename|-) remotefilename offset\n"
24111 "\n"
24112 msgstr ""
24113
24114 # type: textblock
24115 #: ../fish/guestfish-actions.pod:4324
24116 msgid ""
24117 "Note that there is no limit on the amount of data that can be uploaded with "
24118 "this call, unlike with L</pwrite>, and this call always writes the full "
24119 "amount unless an error occurs."
24120 msgstr ""
24121
24122 # type: textblock
24123 #: ../fish/guestfish-actions.pod:4329
24124 msgid "See also L</upload>, L</pwrite>."
24125 msgstr ""
24126
24127 # type: =head2
24128 #: ../fish/guestfish-actions.pod:4333
24129 msgid "utimens"
24130 msgstr ""
24131
24132 # type: verbatim
24133 #: ../fish/guestfish-actions.pod:4335
24134 #, no-wrap
24135 msgid ""
24136 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24137 "\n"
24138 msgstr ""
24139
24140 # type: =head2
24141 #: ../fish/guestfish-actions.pod:4354
24142 msgid "version"
24143 msgstr ""
24144
24145 # type: verbatim
24146 #: ../fish/guestfish-actions.pod:4356
24147 #, no-wrap
24148 msgid ""
24149 " version\n"
24150 "\n"
24151 msgstr ""
24152
24153 # type: textblock
24154 #: ../fish/guestfish-actions.pod:4383
24155 msgid ""
24156 "I<Note:> Don't use this call to test for availability of features.  In "
24157 "enterprise distributions we backport features from later versions into "
24158 "earlier versions, making this an unreliable way to test for features.  Use "
24159 "L</available> instead."
24160 msgstr ""
24161
24162 # type: =head2
24163 #: ../fish/guestfish-actions.pod:4389
24164 msgid "vfs-label"
24165 msgstr ""
24166
24167 # type: verbatim
24168 #: ../fish/guestfish-actions.pod:4391
24169 #, no-wrap
24170 msgid ""
24171 " vfs-label device\n"
24172 "\n"
24173 msgstr ""
24174
24175 # type: textblock
24176 #: ../fish/guestfish-actions.pod:4398
24177 msgid "To find a filesystem from the label, use L</findfs-label>."
24178 msgstr ""
24179
24180 # type: =head2
24181 #: ../fish/guestfish-actions.pod:4400
24182 msgid "vfs-type"
24183 msgstr ""
24184
24185 # type: verbatim
24186 #: ../fish/guestfish-actions.pod:4402
24187 #, no-wrap
24188 msgid ""
24189 " vfs-type device\n"
24190 "\n"
24191 msgstr ""
24192
24193 # type: =head2
24194 #: ../fish/guestfish-actions.pod:4412
24195 msgid "vfs-uuid"
24196 msgstr ""
24197
24198 # type: verbatim
24199 #: ../fish/guestfish-actions.pod:4414
24200 #, no-wrap
24201 msgid ""
24202 " vfs-uuid device\n"
24203 "\n"
24204 msgstr ""
24205
24206 # type: textblock
24207 #: ../fish/guestfish-actions.pod:4421
24208 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24209 msgstr ""
24210
24211 # type: =head2
24212 #: ../fish/guestfish-actions.pod:4423
24213 msgid "vg-activate"
24214 msgstr ""
24215
24216 # type: verbatim
24217 #: ../fish/guestfish-actions.pod:4425
24218 #, no-wrap
24219 msgid ""
24220 " vg-activate true|false 'volgroups ...'\n"
24221 "\n"
24222 msgstr ""
24223
24224 # type: =head2
24225 #: ../fish/guestfish-actions.pod:4438
24226 msgid "vg-activate-all"
24227 msgstr ""
24228
24229 # type: verbatim
24230 #: ../fish/guestfish-actions.pod:4440
24231 #, no-wrap
24232 msgid ""
24233 " vg-activate-all true|false\n"
24234 "\n"
24235 msgstr ""
24236
24237 # type: =head2
24238 #: ../fish/guestfish-actions.pod:4450
24239 msgid "vgcreate"
24240 msgstr ""
24241
24242 # type: verbatim
24243 #: ../fish/guestfish-actions.pod:4452
24244 #, no-wrap
24245 msgid ""
24246 " vgcreate volgroup 'physvols ...'\n"
24247 "\n"
24248 msgstr ""
24249
24250 # type: =head2
24251 #: ../fish/guestfish-actions.pod:4457
24252 msgid "vglvuuids"
24253 msgstr ""
24254
24255 # type: verbatim
24256 #: ../fish/guestfish-actions.pod:4459
24257 #, no-wrap
24258 msgid ""
24259 " vglvuuids vgname\n"
24260 "\n"
24261 msgstr ""
24262
24263 # type: textblock
24264 #: ../fish/guestfish-actions.pod:4464
24265 msgid ""
24266 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24267 "logical volumes and volume groups."
24268 msgstr ""
24269
24270 # type: textblock
24271 #: ../fish/guestfish-actions.pod:4467
24272 msgid "See also L</vgpvuuids>."
24273 msgstr ""
24274
24275 # type: =head2
24276 #: ../fish/guestfish-actions.pod:4469
24277 msgid "vgpvuuids"
24278 msgstr ""
24279
24280 # type: verbatim
24281 #: ../fish/guestfish-actions.pod:4471
24282 #, no-wrap
24283 msgid ""
24284 " vgpvuuids vgname\n"
24285 "\n"
24286 msgstr ""
24287
24288 # type: textblock
24289 #: ../fish/guestfish-actions.pod:4476
24290 msgid ""
24291 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24292 "physical volumes and volume groups."
24293 msgstr ""
24294
24295 # type: textblock
24296 #: ../fish/guestfish-actions.pod:4479
24297 msgid "See also L</vglvuuids>."
24298 msgstr ""
24299
24300 # type: =head2
24301 #: ../fish/guestfish-actions.pod:4481
24302 msgid "vgremove"
24303 msgstr ""
24304
24305 # type: verbatim
24306 #: ../fish/guestfish-actions.pod:4483
24307 #, no-wrap
24308 msgid ""
24309 " vgremove vgname\n"
24310 "\n"
24311 msgstr ""
24312
24313 # type: =head2
24314 #: ../fish/guestfish-actions.pod:4490
24315 msgid "vgrename"
24316 msgstr ""
24317
24318 # type: verbatim
24319 #: ../fish/guestfish-actions.pod:4492
24320 #, no-wrap
24321 msgid ""
24322 " vgrename volgroup newvolgroup\n"
24323 "\n"
24324 msgstr ""
24325
24326 # type: =head2
24327 #: ../fish/guestfish-actions.pod:4496
24328 msgid "vgs"
24329 msgstr ""
24330
24331 # type: verbatim
24332 #: ../fish/guestfish-actions.pod:4498
24333 #, no-wrap
24334 msgid ""
24335 " vgs\n"
24336 "\n"
24337 msgstr ""
24338
24339 # type: textblock
24340 #: ../fish/guestfish-actions.pod:4506
24341 msgid "See also L</vgs-full>."
24342 msgstr ""
24343
24344 # type: =head2
24345 #: ../fish/guestfish-actions.pod:4508
24346 msgid "vgs-full"
24347 msgstr ""
24348
24349 # type: verbatim
24350 #: ../fish/guestfish-actions.pod:4510
24351 #, no-wrap
24352 msgid ""
24353 " vgs-full\n"
24354 "\n"
24355 msgstr ""
24356
24357 # type: =head2
24358 #: ../fish/guestfish-actions.pod:4515
24359 msgid "vgscan"
24360 msgstr ""
24361
24362 # type: verbatim
24363 #: ../fish/guestfish-actions.pod:4517
24364 #, no-wrap
24365 msgid ""
24366 " vgscan\n"
24367 "\n"
24368 msgstr ""
24369
24370 # type: =head2
24371 #: ../fish/guestfish-actions.pod:4522
24372 msgid "vguuid"
24373 msgstr ""
24374
24375 # type: verbatim
24376 #: ../fish/guestfish-actions.pod:4524
24377 #, no-wrap
24378 msgid ""
24379 " vguuid vgname\n"
24380 "\n"
24381 msgstr ""
24382
24383 # type: =head2
24384 #: ../fish/guestfish-actions.pod:4528
24385 msgid "wc-c"
24386 msgstr ""
24387
24388 # type: verbatim
24389 #: ../fish/guestfish-actions.pod:4530
24390 #, no-wrap
24391 msgid ""
24392 " wc-c path\n"
24393 "\n"
24394 msgstr ""
24395
24396 # type: =head2
24397 #: ../fish/guestfish-actions.pod:4535
24398 msgid "wc-l"
24399 msgstr ""
24400
24401 # type: verbatim
24402 #: ../fish/guestfish-actions.pod:4537
24403 #, no-wrap
24404 msgid ""
24405 " wc-l path\n"
24406 "\n"
24407 msgstr ""
24408
24409 # type: =head2
24410 #: ../fish/guestfish-actions.pod:4542
24411 msgid "wc-w"
24412 msgstr ""
24413
24414 # type: verbatim
24415 #: ../fish/guestfish-actions.pod:4544
24416 #, no-wrap
24417 msgid ""
24418 " wc-w path\n"
24419 "\n"
24420 msgstr ""
24421
24422 # type: =head2
24423 #: ../fish/guestfish-actions.pod:4549
24424 msgid "write"
24425 msgstr ""
24426
24427 # type: verbatim
24428 #: ../fish/guestfish-actions.pod:4551
24429 #, no-wrap
24430 msgid ""
24431 " write path content\n"
24432 "\n"
24433 msgstr ""
24434
24435 # type: =head2
24436 #: ../fish/guestfish-actions.pod:4559
24437 msgid "write-file"
24438 msgstr ""
24439
24440 # type: verbatim
24441 #: ../fish/guestfish-actions.pod:4561
24442 #, no-wrap
24443 msgid ""
24444 " write-file path content size\n"
24445 "\n"
24446 msgstr ""
24447
24448 # type: =head2
24449 #: ../fish/guestfish-actions.pod:4584
24450 msgid "zegrep"
24451 msgstr ""
24452
24453 # type: verbatim
24454 #: ../fish/guestfish-actions.pod:4586
24455 #, no-wrap
24456 msgid ""
24457 " zegrep regex path\n"
24458 "\n"
24459 msgstr ""
24460
24461 # type: =head2
24462 #: ../fish/guestfish-actions.pod:4594
24463 msgid "zegrepi"
24464 msgstr ""
24465
24466 # type: verbatim
24467 #: ../fish/guestfish-actions.pod:4596
24468 #, no-wrap
24469 msgid ""
24470 " zegrepi regex path\n"
24471 "\n"
24472 msgstr ""
24473
24474 # type: =head2
24475 #: ../fish/guestfish-actions.pod:4604
24476 msgid "zero"
24477 msgstr ""
24478
24479 # type: verbatim
24480 #: ../fish/guestfish-actions.pod:4606
24481 #, no-wrap
24482 msgid ""
24483 " zero device\n"
24484 "\n"
24485 msgstr ""
24486
24487 # type: textblock
24488 #: ../fish/guestfish-actions.pod:4614
24489 msgid "See also: L</zero-device>, L</scrub-device>."
24490 msgstr ""
24491
24492 # type: =head2
24493 #: ../fish/guestfish-actions.pod:4616
24494 msgid "zero-device"
24495 msgstr ""
24496
24497 # type: verbatim
24498 #: ../fish/guestfish-actions.pod:4618
24499 #, no-wrap
24500 msgid ""
24501 " zero-device device\n"
24502 "\n"
24503 msgstr ""
24504
24505 # type: textblock
24506 #: ../fish/guestfish-actions.pod:4620
24507 msgid ""
24508 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24509 "which just zeroes the first few blocks of a device."
24510 msgstr ""
24511
24512 # type: =head2
24513 #: ../fish/guestfish-actions.pod:4627
24514 msgid "zerofree"
24515 msgstr ""
24516
24517 # type: verbatim
24518 #: ../fish/guestfish-actions.pod:4629
24519 #, no-wrap
24520 msgid ""
24521 " zerofree device\n"
24522 "\n"
24523 msgstr ""
24524
24525 # type: =head2
24526 #: ../fish/guestfish-actions.pod:4642
24527 msgid "zfgrep"
24528 msgstr ""
24529
24530 # type: verbatim
24531 #: ../fish/guestfish-actions.pod:4644
24532 #, no-wrap
24533 msgid ""
24534 " zfgrep pattern path\n"
24535 "\n"
24536 msgstr ""
24537
24538 # type: =head2
24539 #: ../fish/guestfish-actions.pod:4652
24540 msgid "zfgrepi"
24541 msgstr ""
24542
24543 # type: verbatim
24544 #: ../fish/guestfish-actions.pod:4654
24545 #, no-wrap
24546 msgid ""
24547 " zfgrepi pattern path\n"
24548 "\n"
24549 msgstr ""
24550
24551 # type: =head2
24552 #: ../fish/guestfish-actions.pod:4662
24553 msgid "zfile"
24554 msgstr ""
24555
24556 # type: verbatim
24557 #: ../fish/guestfish-actions.pod:4664
24558 #, no-wrap
24559 msgid ""
24560 " zfile meth path\n"
24561 "\n"
24562 msgstr ""
24563
24564 # type: textblock
24565 #: ../fish/guestfish-actions.pod:4671
24566 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
24567 msgstr ""
24568
24569 # type: =head2
24570 #: ../fish/guestfish-actions.pod:4681
24571 msgid "zgrep"
24572 msgstr ""
24573
24574 # type: verbatim
24575 #: ../fish/guestfish-actions.pod:4683
24576 #, no-wrap
24577 msgid ""
24578 " zgrep regex path\n"
24579 "\n"
24580 msgstr ""
24581
24582 # type: =head2
24583 #: ../fish/guestfish-actions.pod:4691
24584 msgid "zgrepi"
24585 msgstr ""
24586
24587 # type: verbatim
24588 #: ../fish/guestfish-actions.pod:4693
24589 #, no-wrap
24590 msgid ""
24591 " zgrepi regex path\n"
24592 "\n"
24593 msgstr ""
24594
24595 # type: =head2
24596 #: ../fish/guestfish-commands.pod:1
24597 msgid "alloc"
24598 msgstr ""
24599
24600 # type: =head2
24601 #: ../fish/guestfish-commands.pod:3
24602 msgid "allocate"
24603 msgstr ""
24604
24605 # type: verbatim
24606 #: ../fish/guestfish-commands.pod:5
24607 #, no-wrap
24608 msgid ""
24609 " alloc filename size\n"
24610 "\n"
24611 msgstr ""
24612
24613 # type: textblock
24614 #: ../fish/guestfish-commands.pod:7
24615 msgid ""
24616 "This creates an empty (zeroed) file of the given size, and then adds so it "
24617 "can be further examined."
24618 msgstr ""
24619
24620 # type: textblock
24621 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24622 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24623 msgstr ""
24624
24625 # type: textblock
24626 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24627 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24628 msgstr ""
24629
24630 # type: textblock
24631 #: ../fish/guestfish-commands.pod:14
24632 msgid ""
24633 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24634 "image, see L</PREPARED DISK IMAGES>."
24635 msgstr ""
24636
24637 # type: =head2
24638 #: ../fish/guestfish-commands.pod:17
24639 msgid "copy-in"
24640 msgstr ""
24641
24642 # type: verbatim
24643 #: ../fish/guestfish-commands.pod:19
24644 #, no-wrap
24645 msgid ""
24646 " copy-in local [local ...] /remotedir\n"
24647 "\n"
24648 msgstr ""
24649
24650 # type: textblock
24651 #: ../fish/guestfish-commands.pod:21
24652 msgid ""
24653 "C<copy-in> copies local files or directories recursively into the disk "
24654 "image, placing them in the directory called C</remotedir> (which must "
24655 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24656 "other commands as necessary."
24657 msgstr ""
24658
24659 # type: textblock
24660 #: ../fish/guestfish-commands.pod:26
24661 msgid ""
24662 "Multiple local files and directories can be specified, but the last "
24663 "parameter must always be a remote directory.  Wildcards cannot be used."
24664 msgstr ""
24665
24666 # type: =head2
24667 #: ../fish/guestfish-commands.pod:30
24668 msgid "copy-out"
24669 msgstr ""
24670
24671 # type: verbatim
24672 #: ../fish/guestfish-commands.pod:32
24673 #, no-wrap
24674 msgid ""
24675 " copy-out remote [remote ...] localdir\n"
24676 "\n"
24677 msgstr ""
24678
24679 # type: textblock
24680 #: ../fish/guestfish-commands.pod:34
24681 msgid ""
24682 "C<copy-out> copies remote files or directories recursively out of the disk "
24683 "image, placing them on the host disk in a local directory called C<localdir> "
24684 "(which must exist).  This guestfish meta-command turns into a sequence of "
24685 "L</download>, L</tar-out> and other commands as necessary."
24686 msgstr ""
24687
24688 # type: textblock
24689 #: ../fish/guestfish-commands.pod:40
24690 msgid ""
24691 "Multiple remote files and directories can be specified, but the last "
24692 "parameter must always be a local directory.  To download to the current "
24693 "directory, use C<.> as in:"
24694 msgstr ""
24695
24696 # type: verbatim
24697 #: ../fish/guestfish-commands.pod:44
24698 #, no-wrap
24699 msgid ""
24700 " copy-out /home .\n"
24701 "\n"
24702 msgstr ""
24703
24704 # type: textblock
24705 #: ../fish/guestfish-commands.pod:46
24706 msgid ""
24707 "Wildcards cannot be used in the ordinary command, but you can use them with "
24708 "the help of L</glob> like this:"
24709 msgstr ""
24710
24711 # type: verbatim
24712 #: ../fish/guestfish-commands.pod:49
24713 #, no-wrap
24714 msgid ""
24715 " glob copy-out /home/* .\n"
24716 "\n"
24717 msgstr ""
24718
24719 # type: =head2
24720 #: ../fish/guestfish-commands.pod:51
24721 msgid "echo"
24722 msgstr ""
24723
24724 # type: verbatim
24725 #: ../fish/guestfish-commands.pod:53
24726 #, no-wrap
24727 msgid ""
24728 " echo [params ...]\n"
24729 "\n"
24730 msgstr ""
24731
24732 # type: textblock
24733 #: ../fish/guestfish-commands.pod:55
24734 msgid "This echos the parameters to the terminal."
24735 msgstr ""
24736
24737 # type: =head2
24738 #: ../fish/guestfish-commands.pod:57
24739 msgid "edit"
24740 msgstr ""
24741
24742 # type: =head2
24743 #: ../fish/guestfish-commands.pod:59
24744 msgid "vi"
24745 msgstr ""
24746
24747 # type: =head2
24748 #: ../fish/guestfish-commands.pod:61
24749 msgid "emacs"
24750 msgstr ""
24751
24752 # type: verbatim
24753 #: ../fish/guestfish-commands.pod:63
24754 #, no-wrap
24755 msgid ""
24756 " edit filename\n"
24757 "\n"
24758 msgstr ""
24759
24760 # type: textblock
24761 #: ../fish/guestfish-commands.pod:65
24762 msgid ""
24763 "This is used to edit a file.  It downloads the file, edits it locally using "
24764 "your editor, then uploads the result."
24765 msgstr ""
24766
24767 # type: textblock
24768 #: ../fish/guestfish-commands.pod:68
24769 msgid ""
24770 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24771 "or C<emacs> you will get those corresponding editors."
24772 msgstr ""
24773
24774 # type: =head2
24775 #: ../fish/guestfish-commands.pod:72
24776 msgid "glob"
24777 msgstr ""
24778
24779 # type: verbatim
24780 #: ../fish/guestfish-commands.pod:74
24781 #, no-wrap
24782 msgid ""
24783 " glob command args...\n"
24784 "\n"
24785 msgstr ""
24786
24787 # type: textblock
24788 #: ../fish/guestfish-commands.pod:76
24789 msgid ""
24790 "Expand wildcards in any paths in the args list, and run C<command> "
24791 "repeatedly on each matching path."
24792 msgstr ""
24793
24794 # type: textblock
24795 #: ../fish/guestfish-commands.pod:79
24796 msgid "See L</WILDCARDS AND GLOBBING>."
24797 msgstr ""
24798
24799 # type: =head2
24800 #: ../fish/guestfish-commands.pod:81
24801 msgid "hexedit"
24802 msgstr ""
24803
24804 # type: verbatim
24805 #: ../fish/guestfish-commands.pod:83
24806 #, no-wrap
24807 msgid ""
24808 " hexedit <filename|device>\n"
24809 " hexedit <filename|device> <max>\n"
24810 " hexedit <filename|device> <start> <max>\n"
24811 "\n"
24812 msgstr ""
24813
24814 # type: textblock
24815 #: ../fish/guestfish-commands.pod:87
24816 msgid ""
24817 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24818 "device."
24819 msgstr ""
24820
24821 # type: textblock
24822 #: ../fish/guestfish-commands.pod:90
24823 msgid ""
24824 "This command works by downloading potentially the whole file or device, "
24825 "editing it locally, then uploading it.  If the file or device is large, you "
24826 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24827 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24828 "usual modifiers allowed such as C<1M> (1 megabyte)."
24829 msgstr ""
24830
24831 # type: textblock
24832 #: ../fish/guestfish-commands.pod:97
24833 msgid "For example to edit the first few sectors of a disk you might do:"
24834 msgstr ""
24835
24836 # type: verbatim
24837 #: ../fish/guestfish-commands.pod:100
24838 #, no-wrap
24839 msgid ""
24840 " hexedit /dev/sda 1M\n"
24841 "\n"
24842 msgstr ""
24843
24844 # type: textblock
24845 #: ../fish/guestfish-commands.pod:102
24846 msgid ""
24847 "which would allow you to edit anywhere within the first megabyte of the "
24848 "disk."
24849 msgstr ""
24850
24851 # type: textblock
24852 #: ../fish/guestfish-commands.pod:105
24853 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24854 msgstr ""
24855
24856 # type: verbatim
24857 #: ../fish/guestfish-commands.pod:107
24858 #, no-wrap
24859 msgid ""
24860 " hexedit /dev/sda1 0x400 0x400\n"
24861 "\n"
24862 msgstr ""
24863
24864 # type: textblock
24865 #: ../fish/guestfish-commands.pod:109
24866 msgid "(assuming the superblock is in the standard location)."
24867 msgstr ""
24868
24869 # type: textblock
24870 #: ../fish/guestfish-commands.pod:111
24871 msgid ""
24872 "This command requires the external L<hexedit(1)> program.  You can specify "
24873 "another program to use by setting the C<HEXEDITOR> environment variable."
24874 msgstr ""
24875
24876 # type: textblock
24877 #: ../fish/guestfish-commands.pod:115
24878 msgid "See also L</hexdump>."
24879 msgstr ""
24880
24881 # type: =head2
24882 #: ../fish/guestfish-commands.pod:117
24883 msgid "lcd"
24884 msgstr ""
24885
24886 # type: verbatim
24887 #: ../fish/guestfish-commands.pod:119
24888 #, no-wrap
24889 msgid ""
24890 " lcd directory\n"
24891 "\n"
24892 msgstr ""
24893
24894 # type: textblock
24895 #: ../fish/guestfish-commands.pod:121
24896 msgid "Change the local directory, ie. the current directory of guestfish itself."
24897 msgstr ""
24898
24899 # type: textblock
24900 #: ../fish/guestfish-commands.pod:124
24901 msgid "Note that C<!cd> won't do what you might expect."
24902 msgstr ""
24903
24904 # type: =head2
24905 #: ../fish/guestfish-commands.pod:126
24906 msgid "man"
24907 msgstr ""
24908
24909 # type: =head2
24910 #: ../fish/guestfish-commands.pod:128
24911 msgid "manual"
24912 msgstr ""
24913
24914 # type: verbatim
24915 #: ../fish/guestfish-commands.pod:130
24916 #, no-wrap
24917 msgid ""
24918 "  man\n"
24919 "\n"
24920 msgstr ""
24921
24922 # type: textblock
24923 #: ../fish/guestfish-commands.pod:132
24924 msgid "Opens the manual page for guestfish."
24925 msgstr ""
24926
24927 # type: =head2
24928 #: ../fish/guestfish-commands.pod:134
24929 msgid "more"
24930 msgstr ""
24931
24932 # type: =head2
24933 #: ../fish/guestfish-commands.pod:136
24934 msgid "less"
24935 msgstr ""
24936
24937 # type: verbatim
24938 #: ../fish/guestfish-commands.pod:138
24939 #, no-wrap
24940 msgid ""
24941 " more filename\n"
24942 "\n"
24943 msgstr ""
24944
24945 # type: verbatim
24946 #: ../fish/guestfish-commands.pod:140
24947 #, no-wrap
24948 msgid ""
24949 " less filename\n"
24950 "\n"
24951 msgstr ""
24952
24953 # type: textblock
24954 #: ../fish/guestfish-commands.pod:142
24955 msgid "This is used to view a file."
24956 msgstr ""
24957
24958 # type: textblock
24959 #: ../fish/guestfish-commands.pod:144
24960 msgid ""
24961 "The default viewer is C<$PAGER>.  However if you use the alternate command "
24962 "C<less> you will get the C<less> command specifically."
24963 msgstr ""
24964
24965 # type: =head2
24966 #: ../fish/guestfish-commands.pod:147
24967 msgid "reopen"
24968 msgstr ""
24969
24970 # type: verbatim
24971 #: ../fish/guestfish-commands.pod:149
24972 #, no-wrap
24973 msgid ""
24974 "  reopen\n"
24975 "\n"
24976 msgstr ""
24977
24978 # type: textblock
24979 #: ../fish/guestfish-commands.pod:151
24980 msgid ""
24981 "Close and reopen the libguestfs handle.  It is not necessary to use this "
24982 "normally, because the handle is closed properly when guestfish exits.  "
24983 "However this is occasionally useful for testing."
24984 msgstr ""
24985
24986 # type: =head2
24987 #: ../fish/guestfish-commands.pod:155
24988 msgid "sparse"
24989 msgstr ""
24990
24991 # type: verbatim
24992 #: ../fish/guestfish-commands.pod:157
24993 #, no-wrap
24994 msgid ""
24995 " sparse filename size\n"
24996 "\n"
24997 msgstr ""
24998
24999 # type: textblock
25000 #: ../fish/guestfish-commands.pod:159
25001 msgid ""
25002 "This creates an empty sparse file of the given size, and then adds so it can "
25003 "be further examined."
25004 msgstr ""
25005
25006 # type: textblock
25007 #: ../fish/guestfish-commands.pod:162
25008 msgid ""
25009 "In all respects it works the same as the L</alloc> command, except that the "
25010 "image file is allocated sparsely, which means that disk blocks are not "
25011 "assigned to the file until they are needed.  Sparse disk files only use "
25012 "space when written to, but they are slower and there is a danger you could "
25013 "run out of real disk space during a write operation."
25014 msgstr ""
25015
25016 # type: =head2
25017 #: ../fish/guestfish-commands.pod:172
25018 msgid "supported"
25019 msgstr ""
25020
25021 # type: verbatim
25022 #: ../fish/guestfish-commands.pod:174
25023 #, no-wrap
25024 msgid ""
25025 " supported\n"
25026 "\n"
25027 msgstr ""
25028
25029 # type: textblock
25030 #: ../fish/guestfish-commands.pod:176
25031 msgid ""
25032 "This command returns a list of the optional groups known to the daemon, and "
25033 "indicates which ones are supported by this build of the libguestfs "
25034 "appliance."
25035 msgstr ""
25036
25037 # type: textblock
25038 #: ../fish/guestfish-commands.pod:180
25039 msgid "See also L<guestfs(3)/AVAILABILITY>."
25040 msgstr ""
25041
25042 # type: =head2
25043 #: ../fish/guestfish-commands.pod:182
25044 msgid "time"
25045 msgstr ""
25046
25047 # type: verbatim
25048 #: ../fish/guestfish-commands.pod:184
25049 #, no-wrap
25050 msgid ""
25051 " time command args...\n"
25052 "\n"
25053 msgstr ""
25054
25055 # type: textblock
25056 #: ../fish/guestfish-commands.pod:186
25057 msgid ""
25058 "Run the command as usual, but print the elapsed time afterwards.  This can "
25059 "be useful for benchmarking operations."
25060 msgstr ""
25061
25062 # type: textblock
25063 #: ../test-tool/libguestfs-test-tool.pod:5
25064 msgid "libguestfs-test-tool - End user tests for libguestfs"
25065 msgstr ""
25066
25067 # type: verbatim
25068 #: ../test-tool/libguestfs-test-tool.pod:9
25069 #, no-wrap
25070 msgid ""
25071 " libguestfs-test-tool [--options]\n"
25072 "\n"
25073 msgstr ""
25074
25075 # type: textblock
25076 #: ../test-tool/libguestfs-test-tool.pod:13
25077 msgid ""
25078 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25079 "and developers, to allow them to check basic libguestfs functionality is "
25080 "working.  This is needed because libguestfs occasionally breaks for reasons "
25081 "beyond our control: usually because of changes in the underlying qemu or "
25082 "kernel packages, or the host environment."
25083 msgstr ""
25084
25085 # type: textblock
25086 #: ../test-tool/libguestfs-test-tool.pod:20
25087 msgid "If you suspect a problem in libguestfs, then just run:"
25088 msgstr ""
25089
25090 # type: verbatim
25091 #: ../test-tool/libguestfs-test-tool.pod:22
25092 #, no-wrap
25093 msgid ""
25094 " libguestfs-test-tool\n"
25095 "\n"
25096 msgstr ""
25097
25098 # type: textblock
25099 #: ../test-tool/libguestfs-test-tool.pod:24
25100 msgid "It will print lots of diagnostic messages."
25101 msgstr ""
25102
25103 # type: textblock
25104 #: ../test-tool/libguestfs-test-tool.pod:26
25105 msgid "If it runs to completion successfully, you will see this near the end:"
25106 msgstr ""
25107
25108 # type: verbatim
25109 #: ../test-tool/libguestfs-test-tool.pod:28
25110 #, no-wrap
25111 msgid ""
25112 " ===== TEST FINISHED OK =====\n"
25113 "\n"
25114 msgstr ""
25115
25116 # type: textblock
25117 #: ../test-tool/libguestfs-test-tool.pod:30
25118 msgid "and the test tool will exit with code 0."
25119 msgstr ""
25120
25121 # type: textblock
25122 #: ../test-tool/libguestfs-test-tool.pod:32
25123 msgid ""
25124 "If it fails (and/or exits with non-zero error code), please paste the "
25125 "B<complete, unedited> output of the test tool into a bug report.  More "
25126 "information about reporting bugs can be found on the "
25127 "L<http://libguestfs.org/> website."
25128 msgstr ""
25129
25130 # type: =item
25131 #: ../test-tool/libguestfs-test-tool.pod:41
25132 msgid "I<--help>"
25133 msgstr ""
25134
25135 # type: textblock
25136 #: ../test-tool/libguestfs-test-tool.pod:43
25137 msgid "Display short usage information and exit."
25138 msgstr ""
25139
25140 # type: =item
25141 #: ../test-tool/libguestfs-test-tool.pod:45
25142 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25143 msgstr ""
25144
25145 # type: textblock
25146 #: ../test-tool/libguestfs-test-tool.pod:47
25147 msgid ""
25148 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25149 "normally look in the C<$libexec> directory that was configured when the tool "
25150 "was built."
25151 msgstr ""
25152
25153 # type: =item
25154 #: ../test-tool/libguestfs-test-tool.pod:51
25155 msgid "I<--qemu qemu_binary>"
25156 msgstr ""
25157
25158 # type: textblock
25159 #: ../test-tool/libguestfs-test-tool.pod:53
25160 msgid ""
25161 "If you have downloaded another qemu binary, point this option at the full "
25162 "path of the binary to try it."
25163 msgstr ""
25164
25165 # type: =item
25166 #: ../test-tool/libguestfs-test-tool.pod:56
25167 msgid "I<--qemudir qemu_source_dir>"
25168 msgstr ""
25169
25170 # type: textblock
25171 #: ../test-tool/libguestfs-test-tool.pod:58
25172 msgid ""
25173 "If you have compiled qemu from source, point this option at the source "
25174 "directory to try it."
25175 msgstr ""
25176
25177 # type: =item
25178 #: ../test-tool/libguestfs-test-tool.pod:61
25179 msgid "I<--timeout N>"
25180 msgstr ""
25181
25182 # type: textblock
25183 #: ../test-tool/libguestfs-test-tool.pod:63
25184 msgid ""
25185 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25186 "does not usually need to be adjusted unless your machine is very slow."
25187 msgstr ""
25188
25189 # type: =head1
25190 #: ../test-tool/libguestfs-test-tool.pod:69
25191 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25192 msgstr ""
25193
25194 # type: textblock
25195 #: ../test-tool/libguestfs-test-tool.pod:71
25196 msgid ""
25197 "If you have compiled another version of qemu from source and would like to "
25198 "try that, then you can use the I<--qemudir> option to point to the qemu "
25199 "source directory."
25200 msgstr ""
25201
25202 # type: textblock
25203 #: ../test-tool/libguestfs-test-tool.pod:75
25204 msgid ""
25205 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25206 "option to point to the binary."
25207 msgstr ""
25208
25209 # type: textblock
25210 #: ../test-tool/libguestfs-test-tool.pod:78
25211 msgid ""
25212 "When using an alternate qemu with libguestfs, usually you would need to "
25213 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
25214 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
25215 "when you use either of the I<--qemudir> or I<--qemu> options."
25216 msgstr ""
25217
25218 # type: textblock
25219 #: ../test-tool/libguestfs-test-tool.pod:85
25220 msgid ""
25221 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25222 "I<1> if there was an error."
25223 msgstr ""
25224
25225 # type: =item
25226 #: ../test-tool/libguestfs-test-tool.pod:92
25227 msgid "/usr/libexec/libguestfs-test-tool-helper"
25228 msgstr ""
25229
25230 # type: textblock
25231 #: ../test-tool/libguestfs-test-tool.pod:94
25232 msgid ""
25233 "This helper program is run inside the appliance and provides additional "
25234 "tests."
25235 msgstr ""
25236
25237 # type: =item
25238 #: ../test-tool/libguestfs-test-tool.pod:97
25239 msgid "/usr/bin/mkisofs"
25240 msgstr ""
25241
25242 # type: textblock
25243 #: ../test-tool/libguestfs-test-tool.pod:99
25244 msgid ""
25245 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25246 "which is used as part of the tests."
25247 msgstr ""
25248
25249 # type: textblock
25250 #: ../test-tool/libguestfs-test-tool.pod:106
25251 msgid ""
25252 "For the full list of environment variables which may affect libguestfs, "
25253 "please see the L<guestfs(3)> manual page."
25254 msgstr ""
25255
25256 # type: textblock
25257 #: ../test-tool/libguestfs-test-tool.pod:111
25258 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25259 msgstr ""
25260
25261 # type: textblock
25262 #: ../test-tool/libguestfs-test-tool.pod:121
25263 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25264 msgstr ""
25265
25266 # type: textblock
25267 #: ../fuse/guestmount.pod:5
25268 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25269 msgstr ""
25270
25271 # type: verbatim
25272 #: ../fuse/guestmount.pod:9
25273 #, no-wrap
25274 msgid ""
25275 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25276 "\n"
25277 msgstr ""
25278
25279 # type: verbatim
25280 #: ../fuse/guestmount.pod:11
25281 #, no-wrap
25282 msgid ""
25283 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25284 "\n"
25285 msgstr ""
25286
25287 # type: verbatim
25288 #: ../fuse/guestmount.pod:13
25289 #, no-wrap
25290 msgid ""
25291 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25292 "\n"
25293 msgstr ""
25294
25295 # type: textblock
25296 #: ../fuse/guestmount.pod:17
25297 msgid ""
25298 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25299 "machines.  If you do this, you risk disk corruption in the VM."
25300 msgstr ""
25301
25302 # type: textblock
25303 #: ../fuse/guestmount.pod:22
25304 msgid ""
25305 "The guestmount program can be used to mount virtual machine filesystems and "
25306 "other disk images on the host.  It uses libguestfs for access to the guest "
25307 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25308 "a mountable device."
25309 msgstr ""
25310
25311 # type: textblock
25312 #: ../fuse/guestmount.pod:27
25313 msgid ""
25314 "Along with other options, you have to give at least one device (I<-a> "
25315 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25316 "option) or use the I<-i> inspection option.  How this works is better "
25317 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25318 "below."
25319 msgstr ""
25320
25321 # type: textblock
25322 #: ../fuse/guestmount.pod:33
25323 msgid ""
25324 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25325 "by you, and the filesystem will not be visible to any other users unless you "
25326 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25327 "the filesystem, use the C<fusermount -u> command."
25328 msgstr ""
25329
25330 # type: textblock
25331 #: ../fuse/guestmount.pod:41
25332 msgid ""
25333 "For a typical Windows guest which has its main filesystem on the first "
25334 "partition:"
25335 msgstr ""
25336
25337 # type: verbatim
25338 #: ../fuse/guestmount.pod:44
25339 #, no-wrap
25340 msgid ""
25341 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25342 "\n"
25343 msgstr ""
25344
25345 # type: textblock
25346 #: ../fuse/guestmount.pod:46
25347 msgid ""
25348 "For a typical Linux guest which has a /boot filesystem on the first "
25349 "partition, and the root filesystem on a logical volume:"
25350 msgstr ""
25351
25352 # type: verbatim
25353 #: ../fuse/guestmount.pod:49
25354 #, no-wrap
25355 msgid ""
25356 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25357 "\n"
25358 msgstr ""
25359
25360 # type: textblock
25361 #: ../fuse/guestmount.pod:51
25362 msgid "To get libguestfs to detect guest mountpoints for you:"
25363 msgstr ""
25364
25365 # type: verbatim
25366 #: ../fuse/guestmount.pod:53
25367 #, no-wrap
25368 msgid ""
25369 " guestmount -a guest.img -i --ro /mnt\n"
25370 "\n"
25371 msgstr ""
25372
25373 # type: textblock
25374 #: ../fuse/guestmount.pod:55
25375 msgid "For a libvirt guest called \"Guest\" you could do:"
25376 msgstr ""
25377
25378 # type: verbatim
25379 #: ../fuse/guestmount.pod:57
25380 #, no-wrap
25381 msgid ""
25382 " guestmount -d Guest -i --ro /mnt\n"
25383 "\n"
25384 msgstr ""
25385
25386 # type: textblock
25387 #: ../fuse/guestmount.pod:59
25388 msgid ""
25389 "If you don't know what filesystems are contained in a guest or disk image, "
25390 "use L<virt-filesystems(1)> first:"
25391 msgstr ""
25392
25393 # type: verbatim
25394 #: ../fuse/guestmount.pod:62
25395 #, no-wrap
25396 msgid ""
25397 " virt-filesystems MyGuest\n"
25398 "\n"
25399 msgstr ""
25400
25401 # type: textblock
25402 #: ../fuse/guestmount.pod:64
25403 msgid ""
25404 "If you want to trace the libguestfs calls but without excessive debugging "
25405 "information, we recommend:"
25406 msgstr ""
25407
25408 # type: verbatim
25409 #: ../fuse/guestmount.pod:67
25410 #, no-wrap
25411 msgid ""
25412 " guestmount [...] --trace /mnt\n"
25413 "\n"
25414 msgstr ""
25415
25416 # type: textblock
25417 #: ../fuse/guestmount.pod:69
25418 msgid "If you want to debug the program, we recommend:"
25419 msgstr ""
25420
25421 # type: verbatim
25422 #: ../fuse/guestmount.pod:71
25423 #, no-wrap
25424 msgid ""
25425 " guestmount [...] --trace --verbose /mnt\n"
25426 "\n"
25427 msgstr ""
25428
25429 # type: textblock
25430 #: ../fuse/guestmount.pod:79
25431 msgid "Add a block device or virtual machine image."
25432 msgstr ""
25433
25434 # type: =item
25435 #: ../fuse/guestmount.pod:96
25436 msgid "B<--dir-cache-timeout N>"
25437 msgstr ""
25438
25439 # type: textblock
25440 #: ../fuse/guestmount.pod:98
25441 msgid ""
25442 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25443 "seconds.  The readdir cache [actually, there are several semi-independent "
25444 "caches] is populated after a readdir(2) call with the stat and extended "
25445 "attributes of the files in the directory, in anticipation that they will be "
25446 "requested soon after."
25447 msgstr ""
25448
25449 # type: textblock
25450 #: ../fuse/guestmount.pod:104
25451 msgid ""
25452 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25453 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25454 "requests, only cache existing ones."
25455 msgstr ""
25456
25457 # type: textblock
25458 #: ../fuse/guestmount.pod:122
25459 msgid ""
25460 "If you have untrusted raw-format guest disk images, you should use this "
25461 "option to specify the disk format.  This avoids a possible security problem "
25462 "with malicious guests (CVE-2010-3851).  See also "
25463 "L<guestfs(3)/guestfs_add_drive_opts>."
25464 msgstr ""
25465
25466 # type: =item
25467 #: ../fuse/guestmount.pod:127
25468 msgid "B<--fuse-help>"
25469 msgstr ""
25470
25471 # type: textblock
25472 #: ../fuse/guestmount.pod:129
25473 msgid "Display help on special FUSE options (see I<-o> below)."
25474 msgstr ""
25475
25476 # type: textblock
25477 #: ../fuse/guestmount.pod:133
25478 msgid "Display brief help and exit."
25479 msgstr ""
25480
25481 # type: =item
25482 #: ../fuse/guestmount.pod:146
25483 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25484 msgstr ""
25485
25486 # type: textblock
25487 #: ../fuse/guestmount.pod:148
25488 msgid ""
25489 "Mount the named partition or logical volume on the given mountpoint B<in the "
25490 "guest> (this has nothing to do with mountpoints in the host)."
25491 msgstr ""
25492
25493 # type: textblock
25494 #: ../fuse/guestmount.pod:151
25495 msgid ""
25496 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25497 "something on C</>."
25498 msgstr ""
25499
25500 # type: textblock
25501 #: ../fuse/guestmount.pod:156
25502 msgid ""
25503 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25504 "unmounted.  If you specify this option, then we don't attempt to sync the "
25505 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25506 msgstr ""
25507
25508 # type: =item
25509 #: ../fuse/guestmount.pod:161
25510 msgid "B<-o option> | B<--option option>"
25511 msgstr ""
25512
25513 # type: textblock
25514 #: ../fuse/guestmount.pod:163
25515 msgid "Pass extra options to FUSE."
25516 msgstr ""
25517
25518 # type: textblock
25519 #: ../fuse/guestmount.pod:165
25520 msgid ""
25521 "To get a list of all the extra options supported by FUSE, use the command "
25522 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25523 "of them are a good idea."
25524 msgstr ""
25525
25526 # type: verbatim
25527 #: ../fuse/guestmount.pod:169
25528 #, no-wrap
25529 msgid ""
25530 " guestmount --fuse-help\n"
25531 "\n"
25532 msgstr ""
25533
25534 # type: textblock
25535 #: ../fuse/guestmount.pod:171
25536 msgid "Some potentially useful FUSE options:"
25537 msgstr ""
25538
25539 # type: =item
25540 #: ../fuse/guestmount.pod:175
25541 msgid "B<-o allow_other>"
25542 msgstr ""
25543
25544 # type: textblock
25545 #: ../fuse/guestmount.pod:177
25546 msgid "Allow other users to see the filesystem."
25547 msgstr ""
25548
25549 # type: =item
25550 #: ../fuse/guestmount.pod:179
25551 msgid "B<-o attr_timeout=N>"
25552 msgstr ""
25553
25554 # type: textblock
25555 #: ../fuse/guestmount.pod:181
25556 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25557 msgstr ""
25558
25559 # type: =item
25560 #: ../fuse/guestmount.pod:183
25561 msgid "B<-o kernel_cache>"
25562 msgstr ""
25563
25564 # type: textblock
25565 #: ../fuse/guestmount.pod:185
25566 msgid ""
25567 "Allow the kernel to cache files (reduces the number of reads that have to go "
25568 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25569 "afford the extra memory usage."
25570 msgstr ""
25571
25572 # type: =item
25573 #: ../fuse/guestmount.pod:189
25574 msgid "B<-o uid=N> B<-o gid=N>"
25575 msgstr ""
25576
25577 # type: textblock
25578 #: ../fuse/guestmount.pod:191
25579 msgid ""
25580 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25581 "the chosen values."
25582 msgstr ""
25583
25584 # type: textblock
25585 #: ../fuse/guestmount.pod:198
25586 msgid ""
25587 "Add devices and mount everything read-only.  Also disallow writes and make "
25588 "the disk appear read-only to FUSE."
25589 msgstr ""
25590
25591 # type: textblock
25592 #: ../fuse/guestmount.pod:201
25593 msgid ""
25594 "This is highly recommended if you are not going to edit the guest disk.  If "
25595 "the guest is running and this option is I<not> supplied, then there is a "
25596 "strong risk of disk corruption in the guest.  We try to prevent this from "
25597 "happening, but it is not always possible."
25598 msgstr ""
25599
25600 # type: textblock
25601 #: ../fuse/guestmount.pod:206
25602 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25603 msgstr ""
25604
25605 # type: textblock
25606 #: ../fuse/guestmount.pod:210
25607 msgid "Enable SELinux support for the guest."
25608 msgstr ""
25609
25610 # type: textblock
25611 #: ../fuse/guestmount.pod:214
25612 msgid "Enable verbose messages from underlying libguestfs."
25613 msgstr ""
25614
25615 # type: textblock
25616 #: ../fuse/guestmount.pod:218
25617 msgid "Display the program version and exit."
25618 msgstr ""
25619
25620 # type: textblock
25621 #: ../fuse/guestmount.pod:222
25622 msgid ""
25623 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25624 "FOR READ AND WRITE>."
25625 msgstr ""
25626
25627 # type: =item
25628 #: ../fuse/guestmount.pod:225
25629 msgid "B<-x> | B<--trace>"
25630 msgstr ""
25631
25632 # type: textblock
25633 #: ../fuse/guestmount.pod:227
25634 msgid "Trace libguestfs calls."
25635 msgstr ""
25636
25637 # type: textblock
25638 #: ../fuse/guestmount.pod:229
25639 msgid "This also stops the daemon from forking into the background."
25640 msgstr ""
25641
25642 # type: textblock
25643 #: ../fuse/guestmount.pod:235
25644 msgid ""
25645 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25646 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
25647 "L<http://fuse.sf.net/>."
25648 msgstr ""
25649
25650 # type: textblock
25651 #: ../tools/virt-edit.pl:34
25652 msgid "virt-edit - Edit a file in a virtual machine"
25653 msgstr ""
25654
25655 # type: verbatim
25656 #: ../tools/virt-edit.pl:38
25657 #, no-wrap
25658 msgid ""
25659 " virt-edit [--options] domname file\n"
25660 "\n"
25661 msgstr ""
25662
25663 # type: verbatim
25664 #: ../tools/virt-edit.pl:40
25665 #, no-wrap
25666 msgid ""
25667 " virt-edit [--options] disk.img [disk.img ...] file\n"
25668 "\n"
25669 msgstr ""
25670
25671 # type: verbatim
25672 #: ../tools/virt-edit.pl:42
25673 #, no-wrap
25674 msgid ""
25675 " virt-edit [domname|disk.img] file -e 'expr'\n"
25676 "\n"
25677 msgstr ""
25678
25679 # type: textblock
25680 #: ../tools/virt-edit.pl:46
25681 msgid ""
25682 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25683 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25684 "doing this, but doesn't catch all cases."
25685 msgstr ""
25686
25687 # type: textblock
25688 #: ../tools/virt-edit.pl:52
25689 msgid ""
25690 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25691 "the named virtual machine (or disk image)."
25692 msgstr ""
25693
25694 # type: textblock
25695 #: ../tools/virt-edit.pl:55
25696 msgid ""
25697 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25698 "you should look at the L<guestfish(1)> tool."
25699 msgstr ""
25700
25701 # type: textblock
25702 #: ../tools/virt-edit.pl:60
25703 msgid "Edit the named files interactively:"
25704 msgstr ""
25705
25706 # type: verbatim
25707 #: ../tools/virt-edit.pl:62
25708 #, no-wrap
25709 msgid ""
25710 " virt-edit mydomain /boot/grub/grub.conf\n"
25711 "\n"
25712 msgstr ""
25713
25714 # type: verbatim
25715 #: ../tools/virt-edit.pl:64
25716 #, no-wrap
25717 msgid ""
25718 " virt-edit mydomain /etc/passwd\n"
25719 "\n"
25720 msgstr ""
25721
25722 # type: textblock
25723 #: ../tools/virt-edit.pl:66
25724 msgid ""
25725 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25726 "below).  To change the init default level to 5:"
25727 msgstr ""
25728
25729 # type: verbatim
25730 #: ../tools/virt-edit.pl:70
25731 #, no-wrap
25732 msgid ""
25733 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25734 "\n"
25735 msgstr ""
25736
25737 # type: textblock
25738 #: ../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
25739 msgid "Display brief help."
25740 msgstr ""
25741
25742 # type: =item
25743 #: ../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
25744 msgid "B<--version>"
25745 msgstr ""
25746
25747 # type: textblock
25748 #: ../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
25749 msgid "Display version number and exit."
25750 msgstr ""
25751
25752 # type: =item
25753 #: ../tools/virt-edit.pl:96
25754 msgid "B<--backup extension> | B<-b extension>"
25755 msgstr ""
25756
25757 # type: textblock
25758 #: ../tools/virt-edit.pl:98
25759 msgid ""
25760 "Create a backup of the original file I<in the guest disk image>.  The backup "
25761 "has the original filename with C<extension> added."
25762 msgstr ""
25763
25764 # type: textblock
25765 #: ../tools/virt-edit.pl:101
25766 msgid ""
25767 "Usually the first character of C<extension> would be a dot C<.> so you would "
25768 "write:"
25769 msgstr ""
25770
25771 # type: verbatim
25772 #: ../tools/virt-edit.pl:104
25773 #, no-wrap
25774 msgid ""
25775 " virt-edit -b .orig [etc]\n"
25776 "\n"
25777 msgstr ""
25778
25779 # type: textblock
25780 #: ../tools/virt-edit.pl:106
25781 msgid "By default, no backup file is made."
25782 msgstr ""
25783
25784 # type: =item
25785 #: ../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
25786 msgid "B<--connect URI> | B<-c URI>"
25787 msgstr ""
25788
25789 # type: textblock
25790 #: ../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
25791 msgid ""
25792 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25793 "to the default libvirt hypervisor."
25794 msgstr ""
25795
25796 # type: textblock
25797 #: ../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
25798 msgid ""
25799 "If you specify guest block devices directly, then libvirt is not used at "
25800 "all."
25801 msgstr ""
25802
25803 # type: =item
25804 #: ../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
25805 msgid "B<--format> raw"
25806 msgstr ""
25807
25808 # type: textblock
25809 #: ../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
25810 msgid ""
25811 "Specify the format of disk images given on the command line.  If this is "
25812 "omitted then the format is autodetected from the content of the disk image."
25813 msgstr ""
25814
25815 # type: textblock
25816 #: ../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
25817 msgid ""
25818 "If disk images are requested from libvirt, then this program asks libvirt "
25819 "for this information.  In this case, the value of the format parameter is "
25820 "ignored."
25821 msgstr ""
25822
25823 # type: textblock
25824 #: ../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
25825 msgid ""
25826 "If working with untrusted raw-format guest disk images, you should ensure "
25827 "the format is always specified."
25828 msgstr ""
25829
25830 # type: =item
25831 #: ../tools/virt-edit.pl:141
25832 msgid "B<--expr EXPR> | B<-e EXPR>"
25833 msgstr ""
25834
25835 # type: textblock
25836 #: ../tools/virt-edit.pl:143
25837 msgid ""
25838 "Instead of launching the external editor, non-interactively apply the Perl "
25839 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
25840 "EDITING> below."
25841 msgstr ""
25842
25843 # type: textblock
25844 #: ../tools/virt-edit.pl:147
25845 msgid ""
25846 "Be careful to properly quote the expression to prevent it from being altered "
25847 "by the shell."
25848 msgstr ""
25849
25850 # type: =head1
25851 #: ../tools/virt-edit.pl:268
25852 msgid "NON-INTERACTIVE EDITING"
25853 msgstr ""
25854
25855 # type: textblock
25856 #: ../tools/virt-edit.pl:270
25857 msgid ""
25858 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
25859 "administrator can interactively edit the file."
25860 msgstr ""
25861
25862 # type: textblock
25863 #: ../tools/virt-edit.pl:273
25864 msgid ""
25865 "There are two ways also to use C<virt-edit> from scripts in order to make "
25866 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
25867 "like this, it's less error-prone to write scripts directly using the "
25868 "libguestfs API and Augeas for configuration file editing.)"
25869 msgstr ""
25870
25871 # type: textblock
25872 #: ../tools/virt-edit.pl:279
25873 msgid ""
25874 "The first method is to temporarily set C<$EDITOR> to any script or program "
25875 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
25876 "update C<tmpfile> in place however it likes."
25877 msgstr ""
25878
25879 # type: textblock
25880 #: ../tools/virt-edit.pl:283
25881 msgid ""
25882 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
25883 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
25884 "instances of C<foo> with C<bar> in a file:"
25885 msgstr ""
25886
25887 # type: verbatim
25888 #: ../tools/virt-edit.pl:287
25889 #, no-wrap
25890 msgid ""
25891 " virt-edit domname filename -e 's/foo/bar/'\n"
25892 "\n"
25893 msgstr ""
25894
25895 # type: textblock
25896 #: ../tools/virt-edit.pl:289
25897 msgid ""
25898 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
25899 "For example to delete root's password you could do:"
25900 msgstr ""
25901
25902 # type: verbatim
25903 #: ../tools/virt-edit.pl:292
25904 #, no-wrap
25905 msgid ""
25906 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
25907 "\n"
25908 msgstr ""
25909
25910 # type: textblock
25911 #: ../tools/virt-edit.pl:294
25912 msgid ""
25913 "What really happens is that the snippet is evaluated as a Perl expression "
25914 "for each line of the file.  The line, including the final C<\\n>, is passed "
25915 "in C<$_> and the expression should update C<$_> or leave it unchanged."
25916 msgstr ""
25917
25918 # type: textblock
25919 #: ../tools/virt-edit.pl:299
25920 msgid ""
25921 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
25922 "C<apache> user account from the password file you can do:"
25923 msgstr ""
25924
25925 # type: verbatim
25926 #: ../tools/virt-edit.pl:302
25927 #, no-wrap
25928 msgid ""
25929 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
25930 "\n"
25931 msgstr ""
25932
25933 # type: textblock
25934 #: ../tools/virt-edit.pl:304
25935 msgid ""
25936 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
25937 "the end of the file is rather difficult this way since there is no concept "
25938 "of \"last line of the file\" - your expression just doesn't get called "
25939 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
25940 "want to do this."
25941 msgstr ""
25942
25943 # type: textblock
25944 #: ../tools/virt-edit.pl:310
25945 msgid ""
25946 "The variable C<$lineno> contains the current line number.  As is "
25947 "traditional, the first line in the file is number C<1>."
25948 msgstr ""
25949
25950 # type: textblock
25951 #: ../tools/virt-edit.pl:313
25952 msgid ""
25953 "The return value from the expression is ignored, but the expression may call "
25954 "C<die> in order to abort the whole program, leaving the original file "
25955 "untouched."
25956 msgstr ""
25957
25958 # type: textblock
25959 #: ../tools/virt-edit.pl:317
25960 msgid ""
25961 "Remember when matching the end of a line that C<$_> may contain the final "
25962 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
25963 "newline then neither of these.  Thus to match or substitute some text at the "
25964 "end of a line, use this regular expression:"
25965 msgstr ""
25966
25967 # type: verbatim
25968 #: ../tools/virt-edit.pl:322
25969 #, no-wrap
25970 msgid ""
25971 " /some text(\\r?\\n)?$/\n"
25972 "\n"
25973 msgstr ""
25974
25975 # type: textblock
25976 #: ../tools/virt-edit.pl:324
25977 msgid ""
25978 "Alternately, use the perl C<chomp> function, being careful not to chomp "
25979 "C<$_> itself (since that would remove all newlines from the file):"
25980 msgstr ""
25981
25982 # type: verbatim
25983 #: ../tools/virt-edit.pl:328
25984 #, no-wrap
25985 msgid ""
25986 " my $m = $_; chomp $m; $m =~ /some text$/\n"
25987 "\n"
25988 msgstr ""
25989
25990 # type: =item
25991 #: ../tools/virt-edit.pl:334
25992 msgid "C<EDITOR>"
25993 msgstr ""
25994
25995 # type: textblock
25996 #: ../tools/virt-edit.pl:336
25997 msgid ""
25998 "If set, this string is used as the editor.  It may contain arguments, "
25999 "eg. C<\"emacs -nw\">"
26000 msgstr ""
26001
26002 # type: textblock
26003 #: ../tools/virt-edit.pl:339
26004 msgid "If not set, C<vi> is used."
26005 msgstr ""
26006
26007 # type: =head1
26008 #: ../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
26009 msgid "SHELL QUOTING"
26010 msgstr ""
26011
26012 # type: textblock
26013 #: ../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
26014 msgid ""
26015 "Libvirt guest names can contain arbitrary characters, some of which have "
26016 "meaning to the shell such as C<#> and space.  You may need to quote or "
26017 "escape these characters on the command line.  See the shell manual page "
26018 "L<sh(1)> for details."
26019 msgstr ""
26020
26021 # type: textblock
26022 #: ../tools/virt-edit.pl:352
26023 msgid ""
26024 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26025 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
26026 "L<perl(1)>, L<perlre(1)>."
26027 msgstr ""
26028
26029 # type: =head1
26030 #: ../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
26031 msgid "AUTHOR"
26032 msgstr ""
26033
26034 # type: textblock
26035 #: ../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
26036 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26037 msgstr ""
26038
26039 # type: textblock
26040 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
26041 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26042 msgstr ""
26043
26044 # type: textblock
26045 #: ../tools/virt-win-reg.pl:37
26046 msgid ""
26047 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
26048 "guest"
26049 msgstr ""
26050
26051 # type: verbatim
26052 #: ../tools/virt-win-reg.pl:41
26053 #, no-wrap
26054 msgid ""
26055 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26056 "\n"
26057 msgstr ""
26058
26059 # type: verbatim
26060 #: ../tools/virt-win-reg.pl:43
26061 #, no-wrap
26062 msgid ""
26063 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26064 "\n"
26065 msgstr ""
26066
26067 # type: verbatim
26068 #: ../tools/virt-win-reg.pl:45
26069 #, no-wrap
26070 msgid ""
26071 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26072 "\n"
26073 msgstr ""
26074
26075 # type: verbatim
26076 #: ../tools/virt-win-reg.pl:47
26077 #, no-wrap
26078 msgid ""
26079 " virt-win-reg --merge domname [input.reg ...]\n"
26080 "\n"
26081 msgstr ""
26082
26083 # type: verbatim
26084 #: ../tools/virt-win-reg.pl:49
26085 #, no-wrap
26086 msgid ""
26087 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26088 "\n"
26089 msgstr ""
26090
26091 # type: textblock
26092 #: ../tools/virt-win-reg.pl:53
26093 msgid ""
26094 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26095 "virtual machines.  If you do this, you I<will> get irreversible disk "
26096 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26097 "but doesn't catch all cases."
26098 msgstr ""
26099
26100 # type: textblock
26101 #: ../tools/virt-win-reg.pl:58
26102 msgid ""
26103 "Modifying the Windows Registry is an inherently risky operation.  The format "
26104 "is deliberately obscure and undocumented, and Registry changes can leave the "
26105 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26106 "you have a reliable backup first."
26107 msgstr ""
26108
26109 # type: textblock
26110 #: ../tools/virt-win-reg.pl:65
26111 msgid ""
26112 "This program can export and merge Windows Registry entries from a Windows "
26113 "guest."
26114 msgstr ""
26115
26116 # type: textblock
26117 #: ../tools/virt-win-reg.pl:68
26118 msgid ""
26119 "The first parameter is the libvirt guest name or the raw disk image of a "
26120 "Windows guest."
26121 msgstr ""
26122
26123 # type: textblock
26124 #: ../tools/virt-win-reg.pl:71
26125 msgid ""
26126 "If C<--merge> is I<not> specified, then the chosen registry key is "
26127 "displayed/exported (recursively).  For example:"
26128 msgstr ""
26129
26130 # type: verbatim
26131 #: ../tools/virt-win-reg.pl:74
26132 #, no-wrap
26133 msgid ""
26134 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26135 "\n"
26136 msgstr ""
26137
26138 # type: textblock
26139 #: ../tools/virt-win-reg.pl:76
26140 msgid "You can also display single values from within registry keys, for example:"
26141 msgstr ""
26142
26143 # type: verbatim
26144 #: ../tools/virt-win-reg.pl:79
26145 #, no-wrap
26146 msgid ""
26147 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26148 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26149 " Windows 7 Enterprise\n"
26150 "\n"
26151 msgstr ""
26152
26153 # type: textblock
26154 #: ../tools/virt-win-reg.pl:83
26155 msgid ""
26156 "With C<--merge>, you can merge a textual regedit file into the Windows "
26157 "Registry:"
26158 msgstr ""
26159
26160 # type: verbatim
26161 #: ../tools/virt-win-reg.pl:86
26162 #, no-wrap
26163 msgid ""
26164 " $ virt-win-reg --merge Windows7 changes.reg\n"
26165 "\n"
26166 msgstr ""
26167
26168 # type: =head2
26169 #: ../tools/virt-win-reg.pl:88
26170 msgid "SUPPORTED SYSTEMS"
26171 msgstr ""
26172
26173 # type: textblock
26174 #: ../tools/virt-win-reg.pl:90
26175 msgid ""
26176 "The program currently supports Windows NT-derived guests starting with "
26177 "Windows XP through to at least Windows 7."
26178 msgstr ""
26179
26180 # type: textblock
26181 #: ../tools/virt-win-reg.pl:93
26182 msgid ""
26183 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26184 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26185 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26186 msgstr ""
26187
26188 # type: textblock
26189 #: ../tools/virt-win-reg.pl:97
26190 msgid ""
26191 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26192 "C<HKEY_USERS>."
26193 msgstr ""
26194
26195 # type: textblock
26196 #: ../tools/virt-win-reg.pl:100
26197 msgid ""
26198 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26199 "time."
26200 msgstr ""
26201
26202 # type: =head2
26203 #: ../tools/virt-win-reg.pl:103
26204 msgid "NOTE"
26205 msgstr ""
26206
26207 # type: textblock
26208 #: ../tools/virt-win-reg.pl:105
26209 msgid ""
26210 "This program is only meant for simple access to the registry.  If you want "
26211 "to do complicated things with the registry, we suggest you download the "
26212 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26213 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26214 "L<hivexregedit(1)>."
26215 msgstr ""
26216
26217 # type: =head2
26218 #: ../tools/virt-win-reg.pl:111
26219 msgid "ENCODING"
26220 msgstr ""
26221
26222 # type: textblock
26223 #: ../tools/virt-win-reg.pl:113
26224 msgid ""
26225 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26226 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26227 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26228 "with Windows-style line endings, you may need to reencode the whole file "
26229 "before or after processing."
26230 msgstr ""
26231
26232 # type: textblock
26233 #: ../tools/virt-win-reg.pl:119
26234 msgid ""
26235 "To reencode a file from Windows format to Linux (before processing it with "
26236 "the C<--merge> option), you would do something like this:"
26237 msgstr ""
26238
26239 # type: verbatim
26240 #: ../tools/virt-win-reg.pl:122
26241 #, no-wrap
26242 msgid ""
26243 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26244 "\n"
26245 msgstr ""
26246
26247 # type: textblock
26248 #: ../tools/virt-win-reg.pl:124
26249 msgid ""
26250 "To go in the opposite direction, after exporting and before sending the file "
26251 "to a Windows user, do something like this:"
26252 msgstr ""
26253
26254 # type: verbatim
26255 #: ../tools/virt-win-reg.pl:127
26256 #, no-wrap
26257 msgid ""
26258 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26259 "\n"
26260 msgstr ""
26261
26262 # type: textblock
26263 #: ../tools/virt-win-reg.pl:129
26264 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26265 msgstr ""
26266
26267 # type: textblock
26268 #: ../tools/virt-win-reg.pl:131
26269 msgid ""
26270 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26271 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26272 "Windows-style (CRLF) line endings, like this:"
26273 msgstr ""
26274
26275 # type: verbatim
26276 #: ../tools/virt-win-reg.pl:135
26277 #, no-wrap
26278 msgid ""
26279 " $ file software.reg\n"
26280 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26281 " with CRLF line terminators\n"
26282 "\n"
26283 msgstr ""
26284
26285 # type: textblock
26286 #: ../tools/virt-win-reg.pl:139
26287 msgid "This file would need conversion before you could C<--merge> it."
26288 msgstr ""
26289
26290 # type: textblock
26291 #: ../tools/virt-win-reg.pl:143
26292 msgid ""
26293 "Be careful when passing parameters containing C<\\> (backslash) in the "
26294 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26295 "(but not both) to protect them from the shell."
26296 msgstr ""
26297
26298 # type: textblock
26299 #: ../tools/virt-win-reg.pl:147
26300 msgid "Paths and value names are case-insensitive."
26301 msgstr ""
26302
26303 # type: =head2
26304 #: ../tools/virt-win-reg.pl:149
26305 msgid "CurrentControlSet etc."
26306 msgstr ""
26307
26308 # type: textblock
26309 #: ../tools/virt-win-reg.pl:151
26310 msgid ""
26311 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26312 "Registry at the level of the hive file, and therefore you cannot modify "
26313 "these."
26314 msgstr ""
26315
26316 # type: textblock
26317 #: ../tools/virt-win-reg.pl:155
26318 msgid ""
26319 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26320 "circumstances it might refer to another control set.  The way to find out is "
26321 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26322 msgstr ""
26323
26324 # type: verbatim
26325 #: ../tools/virt-win-reg.pl:159
26326 #, no-wrap
26327 msgid ""
26328 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26329 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26330 " \"Current\"=dword:00000001\n"
26331 " \"Default\"=dword:00000001\n"
26332 " \"Failed\"=dword:00000000\n"
26333 " \"LastKnownGood\"=dword:00000002\n"
26334 "\n"
26335 msgstr ""
26336
26337 # type: textblock
26338 #: ../tools/virt-win-reg.pl:166
26339 msgid "\"Current\" is the one which Windows will choose when it boots."
26340 msgstr ""
26341
26342 # type: textblock
26343 #: ../tools/virt-win-reg.pl:168
26344 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26345 msgstr ""
26346
26347 # type: =item
26348 #: ../tools/virt-win-reg.pl:195 ../tools/virt-make-fs.pl:177
26349 msgid "B<--debug>"
26350 msgstr ""
26351
26352 # type: textblock
26353 #: ../tools/virt-win-reg.pl:197 ../tools/virt-resize.pl:498
26354 msgid "Enable debugging messages."
26355 msgstr ""
26356
26357 # type: =item
26358 #: ../tools/virt-win-reg.pl:232
26359 msgid "B<--merge>"
26360 msgstr ""
26361
26362 # type: textblock
26363 #: ../tools/virt-win-reg.pl:234
26364 msgid ""
26365 "In merge mode, this merges a textual regedit file into the Windows Registry "
26366 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26367 "displays or exports Registry entries instead."
26368 msgstr ""
26369
26370 # type: textblock
26371 #: ../tools/virt-win-reg.pl:238
26372 msgid ""
26373 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26374 "result in disk corruption.  However exporting (without this flag)  is always "
26375 "safe."
26376 msgstr ""
26377
26378 # type: =item
26379 #: ../tools/virt-win-reg.pl:246
26380 msgid "B<--encoding> UTF-16LE|ASCII"
26381 msgstr ""
26382
26383 # type: textblock
26384 #: ../tools/virt-win-reg.pl:248
26385 msgid ""
26386 "When merging (only), you may need to specify the encoding for strings to be "
26387 "used in the hive file.  This is explained in detail in "
26388 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26389 msgstr ""
26390
26391 # type: textblock
26392 #: ../tools/virt-win-reg.pl:252
26393 msgid ""
26394 "The default is to use UTF-16LE, which should work with recent versions of "
26395 "Windows."
26396 msgstr ""
26397
26398 # type: textblock
26399 #: ../tools/virt-win-reg.pl:486
26400 msgid ""
26401 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26402 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26403 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26404 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26405 msgstr ""
26406
26407 # type: textblock
26408 #: ../tools/virt-win-reg.pl:501 ../tools/virt-make-fs.pl:550
26409 msgid ""
26410 "When reporting bugs, please enable debugging and capture the I<complete> "
26411 "output:"
26412 msgstr ""
26413
26414 # type: verbatim
26415 #: ../tools/virt-win-reg.pl:504
26416 #, no-wrap
26417 msgid ""
26418 " export LIBGUESTFS_DEBUG=1\n"
26419 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26420 "\n"
26421 msgstr ""
26422
26423 # type: textblock
26424 #: ../tools/virt-win-reg.pl:507
26425 msgid ""
26426 "Attach /tmp/virt-win-reg.log to a new bug report at "
26427 "L<https://bugzilla.redhat.com/>"
26428 msgstr ""
26429
26430 # type: textblock
26431 #: ../tools/virt-win-reg.pl:516 ../tools/virt-resize.pl:1510 ../tools/virt-make-fs.pl:565
26432 msgid "Copyright (C) 2010 Red Hat Inc."
26433 msgstr ""
26434
26435 # type: textblock
26436 #: ../tools/virt-resize.pl:42
26437 msgid "virt-resize - Resize a virtual machine disk"
26438 msgstr ""
26439
26440 # type: verbatim
26441 #: ../tools/virt-resize.pl:46
26442 #, no-wrap
26443 msgid ""
26444 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26445 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26446 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26447 "\n"
26448 msgstr ""
26449
26450 # type: textblock
26451 #: ../tools/virt-resize.pl:52
26452 msgid ""
26453 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26454 "larger or smaller overall, and resizing or deleting any partitions contained "
26455 "within."
26456 msgstr ""
26457
26458 # type: textblock
26459 #: ../tools/virt-resize.pl:56
26460 msgid ""
26461 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26462 "not> be used on live virtual machines - for consistent results, shut the "
26463 "virtual machine down before resizing it."
26464 msgstr ""
26465
26466 # type: textblock
26467 #: ../tools/virt-resize.pl:60
26468 msgid ""
26469 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
26470 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
26471 msgstr ""
26472
26473 # type: textblock
26474 #: ../tools/virt-resize.pl:66
26475 msgid ""
26476 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26477 "fill the extra 5GB of space."
26478 msgstr ""
26479
26480 # type: verbatim
26481 #: ../tools/virt-resize.pl:69
26482 #, no-wrap
26483 msgid ""
26484 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26485 " virt-filesystems --long --h --all -a olddisk\n"
26486 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26487 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26488 "\n"
26489 msgstr ""
26490
26491 # type: textblock
26492 #: ../tools/virt-resize.pl:74
26493 msgid ""
26494 "As above, but make the /boot partition 200MB bigger, while giving the "
26495 "remaining space to /dev/sda2:"
26496 msgstr ""
26497
26498 # type: verbatim
26499 #: ../tools/virt-resize.pl:77
26500 #, no-wrap
26501 msgid ""
26502 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26503 "\n"
26504 msgstr ""
26505
26506 # type: textblock
26507 #: ../tools/virt-resize.pl:79
26508 msgid "As above, but the output format will be uncompressed qcow2:"
26509 msgstr ""
26510
26511 # type: verbatim
26512 #: ../tools/virt-resize.pl:81
26513 #, no-wrap
26514 msgid ""
26515 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26516 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26517 "\n"
26518 msgstr ""
26519
26520 # type: =head1
26521 #: ../tools/virt-resize.pl:84
26522 msgid "DETAILED USAGE"
26523 msgstr ""
26524
26525 # type: =head2
26526 #: ../tools/virt-resize.pl:86
26527 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26528 msgstr ""
26529
26530 # type: =item
26531 #: ../tools/virt-resize.pl:90
26532 msgid "1. Shut down the virtual machine"
26533 msgstr ""
26534
26535 # type: =item
26536 #: ../tools/virt-resize.pl:92
26537 msgid "2. Locate input disk image"
26538 msgstr ""
26539
26540 # type: textblock
26541 #: ../tools/virt-resize.pl:94
26542 msgid ""
26543 "Locate the input disk image (ie. the file or device on the host containing "
26544 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26545 "dumpxml> like this to find the disk image name:"
26546 msgstr ""
26547
26548 # type: verbatim
26549 #: ../tools/virt-resize.pl:98
26550 #, no-wrap
26551 msgid ""
26552 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26553 " Found 1 nodes:\n"
26554 " -- NODE --\n"
26555 " <source dev=\"/dev/vg/lv_guest\" />\n"
26556 "\n"
26557 msgstr ""
26558
26559 # type: =item
26560 #: ../tools/virt-resize.pl:103
26561 msgid "3. Look at current sizing"
26562 msgstr ""
26563
26564 # type: textblock
26565 #: ../tools/virt-resize.pl:105
26566 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
26567 msgstr ""
26568
26569 # type: verbatim
26570 #: ../tools/virt-resize.pl:108
26571 #, no-wrap
26572 msgid ""
26573 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
26574 " Name       Type       Size  Parent\n"
26575 " /dev/sda1  partition  101M  /dev/sda\n"
26576 " /dev/sda2  partition  7.9G  /dev/sda\n"
26577 " /dev/sda   device     8.0G  -\n"
26578 "\n"
26579 msgstr ""
26580
26581 # type: textblock
26582 #: ../tools/virt-resize.pl:114
26583 msgid ""
26584 "(This example is a virtual machine with an 8 GB disk which we would like to "
26585 "expand up to 10 GB)."
26586 msgstr ""
26587
26588 # type: =item
26589 #: ../tools/virt-resize.pl:117
26590 msgid "4. Create output disk"
26591 msgstr ""
26592
26593 # type: textblock
26594 #: ../tools/virt-resize.pl:119
26595 msgid ""
26596 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26597 "to store the resized output disk."
26598 msgstr ""
26599
26600 # type: textblock
26601 #: ../tools/virt-resize.pl:122
26602 msgid "To store the resized disk image in a file, create a file of a suitable size:"
26603 msgstr ""
26604
26605 # type: verbatim
26606 #: ../tools/virt-resize.pl:125
26607 #, no-wrap
26608 msgid ""
26609 " # rm -f outdisk\n"
26610 " # truncate -s 10G outdisk\n"
26611 "\n"
26612 msgstr ""
26613
26614 # type: textblock
26615 #: ../tools/virt-resize.pl:128
26616 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26617 msgstr ""
26618
26619 # type: verbatim
26620 #: ../tools/virt-resize.pl:130
26621 #, no-wrap
26622 msgid ""
26623 " # lvcreate -L 10G -n lv_name vg_name\n"
26624 "\n"
26625 msgstr ""
26626
26627 # type: textblock
26628 #: ../tools/virt-resize.pl:132
26629 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26630 msgstr ""
26631
26632 # type: verbatim
26633 #: ../tools/virt-resize.pl:134
26634 #, no-wrap
26635 msgid ""
26636 " # virsh pool-list\n"
26637 " # virsh vol-create-as poolname newvol 10G\n"
26638 "\n"
26639 msgstr ""
26640
26641 # type: =item
26642 #: ../tools/virt-resize.pl:137
26643 msgid "5. Resize"
26644 msgstr ""
26645
26646 # type: textblock
26647 #: ../tools/virt-resize.pl:139
26648 msgid ""
26649 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26650 "file) and the output disk.  The output disk is the one created in the "
26651 "previous step."
26652 msgstr ""
26653
26654 # type: verbatim
26655 #: ../tools/virt-resize.pl:143
26656 #, no-wrap
26657 msgid ""
26658 " # virt-resize indisk outdisk\n"
26659 "\n"
26660 msgstr ""
26661
26662 # type: textblock
26663 #: ../tools/virt-resize.pl:145
26664 msgid ""
26665 "This command just copies disk image C<indisk> to disk image C<outdisk> "
26666 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
26667 "larger, then an extra, empty partition is created at the end of the disk "
26668 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
26669 "error."
26670 msgstr ""
26671
26672 # type: textblock
26673 #: ../tools/virt-resize.pl:151
26674 msgid ""
26675 "More realistically you'd want to expand existing partitions in the disk "
26676 "image by passing extra options (for the full list see the L</OPTIONS> "
26677 "section below)."
26678 msgstr ""
26679
26680 # type: textblock
26681 #: ../tools/virt-resize.pl:155
26682 msgid ""
26683 "L</--expand> is the most useful option.  It expands the named partition "
26684 "within the disk to fill any extra space:"
26685 msgstr ""
26686
26687 # type: verbatim
26688 #: ../tools/virt-resize.pl:158
26689 #, no-wrap
26690 msgid ""
26691 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
26692 "\n"
26693 msgstr ""
26694
26695 # type: textblock
26696 #: ../tools/virt-resize.pl:160
26697 msgid ""
26698 "(In this case, an extra partition is I<not> created at the end of the disk, "
26699 "because there will be no unused space)."
26700 msgstr ""
26701
26702 # type: textblock
26703 #: ../tools/virt-resize.pl:163
26704 msgid ""
26705 "L</--resize> is the other commonly used option.  The following would "
26706 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
26707 "rest of the available space:"
26708 msgstr ""
26709
26710 # type: verbatim
26711 #: ../tools/virt-resize.pl:167
26712 #, no-wrap
26713 msgid ""
26714 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
26715 "     indisk outdisk\n"
26716 "\n"
26717 msgstr ""
26718
26719 # type: textblock
26720 #: ../tools/virt-resize.pl:170
26721 msgid ""
26722 "If the expanded partition in the image contains a filesystem or LVM PV, then "
26723 "if virt-resize knows how, it will resize the contents, the equivalent of "
26724 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
26725 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
26726 "filesystems, so you would have to online resize them after booting the "
26727 "guest."
26728 msgstr ""
26729
26730 # type: textblock
26731 #: ../tools/virt-resize.pl:177
26732 msgid "Other options are covered below."
26733 msgstr ""
26734
26735 # type: =item
26736 #: ../tools/virt-resize.pl:179
26737 msgid "6. Test"
26738 msgstr ""
26739
26740 # type: textblock
26741 #: ../tools/virt-resize.pl:181
26742 msgid "Thoroughly test the new disk image I<before> discarding the old one."
26743 msgstr ""
26744
26745 # type: textblock
26746 #: ../tools/virt-resize.pl:183
26747 msgid "If you are using libvirt, edit the XML to point at the new disk:"
26748 msgstr ""
26749
26750 # type: verbatim
26751 #: ../tools/virt-resize.pl:185
26752 #, no-wrap
26753 msgid ""
26754 " # virsh edit guestname\n"
26755 "\n"
26756 msgstr ""
26757
26758 # type: textblock
26759 #: ../tools/virt-resize.pl:187
26760 msgid ""
26761 "Change E<lt>source ...E<gt>, see "
26762 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
26763 msgstr ""
26764
26765 # type: textblock
26766 #: ../tools/virt-resize.pl:190
26767 msgid "Then start up the domain with the new, resized disk:"
26768 msgstr ""
26769
26770 # type: verbatim
26771 #: ../tools/virt-resize.pl:192
26772 #, no-wrap
26773 msgid ""
26774 " # virsh start guestname\n"
26775 "\n"
26776 msgstr ""
26777
26778 # type: textblock
26779 #: ../tools/virt-resize.pl:194
26780 msgid ""
26781 "and check that it still works.  See also the L</NOTES> section below for "
26782 "additional information."
26783 msgstr ""
26784
26785 # type: =item
26786 #: ../tools/virt-resize.pl:197
26787 msgid "7. Resize LVs etc inside the guest"
26788 msgstr ""
26789
26790 # type: textblock
26791 #: ../tools/virt-resize.pl:199
26792 msgid "(This can also be done offline using L<guestfish(1)>)"
26793 msgstr ""
26794
26795 # type: textblock
26796 #: ../tools/virt-resize.pl:201
26797 msgid ""
26798 "Once the guest has booted you should see the new space available, at least "
26799 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
26800 "may need to resize LVs inside PVs, and also resize filesystem types that "
26801 "virt-resize does not know how to expand."
26802 msgstr ""
26803
26804 # type: =head2
26805 #: ../tools/virt-resize.pl:208
26806 msgid "SHRINKING A VIRTUAL MACHINE DISK"
26807 msgstr ""
26808
26809 # type: textblock
26810 #: ../tools/virt-resize.pl:210
26811 msgid ""
26812 "Shrinking is somewhat more complex than expanding, and only an overview is "
26813 "given here."
26814 msgstr ""
26815
26816 # type: textblock
26817 #: ../tools/virt-resize.pl:213
26818 msgid ""
26819 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
26820 "filesystems).  The user has to shrink content before passing the disk image "
26821 "to virt-resize, and virt-resize will check that the content has been shrunk "
26822 "properly."
26823 msgstr ""
26824
26825 # type: textblock
26826 #: ../tools/virt-resize.pl:218
26827 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
26828 msgstr ""
26829
26830 # type: textblock
26831 #: ../tools/virt-resize.pl:220
26832 msgid ""
26833 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
26834 "steps 3 and 4 above to allocate a new disk image."
26835 msgstr ""
26836
26837 # type: textblock
26838 #: ../tools/virt-resize.pl:223
26839 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
26840 msgstr ""
26841
26842 # type: =head2
26843 #: ../tools/virt-resize.pl:226
26844 msgid "IGNORING OR DELETING PARTITIONS"
26845 msgstr ""
26846
26847 # type: textblock
26848 #: ../tools/virt-resize.pl:228
26849 msgid ""
26850 "virt-resize also gives a convenient way to ignore or delete partitions when "
26851 "copying from the input disk to the output disk.  Ignoring a partition speeds "
26852 "up the copy where you don't care about the existing contents of a "
26853 "partition.  Deleting a partition removes it completely, but note that it "
26854 "also renumbers any partitions after the one which is deleted, which can "
26855 "leave some guests unbootable."
26856 msgstr ""
26857
26858 # type: =head2
26859 #: ../tools/virt-resize.pl:235
26860 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
26861 msgstr ""
26862
26863 # type: textblock
26864 #: ../tools/virt-resize.pl:237
26865 msgid ""
26866 "If the input disk is in qcow2 format, then you may prefer that the output is "
26867 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
26868 "the fly.  The output format is simply determined by the format of the empty "
26869 "output container that you provide.  Thus to create qcow2 output, use:"
26870 msgstr ""
26871
26872 # type: verbatim
26873 #: ../tools/virt-resize.pl:243
26874 #, no-wrap
26875 msgid ""
26876 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
26877 "\n"
26878 msgstr ""
26879
26880 # type: textblock
26881 #: ../tools/virt-resize.pl:245
26882 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
26883 msgstr ""
26884
26885 # type: textblock
26886 #: ../tools/virt-resize.pl:247
26887 msgid "Similarly, to get non-sparse raw output use:"
26888 msgstr ""
26889
26890 # type: verbatim
26891 #: ../tools/virt-resize.pl:249
26892 #, no-wrap
26893 msgid ""
26894 " fallocate -l size outdisk\n"
26895 "\n"
26896 msgstr ""
26897
26898 # type: textblock
26899 #: ../tools/virt-resize.pl:251
26900 msgid ""
26901 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
26902 "if=/dev/zero of=outdisk bs=1M count=..>)"
26903 msgstr ""
26904
26905 # type: textblock
26906 #: ../tools/virt-resize.pl:264
26907 msgid "Display help."
26908 msgstr ""
26909
26910 # type: =item
26911 #: ../tools/virt-resize.pl:278
26912 msgid "B<--resize part=size>"
26913 msgstr ""
26914
26915 # type: textblock
26916 #: ../tools/virt-resize.pl:280
26917 msgid ""
26918 "Resize the named partition (expanding or shrinking it) so that it has the "
26919 "given size."
26920 msgstr ""
26921
26922 # type: textblock
26923 #: ../tools/virt-resize.pl:283
26924 msgid ""
26925 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
26926 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
26927 "Exabytes; or as a percentage of the current size; or as a relative number or "
26928 "percentage.  For example:"
26929 msgstr ""
26930
26931 # type: verbatim
26932 #: ../tools/virt-resize.pl:288
26933 #, no-wrap
26934 msgid ""
26935 " --resize /dev/sda2=10G\n"
26936 "\n"
26937 msgstr ""
26938
26939 # type: verbatim
26940 #: ../tools/virt-resize.pl:290
26941 #, no-wrap
26942 msgid ""
26943 " --resize /dev/sda4=90%\n"
26944 "\n"
26945 msgstr ""
26946
26947 # type: verbatim
26948 #: ../tools/virt-resize.pl:292
26949 #, no-wrap
26950 msgid ""
26951 " --resize /dev/sda2=+1G\n"
26952 "\n"
26953 msgstr ""
26954
26955 # type: verbatim
26956 #: ../tools/virt-resize.pl:294
26957 #, no-wrap
26958 msgid ""
26959 " --resize /dev/sda2=-200M\n"
26960 "\n"
26961 msgstr ""
26962
26963 # type: verbatim
26964 #: ../tools/virt-resize.pl:296
26965 #, no-wrap
26966 msgid ""
26967 " --resize /dev/sda1=+128K\n"
26968 "\n"
26969 msgstr ""
26970
26971 # type: verbatim
26972 #: ../tools/virt-resize.pl:298
26973 #, no-wrap
26974 msgid ""
26975 " --resize /dev/sda1=+10%\n"
26976 "\n"
26977 msgstr ""
26978
26979 # type: verbatim
26980 #: ../tools/virt-resize.pl:300
26981 #, no-wrap
26982 msgid ""
26983 " --resize /dev/sda1=-10%\n"
26984 "\n"
26985 msgstr ""
26986
26987 # type: textblock
26988 #: ../tools/virt-resize.pl:302
26989 msgid ""
26990 "You can increase the size of any partition.  Virt-resize will expand the "
26991 "direct content of the partition if it knows how (see C<--expand> below)."
26992 msgstr ""
26993
26994 # type: textblock
26995 #: ../tools/virt-resize.pl:306
26996 msgid ""
26997 "You can only I<decrease> the size of partitions that contain filesystems or "
26998 "PVs which have already been shrunk.  Virt-resize will check this has been "
26999 "done before proceeding, or else will print an error (see also "
27000 "C<--resize-force>)."
27001 msgstr ""
27002
27003 # type: textblock
27004 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403 ../tools/virt-resize.pl:420
27005 msgid "You can give this option multiple times."
27006 msgstr ""
27007
27008 # type: =item
27009 #: ../tools/virt-resize.pl:317
27010 msgid "B<--resize-force part=size>"
27011 msgstr ""
27012
27013 # type: textblock
27014 #: ../tools/virt-resize.pl:319
27015 msgid ""
27016 "This is the same as C<--resize> except that it will let you decrease the "
27017 "size of any partition.  Generally this means you will lose any data which "
27018 "was at the end of the partition you shrink, but you may not care about that "
27019 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27020 "as a swap partition)."
27021 msgstr ""
27022
27023 # type: textblock
27024 #: ../tools/virt-resize.pl:325
27025 msgid "See also the C<--ignore> option."
27026 msgstr ""
27027
27028 # type: =item
27029 #: ../tools/virt-resize.pl:331
27030 msgid "B<--expand part>"
27031 msgstr ""
27032
27033 # type: textblock
27034 #: ../tools/virt-resize.pl:333
27035 msgid ""
27036 "Expand the named partition so it uses up all extra space (space left over "
27037 "after any other resize changes that you request have been done)."
27038 msgstr ""
27039
27040 # type: textblock
27041 #: ../tools/virt-resize.pl:336
27042 msgid ""
27043 "If virt-resize knows how, it will expand the direct content of the "
27044 "partition.  For example, if the partition is an LVM PV, it will expand the "
27045 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27046 "content it doesn't know about alone."
27047 msgstr ""
27048
27049 # type: textblock
27050 #: ../tools/virt-resize.pl:341
27051 msgid "Currently virt-resize can resize:"
27052 msgstr ""
27053
27054 # type: textblock
27055 #: ../tools/virt-resize.pl:347
27056 msgid ""
27057 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27058 "partition."
27059 msgstr ""
27060
27061 # type: textblock
27062 #: ../tools/virt-resize.pl:352
27063 msgid ""
27064 "NTFS filesystems contained directly in a partition, if libguestfs was "
27065 "compiled with support for NTFS."
27066 msgstr ""
27067
27068 # type: textblock
27069 #: ../tools/virt-resize.pl:355
27070 msgid ""
27071 "The filesystem must have been shut down consistently last time it was used.  "
27072 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27073 "consistency check, so at the first boot after resizing Windows will check "
27074 "the disk."
27075 msgstr ""
27076
27077 # type: textblock
27078 #: ../tools/virt-resize.pl:362
27079 msgid ""
27080 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
27081 "inside the PV, but see the C<--LV-expand> option.  The user could also "
27082 "resize LVs as desired after boot."
27083 msgstr ""
27084
27085 # type: textblock
27086 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
27087 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27088 msgstr ""
27089
27090 # type: =item
27091 #: ../tools/virt-resize.pl:374
27092 msgid "B<--shrink part>"
27093 msgstr ""
27094
27095 # type: textblock
27096 #: ../tools/virt-resize.pl:376
27097 msgid ""
27098 "Shrink the named partition until the overall disk image fits in the "
27099 "destination.  The named partition B<must> contain a filesystem or PV which "
27100 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27101 "online tools).  Virt-resize will check this and give an error if it has not "
27102 "been done."
27103 msgstr ""
27104
27105 # type: textblock
27106 #: ../tools/virt-resize.pl:382
27107 msgid ""
27108 "The amount by which the overall disk must be shrunk (after carrying out all "
27109 "other operations requested by the user) is called the \"deficit\".  For "
27110 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27111 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27112 "would give an error unless the user specified a partition to shrink and that "
27113 "partition had more than a gigabyte of free space."
27114 msgstr ""
27115
27116 # type: =item
27117 #: ../tools/virt-resize.pl:396
27118 msgid "B<--ignore part>"
27119 msgstr ""
27120
27121 # type: textblock
27122 #: ../tools/virt-resize.pl:398
27123 msgid ""
27124 "Ignore the named partition.  Effectively this means the partition is "
27125 "allocated on the destination disk, but the content is not copied across from "
27126 "the source disk.  The content of the partition will be blank (all zero "
27127 "bytes)."
27128 msgstr ""
27129
27130 # type: =item
27131 #: ../tools/virt-resize.pl:409
27132 msgid "B<--delete part>"
27133 msgstr ""
27134
27135 # type: textblock
27136 #: ../tools/virt-resize.pl:411
27137 msgid ""
27138 "Delete the named partition.  It would be more accurate to describe this as "
27139 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27140 "the original disk image is left intact."
27141 msgstr ""
27142
27143 # type: textblock
27144 #: ../tools/virt-resize.pl:415
27145 msgid ""
27146 "Note that when you delete a partition, then anything contained in the "
27147 "partition is also deleted.  Furthermore, this causes any partitions that "
27148 "come after to be I<renumbered>, which can easily make your guest unbootable."
27149 msgstr ""
27150
27151 # type: =item
27152 #: ../tools/virt-resize.pl:426
27153 msgid "B<--LV-expand logvol>"
27154 msgstr ""
27155
27156 # type: textblock
27157 #: ../tools/virt-resize.pl:428
27158 msgid ""
27159 "This takes the logical volume and, as a final step, expands it to fill all "
27160 "the space available in its volume group.  A typical usage, assuming a Linux "
27161 "guest with a single PV C</dev/sda2> and a root device called "
27162 "C</dev/vg_guest/lv_root> would be:"
27163 msgstr ""
27164
27165 # type: verbatim
27166 #: ../tools/virt-resize.pl:433
27167 #, no-wrap
27168 msgid ""
27169 " virt-resize indisk outdisk \\\n"
27170 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27171 "\n"
27172 msgstr ""
27173
27174 # type: textblock
27175 #: ../tools/virt-resize.pl:436
27176 msgid ""
27177 "This would first expand the partition (and PV), and then expand the root "
27178 "device to fill the extra space in the PV."
27179 msgstr ""
27180
27181 # type: textblock
27182 #: ../tools/virt-resize.pl:439
27183 msgid ""
27184 "The contents of the LV are also resized if virt-resize knows how to do "
27185 "that.  You can stop virt-resize from trying to expand the content by using "
27186 "the option C<--no-expand-content>."
27187 msgstr ""
27188
27189 # type: textblock
27190 #: ../tools/virt-resize.pl:443
27191 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27192 msgstr ""
27193
27194 # type: textblock
27195 #: ../tools/virt-resize.pl:446
27196 msgid ""
27197 "You can give this option multiple times, I<but> it doesn't make sense to do "
27198 "this unless the logical volumes you specify are all in different volume "
27199 "groups."
27200 msgstr ""
27201
27202 # type: =item
27203 #: ../tools/virt-resize.pl:454
27204 msgid "B<--no-copy-boot-loader>"
27205 msgstr ""
27206
27207 # type: textblock
27208 #: ../tools/virt-resize.pl:456
27209 msgid ""
27210 "By default, virt-resize copies over some sectors at the start of the disk "
27211 "(up to the beginning of the first partition).  Commonly these sectors "
27212 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27213 "in order for the guest to boot correctly."
27214 msgstr ""
27215
27216 # type: textblock
27217 #: ../tools/virt-resize.pl:461
27218 msgid ""
27219 "If you specify this flag, then this initial copy is not done.  You may need "
27220 "to reinstall the boot loader in this case."
27221 msgstr ""
27222
27223 # type: =item
27224 #: ../tools/virt-resize.pl:469
27225 msgid "B<--no-extra-partition>"
27226 msgstr ""
27227
27228 # type: textblock
27229 #: ../tools/virt-resize.pl:471
27230 msgid ""
27231 "By default, virt-resize creates an extra partition if there is any extra, "
27232 "unused space after all resizing has happened.  Use this option to prevent "
27233 "the extra partition from being created.  If you do this then the extra space "
27234 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27235 "tool in the guest."
27236 msgstr ""
27237
27238 # type: textblock
27239 #: ../tools/virt-resize.pl:477
27240 msgid ""
27241 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27242 "will be created."
27243 msgstr ""
27244
27245 # type: =item
27246 #: ../tools/virt-resize.pl:484
27247 msgid "B<--no-expand-content>"
27248 msgstr ""
27249
27250 # type: textblock
27251 #: ../tools/virt-resize.pl:486
27252 msgid ""
27253 "By default, virt-resize will try to expand the direct contents of "
27254 "partitions, if it knows how (see C<--expand> option above)."
27255 msgstr ""
27256
27257 # type: textblock
27258 #: ../tools/virt-resize.pl:489
27259 msgid ""
27260 "If you give the C<--no-expand-content> option then virt-resize will not "
27261 "attempt this."
27262 msgstr ""
27263
27264 # type: =item
27265 #: ../tools/virt-resize.pl:496
27266 msgid "B<-d> | B<--debug>"
27267 msgstr ""
27268
27269 # type: =item
27270 #: ../tools/virt-resize.pl:504
27271 msgid "B<-n> | B<--dryrun>"
27272 msgstr ""
27273
27274 # type: textblock
27275 #: ../tools/virt-resize.pl:506
27276 msgid "Print a summary of what would be done, but don't do anything."
27277 msgstr ""
27278
27279 # type: =item
27280 #: ../tools/virt-resize.pl:512
27281 msgid "B<-q> | B<--quiet>"
27282 msgstr ""
27283
27284 # type: textblock
27285 #: ../tools/virt-resize.pl:514
27286 msgid "Don't print the summary."
27287 msgstr ""
27288
27289 # type: textblock
27290 #: ../tools/virt-resize.pl:522
27291 msgid ""
27292 "Specify the format of the input disk image.  If this flag is not given then "
27293 "it is auto-detected from the image itself."
27294 msgstr ""
27295
27296 # type: textblock
27297 #: ../tools/virt-resize.pl:528
27298 msgid ""
27299 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27300 "AND NON-SPARSE RAW FORMATS>."
27301 msgstr ""
27302
27303 # type: =item
27304 #: ../tools/virt-resize.pl:535
27305 msgid "B<--output-format> raw"
27306 msgstr ""
27307
27308 # type: textblock
27309 #: ../tools/virt-resize.pl:537
27310 msgid ""
27311 "Specify the format of the output disk image.  If this flag is not given then "
27312 "it is auto-detected from the image itself."
27313 msgstr ""
27314
27315 # type: textblock
27316 #: ../tools/virt-resize.pl:543
27317 msgid ""
27318 "Note that you still need to create the output disk with the right format.  "
27319 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27320 msgstr ""
27321
27322 # type: =head1
27323 #: ../tools/virt-resize.pl:1419
27324 msgid "NOTES"
27325 msgstr ""
27326
27327 # type: =head2
27328 #: ../tools/virt-resize.pl:1421
27329 msgid "\"Partition 1 does not end on cylinder boundary.\""
27330 msgstr ""
27331
27332 # type: textblock
27333 #: ../tools/virt-resize.pl:1423
27334 msgid ""
27335 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27336 "means the partitions will not be aligned to the ancient CHS geometry.  "
27337 "However CHS geometry is meaningless for disks manufactured since the early "
27338 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27339 "cylinders is not required by any modern operating system."
27340 msgstr ""
27341
27342 # type: =head2
27343 #: ../tools/virt-resize.pl:1430
27344 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27345 msgstr ""
27346
27347 # type: textblock
27348 #: ../tools/virt-resize.pl:1432
27349 msgid ""
27350 "In Windows Vista and later versions, Microsoft switched to using a separate "
27351 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27352 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27353 "the boot partition.  Doing so seems to break the guest completely.  However "
27354 "expanding the second partition (ie. C: drive) should work."
27355 msgstr ""
27356
27357 # type: textblock
27358 #: ../tools/virt-resize.pl:1439
27359 msgid ""
27360 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27361 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27362 "it find errors) is nothing to worry about."
27363 msgstr ""
27364
27365 # type: =head2
27366 #: ../tools/virt-resize.pl:1443
27367 msgid "GUEST BOOT STUCK AT \"GRUB\""
27368 msgstr ""
27369
27370 # type: textblock
27371 #: ../tools/virt-resize.pl:1445
27372 msgid ""
27373 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27374 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27375 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27376 "although we think is to do with partition alignment."
27377 msgstr ""
27378
27379 # type: verbatim
27380 #: ../tools/virt-resize.pl:1450
27381 #, no-wrap
27382 msgid ""
27383 " guestfish -i -a newdisk\n"
27384 " ><fs> cat /boot/grub/device.map\n"
27385 " # check the contents of this file are sensible or\n"
27386 " # edit the file if necessary\n"
27387 " ><fs> grub-install / /dev/vda\n"
27388 " ><fs> exit\n"
27389 "\n"
27390 msgstr ""
27391
27392 # type: textblock
27393 #: ../tools/virt-resize.pl:1457
27394 msgid ""
27395 "For more flexible guest reconfiguration, including if you need to specify "
27396 "other parameters to grub-install, use L<virt-rescue(1)>."
27397 msgstr ""
27398
27399 # type: =head1
27400 #: ../tools/virt-resize.pl:1460
27401 msgid "ALTERNATIVE TOOLS"
27402 msgstr ""
27403
27404 # type: textblock
27405 #: ../tools/virt-resize.pl:1462
27406 msgid ""
27407 "There are several proprietary tools for resizing partitions.  We won't "
27408 "mention any here."
27409 msgstr ""
27410
27411 # type: textblock
27412 #: ../tools/virt-resize.pl:1465
27413 msgid ""
27414 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27415 "operations on disk images.  They can resize and move partitions, but I don't "
27416 "think they can do anything with the contents, and they certainly don't "
27417 "understand LVM."
27418 msgstr ""
27419
27420 # type: textblock
27421 #: ../tools/virt-resize.pl:1470
27422 msgid ""
27423 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27424 "but at a much lower level.  You will probably end up hand-calculating sector "
27425 "offsets, which is something that virt-resize was designed to avoid.  If you "
27426 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27427 "C<--debug> flag."
27428 msgstr ""
27429
27430 # type: textblock
27431 #: ../tools/virt-resize.pl:1485
27432 msgid ""
27433 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
27434 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
27435 "L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
27436 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27437 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27438 msgstr ""
27439
27440 # type: textblock
27441 #: ../tools/virt-list-filesystems.pl:32
27442 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27443 msgstr ""
27444
27445 # type: verbatim
27446 #: ../tools/virt-list-filesystems.pl:36
27447 #, no-wrap
27448 msgid ""
27449 " virt-list-filesystems [--options] domname\n"
27450 "\n"
27451 msgstr ""
27452
27453 # type: verbatim
27454 #: ../tools/virt-list-filesystems.pl:38
27455 #, no-wrap
27456 msgid ""
27457 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27458 "\n"
27459 msgstr ""
27460
27461 # type: textblock
27462 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
27463 msgid ""
27464 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
27465 "replacement."
27466 msgstr ""
27467
27468 # type: textblock
27469 #: ../tools/virt-list-filesystems.pl:45
27470 msgid ""
27471 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27472 "are contained in a virtual machine or disk image."
27473 msgstr ""
27474
27475 # type: textblock
27476 #: ../tools/virt-list-filesystems.pl:49
27477 msgid ""
27478 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27479 "functionality.  For more complex cases you should look at the "
27480 "L<guestfish(1)> tool."
27481 msgstr ""
27482
27483 # type: =item
27484 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
27485 msgid "B<-l> | B<--long>"
27486 msgstr ""
27487
27488 # type: textblock
27489 #: ../tools/virt-list-filesystems.pl:108
27490 msgid ""
27491 "With this option, C<virt-list-filesystems> displays the type of each "
27492 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27493 msgstr ""
27494
27495 # type: =item
27496 #: ../tools/virt-list-filesystems.pl:115
27497 msgid "B<-a> | B<--all>"
27498 msgstr ""
27499
27500 # type: textblock
27501 #: ../tools/virt-list-filesystems.pl:117
27502 msgid ""
27503 "Normally we only show mountable filesystems.  If this option is given then "
27504 "swap devices are shown too."
27505 msgstr ""
27506
27507 # type: textblock
27508 #: ../tools/virt-list-filesystems.pl:191
27509 msgid ""
27510 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
27511 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
27512 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27513 msgstr ""
27514
27515 # type: textblock
27516 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
27517 msgid "Copyright (C) 2009 Red Hat Inc."
27518 msgstr ""
27519
27520 # type: textblock
27521 #: ../tools/virt-tar.pl:33
27522 msgid "virt-tar - Extract or upload files to a virtual machine"
27523 msgstr ""
27524
27525 # type: verbatim
27526 #: ../tools/virt-tar.pl:37
27527 #, no-wrap
27528 msgid ""
27529 " virt-tar [--options] -x domname directory tarball\n"
27530 "\n"
27531 msgstr ""
27532
27533 # type: verbatim
27534 #: ../tools/virt-tar.pl:39
27535 #, no-wrap
27536 msgid ""
27537 " virt-tar [--options] -u domname tarball directory\n"
27538 "\n"
27539 msgstr ""
27540
27541 # type: verbatim
27542 #: ../tools/virt-tar.pl:41
27543 #, no-wrap
27544 msgid ""
27545 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27546 "\n"
27547 msgstr ""
27548
27549 # type: verbatim
27550 #: ../tools/virt-tar.pl:43
27551 #, no-wrap
27552 msgid ""
27553 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27554 "\n"
27555 msgstr ""
27556
27557 # type: textblock
27558 #: ../tools/virt-tar.pl:47
27559 msgid "Download C</home> from the VM into a local tarball:"
27560 msgstr ""
27561
27562 # type: verbatim
27563 #: ../tools/virt-tar.pl:49
27564 #, no-wrap
27565 msgid ""
27566 " virt-tar -x domname /home home.tar\n"
27567 "\n"
27568 msgstr ""
27569
27570 # type: verbatim
27571 #: ../tools/virt-tar.pl:51
27572 #, no-wrap
27573 msgid ""
27574 " virt-tar -zx domname /home home.tar.gz\n"
27575 "\n"
27576 msgstr ""
27577
27578 # type: textblock
27579 #: ../tools/virt-tar.pl:53
27580 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27581 msgstr ""
27582
27583 # type: verbatim
27584 #: ../tools/virt-tar.pl:55
27585 #, no-wrap
27586 msgid ""
27587 " virt-tar -u domname uploadstuff.tar /tmp\n"
27588 "\n"
27589 msgstr ""
27590
27591 # type: verbatim
27592 #: ../tools/virt-tar.pl:57
27593 #, no-wrap
27594 msgid ""
27595 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27596 "\n"
27597 msgstr ""
27598
27599 # type: textblock
27600 #: ../tools/virt-tar.pl:61
27601 msgid ""
27602 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27603 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27604 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27605 msgstr ""
27606
27607 # type: textblock
27608 #: ../tools/virt-tar.pl:66
27609 msgid ""
27610 "You can use C<-x> (extract) on live virtual machines, but you might get "
27611 "inconsistent results or errors if there is filesystem activity inside the "
27612 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27613 "work, but the only way to guarantee consistent results is if the virtual "
27614 "machine is shut down."
27615 msgstr ""
27616
27617 # type: textblock
27618 #: ../tools/virt-tar.pl:74
27619 msgid ""
27620 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27621 "parts of a guest filesystem.  There are many possibilities: making backups, "
27622 "uploading data files, snooping on guest activity, fixing or customizing "
27623 "guests, etc."
27624 msgstr ""
27625
27626 # type: textblock
27627 #: ../tools/virt-tar.pl:79
27628 msgid ""
27629 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27630 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27631 "should look at the L<guestfish(1)> tool."
27632 msgstr ""
27633
27634 # type: textblock
27635 #: ../tools/virt-tar.pl:83
27636 msgid ""
27637 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27638 "its contents (recursively) from the virtual machine into a local tarball.  "
27639 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27640 "virtual machine.  You cannot use these two options together."
27641 msgstr ""
27642
27643 # type: textblock
27644 #: ../tools/virt-tar.pl:89
27645 msgid ""
27646 "In addition, you may need to use the C<-z> (gZip) option to enable "
27647 "compression.  When uploading, you have to specify C<-z> if the upload file "
27648 "is compressed because virt-tar won't detect this on its own."
27649 msgstr ""
27650
27651 # type: textblock
27652 #: ../tools/virt-tar.pl:93
27653 msgid ""
27654 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27655 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27656 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27657 "the L<libguestfs(3)> API)."
27658 msgstr ""
27659
27660 # type: =item
27661 #: ../tools/virt-tar.pl:151
27662 msgid "B<-x> | B<--extract> | B<--download>"
27663 msgstr ""
27664
27665 # type: =item
27666 #: ../tools/virt-tar.pl:153
27667 msgid "B<-u> | B<--upload>"
27668 msgstr ""
27669
27670 # type: textblock
27671 #: ../tools/virt-tar.pl:155
27672 msgid ""
27673 "Use C<-x> to extract (download) a directory from a virtual machine to a "
27674 "local tarball."
27675 msgstr ""
27676
27677 # type: textblock
27678 #: ../tools/virt-tar.pl:158
27679 msgid ""
27680 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
27681 "Please read the L</WARNING> section above before using this option."
27682 msgstr ""
27683
27684 # type: textblock
27685 #: ../tools/virt-tar.pl:162
27686 msgid "You must specify exactly one of these options."
27687 msgstr ""
27688
27689 # type: =item
27690 #: ../tools/virt-tar.pl:168
27691 msgid "B<-z> | B<--gzip>"
27692 msgstr ""
27693
27694 # type: textblock
27695 #: ../tools/virt-tar.pl:170
27696 msgid "Specify that the input or output tarball is gzip-compressed."
27697 msgstr ""
27698
27699 # type: textblock
27700 #: ../tools/virt-tar.pl:283
27701 msgid ""
27702 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
27703 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
27704 "L<http://libguestfs.org/>."
27705 msgstr ""
27706
27707 # type: textblock
27708 #: ../tools/virt-make-fs.pl:37
27709 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
27710 msgstr ""
27711
27712 # type: verbatim
27713 #: ../tools/virt-make-fs.pl:41
27714 #, no-wrap
27715 msgid ""
27716 " virt-make-fs [--options] input.tar output.img\n"
27717 "\n"
27718 msgstr ""
27719
27720 # type: verbatim
27721 #: ../tools/virt-make-fs.pl:43
27722 #, no-wrap
27723 msgid ""
27724 " virt-make-fs [--options] input.tar.gz output.img\n"
27725 "\n"
27726 msgstr ""
27727
27728 # type: verbatim
27729 #: ../tools/virt-make-fs.pl:45
27730 #, no-wrap
27731 msgid ""
27732 " virt-make-fs [--options] directory output.img\n"
27733 "\n"
27734 msgstr ""
27735
27736 # type: textblock
27737 #: ../tools/virt-make-fs.pl:49
27738 msgid ""
27739 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
27740 "archive or some files in a directory.  It is similar to tools like "
27741 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
27742 "it can create common filesystem types like ext2/3 or NTFS, which can be "
27743 "useful if you want to attach these filesystems to existing virtual machines "
27744 "(eg. to import large amounts of read-only data to a VM)."
27745 msgstr ""
27746
27747 # type: textblock
27748 #: ../tools/virt-make-fs.pl:57
27749 msgid "Basic usage is:"
27750 msgstr ""
27751
27752 # type: verbatim
27753 #: ../tools/virt-make-fs.pl:59
27754 #, no-wrap
27755 msgid ""
27756 " virt-make-fs input output\n"
27757 "\n"
27758 msgstr ""
27759
27760 # type: textblock
27761 #: ../tools/virt-make-fs.pl:61
27762 msgid ""
27763 "where C<input> is either a directory containing files that you want to add, "
27764 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
27765 "C<output> is a disk image.  The input type is detected automatically.  The "
27766 "output disk image defaults to a raw ext2 image unless you specify extra "
27767 "flags (see L</OPTIONS> below)."
27768 msgstr ""
27769
27770 # type: =head2
27771 #: ../tools/virt-make-fs.pl:67
27772 msgid "EXTRA SPACE"
27773 msgstr ""
27774
27775 # type: textblock
27776 #: ../tools/virt-make-fs.pl:69
27777 msgid ""
27778 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
27779 "the files that it contains, but might have extra space.  Depending on how "
27780 "you are going to use the output, you might think this extra space is wasted "
27781 "and want to minimize it, or you might want to leave space so that more files "
27782 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
27783 "but you can use the C<--size> flag to leave space in the filesystem if you "
27784 "want it."
27785 msgstr ""
27786
27787 # type: textblock
27788 #: ../tools/virt-make-fs.pl:77
27789 msgid ""
27790 "An alternative way to leave extra space but not make the output image any "
27791 "bigger is to use an alternative disk image format (instead of the default "
27792 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
27793 "image format (check your hypervisor supports this before using it).  This "
27794 "allows you to choose a large C<--size> but the extra space won't actually be "
27795 "allocated in the image until you try to store something in it."
27796 msgstr ""
27797
27798 # type: textblock
27799 #: ../tools/virt-make-fs.pl:85
27800 msgid ""
27801 "Don't forget that you can also use local commands including L<resize2fs(8)> "
27802 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
27803 "virt-make-resize to build another image from scratch."
27804 msgstr ""
27805
27806 # type: =head3
27807 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
27808 msgid "EXAMPLE"
27809 msgstr ""
27810
27811 # type: verbatim
27812 #: ../tools/virt-make-fs.pl:91
27813 #, no-wrap
27814 msgid ""
27815 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
27816 "\n"
27817 msgstr ""
27818
27819 # type: =head2
27820 #: ../tools/virt-make-fs.pl:93
27821 msgid "FILESYSTEM TYPE"
27822 msgstr ""
27823
27824 # type: textblock
27825 #: ../tools/virt-make-fs.pl:95
27826 msgid ""
27827 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
27828 "libguestfs supports can be used (but I<not> read-only formats like "
27829 "ISO9660).  Here are some of the more common choices:"
27830 msgstr ""
27831
27832 # type: =item
27833 #: ../tools/virt-make-fs.pl:101
27834 msgid "I<ext3>"
27835 msgstr ""
27836
27837 # type: textblock
27838 #: ../tools/virt-make-fs.pl:103
27839 msgid ""
27840 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
27841 "you are not going to use the filesystem in a way that requires the journal, "
27842 "then this is just wasted overhead."
27843 msgstr ""
27844
27845 # type: =item
27846 #: ../tools/virt-make-fs.pl:107
27847 msgid "I<ntfs> or I<vfat>"
27848 msgstr ""
27849
27850 # type: textblock
27851 #: ../tools/virt-make-fs.pl:109
27852 msgid "Useful if exporting data to a Windows guest."
27853 msgstr ""
27854
27855 # type: textblock
27856 #: ../tools/virt-make-fs.pl:111
27857 msgid ""
27858 "I<Note for vfat>: The tar archive or local directory must only contain files "
27859 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
27860 "program running within libguestfs is unable to change the ownership of "
27861 "non-root files, since vfat itself does not support this."
27862 msgstr ""
27863
27864 # type: =item
27865 #: ../tools/virt-make-fs.pl:116
27866 msgid "I<minix>"
27867 msgstr ""
27868
27869 # type: textblock
27870 #: ../tools/virt-make-fs.pl:118
27871 msgid ""
27872 "Lower overhead than C<ext2>, but certain limitations on filename length and "
27873 "total filesystem size."
27874 msgstr ""
27875
27876 # type: verbatim
27877 #: ../tools/virt-make-fs.pl:125
27878 #, no-wrap
27879 msgid ""
27880 " virt-make-fs --type=minix input minixfs.img\n"
27881 "\n"
27882 msgstr ""
27883
27884 # type: =head2
27885 #: ../tools/virt-make-fs.pl:127
27886 msgid "TO PARTITION OR NOT TO PARTITION"
27887 msgstr ""
27888
27889 # type: textblock
27890 #: ../tools/virt-make-fs.pl:129
27891 msgid "Optionally virt-make-fs can add a partition table to the output disk."
27892 msgstr ""
27893
27894 # type: textblock
27895 #: ../tools/virt-make-fs.pl:131
27896 msgid ""
27897 "Adding a partition can make the disk image more compatible with certain "
27898 "virtualized operating systems which don't expect to see a filesystem "
27899 "directly located on a block device (Linux doesn't care and will happily "
27900 "handle both types)."
27901 msgstr ""
27902
27903 # type: textblock
27904 #: ../tools/virt-make-fs.pl:136
27905 msgid ""
27906 "On the other hand, if you have a partition table then the output image is no "
27907 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
27908 "directly on a partitioned disk image.  (However libguestfs tools such as "
27909 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
27910 msgstr ""
27911
27912 # type: textblock
27913 #: ../tools/virt-make-fs.pl:144
27914 msgid "Add an MBR partition:"
27915 msgstr ""
27916
27917 # type: verbatim
27918 #: ../tools/virt-make-fs.pl:146
27919 #, no-wrap
27920 msgid ""
27921 " virt-make-fs --partition -- input disk.img\n"
27922 "\n"
27923 msgstr ""
27924
27925 # type: textblock
27926 #: ../tools/virt-make-fs.pl:148
27927 msgid ""
27928 "If the output disk image could be terabyte-sized or larger, it's better to "
27929 "use an EFI/GPT-compatible partition table:"
27930 msgstr ""
27931
27932 # type: verbatim
27933 #: ../tools/virt-make-fs.pl:151
27934 #, no-wrap
27935 msgid ""
27936 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
27937 "\n"
27938 msgstr ""
27939
27940 # type: textblock
27941 #: ../tools/virt-make-fs.pl:179
27942 msgid "Enable debugging information."
27943 msgstr ""
27944
27945 # type: =item
27946 #: ../tools/virt-make-fs.pl:185
27947 msgid "B<--size=E<lt>NE<gt>>"
27948 msgstr ""
27949
27950 # type: =item
27951 #: ../tools/virt-make-fs.pl:187
27952 msgid "B<--size=+E<lt>NE<gt>>"
27953 msgstr ""
27954
27955 # type: =item
27956 #: ../tools/virt-make-fs.pl:189
27957 msgid "B<-s E<lt>NE<gt>>"
27958 msgstr ""
27959
27960 # type: =item
27961 #: ../tools/virt-make-fs.pl:191
27962 msgid "B<-s +E<lt>NE<gt>>"
27963 msgstr ""
27964
27965 # type: textblock
27966 #: ../tools/virt-make-fs.pl:193
27967 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
27968 msgstr ""
27969
27970 # type: textblock
27971 #: ../tools/virt-make-fs.pl:196
27972 msgid ""
27973 "If this option is I<not> given, then the output image will be just large "
27974 "enough to contain all the files, with not much wasted space."
27975 msgstr ""
27976
27977 # type: textblock
27978 #: ../tools/virt-make-fs.pl:199
27979 msgid ""
27980 "To choose a fixed size output disk, specify an absolute number followed by "
27981 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27982 "Petabytes or Exabytes.  This must be large enough to contain all the input "
27983 "files, else you will get an error."
27984 msgstr ""
27985
27986 # type: textblock
27987 #: ../tools/virt-make-fs.pl:204
27988 msgid ""
27989 "To leave extra space, specify C<+> (plus sign) and a number followed by "
27990 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
27991 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
27992 "the input files, and (approximately) an extra 200 MB free space."
27993 msgstr ""
27994
27995 # type: textblock
27996 #: ../tools/virt-make-fs.pl:210
27997 msgid ""
27998 "Note that virt-make-fs estimates free space, and therefore will not produce "
27999 "filesystems containing precisely the free space requested.  (It is much more "
28000 "expensive and time-consuming to produce a filesystem which has precisely the "
28001 "desired free space)."
28002 msgstr ""
28003
28004 # type: =item
28005 #: ../tools/virt-make-fs.pl:219
28006 msgid "B<--format=E<lt>fmtE<gt>>"
28007 msgstr ""
28008
28009 # type: =item
28010 #: ../tools/virt-make-fs.pl:221
28011 msgid "B<-F E<lt>fmtE<gt>>"
28012 msgstr ""
28013
28014 # type: textblock
28015 #: ../tools/virt-make-fs.pl:223
28016 msgid "Choose the output disk image format."
28017 msgstr ""
28018
28019 # type: textblock
28020 #: ../tools/virt-make-fs.pl:225
28021 msgid "The default is C<raw> (raw disk image)."
28022 msgstr ""
28023
28024 # type: textblock
28025 #: ../tools/virt-make-fs.pl:227
28026 msgid ""
28027 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28028 "that would really make sense here is C<qcow2>."
28029 msgstr ""
28030
28031 # type: =item
28032 #: ../tools/virt-make-fs.pl:234
28033 msgid "B<--type=E<lt>fsE<gt>>"
28034 msgstr ""
28035
28036 # type: =item
28037 #: ../tools/virt-make-fs.pl:236
28038 msgid "B<-t E<lt>fsE<gt>>"
28039 msgstr ""
28040
28041 # type: textblock
28042 #: ../tools/virt-make-fs.pl:238
28043 msgid "Choose the output filesystem type."
28044 msgstr ""
28045
28046 # type: textblock
28047 #: ../tools/virt-make-fs.pl:240
28048 msgid "The default is C<ext2>."
28049 msgstr ""
28050
28051 # type: textblock
28052 #: ../tools/virt-make-fs.pl:242
28053 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
28054 msgstr ""
28055
28056 # type: =item
28057 #: ../tools/virt-make-fs.pl:249
28058 msgid "B<--partition>"
28059 msgstr ""
28060
28061 # type: =item
28062 #: ../tools/virt-make-fs.pl:251
28063 msgid "B<--partition=E<lt>parttypeE<gt>>"
28064 msgstr ""
28065
28066 # type: textblock
28067 #: ../tools/virt-make-fs.pl:253
28068 msgid ""
28069 "If specified, this flag adds an MBR partition table to the output disk "
28070 "image."
28071 msgstr ""
28072
28073 # type: textblock
28074 #: ../tools/virt-make-fs.pl:256
28075 msgid ""
28076 "You can change the partition table type, eg. C<--partition=gpt> for large "
28077 "disks."
28078 msgstr ""
28079
28080 # type: textblock
28081 #: ../tools/virt-make-fs.pl:259
28082 msgid ""
28083 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28084 "might consider the next parameter to be the partition type.  For example:"
28085 msgstr ""
28086
28087 # type: verbatim
28088 #: ../tools/virt-make-fs.pl:263
28089 #, no-wrap
28090 msgid ""
28091 " virt-make-fs --partition input.tar ...\n"
28092 "\n"
28093 msgstr ""
28094
28095 # type: textblock
28096 #: ../tools/virt-make-fs.pl:265
28097 msgid ""
28098 "would cause virt-make-fs to think you wanted to use a partition type of "
28099 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28100 "dash) between options and the input file argument:"
28101 msgstr ""
28102
28103 # type: verbatim
28104 #: ../tools/virt-make-fs.pl:269
28105 #, no-wrap
28106 msgid ""
28107 " virt-make-fs --partition -- input.tar ...\n"
28108 "\n"
28109 msgstr ""
28110
28111 # type: textblock
28112 #: ../tools/virt-make-fs.pl:536
28113 msgid ""
28114 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28115 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28116 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28117 msgstr ""
28118
28119 # type: verbatim
28120 #: ../tools/virt-make-fs.pl:553
28121 #, no-wrap
28122 msgid ""
28123 " export LIBGUESTFS_DEBUG=1\n"
28124 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28125 "\n"
28126 msgstr ""
28127
28128 # type: textblock
28129 #: ../tools/virt-make-fs.pl:556
28130 msgid ""
28131 "Attach /tmp/virt-make-fs.log to a new bug report at "
28132 "L<https://bugzilla.redhat.com/>"
28133 msgstr ""
28134
28135 # type: textblock
28136 #: ../tools/virt-list-partitions.pl:32
28137 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28138 msgstr ""
28139
28140 # type: verbatim
28141 #: ../tools/virt-list-partitions.pl:36
28142 #, no-wrap
28143 msgid ""
28144 " virt-list-partitions [--options] domname\n"
28145 "\n"
28146 msgstr ""
28147
28148 # type: verbatim
28149 #: ../tools/virt-list-partitions.pl:38
28150 #, no-wrap
28151 msgid ""
28152 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28153 "\n"
28154 msgstr ""
28155
28156 # type: textblock
28157 #: ../tools/virt-list-partitions.pl:45
28158 msgid ""
28159 "C<virt-list-partitions> is a command line tool to list the partitions that "
28160 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28161 "first step to using L<virt-resize(1)>."
28162 msgstr ""
28163
28164 # type: textblock
28165 #: ../tools/virt-list-partitions.pl:50
28166 msgid ""
28167 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28168 "functionality.  For more complex cases you should look at the "
28169 "L<guestfish(1)> tool."
28170 msgstr ""
28171
28172 # type: =item
28173 #: ../tools/virt-list-partitions.pl:107
28174 msgid "B<-h> | B<--human-readable>"
28175 msgstr ""
28176
28177 # type: textblock
28178 #: ../tools/virt-list-partitions.pl:109
28179 msgid "Show sizes in human-readable form (eg. \"1G\")."
28180 msgstr ""
28181
28182 # type: textblock
28183 #: ../tools/virt-list-partitions.pl:117
28184 msgid ""
28185 "With this option, C<virt-list-partitions> displays the type and size of each "
28186 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28187 msgstr ""
28188
28189 # type: =item
28190 #: ../tools/virt-list-partitions.pl:124
28191 msgid "B<-t> | B<--total>"
28192 msgstr ""
28193
28194 # type: textblock
28195 #: ../tools/virt-list-partitions.pl:126
28196 msgid "Display the total size of each block device (as a separate row or rows)."
28197 msgstr ""
28198
28199 # type: textblock
28200 #: ../tools/virt-list-partitions.pl:259
28201 msgid ""
28202 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
28203 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
28204 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28205 msgstr ""