Version 1.7.23.
[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.23\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2010-12-12 21:33+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_close (g);\n"
58 "\n"
59 msgstr ""
60
61 # type: verbatim
62 #: ../src/guestfs.pod:19
63 #, no-wrap
64 msgid ""
65 " cc prog.c -o prog -lguestfs\n"
66 "or:\n"
67 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
68 "\n"
69 msgstr ""
70
71 # type: =head1
72 #: ../src/guestfs.pod:23 ../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
73 msgid "DESCRIPTION"
74 msgstr ""
75
76 # type: textblock
77 #: ../src/guestfs.pod:25
78 msgid ""
79 "Libguestfs is a library for accessing and modifying guest disk images.  "
80 "Amongst the things this is good for: making batch configuration changes to "
81 "guests, getting disk used/free statistics (see also: virt-df), migrating "
82 "between virtualization systems (see also: virt-p2v), performing partial "
83 "backups, performing partial guest clones, cloning guests and changing "
84 "registry/UUID/hostname info, and much else besides."
85 msgstr ""
86
87 # type: textblock
88 #: ../src/guestfs.pod:33
89 msgid ""
90 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
91 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
92 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
93 "qcow2, vmdk."
94 msgstr ""
95
96 # type: textblock
97 #: ../src/guestfs.pod:38
98 msgid ""
99 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
100 "what filesystem is in each LV, etc.).  It can also run commands in the "
101 "context of the guest.  Also you can access filesystems over FUSE."
102 msgstr ""
103
104 # type: textblock
105 #: ../src/guestfs.pod:43
106 msgid ""
107 "Libguestfs is a library that can be linked with C and C++ management "
108 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
109 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
110 "line."
111 msgstr ""
112
113 # type: textblock
114 #: ../src/guestfs.pod:48
115 msgid ""
116 "You don't need to be root to use libguestfs, although obviously you do need "
117 "enough permissions to access the disk images."
118 msgstr ""
119
120 # type: textblock
121 #: ../src/guestfs.pod:51
122 msgid ""
123 "Libguestfs is a large API because it can do many things.  For a gentle "
124 "introduction, please read the L</API OVERVIEW> section next."
125 msgstr ""
126
127 # type: textblock
128 #: ../src/guestfs.pod:54
129 msgid ""
130 "There are also some example programs in the L<guestfs-examples(3)> manual "
131 "page."
132 msgstr ""
133
134 # type: =head1
135 #: ../src/guestfs.pod:57
136 msgid "API OVERVIEW"
137 msgstr ""
138
139 # type: textblock
140 #: ../src/guestfs.pod:59
141 msgid ""
142 "This section provides a gentler overview of the libguestfs API.  We also try "
143 "to group API calls together, where that may not be obvious from reading "
144 "about the individual calls in the main section of this manual."
145 msgstr ""
146
147 # type: =head2
148 #: ../src/guestfs.pod:64
149 msgid "HANDLES"
150 msgstr ""
151
152 # type: textblock
153 #: ../src/guestfs.pod:66
154 msgid ""
155 "Before you can use libguestfs calls, you have to create a handle.  Then you "
156 "must add at least one disk image to the handle, followed by launching the "
157 "handle, then performing whatever operations you want, and finally closing "
158 "the handle.  By convention we use the single letter C<g> for the name of the "
159 "handle variable, although of course you can use any name you want."
160 msgstr ""
161
162 # type: textblock
163 #: ../src/guestfs.pod:73
164 msgid "The general structure of all libguestfs-using programs looks like this:"
165 msgstr ""
166
167 # type: verbatim
168 #: ../src/guestfs.pod:76
169 #, no-wrap
170 msgid ""
171 " guestfs_h *g = guestfs_create ();\n"
172 " \n"
173 msgstr ""
174
175 # type: verbatim
176 #: ../src/guestfs.pod:78
177 #, no-wrap
178 msgid ""
179 " /* Call guestfs_add_drive additional times if there are\n"
180 "  * multiple disk images.\n"
181 "  */\n"
182 " guestfs_add_drive (g, \"guest.img\");\n"
183 " \n"
184 msgstr ""
185
186 # type: verbatim
187 #: ../src/guestfs.pod:83
188 #, no-wrap
189 msgid ""
190 " /* Most manipulation calls won't work until you've launched\n"
191 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
192 "  * and _before_ other commands.\n"
193 "  */\n"
194 " guestfs_launch (g);\n"
195 " \n"
196 msgstr ""
197
198 # type: verbatim
199 #: ../src/guestfs.pod:89
200 #, no-wrap
201 msgid ""
202 " /* Now you can examine what partitions, LVs etc are available.\n"
203 "  */\n"
204 " char **partitions = guestfs_list_partitions (g);\n"
205 " char **logvols = guestfs_lvs (g);\n"
206 " \n"
207 msgstr ""
208
209 # type: verbatim
210 #: ../src/guestfs.pod:94
211 #, no-wrap
212 msgid ""
213 " /* To access a filesystem in the image, you must mount it.\n"
214 "  */\n"
215 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
216 " \n"
217 msgstr ""
218
219 # type: verbatim
220 #: ../src/guestfs.pod:98
221 #, no-wrap
222 msgid ""
223 " /* Now you can perform filesystem actions on the guest\n"
224 "  * disk image.\n"
225 "  */\n"
226 " guestfs_touch (g, \"/hello\");\n"
227 "\n"
228 msgstr ""
229
230 # type: verbatim
231 #: ../src/guestfs.pod:103
232 #, no-wrap
233 msgid ""
234 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
235 "  * it is done automatically when you close the handle.  See\n"
236 "  * discussion of autosync in this page.\n"
237 "  */\n"
238 " guestfs_sync (g);\n"
239 " \n"
240 msgstr ""
241
242 # type: verbatim
243 #: ../src/guestfs.pod:109
244 #, no-wrap
245 msgid ""
246 " /* Close the handle 'g'. */\n"
247 " guestfs_close (g);\n"
248 "\n"
249 msgstr ""
250
251 # type: textblock
252 #: ../src/guestfs.pod:112
253 msgid ""
254 "The code above doesn't include any error checking.  In real code you should "
255 "check return values carefully for errors.  In general all functions that "
256 "return integers return C<-1> on error, and all functions that return "
257 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
258 "how to handle errors, and consult the documentation for each function call "
259 "below to see precisely how they return error indications.  See "
260 "L<guestfs-examples(3)> for fully worked examples."
261 msgstr ""
262
263 # type: =head2
264 #: ../src/guestfs.pod:121
265 msgid "DISK IMAGES"
266 msgstr ""
267
268 # type: textblock
269 #: ../src/guestfs.pod:123
270 msgid ""
271 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
272 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
273 "actual block device, or simply an empty file of zeroes that you have created "
274 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
275 "of these."
276 msgstr ""
277
278 # type: textblock
279 #: ../src/guestfs.pod:129
280 msgid ""
281 "The call you should use in modern code for adding drives is "
282 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
283 "specifying that the format is raw, do:"
284 msgstr ""
285
286 # type: verbatim
287 #: ../src/guestfs.pod:133
288 #, no-wrap
289 msgid ""
290 " guestfs_add_drive_opts (g, filename,\n"
291 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
292 "                         -1);\n"
293 "\n"
294 msgstr ""
295
296 # type: textblock
297 #: ../src/guestfs.pod:137
298 msgid "You can add a disk read-only using:"
299 msgstr ""
300
301 # type: verbatim
302 #: ../src/guestfs.pod:139
303 #, no-wrap
304 msgid ""
305 " guestfs_add_drive_opts (g, filename,\n"
306 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
307 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
308 "                         -1);\n"
309 "\n"
310 msgstr ""
311
312 # type: textblock
313 #: ../src/guestfs.pod:144
314 msgid ""
315 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
316 "libguestfs won't modify the file."
317 msgstr ""
318
319 # type: textblock
320 #: ../src/guestfs.pod:147
321 msgid ""
322 "Be extremely cautious if the disk image is in use, eg. if it is being used "
323 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
324 "corruption, but adding it read-only is safe."
325 msgstr ""
326
327 # type: textblock
328 #: ../src/guestfs.pod:151
329 msgid ""
330 "You must add at least one disk image, and you may add multiple disk images.  "
331 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
332 "first one you added), C</dev/sdb> (for the second one you added), etc."
333 msgstr ""
334
335 # type: textblock
336 #: ../src/guestfs.pod:156
337 msgid ""
338 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
339 "can call L</guestfs_list_devices> to get a list of the device names, in the "
340 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
341 msgstr ""
342
343 # type: =head2
344 #: ../src/guestfs.pod:161
345 msgid "MOUNTING"
346 msgstr ""
347
348 # type: textblock
349 #: ../src/guestfs.pod:163
350 msgid ""
351 "Before you can read or write files, create directories and so on in a disk "
352 "image that contains filesystems, you have to mount those filesystems using "
353 "L</guestfs_mount>.  If you already know that a disk image contains (for "
354 "example) one partition with a filesystem on that partition, then you can "
355 "mount it directly:"
356 msgstr ""
357
358 # type: verbatim
359 #: ../src/guestfs.pod:169
360 #, no-wrap
361 msgid ""
362 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
363 "\n"
364 msgstr ""
365
366 # type: textblock
367 #: ../src/guestfs.pod:171
368 msgid ""
369 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
370 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
371 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
372 msgstr ""
373
374 # type: textblock
375 #: ../src/guestfs.pod:175
376 msgid ""
377 "If you are given a disk image and you don't know what it contains then you "
378 "have to find out.  Libguestfs can do that too: use "
379 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
380 "and LVs, and either try mounting each to see what is mountable, or else "
381 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also "
382 "has a set of APIs for inspection of disk images (see L</INSPECTION> below).  "
383 "But you might find it easier to look at higher level programs built on top "
384 "of libguestfs, in particular L<virt-inspector(1)>."
385 msgstr ""
386
387 # type: textblock
388 #: ../src/guestfs.pod:185
389 msgid ""
390 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
391 "several other variations of the C<guestfs_mount_*> call."
392 msgstr ""
393
394 # type: =head2
395 #: ../src/guestfs.pod:188
396 msgid "FILESYSTEM ACCESS AND MODIFICATION"
397 msgstr ""
398
399 # type: textblock
400 #: ../src/guestfs.pod:190
401 msgid ""
402 "The majority of the libguestfs API consists of fairly low-level calls for "
403 "accessing and modifying the files, directories, symlinks etc on mounted "
404 "filesystems.  There are over a hundred such calls which you can find listed "
405 "in detail below in this man page, and we don't even pretend to cover them "
406 "all in this overview."
407 msgstr ""
408
409 # type: textblock
410 #: ../src/guestfs.pod:196
411 msgid ""
412 "Specify filenames as full paths, starting with C<\"/\"> and including the "
413 "mount point."
414 msgstr ""
415
416 # type: textblock
417 #: ../src/guestfs.pod:199
418 msgid ""
419 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
420 "the file called C<\"etc/passwd\"> then you could do:"
421 msgstr ""
422
423 # type: verbatim
424 #: ../src/guestfs.pod:202
425 #, no-wrap
426 msgid ""
427 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
428 "\n"
429 msgstr ""
430
431 # type: textblock
432 #: ../src/guestfs.pod:204
433 msgid ""
434 "This would return C<data> as a newly allocated buffer containing the full "
435 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
436 "or C<NULL> if there was an error."
437 msgstr ""
438
439 # type: textblock
440 #: ../src/guestfs.pod:208
441 msgid ""
442 "As another example, to create a top-level directory on that filesystem "
443 "called C<\"var\"> you would do:"
444 msgstr ""
445
446 # type: verbatim
447 #: ../src/guestfs.pod:211
448 #, no-wrap
449 msgid ""
450 " guestfs_mkdir (g, \"/var\");\n"
451 "\n"
452 msgstr ""
453
454 # type: textblock
455 #: ../src/guestfs.pod:213
456 msgid "To create a symlink you could do:"
457 msgstr ""
458
459 # type: verbatim
460 #: ../src/guestfs.pod:215
461 #, no-wrap
462 msgid ""
463 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
464 "               \"/etc/rc3.d/S30portmap\");\n"
465 "\n"
466 msgstr ""
467
468 # type: textblock
469 #: ../src/guestfs.pod:218
470 msgid ""
471 "Libguestfs will reject attempts to use relative paths and there is no "
472 "concept of a current working directory."
473 msgstr ""
474
475 # type: textblock
476 #: ../src/guestfs.pod:221
477 msgid ""
478 "Libguestfs can return errors in many situations: for example if the "
479 "filesystem isn't writable, or if a file or directory that you requested "
480 "doesn't exist.  If you are using the C API (documented here)  you have to "
481 "check for those error conditions after each call.  (Other language bindings "
482 "turn these errors into exceptions)."
483 msgstr ""
484
485 # type: textblock
486 #: ../src/guestfs.pod:227
487 msgid ""
488 "File writes are affected by the per-handle umask, set by calling "
489 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
490 msgstr ""
491
492 # type: =head2
493 #: ../src/guestfs.pod:230
494 msgid "PARTITIONING"
495 msgstr ""
496
497 # type: textblock
498 #: ../src/guestfs.pod:232
499 msgid ""
500 "Libguestfs contains API calls to read, create and modify partition tables on "
501 "disk images."
502 msgstr ""
503
504 # type: textblock
505 #: ../src/guestfs.pod:235
506 msgid ""
507 "In the common case where you want to create a single partition covering the "
508 "whole disk, you should use the L</guestfs_part_disk> call:"
509 msgstr ""
510
511 # type: verbatim
512 #: ../src/guestfs.pod:239
513 #, no-wrap
514 msgid ""
515 " const char *parttype = \"mbr\";\n"
516 " if (disk_is_larger_than_2TB)\n"
517 "   parttype = \"gpt\";\n"
518 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
519 "\n"
520 msgstr ""
521
522 # type: textblock
523 #: ../src/guestfs.pod:244
524 msgid ""
525 "Obviously this effectively wipes anything that was on that disk image "
526 "before."
527 msgstr ""
528
529 # type: =head2
530 #: ../src/guestfs.pod:247
531 msgid "LVM2"
532 msgstr ""
533
534 # type: textblock
535 #: ../src/guestfs.pod:249
536 msgid ""
537 "Libguestfs provides access to a large part of the LVM2 API, such as "
538 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
539 "unless you familiarize yourself with the concepts of physical volumes, "
540 "volume groups and logical volumes."
541 msgstr ""
542
543 # type: textblock
544 #: ../src/guestfs.pod:254
545 msgid ""
546 "This author strongly recommends reading the LVM HOWTO, online at "
547 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
548 msgstr ""
549
550 # type: =head2
551 #: ../src/guestfs.pod:257
552 msgid "DOWNLOADING"
553 msgstr ""
554
555 # type: textblock
556 #: ../src/guestfs.pod:259
557 msgid ""
558 "Use L</guestfs_cat> to download small, text only files.  This call is "
559 "limited to files which are less than 2 MB and which cannot contain any ASCII "
560 "NUL (C<\\0>) characters.  However it has a very simple to use API."
561 msgstr ""
562
563 # type: textblock
564 #: ../src/guestfs.pod:264
565 msgid ""
566 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
567 "bit data, since it returns a (pointer, size) pair.  However it is still "
568 "limited to \"small\" files, less than 2 MB."
569 msgstr ""
570
571 # type: textblock
572 #: ../src/guestfs.pod:268
573 msgid ""
574 "L</guestfs_download> can be used to download any file, with no limits on "
575 "content or size (even files larger than 4 GB)."
576 msgstr ""
577
578 # type: textblock
579 #: ../src/guestfs.pod:271
580 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
581 msgstr ""
582
583 # type: =head2
584 #: ../src/guestfs.pod:274
585 msgid "UPLOADING"
586 msgstr ""
587
588 # type: textblock
589 #: ../src/guestfs.pod:276
590 msgid ""
591 "It's often the case that you want to write a file or files to the disk "
592 "image."
593 msgstr ""
594
595 # type: textblock
596 #: ../src/guestfs.pod:279
597 msgid ""
598 "To write a small file with fixed content, use L</guestfs_write>.  To create "
599 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
600 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
601 "variety of other functions for creating test files, for example "
602 "L</guestfs_fill> and L</guestfs_fill_pattern>."
603 msgstr ""
604
605 # type: textblock
606 #: ../src/guestfs.pod:285
607 msgid ""
608 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
609 "file content or size (even files larger than 4 GB)."
610 msgstr ""
611
612 # type: textblock
613 #: ../src/guestfs.pod:288
614 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
615 msgstr ""
616
617 # type: textblock
618 #: ../src/guestfs.pod:290
619 msgid ""
620 "However the fastest way to upload I<large numbers of arbitrary files> is to "
621 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
622 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
623 "the drive in a predictable way (eg. adding it last after all other drives) "
624 "then you can get the device name from L</guestfs_list_devices> and mount it "
625 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
626 "sometimes non-portable between kernel versions, and they don't support "
627 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
628 "using a label or UUID, use an ISO image instead."
629 msgstr ""
630
631 # type: =head2
632 #: ../src/guestfs.pod:301
633 msgid "COPYING"
634 msgstr ""
635
636 # type: textblock
637 #: ../src/guestfs.pod:303
638 msgid ""
639 "There are various different commands for copying between files and devices "
640 "and in and out of the guest filesystem.  These are summarised in the table "
641 "below."
642 msgstr ""
643
644 # type: =item
645 #: ../src/guestfs.pod:309
646 msgid "B<file> to B<file>"
647 msgstr ""
648
649 # type: textblock
650 #: ../src/guestfs.pod:311
651 msgid ""
652 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
653 "directories recursively."
654 msgstr ""
655
656 # type: =item
657 #: ../src/guestfs.pod:314
658 msgid "B<file or device> to B<file or device>"
659 msgstr ""
660
661 # type: textblock
662 #: ../src/guestfs.pod:316
663 msgid ""
664 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
665 "devices in the guest."
666 msgstr ""
667
668 # type: textblock
669 #: ../src/guestfs.pod:319
670 msgid "Example: duplicate the contents of an LV:"
671 msgstr ""
672
673 # type: verbatim
674 #: ../src/guestfs.pod:321
675 #, no-wrap
676 msgid ""
677 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
678 "\n"
679 msgstr ""
680
681 # type: textblock
682 #: ../src/guestfs.pod:323
683 msgid ""
684 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
685 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
686 "L</guestfs_copy_size>."
687 msgstr ""
688
689 # type: =item
690 #: ../src/guestfs.pod:327
691 msgid "B<file on the host> to B<file or device>"
692 msgstr ""
693
694 # type: textblock
695 #: ../src/guestfs.pod:329
696 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
697 msgstr ""
698
699 # type: =item
700 #: ../src/guestfs.pod:331
701 msgid "B<file or device> to B<file on the host>"
702 msgstr ""
703
704 # type: textblock
705 #: ../src/guestfs.pod:333
706 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
707 msgstr ""
708
709 # type: =head2
710 #: ../src/guestfs.pod:337
711 msgid "LISTING FILES"
712 msgstr ""
713
714 # type: textblock
715 #: ../src/guestfs.pod:339
716 msgid ""
717 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
718 "L<guestfish(1)>-equivalent command C<ll>)."
719 msgstr ""
720
721 # type: textblock
722 #: ../src/guestfs.pod:342
723 msgid ""
724 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
725 "programs, as a flat list of strings."
726 msgstr ""
727
728 # type: textblock
729 #: ../src/guestfs.pod:345
730 msgid ""
731 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
732 "directory, plus additional information about each one.  It is more "
733 "equivalent to using the L<readdir(3)> call on a local filesystem."
734 msgstr ""
735
736 # type: textblock
737 #: ../src/guestfs.pod:349
738 msgid ""
739 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
740 "files."
741 msgstr ""
742
743 # type: =head2
744 #: ../src/guestfs.pod:352
745 msgid "RUNNING COMMANDS"
746 msgstr ""
747
748 # type: textblock
749 #: ../src/guestfs.pod:354
750 msgid ""
751 "Although libguestfs is primarily an API for manipulating files inside guest "
752 "images, we also provide some limited facilities for running commands inside "
753 "guests."
754 msgstr ""
755
756 # type: textblock
757 #: ../src/guestfs.pod:358
758 msgid "There are many limitations to this:"
759 msgstr ""
760
761 # type: =item
762 #: ../src/guestfs.pod:362 ../src/guestfs.pod:367 ../src/guestfs.pod:372 ../src/guestfs.pod:376 ../src/guestfs.pod:381 ../src/guestfs.pod:385 ../src/guestfs.pod:390 ../src/guestfs.pod:395 ../src/guestfs.pod:954 ../src/guestfs.pod:958 ../src/guestfs.pod:962 ../src/guestfs.pod:967 ../src/guestfs.pod:975 ../src/guestfs.pod:994 ../src/guestfs.pod:1002 ../src/guestfs.pod:1024 ../src/guestfs.pod:1028 ../src/guestfs.pod:1032 ../src/guestfs.pod:1036 ../src/guestfs.pod:1040 ../src/guestfs.pod:1044 ../src/guestfs.pod:1526 ../src/guestfs.pod:1531 ../src/guestfs.pod:1535 ../src/guestfs.pod:1645 ../src/guestfs.pod:1650 ../src/guestfs.pod:1654 ../src/guestfs.pod:2006 ../src/guestfs.pod:2012 ../src/guestfs.pod:2017 ../src/guestfs.pod:2023 ../src/guestfs.pod:2135 ../src/guestfs.pod:2139 ../src/guestfs.pod:2143 ../src/guestfs.pod:2147 ../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:427 ../fish/guestfish.pod:431 ../fish/guestfish.pod:435 ../fish/guestfish.pod:439 ../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-win-reg.pl:536 ../tools/virt-win-reg.pl:542 ../tools/virt-win-reg.pl:548 ../tools/virt-resize.pl:345 ../tools/virt-resize.pl:350 ../tools/virt-resize.pl:360
763 msgid "*"
764 msgstr ""
765
766 # type: textblock
767 #: ../src/guestfs.pod:364
768 msgid ""
769 "The kernel version that the command runs under will be different from what "
770 "it expects."
771 msgstr ""
772
773 # type: textblock
774 #: ../src/guestfs.pod:369
775 msgid ""
776 "If the command needs to communicate with daemons, then most likely they "
777 "won't be running."
778 msgstr ""
779
780 # type: textblock
781 #: ../src/guestfs.pod:374
782 msgid "The command will be running in limited memory."
783 msgstr ""
784
785 # type: textblock
786 #: ../src/guestfs.pod:378
787 msgid ""
788 "The network may not be available unless you enable it (see "
789 "L</guestfs_set_network>)."
790 msgstr ""
791
792 # type: textblock
793 #: ../src/guestfs.pod:383
794 msgid "Only supports Linux guests (not Windows, BSD, etc)."
795 msgstr ""
796
797 # type: textblock
798 #: ../src/guestfs.pod:387
799 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
800 msgstr ""
801
802 # type: textblock
803 #: ../src/guestfs.pod:392
804 msgid ""
805 "For SELinux guests, you may need to enable SELinux and load policy first.  "
806 "See L</SELINUX> in this manpage."
807 msgstr ""
808
809 # type: textblock
810 #: ../src/guestfs.pod:397
811 msgid ""
812 "I<Security:> It is not safe to run commands from untrusted, possibly "
813 "malicious guests.  These commands may attempt to exploit your program by "
814 "sending unexpected output.  They could also try to exploit the Linux kernel "
815 "or qemu provided by the libguestfs appliance.  They could use the network "
816 "provided by the libguestfs appliance to bypass ordinary network partitions "
817 "and firewalls.  They could use the elevated privileges or different SELinux "
818 "context of your program to their advantage."
819 msgstr ""
820
821 # type: textblock
822 #: ../src/guestfs.pod:406
823 msgid ""
824 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
825 "(a script which runs when the guest next boots normally), and to have this "
826 "script run the commands you want in the normal context of the running guest, "
827 "network security and so on.  For information about other security issues, "
828 "see L</SECURITY>."
829 msgstr ""
830
831 # type: textblock
832 #: ../src/guestfs.pod:414
833 msgid ""
834 "The two main API calls to run commands are L</guestfs_command> and "
835 "L</guestfs_sh> (there are also variations)."
836 msgstr ""
837
838 # type: textblock
839 #: ../src/guestfs.pod:417
840 msgid ""
841 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
842 "shell globs, redirections, etc will work."
843 msgstr ""
844
845 # type: =head2
846 #: ../src/guestfs.pod:420
847 msgid "CONFIGURATION FILES"
848 msgstr ""
849
850 # type: textblock
851 #: ../src/guestfs.pod:422
852 msgid ""
853 "To read and write configuration files in Linux guest filesystems, we "
854 "strongly recommend using Augeas.  For example, Augeas understands how to "
855 "read and write, say, a Linux shadow password file or X.org configuration "
856 "file, and so avoids you having to write that code."
857 msgstr ""
858
859 # type: textblock
860 #: ../src/guestfs.pod:427
861 msgid ""
862 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
863 "document Augeas itself here because there is excellent documentation on the "
864 "L<http://augeas.net/> website."
865 msgstr ""
866
867 # type: textblock
868 #: ../src/guestfs.pod:431
869 msgid ""
870 "If you don't want to use Augeas (you fool!) then try calling "
871 "L</guestfs_read_lines> to get the file as a list of lines which you can "
872 "iterate over."
873 msgstr ""
874
875 # type: =head2
876 #: ../src/guestfs.pod:435
877 msgid "SELINUX"
878 msgstr ""
879
880 # type: textblock
881 #: ../src/guestfs.pod:437
882 msgid ""
883 "We support SELinux guests.  To ensure that labeling happens correctly in "
884 "SELinux guests, you need to enable SELinux and load the guest's policy:"
885 msgstr ""
886
887 # type: =item
888 #: ../src/guestfs.pod:443 ../src/guestfs.pod:1147 ../src/guestfs.pod:1278
889 msgid "1."
890 msgstr ""
891
892 # type: textblock
893 #: ../src/guestfs.pod:445
894 msgid "Before launching, do:"
895 msgstr ""
896
897 # type: verbatim
898 #: ../src/guestfs.pod:447
899 #, no-wrap
900 msgid ""
901 " guestfs_set_selinux (g, 1);\n"
902 "\n"
903 msgstr ""
904
905 # type: =item
906 #: ../src/guestfs.pod:449 ../src/guestfs.pod:1151 ../src/guestfs.pod:1282
907 msgid "2."
908 msgstr ""
909
910 # type: textblock
911 #: ../src/guestfs.pod:451
912 msgid ""
913 "After mounting the guest's filesystem(s), load the policy.  This is best "
914 "done by running the L<load_policy(8)> command in the guest itself:"
915 msgstr ""
916
917 # type: verbatim
918 #: ../src/guestfs.pod:455
919 #, no-wrap
920 msgid ""
921 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
922 "\n"
923 msgstr ""
924
925 # type: textblock
926 #: ../src/guestfs.pod:457
927 msgid ""
928 "(Older versions of C<load_policy> require you to specify the name of the "
929 "policy file)."
930 msgstr ""
931
932 # type: =item
933 #: ../src/guestfs.pod:460 ../src/guestfs.pod:1288
934 msgid "3."
935 msgstr ""
936
937 # type: textblock
938 #: ../src/guestfs.pod:462
939 msgid ""
940 "Optionally, set the security context for the API.  The correct security "
941 "context to use can only be known by inspecting the guest.  As an example:"
942 msgstr ""
943
944 # type: verbatim
945 #: ../src/guestfs.pod:466
946 #, no-wrap
947 msgid ""
948 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
949 "\n"
950 msgstr ""
951
952 # type: textblock
953 #: ../src/guestfs.pod:470
954 msgid "This will work for running commands and editing existing files."
955 msgstr ""
956
957 # type: textblock
958 #: ../src/guestfs.pod:472
959 msgid ""
960 "When new files are created, you may need to label them explicitly, for "
961 "example by running the external command C<restorecon pathname>."
962 msgstr ""
963
964 # type: =head2
965 #: ../src/guestfs.pod:476
966 msgid "UMASK"
967 msgstr ""
968
969 # type: textblock
970 #: ../src/guestfs.pod:478
971 msgid ""
972 "Certain calls are affected by the current file mode creation mask (the "
973 "\"umask\").  In particular ones which create files or directories, such as "
974 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
975 "either the default mode that the file is created with or modifies the mode "
976 "that you supply."
977 msgstr ""
978
979 # type: textblock
980 #: ../src/guestfs.pod:484
981 msgid ""
982 "The default umask is C<022>, so files are created with modes such as C<0644> "
983 "and directories with C<0755>."
984 msgstr ""
985
986 # type: textblock
987 #: ../src/guestfs.pod:487
988 msgid ""
989 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
990 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
991 "L</guestfs_chmod> after creating each file or directory."
992 msgstr ""
993
994 # type: textblock
995 #: ../src/guestfs.pod:491
996 msgid "For more information about umask, see L<umask(2)>."
997 msgstr ""
998
999 # type: =head1
1000 #: ../src/guestfs.pod:493 ../fish/guestfish.pod:720
1001 msgid "ENCRYPTED DISKS"
1002 msgstr ""
1003
1004 # type: textblock
1005 #: ../src/guestfs.pod:495
1006 msgid ""
1007 "Libguestfs allows you to access Linux guests which have been encrypted using "
1008 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1009 "standard.  This includes nearly all whole disk encryption systems used by "
1010 "modern Linux guests."
1011 msgstr ""
1012
1013 # type: textblock
1014 #: ../src/guestfs.pod:501
1015 msgid ""
1016 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1017 "returns the string C<crypto_LUKS>)."
1018 msgstr ""
1019
1020 # type: textblock
1021 #: ../src/guestfs.pod:504
1022 msgid ""
1023 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1024 "will require the passphrase!"
1025 msgstr ""
1026
1027 # type: textblock
1028 #: ../src/guestfs.pod:507
1029 msgid ""
1030 "Opening a LUKS device creates a new device mapper device called "
1031 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1032 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1033 "decrypted from and encrypted to the underlying block device respectively."
1034 msgstr ""
1035
1036 # type: textblock
1037 #: ../src/guestfs.pod:513
1038 msgid ""
1039 "LVM volume groups on the device can be made visible by calling "
1040 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1041 "volume(s) can now be mounted in the usual way."
1042 msgstr ""
1043
1044 # type: textblock
1045 #: ../src/guestfs.pod:517
1046 msgid ""
1047 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1048 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1049 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1050 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1051 "underlying encrypted block device)."
1052 msgstr ""
1053
1054 # type: =head2
1055 #: ../src/guestfs.pod:524
1056 msgid "INSPECTION"
1057 msgstr ""
1058
1059 # type: textblock
1060 #: ../src/guestfs.pod:526
1061 msgid ""
1062 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1063 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1064 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1065 "frequently used part of this library has been rewritten in C and moved into "
1066 "the core code)."
1067 msgstr ""
1068
1069 # type: textblock
1070 #: ../src/guestfs.pod:532
1071 msgid ""
1072 "Add all disks belonging to the unknown virtual machine and call "
1073 "L</guestfs_launch> in the usual way."
1074 msgstr ""
1075
1076 # type: textblock
1077 #: ../src/guestfs.pod:535
1078 msgid ""
1079 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1080 "and certain heuristics, and returns a list of operating systems that were "
1081 "found.  An empty list means none were found.  A single element is the root "
1082 "filesystem of the operating system.  For dual- or multi-boot guests, "
1083 "multiple roots can be returned, each one corresponding to a separate "
1084 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1085 "world of virtualization, but since this scenario can happen, we have built "
1086 "libguestfs to deal with it.)"
1087 msgstr ""
1088
1089 # type: textblock
1090 #: ../src/guestfs.pod:544
1091 msgid ""
1092 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1093 "to get additional details about that operating system.  For example, call "
1094 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1095 "Windows and Linux-based operating systems respectively."
1096 msgstr ""
1097
1098 # type: textblock
1099 #: ../src/guestfs.pod:550
1100 msgid ""
1101 "Un*x-like and Linux-based operating systems usually consist of several "
1102 "filesystems which are mounted at boot time (for example, a separate boot "
1103 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1104 "filesystems correspond to mount points.  Call "
1105 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1106 "hash table like this example:"
1107 msgstr ""
1108
1109 # type: verbatim
1110 #: ../src/guestfs.pod:557
1111 #, no-wrap
1112 msgid ""
1113 " /boot => /dev/sda1\n"
1114 " /     => /dev/vg_guest/lv_root\n"
1115 " /usr  => /dev/vg_guest/lv_usr\n"
1116 "\n"
1117 msgstr ""
1118
1119 # type: textblock
1120 #: ../src/guestfs.pod:561
1121 msgid ""
1122 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1123 "filesystems as suggested."
1124 msgstr ""
1125
1126 # type: textblock
1127 #: ../src/guestfs.pod:564
1128 msgid ""
1129 "Be careful to mount filesystems in the right order (eg. C</> before "
1130 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1131 "work."
1132 msgstr ""
1133
1134 # type: textblock
1135 #: ../src/guestfs.pod:568
1136 msgid ""
1137 "Inspection currently only works for some common operating systems.  "
1138 "Contributors are welcome to send patches for other operating systems that we "
1139 "currently cannot detect."
1140 msgstr ""
1141
1142 # type: textblock
1143 #: ../src/guestfs.pod:572
1144 msgid ""
1145 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1146 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1147 "encrypted devices."
1148 msgstr ""
1149
1150 # type: textblock
1151 #: ../src/guestfs.pod:576
1152 msgid ""
1153 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1154 "inspection and caches the results in the guest handle.  Subsequent calls to "
1155 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1156 "re-read the disks.  If you change the content of the guest disks, you can "
1157 "redo inspection by calling L</guestfs_inspect_os> again.  "
1158 "(L</guestfs_inspect_list_applications> works a little differently from the "
1159 "other calls and does read the disks.  See documentation for that function "
1160 "for details)."
1161 msgstr ""
1162
1163 # type: =head2
1164 #: ../src/guestfs.pod:585
1165 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1166 msgstr ""
1167
1168 # type: textblock
1169 #: ../src/guestfs.pod:587
1170 msgid ""
1171 "Libguestfs can mount NTFS partitions.  It does this using the "
1172 "L<http://www.ntfs-3g.org/> driver."
1173 msgstr ""
1174
1175 # type: textblock
1176 #: ../src/guestfs.pod:590
1177 msgid ""
1178 "DOS and Windows still use drive letters, and the filesystems are always "
1179 "treated as case insensitive by Windows itself, and therefore you might find "
1180 "a Windows configuration file referring to a path like "
1181 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1182 "that directory might be referred to as C</WINDOWS/System32>."
1183 msgstr ""
1184
1185 # type: textblock
1186 #: ../src/guestfs.pod:596
1187 msgid ""
1188 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1189 "libguestfs to read the appropriate Windows Registry and configuration files, "
1190 "to determine yourself how drives are mapped (see also L<hivex(3)> and "
1191 "L<virt-inspector(1)>)."
1192 msgstr ""
1193
1194 # type: textblock
1195 #: ../src/guestfs.pod:601
1196 msgid ""
1197 "Replacing backslash characters with forward slash characters is also outside "
1198 "the scope of libguestfs, but something that you can easily do."
1199 msgstr ""
1200
1201 # type: textblock
1202 #: ../src/guestfs.pod:604
1203 msgid ""
1204 "Where we can help is in resolving the case insensitivity of paths.  For "
1205 "this, call L</guestfs_case_sensitive_path>."
1206 msgstr ""
1207
1208 # type: textblock
1209 #: ../src/guestfs.pod:607
1210 msgid ""
1211 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1212 "files, through the library C<hivex> which is part of the libguestfs project "
1213 "although ships as a separate tarball.  You have to locate and download the "
1214 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1215 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1216 "L<virt-win-reg(1)> for more help on this issue."
1217 msgstr ""
1218
1219 # type: =head2
1220 #: ../src/guestfs.pod:615
1221 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1222 msgstr ""
1223
1224 # type: textblock
1225 #: ../src/guestfs.pod:617
1226 msgid ""
1227 "Although we don't want to discourage you from using the C API, we will "
1228 "mention here that the same API is also available in other languages."
1229 msgstr ""
1230
1231 # type: textblock
1232 #: ../src/guestfs.pod:620
1233 msgid ""
1234 "The API is broadly identical in all supported languages.  This means that "
1235 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
1236 "C<g.mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1237 "words, a straightforward, predictable isomorphism between each language."
1238 msgstr ""
1239
1240 # type: textblock
1241 #: ../src/guestfs.pod:626
1242 msgid ""
1243 "Error messages are automatically transformed into exceptions if the language "
1244 "supports it."
1245 msgstr ""
1246
1247 # type: textblock
1248 #: ../src/guestfs.pod:629
1249 msgid ""
1250 "We don't try to \"object orientify\" parts of the API in OO languages, "
1251 "although contributors are welcome to write higher level APIs above what we "
1252 "provide in their favourite languages if they wish."
1253 msgstr ""
1254
1255 # type: =item
1256 #: ../src/guestfs.pod:635
1257 msgid "B<C++>"
1258 msgstr ""
1259
1260 # type: textblock
1261 #: ../src/guestfs.pod:637
1262 msgid ""
1263 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1264 "identical to the C API.  C++ classes and exceptions are not used."
1265 msgstr ""
1266
1267 # type: =item
1268 #: ../src/guestfs.pod:641
1269 msgid "B<C#>"
1270 msgstr ""
1271
1272 # type: textblock
1273 #: ../src/guestfs.pod:643
1274 msgid ""
1275 "The C# bindings are highly experimental.  Please read the warnings at the "
1276 "top of C<csharp/Libguestfs.cs>."
1277 msgstr ""
1278
1279 # type: =item
1280 #: ../src/guestfs.pod:646
1281 msgid "B<Haskell>"
1282 msgstr ""
1283
1284 # type: textblock
1285 #: ../src/guestfs.pod:648
1286 msgid ""
1287 "This is the only language binding that is working but incomplete.  Only "
1288 "calls which return simple integers have been bound in Haskell, and we are "
1289 "looking for help to complete this binding."
1290 msgstr ""
1291
1292 # type: =item
1293 #: ../src/guestfs.pod:652
1294 msgid "B<Java>"
1295 msgstr ""
1296
1297 # type: textblock
1298 #: ../src/guestfs.pod:654
1299 msgid ""
1300 "Full documentation is contained in the Javadoc which is distributed with "
1301 "libguestfs."
1302 msgstr ""
1303
1304 # type: =item
1305 #: ../src/guestfs.pod:657
1306 msgid "B<OCaml>"
1307 msgstr ""
1308
1309 # type: textblock
1310 #: ../src/guestfs.pod:659
1311 msgid "For documentation see L<guestfs-ocaml(3)>."
1312 msgstr ""
1313
1314 # type: =item
1315 #: ../src/guestfs.pod:661
1316 msgid "B<Perl>"
1317 msgstr ""
1318
1319 # type: textblock
1320 #: ../src/guestfs.pod:663
1321 msgid "For documentation see L<Sys::Guestfs(3)>."
1322 msgstr ""
1323
1324 # type: =item
1325 #: ../src/guestfs.pod:665
1326 msgid "B<PHP>"
1327 msgstr ""
1328
1329 # type: textblock
1330 #: ../src/guestfs.pod:667
1331 msgid ""
1332 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1333 "the php-libguestfs package for your distribution."
1334 msgstr ""
1335
1336 # type: textblock
1337 #: ../src/guestfs.pod:670
1338 msgid "The PHP binding only works correctly on 64 bit machines."
1339 msgstr ""
1340
1341 # type: =item
1342 #: ../src/guestfs.pod:672
1343 msgid "B<Python>"
1344 msgstr ""
1345
1346 # type: textblock
1347 #: ../src/guestfs.pod:674
1348 msgid "For documentation see L<guestfs-python(3)>."
1349 msgstr ""
1350
1351 # type: =item
1352 #: ../src/guestfs.pod:676
1353 msgid "B<Ruby>"
1354 msgstr ""
1355
1356 # type: textblock
1357 #: ../src/guestfs.pod:678
1358 msgid "For documentation see L<guestfs-ruby(3)>."
1359 msgstr ""
1360
1361 # type: =item
1362 #: ../src/guestfs.pod:680
1363 msgid "B<shell scripts>"
1364 msgstr ""
1365
1366 # type: textblock
1367 #: ../src/guestfs.pod:682
1368 msgid "For documentation see L<guestfish(1)>."
1369 msgstr ""
1370
1371 # type: =head2
1372 #: ../src/guestfs.pod:686
1373 msgid "LIBGUESTFS GOTCHAS"
1374 msgstr ""
1375
1376 # type: textblock
1377 #: ../src/guestfs.pod:688
1378 msgid ""
1379 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1380 "system [...] that works in the way it is documented but is counterintuitive "
1381 "and almost invites mistakes.\""
1382 msgstr ""
1383
1384 # type: textblock
1385 #: ../src/guestfs.pod:692
1386 msgid ""
1387 "Since we developed libguestfs and the associated tools, there are several "
1388 "things we would have designed differently, but are now stuck with for "
1389 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1390 "release, you can expect these to change.  Beware of them."
1391 msgstr ""
1392
1393 # type: =item
1394 #: ../src/guestfs.pod:700
1395 msgid "Autosync / forgetting to sync."
1396 msgstr ""
1397
1398 # type: textblock
1399 #: ../src/guestfs.pod:702
1400 msgid ""
1401 "When modifying a filesystem from C or another language, you B<must> unmount "
1402 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1403 "libguestfs handle.  You can also call:"
1404 msgstr ""
1405
1406 # type: verbatim
1407 #: ../src/guestfs.pod:706
1408 #, no-wrap
1409 msgid ""
1410 " guestfs_set_autosync (g, 1);\n"
1411 "\n"
1412 msgstr ""
1413
1414 # type: textblock
1415 #: ../src/guestfs.pod:708
1416 msgid ""
1417 "to have the unmount/sync done automatically for you when the handle 'g' is "
1418 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1419 "q.v.)"
1420 msgstr ""
1421
1422 # type: textblock
1423 #: ../src/guestfs.pod:712
1424 msgid ""
1425 "If you forget to do this, then it is entirely possible that your changes "
1426 "won't be written out, or will be partially written, or (very rarely) that "
1427 "you'll get disk corruption."
1428 msgstr ""
1429
1430 # type: textblock
1431 #: ../src/guestfs.pod:716
1432 msgid ""
1433 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1434 "guestfish scripts that forget to sync will work just fine, which can make "
1435 "this very puzzling if you are trying to debug a problem."
1436 msgstr ""
1437
1438 # type: textblock
1439 #: ../src/guestfs.pod:720
1440 msgid ""
1441 "Update: Autosync is enabled by default for all API users starting from "
1442 "libguestfs 1.5.24."
1443 msgstr ""
1444
1445 # type: =item
1446 #: ../src/guestfs.pod:723
1447 msgid "Mount option C<-o sync> should not be the default."
1448 msgstr ""
1449
1450 # type: textblock
1451 #: ../src/guestfs.pod:725
1452 msgid ""
1453 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1454 "However C<-o sync> does not add any reliability benefit, but does have a "
1455 "very large performance impact."
1456 msgstr ""
1457
1458 # type: textblock
1459 #: ../src/guestfs.pod:729
1460 msgid ""
1461 "The work around is to use L</guestfs_mount_options> and set the mount "
1462 "options that you actually want to use."
1463 msgstr ""
1464
1465 # type: =item
1466 #: ../src/guestfs.pod:732
1467 msgid "Read-only should be the default."
1468 msgstr ""
1469
1470 # type: textblock
1471 #: ../src/guestfs.pod:734
1472 msgid ""
1473 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1474 "specify I<--rw> if you want to make changes to the image."
1475 msgstr ""
1476
1477 # type: textblock
1478 #: ../src/guestfs.pod:737
1479 msgid "This would reduce the potential to corrupt live VM images."
1480 msgstr ""
1481
1482 # type: textblock
1483 #: ../src/guestfs.pod:739
1484 msgid ""
1485 "Note that many filesystems change the disk when you just mount and unmount, "
1486 "even if you didn't perform any writes.  You need to use "
1487 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1488 msgstr ""
1489
1490 # type: =item
1491 #: ../src/guestfs.pod:743
1492 msgid "guestfish command line is hard to use."
1493 msgstr ""
1494
1495 # type: textblock
1496 #: ../src/guestfs.pod:745
1497 msgid ""
1498 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1499 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1500 "exist, so it fails.  In earlier versions of guestfish the error message was "
1501 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1502 "we should have used C<guestfish -c command> to run commands."
1503 msgstr ""
1504
1505 # type: =item
1506 #: ../src/guestfs.pod:752
1507 msgid "guestfish megabyte modifiers don't work right on all commands"
1508 msgstr ""
1509
1510 # type: textblock
1511 #: ../src/guestfs.pod:754
1512 msgid ""
1513 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1514 "other modifiers).  What guestfish actually does is to multiply the number "
1515 "part by the modifier part and pass the result to the C API.  However this "
1516 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1517 "expecting some other unit (eg. megabytes)."
1518 msgstr ""
1519
1520 # type: textblock
1521 #: ../src/guestfs.pod:761
1522 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1523 msgstr ""
1524
1525 # type: verbatim
1526 #: ../src/guestfs.pod:763
1527 #, no-wrap
1528 msgid ""
1529 " lvcreate LV VG 100M\n"
1530 "\n"
1531 msgstr ""
1532
1533 # type: textblock
1534 #: ../src/guestfs.pod:765
1535 msgid ""
1536 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1537 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1538 "megabytes * megabytes) logical volume.  The error message you get from this "
1539 "is also a little obscure."
1540 msgstr ""
1541
1542 # type: textblock
1543 #: ../src/guestfs.pod:770
1544 msgid ""
1545 "This could be fixed in the generator by specially marking parameters and "
1546 "return values which take bytes or other units."
1547 msgstr ""
1548
1549 # type: =item
1550 #: ../src/guestfs.pod:773
1551 msgid "Ambiguity between devices and paths"
1552 msgstr ""
1553
1554 # type: textblock
1555 #: ../src/guestfs.pod:775
1556 msgid ""
1557 "There is a subtle ambiguity in the API between a device name "
1558 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1559 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1560 msgstr ""
1561
1562 # type: textblock
1563 #: ../src/guestfs.pod:780
1564 msgid ""
1565 "In the current API we usually resolve this ambiguity by having two separate "
1566 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1567 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1568 "detecting if the path supplied begins with C</dev/>."
1569 msgstr ""
1570
1571 # type: textblock
1572 #: ../src/guestfs.pod:786
1573 msgid ""
1574 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1575 "make paths/devices into structured names.  One way to do this would be to "
1576 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1577 "aspect of grub.  Another way would be to use a structured type, equivalent "
1578 "to this OCaml type:"
1579 msgstr ""
1580
1581 # type: verbatim
1582 #: ../src/guestfs.pod:792
1583 #, no-wrap
1584 msgid ""
1585 " type path = Path of string | Device of int | Partition of int * int\n"
1586 "\n"
1587 msgstr ""
1588
1589 # type: textblock
1590 #: ../src/guestfs.pod:794
1591 msgid "which would allow you to pass arguments like:"
1592 msgstr ""
1593
1594 # type: verbatim
1595 #: ../src/guestfs.pod:796
1596 #, no-wrap
1597 msgid ""
1598 " Path \"/foo/bar\"\n"
1599 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1600 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1601 " Path \"/dev/sdb2\"    (* not a device *)\n"
1602 "\n"
1603 msgstr ""
1604
1605 # type: textblock
1606 #: ../src/guestfs.pod:801
1607 msgid ""
1608 "As you can see there are still problems to resolve even with this "
1609 "representation.  Also consider how it might work in guestfish."
1610 msgstr ""
1611
1612 # type: =head2
1613 #: ../src/guestfs.pod:806
1614 msgid "PROTOCOL LIMITS"
1615 msgstr ""
1616
1617 # type: textblock
1618 #: ../src/guestfs.pod:808
1619 msgid ""
1620 "Internally libguestfs uses a message-based protocol to pass API calls and "
1621 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1622 "plenty more detail about this).  The maximum message size used by the "
1623 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1624 "aware of this limit.  The API calls which may be affected are individually "
1625 "documented, with a link back to this section of the documentation."
1626 msgstr ""
1627
1628 # type: textblock
1629 #: ../src/guestfs.pod:816
1630 msgid ""
1631 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1632 "a simple string.  Because this string is at some point internally encoded as "
1633 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1634 "the requested file is larger than this then you will get an error."
1635 msgstr ""
1636
1637 # type: textblock
1638 #: ../src/guestfs.pod:822
1639 msgid ""
1640 "In order to transfer large files into and out of the guest filesystem, you "
1641 "need to use particular calls that support this.  The sections L</UPLOADING> "
1642 "and L</DOWNLOADING> document how to do this."
1643 msgstr ""
1644
1645 # type: textblock
1646 #: ../src/guestfs.pod:826
1647 msgid ""
1648 "You might also consider mounting the disk image using our FUSE filesystem "
1649 "support (L<guestmount(1)>)."
1650 msgstr ""
1651
1652 # type: =head2
1653 #: ../src/guestfs.pod:829
1654 msgid "KEYS AND PASSPHRASES"
1655 msgstr ""
1656
1657 # type: textblock
1658 #: ../src/guestfs.pod:831
1659 msgid ""
1660 "Certain libguestfs calls take a parameter that contains sensitive key "
1661 "material, passed in as a C string."
1662 msgstr ""
1663
1664 # type: textblock
1665 #: ../src/guestfs.pod:834
1666 msgid ""
1667 "In the future we would hope to change the libguestfs implementation so that "
1668 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1669 "swap.  However this is I<not> done at the moment, because of the complexity "
1670 "of such an implementation."
1671 msgstr ""
1672
1673 # type: textblock
1674 #: ../src/guestfs.pod:839
1675 msgid ""
1676 "Therefore you should be aware that any key parameter you pass to libguestfs "
1677 "might end up being written out to the swap partition.  If this is a concern, "
1678 "scrub the swap partition or don't use libguestfs on encrypted devices."
1679 msgstr ""
1680
1681 # type: =head2
1682 #: ../src/guestfs.pod:844
1683 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1684 msgstr ""
1685
1686 # type: textblock
1687 #: ../src/guestfs.pod:846
1688 msgid ""
1689 "All high-level libguestfs actions are synchronous.  If you want to use "
1690 "libguestfs asynchronously then you must create a thread."
1691 msgstr ""
1692
1693 # type: textblock
1694 #: ../src/guestfs.pod:849
1695 msgid ""
1696 "Only use the handle from a single thread.  Either use the handle exclusively "
1697 "from one thread, or provide your own mutex so that two threads cannot issue "
1698 "calls on the same handle at the same time."
1699 msgstr ""
1700
1701 # type: textblock
1702 #: ../src/guestfs.pod:853
1703 msgid ""
1704 "See the graphical program guestfs-browser for one possible architecture for "
1705 "multithreaded programs using libvirt and libguestfs."
1706 msgstr ""
1707
1708 # type: =head2
1709 #: ../src/guestfs.pod:856
1710 msgid "PATH"
1711 msgstr ""
1712
1713 # type: textblock
1714 #: ../src/guestfs.pod:858
1715 msgid ""
1716 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1717 "internal path."
1718 msgstr ""
1719
1720 # type: textblock
1721 #: ../src/guestfs.pod:861
1722 msgid ""
1723 "By default it looks for these in the directory C<$libdir/guestfs> "
1724 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1725 msgstr ""
1726
1727 # type: textblock
1728 #: ../src/guestfs.pod:864
1729 msgid ""
1730 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1731 "to change the directories that libguestfs will search in.  The value is a "
1732 "colon-separated list of paths.  The current directory is I<not> searched "
1733 "unless the path contains an empty element or C<.>.  For example "
1734 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1735 "then C</usr/lib/guestfs>."
1736 msgstr ""
1737
1738 # type: =head2
1739 #: ../src/guestfs.pod:871
1740 msgid "QEMU WRAPPERS"
1741 msgstr ""
1742
1743 # type: textblock
1744 #: ../src/guestfs.pod:873
1745 msgid ""
1746 "If you want to compile your own qemu, run qemu from a non-standard location, "
1747 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1748 "around qemu."
1749 msgstr ""
1750
1751 # type: textblock
1752 #: ../src/guestfs.pod:877
1753 msgid ""
1754 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1755 "last command in the shell script (so that qemu replaces the shell and "
1756 "becomes the direct child of the libguestfs-using program).  If you don't do "
1757 "this, then the qemu process won't be cleaned up correctly."
1758 msgstr ""
1759
1760 # type: textblock
1761 #: ../src/guestfs.pod:882
1762 msgid ""
1763 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1764 "source:"
1765 msgstr ""
1766
1767 # type: verbatim
1768 #: ../src/guestfs.pod:885
1769 #, no-wrap
1770 msgid ""
1771 " #!/bin/sh -\n"
1772 " qemudir=/home/rjones/d/qemu\n"
1773 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
1774 "\"$@\"\n"
1775 "\n"
1776 msgstr ""
1777
1778 # type: textblock
1779 #: ../src/guestfs.pod:889
1780 msgid ""
1781 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1782 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1783 "example:"
1784 msgstr ""
1785
1786 # type: verbatim
1787 #: ../src/guestfs.pod:893
1788 #, no-wrap
1789 msgid ""
1790 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1791 "\n"
1792 msgstr ""
1793
1794 # type: textblock
1795 #: ../src/guestfs.pod:895
1796 msgid ""
1797 "Note that libguestfs also calls qemu with the -help and -version options in "
1798 "order to determine features."
1799 msgstr ""
1800
1801 # type: =head2
1802 #: ../src/guestfs.pod:898
1803 msgid "ABI GUARANTEE"
1804 msgstr ""
1805
1806 # type: textblock
1807 #: ../src/guestfs.pod:900
1808 msgid ""
1809 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1810 "actions as outlined in this section.  Although we will deprecate some "
1811 "actions, for example if they get replaced by newer calls, we will keep the "
1812 "old actions forever.  This allows you the developer to program in confidence "
1813 "against the libguestfs API."
1814 msgstr ""
1815
1816 # type: =head2
1817 #: ../src/guestfs.pod:906
1818 msgid "BLOCK DEVICE NAMING"
1819 msgstr ""
1820
1821 # type: textblock
1822 #: ../src/guestfs.pod:908
1823 msgid ""
1824 "In the kernel there is now quite a profusion of schemata for naming block "
1825 "devices (in this context, by I<block device> I mean a physical or virtual "
1826 "hard drive).  The original Linux IDE driver used names starting with "
1827 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
1828 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
1829 "replacement for the old IDE driver (particularly for SATA devices) those "
1830 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
1831 "machines with paravirtualized drivers.  This has created several different "
1832 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
1833 "Xen PV disks."
1834 msgstr ""
1835
1836 # type: textblock
1837 #: ../src/guestfs.pod:920
1838 msgid ""
1839 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1840 "Linux kernel to access block devices.  We can run a variety of appliances "
1841 "based on a variety of Linux kernels."
1842 msgstr ""
1843
1844 # type: textblock
1845 #: ../src/guestfs.pod:924
1846 msgid ""
1847 "This causes a problem for libguestfs because many API calls use device or "
1848 "partition names.  Working scripts and the recipe (example) scripts that we "
1849 "make available over the internet could fail if the naming scheme changes."
1850 msgstr ""
1851
1852 # type: textblock
1853 #: ../src/guestfs.pod:929
1854 msgid ""
1855 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
1856 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
1857 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
1858 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
1859 msgstr ""
1860
1861 # type: textblock
1862 #: ../src/guestfs.pod:935
1863 msgid ""
1864 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
1865 "L</guestfs_list_partitions> and similar calls return the true names of the "
1866 "devices and partitions as known to the appliance."
1867 msgstr ""
1868
1869 # type: =head3
1870 #: ../src/guestfs.pod:940
1871 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
1872 msgstr ""
1873
1874 # type: textblock
1875 #: ../src/guestfs.pod:942
1876 msgid ""
1877 "Usually this translation is transparent.  However in some (very rare)  cases "
1878 "you may need to know the exact algorithm.  Such cases include where you use "
1879 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
1880 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
1881 "devices."
1882 msgstr ""
1883
1884 # type: textblock
1885 #: ../src/guestfs.pod:948
1886 msgid ""
1887 "The algorithm is applied only to I<parameters> which are known to be either "
1888 "device or partition names.  Return values from functions such as "
1889 "L</guestfs_list_devices> are never changed."
1890 msgstr ""
1891
1892 # type: textblock
1893 #: ../src/guestfs.pod:956
1894 msgid "Is the string a parameter which is a device or partition name?"
1895 msgstr ""
1896
1897 # type: textblock
1898 #: ../src/guestfs.pod:960
1899 msgid "Does the string begin with C</dev/sd>?"
1900 msgstr ""
1901
1902 # type: textblock
1903 #: ../src/guestfs.pod:964
1904 msgid ""
1905 "Does the named device exist? If so, we use that device.  However if I<not> "
1906 "then we continue with this algorithm."
1907 msgstr ""
1908
1909 # type: textblock
1910 #: ../src/guestfs.pod:969
1911 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
1912 msgstr ""
1913
1914 # type: textblock
1915 #: ../src/guestfs.pod:971
1916 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
1917 msgstr ""
1918
1919 # type: textblock
1920 #: ../src/guestfs.pod:973
1921 msgid "If that named device exists, use it.  If not, continue."
1922 msgstr ""
1923
1924 # type: textblock
1925 #: ../src/guestfs.pod:977
1926 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
1927 msgstr ""
1928
1929 # type: textblock
1930 #: ../src/guestfs.pod:979
1931 msgid "If that named device exists, use it.  If not, return an error."
1932 msgstr ""
1933
1934 # type: =head3
1935 #: ../src/guestfs.pod:983
1936 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
1937 msgstr ""
1938
1939 # type: textblock
1940 #: ../src/guestfs.pod:985
1941 msgid ""
1942 "Although the standard naming scheme and automatic translation is useful for "
1943 "simple programs and guestfish scripts, for larger programs it is best not to "
1944 "rely on this mechanism."
1945 msgstr ""
1946
1947 # type: textblock
1948 #: ../src/guestfs.pod:989
1949 msgid ""
1950 "Where possible for maximum future portability programs using libguestfs "
1951 "should use these future-proof techniques:"
1952 msgstr ""
1953
1954 # type: textblock
1955 #: ../src/guestfs.pod:996
1956 msgid ""
1957 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
1958 "device names, and then use those names directly."
1959 msgstr ""
1960
1961 # type: textblock
1962 #: ../src/guestfs.pod:999
1963 msgid "Since those device names exist by definition, they will never be translated."
1964 msgstr ""
1965
1966 # type: textblock
1967 #: ../src/guestfs.pod:1004
1968 msgid ""
1969 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
1970 "filesystem labels."
1971 msgstr ""
1972
1973 # type: =head1
1974 #: ../src/guestfs.pod:1009
1975 msgid "SECURITY"
1976 msgstr ""
1977
1978 # type: textblock
1979 #: ../src/guestfs.pod:1011
1980 msgid ""
1981 "This section discusses security implications of using libguestfs, "
1982 "particularly with untrusted or malicious guests or disk images."
1983 msgstr ""
1984
1985 # type: =head2
1986 #: ../src/guestfs.pod:1014
1987 msgid "GENERAL SECURITY CONSIDERATIONS"
1988 msgstr ""
1989
1990 # type: textblock
1991 #: ../src/guestfs.pod:1016
1992 msgid ""
1993 "Be careful with any files or data that you download from a guest (by "
1994 "\"download\" we mean not just the L</guestfs_download> command but any "
1995 "command that reads files, filenames, directories or anything else from a "
1996 "disk image).  An attacker could manipulate the data to fool your program "
1997 "into doing the wrong thing.  Consider cases such as:"
1998 msgstr ""
1999
2000 # type: textblock
2001 #: ../src/guestfs.pod:1026
2002 msgid "the data (file etc) not being present"
2003 msgstr ""
2004
2005 # type: textblock
2006 #: ../src/guestfs.pod:1030
2007 msgid "being present but empty"
2008 msgstr ""
2009
2010 # type: textblock
2011 #: ../src/guestfs.pod:1034
2012 msgid "being much larger than normal"
2013 msgstr ""
2014
2015 # type: textblock
2016 #: ../src/guestfs.pod:1038
2017 msgid "containing arbitrary 8 bit data"
2018 msgstr ""
2019
2020 # type: textblock
2021 #: ../src/guestfs.pod:1042
2022 msgid "being in an unexpected character encoding"
2023 msgstr ""
2024
2025 # type: textblock
2026 #: ../src/guestfs.pod:1046
2027 msgid "containing homoglyphs."
2028 msgstr ""
2029
2030 # type: =head2
2031 #: ../src/guestfs.pod:1050
2032 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2033 msgstr ""
2034
2035 # type: textblock
2036 #: ../src/guestfs.pod:1052
2037 msgid ""
2038 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2039 "(VFS) module can sometimes be escalated into exploits by deliberately "
2040 "creating a malicious, malformed filesystem.  These exploits are very severe "
2041 "for two reasons.  Firstly there are very many filesystem drivers in the "
2042 "kernel, and many of them are infrequently used and not much developer "
2043 "attention has been paid to the code.  Linux userspace helps potential "
2044 "crackers by detecting the filesystem type and automatically choosing the "
2045 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2046 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2047 "exploit (worse in some ways), giving immediate and total access to the "
2048 "system right down to the hardware level."
2049 msgstr ""
2050
2051 # type: textblock
2052 #: ../src/guestfs.pod:1065
2053 msgid ""
2054 "That explains why you should never mount a filesystem from an untrusted "
2055 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2056 "inside a qemu virtual machine, usually running as a non-root user.  The "
2057 "attacker would need to write a filesystem which first exploited the kernel, "
2058 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2059 "the libguestfs protocol, and finally to be as serious as the host kernel "
2060 "exploit it would need to escalate its privileges to root.  This multi-step "
2061 "escalation, performed by a static piece of data, is thought to be extremely "
2062 "hard to do, although we never say 'never' about security issues."
2063 msgstr ""
2064
2065 # type: textblock
2066 #: ../src/guestfs.pod:1076
2067 msgid ""
2068 "In any case callers can reduce the attack surface by forcing the filesystem "
2069 "type when mounting (use L</guestfs_mount_vfs>)."
2070 msgstr ""
2071
2072 # type: =head2
2073 #: ../src/guestfs.pod:1079
2074 msgid "PROTOCOL SECURITY"
2075 msgstr ""
2076
2077 # type: textblock
2078 #: ../src/guestfs.pod:1081
2079 msgid ""
2080 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2081 "defined upper message size.  However a program that uses libguestfs must "
2082 "also take care - for example you can write a program that downloads a binary "
2083 "from a disk image and executes it locally, and no amount of protocol "
2084 "security will save you from the consequences."
2085 msgstr ""
2086
2087 # type: =head2
2088 #: ../src/guestfs.pod:1087
2089 msgid "INSPECTION SECURITY"
2090 msgstr ""
2091
2092 # type: textblock
2093 #: ../src/guestfs.pod:1089
2094 msgid ""
2095 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2096 "directly from the guest, and these could contain any 8 bit data.  Callers "
2097 "should be careful to escape these before printing them to a structured file "
2098 "(for example, use HTML escaping if creating a web page)."
2099 msgstr ""
2100
2101 # type: textblock
2102 #: ../src/guestfs.pod:1095
2103 msgid ""
2104 "Guest configuration may be altered in unusual ways by the administrator of "
2105 "the virtual machine, and may not reflect reality (particularly for untrusted "
2106 "or actively malicious guests).  For example we parse the hostname from "
2107 "configuration files like C</etc/sysconfig/network> that we find in the "
2108 "guest, but the guest administrator can easily manipulate these files to "
2109 "provide the wrong hostname."
2110 msgstr ""
2111
2112 # type: textblock
2113 #: ../src/guestfs.pod:1103
2114 msgid ""
2115 "The inspection API parses guest configuration using two external libraries: "
2116 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2117 "designed to be robust in the face of malicious data, although denial of "
2118 "service attacks are still possible, for example with oversized configuration "
2119 "files."
2120 msgstr ""
2121
2122 # type: =head2
2123 #: ../src/guestfs.pod:1109
2124 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2125 msgstr ""
2126
2127 # type: textblock
2128 #: ../src/guestfs.pod:1111
2129 msgid ""
2130 "Be very cautious about running commands from the guest.  By running a "
2131 "command in the guest, you are giving CPU time to a binary that you do not "
2132 "control, under the same user account as the library, albeit wrapped in qemu "
2133 "virtualization.  More information and alternatives can be found in the "
2134 "section L</RUNNING COMMANDS>."
2135 msgstr ""
2136
2137 # type: =head2
2138 #: ../src/guestfs.pod:1117
2139 msgid "CVE-2010-3851"
2140 msgstr ""
2141
2142 # type: textblock
2143 #: ../src/guestfs.pod:1119
2144 msgid "https://bugzilla.redhat.com/642934"
2145 msgstr ""
2146
2147 # type: textblock
2148 #: ../src/guestfs.pod:1121
2149 msgid ""
2150 "This security bug concerns the automatic disk format detection that qemu "
2151 "does on disk images."
2152 msgstr ""
2153
2154 # type: textblock
2155 #: ../src/guestfs.pod:1124
2156 msgid ""
2157 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2158 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2159 "for one of the known headers, and if none is found then assuming the disk "
2160 "image must be raw."
2161 msgstr ""
2162
2163 # type: textblock
2164 #: ../src/guestfs.pod:1129
2165 msgid ""
2166 "This allows a guest which has been given a raw disk image to write some "
2167 "other header.  At next boot (or when the disk image is accessed by "
2168 "libguestfs) qemu would do autodetection and think the disk image format was, "
2169 "say, qcow2 based on the header written by the guest."
2170 msgstr ""
2171
2172 # type: textblock
2173 #: ../src/guestfs.pod:1134
2174 msgid ""
2175 "This in itself would not be a problem, but qcow2 offers many features, one "
2176 "of which is to allow a disk image to refer to another image (called the "
2177 "\"backing disk\").  It does this by placing the path to the backing disk "
2178 "into the qcow2 header.  This path is not validated and could point to any "
2179 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2180 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2181 "control of the attacker."
2182 msgstr ""
2183
2184 # type: textblock
2185 #: ../src/guestfs.pod:1142
2186 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2187 msgstr ""
2188
2189 # type: textblock
2190 #: ../src/guestfs.pod:1149
2191 msgid "You have enabled the network or have opened the disk in write mode."
2192 msgstr ""
2193
2194 # type: textblock
2195 #: ../src/guestfs.pod:1153
2196 msgid ""
2197 "You are also running untrusted code from the guest (see L</RUNNING "
2198 "COMMANDS>)."
2199 msgstr ""
2200
2201 # type: textblock
2202 #: ../src/guestfs.pod:1158
2203 msgid ""
2204 "The way to avoid this is to specify the expected disk format when adding "
2205 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2206 "should always do this if the disk is raw format, and it's a good idea for "
2207 "other cases too."
2208 msgstr ""
2209
2210 # type: textblock
2211 #: ../src/guestfs.pod:1163
2212 msgid ""
2213 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2214 "format is fetched from libvirt and passed through."
2215 msgstr ""
2216
2217 # type: textblock
2218 #: ../src/guestfs.pod:1166
2219 msgid ""
2220 "For libguestfs tools, use the I<--format> command line parameter as "
2221 "appropriate."
2222 msgstr ""
2223
2224 # type: =head1
2225 #: ../src/guestfs.pod:1169
2226 msgid "CONNECTION MANAGEMENT"
2227 msgstr ""
2228
2229 # type: =head2
2230 #: ../src/guestfs.pod:1171
2231 msgid "guestfs_h *"
2232 msgstr ""
2233
2234 # type: textblock
2235 #: ../src/guestfs.pod:1173
2236 msgid ""
2237 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2238 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2239 "handle and release all resources used."
2240 msgstr ""
2241
2242 # type: textblock
2243 #: ../src/guestfs.pod:1177
2244 msgid ""
2245 "For information on using multiple handles and threads, see the section "
2246 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2247 msgstr ""
2248
2249 # type: =head2
2250 #: ../src/guestfs.pod:1180
2251 msgid "guestfs_create"
2252 msgstr ""
2253
2254 # type: verbatim
2255 #: ../src/guestfs.pod:1182
2256 #, no-wrap
2257 msgid ""
2258 " guestfs_h *guestfs_create (void);\n"
2259 "\n"
2260 msgstr ""
2261
2262 # type: textblock
2263 #: ../src/guestfs.pod:1184
2264 msgid "Create a connection handle."
2265 msgstr ""
2266
2267 # type: textblock
2268 #: ../src/guestfs.pod:1186
2269 msgid ""
2270 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2271 "on the handle at least once."
2272 msgstr ""
2273
2274 # type: textblock
2275 #: ../src/guestfs.pod:1189
2276 msgid ""
2277 "This function returns a non-NULL pointer to a handle on success or NULL on "
2278 "error."
2279 msgstr ""
2280
2281 # type: textblock
2282 #: ../src/guestfs.pod:1192
2283 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2284 msgstr ""
2285
2286 # type: textblock
2287 #: ../src/guestfs.pod:1194
2288 msgid ""
2289 "You may also want to configure error handling for the handle.  See L</ERROR "
2290 "HANDLING> section below."
2291 msgstr ""
2292
2293 # type: =head2
2294 #: ../src/guestfs.pod:1197
2295 msgid "guestfs_close"
2296 msgstr ""
2297
2298 # type: verbatim
2299 #: ../src/guestfs.pod:1199
2300 #, no-wrap
2301 msgid ""
2302 " void guestfs_close (guestfs_h *g);\n"
2303 "\n"
2304 msgstr ""
2305
2306 # type: textblock
2307 #: ../src/guestfs.pod:1201
2308 msgid "This closes the connection handle and frees up all resources used."
2309 msgstr ""
2310
2311 # type: =head1
2312 #: ../src/guestfs.pod:1203
2313 msgid "ERROR HANDLING"
2314 msgstr ""
2315
2316 # type: textblock
2317 #: ../src/guestfs.pod:1205
2318 msgid ""
2319 "API functions can return errors.  For example, almost all functions that "
2320 "return C<int> will return C<-1> to indicate an error."
2321 msgstr ""
2322
2323 # type: textblock
2324 #: ../src/guestfs.pod:1208
2325 msgid ""
2326 "Additional information is available for errors: an error message string and "
2327 "optionally an error number (errno) if the thing that failed was a system "
2328 "call."
2329 msgstr ""
2330
2331 # type: textblock
2332 #: ../src/guestfs.pod:1212
2333 msgid ""
2334 "You can get at the additional information about the last error on the handle "
2335 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2336 "up an error handler with L</guestfs_set_error_handler>."
2337 msgstr ""
2338
2339 # type: textblock
2340 #: ../src/guestfs.pod:1217
2341 msgid ""
2342 "When the handle is created, a default error handler is installed which "
2343 "prints the error message string to C<stderr>.  For small short-running "
2344 "command line programs it is sufficient to do:"
2345 msgstr ""
2346
2347 # type: verbatim
2348 #: ../src/guestfs.pod:1221
2349 #, no-wrap
2350 msgid ""
2351 " if (guestfs_launch (g) == -1)\n"
2352 "   exit (EXIT_FAILURE);\n"
2353 "\n"
2354 msgstr ""
2355
2356 # type: textblock
2357 #: ../src/guestfs.pod:1224
2358 msgid ""
2359 "since the default error handler will ensure that an error message has been "
2360 "printed to C<stderr> before the program exits."
2361 msgstr ""
2362
2363 # type: textblock
2364 #: ../src/guestfs.pod:1227
2365 msgid ""
2366 "For other programs the caller will almost certainly want to install an "
2367 "alternate error handler or do error handling in-line like this:"
2368 msgstr ""
2369
2370 # type: verbatim
2371 #: ../src/guestfs.pod:1230
2372 #, no-wrap
2373 msgid ""
2374 " g = guestfs_create ();\n"
2375 " \n"
2376 msgstr ""
2377
2378 # type: verbatim
2379 #: ../src/guestfs.pod:1232
2380 #, no-wrap
2381 msgid ""
2382 " /* This disables the default behaviour of printing errors\n"
2383 "    on stderr. */\n"
2384 " guestfs_set_error_handler (g, NULL, NULL);\n"
2385 " \n"
2386 msgstr ""
2387
2388 # type: verbatim
2389 #: ../src/guestfs.pod:1236
2390 #, no-wrap
2391 msgid ""
2392 " if (guestfs_launch (g) == -1) {\n"
2393 "   /* Examine the error message and print it etc. */\n"
2394 "   char *msg = guestfs_last_error (g);\n"
2395 "   int errnum = guestfs_last_errno (g);\n"
2396 "   fprintf (stderr, \"%s\\n\", msg);\n"
2397 "   /* ... */\n"
2398 "  }\n"
2399 "\n"
2400 msgstr ""
2401
2402 # type: textblock
2403 #: ../src/guestfs.pod:1244
2404 msgid ""
2405 "Out of memory errors are handled differently.  The default action is to call "
2406 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2407 "L</guestfs_set_out_of_memory_handler>."
2408 msgstr ""
2409
2410 # type: textblock
2411 #: ../src/guestfs.pod:1248
2412 msgid ""
2413 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2414 "because there is no handle if this happens there is no way to get additional "
2415 "error information.  However L</guestfs_create> is supposed to be a "
2416 "lightweight operation which can only fail because of insufficient memory (it "
2417 "returns NULL in this case)."
2418 msgstr ""
2419
2420 # type: =head2
2421 #: ../src/guestfs.pod:1254
2422 msgid "guestfs_last_error"
2423 msgstr ""
2424
2425 # type: verbatim
2426 #: ../src/guestfs.pod:1256
2427 #, no-wrap
2428 msgid ""
2429 " const char *guestfs_last_error (guestfs_h *g);\n"
2430 "\n"
2431 msgstr ""
2432
2433 # type: textblock
2434 #: ../src/guestfs.pod:1258
2435 msgid ""
2436 "This returns the last error message that happened on C<g>.  If there has not "
2437 "been an error since the handle was created, then this returns C<NULL>."
2438 msgstr ""
2439
2440 # type: textblock
2441 #: ../src/guestfs.pod:1262
2442 msgid ""
2443 "The lifetime of the returned string is until the next error occurs, or "
2444 "L</guestfs_close> is called."
2445 msgstr ""
2446
2447 # type: =head2
2448 #: ../src/guestfs.pod:1265
2449 msgid "guestfs_last_errno"
2450 msgstr ""
2451
2452 # type: verbatim
2453 #: ../src/guestfs.pod:1267
2454 #, no-wrap
2455 msgid ""
2456 " int guestfs_last_errno (guestfs_h *g);\n"
2457 "\n"
2458 msgstr ""
2459
2460 # type: textblock
2461 #: ../src/guestfs.pod:1269
2462 msgid "This returns the last error number (errno) that happened on C<g>."
2463 msgstr ""
2464
2465 # type: textblock
2466 #: ../src/guestfs.pod:1271
2467 msgid "If successful, an errno integer not equal to zero is returned."
2468 msgstr ""
2469
2470 # type: textblock
2471 #: ../src/guestfs.pod:1273
2472 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2473 msgstr ""
2474
2475 # type: textblock
2476 #: ../src/guestfs.pod:1280
2477 msgid "There has not been any error on the handle."
2478 msgstr ""
2479
2480 # type: textblock
2481 #: ../src/guestfs.pod:1284
2482 msgid ""
2483 "There has been an error but the errno was meaningless.  This corresponds to "
2484 "the case where the error did not come from a failed system call, but for "
2485 "some other reason."
2486 msgstr ""
2487
2488 # type: textblock
2489 #: ../src/guestfs.pod:1290
2490 msgid ""
2491 "There was an error from a failed system call, but for some reason the errno "
2492 "was not captured and returned.  This usually indicates a bug in libguestfs."
2493 msgstr ""
2494
2495 # type: textblock
2496 #: ../src/guestfs.pod:1296
2497 msgid ""
2498 "Libguestfs tries to convert the errno from inside the applicance into a "
2499 "corresponding errno for the caller (not entirely trivial: the appliance "
2500 "might be running a completely different operating system from the library "
2501 "and error numbers are not standardized across Un*xen).  If this could not be "
2502 "done, then the error is translated to C<EINVAL>.  In practice this should "
2503 "only happen in very rare circumstances."
2504 msgstr ""
2505
2506 # type: =head2
2507 #: ../src/guestfs.pod:1304
2508 msgid "guestfs_set_error_handler"
2509 msgstr ""
2510
2511 # type: verbatim
2512 #: ../src/guestfs.pod:1306
2513 #, no-wrap
2514 msgid ""
2515 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2516 "                                           void *opaque,\n"
2517 "                                           const char *msg);\n"
2518 " void guestfs_set_error_handler (guestfs_h *g,\n"
2519 "                                 guestfs_error_handler_cb cb,\n"
2520 "                                 void *opaque);\n"
2521 "\n"
2522 msgstr ""
2523
2524 # type: textblock
2525 #: ../src/guestfs.pod:1313
2526 msgid ""
2527 "The callback C<cb> will be called if there is an error.  The parameters "
2528 "passed to the callback are an opaque data pointer and the error message "
2529 "string."
2530 msgstr ""
2531
2532 # type: textblock
2533 #: ../src/guestfs.pod:1317
2534 msgid ""
2535 "C<errno> is not passed to the callback.  To get that the callback must call "
2536 "L</guestfs_last_errno>."
2537 msgstr ""
2538
2539 # type: textblock
2540 #: ../src/guestfs.pod:1320
2541 msgid ""
2542 "Note that the message string C<msg> is freed as soon as the callback "
2543 "function returns, so if you want to stash it somewhere you must make your "
2544 "own copy."
2545 msgstr ""
2546
2547 # type: textblock
2548 #: ../src/guestfs.pod:1324
2549 msgid "The default handler prints messages on C<stderr>."
2550 msgstr ""
2551
2552 # type: textblock
2553 #: ../src/guestfs.pod:1326
2554 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2555 msgstr ""
2556
2557 # type: =head2
2558 #: ../src/guestfs.pod:1328
2559 msgid "guestfs_get_error_handler"
2560 msgstr ""
2561
2562 # type: verbatim
2563 #: ../src/guestfs.pod:1330
2564 #, no-wrap
2565 msgid ""
2566 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2567 "                                                     void **opaque_rtn);\n"
2568 "\n"
2569 msgstr ""
2570
2571 # type: textblock
2572 #: ../src/guestfs.pod:1333
2573 msgid "Returns the current error handler callback."
2574 msgstr ""
2575
2576 # type: =head2
2577 #: ../src/guestfs.pod:1335
2578 msgid "guestfs_set_out_of_memory_handler"
2579 msgstr ""
2580
2581 # type: verbatim
2582 #: ../src/guestfs.pod:1337
2583 #, no-wrap
2584 msgid ""
2585 " typedef void (*guestfs_abort_cb) (void);\n"
2586 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2587 "                                        guestfs_abort_cb);\n"
2588 "\n"
2589 msgstr ""
2590
2591 # type: textblock
2592 #: ../src/guestfs.pod:1341
2593 msgid ""
2594 "The callback C<cb> will be called if there is an out of memory situation.  "
2595 "I<Note this callback must not return>."
2596 msgstr ""
2597
2598 # type: textblock
2599 #: ../src/guestfs.pod:1344
2600 msgid "The default is to call L<abort(3)>."
2601 msgstr ""
2602
2603 # type: textblock
2604 #: ../src/guestfs.pod:1346
2605 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2606 msgstr ""
2607
2608 # type: =head2
2609 #: ../src/guestfs.pod:1349
2610 msgid "guestfs_get_out_of_memory_handler"
2611 msgstr ""
2612
2613 # type: verbatim
2614 #: ../src/guestfs.pod:1351
2615 #, no-wrap
2616 msgid ""
2617 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2618 "\n"
2619 msgstr ""
2620
2621 # type: textblock
2622 #: ../src/guestfs.pod:1353
2623 msgid "This returns the current out of memory handler."
2624 msgstr ""
2625
2626 # type: =head1
2627 #: ../src/guestfs.pod:1355
2628 msgid "API CALLS"
2629 msgstr ""
2630
2631 # type: textblock
2632 #: ../src/guestfs.pod:1357 ../fish/guestfish.pod:958
2633 msgid "@ACTIONS@"
2634 msgstr ""
2635
2636 # type: =head1
2637 #: ../src/guestfs.pod:1359
2638 msgid "STRUCTURES"
2639 msgstr ""
2640
2641 # type: textblock
2642 #: ../src/guestfs.pod:1361
2643 msgid "@STRUCTS@"
2644 msgstr ""
2645
2646 # type: =head1
2647 #: ../src/guestfs.pod:1363
2648 msgid "AVAILABILITY"
2649 msgstr ""
2650
2651 # type: =head2
2652 #: ../src/guestfs.pod:1365
2653 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2654 msgstr ""
2655
2656 # type: textblock
2657 #: ../src/guestfs.pod:1367
2658 msgid ""
2659 "Using L</guestfs_available> you can test availability of the following "
2660 "groups of functions.  This test queries the appliance to see if the "
2661 "appliance you are currently using supports the functionality."
2662 msgstr ""
2663
2664 # type: textblock
2665 #: ../src/guestfs.pod:1372
2666 msgid "@AVAILABILITY@"
2667 msgstr ""
2668
2669 # type: =head2
2670 #: ../src/guestfs.pod:1374
2671 msgid "GUESTFISH supported COMMAND"
2672 msgstr ""
2673
2674 # type: textblock
2675 #: ../src/guestfs.pod:1376
2676 msgid ""
2677 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2678 "prints out the available groups and whether they are supported by this build "
2679 "of libguestfs.  Note however that you have to do C<run> first."
2680 msgstr ""
2681
2682 # type: =head2
2683 #: ../src/guestfs.pod:1381
2684 msgid "SINGLE CALLS AT COMPILE TIME"
2685 msgstr ""
2686
2687 # type: textblock
2688 #: ../src/guestfs.pod:1383
2689 msgid ""
2690 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2691 "function, such as:"
2692 msgstr ""
2693
2694 # type: verbatim
2695 #: ../src/guestfs.pod:1386
2696 #, no-wrap
2697 msgid ""
2698 " #define LIBGUESTFS_HAVE_DD 1\n"
2699 "\n"
2700 msgstr ""
2701
2702 # type: textblock
2703 #: ../src/guestfs.pod:1388
2704 msgid "if L</guestfs_dd> is available."
2705 msgstr ""
2706
2707 # type: textblock
2708 #: ../src/guestfs.pod:1390
2709 msgid ""
2710 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2711 "function is available at compile time, we recommended using build tools such "
2712 "as autoconf or cmake.  For example in autotools you could use:"
2713 msgstr ""
2714
2715 # type: verbatim
2716 #: ../src/guestfs.pod:1395
2717 #, no-wrap
2718 msgid ""
2719 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2720 " AC_CHECK_FUNCS([guestfs_dd])\n"
2721 "\n"
2722 msgstr ""
2723
2724 # type: textblock
2725 #: ../src/guestfs.pod:1398
2726 msgid ""
2727 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2728 "in your program."
2729 msgstr ""
2730
2731 # type: =head2
2732 #: ../src/guestfs.pod:1401
2733 msgid "SINGLE CALLS AT RUN TIME"
2734 msgstr ""
2735
2736 # type: textblock
2737 #: ../src/guestfs.pod:1403
2738 msgid ""
2739 "Testing at compile time doesn't guarantee that a function really exists in "
2740 "the library.  The reason is that you might be dynamically linked against a "
2741 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2742 "This situation unfortunately results in a segmentation fault, which is a "
2743 "shortcoming of the C dynamic linking system itself."
2744 msgstr ""
2745
2746 # type: textblock
2747 #: ../src/guestfs.pod:1410
2748 msgid ""
2749 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2750 "in this example program (note that you still need the compile time check as "
2751 "well):"
2752 msgstr ""
2753
2754 # type: verbatim
2755 #: ../src/guestfs.pod:1414
2756 #, no-wrap
2757 msgid ""
2758 " #include <stdio.h>\n"
2759 " #include <stdlib.h>\n"
2760 " #include <unistd.h>\n"
2761 " #include <dlfcn.h>\n"
2762 " #include <guestfs.h>\n"
2763 " \n"
2764 msgstr ""
2765
2766 # type: verbatim
2767 #: ../src/guestfs.pod:1420
2768 #, no-wrap
2769 msgid ""
2770 " main ()\n"
2771 " {\n"
2772 " #ifdef LIBGUESTFS_HAVE_DD\n"
2773 "   void *dl;\n"
2774 "   int has_function;\n"
2775 " \n"
2776 msgstr ""
2777
2778 # type: verbatim
2779 #: ../src/guestfs.pod:1426
2780 #, no-wrap
2781 msgid ""
2782 "   /* Test if the function guestfs_dd is really available. */\n"
2783 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2784 "   if (!dl) {\n"
2785 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2786 "     exit (EXIT_FAILURE);\n"
2787 "   }\n"
2788 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2789 "   dlclose (dl);\n"
2790 " \n"
2791 msgstr ""
2792
2793 # type: verbatim
2794 #: ../src/guestfs.pod:1435
2795 #, no-wrap
2796 msgid ""
2797 "   if (!has_function)\n"
2798 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2799 "   else {\n"
2800 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2801 "     /* Now it's safe to call\n"
2802 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2803 "     */\n"
2804 "   }\n"
2805 " #else\n"
2806 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2807 " #endif\n"
2808 "  }\n"
2809 "\n"
2810 msgstr ""
2811
2812 # type: textblock
2813 #: ../src/guestfs.pod:1448
2814 msgid ""
2815 "You may think the above is an awful lot of hassle, and it is.  There are "
2816 "other ways outside of the C linking system to ensure that this kind of "
2817 "incompatibility never arises, such as using package versioning:"
2818 msgstr ""
2819
2820 # type: verbatim
2821 #: ../src/guestfs.pod:1453
2822 #, no-wrap
2823 msgid ""
2824 " Requires: libguestfs >= 1.0.80\n"
2825 "\n"
2826 msgstr ""
2827
2828 # type: =head1
2829 #: ../src/guestfs.pod:1455
2830 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2831 msgstr ""
2832
2833 # type: textblock
2834 #: ../src/guestfs.pod:1457
2835 msgid ""
2836 "A recent feature of the API is the introduction of calls which take optional "
2837 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2838 "takes variable arguments (ie. C<...>), as in this example:"
2839 msgstr ""
2840
2841 # type: verbatim
2842 #: ../src/guestfs.pod:1462
2843 #, no-wrap
2844 msgid ""
2845 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2846 "\n"
2847 msgstr ""
2848
2849 # type: textblock
2850 #: ../src/guestfs.pod:1464
2851 msgid ""
2852 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
2853 "call with no optional arguments specified:"
2854 msgstr ""
2855
2856 # type: verbatim
2857 #: ../src/guestfs.pod:1467
2858 #, no-wrap
2859 msgid ""
2860 " guestfs_add_drive_opts (g, filename, -1);\n"
2861 "\n"
2862 msgstr ""
2863
2864 # type: textblock
2865 #: ../src/guestfs.pod:1469
2866 msgid "With a single optional argument:"
2867 msgstr ""
2868
2869 # type: verbatim
2870 #: ../src/guestfs.pod:1471
2871 #, no-wrap
2872 msgid ""
2873 " guestfs_add_drive_opts (g, filename,\n"
2874 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2875 "                         -1);\n"
2876 "\n"
2877 msgstr ""
2878
2879 # type: textblock
2880 #: ../src/guestfs.pod:1475
2881 msgid "With two:"
2882 msgstr ""
2883
2884 # type: verbatim
2885 #: ../src/guestfs.pod:1477
2886 #, no-wrap
2887 msgid ""
2888 " guestfs_add_drive_opts (g, filename,\n"
2889 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
2890 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
2891 "                         -1);\n"
2892 "\n"
2893 msgstr ""
2894
2895 # type: textblock
2896 #: ../src/guestfs.pod:1482
2897 msgid ""
2898 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
2899 "happen!"
2900 msgstr ""
2901
2902 # type: =head2
2903 #: ../src/guestfs.pod:1485
2904 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
2905 msgstr ""
2906
2907 # type: textblock
2908 #: ../src/guestfs.pod:1487
2909 msgid ""
2910 "The second variant has the same name with the suffix C<_va>, which works the "
2911 "same way but takes a C<va_list>.  See the C manual for details.  For the "
2912 "example function, this is declared:"
2913 msgstr ""
2914
2915 # type: verbatim
2916 #: ../src/guestfs.pod:1491
2917 #, no-wrap
2918 msgid ""
2919 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
2920 "                                va_list args);\n"
2921 "\n"
2922 msgstr ""
2923
2924 # type: =head2
2925 #: ../src/guestfs.pod:1494
2926 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
2927 msgstr ""
2928
2929 # type: textblock
2930 #: ../src/guestfs.pod:1496
2931 msgid ""
2932 "The third variant is useful where you need to construct these calls.  You "
2933 "pass in a structure where you fill in the optional fields.  The structure "
2934 "has a bitmask as the first element which you must set to indicate which "
2935 "fields you have filled in.  For our example function the structure and call "
2936 "are declared:"
2937 msgstr ""
2938
2939 # type: verbatim
2940 #: ../src/guestfs.pod:1502
2941 #, no-wrap
2942 msgid ""
2943 " struct guestfs_add_drive_opts_argv {\n"
2944 "   uint64_t bitmask;\n"
2945 "   int readonly;\n"
2946 "   const char *format;\n"
2947 "   /* ... */\n"
2948 " };\n"
2949 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
2950 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
2951 "\n"
2952 msgstr ""
2953
2954 # type: textblock
2955 #: ../src/guestfs.pod:1511
2956 msgid "You could call it like this:"
2957 msgstr ""
2958
2959 # type: verbatim
2960 #: ../src/guestfs.pod:1513
2961 #, no-wrap
2962 msgid ""
2963 " struct guestfs_add_drive_opts_argv optargs = {\n"
2964 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
2965 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
2966 "   .readonly = 1,\n"
2967 "   .format = \"qcow2\"\n"
2968 " };\n"
2969 " \n"
2970 msgstr ""
2971
2972 # type: verbatim
2973 #: ../src/guestfs.pod:1520
2974 #, no-wrap
2975 msgid ""
2976 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
2977 "\n"
2978 msgstr ""
2979
2980 # type: textblock
2981 #: ../src/guestfs.pod:1522 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1255 ../tools/virt-win-reg.pl:532
2982 msgid "Notes:"
2983 msgstr ""
2984
2985 # type: textblock
2986 #: ../src/guestfs.pod:1528
2987 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
2988 msgstr ""
2989
2990 # type: textblock
2991 #: ../src/guestfs.pod:1533
2992 msgid "You do not need to fill in all fields of the structure."
2993 msgstr ""
2994
2995 # type: textblock
2996 #: ../src/guestfs.pod:1537
2997 msgid ""
2998 "There must be a one-to-one correspondence between fields of the structure "
2999 "that are filled in, and bits set in the bitmask."
3000 msgstr ""
3001
3002 # type: =head2
3003 #: ../src/guestfs.pod:1542
3004 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3005 msgstr ""
3006
3007 # type: textblock
3008 #: ../src/guestfs.pod:1544
3009 msgid ""
3010 "In other languages, optional arguments are expressed in the way that is "
3011 "natural for that language.  We refer you to the language-specific "
3012 "documentation for more details on that."
3013 msgstr ""
3014
3015 # type: textblock
3016 #: ../src/guestfs.pod:1548
3017 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3018 msgstr ""
3019
3020 # type: =head2
3021 #: ../src/guestfs.pod:1550
3022 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3023 msgstr ""
3024
3025 # type: textblock
3026 #: ../src/guestfs.pod:1552
3027 msgid ""
3028 "The child process generates events in some situations.  Current events "
3029 "include: receiving a log message, the child process exits."
3030 msgstr ""
3031
3032 # type: textblock
3033 #: ../src/guestfs.pod:1555
3034 msgid ""
3035 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3036 "types of events."
3037 msgstr ""
3038
3039 # type: textblock
3040 #: ../src/guestfs.pod:1558
3041 msgid ""
3042 "Only I<one callback of each type> can be registered for each handle.  "
3043 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3044 "that type.  Cancel all callbacks of this type by calling this function with "
3045 "C<cb> set to C<NULL>."
3046 msgstr ""
3047
3048 # type: =head2
3049 #: ../src/guestfs.pod:1563
3050 msgid "guestfs_set_log_message_callback"
3051 msgstr ""
3052
3053 # type: verbatim
3054 #: ../src/guestfs.pod:1565
3055 #, no-wrap
3056 msgid ""
3057 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3058 "                                         char *buf, int len);\n"
3059 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3060 "                                        guestfs_log_message_cb cb,\n"
3061 "                                        void *opaque);\n"
3062 "\n"
3063 msgstr ""
3064
3065 # type: textblock
3066 #: ../src/guestfs.pod:1571
3067 msgid ""
3068 "The callback function C<cb> will be called whenever qemu or the guest writes "
3069 "anything to the console."
3070 msgstr ""
3071
3072 # type: textblock
3073 #: ../src/guestfs.pod:1574
3074 msgid "Use this function to capture kernel messages and similar."
3075 msgstr ""
3076
3077 # type: textblock
3078 #: ../src/guestfs.pod:1576
3079 msgid ""
3080 "Normally there is no log message handler, and log messages are just "
3081 "discarded."
3082 msgstr ""
3083
3084 # type: =head2
3085 #: ../src/guestfs.pod:1579
3086 msgid "guestfs_set_subprocess_quit_callback"
3087 msgstr ""
3088
3089 # type: verbatim
3090 #: ../src/guestfs.pod:1581
3091 #, no-wrap
3092 msgid ""
3093 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3094 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3095 "                                            guestfs_subprocess_quit_cb cb,\n"
3096 "                                            void *opaque);\n"
3097 "\n"
3098 msgstr ""
3099
3100 # type: textblock
3101 #: ../src/guestfs.pod:1586
3102 msgid ""
3103 "The callback function C<cb> will be called when the child process quits, "
3104 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3105 "corresponds to a transition from any state to the CONFIG state)."
3106 msgstr ""
3107
3108 # type: =head2
3109 #: ../src/guestfs.pod:1591
3110 msgid "guestfs_set_launch_done_callback"
3111 msgstr ""
3112
3113 # type: verbatim
3114 #: ../src/guestfs.pod:1593
3115 #, no-wrap
3116 msgid ""
3117 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3118 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3119 "                                        guestfs_launch_done_cb cb,\n"
3120 "                                        void *opaque);\n"
3121 "\n"
3122 msgstr ""
3123
3124 # type: textblock
3125 #: ../src/guestfs.pod:1598
3126 msgid ""
3127 "The callback function C<cb> will be called when the child process becomes "
3128 "ready first time after it has been launched.  (This corresponds to a "
3129 "transition from LAUNCHING to the READY state)."
3130 msgstr ""
3131
3132 # type: =head2
3133 #: ../src/guestfs.pod:1602
3134 msgid "guestfs_set_close_callback"
3135 msgstr ""
3136
3137 # type: verbatim
3138 #: ../src/guestfs.pod:1604
3139 #, no-wrap
3140 msgid ""
3141 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3142 " void guestfs_set_close_callback (guestfs_h *g,\n"
3143 "                                  guestfs_close_cb cb,\n"
3144 "                                  void *opaque);\n"
3145 "\n"
3146 msgstr ""
3147
3148 # type: textblock
3149 #: ../src/guestfs.pod:1609
3150 msgid ""
3151 "The callback function C<cb> will be called while the handle is being closed "
3152 "(synchronously from L</guestfs_close>)."
3153 msgstr ""
3154
3155 # type: textblock
3156 #: ../src/guestfs.pod:1612
3157 msgid ""
3158 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3159 "handles that are open when the program exits.  This means that this callback "
3160 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3161 "problems in higher-level languages (eg. if your HLL interpreter has already "
3162 "been cleaned up by the time this is called, and if your callback then jumps "
3163 "into some HLL function)."
3164 msgstr ""
3165
3166 # type: =head2
3167 #: ../src/guestfs.pod:1620
3168 msgid "guestfs_set_progress_callback"
3169 msgstr ""
3170
3171 # type: verbatim
3172 #: ../src/guestfs.pod:1622
3173 #, no-wrap
3174 msgid ""
3175 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3176 "                                      int proc_nr, int serial,\n"
3177 "                                      uint64_t position, uint64_t total);\n"
3178 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3179 "                                     guestfs_progress_cb cb,\n"
3180 "                                     void *opaque);\n"
3181 "\n"
3182 msgstr ""
3183
3184 # type: textblock
3185 #: ../src/guestfs.pod:1629
3186 msgid ""
3187 "Some long-running operations can generate progress messages.  If this "
3188 "callback is registered, then it will be called each time a progress message "
3189 "is generated (usually two seconds after the operation started, and three "
3190 "times per second thereafter until it completes, although the frequency may "
3191 "change in future versions)."
3192 msgstr ""
3193
3194 # type: textblock
3195 #: ../src/guestfs.pod:1635
3196 msgid ""
3197 "The callback receives two numbers: C<position> and C<total>.  The units of "
3198 "C<total> are not defined, although for some operations C<total> may relate "
3199 "in some way to the amount of data to be transferred (eg. in bytes or "
3200 "megabytes), and C<position> may be the portion which has been transferred."
3201 msgstr ""
3202
3203 # type: textblock
3204 #: ../src/guestfs.pod:1641
3205 msgid "The only defined and stable parts of the API are:"
3206 msgstr ""
3207
3208 # type: textblock
3209 #: ../src/guestfs.pod:1647
3210 msgid ""
3211 "The callback can display to the user some type of progress bar or indicator "
3212 "which shows the ratio of C<position>:C<total>."
3213 msgstr ""
3214
3215 # type: textblock
3216 #: ../src/guestfs.pod:1652
3217 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3218 msgstr ""
3219
3220 # type: textblock
3221 #: ../src/guestfs.pod:1656
3222 msgid ""
3223 "If any progress notification is sent during a call, then a final progress "
3224 "notification is always sent when C<position> = C<total>."
3225 msgstr ""
3226
3227 # type: textblock
3228 #: ../src/guestfs.pod:1659
3229 msgid ""
3230 "This is to simplify caller code, so callers can easily set the progress "
3231 "indicator to \"100%\" at the end of the operation, without requiring special "
3232 "code to detect this case."
3233 msgstr ""
3234
3235 # type: textblock
3236 #: ../src/guestfs.pod:1665
3237 msgid ""
3238 "The callback also receives the procedure number and serial number of the "
3239 "call.  These are only useful for debugging protocol issues, and the callback "
3240 "can normally ignore them.  The callback may want to print these numbers in "
3241 "error messages or debugging messages."
3242 msgstr ""
3243
3244 # type: =head1
3245 #: ../src/guestfs.pod:1670
3246 msgid "PRIVATE DATA AREA"
3247 msgstr ""
3248
3249 # type: textblock
3250 #: ../src/guestfs.pod:1672
3251 msgid ""
3252 "You can attach named pieces of private data to the libguestfs handle, and "
3253 "fetch them by name for the lifetime of the handle.  This is called the "
3254 "private data area and is only available from the C API."
3255 msgstr ""
3256
3257 # type: textblock
3258 #: ../src/guestfs.pod:1676
3259 msgid "To attach a named piece of data, use the following call:"
3260 msgstr ""
3261
3262 # type: verbatim
3263 #: ../src/guestfs.pod:1678
3264 #, no-wrap
3265 msgid ""
3266 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3267 "\n"
3268 msgstr ""
3269
3270 # type: textblock
3271 #: ../src/guestfs.pod:1680
3272 msgid ""
3273 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3274 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3275 "overwritten."
3276 msgstr ""
3277
3278 # type: textblock
3279 #: ../src/guestfs.pod:1684
3280 msgid ""
3281 "You can use any C<key> you want, but names beginning with an underscore "
3282 "character are reserved for internal libguestfs purposes (for implementing "
3283 "language bindings).  It is recommended to prefix the name with some unique "
3284 "string to avoid collisions with other users."
3285 msgstr ""
3286
3287 # type: textblock
3288 #: ../src/guestfs.pod:1689
3289 msgid "To retrieve the pointer, use:"
3290 msgstr ""
3291
3292 # type: verbatim
3293 #: ../src/guestfs.pod:1691
3294 #, no-wrap
3295 msgid ""
3296 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3297 "\n"
3298 msgstr ""
3299
3300 # type: textblock
3301 #: ../src/guestfs.pod:1693
3302 msgid ""
3303 "This function returns C<NULL> if either no data is found associated with "
3304 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3305 "C<NULL>."
3306 msgstr ""
3307
3308 # type: textblock
3309 #: ../src/guestfs.pod:1697
3310 msgid ""
3311 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3312 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3313 "all.  In particular, libguestfs does I<not> try to free the data when the "
3314 "handle is closed.  If the data must be freed, then the caller must either "
3315 "free it before calling L</guestfs_close> or must set up a close callback to "
3316 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3317 "can be registered for a handle)."
3318 msgstr ""
3319
3320 # type: textblock
3321 #: ../src/guestfs.pod:1705
3322 msgid ""
3323 "The private data area is implemented using a hash table, and should be "
3324 "reasonably efficient for moderate numbers of keys."
3325 msgstr ""
3326
3327 # type: =end
3328 #: ../src/guestfs.pod:1708 ../src/guestfs.pod:1713
3329 msgid "html"
3330 msgstr ""
3331
3332 # type: textblock
3333 #: ../src/guestfs.pod:1710
3334 msgid ""
3335 "<!-- old anchor for the next section --> <a "
3336 "name=\"state_machine_and_low_level_event_api\"/>"
3337 msgstr ""
3338
3339 # type: =head1
3340 #: ../src/guestfs.pod:1715
3341 msgid "ARCHITECTURE"
3342 msgstr ""
3343
3344 # type: textblock
3345 #: ../src/guestfs.pod:1717
3346 msgid ""
3347 "Internally, libguestfs is implemented by running an appliance (a special "
3348 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3349 "process of the main program."
3350 msgstr ""
3351
3352 # type: verbatim
3353 #: ../src/guestfs.pod:1721
3354 #, no-wrap
3355 msgid ""
3356 "  ___________________\n"
3357 " /                   \\\n"
3358 " | main program      |\n"
3359 " |                   |\n"
3360 " |                   |           child process / appliance\n"
3361 " |                   |           __________________________\n"
3362 " |                   |          / qemu                     \\\n"
3363 " +-------------------+   RPC    |      +-----------------+ |\n"
3364 " | libguestfs     <--------------------> guestfsd        | |\n"
3365 " |                   |          |      +-----------------+ |\n"
3366 " \\___________________/          |      | Linux kernel    | |\n"
3367 "                                |      +--^--------------+ |\n"
3368 "                                \\_________|________________/\n"
3369 "                                          |\n"
3370 "                                   _______v______\n"
3371 "                                  /              \\\n"
3372 "                                  | Device or    |\n"
3373 "                                  | disk image   |\n"
3374 "                                  \\______________/\n"
3375 "\n"
3376 msgstr ""
3377
3378 # type: textblock
3379 #: ../src/guestfs.pod:1741
3380 msgid ""
3381 "The library, linked to the main program, creates the child process and hence "
3382 "the appliance in the L</guestfs_launch> function."
3383 msgstr ""
3384
3385 # type: textblock
3386 #: ../src/guestfs.pod:1744
3387 msgid ""
3388 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3389 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3390 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3391 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3392 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3393 "attached to the qemu process which translates device access by the "
3394 "appliance's Linux kernel into accesses to the image."
3395 msgstr ""
3396
3397 # type: textblock
3398 #: ../src/guestfs.pod:1753
3399 msgid ""
3400 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3401 "Although the disk image you are attached to might also be used by some "
3402 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3403 "care if both libguestfs's qemu process and your virtual machine are trying "
3404 "to update the disk image at the same time, since these usually results in "
3405 "massive disk corruption)."
3406 msgstr ""
3407
3408 # type: =head1
3409 #: ../src/guestfs.pod:1760
3410 msgid "STATE MACHINE"
3411 msgstr ""
3412
3413 # type: textblock
3414 #: ../src/guestfs.pod:1762
3415 msgid "libguestfs uses a state machine to model the child process:"
3416 msgstr ""
3417
3418 # type: verbatim
3419 #: ../src/guestfs.pod:1764
3420 #, no-wrap
3421 msgid ""
3422 "                         |\n"
3423 "                    guestfs_create\n"
3424 "                         |\n"
3425 "                         |\n"
3426 "                     ____V_____\n"
3427 "                    /          \\\n"
3428 "                    |  CONFIG  |\n"
3429 "                    \\__________/\n"
3430 "                     ^ ^   ^  \\\n"
3431 "                    /  |    \\  \\ guestfs_launch\n"
3432 "                   /   |    _\\__V______\n"
3433 "                  /    |   /           \\\n"
3434 "                 /     |   | LAUNCHING |\n"
3435 "                /      |   \\___________/\n"
3436 "               /       |       /\n"
3437 "              /        |  guestfs_launch\n"
3438 "             /         |     /\n"
3439 "    ______  /        __|____V\n"
3440 "   /      \\ ------> /        \\\n"
3441 "   | BUSY |         | READY  |\n"
3442 "   \\______/ <------ \\________/\n"
3443 "\n"
3444 msgstr ""
3445
3446 # type: textblock
3447 #: ../src/guestfs.pod:1786
3448 msgid ""
3449 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3450 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3451 "(3) alternating between READY and BUSY as commands are issued to, and "
3452 "carried out by, the child process."
3453 msgstr ""
3454
3455 # type: textblock
3456 #: ../src/guestfs.pod:1791
3457 msgid ""
3458 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3459 "asynchronously at any time (eg. due to some internal error), and that causes "
3460 "the state to transition back to CONFIG."
3461 msgstr ""
3462
3463 # type: textblock
3464 #: ../src/guestfs.pod:1795
3465 msgid ""
3466 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3467 "issued when in the CONFIG state."
3468 msgstr ""
3469
3470 # type: textblock
3471 #: ../src/guestfs.pod:1798
3472 msgid ""
3473 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3474 "L</guestfs_launch> blocks until the child process is READY to accept "
3475 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3476 "moves the state from CONFIG to LAUNCHING while it is running."
3477 msgstr ""
3478
3479 # type: textblock
3480 #: ../src/guestfs.pod:1804
3481 msgid ""
3482 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3483 "state.  These API calls block waiting for the command to be carried out "
3484 "(ie. the state to transition to BUSY and then back to READY).  There are no "
3485 "non-blocking versions, and no way to issue more than one command per handle "
3486 "at the same time."
3487 msgstr ""
3488
3489 # type: textblock
3490 #: ../src/guestfs.pod:1810
3491 msgid ""
3492 "Finally, the child process sends asynchronous messages back to the main "
3493 "program, such as kernel log messages.  You can register a callback to "
3494 "receive these messages."
3495 msgstr ""
3496
3497 # type: =head1
3498 #: ../src/guestfs.pod:1814
3499 msgid "INTERNALS"
3500 msgstr ""
3501
3502 # type: =head2
3503 #: ../src/guestfs.pod:1816
3504 msgid "COMMUNICATION PROTOCOL"
3505 msgstr ""
3506
3507 # type: textblock
3508 #: ../src/guestfs.pod:1818
3509 msgid ""
3510 "Don't rely on using this protocol directly.  This section documents how it "
3511 "currently works, but it may change at any time."
3512 msgstr ""
3513
3514 # type: textblock
3515 #: ../src/guestfs.pod:1821
3516 msgid ""
3517 "The protocol used to talk between the library and the daemon running inside "
3518 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3519 "1014, RFC 1832, RFC 4506)."
3520 msgstr ""
3521
3522 # type: textblock
3523 #: ../src/guestfs.pod:1825
3524 msgid ""
3525 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3526 "this file is automatically generated)."
3527 msgstr ""
3528
3529 # type: textblock
3530 #: ../src/guestfs.pod:1828
3531 msgid ""
3532 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3533 "and C<FileOut> parameters, which are handled with very simple request/reply "
3534 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3535 "parameters, which use the same request and reply messages, but they may also "
3536 "be followed by files sent using a chunked encoding."
3537 msgstr ""
3538
3539 # type: =head3
3540 #: ../src/guestfs.pod:1835
3541 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3542 msgstr ""
3543
3544 # type: textblock
3545 #: ../src/guestfs.pod:1837
3546 msgid "For ordinary functions, the request message is:"
3547 msgstr ""
3548
3549 # type: verbatim
3550 #: ../src/guestfs.pod:1839
3551 #, no-wrap
3552 msgid ""
3553 " total length (header + arguments,\n"
3554 "      but not including the length word itself)\n"
3555 " struct guestfs_message_header (encoded as XDR)\n"
3556 " struct guestfs_<foo>_args (encoded as XDR)\n"
3557 "\n"
3558 msgstr ""
3559
3560 # type: textblock
3561 #: ../src/guestfs.pod:1844
3562 msgid ""
3563 "The total length field allows the daemon to allocate a fixed size buffer "
3564 "into which it slurps the rest of the message.  As a result, the total length "
3565 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3566 "effective size of any request is limited to somewhere under this size."
3567 msgstr ""
3568
3569 # type: textblock
3570 #: ../src/guestfs.pod:1850
3571 msgid ""
3572 "Note also that many functions don't take any arguments, in which case the "
3573 "C<guestfs_I<foo>_args> is completely omitted."
3574 msgstr ""
3575
3576 # type: textblock
3577 #: ../src/guestfs.pod:1853
3578 msgid ""
3579 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3580 "receiver knows what type of args structure to expect, or none at all."
3581 msgstr ""
3582
3583 # type: textblock
3584 #: ../src/guestfs.pod:1857
3585 msgid ""
3586 "For functions that take optional arguments, the optional arguments are "
3587 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3588 "arguments.  A bitmask in the header indicates which optional arguments are "
3589 "meaningful.  The bitmask is also checked to see if it contains bits set "
3590 "which the daemon does not know about (eg. if more optional arguments were "
3591 "added in a later version of the library), and this causes the call to be "
3592 "rejected."
3593 msgstr ""
3594
3595 # type: textblock
3596 #: ../src/guestfs.pod:1865
3597 msgid "The reply message for ordinary functions is:"
3598 msgstr ""
3599
3600 # type: verbatim
3601 #: ../src/guestfs.pod:1867
3602 #, no-wrap
3603 msgid ""
3604 " total length (header + ret,\n"
3605 "      but not including the length word itself)\n"
3606 " struct guestfs_message_header (encoded as XDR)\n"
3607 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3608 "\n"
3609 msgstr ""
3610
3611 # type: textblock
3612 #: ../src/guestfs.pod:1872
3613 msgid ""
3614 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3615 "functions that return no formal return values."
3616 msgstr ""
3617
3618 # type: textblock
3619 #: ../src/guestfs.pod:1875
3620 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3621 msgstr ""
3622
3623 # type: textblock
3624 #: ../src/guestfs.pod:1878
3625 msgid ""
3626 "In the case of an error, a flag is set in the header, and the reply message "
3627 "is slightly changed:"
3628 msgstr ""
3629
3630 # type: verbatim
3631 #: ../src/guestfs.pod:1881
3632 #, no-wrap
3633 msgid ""
3634 " total length (header + error,\n"
3635 "      but not including the length word itself)\n"
3636 " struct guestfs_message_header (encoded as XDR)\n"
3637 " struct guestfs_message_error (encoded as XDR)\n"
3638 "\n"
3639 msgstr ""
3640
3641 # type: textblock
3642 #: ../src/guestfs.pod:1886
3643 msgid ""
3644 "The C<guestfs_message_error> structure contains the error message as a "
3645 "string."
3646 msgstr ""
3647
3648 # type: =head3
3649 #: ../src/guestfs.pod:1889
3650 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3651 msgstr ""
3652
3653 # type: textblock
3654 #: ../src/guestfs.pod:1891
3655 msgid ""
3656 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3657 "The normal request message is sent (see above).  However this is followed by "
3658 "a sequence of file chunks."
3659 msgstr ""
3660
3661 # type: verbatim
3662 #: ../src/guestfs.pod:1895
3663 #, no-wrap
3664 msgid ""
3665 " total length (header + arguments,\n"
3666 "      but not including the length word itself,\n"
3667 "      and not including the chunks)\n"
3668 " struct guestfs_message_header (encoded as XDR)\n"
3669 " struct guestfs_<foo>_args (encoded as XDR)\n"
3670 " sequence of chunks for FileIn param #0\n"
3671 " sequence of chunks for FileIn param #1 etc.\n"
3672 "\n"
3673 msgstr ""
3674
3675 # type: textblock
3676 #: ../src/guestfs.pod:1903
3677 msgid "The \"sequence of chunks\" is:"
3678 msgstr ""
3679
3680 # type: verbatim
3681 #: ../src/guestfs.pod:1905
3682 #, no-wrap
3683 msgid ""
3684 " length of chunk (not including length word itself)\n"
3685 " struct guestfs_chunk (encoded as XDR)\n"
3686 " length of chunk\n"
3687 " struct guestfs_chunk (encoded as XDR)\n"
3688 "   ...\n"
3689 " length of chunk\n"
3690 " struct guestfs_chunk (with data.data_len == 0)\n"
3691 "\n"
3692 msgstr ""
3693
3694 # type: textblock
3695 #: ../src/guestfs.pod:1913
3696 msgid ""
3697 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3698 "is set in the final chunk to indicate either successful completion or early "
3699 "cancellation."
3700 msgstr ""
3701
3702 # type: textblock
3703 #: ../src/guestfs.pod:1917
3704 msgid ""
3705 "At time of writing there are no functions that have more than one FileIn "
3706 "parameter.  However this is (theoretically) supported, by sending the "
3707 "sequence of chunks for each FileIn parameter one after another (from left to "
3708 "right)."
3709 msgstr ""
3710
3711 # type: textblock
3712 #: ../src/guestfs.pod:1922
3713 msgid ""
3714 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3715 "transfer.  The library does this by sending a chunk with a special flag set "
3716 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3717 "RPC, does I<not> send any reply, and goes back to reading the next request."
3718 msgstr ""
3719
3720 # type: textblock
3721 #: ../src/guestfs.pod:1928
3722 msgid ""
3723 "The daemon may also cancel.  It does this by writing a special word "
3724 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3725 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3726 "cancel chunk).  The special word is chosen so that even if cancellation "
3727 "happens right at the end of the transfer (after the library has finished "
3728 "writing and has started listening for the reply), the \"spurious\" cancel "
3729 "flag will not be confused with the reply message."
3730 msgstr ""
3731
3732 # type: textblock
3733 #: ../src/guestfs.pod:1937
3734 msgid ""
3735 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3736 "limit), and also files where the size is not known in advance (eg. from "
3737 "pipes or sockets).  However the chunks are rather small "
3738 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3739 "to keep much in memory."
3740 msgstr ""
3741
3742 # type: =head3
3743 #: ../src/guestfs.pod:1943
3744 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3745 msgstr ""
3746
3747 # type: textblock
3748 #: ../src/guestfs.pod:1945
3749 msgid ""
3750 "The protocol for FileOut parameters is exactly the same as for FileIn "
3751 "parameters, but with the roles of daemon and library reversed."
3752 msgstr ""
3753
3754 # type: verbatim
3755 #: ../src/guestfs.pod:1948
3756 #, no-wrap
3757 msgid ""
3758 " total length (header + ret,\n"
3759 "      but not including the length word itself,\n"
3760 "      and not including the chunks)\n"
3761 " struct guestfs_message_header (encoded as XDR)\n"
3762 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3763 " sequence of chunks for FileOut param #0\n"
3764 " sequence of chunks for FileOut param #1 etc.\n"
3765 "\n"
3766 msgstr ""
3767
3768 # type: =head3
3769 #: ../src/guestfs.pod:1956
3770 msgid "INITIAL MESSAGE"
3771 msgstr ""
3772
3773 # type: textblock
3774 #: ../src/guestfs.pod:1958
3775 msgid ""
3776 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3777 "which indicates that the guest and daemon is alive.  This is what "
3778 "L</guestfs_launch> waits for."
3779 msgstr ""
3780
3781 # type: =head3
3782 #: ../src/guestfs.pod:1962
3783 msgid "PROGRESS NOTIFICATION MESSAGES"
3784 msgstr ""
3785
3786 # type: textblock
3787 #: ../src/guestfs.pod:1964
3788 msgid ""
3789 "The daemon may send progress notification messages at any time.  These are "
3790 "distinguished by the normal length word being replaced by "
3791 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3792 msgstr ""
3793
3794 # type: textblock
3795 #: ../src/guestfs.pod:1968
3796 msgid ""
3797 "The library turns them into progress callbacks (see "
3798 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3799 "discards them if not."
3800 msgstr ""
3801
3802 # type: textblock
3803 #: ../src/guestfs.pod:1972
3804 msgid ""
3805 "The daemon self-limits the frequency of progress messages it sends (see "
3806 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3807 "messages."
3808 msgstr ""
3809
3810 # type: =head1
3811 #: ../src/guestfs.pod:1976
3812 msgid "LIBGUESTFS VERSION NUMBERS"
3813 msgstr ""
3814
3815 # type: textblock
3816 #: ../src/guestfs.pod:1978
3817 msgid ""
3818 "Since April 2010, libguestfs has started to make separate development and "
3819 "stable releases, along with corresponding branches in our git repository.  "
3820 "These separate releases can be identified by version number:"
3821 msgstr ""
3822
3823 # type: verbatim
3824 #: ../src/guestfs.pod:1983
3825 #, no-wrap
3826 msgid ""
3827 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3828 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3829 "       |\n"
3830 "       v\n"
3831 " 1  .  3  .  5\n"
3832 " ^           ^\n"
3833 " |           |\n"
3834 " |           `-------- sub-version\n"
3835 " |\n"
3836 " `------ always '1' because we don't change the ABI\n"
3837 "\n"
3838 msgstr ""
3839
3840 # type: textblock
3841 #: ../src/guestfs.pod:1994
3842 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3843 msgstr ""
3844
3845 # type: textblock
3846 #: ../src/guestfs.pod:1996
3847 msgid ""
3848 "As time passes we cherry pick fixes from the development branch and backport "
3849 "those into the stable branch, the effect being that the stable branch should "
3850 "get more stable and less buggy over time.  So the stable releases are ideal "
3851 "for people who don't need new features but would just like the software to "
3852 "work."
3853 msgstr ""
3854
3855 # type: textblock
3856 #: ../src/guestfs.pod:2002
3857 msgid "Our criteria for backporting changes are:"
3858 msgstr ""
3859
3860 # type: textblock
3861 #: ../src/guestfs.pod:2008
3862 msgid ""
3863 "Documentation changes which don't affect any code are backported unless the "
3864 "documentation refers to a future feature which is not in stable."
3865 msgstr ""
3866
3867 # type: textblock
3868 #: ../src/guestfs.pod:2014
3869 msgid ""
3870 "Bug fixes which are not controversial, fix obvious problems, and have been "
3871 "well tested are backported."
3872 msgstr ""
3873
3874 # type: textblock
3875 #: ../src/guestfs.pod:2019
3876 msgid ""
3877 "Simple rearrangements of code which shouldn't affect how it works get "
3878 "backported.  This is so that the code in the two branches doesn't get too "
3879 "far out of step, allowing us to backport future fixes more easily."
3880 msgstr ""
3881
3882 # type: textblock
3883 #: ../src/guestfs.pod:2025
3884 msgid ""
3885 "We I<don't> backport new features, new APIs, new tools etc, except in one "
3886 "exceptional case: the new feature is required in order to implement an "
3887 "important bug fix."
3888 msgstr ""
3889
3890 # type: textblock
3891 #: ../src/guestfs.pod:2031
3892 msgid ""
3893 "A new stable branch starts when we think the new features in development are "
3894 "substantial and compelling enough over the current stable branch to warrant "
3895 "it.  When that happens we create new stable and development versions 1.N.0 "
3896 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
3897 "stable at this point, but by backporting fixes from development, that branch "
3898 "will stabilize over time."
3899 msgstr ""
3900
3901 # type: =head1
3902 #: ../src/guestfs.pod:2039 ../fish/guestfish.pod:965 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
3903 msgid "ENVIRONMENT VARIABLES"
3904 msgstr ""
3905
3906 # type: =item
3907 #: ../src/guestfs.pod:2043 ../fish/guestfish.pod:991
3908 msgid "LIBGUESTFS_APPEND"
3909 msgstr ""
3910
3911 # type: textblock
3912 #: ../src/guestfs.pod:2045 ../fish/guestfish.pod:993
3913 msgid "Pass additional options to the guest kernel."
3914 msgstr ""
3915
3916 # type: =item
3917 #: ../src/guestfs.pod:2047 ../fish/guestfish.pod:995
3918 msgid "LIBGUESTFS_DEBUG"
3919 msgstr ""
3920
3921 # type: textblock
3922 #: ../src/guestfs.pod:2049
3923 msgid ""
3924 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
3925 "effect as calling C<guestfs_set_verbose (g, 1)>."
3926 msgstr ""
3927
3928 # type: =item
3929 #: ../src/guestfs.pod:2052 ../fish/guestfish.pod:1000
3930 msgid "LIBGUESTFS_MEMSIZE"
3931 msgstr ""
3932
3933 # type: textblock
3934 #: ../src/guestfs.pod:2054 ../fish/guestfish.pod:1002
3935 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
3936 msgstr ""
3937
3938 # type: verbatim
3939 #: ../src/guestfs.pod:2057 ../fish/guestfish.pod:1005
3940 #, no-wrap
3941 msgid ""
3942 " LIBGUESTFS_MEMSIZE=700\n"
3943 "\n"
3944 msgstr ""
3945
3946 # type: =item
3947 #: ../src/guestfs.pod:2059 ../fish/guestfish.pod:1007
3948 msgid "LIBGUESTFS_PATH"
3949 msgstr ""
3950
3951 # type: textblock
3952 #: ../src/guestfs.pod:2061
3953 msgid ""
3954 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
3955 "the discussion of paths in section PATH above."
3956 msgstr ""
3957
3958 # type: =item
3959 #: ../src/guestfs.pod:2064 ../fish/guestfish.pod:1012
3960 msgid "LIBGUESTFS_QEMU"
3961 msgstr ""
3962
3963 # type: textblock
3964 #: ../src/guestfs.pod:2066 ../fish/guestfish.pod:1014
3965 msgid ""
3966 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
3967 "which was found at compile time by the configure script is used."
3968 msgstr ""
3969
3970 # type: textblock
3971 #: ../src/guestfs.pod:2070
3972 msgid "See also L</QEMU WRAPPERS> above."
3973 msgstr ""
3974
3975 # type: =item
3976 #: ../src/guestfs.pod:2072 ../fish/guestfish.pod:1018
3977 msgid "LIBGUESTFS_TRACE"
3978 msgstr ""
3979
3980 # type: textblock
3981 #: ../src/guestfs.pod:2074
3982 msgid ""
3983 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
3984 "effect as calling C<guestfs_set_trace (g, 1)>."
3985 msgstr ""
3986
3987 # type: =item
3988 #: ../src/guestfs.pod:2077 ../fish/guestfish.pod:1027
3989 msgid "TMPDIR"
3990 msgstr ""
3991
3992 # type: textblock
3993 #: ../src/guestfs.pod:2079 ../fish/guestfish.pod:1029
3994 msgid "Location of temporary directory, defaults to C</tmp>."
3995 msgstr ""
3996
3997 # type: textblock
3998 #: ../src/guestfs.pod:2081 ../fish/guestfish.pod:1031
3999 msgid ""
4000 "If libguestfs was compiled to use the supermin appliance then the real "
4001 "appliance is cached in this directory, shared between all handles belonging "
4002 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4003 "use in case C</tmp> is not large enough."
4004 msgstr ""
4005
4006 # type: =head1
4007 #: ../src/guestfs.pod:2089 ../fish/guestfish.pod:1089 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572 ../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
4008 msgid "SEE ALSO"
4009 msgstr ""
4010
4011 # type: textblock
4012 #: ../src/guestfs.pod:2091
4013 msgid ""
4014 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
4015 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
4016 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
4017 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
4018 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
4019 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4020 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4021 msgstr ""
4022
4023 # type: textblock
4024 #: ../src/guestfs.pod:2114
4025 msgid ""
4026 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
4027 "L<lvm(8)>, L<disktype(1)>."
4028 msgstr ""
4029
4030 # type: =head1
4031 #: ../src/guestfs.pod:2121 ../tools/virt-win-reg.pl:587 ../tools/virt-make-fs.pl:548
4032 msgid "BUGS"
4033 msgstr ""
4034
4035 # type: textblock
4036 #: ../src/guestfs.pod:2123
4037 msgid "To get a list of bugs against libguestfs use this link:"
4038 msgstr ""
4039
4040 # type: textblock
4041 #: ../src/guestfs.pod:2125
4042 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
4043 msgstr ""
4044
4045 # type: textblock
4046 #: ../src/guestfs.pod:2127
4047 msgid "To report a new bug against libguestfs use this link:"
4048 msgstr ""
4049
4050 # type: textblock
4051 #: ../src/guestfs.pod:2129
4052 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
4053 msgstr ""
4054
4055 # type: textblock
4056 #: ../src/guestfs.pod:2131
4057 msgid "When reporting a bug, please check:"
4058 msgstr ""
4059
4060 # type: textblock
4061 #: ../src/guestfs.pod:2137
4062 msgid "That the bug hasn't been reported already."
4063 msgstr ""
4064
4065 # type: textblock
4066 #: ../src/guestfs.pod:2141
4067 msgid "That you are testing a recent version."
4068 msgstr ""
4069
4070 # type: textblock
4071 #: ../src/guestfs.pod:2145
4072 msgid "Describe the bug accurately, and give a way to reproduce it."
4073 msgstr ""
4074
4075 # type: textblock
4076 #: ../src/guestfs.pod:2149
4077 msgid ""
4078 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4079 "bug report."
4080 msgstr ""
4081
4082 # type: =head1
4083 #: ../src/guestfs.pod:2154 ../fish/guestfish.pod:1108 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4084 msgid "AUTHORS"
4085 msgstr ""
4086
4087 # type: textblock
4088 #: ../src/guestfs.pod:2156 ../fish/guestfish.pod:1110 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4089 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4090 msgstr ""
4091
4092 # type: =head1
4093 #: ../src/guestfs.pod:2158 ../fish/guestfish.pod:1112 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248 ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:602 ../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
4094 msgid "COPYRIGHT"
4095 msgstr ""
4096
4097 # type: textblock
4098 #: ../src/guestfs.pod:2160 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:250
4099 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4100 msgstr ""
4101
4102 # type: textblock
4103 #: ../src/guestfs.pod:2163
4104 msgid ""
4105 "This library is free software; you can redistribute it and/or modify it "
4106 "under the terms of the GNU Lesser General Public License as published by the "
4107 "Free Software Foundation; either version 2 of the License, or (at your "
4108 "option) any later version."
4109 msgstr ""
4110
4111 # type: textblock
4112 #: ../src/guestfs.pod:2168
4113 msgid ""
4114 "This library is distributed in the hope that it will be useful, but WITHOUT "
4115 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4116 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4117 "for more details."
4118 msgstr ""
4119
4120 # type: textblock
4121 #: ../src/guestfs.pod:2173
4122 msgid ""
4123 "You should have received a copy of the GNU Lesser General Public License "
4124 "along with this library; if not, write to the Free Software Foundation, "
4125 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4126 msgstr ""
4127
4128 # type: =head2
4129 #: ../src/guestfs-actions.pod:1
4130 msgid "guestfs_add_cdrom"
4131 msgstr ""
4132
4133 # type: verbatim
4134 #: ../src/guestfs-actions.pod:3
4135 #, no-wrap
4136 msgid ""
4137 " int\n"
4138 " guestfs_add_cdrom (guestfs_h *g,\n"
4139 "                    const char *filename);\n"
4140 "\n"
4141 msgstr ""
4142
4143 # type: textblock
4144 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4145 msgid "This function adds a virtual CD-ROM disk image to the guest."
4146 msgstr ""
4147
4148 # type: textblock
4149 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4150 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4151 msgstr ""
4152
4153 # type: textblock
4154 #: ../src/guestfs-actions.pod:17
4155 msgid ""
4156 "This call checks for the existence of C<filename>.  This stops you from "
4157 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4158 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4159 "instead."
4160 msgstr ""
4161
4162 # type: textblock
4163 #: ../src/guestfs-actions.pod:24
4164 msgid ""
4165 "If you just want to add an ISO file (often you use this as an efficient way "
4166 "to transfer large files into the guest), then you should probably use "
4167 "C<guestfs_add_drive_ro> instead."
4168 msgstr ""
4169
4170 # type: textblock
4171 #: ../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
4172 msgid "This function returns 0 on success or -1 on error."
4173 msgstr ""
4174
4175 # type: textblock
4176 #: ../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
4177 msgid ""
4178 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4179 "instead."
4180 msgstr ""
4181
4182 # type: textblock
4183 #: ../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
4184 msgid ""
4185 "Deprecated functions will not be removed from the API, but the fact that "
4186 "they are deprecated indicates that there are problems with correct use of "
4187 "these functions."
4188 msgstr ""
4189
4190 # type: textblock
4191 #: ../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
4192 msgid "(Added in 0.3)"
4193 msgstr ""
4194
4195 # type: =head2
4196 #: ../src/guestfs-actions.pod:41
4197 msgid "guestfs_add_domain"
4198 msgstr ""
4199
4200 # type: verbatim
4201 #: ../src/guestfs-actions.pod:43
4202 #, no-wrap
4203 msgid ""
4204 " int\n"
4205 " guestfs_add_domain (guestfs_h *g,\n"
4206 "                     const char *dom,\n"
4207 "                     ...);\n"
4208 "\n"
4209 msgstr ""
4210
4211 # type: textblock
4212 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139 ../src/guestfs-actions.pod:4143
4213 msgid ""
4214 "You may supply a list of optional arguments to this call.  Use zero or more "
4215 "of the following pairs of parameters, and terminate the list with C<-1> on "
4216 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4217 msgstr ""
4218
4219 # type: verbatim
4220 #: ../src/guestfs-actions.pod:53
4221 #, no-wrap
4222 msgid ""
4223 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4224 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4225 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4226 "\n"
4227 msgstr ""
4228
4229 # type: textblock
4230 #: ../src/guestfs-actions.pod:57
4231 msgid ""
4232 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4233 "It works by connecting to libvirt, requesting the domain and domain XML from "
4234 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4235 "one."
4236 msgstr ""
4237
4238 # type: textblock
4239 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4240 msgid ""
4241 "The number of disks added is returned.  This operation is atomic: if an "
4242 "error is returned, then no disks are added."
4243 msgstr ""
4244
4245 # type: textblock
4246 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4247 msgid ""
4248 "This function does some minimal checks to make sure the libvirt domain is "
4249 "not running (unless C<readonly> is true).  In a future version we will try "
4250 "to acquire the libvirt lock on each disk."
4251 msgstr ""
4252
4253 # type: textblock
4254 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4255 msgid ""
4256 "Disks must be accessible locally.  This often means that adding disks from a "
4257 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4258 "unless those disks are accessible via the same device path locally too."
4259 msgstr ""
4260
4261 # type: textblock
4262 #: ../src/guestfs-actions.pod:74
4263 msgid ""
4264 "The optional C<libvirturi> parameter sets the libvirt URI (see "
4265 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
4266 "default libvirt URI (or one set through an environment variable, see the "
4267 "libvirt documentation for full details).  If you are using the C API "
4268 "directly then it is more flexible to create the libvirt connection object "
4269 "yourself, get the domain object, and call C<guestfs_add_libvirt_dom>."
4270 msgstr ""
4271
4272 # type: textblock
4273 #: ../src/guestfs-actions.pod:82
4274 msgid ""
4275 "The other optional parameters are passed directly through to "
4276 "C<guestfs_add_drive_opts>."
4277 msgstr ""
4278
4279 # type: textblock
4280 #: ../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
4281 msgid "On error this function returns -1."
4282 msgstr ""
4283
4284 # type: textblock
4285 #: ../src/guestfs-actions.pod:87
4286 msgid "(Added in 1.7.4)"
4287 msgstr ""
4288
4289 # type: =head2
4290 #: ../src/guestfs-actions.pod:89
4291 msgid "guestfs_add_domain_va"
4292 msgstr ""
4293
4294 # type: verbatim
4295 #: ../src/guestfs-actions.pod:91
4296 #, no-wrap
4297 msgid ""
4298 " int\n"
4299 " guestfs_add_domain_va (guestfs_h *g,\n"
4300 "                        const char *dom,\n"
4301 "                        va_list args);\n"
4302 "\n"
4303 msgstr ""
4304
4305 # type: textblock
4306 #: ../src/guestfs-actions.pod:96
4307 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4308 msgstr ""
4309
4310 # type: textblock
4311 #: ../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
4312 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4313 msgstr ""
4314
4315 # type: =head2
4316 #: ../src/guestfs-actions.pod:100
4317 msgid "guestfs_add_domain_argv"
4318 msgstr ""
4319
4320 # type: verbatim
4321 #: ../src/guestfs-actions.pod:102
4322 #, no-wrap
4323 msgid ""
4324 " int\n"
4325 " guestfs_add_domain_argv (guestfs_h *g,\n"
4326 "                          const char *dom,\n"
4327 "                          const struct guestfs_add_domain_argv *optargs);\n"
4328 "\n"
4329 msgstr ""
4330
4331 # type: textblock
4332 #: ../src/guestfs-actions.pod:107
4333 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4334 msgstr ""
4335
4336 # type: =head2
4337 #: ../src/guestfs-actions.pod:111
4338 msgid "guestfs_add_drive"
4339 msgstr ""
4340
4341 # type: verbatim
4342 #: ../src/guestfs-actions.pod:113
4343 #, no-wrap
4344 msgid ""
4345 " int\n"
4346 " guestfs_add_drive (guestfs_h *g,\n"
4347 "                    const char *filename);\n"
4348 "\n"
4349 msgstr ""
4350
4351 # type: textblock
4352 #: ../src/guestfs-actions.pod:117
4353 msgid ""
4354 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4355 "optional parameters, so the disk is added writable, with the format being "
4356 "detected automatically."
4357 msgstr ""
4358
4359 # type: textblock
4360 #: ../src/guestfs-actions.pod:121
4361 msgid ""
4362 "Automatic detection of the format opens you up to a potential security hole "
4363 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4364 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4365 "you should think about replacing calls to this function with calls to "
4366 "C<guestfs_add_drive_opts>, and specifying the format."
4367 msgstr ""
4368
4369 # type: =head2
4370 #: ../src/guestfs-actions.pod:132
4371 msgid "guestfs_add_drive_opts"
4372 msgstr ""
4373
4374 # type: verbatim
4375 #: ../src/guestfs-actions.pod:134
4376 #, no-wrap
4377 msgid ""
4378 " int\n"
4379 " guestfs_add_drive_opts (guestfs_h *g,\n"
4380 "                         const char *filename,\n"
4381 "                         ...);\n"
4382 "\n"
4383 msgstr ""
4384
4385 # type: verbatim
4386 #: ../src/guestfs-actions.pod:144
4387 #, no-wrap
4388 msgid ""
4389 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4390 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4391 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4392 "\n"
4393 msgstr ""
4394
4395 # type: textblock
4396 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4397 msgid ""
4398 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4399 "The first time you call this function, the disk appears as C</dev/sda>, the "
4400 "second time as C</dev/sdb>, and so on."
4401 msgstr ""
4402
4403 # type: textblock
4404 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4405 msgid ""
4406 "You don't necessarily need to be root when using libguestfs.  However you "
4407 "obviously do need sufficient permissions to access the filename for whatever "
4408 "operations you want to perform (ie. read access if you just want to read the "
4409 "image or write access if you want to modify the image)."
4410 msgstr ""
4411
4412 # type: textblock
4413 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4414 msgid "This call checks that C<filename> exists."
4415 msgstr ""
4416
4417 # type: textblock
4418 #: ../src/guestfs-actions.pod:161 ../src/guestfs-actions.pod:4153 ../fish/guestfish-actions.pod:105 ../fish/guestfish-actions.pod:2789
4419 msgid "The optional arguments are:"
4420 msgstr ""
4421
4422 # type: =item
4423 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4424 msgid "C<readonly>"
4425 msgstr ""
4426
4427 # type: textblock
4428 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4429 msgid ""
4430 "If true then the image is treated as read-only.  Writes are still allowed, "
4431 "but they are stored in a temporary snapshot overlay which is discarded at "
4432 "the end.  The disk that you add is not modified."
4433 msgstr ""
4434
4435 # type: =item
4436 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4437 msgid "C<format>"
4438 msgstr ""
4439
4440 # type: textblock
4441 #: ../src/guestfs-actions.pod:173
4442 msgid ""
4443 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4444 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4445 "Possible formats include C<raw> and C<qcow2>."
4446 msgstr ""
4447
4448 # type: textblock
4449 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4450 msgid ""
4451 "Automatic detection of the format opens you up to a potential security hole "
4452 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4453 "RHBZ#642934.  Specifying the format closes this security hole."
4454 msgstr ""
4455
4456 # type: =item
4457 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4458 msgid "C<iface>"
4459 msgstr ""
4460
4461 # type: textblock
4462 #: ../src/guestfs-actions.pod:184
4463 msgid ""
4464 "This rarely-used option lets you emulate the behaviour of the deprecated "
4465 "C<guestfs_add_drive_with_if> call (q.v.)"
4466 msgstr ""
4467
4468 # type: textblock
4469 #: ../src/guestfs-actions.pod:191
4470 msgid "(Added in 1.5.23)"
4471 msgstr ""
4472
4473 # type: =head2
4474 #: ../src/guestfs-actions.pod:193
4475 msgid "guestfs_add_drive_opts_va"
4476 msgstr ""
4477
4478 # type: verbatim
4479 #: ../src/guestfs-actions.pod:195
4480 #, no-wrap
4481 msgid ""
4482 " int\n"
4483 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4484 "                            const char *filename,\n"
4485 "                            va_list args);\n"
4486 "\n"
4487 msgstr ""
4488
4489 # type: textblock
4490 #: ../src/guestfs-actions.pod:200
4491 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4492 msgstr ""
4493
4494 # type: =head2
4495 #: ../src/guestfs-actions.pod:204
4496 msgid "guestfs_add_drive_opts_argv"
4497 msgstr ""
4498
4499 # type: verbatim
4500 #: ../src/guestfs-actions.pod:206
4501 #, no-wrap
4502 msgid ""
4503 " int\n"
4504 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4505 "                              const char *filename,\n"
4506 "                              const struct guestfs_add_drive_opts_argv "
4507 "*optargs);\n"
4508 "\n"
4509 msgstr ""
4510
4511 # type: textblock
4512 #: ../src/guestfs-actions.pod:211
4513 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4514 msgstr ""
4515
4516 # type: =head2
4517 #: ../src/guestfs-actions.pod:215
4518 msgid "guestfs_add_drive_ro"
4519 msgstr ""
4520
4521 # type: verbatim
4522 #: ../src/guestfs-actions.pod:217
4523 #, no-wrap
4524 msgid ""
4525 " int\n"
4526 " guestfs_add_drive_ro (guestfs_h *g,\n"
4527 "                       const char *filename);\n"
4528 "\n"
4529 msgstr ""
4530
4531 # type: textblock
4532 #: ../src/guestfs-actions.pod:221
4533 msgid ""
4534 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4535 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4536 "disk is added read-only, with the format being detected automatically."
4537 msgstr ""
4538
4539 # type: textblock
4540 #: ../src/guestfs-actions.pod:228
4541 msgid "(Added in 1.0.38)"
4542 msgstr ""
4543
4544 # type: =head2
4545 #: ../src/guestfs-actions.pod:230
4546 msgid "guestfs_add_drive_ro_with_if"
4547 msgstr ""
4548
4549 # type: verbatim
4550 #: ../src/guestfs-actions.pod:232
4551 #, no-wrap
4552 msgid ""
4553 " int\n"
4554 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4555 "                               const char *filename,\n"
4556 "                               const char *iface);\n"
4557 "\n"
4558 msgstr ""
4559
4560 # type: textblock
4561 #: ../src/guestfs-actions.pod:237
4562 msgid ""
4563 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4564 "QEMU interface emulation to use at run time."
4565 msgstr ""
4566
4567 # type: textblock
4568 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270 ../src/guestfs-actions.pod:2305
4569 msgid "(Added in 1.0.84)"
4570 msgstr ""
4571
4572 # type: =head2
4573 #: ../src/guestfs-actions.pod:251
4574 msgid "guestfs_add_drive_with_if"
4575 msgstr ""
4576
4577 # type: verbatim
4578 #: ../src/guestfs-actions.pod:253
4579 #, no-wrap
4580 msgid ""
4581 " int\n"
4582 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4583 "                            const char *filename,\n"
4584 "                            const char *iface);\n"
4585 "\n"
4586 msgstr ""
4587
4588 # type: textblock
4589 #: ../src/guestfs-actions.pod:258
4590 msgid ""
4591 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4592 "QEMU interface emulation to use at run time."
4593 msgstr ""
4594
4595 # type: =head2
4596 #: ../src/guestfs-actions.pod:272
4597 msgid "guestfs_aug_clear"
4598 msgstr ""
4599
4600 # type: verbatim
4601 #: ../src/guestfs-actions.pod:274
4602 #, no-wrap
4603 msgid ""
4604 " int\n"
4605 " guestfs_aug_clear (guestfs_h *g,\n"
4606 "                    const char *augpath);\n"
4607 "\n"
4608 msgstr ""
4609
4610 # type: textblock
4611 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4612 msgid ""
4613 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4614 "L<augtool(1)> C<clear> command."
4615 msgstr ""
4616
4617 # type: textblock
4618 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4619 msgid "(Added in 1.3.4)"
4620 msgstr ""
4621
4622 # type: =head2
4623 #: ../src/guestfs-actions.pod:285
4624 msgid "guestfs_aug_close"
4625 msgstr ""
4626
4627 # type: verbatim
4628 #: ../src/guestfs-actions.pod:287
4629 #, no-wrap
4630 msgid ""
4631 " int\n"
4632 " guestfs_aug_close (guestfs_h *g);\n"
4633 "\n"
4634 msgstr ""
4635
4636 # type: textblock
4637 #: ../src/guestfs-actions.pod:290
4638 msgid ""
4639 "Close the current Augeas handle and free up any resources used by it.  After "
4640 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4641 "any other Augeas functions."
4642 msgstr ""
4643
4644 # type: textblock
4645 #: ../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
4646 msgid "(Added in 0.7)"
4647 msgstr ""
4648
4649 # type: =head2
4650 #: ../src/guestfs-actions.pod:299
4651 msgid "guestfs_aug_defnode"
4652 msgstr ""
4653
4654 # type: verbatim
4655 #: ../src/guestfs-actions.pod:301
4656 #, no-wrap
4657 msgid ""
4658 " struct guestfs_int_bool *\n"
4659 " guestfs_aug_defnode (guestfs_h *g,\n"
4660 "                      const char *name,\n"
4661 "                      const char *expr,\n"
4662 "                      const char *val);\n"
4663 "\n"
4664 msgstr ""
4665
4666 # type: textblock
4667 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4668 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4669 msgstr ""
4670
4671 # type: textblock
4672 #: ../src/guestfs-actions.pod:310
4673 msgid ""
4674 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4675 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4676 "containing that single node."
4677 msgstr ""
4678
4679 # type: textblock
4680 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4681 msgid ""
4682 "On success this returns a pair containing the number of nodes in the "
4683 "nodeset, and a boolean flag if a node was created."
4684 msgstr ""
4685
4686 # type: textblock
4687 #: ../src/guestfs-actions.pod:318
4688 msgid ""
4689 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4690 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4691 msgstr ""
4692
4693 # type: =head2
4694 #: ../src/guestfs-actions.pod:324
4695 msgid "guestfs_aug_defvar"
4696 msgstr ""
4697
4698 # type: verbatim
4699 #: ../src/guestfs-actions.pod:326
4700 #, no-wrap
4701 msgid ""
4702 " int\n"
4703 " guestfs_aug_defvar (guestfs_h *g,\n"
4704 "                     const char *name,\n"
4705 "                     const char *expr);\n"
4706 "\n"
4707 msgstr ""
4708
4709 # type: textblock
4710 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
4711 msgid ""
4712 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4713 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4714 msgstr ""
4715
4716 # type: textblock
4717 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
4718 msgid ""
4719 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4720 "evaluates to something which is not a nodeset."
4721 msgstr ""
4722
4723 # type: =head2
4724 #: ../src/guestfs-actions.pod:342
4725 msgid "guestfs_aug_get"
4726 msgstr ""
4727
4728 # type: verbatim
4729 #: ../src/guestfs-actions.pod:344
4730 #, no-wrap
4731 msgid ""
4732 " char *\n"
4733 " guestfs_aug_get (guestfs_h *g,\n"
4734 "                  const char *augpath);\n"
4735 "\n"
4736 msgstr ""
4737
4738 # type: textblock
4739 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
4740 msgid ""
4741 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4742 "node, the C<value> is returned."
4743 msgstr ""
4744
4745 # type: textblock
4746 #: ../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
4747 msgid ""
4748 "This function returns a string, or NULL on error.  I<The caller must free "
4749 "the returned string after use>."
4750 msgstr ""
4751
4752 # type: =head2
4753 #: ../src/guestfs-actions.pod:356
4754 msgid "guestfs_aug_init"
4755 msgstr ""
4756
4757 # type: verbatim
4758 #: ../src/guestfs-actions.pod:358
4759 #, no-wrap
4760 msgid ""
4761 " int\n"
4762 " guestfs_aug_init (guestfs_h *g,\n"
4763 "                   const char *root,\n"
4764 "                   int flags);\n"
4765 "\n"
4766 msgstr ""
4767
4768 # type: textblock
4769 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
4770 msgid ""
4771 "Create a new Augeas handle for editing configuration files.  If there was "
4772 "any previous Augeas handle associated with this guestfs session, then it is "
4773 "closed."
4774 msgstr ""
4775
4776 # type: textblock
4777 #: ../src/guestfs-actions.pod:367
4778 msgid "You must call this before using any other C<guestfs_aug_*> commands."
4779 msgstr ""
4780
4781 # type: textblock
4782 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
4783 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4784 msgstr ""
4785
4786 # type: textblock
4787 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
4788 msgid ""
4789 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4790 "logical I<or> of the following integers:"
4791 msgstr ""
4792
4793 # type: =item
4794 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
4795 msgid "C<AUG_SAVE_BACKUP> = 1"
4796 msgstr ""
4797
4798 # type: textblock
4799 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
4800 msgid "Keep the original file with a C<.augsave> extension."
4801 msgstr ""
4802
4803 # type: =item
4804 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
4805 msgid "C<AUG_SAVE_NEWFILE> = 2"
4806 msgstr ""
4807
4808 # type: textblock
4809 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
4810 msgid ""
4811 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4812 "original.  Overrides C<AUG_SAVE_BACKUP>."
4813 msgstr ""
4814
4815 # type: =item
4816 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
4817 msgid "C<AUG_TYPE_CHECK> = 4"
4818 msgstr ""
4819
4820 # type: textblock
4821 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
4822 msgid "Typecheck lenses (can be expensive)."
4823 msgstr ""
4824
4825 # type: =item
4826 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
4827 msgid "C<AUG_NO_STDINC> = 8"
4828 msgstr ""
4829
4830 # type: textblock
4831 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
4832 msgid "Do not use standard load path for modules."
4833 msgstr ""
4834
4835 # type: =item
4836 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
4837 msgid "C<AUG_SAVE_NOOP> = 16"
4838 msgstr ""
4839
4840 # type: textblock
4841 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
4842 msgid "Make save a no-op, just record what would have been changed."
4843 msgstr ""
4844
4845 # type: =item
4846 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
4847 msgid "C<AUG_NO_LOAD> = 32"
4848 msgstr ""
4849
4850 # type: textblock
4851 #: ../src/guestfs-actions.pod:402
4852 msgid "Do not load the tree in C<guestfs_aug_init>."
4853 msgstr ""
4854
4855 # type: textblock
4856 #: ../src/guestfs-actions.pod:406
4857 msgid "To close the handle, you can call C<guestfs_aug_close>."
4858 msgstr ""
4859
4860 # type: textblock
4861 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
4862 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4863 msgstr ""
4864
4865 # type: =head2
4866 #: ../src/guestfs-actions.pod:414
4867 msgid "guestfs_aug_insert"
4868 msgstr ""
4869
4870 # type: verbatim
4871 #: ../src/guestfs-actions.pod:416
4872 #, no-wrap
4873 msgid ""
4874 " int\n"
4875 " guestfs_aug_insert (guestfs_h *g,\n"
4876 "                     const char *augpath,\n"
4877 "                     const char *label,\n"
4878 "                     int before);\n"
4879 "\n"
4880 msgstr ""
4881
4882 # type: textblock
4883 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
4884 msgid ""
4885 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4886 "or after C<path> (depending on the boolean flag C<before>)."
4887 msgstr ""
4888
4889 # type: textblock
4890 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
4891 msgid ""
4892 "C<path> must match exactly one existing node in the tree, and C<label> must "
4893 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4894 msgstr ""
4895
4896 # type: =head2
4897 #: ../src/guestfs-actions.pod:434
4898 msgid "guestfs_aug_load"
4899 msgstr ""
4900
4901 # type: verbatim
4902 #: ../src/guestfs-actions.pod:436
4903 #, no-wrap
4904 msgid ""
4905 " int\n"
4906 " guestfs_aug_load (guestfs_h *g);\n"
4907 "\n"
4908 msgstr ""
4909
4910 # type: textblock
4911 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
4912 msgid "Load files into the tree."
4913 msgstr ""
4914
4915 # type: textblock
4916 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
4917 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4918 msgstr ""
4919
4920 # type: =head2
4921 #: ../src/guestfs-actions.pod:448
4922 msgid "guestfs_aug_ls"
4923 msgstr ""
4924
4925 # type: verbatim
4926 #: ../src/guestfs-actions.pod:450
4927 #, no-wrap
4928 msgid ""
4929 " char **\n"
4930 " guestfs_aug_ls (guestfs_h *g,\n"
4931 "                 const char *augpath);\n"
4932 "\n"
4933 msgstr ""
4934
4935 # type: textblock
4936 #: ../src/guestfs-actions.pod:454
4937 msgid ""
4938 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
4939 "sorting the resulting nodes into alphabetical order."
4940 msgstr ""
4941
4942 # type: textblock
4943 #: ../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
4944 msgid ""
4945 "This function returns a NULL-terminated array of strings (like "
4946 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
4947 "strings and the array after use>."
4948 msgstr ""
4949
4950 # type: textblock
4951 #: ../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
4952 msgid "(Added in 0.8)"
4953 msgstr ""
4954
4955 # type: =head2
4956 #: ../src/guestfs-actions.pod:463
4957 msgid "guestfs_aug_match"
4958 msgstr ""
4959
4960 # type: verbatim
4961 #: ../src/guestfs-actions.pod:465
4962 #, no-wrap
4963 msgid ""
4964 " char **\n"
4965 " guestfs_aug_match (guestfs_h *g,\n"
4966 "                    const char *augpath);\n"
4967 "\n"
4968 msgstr ""
4969
4970 # type: textblock
4971 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
4972 msgid ""
4973 "Returns a list of paths which match the path expression C<path>.  The "
4974 "returned paths are sufficiently qualified so that they match exactly one "
4975 "node in the current tree."
4976 msgstr ""
4977
4978 # type: =head2
4979 #: ../src/guestfs-actions.pod:479
4980 msgid "guestfs_aug_mv"
4981 msgstr ""
4982
4983 # type: verbatim
4984 #: ../src/guestfs-actions.pod:481
4985 #, no-wrap
4986 msgid ""
4987 " int\n"
4988 " guestfs_aug_mv (guestfs_h *g,\n"
4989 "                 const char *src,\n"
4990 "                 const char *dest);\n"
4991 "\n"
4992 msgstr ""
4993
4994 # type: textblock
4995 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
4996 msgid ""
4997 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4998 "C<dest> is overwritten if it exists."
4999 msgstr ""
5000
5001 # type: =head2
5002 #: ../src/guestfs-actions.pod:493
5003 msgid "guestfs_aug_rm"
5004 msgstr ""
5005
5006 # type: verbatim
5007 #: ../src/guestfs-actions.pod:495
5008 #, no-wrap
5009 msgid ""
5010 " int\n"
5011 " guestfs_aug_rm (guestfs_h *g,\n"
5012 "                 const char *augpath);\n"
5013 "\n"
5014 msgstr ""
5015
5016 # type: textblock
5017 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5018 msgid "Remove C<path> and all of its children."
5019 msgstr ""
5020
5021 # type: textblock
5022 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5023 msgid "On success this returns the number of entries which were removed."
5024 msgstr ""
5025
5026 # type: =head2
5027 #: ../src/guestfs-actions.pod:507
5028 msgid "guestfs_aug_save"
5029 msgstr ""
5030
5031 # type: verbatim
5032 #: ../src/guestfs-actions.pod:509
5033 #, no-wrap
5034 msgid ""
5035 " int\n"
5036 " guestfs_aug_save (guestfs_h *g);\n"
5037 "\n"
5038 msgstr ""
5039
5040 # type: textblock
5041 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5042 msgid "This writes all pending changes to disk."
5043 msgstr ""
5044
5045 # type: textblock
5046 #: ../src/guestfs-actions.pod:514
5047 msgid ""
5048 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5049 "are saved."
5050 msgstr ""
5051
5052 # type: =head2
5053 #: ../src/guestfs-actions.pod:521
5054 msgid "guestfs_aug_set"
5055 msgstr ""
5056
5057 # type: verbatim
5058 #: ../src/guestfs-actions.pod:523
5059 #, no-wrap
5060 msgid ""
5061 " int\n"
5062 " guestfs_aug_set (guestfs_h *g,\n"
5063 "                  const char *augpath,\n"
5064 "                  const char *val);\n"
5065 "\n"
5066 msgstr ""
5067
5068 # type: textblock
5069 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5070 msgid "Set the value associated with C<path> to C<val>."
5071 msgstr ""
5072
5073 # type: textblock
5074 #: ../src/guestfs-actions.pod:530
5075 msgid ""
5076 "In the Augeas API, it is possible to clear a node by setting the value to "
5077 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5078 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5079 msgstr ""
5080
5081 # type: =head2
5082 #: ../src/guestfs-actions.pod:539
5083 msgid "guestfs_available"
5084 msgstr ""
5085
5086 # type: verbatim
5087 #: ../src/guestfs-actions.pod:541
5088 #, no-wrap
5089 msgid ""
5090 " int\n"
5091 " guestfs_available (guestfs_h *g,\n"
5092 "                    char *const *groups);\n"
5093 "\n"
5094 msgstr ""
5095
5096 # type: textblock
5097 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5098 msgid ""
5099 "This command is used to check the availability of some groups of "
5100 "functionality in the appliance, which not all builds of the libguestfs "
5101 "appliance will be able to provide."
5102 msgstr ""
5103
5104 # type: textblock
5105 #: ../src/guestfs-actions.pod:549
5106 msgid ""
5107 "The libguestfs groups, and the functions that those groups correspond to, "
5108 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5109 "runtime by calling C<guestfs_available_all_groups>."
5110 msgstr ""
5111
5112 # type: textblock
5113 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5114 msgid ""
5115 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
5116 "\"augeas\"]> would check for the availability of the Linux inotify functions "
5117 "and Augeas (configuration file editing) functions."
5118 msgstr ""
5119
5120 # type: textblock
5121 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5122 msgid "The command returns no error if I<all> requested groups are available."
5123 msgstr ""
5124
5125 # type: textblock
5126 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5127 msgid ""
5128 "It fails with an error if one or more of the requested groups is unavailable "
5129 "in the appliance."
5130 msgstr ""
5131
5132 # type: textblock
5133 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5134 msgid ""
5135 "If an unknown group name is included in the list of groups then an error is "
5136 "always returned."
5137 msgstr ""
5138
5139 # type: textblock
5140 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5141 msgid "I<Notes:>"
5142 msgstr ""
5143
5144 # type: textblock
5145 #: ../src/guestfs-actions.pod:573
5146 msgid "You must call C<guestfs_launch> before calling this function."
5147 msgstr ""
5148
5149 # type: textblock
5150 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5151 msgid ""
5152 "The reason is because we don't know what groups are supported by the "
5153 "appliance/daemon until it is running and can be queried."
5154 msgstr ""
5155
5156 # type: textblock
5157 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5158 msgid ""
5159 "If a group of functions is available, this does not necessarily mean that "
5160 "they will work.  You still have to check for errors when calling individual "
5161 "API functions even if they are available."
5162 msgstr ""
5163
5164 # type: textblock
5165 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5166 msgid ""
5167 "It is usually the job of distro packagers to build complete functionality "
5168 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5169 "with all requirements satisfied, will support everything."
5170 msgstr ""
5171
5172 # type: textblock
5173 #: ../src/guestfs-actions.pod:595
5174 msgid ""
5175 "This call was added in version C<1.0.80>.  In previous versions of "
5176 "libguestfs all you could do would be to speculatively execute a command to "
5177 "find out if the daemon implemented it.  See also C<guestfs_version>."
5178 msgstr ""
5179
5180 # type: textblock
5181 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5182 msgid "(Added in 1.0.80)"
5183 msgstr ""
5184
5185 # type: =head2
5186 #: ../src/guestfs-actions.pod:606
5187 msgid "guestfs_available_all_groups"
5188 msgstr ""
5189
5190 # type: verbatim
5191 #: ../src/guestfs-actions.pod:608
5192 #, no-wrap
5193 msgid ""
5194 " char **\n"
5195 " guestfs_available_all_groups (guestfs_h *g);\n"
5196 "\n"
5197 msgstr ""
5198
5199 # type: textblock
5200 #: ../src/guestfs-actions.pod:611
5201 msgid ""
5202 "This command returns a list of all optional groups that this daemon knows "
5203 "about.  Note this returns both supported and unsupported groups.  To find "
5204 "out which ones the daemon can actually support you have to call "
5205 "C<guestfs_available> on each member of the returned list."
5206 msgstr ""
5207
5208 # type: textblock
5209 #: ../src/guestfs-actions.pod:617
5210 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5211 msgstr ""
5212
5213 # type: textblock
5214 #: ../src/guestfs-actions.pod:623
5215 msgid "(Added in 1.3.15)"
5216 msgstr ""
5217
5218 # type: =head2
5219 #: ../src/guestfs-actions.pod:625
5220 msgid "guestfs_base64_in"
5221 msgstr ""
5222
5223 # type: verbatim
5224 #: ../src/guestfs-actions.pod:627
5225 #, no-wrap
5226 msgid ""
5227 " int\n"
5228 " guestfs_base64_in (guestfs_h *g,\n"
5229 "                    const char *base64file,\n"
5230 "                    const char *filename);\n"
5231 "\n"
5232 msgstr ""
5233
5234 # type: textblock
5235 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5236 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5237 msgstr ""
5238
5239 # type: textblock
5240 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5241 msgid "(Added in 1.3.5)"
5242 msgstr ""
5243
5244 # type: =head2
5245 #: ../src/guestfs-actions.pod:639
5246 msgid "guestfs_base64_out"
5247 msgstr ""
5248
5249 # type: verbatim
5250 #: ../src/guestfs-actions.pod:641
5251 #, no-wrap
5252 msgid ""
5253 " int\n"
5254 " guestfs_base64_out (guestfs_h *g,\n"
5255 "                     const char *filename,\n"
5256 "                     const char *base64file);\n"
5257 "\n"
5258 msgstr ""
5259
5260 # type: textblock
5261 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5262 msgid ""
5263 "This command downloads the contents of C<filename>, writing it out to local "
5264 "file C<base64file> encoded as base64."
5265 msgstr ""
5266
5267 # type: =head2
5268 #: ../src/guestfs-actions.pod:653
5269 msgid "guestfs_blockdev_flushbufs"
5270 msgstr ""
5271
5272 # type: verbatim
5273 #: ../src/guestfs-actions.pod:655
5274 #, no-wrap
5275 msgid ""
5276 " int\n"
5277 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5278 "                             const char *device);\n"
5279 "\n"
5280 msgstr ""
5281
5282 # type: textblock
5283 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5284 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5285 msgstr ""
5286
5287 # type: textblock
5288 #: ../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
5289 msgid "This uses the L<blockdev(8)> command."
5290 msgstr ""
5291
5292 # type: textblock
5293 #: ../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
5294 msgid "(Added in 0.9.3)"
5295 msgstr ""
5296
5297 # type: =head2
5298 #: ../src/guestfs-actions.pod:668
5299 msgid "guestfs_blockdev_getbsz"
5300 msgstr ""
5301
5302 # type: verbatim
5303 #: ../src/guestfs-actions.pod:670
5304 #, no-wrap
5305 msgid ""
5306 " int\n"
5307 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5308 "                          const char *device);\n"
5309 "\n"
5310 msgstr ""
5311
5312 # type: textblock
5313 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5314 msgid "This returns the block size of a device."
5315 msgstr ""
5316
5317 # type: textblock
5318 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776 ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5319 msgid ""
5320 "(Note this is different from both I<size in blocks> and I<filesystem block "
5321 "size>)."
5322 msgstr ""
5323
5324 # type: =head2
5325 #: ../src/guestfs-actions.pod:685
5326 msgid "guestfs_blockdev_getro"
5327 msgstr ""
5328
5329 # type: verbatim
5330 #: ../src/guestfs-actions.pod:687
5331 #, no-wrap
5332 msgid ""
5333 " int\n"
5334 " guestfs_blockdev_getro (guestfs_h *g,\n"
5335 "                         const char *device);\n"
5336 "\n"
5337 msgstr ""
5338
5339 # type: textblock
5340 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5341 msgid ""
5342 "Returns a boolean indicating if the block device is read-only (true if "
5343 "read-only, false if not)."
5344 msgstr ""
5345
5346 # type: textblock
5347 #: ../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
5348 msgid "This function returns a C truth value on success or -1 on error."
5349 msgstr ""
5350
5351 # type: =head2
5352 #: ../src/guestfs-actions.pod:700
5353 msgid "guestfs_blockdev_getsize64"
5354 msgstr ""
5355
5356 # type: verbatim
5357 #: ../src/guestfs-actions.pod:702
5358 #, no-wrap
5359 msgid ""
5360 " int64_t\n"
5361 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5362 "                             const char *device);\n"
5363 "\n"
5364 msgstr ""
5365
5366 # type: textblock
5367 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5368 msgid "This returns the size of the device in bytes."
5369 msgstr ""
5370
5371 # type: textblock
5372 #: ../src/guestfs-actions.pod:708
5373 msgid "See also C<guestfs_blockdev_getsz>."
5374 msgstr ""
5375
5376 # type: =head2
5377 #: ../src/guestfs-actions.pod:716
5378 msgid "guestfs_blockdev_getss"
5379 msgstr ""
5380
5381 # type: verbatim
5382 #: ../src/guestfs-actions.pod:718
5383 #, no-wrap
5384 msgid ""
5385 " int\n"
5386 " guestfs_blockdev_getss (guestfs_h *g,\n"
5387 "                         const char *device);\n"
5388 "\n"
5389 msgstr ""
5390
5391 # type: textblock
5392 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5393 msgid ""
5394 "This returns the size of sectors on a block device.  Usually 512, but can be "
5395 "larger for modern devices."
5396 msgstr ""
5397
5398 # type: textblock
5399 #: ../src/guestfs-actions.pod:725
5400 msgid ""
5401 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5402 "that)."
5403 msgstr ""
5404
5405 # type: =head2
5406 #: ../src/guestfs-actions.pod:734
5407 msgid "guestfs_blockdev_getsz"
5408 msgstr ""
5409
5410 # type: verbatim
5411 #: ../src/guestfs-actions.pod:736
5412 #, no-wrap
5413 msgid ""
5414 " int64_t\n"
5415 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5416 "                         const char *device);\n"
5417 "\n"
5418 msgstr ""
5419
5420 # type: textblock
5421 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5422 msgid ""
5423 "This returns the size of the device in units of 512-byte sectors (even if "
5424 "the sectorsize isn't 512 bytes ... weird)."
5425 msgstr ""
5426
5427 # type: textblock
5428 #: ../src/guestfs-actions.pod:743
5429 msgid ""
5430 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5431 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5432 msgstr ""
5433
5434 # type: =head2
5435 #: ../src/guestfs-actions.pod:753
5436 msgid "guestfs_blockdev_rereadpt"
5437 msgstr ""
5438
5439 # type: verbatim
5440 #: ../src/guestfs-actions.pod:755
5441 #, no-wrap
5442 msgid ""
5443 " int\n"
5444 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5445 "                            const char *device);\n"
5446 "\n"
5447 msgstr ""
5448
5449 # type: textblock
5450 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5451 msgid "Reread the partition table on C<device>."
5452 msgstr ""
5453
5454 # type: =head2
5455 #: ../src/guestfs-actions.pod:767
5456 msgid "guestfs_blockdev_setbsz"
5457 msgstr ""
5458
5459 # type: verbatim
5460 #: ../src/guestfs-actions.pod:769
5461 #, no-wrap
5462 msgid ""
5463 " int\n"
5464 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5465 "                          const char *device,\n"
5466 "                          int blocksize);\n"
5467 "\n"
5468 msgstr ""
5469
5470 # type: textblock
5471 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5472 msgid "This sets the block size of a device."
5473 msgstr ""
5474
5475 # type: =head2
5476 #: ../src/guestfs-actions.pod:785
5477 msgid "guestfs_blockdev_setro"
5478 msgstr ""
5479
5480 # type: verbatim
5481 #: ../src/guestfs-actions.pod:787
5482 #, no-wrap
5483 msgid ""
5484 " int\n"
5485 " guestfs_blockdev_setro (guestfs_h *g,\n"
5486 "                         const char *device);\n"
5487 "\n"
5488 msgstr ""
5489
5490 # type: textblock
5491 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5492 msgid "Sets the block device named C<device> to read-only."
5493 msgstr ""
5494
5495 # type: =head2
5496 #: ../src/guestfs-actions.pod:799
5497 msgid "guestfs_blockdev_setrw"
5498 msgstr ""
5499
5500 # type: verbatim
5501 #: ../src/guestfs-actions.pod:801
5502 #, no-wrap
5503 msgid ""
5504 " int\n"
5505 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5506 "                         const char *device);\n"
5507 "\n"
5508 msgstr ""
5509
5510 # type: textblock
5511 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5512 msgid "Sets the block device named C<device> to read-write."
5513 msgstr ""
5514
5515 # type: =head2
5516 #: ../src/guestfs-actions.pod:813
5517 msgid "guestfs_case_sensitive_path"
5518 msgstr ""
5519
5520 # type: verbatim
5521 #: ../src/guestfs-actions.pod:815
5522 #, no-wrap
5523 msgid ""
5524 " char *\n"
5525 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5526 "                              const char *path);\n"
5527 "\n"
5528 msgstr ""
5529
5530 # type: textblock
5531 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5532 msgid ""
5533 "This can be used to resolve case insensitive paths on a filesystem which is "
5534 "case sensitive.  The use case is to resolve paths which you have read from "
5535 "Windows configuration files or the Windows Registry, to the true path."
5536 msgstr ""
5537
5538 # type: textblock
5539 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5540 msgid ""
5541 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5542 "(and probably others), which is that although the underlying filesystem is "
5543 "case-insensitive, the driver exports the filesystem to Linux as "
5544 "case-sensitive."
5545 msgstr ""
5546
5547 # type: textblock
5548 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5549 msgid ""
5550 "One consequence of this is that special directories such as C<c:\\windows> "
5551 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5552 "precise details of how they were created.  In Windows itself this would not "
5553 "be a problem."
5554 msgstr ""
5555
5556 # type: textblock
5557 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5558 msgid ""
5559 "Bug or feature? You decide: "
5560 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5561 msgstr ""
5562
5563 # type: textblock
5564 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5565 msgid ""
5566 "This function resolves the true case of each element in the path and returns "
5567 "the case-sensitive path."
5568 msgstr ""
5569
5570 # type: textblock
5571 #: ../src/guestfs-actions.pod:841
5572 msgid ""
5573 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
5574 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5575 "how the directories were originally created under Windows)."
5576 msgstr ""
5577
5578 # type: textblock
5579 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5580 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5581 msgstr ""
5582
5583 # type: textblock
5584 #: ../src/guestfs-actions.pod:849
5585 msgid "See also C<guestfs_realpath>."
5586 msgstr ""
5587
5588 # type: textblock
5589 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6605
5590 msgid "(Added in 1.0.75)"
5591 msgstr ""
5592
5593 # type: =head2
5594 #: ../src/guestfs-actions.pod:856
5595 msgid "guestfs_cat"
5596 msgstr ""
5597
5598 # type: verbatim
5599 #: ../src/guestfs-actions.pod:858
5600 #, no-wrap
5601 msgid ""
5602 " char *\n"
5603 " guestfs_cat (guestfs_h *g,\n"
5604 "              const char *path);\n"
5605 "\n"
5606 msgstr ""
5607
5608 # type: textblock
5609 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5150 ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3424
5610 msgid "Return the contents of the file named C<path>."
5611 msgstr ""
5612
5613 # type: textblock
5614 #: ../src/guestfs-actions.pod:864
5615 msgid ""
5616 "Note that this function cannot correctly handle binary files (specifically, "
5617 "files containing C<\\0> character which is treated as end of string).  For "
5618 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5619 "functions which have a more complex interface."
5620 msgstr ""
5621
5622 # type: textblock
5623 #: ../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
5624 msgid ""
5625 "Because of the message protocol, there is a transfer limit of somewhere "
5626 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5627 msgstr ""
5628
5629 # type: textblock
5630 #: ../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
5631 msgid "(Added in 0.4)"
5632 msgstr ""
5633
5634 # type: =head2
5635 #: ../src/guestfs-actions.pod:877
5636 msgid "guestfs_checksum"
5637 msgstr ""
5638
5639 # type: verbatim
5640 #: ../src/guestfs-actions.pod:879
5641 #, no-wrap
5642 msgid ""
5643 " char *\n"
5644 " guestfs_checksum (guestfs_h *g,\n"
5645 "                   const char *csumtype,\n"
5646 "                   const char *path);\n"
5647 "\n"
5648 msgstr ""
5649
5650 # type: textblock
5651 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
5652 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5653 msgstr ""
5654
5655 # type: textblock
5656 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
5657 msgid ""
5658 "The type of checksum to compute is given by the C<csumtype> parameter which "
5659 "must have one of the following values:"
5660 msgstr ""
5661
5662 # type: =item
5663 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
5664 msgid "C<crc>"
5665 msgstr ""
5666
5667 # type: textblock
5668 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
5669 msgid ""
5670 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5671 "C<cksum> command."
5672 msgstr ""
5673
5674 # type: =item
5675 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
5676 msgid "C<md5>"
5677 msgstr ""
5678
5679 # type: textblock
5680 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
5681 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5682 msgstr ""
5683
5684 # type: =item
5685 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
5686 msgid "C<sha1>"
5687 msgstr ""
5688
5689 # type: textblock
5690 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
5691 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5692 msgstr ""
5693
5694 # type: =item
5695 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
5696 msgid "C<sha224>"
5697 msgstr ""
5698
5699 # type: textblock
5700 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
5701 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5702 msgstr ""
5703
5704 # type: =item
5705 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
5706 msgid "C<sha256>"
5707 msgstr ""
5708
5709 # type: textblock
5710 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
5711 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5712 msgstr ""
5713
5714 # type: =item
5715 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
5716 msgid "C<sha384>"
5717 msgstr ""
5718
5719 # type: textblock
5720 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
5721 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5722 msgstr ""
5723
5724 # type: =item
5725 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
5726 msgid "C<sha512>"
5727 msgstr ""
5728
5729 # type: textblock
5730 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
5731 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5732 msgstr ""
5733
5734 # type: textblock
5735 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
5736 msgid "The checksum is returned as a printable string."
5737 msgstr ""
5738
5739 # type: textblock
5740 #: ../src/guestfs-actions.pod:925
5741 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
5742 msgstr ""
5743
5744 # type: textblock
5745 #: ../src/guestfs-actions.pod:927
5746 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
5747 msgstr ""
5748
5749 # type: textblock
5750 #: ../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
5751 msgid "(Added in 1.0.2)"
5752 msgstr ""
5753
5754 # type: =head2
5755 #: ../src/guestfs-actions.pod:934
5756 msgid "guestfs_checksum_device"
5757 msgstr ""
5758
5759 # type: verbatim
5760 #: ../src/guestfs-actions.pod:936
5761 #, no-wrap
5762 msgid ""
5763 " char *\n"
5764 " guestfs_checksum_device (guestfs_h *g,\n"
5765 "                          const char *csumtype,\n"
5766 "                          const char *device);\n"
5767 "\n"
5768 msgstr ""
5769
5770 # type: textblock
5771 #: ../src/guestfs-actions.pod:941
5772 msgid ""
5773 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5774 "device named C<device>.  For the types of checksums supported see the "
5775 "C<guestfs_checksum> command."
5776 msgstr ""
5777
5778 # type: textblock
5779 #: ../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
5780 msgid "(Added in 1.3.2)"
5781 msgstr ""
5782
5783 # type: =head2
5784 #: ../src/guestfs-actions.pod:950
5785 msgid "guestfs_checksums_out"
5786 msgstr ""
5787
5788 # type: verbatim
5789 #: ../src/guestfs-actions.pod:952
5790 #, no-wrap
5791 msgid ""
5792 " int\n"
5793 " guestfs_checksums_out (guestfs_h *g,\n"
5794 "                        const char *csumtype,\n"
5795 "                        const char *directory,\n"
5796 "                        const char *sumsfile);\n"
5797 "\n"
5798 msgstr ""
5799
5800 # type: textblock
5801 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
5802 msgid ""
5803 "This command computes the checksums of all regular files in C<directory> and "
5804 "then emits a list of those checksums to the local output file C<sumsfile>."
5805 msgstr ""
5806
5807 # type: textblock
5808 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
5809 msgid ""
5810 "This can be used for verifying the integrity of a virtual machine.  However "
5811 "to be properly secure you should pay attention to the output of the checksum "
5812 "command (it uses the ones from GNU coreutils).  In particular when the "
5813 "filename is not printable, coreutils uses a special backslash syntax.  For "
5814 "more information, see the GNU coreutils info file."
5815 msgstr ""
5816
5817 # type: textblock
5818 #: ../src/guestfs-actions.pod:972
5819 msgid "(Added in 1.3.7)"
5820 msgstr ""
5821
5822 # type: =head2
5823 #: ../src/guestfs-actions.pod:974
5824 msgid "guestfs_chmod"
5825 msgstr ""
5826
5827 # type: verbatim
5828 #: ../src/guestfs-actions.pod:976
5829 #, no-wrap
5830 msgid ""
5831 " int\n"
5832 " guestfs_chmod (guestfs_h *g,\n"
5833 "                int mode,\n"
5834 "                const char *path);\n"
5835 "\n"
5836 msgstr ""
5837
5838 # type: textblock
5839 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
5840 msgid ""
5841 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5842 "supported."
5843 msgstr ""
5844
5845 # type: textblock
5846 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
5847 msgid ""
5848 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5849 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5850 "C<700>."
5851 msgstr ""
5852
5853 # type: textblock
5854 #: ../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
5855 msgid "The mode actually set is affected by the umask."
5856 msgstr ""
5857
5858 # type: =head2
5859 #: ../src/guestfs-actions.pod:994
5860 msgid "guestfs_chown"
5861 msgstr ""
5862
5863 # type: verbatim
5864 #: ../src/guestfs-actions.pod:996
5865 #, no-wrap
5866 msgid ""
5867 " int\n"
5868 " guestfs_chown (guestfs_h *g,\n"
5869 "                int owner,\n"
5870 "                int group,\n"
5871 "                const char *path);\n"
5872 "\n"
5873 msgstr ""
5874
5875 # type: textblock
5876 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
5877 msgid "Change the file owner to C<owner> and group to C<group>."
5878 msgstr ""
5879
5880 # type: textblock
5881 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3225 ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2231
5882 msgid ""
5883 "Only numeric uid and gid are supported.  If you want to use names, you will "
5884 "need to locate and parse the password file yourself (Augeas support makes "
5885 "this relatively easy)."
5886 msgstr ""
5887
5888 # type: =head2
5889 #: ../src/guestfs-actions.pod:1012
5890 msgid "guestfs_command"
5891 msgstr ""
5892
5893 # type: verbatim
5894 #: ../src/guestfs-actions.pod:1014
5895 #, no-wrap
5896 msgid ""
5897 " char *\n"
5898 " guestfs_command (guestfs_h *g,\n"
5899 "                  char *const *arguments);\n"
5900 "\n"
5901 msgstr ""
5902
5903 # type: textblock
5904 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
5905 msgid ""
5906 "This call runs a command from the guest filesystem.  The filesystem must be "
5907 "mounted, and must contain a compatible operating system (ie. something "
5908 "Linux, with the same or compatible processor architecture)."
5909 msgstr ""
5910
5911 # type: textblock
5912 #: ../src/guestfs-actions.pod:1023
5913 msgid ""
5914 "The single parameter is an argv-style list of arguments.  The first element "
5915 "is the name of the program to run.  Subsequent elements are parameters.  The "
5916 "list must be non-empty (ie. must contain a program name).  Note that the "
5917 "command runs directly, and is I<not> invoked via the shell (see "
5918 "C<guestfs_sh>)."
5919 msgstr ""
5920
5921 # type: textblock
5922 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
5923 msgid "The return value is anything printed to I<stdout> by the command."
5924 msgstr ""
5925
5926 # type: textblock
5927 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
5928 msgid ""
5929 "If the command returns a non-zero exit status, then this function returns an "
5930 "error message.  The error message string is the content of I<stderr> from "
5931 "the command."
5932 msgstr ""
5933
5934 # type: textblock
5935 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
5936 msgid ""
5937 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5938 "C</bin>.  If you require a program from another location, you should provide "
5939 "the full path in the first parameter."
5940 msgstr ""
5941
5942 # type: textblock
5943 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
5944 msgid ""
5945 "Shared libraries and data files required by the program must be available on "
5946 "filesystems which are mounted in the correct places.  It is the caller's "
5947 "responsibility to ensure all filesystems that are needed are mounted at the "
5948 "right locations."
5949 msgstr ""
5950
5951 # type: textblock
5952 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1537
5953 msgid "(Added in 0.9.1)"
5954 msgstr ""
5955
5956 # type: =head2
5957 #: ../src/guestfs-actions.pod:1056
5958 msgid "guestfs_command_lines"
5959 msgstr ""
5960
5961 # type: verbatim
5962 #: ../src/guestfs-actions.pod:1058
5963 #, no-wrap
5964 msgid ""
5965 " char **\n"
5966 " guestfs_command_lines (guestfs_h *g,\n"
5967 "                        char *const *arguments);\n"
5968 "\n"
5969 msgstr ""
5970
5971 # type: textblock
5972 #: ../src/guestfs-actions.pod:1062
5973 msgid ""
5974 "This is the same as C<guestfs_command>, but splits the result into a list of "
5975 "lines."
5976 msgstr ""
5977
5978 # type: textblock
5979 #: ../src/guestfs-actions.pod:1065
5980 msgid "See also: C<guestfs_sh_lines>"
5981 msgstr ""
5982
5983 # type: =head2
5984 #: ../src/guestfs-actions.pod:1076
5985 msgid "guestfs_config"
5986 msgstr ""
5987
5988 # type: verbatim
5989 #: ../src/guestfs-actions.pod:1078
5990 #, no-wrap
5991 msgid ""
5992 " int\n"
5993 " guestfs_config (guestfs_h *g,\n"
5994 "                 const char *qemuparam,\n"
5995 "                 const char *qemuvalue);\n"
5996 "\n"
5997 msgstr ""
5998
5999 # type: textblock
6000 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6001 msgid ""
6002 "This can be used to add arbitrary qemu command line parameters of the form "
6003 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6004 "setting some parameters which would interfere with parameters that we use."
6005 msgstr ""
6006
6007 # type: textblock
6008 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6009 msgid "The first character of C<param> string must be a C<-> (dash)."
6010 msgstr ""
6011
6012 # type: textblock
6013 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6014 msgid "C<value> can be NULL."
6015 msgstr ""
6016
6017 # type: =head2
6018 #: ../src/guestfs-actions.pod:1096
6019 msgid "guestfs_copy_size"
6020 msgstr ""
6021
6022 # type: verbatim
6023 #: ../src/guestfs-actions.pod:1098
6024 #, no-wrap
6025 msgid ""
6026 " int\n"
6027 " guestfs_copy_size (guestfs_h *g,\n"
6028 "                    const char *src,\n"
6029 "                    const char *dest,\n"
6030 "                    int64_t size);\n"
6031 "\n"
6032 msgstr ""
6033
6034 # type: textblock
6035 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6036 msgid ""
6037 "This command copies exactly C<size> bytes from one source device or file "
6038 "C<src> to another destination device or file C<dest>."
6039 msgstr ""
6040
6041 # type: textblock
6042 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6043 msgid ""
6044 "Note this will fail if the source is too short or if the destination is not "
6045 "large enough."
6046 msgstr ""
6047
6048 # type: textblock
6049 #: ../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
6050 msgid ""
6051 "This long-running command can generate progress notification messages so "
6052 "that the caller can display a progress bar or indicator.  To receive these "
6053 "messages, the caller must register a progress callback.  See "
6054 "L<guestfs(3)/guestfs_set_progress_callback>."
6055 msgstr ""
6056
6057 # type: textblock
6058 #: ../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
6059 msgid "(Added in 1.0.87)"
6060 msgstr ""
6061
6062 # type: =head2
6063 #: ../src/guestfs-actions.pod:1119
6064 msgid "guestfs_cp"
6065 msgstr ""
6066
6067 # type: verbatim
6068 #: ../src/guestfs-actions.pod:1121
6069 #, no-wrap
6070 msgid ""
6071 " int\n"
6072 " guestfs_cp (guestfs_h *g,\n"
6073 "             const char *src,\n"
6074 "             const char *dest);\n"
6075 "\n"
6076 msgstr ""
6077
6078 # type: textblock
6079 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6080 msgid ""
6081 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6082 "destination filename or destination directory."
6083 msgstr ""
6084
6085 # type: textblock
6086 #: ../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
6087 msgid "(Added in 1.0.18)"
6088 msgstr ""
6089
6090 # type: =head2
6091 #: ../src/guestfs-actions.pod:1133
6092 msgid "guestfs_cp_a"
6093 msgstr ""
6094
6095 # type: verbatim
6096 #: ../src/guestfs-actions.pod:1135
6097 #, no-wrap
6098 msgid ""
6099 " int\n"
6100 " guestfs_cp_a (guestfs_h *g,\n"
6101 "               const char *src,\n"
6102 "               const char *dest);\n"
6103 "\n"
6104 msgstr ""
6105
6106 # type: textblock
6107 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6108 msgid ""
6109 "This copies a file or directory from C<src> to C<dest> recursively using the "
6110 "C<cp -a> command."
6111 msgstr ""
6112
6113 # type: =head2
6114 #: ../src/guestfs-actions.pod:1147
6115 msgid "guestfs_dd"
6116 msgstr ""
6117
6118 # type: verbatim
6119 #: ../src/guestfs-actions.pod:1149
6120 #, no-wrap
6121 msgid ""
6122 " int\n"
6123 " guestfs_dd (guestfs_h *g,\n"
6124 "             const char *src,\n"
6125 "             const char *dest);\n"
6126 "\n"
6127 msgstr ""
6128
6129 # type: textblock
6130 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6131 msgid ""
6132 "This command copies from one source device or file C<src> to another "
6133 "destination device or file C<dest>.  Normally you would use this to copy to "
6134 "or from a device or partition, for example to duplicate a filesystem."
6135 msgstr ""
6136
6137 # type: textblock
6138 #: ../src/guestfs-actions.pod:1159
6139 msgid ""
6140 "If the destination is a device, it must be as large or larger than the "
6141 "source file or device, otherwise the copy will fail.  This command cannot do "
6142 "partial copies (see C<guestfs_copy_size>)."
6143 msgstr ""
6144
6145 # type: =head2
6146 #: ../src/guestfs-actions.pod:1167
6147 msgid "guestfs_df"
6148 msgstr ""
6149
6150 # type: verbatim
6151 #: ../src/guestfs-actions.pod:1169
6152 #, no-wrap
6153 msgid ""
6154 " char *\n"
6155 " guestfs_df (guestfs_h *g);\n"
6156 "\n"
6157 msgstr ""
6158
6159 # type: textblock
6160 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6161 msgid "This command runs the C<df> command to report disk space used."
6162 msgstr ""
6163
6164 # type: textblock
6165 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191 ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
6166 msgid ""
6167 "This command is mostly useful for interactive sessions.  It is I<not> "
6168 "intended that you try to parse the output string.  Use C<statvfs> from "
6169 "programs."
6170 msgstr ""
6171
6172 # type: textblock
6173 #: ../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
6174 msgid "(Added in 1.0.54)"
6175 msgstr ""
6176
6177 # type: =head2
6178 #: ../src/guestfs-actions.pod:1183
6179 msgid "guestfs_df_h"
6180 msgstr ""
6181
6182 # type: verbatim
6183 #: ../src/guestfs-actions.pod:1185
6184 #, no-wrap
6185 msgid ""
6186 " char *\n"
6187 " guestfs_df_h (guestfs_h *g);\n"
6188 "\n"
6189 msgstr ""
6190
6191 # type: textblock
6192 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6193 msgid ""
6194 "This command runs the C<df -h> command to report disk space used in "
6195 "human-readable format."
6196 msgstr ""
6197
6198 # type: =head2
6199 #: ../src/guestfs-actions.pod:1200
6200 msgid "guestfs_dmesg"
6201 msgstr ""
6202
6203 # type: verbatim
6204 #: ../src/guestfs-actions.pod:1202
6205 #, no-wrap
6206 msgid ""
6207 " char *\n"
6208 " guestfs_dmesg (guestfs_h *g);\n"
6209 "\n"
6210 msgstr ""
6211
6212 # type: textblock
6213 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6214 msgid ""
6215 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6216 "This is sometimes useful for extended debugging of problems."
6217 msgstr ""
6218
6219 # type: textblock
6220 #: ../src/guestfs-actions.pod:1209
6221 msgid ""
6222 "Another way to get the same information is to enable verbose messages with "
6223 "C<guestfs_set_verbose> or by setting the environment variable "
6224 "C<LIBGUESTFS_DEBUG=1> before running the program."
6225 msgstr ""
6226
6227 # type: =head2
6228 #: ../src/guestfs-actions.pod:1219
6229 msgid "guestfs_download"
6230 msgstr ""
6231
6232 # type: verbatim
6233 #: ../src/guestfs-actions.pod:1221
6234 #, no-wrap
6235 msgid ""
6236 " int\n"
6237 " guestfs_download (guestfs_h *g,\n"
6238 "                   const char *remotefilename,\n"
6239 "                   const char *filename);\n"
6240 "\n"
6241 msgstr ""
6242
6243 # type: textblock
6244 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251 ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6245 msgid ""
6246 "Download file C<remotefilename> and save it as C<filename> on the local "
6247 "machine."
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6450 ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4304
6252 msgid "C<filename> can also be a named pipe."
6253 msgstr ""
6254
6255 # type: textblock
6256 #: ../src/guestfs-actions.pod:1231
6257 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6258 msgstr ""
6259
6260 # type: =head2
6261 #: ../src/guestfs-actions.pod:1242
6262 msgid "guestfs_download_offset"
6263 msgstr ""
6264
6265 # type: verbatim
6266 #: ../src/guestfs-actions.pod:1244
6267 #, no-wrap
6268 msgid ""
6269 " int\n"
6270 " guestfs_download_offset (guestfs_h *g,\n"
6271 "                          const char *remotefilename,\n"
6272 "                          const char *filename,\n"
6273 "                          int64_t offset,\n"
6274 "                          int64_t size);\n"
6275 "\n"
6276 msgstr ""
6277
6278 # type: textblock
6279 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6280 msgid ""
6281 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6282 "region must be within the file or device)."
6283 msgstr ""
6284
6285 # type: textblock
6286 #: ../src/guestfs-actions.pod:1257
6287 msgid ""
6288 "Note that there is no limit on the amount of data that can be downloaded "
6289 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6290 "full amount unless an error occurs."
6291 msgstr ""
6292
6293 # type: textblock
6294 #: ../src/guestfs-actions.pod:1262
6295 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6296 msgstr ""
6297
6298 # type: textblock
6299 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6495
6300 msgid "(Added in 1.5.17)"
6301 msgstr ""
6302
6303 # type: =head2
6304 #: ../src/guestfs-actions.pod:1273
6305 msgid "guestfs_drop_caches"
6306 msgstr ""
6307
6308 # type: verbatim
6309 #: ../src/guestfs-actions.pod:1275
6310 #, no-wrap
6311 msgid ""
6312 " int\n"
6313 " guestfs_drop_caches (guestfs_h *g,\n"
6314 "                      int whattodrop);\n"
6315 "\n"
6316 msgstr ""
6317
6318 # type: textblock
6319 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6320 msgid ""
6321 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6322 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6323 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6324 msgstr ""
6325
6326 # type: textblock
6327 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6328 msgid "Setting C<whattodrop> to 3 should drop everything."
6329 msgstr ""
6330
6331 # type: textblock
6332 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6333 msgid ""
6334 "This automatically calls L<sync(2)> before the operation, so that the "
6335 "maximum guest memory is freed."
6336 msgstr ""
6337
6338 # type: =head2
6339 #: ../src/guestfs-actions.pod:1293
6340 msgid "guestfs_du"
6341 msgstr ""
6342
6343 # type: verbatim
6344 #: ../src/guestfs-actions.pod:1295
6345 #, no-wrap
6346 msgid ""
6347 " int64_t\n"
6348 " guestfs_du (guestfs_h *g,\n"
6349 "             const char *path);\n"
6350 "\n"
6351 msgstr ""
6352
6353 # type: textblock
6354 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6355 msgid ""
6356 "This command runs the C<du -s> command to estimate file space usage for "
6357 "C<path>."
6358 msgstr ""
6359
6360 # type: textblock
6361 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6362 msgid ""
6363 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6364 "estimate includes the contents of the directory and all subdirectories "
6365 "(recursively)."
6366 msgstr ""
6367
6368 # type: textblock
6369 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6370 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6371 msgstr ""
6372
6373 # type: =head2
6374 #: ../src/guestfs-actions.pod:1313
6375 msgid "guestfs_e2fsck_f"
6376 msgstr ""
6377
6378 # type: verbatim
6379 #: ../src/guestfs-actions.pod:1315
6380 #, no-wrap
6381 msgid ""
6382 " int\n"
6383 " guestfs_e2fsck_f (guestfs_h *g,\n"
6384 "                   const char *device);\n"
6385 "\n"
6386 msgstr ""
6387
6388 # type: textblock
6389 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6390 msgid ""
6391 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6392 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6393 "clean (C<-f>)."
6394 msgstr ""
6395
6396 # type: textblock
6397 #: ../src/guestfs-actions.pod:1323
6398 msgid ""
6399 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6400 "Normally you should use C<guestfs_fsck>."
6401 msgstr ""
6402
6403 # type: textblock
6404 #: ../src/guestfs-actions.pod:1328
6405 msgid "(Added in 1.0.29)"
6406 msgstr ""
6407
6408 # type: =head2
6409 #: ../src/guestfs-actions.pod:1330
6410 msgid "guestfs_echo_daemon"
6411 msgstr ""
6412
6413 # type: verbatim
6414 #: ../src/guestfs-actions.pod:1332
6415 #, no-wrap
6416 msgid ""
6417 " char *\n"
6418 " guestfs_echo_daemon (guestfs_h *g,\n"
6419 "                      char *const *words);\n"
6420 "\n"
6421 msgstr ""
6422
6423 # type: textblock
6424 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6425 msgid ""
6426 "This command concatenates the list of C<words> passed with single spaces "
6427 "between them and returns the resulting string."
6428 msgstr ""
6429
6430 # type: textblock
6431 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6432 msgid "You can use this command to test the connection through to the daemon."
6433 msgstr ""
6434
6435 # type: textblock
6436 #: ../src/guestfs-actions.pod:1341
6437 msgid "See also C<guestfs_ping_daemon>."
6438 msgstr ""
6439
6440 # type: textblock
6441 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5698
6442 msgid "(Added in 1.0.69)"
6443 msgstr ""
6444
6445 # type: =head2
6446 #: ../src/guestfs-actions.pod:1348
6447 msgid "guestfs_egrep"
6448 msgstr ""
6449
6450 # type: verbatim
6451 #: ../src/guestfs-actions.pod:1350
6452 #, no-wrap
6453 msgid ""
6454 " char **\n"
6455 " guestfs_egrep (guestfs_h *g,\n"
6456 "                const char *regex,\n"
6457 "                const char *path);\n"
6458 "\n"
6459 msgstr ""
6460
6461 # type: textblock
6462 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6463 msgid "This calls the external C<egrep> program and returns the matching lines."
6464 msgstr ""
6465
6466 # type: textblock
6467 #: ../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
6468 msgid "(Added in 1.0.66)"
6469 msgstr ""
6470
6471 # type: =head2
6472 #: ../src/guestfs-actions.pod:1367
6473 msgid "guestfs_egrepi"
6474 msgstr ""
6475
6476 # type: verbatim
6477 #: ../src/guestfs-actions.pod:1369
6478 #, no-wrap
6479 msgid ""
6480 " char **\n"
6481 " guestfs_egrepi (guestfs_h *g,\n"
6482 "                 const char *regex,\n"
6483 "                 const char *path);\n"
6484 "\n"
6485 msgstr ""
6486
6487 # type: textblock
6488 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6489 msgid "This calls the external C<egrep -i> program and returns the matching lines."
6490 msgstr ""
6491
6492 # type: =head2
6493 #: ../src/guestfs-actions.pod:1386
6494 msgid "guestfs_equal"
6495 msgstr ""
6496
6497 # type: verbatim
6498 #: ../src/guestfs-actions.pod:1388
6499 #, no-wrap
6500 msgid ""
6501 " int\n"
6502 " guestfs_equal (guestfs_h *g,\n"
6503 "                const char *file1,\n"
6504 "                const char *file2);\n"
6505 "\n"
6506 msgstr ""
6507
6508 # type: textblock
6509 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6510 msgid ""
6511 "This compares the two files C<file1> and C<file2> and returns true if their "
6512 "content is exactly equal, or false otherwise."
6513 msgstr ""
6514
6515 # type: textblock
6516 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6517 msgid "The external L<cmp(1)> program is used for the comparison."
6518 msgstr ""
6519
6520 # type: =head2
6521 #: ../src/guestfs-actions.pod:1402
6522 msgid "guestfs_exists"
6523 msgstr ""
6524
6525 # type: verbatim
6526 #: ../src/guestfs-actions.pod:1404
6527 #, no-wrap
6528 msgid ""
6529 " int\n"
6530 " guestfs_exists (guestfs_h *g,\n"
6531 "                 const char *path);\n"
6532 "\n"
6533 msgstr ""
6534
6535 # type: textblock
6536 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6537 msgid ""
6538 "This returns C<true> if and only if there is a file, directory (or anything) "
6539 "with the given C<path> name."
6540 msgstr ""
6541
6542 # type: textblock
6543 #: ../src/guestfs-actions.pod:1411
6544 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
6545 msgstr ""
6546
6547 # type: =head2
6548 #: ../src/guestfs-actions.pod:1417
6549 msgid "guestfs_fallocate"
6550 msgstr ""
6551
6552 # type: verbatim
6553 #: ../src/guestfs-actions.pod:1419
6554 #, no-wrap
6555 msgid ""
6556 " int\n"
6557 " guestfs_fallocate (guestfs_h *g,\n"
6558 "                    const char *path,\n"
6559 "                    int len);\n"
6560 "\n"
6561 msgstr ""
6562
6563 # type: textblock
6564 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
6565 msgid ""
6566 "This command preallocates a file (containing zero bytes) named C<path> of "
6567 "size C<len> bytes.  If the file exists already, it is overwritten."
6568 msgstr ""
6569
6570 # type: textblock
6571 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
6572 msgid ""
6573 "Do not confuse this with the guestfish-specific C<alloc> command which "
6574 "allocates a file in the host and attaches it as a device."
6575 msgstr ""
6576
6577 # type: textblock
6578 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
6579 msgid ""
6580 "This function is deprecated.  In new code, use the C<fallocate64> call "
6581 "instead."
6582 msgstr ""
6583
6584 # type: =head2
6585 #: ../src/guestfs-actions.pod:1443
6586 msgid "guestfs_fallocate64"
6587 msgstr ""
6588
6589 # type: verbatim
6590 #: ../src/guestfs-actions.pod:1445
6591 #, no-wrap
6592 msgid ""
6593 " int\n"
6594 " guestfs_fallocate64 (guestfs_h *g,\n"
6595 "                      const char *path,\n"
6596 "                      int64_t len);\n"
6597 "\n"
6598 msgstr ""
6599
6600 # type: textblock
6601 #: ../src/guestfs-actions.pod:1454
6602 msgid ""
6603 "Note that this call allocates disk blocks for the file.  To create a sparse "
6604 "file use C<guestfs_truncate_size> instead."
6605 msgstr ""
6606
6607 # type: textblock
6608 #: ../src/guestfs-actions.pod:1457
6609 msgid ""
6610 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
6611 "oversight it only allowed 30 bit lengths to be specified, effectively "
6612 "limiting the maximum size of files created through that call to 1GB."
6613 msgstr ""
6614
6615 # type: textblock
6616 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
6617 msgid ""
6618 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6619 "commands which create a file in the host and attach it as a device."
6620 msgstr ""
6621
6622 # type: textblock
6623 #: ../src/guestfs-actions.pod:1468
6624 msgid "(Added in 1.3.17)"
6625 msgstr ""
6626
6627 # type: =head2
6628 #: ../src/guestfs-actions.pod:1470
6629 msgid "guestfs_fgrep"
6630 msgstr ""
6631
6632 # type: verbatim
6633 #: ../src/guestfs-actions.pod:1472
6634 #, no-wrap
6635 msgid ""
6636 " char **\n"
6637 " guestfs_fgrep (guestfs_h *g,\n"
6638 "                const char *pattern,\n"
6639 "                const char *path);\n"
6640 "\n"
6641 msgstr ""
6642
6643 # type: textblock
6644 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
6645 msgid "This calls the external C<fgrep> program and returns the matching lines."
6646 msgstr ""
6647
6648 # type: =head2
6649 #: ../src/guestfs-actions.pod:1489
6650 msgid "guestfs_fgrepi"
6651 msgstr ""
6652
6653 # type: verbatim
6654 #: ../src/guestfs-actions.pod:1491
6655 #, no-wrap
6656 msgid ""
6657 " char **\n"
6658 " guestfs_fgrepi (guestfs_h *g,\n"
6659 "                 const char *pattern,\n"
6660 "                 const char *path);\n"
6661 "\n"
6662 msgstr ""
6663
6664 # type: textblock
6665 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
6666 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6667 msgstr ""
6668
6669 # type: =head2
6670 #: ../src/guestfs-actions.pod:1508
6671 msgid "guestfs_file"
6672 msgstr ""
6673
6674 # type: verbatim
6675 #: ../src/guestfs-actions.pod:1510
6676 #, no-wrap
6677 msgid ""
6678 " char *\n"
6679 " guestfs_file (guestfs_h *g,\n"
6680 "               const char *path);\n"
6681 "\n"
6682 msgstr ""
6683
6684 # type: textblock
6685 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
6686 msgid ""
6687 "This call uses the standard L<file(1)> command to determine the type or "
6688 "contents of the file."
6689 msgstr ""
6690
6691 # type: textblock
6692 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
6693 msgid ""
6694 "This call will also transparently look inside various types of compressed "
6695 "file."
6696 msgstr ""
6697
6698 # type: textblock
6699 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
6700 msgid ""
6701 "The exact command which runs is C<file -zb path>.  Note in particular that "
6702 "the filename is not prepended to the output (the C<-b> option)."
6703 msgstr ""
6704
6705 # type: textblock
6706 #: ../src/guestfs-actions.pod:1524
6707 msgid ""
6708 "This command can also be used on C</dev/> devices (and partitions, LV "
6709 "names).  You can for example use this to determine if a device contains a "
6710 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
6711 msgstr ""
6712
6713 # type: textblock
6714 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
6715 msgid ""
6716 "If the C<path> does not begin with C</dev/> then this command only works for "
6717 "the content of regular files.  For other file types (directory, symbolic "
6718 "link etc) it will just return the string C<directory> etc."
6719 msgstr ""
6720
6721 # type: =head2
6722 #: ../src/guestfs-actions.pod:1539
6723 msgid "guestfs_file_architecture"
6724 msgstr ""
6725
6726 # type: verbatim
6727 #: ../src/guestfs-actions.pod:1541
6728 #, no-wrap
6729 msgid ""
6730 " char *\n"
6731 " guestfs_file_architecture (guestfs_h *g,\n"
6732 "                            const char *filename);\n"
6733 "\n"
6734 msgstr ""
6735
6736 # type: textblock
6737 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
6738 msgid ""
6739 "This detects the architecture of the binary C<filename>, and returns it if "
6740 "known."
6741 msgstr ""
6742
6743 # type: textblock
6744 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
6745 msgid "Currently defined architectures are:"
6746 msgstr ""
6747
6748 # type: =item
6749 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
6750 msgid "\"i386\""
6751 msgstr ""
6752
6753 # type: textblock
6754 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
6755 msgid ""
6756 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6757 "irrespective of the precise processor requirements of the binary."
6758 msgstr ""
6759
6760 # type: =item
6761 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
6762 msgid "\"x86_64\""
6763 msgstr ""
6764
6765 # type: textblock
6766 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
6767 msgid "64 bit x86-64."
6768 msgstr ""
6769
6770 # type: =item
6771 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
6772 msgid "\"sparc\""
6773 msgstr ""
6774
6775 # type: textblock
6776 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
6777 msgid "32 bit SPARC."
6778 msgstr ""
6779
6780 # type: =item
6781 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
6782 msgid "\"sparc64\""
6783 msgstr ""
6784
6785 # type: textblock
6786 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
6787 msgid "64 bit SPARC V9 and above."
6788 msgstr ""
6789
6790 # type: =item
6791 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
6792 msgid "\"ia64\""
6793 msgstr ""
6794
6795 # type: textblock
6796 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
6797 msgid "Intel Itanium."
6798 msgstr ""
6799
6800 # type: =item
6801 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
6802 msgid "\"ppc\""
6803 msgstr ""
6804
6805 # type: textblock
6806 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
6807 msgid "32 bit Power PC."
6808 msgstr ""
6809
6810 # type: =item
6811 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
6812 msgid "\"ppc64\""
6813 msgstr ""
6814
6815 # type: textblock
6816 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
6817 msgid "64 bit Power PC."
6818 msgstr ""
6819
6820 # type: textblock
6821 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
6822 msgid "Libguestfs may return other architecture strings in future."
6823 msgstr ""
6824
6825 # type: textblock
6826 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
6827 msgid "The function works on at least the following types of files:"
6828 msgstr ""
6829
6830 # type: textblock
6831 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
6832 msgid "many types of Un*x and Linux binary"
6833 msgstr ""
6834
6835 # type: textblock
6836 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
6837 msgid "many types of Un*x and Linux shared library"
6838 msgstr ""
6839
6840 # type: textblock
6841 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
6842 msgid "Windows Win32 and Win64 binaries"
6843 msgstr ""
6844
6845 # type: textblock
6846 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
6847 msgid "Windows Win32 and Win64 DLLs"
6848 msgstr ""
6849
6850 # type: textblock
6851 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
6852 msgid "Win32 binaries and DLLs return C<i386>."
6853 msgstr ""
6854
6855 # type: textblock
6856 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
6857 msgid "Win64 binaries and DLLs return C<x86_64>."
6858 msgstr ""
6859
6860 # type: textblock
6861 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
6862 msgid "Linux kernel modules"
6863 msgstr ""
6864
6865 # type: textblock
6866 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
6867 msgid "Linux new-style initrd images"
6868 msgstr ""
6869
6870 # type: textblock
6871 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
6872 msgid "some non-x86 Linux vmlinuz kernels"
6873 msgstr ""
6874
6875 # type: textblock
6876 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
6877 msgid "What it can't do currently:"
6878 msgstr ""
6879
6880 # type: textblock
6881 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
6882 msgid "static libraries (libfoo.a)"
6883 msgstr ""
6884
6885 # type: textblock
6886 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
6887 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6888 msgstr ""
6889
6890 # type: textblock
6891 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
6892 msgid "x86 Linux vmlinuz kernels"
6893 msgstr ""
6894
6895 # type: textblock
6896 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
6897 msgid ""
6898 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6899 "compressed code, and are horribly hard to unpack.  If you want to find the "
6900 "architecture of a kernel, use the architecture of the associated initrd or "
6901 "kernel module(s) instead."
6902 msgstr ""
6903
6904 # type: textblock
6905 #: ../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
6906 msgid "(Added in 1.5.3)"
6907 msgstr ""
6908
6909 # type: =head2
6910 #: ../src/guestfs-actions.pod:1651
6911 msgid "guestfs_filesize"
6912 msgstr ""
6913
6914 # type: verbatim
6915 #: ../src/guestfs-actions.pod:1653
6916 #, no-wrap
6917 msgid ""
6918 " int64_t\n"
6919 " guestfs_filesize (guestfs_h *g,\n"
6920 "                   const char *file);\n"
6921 "\n"
6922 msgstr ""
6923
6924 # type: textblock
6925 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
6926 msgid "This command returns the size of C<file> in bytes."
6927 msgstr ""
6928
6929 # type: textblock
6930 #: ../src/guestfs-actions.pod:1659
6931 msgid ""
6932 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
6933 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
6934 "devices, use C<guestfs_blockdev_getsize64>."
6935 msgstr ""
6936
6937 # type: textblock
6938 #: ../src/guestfs-actions.pod:1665
6939 msgid "(Added in 1.0.82)"
6940 msgstr ""
6941
6942 # type: =head2
6943 #: ../src/guestfs-actions.pod:1667
6944 msgid "guestfs_fill"
6945 msgstr ""
6946
6947 # type: verbatim
6948 #: ../src/guestfs-actions.pod:1669
6949 #, no-wrap
6950 msgid ""
6951 " int\n"
6952 " guestfs_fill (guestfs_h *g,\n"
6953 "               int c,\n"
6954 "               int len,\n"
6955 "               const char *path);\n"
6956 "\n"
6957 msgstr ""
6958
6959 # type: textblock
6960 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
6961 msgid ""
6962 "This command creates a new file called C<path>.  The initial content of the "
6963 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6964 "C<[0..255]>."
6965 msgstr ""
6966
6967 # type: textblock
6968 #: ../src/guestfs-actions.pod:1679
6969 msgid ""
6970 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6971 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
6972 "bytes use C<guestfs_fill_pattern>."
6973 msgstr ""
6974
6975 # type: textblock
6976 #: ../src/guestfs-actions.pod:1691
6977 msgid "(Added in 1.0.79)"
6978 msgstr ""
6979
6980 # type: =head2
6981 #: ../src/guestfs-actions.pod:1693
6982 msgid "guestfs_fill_pattern"
6983 msgstr ""
6984
6985 # type: verbatim
6986 #: ../src/guestfs-actions.pod:1695
6987 #, no-wrap
6988 msgid ""
6989 " int\n"
6990 " guestfs_fill_pattern (guestfs_h *g,\n"
6991 "                       const char *pattern,\n"
6992 "                       int len,\n"
6993 "                       const char *path);\n"
6994 "\n"
6995 msgstr ""
6996
6997 # type: textblock
6998 #: ../src/guestfs-actions.pod:1701
6999 msgid ""
7000 "This function is like C<guestfs_fill> except that it creates a new file of "
7001 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7002 "pattern is truncated if necessary to ensure the length of the file is "
7003 "exactly C<len> bytes."
7004 msgstr ""
7005
7006 # type: textblock
7007 #: ../src/guestfs-actions.pod:1713
7008 msgid "(Added in 1.3.12)"
7009 msgstr ""
7010
7011 # type: =head2
7012 #: ../src/guestfs-actions.pod:1715
7013 msgid "guestfs_find"
7014 msgstr ""
7015
7016 # type: verbatim
7017 #: ../src/guestfs-actions.pod:1717
7018 #, no-wrap
7019 msgid ""
7020 " char **\n"
7021 " guestfs_find (guestfs_h *g,\n"
7022 "               const char *directory);\n"
7023 "\n"
7024 msgstr ""
7025
7026 # type: textblock
7027 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7028 msgid ""
7029 "This command lists out all files and directories, recursively, starting at "
7030 "C<directory>.  It is essentially equivalent to running the shell command "
7031 "C<find directory -print> but some post-processing happens on the output, "
7032 "described below."
7033 msgstr ""
7034
7035 # type: textblock
7036 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7037 msgid ""
7038 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7039 "structure was:"
7040 msgstr ""
7041
7042 # type: verbatim
7043 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7044 #, no-wrap
7045 msgid ""
7046 " /tmp/a\n"
7047 " /tmp/b\n"
7048 " /tmp/c/d\n"
7049 "\n"
7050 msgstr ""
7051
7052 # type: textblock
7053 #: ../src/guestfs-actions.pod:1733
7054 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7055 msgstr ""
7056
7057 # type: verbatim
7058 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7059 #, no-wrap
7060 msgid ""
7061 " a\n"
7062 " b\n"
7063 " c\n"
7064 " c/d\n"
7065 "\n"
7066 msgstr ""
7067
7068 # type: textblock
7069 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7070 msgid "If C<directory> is not a directory, then this command returns an error."
7071 msgstr ""
7072
7073 # type: textblock
7074 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7075 msgid "The returned list is sorted."
7076 msgstr ""
7077
7078 # type: textblock
7079 #: ../src/guestfs-actions.pod:1746
7080 msgid "See also C<guestfs_find0>."
7081 msgstr ""
7082
7083 # type: textblock
7084 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:5327
7085 msgid "(Added in 1.0.27)"
7086 msgstr ""
7087
7088 # type: =head2
7089 #: ../src/guestfs-actions.pod:1757
7090 msgid "guestfs_find0"
7091 msgstr ""
7092
7093 # type: verbatim
7094 #: ../src/guestfs-actions.pod:1759
7095 #, no-wrap
7096 msgid ""
7097 " int\n"
7098 " guestfs_find0 (guestfs_h *g,\n"
7099 "                const char *directory,\n"
7100 "                const char *files);\n"
7101 "\n"
7102 msgstr ""
7103
7104 # type: textblock
7105 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7106 msgid ""
7107 "This command lists out all files and directories, recursively, starting at "
7108 "C<directory>, placing the resulting list in the external file called "
7109 "C<files>."
7110 msgstr ""
7111
7112 # type: textblock
7113 #: ../src/guestfs-actions.pod:1768
7114 msgid ""
7115 "This command works the same way as C<guestfs_find> with the following "
7116 "exceptions:"
7117 msgstr ""
7118
7119 # type: textblock
7120 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7121 msgid "The resulting list is written to an external file."
7122 msgstr ""
7123
7124 # type: textblock
7125 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7126 msgid ""
7127 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7128 "L<find(1)> option I<-print0>."
7129 msgstr ""
7130
7131 # type: textblock
7132 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7133 msgid "This command is not limited in the number of names that it can return."
7134 msgstr ""
7135
7136 # type: textblock
7137 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7138 msgid "The result list is not sorted."
7139 msgstr ""
7140
7141 # type: textblock
7142 #: ../src/guestfs-actions.pod:1795
7143 msgid "(Added in 1.0.74)"
7144 msgstr ""
7145
7146 # type: =head2
7147 #: ../src/guestfs-actions.pod:1797
7148 msgid "guestfs_findfs_label"
7149 msgstr ""
7150
7151 # type: verbatim
7152 #: ../src/guestfs-actions.pod:1799
7153 #, no-wrap
7154 msgid ""
7155 " char *\n"
7156 " guestfs_findfs_label (guestfs_h *g,\n"
7157 "                       const char *label);\n"
7158 "\n"
7159 msgstr ""
7160
7161 # type: textblock
7162 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7163 msgid ""
7164 "This command searches the filesystems and returns the one which has the "
7165 "given label.  An error is returned if no such filesystem can be found."
7166 msgstr ""
7167
7168 # type: textblock
7169 #: ../src/guestfs-actions.pod:1807
7170 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7171 msgstr ""
7172
7173 # type: =head2
7174 #: ../src/guestfs-actions.pod:1814
7175 msgid "guestfs_findfs_uuid"
7176 msgstr ""
7177
7178 # type: verbatim
7179 #: ../src/guestfs-actions.pod:1816
7180 #, no-wrap
7181 msgid ""
7182 " char *\n"
7183 " guestfs_findfs_uuid (guestfs_h *g,\n"
7184 "                      const char *uuid);\n"
7185 "\n"
7186 msgstr ""
7187
7188 # type: textblock
7189 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7190 msgid ""
7191 "This command searches the filesystems and returns the one which has the "
7192 "given UUID.  An error is returned if no such filesystem can be found."
7193 msgstr ""
7194
7195 # type: textblock
7196 #: ../src/guestfs-actions.pod:1824
7197 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7198 msgstr ""
7199
7200 # type: =head2
7201 #: ../src/guestfs-actions.pod:1831
7202 msgid "guestfs_fsck"
7203 msgstr ""
7204
7205 # type: verbatim
7206 #: ../src/guestfs-actions.pod:1833
7207 #, no-wrap
7208 msgid ""
7209 " int\n"
7210 " guestfs_fsck (guestfs_h *g,\n"
7211 "               const char *fstype,\n"
7212 "               const char *device);\n"
7213 "\n"
7214 msgstr ""
7215
7216 # type: textblock
7217 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7218 msgid ""
7219 "This runs the filesystem checker (fsck) on C<device> which should have "
7220 "filesystem type C<fstype>."
7221 msgstr ""
7222
7223 # type: textblock
7224 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7225 msgid ""
7226 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7227 "codes from C<fsck>."
7228 msgstr ""
7229
7230 # type: textblock
7231 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7232 msgid "Multiple status codes can be summed together."
7233 msgstr ""
7234
7235 # type: textblock
7236 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7237 msgid ""
7238 "A non-zero return code can mean \"success\", for example if errors have been "
7239 "corrected on the filesystem."
7240 msgstr ""
7241
7242 # type: textblock
7243 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7244 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7245 msgstr ""
7246
7247 # type: textblock
7248 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7249 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7250 msgstr ""
7251
7252 # type: textblock
7253 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:6974
7254 msgid "(Added in 1.0.16)"
7255 msgstr ""
7256
7257 # type: =head2
7258 #: ../src/guestfs-actions.pod:1870
7259 msgid "guestfs_get_append"
7260 msgstr ""
7261
7262 # type: verbatim
7263 #: ../src/guestfs-actions.pod:1872
7264 #, no-wrap
7265 msgid ""
7266 " const char *\n"
7267 " guestfs_get_append (guestfs_h *g);\n"
7268 "\n"
7269 msgstr ""
7270
7271 # type: textblock
7272 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7273 msgid ""
7274 "Return the additional kernel options which are added to the guest kernel "
7275 "command line."
7276 msgstr ""
7277
7278 # type: textblock
7279 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7280 msgid "If C<NULL> then no options are added."
7281 msgstr ""
7282
7283 # type: textblock
7284 #: ../src/guestfs-actions.pod:1880
7285 msgid ""
7286 "This function returns a string which may be NULL.  There is no way to return "
7287 "an error from this function.  The string is owned by the guest handle and "
7288 "must I<not> be freed."
7289 msgstr ""
7290
7291 # type: textblock
7292 #: ../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
7293 msgid "(Added in 1.0.26)"
7294 msgstr ""
7295
7296 # type: =head2
7297 #: ../src/guestfs-actions.pod:1886
7298 msgid "guestfs_get_autosync"
7299 msgstr ""
7300
7301 # type: verbatim
7302 #: ../src/guestfs-actions.pod:1888
7303 #, no-wrap
7304 msgid ""
7305 " int\n"
7306 " guestfs_get_autosync (guestfs_h *g);\n"
7307 "\n"
7308 msgstr ""
7309
7310 # type: textblock
7311 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7312 msgid "Get the autosync flag."
7313 msgstr ""
7314
7315 # type: =head2
7316 #: ../src/guestfs-actions.pod:1897
7317 msgid "guestfs_get_direct"
7318 msgstr ""
7319
7320 # type: verbatim
7321 #: ../src/guestfs-actions.pod:1899
7322 #, no-wrap
7323 msgid ""
7324 " int\n"
7325 " guestfs_get_direct (guestfs_h *g);\n"
7326 "\n"
7327 msgstr ""
7328
7329 # type: textblock
7330 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7331 msgid "Return the direct appliance mode flag."
7332 msgstr ""
7333
7334 # type: textblock
7335 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5509
7336 msgid "(Added in 1.0.72)"
7337 msgstr ""
7338
7339 # type: =head2
7340 #: ../src/guestfs-actions.pod:1908
7341 msgid "guestfs_get_e2label"
7342 msgstr ""
7343
7344 # type: verbatim
7345 #: ../src/guestfs-actions.pod:1910
7346 #, no-wrap
7347 msgid ""
7348 " char *\n"
7349 " guestfs_get_e2label (guestfs_h *g,\n"
7350 "                      const char *device);\n"
7351 "\n"
7352 msgstr ""
7353
7354 # type: textblock
7355 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7356 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7357 msgstr ""
7358
7359 # type: textblock
7360 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7361 msgid ""
7362 "This function is deprecated.  In new code, use the C<vfs_label> call "
7363 "instead."
7364 msgstr ""
7365
7366 # type: textblock
7367 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5546
7368 msgid "(Added in 1.0.15)"
7369 msgstr ""
7370
7371 # type: =head2
7372 #: ../src/guestfs-actions.pod:1929
7373 msgid "guestfs_get_e2uuid"
7374 msgstr ""
7375
7376 # type: verbatim
7377 #: ../src/guestfs-actions.pod:1931
7378 #, no-wrap
7379 msgid ""
7380 " char *\n"
7381 " guestfs_get_e2uuid (guestfs_h *g,\n"
7382 "                     const char *device);\n"
7383 "\n"
7384 msgstr ""
7385
7386 # type: textblock
7387 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7388 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7389 msgstr ""
7390
7391 # type: textblock
7392 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7393 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7394 msgstr ""
7395
7396 # type: =head2
7397 #: ../src/guestfs-actions.pod:1950
7398 msgid "guestfs_get_memsize"
7399 msgstr ""
7400
7401 # type: verbatim
7402 #: ../src/guestfs-actions.pod:1952
7403 #, no-wrap
7404 msgid ""
7405 " int\n"
7406 " guestfs_get_memsize (guestfs_h *g);\n"
7407 "\n"
7408 msgstr ""
7409
7410 # type: textblock
7411 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7412 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7413 msgstr ""
7414
7415 # type: textblock
7416 #: ../src/guestfs-actions.pod:1958
7417 msgid ""
7418 "If C<guestfs_set_memsize> was not called on this handle, and if "
7419 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7420 "value for memsize."
7421 msgstr ""
7422
7423 # type: textblock
7424 #: ../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
7425 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7426 msgstr ""
7427
7428 # type: textblock
7429 #: ../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
7430 msgid "(Added in 1.0.55)"
7431 msgstr ""
7432
7433 # type: =head2
7434 #: ../src/guestfs-actions.pod:1969
7435 msgid "guestfs_get_network"
7436 msgstr ""
7437
7438 # type: verbatim
7439 #: ../src/guestfs-actions.pod:1971
7440 #, no-wrap
7441 msgid ""
7442 " int\n"
7443 " guestfs_get_network (guestfs_h *g);\n"
7444 "\n"
7445 msgstr ""
7446
7447 # type: textblock
7448 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7449 msgid "This returns the enable network flag."
7450 msgstr ""
7451
7452 # type: textblock
7453 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5586
7454 msgid "(Added in 1.5.4)"
7455 msgstr ""
7456
7457 # type: =head2
7458 #: ../src/guestfs-actions.pod:1980
7459 msgid "guestfs_get_path"
7460 msgstr ""
7461
7462 # type: verbatim
7463 #: ../src/guestfs-actions.pod:1982
7464 #, no-wrap
7465 msgid ""
7466 " const char *\n"
7467 " guestfs_get_path (guestfs_h *g);\n"
7468 "\n"
7469 msgstr ""
7470
7471 # type: textblock
7472 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7473 msgid "Return the current search path."
7474 msgstr ""
7475
7476 # type: textblock
7477 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7478 msgid ""
7479 "This is always non-NULL.  If it wasn't set already, then this will return "
7480 "the default path."
7481 msgstr ""
7482
7483 # type: textblock
7484 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7485 msgid ""
7486 "This function returns a string, or NULL on error.  The string is owned by "
7487 "the guest handle and must I<not> be freed."
7488 msgstr ""
7489
7490 # type: =head2
7491 #: ../src/guestfs-actions.pod:1995
7492 msgid "guestfs_get_pid"
7493 msgstr ""
7494
7495 # type: verbatim
7496 #: ../src/guestfs-actions.pod:1997
7497 #, no-wrap
7498 msgid ""
7499 " int\n"
7500 " guestfs_get_pid (guestfs_h *g);\n"
7501 "\n"
7502 msgstr ""
7503
7504 # type: textblock
7505 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7506 msgid ""
7507 "Return the process ID of the qemu subprocess.  If there is no qemu "
7508 "subprocess, then this will return an error."
7509 msgstr ""
7510
7511 # type: textblock
7512 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7513 msgid "This is an internal call used for debugging and testing."
7514 msgstr ""
7515
7516 # type: textblock
7517 #: ../src/guestfs-actions.pod:2007
7518 msgid "(Added in 1.0.56)"
7519 msgstr ""
7520
7521 # type: =head2
7522 #: ../src/guestfs-actions.pod:2009
7523 msgid "guestfs_get_qemu"
7524 msgstr ""
7525
7526 # type: verbatim
7527 #: ../src/guestfs-actions.pod:2011
7528 #, no-wrap
7529 msgid ""
7530 " const char *\n"
7531 " guestfs_get_qemu (guestfs_h *g);\n"
7532 "\n"
7533 msgstr ""
7534
7535 # type: textblock
7536 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
7537 msgid "Return the current qemu binary."
7538 msgstr ""
7539
7540 # type: textblock
7541 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
7542 msgid ""
7543 "This is always non-NULL.  If it wasn't set already, then this will return "
7544 "the default qemu binary name."
7545 msgstr ""
7546
7547 # type: textblock
7548 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5631
7549 msgid "(Added in 1.0.6)"
7550 msgstr ""
7551
7552 # type: =head2
7553 #: ../src/guestfs-actions.pod:2024
7554 msgid "guestfs_get_recovery_proc"
7555 msgstr ""
7556
7557 # type: verbatim
7558 #: ../src/guestfs-actions.pod:2026
7559 #, no-wrap
7560 msgid ""
7561 " int\n"
7562 " guestfs_get_recovery_proc (guestfs_h *g);\n"
7563 "\n"
7564 msgstr ""
7565
7566 # type: textblock
7567 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
7568 msgid "Return the recovery process enabled flag."
7569 msgstr ""
7570
7571 # type: textblock
7572 #: ../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
7573 msgid "(Added in 1.0.77)"
7574 msgstr ""
7575
7576 # type: =head2
7577 #: ../src/guestfs-actions.pod:2035
7578 msgid "guestfs_get_selinux"
7579 msgstr ""
7580
7581 # type: verbatim
7582 #: ../src/guestfs-actions.pod:2037
7583 #, no-wrap
7584 msgid ""
7585 " int\n"
7586 " guestfs_get_selinux (guestfs_h *g);\n"
7587 "\n"
7588 msgstr ""
7589
7590 # type: textblock
7591 #: ../src/guestfs-actions.pod:2040
7592 msgid ""
7593 "This returns the current setting of the selinux flag which is passed to the "
7594 "appliance at boot time.  See C<guestfs_set_selinux>."
7595 msgstr ""
7596
7597 # type: textblock
7598 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:5674 ../src/guestfs-actions.pod:5728
7599 msgid "(Added in 1.0.67)"
7600 msgstr ""
7601
7602 # type: =head2
7603 #: ../src/guestfs-actions.pod:2050
7604 msgid "guestfs_get_state"
7605 msgstr ""
7606
7607 # type: verbatim
7608 #: ../src/guestfs-actions.pod:2052
7609 #, no-wrap
7610 msgid ""
7611 " int\n"
7612 " guestfs_get_state (guestfs_h *g);\n"
7613 "\n"
7614 msgstr ""
7615
7616 # type: textblock
7617 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
7618 msgid ""
7619 "This returns the current state as an opaque integer.  This is only useful "
7620 "for printing debug and internal error messages."
7621 msgstr ""
7622
7623 # type: textblock
7624 #: ../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
7625 msgid "For more information on states, see L<guestfs(3)>."
7626 msgstr ""
7627
7628 # type: =head2
7629 #: ../src/guestfs-actions.pod:2064
7630 msgid "guestfs_get_trace"
7631 msgstr ""
7632
7633 # type: verbatim
7634 #: ../src/guestfs-actions.pod:2066
7635 #, no-wrap
7636 msgid ""
7637 " int\n"
7638 " guestfs_get_trace (guestfs_h *g);\n"
7639 "\n"
7640 msgstr ""
7641
7642 # type: textblock
7643 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
7644 msgid "Return the command trace flag."
7645 msgstr ""
7646
7647 # type: =head2
7648 #: ../src/guestfs-actions.pod:2075
7649 msgid "guestfs_get_umask"
7650 msgstr ""
7651
7652 # type: verbatim
7653 #: ../src/guestfs-actions.pod:2077
7654 #, no-wrap
7655 msgid ""
7656 " int\n"
7657 " guestfs_get_umask (guestfs_h *g);\n"
7658 "\n"
7659 msgstr ""
7660
7661 # type: textblock
7662 #: ../src/guestfs-actions.pod:2080
7663 msgid ""
7664 "Return the current umask.  By default the umask is C<022> unless it has been "
7665 "set by calling C<guestfs_umask>."
7666 msgstr ""
7667
7668 # type: =head2
7669 #: ../src/guestfs-actions.pod:2087
7670 msgid "guestfs_get_verbose"
7671 msgstr ""
7672
7673 # type: verbatim
7674 #: ../src/guestfs-actions.pod:2089
7675 #, no-wrap
7676 msgid ""
7677 " int\n"
7678 " guestfs_get_verbose (guestfs_h *g);\n"
7679 "\n"
7680 msgstr ""
7681
7682 # type: textblock
7683 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
7684 msgid "This returns the verbose messages flag."
7685 msgstr ""
7686
7687 # type: =head2
7688 #: ../src/guestfs-actions.pod:2098
7689 msgid "guestfs_getcon"
7690 msgstr ""
7691
7692 # type: verbatim
7693 #: ../src/guestfs-actions.pod:2100
7694 #, no-wrap
7695 msgid ""
7696 " char *\n"
7697 " guestfs_getcon (guestfs_h *g);\n"
7698 "\n"
7699 msgstr ""
7700
7701 # type: textblock
7702 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
7703 msgid "This gets the SELinux security context of the daemon."
7704 msgstr ""
7705
7706 # type: textblock
7707 #: ../src/guestfs-actions.pod:2105
7708 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
7709 msgstr ""
7710
7711 # type: =head2
7712 #: ../src/guestfs-actions.pod:2113
7713 msgid "guestfs_getxattrs"
7714 msgstr ""
7715
7716 # type: verbatim
7717 #: ../src/guestfs-actions.pod:2115
7718 #, no-wrap
7719 msgid ""
7720 " struct guestfs_xattr_list *\n"
7721 " guestfs_getxattrs (guestfs_h *g,\n"
7722 "                    const char *path);\n"
7723 "\n"
7724 msgstr ""
7725
7726 # type: textblock
7727 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1432
7728 msgid "This call lists the extended attributes of the file or directory C<path>."
7729 msgstr ""
7730
7731 # type: textblock
7732 #: ../src/guestfs-actions.pod:2122 ../fish/guestfish-actions.pod:1435
7733 msgid ""
7734 "At the system call level, this is a combination of the L<listxattr(2)> and "
7735 "L<getxattr(2)> calls."
7736 msgstr ""
7737
7738 # type: textblock
7739 #: ../src/guestfs-actions.pod:2125
7740 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
7741 msgstr ""
7742
7743 # type: textblock
7744 #: ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:3243 ../src/guestfs-actions.pod:3894
7745 msgid ""
7746 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
7747 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
7748 msgstr ""
7749
7750 # type: textblock
7751 #: ../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
7752 msgid "(Added in 1.0.59)"
7753 msgstr ""
7754
7755 # type: =head2
7756 #: ../src/guestfs-actions.pod:2133
7757 msgid "guestfs_glob_expand"
7758 msgstr ""
7759
7760 # type: verbatim
7761 #: ../src/guestfs-actions.pod:2135
7762 #, no-wrap
7763 msgid ""
7764 " char **\n"
7765 " guestfs_glob_expand (guestfs_h *g,\n"
7766 "                      const char *pattern);\n"
7767 "\n"
7768 msgstr ""
7769
7770 # type: textblock
7771 #: ../src/guestfs-actions.pod:2139 ../fish/guestfish-actions.pod:1444
7772 msgid ""
7773 "This command searches for all the pathnames matching C<pattern> according to "
7774 "the wildcard expansion rules used by the shell."
7775 msgstr ""
7776
7777 # type: textblock
7778 #: ../src/guestfs-actions.pod:2143 ../fish/guestfish-actions.pod:1448
7779 msgid "If no paths match, then this returns an empty list (note: not an error)."
7780 msgstr ""
7781
7782 # type: textblock
7783 #: ../src/guestfs-actions.pod:2146 ../fish/guestfish-actions.pod:1451
7784 msgid ""
7785 "It is just a wrapper around the C L<glob(3)> function with flags "
7786 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7787 msgstr ""
7788
7789 # type: textblock
7790 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5929
7791 msgid "(Added in 1.0.50)"
7792 msgstr ""
7793
7794 # type: =head2
7795 #: ../src/guestfs-actions.pod:2156
7796 msgid "guestfs_grep"
7797 msgstr ""
7798
7799 # type: verbatim
7800 #: ../src/guestfs-actions.pod:2158
7801 #, no-wrap
7802 msgid ""
7803 " char **\n"
7804 " guestfs_grep (guestfs_h *g,\n"
7805 "               const char *regex,\n"
7806 "               const char *path);\n"
7807 "\n"
7808 msgstr ""
7809
7810 # type: textblock
7811 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1459
7812 msgid "This calls the external C<grep> program and returns the matching lines."
7813 msgstr ""
7814
7815 # type: =head2
7816 #: ../src/guestfs-actions.pod:2175
7817 msgid "guestfs_grepi"
7818 msgstr ""
7819
7820 # type: verbatim
7821 #: ../src/guestfs-actions.pod:2177
7822 #, no-wrap
7823 msgid ""
7824 " char **\n"
7825 " guestfs_grepi (guestfs_h *g,\n"
7826 "                const char *regex,\n"
7827 "                const char *path);\n"
7828 "\n"
7829 msgstr ""
7830
7831 # type: textblock
7832 #: ../src/guestfs-actions.pod:2182 ../fish/guestfish-actions.pod:1469
7833 msgid "This calls the external C<grep -i> program and returns the matching lines."
7834 msgstr ""
7835
7836 # type: =head2
7837 #: ../src/guestfs-actions.pod:2194
7838 msgid "guestfs_grub_install"
7839 msgstr ""
7840
7841 # type: verbatim
7842 #: ../src/guestfs-actions.pod:2196
7843 #, no-wrap
7844 msgid ""
7845 " int\n"
7846 " guestfs_grub_install (guestfs_h *g,\n"
7847 "                       const char *root,\n"
7848 "                       const char *device);\n"
7849 "\n"
7850 msgstr ""
7851
7852 # type: textblock
7853 #: ../src/guestfs-actions.pod:2201 ../fish/guestfish-actions.pod:1479
7854 msgid ""
7855 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7856 "the root directory being C<root>."
7857 msgstr ""
7858
7859 # type: textblock
7860 #: ../src/guestfs-actions.pod:2204 ../fish/guestfish-actions.pod:1482
7861 msgid ""
7862 "Note: If grub-install reports the error \"No suitable drive was found in the "
7863 "generated device map.\" it may be that you need to create a "
7864 "C</boot/grub/device.map> file first that contains the mapping between grub "
7865 "device names and Linux device names.  It is usually sufficient to create a "
7866 "file containing:"
7867 msgstr ""
7868
7869 # type: verbatim
7870 #: ../src/guestfs-actions.pod:2211 ../fish/guestfish-actions.pod:1489
7871 #, no-wrap
7872 msgid ""
7873 " (hd0) /dev/vda\n"
7874 "\n"
7875 msgstr ""
7876
7877 # type: textblock
7878 #: ../src/guestfs-actions.pod:2213 ../fish/guestfish-actions.pod:1491
7879 msgid "replacing C</dev/vda> with the name of the installation device."
7880 msgstr ""
7881
7882 # type: textblock
7883 #: ../src/guestfs-actions.pod:2217
7884 msgid "(Added in 1.0.17)"
7885 msgstr ""
7886
7887 # type: =head2
7888 #: ../src/guestfs-actions.pod:2219
7889 msgid "guestfs_head"
7890 msgstr ""
7891
7892 # type: verbatim
7893 #: ../src/guestfs-actions.pod:2221
7894 #, no-wrap
7895 msgid ""
7896 " char **\n"
7897 " guestfs_head (guestfs_h *g,\n"
7898 "               const char *path);\n"
7899 "\n"
7900 msgstr ""
7901
7902 # type: textblock
7903 #: ../src/guestfs-actions.pod:2225 ../fish/guestfish-actions.pod:1497
7904 msgid ""
7905 "This command returns up to the first 10 lines of a file as a list of "
7906 "strings."
7907 msgstr ""
7908
7909 # type: =head2
7910 #: ../src/guestfs-actions.pod:2237
7911 msgid "guestfs_head_n"
7912 msgstr ""
7913
7914 # type: verbatim
7915 #: ../src/guestfs-actions.pod:2239
7916 #, no-wrap
7917 msgid ""
7918 " char **\n"
7919 " guestfs_head_n (guestfs_h *g,\n"
7920 "                 int nrlines,\n"
7921 "                 const char *path);\n"
7922 "\n"
7923 msgstr ""
7924
7925 # type: textblock
7926 #: ../src/guestfs-actions.pod:2244 ../fish/guestfish-actions.pod:1507
7927 msgid ""
7928 "If the parameter C<nrlines> is a positive number, this returns the first "
7929 "C<nrlines> lines of the file C<path>."
7930 msgstr ""
7931
7932 # type: textblock
7933 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1510
7934 msgid ""
7935 "If the parameter C<nrlines> is a negative number, this returns lines from "
7936 "the file C<path>, excluding the last C<nrlines> lines."
7937 msgstr ""
7938
7939 # type: textblock
7940 #: ../src/guestfs-actions.pod:2250 ../src/guestfs-actions.pod:6209 ../fish/guestfish-actions.pod:1513 ../fish/guestfish-actions.pod:4144
7941 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7942 msgstr ""
7943
7944 # type: =head2
7945 #: ../src/guestfs-actions.pod:2261
7946 msgid "guestfs_hexdump"
7947 msgstr ""
7948
7949 # type: verbatim
7950 #: ../src/guestfs-actions.pod:2263
7951 #, no-wrap
7952 msgid ""
7953 " char *\n"
7954 " guestfs_hexdump (guestfs_h *g,\n"
7955 "                  const char *path);\n"
7956 "\n"
7957 msgstr ""
7958
7959 # type: textblock
7960 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1522
7961 msgid ""
7962 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7963 "human-readable, canonical hex dump of the file."
7964 msgstr ""
7965
7966 # type: textblock
7967 #: ../src/guestfs-actions.pod:2276 ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6048
7968 msgid "(Added in 1.0.22)"
7969 msgstr ""
7970
7971 # type: =head2
7972 #: ../src/guestfs-actions.pod:2278
7973 msgid "guestfs_initrd_cat"
7974 msgstr ""
7975
7976 # type: verbatim
7977 #: ../src/guestfs-actions.pod:2280
7978 #, no-wrap
7979 msgid ""
7980 " char *\n"
7981 " guestfs_initrd_cat (guestfs_h *g,\n"
7982 "                     const char *initrdpath,\n"
7983 "                     const char *filename,\n"
7984 "                     size_t *size_r);\n"
7985 "\n"
7986 msgstr ""
7987
7988 # type: textblock
7989 #: ../src/guestfs-actions.pod:2286 ../fish/guestfish-actions.pod:1532
7990 msgid ""
7991 "This command unpacks the file C<filename> from the initrd file called "
7992 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7993 "character."
7994 msgstr ""
7995
7996 # type: textblock
7997 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1536
7998 msgid ""
7999 "For example, in guestfish you could use the following command to examine the "
8000 "boot script (usually called C</init>)  contained in a Linux initrd or "
8001 "initramfs image:"
8002 msgstr ""
8003
8004 # type: verbatim
8005 #: ../src/guestfs-actions.pod:2294 ../fish/guestfish-actions.pod:1540
8006 #, no-wrap
8007 msgid ""
8008 " initrd-cat /boot/initrd-<version>.img init\n"
8009 "\n"
8010 msgstr ""
8011
8012 # type: textblock
8013 #: ../src/guestfs-actions.pod:2296
8014 msgid "See also C<guestfs_initrd_list>."
8015 msgstr ""
8016
8017 # type: textblock
8018 #: ../src/guestfs-actions.pod:2298 ../src/guestfs-actions.pod:4928 ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:5135
8019 msgid ""
8020 "This function returns a buffer, or NULL on error.  The size of the returned "
8021 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8022 "after use>."
8023 msgstr ""
8024
8025 # type: =head2
8026 #: ../src/guestfs-actions.pod:2307
8027 msgid "guestfs_initrd_list"
8028 msgstr ""
8029
8030 # type: verbatim
8031 #: ../src/guestfs-actions.pod:2309
8032 #, no-wrap
8033 msgid ""
8034 " char **\n"
8035 " guestfs_initrd_list (guestfs_h *g,\n"
8036 "                      const char *path);\n"
8037 "\n"
8038 msgstr ""
8039
8040 # type: textblock
8041 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1551
8042 msgid "This command lists out files contained in an initrd."
8043 msgstr ""
8044
8045 # type: textblock
8046 #: ../src/guestfs-actions.pod:2315 ../fish/guestfish-actions.pod:1553
8047 msgid ""
8048 "The files are listed without any initial C</> character.  The files are "
8049 "listed in the order they appear (not necessarily alphabetical).  Directory "
8050 "names are listed as separate items."
8051 msgstr ""
8052
8053 # type: textblock
8054 #: ../src/guestfs-actions.pod:2319 ../fish/guestfish-actions.pod:1557
8055 msgid ""
8056 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8057 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8058 "files)."
8059 msgstr ""
8060
8061 # type: =head2
8062 #: ../src/guestfs-actions.pod:2329
8063 msgid "guestfs_inotify_add_watch"
8064 msgstr ""
8065
8066 # type: verbatim
8067 #: ../src/guestfs-actions.pod:2331
8068 #, no-wrap
8069 msgid ""
8070 " int64_t\n"
8071 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8072 "                            const char *path,\n"
8073 "                            int mask);\n"
8074 "\n"
8075 msgstr ""
8076
8077 # type: textblock
8078 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1565
8079 msgid "Watch C<path> for the events listed in C<mask>."
8080 msgstr ""
8081
8082 # type: textblock
8083 #: ../src/guestfs-actions.pod:2338 ../fish/guestfish-actions.pod:1567
8084 msgid ""
8085 "Note that if C<path> is a directory then events within that directory are "
8086 "watched, but this does I<not> happen recursively (in subdirectories)."
8087 msgstr ""
8088
8089 # type: textblock
8090 #: ../src/guestfs-actions.pod:2342 ../fish/guestfish-actions.pod:1571
8091 msgid ""
8092 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8093 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8094 msgstr ""
8095
8096 # type: =head2
8097 #: ../src/guestfs-actions.pod:2350
8098 msgid "guestfs_inotify_close"
8099 msgstr ""
8100
8101 # type: verbatim
8102 #: ../src/guestfs-actions.pod:2352
8103 #, no-wrap
8104 msgid ""
8105 " int\n"
8106 " guestfs_inotify_close (guestfs_h *g);\n"
8107 "\n"
8108 msgstr ""
8109
8110 # type: textblock
8111 #: ../src/guestfs-actions.pod:2355 ../fish/guestfish-actions.pod:1579
8112 msgid ""
8113 "This closes the inotify handle which was previously opened by inotify_init.  "
8114 "It removes all watches, throws away any pending events, and deallocates all "
8115 "resources."
8116 msgstr ""
8117
8118 # type: =head2
8119 #: ../src/guestfs-actions.pod:2363
8120 msgid "guestfs_inotify_files"
8121 msgstr ""
8122
8123 # type: verbatim
8124 #: ../src/guestfs-actions.pod:2365
8125 #, no-wrap
8126 msgid ""
8127 " char **\n"
8128 " guestfs_inotify_files (guestfs_h *g);\n"
8129 "\n"
8130 msgstr ""
8131
8132 # type: textblock
8133 #: ../src/guestfs-actions.pod:2368
8134 msgid ""
8135 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8136 "returns a list of pathnames of objects that were touched.  The returned "
8137 "pathnames are sorted and deduplicated."
8138 msgstr ""
8139
8140 # type: =head2
8141 #: ../src/guestfs-actions.pod:2378
8142 msgid "guestfs_inotify_init"
8143 msgstr ""
8144
8145 # type: verbatim
8146 #: ../src/guestfs-actions.pod:2380
8147 #, no-wrap
8148 msgid ""
8149 " int\n"
8150 " guestfs_inotify_init (guestfs_h *g,\n"
8151 "                       int maxevents);\n"
8152 "\n"
8153 msgstr ""
8154
8155 # type: textblock
8156 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1595
8157 msgid ""
8158 "This command creates a new inotify handle.  The inotify subsystem can be "
8159 "used to notify events which happen to objects in the guest filesystem."
8160 msgstr ""
8161
8162 # type: textblock
8163 #: ../src/guestfs-actions.pod:2388
8164 msgid ""
8165 "C<maxevents> is the maximum number of events which will be queued up between "
8166 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8167 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8168 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8169 "throws away events, but records the fact that it threw them away by setting "
8170 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8171 "C<guestfs_inotify_read>)."
8172 msgstr ""
8173
8174 # type: textblock
8175 #: ../src/guestfs-actions.pod:2398
8176 msgid ""
8177 "Before any events are generated, you have to add some watches to the "
8178 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8179 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8180 msgstr ""
8181
8182 # type: textblock
8183 #: ../src/guestfs-actions.pod:2404
8184 msgid ""
8185 "Queued up events should be read periodically by calling "
8186 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8187 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8188 "often enough then you risk the internal queue overflowing."
8189 msgstr ""
8190
8191 # type: textblock
8192 #: ../src/guestfs-actions.pod:2411
8193 msgid ""
8194 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8195 "This also removes any watches automatically."
8196 msgstr ""
8197
8198 # type: textblock
8199 #: ../src/guestfs-actions.pod:2415 ../fish/guestfish-actions.pod:1626
8200 msgid ""
8201 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8202 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8203 "that there is one global inotify handle per libguestfs instance."
8204 msgstr ""
8205
8206 # type: =head2
8207 #: ../src/guestfs-actions.pod:2424
8208 msgid "guestfs_inotify_read"
8209 msgstr ""
8210
8211 # type: verbatim
8212 #: ../src/guestfs-actions.pod:2426
8213 #, no-wrap
8214 msgid ""
8215 " struct guestfs_inotify_event_list *\n"
8216 " guestfs_inotify_read (guestfs_h *g);\n"
8217 "\n"
8218 msgstr ""
8219
8220 # type: textblock
8221 #: ../src/guestfs-actions.pod:2429 ../fish/guestfish-actions.pod:1635
8222 msgid ""
8223 "Return the complete queue of events that have happened since the previous "
8224 "read call."
8225 msgstr ""
8226
8227 # type: textblock
8228 #: ../src/guestfs-actions.pod:2432 ../fish/guestfish-actions.pod:1638
8229 msgid "If no events have happened, this returns an empty list."
8230 msgstr ""
8231
8232 # type: textblock
8233 #: ../src/guestfs-actions.pod:2434 ../fish/guestfish-actions.pod:1640
8234 msgid ""
8235 "I<Note>: In order to make sure that all events have been read, you must call "
8236 "this function repeatedly until it returns an empty list.  The reason is that "
8237 "the call will read events up to the maximum appliance-to-host message size "
8238 "and leave remaining events in the queue."
8239 msgstr ""
8240
8241 # type: textblock
8242 #: ../src/guestfs-actions.pod:2440
8243 msgid ""
8244 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8245 "there was an error.  I<The caller must call "
8246 "C<guestfs_free_inotify_event_list> after use>."
8247 msgstr ""
8248
8249 # type: =head2
8250 #: ../src/guestfs-actions.pod:2446
8251 msgid "guestfs_inotify_rm_watch"
8252 msgstr ""
8253
8254 # type: verbatim
8255 #: ../src/guestfs-actions.pod:2448
8256 #, no-wrap
8257 msgid ""
8258 " int\n"
8259 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8260 "                           int wd);\n"
8261 "\n"
8262 msgstr ""
8263
8264 # type: textblock
8265 #: ../src/guestfs-actions.pod:2452
8266 msgid ""
8267 "Remove a previously defined inotify watch.  See "
8268 "C<guestfs_inotify_add_watch>."
8269 msgstr ""
8270
8271 # type: =head2
8272 #: ../src/guestfs-actions.pod:2459
8273 msgid "guestfs_inspect_get_arch"
8274 msgstr ""
8275
8276 # type: verbatim
8277 #: ../src/guestfs-actions.pod:2461
8278 #, no-wrap
8279 msgid ""
8280 " char *\n"
8281 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8282 "                           const char *root);\n"
8283 "\n"
8284 msgstr ""
8285
8286 # type: textblock
8287 #: ../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
8288 msgid ""
8289 "This function should only be called with a root device string as returned by "
8290 "C<guestfs_inspect_os>."
8291 msgstr ""
8292
8293 # type: textblock
8294 #: ../src/guestfs-actions.pod:2468
8295 msgid ""
8296 "This returns the architecture of the inspected operating system.  The "
8297 "possible return values are listed under C<guestfs_file_architecture>."
8298 msgstr ""
8299
8300 # type: textblock
8301 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1664
8302 msgid ""
8303 "If the architecture could not be determined, then the string C<unknown> is "
8304 "returned."
8305 msgstr ""
8306
8307 # type: textblock
8308 #: ../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
8309 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8310 msgstr ""
8311
8312 # type: =head2
8313 #: ../src/guestfs-actions.pod:2482
8314 msgid "guestfs_inspect_get_distro"
8315 msgstr ""
8316
8317 # type: verbatim
8318 #: ../src/guestfs-actions.pod:2484
8319 #, no-wrap
8320 msgid ""
8321 " char *\n"
8322 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8323 "                             const char *root);\n"
8324 "\n"
8325 msgstr ""
8326
8327 # type: textblock
8328 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1676
8329 msgid "This returns the distro (distribution) of the inspected operating system."
8330 msgstr ""
8331
8332 # type: textblock
8333 #: ../src/guestfs-actions.pod:2494 ../fish/guestfish-actions.pod:1679
8334 msgid "Currently defined distros are:"
8335 msgstr ""
8336
8337 # type: =item
8338 #: ../src/guestfs-actions.pod:2498 ../fish/guestfish-actions.pod:1683
8339 msgid "\"archlinux\""
8340 msgstr ""
8341
8342 # type: textblock
8343 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1685
8344 msgid "Arch Linux."
8345 msgstr ""
8346
8347 # type: =item
8348 #: ../src/guestfs-actions.pod:2502 ../fish/guestfish-actions.pod:1687
8349 msgid "\"debian\""
8350 msgstr ""
8351
8352 # type: textblock
8353 #: ../src/guestfs-actions.pod:2504 ../fish/guestfish-actions.pod:1689
8354 msgid "Debian."
8355 msgstr ""
8356
8357 # type: =item
8358 #: ../src/guestfs-actions.pod:2506 ../fish/guestfish-actions.pod:1691
8359 msgid "\"fedora\""
8360 msgstr ""
8361
8362 # type: textblock
8363 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1693
8364 msgid "Fedora."
8365 msgstr ""
8366
8367 # type: =item
8368 #: ../src/guestfs-actions.pod:2510 ../fish/guestfish-actions.pod:1695
8369 msgid "\"gentoo\""
8370 msgstr ""
8371
8372 # type: textblock
8373 #: ../src/guestfs-actions.pod:2512 ../fish/guestfish-actions.pod:1697
8374 msgid "Gentoo."
8375 msgstr ""
8376
8377 # type: =item
8378 #: ../src/guestfs-actions.pod:2514 ../fish/guestfish-actions.pod:1699
8379 msgid "\"linuxmint\""
8380 msgstr ""
8381
8382 # type: textblock
8383 #: ../src/guestfs-actions.pod:2516 ../fish/guestfish-actions.pod:1701
8384 msgid "Linux Mint."
8385 msgstr ""
8386
8387 # type: =item
8388 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1703
8389 msgid "\"mandriva\""
8390 msgstr ""
8391
8392 # type: textblock
8393 #: ../src/guestfs-actions.pod:2520 ../fish/guestfish-actions.pod:1705
8394 msgid "Mandriva."
8395 msgstr ""
8396
8397 # type: =item
8398 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1707
8399 msgid "\"meego\""
8400 msgstr ""
8401
8402 # type: textblock
8403 #: ../src/guestfs-actions.pod:2524 ../fish/guestfish-actions.pod:1709
8404 msgid "MeeGo."
8405 msgstr ""
8406
8407 # type: =item
8408 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1711
8409 msgid "\"pardus\""
8410 msgstr ""
8411
8412 # type: textblock
8413 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1713
8414 msgid "Pardus."
8415 msgstr ""
8416
8417 # type: =item
8418 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1715
8419 msgid "\"redhat-based\""
8420 msgstr ""
8421
8422 # type: textblock
8423 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1717
8424 msgid "Some Red Hat-derived distro."
8425 msgstr ""
8426
8427 # type: =item
8428 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1719
8429 msgid "\"rhel\""
8430 msgstr ""
8431
8432 # type: textblock
8433 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1721
8434 msgid "Red Hat Enterprise Linux and some derivatives."
8435 msgstr ""
8436
8437 # type: =item
8438 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1723
8439 msgid "\"ubuntu\""
8440 msgstr ""
8441
8442 # type: textblock
8443 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1725
8444 msgid "Ubuntu."
8445 msgstr ""
8446
8447 # type: =item
8448 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2822 ../fish/guestfish-actions.pod:1727 ../fish/guestfish-actions.pod:1935
8449 msgid "\"unknown\""
8450 msgstr ""
8451
8452 # type: textblock
8453 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1729
8454 msgid "The distro could not be determined."
8455 msgstr ""
8456
8457 # type: =item
8458 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1731 ../fish/guestfish-actions.pod:1927
8459 msgid "\"windows\""
8460 msgstr ""
8461
8462 # type: textblock
8463 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1733
8464 msgid ""
8465 "Windows does not have distributions.  This string is returned if the OS type "
8466 "is Windows."
8467 msgstr ""
8468
8469 # type: textblock
8470 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1738 ../fish/guestfish-actions.pod:1941
8471 msgid ""
8472 "Future versions of libguestfs may return other strings here.  The caller "
8473 "should be prepared to handle any string."
8474 msgstr ""
8475
8476 # type: =head2
8477 #: ../src/guestfs-actions.pod:2563
8478 msgid "guestfs_inspect_get_filesystems"
8479 msgstr ""
8480
8481 # type: verbatim
8482 #: ../src/guestfs-actions.pod:2565
8483 #, no-wrap
8484 msgid ""
8485 " char **\n"
8486 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
8487 "                                  const char *root);\n"
8488 "\n"
8489 msgstr ""
8490
8491 # type: textblock
8492 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1750
8493 msgid ""
8494 "This returns a list of all the filesystems that we think are associated with "
8495 "this operating system.  This includes the root filesystem, other ordinary "
8496 "filesystems, and non-mounted devices like swap partitions."
8497 msgstr ""
8498
8499 # type: textblock
8500 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1755
8501 msgid ""
8502 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8503 "to be shared between operating systems."
8504 msgstr ""
8505
8506 # type: textblock
8507 #: ../src/guestfs-actions.pod:2580
8508 msgid ""
8509 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8510 "C<guestfs_inspect_get_mountpoints>."
8511 msgstr ""
8512
8513 # type: =head2
8514 #: ../src/guestfs-actions.pod:2589
8515 msgid "guestfs_inspect_get_hostname"
8516 msgstr ""
8517
8518 # type: verbatim
8519 #: ../src/guestfs-actions.pod:2591
8520 #, no-wrap
8521 msgid ""
8522 " char *\n"
8523 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
8524 "                               const char *root);\n"
8525 "\n"
8526 msgstr ""
8527
8528 # type: textblock
8529 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1768
8530 msgid ""
8531 "This function returns the hostname of the operating system as found by "
8532 "inspection of the guest's configuration files."
8533 msgstr ""
8534
8535 # type: textblock
8536 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1771
8537 msgid ""
8538 "If the hostname could not be determined, then the string C<unknown> is "
8539 "returned."
8540 msgstr ""
8541
8542 # type: textblock
8543 #: ../src/guestfs-actions.pod:2609
8544 msgid "(Added in 1.7.9)"
8545 msgstr ""
8546
8547 # type: =head2
8548 #: ../src/guestfs-actions.pod:2611
8549 msgid "guestfs_inspect_get_major_version"
8550 msgstr ""
8551
8552 # type: verbatim
8553 #: ../src/guestfs-actions.pod:2613
8554 #, no-wrap
8555 msgid ""
8556 " int\n"
8557 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
8558 "                                    const char *root);\n"
8559 "\n"
8560 msgstr ""
8561
8562 # type: textblock
8563 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1783
8564 msgid "This returns the major version number of the inspected operating system."
8565 msgstr ""
8566
8567 # type: textblock
8568 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1786
8569 msgid ""
8570 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8571 "popular public names used by the operating system.  Notably the operating "
8572 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8573 "1).  You can find out the real versions corresponding to releases of Windows "
8574 "by consulting Wikipedia or MSDN."
8575 msgstr ""
8576
8577 # type: textblock
8578 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:1793 ../fish/guestfish-actions.pod:1807
8579 msgid "If the version could not be determined, then C<0> is returned."
8580 msgstr ""
8581
8582 # type: =head2
8583 #: ../src/guestfs-actions.pod:2638
8584 msgid "guestfs_inspect_get_minor_version"
8585 msgstr ""
8586
8587 # type: verbatim
8588 #: ../src/guestfs-actions.pod:2640
8589 #, no-wrap
8590 msgid ""
8591 " int\n"
8592 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
8593 "                                    const char *root);\n"
8594 "\n"
8595 msgstr ""
8596
8597 # type: textblock
8598 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1804
8599 msgid "This returns the minor version number of the inspected operating system."
8600 msgstr ""
8601
8602 # type: textblock
8603 #: ../src/guestfs-actions.pod:2652
8604 msgid ""
8605 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8606 "C<guestfs_inspect_get_major_version>."
8607 msgstr ""
8608
8609 # type: =head2
8610 #: ../src/guestfs-actions.pod:2659
8611 msgid "guestfs_inspect_get_mountpoints"
8612 msgstr ""
8613
8614 # type: verbatim
8615 #: ../src/guestfs-actions.pod:2661
8616 #, no-wrap
8617 msgid ""
8618 " char **\n"
8619 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
8620 "                                  const char *root);\n"
8621 "\n"
8622 msgstr ""
8623
8624 # type: textblock
8625 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1819
8626 msgid ""
8627 "This returns a hash of where we think the filesystems associated with this "
8628 "operating system should be mounted.  Callers should note that this is at "
8629 "best an educated guess made by reading configuration files such as "
8630 "C</etc/fstab>."
8631 msgstr ""
8632
8633 # type: textblock
8634 #: ../src/guestfs-actions.pod:2673 ../fish/guestfish-actions.pod:1824
8635 msgid ""
8636 "Each element in the returned hashtable has a key which is the path of the "
8637 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8638 "mounted there (eg. C</dev/sda1>)."
8639 msgstr ""
8640
8641 # type: textblock
8642 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1829
8643 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8644 msgstr ""
8645
8646 # type: textblock
8647 #: ../src/guestfs-actions.pod:2681
8648 msgid ""
8649 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8650 "C<guestfs_inspect_get_filesystems>."
8651 msgstr ""
8652
8653 # type: textblock
8654 #: ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:3300 ../src/guestfs-actions.pod:4494 ../src/guestfs-actions.pod:6350
8655 msgid ""
8656 "This function returns a NULL-terminated array of strings, or NULL if there "
8657 "was an error.  The array of strings will always have length C<2n+1>, where "
8658 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
8659 "caller must free the strings and the array after use>."
8660 msgstr ""
8661
8662 # type: =head2
8663 #: ../src/guestfs-actions.pod:2692
8664 msgid "guestfs_inspect_get_package_format"
8665 msgstr ""
8666
8667 # type: verbatim
8668 #: ../src/guestfs-actions.pod:2694
8669 #, no-wrap
8670 msgid ""
8671 " char *\n"
8672 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
8673 "                                     const char *root);\n"
8674 "\n"
8675 msgstr ""
8676
8677 # type: textblock
8678 #: ../src/guestfs-actions.pod:2701
8679 msgid ""
8680 "This function and C<guestfs_inspect_get_package_management> return the "
8681 "package format and package management tool used by the inspected operating "
8682 "system.  For example for Fedora these functions would return C<rpm> (package "
8683 "format) and C<yum> (package management)."
8684 msgstr ""
8685
8686 # type: textblock
8687 #: ../src/guestfs-actions.pod:2707 ../fish/guestfish-actions.pod:1848
8688 msgid ""
8689 "This returns the string C<unknown> if we could not determine the package "
8690 "format I<or> if the operating system does not have a real packaging system "
8691 "(eg. Windows)."
8692 msgstr ""
8693
8694 # type: textblock
8695 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
8696 msgid ""
8697 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8698 "Future versions of libguestfs may return other strings."
8699 msgstr ""
8700
8701 # type: textblock
8702 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2750
8703 msgid "(Added in 1.7.5)"
8704 msgstr ""
8705
8706 # type: =head2
8707 #: ../src/guestfs-actions.pod:2721
8708 msgid "guestfs_inspect_get_package_management"
8709 msgstr ""
8710
8711 # type: verbatim
8712 #: ../src/guestfs-actions.pod:2723
8713 #, no-wrap
8714 msgid ""
8715 " char *\n"
8716 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
8717 "                                         const char *root);\n"
8718 "\n"
8719 msgstr ""
8720
8721 # type: textblock
8722 #: ../src/guestfs-actions.pod:2730
8723 msgid ""
8724 "C<guestfs_inspect_get_package_format> and this function return the package "
8725 "format and package management tool used by the inspected operating system.  "
8726 "For example for Fedora these functions would return C<rpm> (package format) "
8727 "and C<yum> (package management)."
8728 msgstr ""
8729
8730 # type: textblock
8731 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1870
8732 msgid ""
8733 "This returns the string C<unknown> if we could not determine the package "
8734 "management tool I<or> if the operating system does not have a real packaging "
8735 "system (eg. Windows)."
8736 msgstr ""
8737
8738 # type: textblock
8739 #: ../src/guestfs-actions.pod:2740 ../fish/guestfish-actions.pod:1874
8740 msgid ""
8741 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8742 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8743 "libguestfs may return other strings."
8744 msgstr ""
8745
8746 # type: =head2
8747 #: ../src/guestfs-actions.pod:2752
8748 msgid "guestfs_inspect_get_product_name"
8749 msgstr ""
8750
8751 # type: verbatim
8752 #: ../src/guestfs-actions.pod:2754
8753 #, no-wrap
8754 msgid ""
8755 " char *\n"
8756 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
8757 "                                   const char *root);\n"
8758 "\n"
8759 msgstr ""
8760
8761 # type: textblock
8762 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:1888
8763 msgid ""
8764 "This returns the product name of the inspected operating system.  The "
8765 "product name is generally some freeform string which can be displayed to the "
8766 "user, but should not be parsed by programs."
8767 msgstr ""
8768
8769 # type: textblock
8770 #: ../src/guestfs-actions.pod:2766 ../fish/guestfish-actions.pod:1893
8771 msgid ""
8772 "If the product name could not be determined, then the string C<unknown> is "
8773 "returned."
8774 msgstr ""
8775
8776 # type: =head2
8777 #: ../src/guestfs-actions.pod:2776
8778 msgid "guestfs_inspect_get_roots"
8779 msgstr ""
8780
8781 # type: verbatim
8782 #: ../src/guestfs-actions.pod:2778
8783 #, no-wrap
8784 msgid ""
8785 " char **\n"
8786 " guestfs_inspect_get_roots (guestfs_h *g);\n"
8787 "\n"
8788 msgstr ""
8789
8790 # type: textblock
8791 #: ../src/guestfs-actions.pod:2781
8792 msgid ""
8793 "This function is a convenient way to get the list of root devices, as "
8794 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
8795 "the whole inspection process."
8796 msgstr ""
8797
8798 # type: textblock
8799 #: ../src/guestfs-actions.pod:2785
8800 msgid ""
8801 "This returns an empty list if either no root devices were found or the "
8802 "caller has not called C<guestfs_inspect_os>."
8803 msgstr ""
8804
8805 # type: textblock
8806 #: ../src/guestfs-actions.pod:2794
8807 msgid "(Added in 1.7.3)"
8808 msgstr ""
8809
8810 # type: =head2
8811 #: ../src/guestfs-actions.pod:2796
8812 msgid "guestfs_inspect_get_type"
8813 msgstr ""
8814
8815 # type: verbatim
8816 #: ../src/guestfs-actions.pod:2798
8817 #, no-wrap
8818 msgid ""
8819 " char *\n"
8820 " guestfs_inspect_get_type (guestfs_h *g,\n"
8821 "                           const char *root);\n"
8822 "\n"
8823 msgstr ""
8824
8825 # type: textblock
8826 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1918
8827 msgid ""
8828 "This returns the type of the inspected operating system.  Currently defined "
8829 "types are:"
8830 msgstr ""
8831
8832 # type: =item
8833 #: ../src/guestfs-actions.pod:2810 ../fish/guestfish-actions.pod:1923
8834 msgid "\"linux\""
8835 msgstr ""
8836
8837 # type: textblock
8838 #: ../src/guestfs-actions.pod:2812 ../fish/guestfish-actions.pod:1925
8839 msgid "Any Linux-based operating system."
8840 msgstr ""
8841
8842 # type: textblock
8843 #: ../src/guestfs-actions.pod:2816 ../fish/guestfish-actions.pod:1929
8844 msgid "Any Microsoft Windows operating system."
8845 msgstr ""
8846
8847 # type: =item
8848 #: ../src/guestfs-actions.pod:2818 ../fish/guestfish-actions.pod:1931
8849 msgid "\"freebsd\""
8850 msgstr ""
8851
8852 # type: textblock
8853 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1933
8854 msgid "FreeBSD."
8855 msgstr ""
8856
8857 # type: textblock
8858 #: ../src/guestfs-actions.pod:2824 ../fish/guestfish-actions.pod:1937
8859 msgid "The operating system type could not be determined."
8860 msgstr ""
8861
8862 # type: =head2
8863 #: ../src/guestfs-actions.pod:2838
8864 msgid "guestfs_inspect_get_windows_systemroot"
8865 msgstr ""
8866
8867 # type: verbatim
8868 #: ../src/guestfs-actions.pod:2840
8869 #, no-wrap
8870 msgid ""
8871 " char *\n"
8872 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
8873 "                                         const char *root);\n"
8874 "\n"
8875 msgstr ""
8876
8877 # type: textblock
8878 #: ../src/guestfs-actions.pod:2847 ../fish/guestfish-actions.pod:1953
8879 msgid ""
8880 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8881 "is a directory path such as C</WINDOWS>."
8882 msgstr ""
8883
8884 # type: textblock
8885 #: ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1956
8886 msgid ""
8887 "This call assumes that the guest is Windows and that the systemroot could be "
8888 "determined by inspection.  If this is not the case then an error is "
8889 "returned."
8890 msgstr ""
8891
8892 # type: textblock
8893 #: ../src/guestfs-actions.pod:2859
8894 msgid "(Added in 1.5.25)"
8895 msgstr ""
8896
8897 # type: =head2
8898 #: ../src/guestfs-actions.pod:2861
8899 msgid "guestfs_inspect_list_applications"
8900 msgstr ""
8901
8902 # type: verbatim
8903 #: ../src/guestfs-actions.pod:2863
8904 #, no-wrap
8905 msgid ""
8906 " struct guestfs_application_list *\n"
8907 " guestfs_inspect_list_applications (guestfs_h *g,\n"
8908 "                                    const char *root);\n"
8909 "\n"
8910 msgstr ""
8911
8912 # type: textblock
8913 #: ../src/guestfs-actions.pod:2870 ../fish/guestfish-actions.pod:1969
8914 msgid "Return the list of applications installed in the operating system."
8915 msgstr ""
8916
8917 # type: textblock
8918 #: ../src/guestfs-actions.pod:2872
8919 msgid ""
8920 "I<Note:> This call works differently from other parts of the inspection "
8921 "API.  You have to call C<guestfs_inspect_os>, then "
8922 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
8923 "this.  Listing applications is a significantly more difficult operation "
8924 "which requires access to the full filesystem.  Also note that unlike the "
8925 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
8926 "the libguestfs handle, this call actually reads parts of the mounted "
8927 "filesystems during the call."
8928 msgstr ""
8929
8930 # type: textblock
8931 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1981
8932 msgid ""
8933 "This returns an empty list if the inspection code was not able to determine "
8934 "the list of applications."
8935 msgstr ""
8936
8937 # type: textblock
8938 #: ../src/guestfs-actions.pod:2885 ../fish/guestfish-actions.pod:1984
8939 msgid "The application structure contains the following fields:"
8940 msgstr ""
8941
8942 # type: =item
8943 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1988
8944 msgid "C<app_name>"
8945 msgstr ""
8946
8947 # type: textblock
8948 #: ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:1990
8949 msgid ""
8950 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8951 "guests, this is the package name."
8952 msgstr ""
8953
8954 # type: =item
8955 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1993
8956 msgid "C<app_display_name>"
8957 msgstr ""
8958
8959 # type: textblock
8960 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:1995
8961 msgid ""
8962 "The display name of the application, sometimes localized to the install "
8963 "language of the guest operating system."
8964 msgstr ""
8965
8966 # type: textblock
8967 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1998
8968 msgid ""
8969 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8970 "to display something can use C<app_name> instead."
8971 msgstr ""
8972
8973 # type: =item
8974 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2001
8975 msgid "C<app_epoch>"
8976 msgstr ""
8977
8978 # type: textblock
8979 #: ../src/guestfs-actions.pod:2904 ../fish/guestfish-actions.pod:2003
8980 msgid ""
8981 "For package managers which use epochs, this contains the epoch of the "
8982 "package (an integer).  If unavailable, this is returned as C<0>."
8983 msgstr ""
8984
8985 # type: =item
8986 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2006
8987 msgid "C<app_version>"
8988 msgstr ""
8989
8990 # type: textblock
8991 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2008
8992 msgid ""
8993 "The version string of the application or package.  If unavailable this is "
8994 "returned as an empty string C<\"\">."
8995 msgstr ""
8996
8997 # type: =item
8998 #: ../src/guestfs-actions.pod:2912 ../fish/guestfish-actions.pod:2011
8999 msgid "C<app_release>"
9000 msgstr ""
9001
9002 # type: textblock
9003 #: ../src/guestfs-actions.pod:2914 ../fish/guestfish-actions.pod:2013
9004 msgid ""
9005 "The release string of the application or package, for package managers that "
9006 "use this.  If unavailable this is returned as an empty string C<\"\">."
9007 msgstr ""
9008
9009 # type: =item
9010 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2017
9011 msgid "C<app_install_path>"
9012 msgstr ""
9013
9014 # type: textblock
9015 #: ../src/guestfs-actions.pod:2920 ../fish/guestfish-actions.pod:2019
9016 msgid ""
9017 "The installation path of the application (on operating systems such as "
9018 "Windows which use installation paths).  This path is in the format used by "
9019 "the guest operating system, it is not a libguestfs path."
9020 msgstr ""
9021
9022 # type: textblock
9023 #: ../src/guestfs-actions.pod:2925 ../fish/guestfish-actions.pod:2024
9024 msgid "If unavailable this is returned as an empty string C<\"\">."
9025 msgstr ""
9026
9027 # type: =item
9028 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2026
9029 msgid "C<app_trans_path>"
9030 msgstr ""
9031
9032 # type: textblock
9033 #: ../src/guestfs-actions.pod:2929 ../fish/guestfish-actions.pod:2028
9034 msgid ""
9035 "The install path translated into a libguestfs path.  If unavailable this is "
9036 "returned as an empty string C<\"\">."
9037 msgstr ""
9038
9039 # type: =item
9040 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2031
9041 msgid "C<app_publisher>"
9042 msgstr ""
9043
9044 # type: textblock
9045 #: ../src/guestfs-actions.pod:2934 ../fish/guestfish-actions.pod:2033
9046 msgid ""
9047 "The name of the publisher of the application, for package managers that use "
9048 "this.  If unavailable this is returned as an empty string C<\"\">."
9049 msgstr ""
9050
9051 # type: =item
9052 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2037
9053 msgid "C<app_url>"
9054 msgstr ""
9055
9056 # type: textblock
9057 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2039
9058 msgid ""
9059 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9060 "returned as an empty string C<\"\">."
9061 msgstr ""
9062
9063 # type: =item
9064 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2042
9065 msgid "C<app_source_package>"
9066 msgstr ""
9067
9068 # type: textblock
9069 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2044
9070 msgid ""
9071 "For packaging systems which support this, the name of the source package.  "
9072 "If unavailable this is returned as an empty string C<\"\">."
9073 msgstr ""
9074
9075 # type: =item
9076 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2047
9077 msgid "C<app_summary>"
9078 msgstr ""
9079
9080 # type: textblock
9081 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2049
9082 msgid ""
9083 "A short (usually one line) description of the application or package.  If "
9084 "unavailable this is returned as an empty string C<\"\">."
9085 msgstr ""
9086
9087 # type: =item
9088 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2052
9089 msgid "C<app_description>"
9090 msgstr ""
9091
9092 # type: textblock
9093 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2054
9094 msgid ""
9095 "A longer description of the application or package.  If unavailable this is "
9096 "returned as an empty string C<\"\">."
9097 msgstr ""
9098
9099 # type: textblock
9100 #: ../src/guestfs-actions.pod:2962
9101 msgid ""
9102 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9103 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9104 "after use>."
9105 msgstr ""
9106
9107 # type: textblock
9108 #: ../src/guestfs-actions.pod:2966
9109 msgid "(Added in 1.7.8)"
9110 msgstr ""
9111
9112 # type: =head2
9113 #: ../src/guestfs-actions.pod:2968
9114 msgid "guestfs_inspect_os"
9115 msgstr ""
9116
9117 # type: verbatim
9118 #: ../src/guestfs-actions.pod:2970
9119 #, no-wrap
9120 msgid ""
9121 " char **\n"
9122 " guestfs_inspect_os (guestfs_h *g);\n"
9123 "\n"
9124 msgstr ""
9125
9126 # type: textblock
9127 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2065
9128 msgid ""
9129 "This function uses other libguestfs functions and certain heuristics to "
9130 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9131 "for operating systems."
9132 msgstr ""
9133
9134 # type: textblock
9135 #: ../src/guestfs-actions.pod:2977 ../fish/guestfish-actions.pod:2069
9136 msgid "The list returned is empty if no operating systems were found."
9137 msgstr ""
9138
9139 # type: textblock
9140 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2071
9141 msgid ""
9142 "If one operating system was found, then this returns a list with a single "
9143 "element, which is the name of the root filesystem of this operating system.  "
9144 "It is also possible for this function to return a list containing more than "
9145 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9146 "element being the root filesystem of one of the operating systems."
9147 msgstr ""
9148
9149 # type: textblock
9150 #: ../src/guestfs-actions.pod:2986
9151 msgid ""
9152 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9153 "functions in order to query further information about each operating system, "
9154 "such as the name and version."
9155 msgstr ""
9156
9157 # type: textblock
9158 #: ../src/guestfs-actions.pod:2991
9159 msgid ""
9160 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9161 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9162 "the contents.  This should be called with no disks currently mounted.  The "
9163 "function may also use Augeas, so any existing Augeas handle will be closed."
9164 msgstr ""
9165
9166 # type: textblock
9167 #: ../src/guestfs-actions.pod:2997 ../fish/guestfish-actions.pod:2089
9168 msgid ""
9169 "This function cannot decrypt encrypted disks.  The caller must do that first "
9170 "(supplying the necessary keys) if the disk is encrypted."
9171 msgstr ""
9172
9173 # type: textblock
9174 #: ../src/guestfs-actions.pod:3003 ../src/guestfs-actions.pod:3258 ../src/guestfs-actions.pod:3320
9175 msgid "See also C<guestfs_list_filesystems>."
9176 msgstr ""
9177
9178 # type: =head2
9179 #: ../src/guestfs-actions.pod:3011
9180 msgid "guestfs_is_blockdev"
9181 msgstr ""
9182
9183 # type: verbatim
9184 #: ../src/guestfs-actions.pod:3013
9185 #, no-wrap
9186 msgid ""
9187 " int\n"
9188 " guestfs_is_blockdev (guestfs_h *g,\n"
9189 "                      const char *path);\n"
9190 "\n"
9191 msgstr ""
9192
9193 # type: textblock
9194 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2101
9195 msgid ""
9196 "This returns C<true> if and only if there is a block device with the given "
9197 "C<path> name."
9198 msgstr ""
9199
9200 # type: textblock
9201 #: ../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
9202 msgid "See also C<guestfs_stat>."
9203 msgstr ""
9204
9205 # type: textblock
9206 #: ../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
9207 msgid "(Added in 1.5.10)"
9208 msgstr ""
9209
9210 # type: =head2
9211 #: ../src/guestfs-actions.pod:3026
9212 msgid "guestfs_is_busy"
9213 msgstr ""
9214
9215 # type: verbatim
9216 #: ../src/guestfs-actions.pod:3028
9217 #, no-wrap
9218 msgid ""
9219 " int\n"
9220 " guestfs_is_busy (guestfs_h *g);\n"
9221 "\n"
9222 msgstr ""
9223
9224 # type: textblock
9225 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2110
9226 msgid ""
9227 "This returns true iff this handle is busy processing a command (in the "
9228 "C<BUSY> state)."
9229 msgstr ""
9230
9231 # type: =head2
9232 #: ../src/guestfs-actions.pod:3040
9233 msgid "guestfs_is_chardev"
9234 msgstr ""
9235
9236 # type: verbatim
9237 #: ../src/guestfs-actions.pod:3042
9238 #, no-wrap
9239 msgid ""
9240 " int\n"
9241 " guestfs_is_chardev (guestfs_h *g,\n"
9242 "                     const char *path);\n"
9243 "\n"
9244 msgstr ""
9245
9246 # type: textblock
9247 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2119
9248 msgid ""
9249 "This returns C<true> if and only if there is a character device with the "
9250 "given C<path> name."
9251 msgstr ""
9252
9253 # type: =head2
9254 #: ../src/guestfs-actions.pod:3055
9255 msgid "guestfs_is_config"
9256 msgstr ""
9257
9258 # type: verbatim
9259 #: ../src/guestfs-actions.pod:3057
9260 #, no-wrap
9261 msgid ""
9262 " int\n"
9263 " guestfs_is_config (guestfs_h *g);\n"
9264 "\n"
9265 msgstr ""
9266
9267 # type: textblock
9268 #: ../src/guestfs-actions.pod:3060 ../fish/guestfish-actions.pod:2128
9269 msgid ""
9270 "This returns true iff this handle is being configured (in the C<CONFIG> "
9271 "state)."
9272 msgstr ""
9273
9274 # type: =head2
9275 #: ../src/guestfs-actions.pod:3069
9276 msgid "guestfs_is_dir"
9277 msgstr ""
9278
9279 # type: verbatim
9280 #: ../src/guestfs-actions.pod:3071
9281 #, no-wrap
9282 msgid ""
9283 " int\n"
9284 " guestfs_is_dir (guestfs_h *g,\n"
9285 "                 const char *path);\n"
9286 "\n"
9287 msgstr ""
9288
9289 # type: textblock
9290 #: ../src/guestfs-actions.pod:3075 ../fish/guestfish-actions.pod:2137
9291 msgid ""
9292 "This returns C<true> if and only if there is a directory with the given "
9293 "C<path> name.  Note that it returns false for other objects like files."
9294 msgstr ""
9295
9296 # type: =head2
9297 #: ../src/guestfs-actions.pod:3085
9298 msgid "guestfs_is_fifo"
9299 msgstr ""
9300
9301 # type: verbatim
9302 #: ../src/guestfs-actions.pod:3087
9303 #, no-wrap
9304 msgid ""
9305 " int\n"
9306 " guestfs_is_fifo (guestfs_h *g,\n"
9307 "                  const char *path);\n"
9308 "\n"
9309 msgstr ""
9310
9311 # type: textblock
9312 #: ../src/guestfs-actions.pod:3091 ../fish/guestfish-actions.pod:2147
9313 msgid ""
9314 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9315 "given C<path> name."
9316 msgstr ""
9317
9318 # type: =head2
9319 #: ../src/guestfs-actions.pod:3100
9320 msgid "guestfs_is_file"
9321 msgstr ""
9322
9323 # type: verbatim
9324 #: ../src/guestfs-actions.pod:3102
9325 #, no-wrap
9326 msgid ""
9327 " int\n"
9328 " guestfs_is_file (guestfs_h *g,\n"
9329 "                  const char *path);\n"
9330 "\n"
9331 msgstr ""
9332
9333 # type: textblock
9334 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2156
9335 msgid ""
9336 "This returns C<true> if and only if there is a regular file with the given "
9337 "C<path> name.  Note that it returns false for other objects like "
9338 "directories."
9339 msgstr ""
9340
9341 # type: =head2
9342 #: ../src/guestfs-actions.pod:3116
9343 msgid "guestfs_is_launching"
9344 msgstr ""
9345
9346 # type: verbatim
9347 #: ../src/guestfs-actions.pod:3118
9348 #, no-wrap
9349 msgid ""
9350 " int\n"
9351 " guestfs_is_launching (guestfs_h *g);\n"
9352 "\n"
9353 msgstr ""
9354
9355 # type: textblock
9356 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2166
9357 msgid ""
9358 "This returns true iff this handle is launching the subprocess (in the "
9359 "C<LAUNCHING> state)."
9360 msgstr ""
9361
9362 # type: =head2
9363 #: ../src/guestfs-actions.pod:3130
9364 msgid "guestfs_is_lv"
9365 msgstr ""
9366
9367 # type: verbatim
9368 #: ../src/guestfs-actions.pod:3132
9369 #, no-wrap
9370 msgid ""
9371 " int\n"
9372 " guestfs_is_lv (guestfs_h *g,\n"
9373 "                const char *device);\n"
9374 "\n"
9375 msgstr ""
9376
9377 # type: textblock
9378 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2175
9379 msgid ""
9380 "This command tests whether C<device> is a logical volume, and returns true "
9381 "iff this is the case."
9382 msgstr ""
9383
9384 # type: =head2
9385 #: ../src/guestfs-actions.pod:3143
9386 msgid "guestfs_is_ready"
9387 msgstr ""
9388
9389 # type: verbatim
9390 #: ../src/guestfs-actions.pod:3145
9391 #, no-wrap
9392 msgid ""
9393 " int\n"
9394 " guestfs_is_ready (guestfs_h *g);\n"
9395 "\n"
9396 msgstr ""
9397
9398 # type: textblock
9399 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2182
9400 msgid ""
9401 "This returns true iff this handle is ready to accept commands (in the "
9402 "C<READY> state)."
9403 msgstr ""
9404
9405 # type: =head2
9406 #: ../src/guestfs-actions.pod:3157
9407 msgid "guestfs_is_socket"
9408 msgstr ""
9409
9410 # type: verbatim
9411 #: ../src/guestfs-actions.pod:3159
9412 #, no-wrap
9413 msgid ""
9414 " int\n"
9415 " guestfs_is_socket (guestfs_h *g,\n"
9416 "                    const char *path);\n"
9417 "\n"
9418 msgstr ""
9419
9420 # type: textblock
9421 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2191
9422 msgid ""
9423 "This returns C<true> if and only if there is a Unix domain socket with the "
9424 "given C<path> name."
9425 msgstr ""
9426
9427 # type: =head2
9428 #: ../src/guestfs-actions.pod:3172
9429 msgid "guestfs_is_symlink"
9430 msgstr ""
9431
9432 # type: verbatim
9433 #: ../src/guestfs-actions.pod:3174
9434 #, no-wrap
9435 msgid ""
9436 " int\n"
9437 " guestfs_is_symlink (guestfs_h *g,\n"
9438 "                     const char *path);\n"
9439 "\n"
9440 msgstr ""
9441
9442 # type: textblock
9443 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2200
9444 msgid ""
9445 "This returns C<true> if and only if there is a symbolic link with the given "
9446 "C<path> name."
9447 msgstr ""
9448
9449 # type: =head2
9450 #: ../src/guestfs-actions.pod:3187
9451 msgid "guestfs_kill_subprocess"
9452 msgstr ""
9453
9454 # type: verbatim
9455 #: ../src/guestfs-actions.pod:3189
9456 #, no-wrap
9457 msgid ""
9458 " int\n"
9459 " guestfs_kill_subprocess (guestfs_h *g);\n"
9460 "\n"
9461 msgstr ""
9462
9463 # type: textblock
9464 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2209
9465 msgid "This kills the qemu subprocess.  You should never need to call this."
9466 msgstr ""
9467
9468 # type: =head2
9469 #: ../src/guestfs-actions.pod:3198
9470 msgid "guestfs_launch"
9471 msgstr ""
9472
9473 # type: verbatim
9474 #: ../src/guestfs-actions.pod:3200
9475 #, no-wrap
9476 msgid ""
9477 " int\n"
9478 " guestfs_launch (guestfs_h *g);\n"
9479 "\n"
9480 msgstr ""
9481
9482 # type: textblock
9483 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2217
9484 msgid ""
9485 "Internally libguestfs is implemented by running a virtual machine using "
9486 "L<qemu(1)>."
9487 msgstr ""
9488
9489 # type: textblock
9490 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
9491 msgid ""
9492 "You should call this after configuring the handle (eg. adding drives) but "
9493 "before performing any actions."
9494 msgstr ""
9495
9496 # type: =head2
9497 #: ../src/guestfs-actions.pod:3213
9498 msgid "guestfs_lchown"
9499 msgstr ""
9500
9501 # type: verbatim
9502 #: ../src/guestfs-actions.pod:3215
9503 #, no-wrap
9504 msgid ""
9505 " int\n"
9506 " guestfs_lchown (guestfs_h *g,\n"
9507 "                 int owner,\n"
9508 "                 int group,\n"
9509 "                 const char *path);\n"
9510 "\n"
9511 msgstr ""
9512
9513 # type: textblock
9514 #: ../src/guestfs-actions.pod:3221
9515 msgid ""
9516 "Change the file owner to C<owner> and group to C<group>.  This is like "
9517 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
9518 "changed, not the target."
9519 msgstr ""
9520
9521 # type: =head2
9522 #: ../src/guestfs-actions.pod:3233
9523 msgid "guestfs_lgetxattrs"
9524 msgstr ""
9525
9526 # type: verbatim
9527 #: ../src/guestfs-actions.pod:3235
9528 #, no-wrap
9529 msgid ""
9530 " struct guestfs_xattr_list *\n"
9531 " guestfs_lgetxattrs (guestfs_h *g,\n"
9532 "                     const char *path);\n"
9533 "\n"
9534 msgstr ""
9535
9536 # type: textblock
9537 #: ../src/guestfs-actions.pod:3239
9538 msgid ""
9539 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
9540 "then it returns the extended attributes of the link itself."
9541 msgstr ""
9542
9543 # type: =head2
9544 #: ../src/guestfs-actions.pod:3249
9545 msgid "guestfs_list_devices"
9546 msgstr ""
9547
9548 # type: verbatim
9549 #: ../src/guestfs-actions.pod:3251
9550 #, no-wrap
9551 msgid ""
9552 " char **\n"
9553 " guestfs_list_devices (guestfs_h *g);\n"
9554 "\n"
9555 msgstr ""
9556
9557 # type: textblock
9558 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2247
9559 msgid "List all the block devices."
9560 msgstr ""
9561
9562 # type: textblock
9563 #: ../src/guestfs-actions.pod:3256 ../fish/guestfish-actions.pod:2249
9564 msgid "The full block device names are returned, eg. C</dev/sda>."
9565 msgstr ""
9566
9567 # type: =head2
9568 #: ../src/guestfs-actions.pod:3266
9569 msgid "guestfs_list_filesystems"
9570 msgstr ""
9571
9572 # type: verbatim
9573 #: ../src/guestfs-actions.pod:3268
9574 #, no-wrap
9575 msgid ""
9576 " char **\n"
9577 " guestfs_list_filesystems (guestfs_h *g);\n"
9578 "\n"
9579 msgstr ""
9580
9581 # type: textblock
9582 #: ../src/guestfs-actions.pod:3271 ../fish/guestfish-actions.pod:2257
9583 msgid ""
9584 "This inspection command looks for filesystems on partitions, block devices "
9585 "and logical volumes, returning a list of devices containing filesystems and "
9586 "their type."
9587 msgstr ""
9588
9589 # type: textblock
9590 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:2261
9591 msgid ""
9592 "The return value is a hash, where the keys are the devices containing "
9593 "filesystems, and the values are the filesystem types.  For example:"
9594 msgstr ""
9595
9596 # type: verbatim
9597 #: ../src/guestfs-actions.pod:3279 ../fish/guestfish-actions.pod:2265
9598 #, no-wrap
9599 msgid ""
9600 " \"/dev/sda1\" => \"ntfs\"\n"
9601 " \"/dev/sda2\" => \"ext2\"\n"
9602 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9603 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9604 "\n"
9605 msgstr ""
9606
9607 # type: textblock
9608 #: ../src/guestfs-actions.pod:3284 ../fish/guestfish-actions.pod:2270
9609 msgid ""
9610 "The value can have the special value \"unknown\", meaning the content of the "
9611 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9612 msgstr ""
9613
9614 # type: textblock
9615 #: ../src/guestfs-actions.pod:3288
9616 msgid ""
9617 "This command runs other libguestfs commands, which might include "
9618 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
9619 "soon after launch and only when nothing is mounted."
9620 msgstr ""
9621
9622 # type: textblock
9623 #: ../src/guestfs-actions.pod:3292
9624 msgid ""
9625 "Not all of the filesystems returned will be mountable.  In particular, swap "
9626 "partitions are returned in the list.  Also this command does not check that "
9627 "each filesystem found is valid and mountable, and some filesystems might be "
9628 "mountable but require special options.  Filesystems may not all belong to a "
9629 "single logical operating system (use C<guestfs_inspect_os> to look for "
9630 "OSes)."
9631 msgstr ""
9632
9633 # type: textblock
9634 #: ../src/guestfs-actions.pod:3306 ../src/guestfs-actions.pod:4895
9635 msgid "(Added in 1.5.15)"
9636 msgstr ""
9637
9638 # type: =head2
9639 #: ../src/guestfs-actions.pod:3308
9640 msgid "guestfs_list_partitions"
9641 msgstr ""
9642
9643 # type: verbatim
9644 #: ../src/guestfs-actions.pod:3310
9645 #, no-wrap
9646 msgid ""
9647 " char **\n"
9648 " guestfs_list_partitions (guestfs_h *g);\n"
9649 "\n"
9650 msgstr ""
9651
9652 # type: textblock
9653 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:2290
9654 msgid "List all the partitions detected on all block devices."
9655 msgstr ""
9656
9657 # type: textblock
9658 #: ../src/guestfs-actions.pod:3315 ../fish/guestfish-actions.pod:2292
9659 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9660 msgstr ""
9661
9662 # type: textblock
9663 #: ../src/guestfs-actions.pod:3317
9664 msgid ""
9665 "This does not return logical volumes.  For that you will need to call "
9666 "C<guestfs_lvs>."
9667 msgstr ""
9668
9669 # type: =head2
9670 #: ../src/guestfs-actions.pod:3328
9671 msgid "guestfs_ll"
9672 msgstr ""
9673
9674 # type: verbatim
9675 #: ../src/guestfs-actions.pod:3330
9676 #, no-wrap
9677 msgid ""
9678 " char *\n"
9679 " guestfs_ll (guestfs_h *g,\n"
9680 "             const char *directory);\n"
9681 "\n"
9682 msgstr ""
9683
9684 # type: textblock
9685 #: ../src/guestfs-actions.pod:3334 ../fish/guestfish-actions.pod:2303
9686 msgid ""
9687 "List the files in C<directory> (relative to the root directory, there is no "
9688 "cwd) in the format of 'ls -la'."
9689 msgstr ""
9690
9691 # type: textblock
9692 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2306
9693 msgid ""
9694 "This command is mostly useful for interactive sessions.  It is I<not> "
9695 "intended that you try to parse the output string."
9696 msgstr ""
9697
9698 # type: =head2
9699 #: ../src/guestfs-actions.pod:3345
9700 msgid "guestfs_ln"
9701 msgstr ""
9702
9703 # type: verbatim
9704 #: ../src/guestfs-actions.pod:3347
9705 #, no-wrap
9706 msgid ""
9707 " int\n"
9708 " guestfs_ln (guestfs_h *g,\n"
9709 "             const char *target,\n"
9710 "             const char *linkname);\n"
9711 "\n"
9712 msgstr ""
9713
9714 # type: textblock
9715 #: ../src/guestfs-actions.pod:3352 ../fish/guestfish-actions.pod:2313
9716 msgid "This command creates a hard link using the C<ln> command."
9717 msgstr ""
9718
9719 # type: =head2
9720 #: ../src/guestfs-actions.pod:3358
9721 msgid "guestfs_ln_f"
9722 msgstr ""
9723
9724 # type: verbatim
9725 #: ../src/guestfs-actions.pod:3360
9726 #, no-wrap
9727 msgid ""
9728 " int\n"
9729 " guestfs_ln_f (guestfs_h *g,\n"
9730 "               const char *target,\n"
9731 "               const char *linkname);\n"
9732 "\n"
9733 msgstr ""
9734
9735 # type: textblock
9736 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2319
9737 msgid ""
9738 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
9739 "option removes the link (C<linkname>) if it exists already."
9740 msgstr ""
9741
9742 # type: =head2
9743 #: ../src/guestfs-actions.pod:3372
9744 msgid "guestfs_ln_s"
9745 msgstr ""
9746
9747 # type: verbatim
9748 #: ../src/guestfs-actions.pod:3374
9749 #, no-wrap
9750 msgid ""
9751 " int\n"
9752 " guestfs_ln_s (guestfs_h *g,\n"
9753 "               const char *target,\n"
9754 "               const char *linkname);\n"
9755 "\n"
9756 msgstr ""
9757
9758 # type: textblock
9759 #: ../src/guestfs-actions.pod:3379 ../fish/guestfish-actions.pod:2326
9760 msgid "This command creates a symbolic link using the C<ln -s> command."
9761 msgstr ""
9762
9763 # type: =head2
9764 #: ../src/guestfs-actions.pod:3385
9765 msgid "guestfs_ln_sf"
9766 msgstr ""
9767
9768 # type: verbatim
9769 #: ../src/guestfs-actions.pod:3387
9770 #, no-wrap
9771 msgid ""
9772 " int\n"
9773 " guestfs_ln_sf (guestfs_h *g,\n"
9774 "                const char *target,\n"
9775 "                const char *linkname);\n"
9776 "\n"
9777 msgstr ""
9778
9779 # type: textblock
9780 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2332
9781 msgid ""
9782 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
9783 "option removes the link (C<linkname>) if it exists already."
9784 msgstr ""
9785
9786 # type: =head2
9787 #: ../src/guestfs-actions.pod:3399
9788 msgid "guestfs_lremovexattr"
9789 msgstr ""
9790
9791 # type: verbatim
9792 #: ../src/guestfs-actions.pod:3401
9793 #, no-wrap
9794 msgid ""
9795 " int\n"
9796 " guestfs_lremovexattr (guestfs_h *g,\n"
9797 "                       const char *xattr,\n"
9798 "                       const char *path);\n"
9799 "\n"
9800 msgstr ""
9801
9802 # type: textblock
9803 #: ../src/guestfs-actions.pod:3406
9804 msgid ""
9805 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
9806 "link, then it removes an extended attribute of the link itself."
9807 msgstr ""
9808
9809 # type: =head2
9810 #: ../src/guestfs-actions.pod:3414
9811 msgid "guestfs_ls"
9812 msgstr ""
9813
9814 # type: verbatim
9815 #: ../src/guestfs-actions.pod:3416
9816 #, no-wrap
9817 msgid ""
9818 " char **\n"
9819 " guestfs_ls (guestfs_h *g,\n"
9820 "             const char *directory);\n"
9821 "\n"
9822 msgstr ""
9823
9824 # type: textblock
9825 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2347
9826 msgid ""
9827 "List the files in C<directory> (relative to the root directory, there is no "
9828 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9829 "shown."
9830 msgstr ""
9831
9832 # type: textblock
9833 #: ../src/guestfs-actions.pod:3424
9834 msgid ""
9835 "This command is mostly useful for interactive sessions.  Programs should "
9836 "probably use C<guestfs_readdir> instead."
9837 msgstr ""
9838
9839 # type: =head2
9840 #: ../src/guestfs-actions.pod:3433
9841 msgid "guestfs_lsetxattr"
9842 msgstr ""
9843
9844 # type: verbatim
9845 #: ../src/guestfs-actions.pod:3435
9846 #, no-wrap
9847 msgid ""
9848 " int\n"
9849 " guestfs_lsetxattr (guestfs_h *g,\n"
9850 "                    const char *xattr,\n"
9851 "                    const char *val,\n"
9852 "                    int vallen,\n"
9853 "                    const char *path);\n"
9854 "\n"
9855 msgstr ""
9856
9857 # type: textblock
9858 #: ../src/guestfs-actions.pod:3442
9859 msgid ""
9860 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
9861 "then it sets an extended attribute of the link itself."
9862 msgstr ""
9863
9864 # type: =head2
9865 #: ../src/guestfs-actions.pod:3450
9866 msgid "guestfs_lstat"
9867 msgstr ""
9868
9869 # type: verbatim
9870 #: ../src/guestfs-actions.pod:3452
9871 #, no-wrap
9872 msgid ""
9873 " struct guestfs_stat *\n"
9874 " guestfs_lstat (guestfs_h *g,\n"
9875 "                const char *path);\n"
9876 "\n"
9877 msgstr ""
9878
9879 # type: textblock
9880 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:5949 ../fish/guestfish-actions.pod:2366 ../fish/guestfish-actions.pod:3979
9881 msgid "Returns file information for the given C<path>."
9882 msgstr ""
9883
9884 # type: textblock
9885 #: ../src/guestfs-actions.pod:3458
9886 msgid ""
9887 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
9888 "link, then the link is stat-ed, not the file it refers to."
9889 msgstr ""
9890
9891 # type: textblock
9892 #: ../src/guestfs-actions.pod:3462 ../fish/guestfish-actions.pod:2372
9893 msgid "This is the same as the C<lstat(2)> system call."
9894 msgstr ""
9895
9896 # type: textblock
9897 #: ../src/guestfs-actions.pod:3464 ../src/guestfs-actions.pod:5953
9898 msgid ""
9899 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
9900 "error.  I<The caller must call C<guestfs_free_stat> after use>."
9901 msgstr ""
9902
9903 # type: textblock
9904 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5975 ../src/guestfs-actions.pod:6356
9905 msgid "(Added in 0.9.2)"
9906 msgstr ""
9907
9908 # type: =head2
9909 #: ../src/guestfs-actions.pod:3470
9910 msgid "guestfs_lstatlist"
9911 msgstr ""
9912
9913 # type: verbatim
9914 #: ../src/guestfs-actions.pod:3472
9915 #, no-wrap
9916 msgid ""
9917 " struct guestfs_stat_list *\n"
9918 " guestfs_lstatlist (guestfs_h *g,\n"
9919 "                    const char *path,\n"
9920 "                    char *const *names);\n"
9921 "\n"
9922 msgstr ""
9923
9924 # type: textblock
9925 #: ../src/guestfs-actions.pod:3477
9926 msgid ""
9927 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
9928 "files, where all files are in the directory C<path>.  C<names> is the list "
9929 "of files from this directory."
9930 msgstr ""
9931
9932 # type: textblock
9933 #: ../src/guestfs-actions.pod:3481 ../fish/guestfish-actions.pod:2382
9934 msgid ""
9935 "On return you get a list of stat structs, with a one-to-one correspondence "
9936 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9937 "then the C<ino> field of that structure is set to C<-1>."
9938 msgstr ""
9939
9940 # type: textblock
9941 #: ../src/guestfs-actions.pod:3486
9942 msgid ""
9943 "This call is intended for programs that want to efficiently list a directory "
9944 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
9945 "for a similarly efficient call for getting extended attributes.  Very long "
9946 "directory listings might cause the protocol message size to be exceeded, "
9947 "causing this call to fail.  The caller must split up such requests into "
9948 "smaller groups of names."
9949 msgstr ""
9950
9951 # type: textblock
9952 #: ../src/guestfs-actions.pod:3494
9953 msgid ""
9954 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
9955 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
9956 msgstr ""
9957
9958 # type: =head2
9959 #: ../src/guestfs-actions.pod:3500
9960 msgid "guestfs_luks_add_key"
9961 msgstr ""
9962
9963 # type: verbatim
9964 #: ../src/guestfs-actions.pod:3502
9965 #, no-wrap
9966 msgid ""
9967 " int\n"
9968 " guestfs_luks_add_key (guestfs_h *g,\n"
9969 "                       const char *device,\n"
9970 "                       const char *key,\n"
9971 "                       const char *newkey,\n"
9972 "                       int keyslot);\n"
9973 "\n"
9974 msgstr ""
9975
9976 # type: textblock
9977 #: ../src/guestfs-actions.pod:3509 ../fish/guestfish-actions.pod:2399
9978 msgid ""
9979 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9980 "existing key, and is used to access the device.  C<newkey> is the new key to "
9981 "add.  C<keyslot> is the key slot that will be replaced."
9982 msgstr ""
9983
9984 # type: textblock
9985 #: ../src/guestfs-actions.pod:3514
9986 msgid ""
9987 "Note that if C<keyslot> already contains a key, then this command will "
9988 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
9989 msgstr ""
9990
9991 # type: textblock
9992 #: ../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
9993 msgid ""
9994 "This function takes a key or passphrase parameter which could contain "
9995 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
9996 "information."
9997 msgstr ""
9998
9999 # type: textblock
10000 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3564 ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3607
10001 msgid "(Added in 1.5.2)"
10002 msgstr ""
10003
10004 # type: =head2
10005 #: ../src/guestfs-actions.pod:3526
10006 msgid "guestfs_luks_close"
10007 msgstr ""
10008
10009 # type: verbatim
10010 #: ../src/guestfs-actions.pod:3528
10011 #, no-wrap
10012 msgid ""
10013 " int\n"
10014 " guestfs_luks_close (guestfs_h *g,\n"
10015 "                     const char *device);\n"
10016 "\n"
10017 msgstr ""
10018
10019 # type: textblock
10020 #: ../src/guestfs-actions.pod:3532
10021 msgid ""
10022 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10023 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10024 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10025 "underlying block device."
10026 msgstr ""
10027
10028 # type: textblock
10029 #: ../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
10030 msgid "(Added in 1.5.1)"
10031 msgstr ""
10032
10033 # type: =head2
10034 #: ../src/guestfs-actions.pod:3542
10035 msgid "guestfs_luks_format"
10036 msgstr ""
10037
10038 # type: verbatim
10039 #: ../src/guestfs-actions.pod:3544
10040 #, no-wrap
10041 msgid ""
10042 " int\n"
10043 " guestfs_luks_format (guestfs_h *g,\n"
10044 "                      const char *device,\n"
10045 "                      const char *key,\n"
10046 "                      int keyslot);\n"
10047 "\n"
10048 msgstr ""
10049
10050 # type: textblock
10051 #: ../src/guestfs-actions.pod:3550 ../fish/guestfish-actions.pod:2425
10052 msgid ""
10053 "This command erases existing data on C<device> and formats the device as a "
10054 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10055 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10056 msgstr ""
10057
10058 # type: textblock
10059 #: ../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
10060 msgid ""
10061 "B<This command is dangerous.  Without careful use you can easily destroy all "
10062 "your data>."
10063 msgstr ""
10064
10065 # type: =head2
10066 #: ../src/guestfs-actions.pod:3566
10067 msgid "guestfs_luks_format_cipher"
10068 msgstr ""
10069
10070 # type: verbatim
10071 #: ../src/guestfs-actions.pod:3568
10072 #, no-wrap
10073 msgid ""
10074 " int\n"
10075 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10076 "                             const char *device,\n"
10077 "                             const char *key,\n"
10078 "                             int keyslot,\n"
10079 "                             const char *cipher);\n"
10080 "\n"
10081 msgstr ""
10082
10083 # type: textblock
10084 #: ../src/guestfs-actions.pod:3575
10085 msgid ""
10086 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10087 "set the C<cipher> used."
10088 msgstr ""
10089
10090 # type: =head2
10091 #: ../src/guestfs-actions.pod:3589
10092 msgid "guestfs_luks_kill_slot"
10093 msgstr ""
10094
10095 # type: verbatim
10096 #: ../src/guestfs-actions.pod:3591
10097 #, no-wrap
10098 msgid ""
10099 " int\n"
10100 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10101 "                         const char *device,\n"
10102 "                         const char *key,\n"
10103 "                         int keyslot);\n"
10104 "\n"
10105 msgstr ""
10106
10107 # type: textblock
10108 #: ../src/guestfs-actions.pod:3597 ../fish/guestfish-actions.pod:2453
10109 msgid ""
10110 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10111 "device C<device>.  C<key> must be one of the I<other> keys."
10112 msgstr ""
10113
10114 # type: =head2
10115 #: ../src/guestfs-actions.pod:3609
10116 msgid "guestfs_luks_open"
10117 msgstr ""
10118
10119 # type: verbatim
10120 #: ../src/guestfs-actions.pod:3611
10121 #, no-wrap
10122 msgid ""
10123 " int\n"
10124 " guestfs_luks_open (guestfs_h *g,\n"
10125 "                    const char *device,\n"
10126 "                    const char *key,\n"
10127 "                    const char *mapname);\n"
10128 "\n"
10129 msgstr ""
10130
10131 # type: textblock
10132 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2464
10133 msgid ""
10134 "This command opens a block device which has been encrypted according to the "
10135 "Linux Unified Key Setup (LUKS) standard."
10136 msgstr ""
10137
10138 # type: textblock
10139 #: ../src/guestfs-actions.pod:3620 ../fish/guestfish-actions.pod:2467
10140 msgid "C<device> is the encrypted block device or partition."
10141 msgstr ""
10142
10143 # type: textblock
10144 #: ../src/guestfs-actions.pod:3622 ../fish/guestfish-actions.pod:2469
10145 msgid ""
10146 "The caller must supply one of the keys associated with the LUKS block "
10147 "device, in the C<key> parameter."
10148 msgstr ""
10149
10150 # type: textblock
10151 #: ../src/guestfs-actions.pod:3625 ../fish/guestfish-actions.pod:2472
10152 msgid ""
10153 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10154 "writes to this block device are decrypted from and encrypted to the "
10155 "underlying C<device> respectively."
10156 msgstr ""
10157
10158 # type: textblock
10159 #: ../src/guestfs-actions.pod:3629
10160 msgid ""
10161 "If this block device contains LVM volume groups, then calling "
10162 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10163 "visible."
10164 msgstr ""
10165
10166 # type: =head2
10167 #: ../src/guestfs-actions.pod:3641
10168 msgid "guestfs_luks_open_ro"
10169 msgstr ""
10170
10171 # type: verbatim
10172 #: ../src/guestfs-actions.pod:3643
10173 #, no-wrap
10174 msgid ""
10175 " int\n"
10176 " guestfs_luks_open_ro (guestfs_h *g,\n"
10177 "                       const char *device,\n"
10178 "                       const char *key,\n"
10179 "                       const char *mapname);\n"
10180 "\n"
10181 msgstr ""
10182
10183 # type: textblock
10184 #: ../src/guestfs-actions.pod:3649
10185 msgid ""
10186 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10187 "created."
10188 msgstr ""
10189
10190 # type: =head2
10191 #: ../src/guestfs-actions.pod:3660
10192 msgid "guestfs_lvcreate"
10193 msgstr ""
10194
10195 # type: verbatim
10196 #: ../src/guestfs-actions.pod:3662
10197 #, no-wrap
10198 msgid ""
10199 " int\n"
10200 " guestfs_lvcreate (guestfs_h *g,\n"
10201 "                   const char *logvol,\n"
10202 "                   const char *volgroup,\n"
10203 "                   int mbytes);\n"
10204 "\n"
10205 msgstr ""
10206
10207 # type: textblock
10208 #: ../src/guestfs-actions.pod:3668 ../fish/guestfish-actions.pod:2497
10209 msgid ""
10210 "This creates an LVM logical volume called C<logvol> on the volume group "
10211 "C<volgroup>, with C<size> megabytes."
10212 msgstr ""
10213
10214 # type: =head2
10215 #: ../src/guestfs-actions.pod:3675
10216 msgid "guestfs_lvm_canonical_lv_name"
10217 msgstr ""
10218
10219 # type: verbatim
10220 #: ../src/guestfs-actions.pod:3677
10221 #, no-wrap
10222 msgid ""
10223 " char *\n"
10224 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10225 "                                const char *lvname);\n"
10226 "\n"
10227 msgstr ""
10228
10229 # type: textblock
10230 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2504
10231 msgid ""
10232 "This converts alternative naming schemes for LVs that you might find to the "
10233 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
10234 "C</dev/VG/LV>."
10235 msgstr ""
10236
10237 # type: textblock
10238 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2508
10239 msgid ""
10240 "This command returns an error if the C<lvname> parameter does not refer to a "
10241 "logical volume."
10242 msgstr ""
10243
10244 # type: textblock
10245 #: ../src/guestfs-actions.pod:3688
10246 msgid "See also C<guestfs_is_lv>."
10247 msgstr ""
10248
10249 # type: textblock
10250 #: ../src/guestfs-actions.pod:3693
10251 msgid "(Added in 1.5.24)"
10252 msgstr ""
10253
10254 # type: =head2
10255 #: ../src/guestfs-actions.pod:3695
10256 msgid "guestfs_lvm_clear_filter"
10257 msgstr ""
10258
10259 # type: verbatim
10260 #: ../src/guestfs-actions.pod:3697
10261 #, no-wrap
10262 msgid ""
10263 " int\n"
10264 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10265 "\n"
10266 msgstr ""
10267
10268 # type: textblock
10269 #: ../src/guestfs-actions.pod:3700
10270 msgid ""
10271 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10272 "see every block device."
10273 msgstr ""
10274
10275 # type: textblock
10276 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3745 ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2551
10277 msgid "This command also clears the LVM cache and performs a volume group scan."
10278 msgstr ""
10279
10280 # type: =head2
10281 #: ../src/guestfs-actions.pod:3710
10282 msgid "guestfs_lvm_remove_all"
10283 msgstr ""
10284
10285 # type: verbatim
10286 #: ../src/guestfs-actions.pod:3712
10287 #, no-wrap
10288 msgid ""
10289 " int\n"
10290 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10291 "\n"
10292 msgstr ""
10293
10294 # type: textblock
10295 #: ../src/guestfs-actions.pod:3715 ../fish/guestfish-actions.pod:2527
10296 msgid ""
10297 "This command removes all LVM logical volumes, volume groups and physical "
10298 "volumes."
10299 msgstr ""
10300
10301 # type: =head2
10302 #: ../src/guestfs-actions.pod:3725
10303 msgid "guestfs_lvm_set_filter"
10304 msgstr ""
10305
10306 # type: verbatim
10307 #: ../src/guestfs-actions.pod:3727
10308 #, no-wrap
10309 msgid ""
10310 " int\n"
10311 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10312 "                         char *const *devices);\n"
10313 "\n"
10314 msgstr ""
10315
10316 # type: textblock
10317 #: ../src/guestfs-actions.pod:3731 ../fish/guestfish-actions.pod:2537
10318 msgid ""
10319 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10320 "block devices in the list C<devices>, and will ignore all other attached "
10321 "block devices."
10322 msgstr ""
10323
10324 # type: textblock
10325 #: ../src/guestfs-actions.pod:3735 ../fish/guestfish-actions.pod:2541
10326 msgid ""
10327 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10328 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10329 "there are two types of duplication possible: either cloned PVs/VGs which "
10330 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10331 "same name.  In normal operation you cannot create this situation, but you "
10332 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10333 "inside the LVM metadata."
10334 msgstr ""
10335
10336 # type: textblock
10337 #: ../src/guestfs-actions.pod:3748 ../fish/guestfish-actions.pod:2554
10338 msgid "You can filter whole block devices or individual partitions."
10339 msgstr ""
10340
10341 # type: textblock
10342 #: ../src/guestfs-actions.pod:3750 ../fish/guestfish-actions.pod:2556
10343 msgid ""
10344 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10345 "filesystem), even if you are not filtering out that VG."
10346 msgstr ""
10347
10348 # type: =head2
10349 #: ../src/guestfs-actions.pod:3758
10350 msgid "guestfs_lvremove"
10351 msgstr ""
10352
10353 # type: verbatim
10354 #: ../src/guestfs-actions.pod:3760
10355 #, no-wrap
10356 msgid ""
10357 " int\n"
10358 " guestfs_lvremove (guestfs_h *g,\n"
10359 "                   const char *device);\n"
10360 "\n"
10361 msgstr ""
10362
10363 # type: textblock
10364 #: ../src/guestfs-actions.pod:3764 ../fish/guestfish-actions.pod:2564
10365 msgid ""
10366 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10367 "LV, such as C</dev/VG/LV>."
10368 msgstr ""
10369
10370 # type: textblock
10371 #: ../src/guestfs-actions.pod:3767 ../fish/guestfish-actions.pod:2567
10372 msgid ""
10373 "You can also remove all LVs in a volume group by specifying the VG name, "
10374 "C</dev/VG>."
10375 msgstr ""
10376
10377 # type: textblock
10378 #: ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:4992 ../src/guestfs-actions.pod:6732
10379 msgid "(Added in 1.0.13)"
10380 msgstr ""
10381
10382 # type: =head2
10383 #: ../src/guestfs-actions.pod:3774
10384 msgid "guestfs_lvrename"
10385 msgstr ""
10386
10387 # type: verbatim
10388 #: ../src/guestfs-actions.pod:3776
10389 #, no-wrap
10390 msgid ""
10391 " int\n"
10392 " guestfs_lvrename (guestfs_h *g,\n"
10393 "                   const char *logvol,\n"
10394 "                   const char *newlogvol);\n"
10395 "\n"
10396 msgstr ""
10397
10398 # type: textblock
10399 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2574
10400 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10401 msgstr ""
10402
10403 # type: textblock
10404 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:6745
10405 msgid "(Added in 1.0.83)"
10406 msgstr ""
10407
10408 # type: =head2
10409 #: ../src/guestfs-actions.pod:3787
10410 msgid "guestfs_lvresize"
10411 msgstr ""
10412
10413 # type: verbatim
10414 #: ../src/guestfs-actions.pod:3789
10415 #, no-wrap
10416 msgid ""
10417 " int\n"
10418 " guestfs_lvresize (guestfs_h *g,\n"
10419 "                   const char *device,\n"
10420 "                   int mbytes);\n"
10421 "\n"
10422 msgstr ""
10423
10424 # type: textblock
10425 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2580
10426 msgid ""
10427 "This resizes (expands or shrinks) an existing LVM logical volume to "
10428 "C<mbytes>.  When reducing, data in the reduced part is lost."
10429 msgstr ""
10430
10431 # type: =head2
10432 #: ../src/guestfs-actions.pod:3802
10433 msgid "guestfs_lvresize_free"
10434 msgstr ""
10435
10436 # type: verbatim
10437 #: ../src/guestfs-actions.pod:3804
10438 #, no-wrap
10439 msgid ""
10440 " int\n"
10441 " guestfs_lvresize_free (guestfs_h *g,\n"
10442 "                        const char *lv,\n"
10443 "                        int percent);\n"
10444 "\n"
10445 msgstr ""
10446
10447 # type: textblock
10448 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2588
10449 msgid ""
10450 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10451 "remaining free space in the volume group.  Commonly you would call this with "
10452 "pc = 100 which expands the logical volume as much as possible, using all "
10453 "remaining free space in the volume group."
10454 msgstr ""
10455
10456 # type: textblock
10457 #: ../src/guestfs-actions.pod:3817
10458 msgid "(Added in 1.3.3)"
10459 msgstr ""
10460
10461 # type: =head2
10462 #: ../src/guestfs-actions.pod:3819
10463 msgid "guestfs_lvs"
10464 msgstr ""
10465
10466 # type: verbatim
10467 #: ../src/guestfs-actions.pod:3821
10468 #, no-wrap
10469 msgid ""
10470 " char **\n"
10471 " guestfs_lvs (guestfs_h *g);\n"
10472 "\n"
10473 msgstr ""
10474
10475 # type: textblock
10476 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2598
10477 msgid ""
10478 "List all the logical volumes detected.  This is the equivalent of the "
10479 "L<lvs(8)> command."
10480 msgstr ""
10481
10482 # type: textblock
10483 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2601
10484 msgid ""
10485 "This returns a list of the logical volume device names "
10486 "(eg. C</dev/VolGroup00/LogVol00>)."
10487 msgstr ""
10488
10489 # type: textblock
10490 #: ../src/guestfs-actions.pod:3830
10491 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
10492 msgstr ""
10493
10494 # type: =head2
10495 #: ../src/guestfs-actions.pod:3838
10496 msgid "guestfs_lvs_full"
10497 msgstr ""
10498
10499 # type: verbatim
10500 #: ../src/guestfs-actions.pod:3840
10501 #, no-wrap
10502 msgid ""
10503 " struct guestfs_lvm_lv_list *\n"
10504 " guestfs_lvs_full (guestfs_h *g);\n"
10505 "\n"
10506 msgstr ""
10507
10508 # type: textblock
10509 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2610
10510 msgid ""
10511 "List all the logical volumes detected.  This is the equivalent of the "
10512 "L<lvs(8)> command.  The \"full\" version includes all fields."
10513 msgstr ""
10514
10515 # type: textblock
10516 #: ../src/guestfs-actions.pod:3846
10517 msgid ""
10518 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
10519 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
10520 "use>."
10521 msgstr ""
10522
10523 # type: =head2
10524 #: ../src/guestfs-actions.pod:3852
10525 msgid "guestfs_lvuuid"
10526 msgstr ""
10527
10528 # type: verbatim
10529 #: ../src/guestfs-actions.pod:3854
10530 #, no-wrap
10531 msgid ""
10532 " char *\n"
10533 " guestfs_lvuuid (guestfs_h *g,\n"
10534 "                 const char *device);\n"
10535 "\n"
10536 msgstr ""
10537
10538 # type: textblock
10539 #: ../src/guestfs-actions.pod:3858 ../fish/guestfish-actions.pod:2617
10540 msgid "This command returns the UUID of the LVM LV C<device>."
10541 msgstr ""
10542
10543 # type: =head2
10544 #: ../src/guestfs-actions.pod:3865
10545 msgid "guestfs_lxattrlist"
10546 msgstr ""
10547
10548 # type: verbatim
10549 #: ../src/guestfs-actions.pod:3867
10550 #, no-wrap
10551 msgid ""
10552 " struct guestfs_xattr_list *\n"
10553 " guestfs_lxattrlist (guestfs_h *g,\n"
10554 "                     const char *path,\n"
10555 "                     char *const *names);\n"
10556 "\n"
10557 msgstr ""
10558
10559 # type: textblock
10560 #: ../src/guestfs-actions.pod:3872 ../fish/guestfish-actions.pod:2623
10561 msgid ""
10562 "This call allows you to get the extended attributes of multiple files, where "
10563 "all files are in the directory C<path>.  C<names> is the list of files from "
10564 "this directory."
10565 msgstr ""
10566
10567 # type: textblock
10568 #: ../src/guestfs-actions.pod:3876 ../fish/guestfish-actions.pod:2627
10569 msgid ""
10570 "On return you get a flat list of xattr structs which must be interpreted "
10571 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10572 "C<attrval> in this struct is zero-length to indicate there was an error "
10573 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10574 "number (the number of following attributes for this file, which could be "
10575 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10576 "attributes for the first named file.  This repeats for the second and "
10577 "subsequent files."
10578 msgstr ""
10579
10580 # type: textblock
10581 #: ../src/guestfs-actions.pod:3886
10582 msgid ""
10583 "This call is intended for programs that want to efficiently list a directory "
10584 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
10585 "a similarly efficient call for getting standard stats.  Very long directory "
10586 "listings might cause the protocol message size to be exceeded, causing this "
10587 "call to fail.  The caller must split up such requests into smaller groups of "
10588 "names."
10589 msgstr ""
10590
10591 # type: =head2
10592 #: ../src/guestfs-actions.pod:3900
10593 msgid "guestfs_mkdir"
10594 msgstr ""
10595
10596 # type: verbatim
10597 #: ../src/guestfs-actions.pod:3902
10598 #, no-wrap
10599 msgid ""
10600 " int\n"
10601 " guestfs_mkdir (guestfs_h *g,\n"
10602 "                const char *path);\n"
10603 "\n"
10604 msgstr ""
10605
10606 # type: textblock
10607 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:2649
10608 msgid "Create a directory named C<path>."
10609 msgstr ""
10610
10611 # type: =head2
10612 #: ../src/guestfs-actions.pod:3912
10613 msgid "guestfs_mkdir_mode"
10614 msgstr ""
10615
10616 # type: verbatim
10617 #: ../src/guestfs-actions.pod:3914
10618 #, no-wrap
10619 msgid ""
10620 " int\n"
10621 " guestfs_mkdir_mode (guestfs_h *g,\n"
10622 "                     const char *path,\n"
10623 "                     int mode);\n"
10624 "\n"
10625 msgstr ""
10626
10627 # type: textblock
10628 #: ../src/guestfs-actions.pod:3919 ../fish/guestfish-actions.pod:2655
10629 msgid ""
10630 "This command creates a directory, setting the initial permissions of the "
10631 "directory to C<mode>."
10632 msgstr ""
10633
10634 # type: textblock
10635 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2658
10636 msgid ""
10637 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10638 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10639 "other ways."
10640 msgstr ""
10641
10642 # type: textblock
10643 #: ../src/guestfs-actions.pod:3926
10644 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
10645 msgstr ""
10646
10647 # type: =head2
10648 #: ../src/guestfs-actions.pod:3932
10649 msgid "guestfs_mkdir_p"
10650 msgstr ""
10651
10652 # type: verbatim
10653 #: ../src/guestfs-actions.pod:3934
10654 #, no-wrap
10655 msgid ""
10656 " int\n"
10657 " guestfs_mkdir_p (guestfs_h *g,\n"
10658 "                  const char *path);\n"
10659 "\n"
10660 msgstr ""
10661
10662 # type: textblock
10663 #: ../src/guestfs-actions.pod:3938 ../fish/guestfish-actions.pod:2668
10664 msgid ""
10665 "Create a directory named C<path>, creating any parent directories as "
10666 "necessary.  This is like the C<mkdir -p> shell command."
10667 msgstr ""
10668
10669 # type: =head2
10670 #: ../src/guestfs-actions.pod:3945
10671 msgid "guestfs_mkdtemp"
10672 msgstr ""
10673
10674 # type: verbatim
10675 #: ../src/guestfs-actions.pod:3947
10676 #, no-wrap
10677 msgid ""
10678 " char *\n"
10679 " guestfs_mkdtemp (guestfs_h *g,\n"
10680 "                  const char *template);\n"
10681 "\n"
10682 msgstr ""
10683
10684 # type: textblock
10685 #: ../src/guestfs-actions.pod:3951 ../fish/guestfish-actions.pod:2675
10686 msgid ""
10687 "This command creates a temporary directory.  The C<template> parameter "
10688 "should be a full pathname for the temporary directory name with the final "
10689 "six characters being \"XXXXXX\"."
10690 msgstr ""
10691
10692 # type: textblock
10693 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2680
10694 msgid ""
10695 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10696 "being suitable for Windows filesystems."
10697 msgstr ""
10698
10699 # type: textblock
10700 #: ../src/guestfs-actions.pod:3959 ../fish/guestfish-actions.pod:2683
10701 msgid "The name of the temporary directory that was created is returned."
10702 msgstr ""
10703
10704 # type: textblock
10705 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2686
10706 msgid "The temporary directory is created with mode 0700 and is owned by root."
10707 msgstr ""
10708
10709 # type: textblock
10710 #: ../src/guestfs-actions.pod:3965 ../fish/guestfish-actions.pod:2689
10711 msgid ""
10712 "The caller is responsible for deleting the temporary directory and its "
10713 "contents after use."
10714 msgstr ""
10715
10716 # type: textblock
10717 #: ../src/guestfs-actions.pod:3968 ../fish/guestfish-actions.pod:2692
10718 msgid "See also: L<mkdtemp(3)>"
10719 msgstr ""
10720
10721 # type: =head2
10722 #: ../src/guestfs-actions.pod:3975
10723 msgid "guestfs_mke2fs_J"
10724 msgstr ""
10725
10726 # type: verbatim
10727 #: ../src/guestfs-actions.pod:3977
10728 #, no-wrap
10729 msgid ""
10730 " int\n"
10731 " guestfs_mke2fs_J (guestfs_h *g,\n"
10732 "                   const char *fstype,\n"
10733 "                   int blocksize,\n"
10734 "                   const char *device,\n"
10735 "                   const char *journal);\n"
10736 "\n"
10737 msgstr ""
10738
10739 # type: textblock
10740 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:2698
10741 msgid ""
10742 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10743 "C<journal>.  It is equivalent to the command:"
10744 msgstr ""
10745
10746 # type: verbatim
10747 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:2702
10748 #, no-wrap
10749 msgid ""
10750 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10751 "\n"
10752 msgstr ""
10753
10754 # type: textblock
10755 #: ../src/guestfs-actions.pod:3990
10756 msgid "See also C<guestfs_mke2journal>."
10757 msgstr ""
10758
10759 # type: textblock
10760 #: ../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
10761 msgid "(Added in 1.0.68)"
10762 msgstr ""
10763
10764 # type: =head2
10765 #: ../src/guestfs-actions.pod:3996
10766 msgid "guestfs_mke2fs_JL"
10767 msgstr ""
10768
10769 # type: verbatim
10770 #: ../src/guestfs-actions.pod:3998
10771 #, no-wrap
10772 msgid ""
10773 " int\n"
10774 " guestfs_mke2fs_JL (guestfs_h *g,\n"
10775 "                    const char *fstype,\n"
10776 "                    int blocksize,\n"
10777 "                    const char *device,\n"
10778 "                    const char *label);\n"
10779 "\n"
10780 msgstr ""
10781
10782 # type: textblock
10783 #: ../src/guestfs-actions.pod:4005 ../fish/guestfish-actions.pod:2710
10784 msgid ""
10785 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10786 "the journal labeled C<label>."
10787 msgstr ""
10788
10789 # type: textblock
10790 #: ../src/guestfs-actions.pod:4008
10791 msgid "See also C<guestfs_mke2journal_L>."
10792 msgstr ""
10793
10794 # type: =head2
10795 #: ../src/guestfs-actions.pod:4014
10796 msgid "guestfs_mke2fs_JU"
10797 msgstr ""
10798
10799 # type: verbatim
10800 #: ../src/guestfs-actions.pod:4016
10801 #, no-wrap
10802 msgid ""
10803 " int\n"
10804 " guestfs_mke2fs_JU (guestfs_h *g,\n"
10805 "                    const char *fstype,\n"
10806 "                    int blocksize,\n"
10807 "                    const char *device,\n"
10808 "                    const char *uuid);\n"
10809 "\n"
10810 msgstr ""
10811
10812 # type: textblock
10813 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2719
10814 msgid ""
10815 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10816 "the journal with UUID C<uuid>."
10817 msgstr ""
10818
10819 # type: textblock
10820 #: ../src/guestfs-actions.pod:4026
10821 msgid "See also C<guestfs_mke2journal_U>."
10822 msgstr ""
10823
10824 # type: =head2
10825 #: ../src/guestfs-actions.pod:4032
10826 msgid "guestfs_mke2journal"
10827 msgstr ""
10828
10829 # type: verbatim
10830 #: ../src/guestfs-actions.pod:4034
10831 #, no-wrap
10832 msgid ""
10833 " int\n"
10834 " guestfs_mke2journal (guestfs_h *g,\n"
10835 "                      int blocksize,\n"
10836 "                      const char *device);\n"
10837 "\n"
10838 msgstr ""
10839
10840 # type: textblock
10841 #: ../src/guestfs-actions.pod:4039 ../fish/guestfish-actions.pod:2728
10842 msgid ""
10843 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10844 "command:"
10845 msgstr ""
10846
10847 # type: verbatim
10848 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2731
10849 #, no-wrap
10850 msgid ""
10851 " mke2fs -O journal_dev -b blocksize device\n"
10852 "\n"
10853 msgstr ""
10854
10855 # type: =head2
10856 #: ../src/guestfs-actions.pod:4048
10857 msgid "guestfs_mke2journal_L"
10858 msgstr ""
10859
10860 # type: verbatim
10861 #: ../src/guestfs-actions.pod:4050
10862 #, no-wrap
10863 msgid ""
10864 " int\n"
10865 " guestfs_mke2journal_L (guestfs_h *g,\n"
10866 "                        int blocksize,\n"
10867 "                        const char *label,\n"
10868 "                        const char *device);\n"
10869 "\n"
10870 msgstr ""
10871
10872 # type: textblock
10873 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2737
10874 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10875 msgstr ""
10876
10877 # type: =head2
10878 #: ../src/guestfs-actions.pod:4062
10879 msgid "guestfs_mke2journal_U"
10880 msgstr ""
10881
10882 # type: verbatim
10883 #: ../src/guestfs-actions.pod:4064
10884 #, no-wrap
10885 msgid ""
10886 " int\n"
10887 " guestfs_mke2journal_U (guestfs_h *g,\n"
10888 "                        int blocksize,\n"
10889 "                        const char *uuid,\n"
10890 "                        const char *device);\n"
10891 "\n"
10892 msgstr ""
10893
10894 # type: textblock
10895 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:2743
10896 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10897 msgstr ""
10898
10899 # type: =head2
10900 #: ../src/guestfs-actions.pod:4076
10901 msgid "guestfs_mkfifo"
10902 msgstr ""
10903
10904 # type: verbatim
10905 #: ../src/guestfs-actions.pod:4078
10906 #, no-wrap
10907 msgid ""
10908 " int\n"
10909 " guestfs_mkfifo (guestfs_h *g,\n"
10910 "                 int mode,\n"
10911 "                 const char *path);\n"
10912 "\n"
10913 msgstr ""
10914
10915 # type: textblock
10916 #: ../src/guestfs-actions.pod:4083
10917 msgid ""
10918 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10919 "is just a convenient wrapper around C<guestfs_mknod>."
10920 msgstr ""
10921
10922 # type: =head2
10923 #: ../src/guestfs-actions.pod:4093
10924 msgid "guestfs_mkfs"
10925 msgstr ""
10926
10927 # type: verbatim
10928 #: ../src/guestfs-actions.pod:4095
10929 #, no-wrap
10930 msgid ""
10931 " int\n"
10932 " guestfs_mkfs (guestfs_h *g,\n"
10933 "               const char *fstype,\n"
10934 "               const char *device);\n"
10935 "\n"
10936 msgstr ""
10937
10938 # type: textblock
10939 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2759
10940 msgid ""
10941 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10942 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10943 msgstr ""
10944
10945 # type: =head2
10946 #: ../src/guestfs-actions.pod:4108
10947 msgid "guestfs_mkfs_b"
10948 msgstr ""
10949
10950 # type: verbatim
10951 #: ../src/guestfs-actions.pod:4110
10952 #, no-wrap
10953 msgid ""
10954 " int\n"
10955 " guestfs_mkfs_b (guestfs_h *g,\n"
10956 "                 const char *fstype,\n"
10957 "                 int blocksize,\n"
10958 "                 const char *device);\n"
10959 "\n"
10960 msgstr ""
10961
10962 # type: textblock
10963 #: ../src/guestfs-actions.pod:4116
10964 msgid ""
10965 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
10966 "block size of the resulting filesystem.  Supported block sizes depend on the "
10967 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10968 msgstr ""
10969
10970 # type: textblock
10971 #: ../src/guestfs-actions.pod:4121 ../src/guestfs-actions.pod:4163 ../fish/guestfish-actions.pod:2772 ../fish/guestfish-actions.pod:2799
10972 msgid ""
10973 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10974 "cluster size."
10975 msgstr ""
10976
10977 # type: textblock
10978 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2775
10979 msgid ""
10980 "This function is deprecated.  In new code, use the C<mkfs_opts> call "
10981 "instead."
10982 msgstr ""
10983
10984 # type: =head2
10985 #: ../src/guestfs-actions.pod:4135
10986 msgid "guestfs_mkfs_opts"
10987 msgstr ""
10988
10989 # type: verbatim
10990 #: ../src/guestfs-actions.pod:4137
10991 #, no-wrap
10992 msgid ""
10993 " int\n"
10994 " guestfs_mkfs_opts (guestfs_h *g,\n"
10995 "                    const char *fstype,\n"
10996 "                    const char *device,\n"
10997 "                    ...);\n"
10998 "\n"
10999 msgstr ""
11000
11001 # type: verbatim
11002 #: ../src/guestfs-actions.pod:4148
11003 #, no-wrap
11004 msgid ""
11005 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
11006 "\n"
11007 msgstr ""
11008
11009 # type: textblock
11010 #: ../src/guestfs-actions.pod:4150 ../fish/guestfish-actions.pod:2786
11011 msgid ""
11012 "This function creates a filesystem on C<device>.  The filesystem type is "
11013 "C<fstype>, for example C<ext3>."
11014 msgstr ""
11015
11016 # type: =item
11017 #: ../src/guestfs-actions.pod:4157 ../fish/guestfish-actions.pod:2793
11018 msgid "C<blocksize>"
11019 msgstr ""
11020
11021 # type: textblock
11022 #: ../src/guestfs-actions.pod:4159 ../fish/guestfish-actions.pod:2795
11023 msgid ""
11024 "The filesystem block size.  Supported block sizes depend on the filesystem "
11025 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11026 "filesystems."
11027 msgstr ""
11028
11029 # type: =head2
11030 #: ../src/guestfs-actions.pod:4170
11031 msgid "guestfs_mkfs_opts_va"
11032 msgstr ""
11033
11034 # type: verbatim
11035 #: ../src/guestfs-actions.pod:4172
11036 #, no-wrap
11037 msgid ""
11038 " int\n"
11039 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
11040 "                       const char *fstype,\n"
11041 "                       const char *device,\n"
11042 "                       va_list args);\n"
11043 "\n"
11044 msgstr ""
11045
11046 # type: textblock
11047 #: ../src/guestfs-actions.pod:4178
11048 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
11049 msgstr ""
11050
11051 # type: =head2
11052 #: ../src/guestfs-actions.pod:4182
11053 msgid "guestfs_mkfs_opts_argv"
11054 msgstr ""
11055
11056 # type: verbatim
11057 #: ../src/guestfs-actions.pod:4184
11058 #, no-wrap
11059 msgid ""
11060 " int\n"
11061 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
11062 "                         const char *fstype,\n"
11063 "                         const char *device,\n"
11064 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
11065 "\n"
11066 msgstr ""
11067
11068 # type: textblock
11069 #: ../src/guestfs-actions.pod:4190
11070 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
11071 msgstr ""
11072
11073 # type: =head2
11074 #: ../src/guestfs-actions.pod:4194
11075 msgid "guestfs_mkmountpoint"
11076 msgstr ""
11077
11078 # type: verbatim
11079 #: ../src/guestfs-actions.pod:4196
11080 #, no-wrap
11081 msgid ""
11082 " int\n"
11083 " guestfs_mkmountpoint (guestfs_h *g,\n"
11084 "                       const char *exemptpath);\n"
11085 "\n"
11086 msgstr ""
11087
11088 # type: textblock
11089 #: ../src/guestfs-actions.pod:4200
11090 msgid ""
11091 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11092 "that can be used to create extra mountpoints before mounting the first "
11093 "filesystem."
11094 msgstr ""
11095
11096 # type: textblock
11097 #: ../src/guestfs-actions.pod:4204 ../fish/guestfish-actions.pod:2814
11098 msgid ""
11099 "These calls are I<only> necessary in some very limited circumstances, mainly "
11100 "the case where you want to mount a mix of unrelated and/or read-only "
11101 "filesystems together."
11102 msgstr ""
11103
11104 # type: textblock
11105 #: ../src/guestfs-actions.pod:4208 ../fish/guestfish-actions.pod:2818
11106 msgid ""
11107 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11108 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11109 "inside that.  You can unpack this as follows in guestfish:"
11110 msgstr ""
11111
11112 # type: verbatim
11113 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2823
11114 #, no-wrap
11115 msgid ""
11116 " add-ro Fedora-11-i686-Live.iso\n"
11117 " run\n"
11118 " mkmountpoint /cd\n"
11119 " mkmountpoint /sqsh\n"
11120 " mkmountpoint /ext3fs\n"
11121 " mount /dev/sda /cd\n"
11122 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11123 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11124 "\n"
11125 msgstr ""
11126
11127 # type: textblock
11128 #: ../src/guestfs-actions.pod:4222 ../fish/guestfish-actions.pod:2832
11129 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11130 msgstr ""
11131
11132 # type: textblock
11133 #: ../src/guestfs-actions.pod:4224
11134 msgid ""
11135 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11136 "may get unexpected errors if you try to mix these calls.  It is safest to "
11137 "manually unmount filesystems and remove mountpoints after use."
11138 msgstr ""
11139
11140 # type: textblock
11141 #: ../src/guestfs-actions.pod:4228
11142 msgid ""
11143 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11144 "first, so for this to work for manual mountpoints, you must ensure that the "
11145 "innermost mountpoints have the longest pathnames, as in the example code "
11146 "above."
11147 msgstr ""
11148
11149 # type: textblock
11150 #: ../src/guestfs-actions.pod:4233 ../fish/guestfish-actions.pod:2843
11151 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11152 msgstr ""
11153
11154 # type: textblock
11155 #: ../src/guestfs-actions.pod:4235
11156 msgid ""
11157 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11158 "means that C<guestfs_umount_all> is called when the handle is closed which "
11159 "can also trigger these issues."
11160 msgstr ""
11161
11162 # type: textblock
11163 #: ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:5393
11164 msgid "(Added in 1.0.62)"
11165 msgstr ""
11166
11167 # type: =head2
11168 #: ../src/guestfs-actions.pod:4243
11169 msgid "guestfs_mknod"
11170 msgstr ""
11171
11172 # type: verbatim
11173 #: ../src/guestfs-actions.pod:4245
11174 #, no-wrap
11175 msgid ""
11176 " int\n"
11177 " guestfs_mknod (guestfs_h *g,\n"
11178 "                int mode,\n"
11179 "                int devmajor,\n"
11180 "                int devminor,\n"
11181 "                const char *path);\n"
11182 "\n"
11183 msgstr ""
11184
11185 # type: textblock
11186 #: ../src/guestfs-actions.pod:4252 ../fish/guestfish-actions.pod:2853
11187 msgid ""
11188 "This call creates block or character special devices, or named pipes "
11189 "(FIFOs)."
11190 msgstr ""
11191
11192 # type: textblock
11193 #: ../src/guestfs-actions.pod:4255 ../fish/guestfish-actions.pod:2856
11194 msgid ""
11195 "The C<mode> parameter should be the mode, using the standard constants.  "
11196 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11197 "used when creating block and character special devices."
11198 msgstr ""
11199
11200 # type: textblock
11201 #: ../src/guestfs-actions.pod:4260
11202 msgid ""
11203 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11204 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11205 "regular file).  These constants are available in the standard Linux header "
11206 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11207 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11208 "the appropriate constant for you."
11209 msgstr ""
11210
11211 # type: =head2
11212 #: ../src/guestfs-actions.pod:4274
11213 msgid "guestfs_mknod_b"
11214 msgstr ""
11215
11216 # type: verbatim
11217 #: ../src/guestfs-actions.pod:4276
11218 #, no-wrap
11219 msgid ""
11220 " int\n"
11221 " guestfs_mknod_b (guestfs_h *g,\n"
11222 "                  int mode,\n"
11223 "                  int devmajor,\n"
11224 "                  int devminor,\n"
11225 "                  const char *path);\n"
11226 "\n"
11227 msgstr ""
11228
11229 # type: textblock
11230 #: ../src/guestfs-actions.pod:4283
11231 msgid ""
11232 "This call creates a block device node called C<path> with mode C<mode> and "
11233 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11234 "wrapper around C<guestfs_mknod>."
11235 msgstr ""
11236
11237 # type: =head2
11238 #: ../src/guestfs-actions.pod:4293
11239 msgid "guestfs_mknod_c"
11240 msgstr ""
11241
11242 # type: verbatim
11243 #: ../src/guestfs-actions.pod:4295
11244 #, no-wrap
11245 msgid ""
11246 " int\n"
11247 " guestfs_mknod_c (guestfs_h *g,\n"
11248 "                  int mode,\n"
11249 "                  int devmajor,\n"
11250 "                  int devminor,\n"
11251 "                  const char *path);\n"
11252 "\n"
11253 msgstr ""
11254
11255 # type: textblock
11256 #: ../src/guestfs-actions.pod:4302
11257 msgid ""
11258 "This call creates a char device node called C<path> with mode C<mode> and "
11259 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11260 "wrapper around C<guestfs_mknod>."
11261 msgstr ""
11262
11263 # type: =head2
11264 #: ../src/guestfs-actions.pod:4312
11265 msgid "guestfs_mkswap"
11266 msgstr ""
11267
11268 # type: verbatim
11269 #: ../src/guestfs-actions.pod:4314
11270 #, no-wrap
11271 msgid ""
11272 " int\n"
11273 " guestfs_mkswap (guestfs_h *g,\n"
11274 "                 const char *device);\n"
11275 "\n"
11276 msgstr ""
11277
11278 # type: textblock
11279 #: ../src/guestfs-actions.pod:4318 ../fish/guestfish-actions.pod:2895
11280 msgid "Create a swap partition on C<device>."
11281 msgstr ""
11282
11283 # type: =head2
11284 #: ../src/guestfs-actions.pod:4324
11285 msgid "guestfs_mkswap_L"
11286 msgstr ""
11287
11288 # type: verbatim
11289 #: ../src/guestfs-actions.pod:4326
11290 #, no-wrap
11291 msgid ""
11292 " int\n"
11293 " guestfs_mkswap_L (guestfs_h *g,\n"
11294 "                   const char *label,\n"
11295 "                   const char *device);\n"
11296 "\n"
11297 msgstr ""
11298
11299 # type: textblock
11300 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2901
11301 msgid "Create a swap partition on C<device> with label C<label>."
11302 msgstr ""
11303
11304 # type: textblock
11305 #: ../src/guestfs-actions.pod:4333 ../fish/guestfish-actions.pod:2903
11306 msgid ""
11307 "Note that you cannot attach a swap label to a block device "
11308 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11309 "the kernel or swap tools."
11310 msgstr ""
11311
11312 # type: =head2
11313 #: ../src/guestfs-actions.pod:4341
11314 msgid "guestfs_mkswap_U"
11315 msgstr ""
11316
11317 # type: verbatim
11318 #: ../src/guestfs-actions.pod:4343
11319 #, no-wrap
11320 msgid ""
11321 " int\n"
11322 " guestfs_mkswap_U (guestfs_h *g,\n"
11323 "                   const char *uuid,\n"
11324 "                   const char *device);\n"
11325 "\n"
11326 msgstr ""
11327
11328 # type: textblock
11329 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2911
11330 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11331 msgstr ""
11332
11333 # type: =head2
11334 #: ../src/guestfs-actions.pod:4354
11335 msgid "guestfs_mkswap_file"
11336 msgstr ""
11337
11338 # type: verbatim
11339 #: ../src/guestfs-actions.pod:4356
11340 #, no-wrap
11341 msgid ""
11342 " int\n"
11343 " guestfs_mkswap_file (guestfs_h *g,\n"
11344 "                      const char *path);\n"
11345 "\n"
11346 msgstr ""
11347
11348 # type: textblock
11349 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2917
11350 msgid "Create a swap file."
11351 msgstr ""
11352
11353 # type: textblock
11354 #: ../src/guestfs-actions.pod:4362
11355 msgid ""
11356 "This command just writes a swap file signature to an existing file.  To "
11357 "create the file itself, use something like C<guestfs_fallocate>."
11358 msgstr ""
11359
11360 # type: =head2
11361 #: ../src/guestfs-actions.pod:4369
11362 msgid "guestfs_modprobe"
11363 msgstr ""
11364
11365 # type: verbatim
11366 #: ../src/guestfs-actions.pod:4371
11367 #, no-wrap
11368 msgid ""
11369 " int\n"
11370 " guestfs_modprobe (guestfs_h *g,\n"
11371 "                   const char *modulename);\n"
11372 "\n"
11373 msgstr ""
11374
11375 # type: textblock
11376 #: ../src/guestfs-actions.pod:4375 ../fish/guestfish-actions.pod:2926
11377 msgid "This loads a kernel module in the appliance."
11378 msgstr ""
11379
11380 # type: textblock
11381 #: ../src/guestfs-actions.pod:4377 ../fish/guestfish-actions.pod:2928
11382 msgid ""
11383 "The kernel module must have been whitelisted when libguestfs was built (see "
11384 "C<appliance/kmod.whitelist.in> in the source)."
11385 msgstr ""
11386
11387 # type: =head2
11388 #: ../src/guestfs-actions.pod:4384
11389 msgid "guestfs_mount"
11390 msgstr ""
11391
11392 # type: verbatim
11393 #: ../src/guestfs-actions.pod:4386
11394 #, no-wrap
11395 msgid ""
11396 " int\n"
11397 " guestfs_mount (guestfs_h *g,\n"
11398 "                const char *device,\n"
11399 "                const char *mountpoint);\n"
11400 "\n"
11401 msgstr ""
11402
11403 # type: textblock
11404 #: ../src/guestfs-actions.pod:4391 ../fish/guestfish-actions.pod:2935
11405 msgid ""
11406 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11407 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11408 "those block devices contain partitions, they will have the usual names "
11409 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11410 msgstr ""
11411
11412 # type: textblock
11413 #: ../src/guestfs-actions.pod:4397 ../fish/guestfish-actions.pod:2941
11414 msgid ""
11415 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11416 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11417 "mounted on directories which already exist."
11418 msgstr ""
11419
11420 # type: textblock
11421 #: ../src/guestfs-actions.pod:4402 ../fish/guestfish-actions.pod:2946
11422 msgid ""
11423 "The mounted filesystem is writable, if we have sufficient permissions on the "
11424 "underlying device."
11425 msgstr ""
11426
11427 # type: textblock
11428 #: ../src/guestfs-actions.pod:4405
11429 msgid ""
11430 "B<Important note:> When you use this call, the filesystem options C<sync> "
11431 "and C<noatime> are set implicitly.  This was originally done because we "
11432 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11433 "very large negative performance impact and negligible effect on "
11434 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
11435 "in any code that needs performance, and instead use C<guestfs_mount_options> "
11436 "(use an empty string for the first parameter if you don't want any options)."
11437 msgstr ""
11438
11439 # type: =head2
11440 #: ../src/guestfs-actions.pod:4419
11441 msgid "guestfs_mount_loop"
11442 msgstr ""
11443
11444 # type: verbatim
11445 #: ../src/guestfs-actions.pod:4421
11446 #, no-wrap
11447 msgid ""
11448 " int\n"
11449 " guestfs_mount_loop (guestfs_h *g,\n"
11450 "                     const char *file,\n"
11451 "                     const char *mountpoint);\n"
11452 "\n"
11453 msgstr ""
11454
11455 # type: textblock
11456 #: ../src/guestfs-actions.pod:4426 ../fish/guestfish-actions.pod:2963
11457 msgid ""
11458 "This command lets you mount C<file> (a filesystem image in a file) on a "
11459 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11460 "mountpoint>."
11461 msgstr ""
11462
11463 # type: =head2
11464 #: ../src/guestfs-actions.pod:4434
11465 msgid "guestfs_mount_options"
11466 msgstr ""
11467
11468 # type: verbatim
11469 #: ../src/guestfs-actions.pod:4436
11470 #, no-wrap
11471 msgid ""
11472 " int\n"
11473 " guestfs_mount_options (guestfs_h *g,\n"
11474 "                        const char *options,\n"
11475 "                        const char *device,\n"
11476 "                        const char *mountpoint);\n"
11477 "\n"
11478 msgstr ""
11479
11480 # type: textblock
11481 #: ../src/guestfs-actions.pod:4442
11482 msgid ""
11483 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11484 "the mount options as for the L<mount(8)> I<-o> flag."
11485 msgstr ""
11486
11487 # type: textblock
11488 #: ../src/guestfs-actions.pod:4446 ../fish/guestfish-actions.pod:2975
11489 msgid ""
11490 "If the C<options> parameter is an empty string, then no options are passed "
11491 "(all options default to whatever the filesystem uses)."
11492 msgstr ""
11493
11494 # type: textblock
11495 #: ../src/guestfs-actions.pod:4452 ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4483
11496 msgid "(Added in 1.0.10)"
11497 msgstr ""
11498
11499 # type: =head2
11500 #: ../src/guestfs-actions.pod:4454
11501 msgid "guestfs_mount_ro"
11502 msgstr ""
11503
11504 # type: verbatim
11505 #: ../src/guestfs-actions.pod:4456
11506 #, no-wrap
11507 msgid ""
11508 " int\n"
11509 " guestfs_mount_ro (guestfs_h *g,\n"
11510 "                   const char *device,\n"
11511 "                   const char *mountpoint);\n"
11512 "\n"
11513 msgstr ""
11514
11515 # type: textblock
11516 #: ../src/guestfs-actions.pod:4461
11517 msgid ""
11518 "This is the same as the C<guestfs_mount> command, but it mounts the "
11519 "filesystem with the read-only (I<-o ro>) flag."
11520 msgstr ""
11521
11522 # type: =head2
11523 #: ../src/guestfs-actions.pod:4468
11524 msgid "guestfs_mount_vfs"
11525 msgstr ""
11526
11527 # type: verbatim
11528 #: ../src/guestfs-actions.pod:4470
11529 #, no-wrap
11530 msgid ""
11531 " int\n"
11532 " guestfs_mount_vfs (guestfs_h *g,\n"
11533 "                    const char *options,\n"
11534 "                    const char *vfstype,\n"
11535 "                    const char *device,\n"
11536 "                    const char *mountpoint);\n"
11537 "\n"
11538 msgstr ""
11539
11540 # type: textblock
11541 #: ../src/guestfs-actions.pod:4477
11542 msgid ""
11543 "This is the same as the C<guestfs_mount> command, but it allows you to set "
11544 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
11545 "I<-t> flags."
11546 msgstr ""
11547
11548 # type: =head2
11549 #: ../src/guestfs-actions.pod:4485
11550 msgid "guestfs_mountpoints"
11551 msgstr ""
11552
11553 # type: verbatim
11554 #: ../src/guestfs-actions.pod:4487
11555 #, no-wrap
11556 msgid ""
11557 " char **\n"
11558 " guestfs_mountpoints (guestfs_h *g);\n"
11559 "\n"
11560 msgstr ""
11561
11562 # type: textblock
11563 #: ../src/guestfs-actions.pod:4490
11564 msgid ""
11565 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
11566 "devices.  This one returns a hash table (map) of device name to directory "
11567 "where the device is mounted."
11568 msgstr ""
11569
11570 # type: =head2
11571 #: ../src/guestfs-actions.pod:4502
11572 msgid "guestfs_mounts"
11573 msgstr ""
11574
11575 # type: verbatim
11576 #: ../src/guestfs-actions.pod:4504
11577 #, no-wrap
11578 msgid ""
11579 " char **\n"
11580 " guestfs_mounts (guestfs_h *g);\n"
11581 "\n"
11582 msgstr ""
11583
11584 # type: textblock
11585 #: ../src/guestfs-actions.pod:4507 ../fish/guestfish-actions.pod:3006
11586 msgid ""
11587 "This returns the list of currently mounted filesystems.  It returns the list "
11588 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11589 msgstr ""
11590
11591 # type: textblock
11592 #: ../src/guestfs-actions.pod:4510 ../fish/guestfish-actions.pod:3009
11593 msgid "Some internal mounts are not shown."
11594 msgstr ""
11595
11596 # type: textblock
11597 #: ../src/guestfs-actions.pod:4512
11598 msgid "See also: C<guestfs_mountpoints>"
11599 msgstr ""
11600
11601 # type: =head2
11602 #: ../src/guestfs-actions.pod:4520
11603 msgid "guestfs_mv"
11604 msgstr ""
11605
11606 # type: verbatim
11607 #: ../src/guestfs-actions.pod:4522
11608 #, no-wrap
11609 msgid ""
11610 " int\n"
11611 " guestfs_mv (guestfs_h *g,\n"
11612 "             const char *src,\n"
11613 "             const char *dest);\n"
11614 "\n"
11615 msgstr ""
11616
11617 # type: textblock
11618 #: ../src/guestfs-actions.pod:4527 ../fish/guestfish-actions.pod:3017
11619 msgid ""
11620 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11621 "destination filename or destination directory."
11622 msgstr ""
11623
11624 # type: =head2
11625 #: ../src/guestfs-actions.pod:4534
11626 msgid "guestfs_ntfs_3g_probe"
11627 msgstr ""
11628
11629 # type: verbatim
11630 #: ../src/guestfs-actions.pod:4536
11631 #, no-wrap
11632 msgid ""
11633 " int\n"
11634 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
11635 "                        int rw,\n"
11636 "                        const char *device);\n"
11637 "\n"
11638 msgstr ""
11639
11640 # type: textblock
11641 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3024
11642 msgid ""
11643 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11644 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11645 "read-write, and some cannot be mounted at all)."
11646 msgstr ""
11647
11648 # type: textblock
11649 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3028
11650 msgid ""
11651 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11652 "can be mounted read-write.  Set it to false if you want to test if the "
11653 "volume can be mounted read-only."
11654 msgstr ""
11655
11656 # type: textblock
11657 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3032
11658 msgid ""
11659 "The return value is an integer which C<0> if the operation would succeed, or "
11660 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11661 msgstr ""
11662
11663 # type: textblock
11664 #: ../src/guestfs-actions.pod:4555
11665 msgid "(Added in 1.0.43)"
11666 msgstr ""
11667
11668 # type: =head2
11669 #: ../src/guestfs-actions.pod:4557
11670 msgid "guestfs_ntfsresize"
11671 msgstr ""
11672
11673 # type: verbatim
11674 #: ../src/guestfs-actions.pod:4559
11675 #, no-wrap
11676 msgid ""
11677 " int\n"
11678 " guestfs_ntfsresize (guestfs_h *g,\n"
11679 "                     const char *device);\n"
11680 "\n"
11681 msgstr ""
11682
11683 # type: textblock
11684 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3040
11685 msgid ""
11686 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11687 "size of the underlying device.  See also L<ntfsresize(8)>."
11688 msgstr ""
11689
11690 # type: =head2
11691 #: ../src/guestfs-actions.pod:4571
11692 msgid "guestfs_ntfsresize_size"
11693 msgstr ""
11694
11695 # type: verbatim
11696 #: ../src/guestfs-actions.pod:4573
11697 #, no-wrap
11698 msgid ""
11699 " int\n"
11700 " guestfs_ntfsresize_size (guestfs_h *g,\n"
11701 "                          const char *device,\n"
11702 "                          int64_t size);\n"
11703 "\n"
11704 msgstr ""
11705
11706 # type: textblock
11707 #: ../src/guestfs-actions.pod:4578
11708 msgid ""
11709 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
11710 "to specify the new size (in bytes) explicitly."
11711 msgstr ""
11712
11713 # type: textblock
11714 #: ../src/guestfs-actions.pod:4583 ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5341
11715 msgid "(Added in 1.3.14)"
11716 msgstr ""
11717
11718 # type: =head2
11719 #: ../src/guestfs-actions.pod:4585
11720 msgid "guestfs_part_add"
11721 msgstr ""
11722
11723 # type: verbatim
11724 #: ../src/guestfs-actions.pod:4587
11725 #, no-wrap
11726 msgid ""
11727 " int\n"
11728 " guestfs_part_add (guestfs_h *g,\n"
11729 "                   const char *device,\n"
11730 "                   const char *prlogex,\n"
11731 "                   int64_t startsect,\n"
11732 "                   int64_t endsect);\n"
11733 "\n"
11734 msgstr ""
11735
11736 # type: textblock
11737 #: ../src/guestfs-actions.pod:4594
11738 msgid ""
11739 "This command adds a partition to C<device>.  If there is no partition table "
11740 "on the device, call C<guestfs_part_init> first."
11741 msgstr ""
11742
11743 # type: textblock
11744 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3058
11745 msgid ""
11746 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11747 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11748 "C<logical>) and C<e> (or C<extended>) partition types."
11749 msgstr ""
11750
11751 # type: textblock
11752 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3063
11753 msgid ""
11754 "C<startsect> and C<endsect> are the start and end of the partition in "
11755 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11756 "from the end of the disk (C<-1> is the last sector)."
11757 msgstr ""
11758
11759 # type: textblock
11760 #: ../src/guestfs-actions.pod:4606
11761 msgid ""
11762 "Creating a partition which covers the whole disk is not so easy.  Use "
11763 "C<guestfs_part_disk> to do that."
11764 msgstr ""
11765
11766 # type: textblock
11767 #: ../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
11768 msgid "(Added in 1.0.78)"
11769 msgstr ""
11770
11771 # type: =head2
11772 #: ../src/guestfs-actions.pod:4613
11773 msgid "guestfs_part_del"
11774 msgstr ""
11775
11776 # type: verbatim
11777 #: ../src/guestfs-actions.pod:4615
11778 #, no-wrap
11779 msgid ""
11780 " int\n"
11781 " guestfs_part_del (guestfs_h *g,\n"
11782 "                   const char *device,\n"
11783 "                   int partnum);\n"
11784 "\n"
11785 msgstr ""
11786
11787 # type: textblock
11788 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3074
11789 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11790 msgstr ""
11791
11792 # type: textblock
11793 #: ../src/guestfs-actions.pod:4622 ../fish/guestfish-actions.pod:3076
11794 msgid ""
11795 "Note that in the case of MBR partitioning, deleting an extended partition "
11796 "also deletes any logical partitions it contains."
11797 msgstr ""
11798
11799 # type: =head2
11800 #: ../src/guestfs-actions.pod:4630
11801 msgid "guestfs_part_disk"
11802 msgstr ""
11803
11804 # type: verbatim
11805 #: ../src/guestfs-actions.pod:4632
11806 #, no-wrap
11807 msgid ""
11808 " int\n"
11809 " guestfs_part_disk (guestfs_h *g,\n"
11810 "                    const char *device,\n"
11811 "                    const char *parttype);\n"
11812 "\n"
11813 msgstr ""
11814
11815 # type: textblock
11816 #: ../src/guestfs-actions.pod:4637
11817 msgid ""
11818 "This command is simply a combination of C<guestfs_part_init> followed by "
11819 "C<guestfs_part_add> to create a single primary partition covering the whole "
11820 "disk."
11821 msgstr ""
11822
11823 # type: textblock
11824 #: ../src/guestfs-actions.pod:4641
11825 msgid ""
11826 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11827 "possible values are described in C<guestfs_part_init>."
11828 msgstr ""
11829
11830 # type: =head2
11831 #: ../src/guestfs-actions.pod:4651
11832 msgid "guestfs_part_get_bootable"
11833 msgstr ""
11834
11835 # type: verbatim
11836 #: ../src/guestfs-actions.pod:4653
11837 #, no-wrap
11838 msgid ""
11839 " int\n"
11840 " guestfs_part_get_bootable (guestfs_h *g,\n"
11841 "                            const char *device,\n"
11842 "                            int partnum);\n"
11843 "\n"
11844 msgstr ""
11845
11846 # type: textblock
11847 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3098
11848 msgid ""
11849 "This command returns true if the partition C<partnum> on C<device> has the "
11850 "bootable flag set."
11851 msgstr ""
11852
11853 # type: textblock
11854 #: ../src/guestfs-actions.pod:4661
11855 msgid "See also C<guestfs_part_set_bootable>."
11856 msgstr ""
11857
11858 # type: =head2
11859 #: ../src/guestfs-actions.pod:4667
11860 msgid "guestfs_part_get_mbr_id"
11861 msgstr ""
11862
11863 # type: verbatim
11864 #: ../src/guestfs-actions.pod:4669
11865 #, no-wrap
11866 msgid ""
11867 " int\n"
11868 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
11869 "                          const char *device,\n"
11870 "                          int partnum);\n"
11871 "\n"
11872 msgstr ""
11873
11874 # type: textblock
11875 #: ../src/guestfs-actions.pod:4674 ../fish/guestfish-actions.pod:3107
11876 msgid ""
11877 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11878 "partition C<partnum>."
11879 msgstr ""
11880
11881 # type: textblock
11882 #: ../src/guestfs-actions.pod:4677 ../src/guestfs-actions.pod:4853
11883 msgid ""
11884 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11885 "undefined results for other partition table types (see "
11886 "C<guestfs_part_get_parttype>)."
11887 msgstr ""
11888
11889 # type: =head2
11890 #: ../src/guestfs-actions.pod:4685
11891 msgid "guestfs_part_get_parttype"
11892 msgstr ""
11893
11894 # type: verbatim
11895 #: ../src/guestfs-actions.pod:4687
11896 #, no-wrap
11897 msgid ""
11898 " char *\n"
11899 " guestfs_part_get_parttype (guestfs_h *g,\n"
11900 "                            const char *device);\n"
11901 "\n"
11902 msgstr ""
11903
11904 # type: textblock
11905 #: ../src/guestfs-actions.pod:4691 ../fish/guestfish-actions.pod:3118
11906 msgid ""
11907 "This command examines the partition table on C<device> and returns the "
11908 "partition table type (format) being used."
11909 msgstr ""
11910
11911 # type: textblock
11912 #: ../src/guestfs-actions.pod:4694
11913 msgid ""
11914 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11915 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11916 "possible, although unusual.  See C<guestfs_part_init> for a full list."
11917 msgstr ""
11918
11919 # type: =head2
11920 #: ../src/guestfs-actions.pod:4704
11921 msgid "guestfs_part_init"
11922 msgstr ""
11923
11924 # type: verbatim
11925 #: ../src/guestfs-actions.pod:4706
11926 #, no-wrap
11927 msgid ""
11928 " int\n"
11929 " guestfs_part_init (guestfs_h *g,\n"
11930 "                    const char *device,\n"
11931 "                    const char *parttype);\n"
11932 "\n"
11933 msgstr ""
11934
11935 # type: textblock
11936 #: ../src/guestfs-actions.pod:4711 ../fish/guestfish-actions.pod:3130
11937 msgid ""
11938 "This creates an empty partition table on C<device> of one of the partition "
11939 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11940 "(for large disks)."
11941 msgstr ""
11942
11943 # type: textblock
11944 #: ../src/guestfs-actions.pod:4715
11945 msgid ""
11946 "Initially there are no partitions.  Following this, you should call "
11947 "C<guestfs_part_add> for each partition required."
11948 msgstr ""
11949
11950 # type: textblock
11951 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3137
11952 msgid "Possible values for C<parttype> are:"
11953 msgstr ""
11954
11955 # type: =item
11956 #: ../src/guestfs-actions.pod:4722 ../fish/guestfish-actions.pod:3141
11957 msgid "B<efi> | B<gpt>"
11958 msgstr ""
11959
11960 # type: textblock
11961 #: ../src/guestfs-actions.pod:4724 ../fish/guestfish-actions.pod:3143
11962 msgid "Intel EFI / GPT partition table."
11963 msgstr ""
11964
11965 # type: textblock
11966 #: ../src/guestfs-actions.pod:4726 ../fish/guestfish-actions.pod:3145
11967 msgid ""
11968 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11969 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11970 "the C<mbr> format."
11971 msgstr ""
11972
11973 # type: =item
11974 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3149
11975 msgid "B<mbr> | B<msdos>"
11976 msgstr ""
11977
11978 # type: textblock
11979 #: ../src/guestfs-actions.pod:4732 ../fish/guestfish-actions.pod:3151
11980 msgid ""
11981 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11982 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11983 "TB.  For large disks we recommend using C<gpt>."
11984 msgstr ""
11985
11986 # type: textblock
11987 #: ../src/guestfs-actions.pod:4739 ../fish/guestfish-actions.pod:3158
11988 msgid "Other partition table types that may work but are not supported include:"
11989 msgstr ""
11990
11991 # type: =item
11992 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3163
11993 msgid "B<aix>"
11994 msgstr ""
11995
11996 # type: textblock
11997 #: ../src/guestfs-actions.pod:4746 ../fish/guestfish-actions.pod:3165
11998 msgid "AIX disk labels."
11999 msgstr ""
12000
12001 # type: =item
12002 #: ../src/guestfs-actions.pod:4748 ../fish/guestfish-actions.pod:3167
12003 msgid "B<amiga> | B<rdb>"
12004 msgstr ""
12005
12006 # type: textblock
12007 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3169
12008 msgid "Amiga \"Rigid Disk Block\" format."
12009 msgstr ""
12010
12011 # type: =item
12012 #: ../src/guestfs-actions.pod:4752 ../fish/guestfish-actions.pod:3171
12013 msgid "B<bsd>"
12014 msgstr ""
12015
12016 # type: textblock
12017 #: ../src/guestfs-actions.pod:4754 ../fish/guestfish-actions.pod:3173
12018 msgid "BSD disk labels."
12019 msgstr ""
12020
12021 # type: =item
12022 #: ../src/guestfs-actions.pod:4756 ../fish/guestfish-actions.pod:3175
12023 msgid "B<dasd>"
12024 msgstr ""
12025
12026 # type: textblock
12027 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3177
12028 msgid "DASD, used on IBM mainframes."
12029 msgstr ""
12030
12031 # type: =item
12032 #: ../src/guestfs-actions.pod:4760 ../fish/guestfish-actions.pod:3179
12033 msgid "B<dvh>"
12034 msgstr ""
12035
12036 # type: textblock
12037 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3181
12038 msgid "MIPS/SGI volumes."
12039 msgstr ""
12040
12041 # type: =item
12042 #: ../src/guestfs-actions.pod:4764 ../fish/guestfish-actions.pod:3183
12043 msgid "B<mac>"
12044 msgstr ""
12045
12046 # type: textblock
12047 #: ../src/guestfs-actions.pod:4766 ../fish/guestfish-actions.pod:3185
12048 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12049 msgstr ""
12050
12051 # type: =item
12052 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3187
12053 msgid "B<pc98>"
12054 msgstr ""
12055
12056 # type: textblock
12057 #: ../src/guestfs-actions.pod:4770 ../fish/guestfish-actions.pod:3189
12058 msgid "NEC PC-98 format, common in Japan apparently."
12059 msgstr ""
12060
12061 # type: =item
12062 #: ../src/guestfs-actions.pod:4772 ../fish/guestfish-actions.pod:3191
12063 msgid "B<sun>"
12064 msgstr ""
12065
12066 # type: textblock
12067 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3193
12068 msgid "Sun disk labels."
12069 msgstr ""
12070
12071 # type: =head2
12072 #: ../src/guestfs-actions.pod:4782
12073 msgid "guestfs_part_list"
12074 msgstr ""
12075
12076 # type: verbatim
12077 #: ../src/guestfs-actions.pod:4784
12078 #, no-wrap
12079 msgid ""
12080 " struct guestfs_partition_list *\n"
12081 " guestfs_part_list (guestfs_h *g,\n"
12082 "                    const char *device);\n"
12083 "\n"
12084 msgstr ""
12085
12086 # type: textblock
12087 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3201
12088 msgid ""
12089 "This command parses the partition table on C<device> and returns the list of "
12090 "partitions found."
12091 msgstr ""
12092
12093 # type: textblock
12094 #: ../src/guestfs-actions.pod:4791 ../fish/guestfish-actions.pod:3204
12095 msgid "The fields in the returned structure are:"
12096 msgstr ""
12097
12098 # type: =item
12099 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3208
12100 msgid "B<part_num>"
12101 msgstr ""
12102
12103 # type: textblock
12104 #: ../src/guestfs-actions.pod:4797 ../fish/guestfish-actions.pod:3210
12105 msgid "Partition number, counting from 1."
12106 msgstr ""
12107
12108 # type: =item
12109 #: ../src/guestfs-actions.pod:4799 ../fish/guestfish-actions.pod:3212
12110 msgid "B<part_start>"
12111 msgstr ""
12112
12113 # type: textblock
12114 #: ../src/guestfs-actions.pod:4801
12115 msgid ""
12116 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12117 "the device's sector size, see C<guestfs_blockdev_getss>."
12118 msgstr ""
12119
12120 # type: =item
12121 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3217
12122 msgid "B<part_end>"
12123 msgstr ""
12124
12125 # type: textblock
12126 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3219
12127 msgid "End of the partition in bytes."
12128 msgstr ""
12129
12130 # type: =item
12131 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3221
12132 msgid "B<part_size>"
12133 msgstr ""
12134
12135 # type: textblock
12136 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3223
12137 msgid "Size of the partition in bytes."
12138 msgstr ""
12139
12140 # type: textblock
12141 #: ../src/guestfs-actions.pod:4814
12142 msgid ""
12143 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12144 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12145 "use>."
12146 msgstr ""
12147
12148 # type: =head2
12149 #: ../src/guestfs-actions.pod:4820
12150 msgid "guestfs_part_set_bootable"
12151 msgstr ""
12152
12153 # type: verbatim
12154 #: ../src/guestfs-actions.pod:4822
12155 #, no-wrap
12156 msgid ""
12157 " int\n"
12158 " guestfs_part_set_bootable (guestfs_h *g,\n"
12159 "                            const char *device,\n"
12160 "                            int partnum,\n"
12161 "                            int bootable);\n"
12162 "\n"
12163 msgstr ""
12164
12165 # type: textblock
12166 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3231
12167 msgid ""
12168 "This sets the bootable flag on partition numbered C<partnum> on device "
12169 "C<device>.  Note that partitions are numbered from 1."
12170 msgstr ""
12171
12172 # type: textblock
12173 #: ../src/guestfs-actions.pod:4831 ../fish/guestfish-actions.pod:3234
12174 msgid ""
12175 "The bootable flag is used by some operating systems (notably Windows) to "
12176 "determine which partition to boot from.  It is by no means universally "
12177 "recognized."
12178 msgstr ""
12179
12180 # type: =head2
12181 #: ../src/guestfs-actions.pod:4839
12182 msgid "guestfs_part_set_mbr_id"
12183 msgstr ""
12184
12185 # type: verbatim
12186 #: ../src/guestfs-actions.pod:4841
12187 #, no-wrap
12188 msgid ""
12189 " int\n"
12190 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12191 "                          const char *device,\n"
12192 "                          int partnum,\n"
12193 "                          int idbyte);\n"
12194 "\n"
12195 msgstr ""
12196
12197 # type: textblock
12198 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3242
12199 msgid ""
12200 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12201 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12202 "documentation are in fact hexadecimal numbers, but usually documented "
12203 "without any leading \"0x\" which might be confusing."
12204 msgstr ""
12205
12206 # type: =head2
12207 #: ../src/guestfs-actions.pod:4861
12208 msgid "guestfs_part_set_name"
12209 msgstr ""
12210
12211 # type: verbatim
12212 #: ../src/guestfs-actions.pod:4863
12213 #, no-wrap
12214 msgid ""
12215 " int\n"
12216 " guestfs_part_set_name (guestfs_h *g,\n"
12217 "                        const char *device,\n"
12218 "                        int partnum,\n"
12219 "                        const char *name);\n"
12220 "\n"
12221 msgstr ""
12222
12223 # type: textblock
12224 #: ../src/guestfs-actions.pod:4869 ../fish/guestfish-actions.pod:3256
12225 msgid ""
12226 "This sets the partition name on partition numbered C<partnum> on device "
12227 "C<device>.  Note that partitions are numbered from 1."
12228 msgstr ""
12229
12230 # type: textblock
12231 #: ../src/guestfs-actions.pod:4872 ../fish/guestfish-actions.pod:3259
12232 msgid ""
12233 "The partition name can only be set on certain types of partition table.  "
12234 "This works on C<gpt> but not on C<mbr> partitions."
12235 msgstr ""
12236
12237 # type: =head2
12238 #: ../src/guestfs-actions.pod:4879
12239 msgid "guestfs_part_to_dev"
12240 msgstr ""
12241
12242 # type: verbatim
12243 #: ../src/guestfs-actions.pod:4881
12244 #, no-wrap
12245 msgid ""
12246 " char *\n"
12247 " guestfs_part_to_dev (guestfs_h *g,\n"
12248 "                      const char *partition);\n"
12249 "\n"
12250 msgstr ""
12251
12252 # type: textblock
12253 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3266
12254 msgid ""
12255 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12256 "partition number, returning the device name (eg. \"/dev/sdb\")."
12257 msgstr ""
12258
12259 # type: textblock
12260 #: ../src/guestfs-actions.pod:4889
12261 msgid ""
12262 "The named partition must exist, for example as a string returned from "
12263 "C<guestfs_list_partitions>."
12264 msgstr ""
12265
12266 # type: =head2
12267 #: ../src/guestfs-actions.pod:4897
12268 msgid "guestfs_ping_daemon"
12269 msgstr ""
12270
12271 # type: verbatim
12272 #: ../src/guestfs-actions.pod:4899
12273 #, no-wrap
12274 msgid ""
12275 " int\n"
12276 " guestfs_ping_daemon (guestfs_h *g);\n"
12277 "\n"
12278 msgstr ""
12279
12280 # type: textblock
12281 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3277
12282 msgid ""
12283 "This is a test probe into the guestfs daemon running inside the qemu "
12284 "subprocess.  Calling this function checks that the daemon responds to the "
12285 "ping message, without affecting the daemon or attached block device(s) in "
12286 "any other way."
12287 msgstr ""
12288
12289 # type: =head2
12290 #: ../src/guestfs-actions.pod:4911
12291 msgid "guestfs_pread"
12292 msgstr ""
12293
12294 # type: verbatim
12295 #: ../src/guestfs-actions.pod:4913
12296 #, no-wrap
12297 msgid ""
12298 " char *\n"
12299 " guestfs_pread (guestfs_h *g,\n"
12300 "                const char *path,\n"
12301 "                int count,\n"
12302 "                int64_t offset,\n"
12303 "                size_t *size_r);\n"
12304 "\n"
12305 msgstr ""
12306
12307 # type: textblock
12308 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3286
12309 msgid ""
12310 "This command lets you read part of a file.  It reads C<count> bytes of the "
12311 "file, starting at C<offset>, from file C<path>."
12312 msgstr ""
12313
12314 # type: textblock
12315 #: ../src/guestfs-actions.pod:4923 ../src/guestfs-actions.pod:4949 ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3304
12316 msgid ""
12317 "This may read fewer bytes than requested.  For further details see the "
12318 "L<pread(2)> system call."
12319 msgstr ""
12320
12321 # type: textblock
12322 #: ../src/guestfs-actions.pod:4926
12323 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12324 msgstr ""
12325
12326 # type: =head2
12327 #: ../src/guestfs-actions.pod:4937
12328 msgid "guestfs_pread_device"
12329 msgstr ""
12330
12331 # type: verbatim
12332 #: ../src/guestfs-actions.pod:4939
12333 #, no-wrap
12334 msgid ""
12335 " char *\n"
12336 " guestfs_pread_device (guestfs_h *g,\n"
12337 "                       const char *device,\n"
12338 "                       int count,\n"
12339 "                       int64_t offset,\n"
12340 "                       size_t *size_r);\n"
12341 "\n"
12342 msgstr ""
12343
12344 # type: textblock
12345 #: ../src/guestfs-actions.pod:4946 ../fish/guestfish-actions.pod:3301
12346 msgid ""
12347 "This command lets you read part of a file.  It reads C<count> bytes of "
12348 "C<device>, starting at C<offset>."
12349 msgstr ""
12350
12351 # type: textblock
12352 #: ../src/guestfs-actions.pod:4952
12353 msgid "See also C<guestfs_pread>."
12354 msgstr ""
12355
12356 # type: textblock
12357 #: ../src/guestfs-actions.pod:4961
12358 msgid "(Added in 1.5.21)"
12359 msgstr ""
12360
12361 # type: =head2
12362 #: ../src/guestfs-actions.pod:4963
12363 msgid "guestfs_pvcreate"
12364 msgstr ""
12365
12366 # type: verbatim
12367 #: ../src/guestfs-actions.pod:4965
12368 #, no-wrap
12369 msgid ""
12370 " int\n"
12371 " guestfs_pvcreate (guestfs_h *g,\n"
12372 "                   const char *device);\n"
12373 "\n"
12374 msgstr ""
12375
12376 # type: textblock
12377 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3316
12378 msgid ""
12379 "This creates an LVM physical volume on the named C<device>, where C<device> "
12380 "should usually be a partition name such as C</dev/sda1>."
12381 msgstr ""
12382
12383 # type: =head2
12384 #: ../src/guestfs-actions.pod:4977
12385 msgid "guestfs_pvremove"
12386 msgstr ""
12387
12388 # type: verbatim
12389 #: ../src/guestfs-actions.pod:4979
12390 #, no-wrap
12391 msgid ""
12392 " int\n"
12393 " guestfs_pvremove (guestfs_h *g,\n"
12394 "                   const char *device);\n"
12395 "\n"
12396 msgstr ""
12397
12398 # type: textblock
12399 #: ../src/guestfs-actions.pod:4983 ../fish/guestfish-actions.pod:3324
12400 msgid ""
12401 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12402 "it."
12403 msgstr ""
12404
12405 # type: textblock
12406 #: ../src/guestfs-actions.pod:4986 ../fish/guestfish-actions.pod:3327
12407 msgid ""
12408 "The implementation uses the C<pvremove> command which refuses to wipe "
12409 "physical volumes that contain any volume groups, so you have to remove those "
12410 "first."
12411 msgstr ""
12412
12413 # type: =head2
12414 #: ../src/guestfs-actions.pod:4994
12415 msgid "guestfs_pvresize"
12416 msgstr ""
12417
12418 # type: verbatim
12419 #: ../src/guestfs-actions.pod:4996
12420 #, no-wrap
12421 msgid ""
12422 " int\n"
12423 " guestfs_pvresize (guestfs_h *g,\n"
12424 "                   const char *device);\n"
12425 "\n"
12426 msgstr ""
12427
12428 # type: textblock
12429 #: ../src/guestfs-actions.pod:5000 ../fish/guestfish-actions.pod:3335
12430 msgid ""
12431 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12432 "the new size of the underlying device."
12433 msgstr ""
12434
12435 # type: =head2
12436 #: ../src/guestfs-actions.pod:5007
12437 msgid "guestfs_pvresize_size"
12438 msgstr ""
12439
12440 # type: verbatim
12441 #: ../src/guestfs-actions.pod:5009
12442 #, no-wrap
12443 msgid ""
12444 " int\n"
12445 " guestfs_pvresize_size (guestfs_h *g,\n"
12446 "                        const char *device,\n"
12447 "                        int64_t size);\n"
12448 "\n"
12449 msgstr ""
12450
12451 # type: textblock
12452 #: ../src/guestfs-actions.pod:5014
12453 msgid ""
12454 "This command is the same as C<guestfs_pvresize> except that it allows you to "
12455 "specify the new size (in bytes) explicitly."
12456 msgstr ""
12457
12458 # type: =head2
12459 #: ../src/guestfs-actions.pod:5021
12460 msgid "guestfs_pvs"
12461 msgstr ""
12462
12463 # type: verbatim
12464 #: ../src/guestfs-actions.pod:5023
12465 #, no-wrap
12466 msgid ""
12467 " char **\n"
12468 " guestfs_pvs (guestfs_h *g);\n"
12469 "\n"
12470 msgstr ""
12471
12472 # type: textblock
12473 #: ../src/guestfs-actions.pod:5026 ../fish/guestfish-actions.pod:3349
12474 msgid ""
12475 "List all the physical volumes detected.  This is the equivalent of the "
12476 "L<pvs(8)> command."
12477 msgstr ""
12478
12479 # type: textblock
12480 #: ../src/guestfs-actions.pod:5029 ../fish/guestfish-actions.pod:3352
12481 msgid ""
12482 "This returns a list of just the device names that contain PVs "
12483 "(eg. C</dev/sda2>)."
12484 msgstr ""
12485
12486 # type: textblock
12487 #: ../src/guestfs-actions.pod:5032
12488 msgid "See also C<guestfs_pvs_full>."
12489 msgstr ""
12490
12491 # type: =head2
12492 #: ../src/guestfs-actions.pod:5040
12493 msgid "guestfs_pvs_full"
12494 msgstr ""
12495
12496 # type: verbatim
12497 #: ../src/guestfs-actions.pod:5042
12498 #, no-wrap
12499 msgid ""
12500 " struct guestfs_lvm_pv_list *\n"
12501 " guestfs_pvs_full (guestfs_h *g);\n"
12502 "\n"
12503 msgstr ""
12504
12505 # type: textblock
12506 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3361
12507 msgid ""
12508 "List all the physical volumes detected.  This is the equivalent of the "
12509 "L<pvs(8)> command.  The \"full\" version includes all fields."
12510 msgstr ""
12511
12512 # type: textblock
12513 #: ../src/guestfs-actions.pod:5048
12514 msgid ""
12515 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
12516 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
12517 "use>."
12518 msgstr ""
12519
12520 # type: =head2
12521 #: ../src/guestfs-actions.pod:5054
12522 msgid "guestfs_pvuuid"
12523 msgstr ""
12524
12525 # type: verbatim
12526 #: ../src/guestfs-actions.pod:5056
12527 #, no-wrap
12528 msgid ""
12529 " char *\n"
12530 " guestfs_pvuuid (guestfs_h *g,\n"
12531 "                 const char *device);\n"
12532 "\n"
12533 msgstr ""
12534
12535 # type: textblock
12536 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3368
12537 msgid "This command returns the UUID of the LVM PV C<device>."
12538 msgstr ""
12539
12540 # type: =head2
12541 #: ../src/guestfs-actions.pod:5067
12542 msgid "guestfs_pwrite"
12543 msgstr ""
12544
12545 # type: verbatim
12546 #: ../src/guestfs-actions.pod:5069
12547 #, no-wrap
12548 msgid ""
12549 " int\n"
12550 " guestfs_pwrite (guestfs_h *g,\n"
12551 "                 const char *path,\n"
12552 "                 const char *content,\n"
12553 "                 size_t content_size,\n"
12554 "                 int64_t offset);\n"
12555 "\n"
12556 msgstr ""
12557
12558 # type: textblock
12559 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3374
12560 msgid ""
12561 "This command writes to part of a file.  It writes the data buffer C<content> "
12562 "to the file C<path> starting at offset C<offset>."
12563 msgstr ""
12564
12565 # type: textblock
12566 #: ../src/guestfs-actions.pod:5079 ../fish/guestfish-actions.pod:3377
12567 msgid ""
12568 "This command implements the L<pwrite(2)> system call, and like that system "
12569 "call it may not write the full data requested.  The return value is the "
12570 "number of bytes that were actually written to the file.  This could even be "
12571 "0, although short writes are unlikely for regular files in ordinary "
12572 "circumstances."
12573 msgstr ""
12574
12575 # type: textblock
12576 #: ../src/guestfs-actions.pod:5085
12577 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
12578 msgstr ""
12579
12580 # type: =head2
12581 #: ../src/guestfs-actions.pod:5094
12582 msgid "guestfs_pwrite_device"
12583 msgstr ""
12584
12585 # type: verbatim
12586 #: ../src/guestfs-actions.pod:5096
12587 #, no-wrap
12588 msgid ""
12589 " int\n"
12590 " guestfs_pwrite_device (guestfs_h *g,\n"
12591 "                        const char *device,\n"
12592 "                        const char *content,\n"
12593 "                        size_t content_size,\n"
12594 "                        int64_t offset);\n"
12595 "\n"
12596 msgstr ""
12597
12598 # type: textblock
12599 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3392
12600 msgid ""
12601 "This command writes to part of a device.  It writes the data buffer "
12602 "C<content> to C<device> starting at offset C<offset>."
12603 msgstr ""
12604
12605 # type: textblock
12606 #: ../src/guestfs-actions.pod:5106 ../fish/guestfish-actions.pod:3395
12607 msgid ""
12608 "This command implements the L<pwrite(2)> system call, and like that system "
12609 "call it may not write the full data requested (although short writes to disk "
12610 "devices and partitions are probably impossible with standard Linux kernels)."
12611 msgstr ""
12612
12613 # type: textblock
12614 #: ../src/guestfs-actions.pod:5111
12615 msgid "See also C<guestfs_pwrite>."
12616 msgstr ""
12617
12618 # type: textblock
12619 #: ../src/guestfs-actions.pod:5118
12620 msgid "(Added in 1.5.20)"
12621 msgstr ""
12622
12623 # type: =head2
12624 #: ../src/guestfs-actions.pod:5120
12625 msgid "guestfs_read_file"
12626 msgstr ""
12627
12628 # type: verbatim
12629 #: ../src/guestfs-actions.pod:5122
12630 #, no-wrap
12631 msgid ""
12632 " char *\n"
12633 " guestfs_read_file (guestfs_h *g,\n"
12634 "                    const char *path,\n"
12635 "                    size_t *size_r);\n"
12636 "\n"
12637 msgstr ""
12638
12639 # type: textblock
12640 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3409
12641 msgid "This calls returns the contents of the file C<path> as a buffer."
12642 msgstr ""
12643
12644 # type: textblock
12645 #: ../src/guestfs-actions.pod:5130
12646 msgid ""
12647 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
12648 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
12649 "function is limited in the total size of file that can be handled."
12650 msgstr ""
12651
12652 # type: textblock
12653 #: ../src/guestfs-actions.pod:5142
12654 msgid "(Added in 1.0.63)"
12655 msgstr ""
12656
12657 # type: =head2
12658 #: ../src/guestfs-actions.pod:5144
12659 msgid "guestfs_read_lines"
12660 msgstr ""
12661
12662 # type: verbatim
12663 #: ../src/guestfs-actions.pod:5146
12664 #, no-wrap
12665 msgid ""
12666 " char **\n"
12667 " guestfs_read_lines (guestfs_h *g,\n"
12668 "                     const char *path);\n"
12669 "\n"
12670 msgstr ""
12671
12672 # type: textblock
12673 #: ../src/guestfs-actions.pod:5152 ../fish/guestfish-actions.pod:3426
12674 msgid ""
12675 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12676 "C<CRLF> character sequences are I<not> returned."
12677 msgstr ""
12678
12679 # type: textblock
12680 #: ../src/guestfs-actions.pod:5155
12681 msgid ""
12682 "Note that this function cannot correctly handle binary files (specifically, "
12683 "files containing C<\\0> character which is treated as end of line).  For "
12684 "those you need to use the C<guestfs_read_file> function which has a more "
12685 "complex interface."
12686 msgstr ""
12687
12688 # type: =head2
12689 #: ../src/guestfs-actions.pod:5166
12690 msgid "guestfs_readdir"
12691 msgstr ""
12692
12693 # type: verbatim
12694 #: ../src/guestfs-actions.pod:5168
12695 #, no-wrap
12696 msgid ""
12697 " struct guestfs_dirent_list *\n"
12698 " guestfs_readdir (guestfs_h *g,\n"
12699 "                  const char *dir);\n"
12700 "\n"
12701 msgstr ""
12702
12703 # type: textblock
12704 #: ../src/guestfs-actions.pod:5172 ../fish/guestfish-actions.pod:3438
12705 msgid "This returns the list of directory entries in directory C<dir>."
12706 msgstr ""
12707
12708 # type: textblock
12709 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3440
12710 msgid ""
12711 "All entries in the directory are returned, including C<.> and C<..>.  The "
12712 "entries are I<not> sorted, but returned in the same order as the underlying "
12713 "filesystem."
12714 msgstr ""
12715
12716 # type: textblock
12717 #: ../src/guestfs-actions.pod:5178 ../fish/guestfish-actions.pod:3444
12718 msgid ""
12719 "Also this call returns basic file type information about each file.  The "
12720 "C<ftyp> field will contain one of the following characters:"
12721 msgstr ""
12722
12723 # type: =item
12724 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3449
12725 msgid "'b'"
12726 msgstr ""
12727
12728 # type: textblock
12729 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3451
12730 msgid "Block special"
12731 msgstr ""
12732
12733 # type: =item
12734 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:3453
12735 msgid "'c'"
12736 msgstr ""
12737
12738 # type: textblock
12739 #: ../src/guestfs-actions.pod:5189 ../fish/guestfish-actions.pod:3455
12740 msgid "Char special"
12741 msgstr ""
12742
12743 # type: =item
12744 #: ../src/guestfs-actions.pod:5191 ../fish/guestfish-actions.pod:3457
12745 msgid "'d'"
12746 msgstr ""
12747
12748 # type: textblock
12749 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3459
12750 msgid "Directory"
12751 msgstr ""
12752
12753 # type: =item
12754 #: ../src/guestfs-actions.pod:5195 ../fish/guestfish-actions.pod:3461
12755 msgid "'f'"
12756 msgstr ""
12757
12758 # type: textblock
12759 #: ../src/guestfs-actions.pod:5197 ../fish/guestfish-actions.pod:3463
12760 msgid "FIFO (named pipe)"
12761 msgstr ""
12762
12763 # type: =item
12764 #: ../src/guestfs-actions.pod:5199 ../fish/guestfish-actions.pod:3465
12765 msgid "'l'"
12766 msgstr ""
12767
12768 # type: textblock
12769 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3467
12770 msgid "Symbolic link"
12771 msgstr ""
12772
12773 # type: =item
12774 #: ../src/guestfs-actions.pod:5203 ../fish/guestfish-actions.pod:3469
12775 msgid "'r'"
12776 msgstr ""
12777
12778 # type: textblock
12779 #: ../src/guestfs-actions.pod:5205 ../fish/guestfish-actions.pod:3471
12780 msgid "Regular file"
12781 msgstr ""
12782
12783 # type: =item
12784 #: ../src/guestfs-actions.pod:5207 ../fish/guestfish-actions.pod:3473
12785 msgid "'s'"
12786 msgstr ""
12787
12788 # type: textblock
12789 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3475
12790 msgid "Socket"
12791 msgstr ""
12792
12793 # type: =item
12794 #: ../src/guestfs-actions.pod:5211 ../fish/guestfish-actions.pod:3477
12795 msgid "'u'"
12796 msgstr ""
12797
12798 # type: textblock
12799 #: ../src/guestfs-actions.pod:5213 ../fish/guestfish-actions.pod:3479
12800 msgid "Unknown file type"
12801 msgstr ""
12802
12803 # type: =item
12804 #: ../src/guestfs-actions.pod:5215 ../fish/guestfish-actions.pod:3481
12805 msgid "'?'"
12806 msgstr ""
12807
12808 # type: textblock
12809 #: ../src/guestfs-actions.pod:5217 ../fish/guestfish-actions.pod:3483
12810 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12811 msgstr ""
12812
12813 # type: textblock
12814 #: ../src/guestfs-actions.pod:5222
12815 msgid ""
12816 "This function is primarily intended for use by programs.  To get a simple "
12817 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
12818 "consumption, use C<guestfs_ll>."
12819 msgstr ""
12820
12821 # type: textblock
12822 #: ../src/guestfs-actions.pod:5226
12823 msgid ""
12824 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
12825 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
12826 "use>."
12827 msgstr ""
12828
12829 # type: =head2
12830 #: ../src/guestfs-actions.pod:5232
12831 msgid "guestfs_readlink"
12832 msgstr ""
12833
12834 # type: verbatim
12835 #: ../src/guestfs-actions.pod:5234
12836 #, no-wrap
12837 msgid ""
12838 " char *\n"
12839 " guestfs_readlink (guestfs_h *g,\n"
12840 "                   const char *path);\n"
12841 "\n"
12842 msgstr ""
12843
12844 # type: textblock
12845 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3496
12846 msgid "This command reads the target of a symbolic link."
12847 msgstr ""
12848
12849 # type: =head2
12850 #: ../src/guestfs-actions.pod:5245
12851 msgid "guestfs_readlinklist"
12852 msgstr ""
12853
12854 # type: verbatim
12855 #: ../src/guestfs-actions.pod:5247
12856 #, no-wrap
12857 msgid ""
12858 " char **\n"
12859 " guestfs_readlinklist (guestfs_h *g,\n"
12860 "                       const char *path,\n"
12861 "                       char *const *names);\n"
12862 "\n"
12863 msgstr ""
12864
12865 # type: textblock
12866 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:3502
12867 msgid ""
12868 "This call allows you to do a C<readlink> operation on multiple files, where "
12869 "all files are in the directory C<path>.  C<names> is the list of files from "
12870 "this directory."
12871 msgstr ""
12872
12873 # type: textblock
12874 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:3506
12875 msgid ""
12876 "On return you get a list of strings, with a one-to-one correspondence to the "
12877 "C<names> list.  Each string is the value of the symbolic link."
12878 msgstr ""
12879
12880 # type: textblock
12881 #: ../src/guestfs-actions.pod:5260 ../fish/guestfish-actions.pod:3510
12882 msgid ""
12883 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12884 "result string is the empty string C<\"\">.  However the whole operation is "
12885 "completed even if there were C<readlink(2)> errors, and so you can call this "
12886 "function with names where you don't know if they are symbolic links already "
12887 "(albeit slightly less efficient)."
12888 msgstr ""
12889
12890 # type: textblock
12891 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3517
12892 msgid ""
12893 "This call is intended for programs that want to efficiently list a directory "
12894 "contents without making many round-trips.  Very long directory listings "
12895 "might cause the protocol message size to be exceeded, causing this call to "
12896 "fail.  The caller must split up such requests into smaller groups of names."
12897 msgstr ""
12898
12899 # type: =head2
12900 #: ../src/guestfs-actions.pod:5280
12901 msgid "guestfs_realpath"
12902 msgstr ""
12903
12904 # type: verbatim
12905 #: ../src/guestfs-actions.pod:5282
12906 #, no-wrap
12907 msgid ""
12908 " char *\n"
12909 " guestfs_realpath (guestfs_h *g,\n"
12910 "                   const char *path);\n"
12911 "\n"
12912 msgstr ""
12913
12914 # type: textblock
12915 #: ../src/guestfs-actions.pod:5286 ../fish/guestfish-actions.pod:3528
12916 msgid ""
12917 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12918 "has no C<.>, C<..> or symbolic link path elements."
12919 msgstr ""
12920
12921 # type: =head2
12922 #: ../src/guestfs-actions.pod:5294
12923 msgid "guestfs_removexattr"
12924 msgstr ""
12925
12926 # type: verbatim
12927 #: ../src/guestfs-actions.pod:5296
12928 #, no-wrap
12929 msgid ""
12930 " int\n"
12931 " guestfs_removexattr (guestfs_h *g,\n"
12932 "                      const char *xattr,\n"
12933 "                      const char *path);\n"
12934 "\n"
12935 msgstr ""
12936
12937 # type: textblock
12938 #: ../src/guestfs-actions.pod:5301 ../fish/guestfish-actions.pod:3535
12939 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12940 msgstr ""
12941
12942 # type: textblock
12943 #: ../src/guestfs-actions.pod:5304
12944 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
12945 msgstr ""
12946
12947 # type: =head2
12948 #: ../src/guestfs-actions.pod:5310
12949 msgid "guestfs_resize2fs"
12950 msgstr ""
12951
12952 # type: verbatim
12953 #: ../src/guestfs-actions.pod:5312
12954 #, no-wrap
12955 msgid ""
12956 " int\n"
12957 " guestfs_resize2fs (guestfs_h *g,\n"
12958 "                    const char *device);\n"
12959 "\n"
12960 msgstr ""
12961
12962 # type: textblock
12963 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3544
12964 msgid ""
12965 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12966 "underlying device."
12967 msgstr ""
12968
12969 # type: textblock
12970 #: ../src/guestfs-actions.pod:5319
12971 msgid ""
12972 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
12973 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
12974 "sometimes gives an error about this and sometimes not.  In any case, it is "
12975 "always safe to call C<guestfs_e2fsck_f> before calling this function."
12976 msgstr ""
12977
12978 # type: =head2
12979 #: ../src/guestfs-actions.pod:5329
12980 msgid "guestfs_resize2fs_size"
12981 msgstr ""
12982
12983 # type: verbatim
12984 #: ../src/guestfs-actions.pod:5331
12985 #, no-wrap
12986 msgid ""
12987 " int\n"
12988 " guestfs_resize2fs_size (guestfs_h *g,\n"
12989 "                         const char *device,\n"
12990 "                         int64_t size);\n"
12991 "\n"
12992 msgstr ""
12993
12994 # type: textblock
12995 #: ../src/guestfs-actions.pod:5336
12996 msgid ""
12997 "This command is the same as C<guestfs_resize2fs> except that it allows you "
12998 "to specify the new size (in bytes) explicitly."
12999 msgstr ""
13000
13001 # type: =head2
13002 #: ../src/guestfs-actions.pod:5343
13003 msgid "guestfs_rm"
13004 msgstr ""
13005
13006 # type: verbatim
13007 #: ../src/guestfs-actions.pod:5345
13008 #, no-wrap
13009 msgid ""
13010 " int\n"
13011 " guestfs_rm (guestfs_h *g,\n"
13012 "             const char *path);\n"
13013 "\n"
13014 msgstr ""
13015
13016 # type: textblock
13017 #: ../src/guestfs-actions.pod:5349 ../fish/guestfish-actions.pod:3564
13018 msgid "Remove the single file C<path>."
13019 msgstr ""
13020
13021 # type: =head2
13022 #: ../src/guestfs-actions.pod:5355
13023 msgid "guestfs_rm_rf"
13024 msgstr ""
13025
13026 # type: verbatim
13027 #: ../src/guestfs-actions.pod:5357
13028 #, no-wrap
13029 msgid ""
13030 " int\n"
13031 " guestfs_rm_rf (guestfs_h *g,\n"
13032 "                const char *path);\n"
13033 "\n"
13034 msgstr ""
13035
13036 # type: textblock
13037 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3570
13038 msgid ""
13039 "Remove the file or directory C<path>, recursively removing the contents if "
13040 "its a directory.  This is like the C<rm -rf> shell command."
13041 msgstr ""
13042
13043 # type: =head2
13044 #: ../src/guestfs-actions.pod:5369
13045 msgid "guestfs_rmdir"
13046 msgstr ""
13047
13048 # type: verbatim
13049 #: ../src/guestfs-actions.pod:5371
13050 #, no-wrap
13051 msgid ""
13052 " int\n"
13053 " guestfs_rmdir (guestfs_h *g,\n"
13054 "                const char *path);\n"
13055 "\n"
13056 msgstr ""
13057
13058 # type: textblock
13059 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:3578
13060 msgid "Remove the single directory C<path>."
13061 msgstr ""
13062
13063 # type: =head2
13064 #: ../src/guestfs-actions.pod:5381
13065 msgid "guestfs_rmmountpoint"
13066 msgstr ""
13067
13068 # type: verbatim
13069 #: ../src/guestfs-actions.pod:5383
13070 #, no-wrap
13071 msgid ""
13072 " int\n"
13073 " guestfs_rmmountpoint (guestfs_h *g,\n"
13074 "                       const char *exemptpath);\n"
13075 "\n"
13076 msgstr ""
13077
13078 # type: textblock
13079 #: ../src/guestfs-actions.pod:5387
13080 msgid ""
13081 "This calls removes a mountpoint that was previously created with "
13082 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13083 msgstr ""
13084
13085 # type: =head2
13086 #: ../src/guestfs-actions.pod:5395
13087 msgid "guestfs_scrub_device"
13088 msgstr ""
13089
13090 # type: verbatim
13091 #: ../src/guestfs-actions.pod:5397
13092 #, no-wrap
13093 msgid ""
13094 " int\n"
13095 " guestfs_scrub_device (guestfs_h *g,\n"
13096 "                       const char *device);\n"
13097 "\n"
13098 msgstr ""
13099
13100 # type: textblock
13101 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3592
13102 msgid ""
13103 "This command writes patterns over C<device> to make data retrieval more "
13104 "difficult."
13105 msgstr ""
13106
13107 # type: textblock
13108 #: ../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
13109 msgid ""
13110 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13111 "more details."
13112 msgstr ""
13113
13114 # type: textblock
13115 #: ../src/guestfs-actions.pod:5412 ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5449
13116 msgid "(Added in 1.0.52)"
13117 msgstr ""
13118
13119 # type: =head2
13120 #: ../src/guestfs-actions.pod:5414
13121 msgid "guestfs_scrub_file"
13122 msgstr ""
13123
13124 # type: verbatim
13125 #: ../src/guestfs-actions.pod:5416
13126 #, no-wrap
13127 msgid ""
13128 " int\n"
13129 " guestfs_scrub_file (guestfs_h *g,\n"
13130 "                     const char *file);\n"
13131 "\n"
13132 msgstr ""
13133
13134 # type: textblock
13135 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3605
13136 msgid ""
13137 "This command writes patterns over a file to make data retrieval more "
13138 "difficult."
13139 msgstr ""
13140
13141 # type: textblock
13142 #: ../src/guestfs-actions.pod:5423 ../fish/guestfish-actions.pod:3608
13143 msgid "The file is I<removed> after scrubbing."
13144 msgstr ""
13145
13146 # type: =head2
13147 #: ../src/guestfs-actions.pod:5432
13148 msgid "guestfs_scrub_freespace"
13149 msgstr ""
13150
13151 # type: verbatim
13152 #: ../src/guestfs-actions.pod:5434
13153 #, no-wrap
13154 msgid ""
13155 " int\n"
13156 " guestfs_scrub_freespace (guestfs_h *g,\n"
13157 "                          const char *dir);\n"
13158 "\n"
13159 msgstr ""
13160
13161 # type: textblock
13162 #: ../src/guestfs-actions.pod:5438
13163 msgid ""
13164 "This command creates the directory C<dir> and then fills it with files until "
13165 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13166 "and deletes them.  The intention is to scrub any free space on the partition "
13167 "containing C<dir>."
13168 msgstr ""
13169
13170 # type: =head2
13171 #: ../src/guestfs-actions.pod:5451
13172 msgid "guestfs_set_append"
13173 msgstr ""
13174
13175 # type: verbatim
13176 #: ../src/guestfs-actions.pod:5453
13177 #, no-wrap
13178 msgid ""
13179 " int\n"
13180 " guestfs_set_append (guestfs_h *g,\n"
13181 "                     const char *append);\n"
13182 "\n"
13183 msgstr ""
13184
13185 # type: textblock
13186 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3632
13187 msgid ""
13188 "This function is used to add additional options to the guest kernel command "
13189 "line."
13190 msgstr ""
13191
13192 # type: textblock
13193 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:3635
13194 msgid ""
13195 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13196 "environment variable."
13197 msgstr ""
13198
13199 # type: textblock
13200 #: ../src/guestfs-actions.pod:5463 ../fish/guestfish-actions.pod:3638
13201 msgid ""
13202 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13203 "(libguestfs always adds a few of its own)."
13204 msgstr ""
13205
13206 # type: =head2
13207 #: ../src/guestfs-actions.pod:5470
13208 msgid "guestfs_set_autosync"
13209 msgstr ""
13210
13211 # type: verbatim
13212 #: ../src/guestfs-actions.pod:5472
13213 #, no-wrap
13214 msgid ""
13215 " int\n"
13216 " guestfs_set_autosync (guestfs_h *g,\n"
13217 "                       int autosync);\n"
13218 "\n"
13219 msgstr ""
13220
13221 # type: textblock
13222 #: ../src/guestfs-actions.pod:5476
13223 msgid ""
13224 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13225 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13226 "the handle is closed (also if the program exits without closing handles)."
13227 msgstr ""
13228
13229 # type: textblock
13230 #: ../src/guestfs-actions.pod:5481 ../fish/guestfish-actions.pod:3652
13231 msgid ""
13232 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13233 "disabled by default)."
13234 msgstr ""
13235
13236 # type: =head2
13237 #: ../src/guestfs-actions.pod:5488
13238 msgid "guestfs_set_direct"
13239 msgstr ""
13240
13241 # type: verbatim
13242 #: ../src/guestfs-actions.pod:5490
13243 #, no-wrap
13244 msgid ""
13245 " int\n"
13246 " guestfs_set_direct (guestfs_h *g,\n"
13247 "                     int direct);\n"
13248 "\n"
13249 msgstr ""
13250
13251 # type: textblock
13252 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:3661
13253 msgid ""
13254 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13255 "passed directly through to the appliance once it is launched."
13256 msgstr ""
13257
13258 # type: textblock
13259 #: ../src/guestfs-actions.pod:5498
13260 msgid ""
13261 "One consequence of this is that log messages aren't caught by the library "
13262 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13263 "stdout."
13264 msgstr ""
13265
13266 # type: textblock
13267 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:3669
13268 msgid "You probably don't want to use this unless you know what you are doing."
13269 msgstr ""
13270
13271 # type: textblock
13272 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3672
13273 msgid "The default is disabled."
13274 msgstr ""
13275
13276 # type: =head2
13277 #: ../src/guestfs-actions.pod:5511
13278 msgid "guestfs_set_e2label"
13279 msgstr ""
13280
13281 # type: verbatim
13282 #: ../src/guestfs-actions.pod:5513
13283 #, no-wrap
13284 msgid ""
13285 " int\n"
13286 " guestfs_set_e2label (guestfs_h *g,\n"
13287 "                      const char *device,\n"
13288 "                      const char *label);\n"
13289 "\n"
13290 msgstr ""
13291
13292 # type: textblock
13293 #: ../src/guestfs-actions.pod:5518 ../fish/guestfish-actions.pod:3678
13294 msgid ""
13295 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13296 "C<label>.  Filesystem labels are limited to 16 characters."
13297 msgstr ""
13298
13299 # type: textblock
13300 #: ../src/guestfs-actions.pod:5522
13301 msgid ""
13302 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13303 "the existing label on a filesystem."
13304 msgstr ""
13305
13306 # type: =head2
13307 #: ../src/guestfs-actions.pod:5529
13308 msgid "guestfs_set_e2uuid"
13309 msgstr ""
13310
13311 # type: verbatim
13312 #: ../src/guestfs-actions.pod:5531
13313 #, no-wrap
13314 msgid ""
13315 " int\n"
13316 " guestfs_set_e2uuid (guestfs_h *g,\n"
13317 "                     const char *device,\n"
13318 "                     const char *uuid);\n"
13319 "\n"
13320 msgstr ""
13321
13322 # type: textblock
13323 #: ../src/guestfs-actions.pod:5536 ../fish/guestfish-actions.pod:3689
13324 msgid ""
13325 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13326 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13327 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13328 msgstr ""
13329
13330 # type: textblock
13331 #: ../src/guestfs-actions.pod:5541
13332 msgid ""
13333 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13334 "the existing UUID of a filesystem."
13335 msgstr ""
13336
13337 # type: =head2
13338 #: ../src/guestfs-actions.pod:5548
13339 msgid "guestfs_set_memsize"
13340 msgstr ""
13341
13342 # type: verbatim
13343 #: ../src/guestfs-actions.pod:5550
13344 #, no-wrap
13345 msgid ""
13346 " int\n"
13347 " guestfs_set_memsize (guestfs_h *g,\n"
13348 "                      int memsize);\n"
13349 "\n"
13350 msgstr ""
13351
13352 # type: textblock
13353 #: ../src/guestfs-actions.pod:5554
13354 msgid ""
13355 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13356 "This only has any effect if called before C<guestfs_launch>."
13357 msgstr ""
13358
13359 # type: textblock
13360 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3707
13361 msgid ""
13362 "You can also change this by setting the environment variable "
13363 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13364 msgstr ""
13365
13366 # type: =head2
13367 #: ../src/guestfs-actions.pod:5569
13368 msgid "guestfs_set_network"
13369 msgstr ""
13370
13371 # type: verbatim
13372 #: ../src/guestfs-actions.pod:5571
13373 #, no-wrap
13374 msgid ""
13375 " int\n"
13376 " guestfs_set_network (guestfs_h *g,\n"
13377 "                      int network);\n"
13378 "\n"
13379 msgstr ""
13380
13381 # type: textblock
13382 #: ../src/guestfs-actions.pod:5575 ../fish/guestfish-actions.pod:3720
13383 msgid ""
13384 "If C<network> is true, then the network is enabled in the libguestfs "
13385 "appliance.  The default is false."
13386 msgstr ""
13387
13388 # type: textblock
13389 #: ../src/guestfs-actions.pod:5578 ../fish/guestfish-actions.pod:3723
13390 msgid ""
13391 "This affects whether commands are able to access the network (see "
13392 "L<guestfs(3)/RUNNING COMMANDS>)."
13393 msgstr ""
13394
13395 # type: textblock
13396 #: ../src/guestfs-actions.pod:5581
13397 msgid ""
13398 "You must call this before calling C<guestfs_launch>, otherwise it has no "
13399 "effect."
13400 msgstr ""
13401
13402 # type: =head2
13403 #: ../src/guestfs-actions.pod:5588
13404 msgid "guestfs_set_path"
13405 msgstr ""
13406
13407 # type: verbatim
13408 #: ../src/guestfs-actions.pod:5590
13409 #, no-wrap
13410 msgid ""
13411 " int\n"
13412 " guestfs_set_path (guestfs_h *g,\n"
13413 "                   const char *searchpath);\n"
13414 "\n"
13415 msgstr ""
13416
13417 # type: textblock
13418 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3735
13419 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13420 msgstr ""
13421
13422 # type: textblock
13423 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:3737
13424 msgid ""
13425 "The default is C<$libdir/guestfs> unless overridden by setting "
13426 "C<LIBGUESTFS_PATH> environment variable."
13427 msgstr ""
13428
13429 # type: textblock
13430 #: ../src/guestfs-actions.pod:5599 ../fish/guestfish-actions.pod:3740
13431 msgid "Setting C<path> to C<NULL> restores the default path."
13432 msgstr ""
13433
13434 # type: =head2
13435 #: ../src/guestfs-actions.pod:5605
13436 msgid "guestfs_set_qemu"
13437 msgstr ""
13438
13439 # type: verbatim
13440 #: ../src/guestfs-actions.pod:5607
13441 #, no-wrap
13442 msgid ""
13443 " int\n"
13444 " guestfs_set_qemu (guestfs_h *g,\n"
13445 "                   const char *qemu);\n"
13446 "\n"
13447 msgstr ""
13448
13449 # type: textblock
13450 #: ../src/guestfs-actions.pod:5611 ../fish/guestfish-actions.pod:3748
13451 msgid "Set the qemu binary that we will use."
13452 msgstr ""
13453
13454 # type: textblock
13455 #: ../src/guestfs-actions.pod:5613 ../fish/guestfish-actions.pod:3750
13456 msgid "The default is chosen when the library was compiled by the configure script."
13457 msgstr ""
13458
13459 # type: textblock
13460 #: ../src/guestfs-actions.pod:5616 ../fish/guestfish-actions.pod:3753
13461 msgid ""
13462 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13463 "variable."
13464 msgstr ""
13465
13466 # type: textblock
13467 #: ../src/guestfs-actions.pod:5619 ../fish/guestfish-actions.pod:3756
13468 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13469 msgstr ""
13470
13471 # type: textblock
13472 #: ../src/guestfs-actions.pod:5621 ../fish/guestfish-actions.pod:3758
13473 msgid ""
13474 "Note that you should call this function as early as possible after creating "
13475 "the handle.  This is because some pre-launch operations depend on testing "
13476 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13477 "don't retest features, and so you might see inconsistent results.  Using the "
13478 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13479 "the qemu binary at the same time as the handle is created."
13480 msgstr ""
13481
13482 # type: =head2
13483 #: ../src/guestfs-actions.pod:5633
13484 msgid "guestfs_set_recovery_proc"
13485 msgstr ""
13486
13487 # type: verbatim
13488 #: ../src/guestfs-actions.pod:5635
13489 #, no-wrap
13490 msgid ""
13491 " int\n"
13492 " guestfs_set_recovery_proc (guestfs_h *g,\n"
13493 "                            int recoveryproc);\n"
13494 "\n"
13495 msgstr ""
13496
13497 # type: textblock
13498 #: ../src/guestfs-actions.pod:5639
13499 msgid ""
13500 "If this is called with the parameter C<false> then C<guestfs_launch> does "
13501 "not create a recovery process.  The purpose of the recovery process is to "
13502 "stop runaway qemu processes in the case where the main program aborts "
13503 "abruptly."
13504 msgstr ""
13505
13506 # type: textblock
13507 #: ../src/guestfs-actions.pod:5644
13508 msgid ""
13509 "This only has any effect if called before C<guestfs_launch>, and the default "
13510 "is true."
13511 msgstr ""
13512
13513 # type: textblock
13514 #: ../src/guestfs-actions.pod:5647 ../fish/guestfish-actions.pod:3780
13515 msgid ""
13516 "About the only time when you would want to disable this is if the main "
13517 "process will fork itself into the background (\"daemonize\" itself).  In "
13518 "this case the recovery process thinks that the main program has disappeared "
13519 "and so kills qemu, which is not very helpful."
13520 msgstr ""
13521
13522 # type: =head2
13523 #: ../src/guestfs-actions.pod:5657
13524 msgid "guestfs_set_selinux"
13525 msgstr ""
13526
13527 # type: verbatim
13528 #: ../src/guestfs-actions.pod:5659
13529 #, no-wrap
13530 msgid ""
13531 " int\n"
13532 " guestfs_set_selinux (guestfs_h *g,\n"
13533 "                      int selinux);\n"
13534 "\n"
13535 msgstr ""
13536
13537 # type: textblock
13538 #: ../src/guestfs-actions.pod:5663 ../fish/guestfish-actions.pod:3792
13539 msgid ""
13540 "This sets the selinux flag that is passed to the appliance at boot time.  "
13541 "The default is C<selinux=0> (disabled)."
13542 msgstr ""
13543
13544 # type: textblock
13545 #: ../src/guestfs-actions.pod:5666 ../fish/guestfish-actions.pod:3795
13546 msgid ""
13547 "Note that if SELinux is enabled, it is always in Permissive mode "
13548 "(C<enforcing=0>)."
13549 msgstr ""
13550
13551 # type: =head2
13552 #: ../src/guestfs-actions.pod:5676
13553 msgid "guestfs_set_trace"
13554 msgstr ""
13555
13556 # type: verbatim
13557 #: ../src/guestfs-actions.pod:5678
13558 #, no-wrap
13559 msgid ""
13560 " int\n"
13561 " guestfs_set_trace (guestfs_h *g,\n"
13562 "                    int trace);\n"
13563 "\n"
13564 msgstr ""
13565
13566 # type: textblock
13567 #: ../src/guestfs-actions.pod:5682 ../fish/guestfish-actions.pod:3807
13568 msgid ""
13569 "If the command trace flag is set to 1, then commands are printed on stderr "
13570 "before they are executed in a format which is very similar to the one used "
13571 "by guestfish.  In other words, you can run a program with this enabled, and "
13572 "you will get out a script which you can feed to guestfish to perform the "
13573 "same set of actions."
13574 msgstr ""
13575
13576 # type: textblock
13577 #: ../src/guestfs-actions.pod:5689 ../fish/guestfish-actions.pod:3814
13578 msgid ""
13579 "If you want to trace C API calls into libguestfs (and other libraries) then "
13580 "possibly a better way is to use the external ltrace(1) command."
13581 msgstr ""
13582
13583 # type: textblock
13584 #: ../src/guestfs-actions.pod:5693 ../fish/guestfish-actions.pod:3818
13585 msgid ""
13586 "Command traces are disabled unless the environment variable "
13587 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13588 msgstr ""
13589
13590 # type: =head2
13591 #: ../src/guestfs-actions.pod:5700
13592 msgid "guestfs_set_verbose"
13593 msgstr ""
13594
13595 # type: verbatim
13596 #: ../src/guestfs-actions.pod:5702
13597 #, no-wrap
13598 msgid ""
13599 " int\n"
13600 " guestfs_set_verbose (guestfs_h *g,\n"
13601 "                      int verbose);\n"
13602 "\n"
13603 msgstr ""
13604
13605 # type: textblock
13606 #: ../src/guestfs-actions.pod:5706 ../fish/guestfish-actions.pod:3827
13607 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
13608 msgstr ""
13609
13610 # type: textblock
13611 #: ../src/guestfs-actions.pod:5708 ../fish/guestfish-actions.pod:3829
13612 msgid ""
13613 "Verbose messages are disabled unless the environment variable "
13614 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13615 msgstr ""
13616
13617 # type: =head2
13618 #: ../src/guestfs-actions.pod:5715
13619 msgid "guestfs_setcon"
13620 msgstr ""
13621
13622 # type: verbatim
13623 #: ../src/guestfs-actions.pod:5717
13624 #, no-wrap
13625 msgid ""
13626 " int\n"
13627 " guestfs_setcon (guestfs_h *g,\n"
13628 "                 const char *context);\n"
13629 "\n"
13630 msgstr ""
13631
13632 # type: textblock
13633 #: ../src/guestfs-actions.pod:5721 ../fish/guestfish-actions.pod:3836
13634 msgid ""
13635 "This sets the SELinux security context of the daemon to the string "
13636 "C<context>."
13637 msgstr ""
13638
13639 # type: textblock
13640 #: ../src/guestfs-actions.pod:5724 ../fish/guestfish-actions.pod:3839
13641 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13642 msgstr ""
13643
13644 # type: =head2
13645 #: ../src/guestfs-actions.pod:5730
13646 msgid "guestfs_setxattr"
13647 msgstr ""
13648
13649 # type: verbatim
13650 #: ../src/guestfs-actions.pod:5732
13651 #, no-wrap
13652 msgid ""
13653 " int\n"
13654 " guestfs_setxattr (guestfs_h *g,\n"
13655 "                   const char *xattr,\n"
13656 "                   const char *val,\n"
13657 "                   int vallen,\n"
13658 "                   const char *path);\n"
13659 "\n"
13660 msgstr ""
13661
13662 # type: textblock
13663 #: ../src/guestfs-actions.pod:5739 ../fish/guestfish-actions.pod:3845
13664 msgid ""
13665 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13666 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13667 msgstr ""
13668
13669 # type: textblock
13670 #: ../src/guestfs-actions.pod:5743
13671 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
13672 msgstr ""
13673
13674 # type: =head2
13675 #: ../src/guestfs-actions.pod:5749
13676 msgid "guestfs_sfdisk"
13677 msgstr ""
13678
13679 # type: verbatim
13680 #: ../src/guestfs-actions.pod:5751
13681 #, no-wrap
13682 msgid ""
13683 " int\n"
13684 " guestfs_sfdisk (guestfs_h *g,\n"
13685 "                 const char *device,\n"
13686 "                 int cyls,\n"
13687 "                 int heads,\n"
13688 "                 int sectors,\n"
13689 "                 char *const *lines);\n"
13690 "\n"
13691 msgstr ""
13692
13693 # type: textblock
13694 #: ../src/guestfs-actions.pod:5759 ../fish/guestfish-actions.pod:3855
13695 msgid ""
13696 "This is a direct interface to the L<sfdisk(8)> program for creating "
13697 "partitions on block devices."
13698 msgstr ""
13699
13700 # type: textblock
13701 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3858
13702 msgid "C<device> should be a block device, for example C</dev/sda>."
13703 msgstr ""
13704
13705 # type: textblock
13706 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:3860
13707 msgid ""
13708 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13709 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13710 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13711 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13712 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13713 "the kernel) cannot work out the right geometry and you will need to tell it."
13714 msgstr ""
13715
13716 # type: textblock
13717 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:3868
13718 msgid ""
13719 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13720 "refer to the L<sfdisk(8)> manpage."
13721 msgstr ""
13722
13723 # type: textblock
13724 #: ../src/guestfs-actions.pod:5775 ../fish/guestfish-actions.pod:3871
13725 msgid ""
13726 "To create a single partition occupying the whole disk, you would pass "
13727 "C<lines> as a single element list, when the single element being the string "
13728 "C<,> (comma)."
13729 msgstr ""
13730
13731 # type: textblock
13732 #: ../src/guestfs-actions.pod:5779
13733 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
13734 msgstr ""
13735
13736 # type: =head2
13737 #: ../src/guestfs-actions.pod:5789
13738 msgid "guestfs_sfdiskM"
13739 msgstr ""
13740
13741 # type: verbatim
13742 #: ../src/guestfs-actions.pod:5791
13743 #, no-wrap
13744 msgid ""
13745 " int\n"
13746 " guestfs_sfdiskM (guestfs_h *g,\n"
13747 "                  const char *device,\n"
13748 "                  char *const *lines);\n"
13749 "\n"
13750 msgstr ""
13751
13752 # type: textblock
13753 #: ../src/guestfs-actions.pod:5796
13754 msgid ""
13755 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
13756 "partition sizes are specified in megabytes only (rounded to the nearest "
13757 "cylinder) and you don't need to specify the cyls, heads and sectors "
13758 "parameters which were rarely if ever used anyway."
13759 msgstr ""
13760
13761 # type: textblock
13762 #: ../src/guestfs-actions.pod:5802
13763 msgid ""
13764 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
13765 "C<guestfs_part_disk>"
13766 msgstr ""
13767
13768 # type: =head2
13769 #: ../src/guestfs-actions.pod:5812
13770 msgid "guestfs_sfdisk_N"
13771 msgstr ""
13772
13773 # type: verbatim
13774 #: ../src/guestfs-actions.pod:5814
13775 #, no-wrap
13776 msgid ""
13777 " int\n"
13778 " guestfs_sfdisk_N (guestfs_h *g,\n"
13779 "                   const char *device,\n"
13780 "                   int partnum,\n"
13781 "                   int cyls,\n"
13782 "                   int heads,\n"
13783 "                   int sectors,\n"
13784 "                   const char *line);\n"
13785 "\n"
13786 msgstr ""
13787
13788 # type: textblock
13789 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3901
13790 msgid ""
13791 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13792 "(note: C<n> counts from 1)."
13793 msgstr ""
13794
13795 # type: textblock
13796 #: ../src/guestfs-actions.pod:5826
13797 msgid ""
13798 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
13799 "for the cyls/heads/sectors parameters."
13800 msgstr ""
13801
13802 # type: textblock
13803 #: ../src/guestfs-actions.pod:5829
13804 msgid "See also: C<guestfs_part_add>"
13805 msgstr ""
13806
13807 # type: =head2
13808 #: ../src/guestfs-actions.pod:5838
13809 msgid "guestfs_sfdisk_disk_geometry"
13810 msgstr ""
13811
13812 # type: verbatim
13813 #: ../src/guestfs-actions.pod:5840
13814 #, no-wrap
13815 msgid ""
13816 " char *\n"
13817 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
13818 "                               const char *device);\n"
13819 "\n"
13820 msgstr ""
13821
13822 # type: textblock
13823 #: ../src/guestfs-actions.pod:5844
13824 msgid ""
13825 "This displays the disk geometry of C<device> read from the partition table.  "
13826 "Especially in the case where the underlying block device has been resized, "
13827 "this can be different from the kernel's idea of the geometry (see "
13828 "C<guestfs_sfdisk_kernel_geometry>)."
13829 msgstr ""
13830
13831 # type: textblock
13832 #: ../src/guestfs-actions.pod:5849 ../src/guestfs-actions.pod:5865 ../fish/guestfish-actions.pod:3921 ../fish/guestfish-actions.pod:3930
13833 msgid "The result is in human-readable format, and not designed to be parsed."
13834 msgstr ""
13835
13836 # type: =head2
13837 #: ../src/guestfs-actions.pod:5857
13838 msgid "guestfs_sfdisk_kernel_geometry"
13839 msgstr ""
13840
13841 # type: verbatim
13842 #: ../src/guestfs-actions.pod:5859
13843 #, no-wrap
13844 msgid ""
13845 " char *\n"
13846 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
13847 "                                 const char *device);\n"
13848 "\n"
13849 msgstr ""
13850
13851 # type: textblock
13852 #: ../src/guestfs-actions.pod:5863 ../fish/guestfish-actions.pod:3928
13853 msgid "This displays the kernel's idea of the geometry of C<device>."
13854 msgstr ""
13855
13856 # type: =head2
13857 #: ../src/guestfs-actions.pod:5873
13858 msgid "guestfs_sfdisk_l"
13859 msgstr ""
13860
13861 # type: verbatim
13862 #: ../src/guestfs-actions.pod:5875
13863 #, no-wrap
13864 msgid ""
13865 " char *\n"
13866 " guestfs_sfdisk_l (guestfs_h *g,\n"
13867 "                   const char *device);\n"
13868 "\n"
13869 msgstr ""
13870
13871 # type: textblock
13872 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3937
13873 msgid ""
13874 "This displays the partition table on C<device>, in the human-readable output "
13875 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13876 msgstr ""
13877
13878 # type: textblock
13879 #: ../src/guestfs-actions.pod:5883
13880 msgid "See also: C<guestfs_part_list>"
13881 msgstr ""
13882
13883 # type: =head2
13884 #: ../src/guestfs-actions.pod:5890
13885 msgid "guestfs_sh"
13886 msgstr ""
13887
13888 # type: verbatim
13889 #: ../src/guestfs-actions.pod:5892
13890 #, no-wrap
13891 msgid ""
13892 " char *\n"
13893 " guestfs_sh (guestfs_h *g,\n"
13894 "             const char *command);\n"
13895 "\n"
13896 msgstr ""
13897
13898 # type: textblock
13899 #: ../src/guestfs-actions.pod:5896 ../fish/guestfish-actions.pod:3947
13900 msgid ""
13901 "This call runs a command from the guest filesystem via the guest's "
13902 "C</bin/sh>."
13903 msgstr ""
13904
13905 # type: textblock
13906 #: ../src/guestfs-actions.pod:5899
13907 msgid "This is like C<guestfs_command>, but passes the command to:"
13908 msgstr ""
13909
13910 # type: verbatim
13911 #: ../src/guestfs-actions.pod:5901 ../fish/guestfish-actions.pod:3952
13912 #, no-wrap
13913 msgid ""
13914 " /bin/sh -c \"command\"\n"
13915 "\n"
13916 msgstr ""
13917
13918 # type: textblock
13919 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3954
13920 msgid ""
13921 "Depending on the guest's shell, this usually results in wildcards being "
13922 "expanded, shell expressions being interpolated and so on."
13923 msgstr ""
13924
13925 # type: textblock
13926 #: ../src/guestfs-actions.pod:5907
13927 msgid "All the provisos about C<guestfs_command> apply to this call."
13928 msgstr ""
13929
13930 # type: =head2
13931 #: ../src/guestfs-actions.pod:5914
13932 msgid "guestfs_sh_lines"
13933 msgstr ""
13934
13935 # type: verbatim
13936 #: ../src/guestfs-actions.pod:5916
13937 #, no-wrap
13938 msgid ""
13939 " char **\n"
13940 " guestfs_sh_lines (guestfs_h *g,\n"
13941 "                   const char *command);\n"
13942 "\n"
13943 msgstr ""
13944
13945 # type: textblock
13946 #: ../src/guestfs-actions.pod:5920
13947 msgid ""
13948 "This is the same as C<guestfs_sh>, but splits the result into a list of "
13949 "lines."
13950 msgstr ""
13951
13952 # type: textblock
13953 #: ../src/guestfs-actions.pod:5923
13954 msgid "See also: C<guestfs_command_lines>"
13955 msgstr ""
13956
13957 # type: =head2
13958 #: ../src/guestfs-actions.pod:5931
13959 msgid "guestfs_sleep"
13960 msgstr ""
13961
13962 # type: verbatim
13963 #: ../src/guestfs-actions.pod:5933
13964 #, no-wrap
13965 msgid ""
13966 " int\n"
13967 " guestfs_sleep (guestfs_h *g,\n"
13968 "                int secs);\n"
13969 "\n"
13970 msgstr ""
13971
13972 # type: textblock
13973 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3973
13974 msgid "Sleep for C<secs> seconds."
13975 msgstr ""
13976
13977 # type: textblock
13978 #: ../src/guestfs-actions.pod:5941
13979 msgid "(Added in 1.0.41)"
13980 msgstr ""
13981
13982 # type: =head2
13983 #: ../src/guestfs-actions.pod:5943 ../src/guestfs-structs.pod:109
13984 msgid "guestfs_stat"
13985 msgstr ""
13986
13987 # type: verbatim
13988 #: ../src/guestfs-actions.pod:5945
13989 #, no-wrap
13990 msgid ""
13991 " struct guestfs_stat *\n"
13992 " guestfs_stat (guestfs_h *g,\n"
13993 "               const char *path);\n"
13994 "\n"
13995 msgstr ""
13996
13997 # type: textblock
13998 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:3981
13999 msgid "This is the same as the C<stat(2)> system call."
14000 msgstr ""
14001
14002 # type: =head2
14003 #: ../src/guestfs-actions.pod:5959 ../src/guestfs-structs.pod:135
14004 msgid "guestfs_statvfs"
14005 msgstr ""
14006
14007 # type: verbatim
14008 #: ../src/guestfs-actions.pod:5961
14009 #, no-wrap
14010 msgid ""
14011 " struct guestfs_statvfs *\n"
14012 " guestfs_statvfs (guestfs_h *g,\n"
14013 "                  const char *path);\n"
14014 "\n"
14015 msgstr ""
14016
14017 # type: textblock
14018 #: ../src/guestfs-actions.pod:5965 ../fish/guestfish-actions.pod:3987
14019 msgid ""
14020 "Returns file system statistics for any mounted file system.  C<path> should "
14021 "be a file or directory in the mounted file system (typically it is the mount "
14022 "point itself, but it doesn't need to be)."
14023 msgstr ""
14024
14025 # type: textblock
14026 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:3991
14027 msgid "This is the same as the C<statvfs(2)> system call."
14028 msgstr ""
14029
14030 # type: textblock
14031 #: ../src/guestfs-actions.pod:5971
14032 msgid ""
14033 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14034 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14035 msgstr ""
14036
14037 # type: =head2
14038 #: ../src/guestfs-actions.pod:5977
14039 msgid "guestfs_strings"
14040 msgstr ""
14041
14042 # type: verbatim
14043 #: ../src/guestfs-actions.pod:5979
14044 #, no-wrap
14045 msgid ""
14046 " char **\n"
14047 " guestfs_strings (guestfs_h *g,\n"
14048 "                  const char *path);\n"
14049 "\n"
14050 msgstr ""
14051
14052 # type: textblock
14053 #: ../src/guestfs-actions.pod:5983 ../fish/guestfish-actions.pod:3997
14054 msgid ""
14055 "This runs the L<strings(1)> command on a file and returns the list of "
14056 "printable strings found."
14057 msgstr ""
14058
14059 # type: =head2
14060 #: ../src/guestfs-actions.pod:5995
14061 msgid "guestfs_strings_e"
14062 msgstr ""
14063
14064 # type: verbatim
14065 #: ../src/guestfs-actions.pod:5997
14066 #, no-wrap
14067 msgid ""
14068 " char **\n"
14069 " guestfs_strings_e (guestfs_h *g,\n"
14070 "                    const char *encoding,\n"
14071 "                    const char *path);\n"
14072 "\n"
14073 msgstr ""
14074
14075 # type: textblock
14076 #: ../src/guestfs-actions.pod:6002
14077 msgid ""
14078 "This is like the C<guestfs_strings> command, but allows you to specify the "
14079 "encoding of strings that are looked for in the source file C<path>."
14080 msgstr ""
14081
14082 # type: textblock
14083 #: ../src/guestfs-actions.pod:6006 ../fish/guestfish-actions.pod:4011
14084 msgid "Allowed encodings are:"
14085 msgstr ""
14086
14087 # type: =item
14088 #: ../src/guestfs-actions.pod:6010 ../fish/guestfish-actions.pod:4015
14089 msgid "s"
14090 msgstr ""
14091
14092 # type: textblock
14093 #: ../src/guestfs-actions.pod:6012
14094 msgid ""
14095 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14096 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14097 msgstr ""
14098
14099 # type: =item
14100 #: ../src/guestfs-actions.pod:6015 ../fish/guestfish-actions.pod:4020
14101 msgid "S"
14102 msgstr ""
14103
14104 # type: textblock
14105 #: ../src/guestfs-actions.pod:6017 ../fish/guestfish-actions.pod:4022
14106 msgid "Single 8-bit-byte characters."
14107 msgstr ""
14108
14109 # type: =item
14110 #: ../src/guestfs-actions.pod:6019 ../fish/guestfish-actions.pod:4024
14111 msgid "b"
14112 msgstr ""
14113
14114 # type: textblock
14115 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:4026
14116 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14117 msgstr ""
14118
14119 # type: =item
14120 #: ../src/guestfs-actions.pod:6024 ../fish/guestfish-actions.pod:4029
14121 msgid "l (lower case letter L)"
14122 msgstr ""
14123
14124 # type: textblock
14125 #: ../src/guestfs-actions.pod:6026 ../fish/guestfish-actions.pod:4031
14126 msgid ""
14127 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14128 "examining binaries in Windows guests."
14129 msgstr ""
14130
14131 # type: =item
14132 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4034
14133 msgid "B"
14134 msgstr ""
14135
14136 # type: textblock
14137 #: ../src/guestfs-actions.pod:6031 ../fish/guestfish-actions.pod:4036
14138 msgid "32-bit big endian such as UCS-4BE."
14139 msgstr ""
14140
14141 # type: =item
14142 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4038
14143 msgid "L"
14144 msgstr ""
14145
14146 # type: textblock
14147 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4040
14148 msgid "32-bit little endian such as UCS-4LE."
14149 msgstr ""
14150
14151 # type: textblock
14152 #: ../src/guestfs-actions.pod:6039 ../fish/guestfish-actions.pod:4044
14153 msgid "The returned strings are transcoded to UTF-8."
14154 msgstr ""
14155
14156 # type: =head2
14157 #: ../src/guestfs-actions.pod:6050
14158 msgid "guestfs_swapoff_device"
14159 msgstr ""
14160
14161 # type: verbatim
14162 #: ../src/guestfs-actions.pod:6052
14163 #, no-wrap
14164 msgid ""
14165 " int\n"
14166 " guestfs_swapoff_device (guestfs_h *g,\n"
14167 "                         const char *device);\n"
14168 "\n"
14169 msgstr ""
14170
14171 # type: textblock
14172 #: ../src/guestfs-actions.pod:6056
14173 msgid ""
14174 "This command disables the libguestfs appliance swap device or partition "
14175 "named C<device>.  See C<guestfs_swapon_device>."
14176 msgstr ""
14177
14178 # type: =head2
14179 #: ../src/guestfs-actions.pod:6064
14180 msgid "guestfs_swapoff_file"
14181 msgstr ""
14182
14183 # type: verbatim
14184 #: ../src/guestfs-actions.pod:6066
14185 #, no-wrap
14186 msgid ""
14187 " int\n"
14188 " guestfs_swapoff_file (guestfs_h *g,\n"
14189 "                       const char *file);\n"
14190 "\n"
14191 msgstr ""
14192
14193 # type: textblock
14194 #: ../src/guestfs-actions.pod:6070 ../fish/guestfish-actions.pod:4061
14195 msgid "This command disables the libguestfs appliance swap on file."
14196 msgstr ""
14197
14198 # type: =head2
14199 #: ../src/guestfs-actions.pod:6076
14200 msgid "guestfs_swapoff_label"
14201 msgstr ""
14202
14203 # type: verbatim
14204 #: ../src/guestfs-actions.pod:6078
14205 #, no-wrap
14206 msgid ""
14207 " int\n"
14208 " guestfs_swapoff_label (guestfs_h *g,\n"
14209 "                        const char *label);\n"
14210 "\n"
14211 msgstr ""
14212
14213 # type: textblock
14214 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4067
14215 msgid ""
14216 "This command disables the libguestfs appliance swap on labeled swap "
14217 "partition."
14218 msgstr ""
14219
14220 # type: =head2
14221 #: ../src/guestfs-actions.pod:6089
14222 msgid "guestfs_swapoff_uuid"
14223 msgstr ""
14224
14225 # type: verbatim
14226 #: ../src/guestfs-actions.pod:6091
14227 #, no-wrap
14228 msgid ""
14229 " int\n"
14230 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14231 "                       const char *uuid);\n"
14232 "\n"
14233 msgstr ""
14234
14235 # type: textblock
14236 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4074
14237 msgid ""
14238 "This command disables the libguestfs appliance swap partition with the given "
14239 "UUID."
14240 msgstr ""
14241
14242 # type: =head2
14243 #: ../src/guestfs-actions.pod:6102
14244 msgid "guestfs_swapon_device"
14245 msgstr ""
14246
14247 # type: verbatim
14248 #: ../src/guestfs-actions.pod:6104
14249 #, no-wrap
14250 msgid ""
14251 " int\n"
14252 " guestfs_swapon_device (guestfs_h *g,\n"
14253 "                        const char *device);\n"
14254 "\n"
14255 msgstr ""
14256
14257 # type: textblock
14258 #: ../src/guestfs-actions.pod:6108
14259 msgid ""
14260 "This command enables the libguestfs appliance to use the swap device or "
14261 "partition named C<device>.  The increased memory is made available for all "
14262 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14263 msgstr ""
14264
14265 # type: textblock
14266 #: ../src/guestfs-actions.pod:6113 ../fish/guestfish-actions.pod:4086
14267 msgid ""
14268 "Note that you should not swap to existing guest swap partitions unless you "
14269 "know what you are doing.  They may contain hibernation information, or other "
14270 "information that the guest doesn't want you to trash.  You also risk leaking "
14271 "information about the host to the guest this way.  Instead, attach a new "
14272 "host device to the guest and swap on that."
14273 msgstr ""
14274
14275 # type: =head2
14276 #: ../src/guestfs-actions.pod:6124
14277 msgid "guestfs_swapon_file"
14278 msgstr ""
14279
14280 # type: verbatim
14281 #: ../src/guestfs-actions.pod:6126
14282 #, no-wrap
14283 msgid ""
14284 " int\n"
14285 " guestfs_swapon_file (guestfs_h *g,\n"
14286 "                      const char *file);\n"
14287 "\n"
14288 msgstr ""
14289
14290 # type: textblock
14291 #: ../src/guestfs-actions.pod:6130
14292 msgid ""
14293 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14294 "notes."
14295 msgstr ""
14296
14297 # type: =head2
14298 #: ../src/guestfs-actions.pod:6137
14299 msgid "guestfs_swapon_label"
14300 msgstr ""
14301
14302 # type: verbatim
14303 #: ../src/guestfs-actions.pod:6139
14304 #, no-wrap
14305 msgid ""
14306 " int\n"
14307 " guestfs_swapon_label (guestfs_h *g,\n"
14308 "                       const char *label);\n"
14309 "\n"
14310 msgstr ""
14311
14312 # type: textblock
14313 #: ../src/guestfs-actions.pod:6143
14314 msgid ""
14315 "This command enables swap to a labeled swap partition.  See "
14316 "C<guestfs_swapon_device> for other notes."
14317 msgstr ""
14318
14319 # type: =head2
14320 #: ../src/guestfs-actions.pod:6150
14321 msgid "guestfs_swapon_uuid"
14322 msgstr ""
14323
14324 # type: verbatim
14325 #: ../src/guestfs-actions.pod:6152
14326 #, no-wrap
14327 msgid ""
14328 " int\n"
14329 " guestfs_swapon_uuid (guestfs_h *g,\n"
14330 "                      const char *uuid);\n"
14331 "\n"
14332 msgstr ""
14333
14334 # type: textblock
14335 #: ../src/guestfs-actions.pod:6156
14336 msgid ""
14337 "This command enables swap to a swap partition with the given UUID.  See "
14338 "C<guestfs_swapon_device> for other notes."
14339 msgstr ""
14340
14341 # type: =head2
14342 #: ../src/guestfs-actions.pod:6163
14343 msgid "guestfs_sync"
14344 msgstr ""
14345
14346 # type: verbatim
14347 #: ../src/guestfs-actions.pod:6165
14348 #, no-wrap
14349 msgid ""
14350 " int\n"
14351 " guestfs_sync (guestfs_h *g);\n"
14352 "\n"
14353 msgstr ""
14354
14355 # type: textblock
14356 #: ../src/guestfs-actions.pod:6168 ../fish/guestfish-actions.pod:4118
14357 msgid ""
14358 "This syncs the disk, so that any writes are flushed through to the "
14359 "underlying disk image."
14360 msgstr ""
14361
14362 # type: textblock
14363 #: ../src/guestfs-actions.pod:6171 ../fish/guestfish-actions.pod:4121
14364 msgid ""
14365 "You should always call this if you have modified a disk image, before "
14366 "closing the handle."
14367 msgstr ""
14368
14369 # type: =head2
14370 #: ../src/guestfs-actions.pod:6178
14371 msgid "guestfs_tail"
14372 msgstr ""
14373
14374 # type: verbatim
14375 #: ../src/guestfs-actions.pod:6180
14376 #, no-wrap
14377 msgid ""
14378 " char **\n"
14379 " guestfs_tail (guestfs_h *g,\n"
14380 "               const char *path);\n"
14381 "\n"
14382 msgstr ""
14383
14384 # type: textblock
14385 #: ../src/guestfs-actions.pod:6184 ../fish/guestfish-actions.pod:4128
14386 msgid "This command returns up to the last 10 lines of a file as a list of strings."
14387 msgstr ""
14388
14389 # type: =head2
14390 #: ../src/guestfs-actions.pod:6196
14391 msgid "guestfs_tail_n"
14392 msgstr ""
14393
14394 # type: verbatim
14395 #: ../src/guestfs-actions.pod:6198
14396 #, no-wrap
14397 msgid ""
14398 " char **\n"
14399 " guestfs_tail_n (guestfs_h *g,\n"
14400 "                 int nrlines,\n"
14401 "                 const char *path);\n"
14402 "\n"
14403 msgstr ""
14404
14405 # type: textblock
14406 #: ../src/guestfs-actions.pod:6203 ../fish/guestfish-actions.pod:4138
14407 msgid ""
14408 "If the parameter C<nrlines> is a positive number, this returns the last "
14409 "C<nrlines> lines of the file C<path>."
14410 msgstr ""
14411
14412 # type: textblock
14413 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4141
14414 msgid ""
14415 "If the parameter C<nrlines> is a negative number, this returns lines from "
14416 "the file C<path>, starting with the C<-nrlines>th line."
14417 msgstr ""
14418
14419 # type: =head2
14420 #: ../src/guestfs-actions.pod:6220
14421 msgid "guestfs_tar_in"
14422 msgstr ""
14423
14424 # type: verbatim
14425 #: ../src/guestfs-actions.pod:6222
14426 #, no-wrap
14427 msgid ""
14428 " int\n"
14429 " guestfs_tar_in (guestfs_h *g,\n"
14430 "                 const char *tarfile,\n"
14431 "                 const char *directory);\n"
14432 "\n"
14433 msgstr ""
14434
14435 # type: textblock
14436 #: ../src/guestfs-actions.pod:6227 ../fish/guestfish-actions.pod:4153
14437 msgid ""
14438 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14439 "tar file) into C<directory>."
14440 msgstr ""
14441
14442 # type: textblock
14443 #: ../src/guestfs-actions.pod:6230
14444 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
14445 msgstr ""
14446
14447 # type: textblock
14448 #: ../src/guestfs-actions.pod:6235 ../src/guestfs-actions.pod:6252 ../src/guestfs-actions.pod:6268 ../src/guestfs-actions.pod:6284
14449 msgid "(Added in 1.0.3)"
14450 msgstr ""
14451
14452 # type: =head2
14453 #: ../src/guestfs-actions.pod:6237
14454 msgid "guestfs_tar_out"
14455 msgstr ""
14456
14457 # type: verbatim
14458 #: ../src/guestfs-actions.pod:6239
14459 #, no-wrap
14460 msgid ""
14461 " int\n"
14462 " guestfs_tar_out (guestfs_h *g,\n"
14463 "                  const char *directory,\n"
14464 "                  const char *tarfile);\n"
14465 "\n"
14466 msgstr ""
14467
14468 # type: textblock
14469 #: ../src/guestfs-actions.pod:6244 ../fish/guestfish-actions.pod:4165
14470 msgid ""
14471 "This command packs the contents of C<directory> and downloads it to local "
14472 "file C<tarfile>."
14473 msgstr ""
14474
14475 # type: textblock
14476 #: ../src/guestfs-actions.pod:6247
14477 msgid ""
14478 "To download a compressed tarball, use C<guestfs_tgz_out> or "
14479 "C<guestfs_txz_out>."
14480 msgstr ""
14481
14482 # type: =head2
14483 #: ../src/guestfs-actions.pod:6254
14484 msgid "guestfs_tgz_in"
14485 msgstr ""
14486
14487 # type: verbatim
14488 #: ../src/guestfs-actions.pod:6256
14489 #, no-wrap
14490 msgid ""
14491 " int\n"
14492 " guestfs_tgz_in (guestfs_h *g,\n"
14493 "                 const char *tarball,\n"
14494 "                 const char *directory);\n"
14495 "\n"
14496 msgstr ""
14497
14498 # type: textblock
14499 #: ../src/guestfs-actions.pod:6261 ../fish/guestfish-actions.pod:4177
14500 msgid ""
14501 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14502 "tar file) into C<directory>."
14503 msgstr ""
14504
14505 # type: textblock
14506 #: ../src/guestfs-actions.pod:6264
14507 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
14508 msgstr ""
14509
14510 # type: =head2
14511 #: ../src/guestfs-actions.pod:6270
14512 msgid "guestfs_tgz_out"
14513 msgstr ""
14514
14515 # type: verbatim
14516 #: ../src/guestfs-actions.pod:6272
14517 #, no-wrap
14518 msgid ""
14519 " int\n"
14520 " guestfs_tgz_out (guestfs_h *g,\n"
14521 "                  const char *directory,\n"
14522 "                  const char *tarball);\n"
14523 "\n"
14524 msgstr ""
14525
14526 # type: textblock
14527 #: ../src/guestfs-actions.pod:6277 ../fish/guestfish-actions.pod:4188
14528 msgid ""
14529 "This command packs the contents of C<directory> and downloads it to local "
14530 "file C<tarball>."
14531 msgstr ""
14532
14533 # type: textblock
14534 #: ../src/guestfs-actions.pod:6280
14535 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
14536 msgstr ""
14537
14538 # type: =head2
14539 #: ../src/guestfs-actions.pod:6286
14540 msgid "guestfs_touch"
14541 msgstr ""
14542
14543 # type: verbatim
14544 #: ../src/guestfs-actions.pod:6288
14545 #, no-wrap
14546 msgid ""
14547 " int\n"
14548 " guestfs_touch (guestfs_h *g,\n"
14549 "                const char *path);\n"
14550 "\n"
14551 msgstr ""
14552
14553 # type: textblock
14554 #: ../src/guestfs-actions.pod:6292 ../fish/guestfish-actions.pod:4199
14555 msgid ""
14556 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14557 "timestamps on a file, or, if the file does not exist, to create a new "
14558 "zero-length file."
14559 msgstr ""
14560
14561 # type: textblock
14562 #: ../src/guestfs-actions.pod:6296 ../fish/guestfish-actions.pod:4203
14563 msgid ""
14564 "This command only works on regular files, and will fail on other file types "
14565 "such as directories, symbolic links, block special etc."
14566 msgstr ""
14567
14568 # type: =head2
14569 #: ../src/guestfs-actions.pod:6303
14570 msgid "guestfs_truncate"
14571 msgstr ""
14572
14573 # type: verbatim
14574 #: ../src/guestfs-actions.pod:6305
14575 #, no-wrap
14576 msgid ""
14577 " int\n"
14578 " guestfs_truncate (guestfs_h *g,\n"
14579 "                   const char *path);\n"
14580 "\n"
14581 msgstr ""
14582
14583 # type: textblock
14584 #: ../src/guestfs-actions.pod:6309 ../fish/guestfish-actions.pod:4210
14585 msgid ""
14586 "This command truncates C<path> to a zero-length file.  The file must exist "
14587 "already."
14588 msgstr ""
14589
14590 # type: =head2
14591 #: ../src/guestfs-actions.pod:6316
14592 msgid "guestfs_truncate_size"
14593 msgstr ""
14594
14595 # type: verbatim
14596 #: ../src/guestfs-actions.pod:6318
14597 #, no-wrap
14598 msgid ""
14599 " int\n"
14600 " guestfs_truncate_size (guestfs_h *g,\n"
14601 "                        const char *path,\n"
14602 "                        int64_t size);\n"
14603 "\n"
14604 msgstr ""
14605
14606 # type: textblock
14607 #: ../src/guestfs-actions.pod:6323 ../fish/guestfish-actions.pod:4217
14608 msgid ""
14609 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14610 "already."
14611 msgstr ""
14612
14613 # type: textblock
14614 #: ../src/guestfs-actions.pod:6326
14615 msgid ""
14616 "If the current file size is less than C<size> then the file is extended to "
14617 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14618 "blocks are not allocated for the file until you write to it).  To create a "
14619 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
14620 msgstr ""
14621
14622 # type: =head2
14623 #: ../src/guestfs-actions.pod:6336
14624 msgid "guestfs_tune2fs_l"
14625 msgstr ""
14626
14627 # type: verbatim
14628 #: ../src/guestfs-actions.pod:6338
14629 #, no-wrap
14630 msgid ""
14631 " char **\n"
14632 " guestfs_tune2fs_l (guestfs_h *g,\n"
14633 "                    const char *device);\n"
14634 "\n"
14635 msgstr ""
14636
14637 # type: textblock
14638 #: ../src/guestfs-actions.pod:6342 ../fish/guestfish-actions.pod:4230
14639 msgid ""
14640 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14641 "C<device>."
14642 msgstr ""
14643
14644 # type: textblock
14645 #: ../src/guestfs-actions.pod:6345 ../fish/guestfish-actions.pod:4233
14646 msgid ""
14647 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14648 "for more details.  The list of fields returned isn't clearly defined, and "
14649 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14650 "and the filesystem itself."
14651 msgstr ""
14652
14653 # type: =head2
14654 #: ../src/guestfs-actions.pod:6358
14655 msgid "guestfs_txz_in"
14656 msgstr ""
14657
14658 # type: verbatim
14659 #: ../src/guestfs-actions.pod:6360
14660 #, no-wrap
14661 msgid ""
14662 " int\n"
14663 " guestfs_txz_in (guestfs_h *g,\n"
14664 "                 const char *tarball,\n"
14665 "                 const char *directory);\n"
14666 "\n"
14667 msgstr ""
14668
14669 # type: textblock
14670 #: ../src/guestfs-actions.pod:6365 ../fish/guestfish-actions.pod:4242
14671 msgid ""
14672 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14673 "tar file) into C<directory>."
14674 msgstr ""
14675
14676 # type: =head2
14677 #: ../src/guestfs-actions.pod:6372
14678 msgid "guestfs_txz_out"
14679 msgstr ""
14680
14681 # type: verbatim
14682 #: ../src/guestfs-actions.pod:6374
14683 #, no-wrap
14684 msgid ""
14685 " int\n"
14686 " guestfs_txz_out (guestfs_h *g,\n"
14687 "                  const char *directory,\n"
14688 "                  const char *tarball);\n"
14689 "\n"
14690 msgstr ""
14691
14692 # type: textblock
14693 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4251
14694 msgid ""
14695 "This command packs the contents of C<directory> and downloads it to local "
14696 "file C<tarball> (as an xz compressed tar archive)."
14697 msgstr ""
14698
14699 # type: =head2
14700 #: ../src/guestfs-actions.pod:6386
14701 msgid "guestfs_umask"
14702 msgstr ""
14703
14704 # type: verbatim
14705 #: ../src/guestfs-actions.pod:6388
14706 #, no-wrap
14707 msgid ""
14708 " int\n"
14709 " guestfs_umask (guestfs_h *g,\n"
14710 "                int mask);\n"
14711 "\n"
14712 msgstr ""
14713
14714 # type: textblock
14715 #: ../src/guestfs-actions.pod:6392 ../fish/guestfish-actions.pod:4260
14716 msgid ""
14717 "This function sets the mask used for creating new files and device nodes to "
14718 "C<mask & 0777>."
14719 msgstr ""
14720
14721 # type: textblock
14722 #: ../src/guestfs-actions.pod:6395 ../fish/guestfish-actions.pod:4263
14723 msgid ""
14724 "Typical umask values would be C<022> which creates new files with "
14725 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14726 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14727 msgstr ""
14728
14729 # type: textblock
14730 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4268
14731 msgid ""
14732 "The default umask is C<022>.  This is important because it means that "
14733 "directories and device nodes will be created with C<0644> or C<0755> mode "
14734 "even if you specify C<0777>."
14735 msgstr ""
14736
14737 # type: textblock
14738 #: ../src/guestfs-actions.pod:6404
14739 msgid ""
14740 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
14741 "C<guestfs_mkdir>."
14742 msgstr ""
14743
14744 # type: textblock
14745 #: ../src/guestfs-actions.pod:6407 ../fish/guestfish-actions.pod:4275
14746 msgid "This call returns the previous umask."
14747 msgstr ""
14748
14749 # type: =head2
14750 #: ../src/guestfs-actions.pod:6413
14751 msgid "guestfs_umount"
14752 msgstr ""
14753
14754 # type: verbatim
14755 #: ../src/guestfs-actions.pod:6415
14756 #, no-wrap
14757 msgid ""
14758 " int\n"
14759 " guestfs_umount (guestfs_h *g,\n"
14760 "                 const char *pathordevice);\n"
14761 "\n"
14762 msgstr ""
14763
14764 # type: textblock
14765 #: ../src/guestfs-actions.pod:6419 ../fish/guestfish-actions.pod:4283
14766 msgid ""
14767 "This unmounts the given filesystem.  The filesystem may be specified either "
14768 "by its mountpoint (path) or the device which contains the filesystem."
14769 msgstr ""
14770
14771 # type: =head2
14772 #: ../src/guestfs-actions.pod:6427
14773 msgid "guestfs_umount_all"
14774 msgstr ""
14775
14776 # type: verbatim
14777 #: ../src/guestfs-actions.pod:6429
14778 #, no-wrap
14779 msgid ""
14780 " int\n"
14781 " guestfs_umount_all (guestfs_h *g);\n"
14782 "\n"
14783 msgstr ""
14784
14785 # type: textblock
14786 #: ../src/guestfs-actions.pod:6432 ../fish/guestfish-actions.pod:4293
14787 msgid "This unmounts all mounted filesystems."
14788 msgstr ""
14789
14790 # type: textblock
14791 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4295
14792 msgid "Some internal mounts are not unmounted by this call."
14793 msgstr ""
14794
14795 # type: =head2
14796 #: ../src/guestfs-actions.pod:6440
14797 msgid "guestfs_upload"
14798 msgstr ""
14799
14800 # type: verbatim
14801 #: ../src/guestfs-actions.pod:6442
14802 #, no-wrap
14803 msgid ""
14804 " int\n"
14805 " guestfs_upload (guestfs_h *g,\n"
14806 "                 const char *filename,\n"
14807 "                 const char *remotefilename);\n"
14808 "\n"
14809 msgstr ""
14810
14811 # type: textblock
14812 #: ../src/guestfs-actions.pod:6447 ../src/guestfs-actions.pod:6471 ../fish/guestfish-actions.pod:4301 ../fish/guestfish-actions.pod:4314
14813 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14814 msgstr ""
14815
14816 # type: textblock
14817 #: ../src/guestfs-actions.pod:6452
14818 msgid "See also C<guestfs_download>."
14819 msgstr ""
14820
14821 # type: =head2
14822 #: ../src/guestfs-actions.pod:6463
14823 msgid "guestfs_upload_offset"
14824 msgstr ""
14825
14826 # type: verbatim
14827 #: ../src/guestfs-actions.pod:6465
14828 #, no-wrap
14829 msgid ""
14830 " int\n"
14831 " guestfs_upload_offset (guestfs_h *g,\n"
14832 "                        const char *filename,\n"
14833 "                        const char *remotefilename,\n"
14834 "                        int64_t offset);\n"
14835 "\n"
14836 msgstr ""
14837
14838 # type: textblock
14839 #: ../src/guestfs-actions.pod:6474 ../fish/guestfish-actions.pod:4317
14840 msgid ""
14841 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14842 "The intention is to overwrite parts of existing files or devices, although "
14843 "if a non-existant file is specified then it is created with a \"hole\" "
14844 "before C<offset>.  The size of the data written is implicit in the size of "
14845 "the source C<filename>."
14846 msgstr ""
14847
14848 # type: textblock
14849 #: ../src/guestfs-actions.pod:6481
14850 msgid ""
14851 "Note that there is no limit on the amount of data that can be uploaded with "
14852 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
14853 "full amount unless an error occurs."
14854 msgstr ""
14855
14856 # type: textblock
14857 #: ../src/guestfs-actions.pod:6486
14858 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
14859 msgstr ""
14860
14861 # type: =head2
14862 #: ../src/guestfs-actions.pod:6497
14863 msgid "guestfs_utimens"
14864 msgstr ""
14865
14866 # type: verbatim
14867 #: ../src/guestfs-actions.pod:6499
14868 #, no-wrap
14869 msgid ""
14870 " int\n"
14871 " guestfs_utimens (guestfs_h *g,\n"
14872 "                  const char *path,\n"
14873 "                  int64_t atsecs,\n"
14874 "                  int64_t atnsecs,\n"
14875 "                  int64_t mtsecs,\n"
14876 "                  int64_t mtnsecs);\n"
14877 "\n"
14878 msgstr ""
14879
14880 # type: textblock
14881 #: ../src/guestfs-actions.pod:6507 ../fish/guestfish-actions.pod:4337
14882 msgid "This command sets the timestamps of a file with nanosecond precision."
14883 msgstr ""
14884
14885 # type: textblock
14886 #: ../src/guestfs-actions.pod:6510 ../fish/guestfish-actions.pod:4340
14887 msgid ""
14888 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14889 "from the epoch."
14890 msgstr ""
14891
14892 # type: textblock
14893 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4343
14894 msgid ""
14895 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14896 "nanoseconds from the epoch."
14897 msgstr ""
14898
14899 # type: textblock
14900 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4346
14901 msgid ""
14902 "If the C<*nsecs> field contains the special value C<-1> then the "
14903 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14904 "ignored in this case)."
14905 msgstr ""
14906
14907 # type: textblock
14908 #: ../src/guestfs-actions.pod:6520 ../fish/guestfish-actions.pod:4350
14909 msgid ""
14910 "If the C<*nsecs> field contains the special value C<-2> then the "
14911 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14912 "in this case)."
14913 msgstr ""
14914
14915 # type: =head2
14916 #: ../src/guestfs-actions.pod:6528 ../src/guestfs-structs.pod:175
14917 msgid "guestfs_version"
14918 msgstr ""
14919
14920 # type: verbatim
14921 #: ../src/guestfs-actions.pod:6530
14922 #, no-wrap
14923 msgid ""
14924 " struct guestfs_version *\n"
14925 " guestfs_version (guestfs_h *g);\n"
14926 "\n"
14927 msgstr ""
14928
14929 # type: textblock
14930 #: ../src/guestfs-actions.pod:6533 ../fish/guestfish-actions.pod:4358
14931 msgid "Return the libguestfs version number that the program is linked against."
14932 msgstr ""
14933
14934 # type: textblock
14935 #: ../src/guestfs-actions.pod:6536 ../fish/guestfish-actions.pod:4361
14936 msgid ""
14937 "Note that because of dynamic linking this is not necessarily the version of "
14938 "libguestfs that you compiled against.  You can compile the program, and then "
14939 "at runtime dynamically link against a completely different C<libguestfs.so> "
14940 "library."
14941 msgstr ""
14942
14943 # type: textblock
14944 #: ../src/guestfs-actions.pod:6541 ../fish/guestfish-actions.pod:4366
14945 msgid ""
14946 "This call was added in version C<1.0.58>.  In previous versions of "
14947 "libguestfs there was no way to get the version number.  From C code you can "
14948 "use dynamic linker functions to find out if this symbol exists (if it "
14949 "doesn't, then it's an earlier version)."
14950 msgstr ""
14951
14952 # type: textblock
14953 #: ../src/guestfs-actions.pod:6547 ../fish/guestfish-actions.pod:4372
14954 msgid ""
14955 "The call returns a structure with four elements.  The first three (C<major>, "
14956 "C<minor> and C<release>) are numbers and correspond to the usual version "
14957 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14958 "but may be used for distro-specific information."
14959 msgstr ""
14960
14961 # type: textblock
14962 #: ../src/guestfs-actions.pod:6553 ../fish/guestfish-actions.pod:4378
14963 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14964 msgstr ""
14965
14966 # type: textblock
14967 #: ../src/guestfs-actions.pod:6556 ../fish/guestfish-actions.pod:4381
14968 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14969 msgstr ""
14970
14971 # type: textblock
14972 #: ../src/guestfs-actions.pod:6558
14973 msgid ""
14974 "I<Note:> Don't use this call to test for availability of features.  In "
14975 "enterprise distributions we backport features from later versions into "
14976 "earlier versions, making this an unreliable way to test for features.  Use "
14977 "C<guestfs_available> instead."
14978 msgstr ""
14979
14980 # type: textblock
14981 #: ../src/guestfs-actions.pod:6564
14982 msgid ""
14983 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
14984 "error.  I<The caller must call C<guestfs_free_version> after use>."
14985 msgstr ""
14986
14987 # type: textblock
14988 #: ../src/guestfs-actions.pod:6568
14989 msgid "(Added in 1.0.58)"
14990 msgstr ""
14991
14992 # type: =head2
14993 #: ../src/guestfs-actions.pod:6570
14994 msgid "guestfs_vfs_label"
14995 msgstr ""
14996
14997 # type: verbatim
14998 #: ../src/guestfs-actions.pod:6572
14999 #, no-wrap
15000 msgid ""
15001 " char *\n"
15002 " guestfs_vfs_label (guestfs_h *g,\n"
15003 "                    const char *device);\n"
15004 "\n"
15005 msgstr ""
15006
15007 # type: textblock
15008 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4393
15009 msgid "This returns the filesystem label of the filesystem on C<device>."
15010 msgstr ""
15011
15012 # type: textblock
15013 #: ../src/guestfs-actions.pod:6579 ../fish/guestfish-actions.pod:4396
15014 msgid "If the filesystem is unlabeled, this returns the empty string."
15015 msgstr ""
15016
15017 # type: textblock
15018 #: ../src/guestfs-actions.pod:6581
15019 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15020 msgstr ""
15021
15022 # type: textblock
15023 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6623
15024 msgid "(Added in 1.3.18)"
15025 msgstr ""
15026
15027 # type: =head2
15028 #: ../src/guestfs-actions.pod:6588
15029 msgid "guestfs_vfs_type"
15030 msgstr ""
15031
15032 # type: verbatim
15033 #: ../src/guestfs-actions.pod:6590
15034 #, no-wrap
15035 msgid ""
15036 " char *\n"
15037 " guestfs_vfs_type (guestfs_h *g,\n"
15038 "                   const char *device);\n"
15039 "\n"
15040 msgstr ""
15041
15042 # type: textblock
15043 #: ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4404
15044 msgid ""
15045 "This command gets the filesystem type corresponding to the filesystem on "
15046 "C<device>."
15047 msgstr ""
15048
15049 # type: textblock
15050 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4407
15051 msgid ""
15052 "For most filesystems, the result is the name of the Linux VFS module which "
15053 "would be used to mount this filesystem if you mounted it without specifying "
15054 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15055 msgstr ""
15056
15057 # type: =head2
15058 #: ../src/guestfs-actions.pod:6607
15059 msgid "guestfs_vfs_uuid"
15060 msgstr ""
15061
15062 # type: verbatim
15063 #: ../src/guestfs-actions.pod:6609
15064 #, no-wrap
15065 msgid ""
15066 " char *\n"
15067 " guestfs_vfs_uuid (guestfs_h *g,\n"
15068 "                   const char *device);\n"
15069 "\n"
15070 msgstr ""
15071
15072 # type: textblock
15073 #: ../src/guestfs-actions.pod:6613 ../fish/guestfish-actions.pod:4416
15074 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15075 msgstr ""
15076
15077 # type: textblock
15078 #: ../src/guestfs-actions.pod:6616 ../fish/guestfish-actions.pod:4419
15079 msgid "If the filesystem does not have a UUID, this returns the empty string."
15080 msgstr ""
15081
15082 # type: textblock
15083 #: ../src/guestfs-actions.pod:6618
15084 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15085 msgstr ""
15086
15087 # type: =head2
15088 #: ../src/guestfs-actions.pod:6625
15089 msgid "guestfs_vg_activate"
15090 msgstr ""
15091
15092 # type: verbatim
15093 #: ../src/guestfs-actions.pod:6627
15094 #, no-wrap
15095 msgid ""
15096 " int\n"
15097 " guestfs_vg_activate (guestfs_h *g,\n"
15098 "                      int activate,\n"
15099 "                      char *const *volgroups);\n"
15100 "\n"
15101 msgstr ""
15102
15103 # type: textblock
15104 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4427
15105 msgid ""
15106 "This command activates or (if C<activate> is false) deactivates all logical "
15107 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15108 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15109 "deactivated, then those devices disappear."
15110 msgstr ""
15111
15112 # type: textblock
15113 #: ../src/guestfs-actions.pod:6638 ../fish/guestfish-actions.pod:4433
15114 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15115 msgstr ""
15116
15117 # type: textblock
15118 #: ../src/guestfs-actions.pod:6640 ../fish/guestfish-actions.pod:4435
15119 msgid ""
15120 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15121 "activated or deactivated."
15122 msgstr ""
15123
15124 # type: =head2
15125 #: ../src/guestfs-actions.pod:6647
15126 msgid "guestfs_vg_activate_all"
15127 msgstr ""
15128
15129 # type: verbatim
15130 #: ../src/guestfs-actions.pod:6649
15131 #, no-wrap
15132 msgid ""
15133 " int\n"
15134 " guestfs_vg_activate_all (guestfs_h *g,\n"
15135 "                          int activate);\n"
15136 "\n"
15137 msgstr ""
15138
15139 # type: textblock
15140 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4442
15141 msgid ""
15142 "This command activates or (if C<activate> is false) deactivates all logical "
15143 "volumes in all volume groups.  If activated, then they are made known to the "
15144 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15145 "those devices disappear."
15146 msgstr ""
15147
15148 # type: textblock
15149 #: ../src/guestfs-actions.pod:6659 ../fish/guestfish-actions.pod:4448
15150 msgid "This command is the same as running C<vgchange -a y|n>"
15151 msgstr ""
15152
15153 # type: =head2
15154 #: ../src/guestfs-actions.pod:6665
15155 msgid "guestfs_vgcreate"
15156 msgstr ""
15157
15158 # type: verbatim
15159 #: ../src/guestfs-actions.pod:6667
15160 #, no-wrap
15161 msgid ""
15162 " int\n"
15163 " guestfs_vgcreate (guestfs_h *g,\n"
15164 "                   const char *volgroup,\n"
15165 "                   char *const *physvols);\n"
15166 "\n"
15167 msgstr ""
15168
15169 # type: textblock
15170 #: ../src/guestfs-actions.pod:6672 ../fish/guestfish-actions.pod:4454
15171 msgid ""
15172 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15173 "of physical volumes C<physvols>."
15174 msgstr ""
15175
15176 # type: =head2
15177 #: ../src/guestfs-actions.pod:6679
15178 msgid "guestfs_vglvuuids"
15179 msgstr ""
15180
15181 # type: verbatim
15182 #: ../src/guestfs-actions.pod:6681
15183 #, no-wrap
15184 msgid ""
15185 " char **\n"
15186 " guestfs_vglvuuids (guestfs_h *g,\n"
15187 "                    const char *vgname);\n"
15188 "\n"
15189 msgstr ""
15190
15191 # type: textblock
15192 #: ../src/guestfs-actions.pod:6685 ../fish/guestfish-actions.pod:4461
15193 msgid ""
15194 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15195 "volumes created in this volume group."
15196 msgstr ""
15197
15198 # type: textblock
15199 #: ../src/guestfs-actions.pod:6688
15200 msgid ""
15201 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15202 "associate logical volumes and volume groups."
15203 msgstr ""
15204
15205 # type: textblock
15206 #: ../src/guestfs-actions.pod:6691
15207 msgid "See also C<guestfs_vgpvuuids>."
15208 msgstr ""
15209
15210 # type: =head2
15211 #: ../src/guestfs-actions.pod:6699
15212 msgid "guestfs_vgpvuuids"
15213 msgstr ""
15214
15215 # type: verbatim
15216 #: ../src/guestfs-actions.pod:6701
15217 #, no-wrap
15218 msgid ""
15219 " char **\n"
15220 " guestfs_vgpvuuids (guestfs_h *g,\n"
15221 "                    const char *vgname);\n"
15222 "\n"
15223 msgstr ""
15224
15225 # type: textblock
15226 #: ../src/guestfs-actions.pod:6705 ../fish/guestfish-actions.pod:4473
15227 msgid ""
15228 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15229 "volumes that this volume group resides on."
15230 msgstr ""
15231
15232 # type: textblock
15233 #: ../src/guestfs-actions.pod:6708
15234 msgid ""
15235 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15236 "associate physical volumes and volume groups."
15237 msgstr ""
15238
15239 # type: textblock
15240 #: ../src/guestfs-actions.pod:6711
15241 msgid "See also C<guestfs_vglvuuids>."
15242 msgstr ""
15243
15244 # type: =head2
15245 #: ../src/guestfs-actions.pod:6719
15246 msgid "guestfs_vgremove"
15247 msgstr ""
15248
15249 # type: verbatim
15250 #: ../src/guestfs-actions.pod:6721
15251 #, no-wrap
15252 msgid ""
15253 " int\n"
15254 " guestfs_vgremove (guestfs_h *g,\n"
15255 "                   const char *vgname);\n"
15256 "\n"
15257 msgstr ""
15258
15259 # type: textblock
15260 #: ../src/guestfs-actions.pod:6725 ../fish/guestfish-actions.pod:4485
15261 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15262 msgstr ""
15263
15264 # type: textblock
15265 #: ../src/guestfs-actions.pod:6727 ../fish/guestfish-actions.pod:4487
15266 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15267 msgstr ""
15268
15269 # type: =head2
15270 #: ../src/guestfs-actions.pod:6734
15271 msgid "guestfs_vgrename"
15272 msgstr ""
15273
15274 # type: verbatim
15275 #: ../src/guestfs-actions.pod:6736
15276 #, no-wrap
15277 msgid ""
15278 " int\n"
15279 " guestfs_vgrename (guestfs_h *g,\n"
15280 "                   const char *volgroup,\n"
15281 "                   const char *newvolgroup);\n"
15282 "\n"
15283 msgstr ""
15284
15285 # type: textblock
15286 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4494
15287 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15288 msgstr ""
15289
15290 # type: =head2
15291 #: ../src/guestfs-actions.pod:6747
15292 msgid "guestfs_vgs"
15293 msgstr ""
15294
15295 # type: verbatim
15296 #: ../src/guestfs-actions.pod:6749
15297 #, no-wrap
15298 msgid ""
15299 " char **\n"
15300 " guestfs_vgs (guestfs_h *g);\n"
15301 "\n"
15302 msgstr ""
15303
15304 # type: textblock
15305 #: ../src/guestfs-actions.pod:6752 ../fish/guestfish-actions.pod:4500
15306 msgid ""
15307 "List all the volumes groups detected.  This is the equivalent of the "
15308 "L<vgs(8)> command."
15309 msgstr ""
15310
15311 # type: textblock
15312 #: ../src/guestfs-actions.pod:6755 ../fish/guestfish-actions.pod:4503
15313 msgid ""
15314 "This returns a list of just the volume group names that were detected "
15315 "(eg. C<VolGroup00>)."
15316 msgstr ""
15317
15318 # type: textblock
15319 #: ../src/guestfs-actions.pod:6758
15320 msgid "See also C<guestfs_vgs_full>."
15321 msgstr ""
15322
15323 # type: =head2
15324 #: ../src/guestfs-actions.pod:6766
15325 msgid "guestfs_vgs_full"
15326 msgstr ""
15327
15328 # type: verbatim
15329 #: ../src/guestfs-actions.pod:6768
15330 #, no-wrap
15331 msgid ""
15332 " struct guestfs_lvm_vg_list *\n"
15333 " guestfs_vgs_full (guestfs_h *g);\n"
15334 "\n"
15335 msgstr ""
15336
15337 # type: textblock
15338 #: ../src/guestfs-actions.pod:6771 ../fish/guestfish-actions.pod:4512
15339 msgid ""
15340 "List all the volumes groups detected.  This is the equivalent of the "
15341 "L<vgs(8)> command.  The \"full\" version includes all fields."
15342 msgstr ""
15343
15344 # type: textblock
15345 #: ../src/guestfs-actions.pod:6774
15346 msgid ""
15347 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15348 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
15349 "use>."
15350 msgstr ""
15351
15352 # type: =head2
15353 #: ../src/guestfs-actions.pod:6780
15354 msgid "guestfs_vgscan"
15355 msgstr ""
15356
15357 # type: verbatim
15358 #: ../src/guestfs-actions.pod:6782
15359 #, no-wrap
15360 msgid ""
15361 " int\n"
15362 " guestfs_vgscan (guestfs_h *g);\n"
15363 "\n"
15364 msgstr ""
15365
15366 # type: textblock
15367 #: ../src/guestfs-actions.pod:6785 ../fish/guestfish-actions.pod:4519
15368 msgid ""
15369 "This rescans all block devices and rebuilds the list of LVM physical "
15370 "volumes, volume groups and logical volumes."
15371 msgstr ""
15372
15373 # type: =head2
15374 #: ../src/guestfs-actions.pod:6792
15375 msgid "guestfs_vguuid"
15376 msgstr ""
15377
15378 # type: verbatim
15379 #: ../src/guestfs-actions.pod:6794
15380 #, no-wrap
15381 msgid ""
15382 " char *\n"
15383 " guestfs_vguuid (guestfs_h *g,\n"
15384 "                 const char *vgname);\n"
15385 "\n"
15386 msgstr ""
15387
15388 # type: textblock
15389 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4526
15390 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15391 msgstr ""
15392
15393 # type: =head2
15394 #: ../src/guestfs-actions.pod:6805
15395 msgid "guestfs_wait_ready"
15396 msgstr ""
15397
15398 # type: verbatim
15399 #: ../src/guestfs-actions.pod:6807
15400 #, no-wrap
15401 msgid ""
15402 " int\n"
15403 " guestfs_wait_ready (guestfs_h *g);\n"
15404 "\n"
15405 msgstr ""
15406
15407 # type: textblock
15408 #: ../src/guestfs-actions.pod:6810
15409 msgid "This function is a no op."
15410 msgstr ""
15411
15412 # type: textblock
15413 #: ../src/guestfs-actions.pod:6812
15414 msgid ""
15415 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
15416 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
15417 "is no longer necessary because C<guestfs_launch> now does the waiting."
15418 msgstr ""
15419
15420 # type: textblock
15421 #: ../src/guestfs-actions.pod:6817
15422 msgid ""
15423 "If you see any calls to this function in code then you can just remove them, "
15424 "unless you want to retain compatibility with older versions of the API."
15425 msgstr ""
15426
15427 # type: =head2
15428 #: ../src/guestfs-actions.pod:6825
15429 msgid "guestfs_wc_c"
15430 msgstr ""
15431
15432 # type: verbatim
15433 #: ../src/guestfs-actions.pod:6827
15434 #, no-wrap
15435 msgid ""
15436 " int\n"
15437 " guestfs_wc_c (guestfs_h *g,\n"
15438 "               const char *path);\n"
15439 "\n"
15440 msgstr ""
15441
15442 # type: textblock
15443 #: ../src/guestfs-actions.pod:6831 ../fish/guestfish-actions.pod:4532
15444 msgid ""
15445 "This command counts the characters in a file, using the C<wc -c> external "
15446 "command."
15447 msgstr ""
15448
15449 # type: =head2
15450 #: ../src/guestfs-actions.pod:6838
15451 msgid "guestfs_wc_l"
15452 msgstr ""
15453
15454 # type: verbatim
15455 #: ../src/guestfs-actions.pod:6840
15456 #, no-wrap
15457 msgid ""
15458 " int\n"
15459 " guestfs_wc_l (guestfs_h *g,\n"
15460 "               const char *path);\n"
15461 "\n"
15462 msgstr ""
15463
15464 # type: textblock
15465 #: ../src/guestfs-actions.pod:6844 ../fish/guestfish-actions.pod:4539
15466 msgid ""
15467 "This command counts the lines in a file, using the C<wc -l> external "
15468 "command."
15469 msgstr ""
15470
15471 # type: =head2
15472 #: ../src/guestfs-actions.pod:6851
15473 msgid "guestfs_wc_w"
15474 msgstr ""
15475
15476 # type: verbatim
15477 #: ../src/guestfs-actions.pod:6853
15478 #, no-wrap
15479 msgid ""
15480 " int\n"
15481 " guestfs_wc_w (guestfs_h *g,\n"
15482 "               const char *path);\n"
15483 "\n"
15484 msgstr ""
15485
15486 # type: textblock
15487 #: ../src/guestfs-actions.pod:6857 ../fish/guestfish-actions.pod:4546
15488 msgid ""
15489 "This command counts the words in a file, using the C<wc -w> external "
15490 "command."
15491 msgstr ""
15492
15493 # type: =head2
15494 #: ../src/guestfs-actions.pod:6864
15495 msgid "guestfs_write"
15496 msgstr ""
15497
15498 # type: verbatim
15499 #: ../src/guestfs-actions.pod:6866
15500 #, no-wrap
15501 msgid ""
15502 " int\n"
15503 " guestfs_write (guestfs_h *g,\n"
15504 "                const char *path,\n"
15505 "                const char *content,\n"
15506 "                size_t content_size);\n"
15507 "\n"
15508 msgstr ""
15509
15510 # type: textblock
15511 #: ../src/guestfs-actions.pod:6872 ../fish/guestfish-actions.pod:4553
15512 msgid ""
15513 "This call creates a file called C<path>.  The content of the file is the "
15514 "string C<content> (which can contain any 8 bit data)."
15515 msgstr ""
15516
15517 # type: =head2
15518 #: ../src/guestfs-actions.pod:6882
15519 msgid "guestfs_write_file"
15520 msgstr ""
15521
15522 # type: verbatim
15523 #: ../src/guestfs-actions.pod:6884
15524 #, no-wrap
15525 msgid ""
15526 " int\n"
15527 " guestfs_write_file (guestfs_h *g,\n"
15528 "                     const char *path,\n"
15529 "                     const char *content,\n"
15530 "                     int size);\n"
15531 "\n"
15532 msgstr ""
15533
15534 # type: textblock
15535 #: ../src/guestfs-actions.pod:6890 ../fish/guestfish-actions.pod:4563
15536 msgid ""
15537 "This call creates a file called C<path>.  The contents of the file is the "
15538 "string C<content> (which can contain any 8 bit data), with length C<size>."
15539 msgstr ""
15540
15541 # type: textblock
15542 #: ../src/guestfs-actions.pod:6894 ../fish/guestfish-actions.pod:4567
15543 msgid ""
15544 "As a special case, if C<size> is C<0> then the length is calculated using "
15545 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15546 msgstr ""
15547
15548 # type: textblock
15549 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4571
15550 msgid ""
15551 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15552 "I<not> work, even if the length is specified."
15553 msgstr ""
15554
15555 # type: textblock
15556 #: ../src/guestfs-actions.pod:6906 ../fish/guestfish-actions.pod:4577
15557 msgid "This function is deprecated.  In new code, use the C<write> call instead."
15558 msgstr ""
15559
15560 # type: =head2
15561 #: ../src/guestfs-actions.pod:6915
15562 msgid "guestfs_zegrep"
15563 msgstr ""
15564
15565 # type: verbatim
15566 #: ../src/guestfs-actions.pod:6917
15567 #, no-wrap
15568 msgid ""
15569 " char **\n"
15570 " guestfs_zegrep (guestfs_h *g,\n"
15571 "                 const char *regex,\n"
15572 "                 const char *path);\n"
15573 "\n"
15574 msgstr ""
15575
15576 # type: textblock
15577 #: ../src/guestfs-actions.pod:6922 ../fish/guestfish-actions.pod:4588
15578 msgid "This calls the external C<zegrep> program and returns the matching lines."
15579 msgstr ""
15580
15581 # type: =head2
15582 #: ../src/guestfs-actions.pod:6934
15583 msgid "guestfs_zegrepi"
15584 msgstr ""
15585
15586 # type: verbatim
15587 #: ../src/guestfs-actions.pod:6936
15588 #, no-wrap
15589 msgid ""
15590 " char **\n"
15591 " guestfs_zegrepi (guestfs_h *g,\n"
15592 "                  const char *regex,\n"
15593 "                  const char *path);\n"
15594 "\n"
15595 msgstr ""
15596
15597 # type: textblock
15598 #: ../src/guestfs-actions.pod:6941 ../fish/guestfish-actions.pod:4598
15599 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15600 msgstr ""
15601
15602 # type: =head2
15603 #: ../src/guestfs-actions.pod:6953
15604 msgid "guestfs_zero"
15605 msgstr ""
15606
15607 # type: verbatim
15608 #: ../src/guestfs-actions.pod:6955
15609 #, no-wrap
15610 msgid ""
15611 " int\n"
15612 " guestfs_zero (guestfs_h *g,\n"
15613 "               const char *device);\n"
15614 "\n"
15615 msgstr ""
15616
15617 # type: textblock
15618 #: ../src/guestfs-actions.pod:6959 ../fish/guestfish-actions.pod:4608
15619 msgid "This command writes zeroes over the first few blocks of C<device>."
15620 msgstr ""
15621
15622 # type: textblock
15623 #: ../src/guestfs-actions.pod:6961 ../fish/guestfish-actions.pod:4610
15624 msgid ""
15625 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15626 "securely wipe the device).  It should be sufficient to remove any partition "
15627 "tables, filesystem superblocks and so on."
15628 msgstr ""
15629
15630 # type: textblock
15631 #: ../src/guestfs-actions.pod:6965
15632 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
15633 msgstr ""
15634
15635 # type: =head2
15636 #: ../src/guestfs-actions.pod:6976
15637 msgid "guestfs_zero_device"
15638 msgstr ""
15639
15640 # type: verbatim
15641 #: ../src/guestfs-actions.pod:6978
15642 #, no-wrap
15643 msgid ""
15644 " int\n"
15645 " guestfs_zero_device (guestfs_h *g,\n"
15646 "                      const char *device);\n"
15647 "\n"
15648 msgstr ""
15649
15650 # type: textblock
15651 #: ../src/guestfs-actions.pod:6982
15652 msgid ""
15653 "This command writes zeroes over the entire C<device>.  Compare with "
15654 "C<guestfs_zero> which just zeroes the first few blocks of a device."
15655 msgstr ""
15656
15657 # type: textblock
15658 #: ../src/guestfs-actions.pod:6996
15659 msgid "(Added in 1.3.1)"
15660 msgstr ""
15661
15662 # type: =head2
15663 #: ../src/guestfs-actions.pod:6998
15664 msgid "guestfs_zerofree"
15665 msgstr ""
15666
15667 # type: verbatim
15668 #: ../src/guestfs-actions.pod:7000
15669 #, no-wrap
15670 msgid ""
15671 " int\n"
15672 " guestfs_zerofree (guestfs_h *g,\n"
15673 "                   const char *device);\n"
15674 "\n"
15675 msgstr ""
15676
15677 # type: textblock
15678 #: ../src/guestfs-actions.pod:7004 ../fish/guestfish-actions.pod:4631
15679 msgid ""
15680 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15681 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15682 "possible to compress the filesystem more effectively."
15683 msgstr ""
15684
15685 # type: textblock
15686 #: ../src/guestfs-actions.pod:7009 ../fish/guestfish-actions.pod:4636
15687 msgid "You should B<not> run this program if the filesystem is mounted."
15688 msgstr ""
15689
15690 # type: textblock
15691 #: ../src/guestfs-actions.pod:7012 ../fish/guestfish-actions.pod:4639
15692 msgid ""
15693 "It is possible that using this program can damage the filesystem or data on "
15694 "the filesystem."
15695 msgstr ""
15696
15697 # type: =head2
15698 #: ../src/guestfs-actions.pod:7019
15699 msgid "guestfs_zfgrep"
15700 msgstr ""
15701
15702 # type: verbatim
15703 #: ../src/guestfs-actions.pod:7021
15704 #, no-wrap
15705 msgid ""
15706 " char **\n"
15707 " guestfs_zfgrep (guestfs_h *g,\n"
15708 "                 const char *pattern,\n"
15709 "                 const char *path);\n"
15710 "\n"
15711 msgstr ""
15712
15713 # type: textblock
15714 #: ../src/guestfs-actions.pod:7026 ../fish/guestfish-actions.pod:4646
15715 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15716 msgstr ""
15717
15718 # type: =head2
15719 #: ../src/guestfs-actions.pod:7038
15720 msgid "guestfs_zfgrepi"
15721 msgstr ""
15722
15723 # type: verbatim
15724 #: ../src/guestfs-actions.pod:7040
15725 #, no-wrap
15726 msgid ""
15727 " char **\n"
15728 " guestfs_zfgrepi (guestfs_h *g,\n"
15729 "                  const char *pattern,\n"
15730 "                  const char *path);\n"
15731 "\n"
15732 msgstr ""
15733
15734 # type: textblock
15735 #: ../src/guestfs-actions.pod:7045 ../fish/guestfish-actions.pod:4656
15736 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15737 msgstr ""
15738
15739 # type: =head2
15740 #: ../src/guestfs-actions.pod:7057
15741 msgid "guestfs_zfile"
15742 msgstr ""
15743
15744 # type: verbatim
15745 #: ../src/guestfs-actions.pod:7059
15746 #, no-wrap
15747 msgid ""
15748 " char *\n"
15749 " guestfs_zfile (guestfs_h *g,\n"
15750 "                const char *meth,\n"
15751 "                const char *path);\n"
15752 "\n"
15753 msgstr ""
15754
15755 # type: textblock
15756 #: ../src/guestfs-actions.pod:7064 ../fish/guestfish-actions.pod:4666
15757 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15758 msgstr ""
15759
15760 # type: textblock
15761 #: ../src/guestfs-actions.pod:7067 ../fish/guestfish-actions.pod:4669
15762 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15763 msgstr ""
15764
15765 # type: textblock
15766 #: ../src/guestfs-actions.pod:7069
15767 msgid ""
15768 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
15769 "files."
15770 msgstr ""
15771
15772 # type: textblock
15773 #: ../src/guestfs-actions.pod:7075 ../fish/guestfish-actions.pod:4674
15774 msgid "This function is deprecated.  In new code, use the C<file> call instead."
15775 msgstr ""
15776
15777 # type: =head2
15778 #: ../src/guestfs-actions.pod:7084
15779 msgid "guestfs_zgrep"
15780 msgstr ""
15781
15782 # type: verbatim
15783 #: ../src/guestfs-actions.pod:7086
15784 #, no-wrap
15785 msgid ""
15786 " char **\n"
15787 " guestfs_zgrep (guestfs_h *g,\n"
15788 "                const char *regex,\n"
15789 "                const char *path);\n"
15790 "\n"
15791 msgstr ""
15792
15793 # type: textblock
15794 #: ../src/guestfs-actions.pod:7091 ../fish/guestfish-actions.pod:4685
15795 msgid "This calls the external C<zgrep> program and returns the matching lines."
15796 msgstr ""
15797
15798 # type: =head2
15799 #: ../src/guestfs-actions.pod:7103
15800 msgid "guestfs_zgrepi"
15801 msgstr ""
15802
15803 # type: verbatim
15804 #: ../src/guestfs-actions.pod:7105
15805 #, no-wrap
15806 msgid ""
15807 " char **\n"
15808 " guestfs_zgrepi (guestfs_h *g,\n"
15809 "                 const char *regex,\n"
15810 "                 const char *path);\n"
15811 "\n"
15812 msgstr ""
15813
15814 # type: textblock
15815 #: ../src/guestfs-actions.pod:7110 ../fish/guestfish-actions.pod:4695
15816 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15817 msgstr ""
15818
15819 # type: =item
15820 #: ../src/guestfs-availability.pod:3
15821 msgid "B<augeas>"
15822 msgstr ""
15823
15824 # type: textblock
15825 #: ../src/guestfs-availability.pod:5
15826 msgid ""
15827 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
15828 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
15829 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
15830 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
15831 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
15832 msgstr ""
15833
15834 # type: =item
15835 #: ../src/guestfs-availability.pod:21
15836 msgid "B<inotify>"
15837 msgstr ""
15838
15839 # type: textblock
15840 #: ../src/guestfs-availability.pod:23
15841 msgid ""
15842 "The following functions: L</guestfs_inotify_add_watch> "
15843 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
15844 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
15845 msgstr ""
15846
15847 # type: =item
15848 #: ../src/guestfs-availability.pod:31
15849 msgid "B<linuxfsuuid>"
15850 msgstr ""
15851
15852 # type: textblock
15853 #: ../src/guestfs-availability.pod:33
15854 msgid ""
15855 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
15856 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
15857 msgstr ""
15858
15859 # type: =item
15860 #: ../src/guestfs-availability.pod:40
15861 msgid "B<linuxmodules>"
15862 msgstr ""
15863
15864 # type: textblock
15865 #: ../src/guestfs-availability.pod:42
15866 msgid "The following functions: L</guestfs_modprobe>"
15867 msgstr ""
15868
15869 # type: =item
15870 #: ../src/guestfs-availability.pod:45
15871 msgid "B<linuxxattrs>"
15872 msgstr ""
15873
15874 # type: textblock
15875 #: ../src/guestfs-availability.pod:47
15876 msgid ""
15877 "The following functions: L</guestfs_getxattrs> L</guestfs_lgetxattrs> "
15878 "L</guestfs_lremovexattr> L</guestfs_lsetxattr> L</guestfs_lxattrlist> "
15879 "L</guestfs_removexattr> L</guestfs_setxattr>"
15880 msgstr ""
15881
15882 # type: =item
15883 #: ../src/guestfs-availability.pod:56
15884 msgid "B<luks>"
15885 msgstr ""
15886
15887 # type: textblock
15888 #: ../src/guestfs-availability.pod:58
15889 msgid ""
15890 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
15891 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
15892 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
15893 msgstr ""
15894
15895 # type: =item
15896 #: ../src/guestfs-availability.pod:67
15897 msgid "B<lvm2>"
15898 msgstr ""
15899
15900 # type: textblock
15901 #: ../src/guestfs-availability.pod:69
15902 msgid ""
15903 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
15904 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
15905 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
15906 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
15907 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
15908 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
15909 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
15910 "L</guestfs_vgs_full>"
15911 msgstr ""
15912
15913 # type: =item
15914 #: ../src/guestfs-availability.pod:92
15915 msgid "B<mknod>"
15916 msgstr ""
15917
15918 # type: textblock
15919 #: ../src/guestfs-availability.pod:94
15920 msgid ""
15921 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
15922 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
15923 msgstr ""
15924
15925 # type: =item
15926 #: ../src/guestfs-availability.pod:100
15927 msgid "B<ntfs3g>"
15928 msgstr ""
15929
15930 # type: textblock
15931 #: ../src/guestfs-availability.pod:102
15932 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
15933 msgstr ""
15934
15935 # type: =item
15936 #: ../src/guestfs-availability.pod:105
15937 msgid "B<ntfsprogs>"
15938 msgstr ""
15939
15940 # type: textblock
15941 #: ../src/guestfs-availability.pod:107
15942 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
15943 msgstr ""
15944
15945 # type: =item
15946 #: ../src/guestfs-availability.pod:111
15947 msgid "B<realpath>"
15948 msgstr ""
15949
15950 # type: textblock
15951 #: ../src/guestfs-availability.pod:113
15952 msgid "The following functions: L</guestfs_realpath>"
15953 msgstr ""
15954
15955 # type: =item
15956 #: ../src/guestfs-availability.pod:116
15957 msgid "B<scrub>"
15958 msgstr ""
15959
15960 # type: textblock
15961 #: ../src/guestfs-availability.pod:118
15962 msgid ""
15963 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
15964 "L</guestfs_scrub_freespace>"
15965 msgstr ""
15966
15967 # type: =item
15968 #: ../src/guestfs-availability.pod:123
15969 msgid "B<selinux>"
15970 msgstr ""
15971
15972 # type: textblock
15973 #: ../src/guestfs-availability.pod:125
15974 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
15975 msgstr ""
15976
15977 # type: =item
15978 #: ../src/guestfs-availability.pod:129
15979 msgid "B<xz>"
15980 msgstr ""
15981
15982 # type: textblock
15983 #: ../src/guestfs-availability.pod:131
15984 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
15985 msgstr ""
15986
15987 # type: =item
15988 #: ../src/guestfs-availability.pod:135
15989 msgid "B<zerofree>"
15990 msgstr ""
15991
15992 # type: textblock
15993 #: ../src/guestfs-availability.pod:137
15994 msgid "The following functions: L</guestfs_zerofree>"
15995 msgstr ""
15996
15997 # type: =head2
15998 #: ../src/guestfs-structs.pod:1
15999 msgid "guestfs_int_bool"
16000 msgstr ""
16001
16002 # type: verbatim
16003 #: ../src/guestfs-structs.pod:3
16004 #, no-wrap
16005 msgid ""
16006 " struct guestfs_int_bool {\n"
16007 "   int32_t i;\n"
16008 "   int32_t b;\n"
16009 " };\n"
16010 " \n"
16011 msgstr ""
16012
16013 # type: verbatim
16014 #: ../src/guestfs-structs.pod:8
16015 #, no-wrap
16016 msgid ""
16017 " struct guestfs_int_bool_list {\n"
16018 "   uint32_t len; /* Number of elements in list. */\n"
16019 "   struct guestfs_int_bool *val; /* Elements. */\n"
16020 " };\n"
16021 " \n"
16022 msgstr ""
16023
16024 # type: verbatim
16025 #: ../src/guestfs-structs.pod:13
16026 #, no-wrap
16027 msgid ""
16028 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16029 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16030 "\n"
16031 msgstr ""
16032
16033 # type: =head2
16034 #: ../src/guestfs-structs.pod:16
16035 msgid "guestfs_lvm_pv"
16036 msgstr ""
16037
16038 # type: verbatim
16039 #: ../src/guestfs-structs.pod:18
16040 #, no-wrap
16041 msgid ""
16042 " struct guestfs_lvm_pv {\n"
16043 "   char *pv_name;\n"
16044 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16045 "*/\n"
16046 "   char pv_uuid[32];\n"
16047 "   char *pv_fmt;\n"
16048 "   uint64_t pv_size;\n"
16049 "   uint64_t dev_size;\n"
16050 "   uint64_t pv_free;\n"
16051 "   uint64_t pv_used;\n"
16052 "   char *pv_attr;\n"
16053 "   int64_t pv_pe_count;\n"
16054 "   int64_t pv_pe_alloc_count;\n"
16055 "   char *pv_tags;\n"
16056 "   uint64_t pe_start;\n"
16057 "   int64_t pv_mda_count;\n"
16058 "   uint64_t pv_mda_free;\n"
16059 " };\n"
16060 " \n"
16061 msgstr ""
16062
16063 # type: verbatim
16064 #: ../src/guestfs-structs.pod:36
16065 #, no-wrap
16066 msgid ""
16067 " struct guestfs_lvm_pv_list {\n"
16068 "   uint32_t len; /* Number of elements in list. */\n"
16069 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16070 " };\n"
16071 " \n"
16072 msgstr ""
16073
16074 # type: verbatim
16075 #: ../src/guestfs-structs.pod:41
16076 #, no-wrap
16077 msgid ""
16078 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16079 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16080 "\n"
16081 msgstr ""
16082
16083 # type: =head2
16084 #: ../src/guestfs-structs.pod:44
16085 msgid "guestfs_lvm_vg"
16086 msgstr ""
16087
16088 # type: verbatim
16089 #: ../src/guestfs-structs.pod:46
16090 #, no-wrap
16091 msgid ""
16092 " struct guestfs_lvm_vg {\n"
16093 "   char *vg_name;\n"
16094 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16095 "*/\n"
16096 "   char vg_uuid[32];\n"
16097 "   char *vg_fmt;\n"
16098 "   char *vg_attr;\n"
16099 "   uint64_t vg_size;\n"
16100 "   uint64_t vg_free;\n"
16101 "   char *vg_sysid;\n"
16102 "   uint64_t vg_extent_size;\n"
16103 "   int64_t vg_extent_count;\n"
16104 "   int64_t vg_free_count;\n"
16105 "   int64_t max_lv;\n"
16106 "   int64_t max_pv;\n"
16107 "   int64_t pv_count;\n"
16108 "   int64_t lv_count;\n"
16109 "   int64_t snap_count;\n"
16110 "   int64_t vg_seqno;\n"
16111 "   char *vg_tags;\n"
16112 "   int64_t vg_mda_count;\n"
16113 "   uint64_t vg_mda_free;\n"
16114 " };\n"
16115 " \n"
16116 msgstr ""
16117
16118 # type: verbatim
16119 #: ../src/guestfs-structs.pod:69
16120 #, no-wrap
16121 msgid ""
16122 " struct guestfs_lvm_vg_list {\n"
16123 "   uint32_t len; /* Number of elements in list. */\n"
16124 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16125 " };\n"
16126 " \n"
16127 msgstr ""
16128
16129 # type: verbatim
16130 #: ../src/guestfs-structs.pod:74
16131 #, no-wrap
16132 msgid ""
16133 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16134 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16135 "\n"
16136 msgstr ""
16137
16138 # type: =head2
16139 #: ../src/guestfs-structs.pod:77
16140 msgid "guestfs_lvm_lv"
16141 msgstr ""
16142
16143 # type: verbatim
16144 #: ../src/guestfs-structs.pod:79
16145 #, no-wrap
16146 msgid ""
16147 " struct guestfs_lvm_lv {\n"
16148 "   char *lv_name;\n"
16149 "   /* The next field is NOT nul-terminated, be careful when printing it: "
16150 "*/\n"
16151 "   char lv_uuid[32];\n"
16152 "   char *lv_attr;\n"
16153 "   int64_t lv_major;\n"
16154 "   int64_t lv_minor;\n"
16155 "   int64_t lv_kernel_major;\n"
16156 "   int64_t lv_kernel_minor;\n"
16157 "   uint64_t lv_size;\n"
16158 "   int64_t seg_count;\n"
16159 "   char *origin;\n"
16160 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16161 "   float snap_percent;\n"
16162 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16163 "   float copy_percent;\n"
16164 "   char *move_pv;\n"
16165 "   char *lv_tags;\n"
16166 "   char *mirror_log;\n"
16167 "   char *modules;\n"
16168 " };\n"
16169 " \n"
16170 msgstr ""
16171
16172 # type: verbatim
16173 #: ../src/guestfs-structs.pod:101
16174 #, no-wrap
16175 msgid ""
16176 " struct guestfs_lvm_lv_list {\n"
16177 "   uint32_t len; /* Number of elements in list. */\n"
16178 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16179 " };\n"
16180 " \n"
16181 msgstr ""
16182
16183 # type: verbatim
16184 #: ../src/guestfs-structs.pod:106
16185 #, no-wrap
16186 msgid ""
16187 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16188 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16189 "\n"
16190 msgstr ""
16191
16192 # type: verbatim
16193 #: ../src/guestfs-structs.pod:111
16194 #, no-wrap
16195 msgid ""
16196 " struct guestfs_stat {\n"
16197 "   int64_t dev;\n"
16198 "   int64_t ino;\n"
16199 "   int64_t mode;\n"
16200 "   int64_t nlink;\n"
16201 "   int64_t uid;\n"
16202 "   int64_t gid;\n"
16203 "   int64_t rdev;\n"
16204 "   int64_t size;\n"
16205 "   int64_t blksize;\n"
16206 "   int64_t blocks;\n"
16207 "   int64_t atime;\n"
16208 "   int64_t mtime;\n"
16209 "   int64_t ctime;\n"
16210 " };\n"
16211 " \n"
16212 msgstr ""
16213
16214 # type: verbatim
16215 #: ../src/guestfs-structs.pod:127
16216 #, no-wrap
16217 msgid ""
16218 " struct guestfs_stat_list {\n"
16219 "   uint32_t len; /* Number of elements in list. */\n"
16220 "   struct guestfs_stat *val; /* Elements. */\n"
16221 " };\n"
16222 " \n"
16223 msgstr ""
16224
16225 # type: verbatim
16226 #: ../src/guestfs-structs.pod:132
16227 #, no-wrap
16228 msgid ""
16229 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16230 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16231 "\n"
16232 msgstr ""
16233
16234 # type: verbatim
16235 #: ../src/guestfs-structs.pod:137
16236 #, no-wrap
16237 msgid ""
16238 " struct guestfs_statvfs {\n"
16239 "   int64_t bsize;\n"
16240 "   int64_t frsize;\n"
16241 "   int64_t blocks;\n"
16242 "   int64_t bfree;\n"
16243 "   int64_t bavail;\n"
16244 "   int64_t files;\n"
16245 "   int64_t ffree;\n"
16246 "   int64_t favail;\n"
16247 "   int64_t fsid;\n"
16248 "   int64_t flag;\n"
16249 "   int64_t namemax;\n"
16250 " };\n"
16251 " \n"
16252 msgstr ""
16253
16254 # type: verbatim
16255 #: ../src/guestfs-structs.pod:151
16256 #, no-wrap
16257 msgid ""
16258 " struct guestfs_statvfs_list {\n"
16259 "   uint32_t len; /* Number of elements in list. */\n"
16260 "   struct guestfs_statvfs *val; /* Elements. */\n"
16261 " };\n"
16262 " \n"
16263 msgstr ""
16264
16265 # type: verbatim
16266 #: ../src/guestfs-structs.pod:156
16267 #, no-wrap
16268 msgid ""
16269 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16270 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16271 "\n"
16272 msgstr ""
16273
16274 # type: =head2
16275 #: ../src/guestfs-structs.pod:159
16276 msgid "guestfs_dirent"
16277 msgstr ""
16278
16279 # type: verbatim
16280 #: ../src/guestfs-structs.pod:161
16281 #, no-wrap
16282 msgid ""
16283 " struct guestfs_dirent {\n"
16284 "   int64_t ino;\n"
16285 "   char ftyp;\n"
16286 "   char *name;\n"
16287 " };\n"
16288 " \n"
16289 msgstr ""
16290
16291 # type: verbatim
16292 #: ../src/guestfs-structs.pod:167
16293 #, no-wrap
16294 msgid ""
16295 " struct guestfs_dirent_list {\n"
16296 "   uint32_t len; /* Number of elements in list. */\n"
16297 "   struct guestfs_dirent *val; /* Elements. */\n"
16298 " };\n"
16299 " \n"
16300 msgstr ""
16301
16302 # type: verbatim
16303 #: ../src/guestfs-structs.pod:172
16304 #, no-wrap
16305 msgid ""
16306 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16307 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16308 "\n"
16309 msgstr ""
16310
16311 # type: verbatim
16312 #: ../src/guestfs-structs.pod:177
16313 #, no-wrap
16314 msgid ""
16315 " struct guestfs_version {\n"
16316 "   int64_t major;\n"
16317 "   int64_t minor;\n"
16318 "   int64_t release;\n"
16319 "   char *extra;\n"
16320 " };\n"
16321 " \n"
16322 msgstr ""
16323
16324 # type: verbatim
16325 #: ../src/guestfs-structs.pod:184
16326 #, no-wrap
16327 msgid ""
16328 " struct guestfs_version_list {\n"
16329 "   uint32_t len; /* Number of elements in list. */\n"
16330 "   struct guestfs_version *val; /* Elements. */\n"
16331 " };\n"
16332 " \n"
16333 msgstr ""
16334
16335 # type: verbatim
16336 #: ../src/guestfs-structs.pod:189
16337 #, no-wrap
16338 msgid ""
16339 " void guestfs_free_version (struct guestfs_free_version *);\n"
16340 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16341 "\n"
16342 msgstr ""
16343
16344 # type: =head2
16345 #: ../src/guestfs-structs.pod:192
16346 msgid "guestfs_xattr"
16347 msgstr ""
16348
16349 # type: verbatim
16350 #: ../src/guestfs-structs.pod:194
16351 #, no-wrap
16352 msgid ""
16353 " struct guestfs_xattr {\n"
16354 "   char *attrname;\n"
16355 "   /* The next two fields describe a byte array. */\n"
16356 "   uint32_t attrval_len;\n"
16357 "   char *attrval;\n"
16358 " };\n"
16359 " \n"
16360 msgstr ""
16361
16362 # type: verbatim
16363 #: ../src/guestfs-structs.pod:201
16364 #, no-wrap
16365 msgid ""
16366 " struct guestfs_xattr_list {\n"
16367 "   uint32_t len; /* Number of elements in list. */\n"
16368 "   struct guestfs_xattr *val; /* Elements. */\n"
16369 " };\n"
16370 " \n"
16371 msgstr ""
16372
16373 # type: verbatim
16374 #: ../src/guestfs-structs.pod:206
16375 #, no-wrap
16376 msgid ""
16377 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
16378 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
16379 "\n"
16380 msgstr ""
16381
16382 # type: =head2
16383 #: ../src/guestfs-structs.pod:209
16384 msgid "guestfs_inotify_event"
16385 msgstr ""
16386
16387 # type: verbatim
16388 #: ../src/guestfs-structs.pod:211
16389 #, no-wrap
16390 msgid ""
16391 " struct guestfs_inotify_event {\n"
16392 "   int64_t in_wd;\n"
16393 "   uint32_t in_mask;\n"
16394 "   uint32_t in_cookie;\n"
16395 "   char *in_name;\n"
16396 " };\n"
16397 " \n"
16398 msgstr ""
16399
16400 # type: verbatim
16401 #: ../src/guestfs-structs.pod:218
16402 #, no-wrap
16403 msgid ""
16404 " struct guestfs_inotify_event_list {\n"
16405 "   uint32_t len; /* Number of elements in list. */\n"
16406 "   struct guestfs_inotify_event *val; /* Elements. */\n"
16407 " };\n"
16408 " \n"
16409 msgstr ""
16410
16411 # type: verbatim
16412 #: ../src/guestfs-structs.pod:223
16413 #, no-wrap
16414 msgid ""
16415 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
16416 " void guestfs_free_inotify_event_list (struct "
16417 "guestfs_free_inotify_event_list *);\n"
16418 "\n"
16419 msgstr ""
16420
16421 # type: =head2
16422 #: ../src/guestfs-structs.pod:226
16423 msgid "guestfs_partition"
16424 msgstr ""
16425
16426 # type: verbatim
16427 #: ../src/guestfs-structs.pod:228
16428 #, no-wrap
16429 msgid ""
16430 " struct guestfs_partition {\n"
16431 "   int32_t part_num;\n"
16432 "   uint64_t part_start;\n"
16433 "   uint64_t part_end;\n"
16434 "   uint64_t part_size;\n"
16435 " };\n"
16436 " \n"
16437 msgstr ""
16438
16439 # type: verbatim
16440 #: ../src/guestfs-structs.pod:235
16441 #, no-wrap
16442 msgid ""
16443 " struct guestfs_partition_list {\n"
16444 "   uint32_t len; /* Number of elements in list. */\n"
16445 "   struct guestfs_partition *val; /* Elements. */\n"
16446 " };\n"
16447 " \n"
16448 msgstr ""
16449
16450 # type: verbatim
16451 #: ../src/guestfs-structs.pod:240
16452 #, no-wrap
16453 msgid ""
16454 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
16455 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
16456 "\n"
16457 msgstr ""
16458
16459 # type: =head2
16460 #: ../src/guestfs-structs.pod:243
16461 msgid "guestfs_application"
16462 msgstr ""
16463
16464 # type: verbatim
16465 #: ../src/guestfs-structs.pod:245
16466 #, no-wrap
16467 msgid ""
16468 " struct guestfs_application {\n"
16469 "   char *app_name;\n"
16470 "   char *app_display_name;\n"
16471 "   int32_t app_epoch;\n"
16472 "   char *app_version;\n"
16473 "   char *app_release;\n"
16474 "   char *app_install_path;\n"
16475 "   char *app_trans_path;\n"
16476 "   char *app_publisher;\n"
16477 "   char *app_url;\n"
16478 "   char *app_source_package;\n"
16479 "   char *app_summary;\n"
16480 "   char *app_description;\n"
16481 " };\n"
16482 " \n"
16483 msgstr ""
16484
16485 # type: verbatim
16486 #: ../src/guestfs-structs.pod:260
16487 #, no-wrap
16488 msgid ""
16489 " struct guestfs_application_list {\n"
16490 "   uint32_t len; /* Number of elements in list. */\n"
16491 "   struct guestfs_application *val; /* Elements. */\n"
16492 " };\n"
16493 " \n"
16494 msgstr ""
16495
16496 # type: verbatim
16497 #: ../src/guestfs-structs.pod:265
16498 #, no-wrap
16499 msgid ""
16500 " void guestfs_free_application (struct guestfs_free_application *);\n"
16501 " void guestfs_free_application_list (struct guestfs_free_application_list "
16502 "*);\n"
16503 "\n"
16504 msgstr ""
16505
16506 # type: textblock
16507 #: ../fish/guestfish.pod:5
16508 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16509 msgstr ""
16510
16511 # type: verbatim
16512 #: ../fish/guestfish.pod:9
16513 #, no-wrap
16514 msgid ""
16515 " guestfish [--options] [commands]\n"
16516 "\n"
16517 msgstr ""
16518
16519 # type: verbatim
16520 #: ../fish/guestfish.pod:11
16521 #, no-wrap
16522 msgid ""
16523 " guestfish\n"
16524 "\n"
16525 msgstr ""
16526
16527 # type: verbatim
16528 #: ../fish/guestfish.pod:13
16529 #, no-wrap
16530 msgid ""
16531 " guestfish [--ro|--rw] -a disk.img\n"
16532 "\n"
16533 msgstr ""
16534
16535 # type: verbatim
16536 #: ../fish/guestfish.pod:15
16537 #, no-wrap
16538 msgid ""
16539 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16540 "\n"
16541 msgstr ""
16542
16543 # type: verbatim
16544 #: ../fish/guestfish.pod:17
16545 #, no-wrap
16546 msgid ""
16547 " guestfish -d libvirt-domain\n"
16548 "\n"
16549 msgstr ""
16550
16551 # type: verbatim
16552 #: ../fish/guestfish.pod:19
16553 #, no-wrap
16554 msgid ""
16555 " guestfish [--ro|--rw] -a disk.img -i\n"
16556 "\n"
16557 msgstr ""
16558
16559 # type: verbatim
16560 #: ../fish/guestfish.pod:21
16561 #, no-wrap
16562 msgid ""
16563 " guestfish -d libvirt-domain -i\n"
16564 "\n"
16565 msgstr ""
16566
16567 # type: =head1
16568 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
16569 msgid "WARNING"
16570 msgstr ""
16571
16572 # type: textblock
16573 #: ../fish/guestfish.pod:25
16574 msgid ""
16575 "Using guestfish in read/write mode on live virtual machines can be "
16576 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16577 "option to use guestfish safely if the disk image or virtual machine might be "
16578 "live."
16579 msgstr ""
16580
16581 # type: textblock
16582 #: ../fish/guestfish.pod:32
16583 msgid ""
16584 "Guestfish is a shell and command-line tool for examining and modifying "
16585 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16586 "functionality of the guestfs API, see L<guestfs(3)>."
16587 msgstr ""
16588
16589 # type: textblock
16590 #: ../fish/guestfish.pod:36
16591 msgid ""
16592 "Guestfish gives you structured access to the libguestfs API, from shell "
16593 "scripts or the command line or interactively.  If you want to rescue a "
16594 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16595 "command."
16596 msgstr ""
16597
16598 # type: =head1
16599 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
16600 msgid "EXAMPLES"
16601 msgstr ""
16602
16603 # type: =head2
16604 #: ../fish/guestfish.pod:43
16605 msgid "As an interactive shell"
16606 msgstr ""
16607
16608 # type: verbatim
16609 #: ../fish/guestfish.pod:45
16610 #, no-wrap
16611 msgid ""
16612 " $ guestfish\n"
16613 " \n"
16614 msgstr ""
16615
16616 # type: verbatim
16617 #: ../fish/guestfish.pod:47
16618 #, no-wrap
16619 msgid ""
16620 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16621 " editing virtual machine filesystems.\n"
16622 " \n"
16623 msgstr ""
16624
16625 # type: verbatim
16626 #: ../fish/guestfish.pod:50
16627 #, no-wrap
16628 msgid ""
16629 " Type: 'help' for a list of commands\n"
16630 "       'man' to read the manual\n"
16631 "       'quit' to quit the shell\n"
16632 " \n"
16633 msgstr ""
16634
16635 # type: verbatim
16636 #: ../fish/guestfish.pod:54
16637 #, no-wrap
16638 msgid ""
16639 " ><fs> add-ro disk.img\n"
16640 " ><fs> run\n"
16641 " ><fs> list-filesystems\n"
16642 " /dev/sda1: ext4\n"
16643 " /dev/vg_guest/lv_root: ext4\n"
16644 " /dev/vg_guest/lv_swap: swap\n"
16645 " ><fs> mount /dev/vg_guest/lv_root /\n"
16646 " ><fs> cat /etc/fstab\n"
16647 " # /etc/fstab\n"
16648 " # Created by anaconda\n"
16649 " [...]\n"
16650 " ><fs> exit\n"
16651 "\n"
16652 msgstr ""
16653
16654 # type: =head2
16655 #: ../fish/guestfish.pod:67
16656 msgid "From shell scripts"
16657 msgstr ""
16658
16659 # type: textblock
16660 #: ../fish/guestfish.pod:69
16661 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16662 msgstr ""
16663
16664 # type: verbatim
16665 #: ../fish/guestfish.pod:71
16666 #, no-wrap
16667 msgid ""
16668 " guestfish <<_EOF_\n"
16669 " add disk.img\n"
16670 " run\n"
16671 " mount /dev/vg_guest/lv_root /\n"
16672 " write /etc/motd \"Welcome, new users\"\n"
16673 " _EOF_\n"
16674 "\n"
16675 msgstr ""
16676
16677 # type: textblock
16678 #: ../fish/guestfish.pod:78
16679 msgid "List the LVM logical volumes in a disk image:"
16680 msgstr ""
16681
16682 # type: verbatim
16683 #: ../fish/guestfish.pod:80
16684 #, no-wrap
16685 msgid ""
16686 " guestfish -a disk.img --ro <<_EOF_\n"
16687 " run\n"
16688 " lvs\n"
16689 " _EOF_\n"
16690 "\n"
16691 msgstr ""
16692
16693 # type: textblock
16694 #: ../fish/guestfish.pod:85
16695 msgid "List all the filesystems in a disk image:"
16696 msgstr ""
16697
16698 # type: verbatim
16699 #: ../fish/guestfish.pod:87
16700 #, no-wrap
16701 msgid ""
16702 " guestfish -a disk.img --ro <<_EOF_\n"
16703 " run\n"
16704 " list-filesystems\n"
16705 " _EOF_\n"
16706 "\n"
16707 msgstr ""
16708
16709 # type: =head2
16710 #: ../fish/guestfish.pod:92
16711 msgid "On one command line"
16712 msgstr ""
16713
16714 # type: textblock
16715 #: ../fish/guestfish.pod:94
16716 msgid "Update C</etc/resolv.conf> in a guest:"
16717 msgstr ""
16718
16719 # type: verbatim
16720 #: ../fish/guestfish.pod:96
16721 #, no-wrap
16722 msgid ""
16723 " guestfish \\\n"
16724 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16725 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16726 "\n"
16727 msgstr ""
16728
16729 # type: textblock
16730 #: ../fish/guestfish.pod:100
16731 msgid "Edit C</boot/grub/grub.conf> interactively:"
16732 msgstr ""
16733
16734 # type: verbatim
16735 #: ../fish/guestfish.pod:102
16736 #, no-wrap
16737 msgid ""
16738 " guestfish --rw --add disk.img \\\n"
16739 "   --mount /dev/vg_guest/lv_root \\\n"
16740 "   --mount /dev/sda1:/boot \\\n"
16741 "   edit /boot/grub/grub.conf\n"
16742 "\n"
16743 msgstr ""
16744
16745 # type: =head2
16746 #: ../fish/guestfish.pod:107
16747 msgid "Mount disks automatically"
16748 msgstr ""
16749
16750 # type: textblock
16751 #: ../fish/guestfish.pod:109
16752 msgid ""
16753 "Use the I<-i> option to automatically mount the disks from a virtual "
16754 "machine:"
16755 msgstr ""
16756
16757 # type: verbatim
16758 #: ../fish/guestfish.pod:112
16759 #, no-wrap
16760 msgid ""
16761 " guestfish --ro -a disk.img -i cat /etc/group\n"
16762 "\n"
16763 msgstr ""
16764
16765 # type: verbatim
16766 #: ../fish/guestfish.pod:114
16767 #, no-wrap
16768 msgid ""
16769 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16770 "\n"
16771 msgstr ""
16772
16773 # type: textblock
16774 #: ../fish/guestfish.pod:116
16775 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16776 msgstr ""
16777
16778 # type: verbatim
16779 #: ../fish/guestfish.pod:118
16780 #, no-wrap
16781 msgid ""
16782 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16783 "\n"
16784 msgstr ""
16785
16786 # type: =head2
16787 #: ../fish/guestfish.pod:120
16788 msgid "As a script interpreter"
16789 msgstr ""
16790
16791 # type: textblock
16792 #: ../fish/guestfish.pod:122
16793 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16794 msgstr ""
16795
16796 # type: verbatim
16797 #: ../fish/guestfish.pod:124
16798 #, no-wrap
16799 msgid ""
16800 " #!/usr/bin/guestfish -f\n"
16801 " sparse test1.img 100M\n"
16802 " run\n"
16803 " part-disk /dev/sda mbr\n"
16804 " mkfs ext2 /dev/sda1\n"
16805 "\n"
16806 msgstr ""
16807
16808 # type: =head2
16809 #: ../fish/guestfish.pod:130
16810 msgid "Start with a prepared disk"
16811 msgstr ""
16812
16813 # type: textblock
16814 #: ../fish/guestfish.pod:132
16815 msgid ""
16816 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16817 "single ext2-formatted partition:"
16818 msgstr ""
16819
16820 # type: verbatim
16821 #: ../fish/guestfish.pod:135
16822 #, no-wrap
16823 msgid ""
16824 " guestfish -N fs\n"
16825 "\n"
16826 msgstr ""
16827
16828 # type: textblock
16829 #: ../fish/guestfish.pod:137
16830 msgid "To list what is available do:"
16831 msgstr ""
16832
16833 # type: verbatim
16834 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
16835 #, no-wrap
16836 msgid ""
16837 " guestfish -N help | less\n"
16838 "\n"
16839 msgstr ""
16840
16841 # type: =head2
16842 #: ../fish/guestfish.pod:141
16843 msgid "Remote control"
16844 msgstr ""
16845
16846 # type: verbatim
16847 #: ../fish/guestfish.pod:143
16848 #, no-wrap
16849 msgid ""
16850 " eval \"`guestfish --listen`\"\n"
16851 " guestfish --remote add-ro disk.img\n"
16852 " guestfish --remote run\n"
16853 " guestfish --remote lvs\n"
16854 "\n"
16855 msgstr ""
16856
16857 # type: =head1
16858 #: ../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:96 ../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
16859 msgid "OPTIONS"
16860 msgstr ""
16861
16862 # type: =item
16863 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104 ../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
16864 msgid "B<--help>"
16865 msgstr ""
16866
16867 # type: textblock
16868 #: ../fish/guestfish.pod:154
16869 msgid "Displays general help on options."
16870 msgstr ""
16871
16872 # type: =item
16873 #: ../fish/guestfish.pod:156
16874 msgid "B<-h>"
16875 msgstr ""
16876
16877 # type: =item
16878 #: ../fish/guestfish.pod:158
16879 msgid "B<--cmd-help>"
16880 msgstr ""
16881
16882 # type: textblock
16883 #: ../fish/guestfish.pod:160
16884 msgid "Lists all available guestfish commands."
16885 msgstr ""
16886
16887 # type: =item
16888 #: ../fish/guestfish.pod:162
16889 msgid "B<-h cmd>"
16890 msgstr ""
16891
16892 # type: =item
16893 #: ../fish/guestfish.pod:164
16894 msgid "B<--cmd-help cmd>"
16895 msgstr ""
16896
16897 # type: textblock
16898 #: ../fish/guestfish.pod:166
16899 msgid "Displays detailed help on a single command C<cmd>."
16900 msgstr ""
16901
16902 # type: =item
16903 #: ../fish/guestfish.pod:168
16904 msgid "B<-a image>"
16905 msgstr ""
16906
16907 # type: =item
16908 #: ../fish/guestfish.pod:170
16909 msgid "B<--add image>"
16910 msgstr ""
16911
16912 # type: textblock
16913 #: ../fish/guestfish.pod:172
16914 msgid "Add a block device or virtual machine image to the shell."
16915 msgstr ""
16916
16917 # type: textblock
16918 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
16919 msgid ""
16920 "The format of the disk image is auto-detected.  To override this and force a "
16921 "particular format use the I<--format=..> option."
16922 msgstr ""
16923
16924 # type: textblock
16925 #: ../fish/guestfish.pod:177
16926 msgid ""
16927 "Using this flag is mostly equivalent to using the C<add> command, with "
16928 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16929 "the I<--format:...> flag was given."
16930 msgstr ""
16931
16932 # type: =item
16933 #: ../fish/guestfish.pod:181
16934 msgid "B<-c URI>"
16935 msgstr ""
16936
16937 # type: =item
16938 #: ../fish/guestfish.pod:183
16939 msgid "B<--connect URI>"
16940 msgstr ""
16941
16942 # type: textblock
16943 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
16944 msgid ""
16945 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16946 "URI to use.  The default is to use the default libvirt connection."
16947 msgstr ""
16948
16949 # type: =item
16950 #: ../fish/guestfish.pod:189
16951 msgid "B<--csh>"
16952 msgstr ""
16953
16954 # type: textblock
16955 #: ../fish/guestfish.pod:191
16956 msgid ""
16957 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16958 "section L</REMOTE CONTROL AND CSH> below."
16959 msgstr ""
16960
16961 # type: =item
16962 #: ../fish/guestfish.pod:194
16963 msgid "B<-d libvirt-domain>"
16964 msgstr ""
16965
16966 # type: =item
16967 #: ../fish/guestfish.pod:196
16968 msgid "B<--domain libvirt-domain>"
16969 msgstr ""
16970
16971 # type: textblock
16972 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
16973 msgid ""
16974 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16975 "used, then any libvirt domain can be used.  However in write mode, only "
16976 "libvirt domains which are shut down can be named here."
16977 msgstr ""
16978
16979 # type: textblock
16980 #: ../fish/guestfish.pod:202
16981 msgid ""
16982 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16983 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16984 "if the I<--format:...> flag was given."
16985 msgstr ""
16986
16987 # type: =item
16988 #: ../fish/guestfish.pod:206
16989 msgid "B<-D>"
16990 msgstr ""
16991
16992 # type: =item
16993 #: ../fish/guestfish.pod:208
16994 msgid "B<--no-dest-paths>"
16995 msgstr ""
16996
16997 # type: textblock
16998 #: ../fish/guestfish.pod:210
16999 msgid ""
17000 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17001 "to hit the tab key to complete paths on the guest filesystem, but this "
17002 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17003 "allow this feature to be disabled."
17004 msgstr ""
17005
17006 # type: =item
17007 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
17008 msgid "B<--echo-keys>"
17009 msgstr ""
17010
17011 # type: textblock
17012 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
17013 msgid ""
17014 "When prompting for keys and passphrases, guestfish normally turns echoing "
17015 "off so you cannot see what you are typing.  If you are not worried about "
17016 "Tempest attacks and there is no one else in the room you can specify this "
17017 "flag to see what you are typing."
17018 msgstr ""
17019
17020 # type: =item
17021 #: ../fish/guestfish.pod:222
17022 msgid "B<-f file>"
17023 msgstr ""
17024
17025 # type: =item
17026 #: ../fish/guestfish.pod:224
17027 msgid "B<--file file>"
17028 msgstr ""
17029
17030 # type: textblock
17031 #: ../fish/guestfish.pod:226
17032 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17033 msgstr ""
17034
17035 # type: verbatim
17036 #: ../fish/guestfish.pod:229
17037 #, no-wrap
17038 msgid ""
17039 " #!/usr/bin/guestfish -f\n"
17040 "\n"
17041 msgstr ""
17042
17043 # type: =item
17044 #: ../fish/guestfish.pod:231
17045 msgid "B<--format=raw|qcow2|..>"
17046 msgstr ""
17047
17048 # type: =item
17049 #: ../fish/guestfish.pod:233
17050 msgid "B<--format>"
17051 msgstr ""
17052
17053 # type: textblock
17054 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
17055 msgid ""
17056 "The default for the I<-a> option is to auto-detect the format of the disk "
17057 "image.  Using this forces the disk format for I<-a> options which follow on "
17058 "the command line.  Using I<--format> with no argument switches back to "
17059 "auto-detection for subsequent I<-a> options."
17060 msgstr ""
17061
17062 # type: textblock
17063 #: ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
17064 msgid "For example:"
17065 msgstr ""
17066
17067 # type: verbatim
17068 #: ../fish/guestfish.pod:242
17069 #, no-wrap
17070 msgid ""
17071 " guestfish --format=raw -a disk.img\n"
17072 "\n"
17073 msgstr ""
17074
17075 # type: textblock
17076 #: ../fish/guestfish.pod:244
17077 msgid "forces raw format (no auto-detection) for C<disk.img>."
17078 msgstr ""
17079
17080 # type: verbatim
17081 #: ../fish/guestfish.pod:246
17082 #, no-wrap
17083 msgid ""
17084 " guestfish --format=raw -a disk.img --format -a another.img\n"
17085 "\n"
17086 msgstr ""
17087
17088 # type: textblock
17089 #: ../fish/guestfish.pod:248
17090 msgid ""
17091 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
17092 "auto-detection for C<another.img>."
17093 msgstr ""
17094
17095 # type: textblock
17096 #: ../fish/guestfish.pod:251
17097 msgid ""
17098 "If you have untrusted raw-format guest disk images, you should use this "
17099 "option to specify the disk format.  This avoids a possible security problem "
17100 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17101 msgstr ""
17102
17103 # type: =item
17104 #: ../fish/guestfish.pod:256
17105 msgid "B<-i>"
17106 msgstr ""
17107
17108 # type: =item
17109 #: ../fish/guestfish.pod:258
17110 msgid "B<--inspector>"
17111 msgstr ""
17112
17113 # type: textblock
17114 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
17115 msgid ""
17116 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17117 "system and mount filesystems as they would be mounted on the real virtual "
17118 "machine."
17119 msgstr ""
17120
17121 # type: textblock
17122 #: ../fish/guestfish.pod:264
17123 msgid "Typical usage is either:"
17124 msgstr ""
17125
17126 # type: verbatim
17127 #: ../fish/guestfish.pod:266
17128 #, no-wrap
17129 msgid ""
17130 " guestfish -d myguest -i\n"
17131 "\n"
17132 msgstr ""
17133
17134 # type: textblock
17135 #: ../fish/guestfish.pod:268
17136 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17137 msgstr ""
17138
17139 # type: verbatim
17140 #: ../fish/guestfish.pod:270
17141 #, no-wrap
17142 msgid ""
17143 " guestfish --ro -d myguest -i\n"
17144 "\n"
17145 msgstr ""
17146
17147 # type: textblock
17148 #: ../fish/guestfish.pod:272
17149 msgid "(for active domains, readonly), or specify the block device directly:"
17150 msgstr ""
17151
17152 # type: verbatim
17153 #: ../fish/guestfish.pod:274
17154 #, no-wrap
17155 msgid ""
17156 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17157 "\n"
17158 msgstr ""
17159
17160 # type: textblock
17161 #: ../fish/guestfish.pod:276
17162 msgid ""
17163 "Note that the command line syntax changed slightly over older versions of "
17164 "guestfish.  You can still use the old syntax:"
17165 msgstr ""
17166
17167 # type: verbatim
17168 #: ../fish/guestfish.pod:279
17169 #, no-wrap
17170 msgid ""
17171 " guestfish [--ro] -i disk.img\n"
17172 "\n"
17173 msgstr ""
17174
17175 # type: verbatim
17176 #: ../fish/guestfish.pod:281
17177 #, no-wrap
17178 msgid ""
17179 " guestfish [--ro] -i libvirt-domain\n"
17180 "\n"
17181 msgstr ""
17182
17183 # type: textblock
17184 #: ../fish/guestfish.pod:283
17185 msgid ""
17186 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17187 "then using other commands to mount the filesystems that were found."
17188 msgstr ""
17189
17190 # type: =item
17191 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
17192 msgid "B<--keys-from-stdin>"
17193 msgstr ""
17194
17195 # type: textblock
17196 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
17197 msgid ""
17198 "Read key or passphrase parameters from stdin.  The default is to try to read "
17199 "passphrases from the user by opening C</dev/tty>."
17200 msgstr ""
17201
17202 # type: =item
17203 #: ../fish/guestfish.pod:292
17204 msgid "B<--listen>"
17205 msgstr ""
17206
17207 # type: textblock
17208 #: ../fish/guestfish.pod:294
17209 msgid ""
17210 "Fork into the background and listen for remote commands.  See section "
17211 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17212 msgstr ""
17213
17214 # type: =item
17215 #: ../fish/guestfish.pod:297
17216 msgid "B<-m dev[:mountpoint]>"
17217 msgstr ""
17218
17219 # type: =item
17220 #: ../fish/guestfish.pod:299
17221 msgid "B<--mount dev[:mountpoint]>"
17222 msgstr ""
17223
17224 # type: textblock
17225 #: ../fish/guestfish.pod:301
17226 msgid "Mount the named partition or logical volume on the given mountpoint."
17227 msgstr ""
17228
17229 # type: textblock
17230 #: ../fish/guestfish.pod:303
17231 msgid "If the mountpoint is omitted, it defaults to C</>."
17232 msgstr ""
17233
17234 # type: textblock
17235 #: ../fish/guestfish.pod:305
17236 msgid "You have to mount something on C</> before most commands will work."
17237 msgstr ""
17238
17239 # type: textblock
17240 #: ../fish/guestfish.pod:307
17241 msgid ""
17242 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17243 "launched."
17244 msgstr ""
17245
17246 # type: textblock
17247 #: ../fish/guestfish.pod:310
17248 msgid ""
17249 "If you don't know what filesystems a disk image contains, you can either run "
17250 "guestfish without this option, then list the partitions, filesystems and LVs "
17251 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17252 "commands), or you can use the L<virt-filesystems(1)> program."
17253 msgstr ""
17254
17255 # type: textblock
17256 #: ../fish/guestfish.pod:316
17257 msgid ""
17258 "Using this flag is mostly equivalent to using the C<mount-options> command "
17259 "or the C<mount-ro> command if the I<--ro> flag was given."
17260 msgstr ""
17261
17262 # type: =item
17263 #: ../fish/guestfish.pod:319
17264 msgid "B<-n>"
17265 msgstr ""
17266
17267 # type: =item
17268 #: ../fish/guestfish.pod:321
17269 msgid "B<--no-sync>"
17270 msgstr ""
17271
17272 # type: textblock
17273 #: ../fish/guestfish.pod:323
17274 msgid ""
17275 "Disable autosync.  This is enabled by default.  See the discussion of "
17276 "autosync in the L<guestfs(3)> manpage."
17277 msgstr ""
17278
17279 # type: =item
17280 #: ../fish/guestfish.pod:326
17281 msgid "B<-N type>"
17282 msgstr ""
17283
17284 # type: =item
17285 #: ../fish/guestfish.pod:328
17286 msgid "B<--new type>"
17287 msgstr ""
17288
17289 # type: =item
17290 #: ../fish/guestfish.pod:330
17291 msgid "B<-N help>"
17292 msgstr ""
17293
17294 # type: textblock
17295 #: ../fish/guestfish.pod:332
17296 msgid ""
17297 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17298 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17299 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17300 "IMAGES> below."
17301 msgstr ""
17302
17303 # type: =item
17304 #: ../fish/guestfish.pod:337
17305 msgid "B<--progress-bars>"
17306 msgstr ""
17307
17308 # type: textblock
17309 #: ../fish/guestfish.pod:339
17310 msgid "Enable progress bars, even when guestfish is used non-interactively."
17311 msgstr ""
17312
17313 # type: textblock
17314 #: ../fish/guestfish.pod:341
17315 msgid ""
17316 "Progress bars are enabled by default when guestfish is used as an "
17317 "interactive shell."
17318 msgstr ""
17319
17320 # type: =item
17321 #: ../fish/guestfish.pod:344
17322 msgid "B<--no-progress-bars>"
17323 msgstr ""
17324
17325 # type: textblock
17326 #: ../fish/guestfish.pod:346
17327 msgid "Disable progress bars."
17328 msgstr ""
17329
17330 # type: =item
17331 #: ../fish/guestfish.pod:348
17332 msgid "B<--remote[=pid]>"
17333 msgstr ""
17334
17335 # type: textblock
17336 #: ../fish/guestfish.pod:350
17337 msgid ""
17338 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17339 "CONTROL GUESTFISH OVER A SOCKET> below."
17340 msgstr ""
17341
17342 # type: =item
17343 #: ../fish/guestfish.pod:353
17344 msgid "B<-r>"
17345 msgstr ""
17346
17347 # type: =item
17348 #: ../fish/guestfish.pod:355
17349 msgid "B<--ro>"
17350 msgstr ""
17351
17352 # type: textblock
17353 #: ../fish/guestfish.pod:357
17354 msgid ""
17355 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17356 "mounts are done read-only."
17357 msgstr ""
17358
17359 # type: textblock
17360 #: ../fish/guestfish.pod:360
17361 msgid ""
17362 "The option must always be used if the disk image or virtual machine might be "
17363 "running, and is generally recommended in cases where you don't need write "
17364 "access to the disk."
17365 msgstr ""
17366
17367 # type: textblock
17368 #: ../fish/guestfish.pod:364
17369 msgid ""
17370 "Note that prepared disk images created with I<-N> are not affected by this "
17371 "option.  Also commands like C<add> are not affected - you have to specify "
17372 "the C<readonly:true> option explicitly if you need it."
17373 msgstr ""
17374
17375 # type: textblock
17376 #: ../fish/guestfish.pod:368
17377 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17378 msgstr ""
17379
17380 # type: =item
17381 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
17382 msgid "B<--selinux>"
17383 msgstr ""
17384
17385 # type: textblock
17386 #: ../fish/guestfish.pod:372
17387 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17388 msgstr ""
17389
17390 # type: =item
17391 #: ../fish/guestfish.pod:374
17392 msgid "B<-v>"
17393 msgstr ""
17394
17395 # type: =item
17396 #: ../fish/guestfish.pod:376
17397 msgid "B<--verbose>"
17398 msgstr ""
17399
17400 # type: textblock
17401 #: ../fish/guestfish.pod:378
17402 msgid ""
17403 "Enable very verbose messages.  This is particularly useful if you find a "
17404 "bug."
17405 msgstr ""
17406
17407 # type: =item
17408 #: ../fish/guestfish.pod:381
17409 msgid "B<-V>"
17410 msgstr ""
17411
17412 # type: =item
17413 #: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:112 ../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
17414 msgid "B<--version>"
17415 msgstr ""
17416
17417 # type: textblock
17418 #: ../fish/guestfish.pod:385
17419 msgid "Display the guestfish / libguestfs version number and exit."
17420 msgstr ""
17421
17422 # type: =item
17423 #: ../fish/guestfish.pod:387
17424 msgid "B<-w>"
17425 msgstr ""
17426
17427 # type: =item
17428 #: ../fish/guestfish.pod:389
17429 msgid "B<--rw>"
17430 msgstr ""
17431
17432 # type: textblock
17433 #: ../fish/guestfish.pod:391
17434 msgid ""
17435 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
17436 "WRITE> below."
17437 msgstr ""
17438
17439 # type: =item
17440 #: ../fish/guestfish.pod:394
17441 msgid "B<-x>"
17442 msgstr ""
17443
17444 # type: textblock
17445 #: ../fish/guestfish.pod:396
17446 msgid "Echo each command before executing it."
17447 msgstr ""
17448
17449 # type: =head1
17450 #: ../fish/guestfish.pod:400
17451 msgid "COMMANDS ON COMMAND LINE"
17452 msgstr ""
17453
17454 # type: textblock
17455 #: ../fish/guestfish.pod:402
17456 msgid "Any additional (non-option) arguments are treated as commands to execute."
17457 msgstr ""
17458
17459 # type: textblock
17460 #: ../fish/guestfish.pod:405
17461 msgid ""
17462 "Commands to execute should be separated by a colon (C<:>), where the colon "
17463 "is a separate parameter.  Thus:"
17464 msgstr ""
17465
17466 # type: verbatim
17467 #: ../fish/guestfish.pod:408
17468 #, no-wrap
17469 msgid ""
17470 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17471 "\n"
17472 msgstr ""
17473
17474 # type: textblock
17475 #: ../fish/guestfish.pod:410
17476 msgid ""
17477 "If there are no additional arguments, then we enter a shell, either an "
17478 "interactive shell with a prompt (if the input is a terminal) or a "
17479 "non-interactive shell."
17480 msgstr ""
17481
17482 # type: textblock
17483 #: ../fish/guestfish.pod:414
17484 msgid ""
17485 "In either command line mode or non-interactive shell, the first command that "
17486 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17487 "prompt) if a command fails, you can continue to enter commands."
17488 msgstr ""
17489
17490 # type: =head1
17491 #: ../fish/guestfish.pod:419
17492 msgid "USING launch (OR run)"
17493 msgstr ""
17494
17495 # type: textblock
17496 #: ../fish/guestfish.pod:421
17497 msgid ""
17498 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17499 "then launch it, then mount any disks you need, and finally issue "
17500 "actions/commands.  So the general order of the day is:"
17501 msgstr ""
17502
17503 # type: textblock
17504 #: ../fish/guestfish.pod:429
17505 msgid "add or -a/--add"
17506 msgstr ""
17507
17508 # type: textblock
17509 #: ../fish/guestfish.pod:433
17510 msgid "launch (aka run)"
17511 msgstr ""
17512
17513 # type: textblock
17514 #: ../fish/guestfish.pod:437
17515 msgid "mount or -m/--mount"
17516 msgstr ""
17517
17518 # type: textblock
17519 #: ../fish/guestfish.pod:441
17520 msgid "any other commands"
17521 msgstr ""
17522
17523 # type: textblock
17524 #: ../fish/guestfish.pod:445
17525 msgid ""
17526 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17527 "guest before mounting or performing any other commands."
17528 msgstr ""
17529
17530 # type: textblock
17531 #: ../fish/guestfish.pod:448
17532 msgid ""
17533 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17534 "I<--new> options were given then C<run> is done automatically, simply "
17535 "because guestfish can't perform the action you asked for without doing this."
17536 msgstr ""
17537
17538 # type: =head1
17539 #: ../fish/guestfish.pod:453
17540 msgid "OPENING DISKS FOR READ AND WRITE"
17541 msgstr ""
17542
17543 # type: textblock
17544 #: ../fish/guestfish.pod:455
17545 msgid ""
17546 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
17547 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
17548 "open disk images read-only or for writing."
17549 msgstr ""
17550
17551 # type: textblock
17552 #: ../fish/guestfish.pod:459
17553 msgid ""
17554 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
17555 "disk images supplied on the command line for write.  To open a disk image "
17556 "read-only you have to do I<-a image --ro>."
17557 msgstr ""
17558
17559 # type: textblock
17560 #: ../fish/guestfish.pod:463
17561 msgid ""
17562 "This matters: If you accidentally open a live VM disk image writable then "
17563 "you will cause irreversible disk corruption."
17564 msgstr ""
17565
17566 # type: textblock
17567 #: ../fish/guestfish.pod:466
17568 msgid ""
17569 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
17570 "images will be opened read-only.  You will have to either specify "
17571 "I<guestfish --rw> or change a configuration file in order to get write "
17572 "access for disk images specified by those other command line options."
17573 msgstr ""
17574
17575 # type: textblock
17576 #: ../fish/guestfish.pod:471
17577 msgid ""
17578 "This version of guestfish has a I<--rw> option which does nothing (it is "
17579 "already the default).  However it is highly recommended that you use this "
17580 "option to indicate that guestfish needs write access, and to prepare your "
17581 "scripts for the day when this option will be required for write access."
17582 msgstr ""
17583
17584 # type: textblock
17585 #: ../fish/guestfish.pod:477
17586 msgid ""
17587 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17588 "other libguestfs program apart from guestfish and guestmount."
17589 msgstr ""
17590
17591 # type: =head1
17592 #: ../fish/guestfish.pod:480
17593 msgid "QUOTING"
17594 msgstr ""
17595
17596 # type: textblock
17597 #: ../fish/guestfish.pod:482
17598 msgid ""
17599 "You can quote ordinary parameters using either single or double quotes.  For "
17600 "example:"
17601 msgstr ""
17602
17603 # type: verbatim
17604 #: ../fish/guestfish.pod:485
17605 #, no-wrap
17606 msgid ""
17607 " add \"file with a space.img\"\n"
17608 "\n"
17609 msgstr ""
17610
17611 # type: verbatim
17612 #: ../fish/guestfish.pod:487
17613 #, no-wrap
17614 msgid ""
17615 " rm '/file name'\n"
17616 "\n"
17617 msgstr ""
17618
17619 # type: verbatim
17620 #: ../fish/guestfish.pod:489
17621 #, no-wrap
17622 msgid ""
17623 " rm '/\"'\n"
17624 "\n"
17625 msgstr ""
17626
17627 # type: textblock
17628 #: ../fish/guestfish.pod:491
17629 msgid ""
17630 "A few commands require a list of strings to be passed.  For these, use a "
17631 "whitespace-separated list, enclosed in quotes.  Strings containing "
17632 "whitespace to be passed through must be enclosed in single quotes.  A "
17633 "literal single quote must be escaped with a backslash."
17634 msgstr ""
17635
17636 # type: verbatim
17637 #: ../fish/guestfish.pod:496
17638 #, no-wrap
17639 msgid ""
17640 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17641 " command \"/bin/echo 'foo      bar'\"\n"
17642 " command \"/bin/echo \\'foo\\'\"\n"
17643 "\n"
17644 msgstr ""
17645
17646 # type: =head1
17647 #: ../fish/guestfish.pod:500
17648 msgid "OPTIONAL ARGUMENTS"
17649 msgstr ""
17650
17651 # type: textblock
17652 #: ../fish/guestfish.pod:502
17653 msgid ""
17654 "Some commands take optional arguments.  These arguments appear in this "
17655 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17656 msgstr ""
17657
17658 # type: verbatim
17659 #: ../fish/guestfish.pod:506
17660 #, no-wrap
17661 msgid ""
17662 " add-drive-opts filename\n"
17663 "\n"
17664 msgstr ""
17665
17666 # type: verbatim
17667 #: ../fish/guestfish.pod:508
17668 #, no-wrap
17669 msgid ""
17670 " add-drive-opts filename readonly:true\n"
17671 "\n"
17672 msgstr ""
17673
17674 # type: verbatim
17675 #: ../fish/guestfish.pod:510
17676 #, no-wrap
17677 msgid ""
17678 " add-drive-opts filename format:qcow2 readonly:false\n"
17679 "\n"
17680 msgstr ""
17681
17682 # type: textblock
17683 #: ../fish/guestfish.pod:512
17684 msgid ""
17685 "Each optional argument can appear at most once.  All optional arguments must "
17686 "appear after the required ones."
17687 msgstr ""
17688
17689 # type: =head1
17690 #: ../fish/guestfish.pod:515
17691 msgid "NUMBERS"
17692 msgstr ""
17693
17694 # type: textblock
17695 #: ../fish/guestfish.pod:517
17696 msgid "This section applies to all commands which can take integers as parameters."
17697 msgstr ""
17698
17699 # type: =head2
17700 #: ../fish/guestfish.pod:520
17701 msgid "SIZE SUFFIX"
17702 msgstr ""
17703
17704 # type: textblock
17705 #: ../fish/guestfish.pod:522
17706 msgid ""
17707 "When the command takes a parameter measured in bytes, you can use one of the "
17708 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17709 msgstr ""
17710
17711 # type: =item
17712 #: ../fish/guestfish.pod:528
17713 msgid "B<k> or B<K> or B<KiB>"
17714 msgstr ""
17715
17716 # type: textblock
17717 #: ../fish/guestfish.pod:530
17718 msgid "The size in kilobytes (multiplied by 1024)."
17719 msgstr ""
17720
17721 # type: =item
17722 #: ../fish/guestfish.pod:532
17723 msgid "B<KB>"
17724 msgstr ""
17725
17726 # type: textblock
17727 #: ../fish/guestfish.pod:534
17728 msgid "The size in SI 1000 byte units."
17729 msgstr ""
17730
17731 # type: =item
17732 #: ../fish/guestfish.pod:536
17733 msgid "B<M> or B<MiB>"
17734 msgstr ""
17735
17736 # type: textblock
17737 #: ../fish/guestfish.pod:538
17738 msgid "The size in megabytes (multiplied by 1048576)."
17739 msgstr ""
17740
17741 # type: =item
17742 #: ../fish/guestfish.pod:540
17743 msgid "B<MB>"
17744 msgstr ""
17745
17746 # type: textblock
17747 #: ../fish/guestfish.pod:542
17748 msgid "The size in SI 1000000 byte units."
17749 msgstr ""
17750
17751 # type: =item
17752 #: ../fish/guestfish.pod:544
17753 msgid "B<G> or B<GiB>"
17754 msgstr ""
17755
17756 # type: textblock
17757 #: ../fish/guestfish.pod:546
17758 msgid "The size in gigabytes (multiplied by 2**30)."
17759 msgstr ""
17760
17761 # type: =item
17762 #: ../fish/guestfish.pod:548
17763 msgid "B<GB>"
17764 msgstr ""
17765
17766 # type: textblock
17767 #: ../fish/guestfish.pod:550
17768 msgid "The size in SI 10**9 byte units."
17769 msgstr ""
17770
17771 # type: =item
17772 #: ../fish/guestfish.pod:552
17773 msgid "B<T> or B<TiB>"
17774 msgstr ""
17775
17776 # type: textblock
17777 #: ../fish/guestfish.pod:554
17778 msgid "The size in terabytes (multiplied by 2**40)."
17779 msgstr ""
17780
17781 # type: =item
17782 #: ../fish/guestfish.pod:556
17783 msgid "B<TB>"
17784 msgstr ""
17785
17786 # type: textblock
17787 #: ../fish/guestfish.pod:558
17788 msgid "The size in SI 10**12 byte units."
17789 msgstr ""
17790
17791 # type: =item
17792 #: ../fish/guestfish.pod:560
17793 msgid "B<P> or B<PiB>"
17794 msgstr ""
17795
17796 # type: textblock
17797 #: ../fish/guestfish.pod:562
17798 msgid "The size in petabytes (multiplied by 2**50)."
17799 msgstr ""
17800
17801 # type: =item
17802 #: ../fish/guestfish.pod:564
17803 msgid "B<PB>"
17804 msgstr ""
17805
17806 # type: textblock
17807 #: ../fish/guestfish.pod:566
17808 msgid "The size in SI 10**15 byte units."
17809 msgstr ""
17810
17811 # type: =item
17812 #: ../fish/guestfish.pod:568
17813 msgid "B<E> or B<EiB>"
17814 msgstr ""
17815
17816 # type: textblock
17817 #: ../fish/guestfish.pod:570
17818 msgid "The size in exabytes (multiplied by 2**60)."
17819 msgstr ""
17820
17821 # type: =item
17822 #: ../fish/guestfish.pod:572
17823 msgid "B<EB>"
17824 msgstr ""
17825
17826 # type: textblock
17827 #: ../fish/guestfish.pod:574
17828 msgid "The size in SI 10**18 byte units."
17829 msgstr ""
17830
17831 # type: =item
17832 #: ../fish/guestfish.pod:576
17833 msgid "B<Z> or B<ZiB>"
17834 msgstr ""
17835
17836 # type: textblock
17837 #: ../fish/guestfish.pod:578
17838 msgid "The size in zettabytes (multiplied by 2**70)."
17839 msgstr ""
17840
17841 # type: =item
17842 #: ../fish/guestfish.pod:580
17843 msgid "B<ZB>"
17844 msgstr ""
17845
17846 # type: textblock
17847 #: ../fish/guestfish.pod:582
17848 msgid "The size in SI 10**21 byte units."
17849 msgstr ""
17850
17851 # type: =item
17852 #: ../fish/guestfish.pod:584
17853 msgid "B<Y> or B<YiB>"
17854 msgstr ""
17855
17856 # type: textblock
17857 #: ../fish/guestfish.pod:586
17858 msgid "The size in yottabytes (multiplied by 2**80)."
17859 msgstr ""
17860
17861 # type: =item
17862 #: ../fish/guestfish.pod:588
17863 msgid "B<YB>"
17864 msgstr ""
17865
17866 # type: textblock
17867 #: ../fish/guestfish.pod:590
17868 msgid "The size in SI 10**24 byte units."
17869 msgstr ""
17870
17871 # type: verbatim
17872 #: ../fish/guestfish.pod:596
17873 #, no-wrap
17874 msgid ""
17875 " truncate-size /file 1G\n"
17876 "\n"
17877 msgstr ""
17878
17879 # type: textblock
17880 #: ../fish/guestfish.pod:598
17881 msgid "would truncate the file to 1 gigabyte."
17882 msgstr ""
17883
17884 # type: textblock
17885 #: ../fish/guestfish.pod:600
17886 msgid ""
17887 "Be careful because a few commands take sizes in kilobytes or megabytes "
17888 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17889 "Adding a suffix will probably not do what you expect."
17890 msgstr ""
17891
17892 # type: =head2
17893 #: ../fish/guestfish.pod:604
17894 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17895 msgstr ""
17896
17897 # type: textblock
17898 #: ../fish/guestfish.pod:606
17899 msgid ""
17900 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17901 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17902 msgstr ""
17903
17904 # type: verbatim
17905 #: ../fish/guestfish.pod:609
17906 #, no-wrap
17907 msgid ""
17908 " 1234      decimal number 1234\n"
17909 " 02322     octal number, equivalent to decimal 1234\n"
17910 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17911 "\n"
17912 msgstr ""
17913
17914 # type: textblock
17915 #: ../fish/guestfish.pod:613
17916 msgid ""
17917 "When using the C<chmod> command, you almost always want to specify an octal "
17918 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17919 "L<chmod(1)> program):"
17920 msgstr ""
17921
17922 # type: verbatim
17923 #: ../fish/guestfish.pod:617
17924 #, no-wrap
17925 msgid ""
17926 " chmod 0777 /public  # OK\n"
17927 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17928 "\n"
17929 msgstr ""
17930
17931 # type: textblock
17932 #: ../fish/guestfish.pod:620
17933 msgid ""
17934 "Commands that return numbers usually print them in decimal, but some "
17935 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17936 "octal, preceeded by C<0>)."
17937 msgstr ""
17938
17939 # type: =head1
17940 #: ../fish/guestfish.pod:624
17941 msgid "WILDCARDS AND GLOBBING"
17942 msgstr ""
17943
17944 # type: textblock
17945 #: ../fish/guestfish.pod:626
17946 msgid ""
17947 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17948 "(globbing) by default.  So for example the following will not do what you "
17949 "expect:"
17950 msgstr ""
17951
17952 # type: verbatim
17953 #: ../fish/guestfish.pod:630
17954 #, no-wrap
17955 msgid ""
17956 " rm-rf /home/*\n"
17957 "\n"
17958 msgstr ""
17959
17960 # type: textblock
17961 #: ../fish/guestfish.pod:632
17962 msgid ""
17963 "Assuming you don't have a directory called literally C</home/*> then the "
17964 "above command will return an error."
17965 msgstr ""
17966
17967 # type: textblock
17968 #: ../fish/guestfish.pod:635
17969 msgid "To perform wildcard expansion, use the C<glob> command."
17970 msgstr ""
17971
17972 # type: verbatim
17973 #: ../fish/guestfish.pod:637
17974 #, no-wrap
17975 msgid ""
17976 " glob rm-rf /home/*\n"
17977 "\n"
17978 msgstr ""
17979
17980 # type: textblock
17981 #: ../fish/guestfish.pod:639
17982 msgid ""
17983 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17984 "many times), equivalent to:"
17985 msgstr ""
17986
17987 # type: verbatim
17988 #: ../fish/guestfish.pod:642
17989 #, no-wrap
17990 msgid ""
17991 " rm-rf /home/jim\n"
17992 " rm-rf /home/joe\n"
17993 " rm-rf /home/mary\n"
17994 "\n"
17995 msgstr ""
17996
17997 # type: textblock
17998 #: ../fish/guestfish.pod:646
17999 msgid "C<glob> only works on simple guest paths and not on device names."
18000 msgstr ""
18001
18002 # type: textblock
18003 #: ../fish/guestfish.pod:648
18004 msgid ""
18005 "If you have several parameters, each containing a wildcard, then glob will "
18006 "perform a Cartesian product."
18007 msgstr ""
18008
18009 # type: =head1
18010 #: ../fish/guestfish.pod:651
18011 msgid "COMMENTS"
18012 msgstr ""
18013
18014 # type: textblock
18015 #: ../fish/guestfish.pod:653
18016 msgid ""
18017 "Any line which starts with a I<#> character is treated as a comment and "
18018 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18019 "a command.  For example:"
18020 msgstr ""
18021
18022 # type: verbatim
18023 #: ../fish/guestfish.pod:657
18024 #, no-wrap
18025 msgid ""
18026 " # this is a comment\n"
18027 "         # this is a comment\n"
18028 " foo # NOT a comment\n"
18029 "\n"
18030 msgstr ""
18031
18032 # type: textblock
18033 #: ../fish/guestfish.pod:661
18034 msgid "Blank lines are also ignored."
18035 msgstr ""
18036
18037 # type: =head1
18038 #: ../fish/guestfish.pod:663
18039 msgid "RUNNING COMMANDS LOCALLY"
18040 msgstr ""
18041
18042 # type: textblock
18043 #: ../fish/guestfish.pod:665
18044 msgid ""
18045 "Any line which starts with a I<!> character is treated as a command sent to "
18046 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18047 msgstr ""
18048
18049 # type: verbatim
18050 #: ../fish/guestfish.pod:669
18051 #, no-wrap
18052 msgid ""
18053 " !mkdir local\n"
18054 " tgz-out /remote local/remote-data.tar.gz\n"
18055 "\n"
18056 msgstr ""
18057
18058 # type: textblock
18059 #: ../fish/guestfish.pod:672
18060 msgid ""
18061 "will create a directory C<local> on the host, and then export the contents "
18062 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18063 "(See C<tgz-out>)."
18064 msgstr ""
18065
18066 # type: textblock
18067 #: ../fish/guestfish.pod:676
18068 msgid ""
18069 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18070 "effect, due to the way that subprocesses work in Unix."
18071 msgstr ""
18072
18073 # type: =head1
18074 #: ../fish/guestfish.pod:679
18075 msgid "PIPES"
18076 msgstr ""
18077
18078 # type: textblock
18079 #: ../fish/guestfish.pod:681
18080 msgid ""
18081 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18082 "command (a guestfish command) to the second command (any host command).  For "
18083 "example:"
18084 msgstr ""
18085
18086 # type: verbatim
18087 #: ../fish/guestfish.pod:685
18088 #, no-wrap
18089 msgid ""
18090 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18091 "\n"
18092 msgstr ""
18093
18094 # type: textblock
18095 #: ../fish/guestfish.pod:687
18096 msgid ""
18097 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18098 "program).  The above command would list all accounts in the guest filesystem "
18099 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18100 msgstr ""
18101
18102 # type: verbatim
18103 #: ../fish/guestfish.pod:692
18104 #, no-wrap
18105 msgid ""
18106 " hexdump /bin/ls | head\n"
18107 " list-devices | tail -1\n"
18108 " tgz-out / - | tar ztf -\n"
18109 "\n"
18110 msgstr ""
18111
18112 # type: textblock
18113 #: ../fish/guestfish.pod:696
18114 msgid ""
18115 "The space before the pipe symbol is required, any space after the pipe "
18116 "symbol is optional.  Everything after the pipe symbol is just passed "
18117 "straight to the host shell, so it can contain redirections, globs and "
18118 "anything else that makes sense on the host side."
18119 msgstr ""
18120
18121 # type: textblock
18122 #: ../fish/guestfish.pod:701
18123 msgid ""
18124 "To use a literal argument which begins with a pipe symbol, you have to quote "
18125 "it, eg:"
18126 msgstr ""
18127
18128 # type: verbatim
18129 #: ../fish/guestfish.pod:704
18130 #, no-wrap
18131 msgid ""
18132 " echo \"|\"\n"
18133 "\n"
18134 msgstr ""
18135
18136 # type: =head1
18137 #: ../fish/guestfish.pod:706
18138 msgid "HOME DIRECTORIES"
18139 msgstr ""
18140
18141 # type: textblock
18142 #: ../fish/guestfish.pod:708
18143 msgid ""
18144 "If a parameter starts with the character C<~> then the tilde may be expanded "
18145 "as a home directory path (either C<~> for the current user's home directory, "
18146 "or C<~user> for another user)."
18147 msgstr ""
18148
18149 # type: textblock
18150 #: ../fish/guestfish.pod:712
18151 msgid ""
18152 "Note that home directory expansion happens for users known I<on the host>, "
18153 "not in the guest filesystem."
18154 msgstr ""
18155
18156 # type: textblock
18157 #: ../fish/guestfish.pod:715
18158 msgid ""
18159 "To use a literal argument which begins with a tilde, you have to quote it, "
18160 "eg:"
18161 msgstr ""
18162
18163 # type: verbatim
18164 #: ../fish/guestfish.pod:718
18165 #, no-wrap
18166 msgid ""
18167 " echo \"~\"\n"
18168 "\n"
18169 msgstr ""
18170
18171 # type: textblock
18172 #: ../fish/guestfish.pod:722
18173 msgid ""
18174 "Libguestfs has some support for Linux guests encrypted according to the "
18175 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18176 "disk encryption systems used by modern Linux guests.  Currently only "
18177 "LVM-on-LUKS is supported."
18178 msgstr ""
18179
18180 # type: textblock
18181 #: ../fish/guestfish.pod:727
18182 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18183 msgstr ""
18184
18185 # type: verbatim
18186 #: ../fish/guestfish.pod:729
18187 #, no-wrap
18188 msgid ""
18189 " ><fs> vfs-type /dev/sda2\n"
18190 " crypto_LUKS\n"
18191 "\n"
18192 msgstr ""
18193
18194 # type: textblock
18195 #: ../fish/guestfish.pod:732
18196 msgid ""
18197 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18198 "device called C</dev/mapper/luksdev>."
18199 msgstr ""
18200
18201 # type: verbatim
18202 #: ../fish/guestfish.pod:735
18203 #, no-wrap
18204 msgid ""
18205 " ><fs> luks-open /dev/sda2 luksdev\n"
18206 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18207 "\n"
18208 msgstr ""
18209
18210 # type: textblock
18211 #: ../fish/guestfish.pod:738
18212 msgid ""
18213 "Finally you have to tell LVM to scan for volume groups on the newly created "
18214 "mapper device:"
18215 msgstr ""
18216
18217 # type: verbatim
18218 #: ../fish/guestfish.pod:741
18219 #, no-wrap
18220 msgid ""
18221 " vgscan\n"
18222 " vg-activate-all true\n"
18223 "\n"
18224 msgstr ""
18225
18226 # type: textblock
18227 #: ../fish/guestfish.pod:744
18228 msgid "The logical volume(s) can now be mounted in the usual way."
18229 msgstr ""
18230
18231 # type: textblock
18232 #: ../fish/guestfish.pod:746
18233 msgid ""
18234 "Before closing a LUKS device you must unmount any logical volumes on it and "
18235 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18236 "one.  Then you can close the mapper device:"
18237 msgstr ""
18238
18239 # type: verbatim
18240 #: ../fish/guestfish.pod:750
18241 #, no-wrap
18242 msgid ""
18243 " vg-activate false /dev/VG\n"
18244 " luks-close /dev/mapper/luksdev\n"
18245 "\n"
18246 msgstr ""
18247
18248 # type: =head1
18249 #: ../fish/guestfish.pod:753
18250 msgid "WINDOWS PATHS"
18251 msgstr ""
18252
18253 # type: textblock
18254 #: ../fish/guestfish.pod:755
18255 msgid ""
18256 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18257 "(with some limitations).  The following commands are equivalent:"
18258 msgstr ""
18259
18260 # type: verbatim
18261 #: ../fish/guestfish.pod:758
18262 #, no-wrap
18263 msgid ""
18264 " file /WINDOWS/system32/config/system.LOG\n"
18265 "\n"
18266 msgstr ""
18267
18268 # type: verbatim
18269 #: ../fish/guestfish.pod:760
18270 #, no-wrap
18271 msgid ""
18272 " file win:/windows/system32/config/system.log\n"
18273 "\n"
18274 msgstr ""
18275
18276 # type: verbatim
18277 #: ../fish/guestfish.pod:762
18278 #, no-wrap
18279 msgid ""
18280 " file win:\\windows\\system32\\config\\system.log\n"
18281 "\n"
18282 msgstr ""
18283
18284 # type: verbatim
18285 #: ../fish/guestfish.pod:764
18286 #, no-wrap
18287 msgid ""
18288 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18289 "\n"
18290 msgstr ""
18291
18292 # type: textblock
18293 #: ../fish/guestfish.pod:766
18294 msgid ""
18295 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18296 "handles case insensitivity like Windows would.  This only works in argument "
18297 "positions that expect a path."
18298 msgstr ""
18299
18300 # type: =head1
18301 #: ../fish/guestfish.pod:770
18302 msgid "UPLOADING AND DOWNLOADING FILES"
18303 msgstr ""
18304
18305 # type: textblock
18306 #: ../fish/guestfish.pod:772
18307 msgid ""
18308 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18309 "others which upload from or download to a local file, you can use the "
18310 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18311 msgstr ""
18312
18313 # type: verbatim
18314 #: ../fish/guestfish.pod:776
18315 #, no-wrap
18316 msgid ""
18317 " upload - /foo\n"
18318 "\n"
18319 msgstr ""
18320
18321 # type: textblock
18322 #: ../fish/guestfish.pod:778
18323 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
18324 msgstr ""
18325
18326 # type: verbatim
18327 #: ../fish/guestfish.pod:781
18328 #, no-wrap
18329 msgid ""
18330 " tar-out /etc - | tar tf -\n"
18331 "\n"
18332 msgstr ""
18333
18334 # type: textblock
18335 #: ../fish/guestfish.pod:783
18336 msgid ""
18337 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18338 "command (see L</PIPES>)."
18339 msgstr ""
18340
18341 # type: textblock
18342 #: ../fish/guestfish.pod:786
18343 msgid ""
18344 "When using C<-> to read from stdin, the input is read up to the end of "
18345 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18346 "some arbitrary end marker:"
18347 msgstr ""
18348
18349 # type: verbatim
18350 #: ../fish/guestfish.pod:790
18351 #, no-wrap
18352 msgid ""
18353 " upload -<<END /foo\n"
18354 " input line 1\n"
18355 " input line 2\n"
18356 " input line 3\n"
18357 " END\n"
18358 "\n"
18359 msgstr ""
18360
18361 # type: textblock
18362 #: ../fish/guestfish.pod:796
18363 msgid ""
18364 "Any string of characters can be used instead of C<END>.  The end marker must "
18365 "appear on a line of its own, without any preceeding or following characters "
18366 "(not even spaces)."
18367 msgstr ""
18368
18369 # type: textblock
18370 #: ../fish/guestfish.pod:800
18371 msgid ""
18372 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18373 "upload local files (so-called \"FileIn\" parameters in the generator)."
18374 msgstr ""
18375
18376 # type: =head1
18377 #: ../fish/guestfish.pod:803
18378 msgid "EXIT ON ERROR BEHAVIOUR"
18379 msgstr ""
18380
18381 # type: textblock
18382 #: ../fish/guestfish.pod:805
18383 msgid ""
18384 "By default, guestfish will ignore any errors when in interactive mode "
18385 "(ie. taking commands from a human over a tty), and will exit on the first "
18386 "error in non-interactive mode (scripts, commands given on the command line)."
18387 msgstr ""
18388
18389 # type: textblock
18390 #: ../fish/guestfish.pod:810
18391 msgid ""
18392 "If you prefix a command with a I<-> character, then that command will not "
18393 "cause guestfish to exit, even if that (one) command returns an error."
18394 msgstr ""
18395
18396 # type: =head1
18397 #: ../fish/guestfish.pod:814
18398 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18399 msgstr ""
18400
18401 # type: textblock
18402 #: ../fish/guestfish.pod:816
18403 msgid ""
18404 "Guestfish can be remote-controlled over a socket.  This is useful "
18405 "particularly in shell scripts where you want to make several different "
18406 "changes to a filesystem, but you don't want the overhead of starting up a "
18407 "guestfish process each time."
18408 msgstr ""
18409
18410 # type: textblock
18411 #: ../fish/guestfish.pod:821
18412 msgid "Start a guestfish server process using:"
18413 msgstr ""
18414
18415 # type: verbatim
18416 #: ../fish/guestfish.pod:823
18417 #, no-wrap
18418 msgid ""
18419 " eval \"`guestfish --listen`\"\n"
18420 "\n"
18421 msgstr ""
18422
18423 # type: textblock
18424 #: ../fish/guestfish.pod:825
18425 msgid "and then send it commands by doing:"
18426 msgstr ""
18427
18428 # type: verbatim
18429 #: ../fish/guestfish.pod:827
18430 #, no-wrap
18431 msgid ""
18432 " guestfish --remote cmd [...]\n"
18433 "\n"
18434 msgstr ""
18435
18436 # type: textblock
18437 #: ../fish/guestfish.pod:829
18438 msgid "To cause the server to exit, send it the exit command:"
18439 msgstr ""
18440
18441 # type: verbatim
18442 #: ../fish/guestfish.pod:831
18443 #, no-wrap
18444 msgid ""
18445 " guestfish --remote exit\n"
18446 "\n"
18447 msgstr ""
18448
18449 # type: textblock
18450 #: ../fish/guestfish.pod:833
18451 msgid ""
18452 "Note that the server will normally exit if there is an error in a command.  "
18453 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18454 "BEHAVIOUR>."
18455 msgstr ""
18456
18457 # type: =head2
18458 #: ../fish/guestfish.pod:837
18459 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18460 msgstr ""
18461
18462 # type: textblock
18463 #: ../fish/guestfish.pod:839
18464 msgid ""
18465 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18466 "is how the I<--remote> option knows where to send the commands.  You can "
18467 "have several guestfish listener processes running using:"
18468 msgstr ""
18469
18470 # type: verbatim
18471 #: ../fish/guestfish.pod:843
18472 #, no-wrap
18473 msgid ""
18474 " eval \"`guestfish --listen`\"\n"
18475 " pid1=$GUESTFISH_PID\n"
18476 " eval \"`guestfish --listen`\"\n"
18477 " pid2=$GUESTFISH_PID\n"
18478 " ...\n"
18479 " guestfish --remote=$pid1 cmd\n"
18480 " guestfish --remote=$pid2 cmd\n"
18481 "\n"
18482 msgstr ""
18483
18484 # type: =head2
18485 #: ../fish/guestfish.pod:851
18486 msgid "REMOTE CONTROL AND CSH"
18487 msgstr ""
18488
18489 # type: textblock
18490 #: ../fish/guestfish.pod:853
18491 msgid ""
18492 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18493 "option:"
18494 msgstr ""
18495
18496 # type: verbatim
18497 #: ../fish/guestfish.pod:856
18498 #, no-wrap
18499 msgid ""
18500 " eval \"`guestfish --listen --csh`\"\n"
18501 "\n"
18502 msgstr ""
18503
18504 # type: =head2
18505 #: ../fish/guestfish.pod:858
18506 msgid "REMOTE CONTROL DETAILS"
18507 msgstr ""
18508
18509 # type: textblock
18510 #: ../fish/guestfish.pod:860
18511 msgid ""
18512 "Remote control happens over a Unix domain socket called "
18513 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18514 "of the process, and C<$PID> is the process ID of the server."
18515 msgstr ""
18516
18517 # type: textblock
18518 #: ../fish/guestfish.pod:864
18519 msgid "Guestfish client and server versions must match exactly."
18520 msgstr ""
18521
18522 # type: =head1
18523 #: ../fish/guestfish.pod:866
18524 msgid "PREPARED DISK IMAGES"
18525 msgstr ""
18526
18527 # type: textblock
18528 #: ../fish/guestfish.pod:868
18529 msgid ""
18530 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18531 "preformatted disk images that guestfish can make for you to save typing.  "
18532 "This is particularly useful for testing purposes.  This option is used "
18533 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18534 "can be mixed with I<-a>)."
18535 msgstr ""
18536
18537 # type: textblock
18538 #: ../fish/guestfish.pod:874
18539 msgid ""
18540 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18541 "the second and so on.  Existing files in the current directory are "
18542 "I<overwritten>."
18543 msgstr ""
18544
18545 # type: textblock
18546 #: ../fish/guestfish.pod:878
18547 msgid ""
18548 "The type briefly describes how the disk should be sized, partitioned, how "
18549 "filesystem(s) should be created, and how content should be added.  "
18550 "Optionally the type can be followed by extra parameters, separated by C<:> "
18551 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
18552 "sparsely-allocated disk, containing a single partition, with the partition "
18553 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
18554 "on a 1GB disk instead."
18555 msgstr ""
18556
18557 # type: textblock
18558 #: ../fish/guestfish.pod:886
18559 msgid "To list the available types and any extra parameters they take, run:"
18560 msgstr ""
18561
18562 # type: textblock
18563 #: ../fish/guestfish.pod:890
18564 msgid ""
18565 "Note that the prepared filesystem is not mounted.  You would usually have to "
18566 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18567 msgstr ""
18568
18569 # type: textblock
18570 #: ../fish/guestfish.pod:894
18571 msgid ""
18572 "If any I<-N> or I<--new> options are given, the guest is automatically "
18573 "launched."
18574 msgstr ""
18575
18576 # type: textblock
18577 #: ../fish/guestfish.pod:899
18578 msgid "Create a 100MB disk with an ext4-formatted partition:"
18579 msgstr ""
18580
18581 # type: verbatim
18582 #: ../fish/guestfish.pod:901
18583 #, no-wrap
18584 msgid ""
18585 " guestfish -N fs:ext4\n"
18586 "\n"
18587 msgstr ""
18588
18589 # type: textblock
18590 #: ../fish/guestfish.pod:903
18591 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18592 msgstr ""
18593
18594 # type: verbatim
18595 #: ../fish/guestfish.pod:905
18596 #, no-wrap
18597 msgid ""
18598 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18599 "\n"
18600 msgstr ""
18601
18602 # type: textblock
18603 #: ../fish/guestfish.pod:907
18604 msgid "Create a blank 200MB disk:"
18605 msgstr ""
18606
18607 # type: verbatim
18608 #: ../fish/guestfish.pod:909
18609 #, no-wrap
18610 msgid ""
18611 " guestfish -N disk:200M\n"
18612 "\n"
18613 msgstr ""
18614
18615 # type: =head1
18616 #: ../fish/guestfish.pod:911
18617 msgid "PROGRESS BARS"
18618 msgstr ""
18619
18620 # type: textblock
18621 #: ../fish/guestfish.pod:913
18622 msgid ""
18623 "Some (not all) long-running commands send progress notification messages as "
18624 "they are running.  Guestfish turns these messages into progress bars."
18625 msgstr ""
18626
18627 # type: textblock
18628 #: ../fish/guestfish.pod:917
18629 msgid ""
18630 "When a command that supports progress bars takes longer than two seconds to "
18631 "run, and if progress bars are enabled, then you will see one appearing below "
18632 "the command:"
18633 msgstr ""
18634
18635 # type: verbatim
18636 #: ../fish/guestfish.pod:921
18637 #, no-wrap
18638 msgid ""
18639 " ><fs> copy-size /large-file /another-file 2048M\n"
18640 " / 10% [#####-----------------------------------------] 00:30\n"
18641 "\n"
18642 msgstr ""
18643
18644 # type: textblock
18645 #: ../fish/guestfish.pod:924
18646 msgid ""
18647 "The spinner on the left hand side moves round once for every progress "
18648 "notification received from the backend.  This is a (reasonably) golden "
18649 "assurance that the command is \"doing something\" even if the progress bar "
18650 "is not moving, because the command is able to send the progress "
18651 "notifications.  When the bar reaches 100% and the command finishes, the "
18652 "spinner disappears."
18653 msgstr ""
18654
18655 # type: textblock
18656 #: ../fish/guestfish.pod:931
18657 msgid ""
18658 "Progress bars are enabled by default when guestfish is used interactively.  "
18659 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18660 "and you can disable them completely using I<--no-progress-bars>."
18661 msgstr ""
18662
18663 # type: =head1
18664 #: ../fish/guestfish.pod:936
18665 msgid "GUESTFISH COMMANDS"
18666 msgstr ""
18667
18668 # type: textblock
18669 #: ../fish/guestfish.pod:938
18670 msgid ""
18671 "The commands in this section are guestfish convenience commands, in other "
18672 "words, they are not part of the L<guestfs(3)> API."
18673 msgstr ""
18674
18675 # type: =head2
18676 #: ../fish/guestfish.pod:941
18677 msgid "help"
18678 msgstr ""
18679
18680 # type: verbatim
18681 #: ../fish/guestfish.pod:943
18682 #, no-wrap
18683 msgid ""
18684 " help\n"
18685 " help cmd\n"
18686 "\n"
18687 msgstr ""
18688
18689 # type: textblock
18690 #: ../fish/guestfish.pod:946
18691 msgid "Without any parameter, this provides general help."
18692 msgstr ""
18693
18694 # type: textblock
18695 #: ../fish/guestfish.pod:948
18696 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18697 msgstr ""
18698
18699 # type: =head2
18700 #: ../fish/guestfish.pod:950
18701 msgid "quit | exit"
18702 msgstr ""
18703
18704 # type: textblock
18705 #: ../fish/guestfish.pod:952
18706 msgid "This exits guestfish.  You can also use C<^D> key."
18707 msgstr ""
18708
18709 # type: textblock
18710 #: ../fish/guestfish.pod:954
18711 msgid "@FISH_COMMANDS@"
18712 msgstr ""
18713
18714 # type: =head1
18715 #: ../fish/guestfish.pod:956
18716 msgid "COMMANDS"
18717 msgstr ""
18718
18719 # type: =head1
18720 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
18721 msgid "EXIT CODE"
18722 msgstr ""
18723
18724 # type: textblock
18725 #: ../fish/guestfish.pod:962
18726 msgid ""
18727 "guestfish returns 0 if the commands completed without error, or 1 if there "
18728 "was an error."
18729 msgstr ""
18730
18731 # type: =item
18732 #: ../fish/guestfish.pod:969
18733 msgid "EDITOR"
18734 msgstr ""
18735
18736 # type: textblock
18737 #: ../fish/guestfish.pod:971
18738 msgid ""
18739 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18740 "C<vi>."
18741 msgstr ""
18742
18743 # type: =item
18744 #: ../fish/guestfish.pod:974
18745 msgid "GUESTFISH_PID"
18746 msgstr ""
18747
18748 # type: textblock
18749 #: ../fish/guestfish.pod:976
18750 msgid ""
18751 "Used with the I<--remote> option to specify the remote guestfish process to "
18752 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18753 msgstr ""
18754
18755 # type: =item
18756 #: ../fish/guestfish.pod:980
18757 msgid "HEXEDITOR"
18758 msgstr ""
18759
18760 # type: textblock
18761 #: ../fish/guestfish.pod:982
18762 msgid ""
18763 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18764 "not specified, the external L<hexedit(1)> program is used."
18765 msgstr ""
18766
18767 # type: =item
18768 #: ../fish/guestfish.pod:986
18769 msgid "HOME"
18770 msgstr ""
18771
18772 # type: textblock
18773 #: ../fish/guestfish.pod:988
18774 msgid ""
18775 "If compiled with GNU readline support, various files in the home directory "
18776 "can be used.  See L</FILES>."
18777 msgstr ""
18778
18779 # type: textblock
18780 #: ../fish/guestfish.pod:997
18781 msgid ""
18782 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18783 "effect as using the B<-v> option."
18784 msgstr ""
18785
18786 # type: textblock
18787 #: ../fish/guestfish.pod:1009
18788 msgid ""
18789 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18790 "the discussion of paths in L<guestfs(3)>."
18791 msgstr ""
18792
18793 # type: textblock
18794 #: ../fish/guestfish.pod:1020
18795 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18796 msgstr ""
18797
18798 # type: =item
18799 #: ../fish/guestfish.pod:1022
18800 msgid "PAGER"
18801 msgstr ""
18802
18803 # type: textblock
18804 #: ../fish/guestfish.pod:1024
18805 msgid ""
18806 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18807 "C<more>."
18808 msgstr ""
18809
18810 # type: =head1
18811 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
18812 msgid "FILES"
18813 msgstr ""
18814
18815 # type: =item
18816 #: ../fish/guestfish.pod:1043
18817 msgid "$HOME/.guestfish"
18818 msgstr ""
18819
18820 # type: textblock
18821 #: ../fish/guestfish.pod:1045
18822 msgid ""
18823 "If compiled with GNU readline support, then the command history is saved in "
18824 "this file."
18825 msgstr ""
18826
18827 # type: =item
18828 #: ../fish/guestfish.pod:1048
18829 msgid "$HOME/.inputrc"
18830 msgstr ""
18831
18832 # type: =item
18833 #: ../fish/guestfish.pod:1050
18834 msgid "/etc/inputrc"
18835 msgstr ""
18836
18837 # type: textblock
18838 #: ../fish/guestfish.pod:1052
18839 msgid ""
18840 "If compiled with GNU readline support, then these files can be used to "
18841 "configure readline.  For further information, please see "
18842 "L<readline(3)/INITIALIZATION FILE>."
18843 msgstr ""
18844
18845 # type: textblock
18846 #: ../fish/guestfish.pod:1056
18847 msgid "To write rules which only apply to guestfish, use:"
18848 msgstr ""
18849
18850 # type: verbatim
18851 #: ../fish/guestfish.pod:1058
18852 #, no-wrap
18853 msgid ""
18854 " $if guestfish\n"
18855 " ...\n"
18856 " $endif\n"
18857 "\n"
18858 msgstr ""
18859
18860 # type: textblock
18861 #: ../fish/guestfish.pod:1062
18862 msgid ""
18863 "Variables that you can set in inputrc that change the behaviour of guestfish "
18864 "in useful ways include:"
18865 msgstr ""
18866
18867 # type: =item
18868 #: ../fish/guestfish.pod:1067
18869 msgid "completion-ignore-case (default: on)"
18870 msgstr ""
18871
18872 # type: textblock
18873 #: ../fish/guestfish.pod:1069
18874 msgid ""
18875 "By default, guestfish will ignore case when tab-completing paths on the "
18876 "disk.  Use:"
18877 msgstr ""
18878
18879 # type: verbatim
18880 #: ../fish/guestfish.pod:1072
18881 #, no-wrap
18882 msgid ""
18883 " set completion-ignore-case off\n"
18884 "\n"
18885 msgstr ""
18886
18887 # type: textblock
18888 #: ../fish/guestfish.pod:1074
18889 msgid "to make guestfish case sensitive."
18890 msgstr ""
18891
18892 # type: =item
18893 #: ../fish/guestfish.pod:1078
18894 msgid "test1.img"
18895 msgstr ""
18896
18897 # type: =item
18898 #: ../fish/guestfish.pod:1080
18899 msgid "test2.img (etc)"
18900 msgstr ""
18901
18902 # type: textblock
18903 #: ../fish/guestfish.pod:1082
18904 msgid ""
18905 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
18906 "will be created in the file C<test1.img> in the current directory.  The "
18907 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
18908 "the same name will be overwritten."
18909 msgstr ""
18910
18911 # type: textblock
18912 #: ../fish/guestfish.pod:1091
18913 msgid ""
18914 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
18915 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
18916 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
18917 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, "
18918 "L<virt-win-reg(1)>, L<hexedit(1)>."
18919 msgstr ""
18920
18921 # type: textblock
18922 #: ../fish/guestfish.pod:1117 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:606 ../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
18923 msgid ""
18924 "This program is free software; you can redistribute it and/or modify it "
18925 "under the terms of the GNU General Public License as published by the Free "
18926 "Software Foundation; either version 2 of the License, or (at your option) "
18927 "any later version."
18928 msgstr ""
18929
18930 # type: textblock
18931 #: ../fish/guestfish.pod:1122 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:611 ../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
18932 msgid ""
18933 "This program is distributed in the hope that it will be useful, but WITHOUT "
18934 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
18935 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
18936 "more details."
18937 msgstr ""
18938
18939 # type: textblock
18940 #: ../fish/guestfish.pod:1127 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:616 ../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
18941 msgid ""
18942 "You should have received a copy of the GNU General Public License along with "
18943 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
18944 "Ave, Cambridge, MA 02139, USA."
18945 msgstr ""
18946
18947 # type: =head2
18948 #: ../fish/guestfish-actions.pod:1
18949 msgid "add-cdrom"
18950 msgstr ""
18951
18952 # type: verbatim
18953 #: ../fish/guestfish-actions.pod:3
18954 #, no-wrap
18955 msgid ""
18956 " add-cdrom filename\n"
18957 "\n"
18958 msgstr ""
18959
18960 # type: textblock
18961 #: ../fish/guestfish-actions.pod:15
18962 msgid ""
18963 "This call checks for the existence of C<filename>.  This stops you from "
18964 "specifying other types of drive which are supported by qemu such as C<nbd:> "
18965 "and C<http:> URLs.  To specify those, use the general L</config> call "
18966 "instead."
18967 msgstr ""
18968
18969 # type: textblock
18970 #: ../fish/guestfish-actions.pod:22
18971 msgid ""
18972 "If you just want to add an ISO file (often you use this as an efficient way "
18973 "to transfer large files into the guest), then you should probably use "
18974 "L</add-drive-ro> instead."
18975 msgstr ""
18976
18977 # type: =head2
18978 #: ../fish/guestfish-actions.pod:35
18979 msgid "add-domain"
18980 msgstr ""
18981
18982 # type: =head2
18983 #: ../fish/guestfish-actions.pod:37
18984 msgid "domain"
18985 msgstr ""
18986
18987 # type: verbatim
18988 #: ../fish/guestfish-actions.pod:39
18989 #, no-wrap
18990 msgid ""
18991 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
18992 "\n"
18993 msgstr ""
18994
18995 # type: textblock
18996 #: ../fish/guestfish-actions.pod:41
18997 msgid ""
18998 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
18999 "It works by connecting to libvirt, requesting the domain and domain XML from "
19000 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19001 msgstr ""
19002
19003 # type: textblock
19004 #: ../fish/guestfish-actions.pod:58
19005 msgid ""
19006 "The optional C<libvirturi> parameter sets the libvirt URI (see "
19007 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
19008 "default libvirt URI (or one set through an environment variable, see the "
19009 "libvirt documentation for full details).  If you are using the C API "
19010 "directly then it is more flexible to create the libvirt connection object "
19011 "yourself, get the domain object, and call L</add-libvirt-dom>."
19012 msgstr ""
19013
19014 # type: textblock
19015 #: ../fish/guestfish-actions.pod:66
19016 msgid ""
19017 "The other optional parameters are passed directly through to "
19018 "L</add-drive-opts>."
19019 msgstr ""
19020
19021 # type: textblock
19022 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133 ../fish/guestfish-actions.pod:2804
19023 msgid ""
19024 "This command has one or more optional arguments.  See L</OPTIONAL "
19025 "ARGUMENTS>."
19026 msgstr ""
19027
19028 # type: =head2
19029 #: ../fish/guestfish-actions.pod:71
19030 msgid "add-drive"
19031 msgstr ""
19032
19033 # type: verbatim
19034 #: ../fish/guestfish-actions.pod:73
19035 #, no-wrap
19036 msgid ""
19037 " add-drive filename\n"
19038 "\n"
19039 msgstr ""
19040
19041 # type: textblock
19042 #: ../fish/guestfish-actions.pod:75
19043 msgid ""
19044 "This function is the equivalent of calling L</add-drive-opts> with no "
19045 "optional parameters, so the disk is added writable, with the format being "
19046 "detected automatically."
19047 msgstr ""
19048
19049 # type: textblock
19050 #: ../fish/guestfish-actions.pod:79
19051 msgid ""
19052 "Automatic detection of the format opens you up to a potential security hole "
19053 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19054 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19055 "you should think about replacing calls to this function with calls to "
19056 "L</add-drive-opts>, and specifying the format."
19057 msgstr ""
19058
19059 # type: =head2
19060 #: ../fish/guestfish-actions.pod:86
19061 msgid "add-drive-opts"
19062 msgstr ""
19063
19064 # type: =head2
19065 #: ../fish/guestfish-actions.pod:88
19066 msgid "add"
19067 msgstr ""
19068
19069 # type: verbatim
19070 #: ../fish/guestfish-actions.pod:90
19071 #, no-wrap
19072 msgid ""
19073 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19074 "\n"
19075 msgstr ""
19076
19077 # type: textblock
19078 #: ../fish/guestfish-actions.pod:117
19079 msgid ""
19080 "This forces the image format.  If you omit this (or use L</add-drive> or "
19081 "L</add-drive-ro>) then the format is automatically detected.  Possible "
19082 "formats include C<raw> and C<qcow2>."
19083 msgstr ""
19084
19085 # type: textblock
19086 #: ../fish/guestfish-actions.pod:128
19087 msgid ""
19088 "This rarely-used option lets you emulate the behaviour of the deprecated "
19089 "L</add-drive-with-if> call (q.v.)"
19090 msgstr ""
19091
19092 # type: =head2
19093 #: ../fish/guestfish-actions.pod:135
19094 msgid "add-drive-ro"
19095 msgstr ""
19096
19097 # type: =head2
19098 #: ../fish/guestfish-actions.pod:137
19099 msgid "add-ro"
19100 msgstr ""
19101
19102 # type: verbatim
19103 #: ../fish/guestfish-actions.pod:139
19104 #, no-wrap
19105 msgid ""
19106 " add-drive-ro filename\n"
19107 "\n"
19108 msgstr ""
19109
19110 # type: textblock
19111 #: ../fish/guestfish-actions.pod:141
19112 msgid ""
19113 "This function is the equivalent of calling L</add-drive-opts> with the "
19114 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19115 "is added read-only, with the format being detected automatically."
19116 msgstr ""
19117
19118 # type: =head2
19119 #: ../fish/guestfish-actions.pod:146
19120 msgid "add-drive-ro-with-if"
19121 msgstr ""
19122
19123 # type: verbatim
19124 #: ../fish/guestfish-actions.pod:148
19125 #, no-wrap
19126 msgid ""
19127 " add-drive-ro-with-if filename iface\n"
19128 "\n"
19129 msgstr ""
19130
19131 # type: textblock
19132 #: ../fish/guestfish-actions.pod:150
19133 msgid ""
19134 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19135 "interface emulation to use at run time."
19136 msgstr ""
19137
19138 # type: =head2
19139 #: ../fish/guestfish-actions.pod:160
19140 msgid "add-drive-with-if"
19141 msgstr ""
19142
19143 # type: verbatim
19144 #: ../fish/guestfish-actions.pod:162
19145 #, no-wrap
19146 msgid ""
19147 " add-drive-with-if filename iface\n"
19148 "\n"
19149 msgstr ""
19150
19151 # type: textblock
19152 #: ../fish/guestfish-actions.pod:164
19153 msgid ""
19154 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19155 "interface emulation to use at run time."
19156 msgstr ""
19157
19158 # type: =head2
19159 #: ../fish/guestfish-actions.pod:174
19160 msgid "aug-clear"
19161 msgstr ""
19162
19163 # type: verbatim
19164 #: ../fish/guestfish-actions.pod:176
19165 #, no-wrap
19166 msgid ""
19167 " aug-clear augpath\n"
19168 "\n"
19169 msgstr ""
19170
19171 # type: =head2
19172 #: ../fish/guestfish-actions.pod:181
19173 msgid "aug-close"
19174 msgstr ""
19175
19176 # type: verbatim
19177 #: ../fish/guestfish-actions.pod:183
19178 #, no-wrap
19179 msgid ""
19180 " aug-close\n"
19181 "\n"
19182 msgstr ""
19183
19184 # type: textblock
19185 #: ../fish/guestfish-actions.pod:185
19186 msgid ""
19187 "Close the current Augeas handle and free up any resources used by it.  After "
19188 "calling this, you have to call L</aug-init> again before you can use any "
19189 "other Augeas functions."
19190 msgstr ""
19191
19192 # type: =head2
19193 #: ../fish/guestfish-actions.pod:190
19194 msgid "aug-defnode"
19195 msgstr ""
19196
19197 # type: verbatim
19198 #: ../fish/guestfish-actions.pod:192
19199 #, no-wrap
19200 msgid ""
19201 " aug-defnode name expr val\n"
19202 "\n"
19203 msgstr ""
19204
19205 # type: textblock
19206 #: ../fish/guestfish-actions.pod:197
19207 msgid ""
19208 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19209 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19210 "containing that single node."
19211 msgstr ""
19212
19213 # type: =head2
19214 #: ../fish/guestfish-actions.pod:205
19215 msgid "aug-defvar"
19216 msgstr ""
19217
19218 # type: verbatim
19219 #: ../fish/guestfish-actions.pod:207
19220 #, no-wrap
19221 msgid ""
19222 " aug-defvar name expr\n"
19223 "\n"
19224 msgstr ""
19225
19226 # type: =head2
19227 #: ../fish/guestfish-actions.pod:216
19228 msgid "aug-get"
19229 msgstr ""
19230
19231 # type: verbatim
19232 #: ../fish/guestfish-actions.pod:218
19233 #, no-wrap
19234 msgid ""
19235 " aug-get augpath\n"
19236 "\n"
19237 msgstr ""
19238
19239 # type: =head2
19240 #: ../fish/guestfish-actions.pod:223
19241 msgid "aug-init"
19242 msgstr ""
19243
19244 # type: verbatim
19245 #: ../fish/guestfish-actions.pod:225
19246 #, no-wrap
19247 msgid ""
19248 " aug-init root flags\n"
19249 "\n"
19250 msgstr ""
19251
19252 # type: textblock
19253 #: ../fish/guestfish-actions.pod:231
19254 msgid "You must call this before using any other L</aug-*> commands."
19255 msgstr ""
19256
19257 # type: textblock
19258 #: ../fish/guestfish-actions.pod:266
19259 msgid "Do not load the tree in L</aug-init>."
19260 msgstr ""
19261
19262 # type: textblock
19263 #: ../fish/guestfish-actions.pod:270
19264 msgid "To close the handle, you can call L</aug-close>."
19265 msgstr ""
19266
19267 # type: =head2
19268 #: ../fish/guestfish-actions.pod:274
19269 msgid "aug-insert"
19270 msgstr ""
19271
19272 # type: verbatim
19273 #: ../fish/guestfish-actions.pod:276
19274 #, no-wrap
19275 msgid ""
19276 " aug-insert augpath label true|false\n"
19277 "\n"
19278 msgstr ""
19279
19280 # type: =head2
19281 #: ../fish/guestfish-actions.pod:286
19282 msgid "aug-load"
19283 msgstr ""
19284
19285 # type: verbatim
19286 #: ../fish/guestfish-actions.pod:288
19287 #, no-wrap
19288 msgid ""
19289 " aug-load\n"
19290 "\n"
19291 msgstr ""
19292
19293 # type: =head2
19294 #: ../fish/guestfish-actions.pod:295
19295 msgid "aug-ls"
19296 msgstr ""
19297
19298 # type: verbatim
19299 #: ../fish/guestfish-actions.pod:297
19300 #, no-wrap
19301 msgid ""
19302 " aug-ls augpath\n"
19303 "\n"
19304 msgstr ""
19305
19306 # type: textblock
19307 #: ../fish/guestfish-actions.pod:299
19308 msgid ""
19309 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19310 "resulting nodes into alphabetical order."
19311 msgstr ""
19312
19313 # type: =head2
19314 #: ../fish/guestfish-actions.pod:302
19315 msgid "aug-match"
19316 msgstr ""
19317
19318 # type: verbatim
19319 #: ../fish/guestfish-actions.pod:304
19320 #, no-wrap
19321 msgid ""
19322 " aug-match augpath\n"
19323 "\n"
19324 msgstr ""
19325
19326 # type: =head2
19327 #: ../fish/guestfish-actions.pod:310
19328 msgid "aug-mv"
19329 msgstr ""
19330
19331 # type: verbatim
19332 #: ../fish/guestfish-actions.pod:312
19333 #, no-wrap
19334 msgid ""
19335 " aug-mv src dest\n"
19336 "\n"
19337 msgstr ""
19338
19339 # type: =head2
19340 #: ../fish/guestfish-actions.pod:317
19341 msgid "aug-rm"
19342 msgstr ""
19343
19344 # type: verbatim
19345 #: ../fish/guestfish-actions.pod:319
19346 #, no-wrap
19347 msgid ""
19348 " aug-rm augpath\n"
19349 "\n"
19350 msgstr ""
19351
19352 # type: =head2
19353 #: ../fish/guestfish-actions.pod:325
19354 msgid "aug-save"
19355 msgstr ""
19356
19357 # type: verbatim
19358 #: ../fish/guestfish-actions.pod:327
19359 #, no-wrap
19360 msgid ""
19361 " aug-save\n"
19362 "\n"
19363 msgstr ""
19364
19365 # type: textblock
19366 #: ../fish/guestfish-actions.pod:331
19367 msgid ""
19368 "The flags which were passed to L</aug-init> affect exactly how files are "
19369 "saved."
19370 msgstr ""
19371
19372 # type: =head2
19373 #: ../fish/guestfish-actions.pod:334
19374 msgid "aug-set"
19375 msgstr ""
19376
19377 # type: verbatim
19378 #: ../fish/guestfish-actions.pod:336
19379 #, no-wrap
19380 msgid ""
19381 " aug-set augpath val\n"
19382 "\n"
19383 msgstr ""
19384
19385 # type: textblock
19386 #: ../fish/guestfish-actions.pod:340
19387 msgid ""
19388 "In the Augeas API, it is possible to clear a node by setting the value to "
19389 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
19390 "this call.  Instead you must use the L</aug-clear> call."
19391 msgstr ""
19392
19393 # type: =head2
19394 #: ../fish/guestfish-actions.pod:345
19395 msgid "available"
19396 msgstr ""
19397
19398 # type: verbatim
19399 #: ../fish/guestfish-actions.pod:347
19400 #, no-wrap
19401 msgid ""
19402 " available 'groups ...'\n"
19403 "\n"
19404 msgstr ""
19405
19406 # type: textblock
19407 #: ../fish/guestfish-actions.pod:353
19408 msgid ""
19409 "The libguestfs groups, and the functions that those groups correspond to, "
19410 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
19411 "runtime by calling L</available-all-groups>."
19412 msgstr ""
19413
19414 # type: textblock
19415 #: ../fish/guestfish-actions.pod:377
19416 msgid "You must call L</launch> before calling this function."
19417 msgstr ""
19418
19419 # type: textblock
19420 #: ../fish/guestfish-actions.pod:399
19421 msgid ""
19422 "This call was added in version C<1.0.80>.  In previous versions of "
19423 "libguestfs all you could do would be to speculatively execute a command to "
19424 "find out if the daemon implemented it.  See also L</version>."
19425 msgstr ""
19426
19427 # type: =head2
19428 #: ../fish/guestfish-actions.pod:406
19429 msgid "available-all-groups"
19430 msgstr ""
19431
19432 # type: verbatim
19433 #: ../fish/guestfish-actions.pod:408
19434 #, no-wrap
19435 msgid ""
19436 " available-all-groups\n"
19437 "\n"
19438 msgstr ""
19439
19440 # type: textblock
19441 #: ../fish/guestfish-actions.pod:410
19442 msgid ""
19443 "This command returns a list of all optional groups that this daemon knows "
19444 "about.  Note this returns both supported and unsupported groups.  To find "
19445 "out which ones the daemon can actually support you have to call "
19446 "L</available> on each member of the returned list."
19447 msgstr ""
19448
19449 # type: textblock
19450 #: ../fish/guestfish-actions.pod:416
19451 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
19452 msgstr ""
19453
19454 # type: =head2
19455 #: ../fish/guestfish-actions.pod:418
19456 msgid "base64-in"
19457 msgstr ""
19458
19459 # type: verbatim
19460 #: ../fish/guestfish-actions.pod:420
19461 #, no-wrap
19462 msgid ""
19463 " base64-in (base64file|-) filename\n"
19464 "\n"
19465 msgstr ""
19466
19467 # type: textblock
19468 #: ../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
19469 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
19470 msgstr ""
19471
19472 # type: =head2
19473 #: ../fish/guestfish-actions.pod:427
19474 msgid "base64-out"
19475 msgstr ""
19476
19477 # type: verbatim
19478 #: ../fish/guestfish-actions.pod:429
19479 #, no-wrap
19480 msgid ""
19481 " base64-out filename (base64file|-)\n"
19482 "\n"
19483 msgstr ""
19484
19485 # type: =head2
19486 #: ../fish/guestfish-actions.pod:436
19487 msgid "blockdev-flushbufs"
19488 msgstr ""
19489
19490 # type: verbatim
19491 #: ../fish/guestfish-actions.pod:438
19492 #, no-wrap
19493 msgid ""
19494 " blockdev-flushbufs device\n"
19495 "\n"
19496 msgstr ""
19497
19498 # type: =head2
19499 #: ../fish/guestfish-actions.pod:445
19500 msgid "blockdev-getbsz"
19501 msgstr ""
19502
19503 # type: verbatim
19504 #: ../fish/guestfish-actions.pod:447
19505 #, no-wrap
19506 msgid ""
19507 " blockdev-getbsz device\n"
19508 "\n"
19509 msgstr ""
19510
19511 # type: =head2
19512 #: ../fish/guestfish-actions.pod:456
19513 msgid "blockdev-getro"
19514 msgstr ""
19515
19516 # type: verbatim
19517 #: ../fish/guestfish-actions.pod:458
19518 #, no-wrap
19519 msgid ""
19520 " blockdev-getro device\n"
19521 "\n"
19522 msgstr ""
19523
19524 # type: =head2
19525 #: ../fish/guestfish-actions.pod:465
19526 msgid "blockdev-getsize64"
19527 msgstr ""
19528
19529 # type: verbatim
19530 #: ../fish/guestfish-actions.pod:467
19531 #, no-wrap
19532 msgid ""
19533 " blockdev-getsize64 device\n"
19534 "\n"
19535 msgstr ""
19536
19537 # type: textblock
19538 #: ../fish/guestfish-actions.pod:471
19539 msgid "See also L</blockdev-getsz>."
19540 msgstr ""
19541
19542 # type: =head2
19543 #: ../fish/guestfish-actions.pod:475
19544 msgid "blockdev-getss"
19545 msgstr ""
19546
19547 # type: verbatim
19548 #: ../fish/guestfish-actions.pod:477
19549 #, no-wrap
19550 msgid ""
19551 " blockdev-getss device\n"
19552 "\n"
19553 msgstr ""
19554
19555 # type: textblock
19556 #: ../fish/guestfish-actions.pod:482
19557 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
19558 msgstr ""
19559
19560 # type: =head2
19561 #: ../fish/guestfish-actions.pod:487
19562 msgid "blockdev-getsz"
19563 msgstr ""
19564
19565 # type: verbatim
19566 #: ../fish/guestfish-actions.pod:489
19567 #, no-wrap
19568 msgid ""
19569 " blockdev-getsz device\n"
19570 "\n"
19571 msgstr ""
19572
19573 # type: textblock
19574 #: ../fish/guestfish-actions.pod:494
19575 msgid ""
19576 "See also L</blockdev-getss> for the real sector size of the device, and "
19577 "L</blockdev-getsize64> for the more useful I<size in bytes>."
19578 msgstr ""
19579
19580 # type: =head2
19581 #: ../fish/guestfish-actions.pod:500
19582 msgid "blockdev-rereadpt"
19583 msgstr ""
19584
19585 # type: verbatim
19586 #: ../fish/guestfish-actions.pod:502
19587 #, no-wrap
19588 msgid ""
19589 " blockdev-rereadpt device\n"
19590 "\n"
19591 msgstr ""
19592
19593 # type: =head2
19594 #: ../fish/guestfish-actions.pod:508
19595 msgid "blockdev-setbsz"
19596 msgstr ""
19597
19598 # type: verbatim
19599 #: ../fish/guestfish-actions.pod:510
19600 #, no-wrap
19601 msgid ""
19602 " blockdev-setbsz device blocksize\n"
19603 "\n"
19604 msgstr ""
19605
19606 # type: =head2
19607 #: ../fish/guestfish-actions.pod:519
19608 msgid "blockdev-setro"
19609 msgstr ""
19610
19611 # type: verbatim
19612 #: ../fish/guestfish-actions.pod:521
19613 #, no-wrap
19614 msgid ""
19615 " blockdev-setro device\n"
19616 "\n"
19617 msgstr ""
19618
19619 # type: =head2
19620 #: ../fish/guestfish-actions.pod:527
19621 msgid "blockdev-setrw"
19622 msgstr ""
19623
19624 # type: verbatim
19625 #: ../fish/guestfish-actions.pod:529
19626 #, no-wrap
19627 msgid ""
19628 " blockdev-setrw device\n"
19629 "\n"
19630 msgstr ""
19631
19632 # type: =head2
19633 #: ../fish/guestfish-actions.pod:535
19634 msgid "case-sensitive-path"
19635 msgstr ""
19636
19637 # type: verbatim
19638 #: ../fish/guestfish-actions.pod:537
19639 #, no-wrap
19640 msgid ""
19641 " case-sensitive-path path\n"
19642 "\n"
19643 msgstr ""
19644
19645 # type: textblock
19646 #: ../fish/guestfish-actions.pod:561
19647 msgid ""
19648 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
19649 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
19650 "how the directories were originally created under Windows)."
19651 msgstr ""
19652
19653 # type: textblock
19654 #: ../fish/guestfish-actions.pod:569
19655 msgid "See also L</realpath>."
19656 msgstr ""
19657
19658 # type: =head2
19659 #: ../fish/guestfish-actions.pod:571
19660 msgid "cat"
19661 msgstr ""
19662
19663 # type: verbatim
19664 #: ../fish/guestfish-actions.pod:573
19665 #, no-wrap
19666 msgid ""
19667 " cat path\n"
19668 "\n"
19669 msgstr ""
19670
19671 # type: textblock
19672 #: ../fish/guestfish-actions.pod:577
19673 msgid ""
19674 "Note that this function cannot correctly handle binary files (specifically, "
19675 "files containing C<\\0> character which is treated as end of string).  For "
19676 "those you need to use the L</read-file> or L</download> functions which have "
19677 "a more complex interface."
19678 msgstr ""
19679
19680 # type: =head2
19681 #: ../fish/guestfish-actions.pod:585
19682 msgid "checksum"
19683 msgstr ""
19684
19685 # type: verbatim
19686 #: ../fish/guestfish-actions.pod:587
19687 #, no-wrap
19688 msgid ""
19689 " checksum csumtype path\n"
19690 "\n"
19691 msgstr ""
19692
19693 # type: textblock
19694 #: ../fish/guestfish-actions.pod:630
19695 msgid "To get the checksum for a device, use L</checksum-device>."
19696 msgstr ""
19697
19698 # type: textblock
19699 #: ../fish/guestfish-actions.pod:632
19700 msgid "To get the checksums for many files, use L</checksums-out>."
19701 msgstr ""
19702
19703 # type: =head2
19704 #: ../fish/guestfish-actions.pod:634
19705 msgid "checksum-device"
19706 msgstr ""
19707
19708 # type: verbatim
19709 #: ../fish/guestfish-actions.pod:636
19710 #, no-wrap
19711 msgid ""
19712 " checksum-device csumtype device\n"
19713 "\n"
19714 msgstr ""
19715
19716 # type: textblock
19717 #: ../fish/guestfish-actions.pod:638
19718 msgid ""
19719 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
19720 "device named C<device>.  For the types of checksums supported see the "
19721 "L</checksum> command."
19722 msgstr ""
19723
19724 # type: =head2
19725 #: ../fish/guestfish-actions.pod:642
19726 msgid "checksums-out"
19727 msgstr ""
19728
19729 # type: verbatim
19730 #: ../fish/guestfish-actions.pod:644
19731 #, no-wrap
19732 msgid ""
19733 " checksums-out csumtype directory (sumsfile|-)\n"
19734 "\n"
19735 msgstr ""
19736
19737 # type: =head2
19738 #: ../fish/guestfish-actions.pod:660
19739 msgid "chmod"
19740 msgstr ""
19741
19742 # type: verbatim
19743 #: ../fish/guestfish-actions.pod:662
19744 #, no-wrap
19745 msgid ""
19746 " chmod mode path\n"
19747 "\n"
19748 msgstr ""
19749
19750 # type: =head2
19751 #: ../fish/guestfish-actions.pod:673
19752 msgid "chown"
19753 msgstr ""
19754
19755 # type: verbatim
19756 #: ../fish/guestfish-actions.pod:675
19757 #, no-wrap
19758 msgid ""
19759 " chown owner group path\n"
19760 "\n"
19761 msgstr ""
19762
19763 # type: =head2
19764 #: ../fish/guestfish-actions.pod:683
19765 msgid "command"
19766 msgstr ""
19767
19768 # type: verbatim
19769 #: ../fish/guestfish-actions.pod:685
19770 #, no-wrap
19771 msgid ""
19772 " command 'arguments ...'\n"
19773 "\n"
19774 msgstr ""
19775
19776 # type: textblock
19777 #: ../fish/guestfish-actions.pod:692
19778 msgid ""
19779 "The single parameter is an argv-style list of arguments.  The first element "
19780 "is the name of the program to run.  Subsequent elements are parameters.  The "
19781 "list must be non-empty (ie. must contain a program name).  Note that the "
19782 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
19783 msgstr ""
19784
19785 # type: =head2
19786 #: ../fish/guestfish-actions.pod:720
19787 msgid "command-lines"
19788 msgstr ""
19789
19790 # type: verbatim
19791 #: ../fish/guestfish-actions.pod:722
19792 #, no-wrap
19793 msgid ""
19794 " command-lines 'arguments ...'\n"
19795 "\n"
19796 msgstr ""
19797
19798 # type: textblock
19799 #: ../fish/guestfish-actions.pod:724
19800 msgid "This is the same as L</command>, but splits the result into a list of lines."
19801 msgstr ""
19802
19803 # type: textblock
19804 #: ../fish/guestfish-actions.pod:727
19805 msgid "See also: L</sh-lines>"
19806 msgstr ""
19807
19808 # type: =head2
19809 #: ../fish/guestfish-actions.pod:732
19810 msgid "config"
19811 msgstr ""
19812
19813 # type: verbatim
19814 #: ../fish/guestfish-actions.pod:734
19815 #, no-wrap
19816 msgid ""
19817 " config qemuparam qemuvalue\n"
19818 "\n"
19819 msgstr ""
19820
19821 # type: =head2
19822 #: ../fish/guestfish-actions.pod:745
19823 msgid "copy-size"
19824 msgstr ""
19825
19826 # type: verbatim
19827 #: ../fish/guestfish-actions.pod:747
19828 #, no-wrap
19829 msgid ""
19830 " copy-size src dest size\n"
19831 "\n"
19832 msgstr ""
19833
19834 # type: =head2
19835 #: ../fish/guestfish-actions.pod:755
19836 msgid "cp"
19837 msgstr ""
19838
19839 # type: verbatim
19840 #: ../fish/guestfish-actions.pod:757
19841 #, no-wrap
19842 msgid ""
19843 " cp src dest\n"
19844 "\n"
19845 msgstr ""
19846
19847 # type: =head2
19848 #: ../fish/guestfish-actions.pod:762
19849 msgid "cp-a"
19850 msgstr ""
19851
19852 # type: verbatim
19853 #: ../fish/guestfish-actions.pod:764
19854 #, no-wrap
19855 msgid ""
19856 " cp-a src dest\n"
19857 "\n"
19858 msgstr ""
19859
19860 # type: =head2
19861 #: ../fish/guestfish-actions.pod:769
19862 msgid "dd"
19863 msgstr ""
19864
19865 # type: verbatim
19866 #: ../fish/guestfish-actions.pod:771
19867 #, no-wrap
19868 msgid ""
19869 " dd src dest\n"
19870 "\n"
19871 msgstr ""
19872
19873 # type: textblock
19874 #: ../fish/guestfish-actions.pod:778
19875 msgid ""
19876 "If the destination is a device, it must be as large or larger than the "
19877 "source file or device, otherwise the copy will fail.  This command cannot do "
19878 "partial copies (see L</copy-size>)."
19879 msgstr ""
19880
19881 # type: =head2
19882 #: ../fish/guestfish-actions.pod:782
19883 msgid "df"
19884 msgstr ""
19885
19886 # type: verbatim
19887 #: ../fish/guestfish-actions.pod:784
19888 #, no-wrap
19889 msgid ""
19890 " df\n"
19891 "\n"
19892 msgstr ""
19893
19894 # type: =head2
19895 #: ../fish/guestfish-actions.pod:792
19896 msgid "df-h"
19897 msgstr ""
19898
19899 # type: verbatim
19900 #: ../fish/guestfish-actions.pod:794
19901 #, no-wrap
19902 msgid ""
19903 " df-h\n"
19904 "\n"
19905 msgstr ""
19906
19907 # type: =head2
19908 #: ../fish/guestfish-actions.pod:803
19909 msgid "dmesg"
19910 msgstr ""
19911
19912 # type: verbatim
19913 #: ../fish/guestfish-actions.pod:805
19914 #, no-wrap
19915 msgid ""
19916 " dmesg\n"
19917 "\n"
19918 msgstr ""
19919
19920 # type: textblock
19921 #: ../fish/guestfish-actions.pod:811
19922 msgid ""
19923 "Another way to get the same information is to enable verbose messages with "
19924 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
19925 "before running the program."
19926 msgstr ""
19927
19928 # type: =head2
19929 #: ../fish/guestfish-actions.pod:816
19930 msgid "download"
19931 msgstr ""
19932
19933 # type: verbatim
19934 #: ../fish/guestfish-actions.pod:818
19935 #, no-wrap
19936 msgid ""
19937 " download remotefilename (filename|-)\n"
19938 "\n"
19939 msgstr ""
19940
19941 # type: textblock
19942 #: ../fish/guestfish-actions.pod:825
19943 msgid "See also L</upload>, L</cat>."
19944 msgstr ""
19945
19946 # type: =head2
19947 #: ../fish/guestfish-actions.pod:829
19948 msgid "download-offset"
19949 msgstr ""
19950
19951 # type: verbatim
19952 #: ../fish/guestfish-actions.pod:831
19953 #, no-wrap
19954 msgid ""
19955 " download-offset remotefilename (filename|-) offset size\n"
19956 "\n"
19957 msgstr ""
19958
19959 # type: textblock
19960 #: ../fish/guestfish-actions.pod:839
19961 msgid ""
19962 "Note that there is no limit on the amount of data that can be downloaded "
19963 "with this call, unlike with L</pread>, and this call always reads the full "
19964 "amount unless an error occurs."
19965 msgstr ""
19966
19967 # type: textblock
19968 #: ../fish/guestfish-actions.pod:844
19969 msgid "See also L</download>, L</pread>."
19970 msgstr ""
19971
19972 # type: =head2
19973 #: ../fish/guestfish-actions.pod:848
19974 msgid "drop-caches"
19975 msgstr ""
19976
19977 # type: verbatim
19978 #: ../fish/guestfish-actions.pod:850
19979 #, no-wrap
19980 msgid ""
19981 " drop-caches whattodrop\n"
19982 "\n"
19983 msgstr ""
19984
19985 # type: =head2
19986 #: ../fish/guestfish-actions.pod:862
19987 msgid "du"
19988 msgstr ""
19989
19990 # type: verbatim
19991 #: ../fish/guestfish-actions.pod:864
19992 #, no-wrap
19993 msgid ""
19994 " du path\n"
19995 "\n"
19996 msgstr ""
19997
19998 # type: =head2
19999 #: ../fish/guestfish-actions.pod:876
20000 msgid "e2fsck-f"
20001 msgstr ""
20002
20003 # type: verbatim
20004 #: ../fish/guestfish-actions.pod:878
20005 #, no-wrap
20006 msgid ""
20007 " e2fsck-f device\n"
20008 "\n"
20009 msgstr ""
20010
20011 # type: textblock
20012 #: ../fish/guestfish-actions.pod:884
20013 msgid ""
20014 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20015 "should use L</fsck>."
20016 msgstr ""
20017
20018 # type: =head2
20019 #: ../fish/guestfish-actions.pod:887
20020 msgid "echo-daemon"
20021 msgstr ""
20022
20023 # type: verbatim
20024 #: ../fish/guestfish-actions.pod:889
20025 #, no-wrap
20026 msgid ""
20027 " echo-daemon 'words ...'\n"
20028 "\n"
20029 msgstr ""
20030
20031 # type: textblock
20032 #: ../fish/guestfish-actions.pod:896
20033 msgid "See also L</ping-daemon>."
20034 msgstr ""
20035
20036 # type: =head2
20037 #: ../fish/guestfish-actions.pod:898
20038 msgid "egrep"
20039 msgstr ""
20040
20041 # type: verbatim
20042 #: ../fish/guestfish-actions.pod:900
20043 #, no-wrap
20044 msgid ""
20045 " egrep regex path\n"
20046 "\n"
20047 msgstr ""
20048
20049 # type: =head2
20050 #: ../fish/guestfish-actions.pod:908
20051 msgid "egrepi"
20052 msgstr ""
20053
20054 # type: verbatim
20055 #: ../fish/guestfish-actions.pod:910
20056 #, no-wrap
20057 msgid ""
20058 " egrepi regex path\n"
20059 "\n"
20060 msgstr ""
20061
20062 # type: =head2
20063 #: ../fish/guestfish-actions.pod:918
20064 msgid "equal"
20065 msgstr ""
20066
20067 # type: verbatim
20068 #: ../fish/guestfish-actions.pod:920
20069 #, no-wrap
20070 msgid ""
20071 " equal file1 file2\n"
20072 "\n"
20073 msgstr ""
20074
20075 # type: =head2
20076 #: ../fish/guestfish-actions.pod:927
20077 msgid "exists"
20078 msgstr ""
20079
20080 # type: verbatim
20081 #: ../fish/guestfish-actions.pod:929
20082 #, no-wrap
20083 msgid ""
20084 " exists path\n"
20085 "\n"
20086 msgstr ""
20087
20088 # type: textblock
20089 #: ../fish/guestfish-actions.pod:934
20090 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20091 msgstr ""
20092
20093 # type: =head2
20094 #: ../fish/guestfish-actions.pod:936
20095 msgid "fallocate"
20096 msgstr ""
20097
20098 # type: verbatim
20099 #: ../fish/guestfish-actions.pod:938
20100 #, no-wrap
20101 msgid ""
20102 " fallocate path len\n"
20103 "\n"
20104 msgstr ""
20105
20106 # type: =head2
20107 #: ../fish/guestfish-actions.pod:955
20108 msgid "fallocate64"
20109 msgstr ""
20110
20111 # type: verbatim
20112 #: ../fish/guestfish-actions.pod:957
20113 #, no-wrap
20114 msgid ""
20115 " fallocate64 path len\n"
20116 "\n"
20117 msgstr ""
20118
20119 # type: textblock
20120 #: ../fish/guestfish-actions.pod:963
20121 msgid ""
20122 "Note that this call allocates disk blocks for the file.  To create a sparse "
20123 "file use L</truncate-size> instead."
20124 msgstr ""
20125
20126 # type: textblock
20127 #: ../fish/guestfish-actions.pod:966
20128 msgid ""
20129 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20130 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20131 "maximum size of files created through that call to 1GB."
20132 msgstr ""
20133
20134 # type: =head2
20135 #: ../fish/guestfish-actions.pod:975
20136 msgid "fgrep"
20137 msgstr ""
20138
20139 # type: verbatim
20140 #: ../fish/guestfish-actions.pod:977
20141 #, no-wrap
20142 msgid ""
20143 " fgrep pattern path\n"
20144 "\n"
20145 msgstr ""
20146
20147 # type: =head2
20148 #: ../fish/guestfish-actions.pod:985
20149 msgid "fgrepi"
20150 msgstr ""
20151
20152 # type: verbatim
20153 #: ../fish/guestfish-actions.pod:987
20154 #, no-wrap
20155 msgid ""
20156 " fgrepi pattern path\n"
20157 "\n"
20158 msgstr ""
20159
20160 # type: =head2
20161 #: ../fish/guestfish-actions.pod:995
20162 msgid "file"
20163 msgstr ""
20164
20165 # type: verbatim
20166 #: ../fish/guestfish-actions.pod:997
20167 #, no-wrap
20168 msgid ""
20169 " file path\n"
20170 "\n"
20171 msgstr ""
20172
20173 # type: textblock
20174 #: ../fish/guestfish-actions.pod:1009
20175 msgid ""
20176 "This command can also be used on C</dev/> devices (and partitions, LV "
20177 "names).  You can for example use this to determine if a device contains a "
20178 "filesystem, although it's usually better to use L</vfs-type>."
20179 msgstr ""
20180
20181 # type: =head2
20182 #: ../fish/guestfish-actions.pod:1019
20183 msgid "file-architecture"
20184 msgstr ""
20185
20186 # type: verbatim
20187 #: ../fish/guestfish-actions.pod:1021
20188 #, no-wrap
20189 msgid ""
20190 " file-architecture filename\n"
20191 "\n"
20192 msgstr ""
20193
20194 # type: =head2
20195 #: ../fish/guestfish-actions.pod:1124
20196 msgid "filesize"
20197 msgstr ""
20198
20199 # type: verbatim
20200 #: ../fish/guestfish-actions.pod:1126
20201 #, no-wrap
20202 msgid ""
20203 " filesize file\n"
20204 "\n"
20205 msgstr ""
20206
20207 # type: textblock
20208 #: ../fish/guestfish-actions.pod:1130
20209 msgid ""
20210 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
20211 "L</is-file> etc.  To get the size of block devices, use "
20212 "L</blockdev-getsize64>."
20213 msgstr ""
20214
20215 # type: =head2
20216 #: ../fish/guestfish-actions.pod:1134
20217 msgid "fill"
20218 msgstr ""
20219
20220 # type: verbatim
20221 #: ../fish/guestfish-actions.pod:1136
20222 #, no-wrap
20223 msgid ""
20224 " fill c len path\n"
20225 "\n"
20226 msgstr ""
20227
20228 # type: textblock
20229 #: ../fish/guestfish-actions.pod:1142
20230 msgid ""
20231 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20232 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20233 "L</fill-pattern>."
20234 msgstr ""
20235
20236 # type: =head2
20237 #: ../fish/guestfish-actions.pod:1147
20238 msgid "fill-pattern"
20239 msgstr ""
20240
20241 # type: verbatim
20242 #: ../fish/guestfish-actions.pod:1149
20243 #, no-wrap
20244 msgid ""
20245 " fill-pattern pattern len path\n"
20246 "\n"
20247 msgstr ""
20248
20249 # type: textblock
20250 #: ../fish/guestfish-actions.pod:1151
20251 msgid ""
20252 "This function is like L</fill> except that it creates a new file of length "
20253 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20254 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20255 "bytes."
20256 msgstr ""
20257
20258 # type: =head2
20259 #: ../fish/guestfish-actions.pod:1156
20260 msgid "find"
20261 msgstr ""
20262
20263 # type: verbatim
20264 #: ../fish/guestfish-actions.pod:1158
20265 #, no-wrap
20266 msgid ""
20267 " find directory\n"
20268 "\n"
20269 msgstr ""
20270
20271 # type: textblock
20272 #: ../fish/guestfish-actions.pod:1172
20273 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20274 msgstr ""
20275
20276 # type: textblock
20277 #: ../fish/guestfish-actions.pod:1185
20278 msgid "See also L</find0>."
20279 msgstr ""
20280
20281 # type: =head2
20282 #: ../fish/guestfish-actions.pod:1190
20283 msgid "find0"
20284 msgstr ""
20285
20286 # type: verbatim
20287 #: ../fish/guestfish-actions.pod:1192
20288 #, no-wrap
20289 msgid ""
20290 " find0 directory (files|-)\n"
20291 "\n"
20292 msgstr ""
20293
20294 # type: textblock
20295 #: ../fish/guestfish-actions.pod:1198
20296 msgid "This command works the same way as L</find> with the following exceptions:"
20297 msgstr ""
20298
20299 # type: =head2
20300 #: ../fish/guestfish-actions.pod:1225
20301 msgid "findfs-label"
20302 msgstr ""
20303
20304 # type: verbatim
20305 #: ../fish/guestfish-actions.pod:1227
20306 #, no-wrap
20307 msgid ""
20308 " findfs-label label\n"
20309 "\n"
20310 msgstr ""
20311
20312 # type: textblock
20313 #: ../fish/guestfish-actions.pod:1233
20314 msgid "To find the label of a filesystem, use L</vfs-label>."
20315 msgstr ""
20316
20317 # type: =head2
20318 #: ../fish/guestfish-actions.pod:1235
20319 msgid "findfs-uuid"
20320 msgstr ""
20321
20322 # type: verbatim
20323 #: ../fish/guestfish-actions.pod:1237
20324 #, no-wrap
20325 msgid ""
20326 " findfs-uuid uuid\n"
20327 "\n"
20328 msgstr ""
20329
20330 # type: textblock
20331 #: ../fish/guestfish-actions.pod:1243
20332 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
20333 msgstr ""
20334
20335 # type: =head2
20336 #: ../fish/guestfish-actions.pod:1245
20337 msgid "fsck"
20338 msgstr ""
20339
20340 # type: verbatim
20341 #: ../fish/guestfish-actions.pod:1247
20342 #, no-wrap
20343 msgid ""
20344 " fsck fstype device\n"
20345 "\n"
20346 msgstr ""
20347
20348 # type: =head2
20349 #: ../fish/guestfish-actions.pod:1277
20350 msgid "get-append"
20351 msgstr ""
20352
20353 # type: verbatim
20354 #: ../fish/guestfish-actions.pod:1279
20355 #, no-wrap
20356 msgid ""
20357 " get-append\n"
20358 "\n"
20359 msgstr ""
20360
20361 # type: =head2
20362 #: ../fish/guestfish-actions.pod:1286
20363 msgid "get-autosync"
20364 msgstr ""
20365
20366 # type: verbatim
20367 #: ../fish/guestfish-actions.pod:1288
20368 #, no-wrap
20369 msgid ""
20370 " get-autosync\n"
20371 "\n"
20372 msgstr ""
20373
20374 # type: =head2
20375 #: ../fish/guestfish-actions.pod:1292
20376 msgid "get-direct"
20377 msgstr ""
20378
20379 # type: verbatim
20380 #: ../fish/guestfish-actions.pod:1294
20381 #, no-wrap
20382 msgid ""
20383 " get-direct\n"
20384 "\n"
20385 msgstr ""
20386
20387 # type: =head2
20388 #: ../fish/guestfish-actions.pod:1298
20389 msgid "get-e2label"
20390 msgstr ""
20391
20392 # type: verbatim
20393 #: ../fish/guestfish-actions.pod:1300
20394 #, no-wrap
20395 msgid ""
20396 " get-e2label device\n"
20397 "\n"
20398 msgstr ""
20399
20400 # type: =head2
20401 #: ../fish/guestfish-actions.pod:1312
20402 msgid "get-e2uuid"
20403 msgstr ""
20404
20405 # type: verbatim
20406 #: ../fish/guestfish-actions.pod:1314
20407 #, no-wrap
20408 msgid ""
20409 " get-e2uuid device\n"
20410 "\n"
20411 msgstr ""
20412
20413 # type: =head2
20414 #: ../fish/guestfish-actions.pod:1326
20415 msgid "get-memsize"
20416 msgstr ""
20417
20418 # type: verbatim
20419 #: ../fish/guestfish-actions.pod:1328
20420 #, no-wrap
20421 msgid ""
20422 " get-memsize\n"
20423 "\n"
20424 msgstr ""
20425
20426 # type: textblock
20427 #: ../fish/guestfish-actions.pod:1333
20428 msgid ""
20429 "If L</set-memsize> was not called on this handle, and if "
20430 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
20431 "value for memsize."
20432 msgstr ""
20433
20434 # type: =head2
20435 #: ../fish/guestfish-actions.pod:1340
20436 msgid "get-network"
20437 msgstr ""
20438
20439 # type: verbatim
20440 #: ../fish/guestfish-actions.pod:1342
20441 #, no-wrap
20442 msgid ""
20443 " get-network\n"
20444 "\n"
20445 msgstr ""
20446
20447 # type: =head2
20448 #: ../fish/guestfish-actions.pod:1346
20449 msgid "get-path"
20450 msgstr ""
20451
20452 # type: verbatim
20453 #: ../fish/guestfish-actions.pod:1348
20454 #, no-wrap
20455 msgid ""
20456 " get-path\n"
20457 "\n"
20458 msgstr ""
20459
20460 # type: =head2
20461 #: ../fish/guestfish-actions.pod:1355
20462 msgid "get-pid"
20463 msgstr ""
20464
20465 # type: =head2
20466 #: ../fish/guestfish-actions.pod:1357
20467 msgid "pid"
20468 msgstr ""
20469
20470 # type: verbatim
20471 #: ../fish/guestfish-actions.pod:1359
20472 #, no-wrap
20473 msgid ""
20474 " get-pid\n"
20475 "\n"
20476 msgstr ""
20477
20478 # type: =head2
20479 #: ../fish/guestfish-actions.pod:1366
20480 msgid "get-qemu"
20481 msgstr ""
20482
20483 # type: verbatim
20484 #: ../fish/guestfish-actions.pod:1368
20485 #, no-wrap
20486 msgid ""
20487 " get-qemu\n"
20488 "\n"
20489 msgstr ""
20490
20491 # type: =head2
20492 #: ../fish/guestfish-actions.pod:1375
20493 msgid "get-recovery-proc"
20494 msgstr ""
20495
20496 # type: verbatim
20497 #: ../fish/guestfish-actions.pod:1377
20498 #, no-wrap
20499 msgid ""
20500 " get-recovery-proc\n"
20501 "\n"
20502 msgstr ""
20503
20504 # type: =head2
20505 #: ../fish/guestfish-actions.pod:1381
20506 msgid "get-selinux"
20507 msgstr ""
20508
20509 # type: verbatim
20510 #: ../fish/guestfish-actions.pod:1383
20511 #, no-wrap
20512 msgid ""
20513 " get-selinux\n"
20514 "\n"
20515 msgstr ""
20516
20517 # type: textblock
20518 #: ../fish/guestfish-actions.pod:1385
20519 msgid ""
20520 "This returns the current setting of the selinux flag which is passed to the "
20521 "appliance at boot time.  See L</set-selinux>."
20522 msgstr ""
20523
20524 # type: =head2
20525 #: ../fish/guestfish-actions.pod:1391
20526 msgid "get-state"
20527 msgstr ""
20528
20529 # type: verbatim
20530 #: ../fish/guestfish-actions.pod:1393
20531 #, no-wrap
20532 msgid ""
20533 " get-state\n"
20534 "\n"
20535 msgstr ""
20536
20537 # type: =head2
20538 #: ../fish/guestfish-actions.pod:1400
20539 msgid "get-trace"
20540 msgstr ""
20541
20542 # type: verbatim
20543 #: ../fish/guestfish-actions.pod:1402
20544 #, no-wrap
20545 msgid ""
20546 " get-trace\n"
20547 "\n"
20548 msgstr ""
20549
20550 # type: =head2
20551 #: ../fish/guestfish-actions.pod:1406
20552 msgid "get-umask"
20553 msgstr ""
20554
20555 # type: verbatim
20556 #: ../fish/guestfish-actions.pod:1408
20557 #, no-wrap
20558 msgid ""
20559 " get-umask\n"
20560 "\n"
20561 msgstr ""
20562
20563 # type: textblock
20564 #: ../fish/guestfish-actions.pod:1410
20565 msgid ""
20566 "Return the current umask.  By default the umask is C<022> unless it has been "
20567 "set by calling L</umask>."
20568 msgstr ""
20569
20570 # type: =head2
20571 #: ../fish/guestfish-actions.pod:1413
20572 msgid "get-verbose"
20573 msgstr ""
20574
20575 # type: verbatim
20576 #: ../fish/guestfish-actions.pod:1415
20577 #, no-wrap
20578 msgid ""
20579 " get-verbose\n"
20580 "\n"
20581 msgstr ""
20582
20583 # type: =head2
20584 #: ../fish/guestfish-actions.pod:1419
20585 msgid "getcon"
20586 msgstr ""
20587
20588 # type: verbatim
20589 #: ../fish/guestfish-actions.pod:1421
20590 #, no-wrap
20591 msgid ""
20592 " getcon\n"
20593 "\n"
20594 msgstr ""
20595
20596 # type: textblock
20597 #: ../fish/guestfish-actions.pod:1425
20598 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
20599 msgstr ""
20600
20601 # type: =head2
20602 #: ../fish/guestfish-actions.pod:1428
20603 msgid "getxattrs"
20604 msgstr ""
20605
20606 # type: verbatim
20607 #: ../fish/guestfish-actions.pod:1430
20608 #, no-wrap
20609 msgid ""
20610 " getxattrs path\n"
20611 "\n"
20612 msgstr ""
20613
20614 # type: textblock
20615 #: ../fish/guestfish-actions.pod:1438
20616 msgid "See also: L</lgetxattrs>, L<attr(5)>."
20617 msgstr ""
20618
20619 # type: =head2
20620 #: ../fish/guestfish-actions.pod:1440
20621 msgid "glob-expand"
20622 msgstr ""
20623
20624 # type: verbatim
20625 #: ../fish/guestfish-actions.pod:1442
20626 #, no-wrap
20627 msgid ""
20628 " glob-expand pattern\n"
20629 "\n"
20630 msgstr ""
20631
20632 # type: =head2
20633 #: ../fish/guestfish-actions.pod:1455
20634 msgid "grep"
20635 msgstr ""
20636
20637 # type: verbatim
20638 #: ../fish/guestfish-actions.pod:1457
20639 #, no-wrap
20640 msgid ""
20641 " grep regex path\n"
20642 "\n"
20643 msgstr ""
20644
20645 # type: =head2
20646 #: ../fish/guestfish-actions.pod:1465
20647 msgid "grepi"
20648 msgstr ""
20649
20650 # type: verbatim
20651 #: ../fish/guestfish-actions.pod:1467
20652 #, no-wrap
20653 msgid ""
20654 " grepi regex path\n"
20655 "\n"
20656 msgstr ""
20657
20658 # type: =head2
20659 #: ../fish/guestfish-actions.pod:1475
20660 msgid "grub-install"
20661 msgstr ""
20662
20663 # type: verbatim
20664 #: ../fish/guestfish-actions.pod:1477
20665 #, no-wrap
20666 msgid ""
20667 " grub-install root device\n"
20668 "\n"
20669 msgstr ""
20670
20671 # type: =head2
20672 #: ../fish/guestfish-actions.pod:1493
20673 msgid "head"
20674 msgstr ""
20675
20676 # type: verbatim
20677 #: ../fish/guestfish-actions.pod:1495
20678 #, no-wrap
20679 msgid ""
20680 " head path\n"
20681 "\n"
20682 msgstr ""
20683
20684 # type: =head2
20685 #: ../fish/guestfish-actions.pod:1503
20686 msgid "head-n"
20687 msgstr ""
20688
20689 # type: verbatim
20690 #: ../fish/guestfish-actions.pod:1505
20691 #, no-wrap
20692 msgid ""
20693 " head-n nrlines path\n"
20694 "\n"
20695 msgstr ""
20696
20697 # type: =head2
20698 #: ../fish/guestfish-actions.pod:1518
20699 msgid "hexdump"
20700 msgstr ""
20701
20702 # type: verbatim
20703 #: ../fish/guestfish-actions.pod:1520
20704 #, no-wrap
20705 msgid ""
20706 " hexdump path\n"
20707 "\n"
20708 msgstr ""
20709
20710 # type: =head2
20711 #: ../fish/guestfish-actions.pod:1528
20712 msgid "initrd-cat"
20713 msgstr ""
20714
20715 # type: verbatim
20716 #: ../fish/guestfish-actions.pod:1530
20717 #, no-wrap
20718 msgid ""
20719 " initrd-cat initrdpath filename\n"
20720 "\n"
20721 msgstr ""
20722
20723 # type: textblock
20724 #: ../fish/guestfish-actions.pod:1542
20725 msgid "See also L</initrd-list>."
20726 msgstr ""
20727
20728 # type: =head2
20729 #: ../fish/guestfish-actions.pod:1547
20730 msgid "initrd-list"
20731 msgstr ""
20732
20733 # type: verbatim
20734 #: ../fish/guestfish-actions.pod:1549
20735 #, no-wrap
20736 msgid ""
20737 " initrd-list path\n"
20738 "\n"
20739 msgstr ""
20740
20741 # type: =head2
20742 #: ../fish/guestfish-actions.pod:1561
20743 msgid "inotify-add-watch"
20744 msgstr ""
20745
20746 # type: verbatim
20747 #: ../fish/guestfish-actions.pod:1563
20748 #, no-wrap
20749 msgid ""
20750 " inotify-add-watch path mask\n"
20751 "\n"
20752 msgstr ""
20753
20754 # type: =head2
20755 #: ../fish/guestfish-actions.pod:1575
20756 msgid "inotify-close"
20757 msgstr ""
20758
20759 # type: verbatim
20760 #: ../fish/guestfish-actions.pod:1577
20761 #, no-wrap
20762 msgid ""
20763 " inotify-close\n"
20764 "\n"
20765 msgstr ""
20766
20767 # type: =head2
20768 #: ../fish/guestfish-actions.pod:1583
20769 msgid "inotify-files"
20770 msgstr ""
20771
20772 # type: verbatim
20773 #: ../fish/guestfish-actions.pod:1585
20774 #, no-wrap
20775 msgid ""
20776 " inotify-files\n"
20777 "\n"
20778 msgstr ""
20779
20780 # type: textblock
20781 #: ../fish/guestfish-actions.pod:1587
20782 msgid ""
20783 "This function is a helpful wrapper around L</inotify-read> which just "
20784 "returns a list of pathnames of objects that were touched.  The returned "
20785 "pathnames are sorted and deduplicated."
20786 msgstr ""
20787
20788 # type: =head2
20789 #: ../fish/guestfish-actions.pod:1591
20790 msgid "inotify-init"
20791 msgstr ""
20792
20793 # type: verbatim
20794 #: ../fish/guestfish-actions.pod:1593
20795 #, no-wrap
20796 msgid ""
20797 " inotify-init maxevents\n"
20798 "\n"
20799 msgstr ""
20800
20801 # type: textblock
20802 #: ../fish/guestfish-actions.pod:1599
20803 msgid ""
20804 "C<maxevents> is the maximum number of events which will be queued up between "
20805 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
20806 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
20807 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
20808 "but records the fact that it threw them away by setting a flag "
20809 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
20810 msgstr ""
20811
20812 # type: textblock
20813 #: ../fish/guestfish-actions.pod:1609
20814 msgid ""
20815 "Before any events are generated, you have to add some watches to the "
20816 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
20817 "L</inotify-watch-all>."
20818 msgstr ""
20819
20820 # type: textblock
20821 #: ../fish/guestfish-actions.pod:1615
20822 msgid ""
20823 "Queued up events should be read periodically by calling L</inotify-read> (or "
20824 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
20825 "If you don't read the events out often enough then you risk the internal "
20826 "queue overflowing."
20827 msgstr ""
20828
20829 # type: textblock
20830 #: ../fish/guestfish-actions.pod:1622
20831 msgid ""
20832 "The handle should be closed after use by calling L</inotify-close>.  This "
20833 "also removes any watches automatically."
20834 msgstr ""
20835
20836 # type: =head2
20837 #: ../fish/guestfish-actions.pod:1631
20838 msgid "inotify-read"
20839 msgstr ""
20840
20841 # type: verbatim
20842 #: ../fish/guestfish-actions.pod:1633
20843 #, no-wrap
20844 msgid ""
20845 " inotify-read\n"
20846 "\n"
20847 msgstr ""
20848
20849 # type: =head2
20850 #: ../fish/guestfish-actions.pod:1646
20851 msgid "inotify-rm-watch"
20852 msgstr ""
20853
20854 # type: verbatim
20855 #: ../fish/guestfish-actions.pod:1648
20856 #, no-wrap
20857 msgid ""
20858 " inotify-rm-watch wd\n"
20859 "\n"
20860 msgstr ""
20861
20862 # type: textblock
20863 #: ../fish/guestfish-actions.pod:1650
20864 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
20865 msgstr ""
20866
20867 # type: =head2
20868 #: ../fish/guestfish-actions.pod:1653
20869 msgid "inspect-get-arch"
20870 msgstr ""
20871
20872 # type: verbatim
20873 #: ../fish/guestfish-actions.pod:1655
20874 #, no-wrap
20875 msgid ""
20876 " inspect-get-arch root\n"
20877 "\n"
20878 msgstr ""
20879
20880 # type: textblock
20881 #: ../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
20882 msgid ""
20883 "This function should only be called with a root device string as returned by "
20884 "L</inspect-os>."
20885 msgstr ""
20886
20887 # type: textblock
20888 #: ../fish/guestfish-actions.pod:1660
20889 msgid ""
20890 "This returns the architecture of the inspected operating system.  The "
20891 "possible return values are listed under L</file-architecture>."
20892 msgstr ""
20893
20894 # type: =head2
20895 #: ../fish/guestfish-actions.pod:1669
20896 msgid "inspect-get-distro"
20897 msgstr ""
20898
20899 # type: verbatim
20900 #: ../fish/guestfish-actions.pod:1671
20901 #, no-wrap
20902 msgid ""
20903 " inspect-get-distro root\n"
20904 "\n"
20905 msgstr ""
20906
20907 # type: =head2
20908 #: ../fish/guestfish-actions.pod:1743
20909 msgid "inspect-get-filesystems"
20910 msgstr ""
20911
20912 # type: verbatim
20913 #: ../fish/guestfish-actions.pod:1745
20914 #, no-wrap
20915 msgid ""
20916 " inspect-get-filesystems root\n"
20917 "\n"
20918 msgstr ""
20919
20920 # type: textblock
20921 #: ../fish/guestfish-actions.pod:1758
20922 msgid ""
20923 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20924 "L</inspect-get-mountpoints>."
20925 msgstr ""
20926
20927 # type: =head2
20928 #: ../fish/guestfish-actions.pod:1761
20929 msgid "inspect-get-hostname"
20930 msgstr ""
20931
20932 # type: verbatim
20933 #: ../fish/guestfish-actions.pod:1763
20934 #, no-wrap
20935 msgid ""
20936 " inspect-get-hostname root\n"
20937 "\n"
20938 msgstr ""
20939
20940 # type: =head2
20941 #: ../fish/guestfish-actions.pod:1776
20942 msgid "inspect-get-major-version"
20943 msgstr ""
20944
20945 # type: verbatim
20946 #: ../fish/guestfish-actions.pod:1778
20947 #, no-wrap
20948 msgid ""
20949 " inspect-get-major-version root\n"
20950 "\n"
20951 msgstr ""
20952
20953 # type: =head2
20954 #: ../fish/guestfish-actions.pod:1797
20955 msgid "inspect-get-minor-version"
20956 msgstr ""
20957
20958 # type: verbatim
20959 #: ../fish/guestfish-actions.pod:1799
20960 #, no-wrap
20961 msgid ""
20962 " inspect-get-minor-version root\n"
20963 "\n"
20964 msgstr ""
20965
20966 # type: textblock
20967 #: ../fish/guestfish-actions.pod:1809
20968 msgid ""
20969 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20970 "L</inspect-get-major-version>."
20971 msgstr ""
20972
20973 # type: =head2
20974 #: ../fish/guestfish-actions.pod:1812
20975 msgid "inspect-get-mountpoints"
20976 msgstr ""
20977
20978 # type: verbatim
20979 #: ../fish/guestfish-actions.pod:1814
20980 #, no-wrap
20981 msgid ""
20982 " inspect-get-mountpoints root\n"
20983 "\n"
20984 msgstr ""
20985
20986 # type: textblock
20987 #: ../fish/guestfish-actions.pod:1832
20988 msgid ""
20989 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
20990 "L</inspect-get-filesystems>."
20991 msgstr ""
20992
20993 # type: =head2
20994 #: ../fish/guestfish-actions.pod:1835
20995 msgid "inspect-get-package-format"
20996 msgstr ""
20997
20998 # type: verbatim
20999 #: ../fish/guestfish-actions.pod:1837
21000 #, no-wrap
21001 msgid ""
21002 " inspect-get-package-format root\n"
21003 "\n"
21004 msgstr ""
21005
21006 # type: textblock
21007 #: ../fish/guestfish-actions.pod:1842
21008 msgid ""
21009 "This function and L</inspect-get-package-management> return the package "
21010 "format and package management tool used by the inspected operating system.  "
21011 "For example for Fedora these functions would return C<rpm> (package format) "
21012 "and C<yum> (package management)."
21013 msgstr ""
21014
21015 # type: =head2
21016 #: ../fish/guestfish-actions.pod:1857
21017 msgid "inspect-get-package-management"
21018 msgstr ""
21019
21020 # type: verbatim
21021 #: ../fish/guestfish-actions.pod:1859
21022 #, no-wrap
21023 msgid ""
21024 " inspect-get-package-management root\n"
21025 "\n"
21026 msgstr ""
21027
21028 # type: textblock
21029 #: ../fish/guestfish-actions.pod:1864
21030 msgid ""
21031 "L</inspect-get-package-format> and this function return the package format "
21032 "and package management tool used by the inspected operating system.  For "
21033 "example for Fedora these functions would return C<rpm> (package format) and "
21034 "C<yum> (package management)."
21035 msgstr ""
21036
21037 # type: =head2
21038 #: ../fish/guestfish-actions.pod:1881
21039 msgid "inspect-get-product-name"
21040 msgstr ""
21041
21042 # type: verbatim
21043 #: ../fish/guestfish-actions.pod:1883
21044 #, no-wrap
21045 msgid ""
21046 " inspect-get-product-name root\n"
21047 "\n"
21048 msgstr ""
21049
21050 # type: =head2
21051 #: ../fish/guestfish-actions.pod:1898
21052 msgid "inspect-get-roots"
21053 msgstr ""
21054
21055 # type: verbatim
21056 #: ../fish/guestfish-actions.pod:1900
21057 #, no-wrap
21058 msgid ""
21059 " inspect-get-roots\n"
21060 "\n"
21061 msgstr ""
21062
21063 # type: textblock
21064 #: ../fish/guestfish-actions.pod:1902
21065 msgid ""
21066 "This function is a convenient way to get the list of root devices, as "
21067 "returned from a previous call to L</inspect-os>, but without redoing the "
21068 "whole inspection process."
21069 msgstr ""
21070
21071 # type: textblock
21072 #: ../fish/guestfish-actions.pod:1906
21073 msgid ""
21074 "This returns an empty list if either no root devices were found or the "
21075 "caller has not called L</inspect-os>."
21076 msgstr ""
21077
21078 # type: =head2
21079 #: ../fish/guestfish-actions.pod:1911
21080 msgid "inspect-get-type"
21081 msgstr ""
21082
21083 # type: verbatim
21084 #: ../fish/guestfish-actions.pod:1913
21085 #, no-wrap
21086 msgid ""
21087 " inspect-get-type root\n"
21088 "\n"
21089 msgstr ""
21090
21091 # type: =head2
21092 #: ../fish/guestfish-actions.pod:1946
21093 msgid "inspect-get-windows-systemroot"
21094 msgstr ""
21095
21096 # type: verbatim
21097 #: ../fish/guestfish-actions.pod:1948
21098 #, no-wrap
21099 msgid ""
21100 " inspect-get-windows-systemroot root\n"
21101 "\n"
21102 msgstr ""
21103
21104 # type: =head2
21105 #: ../fish/guestfish-actions.pod:1962
21106 msgid "inspect-list-applications"
21107 msgstr ""
21108
21109 # type: verbatim
21110 #: ../fish/guestfish-actions.pod:1964
21111 #, no-wrap
21112 msgid ""
21113 " inspect-list-applications root\n"
21114 "\n"
21115 msgstr ""
21116
21117 # type: textblock
21118 #: ../fish/guestfish-actions.pod:1971
21119 msgid ""
21120 "I<Note:> This call works differently from other parts of the inspection "
21121 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21122 "then mount up the disks, before calling this.  Listing applications is a "
21123 "significantly more difficult operation which requires access to the full "
21124 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21125 "are just returning data cached in the libguestfs handle, this call actually "
21126 "reads parts of the mounted filesystems during the call."
21127 msgstr ""
21128
21129 # type: =head2
21130 #: ../fish/guestfish-actions.pod:2061
21131 msgid "inspect-os"
21132 msgstr ""
21133
21134 # type: verbatim
21135 #: ../fish/guestfish-actions.pod:2063
21136 #, no-wrap
21137 msgid ""
21138 " inspect-os\n"
21139 "\n"
21140 msgstr ""
21141
21142 # type: textblock
21143 #: ../fish/guestfish-actions.pod:2078
21144 msgid ""
21145 "You can pass the root string(s) returned to other L</inspect-get-*> "
21146 "functions in order to query further information about each operating system, "
21147 "such as the name and version."
21148 msgstr ""
21149
21150 # type: textblock
21151 #: ../fish/guestfish-actions.pod:2083
21152 msgid ""
21153 "This function uses other libguestfs features such as L</mount-ro> and "
21154 "L</umount-all> in order to mount and unmount filesystems and look at the "
21155 "contents.  This should be called with no disks currently mounted.  The "
21156 "function may also use Augeas, so any existing Augeas handle will be closed."
21157 msgstr ""
21158
21159 # type: textblock
21160 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2297
21161 msgid "See also L</list-filesystems>."
21162 msgstr ""
21163
21164 # type: =head2
21165 #: ../fish/guestfish-actions.pod:2097
21166 msgid "is-blockdev"
21167 msgstr ""
21168
21169 # type: verbatim
21170 #: ../fish/guestfish-actions.pod:2099
21171 #, no-wrap
21172 msgid ""
21173 " is-blockdev path\n"
21174 "\n"
21175 msgstr ""
21176
21177 # type: textblock
21178 #: ../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
21179 msgid "See also L</stat>."
21180 msgstr ""
21181
21182 # type: =head2
21183 #: ../fish/guestfish-actions.pod:2106
21184 msgid "is-busy"
21185 msgstr ""
21186
21187 # type: verbatim
21188 #: ../fish/guestfish-actions.pod:2108
21189 #, no-wrap
21190 msgid ""
21191 " is-busy\n"
21192 "\n"
21193 msgstr ""
21194
21195 # type: =head2
21196 #: ../fish/guestfish-actions.pod:2115
21197 msgid "is-chardev"
21198 msgstr ""
21199
21200 # type: verbatim
21201 #: ../fish/guestfish-actions.pod:2117
21202 #, no-wrap
21203 msgid ""
21204 " is-chardev path\n"
21205 "\n"
21206 msgstr ""
21207
21208 # type: =head2
21209 #: ../fish/guestfish-actions.pod:2124
21210 msgid "is-config"
21211 msgstr ""
21212
21213 # type: verbatim
21214 #: ../fish/guestfish-actions.pod:2126
21215 #, no-wrap
21216 msgid ""
21217 " is-config\n"
21218 "\n"
21219 msgstr ""
21220
21221 # type: =head2
21222 #: ../fish/guestfish-actions.pod:2133
21223 msgid "is-dir"
21224 msgstr ""
21225
21226 # type: verbatim
21227 #: ../fish/guestfish-actions.pod:2135
21228 #, no-wrap
21229 msgid ""
21230 " is-dir path\n"
21231 "\n"
21232 msgstr ""
21233
21234 # type: =head2
21235 #: ../fish/guestfish-actions.pod:2143
21236 msgid "is-fifo"
21237 msgstr ""
21238
21239 # type: verbatim
21240 #: ../fish/guestfish-actions.pod:2145
21241 #, no-wrap
21242 msgid ""
21243 " is-fifo path\n"
21244 "\n"
21245 msgstr ""
21246
21247 # type: =head2
21248 #: ../fish/guestfish-actions.pod:2152
21249 msgid "is-file"
21250 msgstr ""
21251
21252 # type: verbatim
21253 #: ../fish/guestfish-actions.pod:2154
21254 #, no-wrap
21255 msgid ""
21256 " is-file path\n"
21257 "\n"
21258 msgstr ""
21259
21260 # type: =head2
21261 #: ../fish/guestfish-actions.pod:2162
21262 msgid "is-launching"
21263 msgstr ""
21264
21265 # type: verbatim
21266 #: ../fish/guestfish-actions.pod:2164
21267 #, no-wrap
21268 msgid ""
21269 " is-launching\n"
21270 "\n"
21271 msgstr ""
21272
21273 # type: =head2
21274 #: ../fish/guestfish-actions.pod:2171
21275 msgid "is-lv"
21276 msgstr ""
21277
21278 # type: verbatim
21279 #: ../fish/guestfish-actions.pod:2173
21280 #, no-wrap
21281 msgid ""
21282 " is-lv device\n"
21283 "\n"
21284 msgstr ""
21285
21286 # type: =head2
21287 #: ../fish/guestfish-actions.pod:2178
21288 msgid "is-ready"
21289 msgstr ""
21290
21291 # type: verbatim
21292 #: ../fish/guestfish-actions.pod:2180
21293 #, no-wrap
21294 msgid ""
21295 " is-ready\n"
21296 "\n"
21297 msgstr ""
21298
21299 # type: =head2
21300 #: ../fish/guestfish-actions.pod:2187
21301 msgid "is-socket"
21302 msgstr ""
21303
21304 # type: verbatim
21305 #: ../fish/guestfish-actions.pod:2189
21306 #, no-wrap
21307 msgid ""
21308 " is-socket path\n"
21309 "\n"
21310 msgstr ""
21311
21312 # type: =head2
21313 #: ../fish/guestfish-actions.pod:2196
21314 msgid "is-symlink"
21315 msgstr ""
21316
21317 # type: verbatim
21318 #: ../fish/guestfish-actions.pod:2198
21319 #, no-wrap
21320 msgid ""
21321 " is-symlink path\n"
21322 "\n"
21323 msgstr ""
21324
21325 # type: =head2
21326 #: ../fish/guestfish-actions.pod:2205
21327 msgid "kill-subprocess"
21328 msgstr ""
21329
21330 # type: verbatim
21331 #: ../fish/guestfish-actions.pod:2207
21332 #, no-wrap
21333 msgid ""
21334 " kill-subprocess\n"
21335 "\n"
21336 msgstr ""
21337
21338 # type: =head2
21339 #: ../fish/guestfish-actions.pod:2211
21340 msgid "launch"
21341 msgstr ""
21342
21343 # type: =head2
21344 #: ../fish/guestfish-actions.pod:2213
21345 msgid "run"
21346 msgstr ""
21347
21348 # type: verbatim
21349 #: ../fish/guestfish-actions.pod:2215
21350 #, no-wrap
21351 msgid ""
21352 " launch\n"
21353 "\n"
21354 msgstr ""
21355
21356 # type: =head2
21357 #: ../fish/guestfish-actions.pod:2223
21358 msgid "lchown"
21359 msgstr ""
21360
21361 # type: verbatim
21362 #: ../fish/guestfish-actions.pod:2225
21363 #, no-wrap
21364 msgid ""
21365 " lchown owner group path\n"
21366 "\n"
21367 msgstr ""
21368
21369 # type: textblock
21370 #: ../fish/guestfish-actions.pod:2227
21371 msgid ""
21372 "Change the file owner to C<owner> and group to C<group>.  This is like "
21373 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
21374 "the target."
21375 msgstr ""
21376
21377 # type: =head2
21378 #: ../fish/guestfish-actions.pod:2235
21379 msgid "lgetxattrs"
21380 msgstr ""
21381
21382 # type: verbatim
21383 #: ../fish/guestfish-actions.pod:2237
21384 #, no-wrap
21385 msgid ""
21386 " lgetxattrs path\n"
21387 "\n"
21388 msgstr ""
21389
21390 # type: textblock
21391 #: ../fish/guestfish-actions.pod:2239
21392 msgid ""
21393 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
21394 "it returns the extended attributes of the link itself."
21395 msgstr ""
21396
21397 # type: =head2
21398 #: ../fish/guestfish-actions.pod:2243
21399 msgid "list-devices"
21400 msgstr ""
21401
21402 # type: verbatim
21403 #: ../fish/guestfish-actions.pod:2245
21404 #, no-wrap
21405 msgid ""
21406 " list-devices\n"
21407 "\n"
21408 msgstr ""
21409
21410 # type: =head2
21411 #: ../fish/guestfish-actions.pod:2253
21412 msgid "list-filesystems"
21413 msgstr ""
21414
21415 # type: verbatim
21416 #: ../fish/guestfish-actions.pod:2255
21417 #, no-wrap
21418 msgid ""
21419 " list-filesystems\n"
21420 "\n"
21421 msgstr ""
21422
21423 # type: textblock
21424 #: ../fish/guestfish-actions.pod:2274
21425 msgid ""
21426 "This command runs other libguestfs commands, which might include L</mount> "
21427 "and L</umount>, and therefore you should use this soon after launch and only "
21428 "when nothing is mounted."
21429 msgstr ""
21430
21431 # type: textblock
21432 #: ../fish/guestfish-actions.pod:2278
21433 msgid ""
21434 "Not all of the filesystems returned will be mountable.  In particular, swap "
21435 "partitions are returned in the list.  Also this command does not check that "
21436 "each filesystem found is valid and mountable, and some filesystems might be "
21437 "mountable but require special options.  Filesystems may not all belong to a "
21438 "single logical operating system (use L</inspect-os> to look for OSes)."
21439 msgstr ""
21440
21441 # type: =head2
21442 #: ../fish/guestfish-actions.pod:2286
21443 msgid "list-partitions"
21444 msgstr ""
21445
21446 # type: verbatim
21447 #: ../fish/guestfish-actions.pod:2288
21448 #, no-wrap
21449 msgid ""
21450 " list-partitions\n"
21451 "\n"
21452 msgstr ""
21453
21454 # type: textblock
21455 #: ../fish/guestfish-actions.pod:2294
21456 msgid ""
21457 "This does not return logical volumes.  For that you will need to call "
21458 "L</lvs>."
21459 msgstr ""
21460
21461 # type: =head2
21462 #: ../fish/guestfish-actions.pod:2299
21463 msgid "ll"
21464 msgstr ""
21465
21466 # type: verbatim
21467 #: ../fish/guestfish-actions.pod:2301
21468 #, no-wrap
21469 msgid ""
21470 " ll directory\n"
21471 "\n"
21472 msgstr ""
21473
21474 # type: =head2
21475 #: ../fish/guestfish-actions.pod:2309
21476 msgid "ln"
21477 msgstr ""
21478
21479 # type: verbatim
21480 #: ../fish/guestfish-actions.pod:2311
21481 #, no-wrap
21482 msgid ""
21483 " ln target linkname\n"
21484 "\n"
21485 msgstr ""
21486
21487 # type: =head2
21488 #: ../fish/guestfish-actions.pod:2315
21489 msgid "ln-f"
21490 msgstr ""
21491
21492 # type: verbatim
21493 #: ../fish/guestfish-actions.pod:2317
21494 #, no-wrap
21495 msgid ""
21496 " ln-f target linkname\n"
21497 "\n"
21498 msgstr ""
21499
21500 # type: =head2
21501 #: ../fish/guestfish-actions.pod:2322
21502 msgid "ln-s"
21503 msgstr ""
21504
21505 # type: verbatim
21506 #: ../fish/guestfish-actions.pod:2324
21507 #, no-wrap
21508 msgid ""
21509 " ln-s target linkname\n"
21510 "\n"
21511 msgstr ""
21512
21513 # type: =head2
21514 #: ../fish/guestfish-actions.pod:2328
21515 msgid "ln-sf"
21516 msgstr ""
21517
21518 # type: verbatim
21519 #: ../fish/guestfish-actions.pod:2330
21520 #, no-wrap
21521 msgid ""
21522 " ln-sf target linkname\n"
21523 "\n"
21524 msgstr ""
21525
21526 # type: =head2
21527 #: ../fish/guestfish-actions.pod:2335
21528 msgid "lremovexattr"
21529 msgstr ""
21530
21531 # type: verbatim
21532 #: ../fish/guestfish-actions.pod:2337
21533 #, no-wrap
21534 msgid ""
21535 " lremovexattr xattr path\n"
21536 "\n"
21537 msgstr ""
21538
21539 # type: textblock
21540 #: ../fish/guestfish-actions.pod:2339
21541 msgid ""
21542 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
21543 "it removes an extended attribute of the link itself."
21544 msgstr ""
21545
21546 # type: =head2
21547 #: ../fish/guestfish-actions.pod:2343
21548 msgid "ls"
21549 msgstr ""
21550
21551 # type: verbatim
21552 #: ../fish/guestfish-actions.pod:2345
21553 #, no-wrap
21554 msgid ""
21555 " ls directory\n"
21556 "\n"
21557 msgstr ""
21558
21559 # type: textblock
21560 #: ../fish/guestfish-actions.pod:2351
21561 msgid ""
21562 "This command is mostly useful for interactive sessions.  Programs should "
21563 "probably use L</readdir> instead."
21564 msgstr ""
21565
21566 # type: =head2
21567 #: ../fish/guestfish-actions.pod:2354
21568 msgid "lsetxattr"
21569 msgstr ""
21570
21571 # type: verbatim
21572 #: ../fish/guestfish-actions.pod:2356
21573 #, no-wrap
21574 msgid ""
21575 " lsetxattr xattr val vallen path\n"
21576 "\n"
21577 msgstr ""
21578
21579 # type: textblock
21580 #: ../fish/guestfish-actions.pod:2358
21581 msgid ""
21582 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
21583 "sets an extended attribute of the link itself."
21584 msgstr ""
21585
21586 # type: =head2
21587 #: ../fish/guestfish-actions.pod:2362
21588 msgid "lstat"
21589 msgstr ""
21590
21591 # type: verbatim
21592 #: ../fish/guestfish-actions.pod:2364
21593 #, no-wrap
21594 msgid ""
21595 " lstat path\n"
21596 "\n"
21597 msgstr ""
21598
21599 # type: textblock
21600 #: ../fish/guestfish-actions.pod:2368
21601 msgid ""
21602 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
21603 "the link is stat-ed, not the file it refers to."
21604 msgstr ""
21605
21606 # type: =head2
21607 #: ../fish/guestfish-actions.pod:2374
21608 msgid "lstatlist"
21609 msgstr ""
21610
21611 # type: verbatim
21612 #: ../fish/guestfish-actions.pod:2376
21613 #, no-wrap
21614 msgid ""
21615 " lstatlist path 'names ...'\n"
21616 "\n"
21617 msgstr ""
21618
21619 # type: textblock
21620 #: ../fish/guestfish-actions.pod:2378
21621 msgid ""
21622 "This call allows you to perform the L</lstat> operation on multiple files, "
21623 "where all files are in the directory C<path>.  C<names> is the list of files "
21624 "from this directory."
21625 msgstr ""
21626
21627 # type: textblock
21628 #: ../fish/guestfish-actions.pod:2387
21629 msgid ""
21630 "This call is intended for programs that want to efficiently list a directory "
21631 "contents without making many round-trips.  See also L</lxattrlist> for a "
21632 "similarly efficient call for getting extended attributes.  Very long "
21633 "directory listings might cause the protocol message size to be exceeded, "
21634 "causing this call to fail.  The caller must split up such requests into "
21635 "smaller groups of names."
21636 msgstr ""
21637
21638 # type: =head2
21639 #: ../fish/guestfish-actions.pod:2395
21640 msgid "luks-add-key"
21641 msgstr ""
21642
21643 # type: verbatim
21644 #: ../fish/guestfish-actions.pod:2397
21645 #, no-wrap
21646 msgid ""
21647 " luks-add-key device keyslot\n"
21648 "\n"
21649 msgstr ""
21650
21651 # type: textblock
21652 #: ../fish/guestfish-actions.pod:2404
21653 msgid ""
21654 "Note that if C<keyslot> already contains a key, then this command will "
21655 "fail.  You have to use L</luks-kill-slot> first to remove that key."
21656 msgstr ""
21657
21658 # type: textblock
21659 #: ../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
21660 msgid ""
21661 "This command has one or more key or passphrase parameters.  Guestfish will "
21662 "prompt for these separately."
21663 msgstr ""
21664
21665 # type: =head2
21666 #: ../fish/guestfish-actions.pod:2411
21667 msgid "luks-close"
21668 msgstr ""
21669
21670 # type: verbatim
21671 #: ../fish/guestfish-actions.pod:2413
21672 #, no-wrap
21673 msgid ""
21674 " luks-close device\n"
21675 "\n"
21676 msgstr ""
21677
21678 # type: textblock
21679 #: ../fish/guestfish-actions.pod:2415
21680 msgid ""
21681 "This closes a LUKS device that was created earlier by L</luks-open> or "
21682 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
21683 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
21684 "underlying block device."
21685 msgstr ""
21686
21687 # type: =head2
21688 #: ../fish/guestfish-actions.pod:2421
21689 msgid "luks-format"
21690 msgstr ""
21691
21692 # type: verbatim
21693 #: ../fish/guestfish-actions.pod:2423
21694 #, no-wrap
21695 msgid ""
21696 " luks-format device keyslot\n"
21697 "\n"
21698 msgstr ""
21699
21700 # type: =head2
21701 #: ../fish/guestfish-actions.pod:2436
21702 msgid "luks-format-cipher"
21703 msgstr ""
21704
21705 # type: verbatim
21706 #: ../fish/guestfish-actions.pod:2438
21707 #, no-wrap
21708 msgid ""
21709 " luks-format-cipher device keyslot cipher\n"
21710 "\n"
21711 msgstr ""
21712
21713 # type: textblock
21714 #: ../fish/guestfish-actions.pod:2440
21715 msgid ""
21716 "This command is the same as L</luks-format> but it also allows you to set "
21717 "the C<cipher> used."
21718 msgstr ""
21719
21720 # type: =head2
21721 #: ../fish/guestfish-actions.pod:2449
21722 msgid "luks-kill-slot"
21723 msgstr ""
21724
21725 # type: verbatim
21726 #: ../fish/guestfish-actions.pod:2451
21727 #, no-wrap
21728 msgid ""
21729 " luks-kill-slot device keyslot\n"
21730 "\n"
21731 msgstr ""
21732
21733 # type: =head2
21734 #: ../fish/guestfish-actions.pod:2460
21735 msgid "luks-open"
21736 msgstr ""
21737
21738 # type: verbatim
21739 #: ../fish/guestfish-actions.pod:2462
21740 #, no-wrap
21741 msgid ""
21742 " luks-open device mapname\n"
21743 "\n"
21744 msgstr ""
21745
21746 # type: textblock
21747 #: ../fish/guestfish-actions.pod:2476
21748 msgid ""
21749 "If this block device contains LVM volume groups, then calling L</vgscan> "
21750 "followed by L</vg-activate-all> will make them visible."
21751 msgstr ""
21752
21753 # type: =head2
21754 #: ../fish/guestfish-actions.pod:2483
21755 msgid "luks-open-ro"
21756 msgstr ""
21757
21758 # type: verbatim
21759 #: ../fish/guestfish-actions.pod:2485
21760 #, no-wrap
21761 msgid ""
21762 " luks-open-ro device mapname\n"
21763 "\n"
21764 msgstr ""
21765
21766 # type: textblock
21767 #: ../fish/guestfish-actions.pod:2487
21768 msgid ""
21769 "This is the same as L</luks-open> except that a read-only mapping is "
21770 "created."
21771 msgstr ""
21772
21773 # type: =head2
21774 #: ../fish/guestfish-actions.pod:2493
21775 msgid "lvcreate"
21776 msgstr ""
21777
21778 # type: verbatim
21779 #: ../fish/guestfish-actions.pod:2495
21780 #, no-wrap
21781 msgid ""
21782 " lvcreate logvol volgroup mbytes\n"
21783 "\n"
21784 msgstr ""
21785
21786 # type: =head2
21787 #: ../fish/guestfish-actions.pod:2500
21788 msgid "lvm-canonical-lv-name"
21789 msgstr ""
21790
21791 # type: verbatim
21792 #: ../fish/guestfish-actions.pod:2502
21793 #, no-wrap
21794 msgid ""
21795 " lvm-canonical-lv-name lvname\n"
21796 "\n"
21797 msgstr ""
21798
21799 # type: textblock
21800 #: ../fish/guestfish-actions.pod:2511
21801 msgid "See also L</is-lv>."
21802 msgstr ""
21803
21804 # type: =head2
21805 #: ../fish/guestfish-actions.pod:2513
21806 msgid "lvm-clear-filter"
21807 msgstr ""
21808
21809 # type: verbatim
21810 #: ../fish/guestfish-actions.pod:2515
21811 #, no-wrap
21812 msgid ""
21813 " lvm-clear-filter\n"
21814 "\n"
21815 msgstr ""
21816
21817 # type: textblock
21818 #: ../fish/guestfish-actions.pod:2517
21819 msgid ""
21820 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
21821 "block device."
21822 msgstr ""
21823
21824 # type: =head2
21825 #: ../fish/guestfish-actions.pod:2523
21826 msgid "lvm-remove-all"
21827 msgstr ""
21828
21829 # type: verbatim
21830 #: ../fish/guestfish-actions.pod:2525
21831 #, no-wrap
21832 msgid ""
21833 " lvm-remove-all\n"
21834 "\n"
21835 msgstr ""
21836
21837 # type: =head2
21838 #: ../fish/guestfish-actions.pod:2533
21839 msgid "lvm-set-filter"
21840 msgstr ""
21841
21842 # type: verbatim
21843 #: ../fish/guestfish-actions.pod:2535
21844 #, no-wrap
21845 msgid ""
21846 " lvm-set-filter 'devices ...'\n"
21847 "\n"
21848 msgstr ""
21849
21850 # type: =head2
21851 #: ../fish/guestfish-actions.pod:2560
21852 msgid "lvremove"
21853 msgstr ""
21854
21855 # type: verbatim
21856 #: ../fish/guestfish-actions.pod:2562
21857 #, no-wrap
21858 msgid ""
21859 " lvremove device\n"
21860 "\n"
21861 msgstr ""
21862
21863 # type: =head2
21864 #: ../fish/guestfish-actions.pod:2570
21865 msgid "lvrename"
21866 msgstr ""
21867
21868 # type: verbatim
21869 #: ../fish/guestfish-actions.pod:2572
21870 #, no-wrap
21871 msgid ""
21872 " lvrename logvol newlogvol\n"
21873 "\n"
21874 msgstr ""
21875
21876 # type: =head2
21877 #: ../fish/guestfish-actions.pod:2576
21878 msgid "lvresize"
21879 msgstr ""
21880
21881 # type: verbatim
21882 #: ../fish/guestfish-actions.pod:2578
21883 #, no-wrap
21884 msgid ""
21885 " lvresize device mbytes\n"
21886 "\n"
21887 msgstr ""
21888
21889 # type: =head2
21890 #: ../fish/guestfish-actions.pod:2584
21891 msgid "lvresize-free"
21892 msgstr ""
21893
21894 # type: verbatim
21895 #: ../fish/guestfish-actions.pod:2586
21896 #, no-wrap
21897 msgid ""
21898 " lvresize-free lv percent\n"
21899 "\n"
21900 msgstr ""
21901
21902 # type: =head2
21903 #: ../fish/guestfish-actions.pod:2594
21904 msgid "lvs"
21905 msgstr ""
21906
21907 # type: verbatim
21908 #: ../fish/guestfish-actions.pod:2596
21909 #, no-wrap
21910 msgid ""
21911 " lvs\n"
21912 "\n"
21913 msgstr ""
21914
21915 # type: textblock
21916 #: ../fish/guestfish-actions.pod:2604
21917 msgid "See also L</lvs-full>, L</list-filesystems>."
21918 msgstr ""
21919
21920 # type: =head2
21921 #: ../fish/guestfish-actions.pod:2606
21922 msgid "lvs-full"
21923 msgstr ""
21924
21925 # type: verbatim
21926 #: ../fish/guestfish-actions.pod:2608
21927 #, no-wrap
21928 msgid ""
21929 " lvs-full\n"
21930 "\n"
21931 msgstr ""
21932
21933 # type: =head2
21934 #: ../fish/guestfish-actions.pod:2613
21935 msgid "lvuuid"
21936 msgstr ""
21937
21938 # type: verbatim
21939 #: ../fish/guestfish-actions.pod:2615
21940 #, no-wrap
21941 msgid ""
21942 " lvuuid device\n"
21943 "\n"
21944 msgstr ""
21945
21946 # type: =head2
21947 #: ../fish/guestfish-actions.pod:2619
21948 msgid "lxattrlist"
21949 msgstr ""
21950
21951 # type: verbatim
21952 #: ../fish/guestfish-actions.pod:2621
21953 #, no-wrap
21954 msgid ""
21955 " lxattrlist path 'names ...'\n"
21956 "\n"
21957 msgstr ""
21958
21959 # type: textblock
21960 #: ../fish/guestfish-actions.pod:2637
21961 msgid ""
21962 "This call is intended for programs that want to efficiently list a directory "
21963 "contents without making many round-trips.  See also L</lstatlist> for a "
21964 "similarly efficient call for getting standard stats.  Very long directory "
21965 "listings might cause the protocol message size to be exceeded, causing this "
21966 "call to fail.  The caller must split up such requests into smaller groups of "
21967 "names."
21968 msgstr ""
21969
21970 # type: =head2
21971 #: ../fish/guestfish-actions.pod:2645
21972 msgid "mkdir"
21973 msgstr ""
21974
21975 # type: verbatim
21976 #: ../fish/guestfish-actions.pod:2647
21977 #, no-wrap
21978 msgid ""
21979 " mkdir path\n"
21980 "\n"
21981 msgstr ""
21982
21983 # type: =head2
21984 #: ../fish/guestfish-actions.pod:2651
21985 msgid "mkdir-mode"
21986 msgstr ""
21987
21988 # type: verbatim
21989 #: ../fish/guestfish-actions.pod:2653
21990 #, no-wrap
21991 msgid ""
21992 " mkdir-mode path mode\n"
21993 "\n"
21994 msgstr ""
21995
21996 # type: textblock
21997 #: ../fish/guestfish-actions.pod:2662
21998 msgid "See also L</mkdir>, L</umask>"
21999 msgstr ""
22000
22001 # type: =head2
22002 #: ../fish/guestfish-actions.pod:2664
22003 msgid "mkdir-p"
22004 msgstr ""
22005
22006 # type: verbatim
22007 #: ../fish/guestfish-actions.pod:2666
22008 #, no-wrap
22009 msgid ""
22010 " mkdir-p path\n"
22011 "\n"
22012 msgstr ""
22013
22014 # type: =head2
22015 #: ../fish/guestfish-actions.pod:2671
22016 msgid "mkdtemp"
22017 msgstr ""
22018
22019 # type: verbatim
22020 #: ../fish/guestfish-actions.pod:2673
22021 #, no-wrap
22022 msgid ""
22023 " mkdtemp template\n"
22024 "\n"
22025 msgstr ""
22026
22027 # type: =head2
22028 #: ../fish/guestfish-actions.pod:2694
22029 msgid "mke2fs-J"
22030 msgstr ""
22031
22032 # type: verbatim
22033 #: ../fish/guestfish-actions.pod:2696
22034 #, no-wrap
22035 msgid ""
22036 " mke2fs-J fstype blocksize device journal\n"
22037 "\n"
22038 msgstr ""
22039
22040 # type: textblock
22041 #: ../fish/guestfish-actions.pod:2704
22042 msgid "See also L</mke2journal>."
22043 msgstr ""
22044
22045 # type: =head2
22046 #: ../fish/guestfish-actions.pod:2706
22047 msgid "mke2fs-JL"
22048 msgstr ""
22049
22050 # type: verbatim
22051 #: ../fish/guestfish-actions.pod:2708
22052 #, no-wrap
22053 msgid ""
22054 " mke2fs-JL fstype blocksize device label\n"
22055 "\n"
22056 msgstr ""
22057
22058 # type: textblock
22059 #: ../fish/guestfish-actions.pod:2713
22060 msgid "See also L</mke2journal-L>."
22061 msgstr ""
22062
22063 # type: =head2
22064 #: ../fish/guestfish-actions.pod:2715
22065 msgid "mke2fs-JU"
22066 msgstr ""
22067
22068 # type: verbatim
22069 #: ../fish/guestfish-actions.pod:2717
22070 #, no-wrap
22071 msgid ""
22072 " mke2fs-JU fstype blocksize device uuid\n"
22073 "\n"
22074 msgstr ""
22075
22076 # type: textblock
22077 #: ../fish/guestfish-actions.pod:2722
22078 msgid "See also L</mke2journal-U>."
22079 msgstr ""
22080
22081 # type: =head2
22082 #: ../fish/guestfish-actions.pod:2724
22083 msgid "mke2journal"
22084 msgstr ""
22085
22086 # type: verbatim
22087 #: ../fish/guestfish-actions.pod:2726
22088 #, no-wrap
22089 msgid ""
22090 " mke2journal blocksize device\n"
22091 "\n"
22092 msgstr ""
22093
22094 # type: =head2
22095 #: ../fish/guestfish-actions.pod:2733
22096 msgid "mke2journal-L"
22097 msgstr ""
22098
22099 # type: verbatim
22100 #: ../fish/guestfish-actions.pod:2735
22101 #, no-wrap
22102 msgid ""
22103 " mke2journal-L blocksize label device\n"
22104 "\n"
22105 msgstr ""
22106
22107 # type: =head2
22108 #: ../fish/guestfish-actions.pod:2739
22109 msgid "mke2journal-U"
22110 msgstr ""
22111
22112 # type: verbatim
22113 #: ../fish/guestfish-actions.pod:2741
22114 #, no-wrap
22115 msgid ""
22116 " mke2journal-U blocksize uuid device\n"
22117 "\n"
22118 msgstr ""
22119
22120 # type: =head2
22121 #: ../fish/guestfish-actions.pod:2745
22122 msgid "mkfifo"
22123 msgstr ""
22124
22125 # type: verbatim
22126 #: ../fish/guestfish-actions.pod:2747
22127 #, no-wrap
22128 msgid ""
22129 " mkfifo mode path\n"
22130 "\n"
22131 msgstr ""
22132
22133 # type: textblock
22134 #: ../fish/guestfish-actions.pod:2749
22135 msgid ""
22136 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22137 "is just a convenient wrapper around L</mknod>."
22138 msgstr ""
22139
22140 # type: =head2
22141 #: ../fish/guestfish-actions.pod:2755
22142 msgid "mkfs"
22143 msgstr ""
22144
22145 # type: verbatim
22146 #: ../fish/guestfish-actions.pod:2757
22147 #, no-wrap
22148 msgid ""
22149 " mkfs fstype device\n"
22150 "\n"
22151 msgstr ""
22152
22153 # type: =head2
22154 #: ../fish/guestfish-actions.pod:2763
22155 msgid "mkfs-b"
22156 msgstr ""
22157
22158 # type: verbatim
22159 #: ../fish/guestfish-actions.pod:2765
22160 #, no-wrap
22161 msgid ""
22162 " mkfs-b fstype blocksize device\n"
22163 "\n"
22164 msgstr ""
22165
22166 # type: textblock
22167 #: ../fish/guestfish-actions.pod:2767
22168 msgid ""
22169 "This call is similar to L</mkfs>, but it allows you to control the block "
22170 "size of the resulting filesystem.  Supported block sizes depend on the "
22171 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22172 msgstr ""
22173
22174 # type: =head2
22175 #: ../fish/guestfish-actions.pod:2782
22176 msgid "mkfs-opts"
22177 msgstr ""
22178
22179 # type: verbatim
22180 #: ../fish/guestfish-actions.pod:2784
22181 #, no-wrap
22182 msgid ""
22183 " mkfs-opts fstype device [blocksize:..]\n"
22184 "\n"
22185 msgstr ""
22186
22187 # type: =head2
22188 #: ../fish/guestfish-actions.pod:2806
22189 msgid "mkmountpoint"
22190 msgstr ""
22191
22192 # type: verbatim
22193 #: ../fish/guestfish-actions.pod:2808
22194 #, no-wrap
22195 msgid ""
22196 " mkmountpoint exemptpath\n"
22197 "\n"
22198 msgstr ""
22199
22200 # type: textblock
22201 #: ../fish/guestfish-actions.pod:2810
22202 msgid ""
22203 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22204 "to create extra mountpoints before mounting the first filesystem."
22205 msgstr ""
22206
22207 # type: textblock
22208 #: ../fish/guestfish-actions.pod:2834
22209 msgid ""
22210 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22211 "unexpected errors if you try to mix these calls.  It is safest to manually "
22212 "unmount filesystems and remove mountpoints after use."
22213 msgstr ""
22214
22215 # type: textblock
22216 #: ../fish/guestfish-actions.pod:2838
22217 msgid ""
22218 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22219 "for this to work for manual mountpoints, you must ensure that the innermost "
22220 "mountpoints have the longest pathnames, as in the example code above."
22221 msgstr ""
22222
22223 # type: textblock
22224 #: ../fish/guestfish-actions.pod:2845
22225 msgid ""
22226 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22227 "that L</umount-all> is called when the handle is closed which can also "
22228 "trigger these issues."
22229 msgstr ""
22230
22231 # type: =head2
22232 #: ../fish/guestfish-actions.pod:2849
22233 msgid "mknod"
22234 msgstr ""
22235
22236 # type: verbatim
22237 #: ../fish/guestfish-actions.pod:2851
22238 #, no-wrap
22239 msgid ""
22240 " mknod mode devmajor devminor path\n"
22241 "\n"
22242 msgstr ""
22243
22244 # type: textblock
22245 #: ../fish/guestfish-actions.pod:2861
22246 msgid ""
22247 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22248 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22249 "regular file).  These constants are available in the standard Linux header "
22250 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22251 "wrappers around this command which bitwise OR in the appropriate constant "
22252 "for you."
22253 msgstr ""
22254
22255 # type: =head2
22256 #: ../fish/guestfish-actions.pod:2871
22257 msgid "mknod-b"
22258 msgstr ""
22259
22260 # type: verbatim
22261 #: ../fish/guestfish-actions.pod:2873
22262 #, no-wrap
22263 msgid ""
22264 " mknod-b mode devmajor devminor path\n"
22265 "\n"
22266 msgstr ""
22267
22268 # type: textblock
22269 #: ../fish/guestfish-actions.pod:2875
22270 msgid ""
22271 "This call creates a block device node called C<path> with mode C<mode> and "
22272 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22273 "wrapper around L</mknod>."
22274 msgstr ""
22275
22276 # type: =head2
22277 #: ../fish/guestfish-actions.pod:2881
22278 msgid "mknod-c"
22279 msgstr ""
22280
22281 # type: verbatim
22282 #: ../fish/guestfish-actions.pod:2883
22283 #, no-wrap
22284 msgid ""
22285 " mknod-c mode devmajor devminor path\n"
22286 "\n"
22287 msgstr ""
22288
22289 # type: textblock
22290 #: ../fish/guestfish-actions.pod:2885
22291 msgid ""
22292 "This call creates a char device node called C<path> with mode C<mode> and "
22293 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
22294 "wrapper around L</mknod>."
22295 msgstr ""
22296
22297 # type: =head2
22298 #: ../fish/guestfish-actions.pod:2891
22299 msgid "mkswap"
22300 msgstr ""
22301
22302 # type: verbatim
22303 #: ../fish/guestfish-actions.pod:2893
22304 #, no-wrap
22305 msgid ""
22306 " mkswap device\n"
22307 "\n"
22308 msgstr ""
22309
22310 # type: =head2
22311 #: ../fish/guestfish-actions.pod:2897
22312 msgid "mkswap-L"
22313 msgstr ""
22314
22315 # type: verbatim
22316 #: ../fish/guestfish-actions.pod:2899
22317 #, no-wrap
22318 msgid ""
22319 " mkswap-L label device\n"
22320 "\n"
22321 msgstr ""
22322
22323 # type: =head2
22324 #: ../fish/guestfish-actions.pod:2907
22325 msgid "mkswap-U"
22326 msgstr ""
22327
22328 # type: verbatim
22329 #: ../fish/guestfish-actions.pod:2909
22330 #, no-wrap
22331 msgid ""
22332 " mkswap-U uuid device\n"
22333 "\n"
22334 msgstr ""
22335
22336 # type: =head2
22337 #: ../fish/guestfish-actions.pod:2913
22338 msgid "mkswap-file"
22339 msgstr ""
22340
22341 # type: verbatim
22342 #: ../fish/guestfish-actions.pod:2915
22343 #, no-wrap
22344 msgid ""
22345 " mkswap-file path\n"
22346 "\n"
22347 msgstr ""
22348
22349 # type: textblock
22350 #: ../fish/guestfish-actions.pod:2919
22351 msgid ""
22352 "This command just writes a swap file signature to an existing file.  To "
22353 "create the file itself, use something like L</fallocate>."
22354 msgstr ""
22355
22356 # type: =head2
22357 #: ../fish/guestfish-actions.pod:2922
22358 msgid "modprobe"
22359 msgstr ""
22360
22361 # type: verbatim
22362 #: ../fish/guestfish-actions.pod:2924
22363 #, no-wrap
22364 msgid ""
22365 " modprobe modulename\n"
22366 "\n"
22367 msgstr ""
22368
22369 # type: =head2
22370 #: ../fish/guestfish-actions.pod:2931
22371 msgid "mount"
22372 msgstr ""
22373
22374 # type: verbatim
22375 #: ../fish/guestfish-actions.pod:2933
22376 #, no-wrap
22377 msgid ""
22378 " mount device mountpoint\n"
22379 "\n"
22380 msgstr ""
22381
22382 # type: textblock
22383 #: ../fish/guestfish-actions.pod:2949
22384 msgid ""
22385 "B<Important note:> When you use this call, the filesystem options C<sync> "
22386 "and C<noatime> are set implicitly.  This was originally done because we "
22387 "thought it would improve reliability, but it turns out that I<-o sync> has a "
22388 "very large negative performance impact and negligible effect on "
22389 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
22390 "code that needs performance, and instead use L</mount-options> (use an empty "
22391 "string for the first parameter if you don't want any options)."
22392 msgstr ""
22393
22394 # type: =head2
22395 #: ../fish/guestfish-actions.pod:2959
22396 msgid "mount-loop"
22397 msgstr ""
22398
22399 # type: verbatim
22400 #: ../fish/guestfish-actions.pod:2961
22401 #, no-wrap
22402 msgid ""
22403 " mount-loop file mountpoint\n"
22404 "\n"
22405 msgstr ""
22406
22407 # type: =head2
22408 #: ../fish/guestfish-actions.pod:2967
22409 msgid "mount-options"
22410 msgstr ""
22411
22412 # type: verbatim
22413 #: ../fish/guestfish-actions.pod:2969
22414 #, no-wrap
22415 msgid ""
22416 " mount-options options device mountpoint\n"
22417 "\n"
22418 msgstr ""
22419
22420 # type: textblock
22421 #: ../fish/guestfish-actions.pod:2971
22422 msgid ""
22423 "This is the same as the L</mount> command, but it allows you to set the "
22424 "mount options as for the L<mount(8)> I<-o> flag."
22425 msgstr ""
22426
22427 # type: =head2
22428 #: ../fish/guestfish-actions.pod:2979
22429 msgid "mount-ro"
22430 msgstr ""
22431
22432 # type: verbatim
22433 #: ../fish/guestfish-actions.pod:2981
22434 #, no-wrap
22435 msgid ""
22436 " mount-ro device mountpoint\n"
22437 "\n"
22438 msgstr ""
22439
22440 # type: textblock
22441 #: ../fish/guestfish-actions.pod:2983
22442 msgid ""
22443 "This is the same as the L</mount> command, but it mounts the filesystem with "
22444 "the read-only (I<-o ro>) flag."
22445 msgstr ""
22446
22447 # type: =head2
22448 #: ../fish/guestfish-actions.pod:2986
22449 msgid "mount-vfs"
22450 msgstr ""
22451
22452 # type: verbatim
22453 #: ../fish/guestfish-actions.pod:2988
22454 #, no-wrap
22455 msgid ""
22456 " mount-vfs options vfstype device mountpoint\n"
22457 "\n"
22458 msgstr ""
22459
22460 # type: textblock
22461 #: ../fish/guestfish-actions.pod:2990
22462 msgid ""
22463 "This is the same as the L</mount> command, but it allows you to set both the "
22464 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
22465 msgstr ""
22466
22467 # type: =head2
22468 #: ../fish/guestfish-actions.pod:2994
22469 msgid "mountpoints"
22470 msgstr ""
22471
22472 # type: verbatim
22473 #: ../fish/guestfish-actions.pod:2996
22474 #, no-wrap
22475 msgid ""
22476 " mountpoints\n"
22477 "\n"
22478 msgstr ""
22479
22480 # type: textblock
22481 #: ../fish/guestfish-actions.pod:2998
22482 msgid ""
22483 "This call is similar to L</mounts>.  That call returns a list of devices.  "
22484 "This one returns a hash table (map) of device name to directory where the "
22485 "device is mounted."
22486 msgstr ""
22487
22488 # type: =head2
22489 #: ../fish/guestfish-actions.pod:3002
22490 msgid "mounts"
22491 msgstr ""
22492
22493 # type: verbatim
22494 #: ../fish/guestfish-actions.pod:3004
22495 #, no-wrap
22496 msgid ""
22497 " mounts\n"
22498 "\n"
22499 msgstr ""
22500
22501 # type: textblock
22502 #: ../fish/guestfish-actions.pod:3011
22503 msgid "See also: L</mountpoints>"
22504 msgstr ""
22505
22506 # type: =head2
22507 #: ../fish/guestfish-actions.pod:3013
22508 msgid "mv"
22509 msgstr ""
22510
22511 # type: verbatim
22512 #: ../fish/guestfish-actions.pod:3015
22513 #, no-wrap
22514 msgid ""
22515 " mv src dest\n"
22516 "\n"
22517 msgstr ""
22518
22519 # type: =head2
22520 #: ../fish/guestfish-actions.pod:3020
22521 msgid "ntfs-3g-probe"
22522 msgstr ""
22523
22524 # type: verbatim
22525 #: ../fish/guestfish-actions.pod:3022
22526 #, no-wrap
22527 msgid ""
22528 " ntfs-3g-probe true|false device\n"
22529 "\n"
22530 msgstr ""
22531
22532 # type: =head2
22533 #: ../fish/guestfish-actions.pod:3036
22534 msgid "ntfsresize"
22535 msgstr ""
22536
22537 # type: verbatim
22538 #: ../fish/guestfish-actions.pod:3038
22539 #, no-wrap
22540 msgid ""
22541 " ntfsresize device\n"
22542 "\n"
22543 msgstr ""
22544
22545 # type: =head2
22546 #: ../fish/guestfish-actions.pod:3044
22547 msgid "ntfsresize-size"
22548 msgstr ""
22549
22550 # type: verbatim
22551 #: ../fish/guestfish-actions.pod:3046
22552 #, no-wrap
22553 msgid ""
22554 " ntfsresize-size device size\n"
22555 "\n"
22556 msgstr ""
22557
22558 # type: textblock
22559 #: ../fish/guestfish-actions.pod:3048
22560 msgid ""
22561 "This command is the same as L</ntfsresize> except that it allows you to "
22562 "specify the new size (in bytes) explicitly."
22563 msgstr ""
22564
22565 # type: =head2
22566 #: ../fish/guestfish-actions.pod:3051
22567 msgid "part-add"
22568 msgstr ""
22569
22570 # type: verbatim
22571 #: ../fish/guestfish-actions.pod:3053
22572 #, no-wrap
22573 msgid ""
22574 " part-add device prlogex startsect endsect\n"
22575 "\n"
22576 msgstr ""
22577
22578 # type: textblock
22579 #: ../fish/guestfish-actions.pod:3055
22580 msgid ""
22581 "This command adds a partition to C<device>.  If there is no partition table "
22582 "on the device, call L</part-init> first."
22583 msgstr ""
22584
22585 # type: textblock
22586 #: ../fish/guestfish-actions.pod:3067
22587 msgid ""
22588 "Creating a partition which covers the whole disk is not so easy.  Use "
22589 "L</part-disk> to do that."
22590 msgstr ""
22591
22592 # type: =head2
22593 #: ../fish/guestfish-actions.pod:3070
22594 msgid "part-del"
22595 msgstr ""
22596
22597 # type: verbatim
22598 #: ../fish/guestfish-actions.pod:3072
22599 #, no-wrap
22600 msgid ""
22601 " part-del device partnum\n"
22602 "\n"
22603 msgstr ""
22604
22605 # type: =head2
22606 #: ../fish/guestfish-actions.pod:3080
22607 msgid "part-disk"
22608 msgstr ""
22609
22610 # type: verbatim
22611 #: ../fish/guestfish-actions.pod:3082
22612 #, no-wrap
22613 msgid ""
22614 " part-disk device parttype\n"
22615 "\n"
22616 msgstr ""
22617
22618 # type: textblock
22619 #: ../fish/guestfish-actions.pod:3084
22620 msgid ""
22621 "This command is simply a combination of L</part-init> followed by "
22622 "L</part-add> to create a single primary partition covering the whole disk."
22623 msgstr ""
22624
22625 # type: textblock
22626 #: ../fish/guestfish-actions.pod:3088
22627 msgid ""
22628 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
22629 "possible values are described in L</part-init>."
22630 msgstr ""
22631
22632 # type: =head2
22633 #: ../fish/guestfish-actions.pod:3094
22634 msgid "part-get-bootable"
22635 msgstr ""
22636
22637 # type: verbatim
22638 #: ../fish/guestfish-actions.pod:3096
22639 #, no-wrap
22640 msgid ""
22641 " part-get-bootable device partnum\n"
22642 "\n"
22643 msgstr ""
22644
22645 # type: textblock
22646 #: ../fish/guestfish-actions.pod:3101
22647 msgid "See also L</part-set-bootable>."
22648 msgstr ""
22649
22650 # type: =head2
22651 #: ../fish/guestfish-actions.pod:3103
22652 msgid "part-get-mbr-id"
22653 msgstr ""
22654
22655 # type: verbatim
22656 #: ../fish/guestfish-actions.pod:3105
22657 #, no-wrap
22658 msgid ""
22659 " part-get-mbr-id device partnum\n"
22660 "\n"
22661 msgstr ""
22662
22663 # type: textblock
22664 #: ../fish/guestfish-actions.pod:3110 ../fish/guestfish-actions.pod:3248
22665 msgid ""
22666 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
22667 "undefined results for other partition table types (see "
22668 "L</part-get-parttype>)."
22669 msgstr ""
22670
22671 # type: =head2
22672 #: ../fish/guestfish-actions.pod:3114
22673 msgid "part-get-parttype"
22674 msgstr ""
22675
22676 # type: verbatim
22677 #: ../fish/guestfish-actions.pod:3116
22678 #, no-wrap
22679 msgid ""
22680 " part-get-parttype device\n"
22681 "\n"
22682 msgstr ""
22683
22684 # type: textblock
22685 #: ../fish/guestfish-actions.pod:3121
22686 msgid ""
22687 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
22688 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
22689 "possible, although unusual.  See L</part-init> for a full list."
22690 msgstr ""
22691
22692 # type: =head2
22693 #: ../fish/guestfish-actions.pod:3126
22694 msgid "part-init"
22695 msgstr ""
22696
22697 # type: verbatim
22698 #: ../fish/guestfish-actions.pod:3128
22699 #, no-wrap
22700 msgid ""
22701 " part-init device parttype\n"
22702 "\n"
22703 msgstr ""
22704
22705 # type: textblock
22706 #: ../fish/guestfish-actions.pod:3134
22707 msgid ""
22708 "Initially there are no partitions.  Following this, you should call "
22709 "L</part-add> for each partition required."
22710 msgstr ""
22711
22712 # type: =head2
22713 #: ../fish/guestfish-actions.pod:3197
22714 msgid "part-list"
22715 msgstr ""
22716
22717 # type: verbatim
22718 #: ../fish/guestfish-actions.pod:3199
22719 #, no-wrap
22720 msgid ""
22721 " part-list device\n"
22722 "\n"
22723 msgstr ""
22724
22725 # type: textblock
22726 #: ../fish/guestfish-actions.pod:3214
22727 msgid ""
22728 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
22729 "the device's sector size, see L</blockdev-getss>."
22730 msgstr ""
22731
22732 # type: =head2
22733 #: ../fish/guestfish-actions.pod:3227
22734 msgid "part-set-bootable"
22735 msgstr ""
22736
22737 # type: verbatim
22738 #: ../fish/guestfish-actions.pod:3229
22739 #, no-wrap
22740 msgid ""
22741 " part-set-bootable device partnum true|false\n"
22742 "\n"
22743 msgstr ""
22744
22745 # type: =head2
22746 #: ../fish/guestfish-actions.pod:3238
22747 msgid "part-set-mbr-id"
22748 msgstr ""
22749
22750 # type: verbatim
22751 #: ../fish/guestfish-actions.pod:3240
22752 #, no-wrap
22753 msgid ""
22754 " part-set-mbr-id device partnum idbyte\n"
22755 "\n"
22756 msgstr ""
22757
22758 # type: =head2
22759 #: ../fish/guestfish-actions.pod:3252
22760 msgid "part-set-name"
22761 msgstr ""
22762
22763 # type: verbatim
22764 #: ../fish/guestfish-actions.pod:3254
22765 #, no-wrap
22766 msgid ""
22767 " part-set-name device partnum name\n"
22768 "\n"
22769 msgstr ""
22770
22771 # type: =head2
22772 #: ../fish/guestfish-actions.pod:3262
22773 msgid "part-to-dev"
22774 msgstr ""
22775
22776 # type: verbatim
22777 #: ../fish/guestfish-actions.pod:3264
22778 #, no-wrap
22779 msgid ""
22780 " part-to-dev partition\n"
22781 "\n"
22782 msgstr ""
22783
22784 # type: textblock
22785 #: ../fish/guestfish-actions.pod:3270
22786 msgid ""
22787 "The named partition must exist, for example as a string returned from "
22788 "L</list-partitions>."
22789 msgstr ""
22790
22791 # type: =head2
22792 #: ../fish/guestfish-actions.pod:3273
22793 msgid "ping-daemon"
22794 msgstr ""
22795
22796 # type: verbatim
22797 #: ../fish/guestfish-actions.pod:3275
22798 #, no-wrap
22799 msgid ""
22800 " ping-daemon\n"
22801 "\n"
22802 msgstr ""
22803
22804 # type: =head2
22805 #: ../fish/guestfish-actions.pod:3282
22806 msgid "pread"
22807 msgstr ""
22808
22809 # type: verbatim
22810 #: ../fish/guestfish-actions.pod:3284
22811 #, no-wrap
22812 msgid ""
22813 " pread path count offset\n"
22814 "\n"
22815 msgstr ""
22816
22817 # type: textblock
22818 #: ../fish/guestfish-actions.pod:3292
22819 msgid "See also L</pwrite>, L</pread-device>."
22820 msgstr ""
22821
22822 # type: =head2
22823 #: ../fish/guestfish-actions.pod:3297
22824 msgid "pread-device"
22825 msgstr ""
22826
22827 # type: verbatim
22828 #: ../fish/guestfish-actions.pod:3299
22829 #, no-wrap
22830 msgid ""
22831 " pread-device device count offset\n"
22832 "\n"
22833 msgstr ""
22834
22835 # type: textblock
22836 #: ../fish/guestfish-actions.pod:3307
22837 msgid "See also L</pread>."
22838 msgstr ""
22839
22840 # type: =head2
22841 #: ../fish/guestfish-actions.pod:3312
22842 msgid "pvcreate"
22843 msgstr ""
22844
22845 # type: verbatim
22846 #: ../fish/guestfish-actions.pod:3314
22847 #, no-wrap
22848 msgid ""
22849 " pvcreate device\n"
22850 "\n"
22851 msgstr ""
22852
22853 # type: =head2
22854 #: ../fish/guestfish-actions.pod:3320
22855 msgid "pvremove"
22856 msgstr ""
22857
22858 # type: verbatim
22859 #: ../fish/guestfish-actions.pod:3322
22860 #, no-wrap
22861 msgid ""
22862 " pvremove device\n"
22863 "\n"
22864 msgstr ""
22865
22866 # type: =head2
22867 #: ../fish/guestfish-actions.pod:3331
22868 msgid "pvresize"
22869 msgstr ""
22870
22871 # type: verbatim
22872 #: ../fish/guestfish-actions.pod:3333
22873 #, no-wrap
22874 msgid ""
22875 " pvresize device\n"
22876 "\n"
22877 msgstr ""
22878
22879 # type: =head2
22880 #: ../fish/guestfish-actions.pod:3338
22881 msgid "pvresize-size"
22882 msgstr ""
22883
22884 # type: verbatim
22885 #: ../fish/guestfish-actions.pod:3340
22886 #, no-wrap
22887 msgid ""
22888 " pvresize-size device size\n"
22889 "\n"
22890 msgstr ""
22891
22892 # type: textblock
22893 #: ../fish/guestfish-actions.pod:3342
22894 msgid ""
22895 "This command is the same as L</pvresize> except that it allows you to "
22896 "specify the new size (in bytes) explicitly."
22897 msgstr ""
22898
22899 # type: =head2
22900 #: ../fish/guestfish-actions.pod:3345
22901 msgid "pvs"
22902 msgstr ""
22903
22904 # type: verbatim
22905 #: ../fish/guestfish-actions.pod:3347
22906 #, no-wrap
22907 msgid ""
22908 " pvs\n"
22909 "\n"
22910 msgstr ""
22911
22912 # type: textblock
22913 #: ../fish/guestfish-actions.pod:3355
22914 msgid "See also L</pvs-full>."
22915 msgstr ""
22916
22917 # type: =head2
22918 #: ../fish/guestfish-actions.pod:3357
22919 msgid "pvs-full"
22920 msgstr ""
22921
22922 # type: verbatim
22923 #: ../fish/guestfish-actions.pod:3359
22924 #, no-wrap
22925 msgid ""
22926 " pvs-full\n"
22927 "\n"
22928 msgstr ""
22929
22930 # type: =head2
22931 #: ../fish/guestfish-actions.pod:3364
22932 msgid "pvuuid"
22933 msgstr ""
22934
22935 # type: verbatim
22936 #: ../fish/guestfish-actions.pod:3366
22937 #, no-wrap
22938 msgid ""
22939 " pvuuid device\n"
22940 "\n"
22941 msgstr ""
22942
22943 # type: =head2
22944 #: ../fish/guestfish-actions.pod:3370
22945 msgid "pwrite"
22946 msgstr ""
22947
22948 # type: verbatim
22949 #: ../fish/guestfish-actions.pod:3372
22950 #, no-wrap
22951 msgid ""
22952 " pwrite path content offset\n"
22953 "\n"
22954 msgstr ""
22955
22956 # type: textblock
22957 #: ../fish/guestfish-actions.pod:3383
22958 msgid "See also L</pread>, L</pwrite-device>."
22959 msgstr ""
22960
22961 # type: =head2
22962 #: ../fish/guestfish-actions.pod:3388
22963 msgid "pwrite-device"
22964 msgstr ""
22965
22966 # type: verbatim
22967 #: ../fish/guestfish-actions.pod:3390
22968 #, no-wrap
22969 msgid ""
22970 " pwrite-device device content offset\n"
22971 "\n"
22972 msgstr ""
22973
22974 # type: textblock
22975 #: ../fish/guestfish-actions.pod:3400
22976 msgid "See also L</pwrite>."
22977 msgstr ""
22978
22979 # type: =head2
22980 #: ../fish/guestfish-actions.pod:3405
22981 msgid "read-file"
22982 msgstr ""
22983
22984 # type: verbatim
22985 #: ../fish/guestfish-actions.pod:3407
22986 #, no-wrap
22987 msgid ""
22988 " read-file path\n"
22989 "\n"
22990 msgstr ""
22991
22992 # type: textblock
22993 #: ../fish/guestfish-actions.pod:3412
22994 msgid ""
22995 "Unlike L</cat>, this function can correctly handle files that contain "
22996 "embedded ASCII NUL characters.  However unlike L</download>, this function "
22997 "is limited in the total size of file that can be handled."
22998 msgstr ""
22999
23000 # type: =head2
23001 #: ../fish/guestfish-actions.pod:3420
23002 msgid "read-lines"
23003 msgstr ""
23004
23005 # type: verbatim
23006 #: ../fish/guestfish-actions.pod:3422
23007 #, no-wrap
23008 msgid ""
23009 " read-lines path\n"
23010 "\n"
23011 msgstr ""
23012
23013 # type: textblock
23014 #: ../fish/guestfish-actions.pod:3429
23015 msgid ""
23016 "Note that this function cannot correctly handle binary files (specifically, "
23017 "files containing C<\\0> character which is treated as end of line).  For "
23018 "those you need to use the L</read-file> function which has a more complex "
23019 "interface."
23020 msgstr ""
23021
23022 # type: =head2
23023 #: ../fish/guestfish-actions.pod:3434
23024 msgid "readdir"
23025 msgstr ""
23026
23027 # type: verbatim
23028 #: ../fish/guestfish-actions.pod:3436
23029 #, no-wrap
23030 msgid ""
23031 " readdir dir\n"
23032 "\n"
23033 msgstr ""
23034
23035 # type: textblock
23036 #: ../fish/guestfish-actions.pod:3488
23037 msgid ""
23038 "This function is primarily intended for use by programs.  To get a simple "
23039 "list of names, use L</ls>.  To get a printable directory for human "
23040 "consumption, use L</ll>."
23041 msgstr ""
23042
23043 # type: =head2
23044 #: ../fish/guestfish-actions.pod:3492
23045 msgid "readlink"
23046 msgstr ""
23047
23048 # type: verbatim
23049 #: ../fish/guestfish-actions.pod:3494
23050 #, no-wrap
23051 msgid ""
23052 " readlink path\n"
23053 "\n"
23054 msgstr ""
23055
23056 # type: =head2
23057 #: ../fish/guestfish-actions.pod:3498
23058 msgid "readlinklist"
23059 msgstr ""
23060
23061 # type: verbatim
23062 #: ../fish/guestfish-actions.pod:3500
23063 #, no-wrap
23064 msgid ""
23065 " readlinklist path 'names ...'\n"
23066 "\n"
23067 msgstr ""
23068
23069 # type: =head2
23070 #: ../fish/guestfish-actions.pod:3524
23071 msgid "realpath"
23072 msgstr ""
23073
23074 # type: verbatim
23075 #: ../fish/guestfish-actions.pod:3526
23076 #, no-wrap
23077 msgid ""
23078 " realpath path\n"
23079 "\n"
23080 msgstr ""
23081
23082 # type: =head2
23083 #: ../fish/guestfish-actions.pod:3531
23084 msgid "removexattr"
23085 msgstr ""
23086
23087 # type: verbatim
23088 #: ../fish/guestfish-actions.pod:3533
23089 #, no-wrap
23090 msgid ""
23091 " removexattr xattr path\n"
23092 "\n"
23093 msgstr ""
23094
23095 # type: textblock
23096 #: ../fish/guestfish-actions.pod:3538
23097 msgid "See also: L</lremovexattr>, L<attr(5)>."
23098 msgstr ""
23099
23100 # type: =head2
23101 #: ../fish/guestfish-actions.pod:3540
23102 msgid "resize2fs"
23103 msgstr ""
23104
23105 # type: verbatim
23106 #: ../fish/guestfish-actions.pod:3542
23107 #, no-wrap
23108 msgid ""
23109 " resize2fs device\n"
23110 "\n"
23111 msgstr ""
23112
23113 # type: textblock
23114 #: ../fish/guestfish-actions.pod:3547
23115 msgid ""
23116 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23117 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23118 "gives an error about this and sometimes not.  In any case, it is always safe "
23119 "to call L</e2fsck-f> before calling this function."
23120 msgstr ""
23121
23122 # type: =head2
23123 #: ../fish/guestfish-actions.pod:3553
23124 msgid "resize2fs-size"
23125 msgstr ""
23126
23127 # type: verbatim
23128 #: ../fish/guestfish-actions.pod:3555
23129 #, no-wrap
23130 msgid ""
23131 " resize2fs-size device size\n"
23132 "\n"
23133 msgstr ""
23134
23135 # type: textblock
23136 #: ../fish/guestfish-actions.pod:3557
23137 msgid ""
23138 "This command is the same as L</resize2fs> except that it allows you to "
23139 "specify the new size (in bytes) explicitly."
23140 msgstr ""
23141
23142 # type: =head2
23143 #: ../fish/guestfish-actions.pod:3560
23144 msgid "rm"
23145 msgstr ""
23146
23147 # type: verbatim
23148 #: ../fish/guestfish-actions.pod:3562
23149 #, no-wrap
23150 msgid ""
23151 " rm path\n"
23152 "\n"
23153 msgstr ""
23154
23155 # type: =head2
23156 #: ../fish/guestfish-actions.pod:3566
23157 msgid "rm-rf"
23158 msgstr ""
23159
23160 # type: verbatim
23161 #: ../fish/guestfish-actions.pod:3568
23162 #, no-wrap
23163 msgid ""
23164 " rm-rf path\n"
23165 "\n"
23166 msgstr ""
23167
23168 # type: =head2
23169 #: ../fish/guestfish-actions.pod:3574
23170 msgid "rmdir"
23171 msgstr ""
23172
23173 # type: verbatim
23174 #: ../fish/guestfish-actions.pod:3576
23175 #, no-wrap
23176 msgid ""
23177 " rmdir path\n"
23178 "\n"
23179 msgstr ""
23180
23181 # type: =head2
23182 #: ../fish/guestfish-actions.pod:3580
23183 msgid "rmmountpoint"
23184 msgstr ""
23185
23186 # type: verbatim
23187 #: ../fish/guestfish-actions.pod:3582
23188 #, no-wrap
23189 msgid ""
23190 " rmmountpoint exemptpath\n"
23191 "\n"
23192 msgstr ""
23193
23194 # type: textblock
23195 #: ../fish/guestfish-actions.pod:3584
23196 msgid ""
23197 "This calls removes a mountpoint that was previously created with "
23198 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
23199 msgstr ""
23200
23201 # type: =head2
23202 #: ../fish/guestfish-actions.pod:3588
23203 msgid "scrub-device"
23204 msgstr ""
23205
23206 # type: verbatim
23207 #: ../fish/guestfish-actions.pod:3590
23208 #, no-wrap
23209 msgid ""
23210 " scrub-device device\n"
23211 "\n"
23212 msgstr ""
23213
23214 # type: =head2
23215 #: ../fish/guestfish-actions.pod:3601
23216 msgid "scrub-file"
23217 msgstr ""
23218
23219 # type: verbatim
23220 #: ../fish/guestfish-actions.pod:3603
23221 #, no-wrap
23222 msgid ""
23223 " scrub-file file\n"
23224 "\n"
23225 msgstr ""
23226
23227 # type: =head2
23228 #: ../fish/guestfish-actions.pod:3613
23229 msgid "scrub-freespace"
23230 msgstr ""
23231
23232 # type: verbatim
23233 #: ../fish/guestfish-actions.pod:3615
23234 #, no-wrap
23235 msgid ""
23236 " scrub-freespace dir\n"
23237 "\n"
23238 msgstr ""
23239
23240 # type: textblock
23241 #: ../fish/guestfish-actions.pod:3617
23242 msgid ""
23243 "This command creates the directory C<dir> and then fills it with files until "
23244 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23245 "deletes them.  The intention is to scrub any free space on the partition "
23246 "containing C<dir>."
23247 msgstr ""
23248
23249 # type: =head2
23250 #: ../fish/guestfish-actions.pod:3626
23251 msgid "set-append"
23252 msgstr ""
23253
23254 # type: =head2
23255 #: ../fish/guestfish-actions.pod:3628
23256 msgid "append"
23257 msgstr ""
23258
23259 # type: verbatim
23260 #: ../fish/guestfish-actions.pod:3630
23261 #, no-wrap
23262 msgid ""
23263 " set-append append\n"
23264 "\n"
23265 msgstr ""
23266
23267 # type: =head2
23268 #: ../fish/guestfish-actions.pod:3641
23269 msgid "set-autosync"
23270 msgstr ""
23271
23272 # type: =head2
23273 #: ../fish/guestfish-actions.pod:3643
23274 msgid "autosync"
23275 msgstr ""
23276
23277 # type: verbatim
23278 #: ../fish/guestfish-actions.pod:3645
23279 #, no-wrap
23280 msgid ""
23281 " set-autosync true|false\n"
23282 "\n"
23283 msgstr ""
23284
23285 # type: textblock
23286 #: ../fish/guestfish-actions.pod:3647
23287 msgid ""
23288 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
23289 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
23290 "closed (also if the program exits without closing handles)."
23291 msgstr ""
23292
23293 # type: =head2
23294 #: ../fish/guestfish-actions.pod:3655
23295 msgid "set-direct"
23296 msgstr ""
23297
23298 # type: =head2
23299 #: ../fish/guestfish-actions.pod:3657
23300 msgid "direct"
23301 msgstr ""
23302
23303 # type: verbatim
23304 #: ../fish/guestfish-actions.pod:3659
23305 #, no-wrap
23306 msgid ""
23307 " set-direct true|false\n"
23308 "\n"
23309 msgstr ""
23310
23311 # type: textblock
23312 #: ../fish/guestfish-actions.pod:3665
23313 msgid ""
23314 "One consequence of this is that log messages aren't caught by the library "
23315 "and handled by L</set-log-message-callback>, but go straight to stdout."
23316 msgstr ""
23317
23318 # type: =head2
23319 #: ../fish/guestfish-actions.pod:3674
23320 msgid "set-e2label"
23321 msgstr ""
23322
23323 # type: verbatim
23324 #: ../fish/guestfish-actions.pod:3676
23325 #, no-wrap
23326 msgid ""
23327 " set-e2label device label\n"
23328 "\n"
23329 msgstr ""
23330
23331 # type: textblock
23332 #: ../fish/guestfish-actions.pod:3682
23333 msgid ""
23334 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
23335 "label on a filesystem."
23336 msgstr ""
23337
23338 # type: =head2
23339 #: ../fish/guestfish-actions.pod:3685
23340 msgid "set-e2uuid"
23341 msgstr ""
23342
23343 # type: verbatim
23344 #: ../fish/guestfish-actions.pod:3687
23345 #, no-wrap
23346 msgid ""
23347 " set-e2uuid device uuid\n"
23348 "\n"
23349 msgstr ""
23350
23351 # type: textblock
23352 #: ../fish/guestfish-actions.pod:3694
23353 msgid ""
23354 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
23355 "UUID of a filesystem."
23356 msgstr ""
23357
23358 # type: =head2
23359 #: ../fish/guestfish-actions.pod:3697
23360 msgid "set-memsize"
23361 msgstr ""
23362
23363 # type: =head2
23364 #: ../fish/guestfish-actions.pod:3699
23365 msgid "memsize"
23366 msgstr ""
23367
23368 # type: verbatim
23369 #: ../fish/guestfish-actions.pod:3701
23370 #, no-wrap
23371 msgid ""
23372 " set-memsize memsize\n"
23373 "\n"
23374 msgstr ""
23375
23376 # type: textblock
23377 #: ../fish/guestfish-actions.pod:3703
23378 msgid ""
23379 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
23380 "This only has any effect if called before L</launch>."
23381 msgstr ""
23382
23383 # type: =head2
23384 #: ../fish/guestfish-actions.pod:3714
23385 msgid "set-network"
23386 msgstr ""
23387
23388 # type: =head2
23389 #: ../fish/guestfish-actions.pod:3716
23390 msgid "network"
23391 msgstr ""
23392
23393 # type: verbatim
23394 #: ../fish/guestfish-actions.pod:3718
23395 #, no-wrap
23396 msgid ""
23397 " set-network true|false\n"
23398 "\n"
23399 msgstr ""
23400
23401 # type: textblock
23402 #: ../fish/guestfish-actions.pod:3726
23403 msgid "You must call this before calling L</launch>, otherwise it has no effect."
23404 msgstr ""
23405
23406 # type: =head2
23407 #: ../fish/guestfish-actions.pod:3729
23408 msgid "set-path"
23409 msgstr ""
23410
23411 # type: =head2
23412 #: ../fish/guestfish-actions.pod:3731
23413 msgid "path"
23414 msgstr ""
23415
23416 # type: verbatim
23417 #: ../fish/guestfish-actions.pod:3733
23418 #, no-wrap
23419 msgid ""
23420 " set-path searchpath\n"
23421 "\n"
23422 msgstr ""
23423
23424 # type: =head2
23425 #: ../fish/guestfish-actions.pod:3742
23426 msgid "set-qemu"
23427 msgstr ""
23428
23429 # type: =head2
23430 #: ../fish/guestfish-actions.pod:3744
23431 msgid "qemu"
23432 msgstr ""
23433
23434 # type: verbatim
23435 #: ../fish/guestfish-actions.pod:3746
23436 #, no-wrap
23437 msgid ""
23438 " set-qemu qemu\n"
23439 "\n"
23440 msgstr ""
23441
23442 # type: =head2
23443 #: ../fish/guestfish-actions.pod:3766
23444 msgid "set-recovery-proc"
23445 msgstr ""
23446
23447 # type: =head2
23448 #: ../fish/guestfish-actions.pod:3768
23449 msgid "recovery-proc"
23450 msgstr ""
23451
23452 # type: verbatim
23453 #: ../fish/guestfish-actions.pod:3770
23454 #, no-wrap
23455 msgid ""
23456 " set-recovery-proc true|false\n"
23457 "\n"
23458 msgstr ""
23459
23460 # type: textblock
23461 #: ../fish/guestfish-actions.pod:3772
23462 msgid ""
23463 "If this is called with the parameter C<false> then L</launch> does not "
23464 "create a recovery process.  The purpose of the recovery process is to stop "
23465 "runaway qemu processes in the case where the main program aborts abruptly."
23466 msgstr ""
23467
23468 # type: textblock
23469 #: ../fish/guestfish-actions.pod:3777
23470 msgid ""
23471 "This only has any effect if called before L</launch>, and the default is "
23472 "true."
23473 msgstr ""
23474
23475 # type: =head2
23476 #: ../fish/guestfish-actions.pod:3786
23477 msgid "set-selinux"
23478 msgstr ""
23479
23480 # type: =head2
23481 #: ../fish/guestfish-actions.pod:3788
23482 msgid "selinux"
23483 msgstr ""
23484
23485 # type: verbatim
23486 #: ../fish/guestfish-actions.pod:3790
23487 #, no-wrap
23488 msgid ""
23489 " set-selinux true|false\n"
23490 "\n"
23491 msgstr ""
23492
23493 # type: =head2
23494 #: ../fish/guestfish-actions.pod:3801
23495 msgid "set-trace"
23496 msgstr ""
23497
23498 # type: =head2
23499 #: ../fish/guestfish-actions.pod:3803
23500 msgid "trace"
23501 msgstr ""
23502
23503 # type: verbatim
23504 #: ../fish/guestfish-actions.pod:3805
23505 #, no-wrap
23506 msgid ""
23507 " set-trace true|false\n"
23508 "\n"
23509 msgstr ""
23510
23511 # type: =head2
23512 #: ../fish/guestfish-actions.pod:3821
23513 msgid "set-verbose"
23514 msgstr ""
23515
23516 # type: =head2
23517 #: ../fish/guestfish-actions.pod:3823
23518 msgid "verbose"
23519 msgstr ""
23520
23521 # type: verbatim
23522 #: ../fish/guestfish-actions.pod:3825
23523 #, no-wrap
23524 msgid ""
23525 " set-verbose true|false\n"
23526 "\n"
23527 msgstr ""
23528
23529 # type: =head2
23530 #: ../fish/guestfish-actions.pod:3832
23531 msgid "setcon"
23532 msgstr ""
23533
23534 # type: verbatim
23535 #: ../fish/guestfish-actions.pod:3834
23536 #, no-wrap
23537 msgid ""
23538 " setcon context\n"
23539 "\n"
23540 msgstr ""
23541
23542 # type: =head2
23543 #: ../fish/guestfish-actions.pod:3841
23544 msgid "setxattr"
23545 msgstr ""
23546
23547 # type: verbatim
23548 #: ../fish/guestfish-actions.pod:3843
23549 #, no-wrap
23550 msgid ""
23551 " setxattr xattr val vallen path\n"
23552 "\n"
23553 msgstr ""
23554
23555 # type: textblock
23556 #: ../fish/guestfish-actions.pod:3849
23557 msgid "See also: L</lsetxattr>, L<attr(5)>."
23558 msgstr ""
23559
23560 # type: =head2
23561 #: ../fish/guestfish-actions.pod:3851
23562 msgid "sfdisk"
23563 msgstr ""
23564
23565 # type: verbatim
23566 #: ../fish/guestfish-actions.pod:3853
23567 #, no-wrap
23568 msgid ""
23569 " sfdisk device cyls heads sectors 'lines ...'\n"
23570 "\n"
23571 msgstr ""
23572
23573 # type: textblock
23574 #: ../fish/guestfish-actions.pod:3875
23575 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
23576 msgstr ""
23577
23578 # type: =head2
23579 #: ../fish/guestfish-actions.pod:3881
23580 msgid "sfdiskM"
23581 msgstr ""
23582
23583 # type: verbatim
23584 #: ../fish/guestfish-actions.pod:3883
23585 #, no-wrap
23586 msgid ""
23587 " sfdiskM device 'lines ...'\n"
23588 "\n"
23589 msgstr ""
23590
23591 # type: textblock
23592 #: ../fish/guestfish-actions.pod:3885
23593 msgid ""
23594 "This is a simplified interface to the L</sfdisk> command, where partition "
23595 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
23596 "you don't need to specify the cyls, heads and sectors parameters which were "
23597 "rarely if ever used anyway."
23598 msgstr ""
23599
23600 # type: textblock
23601 #: ../fish/guestfish-actions.pod:3891
23602 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
23603 msgstr ""
23604
23605 # type: =head2
23606 #: ../fish/guestfish-actions.pod:3897
23607 msgid "sfdisk-N"
23608 msgstr ""
23609
23610 # type: verbatim
23611 #: ../fish/guestfish-actions.pod:3899
23612 #, no-wrap
23613 msgid ""
23614 " sfdisk-N device partnum cyls heads sectors line\n"
23615 "\n"
23616 msgstr ""
23617
23618 # type: textblock
23619 #: ../fish/guestfish-actions.pod:3904
23620 msgid ""
23621 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
23622 "cyls/heads/sectors parameters."
23623 msgstr ""
23624
23625 # type: textblock
23626 #: ../fish/guestfish-actions.pod:3907
23627 msgid "See also: L</part-add>"
23628 msgstr ""
23629
23630 # type: =head2
23631 #: ../fish/guestfish-actions.pod:3912
23632 msgid "sfdisk-disk-geometry"
23633 msgstr ""
23634
23635 # type: verbatim
23636 #: ../fish/guestfish-actions.pod:3914
23637 #, no-wrap
23638 msgid ""
23639 " sfdisk-disk-geometry device\n"
23640 "\n"
23641 msgstr ""
23642
23643 # type: textblock
23644 #: ../fish/guestfish-actions.pod:3916
23645 msgid ""
23646 "This displays the disk geometry of C<device> read from the partition table.  "
23647 "Especially in the case where the underlying block device has been resized, "
23648 "this can be different from the kernel's idea of the geometry (see "
23649 "L</sfdisk-kernel-geometry>)."
23650 msgstr ""
23651
23652 # type: =head2
23653 #: ../fish/guestfish-actions.pod:3924
23654 msgid "sfdisk-kernel-geometry"
23655 msgstr ""
23656
23657 # type: verbatim
23658 #: ../fish/guestfish-actions.pod:3926
23659 #, no-wrap
23660 msgid ""
23661 " sfdisk-kernel-geometry device\n"
23662 "\n"
23663 msgstr ""
23664
23665 # type: =head2
23666 #: ../fish/guestfish-actions.pod:3933
23667 msgid "sfdisk-l"
23668 msgstr ""
23669
23670 # type: verbatim
23671 #: ../fish/guestfish-actions.pod:3935
23672 #, no-wrap
23673 msgid ""
23674 " sfdisk-l device\n"
23675 "\n"
23676 msgstr ""
23677
23678 # type: textblock
23679 #: ../fish/guestfish-actions.pod:3941
23680 msgid "See also: L</part-list>"
23681 msgstr ""
23682
23683 # type: =head2
23684 #: ../fish/guestfish-actions.pod:3943
23685 msgid "sh"
23686 msgstr ""
23687
23688 # type: verbatim
23689 #: ../fish/guestfish-actions.pod:3945
23690 #, no-wrap
23691 msgid ""
23692 " sh command\n"
23693 "\n"
23694 msgstr ""
23695
23696 # type: textblock
23697 #: ../fish/guestfish-actions.pod:3950
23698 msgid "This is like L</command>, but passes the command to:"
23699 msgstr ""
23700
23701 # type: textblock
23702 #: ../fish/guestfish-actions.pod:3958
23703 msgid "All the provisos about L</command> apply to this call."
23704 msgstr ""
23705
23706 # type: =head2
23707 #: ../fish/guestfish-actions.pod:3960
23708 msgid "sh-lines"
23709 msgstr ""
23710
23711 # type: verbatim
23712 #: ../fish/guestfish-actions.pod:3962
23713 #, no-wrap
23714 msgid ""
23715 " sh-lines command\n"
23716 "\n"
23717 msgstr ""
23718
23719 # type: textblock
23720 #: ../fish/guestfish-actions.pod:3964
23721 msgid "This is the same as L</sh>, but splits the result into a list of lines."
23722 msgstr ""
23723
23724 # type: textblock
23725 #: ../fish/guestfish-actions.pod:3967
23726 msgid "See also: L</command-lines>"
23727 msgstr ""
23728
23729 # type: =head2
23730 #: ../fish/guestfish-actions.pod:3969
23731 msgid "sleep"
23732 msgstr ""
23733
23734 # type: verbatim
23735 #: ../fish/guestfish-actions.pod:3971
23736 #, no-wrap
23737 msgid ""
23738 " sleep secs\n"
23739 "\n"
23740 msgstr ""
23741
23742 # type: =head2
23743 #: ../fish/guestfish-actions.pod:3975
23744 msgid "stat"
23745 msgstr ""
23746
23747 # type: verbatim
23748 #: ../fish/guestfish-actions.pod:3977
23749 #, no-wrap
23750 msgid ""
23751 " stat path\n"
23752 "\n"
23753 msgstr ""
23754
23755 # type: =head2
23756 #: ../fish/guestfish-actions.pod:3983
23757 msgid "statvfs"
23758 msgstr ""
23759
23760 # type: verbatim
23761 #: ../fish/guestfish-actions.pod:3985
23762 #, no-wrap
23763 msgid ""
23764 " statvfs path\n"
23765 "\n"
23766 msgstr ""
23767
23768 # type: =head2
23769 #: ../fish/guestfish-actions.pod:3993
23770 msgid "strings"
23771 msgstr ""
23772
23773 # type: verbatim
23774 #: ../fish/guestfish-actions.pod:3995
23775 #, no-wrap
23776 msgid ""
23777 " strings path\n"
23778 "\n"
23779 msgstr ""
23780
23781 # type: =head2
23782 #: ../fish/guestfish-actions.pod:4003
23783 msgid "strings-e"
23784 msgstr ""
23785
23786 # type: verbatim
23787 #: ../fish/guestfish-actions.pod:4005
23788 #, no-wrap
23789 msgid ""
23790 " strings-e encoding path\n"
23791 "\n"
23792 msgstr ""
23793
23794 # type: textblock
23795 #: ../fish/guestfish-actions.pod:4007
23796 msgid ""
23797 "This is like the L</strings> command, but allows you to specify the encoding "
23798 "of strings that are looked for in the source file C<path>."
23799 msgstr ""
23800
23801 # type: textblock
23802 #: ../fish/guestfish-actions.pod:4017
23803 msgid ""
23804 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
23805 "ISO-8859-X (this is what L</strings> uses)."
23806 msgstr ""
23807
23808 # type: =head2
23809 #: ../fish/guestfish-actions.pod:4049
23810 msgid "swapoff-device"
23811 msgstr ""
23812
23813 # type: verbatim
23814 #: ../fish/guestfish-actions.pod:4051
23815 #, no-wrap
23816 msgid ""
23817 " swapoff-device device\n"
23818 "\n"
23819 msgstr ""
23820
23821 # type: textblock
23822 #: ../fish/guestfish-actions.pod:4053
23823 msgid ""
23824 "This command disables the libguestfs appliance swap device or partition "
23825 "named C<device>.  See L</swapon-device>."
23826 msgstr ""
23827
23828 # type: =head2
23829 #: ../fish/guestfish-actions.pod:4057
23830 msgid "swapoff-file"
23831 msgstr ""
23832
23833 # type: verbatim
23834 #: ../fish/guestfish-actions.pod:4059
23835 #, no-wrap
23836 msgid ""
23837 " swapoff-file file\n"
23838 "\n"
23839 msgstr ""
23840
23841 # type: =head2
23842 #: ../fish/guestfish-actions.pod:4063
23843 msgid "swapoff-label"
23844 msgstr ""
23845
23846 # type: verbatim
23847 #: ../fish/guestfish-actions.pod:4065
23848 #, no-wrap
23849 msgid ""
23850 " swapoff-label label\n"
23851 "\n"
23852 msgstr ""
23853
23854 # type: =head2
23855 #: ../fish/guestfish-actions.pod:4070
23856 msgid "swapoff-uuid"
23857 msgstr ""
23858
23859 # type: verbatim
23860 #: ../fish/guestfish-actions.pod:4072
23861 #, no-wrap
23862 msgid ""
23863 " swapoff-uuid uuid\n"
23864 "\n"
23865 msgstr ""
23866
23867 # type: =head2
23868 #: ../fish/guestfish-actions.pod:4077
23869 msgid "swapon-device"
23870 msgstr ""
23871
23872 # type: verbatim
23873 #: ../fish/guestfish-actions.pod:4079
23874 #, no-wrap
23875 msgid ""
23876 " swapon-device device\n"
23877 "\n"
23878 msgstr ""
23879
23880 # type: textblock
23881 #: ../fish/guestfish-actions.pod:4081
23882 msgid ""
23883 "This command enables the libguestfs appliance to use the swap device or "
23884 "partition named C<device>.  The increased memory is made available for all "
23885 "commands, for example those run using L</command> or L</sh>."
23886 msgstr ""
23887
23888 # type: =head2
23889 #: ../fish/guestfish-actions.pod:4093
23890 msgid "swapon-file"
23891 msgstr ""
23892
23893 # type: verbatim
23894 #: ../fish/guestfish-actions.pod:4095
23895 #, no-wrap
23896 msgid ""
23897 " swapon-file file\n"
23898 "\n"
23899 msgstr ""
23900
23901 # type: textblock
23902 #: ../fish/guestfish-actions.pod:4097
23903 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
23904 msgstr ""
23905
23906 # type: =head2
23907 #: ../fish/guestfish-actions.pod:4100
23908 msgid "swapon-label"
23909 msgstr ""
23910
23911 # type: verbatim
23912 #: ../fish/guestfish-actions.pod:4102
23913 #, no-wrap
23914 msgid ""
23915 " swapon-label label\n"
23916 "\n"
23917 msgstr ""
23918
23919 # type: textblock
23920 #: ../fish/guestfish-actions.pod:4104
23921 msgid ""
23922 "This command enables swap to a labeled swap partition.  See "
23923 "L</swapon-device> for other notes."
23924 msgstr ""
23925
23926 # type: =head2
23927 #: ../fish/guestfish-actions.pod:4107
23928 msgid "swapon-uuid"
23929 msgstr ""
23930
23931 # type: verbatim
23932 #: ../fish/guestfish-actions.pod:4109
23933 #, no-wrap
23934 msgid ""
23935 " swapon-uuid uuid\n"
23936 "\n"
23937 msgstr ""
23938
23939 # type: textblock
23940 #: ../fish/guestfish-actions.pod:4111
23941 msgid ""
23942 "This command enables swap to a swap partition with the given UUID.  See "
23943 "L</swapon-device> for other notes."
23944 msgstr ""
23945
23946 # type: =head2
23947 #: ../fish/guestfish-actions.pod:4114
23948 msgid "sync"
23949 msgstr ""
23950
23951 # type: verbatim
23952 #: ../fish/guestfish-actions.pod:4116
23953 #, no-wrap
23954 msgid ""
23955 " sync\n"
23956 "\n"
23957 msgstr ""
23958
23959 # type: =head2
23960 #: ../fish/guestfish-actions.pod:4124
23961 msgid "tail"
23962 msgstr ""
23963
23964 # type: verbatim
23965 #: ../fish/guestfish-actions.pod:4126
23966 #, no-wrap
23967 msgid ""
23968 " tail path\n"
23969 "\n"
23970 msgstr ""
23971
23972 # type: =head2
23973 #: ../fish/guestfish-actions.pod:4134
23974 msgid "tail-n"
23975 msgstr ""
23976
23977 # type: verbatim
23978 #: ../fish/guestfish-actions.pod:4136
23979 #, no-wrap
23980 msgid ""
23981 " tail-n nrlines path\n"
23982 "\n"
23983 msgstr ""
23984
23985 # type: =head2
23986 #: ../fish/guestfish-actions.pod:4149
23987 msgid "tar-in"
23988 msgstr ""
23989
23990 # type: verbatim
23991 #: ../fish/guestfish-actions.pod:4151
23992 #, no-wrap
23993 msgid ""
23994 " tar-in (tarfile|-) directory\n"
23995 "\n"
23996 msgstr ""
23997
23998 # type: textblock
23999 #: ../fish/guestfish-actions.pod:4156
24000 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24001 msgstr ""
24002
24003 # type: =head2
24004 #: ../fish/guestfish-actions.pod:4161
24005 msgid "tar-out"
24006 msgstr ""
24007
24008 # type: verbatim
24009 #: ../fish/guestfish-actions.pod:4163
24010 #, no-wrap
24011 msgid ""
24012 " tar-out directory (tarfile|-)\n"
24013 "\n"
24014 msgstr ""
24015
24016 # type: textblock
24017 #: ../fish/guestfish-actions.pod:4168
24018 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24019 msgstr ""
24020
24021 # type: =head2
24022 #: ../fish/guestfish-actions.pod:4173
24023 msgid "tgz-in"
24024 msgstr ""
24025
24026 # type: verbatim
24027 #: ../fish/guestfish-actions.pod:4175
24028 #, no-wrap
24029 msgid ""
24030 " tgz-in (tarball|-) directory\n"
24031 "\n"
24032 msgstr ""
24033
24034 # type: textblock
24035 #: ../fish/guestfish-actions.pod:4180
24036 msgid "To upload an uncompressed tarball, use L</tar-in>."
24037 msgstr ""
24038
24039 # type: =head2
24040 #: ../fish/guestfish-actions.pod:4184
24041 msgid "tgz-out"
24042 msgstr ""
24043
24044 # type: verbatim
24045 #: ../fish/guestfish-actions.pod:4186
24046 #, no-wrap
24047 msgid ""
24048 " tgz-out directory (tarball|-)\n"
24049 "\n"
24050 msgstr ""
24051
24052 # type: textblock
24053 #: ../fish/guestfish-actions.pod:4191
24054 msgid "To download an uncompressed tarball, use L</tar-out>."
24055 msgstr ""
24056
24057 # type: =head2
24058 #: ../fish/guestfish-actions.pod:4195
24059 msgid "touch"
24060 msgstr ""
24061
24062 # type: verbatim
24063 #: ../fish/guestfish-actions.pod:4197
24064 #, no-wrap
24065 msgid ""
24066 " touch path\n"
24067 "\n"
24068 msgstr ""
24069
24070 # type: =head2
24071 #: ../fish/guestfish-actions.pod:4206
24072 msgid "truncate"
24073 msgstr ""
24074
24075 # type: verbatim
24076 #: ../fish/guestfish-actions.pod:4208
24077 #, no-wrap
24078 msgid ""
24079 " truncate path\n"
24080 "\n"
24081 msgstr ""
24082
24083 # type: =head2
24084 #: ../fish/guestfish-actions.pod:4213
24085 msgid "truncate-size"
24086 msgstr ""
24087
24088 # type: verbatim
24089 #: ../fish/guestfish-actions.pod:4215
24090 #, no-wrap
24091 msgid ""
24092 " truncate-size path size\n"
24093 "\n"
24094 msgstr ""
24095
24096 # type: textblock
24097 #: ../fish/guestfish-actions.pod:4220
24098 msgid ""
24099 "If the current file size is less than C<size> then the file is extended to "
24100 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24101 "blocks are not allocated for the file until you write to it).  To create a "
24102 "non-sparse file of zeroes, use L</fallocate64> instead."
24103 msgstr ""
24104
24105 # type: =head2
24106 #: ../fish/guestfish-actions.pod:4226
24107 msgid "tune2fs-l"
24108 msgstr ""
24109
24110 # type: verbatim
24111 #: ../fish/guestfish-actions.pod:4228
24112 #, no-wrap
24113 msgid ""
24114 " tune2fs-l device\n"
24115 "\n"
24116 msgstr ""
24117
24118 # type: =head2
24119 #: ../fish/guestfish-actions.pod:4238
24120 msgid "txz-in"
24121 msgstr ""
24122
24123 # type: verbatim
24124 #: ../fish/guestfish-actions.pod:4240
24125 #, no-wrap
24126 msgid ""
24127 " txz-in (tarball|-) directory\n"
24128 "\n"
24129 msgstr ""
24130
24131 # type: =head2
24132 #: ../fish/guestfish-actions.pod:4247
24133 msgid "txz-out"
24134 msgstr ""
24135
24136 # type: verbatim
24137 #: ../fish/guestfish-actions.pod:4249
24138 #, no-wrap
24139 msgid ""
24140 " txz-out directory (tarball|-)\n"
24141 "\n"
24142 msgstr ""
24143
24144 # type: =head2
24145 #: ../fish/guestfish-actions.pod:4256
24146 msgid "umask"
24147 msgstr ""
24148
24149 # type: verbatim
24150 #: ../fish/guestfish-actions.pod:4258
24151 #, no-wrap
24152 msgid ""
24153 " umask mask\n"
24154 "\n"
24155 msgstr ""
24156
24157 # type: textblock
24158 #: ../fish/guestfish-actions.pod:4272
24159 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24160 msgstr ""
24161
24162 # type: =head2
24163 #: ../fish/guestfish-actions.pod:4277
24164 msgid "umount"
24165 msgstr ""
24166
24167 # type: =head2
24168 #: ../fish/guestfish-actions.pod:4279
24169 msgid "unmount"
24170 msgstr ""
24171
24172 # type: verbatim
24173 #: ../fish/guestfish-actions.pod:4281
24174 #, no-wrap
24175 msgid ""
24176 " umount pathordevice\n"
24177 "\n"
24178 msgstr ""
24179
24180 # type: =head2
24181 #: ../fish/guestfish-actions.pod:4287
24182 msgid "umount-all"
24183 msgstr ""
24184
24185 # type: =head2
24186 #: ../fish/guestfish-actions.pod:4289
24187 msgid "unmount-all"
24188 msgstr ""
24189
24190 # type: verbatim
24191 #: ../fish/guestfish-actions.pod:4291
24192 #, no-wrap
24193 msgid ""
24194 " umount-all\n"
24195 "\n"
24196 msgstr ""
24197
24198 # type: =head2
24199 #: ../fish/guestfish-actions.pod:4297
24200 msgid "upload"
24201 msgstr ""
24202
24203 # type: verbatim
24204 #: ../fish/guestfish-actions.pod:4299
24205 #, no-wrap
24206 msgid ""
24207 " upload (filename|-) remotefilename\n"
24208 "\n"
24209 msgstr ""
24210
24211 # type: textblock
24212 #: ../fish/guestfish-actions.pod:4306
24213 msgid "See also L</download>."
24214 msgstr ""
24215
24216 # type: =head2
24217 #: ../fish/guestfish-actions.pod:4310
24218 msgid "upload-offset"
24219 msgstr ""
24220
24221 # type: verbatim
24222 #: ../fish/guestfish-actions.pod:4312
24223 #, no-wrap
24224 msgid ""
24225 " upload-offset (filename|-) remotefilename offset\n"
24226 "\n"
24227 msgstr ""
24228
24229 # type: textblock
24230 #: ../fish/guestfish-actions.pod:4324
24231 msgid ""
24232 "Note that there is no limit on the amount of data that can be uploaded with "
24233 "this call, unlike with L</pwrite>, and this call always writes the full "
24234 "amount unless an error occurs."
24235 msgstr ""
24236
24237 # type: textblock
24238 #: ../fish/guestfish-actions.pod:4329
24239 msgid "See also L</upload>, L</pwrite>."
24240 msgstr ""
24241
24242 # type: =head2
24243 #: ../fish/guestfish-actions.pod:4333
24244 msgid "utimens"
24245 msgstr ""
24246
24247 # type: verbatim
24248 #: ../fish/guestfish-actions.pod:4335
24249 #, no-wrap
24250 msgid ""
24251 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24252 "\n"
24253 msgstr ""
24254
24255 # type: =head2
24256 #: ../fish/guestfish-actions.pod:4354
24257 msgid "version"
24258 msgstr ""
24259
24260 # type: verbatim
24261 #: ../fish/guestfish-actions.pod:4356
24262 #, no-wrap
24263 msgid ""
24264 " version\n"
24265 "\n"
24266 msgstr ""
24267
24268 # type: textblock
24269 #: ../fish/guestfish-actions.pod:4383
24270 msgid ""
24271 "I<Note:> Don't use this call to test for availability of features.  In "
24272 "enterprise distributions we backport features from later versions into "
24273 "earlier versions, making this an unreliable way to test for features.  Use "
24274 "L</available> instead."
24275 msgstr ""
24276
24277 # type: =head2
24278 #: ../fish/guestfish-actions.pod:4389
24279 msgid "vfs-label"
24280 msgstr ""
24281
24282 # type: verbatim
24283 #: ../fish/guestfish-actions.pod:4391
24284 #, no-wrap
24285 msgid ""
24286 " vfs-label device\n"
24287 "\n"
24288 msgstr ""
24289
24290 # type: textblock
24291 #: ../fish/guestfish-actions.pod:4398
24292 msgid "To find a filesystem from the label, use L</findfs-label>."
24293 msgstr ""
24294
24295 # type: =head2
24296 #: ../fish/guestfish-actions.pod:4400
24297 msgid "vfs-type"
24298 msgstr ""
24299
24300 # type: verbatim
24301 #: ../fish/guestfish-actions.pod:4402
24302 #, no-wrap
24303 msgid ""
24304 " vfs-type device\n"
24305 "\n"
24306 msgstr ""
24307
24308 # type: =head2
24309 #: ../fish/guestfish-actions.pod:4412
24310 msgid "vfs-uuid"
24311 msgstr ""
24312
24313 # type: verbatim
24314 #: ../fish/guestfish-actions.pod:4414
24315 #, no-wrap
24316 msgid ""
24317 " vfs-uuid device\n"
24318 "\n"
24319 msgstr ""
24320
24321 # type: textblock
24322 #: ../fish/guestfish-actions.pod:4421
24323 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
24324 msgstr ""
24325
24326 # type: =head2
24327 #: ../fish/guestfish-actions.pod:4423
24328 msgid "vg-activate"
24329 msgstr ""
24330
24331 # type: verbatim
24332 #: ../fish/guestfish-actions.pod:4425
24333 #, no-wrap
24334 msgid ""
24335 " vg-activate true|false 'volgroups ...'\n"
24336 "\n"
24337 msgstr ""
24338
24339 # type: =head2
24340 #: ../fish/guestfish-actions.pod:4438
24341 msgid "vg-activate-all"
24342 msgstr ""
24343
24344 # type: verbatim
24345 #: ../fish/guestfish-actions.pod:4440
24346 #, no-wrap
24347 msgid ""
24348 " vg-activate-all true|false\n"
24349 "\n"
24350 msgstr ""
24351
24352 # type: =head2
24353 #: ../fish/guestfish-actions.pod:4450
24354 msgid "vgcreate"
24355 msgstr ""
24356
24357 # type: verbatim
24358 #: ../fish/guestfish-actions.pod:4452
24359 #, no-wrap
24360 msgid ""
24361 " vgcreate volgroup 'physvols ...'\n"
24362 "\n"
24363 msgstr ""
24364
24365 # type: =head2
24366 #: ../fish/guestfish-actions.pod:4457
24367 msgid "vglvuuids"
24368 msgstr ""
24369
24370 # type: verbatim
24371 #: ../fish/guestfish-actions.pod:4459
24372 #, no-wrap
24373 msgid ""
24374 " vglvuuids vgname\n"
24375 "\n"
24376 msgstr ""
24377
24378 # type: textblock
24379 #: ../fish/guestfish-actions.pod:4464
24380 msgid ""
24381 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
24382 "logical volumes and volume groups."
24383 msgstr ""
24384
24385 # type: textblock
24386 #: ../fish/guestfish-actions.pod:4467
24387 msgid "See also L</vgpvuuids>."
24388 msgstr ""
24389
24390 # type: =head2
24391 #: ../fish/guestfish-actions.pod:4469
24392 msgid "vgpvuuids"
24393 msgstr ""
24394
24395 # type: verbatim
24396 #: ../fish/guestfish-actions.pod:4471
24397 #, no-wrap
24398 msgid ""
24399 " vgpvuuids vgname\n"
24400 "\n"
24401 msgstr ""
24402
24403 # type: textblock
24404 #: ../fish/guestfish-actions.pod:4476
24405 msgid ""
24406 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
24407 "physical volumes and volume groups."
24408 msgstr ""
24409
24410 # type: textblock
24411 #: ../fish/guestfish-actions.pod:4479
24412 msgid "See also L</vglvuuids>."
24413 msgstr ""
24414
24415 # type: =head2
24416 #: ../fish/guestfish-actions.pod:4481
24417 msgid "vgremove"
24418 msgstr ""
24419
24420 # type: verbatim
24421 #: ../fish/guestfish-actions.pod:4483
24422 #, no-wrap
24423 msgid ""
24424 " vgremove vgname\n"
24425 "\n"
24426 msgstr ""
24427
24428 # type: =head2
24429 #: ../fish/guestfish-actions.pod:4490
24430 msgid "vgrename"
24431 msgstr ""
24432
24433 # type: verbatim
24434 #: ../fish/guestfish-actions.pod:4492
24435 #, no-wrap
24436 msgid ""
24437 " vgrename volgroup newvolgroup\n"
24438 "\n"
24439 msgstr ""
24440
24441 # type: =head2
24442 #: ../fish/guestfish-actions.pod:4496
24443 msgid "vgs"
24444 msgstr ""
24445
24446 # type: verbatim
24447 #: ../fish/guestfish-actions.pod:4498
24448 #, no-wrap
24449 msgid ""
24450 " vgs\n"
24451 "\n"
24452 msgstr ""
24453
24454 # type: textblock
24455 #: ../fish/guestfish-actions.pod:4506
24456 msgid "See also L</vgs-full>."
24457 msgstr ""
24458
24459 # type: =head2
24460 #: ../fish/guestfish-actions.pod:4508
24461 msgid "vgs-full"
24462 msgstr ""
24463
24464 # type: verbatim
24465 #: ../fish/guestfish-actions.pod:4510
24466 #, no-wrap
24467 msgid ""
24468 " vgs-full\n"
24469 "\n"
24470 msgstr ""
24471
24472 # type: =head2
24473 #: ../fish/guestfish-actions.pod:4515
24474 msgid "vgscan"
24475 msgstr ""
24476
24477 # type: verbatim
24478 #: ../fish/guestfish-actions.pod:4517
24479 #, no-wrap
24480 msgid ""
24481 " vgscan\n"
24482 "\n"
24483 msgstr ""
24484
24485 # type: =head2
24486 #: ../fish/guestfish-actions.pod:4522
24487 msgid "vguuid"
24488 msgstr ""
24489
24490 # type: verbatim
24491 #: ../fish/guestfish-actions.pod:4524
24492 #, no-wrap
24493 msgid ""
24494 " vguuid vgname\n"
24495 "\n"
24496 msgstr ""
24497
24498 # type: =head2
24499 #: ../fish/guestfish-actions.pod:4528
24500 msgid "wc-c"
24501 msgstr ""
24502
24503 # type: verbatim
24504 #: ../fish/guestfish-actions.pod:4530
24505 #, no-wrap
24506 msgid ""
24507 " wc-c path\n"
24508 "\n"
24509 msgstr ""
24510
24511 # type: =head2
24512 #: ../fish/guestfish-actions.pod:4535
24513 msgid "wc-l"
24514 msgstr ""
24515
24516 # type: verbatim
24517 #: ../fish/guestfish-actions.pod:4537
24518 #, no-wrap
24519 msgid ""
24520 " wc-l path\n"
24521 "\n"
24522 msgstr ""
24523
24524 # type: =head2
24525 #: ../fish/guestfish-actions.pod:4542
24526 msgid "wc-w"
24527 msgstr ""
24528
24529 # type: verbatim
24530 #: ../fish/guestfish-actions.pod:4544
24531 #, no-wrap
24532 msgid ""
24533 " wc-w path\n"
24534 "\n"
24535 msgstr ""
24536
24537 # type: =head2
24538 #: ../fish/guestfish-actions.pod:4549
24539 msgid "write"
24540 msgstr ""
24541
24542 # type: verbatim
24543 #: ../fish/guestfish-actions.pod:4551
24544 #, no-wrap
24545 msgid ""
24546 " write path content\n"
24547 "\n"
24548 msgstr ""
24549
24550 # type: =head2
24551 #: ../fish/guestfish-actions.pod:4559
24552 msgid "write-file"
24553 msgstr ""
24554
24555 # type: verbatim
24556 #: ../fish/guestfish-actions.pod:4561
24557 #, no-wrap
24558 msgid ""
24559 " write-file path content size\n"
24560 "\n"
24561 msgstr ""
24562
24563 # type: =head2
24564 #: ../fish/guestfish-actions.pod:4584
24565 msgid "zegrep"
24566 msgstr ""
24567
24568 # type: verbatim
24569 #: ../fish/guestfish-actions.pod:4586
24570 #, no-wrap
24571 msgid ""
24572 " zegrep regex path\n"
24573 "\n"
24574 msgstr ""
24575
24576 # type: =head2
24577 #: ../fish/guestfish-actions.pod:4594
24578 msgid "zegrepi"
24579 msgstr ""
24580
24581 # type: verbatim
24582 #: ../fish/guestfish-actions.pod:4596
24583 #, no-wrap
24584 msgid ""
24585 " zegrepi regex path\n"
24586 "\n"
24587 msgstr ""
24588
24589 # type: =head2
24590 #: ../fish/guestfish-actions.pod:4604
24591 msgid "zero"
24592 msgstr ""
24593
24594 # type: verbatim
24595 #: ../fish/guestfish-actions.pod:4606
24596 #, no-wrap
24597 msgid ""
24598 " zero device\n"
24599 "\n"
24600 msgstr ""
24601
24602 # type: textblock
24603 #: ../fish/guestfish-actions.pod:4614
24604 msgid "See also: L</zero-device>, L</scrub-device>."
24605 msgstr ""
24606
24607 # type: =head2
24608 #: ../fish/guestfish-actions.pod:4616
24609 msgid "zero-device"
24610 msgstr ""
24611
24612 # type: verbatim
24613 #: ../fish/guestfish-actions.pod:4618
24614 #, no-wrap
24615 msgid ""
24616 " zero-device device\n"
24617 "\n"
24618 msgstr ""
24619
24620 # type: textblock
24621 #: ../fish/guestfish-actions.pod:4620
24622 msgid ""
24623 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
24624 "which just zeroes the first few blocks of a device."
24625 msgstr ""
24626
24627 # type: =head2
24628 #: ../fish/guestfish-actions.pod:4627
24629 msgid "zerofree"
24630 msgstr ""
24631
24632 # type: verbatim
24633 #: ../fish/guestfish-actions.pod:4629
24634 #, no-wrap
24635 msgid ""
24636 " zerofree device\n"
24637 "\n"
24638 msgstr ""
24639
24640 # type: =head2
24641 #: ../fish/guestfish-actions.pod:4642
24642 msgid "zfgrep"
24643 msgstr ""
24644
24645 # type: verbatim
24646 #: ../fish/guestfish-actions.pod:4644
24647 #, no-wrap
24648 msgid ""
24649 " zfgrep pattern path\n"
24650 "\n"
24651 msgstr ""
24652
24653 # type: =head2
24654 #: ../fish/guestfish-actions.pod:4652
24655 msgid "zfgrepi"
24656 msgstr ""
24657
24658 # type: verbatim
24659 #: ../fish/guestfish-actions.pod:4654
24660 #, no-wrap
24661 msgid ""
24662 " zfgrepi pattern path\n"
24663 "\n"
24664 msgstr ""
24665
24666 # type: =head2
24667 #: ../fish/guestfish-actions.pod:4662
24668 msgid "zfile"
24669 msgstr ""
24670
24671 # type: verbatim
24672 #: ../fish/guestfish-actions.pod:4664
24673 #, no-wrap
24674 msgid ""
24675 " zfile meth path\n"
24676 "\n"
24677 msgstr ""
24678
24679 # type: textblock
24680 #: ../fish/guestfish-actions.pod:4671
24681 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
24682 msgstr ""
24683
24684 # type: =head2
24685 #: ../fish/guestfish-actions.pod:4681
24686 msgid "zgrep"
24687 msgstr ""
24688
24689 # type: verbatim
24690 #: ../fish/guestfish-actions.pod:4683
24691 #, no-wrap
24692 msgid ""
24693 " zgrep regex path\n"
24694 "\n"
24695 msgstr ""
24696
24697 # type: =head2
24698 #: ../fish/guestfish-actions.pod:4691
24699 msgid "zgrepi"
24700 msgstr ""
24701
24702 # type: verbatim
24703 #: ../fish/guestfish-actions.pod:4693
24704 #, no-wrap
24705 msgid ""
24706 " zgrepi regex path\n"
24707 "\n"
24708 msgstr ""
24709
24710 # type: =head2
24711 #: ../fish/guestfish-commands.pod:1
24712 msgid "alloc"
24713 msgstr ""
24714
24715 # type: =head2
24716 #: ../fish/guestfish-commands.pod:3
24717 msgid "allocate"
24718 msgstr ""
24719
24720 # type: verbatim
24721 #: ../fish/guestfish-commands.pod:5
24722 #, no-wrap
24723 msgid ""
24724 " alloc filename size\n"
24725 "\n"
24726 msgstr ""
24727
24728 # type: textblock
24729 #: ../fish/guestfish-commands.pod:7
24730 msgid ""
24731 "This creates an empty (zeroed) file of the given size, and then adds so it "
24732 "can be further examined."
24733 msgstr ""
24734
24735 # type: textblock
24736 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
24737 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
24738 msgstr ""
24739
24740 # type: textblock
24741 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
24742 msgid "Size can be specified using standard suffixes, eg. C<1M>."
24743 msgstr ""
24744
24745 # type: textblock
24746 #: ../fish/guestfish-commands.pod:14
24747 msgid ""
24748 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
24749 "image, see L</PREPARED DISK IMAGES>."
24750 msgstr ""
24751
24752 # type: =head2
24753 #: ../fish/guestfish-commands.pod:17
24754 msgid "copy-in"
24755 msgstr ""
24756
24757 # type: verbatim
24758 #: ../fish/guestfish-commands.pod:19
24759 #, no-wrap
24760 msgid ""
24761 " copy-in local [local ...] /remotedir\n"
24762 "\n"
24763 msgstr ""
24764
24765 # type: textblock
24766 #: ../fish/guestfish-commands.pod:21
24767 msgid ""
24768 "C<copy-in> copies local files or directories recursively into the disk "
24769 "image, placing them in the directory called C</remotedir> (which must "
24770 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
24771 "other commands as necessary."
24772 msgstr ""
24773
24774 # type: textblock
24775 #: ../fish/guestfish-commands.pod:26
24776 msgid ""
24777 "Multiple local files and directories can be specified, but the last "
24778 "parameter must always be a remote directory.  Wildcards cannot be used."
24779 msgstr ""
24780
24781 # type: =head2
24782 #: ../fish/guestfish-commands.pod:30
24783 msgid "copy-out"
24784 msgstr ""
24785
24786 # type: verbatim
24787 #: ../fish/guestfish-commands.pod:32
24788 #, no-wrap
24789 msgid ""
24790 " copy-out remote [remote ...] localdir\n"
24791 "\n"
24792 msgstr ""
24793
24794 # type: textblock
24795 #: ../fish/guestfish-commands.pod:34
24796 msgid ""
24797 "C<copy-out> copies remote files or directories recursively out of the disk "
24798 "image, placing them on the host disk in a local directory called C<localdir> "
24799 "(which must exist).  This guestfish meta-command turns into a sequence of "
24800 "L</download>, L</tar-out> and other commands as necessary."
24801 msgstr ""
24802
24803 # type: textblock
24804 #: ../fish/guestfish-commands.pod:40
24805 msgid ""
24806 "Multiple remote files and directories can be specified, but the last "
24807 "parameter must always be a local directory.  To download to the current "
24808 "directory, use C<.> as in:"
24809 msgstr ""
24810
24811 # type: verbatim
24812 #: ../fish/guestfish-commands.pod:44
24813 #, no-wrap
24814 msgid ""
24815 " copy-out /home .\n"
24816 "\n"
24817 msgstr ""
24818
24819 # type: textblock
24820 #: ../fish/guestfish-commands.pod:46
24821 msgid ""
24822 "Wildcards cannot be used in the ordinary command, but you can use them with "
24823 "the help of L</glob> like this:"
24824 msgstr ""
24825
24826 # type: verbatim
24827 #: ../fish/guestfish-commands.pod:49
24828 #, no-wrap
24829 msgid ""
24830 " glob copy-out /home/* .\n"
24831 "\n"
24832 msgstr ""
24833
24834 # type: =head2
24835 #: ../fish/guestfish-commands.pod:51
24836 msgid "echo"
24837 msgstr ""
24838
24839 # type: verbatim
24840 #: ../fish/guestfish-commands.pod:53
24841 #, no-wrap
24842 msgid ""
24843 " echo [params ...]\n"
24844 "\n"
24845 msgstr ""
24846
24847 # type: textblock
24848 #: ../fish/guestfish-commands.pod:55
24849 msgid "This echos the parameters to the terminal."
24850 msgstr ""
24851
24852 # type: =head2
24853 #: ../fish/guestfish-commands.pod:57
24854 msgid "edit"
24855 msgstr ""
24856
24857 # type: =head2
24858 #: ../fish/guestfish-commands.pod:59
24859 msgid "vi"
24860 msgstr ""
24861
24862 # type: =head2
24863 #: ../fish/guestfish-commands.pod:61
24864 msgid "emacs"
24865 msgstr ""
24866
24867 # type: verbatim
24868 #: ../fish/guestfish-commands.pod:63
24869 #, no-wrap
24870 msgid ""
24871 " edit filename\n"
24872 "\n"
24873 msgstr ""
24874
24875 # type: textblock
24876 #: ../fish/guestfish-commands.pod:65
24877 msgid ""
24878 "This is used to edit a file.  It downloads the file, edits it locally using "
24879 "your editor, then uploads the result."
24880 msgstr ""
24881
24882 # type: textblock
24883 #: ../fish/guestfish-commands.pod:68
24884 msgid ""
24885 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
24886 "or C<emacs> you will get those corresponding editors."
24887 msgstr ""
24888
24889 # type: =head2
24890 #: ../fish/guestfish-commands.pod:72
24891 msgid "glob"
24892 msgstr ""
24893
24894 # type: verbatim
24895 #: ../fish/guestfish-commands.pod:74
24896 #, no-wrap
24897 msgid ""
24898 " glob command args...\n"
24899 "\n"
24900 msgstr ""
24901
24902 # type: textblock
24903 #: ../fish/guestfish-commands.pod:76
24904 msgid ""
24905 "Expand wildcards in any paths in the args list, and run C<command> "
24906 "repeatedly on each matching path."
24907 msgstr ""
24908
24909 # type: textblock
24910 #: ../fish/guestfish-commands.pod:79
24911 msgid "See L</WILDCARDS AND GLOBBING>."
24912 msgstr ""
24913
24914 # type: =head2
24915 #: ../fish/guestfish-commands.pod:81
24916 msgid "hexedit"
24917 msgstr ""
24918
24919 # type: verbatim
24920 #: ../fish/guestfish-commands.pod:83
24921 #, no-wrap
24922 msgid ""
24923 " hexedit <filename|device>\n"
24924 " hexedit <filename|device> <max>\n"
24925 " hexedit <filename|device> <start> <max>\n"
24926 "\n"
24927 msgstr ""
24928
24929 # type: textblock
24930 #: ../fish/guestfish-commands.pod:87
24931 msgid ""
24932 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
24933 "device."
24934 msgstr ""
24935
24936 # type: textblock
24937 #: ../fish/guestfish-commands.pod:90
24938 msgid ""
24939 "This command works by downloading potentially the whole file or device, "
24940 "editing it locally, then uploading it.  If the file or device is large, you "
24941 "have to specify which part you wish to edit by using C<max> and/or C<start> "
24942 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
24943 "usual modifiers allowed such as C<1M> (1 megabyte)."
24944 msgstr ""
24945
24946 # type: textblock
24947 #: ../fish/guestfish-commands.pod:97
24948 msgid "For example to edit the first few sectors of a disk you might do:"
24949 msgstr ""
24950
24951 # type: verbatim
24952 #: ../fish/guestfish-commands.pod:100
24953 #, no-wrap
24954 msgid ""
24955 " hexedit /dev/sda 1M\n"
24956 "\n"
24957 msgstr ""
24958
24959 # type: textblock
24960 #: ../fish/guestfish-commands.pod:102
24961 msgid ""
24962 "which would allow you to edit anywhere within the first megabyte of the "
24963 "disk."
24964 msgstr ""
24965
24966 # type: textblock
24967 #: ../fish/guestfish-commands.pod:105
24968 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
24969 msgstr ""
24970
24971 # type: verbatim
24972 #: ../fish/guestfish-commands.pod:107
24973 #, no-wrap
24974 msgid ""
24975 " hexedit /dev/sda1 0x400 0x400\n"
24976 "\n"
24977 msgstr ""
24978
24979 # type: textblock
24980 #: ../fish/guestfish-commands.pod:109
24981 msgid "(assuming the superblock is in the standard location)."
24982 msgstr ""
24983
24984 # type: textblock
24985 #: ../fish/guestfish-commands.pod:111
24986 msgid ""
24987 "This command requires the external L<hexedit(1)> program.  You can specify "
24988 "another program to use by setting the C<HEXEDITOR> environment variable."
24989 msgstr ""
24990
24991 # type: textblock
24992 #: ../fish/guestfish-commands.pod:115
24993 msgid "See also L</hexdump>."
24994 msgstr ""
24995
24996 # type: =head2
24997 #: ../fish/guestfish-commands.pod:117
24998 msgid "lcd"
24999 msgstr ""
25000
25001 # type: verbatim
25002 #: ../fish/guestfish-commands.pod:119
25003 #, no-wrap
25004 msgid ""
25005 " lcd directory\n"
25006 "\n"
25007 msgstr ""
25008
25009 # type: textblock
25010 #: ../fish/guestfish-commands.pod:121
25011 msgid "Change the local directory, ie. the current directory of guestfish itself."
25012 msgstr ""
25013
25014 # type: textblock
25015 #: ../fish/guestfish-commands.pod:124
25016 msgid "Note that C<!cd> won't do what you might expect."
25017 msgstr ""
25018
25019 # type: =head2
25020 #: ../fish/guestfish-commands.pod:126
25021 msgid "man"
25022 msgstr ""
25023
25024 # type: =head2
25025 #: ../fish/guestfish-commands.pod:128
25026 msgid "manual"
25027 msgstr ""
25028
25029 # type: verbatim
25030 #: ../fish/guestfish-commands.pod:130
25031 #, no-wrap
25032 msgid ""
25033 "  man\n"
25034 "\n"
25035 msgstr ""
25036
25037 # type: textblock
25038 #: ../fish/guestfish-commands.pod:132
25039 msgid "Opens the manual page for guestfish."
25040 msgstr ""
25041
25042 # type: =head2
25043 #: ../fish/guestfish-commands.pod:134
25044 msgid "more"
25045 msgstr ""
25046
25047 # type: =head2
25048 #: ../fish/guestfish-commands.pod:136
25049 msgid "less"
25050 msgstr ""
25051
25052 # type: verbatim
25053 #: ../fish/guestfish-commands.pod:138
25054 #, no-wrap
25055 msgid ""
25056 " more filename\n"
25057 "\n"
25058 msgstr ""
25059
25060 # type: verbatim
25061 #: ../fish/guestfish-commands.pod:140
25062 #, no-wrap
25063 msgid ""
25064 " less filename\n"
25065 "\n"
25066 msgstr ""
25067
25068 # type: textblock
25069 #: ../fish/guestfish-commands.pod:142
25070 msgid "This is used to view a file."
25071 msgstr ""
25072
25073 # type: textblock
25074 #: ../fish/guestfish-commands.pod:144
25075 msgid ""
25076 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25077 "C<less> you will get the C<less> command specifically."
25078 msgstr ""
25079
25080 # type: =head2
25081 #: ../fish/guestfish-commands.pod:147
25082 msgid "reopen"
25083 msgstr ""
25084
25085 # type: verbatim
25086 #: ../fish/guestfish-commands.pod:149
25087 #, no-wrap
25088 msgid ""
25089 "  reopen\n"
25090 "\n"
25091 msgstr ""
25092
25093 # type: textblock
25094 #: ../fish/guestfish-commands.pod:151
25095 msgid ""
25096 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25097 "normally, because the handle is closed properly when guestfish exits.  "
25098 "However this is occasionally useful for testing."
25099 msgstr ""
25100
25101 # type: =head2
25102 #: ../fish/guestfish-commands.pod:155
25103 msgid "sparse"
25104 msgstr ""
25105
25106 # type: verbatim
25107 #: ../fish/guestfish-commands.pod:157
25108 #, no-wrap
25109 msgid ""
25110 " sparse filename size\n"
25111 "\n"
25112 msgstr ""
25113
25114 # type: textblock
25115 #: ../fish/guestfish-commands.pod:159
25116 msgid ""
25117 "This creates an empty sparse file of the given size, and then adds so it can "
25118 "be further examined."
25119 msgstr ""
25120
25121 # type: textblock
25122 #: ../fish/guestfish-commands.pod:162
25123 msgid ""
25124 "In all respects it works the same as the L</alloc> command, except that the "
25125 "image file is allocated sparsely, which means that disk blocks are not "
25126 "assigned to the file until they are needed.  Sparse disk files only use "
25127 "space when written to, but they are slower and there is a danger you could "
25128 "run out of real disk space during a write operation."
25129 msgstr ""
25130
25131 # type: =head2
25132 #: ../fish/guestfish-commands.pod:172
25133 msgid "supported"
25134 msgstr ""
25135
25136 # type: verbatim
25137 #: ../fish/guestfish-commands.pod:174
25138 #, no-wrap
25139 msgid ""
25140 " supported\n"
25141 "\n"
25142 msgstr ""
25143
25144 # type: textblock
25145 #: ../fish/guestfish-commands.pod:176
25146 msgid ""
25147 "This command returns a list of the optional groups known to the daemon, and "
25148 "indicates which ones are supported by this build of the libguestfs "
25149 "appliance."
25150 msgstr ""
25151
25152 # type: textblock
25153 #: ../fish/guestfish-commands.pod:180
25154 msgid "See also L<guestfs(3)/AVAILABILITY>."
25155 msgstr ""
25156
25157 # type: =head2
25158 #: ../fish/guestfish-commands.pod:182
25159 msgid "time"
25160 msgstr ""
25161
25162 # type: verbatim
25163 #: ../fish/guestfish-commands.pod:184
25164 #, no-wrap
25165 msgid ""
25166 " time command args...\n"
25167 "\n"
25168 msgstr ""
25169
25170 # type: textblock
25171 #: ../fish/guestfish-commands.pod:186
25172 msgid ""
25173 "Run the command as usual, but print the elapsed time afterwards.  This can "
25174 "be useful for benchmarking operations."
25175 msgstr ""
25176
25177 # type: textblock
25178 #: ../test-tool/libguestfs-test-tool.pod:5
25179 msgid "libguestfs-test-tool - End user tests for libguestfs"
25180 msgstr ""
25181
25182 # type: verbatim
25183 #: ../test-tool/libguestfs-test-tool.pod:9
25184 #, no-wrap
25185 msgid ""
25186 " libguestfs-test-tool [--options]\n"
25187 "\n"
25188 msgstr ""
25189
25190 # type: textblock
25191 #: ../test-tool/libguestfs-test-tool.pod:13
25192 msgid ""
25193 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25194 "and developers, to allow them to check basic libguestfs functionality is "
25195 "working.  This is needed because libguestfs occasionally breaks for reasons "
25196 "beyond our control: usually because of changes in the underlying qemu or "
25197 "kernel packages, or the host environment."
25198 msgstr ""
25199
25200 # type: textblock
25201 #: ../test-tool/libguestfs-test-tool.pod:20
25202 msgid "If you suspect a problem in libguestfs, then just run:"
25203 msgstr ""
25204
25205 # type: verbatim
25206 #: ../test-tool/libguestfs-test-tool.pod:22
25207 #, no-wrap
25208 msgid ""
25209 " libguestfs-test-tool\n"
25210 "\n"
25211 msgstr ""
25212
25213 # type: textblock
25214 #: ../test-tool/libguestfs-test-tool.pod:24
25215 msgid "It will print lots of diagnostic messages."
25216 msgstr ""
25217
25218 # type: textblock
25219 #: ../test-tool/libguestfs-test-tool.pod:26
25220 msgid "If it runs to completion successfully, you will see this near the end:"
25221 msgstr ""
25222
25223 # type: verbatim
25224 #: ../test-tool/libguestfs-test-tool.pod:28
25225 #, no-wrap
25226 msgid ""
25227 " ===== TEST FINISHED OK =====\n"
25228 "\n"
25229 msgstr ""
25230
25231 # type: textblock
25232 #: ../test-tool/libguestfs-test-tool.pod:30
25233 msgid "and the test tool will exit with code 0."
25234 msgstr ""
25235
25236 # type: textblock
25237 #: ../test-tool/libguestfs-test-tool.pod:32
25238 msgid ""
25239 "If it fails (and/or exits with non-zero error code), please paste the "
25240 "B<complete, unedited> output of the test tool into a bug report.  More "
25241 "information about reporting bugs can be found on the "
25242 "L<http://libguestfs.org/> website."
25243 msgstr ""
25244
25245 # type: =item
25246 #: ../test-tool/libguestfs-test-tool.pod:41
25247 msgid "I<--help>"
25248 msgstr ""
25249
25250 # type: textblock
25251 #: ../test-tool/libguestfs-test-tool.pod:43
25252 msgid "Display short usage information and exit."
25253 msgstr ""
25254
25255 # type: =item
25256 #: ../test-tool/libguestfs-test-tool.pod:45
25257 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25258 msgstr ""
25259
25260 # type: textblock
25261 #: ../test-tool/libguestfs-test-tool.pod:47
25262 msgid ""
25263 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
25264 "normally look in the C<$libexec> directory that was configured when the tool "
25265 "was built."
25266 msgstr ""
25267
25268 # type: =item
25269 #: ../test-tool/libguestfs-test-tool.pod:51
25270 msgid "I<--qemu qemu_binary>"
25271 msgstr ""
25272
25273 # type: textblock
25274 #: ../test-tool/libguestfs-test-tool.pod:53
25275 msgid ""
25276 "If you have downloaded another qemu binary, point this option at the full "
25277 "path of the binary to try it."
25278 msgstr ""
25279
25280 # type: =item
25281 #: ../test-tool/libguestfs-test-tool.pod:56
25282 msgid "I<--qemudir qemu_source_dir>"
25283 msgstr ""
25284
25285 # type: textblock
25286 #: ../test-tool/libguestfs-test-tool.pod:58
25287 msgid ""
25288 "If you have compiled qemu from source, point this option at the source "
25289 "directory to try it."
25290 msgstr ""
25291
25292 # type: =item
25293 #: ../test-tool/libguestfs-test-tool.pod:61
25294 msgid "I<--timeout N>"
25295 msgstr ""
25296
25297 # type: textblock
25298 #: ../test-tool/libguestfs-test-tool.pod:63
25299 msgid ""
25300 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
25301 "does not usually need to be adjusted unless your machine is very slow."
25302 msgstr ""
25303
25304 # type: =head1
25305 #: ../test-tool/libguestfs-test-tool.pod:69
25306 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
25307 msgstr ""
25308
25309 # type: textblock
25310 #: ../test-tool/libguestfs-test-tool.pod:71
25311 msgid ""
25312 "If you have compiled another version of qemu from source and would like to "
25313 "try that, then you can use the I<--qemudir> option to point to the qemu "
25314 "source directory."
25315 msgstr ""
25316
25317 # type: textblock
25318 #: ../test-tool/libguestfs-test-tool.pod:75
25319 msgid ""
25320 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
25321 "option to point to the binary."
25322 msgstr ""
25323
25324 # type: textblock
25325 #: ../test-tool/libguestfs-test-tool.pod:78
25326 msgid ""
25327 "When using an alternate qemu with libguestfs, usually you would need to "
25328 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
25329 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
25330 "when you use either of the I<--qemudir> or I<--qemu> options."
25331 msgstr ""
25332
25333 # type: textblock
25334 #: ../test-tool/libguestfs-test-tool.pod:85
25335 msgid ""
25336 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
25337 "I<1> if there was an error."
25338 msgstr ""
25339
25340 # type: =item
25341 #: ../test-tool/libguestfs-test-tool.pod:92
25342 msgid "/usr/libexec/libguestfs-test-tool-helper"
25343 msgstr ""
25344
25345 # type: textblock
25346 #: ../test-tool/libguestfs-test-tool.pod:94
25347 msgid ""
25348 "This helper program is run inside the appliance and provides additional "
25349 "tests."
25350 msgstr ""
25351
25352 # type: =item
25353 #: ../test-tool/libguestfs-test-tool.pod:97
25354 msgid "/usr/bin/mkisofs"
25355 msgstr ""
25356
25357 # type: textblock
25358 #: ../test-tool/libguestfs-test-tool.pod:99
25359 msgid ""
25360 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
25361 "which is used as part of the tests."
25362 msgstr ""
25363
25364 # type: textblock
25365 #: ../test-tool/libguestfs-test-tool.pod:106
25366 msgid ""
25367 "For the full list of environment variables which may affect libguestfs, "
25368 "please see the L<guestfs(3)> manual page."
25369 msgstr ""
25370
25371 # type: textblock
25372 #: ../test-tool/libguestfs-test-tool.pod:111
25373 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
25374 msgstr ""
25375
25376 # type: textblock
25377 #: ../test-tool/libguestfs-test-tool.pod:121
25378 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
25379 msgstr ""
25380
25381 # type: textblock
25382 #: ../fuse/guestmount.pod:5
25383 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
25384 msgstr ""
25385
25386 # type: verbatim
25387 #: ../fuse/guestmount.pod:9
25388 #, no-wrap
25389 msgid ""
25390 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
25391 "\n"
25392 msgstr ""
25393
25394 # type: verbatim
25395 #: ../fuse/guestmount.pod:11
25396 #, no-wrap
25397 msgid ""
25398 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
25399 "\n"
25400 msgstr ""
25401
25402 # type: verbatim
25403 #: ../fuse/guestmount.pod:13
25404 #, no-wrap
25405 msgid ""
25406 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
25407 "\n"
25408 msgstr ""
25409
25410 # type: textblock
25411 #: ../fuse/guestmount.pod:17
25412 msgid ""
25413 "You must I<not> use C<guestmount> in read-write mode on live virtual "
25414 "machines.  If you do this, you risk disk corruption in the VM."
25415 msgstr ""
25416
25417 # type: textblock
25418 #: ../fuse/guestmount.pod:22
25419 msgid ""
25420 "The guestmount program can be used to mount virtual machine filesystems and "
25421 "other disk images on the host.  It uses libguestfs for access to the guest "
25422 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
25423 "a mountable device."
25424 msgstr ""
25425
25426 # type: textblock
25427 #: ../fuse/guestmount.pod:27
25428 msgid ""
25429 "Along with other options, you have to give at least one device (I<-a> "
25430 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
25431 "option) or use the I<-i> inspection option.  How this works is better "
25432 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
25433 "below."
25434 msgstr ""
25435
25436 # type: textblock
25437 #: ../fuse/guestmount.pod:33
25438 msgid ""
25439 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
25440 "by you, and the filesystem will not be visible to any other users unless you "
25441 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
25442 "the filesystem, use the C<fusermount -u> command."
25443 msgstr ""
25444
25445 # type: textblock
25446 #: ../fuse/guestmount.pod:41
25447 msgid ""
25448 "For a typical Windows guest which has its main filesystem on the first "
25449 "partition:"
25450 msgstr ""
25451
25452 # type: verbatim
25453 #: ../fuse/guestmount.pod:44
25454 #, no-wrap
25455 msgid ""
25456 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
25457 "\n"
25458 msgstr ""
25459
25460 # type: textblock
25461 #: ../fuse/guestmount.pod:46
25462 msgid ""
25463 "For a typical Linux guest which has a /boot filesystem on the first "
25464 "partition, and the root filesystem on a logical volume:"
25465 msgstr ""
25466
25467 # type: verbatim
25468 #: ../fuse/guestmount.pod:49
25469 #, no-wrap
25470 msgid ""
25471 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
25472 "\n"
25473 msgstr ""
25474
25475 # type: textblock
25476 #: ../fuse/guestmount.pod:51
25477 msgid "To get libguestfs to detect guest mountpoints for you:"
25478 msgstr ""
25479
25480 # type: verbatim
25481 #: ../fuse/guestmount.pod:53
25482 #, no-wrap
25483 msgid ""
25484 " guestmount -a guest.img -i --ro /mnt\n"
25485 "\n"
25486 msgstr ""
25487
25488 # type: textblock
25489 #: ../fuse/guestmount.pod:55
25490 msgid "For a libvirt guest called \"Guest\" you could do:"
25491 msgstr ""
25492
25493 # type: verbatim
25494 #: ../fuse/guestmount.pod:57
25495 #, no-wrap
25496 msgid ""
25497 " guestmount -d Guest -i --ro /mnt\n"
25498 "\n"
25499 msgstr ""
25500
25501 # type: textblock
25502 #: ../fuse/guestmount.pod:59
25503 msgid ""
25504 "If you don't know what filesystems are contained in a guest or disk image, "
25505 "use L<virt-filesystems(1)> first:"
25506 msgstr ""
25507
25508 # type: verbatim
25509 #: ../fuse/guestmount.pod:62
25510 #, no-wrap
25511 msgid ""
25512 " virt-filesystems MyGuest\n"
25513 "\n"
25514 msgstr ""
25515
25516 # type: textblock
25517 #: ../fuse/guestmount.pod:64
25518 msgid ""
25519 "If you want to trace the libguestfs calls but without excessive debugging "
25520 "information, we recommend:"
25521 msgstr ""
25522
25523 # type: verbatim
25524 #: ../fuse/guestmount.pod:67
25525 #, no-wrap
25526 msgid ""
25527 " guestmount [...] --trace /mnt\n"
25528 "\n"
25529 msgstr ""
25530
25531 # type: textblock
25532 #: ../fuse/guestmount.pod:69
25533 msgid "If you want to debug the program, we recommend:"
25534 msgstr ""
25535
25536 # type: verbatim
25537 #: ../fuse/guestmount.pod:71
25538 #, no-wrap
25539 msgid ""
25540 " guestmount [...] --trace --verbose /mnt\n"
25541 "\n"
25542 msgstr ""
25543
25544 # type: =item
25545 #: ../fuse/guestmount.pod:77
25546 msgid "B<-a image> | B<--add image>"
25547 msgstr ""
25548
25549 # type: textblock
25550 #: ../fuse/guestmount.pod:79
25551 msgid "Add a block device or virtual machine image."
25552 msgstr ""
25553
25554 # type: =item
25555 #: ../fuse/guestmount.pod:84
25556 msgid "B<-c URI> | B<--connect URI>"
25557 msgstr ""
25558
25559 # type: =item
25560 #: ../fuse/guestmount.pod:90
25561 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
25562 msgstr ""
25563
25564 # type: =item
25565 #: ../fuse/guestmount.pod:96
25566 msgid "B<--dir-cache-timeout N>"
25567 msgstr ""
25568
25569 # type: textblock
25570 #: ../fuse/guestmount.pod:98
25571 msgid ""
25572 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
25573 "seconds.  The readdir cache [actually, there are several semi-independent "
25574 "caches] is populated after a readdir(2) call with the stat and extended "
25575 "attributes of the files in the directory, in anticipation that they will be "
25576 "requested soon after."
25577 msgstr ""
25578
25579 # type: textblock
25580 #: ../fuse/guestmount.pod:104
25581 msgid ""
25582 "There is also a different attribute cache implemented by FUSE (see the FUSE "
25583 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
25584 "requests, only cache existing ones."
25585 msgstr ""
25586
25587 # type: =item
25588 #: ../fuse/guestmount.pod:115
25589 msgid "B<--format=raw|qcow2|..> | B<--format>"
25590 msgstr ""
25591
25592 # type: textblock
25593 #: ../fuse/guestmount.pod:122
25594 msgid ""
25595 "If you have untrusted raw-format guest disk images, you should use this "
25596 "option to specify the disk format.  This avoids a possible security problem "
25597 "with malicious guests (CVE-2010-3851).  See also "
25598 "L<guestfs(3)/guestfs_add_drive_opts>."
25599 msgstr ""
25600
25601 # type: =item
25602 #: ../fuse/guestmount.pod:127
25603 msgid "B<--fuse-help>"
25604 msgstr ""
25605
25606 # type: textblock
25607 #: ../fuse/guestmount.pod:129
25608 msgid "Display help on special FUSE options (see I<-o> below)."
25609 msgstr ""
25610
25611 # type: textblock
25612 #: ../fuse/guestmount.pod:133
25613 msgid "Display brief help and exit."
25614 msgstr ""
25615
25616 # type: =item
25617 #: ../fuse/guestmount.pod:135
25618 msgid "B<-i> | B<--inspector>"
25619 msgstr ""
25620
25621 # type: =item
25622 #: ../fuse/guestmount.pod:146
25623 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
25624 msgstr ""
25625
25626 # type: textblock
25627 #: ../fuse/guestmount.pod:148
25628 msgid ""
25629 "Mount the named partition or logical volume on the given mountpoint B<in the "
25630 "guest> (this has nothing to do with mountpoints in the host)."
25631 msgstr ""
25632
25633 # type: textblock
25634 #: ../fuse/guestmount.pod:151
25635 msgid ""
25636 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
25637 "something on C</>."
25638 msgstr ""
25639
25640 # type: =item
25641 #: ../fuse/guestmount.pod:154
25642 msgid "B<-n> | B<--no-sync>"
25643 msgstr ""
25644
25645 # type: textblock
25646 #: ../fuse/guestmount.pod:156
25647 msgid ""
25648 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
25649 "unmounted.  If you specify this option, then we don't attempt to sync the "
25650 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
25651 msgstr ""
25652
25653 # type: =item
25654 #: ../fuse/guestmount.pod:161
25655 msgid "B<-o option> | B<--option option>"
25656 msgstr ""
25657
25658 # type: textblock
25659 #: ../fuse/guestmount.pod:163
25660 msgid "Pass extra options to FUSE."
25661 msgstr ""
25662
25663 # type: textblock
25664 #: ../fuse/guestmount.pod:165
25665 msgid ""
25666 "To get a list of all the extra options supported by FUSE, use the command "
25667 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
25668 "of them are a good idea."
25669 msgstr ""
25670
25671 # type: verbatim
25672 #: ../fuse/guestmount.pod:169
25673 #, no-wrap
25674 msgid ""
25675 " guestmount --fuse-help\n"
25676 "\n"
25677 msgstr ""
25678
25679 # type: textblock
25680 #: ../fuse/guestmount.pod:171
25681 msgid "Some potentially useful FUSE options:"
25682 msgstr ""
25683
25684 # type: =item
25685 #: ../fuse/guestmount.pod:175
25686 msgid "B<-o allow_other>"
25687 msgstr ""
25688
25689 # type: textblock
25690 #: ../fuse/guestmount.pod:177
25691 msgid "Allow other users to see the filesystem."
25692 msgstr ""
25693
25694 # type: =item
25695 #: ../fuse/guestmount.pod:179
25696 msgid "B<-o attr_timeout=N>"
25697 msgstr ""
25698
25699 # type: textblock
25700 #: ../fuse/guestmount.pod:181
25701 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
25702 msgstr ""
25703
25704 # type: =item
25705 #: ../fuse/guestmount.pod:183
25706 msgid "B<-o kernel_cache>"
25707 msgstr ""
25708
25709 # type: textblock
25710 #: ../fuse/guestmount.pod:185
25711 msgid ""
25712 "Allow the kernel to cache files (reduces the number of reads that have to go "
25713 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
25714 "afford the extra memory usage."
25715 msgstr ""
25716
25717 # type: =item
25718 #: ../fuse/guestmount.pod:189
25719 msgid "B<-o uid=N> B<-o gid=N>"
25720 msgstr ""
25721
25722 # type: textblock
25723 #: ../fuse/guestmount.pod:191
25724 msgid ""
25725 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
25726 "the chosen values."
25727 msgstr ""
25728
25729 # type: =item
25730 #: ../fuse/guestmount.pod:196
25731 msgid "B<-r> | B<--ro>"
25732 msgstr ""
25733
25734 # type: textblock
25735 #: ../fuse/guestmount.pod:198
25736 msgid ""
25737 "Add devices and mount everything read-only.  Also disallow writes and make "
25738 "the disk appear read-only to FUSE."
25739 msgstr ""
25740
25741 # type: textblock
25742 #: ../fuse/guestmount.pod:201
25743 msgid ""
25744 "This is highly recommended if you are not going to edit the guest disk.  If "
25745 "the guest is running and this option is I<not> supplied, then there is a "
25746 "strong risk of disk corruption in the guest.  We try to prevent this from "
25747 "happening, but it is not always possible."
25748 msgstr ""
25749
25750 # type: textblock
25751 #: ../fuse/guestmount.pod:206
25752 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
25753 msgstr ""
25754
25755 # type: textblock
25756 #: ../fuse/guestmount.pod:210
25757 msgid "Enable SELinux support for the guest."
25758 msgstr ""
25759
25760 # type: =item
25761 #: ../fuse/guestmount.pod:212
25762 msgid "B<-v> | B<--verbose>"
25763 msgstr ""
25764
25765 # type: textblock
25766 #: ../fuse/guestmount.pod:214
25767 msgid "Enable verbose messages from underlying libguestfs."
25768 msgstr ""
25769
25770 # type: =item
25771 #: ../fuse/guestmount.pod:216
25772 msgid "B<-V> | B<--version>"
25773 msgstr ""
25774
25775 # type: textblock
25776 #: ../fuse/guestmount.pod:218
25777 msgid "Display the program version and exit."
25778 msgstr ""
25779
25780 # type: =item
25781 #: ../fuse/guestmount.pod:220
25782 msgid "B<-w> | B<--rw>"
25783 msgstr ""
25784
25785 # type: textblock
25786 #: ../fuse/guestmount.pod:222
25787 msgid ""
25788 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
25789 "FOR READ AND WRITE>."
25790 msgstr ""
25791
25792 # type: =item
25793 #: ../fuse/guestmount.pod:225
25794 msgid "B<-x> | B<--trace>"
25795 msgstr ""
25796
25797 # type: textblock
25798 #: ../fuse/guestmount.pod:227
25799 msgid "Trace libguestfs calls."
25800 msgstr ""
25801
25802 # type: textblock
25803 #: ../fuse/guestmount.pod:229
25804 msgid "This also stops the daemon from forking into the background."
25805 msgstr ""
25806
25807 # type: textblock
25808 #: ../fuse/guestmount.pod:235
25809 msgid ""
25810 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
25811 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
25812 "L<http://fuse.sf.net/>."
25813 msgstr ""
25814
25815 # type: textblock
25816 #: ../tools/virt-edit.pl:34
25817 msgid "virt-edit - Edit a file in a virtual machine"
25818 msgstr ""
25819
25820 # type: verbatim
25821 #: ../tools/virt-edit.pl:38
25822 #, no-wrap
25823 msgid ""
25824 " virt-edit [--options] domname file\n"
25825 "\n"
25826 msgstr ""
25827
25828 # type: verbatim
25829 #: ../tools/virt-edit.pl:40
25830 #, no-wrap
25831 msgid ""
25832 " virt-edit [--options] disk.img [disk.img ...] file\n"
25833 "\n"
25834 msgstr ""
25835
25836 # type: verbatim
25837 #: ../tools/virt-edit.pl:42
25838 #, no-wrap
25839 msgid ""
25840 " virt-edit [domname|disk.img] file -e 'expr'\n"
25841 "\n"
25842 msgstr ""
25843
25844 # type: textblock
25845 #: ../tools/virt-edit.pl:46
25846 msgid ""
25847 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
25848 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
25849 "doing this, but doesn't catch all cases."
25850 msgstr ""
25851
25852 # type: textblock
25853 #: ../tools/virt-edit.pl:52
25854 msgid ""
25855 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
25856 "the named virtual machine (or disk image)."
25857 msgstr ""
25858
25859 # type: textblock
25860 #: ../tools/virt-edit.pl:55
25861 msgid ""
25862 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
25863 "you should look at the L<guestfish(1)> tool."
25864 msgstr ""
25865
25866 # type: textblock
25867 #: ../tools/virt-edit.pl:60
25868 msgid "Edit the named files interactively:"
25869 msgstr ""
25870
25871 # type: verbatim
25872 #: ../tools/virt-edit.pl:62
25873 #, no-wrap
25874 msgid ""
25875 " virt-edit mydomain /boot/grub/grub.conf\n"
25876 "\n"
25877 msgstr ""
25878
25879 # type: verbatim
25880 #: ../tools/virt-edit.pl:64
25881 #, no-wrap
25882 msgid ""
25883 " virt-edit mydomain /etc/passwd\n"
25884 "\n"
25885 msgstr ""
25886
25887 # type: textblock
25888 #: ../tools/virt-edit.pl:66
25889 msgid ""
25890 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
25891 "below).  To change the init default level to 5:"
25892 msgstr ""
25893
25894 # type: verbatim
25895 #: ../tools/virt-edit.pl:70
25896 #, no-wrap
25897 msgid ""
25898 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
25899 "\n"
25900 msgstr ""
25901
25902 # type: textblock
25903 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
25904 msgid "Display brief help."
25905 msgstr ""
25906
25907 # type: textblock
25908 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114 ../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
25909 msgid "Display version number and exit."
25910 msgstr ""
25911
25912 # type: =item
25913 #: ../tools/virt-edit.pl:96
25914 msgid "B<--backup extension> | B<-b extension>"
25915 msgstr ""
25916
25917 # type: textblock
25918 #: ../tools/virt-edit.pl:98
25919 msgid ""
25920 "Create a backup of the original file I<in the guest disk image>.  The backup "
25921 "has the original filename with C<extension> added."
25922 msgstr ""
25923
25924 # type: textblock
25925 #: ../tools/virt-edit.pl:101
25926 msgid ""
25927 "Usually the first character of C<extension> would be a dot C<.> so you would "
25928 "write:"
25929 msgstr ""
25930
25931 # type: verbatim
25932 #: ../tools/virt-edit.pl:104
25933 #, no-wrap
25934 msgid ""
25935 " virt-edit -b .orig [etc]\n"
25936 "\n"
25937 msgstr ""
25938
25939 # type: textblock
25940 #: ../tools/virt-edit.pl:106
25941 msgid "By default, no backup file is made."
25942 msgstr ""
25943
25944 # type: =item
25945 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122 ../tools/virt-list-partitions.pl:78
25946 msgid "B<--connect URI> | B<-c URI>"
25947 msgstr ""
25948
25949 # type: textblock
25950 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124 ../tools/virt-list-partitions.pl:80
25951 msgid ""
25952 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
25953 "to the default libvirt hypervisor."
25954 msgstr ""
25955
25956 # type: textblock
25957 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:83
25958 msgid ""
25959 "If you specify guest block devices directly, then libvirt is not used at "
25960 "all."
25961 msgstr ""
25962
25963 # type: =item
25964 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140 ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
25965 msgid "B<--format> raw"
25966 msgstr ""
25967
25968 # type: textblock
25969 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136 ../tools/virt-list-partitions.pl:92
25970 msgid ""
25971 "Specify the format of disk images given on the command line.  If this is "
25972 "omitted then the format is autodetected from the content of the disk image."
25973 msgstr ""
25974
25975 # type: textblock
25976 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140 ../tools/virt-list-partitions.pl:96
25977 msgid ""
25978 "If disk images are requested from libvirt, then this program asks libvirt "
25979 "for this information.  In this case, the value of the format parameter is "
25980 "ignored."
25981 msgstr ""
25982
25983 # type: textblock
25984 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150 ../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
25985 msgid ""
25986 "If working with untrusted raw-format guest disk images, you should ensure "
25987 "the format is always specified."
25988 msgstr ""
25989
25990 # type: =item
25991 #: ../tools/virt-edit.pl:141
25992 msgid "B<--expr EXPR> | B<-e EXPR>"
25993 msgstr ""
25994
25995 # type: textblock
25996 #: ../tools/virt-edit.pl:143
25997 msgid ""
25998 "Instead of launching the external editor, non-interactively apply the Perl "
25999 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
26000 "EDITING> below."
26001 msgstr ""
26002
26003 # type: textblock
26004 #: ../tools/virt-edit.pl:147
26005 msgid ""
26006 "Be careful to properly quote the expression to prevent it from being altered "
26007 "by the shell."
26008 msgstr ""
26009
26010 # type: =head1
26011 #: ../tools/virt-edit.pl:268
26012 msgid "NON-INTERACTIVE EDITING"
26013 msgstr ""
26014
26015 # type: textblock
26016 #: ../tools/virt-edit.pl:270
26017 msgid ""
26018 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
26019 "administrator can interactively edit the file."
26020 msgstr ""
26021
26022 # type: textblock
26023 #: ../tools/virt-edit.pl:273
26024 msgid ""
26025 "There are two ways also to use C<virt-edit> from scripts in order to make "
26026 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
26027 "like this, it's less error-prone to write scripts directly using the "
26028 "libguestfs API and Augeas for configuration file editing.)"
26029 msgstr ""
26030
26031 # type: textblock
26032 #: ../tools/virt-edit.pl:279
26033 msgid ""
26034 "The first method is to temporarily set C<$EDITOR> to any script or program "
26035 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
26036 "update C<tmpfile> in place however it likes."
26037 msgstr ""
26038
26039 # type: textblock
26040 #: ../tools/virt-edit.pl:283
26041 msgid ""
26042 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
26043 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
26044 "instances of C<foo> with C<bar> in a file:"
26045 msgstr ""
26046
26047 # type: verbatim
26048 #: ../tools/virt-edit.pl:287
26049 #, no-wrap
26050 msgid ""
26051 " virt-edit domname filename -e 's/foo/bar/'\n"
26052 "\n"
26053 msgstr ""
26054
26055 # type: textblock
26056 #: ../tools/virt-edit.pl:289
26057 msgid ""
26058 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
26059 "For example to delete root's password you could do:"
26060 msgstr ""
26061
26062 # type: verbatim
26063 #: ../tools/virt-edit.pl:292
26064 #, no-wrap
26065 msgid ""
26066 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
26067 "\n"
26068 msgstr ""
26069
26070 # type: textblock
26071 #: ../tools/virt-edit.pl:294
26072 msgid ""
26073 "What really happens is that the snippet is evaluated as a Perl expression "
26074 "for each line of the file.  The line, including the final C<\\n>, is passed "
26075 "in C<$_> and the expression should update C<$_> or leave it unchanged."
26076 msgstr ""
26077
26078 # type: textblock
26079 #: ../tools/virt-edit.pl:299
26080 msgid ""
26081 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
26082 "C<apache> user account from the password file you can do:"
26083 msgstr ""
26084
26085 # type: verbatim
26086 #: ../tools/virt-edit.pl:302
26087 #, no-wrap
26088 msgid ""
26089 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
26090 "\n"
26091 msgstr ""
26092
26093 # type: textblock
26094 #: ../tools/virt-edit.pl:304
26095 msgid ""
26096 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
26097 "the end of the file is rather difficult this way since there is no concept "
26098 "of \"last line of the file\" - your expression just doesn't get called "
26099 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
26100 "want to do this."
26101 msgstr ""
26102
26103 # type: textblock
26104 #: ../tools/virt-edit.pl:310
26105 msgid ""
26106 "The variable C<$lineno> contains the current line number.  As is "
26107 "traditional, the first line in the file is number C<1>."
26108 msgstr ""
26109
26110 # type: textblock
26111 #: ../tools/virt-edit.pl:313
26112 msgid ""
26113 "The return value from the expression is ignored, but the expression may call "
26114 "C<die> in order to abort the whole program, leaving the original file "
26115 "untouched."
26116 msgstr ""
26117
26118 # type: textblock
26119 #: ../tools/virt-edit.pl:317
26120 msgid ""
26121 "Remember when matching the end of a line that C<$_> may contain the final "
26122 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
26123 "newline then neither of these.  Thus to match or substitute some text at the "
26124 "end of a line, use this regular expression:"
26125 msgstr ""
26126
26127 # type: verbatim
26128 #: ../tools/virt-edit.pl:322
26129 #, no-wrap
26130 msgid ""
26131 " /some text(\\r?\\n)?$/\n"
26132 "\n"
26133 msgstr ""
26134
26135 # type: textblock
26136 #: ../tools/virt-edit.pl:324
26137 msgid ""
26138 "Alternately, use the perl C<chomp> function, being careful not to chomp "
26139 "C<$_> itself (since that would remove all newlines from the file):"
26140 msgstr ""
26141
26142 # type: verbatim
26143 #: ../tools/virt-edit.pl:328
26144 #, no-wrap
26145 msgid ""
26146 " my $m = $_; chomp $m; $m =~ /some text$/\n"
26147 "\n"
26148 msgstr ""
26149
26150 # type: =item
26151 #: ../tools/virt-edit.pl:334
26152 msgid "C<EDITOR>"
26153 msgstr ""
26154
26155 # type: textblock
26156 #: ../tools/virt-edit.pl:336
26157 msgid ""
26158 "If set, this string is used as the editor.  It may contain arguments, "
26159 "eg. C<\"emacs -nw\">"
26160 msgstr ""
26161
26162 # type: textblock
26163 #: ../tools/virt-edit.pl:339
26164 msgid "If not set, C<vi> is used."
26165 msgstr ""
26166
26167 # type: =head1
26168 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559 ../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
26169 msgid "SHELL QUOTING"
26170 msgstr ""
26171
26172 # type: textblock
26173 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567 ../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
26174 msgid ""
26175 "Libvirt guest names can contain arbitrary characters, some of which have "
26176 "meaning to the shell such as C<#> and space.  You may need to quote or "
26177 "escape these characters on the command line.  See the shell manual page "
26178 "L<sh(1)> for details."
26179 msgstr ""
26180
26181 # type: textblock
26182 #: ../tools/virt-edit.pl:352
26183 msgid ""
26184 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26185 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
26186 "L<perl(1)>, L<perlre(1)>."
26187 msgstr ""
26188
26189 # type: =head1
26190 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:598 ../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
26191 msgid "AUTHOR"
26192 msgstr ""
26193
26194 # type: textblock
26195 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:600 ../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
26196 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
26197 msgstr ""
26198
26199 # type: textblock
26200 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
26201 msgid "Copyright (C) 2009-2010 Red Hat Inc."
26202 msgstr ""
26203
26204 # type: textblock
26205 #: ../tools/virt-win-reg.pl:37
26206 msgid ""
26207 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
26208 "guest"
26209 msgstr ""
26210
26211 # type: verbatim
26212 #: ../tools/virt-win-reg.pl:41
26213 #, no-wrap
26214 msgid ""
26215 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
26216 "\n"
26217 msgstr ""
26218
26219 # type: verbatim
26220 #: ../tools/virt-win-reg.pl:43
26221 #, no-wrap
26222 msgid ""
26223 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
26224 "\n"
26225 msgstr ""
26226
26227 # type: verbatim
26228 #: ../tools/virt-win-reg.pl:45
26229 #, no-wrap
26230 msgid ""
26231 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
26232 "\n"
26233 msgstr ""
26234
26235 # type: verbatim
26236 #: ../tools/virt-win-reg.pl:47
26237 #, no-wrap
26238 msgid ""
26239 " virt-win-reg --merge domname [input.reg ...]\n"
26240 "\n"
26241 msgstr ""
26242
26243 # type: verbatim
26244 #: ../tools/virt-win-reg.pl:49
26245 #, no-wrap
26246 msgid ""
26247 " virt-win-reg [--options] disk.img ... # instead of domname\n"
26248 "\n"
26249 msgstr ""
26250
26251 # type: textblock
26252 #: ../tools/virt-win-reg.pl:53
26253 msgid ""
26254 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
26255 "virtual machines.  If you do this, you I<will> get irreversible disk "
26256 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
26257 "but doesn't catch all cases."
26258 msgstr ""
26259
26260 # type: textblock
26261 #: ../tools/virt-win-reg.pl:58
26262 msgid ""
26263 "Modifying the Windows Registry is an inherently risky operation.  The format "
26264 "is deliberately obscure and undocumented, and Registry changes can leave the "
26265 "system unbootable.  Therefore when using the C<--merge> option, make sure "
26266 "you have a reliable backup first."
26267 msgstr ""
26268
26269 # type: textblock
26270 #: ../tools/virt-win-reg.pl:65
26271 msgid ""
26272 "This program can export and merge Windows Registry entries from a Windows "
26273 "guest."
26274 msgstr ""
26275
26276 # type: textblock
26277 #: ../tools/virt-win-reg.pl:68
26278 msgid ""
26279 "The first parameter is the libvirt guest name or the raw disk image of a "
26280 "Windows guest."
26281 msgstr ""
26282
26283 # type: textblock
26284 #: ../tools/virt-win-reg.pl:71
26285 msgid ""
26286 "If C<--merge> is I<not> specified, then the chosen registry key is "
26287 "displayed/exported (recursively).  For example:"
26288 msgstr ""
26289
26290 # type: verbatim
26291 #: ../tools/virt-win-reg.pl:74
26292 #, no-wrap
26293 msgid ""
26294 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
26295 "\n"
26296 msgstr ""
26297
26298 # type: textblock
26299 #: ../tools/virt-win-reg.pl:76
26300 msgid "You can also display single values from within registry keys, for example:"
26301 msgstr ""
26302
26303 # type: verbatim
26304 #: ../tools/virt-win-reg.pl:79
26305 #, no-wrap
26306 msgid ""
26307 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
26308 " $ virt-win-reg Windows7 $cvkey ProductName\n"
26309 " Windows 7 Enterprise\n"
26310 "\n"
26311 msgstr ""
26312
26313 # type: textblock
26314 #: ../tools/virt-win-reg.pl:83
26315 msgid ""
26316 "With C<--merge>, you can merge a textual regedit file into the Windows "
26317 "Registry:"
26318 msgstr ""
26319
26320 # type: verbatim
26321 #: ../tools/virt-win-reg.pl:86
26322 #, no-wrap
26323 msgid ""
26324 " $ virt-win-reg --merge Windows7 changes.reg\n"
26325 "\n"
26326 msgstr ""
26327
26328 # type: =head2
26329 #: ../tools/virt-win-reg.pl:88
26330 msgid "NOTE"
26331 msgstr ""
26332
26333 # type: textblock
26334 #: ../tools/virt-win-reg.pl:90
26335 msgid ""
26336 "This program is only meant for simple access to the registry.  If you want "
26337 "to do complicated things with the registry, we suggest you download the "
26338 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
26339 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
26340 "L<hivexregedit(1)>."
26341 msgstr ""
26342
26343 # type: =item
26344 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
26345 msgid "B<--debug>"
26346 msgstr ""
26347
26348 # type: textblock
26349 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
26350 msgid "Enable debugging messages."
26351 msgstr ""
26352
26353 # type: =item
26354 #: ../tools/virt-win-reg.pl:157
26355 msgid "B<--merge>"
26356 msgstr ""
26357
26358 # type: textblock
26359 #: ../tools/virt-win-reg.pl:159
26360 msgid ""
26361 "In merge mode, this merges a textual regedit file into the Windows Registry "
26362 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
26363 "displays or exports Registry entries instead."
26364 msgstr ""
26365
26366 # type: textblock
26367 #: ../tools/virt-win-reg.pl:163
26368 msgid ""
26369 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
26370 "result in disk corruption.  However exporting (without this flag)  is always "
26371 "safe."
26372 msgstr ""
26373
26374 # type: =item
26375 #: ../tools/virt-win-reg.pl:171
26376 msgid "B<--encoding> UTF-16LE|ASCII"
26377 msgstr ""
26378
26379 # type: textblock
26380 #: ../tools/virt-win-reg.pl:173
26381 msgid ""
26382 "When merging (only), you may need to specify the encoding for strings to be "
26383 "used in the hive file.  This is explained in detail in "
26384 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
26385 msgstr ""
26386
26387 # type: textblock
26388 #: ../tools/virt-win-reg.pl:177
26389 msgid ""
26390 "The default is to use UTF-16LE, which should work with recent versions of "
26391 "Windows."
26392 msgstr ""
26393
26394 # type: =head1
26395 #: ../tools/virt-win-reg.pl:402
26396 msgid "SUPPORTED SYSTEMS"
26397 msgstr ""
26398
26399 # type: textblock
26400 #: ../tools/virt-win-reg.pl:404
26401 msgid ""
26402 "The program currently supports Windows NT-derived guests starting with "
26403 "Windows XP through to at least Windows 7."
26404 msgstr ""
26405
26406 # type: textblock
26407 #: ../tools/virt-win-reg.pl:407
26408 msgid ""
26409 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
26410 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
26411 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
26412 msgstr ""
26413
26414 # type: textblock
26415 #: ../tools/virt-win-reg.pl:411
26416 msgid ""
26417 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
26418 "C<HKEY_USERS>."
26419 msgstr ""
26420
26421 # type: textblock
26422 #: ../tools/virt-win-reg.pl:414
26423 msgid ""
26424 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
26425 "time."
26426 msgstr ""
26427
26428 # type: =head1
26429 #: ../tools/virt-win-reg.pl:417
26430 msgid "ENCODING"
26431 msgstr ""
26432
26433 # type: textblock
26434 #: ../tools/virt-win-reg.pl:419
26435 msgid ""
26436 "C<virt-win-reg> expects that regedit files have already been reencoded in "
26437 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
26438 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
26439 "with Windows-style line endings, you may need to reencode the whole file "
26440 "before or after processing."
26441 msgstr ""
26442
26443 # type: textblock
26444 #: ../tools/virt-win-reg.pl:425
26445 msgid ""
26446 "To reencode a file from Windows format to Linux (before processing it with "
26447 "the C<--merge> option), you would do something like this:"
26448 msgstr ""
26449
26450 # type: verbatim
26451 #: ../tools/virt-win-reg.pl:428
26452 #, no-wrap
26453 msgid ""
26454 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
26455 "\n"
26456 msgstr ""
26457
26458 # type: textblock
26459 #: ../tools/virt-win-reg.pl:430
26460 msgid ""
26461 "To go in the opposite direction, after exporting and before sending the file "
26462 "to a Windows user, do something like this:"
26463 msgstr ""
26464
26465 # type: verbatim
26466 #: ../tools/virt-win-reg.pl:433
26467 #, no-wrap
26468 msgid ""
26469 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
26470 "\n"
26471 msgstr ""
26472
26473 # type: textblock
26474 #: ../tools/virt-win-reg.pl:435
26475 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
26476 msgstr ""
26477
26478 # type: textblock
26479 #: ../tools/virt-win-reg.pl:437
26480 msgid ""
26481 "If you are unsure about the current encoding, use the L<file(1)> command.  "
26482 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
26483 "Windows-style (CRLF) line endings, like this:"
26484 msgstr ""
26485
26486 # type: verbatim
26487 #: ../tools/virt-win-reg.pl:441
26488 #, no-wrap
26489 msgid ""
26490 " $ file software.reg\n"
26491 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
26492 " with CRLF line terminators\n"
26493 "\n"
26494 msgstr ""
26495
26496 # type: textblock
26497 #: ../tools/virt-win-reg.pl:445
26498 msgid "This file would need conversion before you could C<--merge> it."
26499 msgstr ""
26500
26501 # type: =head1
26502 #: ../tools/virt-win-reg.pl:447
26503 msgid "CurrentControlSet etc."
26504 msgstr ""
26505
26506 # type: textblock
26507 #: ../tools/virt-win-reg.pl:449
26508 msgid ""
26509 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
26510 "Registry at the level of the hive file, and therefore you cannot modify "
26511 "these."
26512 msgstr ""
26513
26514 # type: textblock
26515 #: ../tools/virt-win-reg.pl:453
26516 msgid ""
26517 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
26518 "circumstances it might refer to another control set.  The way to find out is "
26519 "to look at the C<HKLM\\SYSTEM\\Select> key:"
26520 msgstr ""
26521
26522 # type: verbatim
26523 #: ../tools/virt-win-reg.pl:457
26524 #, no-wrap
26525 msgid ""
26526 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
26527 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
26528 " \"Current\"=dword:00000001\n"
26529 " \"Default\"=dword:00000001\n"
26530 " \"Failed\"=dword:00000000\n"
26531 " \"LastKnownGood\"=dword:00000002\n"
26532 "\n"
26533 msgstr ""
26534
26535 # type: textblock
26536 #: ../tools/virt-win-reg.pl:464
26537 msgid "\"Current\" is the one which Windows will choose when it boots."
26538 msgstr ""
26539
26540 # type: textblock
26541 #: ../tools/virt-win-reg.pl:466
26542 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
26543 msgstr ""
26544
26545 # type: =head1
26546 #: ../tools/virt-win-reg.pl:469
26547 msgid "WINDOWS TIPS"
26548 msgstr ""
26549
26550 # type: textblock
26551 #: ../tools/virt-win-reg.pl:471
26552 msgid ""
26553 "Note that some of these tips modify the guest disk image.  The guest I<must> "
26554 "be shut off, else you will get disk corruption."
26555 msgstr ""
26556
26557 # type: =head2
26558 #: ../tools/virt-win-reg.pl:474
26559 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
26560 msgstr ""
26561
26562 # type: textblock
26563 #: ../tools/virt-win-reg.pl:476
26564 msgid ""
26565 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
26566 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
26567 "is uploaded into C<C:\\>:"
26568 msgstr ""
26569
26570 # type: verbatim
26571 #: ../tools/virt-win-reg.pl:480
26572 #, no-wrap
26573 msgid ""
26574 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
26575 "\n"
26576 msgstr ""
26577
26578 # type: textblock
26579 #: ../tools/virt-win-reg.pl:482
26580 msgid "Prepare a regedit file containing the registry change:"
26581 msgstr ""
26582
26583 # type: verbatim
26584 #: ../tools/virt-win-reg.pl:484
26585 #, no-wrap
26586 msgid ""
26587 " cat > test.reg <<'EOF'\n"
26588 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
26589 " \"Test\"=\"c:\\\\test.bat\"\n"
26590 " EOF\n"
26591 "\n"
26592 msgstr ""
26593
26594 # type: textblock
26595 #: ../tools/virt-win-reg.pl:489
26596 msgid ""
26597 "In this example we use the key C<RunOnce> which means that the script will "
26598 "run precisely once when the first user logs in.  If you want it to run every "
26599 "time a user logs in, replace C<RunOnce> with C<Run>."
26600 msgstr ""
26601
26602 # type: textblock
26603 #: ../tools/virt-win-reg.pl:493
26604 msgid "Now update the registry:"
26605 msgstr ""
26606
26607 # type: verbatim
26608 #: ../tools/virt-win-reg.pl:495
26609 #, no-wrap
26610 msgid ""
26611 " virt-win-reg --merge WindowsGuest test.reg\n"
26612 "\n"
26613 msgstr ""
26614
26615 # type: =head2
26616 #: ../tools/virt-win-reg.pl:497
26617 msgid "INSTALLING A SERVICE"
26618 msgstr ""
26619
26620 # type: textblock
26621 #: ../tools/virt-win-reg.pl:499
26622 msgid ""
26623 "This section assumes you are familiar with Windows services, and you either "
26624 "have a program which handles the Windows Service Control Protocol directly "
26625 "or you want to run any program using a service wrapper like SrvAny or the "
26626 "free RHSrvAny."
26627 msgstr ""
26628
26629 # type: textblock
26630 #: ../tools/virt-win-reg.pl:504
26631 msgid ""
26632 "First upload the program and optionally the service wrapper.  In this case "
26633 "the test program is called C<test.exe> and we are using the RHSrvAny "
26634 "wrapper:"
26635 msgstr ""
26636
26637 # type: verbatim
26638 #: ../tools/virt-win-reg.pl:508
26639 #, no-wrap
26640 msgid ""
26641 " guestfish -i -d WindowsGuest <<EOF\n"
26642 "   upload rhsrvany.exe /rhsrvany.exe\n"
26643 "   upload test.exe /test.exe\n"
26644 " EOF\n"
26645 "\n"
26646 msgstr ""
26647
26648 # type: textblock
26649 #: ../tools/virt-win-reg.pl:513
26650 msgid ""
26651 "Prepare a regedit file containing the registry changes.  In this example, "
26652 "the first registry change is needed for the service itself or the service "
26653 "wrapper (if used).  The second registry change is only needed because I am "
26654 "using the RHSrvAny service wrapper."
26655 msgstr ""
26656
26657 # type: verbatim
26658 #: ../tools/virt-win-reg.pl:518
26659 #, no-wrap
26660 msgid ""
26661 " cat > service.reg <<'EOF'\n"
26662 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
26663 " \"Type\"=dword:00000010\n"
26664 " \"Start\"=dword:00000002\n"
26665 " \"ErrorControl\"=dword:00000001\n"
26666 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
26667 " \"DisplayName\"=\"RHSrvAny\"\n"
26668 " \"ObjectName\"=\"NetworkService\"\n"
26669 " \n"
26670 msgstr ""
26671
26672 # type: verbatim
26673 #: ../tools/virt-win-reg.pl:527
26674 #, no-wrap
26675 msgid ""
26676 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
26677 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
26678 " \"PWD\"=\"c:\\\\Temp\"\n"
26679 " EOF\n"
26680 "\n"
26681 msgstr ""
26682
26683 # type: textblock
26684 #: ../tools/virt-win-reg.pl:538
26685 msgid ""
26686 "For use of C<ControlSet001> see the section above in this manual page.  You "
26687 "may need to adjust this according to the control set that is in use by the "
26688 "guest."
26689 msgstr ""
26690
26691 # type: textblock
26692 #: ../tools/virt-win-reg.pl:544
26693 msgid ""
26694 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
26695 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
26696 "privileged account."
26697 msgstr ""
26698
26699 # type: textblock
26700 #: ../tools/virt-win-reg.pl:550
26701 msgid ""
26702 "For the meaning of the magic numbers, see this Microsoft KB article: "
26703 "L<http://support.microsoft.com/kb/103000>."
26704 msgstr ""
26705
26706 # type: textblock
26707 #: ../tools/virt-win-reg.pl:555
26708 msgid "Update the registry:"
26709 msgstr ""
26710
26711 # type: verbatim
26712 #: ../tools/virt-win-reg.pl:557
26713 #, no-wrap
26714 msgid ""
26715 " virt-win-reg --merge WindowsGuest service.reg\n"
26716 "\n"
26717 msgstr ""
26718
26719 # type: textblock
26720 #: ../tools/virt-win-reg.pl:561
26721 msgid ""
26722 "Be careful when passing parameters containing C<\\> (backslash) in the "
26723 "shell.  Usually you will have to use 'single quotes' or double backslashes "
26724 "(but not both) to protect them from the shell."
26725 msgstr ""
26726
26727 # type: textblock
26728 #: ../tools/virt-win-reg.pl:565
26729 msgid "Paths and value names are case-insensitive."
26730 msgstr ""
26731
26732 # type: textblock
26733 #: ../tools/virt-win-reg.pl:574
26734 msgid ""
26735 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
26736 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
26737 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
26738 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
26739 msgstr ""
26740
26741 # type: textblock
26742 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
26743 msgid ""
26744 "When reporting bugs, please enable debugging and capture the I<complete> "
26745 "output:"
26746 msgstr ""
26747
26748 # type: verbatim
26749 #: ../tools/virt-win-reg.pl:592
26750 #, no-wrap
26751 msgid ""
26752 " export LIBGUESTFS_DEBUG=1\n"
26753 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
26754 "\n"
26755 msgstr ""
26756
26757 # type: textblock
26758 #: ../tools/virt-win-reg.pl:595
26759 msgid ""
26760 "Attach /tmp/virt-win-reg.log to a new bug report at "
26761 "L<https://bugzilla.redhat.com/>"
26762 msgstr ""
26763
26764 # type: textblock
26765 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510 ../tools/virt-make-fs.pl:565
26766 msgid "Copyright (C) 2010 Red Hat Inc."
26767 msgstr ""
26768
26769 # type: textblock
26770 #: ../tools/virt-resize.pl:42
26771 msgid "virt-resize - Resize a virtual machine disk"
26772 msgstr ""
26773
26774 # type: verbatim
26775 #: ../tools/virt-resize.pl:46
26776 #, no-wrap
26777 msgid ""
26778 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
26779 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
26780 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
26781 "\n"
26782 msgstr ""
26783
26784 # type: textblock
26785 #: ../tools/virt-resize.pl:52
26786 msgid ""
26787 "Virt-resize is a tool which can resize a virtual machine disk, making it "
26788 "larger or smaller overall, and resizing or deleting any partitions contained "
26789 "within."
26790 msgstr ""
26791
26792 # type: textblock
26793 #: ../tools/virt-resize.pl:56
26794 msgid ""
26795 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
26796 "not> be used on live virtual machines - for consistent results, shut the "
26797 "virtual machine down before resizing it."
26798 msgstr ""
26799
26800 # type: textblock
26801 #: ../tools/virt-resize.pl:60
26802 msgid ""
26803 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
26804 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
26805 msgstr ""
26806
26807 # type: textblock
26808 #: ../tools/virt-resize.pl:66
26809 msgid ""
26810 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
26811 "fill the extra 5GB of space."
26812 msgstr ""
26813
26814 # type: verbatim
26815 #: ../tools/virt-resize.pl:69
26816 #, no-wrap
26817 msgid ""
26818 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
26819 " virt-filesystems --long --h --all -a olddisk\n"
26820 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
26821 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
26822 "\n"
26823 msgstr ""
26824
26825 # type: textblock
26826 #: ../tools/virt-resize.pl:74
26827 msgid ""
26828 "As above, but make the /boot partition 200MB bigger, while giving the "
26829 "remaining space to /dev/sda2:"
26830 msgstr ""
26831
26832 # type: verbatim
26833 #: ../tools/virt-resize.pl:77
26834 #, no-wrap
26835 msgid ""
26836 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
26837 "\n"
26838 msgstr ""
26839
26840 # type: textblock
26841 #: ../tools/virt-resize.pl:79
26842 msgid "As above, but the output format will be uncompressed qcow2:"
26843 msgstr ""
26844
26845 # type: verbatim
26846 #: ../tools/virt-resize.pl:81
26847 #, no-wrap
26848 msgid ""
26849 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
26850 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
26851 "\n"
26852 msgstr ""
26853
26854 # type: =head1
26855 #: ../tools/virt-resize.pl:84
26856 msgid "DETAILED USAGE"
26857 msgstr ""
26858
26859 # type: =head2
26860 #: ../tools/virt-resize.pl:86
26861 msgid "EXPANDING A VIRTUAL MACHINE DISK"
26862 msgstr ""
26863
26864 # type: =item
26865 #: ../tools/virt-resize.pl:90
26866 msgid "1. Shut down the virtual machine"
26867 msgstr ""
26868
26869 # type: =item
26870 #: ../tools/virt-resize.pl:92
26871 msgid "2. Locate input disk image"
26872 msgstr ""
26873
26874 # type: textblock
26875 #: ../tools/virt-resize.pl:94
26876 msgid ""
26877 "Locate the input disk image (ie. the file or device on the host containing "
26878 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
26879 "dumpxml> like this to find the disk image name:"
26880 msgstr ""
26881
26882 # type: verbatim
26883 #: ../tools/virt-resize.pl:98
26884 #, no-wrap
26885 msgid ""
26886 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
26887 " Found 1 nodes:\n"
26888 " -- NODE --\n"
26889 " <source dev=\"/dev/vg/lv_guest\" />\n"
26890 "\n"
26891 msgstr ""
26892
26893 # type: =item
26894 #: ../tools/virt-resize.pl:103
26895 msgid "3. Look at current sizing"
26896 msgstr ""
26897
26898 # type: textblock
26899 #: ../tools/virt-resize.pl:105
26900 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
26901 msgstr ""
26902
26903 # type: verbatim
26904 #: ../tools/virt-resize.pl:108
26905 #, no-wrap
26906 msgid ""
26907 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
26908 " Name       Type       Size  Parent\n"
26909 " /dev/sda1  partition  101M  /dev/sda\n"
26910 " /dev/sda2  partition  7.9G  /dev/sda\n"
26911 " /dev/sda   device     8.0G  -\n"
26912 "\n"
26913 msgstr ""
26914
26915 # type: textblock
26916 #: ../tools/virt-resize.pl:114
26917 msgid ""
26918 "(This example is a virtual machine with an 8 GB disk which we would like to "
26919 "expand up to 10 GB)."
26920 msgstr ""
26921
26922 # type: =item
26923 #: ../tools/virt-resize.pl:117
26924 msgid "4. Create output disk"
26925 msgstr ""
26926
26927 # type: textblock
26928 #: ../tools/virt-resize.pl:119
26929 msgid ""
26930 "Virt-resize cannot do in-place disk modifications.  You have to have space "
26931 "to store the resized output disk."
26932 msgstr ""
26933
26934 # type: textblock
26935 #: ../tools/virt-resize.pl:122
26936 msgid "To store the resized disk image in a file, create a file of a suitable size:"
26937 msgstr ""
26938
26939 # type: verbatim
26940 #: ../tools/virt-resize.pl:125
26941 #, no-wrap
26942 msgid ""
26943 " # rm -f outdisk\n"
26944 " # truncate -s 10G outdisk\n"
26945 "\n"
26946 msgstr ""
26947
26948 # type: textblock
26949 #: ../tools/virt-resize.pl:128
26950 msgid "Or use L<lvcreate(1)> to create a logical volume:"
26951 msgstr ""
26952
26953 # type: verbatim
26954 #: ../tools/virt-resize.pl:130
26955 #, no-wrap
26956 msgid ""
26957 " # lvcreate -L 10G -n lv_name vg_name\n"
26958 "\n"
26959 msgstr ""
26960
26961 # type: textblock
26962 #: ../tools/virt-resize.pl:132
26963 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
26964 msgstr ""
26965
26966 # type: verbatim
26967 #: ../tools/virt-resize.pl:134
26968 #, no-wrap
26969 msgid ""
26970 " # virsh pool-list\n"
26971 " # virsh vol-create-as poolname newvol 10G\n"
26972 "\n"
26973 msgstr ""
26974
26975 # type: =item
26976 #: ../tools/virt-resize.pl:137
26977 msgid "5. Resize"
26978 msgstr ""
26979
26980 # type: textblock
26981 #: ../tools/virt-resize.pl:139
26982 msgid ""
26983 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
26984 "file) and the output disk.  The output disk is the one created in the "
26985 "previous step."
26986 msgstr ""
26987
26988 # type: verbatim
26989 #: ../tools/virt-resize.pl:143
26990 #, no-wrap
26991 msgid ""
26992 " # virt-resize indisk outdisk\n"
26993 "\n"
26994 msgstr ""
26995
26996 # type: textblock
26997 #: ../tools/virt-resize.pl:145
26998 msgid ""
26999 "This command just copies disk image C<indisk> to disk image C<outdisk> "
27000 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
27001 "larger, then an extra, empty partition is created at the end of the disk "
27002 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
27003 "error."
27004 msgstr ""
27005
27006 # type: textblock
27007 #: ../tools/virt-resize.pl:151
27008 msgid ""
27009 "More realistically you'd want to expand existing partitions in the disk "
27010 "image by passing extra options (for the full list see the L</OPTIONS> "
27011 "section below)."
27012 msgstr ""
27013
27014 # type: textblock
27015 #: ../tools/virt-resize.pl:155
27016 msgid ""
27017 "L</--expand> is the most useful option.  It expands the named partition "
27018 "within the disk to fill any extra space:"
27019 msgstr ""
27020
27021 # type: verbatim
27022 #: ../tools/virt-resize.pl:158
27023 #, no-wrap
27024 msgid ""
27025 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
27026 "\n"
27027 msgstr ""
27028
27029 # type: textblock
27030 #: ../tools/virt-resize.pl:160
27031 msgid ""
27032 "(In this case, an extra partition is I<not> created at the end of the disk, "
27033 "because there will be no unused space)."
27034 msgstr ""
27035
27036 # type: textblock
27037 #: ../tools/virt-resize.pl:163
27038 msgid ""
27039 "L</--resize> is the other commonly used option.  The following would "
27040 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
27041 "rest of the available space:"
27042 msgstr ""
27043
27044 # type: verbatim
27045 #: ../tools/virt-resize.pl:167
27046 #, no-wrap
27047 msgid ""
27048 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
27049 "     indisk outdisk\n"
27050 "\n"
27051 msgstr ""
27052
27053 # type: textblock
27054 #: ../tools/virt-resize.pl:170
27055 msgid ""
27056 "If the expanded partition in the image contains a filesystem or LVM PV, then "
27057 "if virt-resize knows how, it will resize the contents, the equivalent of "
27058 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
27059 "L<ntfsresize(8)>.  However virt-resize does not know how to resize some "
27060 "filesystems, so you would have to online resize them after booting the "
27061 "guest."
27062 msgstr ""
27063
27064 # type: textblock
27065 #: ../tools/virt-resize.pl:177
27066 msgid "Other options are covered below."
27067 msgstr ""
27068
27069 # type: =item
27070 #: ../tools/virt-resize.pl:179
27071 msgid "6. Test"
27072 msgstr ""
27073
27074 # type: textblock
27075 #: ../tools/virt-resize.pl:181
27076 msgid "Thoroughly test the new disk image I<before> discarding the old one."
27077 msgstr ""
27078
27079 # type: textblock
27080 #: ../tools/virt-resize.pl:183
27081 msgid "If you are using libvirt, edit the XML to point at the new disk:"
27082 msgstr ""
27083
27084 # type: verbatim
27085 #: ../tools/virt-resize.pl:185
27086 #, no-wrap
27087 msgid ""
27088 " # virsh edit guestname\n"
27089 "\n"
27090 msgstr ""
27091
27092 # type: textblock
27093 #: ../tools/virt-resize.pl:187
27094 msgid ""
27095 "Change E<lt>source ...E<gt>, see "
27096 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
27097 msgstr ""
27098
27099 # type: textblock
27100 #: ../tools/virt-resize.pl:190
27101 msgid "Then start up the domain with the new, resized disk:"
27102 msgstr ""
27103
27104 # type: verbatim
27105 #: ../tools/virt-resize.pl:192
27106 #, no-wrap
27107 msgid ""
27108 " # virsh start guestname\n"
27109 "\n"
27110 msgstr ""
27111
27112 # type: textblock
27113 #: ../tools/virt-resize.pl:194
27114 msgid ""
27115 "and check that it still works.  See also the L</NOTES> section below for "
27116 "additional information."
27117 msgstr ""
27118
27119 # type: =item
27120 #: ../tools/virt-resize.pl:197
27121 msgid "7. Resize LVs etc inside the guest"
27122 msgstr ""
27123
27124 # type: textblock
27125 #: ../tools/virt-resize.pl:199
27126 msgid "(This can also be done offline using L<guestfish(1)>)"
27127 msgstr ""
27128
27129 # type: textblock
27130 #: ../tools/virt-resize.pl:201
27131 msgid ""
27132 "Once the guest has booted you should see the new space available, at least "
27133 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
27134 "may need to resize LVs inside PVs, and also resize filesystem types that "
27135 "virt-resize does not know how to expand."
27136 msgstr ""
27137
27138 # type: =head2
27139 #: ../tools/virt-resize.pl:208
27140 msgid "SHRINKING A VIRTUAL MACHINE DISK"
27141 msgstr ""
27142
27143 # type: textblock
27144 #: ../tools/virt-resize.pl:210
27145 msgid ""
27146 "Shrinking is somewhat more complex than expanding, and only an overview is "
27147 "given here."
27148 msgstr ""
27149
27150 # type: textblock
27151 #: ../tools/virt-resize.pl:213
27152 msgid ""
27153 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
27154 "filesystems).  The user has to shrink content before passing the disk image "
27155 "to virt-resize, and virt-resize will check that the content has been shrunk "
27156 "properly."
27157 msgstr ""
27158
27159 # type: textblock
27160 #: ../tools/virt-resize.pl:218
27161 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
27162 msgstr ""
27163
27164 # type: textblock
27165 #: ../tools/virt-resize.pl:220
27166 msgid ""
27167 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
27168 "steps 3 and 4 above to allocate a new disk image."
27169 msgstr ""
27170
27171 # type: textblock
27172 #: ../tools/virt-resize.pl:223
27173 msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
27174 msgstr ""
27175
27176 # type: =head2
27177 #: ../tools/virt-resize.pl:226
27178 msgid "IGNORING OR DELETING PARTITIONS"
27179 msgstr ""
27180
27181 # type: textblock
27182 #: ../tools/virt-resize.pl:228
27183 msgid ""
27184 "virt-resize also gives a convenient way to ignore or delete partitions when "
27185 "copying from the input disk to the output disk.  Ignoring a partition speeds "
27186 "up the copy where you don't care about the existing contents of a "
27187 "partition.  Deleting a partition removes it completely, but note that it "
27188 "also renumbers any partitions after the one which is deleted, which can "
27189 "leave some guests unbootable."
27190 msgstr ""
27191
27192 # type: =head2
27193 #: ../tools/virt-resize.pl:235
27194 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
27195 msgstr ""
27196
27197 # type: textblock
27198 #: ../tools/virt-resize.pl:237
27199 msgid ""
27200 "If the input disk is in qcow2 format, then you may prefer that the output is "
27201 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
27202 "the fly.  The output format is simply determined by the format of the empty "
27203 "output container that you provide.  Thus to create qcow2 output, use:"
27204 msgstr ""
27205
27206 # type: verbatim
27207 #: ../tools/virt-resize.pl:243
27208 #, no-wrap
27209 msgid ""
27210 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
27211 "\n"
27212 msgstr ""
27213
27214 # type: textblock
27215 #: ../tools/virt-resize.pl:245
27216 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
27217 msgstr ""
27218
27219 # type: textblock
27220 #: ../tools/virt-resize.pl:247
27221 msgid "Similarly, to get non-sparse raw output use:"
27222 msgstr ""
27223
27224 # type: verbatim
27225 #: ../tools/virt-resize.pl:249
27226 #, no-wrap
27227 msgid ""
27228 " fallocate -l size outdisk\n"
27229 "\n"
27230 msgstr ""
27231
27232 # type: textblock
27233 #: ../tools/virt-resize.pl:251
27234 msgid ""
27235 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
27236 "if=/dev/zero of=outdisk bs=1M count=..>)"
27237 msgstr ""
27238
27239 # type: textblock
27240 #: ../tools/virt-resize.pl:264
27241 msgid "Display help."
27242 msgstr ""
27243
27244 # type: =item
27245 #: ../tools/virt-resize.pl:278
27246 msgid "B<--resize part=size>"
27247 msgstr ""
27248
27249 # type: textblock
27250 #: ../tools/virt-resize.pl:280
27251 msgid ""
27252 "Resize the named partition (expanding or shrinking it) so that it has the "
27253 "given size."
27254 msgstr ""
27255
27256 # type: textblock
27257 #: ../tools/virt-resize.pl:283
27258 msgid ""
27259 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
27260 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
27261 "Exabytes; or as a percentage of the current size; or as a relative number or "
27262 "percentage.  For example:"
27263 msgstr ""
27264
27265 # type: verbatim
27266 #: ../tools/virt-resize.pl:288
27267 #, no-wrap
27268 msgid ""
27269 " --resize /dev/sda2=10G\n"
27270 "\n"
27271 msgstr ""
27272
27273 # type: verbatim
27274 #: ../tools/virt-resize.pl:290
27275 #, no-wrap
27276 msgid ""
27277 " --resize /dev/sda4=90%\n"
27278 "\n"
27279 msgstr ""
27280
27281 # type: verbatim
27282 #: ../tools/virt-resize.pl:292
27283 #, no-wrap
27284 msgid ""
27285 " --resize /dev/sda2=+1G\n"
27286 "\n"
27287 msgstr ""
27288
27289 # type: verbatim
27290 #: ../tools/virt-resize.pl:294
27291 #, no-wrap
27292 msgid ""
27293 " --resize /dev/sda2=-200M\n"
27294 "\n"
27295 msgstr ""
27296
27297 # type: verbatim
27298 #: ../tools/virt-resize.pl:296
27299 #, no-wrap
27300 msgid ""
27301 " --resize /dev/sda1=+128K\n"
27302 "\n"
27303 msgstr ""
27304
27305 # type: verbatim
27306 #: ../tools/virt-resize.pl:298
27307 #, no-wrap
27308 msgid ""
27309 " --resize /dev/sda1=+10%\n"
27310 "\n"
27311 msgstr ""
27312
27313 # type: verbatim
27314 #: ../tools/virt-resize.pl:300
27315 #, no-wrap
27316 msgid ""
27317 " --resize /dev/sda1=-10%\n"
27318 "\n"
27319 msgstr ""
27320
27321 # type: textblock
27322 #: ../tools/virt-resize.pl:302
27323 msgid ""
27324 "You can increase the size of any partition.  Virt-resize will expand the "
27325 "direct content of the partition if it knows how (see C<--expand> below)."
27326 msgstr ""
27327
27328 # type: textblock
27329 #: ../tools/virt-resize.pl:306
27330 msgid ""
27331 "You can only I<decrease> the size of partitions that contain filesystems or "
27332 "PVs which have already been shrunk.  Virt-resize will check this has been "
27333 "done before proceeding, or else will print an error (see also "
27334 "C<--resize-force>)."
27335 msgstr ""
27336
27337 # type: textblock
27338 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403 ../tools/virt-resize.pl:420
27339 msgid "You can give this option multiple times."
27340 msgstr ""
27341
27342 # type: =item
27343 #: ../tools/virt-resize.pl:317
27344 msgid "B<--resize-force part=size>"
27345 msgstr ""
27346
27347 # type: textblock
27348 #: ../tools/virt-resize.pl:319
27349 msgid ""
27350 "This is the same as C<--resize> except that it will let you decrease the "
27351 "size of any partition.  Generally this means you will lose any data which "
27352 "was at the end of the partition you shrink, but you may not care about that "
27353 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
27354 "as a swap partition)."
27355 msgstr ""
27356
27357 # type: textblock
27358 #: ../tools/virt-resize.pl:325
27359 msgid "See also the C<--ignore> option."
27360 msgstr ""
27361
27362 # type: =item
27363 #: ../tools/virt-resize.pl:331
27364 msgid "B<--expand part>"
27365 msgstr ""
27366
27367 # type: textblock
27368 #: ../tools/virt-resize.pl:333
27369 msgid ""
27370 "Expand the named partition so it uses up all extra space (space left over "
27371 "after any other resize changes that you request have been done)."
27372 msgstr ""
27373
27374 # type: textblock
27375 #: ../tools/virt-resize.pl:336
27376 msgid ""
27377 "If virt-resize knows how, it will expand the direct content of the "
27378 "partition.  For example, if the partition is an LVM PV, it will expand the "
27379 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
27380 "content it doesn't know about alone."
27381 msgstr ""
27382
27383 # type: textblock
27384 #: ../tools/virt-resize.pl:341
27385 msgid "Currently virt-resize can resize:"
27386 msgstr ""
27387
27388 # type: textblock
27389 #: ../tools/virt-resize.pl:347
27390 msgid ""
27391 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
27392 "partition."
27393 msgstr ""
27394
27395 # type: textblock
27396 #: ../tools/virt-resize.pl:352
27397 msgid ""
27398 "NTFS filesystems contained directly in a partition, if libguestfs was "
27399 "compiled with support for NTFS."
27400 msgstr ""
27401
27402 # type: textblock
27403 #: ../tools/virt-resize.pl:355
27404 msgid ""
27405 "The filesystem must have been shut down consistently last time it was used.  "
27406 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
27407 "consistency check, so at the first boot after resizing Windows will check "
27408 "the disk."
27409 msgstr ""
27410
27411 # type: textblock
27412 #: ../tools/virt-resize.pl:362
27413 msgid ""
27414 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
27415 "inside the PV, but see the C<--LV-expand> option.  The user could also "
27416 "resize LVs as desired after boot."
27417 msgstr ""
27418
27419 # type: textblock
27420 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
27421 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
27422 msgstr ""
27423
27424 # type: =item
27425 #: ../tools/virt-resize.pl:374
27426 msgid "B<--shrink part>"
27427 msgstr ""
27428
27429 # type: textblock
27430 #: ../tools/virt-resize.pl:376
27431 msgid ""
27432 "Shrink the named partition until the overall disk image fits in the "
27433 "destination.  The named partition B<must> contain a filesystem or PV which "
27434 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
27435 "online tools).  Virt-resize will check this and give an error if it has not "
27436 "been done."
27437 msgstr ""
27438
27439 # type: textblock
27440 #: ../tools/virt-resize.pl:382
27441 msgid ""
27442 "The amount by which the overall disk must be shrunk (after carrying out all "
27443 "other operations requested by the user) is called the \"deficit\".  For "
27444 "example, a straight copy (assume no other operations)  from a 5GB disk image "
27445 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
27446 "would give an error unless the user specified a partition to shrink and that "
27447 "partition had more than a gigabyte of free space."
27448 msgstr ""
27449
27450 # type: =item
27451 #: ../tools/virt-resize.pl:396
27452 msgid "B<--ignore part>"
27453 msgstr ""
27454
27455 # type: textblock
27456 #: ../tools/virt-resize.pl:398
27457 msgid ""
27458 "Ignore the named partition.  Effectively this means the partition is "
27459 "allocated on the destination disk, but the content is not copied across from "
27460 "the source disk.  The content of the partition will be blank (all zero "
27461 "bytes)."
27462 msgstr ""
27463
27464 # type: =item
27465 #: ../tools/virt-resize.pl:409
27466 msgid "B<--delete part>"
27467 msgstr ""
27468
27469 # type: textblock
27470 #: ../tools/virt-resize.pl:411
27471 msgid ""
27472 "Delete the named partition.  It would be more accurate to describe this as "
27473 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
27474 "the original disk image is left intact."
27475 msgstr ""
27476
27477 # type: textblock
27478 #: ../tools/virt-resize.pl:415
27479 msgid ""
27480 "Note that when you delete a partition, then anything contained in the "
27481 "partition is also deleted.  Furthermore, this causes any partitions that "
27482 "come after to be I<renumbered>, which can easily make your guest unbootable."
27483 msgstr ""
27484
27485 # type: =item
27486 #: ../tools/virt-resize.pl:426
27487 msgid "B<--LV-expand logvol>"
27488 msgstr ""
27489
27490 # type: textblock
27491 #: ../tools/virt-resize.pl:428
27492 msgid ""
27493 "This takes the logical volume and, as a final step, expands it to fill all "
27494 "the space available in its volume group.  A typical usage, assuming a Linux "
27495 "guest with a single PV C</dev/sda2> and a root device called "
27496 "C</dev/vg_guest/lv_root> would be:"
27497 msgstr ""
27498
27499 # type: verbatim
27500 #: ../tools/virt-resize.pl:433
27501 #, no-wrap
27502 msgid ""
27503 " virt-resize indisk outdisk \\\n"
27504 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
27505 "\n"
27506 msgstr ""
27507
27508 # type: textblock
27509 #: ../tools/virt-resize.pl:436
27510 msgid ""
27511 "This would first expand the partition (and PV), and then expand the root "
27512 "device to fill the extra space in the PV."
27513 msgstr ""
27514
27515 # type: textblock
27516 #: ../tools/virt-resize.pl:439
27517 msgid ""
27518 "The contents of the LV are also resized if virt-resize knows how to do "
27519 "that.  You can stop virt-resize from trying to expand the content by using "
27520 "the option C<--no-expand-content>."
27521 msgstr ""
27522
27523 # type: textblock
27524 #: ../tools/virt-resize.pl:443
27525 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
27526 msgstr ""
27527
27528 # type: textblock
27529 #: ../tools/virt-resize.pl:446
27530 msgid ""
27531 "You can give this option multiple times, I<but> it doesn't make sense to do "
27532 "this unless the logical volumes you specify are all in different volume "
27533 "groups."
27534 msgstr ""
27535
27536 # type: =item
27537 #: ../tools/virt-resize.pl:454
27538 msgid "B<--no-copy-boot-loader>"
27539 msgstr ""
27540
27541 # type: textblock
27542 #: ../tools/virt-resize.pl:456
27543 msgid ""
27544 "By default, virt-resize copies over some sectors at the start of the disk "
27545 "(up to the beginning of the first partition).  Commonly these sectors "
27546 "contain the Master Boot Record (MBR) and the boot loader, and are required "
27547 "in order for the guest to boot correctly."
27548 msgstr ""
27549
27550 # type: textblock
27551 #: ../tools/virt-resize.pl:461
27552 msgid ""
27553 "If you specify this flag, then this initial copy is not done.  You may need "
27554 "to reinstall the boot loader in this case."
27555 msgstr ""
27556
27557 # type: =item
27558 #: ../tools/virt-resize.pl:469
27559 msgid "B<--no-extra-partition>"
27560 msgstr ""
27561
27562 # type: textblock
27563 #: ../tools/virt-resize.pl:471
27564 msgid ""
27565 "By default, virt-resize creates an extra partition if there is any extra, "
27566 "unused space after all resizing has happened.  Use this option to prevent "
27567 "the extra partition from being created.  If you do this then the extra space "
27568 "will be inaccessible until you run fdisk, parted, or some other partitioning "
27569 "tool in the guest."
27570 msgstr ""
27571
27572 # type: textblock
27573 #: ../tools/virt-resize.pl:477
27574 msgid ""
27575 "Note that if the surplus space is smaller than 10 MB, no extra partition "
27576 "will be created."
27577 msgstr ""
27578
27579 # type: =item
27580 #: ../tools/virt-resize.pl:484
27581 msgid "B<--no-expand-content>"
27582 msgstr ""
27583
27584 # type: textblock
27585 #: ../tools/virt-resize.pl:486
27586 msgid ""
27587 "By default, virt-resize will try to expand the direct contents of "
27588 "partitions, if it knows how (see C<--expand> option above)."
27589 msgstr ""
27590
27591 # type: textblock
27592 #: ../tools/virt-resize.pl:489
27593 msgid ""
27594 "If you give the C<--no-expand-content> option then virt-resize will not "
27595 "attempt this."
27596 msgstr ""
27597
27598 # type: =item
27599 #: ../tools/virt-resize.pl:496
27600 msgid "B<-d> | B<--debug>"
27601 msgstr ""
27602
27603 # type: =item
27604 #: ../tools/virt-resize.pl:504
27605 msgid "B<-n> | B<--dryrun>"
27606 msgstr ""
27607
27608 # type: textblock
27609 #: ../tools/virt-resize.pl:506
27610 msgid "Print a summary of what would be done, but don't do anything."
27611 msgstr ""
27612
27613 # type: =item
27614 #: ../tools/virt-resize.pl:512
27615 msgid "B<-q> | B<--quiet>"
27616 msgstr ""
27617
27618 # type: textblock
27619 #: ../tools/virt-resize.pl:514
27620 msgid "Don't print the summary."
27621 msgstr ""
27622
27623 # type: textblock
27624 #: ../tools/virt-resize.pl:522
27625 msgid ""
27626 "Specify the format of the input disk image.  If this flag is not given then "
27627 "it is auto-detected from the image itself."
27628 msgstr ""
27629
27630 # type: textblock
27631 #: ../tools/virt-resize.pl:528
27632 msgid ""
27633 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
27634 "AND NON-SPARSE RAW FORMATS>."
27635 msgstr ""
27636
27637 # type: =item
27638 #: ../tools/virt-resize.pl:535
27639 msgid "B<--output-format> raw"
27640 msgstr ""
27641
27642 # type: textblock
27643 #: ../tools/virt-resize.pl:537
27644 msgid ""
27645 "Specify the format of the output disk image.  If this flag is not given then "
27646 "it is auto-detected from the image itself."
27647 msgstr ""
27648
27649 # type: textblock
27650 #: ../tools/virt-resize.pl:543
27651 msgid ""
27652 "Note that you still need to create the output disk with the right format.  "
27653 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
27654 msgstr ""
27655
27656 # type: =head1
27657 #: ../tools/virt-resize.pl:1419
27658 msgid "NOTES"
27659 msgstr ""
27660
27661 # type: =head2
27662 #: ../tools/virt-resize.pl:1421
27663 msgid "\"Partition 1 does not end on cylinder boundary.\""
27664 msgstr ""
27665
27666 # type: textblock
27667 #: ../tools/virt-resize.pl:1423
27668 msgid ""
27669 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
27670 "means the partitions will not be aligned to the ancient CHS geometry.  "
27671 "However CHS geometry is meaningless for disks manufactured since the early "
27672 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
27673 "cylinders is not required by any modern operating system."
27674 msgstr ""
27675
27676 # type: =head2
27677 #: ../tools/virt-resize.pl:1430
27678 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
27679 msgstr ""
27680
27681 # type: textblock
27682 #: ../tools/virt-resize.pl:1432
27683 msgid ""
27684 "In Windows Vista and later versions, Microsoft switched to using a separate "
27685 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
27686 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
27687 "the boot partition.  Doing so seems to break the guest completely.  However "
27688 "expanding the second partition (ie. C: drive) should work."
27689 msgstr ""
27690
27691 # type: textblock
27692 #: ../tools/virt-resize.pl:1439
27693 msgid ""
27694 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
27695 "NTFS partitions have been expanded.  This is just a safety check and (unless "
27696 "it find errors) is nothing to worry about."
27697 msgstr ""
27698
27699 # type: =head2
27700 #: ../tools/virt-resize.pl:1443
27701 msgid "GUEST BOOT STUCK AT \"GRUB\""
27702 msgstr ""
27703
27704 # type: textblock
27705 #: ../tools/virt-resize.pl:1445
27706 msgid ""
27707 "If a Linux guest does not boot after resizing, and the boot is stuck after "
27708 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
27709 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
27710 "although we think is to do with partition alignment."
27711 msgstr ""
27712
27713 # type: verbatim
27714 #: ../tools/virt-resize.pl:1450
27715 #, no-wrap
27716 msgid ""
27717 " guestfish -i -a newdisk\n"
27718 " ><fs> cat /boot/grub/device.map\n"
27719 " # check the contents of this file are sensible or\n"
27720 " # edit the file if necessary\n"
27721 " ><fs> grub-install / /dev/vda\n"
27722 " ><fs> exit\n"
27723 "\n"
27724 msgstr ""
27725
27726 # type: textblock
27727 #: ../tools/virt-resize.pl:1457
27728 msgid ""
27729 "For more flexible guest reconfiguration, including if you need to specify "
27730 "other parameters to grub-install, use L<virt-rescue(1)>."
27731 msgstr ""
27732
27733 # type: =head1
27734 #: ../tools/virt-resize.pl:1460
27735 msgid "ALTERNATIVE TOOLS"
27736 msgstr ""
27737
27738 # type: textblock
27739 #: ../tools/virt-resize.pl:1462
27740 msgid ""
27741 "There are several proprietary tools for resizing partitions.  We won't "
27742 "mention any here."
27743 msgstr ""
27744
27745 # type: textblock
27746 #: ../tools/virt-resize.pl:1465
27747 msgid ""
27748 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
27749 "operations on disk images.  They can resize and move partitions, but I don't "
27750 "think they can do anything with the contents, and they certainly don't "
27751 "understand LVM."
27752 msgstr ""
27753
27754 # type: textblock
27755 #: ../tools/virt-resize.pl:1470
27756 msgid ""
27757 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
27758 "but at a much lower level.  You will probably end up hand-calculating sector "
27759 "offsets, which is something that virt-resize was designed to avoid.  If you "
27760 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
27761 "C<--debug> flag."
27762 msgstr ""
27763
27764 # type: textblock
27765 #: ../tools/virt-resize.pl:1485
27766 msgid ""
27767 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
27768 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
27769 "L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
27770 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
27771 "L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
27772 msgstr ""
27773
27774 # type: textblock
27775 #: ../tools/virt-list-filesystems.pl:32
27776 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
27777 msgstr ""
27778
27779 # type: verbatim
27780 #: ../tools/virt-list-filesystems.pl:36
27781 #, no-wrap
27782 msgid ""
27783 " virt-list-filesystems [--options] domname\n"
27784 "\n"
27785 msgstr ""
27786
27787 # type: verbatim
27788 #: ../tools/virt-list-filesystems.pl:38
27789 #, no-wrap
27790 msgid ""
27791 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
27792 "\n"
27793 msgstr ""
27794
27795 # type: textblock
27796 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
27797 msgid ""
27798 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
27799 "replacement."
27800 msgstr ""
27801
27802 # type: textblock
27803 #: ../tools/virt-list-filesystems.pl:45
27804 msgid ""
27805 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
27806 "are contained in a virtual machine or disk image."
27807 msgstr ""
27808
27809 # type: textblock
27810 #: ../tools/virt-list-filesystems.pl:49
27811 msgid ""
27812 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
27813 "functionality.  For more complex cases you should look at the "
27814 "L<guestfish(1)> tool."
27815 msgstr ""
27816
27817 # type: =item
27818 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
27819 msgid "B<-l> | B<--long>"
27820 msgstr ""
27821
27822 # type: textblock
27823 #: ../tools/virt-list-filesystems.pl:108
27824 msgid ""
27825 "With this option, C<virt-list-filesystems> displays the type of each "
27826 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
27827 msgstr ""
27828
27829 # type: =item
27830 #: ../tools/virt-list-filesystems.pl:115
27831 msgid "B<-a> | B<--all>"
27832 msgstr ""
27833
27834 # type: textblock
27835 #: ../tools/virt-list-filesystems.pl:117
27836 msgid ""
27837 "Normally we only show mountable filesystems.  If this option is given then "
27838 "swap devices are shown too."
27839 msgstr ""
27840
27841 # type: textblock
27842 #: ../tools/virt-list-filesystems.pl:191
27843 msgid ""
27844 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
27845 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
27846 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
27847 msgstr ""
27848
27849 # type: textblock
27850 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
27851 msgid "Copyright (C) 2009 Red Hat Inc."
27852 msgstr ""
27853
27854 # type: textblock
27855 #: ../tools/virt-tar.pl:33
27856 msgid "virt-tar - Extract or upload files to a virtual machine"
27857 msgstr ""
27858
27859 # type: verbatim
27860 #: ../tools/virt-tar.pl:37
27861 #, no-wrap
27862 msgid ""
27863 " virt-tar [--options] -x domname directory tarball\n"
27864 "\n"
27865 msgstr ""
27866
27867 # type: verbatim
27868 #: ../tools/virt-tar.pl:39
27869 #, no-wrap
27870 msgid ""
27871 " virt-tar [--options] -u domname tarball directory\n"
27872 "\n"
27873 msgstr ""
27874
27875 # type: verbatim
27876 #: ../tools/virt-tar.pl:41
27877 #, no-wrap
27878 msgid ""
27879 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
27880 "\n"
27881 msgstr ""
27882
27883 # type: verbatim
27884 #: ../tools/virt-tar.pl:43
27885 #, no-wrap
27886 msgid ""
27887 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
27888 "\n"
27889 msgstr ""
27890
27891 # type: textblock
27892 #: ../tools/virt-tar.pl:47
27893 msgid "Download C</home> from the VM into a local tarball:"
27894 msgstr ""
27895
27896 # type: verbatim
27897 #: ../tools/virt-tar.pl:49
27898 #, no-wrap
27899 msgid ""
27900 " virt-tar -x domname /home home.tar\n"
27901 "\n"
27902 msgstr ""
27903
27904 # type: verbatim
27905 #: ../tools/virt-tar.pl:51
27906 #, no-wrap
27907 msgid ""
27908 " virt-tar -zx domname /home home.tar.gz\n"
27909 "\n"
27910 msgstr ""
27911
27912 # type: textblock
27913 #: ../tools/virt-tar.pl:53
27914 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
27915 msgstr ""
27916
27917 # type: verbatim
27918 #: ../tools/virt-tar.pl:55
27919 #, no-wrap
27920 msgid ""
27921 " virt-tar -u domname uploadstuff.tar /tmp\n"
27922 "\n"
27923 msgstr ""
27924
27925 # type: verbatim
27926 #: ../tools/virt-tar.pl:57
27927 #, no-wrap
27928 msgid ""
27929 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
27930 "\n"
27931 msgstr ""
27932
27933 # type: textblock
27934 #: ../tools/virt-tar.pl:61
27935 msgid ""
27936 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
27937 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
27938 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
27939 msgstr ""
27940
27941 # type: textblock
27942 #: ../tools/virt-tar.pl:66
27943 msgid ""
27944 "You can use C<-x> (extract) on live virtual machines, but you might get "
27945 "inconsistent results or errors if there is filesystem activity inside the "
27946 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
27947 "work, but the only way to guarantee consistent results is if the virtual "
27948 "machine is shut down."
27949 msgstr ""
27950
27951 # type: textblock
27952 #: ../tools/virt-tar.pl:74
27953 msgid ""
27954 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
27955 "parts of a guest filesystem.  There are many possibilities: making backups, "
27956 "uploading data files, snooping on guest activity, fixing or customizing "
27957 "guests, etc."
27958 msgstr ""
27959
27960 # type: textblock
27961 #: ../tools/virt-tar.pl:79
27962 msgid ""
27963 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
27964 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
27965 "should look at the L<guestfish(1)> tool."
27966 msgstr ""
27967
27968 # type: textblock
27969 #: ../tools/virt-tar.pl:83
27970 msgid ""
27971 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
27972 "its contents (recursively) from the virtual machine into a local tarball.  "
27973 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
27974 "virtual machine.  You cannot use these two options together."
27975 msgstr ""
27976
27977 # type: textblock
27978 #: ../tools/virt-tar.pl:89
27979 msgid ""
27980 "In addition, you may need to use the C<-z> (gZip) option to enable "
27981 "compression.  When uploading, you have to specify C<-z> if the upload file "
27982 "is compressed because virt-tar won't detect this on its own."
27983 msgstr ""
27984
27985 # type: textblock
27986 #: ../tools/virt-tar.pl:93
27987 msgid ""
27988 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
27989 "example it cannot do PKZip files or bzip2 compression.  If you want that "
27990 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
27991 "the L<libguestfs(3)> API)."
27992 msgstr ""
27993
27994 # type: =item
27995 #: ../tools/virt-tar.pl:151
27996 msgid "B<-x> | B<--extract> | B<--download>"
27997 msgstr ""
27998
27999 # type: =item
28000 #: ../tools/virt-tar.pl:153
28001 msgid "B<-u> | B<--upload>"
28002 msgstr ""
28003
28004 # type: textblock
28005 #: ../tools/virt-tar.pl:155
28006 msgid ""
28007 "Use C<-x> to extract (download) a directory from a virtual machine to a "
28008 "local tarball."
28009 msgstr ""
28010
28011 # type: textblock
28012 #: ../tools/virt-tar.pl:158
28013 msgid ""
28014 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
28015 "Please read the L</WARNING> section above before using this option."
28016 msgstr ""
28017
28018 # type: textblock
28019 #: ../tools/virt-tar.pl:162
28020 msgid "You must specify exactly one of these options."
28021 msgstr ""
28022
28023 # type: =item
28024 #: ../tools/virt-tar.pl:168
28025 msgid "B<-z> | B<--gzip>"
28026 msgstr ""
28027
28028 # type: textblock
28029 #: ../tools/virt-tar.pl:170
28030 msgid "Specify that the input or output tarball is gzip-compressed."
28031 msgstr ""
28032
28033 # type: textblock
28034 #: ../tools/virt-tar.pl:283
28035 msgid ""
28036 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
28037 "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
28038 "L<http://libguestfs.org/>."
28039 msgstr ""
28040
28041 # type: textblock
28042 #: ../tools/virt-make-fs.pl:37
28043 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
28044 msgstr ""
28045
28046 # type: verbatim
28047 #: ../tools/virt-make-fs.pl:41
28048 #, no-wrap
28049 msgid ""
28050 " virt-make-fs [--options] input.tar output.img\n"
28051 "\n"
28052 msgstr ""
28053
28054 # type: verbatim
28055 #: ../tools/virt-make-fs.pl:43
28056 #, no-wrap
28057 msgid ""
28058 " virt-make-fs [--options] input.tar.gz output.img\n"
28059 "\n"
28060 msgstr ""
28061
28062 # type: verbatim
28063 #: ../tools/virt-make-fs.pl:45
28064 #, no-wrap
28065 msgid ""
28066 " virt-make-fs [--options] directory output.img\n"
28067 "\n"
28068 msgstr ""
28069
28070 # type: textblock
28071 #: ../tools/virt-make-fs.pl:49
28072 msgid ""
28073 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
28074 "archive or some files in a directory.  It is similar to tools like "
28075 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
28076 "it can create common filesystem types like ext2/3 or NTFS, which can be "
28077 "useful if you want to attach these filesystems to existing virtual machines "
28078 "(eg. to import large amounts of read-only data to a VM)."
28079 msgstr ""
28080
28081 # type: textblock
28082 #: ../tools/virt-make-fs.pl:57
28083 msgid "Basic usage is:"
28084 msgstr ""
28085
28086 # type: verbatim
28087 #: ../tools/virt-make-fs.pl:59
28088 #, no-wrap
28089 msgid ""
28090 " virt-make-fs input output\n"
28091 "\n"
28092 msgstr ""
28093
28094 # type: textblock
28095 #: ../tools/virt-make-fs.pl:61
28096 msgid ""
28097 "where C<input> is either a directory containing files that you want to add, "
28098 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
28099 "C<output> is a disk image.  The input type is detected automatically.  The "
28100 "output disk image defaults to a raw ext2 image unless you specify extra "
28101 "flags (see L</OPTIONS> below)."
28102 msgstr ""
28103
28104 # type: =head2
28105 #: ../tools/virt-make-fs.pl:67
28106 msgid "EXTRA SPACE"
28107 msgstr ""
28108
28109 # type: textblock
28110 #: ../tools/virt-make-fs.pl:69
28111 msgid ""
28112 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
28113 "the files that it contains, but might have extra space.  Depending on how "
28114 "you are going to use the output, you might think this extra space is wasted "
28115 "and want to minimize it, or you might want to leave space so that more files "
28116 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
28117 "but you can use the C<--size> flag to leave space in the filesystem if you "
28118 "want it."
28119 msgstr ""
28120
28121 # type: textblock
28122 #: ../tools/virt-make-fs.pl:77
28123 msgid ""
28124 "An alternative way to leave extra space but not make the output image any "
28125 "bigger is to use an alternative disk image format (instead of the default "
28126 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
28127 "image format (check your hypervisor supports this before using it).  This "
28128 "allows you to choose a large C<--size> but the extra space won't actually be "
28129 "allocated in the image until you try to store something in it."
28130 msgstr ""
28131
28132 # type: textblock
28133 #: ../tools/virt-make-fs.pl:85
28134 msgid ""
28135 "Don't forget that you can also use local commands including L<resize2fs(8)> "
28136 "and L<virt-resize(1)> to resize existing filesystems, or rerun "
28137 "virt-make-resize to build another image from scratch."
28138 msgstr ""
28139
28140 # type: =head3
28141 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
28142 msgid "EXAMPLE"
28143 msgstr ""
28144
28145 # type: verbatim
28146 #: ../tools/virt-make-fs.pl:91
28147 #, no-wrap
28148 msgid ""
28149 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
28150 "\n"
28151 msgstr ""
28152
28153 # type: =head2
28154 #: ../tools/virt-make-fs.pl:93
28155 msgid "FILESYSTEM TYPE"
28156 msgstr ""
28157
28158 # type: textblock
28159 #: ../tools/virt-make-fs.pl:95
28160 msgid ""
28161 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
28162 "libguestfs supports can be used (but I<not> read-only formats like "
28163 "ISO9660).  Here are some of the more common choices:"
28164 msgstr ""
28165
28166 # type: =item
28167 #: ../tools/virt-make-fs.pl:101
28168 msgid "I<ext3>"
28169 msgstr ""
28170
28171 # type: textblock
28172 #: ../tools/virt-make-fs.pl:103
28173 msgid ""
28174 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
28175 "you are not going to use the filesystem in a way that requires the journal, "
28176 "then this is just wasted overhead."
28177 msgstr ""
28178
28179 # type: =item
28180 #: ../tools/virt-make-fs.pl:107
28181 msgid "I<ntfs> or I<vfat>"
28182 msgstr ""
28183
28184 # type: textblock
28185 #: ../tools/virt-make-fs.pl:109
28186 msgid "Useful if exporting data to a Windows guest."
28187 msgstr ""
28188
28189 # type: textblock
28190 #: ../tools/virt-make-fs.pl:111
28191 msgid ""
28192 "I<Note for vfat>: The tar archive or local directory must only contain files "
28193 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
28194 "program running within libguestfs is unable to change the ownership of "
28195 "non-root files, since vfat itself does not support this."
28196 msgstr ""
28197
28198 # type: =item
28199 #: ../tools/virt-make-fs.pl:116
28200 msgid "I<minix>"
28201 msgstr ""
28202
28203 # type: textblock
28204 #: ../tools/virt-make-fs.pl:118
28205 msgid ""
28206 "Lower overhead than C<ext2>, but certain limitations on filename length and "
28207 "total filesystem size."
28208 msgstr ""
28209
28210 # type: verbatim
28211 #: ../tools/virt-make-fs.pl:125
28212 #, no-wrap
28213 msgid ""
28214 " virt-make-fs --type=minix input minixfs.img\n"
28215 "\n"
28216 msgstr ""
28217
28218 # type: =head2
28219 #: ../tools/virt-make-fs.pl:127
28220 msgid "TO PARTITION OR NOT TO PARTITION"
28221 msgstr ""
28222
28223 # type: textblock
28224 #: ../tools/virt-make-fs.pl:129
28225 msgid "Optionally virt-make-fs can add a partition table to the output disk."
28226 msgstr ""
28227
28228 # type: textblock
28229 #: ../tools/virt-make-fs.pl:131
28230 msgid ""
28231 "Adding a partition can make the disk image more compatible with certain "
28232 "virtualized operating systems which don't expect to see a filesystem "
28233 "directly located on a block device (Linux doesn't care and will happily "
28234 "handle both types)."
28235 msgstr ""
28236
28237 # type: textblock
28238 #: ../tools/virt-make-fs.pl:136
28239 msgid ""
28240 "On the other hand, if you have a partition table then the output image is no "
28241 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
28242 "directly on a partitioned disk image.  (However libguestfs tools such as "
28243 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
28244 msgstr ""
28245
28246 # type: textblock
28247 #: ../tools/virt-make-fs.pl:144
28248 msgid "Add an MBR partition:"
28249 msgstr ""
28250
28251 # type: verbatim
28252 #: ../tools/virt-make-fs.pl:146
28253 #, no-wrap
28254 msgid ""
28255 " virt-make-fs --partition -- input disk.img\n"
28256 "\n"
28257 msgstr ""
28258
28259 # type: textblock
28260 #: ../tools/virt-make-fs.pl:148
28261 msgid ""
28262 "If the output disk image could be terabyte-sized or larger, it's better to "
28263 "use an EFI/GPT-compatible partition table:"
28264 msgstr ""
28265
28266 # type: verbatim
28267 #: ../tools/virt-make-fs.pl:151
28268 #, no-wrap
28269 msgid ""
28270 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
28271 "\n"
28272 msgstr ""
28273
28274 # type: textblock
28275 #: ../tools/virt-make-fs.pl:179
28276 msgid "Enable debugging information."
28277 msgstr ""
28278
28279 # type: =item
28280 #: ../tools/virt-make-fs.pl:185
28281 msgid "B<--size=E<lt>NE<gt>>"
28282 msgstr ""
28283
28284 # type: =item
28285 #: ../tools/virt-make-fs.pl:187
28286 msgid "B<--size=+E<lt>NE<gt>>"
28287 msgstr ""
28288
28289 # type: =item
28290 #: ../tools/virt-make-fs.pl:189
28291 msgid "B<-s E<lt>NE<gt>>"
28292 msgstr ""
28293
28294 # type: =item
28295 #: ../tools/virt-make-fs.pl:191
28296 msgid "B<-s +E<lt>NE<gt>>"
28297 msgstr ""
28298
28299 # type: textblock
28300 #: ../tools/virt-make-fs.pl:193
28301 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
28302 msgstr ""
28303
28304 # type: textblock
28305 #: ../tools/virt-make-fs.pl:196
28306 msgid ""
28307 "If this option is I<not> given, then the output image will be just large "
28308 "enough to contain all the files, with not much wasted space."
28309 msgstr ""
28310
28311 # type: textblock
28312 #: ../tools/virt-make-fs.pl:199
28313 msgid ""
28314 "To choose a fixed size output disk, specify an absolute number followed by "
28315 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28316 "Petabytes or Exabytes.  This must be large enough to contain all the input "
28317 "files, else you will get an error."
28318 msgstr ""
28319
28320 # type: textblock
28321 #: ../tools/virt-make-fs.pl:204
28322 msgid ""
28323 "To leave extra space, specify C<+> (plus sign) and a number followed by "
28324 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
28325 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
28326 "the input files, and (approximately) an extra 200 MB free space."
28327 msgstr ""
28328
28329 # type: textblock
28330 #: ../tools/virt-make-fs.pl:210
28331 msgid ""
28332 "Note that virt-make-fs estimates free space, and therefore will not produce "
28333 "filesystems containing precisely the free space requested.  (It is much more "
28334 "expensive and time-consuming to produce a filesystem which has precisely the "
28335 "desired free space)."
28336 msgstr ""
28337
28338 # type: =item
28339 #: ../tools/virt-make-fs.pl:219
28340 msgid "B<--format=E<lt>fmtE<gt>>"
28341 msgstr ""
28342
28343 # type: =item
28344 #: ../tools/virt-make-fs.pl:221
28345 msgid "B<-F E<lt>fmtE<gt>>"
28346 msgstr ""
28347
28348 # type: textblock
28349 #: ../tools/virt-make-fs.pl:223
28350 msgid "Choose the output disk image format."
28351 msgstr ""
28352
28353 # type: textblock
28354 #: ../tools/virt-make-fs.pl:225
28355 msgid "The default is C<raw> (raw disk image)."
28356 msgstr ""
28357
28358 # type: textblock
28359 #: ../tools/virt-make-fs.pl:227
28360 msgid ""
28361 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
28362 "that would really make sense here is C<qcow2>."
28363 msgstr ""
28364
28365 # type: =item
28366 #: ../tools/virt-make-fs.pl:234
28367 msgid "B<--type=E<lt>fsE<gt>>"
28368 msgstr ""
28369
28370 # type: =item
28371 #: ../tools/virt-make-fs.pl:236
28372 msgid "B<-t E<lt>fsE<gt>>"
28373 msgstr ""
28374
28375 # type: textblock
28376 #: ../tools/virt-make-fs.pl:238
28377 msgid "Choose the output filesystem type."
28378 msgstr ""
28379
28380 # type: textblock
28381 #: ../tools/virt-make-fs.pl:240
28382 msgid "The default is C<ext2>."
28383 msgstr ""
28384
28385 # type: textblock
28386 #: ../tools/virt-make-fs.pl:242
28387 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
28388 msgstr ""
28389
28390 # type: =item
28391 #: ../tools/virt-make-fs.pl:249
28392 msgid "B<--partition>"
28393 msgstr ""
28394
28395 # type: =item
28396 #: ../tools/virt-make-fs.pl:251
28397 msgid "B<--partition=E<lt>parttypeE<gt>>"
28398 msgstr ""
28399
28400 # type: textblock
28401 #: ../tools/virt-make-fs.pl:253
28402 msgid ""
28403 "If specified, this flag adds an MBR partition table to the output disk "
28404 "image."
28405 msgstr ""
28406
28407 # type: textblock
28408 #: ../tools/virt-make-fs.pl:256
28409 msgid ""
28410 "You can change the partition table type, eg. C<--partition=gpt> for large "
28411 "disks."
28412 msgstr ""
28413
28414 # type: textblock
28415 #: ../tools/virt-make-fs.pl:259
28416 msgid ""
28417 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
28418 "might consider the next parameter to be the partition type.  For example:"
28419 msgstr ""
28420
28421 # type: verbatim
28422 #: ../tools/virt-make-fs.pl:263
28423 #, no-wrap
28424 msgid ""
28425 " virt-make-fs --partition input.tar ...\n"
28426 "\n"
28427 msgstr ""
28428
28429 # type: textblock
28430 #: ../tools/virt-make-fs.pl:265
28431 msgid ""
28432 "would cause virt-make-fs to think you wanted to use a partition type of "
28433 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
28434 "dash) between options and the input file argument:"
28435 msgstr ""
28436
28437 # type: verbatim
28438 #: ../tools/virt-make-fs.pl:269
28439 #, no-wrap
28440 msgid ""
28441 " virt-make-fs --partition -- input.tar ...\n"
28442 "\n"
28443 msgstr ""
28444
28445 # type: textblock
28446 #: ../tools/virt-make-fs.pl:536
28447 msgid ""
28448 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
28449 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
28450 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
28451 msgstr ""
28452
28453 # type: verbatim
28454 #: ../tools/virt-make-fs.pl:553
28455 #, no-wrap
28456 msgid ""
28457 " export LIBGUESTFS_DEBUG=1\n"
28458 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
28459 "\n"
28460 msgstr ""
28461
28462 # type: textblock
28463 #: ../tools/virt-make-fs.pl:556
28464 msgid ""
28465 "Attach /tmp/virt-make-fs.log to a new bug report at "
28466 "L<https://bugzilla.redhat.com/>"
28467 msgstr ""
28468
28469 # type: textblock
28470 #: ../tools/virt-list-partitions.pl:32
28471 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
28472 msgstr ""
28473
28474 # type: verbatim
28475 #: ../tools/virt-list-partitions.pl:36
28476 #, no-wrap
28477 msgid ""
28478 " virt-list-partitions [--options] domname\n"
28479 "\n"
28480 msgstr ""
28481
28482 # type: verbatim
28483 #: ../tools/virt-list-partitions.pl:38
28484 #, no-wrap
28485 msgid ""
28486 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
28487 "\n"
28488 msgstr ""
28489
28490 # type: textblock
28491 #: ../tools/virt-list-partitions.pl:45
28492 msgid ""
28493 "C<virt-list-partitions> is a command line tool to list the partitions that "
28494 "are contained in a virtual machine or disk image.  It is mainly useful as a "
28495 "first step to using L<virt-resize(1)>."
28496 msgstr ""
28497
28498 # type: textblock
28499 #: ../tools/virt-list-partitions.pl:50
28500 msgid ""
28501 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
28502 "functionality.  For more complex cases you should look at the "
28503 "L<guestfish(1)> tool."
28504 msgstr ""
28505
28506 # type: =item
28507 #: ../tools/virt-list-partitions.pl:107
28508 msgid "B<-h> | B<--human-readable>"
28509 msgstr ""
28510
28511 # type: textblock
28512 #: ../tools/virt-list-partitions.pl:109
28513 msgid "Show sizes in human-readable form (eg. \"1G\")."
28514 msgstr ""
28515
28516 # type: textblock
28517 #: ../tools/virt-list-partitions.pl:117
28518 msgid ""
28519 "With this option, C<virt-list-partitions> displays the type and size of each "
28520 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
28521 msgstr ""
28522
28523 # type: =item
28524 #: ../tools/virt-list-partitions.pl:124
28525 msgid "B<-t> | B<--total>"
28526 msgstr ""
28527
28528 # type: textblock
28529 #: ../tools/virt-list-partitions.pl:126
28530 msgid "Display the total size of each block device (as a separate row or rows)."
28531 msgstr ""
28532
28533 # type: textblock
28534 #: ../tools/virt-list-partitions.pl:259
28535 msgid ""
28536 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
28537 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
28538 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
28539 msgstr ""